@sveltia/cms 0.58.3 → 0.58.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sveltia-cms.js +14 -14
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +14 -14
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
package/dist/sveltia-cms.js
CHANGED
|
@@ -22,7 +22,7 @@ input.svelte-14t4bvt:-webkit-autofill:focus {transition:background-color 0s 6000
|
|
|
22
22
|
.option.svelte-n72fjc button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-n72fjc button:active {background-color:var(--sui-active-background-color);}.option.svelte-n72fjc .icon.check {margin:-2px;}.option.svelte-n72fjc button[aria-selected="true"] .icon.check {color:var(--sui-primary-accent-color-text);}`};function fr(t,e){se(e,!0),Te(t,R$);let n=P(e,"selected",15,!1),r=P(e,"hidden",15,!1),i=P(e,"disabled",3,!1),s=P(e,"value",19,()=>e.label),o=P(e,"searchValue",19,()=>e.label),a=P(e,"wrap",3,!1),c=at(e,["$$slots","$$events","$$legacy","selected","hidden","class","disabled","label","value","searchValue","wrap","children","checkIcon","startIcon","onChange","onToggle"]);var u=I$(),d=R(u);const h=x(()=>typeof s());Xe(d,Zt(()=>c,{role:"option",tabindex:"-1",get"aria-selected"(){return n()},get label(){return e.label},get value(){return s()},get hidden(){return r()},get disabled(){return i()},get"data-type"(){return l(h)},get"data-label"(){return e.label},get"data-search-value"(){return o()},onChange:p=>{n(p.detail.selected),e.onChange?.(p)},onToggle:p=>{r(p.detail.hidden),n(!1),e.onToggle?.(p)},startIcon:p=>{var g=V(),m=M(g);Re(m,()=>e.startIcon??Fe),T(p,g)},children:(p,g)=>{var m=N$(),b=M(m);{var _=y=>{var w=V(),k=M(w);{var S=E=>{var A=V(),O=M(A);Re(O,()=>e.checkIcon),T(E,A)},C=E=>{nt(E,{class:"check",name:"check"})};U(k,E=>{e.checkIcon?E(S):E(C,!1)})}T(y,w)};U(b,y=>{n()&&y(_)})}var v=D(b,2);Re(v,()=>e.children??Fe),T(p,m)},$$slots:{startIcon:!0,default:!0}})),H(()=>{Ir(u,`sui option ${e.class??""} svelte-n72fjc`),u.hidden=r(),ft(u,"wrap",a())}),T(t,u),oe()}var D$=F("<div><!></div>");const M$={hash:"svelte-p2ez68",code:'.menu.svelte-p2ez68 {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);}.menu.svelte-p2ez68 [role="separator"] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}'};function hr(t,e){se(e,!0),Te(t,M$);let n=P(e,"hidden",3,!1),r=P(e,"disabled",3,!1),i=at(e,["$$slots","$$events","$$legacy","class","hidden","disabled","children","onChange"]);var s=D$(),o=u=>{e.onChange?.(u)};let a;var c=R(s);Re(c,()=>e.children??Fe),ko(s,u=>xl?.(u)),H(()=>a=yt(s,a,{...i,role:"menu",class:`sui menu ${e.class??""}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),onChange:o},"svelte-p2ez68")),T(t,s),oe()}var F$=F('<span role="none" class="icon-outer svelte-1gowwnn"><!></span>'),z$=F('<div role="none" class="content svelte-1gowwnn"><!></div> <!>',1),j$=F('<div role="none"><!> <!></div>');const U$={hash:"svelte-1gowwnn",code:'.menuitem.svelte-1gowwnn {position:relative;}.menuitem.svelte-1gowwnn 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-1gowwnn button[aria-checked="true"] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1gowwnn button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1gowwnn button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1gowwnn:hover > [role="menu"] {opacity:1;}.menuitem.svelte-1gowwnn > [role="menu"] {position:absolute;inset:2px auto auto calc(100% + 4px);}.menuitem.svelte-1gowwnn > [role="menu"]:hover {opacity:1;}.content.svelte-1gowwnn {flex:auto;}.icon-outer.svelte-1gowwnn {flex:none;width:24px;height:24px;}'};function $t(t,e){Te(t,U$);let n=P(e,"role",3,"menuitem"),r=P(e,"hidden",3,!1),i=P(e,"disabled",3,!1),s=P(e,"label",3,""),o=at(e,["$$slots","$$events","$$legacy","class","role","hidden","disabled","label","children","startIcon","endIcon","chevronIcon","items","onChange","onSelect"]),a=ae(!1),c=ae(void 0);const u=x(()=>n()==="menuitem"&&!!e.items);var d=j$(),h=R(d);const f=x(()=>l(u)?"menu":void 0),p=x(()=>l(u)?l(a):void 0);Xe(h,Zt(()=>o,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return l(f)},get"aria-expanded"(){return l(p)},onmouseenter:()=>{l(u)&&L(a,!0)},onmouseleave:()=>{l(u)&&L(a,!1)},get onChange(){return e.onChange},get onSelect(){return e.onSelect},get element(){return l(c)},set element(y){L(c,ie(y))},startIcon:y=>{var w=V(),k=M(w);Re(k,()=>e.startIcon??Fe),T(y,w)},children:y=>{var w=z$(),k=M(w),S=R(k);{var C=$=>{var N=We();H(()=>Z(N,s())),T($,N)},E=$=>{var N=V(),I=M(N);Re(I,()=>e.children??Fe),T($,N)};U(S,$=>{s()?$(C):$(E,!1)})}var A=D(k,2);{var O=$=>{var N=F$(),I=R(N);{var j=B=>{var W=V(),G=M(W);Re(G,()=>e.chevronIcon),T(B,W)},q=B=>{nt(B,{name:"chevron_right"})};U(I,B=>{e.chevronIcon?B(j):B(q,!1)})}T($,N)};U(A,$=>{l(u)&&$(O)})}H(()=>ft(k,"label",!!s())),T(y,w)},endIcon:y=>{var w=V(),k=M(w);Re(k,()=>e.endIcon??Fe),T(y,w)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}));var g=D(h,2);{var m=b=>{Ef(b,{get anchor(){return l(c)},position:"right-top",get open(){return l(a)},set open(_){L(a,ie(_))},children:(_,v)=>{hr(_,{children:(y,w)=>{var k=V(),S=M(k);Re(S,()=>e.items??Fe),T(y,k)},$$slots:{default:!0}})},$$slots:{default:!0}})};U(g,b=>{l(u)&&b(m)})}H(()=>{Ir(d,`sui menuitem ${e.class??""} svelte-1gowwnn`),d.hidden=r()}),T(t,d)}function Af(t,e){se(e,!0);let n=P(e,"checked",15,!1),r=P(e,"hidden",3,!1),i=P(e,"disabled",3,!1),s=P(e,"label",3,""),o=at(e,["$$slots","$$events","$$legacy","checked","class","hidden","disabled","label","children","startIcon","onChange"]);$t(t,Zt(()=>o,{role:"menuitemcheckbox",get class(){return`sui menu-item-checkbox ${e.class??""}`},get label(){return s()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:d=>{e.onChange?.(d),n(d.detail.checked)},startIcon:d=>{var h=V(),f=M(h);Re(f,()=>e.startIcon??Fe),T(d,h)},children:d=>{var h=V(),f=M(h);Re(f,()=>e.children??Fe),T(d,h)},endIcon:d=>{var h=V(),f=M(h);{var p=g=>{nt(g,{name:"check"})};U(f,g=>{n()&&g(p)})}T(d,h)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),oe()}function cu(t,e){se(e,!0);let n=P(e,"checked",15,!1),r=P(e,"hidden",3,!1),i=P(e,"disabled",3,!1),s=P(e,"label",3,""),o=at(e,["$$slots","$$events","$$legacy","checked","class","hidden","disabled","label","children","startIcon","onChange"]);$t(t,Zt(()=>o,{role:"menuitemradio",get class(){return`sui menu-item-radio ${e.class??""}`},get label(){return s()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:d=>{e.onChange?.(d),n(d.detail.checked)},startIcon:d=>{var h=V(),f=M(h);Re(f,()=>e.startIcon??Fe),T(d,h)},children:d=>{var h=V(),f=M(h);Re(f,()=>e.children??Fe),T(d,h)},endIcon:d=>{var h=V(),f=M(h);{var p=g=>{nt(g,{name:"check"})};U(f,g=>{n()&&g(p)})}T(d,h)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),oe()}var B$=F('<div><div role="none" class="svelte-13wpay0"></div></div>');const q$={hash:"svelte-13wpay0",code:".progressbar.svelte-13wpay0 {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-13wpay0 div:where(.svelte-13wpay0) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}"};function H$(t,e){Te(t,q$);let n=P(e,"now",3,0),r=P(e,"min",3,0),i=P(e,"max",3,100),s=at(e,["$$slots","$$events","$$legacy","class","now","min","max","text"]);var o=B$();let a;var c=R(o);H(()=>{a=yt(o,a,{...s,role:"progressbar",class:`sui progressbar ${e.class??""}`,"aria-valuenow":n(),"aria-valuemin":r(),"aria-valuemax":i(),"aria-valuetext":e.text},"svelte-13wpay0"),Vr(c,"width",`${n()??""}%`)}),T(t,o)}var V$=F('<div><div role="none" class="inner svelte-k7k5sq"><!></div></div>');const W$={hash:"svelte-k7k5sq",code:`.radio-group.svelte-k7k5sq {display:inline-flex;}.radio-group.svelte-k7k5sq:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-k7k5sq {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-k7k5sq {gap:4px;flex-direction:column;}
|
|
23
23
|
@media (pointer: coarse) {.radio-group.vertical.svelte-k7k5sq {gap:8px;}
|
|
24
24
|
}.radio-group[aria-invalid=true].svelte-k7k5sq button {border-color:var(--sui-error-border-color);}.radio-group[aria-invalid=true].svelte-k7k5sq button[aria-checked="true"] {border-color:var(--sui-error-border-color);}.radio-group[aria-invalid=true].svelte-k7k5sq button[aria-checked="true"]::before {background-color:var(--sui-error-border-color);}.inner.svelte-k7k5sq {display:contents;}`};function G$(t,e){se(e,!0),Te(t,W$);let n=P(e,"hidden",3,!1),r=P(e,"disabled",3,!1),i=P(e,"readonly",3,!1),s=P(e,"required",3,!1),o=P(e,"invalid",3,!1),a=P(e,"orientation",3,"horizontal"),c=at(e,["$$slots","$$events","$$legacy","class","hidden","disabled","readonly","required","invalid","orientation","children","onChange"]);var u=V$(),d=g=>{e.onChange?.(g)};let h;var f=R(u),p=R(f);Re(p,()=>e.children??Fe),ko(u,g=>xl?.(g)),H(()=>{h=yt(u,h,{...c,role:"radiogroup",class:`sui radio-group ${e.class??""} ${a()??""}`,tabindex:"-1",hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":s(),"aria-invalid":o(),"aria-orientation":a(),onChange:d},"svelte-k7k5sq"),f.inert=r()}),T(t,u),oe()}var K$=F('<label class="svelte-176cbyg"><!></label>'),Y$=F("<span><!> <!></span>");const J$={hash:"svelte-176cbyg",code:'.radio.svelte-176cbyg {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-176cbyg:hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-176cbyg:hover button[aria-checked="true"] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-176cbyg:hover button[aria-checked="true"]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-176cbyg:active button {background-color:var(--sui-active-background-color);}.radio.svelte-176cbyg:active button[aria-checked="true"] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-176cbyg 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-176cbyg 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);transition:all 200ms;will-change:opacity;}.radio.svelte-176cbyg button[aria-checked="true"] {border-color:var(--sui-primary-accent-color);}.radio.svelte-176cbyg button[aria-checked="false"]::before {opacity:0;}.radio.svelte-176cbyg label:where(.svelte-176cbyg) {cursor:inherit;}'};function Z$(t,e){se(e,!0),Te(t,J$);let n=P(e,"checked",7,!1),r=P(e,"hidden",3,!1),i=P(e,"disabled",3,!1),s=P(e,"name",3,void 0),o=P(e,"value",3,void 0),a=P(e,"label",3,void 0),c=at(e,["$$slots","$$events","$$legacy","checked","class","hidden","disabled","name","value","label","children","onChange","onSelect"]);const u=Zn("checkbox");let d=ae(void 0);var h=Y$(),f=_=>{_.target.matches("button")||l(d)?.click()};let p;var g=R(h);Xe(g,{role:"radio",id:u,get hidden(){return r()},get disabled(){return i()},get name(){return s()},get value(){return o()},get"aria-checked"(){return n()},"aria-labelledby":`${u??""}-label`,onclick:_=>{_.preventDefault(),n(!0)},get onChange(){return e.onChange},get onSelect(){return e.onSelect},get element(){return l(d)},set element(_){L(d,ie(_))}});var m=D(g,2);{var b=_=>{var v=K$();Se(v,"id",`${u??""}-label`);var y=R(v);{var w=S=>{var C=V(),E=M(C);Re(E,()=>e.children??Fe),T(S,C)},k=S=>{var C=We();H(()=>Z(C,a())),T(S,C)};U(y,S=>{e.children?S(w):S(k,!1)})}T(_,v)};U(m,_=>{(e.children||a())&&_(b)})}H(()=>{p=yt(h,p,{...c,role:"none",class:`sui radio ${e.class??""}`,hidden:r(),onclick:f},"svelte-176cbyg"),ft(h,"disabled",i())}),T(t,h),oe()}var X$=F('<div><span role="none" class="svelte-1wdlyyt"><!></span> <!> <!></div>');const Q$={hash:"svelte-1wdlyyt",code:".search-bar.svelte-1wdlyyt {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-1wdlyyt {width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-1wdlyyt .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.search-bar.svelte-1wdlyyt > span:where(.svelte-1wdlyyt) {position:absolute;inset:0 auto 0 0;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-1wdlyyt > button {position:absolute;inset:0 0 auto auto;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-1wdlyyt .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-1wdlyyt .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-1wdlyyt input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}"};function em(t,e){se(e,!0),Te(t,Q$);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15),o=P(e,"flex",3,!1),a=P(e,"hidden",3,!1),c=P(e,"disabled",3,!1),u=P(e,"readonly",3,!1),d=P(e,"required",3,!1),h=P(e,"invalid",3,!1),f=at(e,["$$slots","$$events","$$legacy","value","flex","class","hidden","disabled","readonly","required","invalid","children","searchIcon","closeIcon"]);const p=Zn("searchbox");let g=ae(void 0);const m=()=>{l(g)?.focus()};var b=X$(),_=R(b),v=R(_);{var y=A=>{var O=V(),$=M(O);Re($,()=>e.searchIcon),T(A,O)},w=A=>{nt(A,{name:"search"})};U(v,A=>{e.searchIcon?A(y):A(w,!1)})}var k=D(_,2);An(k,Zt(()=>f,{role:"searchbox",id:p,get flex(){return o()},get hidden(){return a()},get disabled(){return c()},get readonly(){return u()},get required(){return d()},get invalid(){return h()},inputmode:"search",get element(){return l(g)},set element(A){L(g,ie(A))},get value(){return s()},set value(A){s(A)}}));var S=D(k,2);{var C=A=>{const O=x(()=>i()("_sui.clear"));Xe(A,{iconic:!0,get"aria-label"(){return l(O)},"aria-controls":p,onclick:()=>{s(""),l(g)?.focus(),globalThis.requestIdleCallback(()=>{l(g)?.dispatchEvent(new KeyboardEvent("input")),l(g)?.dispatchEvent(new KeyboardEvent("keypress")),l(g)?.dispatchEvent(new KeyboardEvent("change"))})},startIcon:N=>{var I=V(),j=M(I);{var q=W=>{var G=V(),J=M(G);Re(J,()=>e.closeIcon),T(W,G)},B=W=>{nt(W,{name:"close"})};U(j,W=>{e.closeIcon?W(q):W(B,!1)})}T(N,I)},$$slots:{startIcon:!0}})};U(S,A=>{s()&&A(C)})}H(()=>{Se(b,"role",a()?void 0:"none"),Ir(b,`sui search-bar ${e.class??""} svelte-1wdlyyt`),b.hidden=a(),Se(b,"aria-hidden",a()),ft(b,"flex",o()),ft(b,"disabled",c()),ft(b,"readonly",u())}),T(t,b);var E=oe({focus:m});return r(),E}var eN=F('<div><div role="none" class="label svelte-cc9f9c"> </div></div>'),tN=F('<div role="alert" class="no-options svelte-cc9f9c"> </div>'),nN=F('<div role="none" class="combobox-inner svelte-cc9f9c"><!> <!> <!></div>'),rN=F("<div><!> <!></div> <!>",1);const iN={hash:"svelte-cc9f9c",code:`.combobox.svelte-cc9f9c {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-cc9f9c .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-cc9f9c > .icon {position:absolute;inset:8px auto auto 8px;z-index:1;}.combobox.svelte-cc9f9c > button {position:absolute;inset:0 0 auto auto;z-index:1;margin:0 !important;border-top-left-radius:0;border-bottom-left-radius:0;}.combobox.svelte-cc9f9c:not(.editable) > button {background-color:transparent !important;}.combobox.svelte-cc9f9c > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-cc9f9c div[role=combobox]:where(.svelte-cc9f9c) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding:0 var(--sui-textbox-height) 0 calc(var(--sui-textbox-height) / 4);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-cc9f9c div[role=combobox]:where(.svelte-cc9f9c):not(.selected) {font-style:italic;}.combobox.svelte-cc9f9c div[role=combobox]:where(.svelte-cc9f9c):hover, .combobox.svelte-cc9f9c div[role=combobox]:where(.svelte-cc9f9c):focus {background-color:var(--sui-hover-background-color);}.combobox.svelte-cc9f9c div[role=combobox][aria-invalid=true]:where(.svelte-cc9f9c) {border-color:var(--sui-error-border-color);}.combobox.svelte-cc9f9c div[role=combobox]:where(.svelte-cc9f9c) .label:where(.svelte-cc9f9c) {display:block;overflow:hidden;width:100%;white-space:nowrap;text-overflow:ellipsis;}.combobox.svelte-cc9f9c .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-cc9f9c input {padding:0 32px 0 8px;width:0;}.combobox.svelte-cc9f9c + [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);
|
|
25
|
-
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-cc9f9c + [role="listbox"]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-cc9f9c {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-cc9f9c .sui.search-bar {flex:none;}.combobox-inner.svelte-cc9f9c .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-cc9f9c .no-options:where(.svelte-cc9f9c) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`};function sN(t,e){se(e,!0),Te(t,iN);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15),o=P(e,"hidden",3,!1),a=P(e,"disabled",3,!1),c=P(e,"readonly",3,!1),u=P(e,"required",3,!1),d=P(e,"invalid",3,!1),h=P(e,"editable",3,!0),f=P(e,"position",3,"bottom-left"),p=at(e,["$$slots","$$events","$$legacy","value","class","hidden","disabled","readonly","required","invalid","editable","position","children","chevronIcon","onChange"]);const g=Zn("combobox"),m='[role="option"][aria-selected="true"]';let b=ae(!1),_=ae(void 0),v=ae(void 0),y=ae(void 0),w=ae(""),k=ae(!1),S=ae(""),C=ae(!0);const E=x(()=>l(_)??l(v)),A=()=>{const K=l(y)?.querySelector(m),Y=l(y)?.querySelector(`[role="option"][value="${s()}"]`);Y&&(L(w,ie(Y.dataset.label||Y.textContent||Y.value)),K!==Y&&(K?.setAttribute("aria-selected","false"),Y.setAttribute("aria-selected","true")))},O=K=>{s(K.dataset.type==="number"?Number(K.value):K.value),A(),e.onChange?.(new CustomEvent("Change",{detail:{target:l(v),value:s()}}))};Be(()=>{l(y)&&globalThis.requestAnimationFrame(()=>{const K=l(y)?.querySelector(m);K&&O(K)})}),Be(()=>{s(),A()});var $=rN(),N=M($);let I;var j=R(N);{var q=K=>{var Y=eN();let re;var ce=R(Y),he=R(ce);Tt(Y,Q=>L(_,Q),()=>l(_)),H(Q=>{re=yt(Y,re,{...p,role:"combobox",id:g,tabindex:a()?-1:0,"aria-controls":`${g??""}-popup`,"aria-expanded":l(b),"aria-hidden":o(),"aria-disabled":a(),"aria-readonly":c(),"aria-required":u(),"aria-invalid":d(),"aria-haspopup":"listbox"},"svelte-cc9f9c"),ft(Y,"selected",s()!==void 0),Z(he,Q)},[()=>s()!==void 0?l(w):i()("_sui.combobox.select_an_option")]),T(K,Y)},B=K=>{An(K,Zt(()=>p,{role:"combobox",id:g,get value(){return s()},get hidden(){return o()},get disabled(){return a()},get readonly(){return c()},get required(){return u()},get invalid(){return d()},"aria-controls":`${g??""}-popup`,get"aria-expanded"(){return l(b)},"aria-haspopup":"listbox",get element(){return l(v)},set element(Y){L(v,ie(Y))}}))};U(j,K=>{h()?K(B,!1):K(q)})}var W=D(j,2);const G=x(()=>!h()||c()||a()?-1:0),J=x(()=>l(b)?i()("_sui.collapse"):i()("_sui.expand"));{const K=Y=>{var re=V(),ce=M(re);{var he=X=>{var de=V(),_e=M(de);Re(_e,()=>e.chevronIcon),T(X,de)},Q=X=>{nt(X,{name:"expand_more"})};U(ce,X=>{e.chevronIcon?X(he):X(Q,!1)})}T(Y,re)};Xe(W,{variant:"ghost",iconic:!0,get hidden(){return o()},get disabled(){return a()},get tabindex(){return l(G)},get"aria-label"(){return l(J)},"aria-controls":`${g??""}-popup`,get"aria-expanded"(){return l(b)},onclick:Y=>{Y.preventDefault(),Y.stopPropagation(),!a()&&!c()&&L(b,!l(b))},startIcon:K,$$slots:{startIcon:!0}})}var ne=D(N,2);Ef(ne,{id:`${g??""}-popup`,class:"combobox",get anchor(){return l(E)},get position(){return f()},touchOptimized:!0,onOpen:()=>{L(k,(l(y)?.querySelectorAll('[role="option"]')?.length??0)>5),L(S,"")},get content(){return l(y)},set content(K){L(y,ie(K))},get open(){return l(b)},set open(K){L(b,ie(K))},children:(K,Y)=>{var re=nN(),ce=R(re);{var he=_e=>{const ve=x(()=>i()("_sui.combobox.filter_options"));em(_e,{flex:!0,get"aria-label"(){return l(ve)},"aria-controls":`${g??""}-listbox`,onkeydown:be=>{["ArrowUp","ArrowDown","Enter"].includes(be.key)&&(be.preventDefault(),l(y)?.querySelector(".sui.listbox")?.dispatchEvent(new KeyboardEvent("keydown",be)))},get value(){return l(S)},set value(be){L(S,ie(be))}})};U(ce,_e=>{l(k)&&_e(he)})}var Q=D(ce,2);lu(Q,{id:`${g??""}-listbox`,class:"in-combobox",get searchTerms(){return l(S)},onclick:_e=>{_e.target.matches('[role="option"]')&&O(_e.target)},onFilter:_e=>{L(C,!!_e.detail.matched)},children:(_e,ve)=>{var be=V(),fe=M(be);Re(fe,()=>e.children??Fe),T(_e,be)},$$slots:{default:!0}});var X=D(Q,2);{var de=_e=>{var ve=tN(),be=R(ve);H(fe=>Z(be,fe),[()=>i()("_sui.combobox.no_matching_options")]),T(_e,ve)};U(X,_e=>{l(C)||_e(de)})}T(K,re)},$$slots:{default:!0}}),H(()=>{I=yt(N,I,{...p,role:"none",class:`sui combobox ${e.class??""}`,hidden:o()},"svelte-cc9f9c"),ft(N,"editable",h())}),T(t,$),oe(),r()}function uu(t,e){let n=P(e,"value",15),r=P(e,"hidden",3,!1),i=P(e,"disabled",3,!1),s=P(e,"readonly",3,!1),o=P(e,"required",3,!1),a=P(e,"invalid",3,!1),c=at(e,["$$slots","$$events","$$legacy","value","class","hidden","disabled","readonly","required","invalid","children","onChange"]);sN(t,Zt(()=>c,{get class(){return`sui select ${e.class??""}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return s()},get required(){return o()},get invalid(){return a()},get onChange(){return e.onChange},editable:!1,get value(){return n()},set value(u){n(u)},children:(u,d)=>{var h=V(),f=M(h);Re(f,()=>e.children??Fe),T(u,h)},$$slots:{default:!0}}))}var oN=F('<span role="none" class="svelte-c700ht"> <!></span>'),aN=F('<div role="none"><!> <!></div>');const lN={hash:"svelte-c700ht",code:".select-tags.svelte-c700ht {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-c700ht {pointer-events:none;}.select-tags.disabled.svelte-c700ht > :where(.svelte-c700ht) {opacity:0.5;}.select-tags.svelte-c700ht span:where(.svelte-c700ht) {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);padding:0 0 0 8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);}.select-tags.svelte-c700ht span:where(.svelte-c700ht) .icon {font-size:var(--sui-font-size-large);}"};function cN(t,e){se(e,!0),Te(t,lN);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"values",31,()=>ie([])),o=P(e,"max",3,void 0),a=P(e,"hidden",3,!1),c=P(e,"disabled",3,!1),u=P(e,"readonly",3,!1),d=P(e,"required",3,!1),h=P(e,"invalid",3,!1),f=at(e,["$$slots","$$events","$$legacy","values","options","max","class","hidden","disabled","readonly","required","invalid","children","onAddValue","onRemoveValue"]),p=ae(void 0);var g=aN(),m=R(g);dt(m,17,s,cr,(v,y)=>{var w=V();const k=x(()=>e.options.find(E=>E.value===l(y)));var S=M(w);{var C=E=>{var A=oN(),O=R(A),$=D(O);const N=x(()=>c()||u()),I=x(()=>i()("remove_x",{values:{name:l(k).label}}));Xe($,{iconic:!0,size:"small",get disabled(){return l(N)},get"aria-label"(){return l(I)},onclick:()=>{s(s().filter(q=>q!==l(y))),e.onRemoveValue?.(new CustomEvent("RemoveValue",{detail:{value:l(y)}}))},startIcon:q=>{nt(q,{name:"close"})},$$slots:{startIcon:!0}}),H(()=>Z(O,`${l(k).label??""} `)),T(E,A)};U(S,E=>{l(k)&&E(C)})}T(v,w)});var b=D(m,2);{var _=v=>{const y=x(()=>c()||u());uu(v,Zt(()=>f,{get disabled(){return l(y)},get readonly(){return u()},get required(){return d()},get invalid(){return h()},onChange:()=>{l(p)&&(s([...s(),l(p)]),e.onAddValue?.(new CustomEvent("AddValue",{detail:{value:l(p)}})),L(p,void 0))},get value(){return l(p)},set value(w){L(p,ie(w))},children:(w,k)=>{var S=V(),C=M(S);dt(C,17,()=>e.options,({label:E,value:A,searchValue:O})=>A,(E,A)=>{let O=()=>l(A).label,$=()=>l(A).value,N=()=>l(A).searchValue;var I=V(),j=M(I);{var q=B=>{fr(B,{get label(){return O()},get value(){return $()},get searchValue(){return N()}})};U(j,B=>{s().includes($())||B(q)})}T(E,I)}),T(w,S)},$$slots:{default:!0}}))};U(b,v=>{(typeof o()!="number"||s().length<o())&&s().length<e.options.length&&v(_)})}H(()=>{Ir(g,`sui select-tags ${e.class??""} svelte-c700ht`),g.hidden=a(),ft(g,"disabled",c()||u())}),T(t,g),oe(),r()}var uN=(t,e)=>e(t),dN=(t,e)=>e(t,0),fN=(t,e)=>e(t,0),hN=(t,e)=>e(t,1),pN=(t,e)=>e(t,1),gN=F('<div role="slider" class="svelte-szl7j8"></div>'),mN=F('<span role="none" class="label svelte-szl7j8"> </span>'),vN=F('<div><div role="none" class="base svelte-szl7j8"><div role="none" class="base-bar svelte-szl7j8"></div> <div class="slider-bar svelte-szl7j8"></div> <div role="slider" class="svelte-szl7j8"></div> <!> <!></div></div>');const bN={hash:"svelte-szl7j8",code:".slider.svelte-szl7j8 {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-szl7j8:hover .base-bar:where(.svelte-szl7j8) {background-color:var(--sui-hover-background-color);}.slider.svelte-szl7j8:active .base-bar:where(.svelte-szl7j8) {background-color:var(--sui-active-background-color);}.base.svelte-szl7j8 {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-szl7j8 {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-szl7j8 {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-szl7j8 .slider-bar:where(.svelte-szl7j8) {background-color:var(--sui-error-border-color);}[role=slider].svelte-szl7j8 {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;transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-szl7j8 [role=slider]:where(.svelte-szl7j8) {border-color:var(--sui-error-border-color);}.label.svelte-szl7j8 {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);transform:translateX(-50%);font-size:var(--sui-font-size-x-small);}"};function _N(t,e){se(e,!0),Te(t,bN);let n=P(e,"value",15,0),r=P(e,"min",3,0),i=P(e,"max",3,100),s=P(e,"sliderLabel",3,""),o=P(e,"values",7,void 0),a=P(e,"sliderLabels",3,void 0),c=P(e,"step",3,1),u=P(e,"optionLabels",19,()=>[]),d=P(e,"hidden",3,!1),h=P(e,"disabled",3,!1),f=P(e,"readonly",3,!1),p=P(e,"invalid",3,!1),g=at(e,["$$slots","$$events","$$legacy","value","min","max","sliderLabel","values","sliderLabels","step","optionLabels","class","hidden","disabled","readonly","invalid","children","onChange"]);const m=x(()=>Array.isArray(o()));let b=ae(void 0),_=ae(0),v=ae(ie([])),y=ae(ie([])),w=ae(0),k=ae(0),S=ie([0,0]),C=ae(!1),E=ae(0),A=ae(0);const O=Q=>{Q<0?Q=0:Q>l(_)&&(Q=l(_));const X=l(v).findLastIndex(ve=>ve<=Q),de=l(v).findIndex(ve=>Q<=ve),_e=Math.abs(l(v)[X]-Q)<Math.abs(l(v)[de]-Q)?X:de;S[l(A)]===l(v)[_e]||l(m)&&(l(A)===0&&S[1]<=l(v)[_e]||l(A)===1&&S[0]>=l(v)[_e])||(l(m)?(o()[l(A)]=l(y)[_e],o([...o()])):n(l(y)[_e]))},$=(Q,X=0)=>{const{key:de,ctrlKey:_e,metaKey:ve,shiftKey:be,altKey:fe}=Q,Oe=be||fe||_e||ve;if(h()||f()||Oe)return;const Ae=l(m)?o()[X]:n();let De=-1;if(["ArrowDown","ArrowLeft"].includes(de)&&(Ae>r()&&(De=l(y).indexOf(Ae)-1),Q.preventDefault(),Q.stopPropagation()),["ArrowUp","ArrowRight"].includes(de)&&(Ae<i()&&(De=l(y).indexOf(Ae)+1),Q.preventDefault(),Q.stopPropagation()),De>-1){if(l(m)&&(X===0&&S[1]<=l(v)[De]||X===1&&S[0]>=l(v)[De]))return;l(m)?(o()[X]=l(y)[De],o([...o()])):n(l(y)[De])}},N=Q=>{const{screenX:X,pointerId:de}=Q;h()||f()||!l(C)||de!==l(E)||(Q.stopPropagation(),O(l(w)+(X-l(k))))},I=Q=>{const{pointerId:X}=Q;h()||f()||!l(C)||X!==l(E)||(Q.stopPropagation(),Q.target.matches(".base-bar, .slider-bar")&&O(Q.layerX),L(C,!1),L(w,0),L(k,0),L(E,0),L(A,0),document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",I),document.removeEventListener("pointercancel",I))},j=(Q,X=0)=>{const{clientX:de,screenX:_e,pointerId:ve}=Q;h()||f()||(Q.stopPropagation(),L(C,!0),L(w,de-l(b).getBoundingClientRect().x),L(k,ie(_e)),L(E,ie(ve)),L(A,ie(X)),document.addEventListener("pointermove",N),document.addEventListener("pointerup",I),document.addEventListener("pointercancel",I))},q=()=>{if(l(m)){const[Q,X]=o();S[0]=l(v)[l(y).indexOf(Q)],S[1]=l(v)[l(y).indexOf(X)],e.onChange?.({values:o()})}else S[0]=l(v)[l(y).indexOf(n())],e.onChange?.({value:n()})},B=()=>{if(!l(b))return;L(_,ie(l(b).clientWidth));const Q=(i()-r())/c()+1,X=l(_)/(Q-1);L(y,ie(new Array(Q).fill(0).map((de,_e)=>_e*c()+r(),10))),L(v,ie(new Array(Q).fill(0).map((de,_e)=>_e*X))),q()};on(()=>{const Q=new ResizeObserver(()=>B()),X=globalThis.matchMedia("(pointer: coarse)");return Q.observe(l(b)),X.addEventListener("change",B),B(),()=>{Q.disconnect(),X.removeEventListener("change",B)}}),Be(()=>{n(),o(),q()});var W=vN();vi("click",bg.body,()=>{L(C,!1)});let G;var J=R(W);J.__pointerdown=[uN,j];var ne=D(R(J),2),K=D(ne,2);K.__pointerdown=[dN,j],K.__keydown=[fN,$];var Y=D(K,2);{var re=Q=>{var X=gN();X.__pointerdown=[hN,j],X.__keydown=[pN,$],H(()=>{Se(X,"tabindex",h()?-1:0),Se(X,"aria-label",a()?.[1]),Se(X,"aria-hidden",d()),Se(X,"aria-disabled",h()),Se(X,"aria-readonly",f()),Se(X,"aria-invalid",p()),Se(X,"aria-valuemin",r()),Se(X,"aria-valuemax",i()),Se(X,"aria-valuenow",o()?.[1]),Vr(X,"left",`${S[1]??""}px`)}),T(Q,X)};U(Y,Q=>{l(m)&&Q(re)})}var ce=D(Y,2);{var he=Q=>{var X=V(),de=M(X);dt(de,17,u,cr,(_e,ve,be)=>{var fe=mN(),Oe=R(fe);H(()=>{Vr(fe,"left",`${l(_)/(u().length-1)*be}px`),Z(Oe,l(ve))}),T(_e,fe)}),T(Q,X)};U(ce,Q=>{u().length&&Q(he)})}Tt(J,Q=>L(b,Q),()=>l(b)),H(()=>{G=yt(W,G,{...g,role:"none",class:`sui slider ${e.class??""}`,hidden:d()},"svelte-szl7j8"),ft(W,"disabled",h()),ft(W,"readonly",f()),ft(W,"invalid",p()),Vr(ne,"left",`${(l(m)?S[0]:0)??""}px`),Vr(ne,"width",`${(l(m)?S[1]-S[0]:S[0])??""}px`),Se(K,"tabindex",h()?-1:0),Se(K,"aria-label",l(m)?a()?.[0]:s()),Se(K,"aria-hidden",d()),Se(K,"aria-disabled",h()),Se(K,"aria-readonly",f()),Se(K,"aria-invalid",p()),Se(K,"aria-valuemin",r()),Se(K,"aria-valuemax",i()),Se(K,"aria-valuenow",l(m)?o()?.[0]:n()),Vr(K,"left",`${S[0]??""}px`)}),T(t,W),oe()}ia(["pointerdown","keydown"]);var yN=F('<button><span role="none" class="svelte-1n931yn"></span> <!></button>');const wN={hash:"svelte-1n931yn",code:'button.svelte-1n931yn {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);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-1n931yn:focus-visible {outline:0;}button.svelte-1n931yn:focus-visible span:where(.svelte-1n931yn) {outline-color:var(--sui-primary-accent-color-translucent);}button[aria-checked=true].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-1n931yn span:where(.svelte-1n931yn)::before {transform:translateX(calc(var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height)));border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}span.svelte-1n931yn {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-1n931yn::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 du(t,e){se(e,!0),Te(t,wN);let n=P(e,"checked",15,!1),r=P(e,"label",3,void 0),i=P(e,"hidden",3,!1),s=P(e,"disabled",3,!1),o=P(e,"readonly",3,!1),a=P(e,"required",3,!1),c=P(e,"invalid",3,!1),u=at(e,["$$slots","$$events","$$legacy","checked","label","class","hidden","disabled","readonly","required","invalid","children","onChange"]);var d=yN(),h=()=>{!s()&&!o()&&(n(!n()),e.onChange?.(new CustomEvent("Change",{detail:{checked:n()}})))};let f;var p=D(R(d),2);{var g=b=>{var _=We();H(()=>Z(_,r())),T(b,_)},m=b=>{var _=V(),v=M(_);Re(v,()=>e.children??Fe),T(b,_)};U(p,b=>{r()?b(g):b(m,!1)})}H(()=>f=yt(d,f,{...u,role:"switch",class:`sui switch ${e.class??""}`,type:"button",hidden:i(),disabled:s()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":s(),"aria-readonly":o(),"aria-required":a(),"aria-invalid":c(),onclick:h},"svelte-1n931yn")),T(t,d),oe()}var xN=F("<div><!></div>");const kN={hash:"svelte-k4lchu",code:".table-cell.svelte-k4lchu {display:table-cell;}"};function Sx(t,e){Te(t,kN);let n=at(e,["$$slots","$$events","$$legacy","class","children"]);var r=xN();let i;var s=R(r);Re(s,()=>e.children??Fe),H(()=>i=yt(r,i,{...n,role:"cell",class:`sui table-cell ${e.class??""}`},"svelte-k4lchu")),T(t,r)}var SN=F("<div><!></div>");const EN={hash:"svelte-19j4fl9",code:".table-row.svelte-19j4fl9 {display:table-row;height:var(--sui-primary-row-height);}"};function TN(t,e){Te(t,EN);let n=at(e,["$$slots","$$events","$$legacy","class","children"]);var r=SN();let i;var s=R(r);Re(s,()=>e.children??Fe),H(()=>i=yt(r,i,{...n,role:"row",class:`sui table-row ${e.class??""}`},"svelte-19j4fl9")),T(t,r)}var CN=F("<div><!></div>");const AN={hash:"svelte-1fva1yw",code:`.table.svelte-1fva1yw {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.svelte-1fva1yw.data {border-collapse:collapse;}.table.svelte-1fva1yw.data .table-col-header,
|
|
25
|
+
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-cc9f9c + [role="listbox"]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-cc9f9c {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-cc9f9c .sui.search-bar {flex:none;}.combobox-inner.svelte-cc9f9c .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-cc9f9c .no-options:where(.svelte-cc9f9c) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`};function sN(t,e){se(e,!0),Te(t,iN);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15),o=P(e,"hidden",3,!1),a=P(e,"disabled",3,!1),c=P(e,"readonly",3,!1),u=P(e,"required",3,!1),d=P(e,"invalid",3,!1),h=P(e,"editable",3,!0),f=P(e,"position",3,"bottom-left"),p=at(e,["$$slots","$$events","$$legacy","value","class","hidden","disabled","readonly","required","invalid","editable","position","children","chevronIcon","onChange"]);const g=Zn("combobox"),m='[role="option"][aria-selected="true"]';let b=ae(!1),_=ae(void 0),v=ae(void 0),y=ae(void 0),w=ae(""),k=ae(!1),S=ae(""),C=ae(!0);const E=x(()=>l(_)??l(v)),A=()=>{const K=l(y)?.querySelector(m),Y=l(y)?.querySelector(`[role="option"][value="${s()}"]`);Y&&(L(w,ie(Y.dataset.label||Y.textContent||Y.value)),K!==Y&&(K?.setAttribute("aria-selected","false"),Y.setAttribute("aria-selected","true")))},O=K=>{s(K.dataset.type==="number"?Number(K.value):K.value),A(),e.onChange?.(new CustomEvent("Change",{detail:{target:l(v),value:s()}}))};Be(()=>{l(y)&&globalThis.requestAnimationFrame(()=>{const K=l(y)?.querySelector(m);K&&O(K)})}),Be(()=>{s(),A()});var $=rN(),N=M($);let I;var j=R(N);{var q=K=>{var Y=eN();let re;var ce=R(Y),he=R(ce);Tt(Y,Q=>L(_,Q),()=>l(_)),H(Q=>{re=yt(Y,re,{...p,role:"combobox",id:g,tabindex:a()?-1:0,"aria-controls":`${g??""}-popup`,"aria-expanded":l(b),"aria-hidden":o(),"aria-disabled":a(),"aria-readonly":c(),"aria-required":u(),"aria-invalid":d(),"aria-haspopup":"listbox"},"svelte-cc9f9c"),ft(Y,"selected",s()!==void 0),Z(he,Q)},[()=>s()!==void 0?l(w):i()("_sui.combobox.select_an_option")]),T(K,Y)},B=K=>{An(K,Zt(()=>p,{role:"combobox",id:g,get value(){return s()},get hidden(){return o()},get disabled(){return a()},get readonly(){return c()},get required(){return u()},get invalid(){return d()},"aria-controls":`${g??""}-popup`,get"aria-expanded"(){return l(b)},"aria-haspopup":"listbox",get element(){return l(v)},set element(Y){L(v,ie(Y))}}))};U(j,K=>{h()?K(B,!1):K(q)})}var W=D(j,2);const G=x(()=>!h()||c()||a()?-1:0),J=x(()=>l(b)?i()("_sui.collapse"):i()("_sui.expand"));{const K=Y=>{var re=V(),ce=M(re);{var he=X=>{var de=V(),ye=M(de);Re(ye,()=>e.chevronIcon),T(X,de)},Q=X=>{nt(X,{name:"expand_more"})};U(ce,X=>{e.chevronIcon?X(he):X(Q,!1)})}T(Y,re)};Xe(W,{variant:"ghost",iconic:!0,get hidden(){return o()},get disabled(){return a()},get tabindex(){return l(G)},get"aria-label"(){return l(J)},"aria-controls":`${g??""}-popup`,get"aria-expanded"(){return l(b)},onclick:Y=>{Y.preventDefault(),Y.stopPropagation(),!a()&&!c()&&L(b,!l(b))},startIcon:K,$$slots:{startIcon:!0}})}var ne=D(N,2);Ef(ne,{id:`${g??""}-popup`,class:"combobox",get anchor(){return l(E)},get position(){return f()},touchOptimized:!0,onOpen:()=>{L(k,(l(y)?.querySelectorAll('[role="option"]')?.length??0)>5),L(S,"")},get content(){return l(y)},set content(K){L(y,ie(K))},get open(){return l(b)},set open(K){L(b,ie(K))},children:(K,Y)=>{var re=nN(),ce=R(re);{var he=ye=>{const ve=x(()=>i()("_sui.combobox.filter_options"));em(ye,{flex:!0,get"aria-label"(){return l(ve)},"aria-controls":`${g??""}-listbox`,onkeydown:be=>{["ArrowUp","ArrowDown","Enter"].includes(be.key)&&(be.preventDefault(),l(y)?.querySelector(".sui.listbox")?.dispatchEvent(new KeyboardEvent("keydown",be)))},get value(){return l(S)},set value(be){L(S,ie(be))}})};U(ce,ye=>{l(k)&&ye(he)})}var Q=D(ce,2);lu(Q,{id:`${g??""}-listbox`,class:"in-combobox",get searchTerms(){return l(S)},onclick:ye=>{ye.target.matches('[role="option"]')&&O(ye.target)},onFilter:ye=>{L(C,!!ye.detail.matched)},children:(ye,ve)=>{var be=V(),fe=M(be);Re(fe,()=>e.children??Fe),T(ye,be)},$$slots:{default:!0}});var X=D(Q,2);{var de=ye=>{var ve=tN(),be=R(ve);H(fe=>Z(be,fe),[()=>i()("_sui.combobox.no_matching_options")]),T(ye,ve)};U(X,ye=>{l(C)||ye(de)})}T(K,re)},$$slots:{default:!0}}),H(()=>{I=yt(N,I,{...p,role:"none",class:`sui combobox ${e.class??""}`,hidden:o()},"svelte-cc9f9c"),ft(N,"editable",h())}),T(t,$),oe(),r()}function uu(t,e){let n=P(e,"value",15),r=P(e,"hidden",3,!1),i=P(e,"disabled",3,!1),s=P(e,"readonly",3,!1),o=P(e,"required",3,!1),a=P(e,"invalid",3,!1),c=at(e,["$$slots","$$events","$$legacy","value","class","hidden","disabled","readonly","required","invalid","children","onChange"]);sN(t,Zt(()=>c,{get class(){return`sui select ${e.class??""}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return s()},get required(){return o()},get invalid(){return a()},get onChange(){return e.onChange},editable:!1,get value(){return n()},set value(u){n(u)},children:(u,d)=>{var h=V(),f=M(h);Re(f,()=>e.children??Fe),T(u,h)},$$slots:{default:!0}}))}var oN=F('<span role="none" class="svelte-c700ht"> <!></span>'),aN=F('<div role="none"><!> <!></div>');const lN={hash:"svelte-c700ht",code:".select-tags.svelte-c700ht {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-c700ht {pointer-events:none;}.select-tags.disabled.svelte-c700ht > :where(.svelte-c700ht) {opacity:0.5;}.select-tags.svelte-c700ht span:where(.svelte-c700ht) {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);padding:0 0 0 8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);}.select-tags.svelte-c700ht span:where(.svelte-c700ht) .icon {font-size:var(--sui-font-size-large);}"};function cN(t,e){se(e,!0),Te(t,lN);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"values",31,()=>ie([])),o=P(e,"max",3,void 0),a=P(e,"hidden",3,!1),c=P(e,"disabled",3,!1),u=P(e,"readonly",3,!1),d=P(e,"required",3,!1),h=P(e,"invalid",3,!1),f=at(e,["$$slots","$$events","$$legacy","values","options","max","class","hidden","disabled","readonly","required","invalid","children","onAddValue","onRemoveValue"]),p=ae(void 0);var g=aN(),m=R(g);dt(m,17,s,cr,(v,y)=>{var w=V();const k=x(()=>e.options.find(E=>E.value===l(y)));var S=M(w);{var C=E=>{var A=oN(),O=R(A),$=D(O);const N=x(()=>c()||u()),I=x(()=>i()("remove_x",{values:{name:l(k).label}}));Xe($,{iconic:!0,size:"small",get disabled(){return l(N)},get"aria-label"(){return l(I)},onclick:()=>{s(s().filter(q=>q!==l(y))),e.onRemoveValue?.(new CustomEvent("RemoveValue",{detail:{value:l(y)}}))},startIcon:q=>{nt(q,{name:"close"})},$$slots:{startIcon:!0}}),H(()=>Z(O,`${l(k).label??""} `)),T(E,A)};U(S,E=>{l(k)&&E(C)})}T(v,w)});var b=D(m,2);{var _=v=>{const y=x(()=>c()||u());uu(v,Zt(()=>f,{get disabled(){return l(y)},get readonly(){return u()},get required(){return d()},get invalid(){return h()},onChange:()=>{l(p)&&(s([...s(),l(p)]),e.onAddValue?.(new CustomEvent("AddValue",{detail:{value:l(p)}})),L(p,void 0))},get value(){return l(p)},set value(w){L(p,ie(w))},children:(w,k)=>{var S=V(),C=M(S);dt(C,17,()=>e.options,({label:E,value:A,searchValue:O})=>A,(E,A)=>{let O=()=>l(A).label,$=()=>l(A).value,N=()=>l(A).searchValue;var I=V(),j=M(I);{var q=B=>{fr(B,{get label(){return O()},get value(){return $()},get searchValue(){return N()}})};U(j,B=>{s().includes($())||B(q)})}T(E,I)}),T(w,S)},$$slots:{default:!0}}))};U(b,v=>{(typeof o()!="number"||s().length<o())&&s().length<e.options.length&&v(_)})}H(()=>{Ir(g,`sui select-tags ${e.class??""} svelte-c700ht`),g.hidden=a(),ft(g,"disabled",c()||u())}),T(t,g),oe(),r()}var uN=(t,e)=>e(t),dN=(t,e)=>e(t,0),fN=(t,e)=>e(t,0),hN=(t,e)=>e(t,1),pN=(t,e)=>e(t,1),gN=F('<div role="slider" class="svelte-szl7j8"></div>'),mN=F('<span role="none" class="label svelte-szl7j8"> </span>'),vN=F('<div><div role="none" class="base svelte-szl7j8"><div role="none" class="base-bar svelte-szl7j8"></div> <div class="slider-bar svelte-szl7j8"></div> <div role="slider" class="svelte-szl7j8"></div> <!> <!></div></div>');const bN={hash:"svelte-szl7j8",code:".slider.svelte-szl7j8 {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-szl7j8:hover .base-bar:where(.svelte-szl7j8) {background-color:var(--sui-hover-background-color);}.slider.svelte-szl7j8:active .base-bar:where(.svelte-szl7j8) {background-color:var(--sui-active-background-color);}.base.svelte-szl7j8 {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-szl7j8 {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-szl7j8 {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-szl7j8 .slider-bar:where(.svelte-szl7j8) {background-color:var(--sui-error-border-color);}[role=slider].svelte-szl7j8 {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;transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-szl7j8 [role=slider]:where(.svelte-szl7j8) {border-color:var(--sui-error-border-color);}.label.svelte-szl7j8 {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);transform:translateX(-50%);font-size:var(--sui-font-size-x-small);}"};function _N(t,e){se(e,!0),Te(t,bN);let n=P(e,"value",15,0),r=P(e,"min",3,0),i=P(e,"max",3,100),s=P(e,"sliderLabel",3,""),o=P(e,"values",7,void 0),a=P(e,"sliderLabels",3,void 0),c=P(e,"step",3,1),u=P(e,"optionLabels",19,()=>[]),d=P(e,"hidden",3,!1),h=P(e,"disabled",3,!1),f=P(e,"readonly",3,!1),p=P(e,"invalid",3,!1),g=at(e,["$$slots","$$events","$$legacy","value","min","max","sliderLabel","values","sliderLabels","step","optionLabels","class","hidden","disabled","readonly","invalid","children","onChange"]);const m=x(()=>Array.isArray(o()));let b=ae(void 0),_=ae(0),v=ae(ie([])),y=ae(ie([])),w=ae(0),k=ae(0),S=ie([0,0]),C=ae(!1),E=ae(0),A=ae(0);const O=Q=>{Q<0?Q=0:Q>l(_)&&(Q=l(_));const X=l(v).findLastIndex(ve=>ve<=Q),de=l(v).findIndex(ve=>Q<=ve),ye=Math.abs(l(v)[X]-Q)<Math.abs(l(v)[de]-Q)?X:de;S[l(A)]===l(v)[ye]||l(m)&&(l(A)===0&&S[1]<=l(v)[ye]||l(A)===1&&S[0]>=l(v)[ye])||(l(m)?(o()[l(A)]=l(y)[ye],o([...o()])):n(l(y)[ye]))},$=(Q,X=0)=>{const{key:de,ctrlKey:ye,metaKey:ve,shiftKey:be,altKey:fe}=Q,Oe=be||fe||ye||ve;if(h()||f()||Oe)return;const Ae=l(m)?o()[X]:n();let De=-1;if(["ArrowDown","ArrowLeft"].includes(de)&&(Ae>r()&&(De=l(y).indexOf(Ae)-1),Q.preventDefault(),Q.stopPropagation()),["ArrowUp","ArrowRight"].includes(de)&&(Ae<i()&&(De=l(y).indexOf(Ae)+1),Q.preventDefault(),Q.stopPropagation()),De>-1){if(l(m)&&(X===0&&S[1]<=l(v)[De]||X===1&&S[0]>=l(v)[De]))return;l(m)?(o()[X]=l(y)[De],o([...o()])):n(l(y)[De])}},N=Q=>{const{screenX:X,pointerId:de}=Q;h()||f()||!l(C)||de!==l(E)||(Q.stopPropagation(),O(l(w)+(X-l(k))))},I=Q=>{const{pointerId:X}=Q;h()||f()||!l(C)||X!==l(E)||(Q.stopPropagation(),Q.target.matches(".base-bar, .slider-bar")&&O(Q.layerX),L(C,!1),L(w,0),L(k,0),L(E,0),L(A,0),document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",I),document.removeEventListener("pointercancel",I))},j=(Q,X=0)=>{const{clientX:de,screenX:ye,pointerId:ve}=Q;h()||f()||(Q.stopPropagation(),L(C,!0),L(w,de-l(b).getBoundingClientRect().x),L(k,ie(ye)),L(E,ie(ve)),L(A,ie(X)),document.addEventListener("pointermove",N),document.addEventListener("pointerup",I),document.addEventListener("pointercancel",I))},q=()=>{if(l(m)){const[Q,X]=o();S[0]=l(v)[l(y).indexOf(Q)],S[1]=l(v)[l(y).indexOf(X)],e.onChange?.({values:o()})}else S[0]=l(v)[l(y).indexOf(n())],e.onChange?.({value:n()})},B=()=>{if(!l(b))return;L(_,ie(l(b).clientWidth));const Q=(i()-r())/c()+1,X=l(_)/(Q-1);L(y,ie(new Array(Q).fill(0).map((de,ye)=>ye*c()+r(),10))),L(v,ie(new Array(Q).fill(0).map((de,ye)=>ye*X))),q()};on(()=>{const Q=new ResizeObserver(()=>B()),X=globalThis.matchMedia("(pointer: coarse)");return Q.observe(l(b)),X.addEventListener("change",B),B(),()=>{Q.disconnect(),X.removeEventListener("change",B)}}),Be(()=>{n(),o(),q()});var W=vN();vi("click",bg.body,()=>{L(C,!1)});let G;var J=R(W);J.__pointerdown=[uN,j];var ne=D(R(J),2),K=D(ne,2);K.__pointerdown=[dN,j],K.__keydown=[fN,$];var Y=D(K,2);{var re=Q=>{var X=gN();X.__pointerdown=[hN,j],X.__keydown=[pN,$],H(()=>{Se(X,"tabindex",h()?-1:0),Se(X,"aria-label",a()?.[1]),Se(X,"aria-hidden",d()),Se(X,"aria-disabled",h()),Se(X,"aria-readonly",f()),Se(X,"aria-invalid",p()),Se(X,"aria-valuemin",r()),Se(X,"aria-valuemax",i()),Se(X,"aria-valuenow",o()?.[1]),Vr(X,"left",`${S[1]??""}px`)}),T(Q,X)};U(Y,Q=>{l(m)&&Q(re)})}var ce=D(Y,2);{var he=Q=>{var X=V(),de=M(X);dt(de,17,u,cr,(ye,ve,be)=>{var fe=mN(),Oe=R(fe);H(()=>{Vr(fe,"left",`${l(_)/(u().length-1)*be}px`),Z(Oe,l(ve))}),T(ye,fe)}),T(Q,X)};U(ce,Q=>{u().length&&Q(he)})}Tt(J,Q=>L(b,Q),()=>l(b)),H(()=>{G=yt(W,G,{...g,role:"none",class:`sui slider ${e.class??""}`,hidden:d()},"svelte-szl7j8"),ft(W,"disabled",h()),ft(W,"readonly",f()),ft(W,"invalid",p()),Vr(ne,"left",`${(l(m)?S[0]:0)??""}px`),Vr(ne,"width",`${(l(m)?S[1]-S[0]:S[0])??""}px`),Se(K,"tabindex",h()?-1:0),Se(K,"aria-label",l(m)?a()?.[0]:s()),Se(K,"aria-hidden",d()),Se(K,"aria-disabled",h()),Se(K,"aria-readonly",f()),Se(K,"aria-invalid",p()),Se(K,"aria-valuemin",r()),Se(K,"aria-valuemax",i()),Se(K,"aria-valuenow",l(m)?o()?.[0]:n()),Vr(K,"left",`${S[0]??""}px`)}),T(t,W),oe()}ia(["pointerdown","keydown"]);var yN=F('<button><span role="none" class="svelte-1n931yn"></span> <!></button>');const wN={hash:"svelte-1n931yn",code:'button.svelte-1n931yn {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);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-1n931yn:focus-visible {outline:0;}button.svelte-1n931yn:focus-visible span:where(.svelte-1n931yn) {outline-color:var(--sui-primary-accent-color-translucent);}button[aria-checked=true].svelte-1n931yn span:where(.svelte-1n931yn) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-1n931yn span:where(.svelte-1n931yn)::before {transform:translateX(calc(var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height)));border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}span.svelte-1n931yn {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-1n931yn::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 du(t,e){se(e,!0),Te(t,wN);let n=P(e,"checked",15,!1),r=P(e,"label",3,void 0),i=P(e,"hidden",3,!1),s=P(e,"disabled",3,!1),o=P(e,"readonly",3,!1),a=P(e,"required",3,!1),c=P(e,"invalid",3,!1),u=at(e,["$$slots","$$events","$$legacy","checked","label","class","hidden","disabled","readonly","required","invalid","children","onChange"]);var d=yN(),h=()=>{!s()&&!o()&&(n(!n()),e.onChange?.(new CustomEvent("Change",{detail:{checked:n()}})))};let f;var p=D(R(d),2);{var g=b=>{var _=We();H(()=>Z(_,r())),T(b,_)},m=b=>{var _=V(),v=M(_);Re(v,()=>e.children??Fe),T(b,_)};U(p,b=>{r()?b(g):b(m,!1)})}H(()=>f=yt(d,f,{...u,role:"switch",class:`sui switch ${e.class??""}`,type:"button",hidden:i(),disabled:s()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":s(),"aria-readonly":o(),"aria-required":a(),"aria-invalid":c(),onclick:h},"svelte-1n931yn")),T(t,d),oe()}var xN=F("<div><!></div>");const kN={hash:"svelte-k4lchu",code:".table-cell.svelte-k4lchu {display:table-cell;}"};function Sx(t,e){Te(t,kN);let n=at(e,["$$slots","$$events","$$legacy","class","children"]);var r=xN();let i;var s=R(r);Re(s,()=>e.children??Fe),H(()=>i=yt(r,i,{...n,role:"cell",class:`sui table-cell ${e.class??""}`},"svelte-k4lchu")),T(t,r)}var SN=F("<div><!></div>");const EN={hash:"svelte-19j4fl9",code:".table-row.svelte-19j4fl9 {display:table-row;height:var(--sui-primary-row-height);}"};function TN(t,e){Te(t,EN);let n=at(e,["$$slots","$$events","$$legacy","class","children"]);var r=SN();let i;var s=R(r);Re(s,()=>e.children??Fe),H(()=>i=yt(r,i,{...n,role:"row",class:`sui table-row ${e.class??""}`},"svelte-19j4fl9")),T(t,r)}var CN=F("<div><!></div>");const AN={hash:"svelte-1fva1yw",code:`.table.svelte-1fva1yw {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.svelte-1fva1yw.data {border-collapse:collapse;}.table.svelte-1fva1yw.data .table-col-header,
|
|
26
26
|
.table.svelte-1fva1yw.data .table-row-header,
|
|
27
27
|
.table.svelte-1fva1yw.data .table-cell {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`};function PN(t,e){Te(t,AN);let n=at(e,["$$slots","$$events","$$legacy","class","children"]);var r=CN();let i;var s=R(r);Re(s,()=>e.children??Fe),H(()=>i=yt(r,i,{...n,role:"table",class:`sui table ${e.class??""}`},"svelte-1fva1yw")),T(t,r)}var ON=F('<div><div role="none" class="inner svelte-dqmpy3"><!></div> <div role="none" class="indicator svelte-dqmpy3"></div></div>');const LN={hash:"svelte-dqmpy3",code:".tab-list.svelte-dqmpy3 {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-dqmpy3 {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin:var(--sui-horizontal-tab-list-margin, var(--sui-tab-list-margin, 0 0 32px));border-width:var(--sui-horizontal-tab-list-border-width, var(--sui-tab-list-border-width, 0 0 1px));padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-dqmpy3 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-dqmpy3 .indicator:where(.svelte-dqmpy3) {border-width:var(--sui-horizontal-tab-list-indicator-border-width, var(--sui-tab-list-indicator-border-width, 0 0 2px 0));}.tab-list[aria-orientation=vertical].svelte-dqmpy3 {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin:var(--sui-vertical-tab-list-margin, var(--sui-tab-list-margin, 0 32px 0 0));border-width:var(--sui-vertical-tab-list-border-width, var(--sui-tab-list-border-width, 0 1px 0 0));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-dqmpy3 button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-right: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-dqmpy3 .indicator:where(.svelte-dqmpy3) {border-width:var(--sui-horizontal-tab-list-vertical-border-width, var(--sui-tab-list-indicator-border-width, 0 2px 0 0));}.tab-list.svelte-dqmpy3 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-dqmpy3 {display:contents;}.indicator.svelte-dqmpy3 {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 $N(t,e){se(e,!0),Te(t,LN);let n=P(e,"hidden",3,!1),r=P(e,"disabled",3,!1),i=P(e,"orientation",3,"horizontal"),s=P(e,"name",3,void 0),o=at(e,["$$slots","$$events","$$legacy","class","hidden","disabled","orientation","name","children","onChange"]),a=ae(void 0),c=ae(void 0);const u=()=>{globalThis.requestAnimationFrame(()=>{const _=l(a)?.querySelector('[role="tab"][aria-selected="true"]');if(_){const{offsetTop:v,offsetLeft:y,offsetWidth:w,offsetHeight:k}=_;L(c,ie(Object.entries({top:v,left:y,width:w,height:k}).map(([S,C])=>`${S}: ${C}px`).join("; ")))}else L(c,void 0)})};on(()=>{const _=new ResizeObserver(()=>{u()});return _.observe(l(a)),()=>{_.disconnect()}});var d=ON(),h=()=>{u()},f=_=>{u(),e.onChange?.(_)};let p;var g=R(d),m=R(g);Re(m,()=>e.children??Fe);var b=D(g,2);Tt(d,_=>L(a,_),()=>l(a)),ko(d,_=>xl?.(_)),H(()=>{p=yt(d,p,{...o,role:"tablist",class:`sui tab-list ${e.class??""}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"data-name":s()||void 0,onInitialized:h,onChange:f},"svelte-dqmpy3"),g.inert=r(),Se(b,"style",l(c))}),T(t,d),oe()}var NN=F("<div><!></div>");const IN={hash:"svelte-1ah6bwn",code:".tab-panel.svelte-1ah6bwn {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1ah6bwn, .tab-panel.svelte-1ah6bwn:not([aria-hidden]) {display:none;}"};function Sl(t,e){Te(t,IN);let n=at(e,["$$slots","$$events","$$legacy","class","children"]);var r=NN();let i;var s=R(r);Re(s,()=>e.children??Fe),H(()=>i=yt(r,i,{...n,role:"tabpanel",class:`sui tab-panel ${e.class??""}`},"svelte-1ah6bwn")),T(t,r)}function RN(t,e){let n=P(e,"hidden",3,!1),r=P(e,"disabled",3,!1),i=P(e,"selected",3,!1),s=at(e,["$$slots","$$events","$$legacy","class","hidden","disabled","selected","children","startIcon","endIcon"]);Xe(t,Zt(()=>s,{role:"tab",get class(){return`sui tab ${e.class??""}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:u=>{var d=V(),h=M(d);Re(h,()=>e.startIcon??Fe),T(u,d)},children:u=>{var d=V(),h=M(d);Re(h,()=>e.children??Fe),T(u,d)},endIcon:u=>{var d=V(),h=M(d);Re(h,()=>e.endIcon??Fe),T(u,d)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var DN=F('<div role="none" class="sui toast-base svelte-12x2hdl"></div> <div><!></div>',1);const MN={hash:"svelte-12x2hdl",code:".toast-base.svelte-12x2hdl {position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:16px;width:100dvw;height:100dvh;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);pointer-events:none;-webkit-user-select:none;user-select:none;}.toast.svelte-12x2hdl {position:absolute;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-12x2hdl {display:block;opacity:0;}.toast.top-left.svelte-12x2hdl {inset:16px auto auto 16px;}.toast.top-center.svelte-12x2hdl {inset:16px auto auto 50%;transform:translateX(-50%);}.toast.top-right.svelte-12x2hdl {inset:16px 16px auto auto;}.toast.bottom-left.svelte-12x2hdl {inset:auto auto 16px 16px;}.toast.bottom-center.svelte-12x2hdl {inset:auto auto 16px 50%;transform:translateX(-50%);}.toast.bottom-right.svelte-12x2hdl {inset:auto 16px 16px auto;}"};function Hn(t,e){se(e,!0),Te(t,MN);let n=P(e,"show",15,!1),r=P(e,"id",3,void 0),i=P(e,"duration",3,5e3),s=P(e,"position",3,"bottom-right"),o=at(e,["$$slots","$$events","$$legacy","show","id","duration","position","children"]),a=ae(void 0),c=ae(void 0),u=ae(void 0),d=ae(0);on(()=>(L(c,ie(document.querySelector(".sui.toast-base.enabled")??void 0)),l(c)?l(a)?.remove():(L(c,ie(l(a))),l(c)&&(l(c).classList.add("enabled"),(document.querySelector(".sui.app-shell")??document.body).appendChild(l(c)),l(c).showPopover&&(l(c).popover="manual",l(c).showPopover()))),()=>{l(u)?.remove()})),Be(()=>{l(c)&&l(u)&&l(c).appendChild(l(u))}),Be(()=>{r(),n(),i(),Ee(()=>{globalThis.clearTimeout(l(d))}),n()&&i()&&L(d,ie(globalThis.setTimeout(()=>{n(!1)},i())))});var h=DN(),f=M(h);Tt(f,b=>L(a,b),()=>l(a));var p=D(f,2);let g;var m=R(p);Re(m,()=>e.children??Fe),Tt(p,b=>L(u,b),()=>l(u)),H(()=>g=yt(p,g,{...o,class:`sui toast ${s()??""}`,"aria-hidden":!n()},"svelte-12x2hdl")),T(t,h),oe()}const mK="modulepreload",vK=function(t){return"/"+t},bK={},Ex=function(e,n,r){let i=Promise.resolve();function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};function FN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Le=FN(function(t){const e=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let r=1;r<arguments.length;r++)n.append("v",arguments[r]);throw e.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const zi=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,zN=zi&&"documentMode"in document?document.documentMode:null,ji=zi&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),To=zi&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Pf=!(!zi||!("InputEvent"in window)||zN)&&"getTargetRanges"in new window.InputEvent("input"),fu=zi&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),El=zi&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,jN=zi&&/Android/.test(navigator.userAgent),Tx=zi&&/^(?=.*Chrome).*/i.test(navigator.userAgent),UN=zi&&jN&&Tx,Of=zi&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Tx;function Lf(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))e.push(r);return e}const BN=1,qN=3,HN=9,VN=11,oa=0,Cx=1,Tl=2,WN=0,GN=1,KN=2,$f=4,Nf=8,tm=128,YN=1792|(112|(3|$f|Nf)|tm),nm=1,rm=2,im=3,sm=4,om=5,am=6,If=fu||El||Of?" ":"",js=`
|
|
28
28
|
|
|
@@ -34,7 +34,7 @@ input.svelte-14t4bvt:-webkit-autofill:focus {transition:background-color 0s 6000
|
|
|
34
34
|
`?i.push(_i()):a===" "?i.push(yi()):a!==""&&i.push(bn(a))}return{node:i}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let r=e,i=!0;for(;r!==null&&(r=b0(r,!1))!==null;){const s=r.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n[n.length-1]===" "){let r=e,i=!0;for(;r!==null&&(r=b0(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:bn(n)}}function b0(t,e){let n=t;for(;;){let r;for(;(r=e?n.nextSibling:n.previousSibling)===null;){const s=n.parentElement;if(s===null)return null;n=s}if(n=r,wn(n)){const s=n.style.display;if(s===""&&!lv(n)||s!==""&&!s.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(Ws(n))return n;if(n.nodeName==="BR")return null}}const EI={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Hs(t){const e=EI[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Mm(t.style,e),node:null}}function bn(t=""){return Fr(new Po(t))}function ze(t){return t instanceof Po}function Mm(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i=n==="700"||n==="bold",s=r.includes("line-through"),o=t.fontStyle==="italic",a=r.includes("underline"),c=t.verticalAlign;return u=>(ze(u)&&(i&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),o&&!u.hasFormat("italic")&&u.toggleFormat("italic"),a&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class Su extends Po{static getType(){return"tab"}static clone(e){return new Su(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),r=Ml(e.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(e){return yi().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Le(126),super.setTextContent(e)}setDetail(e){return e!==2&&Le(127),this}setMode(e){return e!=="normal"&&Le(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function yi(){return Fr(new Su)}function Xn(t){return t instanceof Su}class TI{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let n=this.getNode(),r=e.getNode();const i=this.offset,s=e.offset;if(pe(n)){const o=n.getDescendantByIndex(i);n=o??n}if(pe(r)){const o=r.getDescendantByIndex(s);r=o??r}return n===r?i<s:n.isBefore(r)}getNode(){const e=yn(this.key);return e===null&&Le(20),e}set(e,n,r,i){const s=this._selection,o=this.key;i&&this.key===e&&this.offset===n&&this.type===r||(this.key=e,this.offset=n,this.type=r,Tu()||($o()===o&&pr(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function ms(t,e,n){return new TI(t,e,n)}function Fm(t,e){let n=e.__key,r=t.offset,i="element";if(ze(e)){i="text";const s=e.getTextContentSize();r>s&&(r=s)}else if(!pe(e)){const s=e.getNextSibling();if(ze(s))n=s.__key,r=0,i="text";else{const o=e.getParent();o&&(n=o.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,i)}function _0(t,e){if(pe(e)){const n=e.getLastDescendant();pe(n)||ze(n)?Fm(t,n):Fm(t,e)}else Fm(t,e)}class Xf{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!vs(e))return!1;const n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every(i=>r.has(i))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Xf(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),r=n.length,i=n[r-1];let s;if(ze(i))s=i.select();else{const o=i.getIndexWithinParent()+1;s=i.getParentOrThrow().select(o,o)}s.insertNodes(e);for(let o=0;o<r;o++)n[o].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,r=[];for(const i of n){const s=yn(i);s!==null&&r.push(s)}return Tu()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function Pe(t){return t instanceof fa}class fa{constructor(e,n,r,i){this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=r,this.style=i,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Pe(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this.anchor,r=this.focus,i=n.isBefore(r),s=i?n:r,o=i?r:n,a=s.getNode(),c=o.getNode();let u=a,d=c,h=!1;const f=new Set;if(pe(a)&&(h=s.offset>0&&s.offset>=a.getChildrenSize(),u=a.getDescendantByIndex(s.offset)||a),pe(c)){const g=c.getChildAtIndex(o.offset);if(g){f.add(g.getKey()),d=pe(g)&&g.getFirstDescendant()||g;for(let m=d;m&&!m.is(g);m=m.getParent())f.add(m.getKey())}else{const m=o.offset>0&&c.getChildAtIndex(o.offset-1);if(m)d=pe(m)&&m.getLastDescendant()||m;else{let b=c.getParent();for(;b!==null;b=b.getParent()){f.add(b.getKey());const _=b.getNextSibling();if(_){d=_;break}}c.isEmpty()&&c.is(d)||f.add(d.getKey())}}}let p;if(u.is(d)||this.isCollapsed())p=pe(u)&&u.getChildrenSize()>0?[]:[u];else{if(p=u.getNodesBetween(d),f.size>0)for(;p.length>0&&f.has(p[p.length-1].getKey());)p.pop();if(h){const g=p.findIndex(m=>!m.is(u)&&!m.isBefore(u));p.splice(0,g)}}return Tu()||(this._cachedNodes=p),p}setTextNodeRange(e,n,r,i){this.anchor.set(e.__key,n,"text"),this.focus.set(r.__key,i,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],r=e[e.length-1],i=this.anchor,s=this.focus,o=i.isBefore(s),[a,c]=zm(this);let u="",d=!0;for(let h=0;h<e.length;h++){const f=e[h];if(pe(f)&&!f.isInline())d||(u+=`
|
|
35
35
|
`),d=!f.isEmpty();else if(d=!1,ze(f)){let p=f.getTextContent();f===n?f===r?i.type==="element"&&s.type==="element"&&s.offset!==i.offset||(p=a<c?p.slice(a,c):p.slice(c,a)):p=o?p.slice(a):p.slice(c):f===r&&(p=o?p.slice(0,c):p.slice(0,a)),u+=p}else!Bt(f)&&!nn(f)||f===r&&this.isCollapsed()||(u+=f.getTextContent())}return u}applyDOMRange(e){const n=_n(),r=n.getEditorState()._selection,i=T0(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r);if(i===null)return;const[s,o]=i;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(o.key,o.offset,o.type,!0),Cl(this)}clone(){const e=this.anchor,n=this.focus;return new fa(ms(e.key,e.offset,e.type),ms(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ah(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const n=aa[e];return!!(this.format&n)}insertRawText(e){const n=e.split(/(\r?\n|\t)/),r=[],i=n.length;for(let s=0;s<i;s++){const o=n[s];o===`
|
|
36
36
|
`||o===`\r
|
|
37
|
-
`?r.push(_i()):o===" "?r.push(yi()):r.push(bn(o))}this.insertNodes(r)}insertText(e){const n=this.anchor,r=this.focus,i=this.format,s=this.style;let o=n,a=r;!this.isCollapsed()&&r.isBefore(n)&&(o=r,a=n),o.type==="element"&&function(b,_,v,y){const w=b.getNode(),k=w.getChildAtIndex(b.offset),S=bn(),C=Tr(w)?fn().append(S):S;S.setFormat(v),S.setStyle(y),k===null?w.append(C):k.insertBefore(C),b.is(_)&&_.set(S.__key,0,"text"),b.set(S.__key,0,"text")}(o,a,i,s),a.type==="element"&&vv(a,zu(hh(a,"next")));const c=o.offset;let u=a.offset;const d=this.getNodes(),h=d.length;let f=d[0];ze(f)||Le(26);const p=f.getTextContent().length,g=f.getParentOrThrow();let m=d[h-1];if(h===1&&a.type==="element"&&(u=p,a.set(o.key,u,"text")),this.isCollapsed()&&c===p&&(f.isSegmented()||f.isToken()||!f.canInsertTextAfter()||!g.canInsertTextAfter()&&f.getNextSibling()===null)){let b=f.getNextSibling();if(ze(b)&&b.canInsertTextBefore()&&!Il(b)||(b=bn(),b.setFormat(i),b.setStyle(s),g.canInsertTextAfter()?f.insertAfter(b):g.insertAfter(b)),b.select(0,0),f=b,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(f.isSegmented()||f.isToken()||!f.canInsertTextBefore()||!g.canInsertTextBefore()&&f.getPreviousSibling()===null)){let b=f.getPreviousSibling();if(ze(b)&&!Il(b)||(b=bn(),b.setFormat(i),g.canInsertTextBefore()?f.insertBefore(b):g.insertBefore(b)),b.select(),f=b,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&c!==p){const b=bn(f.getTextContent());b.setFormat(i),f.replace(b),f=b}else if(!this.isCollapsed()&&e!==""){const b=m.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||pe(b)&&(!b.canInsertTextBefore()||!b.canInsertTextAfter()))return this.insertText(""),E0(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(f.isToken()){const y=bn(e);return y.select(),void f.replace(y)}const b=f.getFormat(),_=f.getStyle();if(c!==u||b===i&&_===s){if(Xn(f)){const y=bn(e);return y.setFormat(i),y.setStyle(s),y.select(),void f.replace(y)}}else{if(f.getTextContent()!==""){const y=bn(e);if(y.setFormat(i),y.setStyle(s),y.select(),c===0)f.insertBefore(y,!1);else{const[w]=f.splitText(c);w.insertAfter(y,!1)}return void(y.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(s)}const v=u-c;f=f.spliceText(c,v,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=b,this.style=_))}else{const b=new Set([...f.getParentKeys(),...m.getParentKeys()]),_=pe(f)?f:f.getParentOrThrow();let v=pe(m)?m:m.getParentOrThrow(),y=m;if(!_.is(v)&&v.isInline())do y=v,v=v.getParentOrThrow();while(v.isInline());if(a.type==="text"&&(u!==0||m.getTextContent()==="")||a.type==="element"&&m.getIndexWithinParent()<u)if(ze(m)&&!m.isToken()&&u!==m.getTextContentSize()){if(m.isSegmented()){const E=bn(m.getTextContent());m.replace(E),m=E}Tr(a.getNode())||a.type!=="text"||(m=m.spliceText(0,u,"")),b.add(m.__key)}else{const E=m.getParentOrThrow();E.canBeEmpty()||E.getChildrenSize()!==1?m.remove():E.remove()}else b.add(m.__key);const w=v.getChildren(),k=new Set(d),S=_.is(v),C=_.isInline()&&f.getNextSibling()===null?_:f;for(let E=w.length-1;E>=0;E--){const A=w[E];if(A.is(f)||pe(A)&&A.isParentOf(f))break;A.isAttached()&&(!k.has(A)||A.is(y)?S||C.insertAfter(A,!1):A.remove())}if(!S){let E=v,A=null;for(;E!==null;){const O=E.getChildren(),$=O.length;($===0||O[$-1].is(A))&&(b.delete(E.__key),A=E),E=E.getParent()}}if(f.isToken())if(c===p)f.select();else{const E=bn(e);E.select(),f.replace(E)}else f=f.spliceText(c,p-c,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let E=1;E<h;E++){const A=d[E],O=A.__key;b.has(O)||A.remove()}}}removeText(){const e=je()===this;bv(this,sR(iR(this))),e&&je()!==this&&Kr(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void pr(null);const r=this.getNodes(),i=[];for(const w of r)ze(w)&&i.push(w);const s=w=>{r.forEach(k=>{if(pe(k)){const S=k.getFormatFlags(e,w);k.setTextFormat(S)}})},o=i.length;if(o===0)return this.toggleFormat(e),pr(null),void s(n);const a=this.anchor,c=this.focus,u=this.isBackward(),d=u?c:a,h=u?a:c;let f=0,p=i[0],g=d.type==="element"?0:d.offset;if(d.type==="text"&&g===p.getTextContentSize()&&(f=1,p=i[1],g=0),p==null)return;const m=p.getFormatFlags(e,n);s(m);const b=o-1;let _=i[b];const v=h.type==="text"?h.offset:_.getTextContentSize();if(p.is(_)){if(g===v)return;if(Il(p)||g===0&&v===p.getTextContentSize())p.setFormat(m);else{const w=p.splitText(g,v),k=g===0?w[0]:w[1];k.setFormat(m),d.type==="text"&&d.set(k.__key,0,"text"),h.type==="text"&&h.set(k.__key,v-g,"text")}return void(this.format=m)}g===0||Il(p)||([,p]=p.splitText(g),g=0),p.setFormat(m);const y=_.getFormatFlags(e,m);v>0&&(v===_.getTextContentSize()||Il(_)||([_]=_.splitText(v)),_.setFormat(y));for(let w=f+1;w<b;w++){const k=i[w],S=k.getFormatFlags(e,y);k.setFormat(S)}d.type==="text"&&d.set(p.__key,g,"text"),h.type==="text"&&h.set(_.__key,v,"text"),this.format=m|y}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const g=je();return Pe(g)||Le(134),g.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=cv(n,Hi),i=e[e.length-1];if(pe(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const g=qm(this);r.splice(g,0,e),i.selectEnd()}return}if(!e.some(g=>(pe(g)||Bt(g))&&!g.isInline())){pe(r)||Le(211,n.constructor.name,n.getType());const g=qm(this);return r.splice(g,0,e),void i.selectEnd()}const s=function(g){const m=fn();let b=null;for(let _=0;_<g.length;_++){const v=g[_],y=nn(v);if(y||Bt(v)&&v.isInline()||pe(v)&&v.isInline()||ze(v)||v.isParentRequired()){if(b===null&&(b=v.createParentElementNode(),m.append(b),y))continue;b!==null&&b.append(v)}else m.append(v),b=null}return m}(e),o=s.getLastDescendant(),a=s.getChildren(),c=!pe(r)||!r.isEmpty()?this.insertParagraph():null,u=a[a.length-1];let d=a[0];var h;pe(h=d)&&Hi(h)&&!h.isEmpty()&&pe(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(pe(r)||Le(211,n.constructor.name,n.getType()),r.append(...d.getChildren()),d=a[1]),d&&(r===null&&Le(212,n.constructor.name,n.getType()),function(g,m,b){const _=m.getParentOrThrow().getLastChild();let v=m;const y=[m];for(;v!==_;)v.getNextSibling()||Le(140),v=v.getNextSibling(),y.push(v);let w=g;for(const k of y)w=w.insertAfter(k)}(r,d));const f=cv(o,Hi);c&&pe(f)&&(c.canMergeWhenEmpty()||Hi(u))&&(f.append(...c.getChildren()),c.remove()),pe(r)&&r.isEmpty()&&r.remove(),o.selectEnd();const p=pe(r)?r.getLastChild():null;nn(p)&&f!==r&&p.remove()}insertParagraph(){if(this.anchor.key==="root"){const o=fn();return Rn().splice(this.anchor.offset,0,[o]),o.select(),o}const e=qm(this),n=cv(this.anchor.getNode(),Hi);pe(n)||Le(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(e){const n=_i();if(this.insertNodes([n]),e){const r=n.getParentOrThrow(),i=n.getIndexWithinParent();r.select(i,i)}}extract(){const e=this.getNodes(),n=e.length,r=n-1,i=this.anchor,s=this.focus;let o=e[0],a=e[r];const[c,u]=zm(this);if(n===0)return[];if(n===1){if(ze(o)&&!this.isCollapsed()){const h=c>u?u:c,f=c>u?c:u,p=o.splitText(h,f),g=h===0?p[0]:p[1];return g!=null?[g]:[]}return[o]}const d=i.isBefore(s);if(ze(o)){const h=d?c:u;h===o.getTextContentSize()?e.shift():h!==0&&([,o]=o.splitText(h),e[0]=o)}if(ze(a)){const h=a.getTextContent().length,f=d?u:c;f===0?e.pop():f!==h&&([a]=a.splitText(f),e[r]=a)}return e}modify(e,n,r){const i=this.focus,s=this.anchor,o=e==="move",a=Ru(i,n);if(Bt(a)&&!a.isIsolated()){if(o&&a.isKeyboardSelectable()){const p=A0();return p.add(a.__key),void Kr(p)}const f=n?a.getPreviousSibling():a.getNextSibling();if(ze(f)){const p=f.__key,g=n?f.getTextContent().length:0;return i.set(p,g,"text"),void(o&&s.set(p,g,"text"))}{const p=a.getParentOrThrow();let g,m;return pe(f)?(m=f.__key,g=n?f.getChildrenSize():0):(g=a.getIndexWithinParent(),m=p.__key,n||g++),i.set(m,g,"element"),void(o&&s.set(m,g,"element"))}}const c=_n(),u=qi(xi(c));if(!u)return;const d=c._blockCursorElement,h=c._rootElement;if(h===null||d===null||!pe(a)||a.isInline()||a.canBeEmpty()||ov(d,c,h),function(f,p,g,m){f.modify(p,g,m)}(u,e,n?"backward":"forward",r),u.rangeCount>0){const f=u.getRangeAt(0),p=this.anchor.getNode(),g=Tr(p)?p:HI(p);if(this.applyDOMRange(f),this.dirty=!0,!o){const m=this.getNodes(),b=[];let _=!1;for(let v=0;v<m.length;v++){const y=m[v];nv(y,g)?b.push(y):_=!0}if(_&&b.length>0)if(n){const v=b[0];pe(v)?v.selectStart():v.getParentOrThrow().selectStart()}else{const v=b[b.length-1];pe(v)?v.selectEnd():v.getParentOrThrow().selectEnd()}u.anchorNode===f.startContainer&&u.anchorOffset===f.startOffset||function(v){const y=v.focus,w=v.anchor,k=w.key,S=w.offset,C=w.type;w.set(y.key,y.offset,y.type,!0),y.set(k,S,C,!0)}(this)}}}forwardDeletion(e,n,r){if(!r&&(e.type==="element"&&pe(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const i=n.getParent(),s=n.getNextSibling()||(i===null?null:i.getNextSibling());if(pe(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let i=r.getNode();if(this.forwardDeletion(r,i,e))return;const s=rR(hh(r,e?"previous":"next"));if(s.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if(Ul(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(pe(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=zu(c);bv(this,Bl(u,u)),s.anchor.origin.remove()}return}if(a.type==="merge-next-block")return bv(this,Bl(!c.origin.isEmpty()&&a.block.isEmpty()?_v(zr(a.block,c.direction)):s.anchor,c)),this.removeText()}}else if(jl(c)){if(pe(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else a={block:c.origin,type:"merge-next-block"};continue}if(Bt(c.origin)){if(!c.origin.isIsolated())if(a.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&pe(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=A0();u.add(c.origin.getKey()),Kr(u)}else c.origin.remove();return}break}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&w0(this,r.getNode()))return}else{const a=o.type==="text"?o.getNode():null;if(i=r.type==="text"?r.getNode():null,a!==null&&a.isSegmented()){const c=o.offset,u=a.getTextContentSize();if(a.is(i)||e&&c!==u||!e&&c!==0)return void x0(a,e,c)}else if(i!==null&&i.isSegmented()){const c=r.offset,u=i.getTextContentSize();if(i.is(a)||e&&c!==0||!e&&c!==u)return void x0(i,e,c)}(function(c,u){const d=c.anchor,h=c.focus,f=d.getNode(),p=h.getNode();if(f===p&&d.type==="text"&&h.type==="text"){const g=d.offset,m=h.offset,b=g<m,_=b?g:m,v=b?m:g,y=v-1;_!==y&&function(w){return!(Z0(w)||CI(w))}(f.getTextContent().slice(_,v))&&(u?h.set(h.key,y,h.type):d.set(d.key,y,d.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Tr(r.getParent())&&r.getPreviousSibling()===null&&w0(this,r)}}deleteLine(e){if(this.isCollapsed()){const n=this.anchor.type==="element";if(n&&this.insertText(" "),this.modify("extend",e,"lineboundary"),this.isCollapsed()&&this.anchor.offset===0&&this.modify("extend",e,"character"),n){const r=e?this.anchor:this.focus;r.set(r.key,r.offset+1,r.type)}}this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function vs(t){return t instanceof Xf}function y0(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function zm(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,r]=e;return n.type==="element"&&r.type==="element"&&n.key===r.key&&n.offset===r.offset?[0,0]:[y0(n),y0(r)]}function w0(t,e){for(let n=e;n;n=n.getParent()){if(pe(n)){if(n.collapseAtStart(t))return!0;if(!n.isInline())break}if(n.getPreviousSibling())break}return!1}const CI=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function x0(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let o=0,a=0;for(let u=0;u<s;u++){const d=u===s-1;if(a=o,o+=i[u].length,e&&o===n||o>n||d){i.splice(u,1),d&&(a=void 0);break}}const c=i.join("").trim();c===""?r.remove():(r.setTextContent(c),r.select(a,a))}function k0(t,e,n,r){let i,s=e;if(wn(t)){let o=!1;const a=t.childNodes,c=a.length,u=r._blockCursorElement;s===c&&(o=!0,s=c-1);let d=a[s],h=!1;if(d===u)d=a[s+1],h=!0;else if(u!==null){const f=u.parentNode;t===f&&e>Array.prototype.indexOf.call(f.children,u)&&s--}if(i=Rl(d),ze(i))s=J0(i,o);else{let f=Rl(t);if(f===null)return null;if(pe(f)){const p=r.getElementByKey(f.getKey());p===null&&Le(214),[f,s]=f.getDOMSlot(p).resolveChildIndex(f,p,t,e),pe(f)||Le(215),o&&s>=f.getChildrenSize()&&(s=Math.max(0,f.getChildrenSize()-1));let m=f.getChildAtIndex(s);if(pe(m)&&function(b,_,v){const y=b.getParent();return v===null||y===null||!y.canBeEmpty()||y!==v.getNode()}(m,0,n)){const b=o?m.getLastDescendant():m.getFirstDescendant();b===null?f=m:(m=b,f=pe(m)?m:m.getParentOrThrow()),s=0}ze(m)?(i=m,f=null,s=J0(m,o)):m!==f&&o&&!h&&(pe(f)||Le(216),s=Math.min(f.getChildrenSize(),s+1))}else{const p=f.getIndexWithinParent();s=e===0&&Bt(f)&&Rl(t)===f?p:p+1,f=f.getParentOrThrow()}if(pe(f))return ms(f.__key,s,"element")}}else i=Rl(t);return ze(i)?ms(i.__key,s,"text"):null}function S0(t,e,n){const r=t.offset,i=t.getNode();if(r===0){const s=i.getPreviousSibling(),o=i.getParent();if(e){if((n||!e)&&s===null&&pe(o)&&o.isInline()){const a=o.getPreviousSibling();ze(a)&&t.set(a.__key,a.getTextContent().length,"text")}}else pe(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):ze(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(r===i.getTextContent().length){const s=i.getNextSibling(),o=i.getParent();if(e&&pe(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&pe(o)&&o.isInline()&&!o.canInsertTextAfter()){const a=o.getNextSibling();ze(a)&&t.set(a.__key,0,"text")}}}function E0(t,e,n){if(t.type==="text"&&e.type==="text"){const r=t.isBefore(e),i=t.is(e);S0(t,r,i),S0(e,!r,i),i&&e.set(t.key,t.offset,t.type);const s=_n();if(s.isComposing()&&s._compositionKey!==t.key&&Pe(n)){const o=n.anchor,a=n.focus;t.set(o.key,o.offset,o.type,!0),e.set(a.key,a.offset,a.type,!0)}}}function T0(t,e,n,r,i,s){if(t===null||n===null||!$u(i,t,n))return null;const o=k0(t,e,Pe(s)?s.anchor:null,i);if(o===null)return null;const a=k0(n,r,Pe(s)?s.focus:null,i);if(a===null)return null;if(o.type==="element"&&a.type==="element"){const c=Rl(t),u=Rl(n);if(Bt(c)&&Bt(u))return null}return E0(o,a,s),[o,a]}function jm(t){return pe(t)&&!t.isInline()}function C0(t,e,n,r,i,s){const o=Oo(),a=new fa(ms(t,e,i),ms(n,r,s),0,"");return a.dirty=!0,o._selection=a,a}function Um(){const t=ms("root",0,"element"),e=ms("root",0,"element");return new fa(t,e,0,"")}function A0(){return new Xf(new Set)}function Bm(t,e,n,r){const i=n._window;if(i===null)return null;const s=r||i.event,o=s?s.type:void 0,a=o==="selectionchange",c=!lm&&(a||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&s&&s.detail===3||o==="drop"||o===void 0);let u,d,h,f;if(Pe(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,h=e.anchorOffset,f=e.focusOffset,a&&Pe(t)&&!$u(n,u,d))return t.clone();const p=T0(u,h,d,f,n,t);if(p===null)return null;const[g,m]=p;return new fa(g,m,Pe(t)?t.format:0,Pe(t)?t.style:"")}function je(){return Oo()._selection}function Nl(){return _n()._editorState._selection}function Qf(t,e,n,r=1){const i=t.anchor,s=t.focus,o=i.getNode(),a=s.getNode();if(!e.is(o)&&!e.is(a))return;const c=e.__key;if(t.isCollapsed()){const u=i.offset;if(n<=u&&r>0||n<u&&r<0){const d=Math.max(0,u+r);i.set(c,d,"element"),s.set(c,d,"element"),P0(t)}}else{const u=t.isBackward(),d=u?s:i,h=d.getNode(),f=u?i:s,p=f.getNode();if(e.is(h)){const g=d.offset;(n<=g&&r>0||n<g&&r<0)&&d.set(c,Math.max(0,g+r),"element")}if(e.is(p)){const g=f.offset;(n<=g&&r>0||n<g&&r<0)&&f.set(c,Math.max(0,g+r),"element")}}P0(t)}function P0(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,s=e.getNode(),o=r.getNode();if(t.isCollapsed()){if(!pe(s))return;const a=s.getChildrenSize(),c=n>=a,u=c?s.getChildAtIndex(a-1):s.getChildAtIndex(n);if(ze(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),r.set(u.__key,d,"text")}}else{if(pe(s)){const a=s.getChildrenSize(),c=n>=a,u=c?s.getChildAtIndex(a-1):s.getChildAtIndex(n);if(ze(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(pe(o)){const a=o.getChildrenSize(),c=i>=a,u=c?o.getChildAtIndex(a-1):o.getChildAtIndex(i);if(ze(u)){let d=0;c&&(d=u.getTextContentSize()),r.set(u.__key,d,"text")}}}}function eh(t,e,n,r,i){let s=null,o=0,a=null;r!==null?(s=r.__key,ze(r)?(o=r.getTextContentSize(),a="text"):pe(r)&&(o=r.getChildrenSize(),a="element")):i!==null&&(s=i.__key,ze(i)?a="text":pe(i)&&(a="element")),s!==null&&a!==null?t.set(s,o,a):(o=e.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),t.set(n.__key,o,"element"))}function O0(t,e,n,r,i){t.type==="text"?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function AI(t,e,n,r,i,s,o){const a=r.anchorNode,c=r.focusNode,u=r.anchorOffset,d=r.focusOffset,h=document.activeElement;if(i.has("collaboration")&&h!==s||h!==null&&Ym(h))return;if(!Pe(e))return void(t!==null&&$u(n,a,c)&&r.removeAllRanges());const f=e.anchor,p=e.focus,g=f.key,m=p.key,b=dh(n,g),_=dh(n,m),v=f.offset,y=p.offset,w=e.format,k=e.style,S=e.isCollapsed();let C=b,E=_,A=!1;if(f.type==="text"){C=oh(b);const q=f.getNode();A=q.getFormat()!==w||q.getStyle()!==k}else Pe(t)&&t.anchor.type==="text"&&(A=!0);var O,$,N,I,j;if(p.type==="text"&&(E=oh(_)),C!==null&&E!==null&&(S&&(t===null||A||Pe(t)&&(t.format!==w||t.style!==k))&&(O=w,$=k,N=v,I=g,j=performance.now(),s0=[O,$,N,I,j]),u!==v||d!==y||a!==C||c!==E||r.type==="Range"&&S||(h!==null&&s.contains(h)||s.focus({preventScroll:!0}),f.type==="element"))){try{r.setBaseAndExtent(C,v,E,y)}catch{}if(!i.has("skip-scroll-into-view")&&e.isCollapsed()&&s!==null&&s===document.activeElement){const q=Pe(e)&&e.anchor.type==="element"?C.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(q!==null){let B;if(q instanceof Text){const W=document.createRange();W.selectNode(q),B=W.getBoundingClientRect()}else B=q.getBoundingClientRect();(function(W,G,J){const ne=o1(J),K=rv(ne);if(ne===null||K===null)return;let{top:Y,bottom:re}=G,ce=0,he=0,Q=J;for(;Q!==null;){const X=Q===ne.body;if(X)ce=0,he=xi(W).innerHeight;else{const _e=Q.getBoundingClientRect();ce=_e.top,he=_e.bottom}let de=0;if(Y<ce?de=-(ce-Y):re>he&&(de=re-he),de!==0)if(X)K.scrollBy(0,de);else{const _e=Q.scrollTop;Q.scrollTop+=de;const ve=Q.scrollTop-_e;Y-=ve,re-=ve}if(X)break;Q=Du(Q)}})(n,B,s)}}Om=!0}}function Eu(t){let e=je()||Nl();e===null&&(e=Rn().selectEnd()),e.insertNodes(t)}function PI(){const t=je();return t===null?"":t.getTextContent()}function qm(t){let e=t;t.isCollapsed()||e.removeText();const n=je();Pe(n)&&(e=n),Pe(e)||Le(161);const r=e.anchor;let i=r.getNode(),s=r.offset;for(;!Hi(i);){const o=i;if([i,s]=OI(i,s),o.is(i))break}return s}function OI(t,e){const n=t.getParent();if(!n){const i=fn();return Rn().append(i),i.select(),[Rn(),0]}if(ze(t)){const i=t.splitText(e);if(i.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,i[0].getIndexWithinParent()+s]}if(!pe(t)||e===0)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const i=new fa(ms(t.__key,e,"element"),ms(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}let Qn=null,Wn=null,Gr=!1,Hm=!1,th=0;const L0={characterData:!0,childList:!0,subtree:!0};function Tu(){return Gr||Qn!==null&&Qn._readOnly}function Er(){Gr&&Le(13)}function $0(){th>99&&Le(14)}function Oo(){return Qn===null&&Le(195,N0()),Qn}function _n(){return Wn===null&&Le(196,N0()),Wn}function N0(){let t=0;const e=new Set,n=ih.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=sh(i);if(Jm(s))t++;else if(s){let o=String(s.constructor.version||"<0.17.1");o===n&&(o+=" (separately built, likely a bundler configuration issue)"),e.add(o)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function LI(){return Wn}function I0(t,e,n){const r=e.__type,i=function(a,c){const u=a._nodes.get(c);return u===void 0&&Le(30,c),u}(t,r);let s=n.get(r);s===void 0&&(s=Array.from(i.transforms),n.set(r,s));const o=s.length;for(let a=0;a<o&&(s[a](e),e.isAttached());a++);}function R0(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function D0(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const i of r)n.add(i)}function $I(t){return Vm(t,_n()._nodes)}function Vm(t,e){const n=t.type,r=e.get(n);r===void 0&&Le(17,n);const i=r.klass;t.type!==i.getType()&&Le(18,i.name);const s=i.importJSON(t),o=t.children;if(pe(s)&&Array.isArray(o))for(let a=0;a<o.length;a++){const c=Vm(o[a],e);s.append(c)}return s}function M0(t,e,n){const r=Qn,i=Gr,s=Wn;Qn=e,Gr=!0,Wn=t;try{return n()}finally{Qn=r,Gr=i,Wn=s}}function Vs(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||r===null;if(n===null)return;const s=t._editorState,o=s._selection,a=n._selection,c=t._dirtyType!==oa,u=Qn,d=Gr,h=Wn,f=t._updating,p=t._observer;let g=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&p!==null){Wn=t,Qn=n,Gr=!1,t._updating=!0;try{const S=t._dirtyType,C=t._dirtyElements,E=t._dirtyLeaves;p.disconnect(),g=uI(s,n,t,S,C,E)}catch(S){if(S instanceof Error&&t._onError(S),Hm)throw S;return V0(t,null,r,n),Ix(t),t._dirtyType=Tl,Hm=!0,Vs(t,s),void(Hm=!1)}finally{p.observe(r,L0),t._updating=f,Qn=u,Gr=d,Wn=h}}n._readOnly||(n._readOnly=!0);const m=t._dirtyLeaves,b=t._dirtyElements,_=t._normalizedNodes,v=t._updateTags,y=t._deferred;c&&(t._dirtyType=oa,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(S,C){const E=S._decorators;let A=S._pendingDecorators||E;const O=C._nodeMap;let $;for($ in A)O.has($)||(A===E&&(A=G0(S)),delete A[$])}(t,n);const w=i?null:qi(xi(t));if(t._editable&&w!==null&&(c||a===null||a.dirty)&&r!==null&&!v.has("skip-dom-selection")){Wn=t,Qn=n;try{if(p!==null&&p.disconnect(),c||a===null||a.dirty){const S=t._blockCursorElement;S!==null&&ov(S,t,r),AI(o,a,t,w,v,r)}(function(S,C,E){let A=S._blockCursorElement;if(Pe(E)&&E.isCollapsed()&&E.anchor.type==="element"&&C.contains(document.activeElement)){const O=E.anchor,$=O.getNode(),N=O.offset;let I=!1,j=null;if(N===$.getChildrenSize())sv($.getChildAtIndex(N-1))&&(I=!0);else{const q=$.getChildAtIndex(N);if(q!==null&&sv(q)){const B=q.getPreviousSibling();(B===null||sv(B))&&(I=!0,j=S.getElementByKey(q.__key))}}if(I){const q=S.getElementByKey($.__key);return A===null&&(S._blockCursorElement=A=function(B){const W=B.theme,G=document.createElement("div");G.contentEditable="false",G.setAttribute("data-lexical-cursor","true");let J=W.blockCursor;if(J!==void 0){if(typeof J=="string"){const ne=Lf(J);J=W.blockCursor=ne}J!==void 0&&G.classList.add(...J)}return G}(S._config)),C.style.caretColor="transparent",void(j===null?q.appendChild(A):q.insertBefore(A,j))}}A!==null&&ov(A,S,C)})(t,r,a)}finally{p!==null&&p.observe(r,L0),Wn=h,Qn=u}}g!==null&&function(S,C,E,A,O){const $=Array.from(S._listeners.mutation),N=$.length;for(let I=0;I<N;I++){const[j,q]=$[I],B=C.get(q);B!==void 0&&j(B,{dirtyLeaves:A,prevEditorState:O,updateTags:E})}}(t,g,v,m,s),Pe(a)||a===null||o!==null&&o.is(a)||t.dispatchCommand(Wx,void 0);const k=t._pendingDecorators;k!==null&&(t._decorators=k,t._pendingDecorators=null,Cu("decorator",t,!0,k)),function(S,C,E){const A=K0(C),O=K0(E);A!==O&&Cu("textcontent",S,!0,O)}(t,e||s,n),Cu("update",t,!0,{dirtyElements:b,dirtyLeaves:m,editorState:n,normalizedNodes:_,prevEditorState:e||s,tags:v}),function(S,C){if(S._deferred=[],C.length!==0){const E=S._updating;S._updating=!0;try{for(let A=0;A<C.length;A++)C[A]()}finally{S._updating=E}}}(t,y),function(S){const C=S._updates;if(C.length!==0){const E=C.shift();if(E){const[A,O]=E;Wm(S,A,O)}}}(t)}function Cu(t,e,n,...r){const i=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let o=0;o<s.length;o++)s[o].apply(null,r)}finally{e._updating=i}}function F0(t,e,n){if(t._updating===!1||Wn!==t){let i=!1;return t.update(()=>{i=F0(t,e,n)}),i}const r=Xm(t);for(let i=4;i>=0;i--)for(let s=0;s<r.length;s++){const o=r[s]._commands.get(e);if(o!==void 0){const a=o[i];if(a!==void 0){const c=Array.from(a),u=c.length;for(let d=0;d<u;d++)if(c[d](n,t)===!0)return!0}}}return!1}function z0(t,e){const n=t._updates;let r=e||!1;for(;n.length!==0;){const i=n.shift();if(i){const[s,o]=i;let a;if(o!==void 0){if(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete){const c=t._pendingEditorState;c===null&&Le(191),c._flushSync=!0}a&&t._deferred.push(a),D0(t,o.tag)}s()}}return r}function Wm(t,e,n){const r=t._updateTags;let i,s=!1,o=!1;n!==void 0&&(i=n.onUpdate,D0(t,n.tag),s=n.skipTransforms||!1,o=n.discrete||!1),i&&t._deferred.push(i);const a=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=q0(c||a),u=!0),c._flushSync=o;const d=Qn,h=Gr,f=Wn,p=t._updating;Qn=c,Gr=!1,t._updating=!0,Wn=t;const g=t._headless||t.getRootElement()===null;try{u&&(g?a._selection!==null&&(c._selection=a._selection.clone()):c._selection=function(v,y){const w=v.getEditorState()._selection,k=qi(xi(v));return Pe(w)||w==null?Bm(w,k,v,y):w.clone()}(t,n&&n.event||null));const b=t._compositionKey;e(),s=z0(t,s),function(v,y){const w=y.getEditorState()._selection,k=v._selection;if(Pe(k)){const S=k.anchor,C=k.focus;let E;if(S.type==="text"&&(E=S.getNode(),E.selectionTransform(w,k)),C.type==="text"){const A=C.getNode();E!==A&&A.selectionTransform(w,k)}}}(c,t),t._dirtyType!==oa&&(s?function(v,y){const w=y._dirtyLeaves,k=v._nodeMap;for(const S of w){const C=k.get(S);ze(C)&&C.isAttached()&&C.isSimpleText()&&!C.isUnmergeable()&&Mx(C)}}(c,t):function(v,y){const w=y._dirtyLeaves,k=y._dirtyElements,S=v._nodeMap,C=$o(),E=new Map;let A=w,O=A.size,$=k,N=$.size;for(;O>0||N>0;){if(O>0){y._dirtyLeaves=new Set;for(const I of A){const j=S.get(I);ze(j)&&j.isAttached()&&j.isSimpleText()&&!j.isUnmergeable()&&Mx(j),j!==void 0&&R0(j,C)&&I0(y,j,E),w.add(I)}if(A=y._dirtyLeaves,O=A.size,O>0){th++;continue}}y._dirtyLeaves=new Set,y._dirtyElements=new Map;for(const I of $){const j=I[0],q=I[1];if(j!=="root"&&!q)continue;const B=S.get(j);B!==void 0&&R0(B,C)&&I0(y,B,E),k.set(j,q)}A=y._dirtyLeaves,O=A.size,$=y._dirtyElements,N=$.size,th++}y._dirtyLeaves=w,y._dirtyElements=k}(c,t),z0(t),function(v,y,w,k){const S=v._nodeMap,C=y._nodeMap,E=[];for(const[A]of k){const O=C.get(A);O!==void 0&&(O.isAttached()||(pe(O)&&Lx(O,A,S,C,E,k),S.has(A)||k.delete(A),E.push(A)))}for(const A of E)C.delete(A);for(const A of w){const O=C.get(A);O===void 0||O.isAttached()||(S.has(A)||w.delete(A),C.delete(A))}}(a,c,t._dirtyLeaves,t._dirtyElements)),b!==t._compositionKey&&(c._flushSync=!0);const _=c._selection;if(Pe(_)){const v=c._nodeMap,y=_.anchor.key,w=_.focus.key;v.get(y)!==void 0&&v.get(w)!==void 0||Le(19)}else vs(_)&&_._nodes.size===0&&(c._selection=null)}catch(b){return b instanceof Error&&t._onError(b),t._pendingEditorState=a,t._dirtyType=Tl,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Vs(t)}finally{Qn=d,Gr=h,Wn=f,t._updating=p,th=0}t._dirtyType!==oa||t._deferred.length>0||function(b,_){const v=_.getEditorState()._selection,y=b._selection;if(y!==null){if(y.dirty||!y.is(v))return!0}else if(v!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Vs(t)):u&&MI(()=>{Vs(t)}):(c._flushSync=!1,u&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function wi(t,e,n){t._updating?Wn===t?e():t._updates.push([e,n]):Wm(t,e,n)}class Au{constructor(e,n,r){this.element=e,this.before=n||null,this.after=r||null}withBefore(e){return new Au(this.element,e,this.after)}withAfter(e){return new Au(this.element,this.before,e)}withElement(e){return new Au(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&Le(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&Le(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&Le(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(El||fu);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&n.removeChild(r),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,i=this.before,s=document.createElement("br");if(r.insertBefore(s,i),e){const o=document.createElement("img");o.setAttribute("data-lexical-linebreak","true"),o.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",o.alt="",r.insertBefore(o,s),r.__lexicalLineBreak=o}else r.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,r,i){if(r===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,i))]}const s=j0(n,r);s.push(i);const o=j0(n,this.element);let a=e.getIndexWithinParent();for(let c=0;c<o.length;c++){const u=s[c],d=o[c];if(u===void 0||u<d)break;if(u>d){a+=1;break}}return[e.getParentOrThrow(),a]}}function j0(t,e){const n=[];let r=e;for(;r!==t&&r!==null;r=e.parentNode){let i=0;for(let s=r.previousSibling;s!==null;s=s.previousSibling)i++;n.push(i)}return r!==t&&Le(225),n.reverse()}class er extends Yf{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return eI[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let n=this.getFirstChild();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getChildrenKeys(){const e=[];let n=this.getFirstChild();for(;n!==null;)e.push(n.__key),n=n.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=_n()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),n=this.getParentOrThrow().getLastChild();return n!==null&&n.is(e)}getAllTextNodes(){const e=[];let n=this.getFirstChild();for(;n!==null;){if(ze(n)&&e.push(n),pe(n)){const r=n.getAllTextNodes();e.push(...r)}n=n.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;pe(e);){const n=e.getFirstChild();if(n===null)break;e=n}return e}getLastDescendant(){let e=this.getLastChild();for(;pe(e);){const n=e.getLastChild();if(n===null)break;e=n}return e}getDescendantByIndex(e){const n=this.getChildren(),r=n.length;if(e>=r){const s=n[r-1];return pe(s)&&s.getLastDescendant()||s||null}const i=n[e];return pe(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:yn(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&Le(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:yn(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&Le(96,this.__key),e}getChildAtIndex(e){const n=this.getChildrenSize();let r,i;if(e<n/2){for(r=this.getFirstChild(),i=0;r!==null&&i<=e;){if(i===e)return r;r=r.getNextSibling(),i++}return null}for(r=this.getLastChild(),i=n-1;r!==null&&i>=e;){if(i===e)return r;r=r.getPreviousSibling(),i--}return null}getTextContent(){let e="";const n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){const s=n[i];e+=s.getTextContent(),pe(s)&&i!==r-1&&!s.isInline()&&(e+=js)}return e}getTextContentSize(){let e=0;const n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){const s=n[i];e+=s.getTextContentSize(),pe(s)&&i!==r-1&&!s.isInline()&&(e+=js.length)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==""){const n=Ox[e];return!!(this.getFormat()&n)}return!1}hasTextFormat(e){const n=aa[e];return!!(this.getTextFormat()&n)}getFormatFlags(e,n){return ah(this.getLatest().__textFormat,e,n)}getTextStyle(){return this.getLatest().__textStyle}select(e,n){Er();const r=je();let i=e,s=n;const o=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&n===0){const c=this.getFirstChild();if(ze(c)||pe(c))return c.select(0,0)}else if(!(e!==void 0&&e!==o||n!==void 0&&n!==o)){const c=this.getLastChild();if(ze(c)||pe(c))return c.select()}}i===void 0&&(i=o),s===void 0&&(s=o);const a=this.__key;return Pe(r)?(r.anchor.set(a,i,"element"),r.focus.set(a,s,"element"),r.dirty=!0,r):C0(a,i,a,s,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?Ox[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const n=this.getWritable();return n.__textFormat=e,n}setTextStyle(e){const n=this.getWritable();return n.__textStyle=e,n}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){const i=r.length,s=this.getChildrenSize(),o=this.getWritable();e+n<=s||Le(226,String(e),String(n),String(s));const a=o.__key,c=[],u=[],d=this.getChildAtIndex(e+n);let h=null,f=s-n+i;if(e!==0)if(e===s)h=this.getLastChild();else{const g=this.getChildAtIndex(e);g!==null&&(h=g.getPreviousSibling())}if(n>0){let g=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<n;m++){g===null&&Le(100);const b=g.getNextSibling(),_=g.__key;ha(g.getWritable()),u.push(_),g=b}}let p=h;for(let g=0;g<i;g++){const m=r[g];p!==null&&m.is(p)&&(h=p=p.getPreviousSibling());const b=m.getWritable();b.__parent===a&&f--,ha(b);const _=m.__key;if(p===null)o.__first=_,b.__prev=null;else{const v=p.getWritable();v.__next=_,b.__prev=v.__key}m.__key===a&&Le(76),b.__parent=a,c.push(_),p=m}if(e+n===s)p!==null&&(p.getWritable().__next=null,o.__last=p.__key);else if(d!==null){const g=d.getWritable();if(p!==null){const m=p.getWritable();g.__prev=p.__key,m.__next=d.__key}else g.__prev=null}if(o.__size=f,u.length){const g=je();if(Pe(g)){const m=new Set(u),b=new Set(c),{anchor:_,focus:v}=g;U0(_,m,b)&&eh(_,_.getNode(),this,h,d),U0(v,m,b)&&eh(v,v.getNode(),this,h,d),f!==0||this.canBeEmpty()||ki(this)||this.remove()}}return o}getDOMSlot(e){return new Au(e)}exportDOM(e){const{element:n}=super.exportDOM(e);if(wn(n)){const r=this.getIndent();r>0&&(n.style.paddingInlineStart=40*r+"px")}return{element:n}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},n=this.getTextFormat(),r=this.getTextStyle();return n!==0&&(e.textFormat=n),r!==""&&(e.textStyle=r),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,n){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,n,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,n){const r=this.getDOMSlot(e);let i=r.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const o=n.getElementByKey(s.getKey());o!==null&&(i==null?(r.insertChild(o),i=o):i!==o&&r.replaceChild(o,i),i=i.nextSibling)}}}function pe(t){return t instanceof er}function U0(t,e,n){let r=t.getNode();for(;r;){const i=r.__key;if(e.has(i)&&!n.has(i))return!0;r=r.getParent()}return!1}class B0 extends Yf{decorate(e,n){Le(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Bt(t){return t instanceof B0}class Pu extends er{static getType(){return"root"}static clone(){return new Pu}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){Le(51)}getTextContent(){const e=this.__cachedText;return!Tu()&&_n()._dirtyType!==oa||e===null?super.getTextContent():e}remove(){Le(52)}replace(e){Le(53)}insertBefore(e){Le(54)}insertAfter(e){Le(55)}updateDOM(e,n){return!1}append(...e){for(let n=0;n<e.length;n++){const r=e[n];pe(r)||Bt(r)||Le(56)}return super.append(...e)}static importJSON(e){return Rn().updateFromJSON(e)}collapseAtStart(){return!0}}function Tr(t){return t instanceof Pu}function q0(t){return new nh(new Map(t._nodeMap))}function Gm(){return new nh(new Map([["root",new Pu]]))}function H0(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&Le(130,n.name),pe(t)){const r=e.children;Array.isArray(r)||Le(59,n.name);const i=t.getChildren();for(let s=0;s<i.length;s++){const o=H0(i[s]);r.push(o)}}return e}class nh{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return M0(n&&n.editor||null,this,e)}clone(e){const n=new nh(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return M0(null,this,()=>({root:H0(Rn())}))}}class Km extends er{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class Ou extends er{static getType(){return"paragraph"}static clone(e){return new Ou(e.__key)}createDOM(e){const n=document.createElement("p"),r=Ml(e.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(e,n,r){return!1}static importDOM(){return{p:e=>({conversion:NI,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(wn(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();n.style.textAlign=r;const i=this.getDirection();i&&(n.dir=i)}return{element:n}}static importJSON(e){return fn().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const r=fn();r.setTextFormat(e.format),r.setTextStyle(e.style);const i=this.getDirection();return r.setDirection(i),r.setFormat(this.getFormatType()),r.setStyle(this.getTextStyle()),this.insertAfter(r,n),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||ze(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function NI(t){const e=fn();return t.style&&(e.setFormat(t.style.textAlign),dv(t,e)),{node:e}}function fn(){return Fr(new Ou)}function rh(t){return t instanceof Ou}const Mt=0,Lo=1,Lu=2,II=4;function V0(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=Gm(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=oa,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function RI(t){const e=t||{},n=LI(),r=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,o=Gm(),a=e.namespace||(i!==null?i._config.namespace:X0()),c=e.editorState,u=[Pu,Po,ku,Su,Ou,Km,...e.nodes||[]],{onError:d,html:h}=e,f=e.editable===void 0||e.editable;let p;if(t===void 0&&n!==null)p=n._nodes;else{p=new Map;for(let m=0;m<u.length;m++){let b=u[m],_=null,v=null;if(typeof b!="function"){const S=b;b=S.replace,_=S.with,v=S.withKlass||null}const y=b.getType(),w=b.transform(),k=new Set;w!==null&&k.add(w),p.set(y,{exportDOM:h&&h.export?h.export.get(b):void 0,klass:b,replace:_,replaceWithKlass:v,transforms:k})}}const g=new ih(o,i,p,{disableEvents:s,namespace:a,theme:r},d||console.error,function(m,b){const _=new Map,v=new Set,y=w=>{Object.keys(w).forEach(k=>{let S=_.get(k);S===void 0&&(S=[],_.set(k,S)),S.push(w[k])})};return m.forEach(w=>{const k=w.klass.importDOM;if(k==null||v.has(k))return;v.add(k);const S=k.call(w.klass);S!==null&&y(S)}),b&&y(b),_}(p,h?h.import:void 0),f);return c!==void 0&&(g._pendingEditorState=c,g._dirtyType=Tl),g}class ih{constructor(e,n,r,i,s,o,a){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=oa,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=X0(),this._onError=s,this._htmlConversions=o,this._editable=a,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&Le(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);s===void 0&&Le(36,String(e));const o=s[r];return o.add(n),()=>{o.delete(n),s.every(a=>a.size===0)&&i.delete(e)}}registerMutationListener(e,n,r){const i=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;s.set(n,i);const o=r&&r.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(n,i),()=>{s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&Le(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const r=this._editorState,i=u1(r).get(n.getType());if(!i)return;const s=new Map;for(const o of i.keys())s.set(o,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const r=this.getRegisteredNode(e);return r.transforms.add(n),r}registerNodeTransform(e,n){const r=this.registerNodeTransformToKlass(e,n),i=[r],s=r.replaceWithKlass;if(s!=null){const o=this.registerNodeTransformToKlass(s,n);i.push(o)}return function(o,a){const c=u1(o.getEditorState()),u=[];for(const d of a){const h=c.get(d);h&&u.push(h)}u.length!==0&&o.update(()=>{for(const d of u)for(const h of d.keys()){const f=yn(h);f&&f.markDirty()}},o._pendingEditorState===null?{tag:"history-merge"}:void 0)}(this,i.map(o=>o.klass.getType())),()=>{i.forEach(o=>o.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return Ye(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const r=Ml(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,V0(this,n,e,i),n!==null&&(this._config.disableEvents||_I(n),r!=null&&n.classList.remove(...r)),e!==null){const s=rv(e),o=e.style;o.userSelect="text",o.whiteSpace="pre-wrap",o.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=Tl,Ix(this),this._updateTags.add("history-merge"),Vs(this),this._config.disableEvents||function(a,c){const u=a.ownerDocument,d=Gf.get(u);(d===void 0||d<1)&&u.addEventListener("selectionchange",d0),Gf.set(u,(d||0)+1),a.__lexicalEditor=c;const h=u0(a);for(let f=0;f<Am.length;f++){const[p,g]=Am[f],m=typeof g=="function"?b=>{h0(b)||(f0(b),(c.isEditable()||p==="click")&&g(b,c))}:b=>{if(h0(b))return;f0(b);const _=c.isEditable();switch(p){case"cut":return _&&Ye(c,Em,b);case"copy":return Ye(c,Hf,b);case"paste":return _&&Ye(c,bm,b);case"dragstart":return _&&Ye(c,n0,b);case"dragover":return _&&Ye(c,r0,b);case"dragend":return _&&Ye(c,hI,b);case"focus":return _&&Ye(c,mI,b);case"blur":return _&&Ye(c,vI,b);case"drop":return _&&Ye(c,t0,b)}};a.addEventListener(p,m),h.push(()=>{a.removeEventListener(p,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add("history-merge"),Vs(this);Cu("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Le(38);let r=e;r._readOnly&&(r=q0(e),r._selection=e._selection?e._selection.clone():null),Nx(this);const i=this._pendingEditorState,s=this._updateTags,o=n!==void 0?n.tag:null;i===null||i.isEmpty()||(o!=null&&s.add(o),Vs(this)),this._pendingEditorState=r,this._dirtyType=Tl,this._dirtyElements.set("root",!1),this._compositionKey=null,o!=null&&s.add(o),this._updating||Vs(this)}parseEditorState(e,n){return function(r,i,s){const o=Gm(),a=Qn,c=Gr,u=Wn,d=i._dirtyElements,h=i._dirtyLeaves,f=i._cloneNotNeeded,p=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,Qn=o,Gr=!1,Wn=i;try{const g=i._nodes;Vm(r.root,g),s&&s(),o._readOnly=!0}catch(g){g instanceof Error&&i._onError(g)}finally{i._dirtyElements=d,i._dirtyLeaves=h,i._cloneNotNeeded=f,i._dirtyType=p,Qn=a,Gr=c,Wn=u}return o}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Vs(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(r,i,s){r._updating?r._updates.push([i,s]):Wm(r,i,s)})(this,e,n)}focus(e,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),wi(this,()=>{const i=je(),s=Rn();i!==null?i.dirty=!0:s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),BI("focus"),qI(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=qi(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Cu("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}ih.version="0.25.0+prod.esm";let DI=1;const MI=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Ym(t){const e=document.activeElement;if(!wn(e))return!1;const n=e.nodeName;return Bt(No(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&sh(e)==null)}function $u(t,e,n){const r=t.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(n)&&e!==null&&!Ym(e)&&Zm(e)===t}catch{return!1}}function Jm(t){return t instanceof ih}function Zm(t){let e=t;for(;e!=null;){const n=sh(e);if(Jm(n))return n;e=Du(e)}return null}function sh(t){return t?t.__lexicalEditor:null}function Il(t){return t.isToken()||t.isSegmented()}function Ws(t){return Fl(t)&&t.nodeType===qN}function FI(t){return Fl(t)&&t.nodeType===HN}function oh(t){let e=t;for(;e!=null;){if(Ws(e))return e;e=e.firstChild}return null}function ah(t,e,n){const r=aa[e];if(n!==null&&(t&r)==(n&r))return t;let i=t^r;return e==="subscript"?i&=-65:e==="superscript"?i&=-33:e==="lowercase"?(i&=-513,i&=-1025):e==="uppercase"?(i&=-257,i&=-1025):e==="capitalize"&&(i&=-257,i&=-513),i}function zI(t){return ze(t)||nn(t)||Bt(t)}function jI(t,e){if(e!=null)return void(t.__key=e);Er(),$0();const n=_n(),r=Oo(),i=""+DI++;r._nodeMap.set(i,t),pe(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=Cx,t.__key=i}function ha(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling();if(i===null)if(s!==null){const o=s.getWritable();r.__first=s.__key,o.__prev=null}else r.__first=null;else{const o=i.getWritable();if(s!==null){const a=s.getWritable();a.__prev=o.__key,o.__next=a.__key}else o.__next=null;n.__prev=null}if(s===null)if(i!==null){const o=i.getWritable();r.__last=i.__key,o.__next=null}else r.__last=null;else{const o=s.getWritable();if(i!==null){const a=i.getWritable();a.__next=o.__key,o.__prev=a.__key}else o.__prev=null;n.__next=null}r.__size--,n.__parent=null}}function lh(t){$0();const e=t.getLatest(),n=e.__parent,r=Oo(),i=_n(),s=r._nodeMap,o=i._dirtyElements;n!==null&&function(c,u,d){let h=c;for(;h!==null;){if(d.has(h))return;const f=u.get(h);if(f===void 0)break;d.set(h,!1),h=f.__parent}}(n,s,o);const a=e.__key;i._dirtyType=Cx,pe(t)?o.set(a,!0):i._dirtyLeaves.add(a)}function pr(t){Er();const e=_n(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const r=yn(n);r!==null&&r.getWritable()}if(t!==null){const r=yn(t);r!==null&&r.getWritable()}}}function $o(){return Tu()?null:_n()._compositionKey}function yn(t,e){const n=(e||Oo())._nodeMap.get(t);return n===void 0?null:n}function W0(t,e){const n=ch(t,_n());return n!==void 0?yn(n,e):null}function ch(t,e){return t[`__lexicalKey_${e._key}`]}function No(t,e){let n=t;for(;n!=null;){const r=W0(n,e);if(r!==null)return r;n=Du(n)}return null}function G0(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function K0(t){return t.read(()=>Rn().getTextContent())}function Rn(){return Y0(Oo())}function Y0(t){return t._nodeMap.get("root")}function Kr(t){Er();const e=Oo();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Rl(t){const e=_n(),n=function(r,i){let s=r;for(;s!=null;){const o=ch(s,i);if(o!==void 0)return o;s=Du(s)}return null}(t,e);return n===null?t===e.getRootElement()?yn("root"):null:yn(n)}function J0(t,e){return e?t.getTextContentSize():0}function Z0(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Xm(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function X0(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Q0(t){return Ws(t)?t.nodeValue:null}function Qm(t,e,n){const r=qi(xi(e));if(r===null)return;const i=r.anchorNode;let{anchorOffset:s,focusOffset:o}=r;if(i!==null){let a=Q0(i);const c=No(i);if(a!==null&&ze(c)){if(a===If&&n){const u=n.length;a=n,s=u,o=u}a!==null&&ev(c,a,s,o,t)}}}function ev(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const o=s.isComposing();let a=e;(o||i)&&e[e.length-1]===If&&(a=e.slice(0,-1));const c=s.getTextContent();if(i||a!==c){if(a===""){if(pr(null),fu||El||Of)s.remove();else{const m=_n();setTimeout(()=>{m.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Nl(),h=s.getTextContentSize(),f=$o(),p=s.getKey();if(s.isToken()||f!==null&&p===f&&!o||Pe(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===t.__key&&d.anchor.offset===0&&!s.canInsertTextBefore()&&!o||d.focus.key===t.__key&&d.focus.offset===h&&!s.canInsertTextAfter()&&!o))return void s.markDirty();const g=je();if(!Pe(g)||n===null||r===null)return void s.setTextContent(a);if(g.setTextNodeRange(s,n,s,r),s.isSegmented()){const m=bn(s.getTextContent());s.replace(m),s=m}s.setTextContent(a)}}}function e1(t){return t==="ArrowLeft"}function t1(t){return t==="ArrowRight"}function Nu(t,e){return ji?t:e}function n1(t){return t==="Enter"}function Dl(t){return t==="Backspace"}function Iu(t){return t==="Delete"}function r1(t,e,n){return t.toLowerCase()==="a"&&Nu(e,n)}function UI(t){const e=Rn();if(Pe(t)){const n=t.anchor,r=t.focus,i=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(i.getKey(),0,"element"),r.set(i.getKey(),i.getChildrenSize(),"element"),Cl(t),t}{const n=e.select(0,e.getChildrenSize());return Kr(Cl(n)),n}}function Ml(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(r!==void 0)return r;const i=t[e];if(typeof i=="string"){const s=Lf(i);return n[e]=s,s}return i}function tv(t,e,n,r,i){if(n.size===0)return;const s=r.__type,o=r.__key,a=e.get(s);a===void 0&&Le(33,s);const c=a.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(o),h=d==="destroyed"&&i==="created";(d===void 0||h)&&u.set(o,h?"updated":i)}function i1(t,e,n){const r=t.getParent();let i=n,s=t;return r!==null&&(e&&n===0?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function Ru(t,e){const n=t.offset;if(t.type==="element")return i1(t.getNode(),e,n);{const r=t.getNode();if(e&&n===0||!e&&n===r.getTextContentSize()){const i=e?r.getPreviousSibling():r.getNextSibling();return i===null?i1(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):i}}return null}function s1(t){const e=xi(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function Ye(t,e,n){return F0(t,e,n)}function uh(t){return!Tr(t)&&!t.isLastChild()&&!t.isInline()}function dh(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&Le(75,e),n}function Du(t){const e=t.assignedSlot||t.parentElement;return av(e)?e.host:e}function o1(t){return FI(t)?t:wn(t)?t.ownerDocument:null}function BI(t){Er(),_n()._updateTags.add(t)}function qI(t){Er(),_n()._deferred.push(t)}function nv(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function rv(t){const e=o1(t);return e?e.defaultView:null}function xi(t){const e=t._window;return e===null&&Le(78),e}function HI(t){let e=t.getParentOrThrow();for(;e!==null;){if(ki(e))return e;e=e.getParentOrThrow()}return e}function ki(t){return Tr(t)||pe(t)&&t.isShadowRoot()}function Fr(t){const e=_n(),n=t.constructor.getType(),r=e._nodes.get(n);r===void 0&&Le(200,t.constructor.name,n);const{replace:i,replaceWithKlass:s}=r;if(i!==null){const o=i(t),a=o.constructor;return s!==null?o instanceof s||Le(201,s.name,s.getType(),a.name,a.getType(),t.constructor.name,n):o instanceof t.constructor&&a!==t.constructor||Le(202,a.name,a.getType(),t.constructor.name,n),o.__key===t.__key&&Le(203,t.constructor.name,n,a.name,a.getType()),o}return t}function iv(t,e){!Tr(t.getParent())||pe(e)||Bt(e)||Le(99)}function VI(t){const e=yn(t);return e===null&&Le(63,t),e}function sv(t){return(Bt(t)||pe(t)&&!t.canBeEmpty())&&!t.isInline()}function ov(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;r!==null&&r.removeChild(t)}function qi(t){return zi?(t||window).getSelection():null}function WI(t){const e=rv(t);return e?e.getSelection():null}function a1(t){return wn(t)&&t.tagName==="A"}function wn(t){return Fl(t)&&t.nodeType===BN}function Fl(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function av(t){return Fl(t)&&t.nodeType===VN}function lv(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function fh(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Hi(t){if(Bt(t)&&!t.isInline())return!0;if(!pe(t)||ki(t))return!1;const e=t.getFirstChild(),n=e===null||nn(e)||ze(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function cv(t,e){let n=t;for(;n!==null&&n.getParent()!==null&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function l1(){return _n()}const c1=new WeakMap,GI=new Map;function u1(t){if(!t._readOnly&&t.isEmpty())return GI;t._readOnly||Le(192);let e=c1.get(t);return e||(e=function(n){const r=new Map;for(const[i,s]of n._nodeMap){const o=s.__type;let a=r.get(o);a||(a=new Map,r.set(o,a)),a.set(i,s)}return r}(t),c1.set(t,e)),e}function uv(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function dv(t,e){const n=(parseInt(t.style.paddingInlineStart,10)||0)/40;e.setIndent(n)}function KI(t){t.__lexicalUnmanaged=!0}function YI(t){return t.__lexicalUnmanaged===!0}const JI={next:"previous",previous:"next"};class fv{constructor(e){this.origin=e}[Symbol.iterator](){return mv({hasNext:jl,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return zr(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return zr(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,n)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let s=this;const o=this.getParentAtCaret(),a=new Map;for(let c=s.getAdjacentCaret();c!==null&&a.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();a.set(u.getKey(),u)}for(const c of i){if(a.size>0){const u=s.getNodeAtCaret();if(u){if(a.delete(u.getKey()),a.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(o)&&c.remove(),u.replace(c)}}else u===null&&Le(263,Array.from(a).join(" "))}else s.insert(c);s=zr(c,this.direction)}for(const c of a.values())c.remove();return this}}class Mu extends fv{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Io(e,this.direction)}getParentCaret(e="root"){return zr(hv(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=zl(this.direction);return zr(this.getNodeAtCaret(),e)||Io(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Mu&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const ZI={root:Tr,shadowRoot:ki};function zl(t){return JI[t]}function hv(t,e="root"){return ZI[e](t)?null:t}class pa extends fv{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:zr(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return pe(this.origin)?Io(this.origin,this.direction):null}getParentCaret(e="root"){return zr(hv(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=zl(this.direction);return zr(this.getNodeAtCaret(),e)||Io(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof pa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof pa||e instanceof ga)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ga extends fv{type="text";constructor(e,n){super(e),this.offset=n}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ma(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return zr(hv(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ma(this.origin,zl(this.direction),this.offset)}isSamePointCaret(e){return e instanceof ga&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof pa||e instanceof ga)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return zr(this.origin,this.direction)}}function Fu(t){return t instanceof ga}function jl(t){return t instanceof pa}function Ul(t){return t instanceof Mu}const XI={next:class extends ga{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ga{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},QI={next:class extends pa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends pa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},eR={next:class extends Mu{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Mu{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function zr(t,e){return t?new QI[e](t):null}function ma(t,e,n){return t?new XI[e](t,pv(t,n)):null}function pv(t,e){const n=t.getTextContentSize(),r=e==="next"?n:e==="previous"?0:e;return r>=0&&r<=n||Le(264,String(e),String(n)),r}function d1(t,e){return new nR(t,e)}function Io(t,e){return pe(t)?new eR[e](t):null}function tR(t){return t&&t.getChildCaret()||t}function f1(t){return t&&tR(t.getAdjacentCaret())}class gv{type="node-caret-range";constructor(e,n,r){this.anchor=e,this.focus=n,this.direction=r}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new gv(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i];return Fu(s)?function(o,a){const{direction:c,origin:u}=o,d=pv(u,a==="focus"?zl(c):c);return d1(o,d-o.offset)}(s,i):null},n=e("anchor"),r=e("focus");if(n&&r){const{caret:i}=n,{caret:s}=r;if(i.isSameNodeCaret(s))return[d1(i,s.offset-i.offset),null]}return[n,r]}iterNodeCarets(e="root"){const n=Fu(this.anchor)?this.anchor.getSiblingCaret():this.anchor,{focus:r}=this,i=Fu(r),s=o=>o.isSameNodeCaret(r)?null:f1(o)||o.getParentCaret(e);return mv({hasNext:o=>o!==null&&!(i&&r.isSameNodeCaret(o)),initial:n.isSameNodeCaret(r)?null:s(n),map:o=>o,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class nR{type="slice";constructor(e,n){this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,r=n+e;return r<n?[r,n]:[n,r]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[r,i]=this.getSliceIndices(),s=e.getTextContent();return ma(e.setTextContent(s.slice(0,r)+s.slice(i)),n,r)}}function rR(t){return Bl(t,zr(Rn(),t.direction))}function Bl(t,e){return t.direction!==e.direction&&Le(265),new gv(t,e,t.direction)}function mv(t){const{initial:e,hasNext:n,step:r,map:i}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const o={done:!1,value:i(s)};return s=r(s),o}}}function hh(t,e){const{type:n,key:r,offset:i}=t,s=VI(t.key);return n==="text"?(ze(s)||Le(266,s.getType(),r),ma(s,e,i)):(pe(s)||Le(267,s.getType(),r),aR(s,t.offset,e))}function vv(t,e){const{origin:n,direction:r}=e,i=r==="next";Fu(e)?t.set(n.getKey(),e.offset,"text"):jl(e)?ze(n)?t.set(n.getKey(),pv(n,r),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):(Ul(e)&&pe(n)||Le(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function bv(t,e){vv(t.anchor,e.anchor),vv(t.focus,e.focus)}function iR(t){const{anchor:e,focus:n}=t,r=n.isBefore(e)?"previous":"next";return Bl(hh(e,r),hh(n,r))}function _v(t){const{direction:e,origin:n}=t,r=zr(n,zl(e)).getNodeAtCaret();return r?zr(r,e):Io(n.getParentOrThrow(),e)}function h1(t,e="root"){const n=[t];for(let r=Ul(t)?t.getParentCaret(e):t.getSiblingCaret();r!==null;r=r.getParentCaret(e))n.push(_v(r));return n}function yv(t){return!!t&&t.origin.isAttached()}function sR(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",r="next";let i=e;const s=oR(t,r),o=h1(s.anchor,n),a=h1(s.focus.getFlipped(),n),c=new Set,u=[];for(const g of s.iterNodeCarets(n))if(Ul(g))c.add(g.origin.getKey());else if(jl(g)){const{origin:m}=g;pe(m)&&!c.has(m.getKey())||u.push(m)}for(const g of u)g.remove();for(const g of s.getTextSlices()){if(!g)continue;const{origin:m}=g.caret,b=m.getTextContentSize(),_=_v(zr(m,r)),v=m.getMode();if(Math.abs(g.distance)===b&&i==="removeEmptySlices"||v==="token"&&g.distance!==0)_.remove();else if(g.distance!==0){i="removeEmptySlices";let y=g.removeTextSlice();const w=g.caret.origin;if(v==="segmented"){const k=y.origin,S=bn(k.getTextContent()).setStyle(k.getStyle()).setFormat(k.getFormat());_.replaceOrInsert(S),y=ma(S,r,y.offset)}w.is(o[0].origin)&&(o[0]=y),w.is(a[0].origin)&&(a[0]=y.getFlipped())}}let d,h;for(const g of o)if(yv(g)){d=zu(g);break}for(const g of a)if(yv(g)){h=zu(g);break}const f=function(g,m,b){if(!g||!m)return null;const _=g.getParentAtCaret(),v=m.getParentAtCaret();if(!_||!v)return null;const y=_.getParents().reverse();y.push(_);const w=v.getParents().reverse();w.push(v);const k=Math.min(y.length,w.length);let S;for(S=0;S<k&&y[S]===w[S];S++);const C=(O,$)=>{let N;for(let I=S;I<O.length;I++){const j=O[I];if(ki(j))return;!N&&$(j)&&(N=j)}return N},E=C(y,Hi),A=E&&C(w,O=>b.has(O.getKey())&&Hi(O));return E&&A?[E,A]:null}(d,h,c);if(f){const[g,m]=f;Io(g,"previous").splice(0,m.getChildren()),m.remove()}const p=[d,h,...o,...a].find(yv);if(p){const g=ph(zu(p),t.direction);return Bl(g,g)}Le(269,JSON.stringify(o.map(g=>g.origin.__key)))}function zu(t){const e=function(i){let s=i;for(;Ul(s);){const o=f1(s);if(!Ul(o))break;s=o}return s}(t.getLatest()),{direction:n}=e;if(ze(e.origin))return Fu(e)?e:ma(e.origin,n,n);const r=e.getAdjacentCaret();return jl(r)&&ze(r.origin)?ma(r.origin,n,zl(n)):e}function ph(t,e){return t.direction===e?t:t.getFlipped()}function oR(t,e){return t.direction===e?t:Bl(ph(t.focus,e),ph(t.anchor,e))}function aR(t,e,n){let r=Io(t,"next");for(let i=0;i<e;i++){const s=r.getAdjacentCaret();if(s===null)break;r=s}return ph(r,n)}function lR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}lR(function(t){const e=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let r=1;r<arguments.length;r++)n.append("v",arguments[r]);throw e.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const cR=new Map;function uR(t){const e={};if(!t)return e;const n=t.split(";");for(const r of n)if(r!==""){const[i,s]=r.split(/:([^]+)/);i&&s&&(e[i.trim()]=s.trim())}return e}function p1(t,e){const n=t.getStartEndPoints();if(e.isSelected(t)&&!e.isSegmented()&&!e.isToken()&&n!==null){const[r,i]=n,s=t.isBackward(),o=r.getNode(),a=i.getNode(),c=e.is(o),u=e.is(a);if(c||u){const[d,h]=zm(t),f=o.is(a),p=e.is(s?a:o),g=e.is(s?o:a);let m,b=0;return f?(b=d>h?h:d,m=d>h?d:h):p?(b=s?h:d,m=void 0):g&&(b=0,m=s?d:h),e.__text=e.__text.slice(b,m),e}}return e}function dR(t){const e=t.getStyle(),n=uR(e);cR.set(e,n)}function fR(t,e){const n=t.getFormatType(),r=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),r!==e.getIndent()&&e.setIndent(r)}function gh(t,e,n=fR){if(t===null)return;const r=t.getStartEndPoints(),i=new Map;let s=null;if(r){const[o,a]=r;s=Um(),s.anchor.set(o.key,o.offset,o.type),s.focus.set(a.key,a.offset,a.type);const c=v1(o.getNode(),Hi),u=v1(a.getNode(),Hi);pe(c)&&i.set(c.getKey(),c),pe(u)&&i.set(u.getKey(),u)}for(const o of t.getNodes())pe(o)&&Hi(o)&&i.set(o.getKey(),o);for(const[o,a]of i){const c=e();n(a,c),a.replace(c,!0),s&&(o===s.anchor.key&&(s.anchor.key=c.getKey()),o===s.focus.key&&(s.focus.key=c.getKey()))}s&&t.is(je())&&Kr(s)}function g1(t,e){const n=Ru(t.focus,e);return Bt(n)&&!n.isIsolated()||pe(n)&&!n.isInline()&&!n.canBeEmpty()}function hR(t,e,n,r){t.modify(e?"extend":"move",n,r)}function pR(t){const e=t.anchor.getNode();return(Tr(e)?e:e.getParentOrThrow()).getDirection()==="rtl"}function m1(t,e,n){const r=pR(t);hR(t,e,n?!r:r,"character")}function v1(t,e){let n=t;for(;n!==null&&n.getParent()!==null&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function gR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var mR=gR(function(t){const e=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let r=1;r<arguments.length;r++)n.append("v",arguments[r]);throw e.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const b1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,vR=b1&&"documentMode"in document?document.documentMode:null;!(!b1||!("InputEvent"in window)||vR)&&"getTargetRanges"in new window.InputEvent("input");function _1(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))e.push(r);return e}function wv(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}function gr(t,...e){const n=_1(...e);n.length>0&&t.classList.add(...n)}function va(t,...e){const n=_1(...e);n.length>0&&t.classList.remove(...n)}function ju(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function bR(t){const e=Uu(t,n=>pe(n)&&!n.isInline());return pe(e)||mR(4,t.__key),e}const Uu=(t,e)=>{let n=t;for(;n!==Rn()&&n!=null;){if(e(n))return n;n=n.getParent()}return null};function ba(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function y1(t,e){const n=[],r=Array.from(t).reverse();for(let i=r.pop();i!==void 0;i=r.pop())if(e(i))n.push(i);else if(pe(i))for(const s of _R(i))r.push(s);return n}function _R(t){return yR(Io(t,"previous"))}function yR(t){return mv({hasNext:jl,initial:t.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}var xv={exports:{}},w1;function wR(){return w1||(w1=1,function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(y){return y instanceof c?new c(y.type,v(y.content),y.alias):Array.isArray(y)?y.map(v):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++s}),v.__id},clone:function v(y,w){w=w||{};var k,S;switch(a.util.type(y)){case"Object":if(S=a.util.objId(y),w[S])return w[S];k={},w[S]=k;for(var C in y)y.hasOwnProperty(C)&&(k[C]=v(y[C],w));return k;case"Array":return S=a.util.objId(y),w[S]?w[S]:(k=[],w[S]=k,y.forEach(function(E,A){k[A]=v(E,w)}),k);default:return y}},getLanguage:function(v){for(;v;){var y=i.exec(v.className);if(y)return y[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,y){v.className=v.className.replace(RegExp(i,"gi"),""),v.classList.add("language-"+y)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(k){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(v){var y=document.getElementsByTagName("script");for(var w in y)if(y[w].src==v)return y[w]}return null}},isActive:function(v,y,w){for(var k="no-"+y;v;){var S=v.classList;if(S.contains(y))return!0;if(S.contains(k))return!1;v=v.parentElement}return!!w}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(v,y){var w=a.util.clone(a.languages[v]);for(var k in y)w[k]=y[k];return w},insertBefore:function(v,y,w,k){k=k||a.languages;var S=k[v],C={};for(var E in S)if(S.hasOwnProperty(E)){if(E==y)for(var A in w)w.hasOwnProperty(A)&&(C[A]=w[A]);w.hasOwnProperty(E)||(C[E]=S[E])}var O=k[v];return k[v]=C,a.languages.DFS(a.languages,function($,N){N===O&&$!=v&&(this[$]=C)}),C},DFS:function v(y,w,k,S){S=S||{};var C=a.util.objId;for(var E in y)if(y.hasOwnProperty(E)){w.call(y,E,y[E],k||E);var A=y[E],O=a.util.type(A);O==="Object"&&!S[C(A)]?(S[C(A)]=!0,v(A,w,null,S)):O==="Array"&&!S[C(A)]&&(S[C(A)]=!0,v(A,w,E,S))}}},plugins:{},highlightAll:function(v,y){a.highlightAllUnder(document,v,y)},highlightAllUnder:function(v,y,w){var k={callback:w,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),a.hooks.run("before-all-elements-highlight",k);for(var S=0,C;C=k.elements[S++];)a.highlightElement(C,y===!0,k.callback)},highlightElement:function(v,y,w){var k=a.util.getLanguage(v),S=a.languages[k];a.util.setLanguage(v,k);var C=v.parentElement;C&&C.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(C,k);var E=v.textContent,A={element:v,language:k,grammar:S,code:E};function O(N){A.highlightedCode=N,a.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,a.hooks.run("after-highlight",A),a.hooks.run("complete",A),w&&w.call(A.element)}if(a.hooks.run("before-sanity-check",A),C=A.element.parentElement,C&&C.nodeName.toLowerCase()==="pre"&&!C.hasAttribute("tabindex")&&C.setAttribute("tabindex","0"),!A.code){a.hooks.run("complete",A),w&&w.call(A.element);return}if(a.hooks.run("before-highlight",A),!A.grammar){O(a.util.encode(A.code));return}if(y&&r.Worker){var $=new Worker(a.filename);$.onmessage=function(N){O(N.data)},$.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else O(a.highlight(A.code,A.grammar,A.language))},highlight:function(v,y,w){var k={code:v,grammar:y,language:w};if(a.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=a.tokenize(k.code,k.grammar),a.hooks.run("after-tokenize",k),c.stringify(a.util.encode(k.tokens),k.language)},tokenize:function(v,y){var w=y.rest;if(w){for(var k in w)y[k]=w[k];delete y.rest}var S=new h;return f(S,S.head,v),d(v,S,y,S.head,0),g(S)},hooks:{all:{},add:function(v,y){var w=a.hooks.all;w[v]=w[v]||[],w[v].push(y)},run:function(v,y){var w=a.hooks.all[v];if(!(!w||!w.length))for(var k=0,S;S=w[k++];)S(y)}},Token:c};r.Prism=a;function c(v,y,w,k){this.type=v,this.content=y,this.alias=w,this.length=(k||"").length|0}c.stringify=function v(y,w){if(typeof y=="string")return y;if(Array.isArray(y)){var k="";return y.forEach(function(O){k+=v(O,w)}),k}var S={type:y.type,content:v(y.content,w),tag:"span",classes:["token",y.type],attributes:{},language:w},C=y.alias;C&&(Array.isArray(C)?Array.prototype.push.apply(S.classes,C):S.classes.push(C)),a.hooks.run("wrap",S);var E="";for(var A in S.attributes)E+=" "+A+'="'+(S.attributes[A]||"").replace(/"/g,""")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+E+">"+S.content+"</"+S.tag+">"};function u(v,y,w,k){v.lastIndex=y;var S=v.exec(w);if(S&&k&&S[1]){var C=S[1].length;S.index+=C,S[0]=S[0].slice(C)}return S}function d(v,y,w,k,S,C){for(var E in w)if(!(!w.hasOwnProperty(E)||!w[E])){var A=w[E];A=Array.isArray(A)?A:[A];for(var O=0;O<A.length;++O){if(C&&C.cause==E+","+O)return;var $=A[O],N=$.inside,I=!!$.lookbehind,j=!!$.greedy,q=$.alias;if(j&&!$.pattern.global){var B=$.pattern.toString().match(/[imsuy]*$/)[0];$.pattern=RegExp($.pattern.source,B+"g")}for(var W=$.pattern||$,G=k.next,J=S;G!==y.tail&&!(C&&J>=C.reach);J+=G.value.length,G=G.next){var ne=G.value;if(y.length>v.length)return;if(!(ne instanceof c)){var K=1,Y;if(j){if(Y=u(W,J,v,I),!Y||Y.index>=v.length)break;var Q=Y.index,re=Y.index+Y[0].length,ce=J;for(ce+=G.value.length;Q>=ce;)G=G.next,ce+=G.value.length;if(ce-=G.value.length,J=ce,G.value instanceof c)continue;for(var he=G;he!==y.tail&&(ce<re||typeof he.value=="string");he=he.next)K++,ce+=he.value.length;K--,ne=v.slice(J,ce),Y.index-=J}else if(Y=u(W,0,ne,I),!Y)continue;var Q=Y.index,X=Y[0],de=ne.slice(0,Q),_e=ne.slice(Q+X.length),ve=J+ne.length;C&&ve>C.reach&&(C.reach=ve);var be=G.prev;de&&(be=f(y,be,de),J+=de.length),p(y,be,K);var fe=new c(E,N?a.tokenize(X,N):X,q,X);if(G=f(y,be,fe),_e&&f(y,G,_e),K>1){var Oe={cause:E+","+O,reach:ve};d(v,y,w,G.prev,J,Oe),C&&Oe.reach>C.reach&&(C.reach=Oe.reach)}}}}}}function h(){var v={value:null,prev:null,next:null},y={value:null,prev:v,next:null};v.next=y,this.head=v,this.tail=y,this.length=0}function f(v,y,w){var k=y.next,S={value:w,prev:y,next:k};return y.next=S,k.prev=S,v.length++,S}function p(v,y,w){for(var k=y.next,S=0;S<w&&k!==v.tail;S++)k=k.next;y.next=k,k.prev=y,v.length-=S}function g(v){for(var y=[],w=v.head.next;w!==v.tail;)y.push(w.value),w=w.next;return y}if(!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(v){var y=JSON.parse(v.data),w=y.language,k=y.code,S=y.immediateClose;r.postMessage(a.highlight(k,a.languages[w],w)),S&&r.close()},!1)),a;var m=a.util.currentScript();m&&(a.filename=m.src,m.hasAttribute("data-manual")&&(a.manual=!0));function b(){a.manual||a.highlightAll()}if(!a.manual){var _=document.readyState;_==="loading"||_==="interactive"&&m&&m.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return a}(e);t.exports&&(t.exports=n),typeof Nw<"u"&&(Nw.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:a},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(m,b){return"✖ Error "+m+" while fetching file: "+b},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",c="loading",u="loaded",d="failed",h="pre[data-src]:not(["+a+'="'+u+'"]):not(['+a+'="'+c+'"])';function f(m,b,_){var v=new XMLHttpRequest;v.open("GET",m,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?b(v.responseText):v.status>=400?_(i(v.status,v.statusText)):_(s))},v.send(null)}function p(m){var b=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m||"");if(b){var _=Number(b[1]),v=b[2],y=b[3];return v?y?[_,Number(y)]:[_,void 0]:[_,_]}}n.hooks.add("before-highlightall",function(m){m.selector+=", "+h}),n.hooks.add("before-sanity-check",function(m){var b=m.element;if(b.matches(h)){m.code="",b.setAttribute(a,c);var _=b.appendChild(document.createElement("CODE"));_.textContent=r;var v=b.getAttribute("data-src"),y=m.language;if(y==="none"){var w=(/\.(\w+)$/.exec(v)||[,"none"])[1];y=o[w]||w}n.util.setLanguage(_,y),n.util.setLanguage(b,y);var k=n.plugins.autoloader;k&&k.loadLanguages(y),f(v,function(S){b.setAttribute(a,u);var C=p(b.getAttribute("data-range"));if(C){var E=S.split(/\r\n?|\n/g),A=C[0],O=C[1]==null?E.length:C[1];A<0&&(A+=E.length),A=Math.max(0,Math.min(A-1,E.length)),O<0&&(O+=E.length),O=Math.max(0,Math.min(O,E.length)),S=E.slice(A,O).join(`
|
|
37
|
+
`?r.push(_i()):o===" "?r.push(yi()):r.push(bn(o))}this.insertNodes(r)}insertText(e){const n=this.anchor,r=this.focus,i=this.format,s=this.style;let o=n,a=r;!this.isCollapsed()&&r.isBefore(n)&&(o=r,a=n),o.type==="element"&&function(b,_,v,y){const w=b.getNode(),k=w.getChildAtIndex(b.offset),S=bn(),C=Tr(w)?fn().append(S):S;S.setFormat(v),S.setStyle(y),k===null?w.append(C):k.insertBefore(C),b.is(_)&&_.set(S.__key,0,"text"),b.set(S.__key,0,"text")}(o,a,i,s),a.type==="element"&&vv(a,zu(hh(a,"next")));const c=o.offset;let u=a.offset;const d=this.getNodes(),h=d.length;let f=d[0];ze(f)||Le(26);const p=f.getTextContent().length,g=f.getParentOrThrow();let m=d[h-1];if(h===1&&a.type==="element"&&(u=p,a.set(o.key,u,"text")),this.isCollapsed()&&c===p&&(f.isSegmented()||f.isToken()||!f.canInsertTextAfter()||!g.canInsertTextAfter()&&f.getNextSibling()===null)){let b=f.getNextSibling();if(ze(b)&&b.canInsertTextBefore()&&!Il(b)||(b=bn(),b.setFormat(i),b.setStyle(s),g.canInsertTextAfter()?f.insertAfter(b):g.insertAfter(b)),b.select(0,0),f=b,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(f.isSegmented()||f.isToken()||!f.canInsertTextBefore()||!g.canInsertTextBefore()&&f.getPreviousSibling()===null)){let b=f.getPreviousSibling();if(ze(b)&&!Il(b)||(b=bn(),b.setFormat(i),g.canInsertTextBefore()?f.insertBefore(b):g.insertBefore(b)),b.select(),f=b,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&c!==p){const b=bn(f.getTextContent());b.setFormat(i),f.replace(b),f=b}else if(!this.isCollapsed()&&e!==""){const b=m.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||pe(b)&&(!b.canInsertTextBefore()||!b.canInsertTextAfter()))return this.insertText(""),E0(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(f.isToken()){const y=bn(e);return y.select(),void f.replace(y)}const b=f.getFormat(),_=f.getStyle();if(c!==u||b===i&&_===s){if(Xn(f)){const y=bn(e);return y.setFormat(i),y.setStyle(s),y.select(),void f.replace(y)}}else{if(f.getTextContent()!==""){const y=bn(e);if(y.setFormat(i),y.setStyle(s),y.select(),c===0)f.insertBefore(y,!1);else{const[w]=f.splitText(c);w.insertAfter(y,!1)}return void(y.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(s)}const v=u-c;f=f.spliceText(c,v,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=b,this.style=_))}else{const b=new Set([...f.getParentKeys(),...m.getParentKeys()]),_=pe(f)?f:f.getParentOrThrow();let v=pe(m)?m:m.getParentOrThrow(),y=m;if(!_.is(v)&&v.isInline())do y=v,v=v.getParentOrThrow();while(v.isInline());if(a.type==="text"&&(u!==0||m.getTextContent()==="")||a.type==="element"&&m.getIndexWithinParent()<u)if(ze(m)&&!m.isToken()&&u!==m.getTextContentSize()){if(m.isSegmented()){const E=bn(m.getTextContent());m.replace(E),m=E}Tr(a.getNode())||a.type!=="text"||(m=m.spliceText(0,u,"")),b.add(m.__key)}else{const E=m.getParentOrThrow();E.canBeEmpty()||E.getChildrenSize()!==1?m.remove():E.remove()}else b.add(m.__key);const w=v.getChildren(),k=new Set(d),S=_.is(v),C=_.isInline()&&f.getNextSibling()===null?_:f;for(let E=w.length-1;E>=0;E--){const A=w[E];if(A.is(f)||pe(A)&&A.isParentOf(f))break;A.isAttached()&&(!k.has(A)||A.is(y)?S||C.insertAfter(A,!1):A.remove())}if(!S){let E=v,A=null;for(;E!==null;){const O=E.getChildren(),$=O.length;($===0||O[$-1].is(A))&&(b.delete(E.__key),A=E),E=E.getParent()}}if(f.isToken())if(c===p)f.select();else{const E=bn(e);E.select(),f.replace(E)}else f=f.spliceText(c,p-c,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let E=1;E<h;E++){const A=d[E],O=A.__key;b.has(O)||A.remove()}}}removeText(){const e=je()===this;bv(this,sR(iR(this))),e&&je()!==this&&Kr(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void pr(null);const r=this.getNodes(),i=[];for(const w of r)ze(w)&&i.push(w);const s=w=>{r.forEach(k=>{if(pe(k)){const S=k.getFormatFlags(e,w);k.setTextFormat(S)}})},o=i.length;if(o===0)return this.toggleFormat(e),pr(null),void s(n);const a=this.anchor,c=this.focus,u=this.isBackward(),d=u?c:a,h=u?a:c;let f=0,p=i[0],g=d.type==="element"?0:d.offset;if(d.type==="text"&&g===p.getTextContentSize()&&(f=1,p=i[1],g=0),p==null)return;const m=p.getFormatFlags(e,n);s(m);const b=o-1;let _=i[b];const v=h.type==="text"?h.offset:_.getTextContentSize();if(p.is(_)){if(g===v)return;if(Il(p)||g===0&&v===p.getTextContentSize())p.setFormat(m);else{const w=p.splitText(g,v),k=g===0?w[0]:w[1];k.setFormat(m),d.type==="text"&&d.set(k.__key,0,"text"),h.type==="text"&&h.set(k.__key,v-g,"text")}return void(this.format=m)}g===0||Il(p)||([,p]=p.splitText(g),g=0),p.setFormat(m);const y=_.getFormatFlags(e,m);v>0&&(v===_.getTextContentSize()||Il(_)||([_]=_.splitText(v)),_.setFormat(y));for(let w=f+1;w<b;w++){const k=i[w],S=k.getFormatFlags(e,y);k.setFormat(S)}d.type==="text"&&d.set(p.__key,g,"text"),h.type==="text"&&h.set(_.__key,v,"text"),this.format=m|y}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const g=je();return Pe(g)||Le(134),g.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=cv(n,Hi),i=e[e.length-1];if(pe(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const g=qm(this);r.splice(g,0,e),i.selectEnd()}return}if(!e.some(g=>(pe(g)||Bt(g))&&!g.isInline())){pe(r)||Le(211,n.constructor.name,n.getType());const g=qm(this);return r.splice(g,0,e),void i.selectEnd()}const s=function(g){const m=fn();let b=null;for(let _=0;_<g.length;_++){const v=g[_],y=nn(v);if(y||Bt(v)&&v.isInline()||pe(v)&&v.isInline()||ze(v)||v.isParentRequired()){if(b===null&&(b=v.createParentElementNode(),m.append(b),y))continue;b!==null&&b.append(v)}else m.append(v),b=null}return m}(e),o=s.getLastDescendant(),a=s.getChildren(),c=!pe(r)||!r.isEmpty()?this.insertParagraph():null,u=a[a.length-1];let d=a[0];var h;pe(h=d)&&Hi(h)&&!h.isEmpty()&&pe(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(pe(r)||Le(211,n.constructor.name,n.getType()),r.append(...d.getChildren()),d=a[1]),d&&(r===null&&Le(212,n.constructor.name,n.getType()),function(g,m,b){const _=m.getParentOrThrow().getLastChild();let v=m;const y=[m];for(;v!==_;)v.getNextSibling()||Le(140),v=v.getNextSibling(),y.push(v);let w=g;for(const k of y)w=w.insertAfter(k)}(r,d));const f=cv(o,Hi);c&&pe(f)&&(c.canMergeWhenEmpty()||Hi(u))&&(f.append(...c.getChildren()),c.remove()),pe(r)&&r.isEmpty()&&r.remove(),o.selectEnd();const p=pe(r)?r.getLastChild():null;nn(p)&&f!==r&&p.remove()}insertParagraph(){if(this.anchor.key==="root"){const o=fn();return Rn().splice(this.anchor.offset,0,[o]),o.select(),o}const e=qm(this),n=cv(this.anchor.getNode(),Hi);pe(n)||Le(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(e){const n=_i();if(this.insertNodes([n]),e){const r=n.getParentOrThrow(),i=n.getIndexWithinParent();r.select(i,i)}}extract(){const e=this.getNodes(),n=e.length,r=n-1,i=this.anchor,s=this.focus;let o=e[0],a=e[r];const[c,u]=zm(this);if(n===0)return[];if(n===1){if(ze(o)&&!this.isCollapsed()){const h=c>u?u:c,f=c>u?c:u,p=o.splitText(h,f),g=h===0?p[0]:p[1];return g!=null?[g]:[]}return[o]}const d=i.isBefore(s);if(ze(o)){const h=d?c:u;h===o.getTextContentSize()?e.shift():h!==0&&([,o]=o.splitText(h),e[0]=o)}if(ze(a)){const h=a.getTextContent().length,f=d?u:c;f===0?e.pop():f!==h&&([a]=a.splitText(f),e[r]=a)}return e}modify(e,n,r){const i=this.focus,s=this.anchor,o=e==="move",a=Ru(i,n);if(Bt(a)&&!a.isIsolated()){if(o&&a.isKeyboardSelectable()){const p=A0();return p.add(a.__key),void Kr(p)}const f=n?a.getPreviousSibling():a.getNextSibling();if(ze(f)){const p=f.__key,g=n?f.getTextContent().length:0;return i.set(p,g,"text"),void(o&&s.set(p,g,"text"))}{const p=a.getParentOrThrow();let g,m;return pe(f)?(m=f.__key,g=n?f.getChildrenSize():0):(g=a.getIndexWithinParent(),m=p.__key,n||g++),i.set(m,g,"element"),void(o&&s.set(m,g,"element"))}}const c=_n(),u=qi(xi(c));if(!u)return;const d=c._blockCursorElement,h=c._rootElement;if(h===null||d===null||!pe(a)||a.isInline()||a.canBeEmpty()||ov(d,c,h),function(f,p,g,m){f.modify(p,g,m)}(u,e,n?"backward":"forward",r),u.rangeCount>0){const f=u.getRangeAt(0),p=this.anchor.getNode(),g=Tr(p)?p:HI(p);if(this.applyDOMRange(f),this.dirty=!0,!o){const m=this.getNodes(),b=[];let _=!1;for(let v=0;v<m.length;v++){const y=m[v];nv(y,g)?b.push(y):_=!0}if(_&&b.length>0)if(n){const v=b[0];pe(v)?v.selectStart():v.getParentOrThrow().selectStart()}else{const v=b[b.length-1];pe(v)?v.selectEnd():v.getParentOrThrow().selectEnd()}u.anchorNode===f.startContainer&&u.anchorOffset===f.startOffset||function(v){const y=v.focus,w=v.anchor,k=w.key,S=w.offset,C=w.type;w.set(y.key,y.offset,y.type,!0),y.set(k,S,C,!0)}(this)}}}forwardDeletion(e,n,r){if(!r&&(e.type==="element"&&pe(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const i=n.getParent(),s=n.getNextSibling()||(i===null?null:i.getNextSibling());if(pe(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let i=r.getNode();if(this.forwardDeletion(r,i,e))return;const s=rR(hh(r,e?"previous":"next"));if(s.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if(Ul(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(pe(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=zu(c);bv(this,Bl(u,u)),s.anchor.origin.remove()}return}if(a.type==="merge-next-block")return bv(this,Bl(!c.origin.isEmpty()&&a.block.isEmpty()?_v(zr(a.block,c.direction)):s.anchor,c)),this.removeText()}}else if(jl(c)){if(pe(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else a={block:c.origin,type:"merge-next-block"};continue}if(Bt(c.origin)){if(!c.origin.isIsolated())if(a.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&pe(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=A0();u.add(c.origin.getKey()),Kr(u)}else c.origin.remove();return}break}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&w0(this,r.getNode()))return}else{const a=o.type==="text"?o.getNode():null;if(i=r.type==="text"?r.getNode():null,a!==null&&a.isSegmented()){const c=o.offset,u=a.getTextContentSize();if(a.is(i)||e&&c!==u||!e&&c!==0)return void x0(a,e,c)}else if(i!==null&&i.isSegmented()){const c=r.offset,u=i.getTextContentSize();if(i.is(a)||e&&c!==0||!e&&c!==u)return void x0(i,e,c)}(function(c,u){const d=c.anchor,h=c.focus,f=d.getNode(),p=h.getNode();if(f===p&&d.type==="text"&&h.type==="text"){const g=d.offset,m=h.offset,b=g<m,_=b?g:m,v=b?m:g,y=v-1;_!==y&&function(w){return!(Z0(w)||CI(w))}(f.getTextContent().slice(_,v))&&(u?h.set(h.key,y,h.type):d.set(d.key,y,d.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Tr(r.getParent())&&r.getPreviousSibling()===null&&w0(this,r)}}deleteLine(e){if(this.isCollapsed()){const n=this.anchor.type==="element";if(n&&this.insertText(" "),this.modify("extend",e,"lineboundary"),this.isCollapsed()&&this.anchor.offset===0&&this.modify("extend",e,"character"),n){const r=e?this.anchor:this.focus;r.set(r.key,r.offset+1,r.type)}}this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function vs(t){return t instanceof Xf}function y0(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function zm(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,r]=e;return n.type==="element"&&r.type==="element"&&n.key===r.key&&n.offset===r.offset?[0,0]:[y0(n),y0(r)]}function w0(t,e){for(let n=e;n;n=n.getParent()){if(pe(n)){if(n.collapseAtStart(t))return!0;if(!n.isInline())break}if(n.getPreviousSibling())break}return!1}const CI=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function x0(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let o=0,a=0;for(let u=0;u<s;u++){const d=u===s-1;if(a=o,o+=i[u].length,e&&o===n||o>n||d){i.splice(u,1),d&&(a=void 0);break}}const c=i.join("").trim();c===""?r.remove():(r.setTextContent(c),r.select(a,a))}function k0(t,e,n,r){let i,s=e;if(wn(t)){let o=!1;const a=t.childNodes,c=a.length,u=r._blockCursorElement;s===c&&(o=!0,s=c-1);let d=a[s],h=!1;if(d===u)d=a[s+1],h=!0;else if(u!==null){const f=u.parentNode;t===f&&e>Array.prototype.indexOf.call(f.children,u)&&s--}if(i=Rl(d),ze(i))s=J0(i,o);else{let f=Rl(t);if(f===null)return null;if(pe(f)){const p=r.getElementByKey(f.getKey());p===null&&Le(214),[f,s]=f.getDOMSlot(p).resolveChildIndex(f,p,t,e),pe(f)||Le(215),o&&s>=f.getChildrenSize()&&(s=Math.max(0,f.getChildrenSize()-1));let m=f.getChildAtIndex(s);if(pe(m)&&function(b,_,v){const y=b.getParent();return v===null||y===null||!y.canBeEmpty()||y!==v.getNode()}(m,0,n)){const b=o?m.getLastDescendant():m.getFirstDescendant();b===null?f=m:(m=b,f=pe(m)?m:m.getParentOrThrow()),s=0}ze(m)?(i=m,f=null,s=J0(m,o)):m!==f&&o&&!h&&(pe(f)||Le(216),s=Math.min(f.getChildrenSize(),s+1))}else{const p=f.getIndexWithinParent();s=e===0&&Bt(f)&&Rl(t)===f?p:p+1,f=f.getParentOrThrow()}if(pe(f))return ms(f.__key,s,"element")}}else i=Rl(t);return ze(i)?ms(i.__key,s,"text"):null}function S0(t,e,n){const r=t.offset,i=t.getNode();if(r===0){const s=i.getPreviousSibling(),o=i.getParent();if(e){if((n||!e)&&s===null&&pe(o)&&o.isInline()){const a=o.getPreviousSibling();ze(a)&&t.set(a.__key,a.getTextContent().length,"text")}}else pe(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):ze(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(r===i.getTextContent().length){const s=i.getNextSibling(),o=i.getParent();if(e&&pe(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&pe(o)&&o.isInline()&&!o.canInsertTextAfter()){const a=o.getNextSibling();ze(a)&&t.set(a.__key,0,"text")}}}function E0(t,e,n){if(t.type==="text"&&e.type==="text"){const r=t.isBefore(e),i=t.is(e);S0(t,r,i),S0(e,!r,i),i&&e.set(t.key,t.offset,t.type);const s=_n();if(s.isComposing()&&s._compositionKey!==t.key&&Pe(n)){const o=n.anchor,a=n.focus;t.set(o.key,o.offset,o.type,!0),e.set(a.key,a.offset,a.type,!0)}}}function T0(t,e,n,r,i,s){if(t===null||n===null||!$u(i,t,n))return null;const o=k0(t,e,Pe(s)?s.anchor:null,i);if(o===null)return null;const a=k0(n,r,Pe(s)?s.focus:null,i);if(a===null)return null;if(o.type==="element"&&a.type==="element"){const c=Rl(t),u=Rl(n);if(Bt(c)&&Bt(u))return null}return E0(o,a,s),[o,a]}function jm(t){return pe(t)&&!t.isInline()}function C0(t,e,n,r,i,s){const o=Oo(),a=new fa(ms(t,e,i),ms(n,r,s),0,"");return a.dirty=!0,o._selection=a,a}function Um(){const t=ms("root",0,"element"),e=ms("root",0,"element");return new fa(t,e,0,"")}function A0(){return new Xf(new Set)}function Bm(t,e,n,r){const i=n._window;if(i===null)return null;const s=r||i.event,o=s?s.type:void 0,a=o==="selectionchange",c=!lm&&(a||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&s&&s.detail===3||o==="drop"||o===void 0);let u,d,h,f;if(Pe(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,h=e.anchorOffset,f=e.focusOffset,a&&Pe(t)&&!$u(n,u,d))return t.clone();const p=T0(u,h,d,f,n,t);if(p===null)return null;const[g,m]=p;return new fa(g,m,Pe(t)?t.format:0,Pe(t)?t.style:"")}function je(){return Oo()._selection}function Nl(){return _n()._editorState._selection}function Qf(t,e,n,r=1){const i=t.anchor,s=t.focus,o=i.getNode(),a=s.getNode();if(!e.is(o)&&!e.is(a))return;const c=e.__key;if(t.isCollapsed()){const u=i.offset;if(n<=u&&r>0||n<u&&r<0){const d=Math.max(0,u+r);i.set(c,d,"element"),s.set(c,d,"element"),P0(t)}}else{const u=t.isBackward(),d=u?s:i,h=d.getNode(),f=u?i:s,p=f.getNode();if(e.is(h)){const g=d.offset;(n<=g&&r>0||n<g&&r<0)&&d.set(c,Math.max(0,g+r),"element")}if(e.is(p)){const g=f.offset;(n<=g&&r>0||n<g&&r<0)&&f.set(c,Math.max(0,g+r),"element")}}P0(t)}function P0(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,s=e.getNode(),o=r.getNode();if(t.isCollapsed()){if(!pe(s))return;const a=s.getChildrenSize(),c=n>=a,u=c?s.getChildAtIndex(a-1):s.getChildAtIndex(n);if(ze(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),r.set(u.__key,d,"text")}}else{if(pe(s)){const a=s.getChildrenSize(),c=n>=a,u=c?s.getChildAtIndex(a-1):s.getChildAtIndex(n);if(ze(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(pe(o)){const a=o.getChildrenSize(),c=i>=a,u=c?o.getChildAtIndex(a-1):o.getChildAtIndex(i);if(ze(u)){let d=0;c&&(d=u.getTextContentSize()),r.set(u.__key,d,"text")}}}}function eh(t,e,n,r,i){let s=null,o=0,a=null;r!==null?(s=r.__key,ze(r)?(o=r.getTextContentSize(),a="text"):pe(r)&&(o=r.getChildrenSize(),a="element")):i!==null&&(s=i.__key,ze(i)?a="text":pe(i)&&(a="element")),s!==null&&a!==null?t.set(s,o,a):(o=e.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),t.set(n.__key,o,"element"))}function O0(t,e,n,r,i){t.type==="text"?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function AI(t,e,n,r,i,s,o){const a=r.anchorNode,c=r.focusNode,u=r.anchorOffset,d=r.focusOffset,h=document.activeElement;if(i.has("collaboration")&&h!==s||h!==null&&Ym(h))return;if(!Pe(e))return void(t!==null&&$u(n,a,c)&&r.removeAllRanges());const f=e.anchor,p=e.focus,g=f.key,m=p.key,b=dh(n,g),_=dh(n,m),v=f.offset,y=p.offset,w=e.format,k=e.style,S=e.isCollapsed();let C=b,E=_,A=!1;if(f.type==="text"){C=oh(b);const q=f.getNode();A=q.getFormat()!==w||q.getStyle()!==k}else Pe(t)&&t.anchor.type==="text"&&(A=!0);var O,$,N,I,j;if(p.type==="text"&&(E=oh(_)),C!==null&&E!==null&&(S&&(t===null||A||Pe(t)&&(t.format!==w||t.style!==k))&&(O=w,$=k,N=v,I=g,j=performance.now(),s0=[O,$,N,I,j]),u!==v||d!==y||a!==C||c!==E||r.type==="Range"&&S||(h!==null&&s.contains(h)||s.focus({preventScroll:!0}),f.type==="element"))){try{r.setBaseAndExtent(C,v,E,y)}catch{}if(!i.has("skip-scroll-into-view")&&e.isCollapsed()&&s!==null&&s===document.activeElement){const q=Pe(e)&&e.anchor.type==="element"?C.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(q!==null){let B;if(q instanceof Text){const W=document.createRange();W.selectNode(q),B=W.getBoundingClientRect()}else B=q.getBoundingClientRect();(function(W,G,J){const ne=o1(J),K=rv(ne);if(ne===null||K===null)return;let{top:Y,bottom:re}=G,ce=0,he=0,Q=J;for(;Q!==null;){const X=Q===ne.body;if(X)ce=0,he=xi(W).innerHeight;else{const ye=Q.getBoundingClientRect();ce=ye.top,he=ye.bottom}let de=0;if(Y<ce?de=-(ce-Y):re>he&&(de=re-he),de!==0)if(X)K.scrollBy(0,de);else{const ye=Q.scrollTop;Q.scrollTop+=de;const ve=Q.scrollTop-ye;Y-=ve,re-=ve}if(X)break;Q=Du(Q)}})(n,B,s)}}Om=!0}}function Eu(t){let e=je()||Nl();e===null&&(e=Rn().selectEnd()),e.insertNodes(t)}function PI(){const t=je();return t===null?"":t.getTextContent()}function qm(t){let e=t;t.isCollapsed()||e.removeText();const n=je();Pe(n)&&(e=n),Pe(e)||Le(161);const r=e.anchor;let i=r.getNode(),s=r.offset;for(;!Hi(i);){const o=i;if([i,s]=OI(i,s),o.is(i))break}return s}function OI(t,e){const n=t.getParent();if(!n){const i=fn();return Rn().append(i),i.select(),[Rn(),0]}if(ze(t)){const i=t.splitText(e);if(i.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,i[0].getIndexWithinParent()+s]}if(!pe(t)||e===0)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const i=new fa(ms(t.__key,e,"element"),ms(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}let Qn=null,Wn=null,Gr=!1,Hm=!1,th=0;const L0={characterData:!0,childList:!0,subtree:!0};function Tu(){return Gr||Qn!==null&&Qn._readOnly}function Er(){Gr&&Le(13)}function $0(){th>99&&Le(14)}function Oo(){return Qn===null&&Le(195,N0()),Qn}function _n(){return Wn===null&&Le(196,N0()),Wn}function N0(){let t=0;const e=new Set,n=ih.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=sh(i);if(Jm(s))t++;else if(s){let o=String(s.constructor.version||"<0.17.1");o===n&&(o+=" (separately built, likely a bundler configuration issue)"),e.add(o)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function LI(){return Wn}function I0(t,e,n){const r=e.__type,i=function(a,c){const u=a._nodes.get(c);return u===void 0&&Le(30,c),u}(t,r);let s=n.get(r);s===void 0&&(s=Array.from(i.transforms),n.set(r,s));const o=s.length;for(let a=0;a<o&&(s[a](e),e.isAttached());a++);}function R0(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function D0(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const i of r)n.add(i)}function $I(t){return Vm(t,_n()._nodes)}function Vm(t,e){const n=t.type,r=e.get(n);r===void 0&&Le(17,n);const i=r.klass;t.type!==i.getType()&&Le(18,i.name);const s=i.importJSON(t),o=t.children;if(pe(s)&&Array.isArray(o))for(let a=0;a<o.length;a++){const c=Vm(o[a],e);s.append(c)}return s}function M0(t,e,n){const r=Qn,i=Gr,s=Wn;Qn=e,Gr=!0,Wn=t;try{return n()}finally{Qn=r,Gr=i,Wn=s}}function Vs(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||r===null;if(n===null)return;const s=t._editorState,o=s._selection,a=n._selection,c=t._dirtyType!==oa,u=Qn,d=Gr,h=Wn,f=t._updating,p=t._observer;let g=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&p!==null){Wn=t,Qn=n,Gr=!1,t._updating=!0;try{const S=t._dirtyType,C=t._dirtyElements,E=t._dirtyLeaves;p.disconnect(),g=uI(s,n,t,S,C,E)}catch(S){if(S instanceof Error&&t._onError(S),Hm)throw S;return V0(t,null,r,n),Ix(t),t._dirtyType=Tl,Hm=!0,Vs(t,s),void(Hm=!1)}finally{p.observe(r,L0),t._updating=f,Qn=u,Gr=d,Wn=h}}n._readOnly||(n._readOnly=!0);const m=t._dirtyLeaves,b=t._dirtyElements,_=t._normalizedNodes,v=t._updateTags,y=t._deferred;c&&(t._dirtyType=oa,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(S,C){const E=S._decorators;let A=S._pendingDecorators||E;const O=C._nodeMap;let $;for($ in A)O.has($)||(A===E&&(A=G0(S)),delete A[$])}(t,n);const w=i?null:qi(xi(t));if(t._editable&&w!==null&&(c||a===null||a.dirty)&&r!==null&&!v.has("skip-dom-selection")){Wn=t,Qn=n;try{if(p!==null&&p.disconnect(),c||a===null||a.dirty){const S=t._blockCursorElement;S!==null&&ov(S,t,r),AI(o,a,t,w,v,r)}(function(S,C,E){let A=S._blockCursorElement;if(Pe(E)&&E.isCollapsed()&&E.anchor.type==="element"&&C.contains(document.activeElement)){const O=E.anchor,$=O.getNode(),N=O.offset;let I=!1,j=null;if(N===$.getChildrenSize())sv($.getChildAtIndex(N-1))&&(I=!0);else{const q=$.getChildAtIndex(N);if(q!==null&&sv(q)){const B=q.getPreviousSibling();(B===null||sv(B))&&(I=!0,j=S.getElementByKey(q.__key))}}if(I){const q=S.getElementByKey($.__key);return A===null&&(S._blockCursorElement=A=function(B){const W=B.theme,G=document.createElement("div");G.contentEditable="false",G.setAttribute("data-lexical-cursor","true");let J=W.blockCursor;if(J!==void 0){if(typeof J=="string"){const ne=Lf(J);J=W.blockCursor=ne}J!==void 0&&G.classList.add(...J)}return G}(S._config)),C.style.caretColor="transparent",void(j===null?q.appendChild(A):q.insertBefore(A,j))}}A!==null&&ov(A,S,C)})(t,r,a)}finally{p!==null&&p.observe(r,L0),Wn=h,Qn=u}}g!==null&&function(S,C,E,A,O){const $=Array.from(S._listeners.mutation),N=$.length;for(let I=0;I<N;I++){const[j,q]=$[I],B=C.get(q);B!==void 0&&j(B,{dirtyLeaves:A,prevEditorState:O,updateTags:E})}}(t,g,v,m,s),Pe(a)||a===null||o!==null&&o.is(a)||t.dispatchCommand(Wx,void 0);const k=t._pendingDecorators;k!==null&&(t._decorators=k,t._pendingDecorators=null,Cu("decorator",t,!0,k)),function(S,C,E){const A=K0(C),O=K0(E);A!==O&&Cu("textcontent",S,!0,O)}(t,e||s,n),Cu("update",t,!0,{dirtyElements:b,dirtyLeaves:m,editorState:n,normalizedNodes:_,prevEditorState:e||s,tags:v}),function(S,C){if(S._deferred=[],C.length!==0){const E=S._updating;S._updating=!0;try{for(let A=0;A<C.length;A++)C[A]()}finally{S._updating=E}}}(t,y),function(S){const C=S._updates;if(C.length!==0){const E=C.shift();if(E){const[A,O]=E;Wm(S,A,O)}}}(t)}function Cu(t,e,n,...r){const i=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let o=0;o<s.length;o++)s[o].apply(null,r)}finally{e._updating=i}}function F0(t,e,n){if(t._updating===!1||Wn!==t){let i=!1;return t.update(()=>{i=F0(t,e,n)}),i}const r=Xm(t);for(let i=4;i>=0;i--)for(let s=0;s<r.length;s++){const o=r[s]._commands.get(e);if(o!==void 0){const a=o[i];if(a!==void 0){const c=Array.from(a),u=c.length;for(let d=0;d<u;d++)if(c[d](n,t)===!0)return!0}}}return!1}function z0(t,e){const n=t._updates;let r=e||!1;for(;n.length!==0;){const i=n.shift();if(i){const[s,o]=i;let a;if(o!==void 0){if(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete){const c=t._pendingEditorState;c===null&&Le(191),c._flushSync=!0}a&&t._deferred.push(a),D0(t,o.tag)}s()}}return r}function Wm(t,e,n){const r=t._updateTags;let i,s=!1,o=!1;n!==void 0&&(i=n.onUpdate,D0(t,n.tag),s=n.skipTransforms||!1,o=n.discrete||!1),i&&t._deferred.push(i);const a=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=q0(c||a),u=!0),c._flushSync=o;const d=Qn,h=Gr,f=Wn,p=t._updating;Qn=c,Gr=!1,t._updating=!0,Wn=t;const g=t._headless||t.getRootElement()===null;try{u&&(g?a._selection!==null&&(c._selection=a._selection.clone()):c._selection=function(v,y){const w=v.getEditorState()._selection,k=qi(xi(v));return Pe(w)||w==null?Bm(w,k,v,y):w.clone()}(t,n&&n.event||null));const b=t._compositionKey;e(),s=z0(t,s),function(v,y){const w=y.getEditorState()._selection,k=v._selection;if(Pe(k)){const S=k.anchor,C=k.focus;let E;if(S.type==="text"&&(E=S.getNode(),E.selectionTransform(w,k)),C.type==="text"){const A=C.getNode();E!==A&&A.selectionTransform(w,k)}}}(c,t),t._dirtyType!==oa&&(s?function(v,y){const w=y._dirtyLeaves,k=v._nodeMap;for(const S of w){const C=k.get(S);ze(C)&&C.isAttached()&&C.isSimpleText()&&!C.isUnmergeable()&&Mx(C)}}(c,t):function(v,y){const w=y._dirtyLeaves,k=y._dirtyElements,S=v._nodeMap,C=$o(),E=new Map;let A=w,O=A.size,$=k,N=$.size;for(;O>0||N>0;){if(O>0){y._dirtyLeaves=new Set;for(const I of A){const j=S.get(I);ze(j)&&j.isAttached()&&j.isSimpleText()&&!j.isUnmergeable()&&Mx(j),j!==void 0&&R0(j,C)&&I0(y,j,E),w.add(I)}if(A=y._dirtyLeaves,O=A.size,O>0){th++;continue}}y._dirtyLeaves=new Set,y._dirtyElements=new Map;for(const I of $){const j=I[0],q=I[1];if(j!=="root"&&!q)continue;const B=S.get(j);B!==void 0&&R0(B,C)&&I0(y,B,E),k.set(j,q)}A=y._dirtyLeaves,O=A.size,$=y._dirtyElements,N=$.size,th++}y._dirtyLeaves=w,y._dirtyElements=k}(c,t),z0(t),function(v,y,w,k){const S=v._nodeMap,C=y._nodeMap,E=[];for(const[A]of k){const O=C.get(A);O!==void 0&&(O.isAttached()||(pe(O)&&Lx(O,A,S,C,E,k),S.has(A)||k.delete(A),E.push(A)))}for(const A of E)C.delete(A);for(const A of w){const O=C.get(A);O===void 0||O.isAttached()||(S.has(A)||w.delete(A),C.delete(A))}}(a,c,t._dirtyLeaves,t._dirtyElements)),b!==t._compositionKey&&(c._flushSync=!0);const _=c._selection;if(Pe(_)){const v=c._nodeMap,y=_.anchor.key,w=_.focus.key;v.get(y)!==void 0&&v.get(w)!==void 0||Le(19)}else vs(_)&&_._nodes.size===0&&(c._selection=null)}catch(b){return b instanceof Error&&t._onError(b),t._pendingEditorState=a,t._dirtyType=Tl,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Vs(t)}finally{Qn=d,Gr=h,Wn=f,t._updating=p,th=0}t._dirtyType!==oa||t._deferred.length>0||function(b,_){const v=_.getEditorState()._selection,y=b._selection;if(y!==null){if(y.dirty||!y.is(v))return!0}else if(v!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Vs(t)):u&&MI(()=>{Vs(t)}):(c._flushSync=!1,u&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function wi(t,e,n){t._updating?Wn===t?e():t._updates.push([e,n]):Wm(t,e,n)}class Au{constructor(e,n,r){this.element=e,this.before=n||null,this.after=r||null}withBefore(e){return new Au(this.element,e,this.after)}withAfter(e){return new Au(this.element,this.before,e)}withElement(e){return new Au(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&Le(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&Le(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&Le(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(El||fu);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&n.removeChild(r),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,i=this.before,s=document.createElement("br");if(r.insertBefore(s,i),e){const o=document.createElement("img");o.setAttribute("data-lexical-linebreak","true"),o.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",o.alt="",r.insertBefore(o,s),r.__lexicalLineBreak=o}else r.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,r,i){if(r===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,i))]}const s=j0(n,r);s.push(i);const o=j0(n,this.element);let a=e.getIndexWithinParent();for(let c=0;c<o.length;c++){const u=s[c],d=o[c];if(u===void 0||u<d)break;if(u>d){a+=1;break}}return[e.getParentOrThrow(),a]}}function j0(t,e){const n=[];let r=e;for(;r!==t&&r!==null;r=e.parentNode){let i=0;for(let s=r.previousSibling;s!==null;s=s.previousSibling)i++;n.push(i)}return r!==t&&Le(225),n.reverse()}class er extends Yf{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return eI[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let n=this.getFirstChild();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getChildrenKeys(){const e=[];let n=this.getFirstChild();for(;n!==null;)e.push(n.__key),n=n.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=_n()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),n=this.getParentOrThrow().getLastChild();return n!==null&&n.is(e)}getAllTextNodes(){const e=[];let n=this.getFirstChild();for(;n!==null;){if(ze(n)&&e.push(n),pe(n)){const r=n.getAllTextNodes();e.push(...r)}n=n.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;pe(e);){const n=e.getFirstChild();if(n===null)break;e=n}return e}getLastDescendant(){let e=this.getLastChild();for(;pe(e);){const n=e.getLastChild();if(n===null)break;e=n}return e}getDescendantByIndex(e){const n=this.getChildren(),r=n.length;if(e>=r){const s=n[r-1];return pe(s)&&s.getLastDescendant()||s||null}const i=n[e];return pe(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:yn(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&Le(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:yn(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&Le(96,this.__key),e}getChildAtIndex(e){const n=this.getChildrenSize();let r,i;if(e<n/2){for(r=this.getFirstChild(),i=0;r!==null&&i<=e;){if(i===e)return r;r=r.getNextSibling(),i++}return null}for(r=this.getLastChild(),i=n-1;r!==null&&i>=e;){if(i===e)return r;r=r.getPreviousSibling(),i--}return null}getTextContent(){let e="";const n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){const s=n[i];e+=s.getTextContent(),pe(s)&&i!==r-1&&!s.isInline()&&(e+=js)}return e}getTextContentSize(){let e=0;const n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){const s=n[i];e+=s.getTextContentSize(),pe(s)&&i!==r-1&&!s.isInline()&&(e+=js.length)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==""){const n=Ox[e];return!!(this.getFormat()&n)}return!1}hasTextFormat(e){const n=aa[e];return!!(this.getTextFormat()&n)}getFormatFlags(e,n){return ah(this.getLatest().__textFormat,e,n)}getTextStyle(){return this.getLatest().__textStyle}select(e,n){Er();const r=je();let i=e,s=n;const o=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&n===0){const c=this.getFirstChild();if(ze(c)||pe(c))return c.select(0,0)}else if(!(e!==void 0&&e!==o||n!==void 0&&n!==o)){const c=this.getLastChild();if(ze(c)||pe(c))return c.select()}}i===void 0&&(i=o),s===void 0&&(s=o);const a=this.__key;return Pe(r)?(r.anchor.set(a,i,"element"),r.focus.set(a,s,"element"),r.dirty=!0,r):C0(a,i,a,s,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?Ox[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const n=this.getWritable();return n.__textFormat=e,n}setTextStyle(e){const n=this.getWritable();return n.__textStyle=e,n}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){const i=r.length,s=this.getChildrenSize(),o=this.getWritable();e+n<=s||Le(226,String(e),String(n),String(s));const a=o.__key,c=[],u=[],d=this.getChildAtIndex(e+n);let h=null,f=s-n+i;if(e!==0)if(e===s)h=this.getLastChild();else{const g=this.getChildAtIndex(e);g!==null&&(h=g.getPreviousSibling())}if(n>0){let g=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<n;m++){g===null&&Le(100);const b=g.getNextSibling(),_=g.__key;ha(g.getWritable()),u.push(_),g=b}}let p=h;for(let g=0;g<i;g++){const m=r[g];p!==null&&m.is(p)&&(h=p=p.getPreviousSibling());const b=m.getWritable();b.__parent===a&&f--,ha(b);const _=m.__key;if(p===null)o.__first=_,b.__prev=null;else{const v=p.getWritable();v.__next=_,b.__prev=v.__key}m.__key===a&&Le(76),b.__parent=a,c.push(_),p=m}if(e+n===s)p!==null&&(p.getWritable().__next=null,o.__last=p.__key);else if(d!==null){const g=d.getWritable();if(p!==null){const m=p.getWritable();g.__prev=p.__key,m.__next=d.__key}else g.__prev=null}if(o.__size=f,u.length){const g=je();if(Pe(g)){const m=new Set(u),b=new Set(c),{anchor:_,focus:v}=g;U0(_,m,b)&&eh(_,_.getNode(),this,h,d),U0(v,m,b)&&eh(v,v.getNode(),this,h,d),f!==0||this.canBeEmpty()||ki(this)||this.remove()}}return o}getDOMSlot(e){return new Au(e)}exportDOM(e){const{element:n}=super.exportDOM(e);if(wn(n)){const r=this.getIndent();r>0&&(n.style.paddingInlineStart=40*r+"px")}return{element:n}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},n=this.getTextFormat(),r=this.getTextStyle();return n!==0&&(e.textFormat=n),r!==""&&(e.textStyle=r),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,n){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,n,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,n){const r=this.getDOMSlot(e);let i=r.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const o=n.getElementByKey(s.getKey());o!==null&&(i==null?(r.insertChild(o),i=o):i!==o&&r.replaceChild(o,i),i=i.nextSibling)}}}function pe(t){return t instanceof er}function U0(t,e,n){let r=t.getNode();for(;r;){const i=r.__key;if(e.has(i)&&!n.has(i))return!0;r=r.getParent()}return!1}class B0 extends Yf{decorate(e,n){Le(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Bt(t){return t instanceof B0}class Pu extends er{static getType(){return"root"}static clone(){return new Pu}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){Le(51)}getTextContent(){const e=this.__cachedText;return!Tu()&&_n()._dirtyType!==oa||e===null?super.getTextContent():e}remove(){Le(52)}replace(e){Le(53)}insertBefore(e){Le(54)}insertAfter(e){Le(55)}updateDOM(e,n){return!1}append(...e){for(let n=0;n<e.length;n++){const r=e[n];pe(r)||Bt(r)||Le(56)}return super.append(...e)}static importJSON(e){return Rn().updateFromJSON(e)}collapseAtStart(){return!0}}function Tr(t){return t instanceof Pu}function q0(t){return new nh(new Map(t._nodeMap))}function Gm(){return new nh(new Map([["root",new Pu]]))}function H0(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&Le(130,n.name),pe(t)){const r=e.children;Array.isArray(r)||Le(59,n.name);const i=t.getChildren();for(let s=0;s<i.length;s++){const o=H0(i[s]);r.push(o)}}return e}class nh{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return M0(n&&n.editor||null,this,e)}clone(e){const n=new nh(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return M0(null,this,()=>({root:H0(Rn())}))}}class Km extends er{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class Ou extends er{static getType(){return"paragraph"}static clone(e){return new Ou(e.__key)}createDOM(e){const n=document.createElement("p"),r=Ml(e.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(e,n,r){return!1}static importDOM(){return{p:e=>({conversion:NI,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(wn(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();n.style.textAlign=r;const i=this.getDirection();i&&(n.dir=i)}return{element:n}}static importJSON(e){return fn().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const r=fn();r.setTextFormat(e.format),r.setTextStyle(e.style);const i=this.getDirection();return r.setDirection(i),r.setFormat(this.getFormatType()),r.setStyle(this.getTextStyle()),this.insertAfter(r,n),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||ze(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function NI(t){const e=fn();return t.style&&(e.setFormat(t.style.textAlign),dv(t,e)),{node:e}}function fn(){return Fr(new Ou)}function rh(t){return t instanceof Ou}const Mt=0,Lo=1,Lu=2,II=4;function V0(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=Gm(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=oa,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function RI(t){const e=t||{},n=LI(),r=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,o=Gm(),a=e.namespace||(i!==null?i._config.namespace:X0()),c=e.editorState,u=[Pu,Po,ku,Su,Ou,Km,...e.nodes||[]],{onError:d,html:h}=e,f=e.editable===void 0||e.editable;let p;if(t===void 0&&n!==null)p=n._nodes;else{p=new Map;for(let m=0;m<u.length;m++){let b=u[m],_=null,v=null;if(typeof b!="function"){const S=b;b=S.replace,_=S.with,v=S.withKlass||null}const y=b.getType(),w=b.transform(),k=new Set;w!==null&&k.add(w),p.set(y,{exportDOM:h&&h.export?h.export.get(b):void 0,klass:b,replace:_,replaceWithKlass:v,transforms:k})}}const g=new ih(o,i,p,{disableEvents:s,namespace:a,theme:r},d||console.error,function(m,b){const _=new Map,v=new Set,y=w=>{Object.keys(w).forEach(k=>{let S=_.get(k);S===void 0&&(S=[],_.set(k,S)),S.push(w[k])})};return m.forEach(w=>{const k=w.klass.importDOM;if(k==null||v.has(k))return;v.add(k);const S=k.call(w.klass);S!==null&&y(S)}),b&&y(b),_}(p,h?h.import:void 0),f);return c!==void 0&&(g._pendingEditorState=c,g._dirtyType=Tl),g}class ih{constructor(e,n,r,i,s,o,a){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=oa,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=X0(),this._onError=s,this._htmlConversions=o,this._editable=a,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&Le(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);s===void 0&&Le(36,String(e));const o=s[r];return o.add(n),()=>{o.delete(n),s.every(a=>a.size===0)&&i.delete(e)}}registerMutationListener(e,n,r){const i=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;s.set(n,i);const o=r&&r.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(n,i),()=>{s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&Le(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const r=this._editorState,i=u1(r).get(n.getType());if(!i)return;const s=new Map;for(const o of i.keys())s.set(o,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const r=this.getRegisteredNode(e);return r.transforms.add(n),r}registerNodeTransform(e,n){const r=this.registerNodeTransformToKlass(e,n),i=[r],s=r.replaceWithKlass;if(s!=null){const o=this.registerNodeTransformToKlass(s,n);i.push(o)}return function(o,a){const c=u1(o.getEditorState()),u=[];for(const d of a){const h=c.get(d);h&&u.push(h)}u.length!==0&&o.update(()=>{for(const d of u)for(const h of d.keys()){const f=yn(h);f&&f.markDirty()}},o._pendingEditorState===null?{tag:"history-merge"}:void 0)}(this,i.map(o=>o.klass.getType())),()=>{i.forEach(o=>o.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return Ye(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const r=Ml(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,V0(this,n,e,i),n!==null&&(this._config.disableEvents||_I(n),r!=null&&n.classList.remove(...r)),e!==null){const s=rv(e),o=e.style;o.userSelect="text",o.whiteSpace="pre-wrap",o.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=Tl,Ix(this),this._updateTags.add("history-merge"),Vs(this),this._config.disableEvents||function(a,c){const u=a.ownerDocument,d=Gf.get(u);(d===void 0||d<1)&&u.addEventListener("selectionchange",d0),Gf.set(u,(d||0)+1),a.__lexicalEditor=c;const h=u0(a);for(let f=0;f<Am.length;f++){const[p,g]=Am[f],m=typeof g=="function"?b=>{h0(b)||(f0(b),(c.isEditable()||p==="click")&&g(b,c))}:b=>{if(h0(b))return;f0(b);const _=c.isEditable();switch(p){case"cut":return _&&Ye(c,Em,b);case"copy":return Ye(c,Hf,b);case"paste":return _&&Ye(c,bm,b);case"dragstart":return _&&Ye(c,n0,b);case"dragover":return _&&Ye(c,r0,b);case"dragend":return _&&Ye(c,hI,b);case"focus":return _&&Ye(c,mI,b);case"blur":return _&&Ye(c,vI,b);case"drop":return _&&Ye(c,t0,b)}};a.addEventListener(p,m),h.push(()=>{a.removeEventListener(p,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add("history-merge"),Vs(this);Cu("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Le(38);let r=e;r._readOnly&&(r=q0(e),r._selection=e._selection?e._selection.clone():null),Nx(this);const i=this._pendingEditorState,s=this._updateTags,o=n!==void 0?n.tag:null;i===null||i.isEmpty()||(o!=null&&s.add(o),Vs(this)),this._pendingEditorState=r,this._dirtyType=Tl,this._dirtyElements.set("root",!1),this._compositionKey=null,o!=null&&s.add(o),this._updating||Vs(this)}parseEditorState(e,n){return function(r,i,s){const o=Gm(),a=Qn,c=Gr,u=Wn,d=i._dirtyElements,h=i._dirtyLeaves,f=i._cloneNotNeeded,p=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,Qn=o,Gr=!1,Wn=i;try{const g=i._nodes;Vm(r.root,g),s&&s(),o._readOnly=!0}catch(g){g instanceof Error&&i._onError(g)}finally{i._dirtyElements=d,i._dirtyLeaves=h,i._cloneNotNeeded=f,i._dirtyType=p,Qn=a,Gr=c,Wn=u}return o}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Vs(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(r,i,s){r._updating?r._updates.push([i,s]):Wm(r,i,s)})(this,e,n)}focus(e,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),wi(this,()=>{const i=je(),s=Rn();i!==null?i.dirty=!0:s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),BI("focus"),qI(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=qi(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Cu("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}ih.version="0.25.0+prod.esm";let DI=1;const MI=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Ym(t){const e=document.activeElement;if(!wn(e))return!1;const n=e.nodeName;return Bt(No(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&sh(e)==null)}function $u(t,e,n){const r=t.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(n)&&e!==null&&!Ym(e)&&Zm(e)===t}catch{return!1}}function Jm(t){return t instanceof ih}function Zm(t){let e=t;for(;e!=null;){const n=sh(e);if(Jm(n))return n;e=Du(e)}return null}function sh(t){return t?t.__lexicalEditor:null}function Il(t){return t.isToken()||t.isSegmented()}function Ws(t){return Fl(t)&&t.nodeType===qN}function FI(t){return Fl(t)&&t.nodeType===HN}function oh(t){let e=t;for(;e!=null;){if(Ws(e))return e;e=e.firstChild}return null}function ah(t,e,n){const r=aa[e];if(n!==null&&(t&r)==(n&r))return t;let i=t^r;return e==="subscript"?i&=-65:e==="superscript"?i&=-33:e==="lowercase"?(i&=-513,i&=-1025):e==="uppercase"?(i&=-257,i&=-1025):e==="capitalize"&&(i&=-257,i&=-513),i}function zI(t){return ze(t)||nn(t)||Bt(t)}function jI(t,e){if(e!=null)return void(t.__key=e);Er(),$0();const n=_n(),r=Oo(),i=""+DI++;r._nodeMap.set(i,t),pe(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=Cx,t.__key=i}function ha(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling();if(i===null)if(s!==null){const o=s.getWritable();r.__first=s.__key,o.__prev=null}else r.__first=null;else{const o=i.getWritable();if(s!==null){const a=s.getWritable();a.__prev=o.__key,o.__next=a.__key}else o.__next=null;n.__prev=null}if(s===null)if(i!==null){const o=i.getWritable();r.__last=i.__key,o.__next=null}else r.__last=null;else{const o=s.getWritable();if(i!==null){const a=i.getWritable();a.__next=o.__key,o.__prev=a.__key}else o.__prev=null;n.__next=null}r.__size--,n.__parent=null}}function lh(t){$0();const e=t.getLatest(),n=e.__parent,r=Oo(),i=_n(),s=r._nodeMap,o=i._dirtyElements;n!==null&&function(c,u,d){let h=c;for(;h!==null;){if(d.has(h))return;const f=u.get(h);if(f===void 0)break;d.set(h,!1),h=f.__parent}}(n,s,o);const a=e.__key;i._dirtyType=Cx,pe(t)?o.set(a,!0):i._dirtyLeaves.add(a)}function pr(t){Er();const e=_n(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const r=yn(n);r!==null&&r.getWritable()}if(t!==null){const r=yn(t);r!==null&&r.getWritable()}}}function $o(){return Tu()?null:_n()._compositionKey}function yn(t,e){const n=(e||Oo())._nodeMap.get(t);return n===void 0?null:n}function W0(t,e){const n=ch(t,_n());return n!==void 0?yn(n,e):null}function ch(t,e){return t[`__lexicalKey_${e._key}`]}function No(t,e){let n=t;for(;n!=null;){const r=W0(n,e);if(r!==null)return r;n=Du(n)}return null}function G0(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function K0(t){return t.read(()=>Rn().getTextContent())}function Rn(){return Y0(Oo())}function Y0(t){return t._nodeMap.get("root")}function Kr(t){Er();const e=Oo();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Rl(t){const e=_n(),n=function(r,i){let s=r;for(;s!=null;){const o=ch(s,i);if(o!==void 0)return o;s=Du(s)}return null}(t,e);return n===null?t===e.getRootElement()?yn("root"):null:yn(n)}function J0(t,e){return e?t.getTextContentSize():0}function Z0(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Xm(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function X0(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Q0(t){return Ws(t)?t.nodeValue:null}function Qm(t,e,n){const r=qi(xi(e));if(r===null)return;const i=r.anchorNode;let{anchorOffset:s,focusOffset:o}=r;if(i!==null){let a=Q0(i);const c=No(i);if(a!==null&&ze(c)){if(a===If&&n){const u=n.length;a=n,s=u,o=u}a!==null&&ev(c,a,s,o,t)}}}function ev(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const o=s.isComposing();let a=e;(o||i)&&e[e.length-1]===If&&(a=e.slice(0,-1));const c=s.getTextContent();if(i||a!==c){if(a===""){if(pr(null),fu||El||Of)s.remove();else{const m=_n();setTimeout(()=>{m.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Nl(),h=s.getTextContentSize(),f=$o(),p=s.getKey();if(s.isToken()||f!==null&&p===f&&!o||Pe(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===t.__key&&d.anchor.offset===0&&!s.canInsertTextBefore()&&!o||d.focus.key===t.__key&&d.focus.offset===h&&!s.canInsertTextAfter()&&!o))return void s.markDirty();const g=je();if(!Pe(g)||n===null||r===null)return void s.setTextContent(a);if(g.setTextNodeRange(s,n,s,r),s.isSegmented()){const m=bn(s.getTextContent());s.replace(m),s=m}s.setTextContent(a)}}}function e1(t){return t==="ArrowLeft"}function t1(t){return t==="ArrowRight"}function Nu(t,e){return ji?t:e}function n1(t){return t==="Enter"}function Dl(t){return t==="Backspace"}function Iu(t){return t==="Delete"}function r1(t,e,n){return t.toLowerCase()==="a"&&Nu(e,n)}function UI(t){const e=Rn();if(Pe(t)){const n=t.anchor,r=t.focus,i=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(i.getKey(),0,"element"),r.set(i.getKey(),i.getChildrenSize(),"element"),Cl(t),t}{const n=e.select(0,e.getChildrenSize());return Kr(Cl(n)),n}}function Ml(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(r!==void 0)return r;const i=t[e];if(typeof i=="string"){const s=Lf(i);return n[e]=s,s}return i}function tv(t,e,n,r,i){if(n.size===0)return;const s=r.__type,o=r.__key,a=e.get(s);a===void 0&&Le(33,s);const c=a.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(o),h=d==="destroyed"&&i==="created";(d===void 0||h)&&u.set(o,h?"updated":i)}function i1(t,e,n){const r=t.getParent();let i=n,s=t;return r!==null&&(e&&n===0?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function Ru(t,e){const n=t.offset;if(t.type==="element")return i1(t.getNode(),e,n);{const r=t.getNode();if(e&&n===0||!e&&n===r.getTextContentSize()){const i=e?r.getPreviousSibling():r.getNextSibling();return i===null?i1(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):i}}return null}function s1(t){const e=xi(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function Ye(t,e,n){return F0(t,e,n)}function uh(t){return!Tr(t)&&!t.isLastChild()&&!t.isInline()}function dh(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&Le(75,e),n}function Du(t){const e=t.assignedSlot||t.parentElement;return av(e)?e.host:e}function o1(t){return FI(t)?t:wn(t)?t.ownerDocument:null}function BI(t){Er(),_n()._updateTags.add(t)}function qI(t){Er(),_n()._deferred.push(t)}function nv(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function rv(t){const e=o1(t);return e?e.defaultView:null}function xi(t){const e=t._window;return e===null&&Le(78),e}function HI(t){let e=t.getParentOrThrow();for(;e!==null;){if(ki(e))return e;e=e.getParentOrThrow()}return e}function ki(t){return Tr(t)||pe(t)&&t.isShadowRoot()}function Fr(t){const e=_n(),n=t.constructor.getType(),r=e._nodes.get(n);r===void 0&&Le(200,t.constructor.name,n);const{replace:i,replaceWithKlass:s}=r;if(i!==null){const o=i(t),a=o.constructor;return s!==null?o instanceof s||Le(201,s.name,s.getType(),a.name,a.getType(),t.constructor.name,n):o instanceof t.constructor&&a!==t.constructor||Le(202,a.name,a.getType(),t.constructor.name,n),o.__key===t.__key&&Le(203,t.constructor.name,n,a.name,a.getType()),o}return t}function iv(t,e){!Tr(t.getParent())||pe(e)||Bt(e)||Le(99)}function VI(t){const e=yn(t);return e===null&&Le(63,t),e}function sv(t){return(Bt(t)||pe(t)&&!t.canBeEmpty())&&!t.isInline()}function ov(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;r!==null&&r.removeChild(t)}function qi(t){return zi?(t||window).getSelection():null}function WI(t){const e=rv(t);return e?e.getSelection():null}function a1(t){return wn(t)&&t.tagName==="A"}function wn(t){return Fl(t)&&t.nodeType===BN}function Fl(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function av(t){return Fl(t)&&t.nodeType===VN}function lv(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function fh(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Hi(t){if(Bt(t)&&!t.isInline())return!0;if(!pe(t)||ki(t))return!1;const e=t.getFirstChild(),n=e===null||nn(e)||ze(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function cv(t,e){let n=t;for(;n!==null&&n.getParent()!==null&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function l1(){return _n()}const c1=new WeakMap,GI=new Map;function u1(t){if(!t._readOnly&&t.isEmpty())return GI;t._readOnly||Le(192);let e=c1.get(t);return e||(e=function(n){const r=new Map;for(const[i,s]of n._nodeMap){const o=s.__type;let a=r.get(o);a||(a=new Map,r.set(o,a)),a.set(i,s)}return r}(t),c1.set(t,e)),e}function uv(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function dv(t,e){const n=(parseInt(t.style.paddingInlineStart,10)||0)/40;e.setIndent(n)}function KI(t){t.__lexicalUnmanaged=!0}function YI(t){return t.__lexicalUnmanaged===!0}const JI={next:"previous",previous:"next"};class fv{constructor(e){this.origin=e}[Symbol.iterator](){return mv({hasNext:jl,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return zr(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return zr(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,n)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let s=this;const o=this.getParentAtCaret(),a=new Map;for(let c=s.getAdjacentCaret();c!==null&&a.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();a.set(u.getKey(),u)}for(const c of i){if(a.size>0){const u=s.getNodeAtCaret();if(u){if(a.delete(u.getKey()),a.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(o)&&c.remove(),u.replace(c)}}else u===null&&Le(263,Array.from(a).join(" "))}else s.insert(c);s=zr(c,this.direction)}for(const c of a.values())c.remove();return this}}class Mu extends fv{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Io(e,this.direction)}getParentCaret(e="root"){return zr(hv(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=zl(this.direction);return zr(this.getNodeAtCaret(),e)||Io(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Mu&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const ZI={root:Tr,shadowRoot:ki};function zl(t){return JI[t]}function hv(t,e="root"){return ZI[e](t)?null:t}class pa extends fv{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:zr(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return pe(this.origin)?Io(this.origin,this.direction):null}getParentCaret(e="root"){return zr(hv(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=zl(this.direction);return zr(this.getNodeAtCaret(),e)||Io(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof pa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof pa||e instanceof ga)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ga extends fv{type="text";constructor(e,n){super(e),this.offset=n}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ma(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return zr(hv(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ma(this.origin,zl(this.direction),this.offset)}isSamePointCaret(e){return e instanceof ga&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof pa||e instanceof ga)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return zr(this.origin,this.direction)}}function Fu(t){return t instanceof ga}function jl(t){return t instanceof pa}function Ul(t){return t instanceof Mu}const XI={next:class extends ga{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ga{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},QI={next:class extends pa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends pa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},eR={next:class extends Mu{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Mu{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function zr(t,e){return t?new QI[e](t):null}function ma(t,e,n){return t?new XI[e](t,pv(t,n)):null}function pv(t,e){const n=t.getTextContentSize(),r=e==="next"?n:e==="previous"?0:e;return r>=0&&r<=n||Le(264,String(e),String(n)),r}function d1(t,e){return new nR(t,e)}function Io(t,e){return pe(t)?new eR[e](t):null}function tR(t){return t&&t.getChildCaret()||t}function f1(t){return t&&tR(t.getAdjacentCaret())}class gv{type="node-caret-range";constructor(e,n,r){this.anchor=e,this.focus=n,this.direction=r}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new gv(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i];return Fu(s)?function(o,a){const{direction:c,origin:u}=o,d=pv(u,a==="focus"?zl(c):c);return d1(o,d-o.offset)}(s,i):null},n=e("anchor"),r=e("focus");if(n&&r){const{caret:i}=n,{caret:s}=r;if(i.isSameNodeCaret(s))return[d1(i,s.offset-i.offset),null]}return[n,r]}iterNodeCarets(e="root"){const n=Fu(this.anchor)?this.anchor.getSiblingCaret():this.anchor,{focus:r}=this,i=Fu(r),s=o=>o.isSameNodeCaret(r)?null:f1(o)||o.getParentCaret(e);return mv({hasNext:o=>o!==null&&!(i&&r.isSameNodeCaret(o)),initial:n.isSameNodeCaret(r)?null:s(n),map:o=>o,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class nR{type="slice";constructor(e,n){this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,r=n+e;return r<n?[r,n]:[n,r]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[r,i]=this.getSliceIndices(),s=e.getTextContent();return ma(e.setTextContent(s.slice(0,r)+s.slice(i)),n,r)}}function rR(t){return Bl(t,zr(Rn(),t.direction))}function Bl(t,e){return t.direction!==e.direction&&Le(265),new gv(t,e,t.direction)}function mv(t){const{initial:e,hasNext:n,step:r,map:i}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const o={done:!1,value:i(s)};return s=r(s),o}}}function hh(t,e){const{type:n,key:r,offset:i}=t,s=VI(t.key);return n==="text"?(ze(s)||Le(266,s.getType(),r),ma(s,e,i)):(pe(s)||Le(267,s.getType(),r),aR(s,t.offset,e))}function vv(t,e){const{origin:n,direction:r}=e,i=r==="next";Fu(e)?t.set(n.getKey(),e.offset,"text"):jl(e)?ze(n)?t.set(n.getKey(),pv(n,r),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):(Ul(e)&&pe(n)||Le(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function bv(t,e){vv(t.anchor,e.anchor),vv(t.focus,e.focus)}function iR(t){const{anchor:e,focus:n}=t,r=n.isBefore(e)?"previous":"next";return Bl(hh(e,r),hh(n,r))}function _v(t){const{direction:e,origin:n}=t,r=zr(n,zl(e)).getNodeAtCaret();return r?zr(r,e):Io(n.getParentOrThrow(),e)}function h1(t,e="root"){const n=[t];for(let r=Ul(t)?t.getParentCaret(e):t.getSiblingCaret();r!==null;r=r.getParentCaret(e))n.push(_v(r));return n}function yv(t){return!!t&&t.origin.isAttached()}function sR(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",r="next";let i=e;const s=oR(t,r),o=h1(s.anchor,n),a=h1(s.focus.getFlipped(),n),c=new Set,u=[];for(const g of s.iterNodeCarets(n))if(Ul(g))c.add(g.origin.getKey());else if(jl(g)){const{origin:m}=g;pe(m)&&!c.has(m.getKey())||u.push(m)}for(const g of u)g.remove();for(const g of s.getTextSlices()){if(!g)continue;const{origin:m}=g.caret,b=m.getTextContentSize(),_=_v(zr(m,r)),v=m.getMode();if(Math.abs(g.distance)===b&&i==="removeEmptySlices"||v==="token"&&g.distance!==0)_.remove();else if(g.distance!==0){i="removeEmptySlices";let y=g.removeTextSlice();const w=g.caret.origin;if(v==="segmented"){const k=y.origin,S=bn(k.getTextContent()).setStyle(k.getStyle()).setFormat(k.getFormat());_.replaceOrInsert(S),y=ma(S,r,y.offset)}w.is(o[0].origin)&&(o[0]=y),w.is(a[0].origin)&&(a[0]=y.getFlipped())}}let d,h;for(const g of o)if(yv(g)){d=zu(g);break}for(const g of a)if(yv(g)){h=zu(g);break}const f=function(g,m,b){if(!g||!m)return null;const _=g.getParentAtCaret(),v=m.getParentAtCaret();if(!_||!v)return null;const y=_.getParents().reverse();y.push(_);const w=v.getParents().reverse();w.push(v);const k=Math.min(y.length,w.length);let S;for(S=0;S<k&&y[S]===w[S];S++);const C=(O,$)=>{let N;for(let I=S;I<O.length;I++){const j=O[I];if(ki(j))return;!N&&$(j)&&(N=j)}return N},E=C(y,Hi),A=E&&C(w,O=>b.has(O.getKey())&&Hi(O));return E&&A?[E,A]:null}(d,h,c);if(f){const[g,m]=f;Io(g,"previous").splice(0,m.getChildren()),m.remove()}const p=[d,h,...o,...a].find(yv);if(p){const g=ph(zu(p),t.direction);return Bl(g,g)}Le(269,JSON.stringify(o.map(g=>g.origin.__key)))}function zu(t){const e=function(i){let s=i;for(;Ul(s);){const o=f1(s);if(!Ul(o))break;s=o}return s}(t.getLatest()),{direction:n}=e;if(ze(e.origin))return Fu(e)?e:ma(e.origin,n,n);const r=e.getAdjacentCaret();return jl(r)&&ze(r.origin)?ma(r.origin,n,zl(n)):e}function ph(t,e){return t.direction===e?t:t.getFlipped()}function oR(t,e){return t.direction===e?t:Bl(ph(t.focus,e),ph(t.anchor,e))}function aR(t,e,n){let r=Io(t,"next");for(let i=0;i<e;i++){const s=r.getAdjacentCaret();if(s===null)break;r=s}return ph(r,n)}function lR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}lR(function(t){const e=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let r=1;r<arguments.length;r++)n.append("v",arguments[r]);throw e.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const cR=new Map;function uR(t){const e={};if(!t)return e;const n=t.split(";");for(const r of n)if(r!==""){const[i,s]=r.split(/:([^]+)/);i&&s&&(e[i.trim()]=s.trim())}return e}function p1(t,e){const n=t.getStartEndPoints();if(e.isSelected(t)&&!e.isSegmented()&&!e.isToken()&&n!==null){const[r,i]=n,s=t.isBackward(),o=r.getNode(),a=i.getNode(),c=e.is(o),u=e.is(a);if(c||u){const[d,h]=zm(t),f=o.is(a),p=e.is(s?a:o),g=e.is(s?o:a);let m,b=0;return f?(b=d>h?h:d,m=d>h?d:h):p?(b=s?h:d,m=void 0):g&&(b=0,m=s?d:h),e.__text=e.__text.slice(b,m),e}}return e}function dR(t){const e=t.getStyle(),n=uR(e);cR.set(e,n)}function fR(t,e){const n=t.getFormatType(),r=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),r!==e.getIndent()&&e.setIndent(r)}function gh(t,e,n=fR){if(t===null)return;const r=t.getStartEndPoints(),i=new Map;let s=null;if(r){const[o,a]=r;s=Um(),s.anchor.set(o.key,o.offset,o.type),s.focus.set(a.key,a.offset,a.type);const c=v1(o.getNode(),Hi),u=v1(a.getNode(),Hi);pe(c)&&i.set(c.getKey(),c),pe(u)&&i.set(u.getKey(),u)}for(const o of t.getNodes())pe(o)&&Hi(o)&&i.set(o.getKey(),o);for(const[o,a]of i){const c=e();n(a,c),a.replace(c,!0),s&&(o===s.anchor.key&&(s.anchor.key=c.getKey()),o===s.focus.key&&(s.focus.key=c.getKey()))}s&&t.is(je())&&Kr(s)}function g1(t,e){const n=Ru(t.focus,e);return Bt(n)&&!n.isIsolated()||pe(n)&&!n.isInline()&&!n.canBeEmpty()}function hR(t,e,n,r){t.modify(e?"extend":"move",n,r)}function pR(t){const e=t.anchor.getNode();return(Tr(e)?e:e.getParentOrThrow()).getDirection()==="rtl"}function m1(t,e,n){const r=pR(t);hR(t,e,n?!r:r,"character")}function v1(t,e){let n=t;for(;n!==null&&n.getParent()!==null&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function gR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var mR=gR(function(t){const e=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let r=1;r<arguments.length;r++)n.append("v",arguments[r]);throw e.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const b1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,vR=b1&&"documentMode"in document?document.documentMode:null;!(!b1||!("InputEvent"in window)||vR)&&"getTargetRanges"in new window.InputEvent("input");function _1(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))e.push(r);return e}function wv(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}function gr(t,...e){const n=_1(...e);n.length>0&&t.classList.add(...n)}function va(t,...e){const n=_1(...e);n.length>0&&t.classList.remove(...n)}function ju(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function bR(t){const e=Uu(t,n=>pe(n)&&!n.isInline());return pe(e)||mR(4,t.__key),e}const Uu=(t,e)=>{let n=t;for(;n!==Rn()&&n!=null;){if(e(n))return n;n=n.getParent()}return null};function ba(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function y1(t,e){const n=[],r=Array.from(t).reverse();for(let i=r.pop();i!==void 0;i=r.pop())if(e(i))n.push(i);else if(pe(i))for(const s of _R(i))r.push(s);return n}function _R(t){return yR(Io(t,"previous"))}function yR(t){return mv({hasNext:jl,initial:t.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}var xv={exports:{}},w1;function wR(){return w1||(w1=1,function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(y){return y instanceof c?new c(y.type,v(y.content),y.alias):Array.isArray(y)?y.map(v):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++s}),v.__id},clone:function v(y,w){w=w||{};var k,S;switch(a.util.type(y)){case"Object":if(S=a.util.objId(y),w[S])return w[S];k={},w[S]=k;for(var C in y)y.hasOwnProperty(C)&&(k[C]=v(y[C],w));return k;case"Array":return S=a.util.objId(y),w[S]?w[S]:(k=[],w[S]=k,y.forEach(function(E,A){k[A]=v(E,w)}),k);default:return y}},getLanguage:function(v){for(;v;){var y=i.exec(v.className);if(y)return y[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,y){v.className=v.className.replace(RegExp(i,"gi"),""),v.classList.add("language-"+y)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(k){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(v){var y=document.getElementsByTagName("script");for(var w in y)if(y[w].src==v)return y[w]}return null}},isActive:function(v,y,w){for(var k="no-"+y;v;){var S=v.classList;if(S.contains(y))return!0;if(S.contains(k))return!1;v=v.parentElement}return!!w}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(v,y){var w=a.util.clone(a.languages[v]);for(var k in y)w[k]=y[k];return w},insertBefore:function(v,y,w,k){k=k||a.languages;var S=k[v],C={};for(var E in S)if(S.hasOwnProperty(E)){if(E==y)for(var A in w)w.hasOwnProperty(A)&&(C[A]=w[A]);w.hasOwnProperty(E)||(C[E]=S[E])}var O=k[v];return k[v]=C,a.languages.DFS(a.languages,function($,N){N===O&&$!=v&&(this[$]=C)}),C},DFS:function v(y,w,k,S){S=S||{};var C=a.util.objId;for(var E in y)if(y.hasOwnProperty(E)){w.call(y,E,y[E],k||E);var A=y[E],O=a.util.type(A);O==="Object"&&!S[C(A)]?(S[C(A)]=!0,v(A,w,null,S)):O==="Array"&&!S[C(A)]&&(S[C(A)]=!0,v(A,w,E,S))}}},plugins:{},highlightAll:function(v,y){a.highlightAllUnder(document,v,y)},highlightAllUnder:function(v,y,w){var k={callback:w,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),a.hooks.run("before-all-elements-highlight",k);for(var S=0,C;C=k.elements[S++];)a.highlightElement(C,y===!0,k.callback)},highlightElement:function(v,y,w){var k=a.util.getLanguage(v),S=a.languages[k];a.util.setLanguage(v,k);var C=v.parentElement;C&&C.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(C,k);var E=v.textContent,A={element:v,language:k,grammar:S,code:E};function O(N){A.highlightedCode=N,a.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,a.hooks.run("after-highlight",A),a.hooks.run("complete",A),w&&w.call(A.element)}if(a.hooks.run("before-sanity-check",A),C=A.element.parentElement,C&&C.nodeName.toLowerCase()==="pre"&&!C.hasAttribute("tabindex")&&C.setAttribute("tabindex","0"),!A.code){a.hooks.run("complete",A),w&&w.call(A.element);return}if(a.hooks.run("before-highlight",A),!A.grammar){O(a.util.encode(A.code));return}if(y&&r.Worker){var $=new Worker(a.filename);$.onmessage=function(N){O(N.data)},$.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else O(a.highlight(A.code,A.grammar,A.language))},highlight:function(v,y,w){var k={code:v,grammar:y,language:w};if(a.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=a.tokenize(k.code,k.grammar),a.hooks.run("after-tokenize",k),c.stringify(a.util.encode(k.tokens),k.language)},tokenize:function(v,y){var w=y.rest;if(w){for(var k in w)y[k]=w[k];delete y.rest}var S=new h;return f(S,S.head,v),d(v,S,y,S.head,0),g(S)},hooks:{all:{},add:function(v,y){var w=a.hooks.all;w[v]=w[v]||[],w[v].push(y)},run:function(v,y){var w=a.hooks.all[v];if(!(!w||!w.length))for(var k=0,S;S=w[k++];)S(y)}},Token:c};r.Prism=a;function c(v,y,w,k){this.type=v,this.content=y,this.alias=w,this.length=(k||"").length|0}c.stringify=function v(y,w){if(typeof y=="string")return y;if(Array.isArray(y)){var k="";return y.forEach(function(O){k+=v(O,w)}),k}var S={type:y.type,content:v(y.content,w),tag:"span",classes:["token",y.type],attributes:{},language:w},C=y.alias;C&&(Array.isArray(C)?Array.prototype.push.apply(S.classes,C):S.classes.push(C)),a.hooks.run("wrap",S);var E="";for(var A in S.attributes)E+=" "+A+'="'+(S.attributes[A]||"").replace(/"/g,""")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+E+">"+S.content+"</"+S.tag+">"};function u(v,y,w,k){v.lastIndex=y;var S=v.exec(w);if(S&&k&&S[1]){var C=S[1].length;S.index+=C,S[0]=S[0].slice(C)}return S}function d(v,y,w,k,S,C){for(var E in w)if(!(!w.hasOwnProperty(E)||!w[E])){var A=w[E];A=Array.isArray(A)?A:[A];for(var O=0;O<A.length;++O){if(C&&C.cause==E+","+O)return;var $=A[O],N=$.inside,I=!!$.lookbehind,j=!!$.greedy,q=$.alias;if(j&&!$.pattern.global){var B=$.pattern.toString().match(/[imsuy]*$/)[0];$.pattern=RegExp($.pattern.source,B+"g")}for(var W=$.pattern||$,G=k.next,J=S;G!==y.tail&&!(C&&J>=C.reach);J+=G.value.length,G=G.next){var ne=G.value;if(y.length>v.length)return;if(!(ne instanceof c)){var K=1,Y;if(j){if(Y=u(W,J,v,I),!Y||Y.index>=v.length)break;var Q=Y.index,re=Y.index+Y[0].length,ce=J;for(ce+=G.value.length;Q>=ce;)G=G.next,ce+=G.value.length;if(ce-=G.value.length,J=ce,G.value instanceof c)continue;for(var he=G;he!==y.tail&&(ce<re||typeof he.value=="string");he=he.next)K++,ce+=he.value.length;K--,ne=v.slice(J,ce),Y.index-=J}else if(Y=u(W,0,ne,I),!Y)continue;var Q=Y.index,X=Y[0],de=ne.slice(0,Q),ye=ne.slice(Q+X.length),ve=J+ne.length;C&&ve>C.reach&&(C.reach=ve);var be=G.prev;de&&(be=f(y,be,de),J+=de.length),p(y,be,K);var fe=new c(E,N?a.tokenize(X,N):X,q,X);if(G=f(y,be,fe),ye&&f(y,G,ye),K>1){var Oe={cause:E+","+O,reach:ve};d(v,y,w,G.prev,J,Oe),C&&Oe.reach>C.reach&&(C.reach=Oe.reach)}}}}}}function h(){var v={value:null,prev:null,next:null},y={value:null,prev:v,next:null};v.next=y,this.head=v,this.tail=y,this.length=0}function f(v,y,w){var k=y.next,S={value:w,prev:y,next:k};return y.next=S,k.prev=S,v.length++,S}function p(v,y,w){for(var k=y.next,S=0;S<w&&k!==v.tail;S++)k=k.next;y.next=k,k.prev=y,v.length-=S}function g(v){for(var y=[],w=v.head.next;w!==v.tail;)y.push(w.value),w=w.next;return y}if(!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(v){var y=JSON.parse(v.data),w=y.language,k=y.code,S=y.immediateClose;r.postMessage(a.highlight(k,a.languages[w],w)),S&&r.close()},!1)),a;var m=a.util.currentScript();m&&(a.filename=m.src,m.hasAttribute("data-manual")&&(a.manual=!0));function b(){a.manual||a.highlightAll()}if(!a.manual){var _=document.readyState;_==="loading"||_==="interactive"&&m&&m.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return a}(e);t.exports&&(t.exports=n),typeof Nw<"u"&&(Nw.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:a},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(m,b){return"✖ Error "+m+" while fetching file: "+b},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",c="loading",u="loaded",d="failed",h="pre[data-src]:not(["+a+'="'+u+'"]):not(['+a+'="'+c+'"])';function f(m,b,_){var v=new XMLHttpRequest;v.open("GET",m,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?b(v.responseText):v.status>=400?_(i(v.status,v.statusText)):_(s))},v.send(null)}function p(m){var b=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m||"");if(b){var _=Number(b[1]),v=b[2],y=b[3];return v?y?[_,Number(y)]:[_,void 0]:[_,_]}}n.hooks.add("before-highlightall",function(m){m.selector+=", "+h}),n.hooks.add("before-sanity-check",function(m){var b=m.element;if(b.matches(h)){m.code="",b.setAttribute(a,c);var _=b.appendChild(document.createElement("CODE"));_.textContent=r;var v=b.getAttribute("data-src"),y=m.language;if(y==="none"){var w=(/\.(\w+)$/.exec(v)||[,"none"])[1];y=o[w]||w}n.util.setLanguage(_,y),n.util.setLanguage(b,y);var k=n.plugins.autoloader;k&&k.loadLanguages(y),f(v,function(S){b.setAttribute(a,u);var C=p(b.getAttribute("data-range"));if(C){var E=S.split(/\r\n?|\n/g),A=C[0],O=C[1]==null?E.length:C[1];A<0&&(A+=E.length),A=Math.max(0,Math.min(A-1,E.length)),O<0&&(O+=E.length),O=Math.max(0,Math.min(O,E.length)),S=E.slice(A,O).join(`
|
|
38
38
|
`),b.hasAttribute("data-start")||b.setAttribute("data-start",String(A+1))}_.textContent=S,n.highlightElement(_)},function(S){b.setAttribute(a,d),_.textContent=S})}}),n.plugins.fileHighlight={highlight:function(b){for(var _=(b||document).querySelectorAll(h),v=0,y;y=_[v++];)n.highlightElement(y)}};var g=!1;n.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xv)),xv.exports}wR(),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(h){d!==h&&(t.languages.markdown[d].inside.content.inside[h]=t.languages.markdown[h])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function h(f){if(!(!f||typeof f=="string"))for(var p=0,g=f.length;p<g;p++){var m=f[p];if(m.type!=="code"){h(m.content);continue}var b=m.content[1],_=m.content[3];if(b&&_&&b.type==="code-language"&&_.type==="code-block"&&typeof b.content=="string"){var v=b.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase();var y="language-"+v;_.alias?typeof _.alias=="string"?_.alias=[_.alias,y]:_.alias.push(y):_.alias=[y]}}}h(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var h="",f=0,p=d.classes.length;f<p;f++){var g=d.classes[f],m=/language-(.+)/.exec(g);if(m){h=m[1];break}}var b=t.languages[h];if(b)d.content=t.highlight(u(d.content),b,h);else if(h&&h!=="none"&&t.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=_,t.plugins.autoloader.loadLanguages(h,function(){var v=document.getElementById(_);v&&(v.innerHTML=t.highlight(v.textContent,t.languages[h],h))})}}});var o=RegExp(t.languages.markup.tag.pattern.source,"gi"),a={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(d){var h=d.replace(o,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(f,p){if(p=p.toLowerCase(),p[0]==="#"){var g;return p[1]==="x"?g=parseInt(p.slice(2),16):g=Number(p.slice(1)),c(g)}else{var m=a[p];return m||f}}),h}t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}}(Prism);var x1={},k1;function xR(){return k1||(k1=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),x1}xR();var S1={},E1;function kR(){return E1||(E1=1,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism)),S1}kR(),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});var T1={},C1;function SR(){return C1||(C1=1,function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism)),T1}SR();var A1={},P1;function ER(){return P1||(P1=1,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)),A1}ER();var O1={},L1;function TR(){return L1||(L1=1,function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism)),O1}TR();function CR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ql=CR(function(t){const e=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let r=1;r<arguments.length;r++)n.append("v",arguments[r]);throw e.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const mh=globalThis.Prism||window.Prism,$1=t=>{try{return!!t&&mh.languages.hasOwnProperty(t)}catch{return!1}};function N1(t,e){for(const n of t.childNodes){if(wn(n)&&n.tagName===e)return!0;N1(n,e)}return!1}const Bu="data-language",vh="data-highlight-language";let _a=class ZA extends er{static getType(){return"code"}static clone(e){return new ZA(e.__language,e.__key)}constructor(e,n){super(n),this.__language=e||void 0,this.__isSyntaxHighlightSupported=$1(e)}createDOM(e){const n=document.createElement("code");gr(n,e.theme.code),n.setAttribute("spellcheck","false");const r=this.getLanguage();return r&&(n.setAttribute(Bu,r),this.getIsSyntaxHighlightSupported()&&n.setAttribute(vh,r)),n}updateDOM(e,n,r){const i=this.__language,s=e.__language;return i?i!==s&&(n.setAttribute(Bu,i),this.__isSyntaxHighlightSupported&&n.setAttribute(vh,i)):s&&(n.removeAttribute(Bu),e.__isSyntaxHighlightSupported&&n.removeAttribute(vh)),!1}exportDOM(e){const n=document.createElement("pre");gr(n,e._config.theme.code),n.setAttribute("spellcheck","false");const r=this.getLanguage();return r&&(n.setAttribute(Bu,r),this.getIsSyntaxHighlightSupported()&&n.setAttribute(vh,r)),{element:n}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||N1(e,"BR"))?{conversion:I1,priority:1}:null,div:()=>({conversion:AR,priority:1}),pre:()=>({conversion:I1,priority:0}),table:e=>kv(e)?{conversion:PR,priority:3}:null,td:e=>{const n=e,r=n.closest("table");return n.classList.contains("js-file-line")||r&&kv(r)?{conversion:R1,priority:3}:null},tr:e=>{const n=e.closest("table");return n&&kv(n)?{conversion:R1,priority:3}:null}}}static importJSON(e){return Vi().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage()}}insertNewAfter(e,n=!0){const r=this.getChildren(),i=r.length;if(i>=2&&r[i-1].getTextContent()===`
|
|
39
39
|
`&&r[i-2].getTextContent()===`
|
|
40
40
|
`&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===i){r[i-1].remove(),r[i-2].remove();const c=fn();return this.insertAfter(c,n),c}const{anchor:s,focus:o}=e,a=(s.isBefore(o)?s:o).getNode();if(ze(a)){let c=ya(a);const u=[];for(;;)if(Xn(c))u.push(yi()),c=c.getNextSibling();else{if(!xn(c))break;{let b=0;const _=c.getTextContent(),v=c.getTextContentSize();for(;b<v&&_[b]===" ";)b++;if(b!==0&&u.push(Ev(" ".repeat(b))),b!==v)break;c=c.getNextSibling()}}const d=a.splitText(s.offset)[0],h=s.offset===0?0:1,f=d.getIndexWithinParent()+h,p=a.getParentOrThrow(),g=[_i(),...u];p.splice(f,0,g);const m=u[u.length-1];m?m.select():s.offset===0?d.selectPrevious():d.getNextSibling().selectNext(0,0)}if(tr(a)){const{offset:c}=e.anchor;a.splice(c,0,[_i()]),a.select(c+1,c+1)}return null}canIndent(){return!1}collapseAtStart(){const e=fn();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){const n=this.getWritable();return n.__language=e||void 0,n.__isSyntaxHighlightSupported=$1(e),n}getLanguage(){return this.getLatest().__language}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}};function Vi(t){return Fr(new _a(t))}function tr(t){return t instanceof _a}function I1(t){return{node:Vi(t.getAttribute(Bu))}}function AR(t){const e=t,n=D1(e);return n||function(r){let i=r.parentElement;for(;i!==null;){if(D1(i))return!0;i=i.parentElement}return!1}(e)?{node:n?Vi():null}:{node:null}}function PR(){return{node:Vi()}}function R1(){return{node:null}}function D1(t){return t.style.fontFamily.match("monospace")!==null}function kv(t){return t.classList.contains("js-file-line-container")}const OR="javascript";let qu=class XA extends Po{constructor(e="",n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new XA(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){const n=this.getWritable();return n.__highlightType=e||void 0,n}canHaveFormat(){return!1}createDOM(e){const n=super.createDOM(e),r=Sv(e.theme,this.__highlightType);return gr(n,r),n}updateDOM(e,n,r){const i=super.updateDOM(e,n,r),s=Sv(r.theme,e.__highlightType),o=Sv(r.theme,this.__highlightType);return s!==o&&(s&&va(n,s),o&&gr(n,o)),i}static importJSON(e){return Ev().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return Vi()}};function Sv(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Ev(t="",e){return Fr(new qu(t,e))}function xn(t){return t instanceof qu}function ya(t){let e=t,n=t;for(;xn(n)||Xn(n);)e=n,n=n.getPreviousSibling();return e}function Hu(t){let e=t,n=t;for(;xn(n)||Xn(n);)e=n,n=n.getNextSibling();return e}const LR={defaultLanguage:OR,tokenize(t,e){return mh.tokenize(t,mh.languages[e||""]||mh.languages[this.defaultLanguage])}};function $R(t,e){let n=null,r=null,i=t,s=e,o=t.getTextContent();for(;;){if(s===0){if(i=i.getPreviousSibling(),i===null)break;if(xn(i)||Xn(i)||nn(i)||ql(167),nn(i)){n={node:i,offset:1};break}s=Math.max(0,i.getTextContentSize()-1),o=i.getTextContent()}else s--;const c=o[s];xn(i)&&c!==" "&&(r={node:i,offset:s})}if(r!==null)return r;let a=null;if(e<t.getTextContentSize())xn(t)&&(a=t.getTextContent()[e]);else{const c=t.getNextSibling();xn(c)&&(a=c.getTextContent()[0])}if(a!==null&&a!==" ")return n;{const c=function(u,d){let h=u,f=d,p=u.getTextContent(),g=u.getTextContentSize();for(;;){if(!xn(h)||f===g){if(h=h.getNextSibling(),h===null||nn(h))return null;xn(h)&&(f=0,p=h.getTextContent(),g=h.getTextContentSize())}if(xn(h)){if(p[f]!==" ")return{node:h,offset:f};f++}}}(t,e);return c!==null?c:n}}function NR(t){const e=Hu(t);return nn(e)&&ql(168),e}function M1(t,e,n){const r=t.getParent();tr(r)?F1(r,e,n):xn(t)&&t.replace(bn(t.__text))}function IR(t,e){const n=e.getElementByKey(t.getKey());if(n===null)return;const r=t.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let s="1",o=1;for(let a=0;a<i;a++)nn(r[a])&&(s+=`
|
|
@@ -112,7 +112,7 @@ ${m}`;b.inputValue=O}))}),Be(()=>{b.initialized&&(b.inputValue,Ee(()=>{const{lan
|
|
|
112
112
|
.clone.resizing.svelte-5wws1x {transition-duration:0ms;}textarea.svelte-5wws1x:focus,
|
|
113
113
|
.clone.svelte-5wws1x: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));}textarea.svelte-5wws1x:disabled, textarea.svelte-5wws1x:read-only,
|
|
114
114
|
.clone.svelte-5wws1x:disabled,
|
|
115
|
-
.clone.svelte-5wws1x:read-only {background-color:var(--sui-disabled-background-color);}textarea.svelte-5wws1x {resize:vertical;}textarea.auto-resize.svelte-5wws1x {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-5wws1x {border-color:var(--sui-error-border-color);}.clone.svelte-5wws1x {overflow:hidden;visibility:hidden;white-space:pre-wrap;}`};function Oh(t,e){Te(t,NM);let n=P(e,"value",15,""),r=P(e,"flex",3,!1),i=P(e,"name",3,void 0),s=P(e,"autoResize",3,!1),o=P(e,"hidden",3,!1),a=P(e,"disabled",3,!1),c=P(e,"readonly",3,!1),u=P(e,"required",3,!1),d=P(e,"invalid",3,!1),h=at(e,["$$slots","$$events","$$legacy","value","flex","name","autoResize","class","hidden","disabled","readonly","required","invalid","children"]);var f=$M(),p=R(f);let g;var m=D(p,2);{var b=_=>{var v=LM(),y=R(v);H(()=>Z(y,n())),T(_,v)};U(m,_=>{s()&&_(b)})}H(()=>{Ir(f,`sui text-area ${e.class??""} svelte-5wws1x`),f.hidden=o(),ft(f,"flex",r()),ft(f,"disabled",a()),ft(f,"readonly",c()),g=yt(p,g,{...h,name:i(),dir:"auto",disabled:a()||void 0,readonly:c()||void 0,"aria-hidden":o(),"aria-disabled":a(),"aria-readonly":c(),"aria-required":u(),"aria-invalid":d()},"svelte-5wws1x"),ft(p,"auto-resize",s()),p.dir=p.dir}),ff(p,n),T(t,f)}const Gn=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Ku=t=>JSON.parse(JSON.stringify(t)),nS=t=>Array.isArray(t)&&t.every(e=>Gn(e)),ec=t=>[...new Set(t)];function IM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=os("editorStore"),o=x(()=>s.selection.inlineTypes.includes(e.type)),a=x(()=>i()(`_sui.text_editor.${Ta[e.type].labelKey}`)),c=x(()=>!s.useRichText);Xe(t,{iconic:!0,get"aria-label"(){return l(a)},get"aria-controls"(){return`${s.editorId??""}-lexical-root`},get disabled(){return l(c)},get pressed(){return l(o)},onclick:async()=>{s.editor&&(await Ph(s.editor),s.editor.dispatchCommand(Bs,e.type))},startIcon:d=>{nt(d,{get name(){return Ta[e.type].icon}})},$$slots:{startIcon:!0}}),oe(),r()}function RM(t,e){se(e,!0);const n=os("editorStore"),r=x(()=>!n.useRichText);Xe(t,{iconic:!0,get"aria-label"(){return e.component.label},get"aria-controls"(){return`${n.editorId??""}-lexical-root`},get disabled(){return l(r)},onclick:()=>{n.editor?.update(()=>{Eu([e.component.createNode(),fn()])})},startIcon:s=>{nt(s,{get name(){return e.component.icon}})},$$slots:{startIcon:!0}}),oe()}var DM=F('<div role="none"><label> </label> <!></div>'),MM=F('<div role="none"><label> </label> <!></div> <!>',1),FM=F("<!> <!>",1);function zM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=Zn("insert-link"),o="link",a=os("editorStore"),c=x(()=>a.selection.inlineTypes.includes(o));let u=ae(!1),d=ae("create"),h=ae(!1),f=ae(""),p=ae("");const g=()=>{a.editor?.getEditorState().read(()=>{const I=PI().trim();L(f,ie(I)),L(h,!!I),L(d,"create"),L(u,!0)})},m=()=>{a.editor?.dispatchCommand(Ov,null)},b=()=>{a.editor?.getEditorState().read(()=>{const I=je();if(Pe(I)){const j=I.anchor.getNode(),B=(j instanceof Gs?j:ju(j,Gs))?.getURL();if(B){L(h,!0),L(f,ie(B)),L(d,"update"),L(u,!0);return}}m()})},_=()=>{l(c)?b():g()},v=I=>{Qg(I,"Enter")&&l(f)&&L(u,!1)},y=async I=>{if(I.detail.returnValue!=="cancel"&&l(d)!=="remove"){if(!a.editor)return;await new Promise(j=>{a.editor?.update(async()=>{let q=je()??Nl()?.clone();if(Pe(q)||(q=Um()),!l(h)){L(p,ie(l(p).trim())),L(p,ie(l(p)||l(f)));const{anchor:B,focus:W}=q,G=bn(l(p)),J=G.getKey();Eu([G]),B.set(J,l(p).length,"text"),W.set(J,0,"text")}Kr(q),j(void 0)})}),await Ph(a.editor),a.editor.dispatchCommand(Ov,l(f))}L(f,""),L(p,"")},w=()=>{a.editor?.registerCommand(Kx,I=>(Qg(I,_x()?"Meta+K":"Ctrl+K")&&(I.preventDefault(),_()),!1),Lu)};Be(()=>{a.editor&&w()});var k=FM(),S=M(k);const C=x(()=>i()(`_sui.text_editor.${Ta[o].labelKey}`)),E=x(()=>!a.useRichText);Xe(S,{iconic:!0,get"aria-label"(){return l(C)},get"aria-controls"(){return`${a.editorId??""}-lexical-root`},get disabled(){return l(E)},get pressed(){return l(c)},onclick:()=>{_()},startIcon:j=>{nt(j,{get name(){return Ta[o].icon}})},$$slots:{startIcon:!0}});var A=D(S,2);const O=x(()=>l(d)==="create"?i()("_sui.text_editor.insert_link"):i()("_sui.text_editor.update_link")),$=x(()=>!l(f)),N=x(()=>l(d)==="create"?i()("_sui.insert"):i()("_sui.update"));ps(A,{get title(){return l(O)},get okDisabled(){return l($)},get okLabel(){return l(N)},onClose:j=>{y(j)},get open(){return l(u)},set open(j){L(u,ie(j))},get value(){return l(f)},set value(j){L(f,ie(j))},footerExtra:j=>{var q=V(),B=M(q);{var W=G=>{const J=x(()=>i()("_sui.remove"));Xe(G,{variant:"secondary",get label(){return l(J)},onclick:()=>{m(),L(d,"remove"),L(u,!1)}})};U(B,G=>{l(d)!=="create"&&G(W)})}T(j,q)},children:(j,q)=>{var B=MM(),W=M(B),G=R(W);Se(G,"for",`${s??""}-url`);var J=R(G),ne=D(G,2);An(ne,{id:`${s??""}-url`,flex:!0,"aria-label":"URL",onkeydown:re=>{v(re)},get value(){return l(f)},set value(re){L(f,ie(re))}});var K=D(W,2);{var Y=re=>{var ce=DM(),he=R(ce);Se(he,"for",`${s??""}-text`);var Q=R(he),X=D(he,2);An(X,{id:`${s??""}-text`,flex:!0,onkeydown:de=>{v(de)},get value(){return l(p)},set value(de){L(p,ie(de))}}),H(de=>Z(Q,de),[()=>i()("_sui.text_editor.text")]),T(re,ce)};U(K,re=>{l(h)||re(Y)})}H(re=>Z(J,re),[()=>i()("_sui.text_editor.url")]),T(j,B)},$$slots:{footerExtra:!0,default:!0}}),T(t,k),oe(),r()}function jM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=os("editorStore"),o=x(()=>!s.useRichText),a=x(()=>i()("_sui.insert"));kr(t,{get disabled(){return l(o)},get label(){return l(a)},endIcon:d=>{nt(d,{name:"arrow_drop_down",class:"small-arrow"})},popup:d=>{hr(d,{children:(h,f)=>{var p=V(),g=M(p);dt(g,17,()=>e.components,({id:m,label:b,icon:_,createNode:v})=>m,(m,b)=>{let _=()=>l(b).label,v=()=>l(b).icon,y=()=>l(b).createNode;$t(m,{get label(){return _()},onclick:()=>{s.editor?.update(()=>{Eu([y()()])})},startIcon:k=>{var S=V(),C=M(S);{var E=A=>{nt(A,{get name(){return v()}})};U(C,A=>{v()&&A(E)})}T(k,S)},$$slots:{startIcon:!0}})}),T(h,p)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}}),oe(),r()}function UM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=os("editorStore"),o=x(()=>s.selection.blockType===e.type),a=async()=>{if(!s.editor)return;await Ph(s.editor);const[,d]=e.type.match(/^heading-(\d)$/)??[];d&&s.editor.update(()=>{gh(je(),()=>Sa(`h${d}`))}),e.type==="paragraph"&&s.editor.update(()=>{gh(je(),()=>fn())}),e.type==="bulleted-list"&&s.editor.dispatchCommand(sk,void 0),e.type==="numbered-list"&&s.editor.dispatchCommand(ok,void 0),e.type==="blockquote"&&s.editor.update(()=>{gh(je(),()=>xh())}),e.type==="code-block"&&s.editor.update(()=>{gh(je(),()=>Vi())})};var c=V(),u=M(c);hs(u,()=>l(o),d=>{const h=x(()=>i()(`_sui.text_editor.${Ta[e.type].labelKey}`));Af(d,{get label(){return l(h)},get checked(){return l(o)},onclick:()=>{l(o)||a()},startIcon:p=>{nt(p,{get name(){return Ta[e.type].icon}})},$$slots:{startIcon:!0}})}),T(t,c),oe(),r()}var BM=F("<!> <!>",1),qM=F("<!> <!>",1),HM=F("<!> <!> <!>",1),VM=F("<!> <!>",1),WM=F("<!> <!> <!> <!>",1);function GM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"disabled",3,!1),o=P(e,"readonly",3,!1);const a=os("editorStore"),c=x(()=>a.config.components.find(({id:g})=>g==="image")),u=x(()=>a.config.components.filter(({id:g})=>g!=="image")),d=x(()=>ec(["paragraph",...a.config.enabledButtons.filter(g=>Vv.includes(g))])),h=x(()=>ec([...a.config.enabledButtons.filter(g=>Wk.includes(g))])),f=x(()=>s()||o()),p=x(()=>i()("_sui.text_editor.text_editor"));tS(t,{get disabled(){return l(f)},get"aria-label"(){return l(p)},children:(g,m)=>{var b=WM(),_=M(b);const v=x(()=>!a.useRichText),y=x(()=>i()("_sui.text_editor.show_text_style_options"));kr(_,{get disabled(){return l(v)},get"aria-label"(){return l(y)},get"aria-controls"(){return`${a.editorId??""}-lexical-root`},startIcon:N=>{const I=x(()=>Ta[a.selection.blockType??""]?.icon??"format_paragraph");nt(N,{get name(){return l(I)}})},popup:N=>{const I=x(()=>i()("_sui.text_editor.text_style_options"));hr(N,{get"aria-label"(){return l(I)},children:(j,q)=>{var B=V(),W=M(B);dt(W,16,()=>l(d),G=>G,(G,J)=>{UM(G,{get type(){return J}})}),T(j,B)},$$slots:{default:!0}})},$$slots:{startIcon:!0,popup:!0}});var w=D(_,2);{var k=O=>{var $=BM(),N=M($);Sr(N,{orientation:"vertical"});var I=D(N,2);const j=x(()=>!a.useRichText);eS(I,{get disabled(){return l(j)}}),T(O,$)},S=O=>{var $=VM(),N=M($);{var I=B=>{var W=qM(),G=M(W);Sr(G,{orientation:"vertical"});var J=D(G,2);AL(J,{children:(ne,K)=>{var Y=V(),re=M(Y);dt(re,16,()=>l(h),ce=>ce,(ce,he)=>{var Q=V(),X=M(Q);{var de=ve=>{zM(ve,{})},_e=ve=>{IM(ve,{get type(){return he}})};U(X,ve=>{he==="link"?ve(de):ve(_e,!1)})}T(ce,Q)}),T(ne,Y)},$$slots:{default:!0}}),T(B,W)};U(N,B=>{l(h).length&&B(I)})}var j=D(N,2);{var q=B=>{var W=HM(),G=M(W);Sr(G,{orientation:"vertical"});var J=D(G,2);{var ne=re=>{RM(re,{get component(){return l(c)}})};U(J,re=>{l(c)&&re(ne)})}var K=D(J,2);{var Y=re=>{jM(re,{get components(){return l(u)}})};U(K,re=>{l(u).length&&re(Y)})}T(B,W)};U(j,B=>{a.config.components.length&&B(q)})}T(O,$)};U(w,O=>{a.selection.blockType==="code-block"?O(k):O(S,!1)})}var C=D(w,2);Wr(C,{flex:!0});var E=D(C,2);{var A=O=>{const $=x(()=>!a.useRichText),N=x(()=>i()("_sui.text_editor.edit_in_markdown"));Xe(O,{iconic:!0,get disabled(){return a.hasConverterError},get pressed(){return l($)},get"aria-label"(){return l(N)},onclick:()=>{a.useRichText=!a.useRichText,a.useRichText&&a.convertMarkdown()},startIcon:j=>{nt(j,{name:"markdown"})},$$slots:{startIcon:!0}})};U(E,O=>{a.config.modes.length>1&&O(A)})}T(g,b)},$$slots:{default:!0}}),oe(),r()}var KM=F("<div><!> <!> <!></div> <!>",1);const YM={hash:"svelte-1yhr7c5",code:".text-editor.svelte-1yhr7c5 {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.text-editor.svelte-1yhr7c5 .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-1yhr7c5 .sui.text-area textarea {border-radius:0 0 var(--sui-textbox-border-radius) var(--sui-textbox-border-radius) !important;}"};function JM(t,e){se(e,!0),Te(t,YM);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15,""),o=P(e,"flex",3,!1),a=P(e,"modes",19,()=>["rich-text","plain-text"]),c=P(e,"buttons",19,()=>[...Wk,...Vv]),u=P(e,"components",19,()=>[]),d=P(e,"hidden",3,!1),h=P(e,"disabled",3,!1),f=P(e,"readonly",3,!1),p=P(e,"required",3,!1),g=P(e,"invalid",3,!1),m=at(e,["$$slots","$$events","$$legacy","value","flex","modes","buttons","components","hidden","disabled","readonly","required","invalid","children"]);const b=Qk();b.config.modes=a(),b.config.enabledButtons=c(),b.config.components=u(),vg("editorStore",b),Be(()=>{if(!b.initialized)return;const $=s();Ee(()=>{b.inputValue=$})}),Be(()=>{if(!b.initialized)return;const $=b.inputValue;Ee(()=>{s()!==$&&s($)})});var _=KM(),v=M(_);let y;var w=R(v);GM(w,{get disabled(){return h()},get readonly(){return f()}});var k=D(w,2);const S=x(()=>!b.useRichText||d());Xk(k,{get hidden(){return l(S)},get disabled(){return h()},get readonly(){return f()},get required(){return p()},get invalid(){return g()}});var C=D(k,2);const E=x(()=>b.useRichText||d());Oh(C,{autoResize:!0,get flex(){return o()},get hidden(){return l(E)},get disabled(){return h()},get readonly(){return f()},get required(){return p()},get invalid(){return g()},get value(){return b.inputValue},set value($){b.inputValue=$}});var A=D(v,2);{var O=$=>{Hn($,{get show(){return b.showConverterError},set show(N){b.showConverterError=N},children:(N,I)=>{qn(N,{status:"error",children:(j,q)=>{var B=We();H(W=>Z(B,W),[()=>i()("_sui.text_editor.converter_error")]),T(j,B)},$$slots:{default:!0}})},$$slots:{default:!0}})};U(A,$=>{b.showConverterError&&$(O)})}H(()=>{y=yt(v,y,{...m,role:"none",class:"sui text-editor",hidden:d()},"svelte-1yhr7c5"),ft(v,"flex",o())}),T(t,_),oe(),r()}var ZM=F('<div role="none"><div role="none" class="buttons svelte-ocpvsq"><!> <!></div> <!></div>');const XM={hash:"svelte-ocpvsq",code:'.number-input.svelte-ocpvsq {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-ocpvsq {width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-ocpvsq :not(:first-child) input {border-top-left-radius:0;border-bottom-left-radius:0;}.number-input.svelte-ocpvsq :not(:last-child) input {border-top-right-radius:0;border-bottom-right-radius:0;}.number-input.svelte-ocpvsq:not(.disabled) button[aria-disabled="true"] {filter:grayscale(0) opacity(1);}.number-input.svelte-ocpvsq:not(.disabled) button[aria-disabled="true"] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-ocpvsq .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-ocpvsq {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-ocpvsq button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-ocpvsq button:first-of-type {border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;border-width:1px 0 0 1px;}.buttons.svelte-ocpvsq button:last-of-type {border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-width:0 0 1px 1px;}.buttons.svelte-ocpvsq button .icon {font-size:20px;}'};function QM(t,e){se(e,!0),Te(t,XM);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15),o=P(e,"invalid",15,!1),a=P(e,"flex",3,!1),c=P(e,"min",3,void 0),u=P(e,"max",3,void 0),d=P(e,"step",3,1),h=P(e,"hidden",3,!1),f=P(e,"disabled",3,!1),p=P(e,"readonly",3,!1),g=P(e,"required",3,!1),m=at(e,["$$slots","$$events","$$legacy","value","invalid","flex","min","max","step","class","hidden","disabled","readonly","required","children","increaseIcon","decreaseIcon","onChange"]);const b=Zn("input");let _=ae(!1),v=ae("");const y=x(()=>String(d()).split(".")[1]?.length||0),w=x(()=>typeof c()=="number"&&Number(l(v)||0)<=c()),k=x(()=>typeof u()=="number"&&Number(l(v)||0)>=u());Be(()=>{const J=String(s()??"");Ee(()=>{l(v)!==J&&L(v,ie(J))})}),Be(()=>{const J=l(v).trim()?Number(l(v)):NaN;s(Number.isNaN(J)?void 0:J)}),Be(()=>{l(_)&&o(g()&&(s()===void 0||l(v)==="")||l(v)!==void 0&&l(v)!==""&&(Number.isNaN(Number(l(v)))||typeof c()=="number"&&Number(l(v)||0)<c()||typeof u()=="number"&&Number(l(v)||0)>u()))});const S=()=>{l(w)||Number.isNaN(Number(l(v)))||L(v,ie(Number(Number(l(v)||0)-d()).toFixed(l(y))))},C=()=>{l(k)||Number.isNaN(Number(l(v)))||L(v,ie(Number(Number(l(v)||0)+d()).toFixed(l(y))))};var E=ZM(),A=R(E),O=R(A);const $=x(()=>f()||p()||Number.isNaN(Number(s()))||l(k)),N=x(()=>i()("_sui.number_input.increase"));Xe(O,{iconic:!0,get disabled(){return l($)},get"aria-label"(){return l(N)},"aria-controls":b,onclick:()=>{C()},startIcon:ne=>{var K=V(),Y=M(K);{var re=he=>{var Q=V(),X=M(Q);Re(X,()=>e.increaseIcon),T(he,Q)},ce=he=>{nt(he,{name:"expand_less"})};U(Y,he=>{e.increaseIcon?he(re):he(ce,!1)})}T(ne,K)},$$slots:{startIcon:!0}});var I=D(O,2);const j=x(()=>f()||p()||Number.isNaN(Number(s()))||l(w)),q=x(()=>i()("_sui.number_input.decrease"));Xe(I,{iconic:!0,get disabled(){return l(j)},get"aria-label"(){return l(q)},"aria-controls":b,onclick:()=>{S()},startIcon:ne=>{var K=V(),Y=M(K);{var re=he=>{var Q=V(),X=M(Q);Re(X,()=>e.decreaseIcon),T(he,Q)},ce=he=>{nt(he,{name:"expand_more"})};U(Y,he=>{e.decreaseIcon?he(re):he(ce,!1)})}T(ne,K)},$$slots:{startIcon:!0}});var B=D(A,2);const W=x(()=>Number(s()||0)),G=x(()=>l(y)>0?"decimal":"numeric");An(B,Zt(()=>m,{role:"spinbutton",id:b,spellcheck:"false",get flex(){return a()},get hidden(){return h()},get disabled(){return f()},get readonly(){return p()},get required(){return g()},get invalid(){return o()},get"aria-valuenow"(){return l(W)},get"aria-valuemin"(){return c()},get"aria-valuemax"(){return u()},get inputmode(){return l(G)},onkeydown:J=>{const{key:ne,ctrlKey:K,metaKey:Y,altKey:re,shiftKey:ce}=J,he=ce||re||K||Y;ne==="ArrowDown"&&!he&&(J.preventDefault(),S()),ne==="ArrowUp"&&!he&&(J.preventDefault(),C()),l(_)||L(_,!0)},oninput:()=>{l(_)||L(_,!0)},get onChange(){return e.onChange},get value(){return l(v)},set value(J){L(v,ie(J))}})),H(()=>{Ir(E,`sui number-input ${e.class??""} svelte-ocpvsq`),E.hidden=h(),ft(E,"flex",a()),ft(E,"disabled",f()),ft(E,"readonly",p())}),T(t,E),oe(),r()}var eF=F('<div role="none"><!> <!></div>');const tF={hash:"svelte-1a0p7ik",code:".password-input.svelte-1a0p7ik {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.password-input.flex.svelte-1a0p7ik {width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.password-input.svelte-1a0p7ik .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.password-input.svelte-1a0p7ik input {border-top-right-radius:0;border-bottom-right-radius:0;}.password-input.svelte-1a0p7ik button {flex:none;margin:0 0 0 -1px;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.password-input.svelte-1a0p7ik button:last-child {border-radius:0 4px 4px 0;}.password-input.svelte-1a0p7ik button .icon {font-size:var(--sui-font-size-xx-large);}"};function nF(t,e){se(e,!0),Te(t,tF);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15),o=P(e,"flex",3,!1),a=P(e,"hidden",3,!1),c=P(e,"disabled",3,!1),u=P(e,"readonly",3,!1),d=P(e,"required",3,!1),h=P(e,"invalid",3,!1),f=at(e,["$$slots","$$events","$$legacy","value","flex","class","hidden","disabled","readonly","required","invalid","children","visibilityIcon"]);const p=Zn("input");let g=ae(void 0),m=ae(!1);Be(()=>{l(g)?.setAttribute("type",l(m)?"text":"password")});var b=eF(),_=R(b);An(_,Zt(()=>f,{id:p,type:"password",spellcheck:"false",get flex(){return o()},get hidden(){return a()},get disabled(){return c()},get readonly(){return u()},get required(){return d()},get invalid(){return h()},get element(){return l(g)},set element(k){L(g,ie(k))},get value(){return s()},set value(k){s(k)}}));var v=D(_,2);const y=x(()=>c()||u()),w=x(()=>i()(l(m)?"_sui.password_input.hide_password":"_sui.password_input.show_password"));Xe(v,{iconic:!0,get disabled(){return l(y)},get pressed(){return l(m)},get"aria-label"(){return l(w)},"aria-controls":p,onclick:()=>{L(m,!l(m))},startIcon:S=>{var C=V(),E=M(C);{var A=$=>{var N=V(),I=M(N);Re(I,()=>e.visibilityIcon),T($,N)},O=$=>{const N=x(()=>l(m)?"visibility_off":"visibility");nt($,{get name(){return l(N)}})};U(E,$=>{e.visibilityIcon?$(A):$(O,!1)})}T(S,C)},$$slots:{startIcon:!0}}),H(()=>{Ir(b,`sui password-input ${e.class??""} svelte-1a0p7ik`),b.hidden=a(),ft(b,"flex",o()),ft(b,"disabled",c()),ft(b,"readonly",u())}),T(t,b),oe(),r()}var rF=F('<link rel="preload" as="style"> <link rel="stylesheet">',1),iF=F('<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="google" content="notranslate"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"> <!>',1),sF=F('<div class="font-loader svelte-jkihe5" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div> <div><!></div>',1);const oF={hash:"svelte-jkihe5",code:`:root,
|
|
115
|
+
.clone.svelte-5wws1x:read-only {background-color:var(--sui-disabled-background-color);}textarea.svelte-5wws1x {resize:vertical;}textarea.auto-resize.svelte-5wws1x {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-5wws1x {border-color:var(--sui-error-border-color);}.clone.svelte-5wws1x {overflow:hidden;visibility:hidden;white-space:pre-wrap;}`};function Oh(t,e){Te(t,NM);let n=P(e,"value",15,""),r=P(e,"flex",3,!1),i=P(e,"name",3,void 0),s=P(e,"autoResize",3,!1),o=P(e,"hidden",3,!1),a=P(e,"disabled",3,!1),c=P(e,"readonly",3,!1),u=P(e,"required",3,!1),d=P(e,"invalid",3,!1),h=at(e,["$$slots","$$events","$$legacy","value","flex","name","autoResize","class","hidden","disabled","readonly","required","invalid","children"]);var f=$M(),p=R(f);let g;var m=D(p,2);{var b=_=>{var v=LM(),y=R(v);H(()=>Z(y,n())),T(_,v)};U(m,_=>{s()&&_(b)})}H(()=>{Ir(f,`sui text-area ${e.class??""} svelte-5wws1x`),f.hidden=o(),ft(f,"flex",r()),ft(f,"disabled",a()),ft(f,"readonly",c()),g=yt(p,g,{...h,name:i(),dir:"auto",disabled:a()||void 0,readonly:c()||void 0,"aria-hidden":o(),"aria-disabled":a(),"aria-readonly":c(),"aria-required":u(),"aria-invalid":d()},"svelte-5wws1x"),ft(p,"auto-resize",s()),p.dir=p.dir}),ff(p,n),T(t,f)}const Gn=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Ku=t=>JSON.parse(JSON.stringify(t)),nS=t=>Array.isArray(t)&&t.every(e=>Gn(e)),ec=t=>[...new Set(t)];function IM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=os("editorStore"),o=x(()=>s.selection.inlineTypes.includes(e.type)),a=x(()=>i()(`_sui.text_editor.${Ta[e.type].labelKey}`)),c=x(()=>!s.useRichText);Xe(t,{iconic:!0,get"aria-label"(){return l(a)},get"aria-controls"(){return`${s.editorId??""}-lexical-root`},get disabled(){return l(c)},get pressed(){return l(o)},onclick:async()=>{s.editor&&(await Ph(s.editor),s.editor.dispatchCommand(Bs,e.type))},startIcon:d=>{nt(d,{get name(){return Ta[e.type].icon}})},$$slots:{startIcon:!0}}),oe(),r()}function RM(t,e){se(e,!0);const n=os("editorStore"),r=x(()=>!n.useRichText);Xe(t,{iconic:!0,get"aria-label"(){return e.component.label},get"aria-controls"(){return`${n.editorId??""}-lexical-root`},get disabled(){return l(r)},onclick:()=>{n.editor?.update(()=>{Eu([e.component.createNode(),fn()])})},startIcon:s=>{nt(s,{get name(){return e.component.icon}})},$$slots:{startIcon:!0}}),oe()}var DM=F('<div role="none"><label> </label> <!></div>'),MM=F('<div role="none"><label> </label> <!></div> <!>',1),FM=F("<!> <!>",1);function zM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=Zn("insert-link"),o="link",a=os("editorStore"),c=x(()=>a.selection.inlineTypes.includes(o));let u=ae(!1),d=ae("create"),h=ae(!1),f=ae(""),p=ae("");const g=()=>{a.editor?.getEditorState().read(()=>{const I=PI().trim();L(f,ie(I)),L(h,!!I),L(d,"create"),L(u,!0)})},m=()=>{a.editor?.dispatchCommand(Ov,null)},b=()=>{a.editor?.getEditorState().read(()=>{const I=je();if(Pe(I)){const j=I.anchor.getNode(),B=(j instanceof Gs?j:ju(j,Gs))?.getURL();if(B){L(h,!0),L(f,ie(B)),L(d,"update"),L(u,!0);return}}m()})},_=()=>{l(c)?b():g()},v=I=>{Qg(I,"Enter")&&l(f)&&L(u,!1)},y=async I=>{if(I.detail.returnValue!=="cancel"&&l(d)!=="remove"){if(!a.editor)return;await new Promise(j=>{a.editor?.update(async()=>{let q=je()??Nl()?.clone();if(Pe(q)||(q=Um()),!l(h)){L(p,ie(l(p).trim())),L(p,ie(l(p)||l(f)));const{anchor:B,focus:W}=q,G=bn(l(p)),J=G.getKey();Eu([G]),B.set(J,l(p).length,"text"),W.set(J,0,"text")}Kr(q),j(void 0)})}),await Ph(a.editor),a.editor.dispatchCommand(Ov,l(f))}L(f,""),L(p,"")},w=()=>{a.editor?.registerCommand(Kx,I=>(Qg(I,_x()?"Meta+K":"Ctrl+K")&&(I.preventDefault(),_()),!1),Lu)};Be(()=>{a.editor&&w()});var k=FM(),S=M(k);const C=x(()=>i()(`_sui.text_editor.${Ta[o].labelKey}`)),E=x(()=>!a.useRichText);Xe(S,{iconic:!0,get"aria-label"(){return l(C)},get"aria-controls"(){return`${a.editorId??""}-lexical-root`},get disabled(){return l(E)},get pressed(){return l(c)},onclick:()=>{_()},startIcon:j=>{nt(j,{get name(){return Ta[o].icon}})},$$slots:{startIcon:!0}});var A=D(S,2);const O=x(()=>l(d)==="create"?i()("_sui.text_editor.insert_link"):i()("_sui.text_editor.update_link")),$=x(()=>!l(f)),N=x(()=>l(d)==="create"?i()("_sui.insert"):i()("_sui.update"));ps(A,{get title(){return l(O)},get okDisabled(){return l($)},get okLabel(){return l(N)},onClose:j=>{y(j)},get open(){return l(u)},set open(j){L(u,ie(j))},get value(){return l(f)},set value(j){L(f,ie(j))},footerExtra:j=>{var q=V(),B=M(q);{var W=G=>{const J=x(()=>i()("_sui.remove"));Xe(G,{variant:"secondary",get label(){return l(J)},onclick:()=>{m(),L(d,"remove"),L(u,!1)}})};U(B,G=>{l(d)!=="create"&&G(W)})}T(j,q)},children:(j,q)=>{var B=MM(),W=M(B),G=R(W);Se(G,"for",`${s??""}-url`);var J=R(G),ne=D(G,2);An(ne,{id:`${s??""}-url`,flex:!0,"aria-label":"URL",onkeydown:re=>{v(re)},get value(){return l(f)},set value(re){L(f,ie(re))}});var K=D(W,2);{var Y=re=>{var ce=DM(),he=R(ce);Se(he,"for",`${s??""}-text`);var Q=R(he),X=D(he,2);An(X,{id:`${s??""}-text`,flex:!0,onkeydown:de=>{v(de)},get value(){return l(p)},set value(de){L(p,ie(de))}}),H(de=>Z(Q,de),[()=>i()("_sui.text_editor.text")]),T(re,ce)};U(K,re=>{l(h)||re(Y)})}H(re=>Z(J,re),[()=>i()("_sui.text_editor.url")]),T(j,B)},$$slots:{footerExtra:!0,default:!0}}),T(t,k),oe(),r()}function jM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=os("editorStore"),o=x(()=>!s.useRichText),a=x(()=>i()("_sui.insert"));kr(t,{get disabled(){return l(o)},get label(){return l(a)},endIcon:d=>{nt(d,{name:"arrow_drop_down",class:"small-arrow"})},popup:d=>{hr(d,{children:(h,f)=>{var p=V(),g=M(p);dt(g,17,()=>e.components,({id:m,label:b,icon:_,createNode:v})=>m,(m,b)=>{let _=()=>l(b).label,v=()=>l(b).icon,y=()=>l(b).createNode;$t(m,{get label(){return _()},onclick:()=>{s.editor?.update(()=>{Eu([y()()])})},startIcon:k=>{var S=V(),C=M(S);{var E=A=>{nt(A,{get name(){return v()}})};U(C,A=>{v()&&A(E)})}T(k,S)},$$slots:{startIcon:!0}})}),T(h,p)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}}),oe(),r()}function UM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=os("editorStore"),o=x(()=>s.selection.blockType===e.type),a=async()=>{if(!s.editor)return;await Ph(s.editor);const[,d]=e.type.match(/^heading-(\d)$/)??[];d&&s.editor.update(()=>{gh(je(),()=>Sa(`h${d}`))}),e.type==="paragraph"&&s.editor.update(()=>{gh(je(),()=>fn())}),e.type==="bulleted-list"&&s.editor.dispatchCommand(sk,void 0),e.type==="numbered-list"&&s.editor.dispatchCommand(ok,void 0),e.type==="blockquote"&&s.editor.update(()=>{gh(je(),()=>xh())}),e.type==="code-block"&&s.editor.update(()=>{gh(je(),()=>Vi())})};var c=V(),u=M(c);hs(u,()=>l(o),d=>{const h=x(()=>i()(`_sui.text_editor.${Ta[e.type].labelKey}`));Af(d,{get label(){return l(h)},get checked(){return l(o)},onclick:()=>{l(o)||a()},startIcon:p=>{nt(p,{get name(){return Ta[e.type].icon}})},$$slots:{startIcon:!0}})}),T(t,c),oe(),r()}var BM=F("<!> <!>",1),qM=F("<!> <!>",1),HM=F("<!> <!> <!>",1),VM=F("<!> <!>",1),WM=F("<!> <!> <!> <!>",1);function GM(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"disabled",3,!1),o=P(e,"readonly",3,!1);const a=os("editorStore"),c=x(()=>a.config.components.find(({id:g})=>g==="image")),u=x(()=>a.config.components.filter(({id:g})=>g!=="image")),d=x(()=>ec(["paragraph",...a.config.enabledButtons.filter(g=>Vv.includes(g))])),h=x(()=>ec([...a.config.enabledButtons.filter(g=>Wk.includes(g))])),f=x(()=>s()||o()),p=x(()=>i()("_sui.text_editor.text_editor"));tS(t,{get disabled(){return l(f)},get"aria-label"(){return l(p)},children:(g,m)=>{var b=WM(),_=M(b);const v=x(()=>!a.useRichText),y=x(()=>i()("_sui.text_editor.show_text_style_options"));kr(_,{get disabled(){return l(v)},get"aria-label"(){return l(y)},get"aria-controls"(){return`${a.editorId??""}-lexical-root`},startIcon:N=>{const I=x(()=>Ta[a.selection.blockType??""]?.icon??"format_paragraph");nt(N,{get name(){return l(I)}})},popup:N=>{const I=x(()=>i()("_sui.text_editor.text_style_options"));hr(N,{get"aria-label"(){return l(I)},children:(j,q)=>{var B=V(),W=M(B);dt(W,16,()=>l(d),G=>G,(G,J)=>{UM(G,{get type(){return J}})}),T(j,B)},$$slots:{default:!0}})},$$slots:{startIcon:!0,popup:!0}});var w=D(_,2);{var k=O=>{var $=BM(),N=M($);Sr(N,{orientation:"vertical"});var I=D(N,2);const j=x(()=>!a.useRichText);eS(I,{get disabled(){return l(j)}}),T(O,$)},S=O=>{var $=VM(),N=M($);{var I=B=>{var W=qM(),G=M(W);Sr(G,{orientation:"vertical"});var J=D(G,2);AL(J,{children:(ne,K)=>{var Y=V(),re=M(Y);dt(re,16,()=>l(h),ce=>ce,(ce,he)=>{var Q=V(),X=M(Q);{var de=ve=>{zM(ve,{})},ye=ve=>{IM(ve,{get type(){return he}})};U(X,ve=>{he==="link"?ve(de):ve(ye,!1)})}T(ce,Q)}),T(ne,Y)},$$slots:{default:!0}}),T(B,W)};U(N,B=>{l(h).length&&B(I)})}var j=D(N,2);{var q=B=>{var W=HM(),G=M(W);Sr(G,{orientation:"vertical"});var J=D(G,2);{var ne=re=>{RM(re,{get component(){return l(c)}})};U(J,re=>{l(c)&&re(ne)})}var K=D(J,2);{var Y=re=>{jM(re,{get components(){return l(u)}})};U(K,re=>{l(u).length&&re(Y)})}T(B,W)};U(j,B=>{a.config.components.length&&B(q)})}T(O,$)};U(w,O=>{a.selection.blockType==="code-block"?O(k):O(S,!1)})}var C=D(w,2);Wr(C,{flex:!0});var E=D(C,2);{var A=O=>{const $=x(()=>!a.useRichText),N=x(()=>i()("_sui.text_editor.edit_in_markdown"));Xe(O,{iconic:!0,get disabled(){return a.hasConverterError},get pressed(){return l($)},get"aria-label"(){return l(N)},onclick:()=>{a.useRichText=!a.useRichText,a.useRichText&&a.convertMarkdown()},startIcon:j=>{nt(j,{name:"markdown"})},$$slots:{startIcon:!0}})};U(E,O=>{a.config.modes.length>1&&O(A)})}T(g,b)},$$slots:{default:!0}}),oe(),r()}var KM=F("<div><!> <!> <!></div> <!>",1);const YM={hash:"svelte-1yhr7c5",code:".text-editor.svelte-1yhr7c5 {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.text-editor.svelte-1yhr7c5 .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-1yhr7c5 .sui.text-area textarea {border-radius:0 0 var(--sui-textbox-border-radius) var(--sui-textbox-border-radius) !important;}"};function JM(t,e){se(e,!0),Te(t,YM);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15,""),o=P(e,"flex",3,!1),a=P(e,"modes",19,()=>["rich-text","plain-text"]),c=P(e,"buttons",19,()=>[...Wk,...Vv]),u=P(e,"components",19,()=>[]),d=P(e,"hidden",3,!1),h=P(e,"disabled",3,!1),f=P(e,"readonly",3,!1),p=P(e,"required",3,!1),g=P(e,"invalid",3,!1),m=at(e,["$$slots","$$events","$$legacy","value","flex","modes","buttons","components","hidden","disabled","readonly","required","invalid","children"]);const b=Qk();b.config.modes=a(),b.config.enabledButtons=c(),b.config.components=u(),vg("editorStore",b),Be(()=>{if(!b.initialized)return;const $=s();Ee(()=>{b.inputValue=$})}),Be(()=>{if(!b.initialized)return;const $=b.inputValue;Ee(()=>{s()!==$&&s($)})});var _=KM(),v=M(_);let y;var w=R(v);GM(w,{get disabled(){return h()},get readonly(){return f()}});var k=D(w,2);const S=x(()=>!b.useRichText||d());Xk(k,{get hidden(){return l(S)},get disabled(){return h()},get readonly(){return f()},get required(){return p()},get invalid(){return g()}});var C=D(k,2);const E=x(()=>b.useRichText||d());Oh(C,{autoResize:!0,get flex(){return o()},get hidden(){return l(E)},get disabled(){return h()},get readonly(){return f()},get required(){return p()},get invalid(){return g()},get value(){return b.inputValue},set value($){b.inputValue=$}});var A=D(v,2);{var O=$=>{Hn($,{get show(){return b.showConverterError},set show(N){b.showConverterError=N},children:(N,I)=>{qn(N,{status:"error",children:(j,q)=>{var B=We();H(W=>Z(B,W),[()=>i()("_sui.text_editor.converter_error")]),T(j,B)},$$slots:{default:!0}})},$$slots:{default:!0}})};U(A,$=>{b.showConverterError&&$(O)})}H(()=>{y=yt(v,y,{...m,role:"none",class:"sui text-editor",hidden:d()},"svelte-1yhr7c5"),ft(v,"flex",o())}),T(t,_),oe(),r()}var ZM=F('<div role="none"><div role="none" class="buttons svelte-ocpvsq"><!> <!></div> <!></div>');const XM={hash:"svelte-ocpvsq",code:'.number-input.svelte-ocpvsq {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-ocpvsq {width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-ocpvsq :not(:first-child) input {border-top-left-radius:0;border-bottom-left-radius:0;}.number-input.svelte-ocpvsq :not(:last-child) input {border-top-right-radius:0;border-bottom-right-radius:0;}.number-input.svelte-ocpvsq:not(.disabled) button[aria-disabled="true"] {filter:grayscale(0) opacity(1);}.number-input.svelte-ocpvsq:not(.disabled) button[aria-disabled="true"] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-ocpvsq .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-ocpvsq {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-ocpvsq button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-ocpvsq button:first-of-type {border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;border-width:1px 0 0 1px;}.buttons.svelte-ocpvsq button:last-of-type {border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-width:0 0 1px 1px;}.buttons.svelte-ocpvsq button .icon {font-size:20px;}'};function QM(t,e){se(e,!0),Te(t,XM);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15),o=P(e,"invalid",15,!1),a=P(e,"flex",3,!1),c=P(e,"min",3,void 0),u=P(e,"max",3,void 0),d=P(e,"step",3,1),h=P(e,"hidden",3,!1),f=P(e,"disabled",3,!1),p=P(e,"readonly",3,!1),g=P(e,"required",3,!1),m=at(e,["$$slots","$$events","$$legacy","value","invalid","flex","min","max","step","class","hidden","disabled","readonly","required","children","increaseIcon","decreaseIcon","onChange"]);const b=Zn("input");let _=ae(!1),v=ae("");const y=x(()=>String(d()).split(".")[1]?.length||0),w=x(()=>typeof c()=="number"&&Number(l(v)||0)<=c()),k=x(()=>typeof u()=="number"&&Number(l(v)||0)>=u());Be(()=>{const J=String(s()??"");Ee(()=>{l(v)!==J&&L(v,ie(J))})}),Be(()=>{const J=l(v).trim()?Number(l(v)):NaN;s(Number.isNaN(J)?void 0:J)}),Be(()=>{l(_)&&o(g()&&(s()===void 0||l(v)==="")||l(v)!==void 0&&l(v)!==""&&(Number.isNaN(Number(l(v)))||typeof c()=="number"&&Number(l(v)||0)<c()||typeof u()=="number"&&Number(l(v)||0)>u()))});const S=()=>{l(w)||Number.isNaN(Number(l(v)))||L(v,ie(Number(Number(l(v)||0)-d()).toFixed(l(y))))},C=()=>{l(k)||Number.isNaN(Number(l(v)))||L(v,ie(Number(Number(l(v)||0)+d()).toFixed(l(y))))};var E=ZM(),A=R(E),O=R(A);const $=x(()=>f()||p()||Number.isNaN(Number(s()))||l(k)),N=x(()=>i()("_sui.number_input.increase"));Xe(O,{iconic:!0,get disabled(){return l($)},get"aria-label"(){return l(N)},"aria-controls":b,onclick:()=>{C()},startIcon:ne=>{var K=V(),Y=M(K);{var re=he=>{var Q=V(),X=M(Q);Re(X,()=>e.increaseIcon),T(he,Q)},ce=he=>{nt(he,{name:"expand_less"})};U(Y,he=>{e.increaseIcon?he(re):he(ce,!1)})}T(ne,K)},$$slots:{startIcon:!0}});var I=D(O,2);const j=x(()=>f()||p()||Number.isNaN(Number(s()))||l(w)),q=x(()=>i()("_sui.number_input.decrease"));Xe(I,{iconic:!0,get disabled(){return l(j)},get"aria-label"(){return l(q)},"aria-controls":b,onclick:()=>{S()},startIcon:ne=>{var K=V(),Y=M(K);{var re=he=>{var Q=V(),X=M(Q);Re(X,()=>e.decreaseIcon),T(he,Q)},ce=he=>{nt(he,{name:"expand_more"})};U(Y,he=>{e.decreaseIcon?he(re):he(ce,!1)})}T(ne,K)},$$slots:{startIcon:!0}});var B=D(A,2);const W=x(()=>Number(s()||0)),G=x(()=>l(y)>0?"decimal":"numeric");An(B,Zt(()=>m,{role:"spinbutton",id:b,spellcheck:"false",get flex(){return a()},get hidden(){return h()},get disabled(){return f()},get readonly(){return p()},get required(){return g()},get invalid(){return o()},get"aria-valuenow"(){return l(W)},get"aria-valuemin"(){return c()},get"aria-valuemax"(){return u()},get inputmode(){return l(G)},onkeydown:J=>{const{key:ne,ctrlKey:K,metaKey:Y,altKey:re,shiftKey:ce}=J,he=ce||re||K||Y;ne==="ArrowDown"&&!he&&(J.preventDefault(),S()),ne==="ArrowUp"&&!he&&(J.preventDefault(),C()),l(_)||L(_,!0)},oninput:()=>{l(_)||L(_,!0)},get onChange(){return e.onChange},get value(){return l(v)},set value(J){L(v,ie(J))}})),H(()=>{Ir(E,`sui number-input ${e.class??""} svelte-ocpvsq`),E.hidden=h(),ft(E,"flex",a()),ft(E,"disabled",f()),ft(E,"readonly",p())}),T(t,E),oe(),r()}var eF=F('<div role="none"><!> <!></div>');const tF={hash:"svelte-1a0p7ik",code:".password-input.svelte-1a0p7ik {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.password-input.flex.svelte-1a0p7ik {width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.password-input.svelte-1a0p7ik .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.password-input.svelte-1a0p7ik input {border-top-right-radius:0;border-bottom-right-radius:0;}.password-input.svelte-1a0p7ik button {flex:none;margin:0 0 0 -1px;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.password-input.svelte-1a0p7ik button:last-child {border-radius:0 4px 4px 0;}.password-input.svelte-1a0p7ik button .icon {font-size:var(--sui-font-size-xx-large);}"};function nF(t,e){se(e,!0),Te(t,tF);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"value",15),o=P(e,"flex",3,!1),a=P(e,"hidden",3,!1),c=P(e,"disabled",3,!1),u=P(e,"readonly",3,!1),d=P(e,"required",3,!1),h=P(e,"invalid",3,!1),f=at(e,["$$slots","$$events","$$legacy","value","flex","class","hidden","disabled","readonly","required","invalid","children","visibilityIcon"]);const p=Zn("input");let g=ae(void 0),m=ae(!1);Be(()=>{l(g)?.setAttribute("type",l(m)?"text":"password")});var b=eF(),_=R(b);An(_,Zt(()=>f,{id:p,type:"password",spellcheck:"false",get flex(){return o()},get hidden(){return a()},get disabled(){return c()},get readonly(){return u()},get required(){return d()},get invalid(){return h()},get element(){return l(g)},set element(k){L(g,ie(k))},get value(){return s()},set value(k){s(k)}}));var v=D(_,2);const y=x(()=>c()||u()),w=x(()=>i()(l(m)?"_sui.password_input.hide_password":"_sui.password_input.show_password"));Xe(v,{iconic:!0,get disabled(){return l(y)},get pressed(){return l(m)},get"aria-label"(){return l(w)},"aria-controls":p,onclick:()=>{L(m,!l(m))},startIcon:S=>{var C=V(),E=M(C);{var A=$=>{var N=V(),I=M(N);Re(I,()=>e.visibilityIcon),T($,N)},O=$=>{const N=x(()=>l(m)?"visibility_off":"visibility");nt($,{get name(){return l(N)}})};U(E,$=>{e.visibilityIcon?$(A):$(O,!1)})}T(S,C)},$$slots:{startIcon:!0}}),H(()=>{Ir(b,`sui password-input ${e.class??""} svelte-1a0p7ik`),b.hidden=a(),ft(b,"flex",o()),ft(b,"disabled",c()),ft(b,"readonly",u())}),T(t,b),oe(),r()}var rF=F('<link rel="preload" as="style"> <link rel="stylesheet">',1),iF=F('<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="google" content="notranslate"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"> <!>',1),sF=F('<div class="font-loader svelte-jkihe5" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div> <div><!></div>',1);const oF={hash:"svelte-jkihe5",code:`:root,
|
|
116
116
|
: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(
|
|
117
117
|
var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation)
|
|
118
118
|
var(--sui-alert-foreground-color-lightness)
|
|
@@ -193,8 +193,8 @@ td {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {ma
|
|
|
193
193
|
.readonly *,
|
|
194
194
|
[aria-disabled=true] *,
|
|
195
195
|
[aria-readonly=true] *,
|
|
196
|
-
[inert] * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-jkihe5 {position:absolute;left:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-jkihe5 {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-jkihe5 {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-jkihe5 {display:flex;flex-direction:column;overflow:hidden;}`};function aF(t,e){se(e,!0),Te(t,oF);let n=P(e,"orientation",3,"horizontal"),r=at(e,["$$slots","$$events","$$legacy","orientation","children"]);const 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"];let s=ae(void 0);on(()=>{const g=globalThis.matchMedia("(prefers-color-scheme: dark)"),{dataset:m}=document.documentElement,b=()=>{m.autoTheming!=="false"&&(m.theme=g.matches?"dark":"light")};b(),g.onchange=()=>{b()},globalThis.setTimeout(()=>{l(s)?.remove()},1e3)});var o=sF();gw(g=>{var m=iF(),b=D(M(m),8);dt(b,17,()=>i,cr,(_,v)=>{var y=rF(),w=M(y),k=D(w,2);H(()=>{Se(w,"href",l(v)),Se(k,"href",l(v))}),T(_,y)}),T(g,m)});var a=M(o);Vr(a,"opacity","0"),Tt(a,g=>L(s,g),()=>l(s));var c=D(a,2),u=g=>g.preventDefault(),d=g=>g.preventDefault(),h=g=>{!document.documentElement.matches('[data-env="dev"]')&&!g.target?.matches('input[type="text"], textarea')&&g.preventDefault()};let f;var p=R(c);Re(p,()=>e.children??Fe),H(()=>f=yt(c,f,{...r,role:"none",class:`sui app-shell ${n()??""}`,ondragover:u,ondrop:d,oncontextmenu:h},"svelte-jkihe5")),T(t,o),oe()}var lF=F('<div><div role="none" class="inner svelte-3h03g8"><!></div></div>');const cF={hash:"svelte-3h03g8",code:".inner.svelte-3h03g8 {display:contents;}"};function mr(t,e){Te(t,cF);let n=P(e,"hidden",3,!1),r=P(e,"disabled",3,!1),i=at(e,["$$slots","$$events","$$legacy","class","hidden","disabled","children"]);var s=lF();let o;var a=R(s),c=R(a);Re(c,()=>e.children??Fe),H(()=>{o=yt(s,o,{...i,role:"group",class:`sui group ${e.class??""}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()},"svelte-3h03g8"),a.inert=r()}),T(t,s)}const rS=({fallbackLocale:t="en",initialLocale:e="en"}={})=>{Object.entries(Object.assign({"./locales/en.js":VP,"./locales/ja.js":WP})).forEach(([r,{strings:i}])=>{const[,s]=r.match(/([a-zA-Z-]+)\.js/);Jg(s,{_sui:i})}),QO({fallbackLocale:t,initialLocale:e})};rS();const iS={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(iS);const sS={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(sS);var Si=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},tc,Yu,Ca;class uF{constructor(...e){tc.set(this,new Map),Yu.set(this,new Map),Ca.set(this,new Map);for(const n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Si(this,Ca,"f").has(r)||Si(this,Ca,"f").set(r,new Set);const s=Si(this,Ca,"f").get(r);let o=!0;for(let a of i){const c=a.startsWith("*");if(a=c?a.slice(1):a,s?.add(a),o&&Si(this,Yu,"f").set(r,a),o=!1,c)continue;const u=Si(this,tc,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Si(this,tc,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;const n=e.replace(/^.*[/\\]/,"").toLowerCase(),r=n.replace(/^.*\./,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Si(this,tc,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Si(this,Yu,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Si(this,Ca,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of Si(this,Ca,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Si(this,tc,"f"),extensions:Si(this,Yu,"f")}}}tc=new WeakMap,Yu=new WeakMap,Ca=new WeakMap;const Do=new uF(sS,iS)._freeze(),oS='<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>';var Gv,aS;function lS(){if(aS)return Gv;aS=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:s,seal:o,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;s||(s=function(ke){return ke}),o||(o=function(ke){return ke}),c||(c=function(ke,Ne,ge){return ke.apply(Ne,ge)}),u||(u=function(ke,Ne){return new ke(...Ne)});const d=E(Array.prototype.forEach),h=E(Array.prototype.lastIndexOf),f=E(Array.prototype.pop),p=E(Array.prototype.push),g=E(Array.prototype.splice),m=E(String.prototype.toLowerCase),b=E(String.prototype.toString),_=E(String.prototype.match),v=E(String.prototype.replace),y=E(String.prototype.indexOf),w=E(String.prototype.trim),k=E(Object.prototype.hasOwnProperty),S=E(RegExp.prototype.test),C=A(TypeError);function E(xe){return function(ke){for(var Ne=arguments.length,ge=new Array(Ne>1?Ne-1:0),Ce=1;Ce<Ne;Ce++)ge[Ce-1]=arguments[Ce];return c(xe,ke,ge)}}function A(xe){return function(){for(var ke=arguments.length,Ne=new Array(ke),ge=0;ge<ke;ge++)Ne[ge]=arguments[ge];return u(xe,Ne)}}function O(xe,ke){let Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e(xe,null);let ge=ke.length;for(;ge--;){let Ce=ke[ge];if(typeof Ce=="string"){const Ue=Ne(Ce);Ue!==Ce&&(n(ke)||(ke[ge]=Ue),Ce=Ue)}xe[Ce]=!0}return xe}function $(xe){for(let ke=0;ke<xe.length;ke++)k(xe,ke)||(xe[ke]=null);return xe}function N(xe){const ke=a(null);for(const[Ne,ge]of t(xe))k(xe,Ne)&&(Array.isArray(ge)?ke[Ne]=$(ge):ge&&typeof ge=="object"&&ge.constructor===Object?ke[Ne]=N(ge):ke[Ne]=ge);return ke}function I(xe,ke){for(;xe!==null;){const ge=i(xe,ke);if(ge){if(ge.get)return E(ge.get);if(typeof ge.value=="function")return E(ge.value)}xe=r(xe)}function Ne(){return null}return Ne}const j=s(["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","section","select","shadow","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"]),q=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=s(["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"]),W=s(["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"]),G=s(["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"]),J=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ne=s(["#text"]),K=s(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Y=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),re=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ce=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),he=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Q=o(/<%[\w\W]*|[\w\W]*%>/gm),X=o(/\$\{[\w\W]*/gm),de=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),_e=o(/^aria-[\-\w]+$/),ve=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=o(/^(?:\w+script|data):/i),fe=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oe=o(/^html$/i),Ae=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var De=Object.freeze({__proto__:null,ARIA_ATTR:_e,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ae,DATA_ATTR:de,DOCTYPE_NAME:Oe,ERB_EXPR:Q,IS_ALLOWED_URI:ve,IS_SCRIPT_OR_DATA:be,MUSTACHE_EXPR:he,TMPLIT_EXPR:X});const He={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ve=function(){return typeof window>"u"?null:window},mt=function(ke,Ne){if(typeof ke!="object"||typeof ke.createPolicy!="function")return null;let ge=null;const Ce="data-tt-policy-suffix";Ne&&Ne.hasAttribute(Ce)&&(ge=Ne.getAttribute(Ce));const Ue="dompurify"+(ge?"#"+ge:"");try{return ke.createPolicy(Ue,{createHTML(Je){return Je},createScriptURL(Je){return Je}})}catch{return console.warn("TrustedTypes policy "+Ue+" could not be created."),null}},et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ye(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ve();const ke=pt=>ye(pt);if(ke.version="3.2.4",ke.removed=[],!xe||!xe.document||xe.document.nodeType!==He.document||!xe.Element)return ke.isSupported=!1,ke;let{document:Ne}=xe;const ge=Ne,Ce=ge.currentScript,{DocumentFragment:Ue,HTMLTemplateElement:Je,Node:ut,Element:lt,NodeFilter:Ke,NamedNodeMap:rt=xe.NamedNodeMap||xe.MozNamedAttrMap,HTMLFormElement:Et,DOMParser:Ht,trustedTypes:mn}=xe,On=lt.prototype,nr=I(On,"cloneNode"),ns=I(On,"remove"),ti=I(On,"nextSibling"),fo=I(On,"childNodes"),rs=I(On,"parentNode");if(typeof Je=="function"){const pt=Ne.createElement("template");pt.content&&pt.content.ownerDocument&&(Ne=pt.content.ownerDocument)}let Dt,Ln="";const{implementation:Gt,createNodeIterator:bt,createDocumentFragment:en,getElementsByTagName:Fn}=Ne,{importNode:$n}=ge;let Nt=et();ke.isSupported=typeof t=="function"&&typeof rs=="function"&&Gt&&Gt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:sn,ERB_EXPR:Nn,TMPLIT_EXPR:Yn,DATA_ATTR:Pr,ARIA_ATTR:Ri,IS_SCRIPT_OR_DATA:fi,ATTR_WHITESPACE:Is,CUSTOM_ELEMENT:vr}=De;let{IS_ALLOWED_URI:Un}=De,Ut=null;const hi=O({},[...j,...q,...B,...G,...ne]);let Vt=null;const tn=O({},[...K,...Y,...re,...ce]);let Ze=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xt=null,En=null,rr=!0,ho=!0,Xo=!1,Bn=!0,ir=!1,is=!0,ss=!1,rl=!1,br=!1,sr=!1,Di=!1,og=!1,NA=!0,IA=!1;const nK="user-content-";let yy=!0,jd=!1,zc={},jc=null;const RA=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let DA=null;const MA=O({},["audio","video","img","source","image","track"]);let wy=null;const FA=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ag="http://www.w3.org/1998/Math/MathML",lg="http://www.w3.org/2000/svg",po="http://www.w3.org/1999/xhtml";let Uc=po,xy=!1,ky=null;const rK=O({},[ag,lg,po],b);let cg=O({},["mi","mo","mn","ms","mtext"]),ug=O({},["annotation-xml"]);const iK=O({},["title","style","font","a","script"]);let Ud=null;const sK=["application/xhtml+xml","text/html"],oK="text/html";let or=null,Bc=null;const aK=Ne.createElement("form"),zA=function(ee){return ee instanceof RegExp||ee instanceof Function},Sy=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Bc&&Bc===ee)){if((!ee||typeof ee!="object")&&(ee={}),ee=N(ee),Ud=sK.indexOf(ee.PARSER_MEDIA_TYPE)===-1?oK:ee.PARSER_MEDIA_TYPE,or=Ud==="application/xhtml+xml"?b:m,Ut=k(ee,"ALLOWED_TAGS")?O({},ee.ALLOWED_TAGS,or):hi,Vt=k(ee,"ALLOWED_ATTR")?O({},ee.ALLOWED_ATTR,or):tn,ky=k(ee,"ALLOWED_NAMESPACES")?O({},ee.ALLOWED_NAMESPACES,b):rK,wy=k(ee,"ADD_URI_SAFE_ATTR")?O(N(FA),ee.ADD_URI_SAFE_ATTR,or):FA,DA=k(ee,"ADD_DATA_URI_TAGS")?O(N(MA),ee.ADD_DATA_URI_TAGS,or):MA,jc=k(ee,"FORBID_CONTENTS")?O({},ee.FORBID_CONTENTS,or):RA,xt=k(ee,"FORBID_TAGS")?O({},ee.FORBID_TAGS,or):{},En=k(ee,"FORBID_ATTR")?O({},ee.FORBID_ATTR,or):{},zc=k(ee,"USE_PROFILES")?ee.USE_PROFILES:!1,rr=ee.ALLOW_ARIA_ATTR!==!1,ho=ee.ALLOW_DATA_ATTR!==!1,Xo=ee.ALLOW_UNKNOWN_PROTOCOLS||!1,Bn=ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ir=ee.SAFE_FOR_TEMPLATES||!1,is=ee.SAFE_FOR_XML!==!1,ss=ee.WHOLE_DOCUMENT||!1,sr=ee.RETURN_DOM||!1,Di=ee.RETURN_DOM_FRAGMENT||!1,og=ee.RETURN_TRUSTED_TYPE||!1,br=ee.FORCE_BODY||!1,NA=ee.SANITIZE_DOM!==!1,IA=ee.SANITIZE_NAMED_PROPS||!1,yy=ee.KEEP_CONTENT!==!1,jd=ee.IN_PLACE||!1,Un=ee.ALLOWED_URI_REGEXP||ve,Uc=ee.NAMESPACE||po,cg=ee.MATHML_TEXT_INTEGRATION_POINTS||cg,ug=ee.HTML_INTEGRATION_POINTS||ug,Ze=ee.CUSTOM_ELEMENT_HANDLING||{},ee.CUSTOM_ELEMENT_HANDLING&&zA(ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ze.tagNameCheck=ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&zA(ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ze.attributeNameCheck=ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&typeof ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ze.allowCustomizedBuiltInElements=ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ir&&(ho=!1),Di&&(sr=!0),zc&&(Ut=O({},ne),Vt=[],zc.html===!0&&(O(Ut,j),O(Vt,K)),zc.svg===!0&&(O(Ut,q),O(Vt,Y),O(Vt,ce)),zc.svgFilters===!0&&(O(Ut,B),O(Vt,Y),O(Vt,ce)),zc.mathMl===!0&&(O(Ut,G),O(Vt,re),O(Vt,ce))),ee.ADD_TAGS&&(Ut===hi&&(Ut=N(Ut)),O(Ut,ee.ADD_TAGS,or)),ee.ADD_ATTR&&(Vt===tn&&(Vt=N(Vt)),O(Vt,ee.ADD_ATTR,or)),ee.ADD_URI_SAFE_ATTR&&O(wy,ee.ADD_URI_SAFE_ATTR,or),ee.FORBID_CONTENTS&&(jc===RA&&(jc=N(jc)),O(jc,ee.FORBID_CONTENTS,or)),yy&&(Ut["#text"]=!0),ss&&O(Ut,["html","head","body"]),Ut.table&&(O(Ut,["tbody"]),delete xt.tbody),ee.TRUSTED_TYPES_POLICY){if(typeof ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Dt=ee.TRUSTED_TYPES_POLICY,Ln=Dt.createHTML("")}else Dt===void 0&&(Dt=mt(mn,Ce)),Dt!==null&&typeof Ln=="string"&&(Ln=Dt.createHTML(""));s&&s(ee),Bc=ee}},jA=O({},[...q,...B,...W]),UA=O({},[...G,...J]),lK=function(ee){let Ie=rs(ee);(!Ie||!Ie.tagName)&&(Ie={namespaceURI:Uc,tagName:"template"});const ct=m(ee.tagName),vn=m(Ie.tagName);return ky[ee.namespaceURI]?ee.namespaceURI===lg?Ie.namespaceURI===po?ct==="svg":Ie.namespaceURI===ag?ct==="svg"&&(vn==="annotation-xml"||cg[vn]):!!jA[ct]:ee.namespaceURI===ag?Ie.namespaceURI===po?ct==="math":Ie.namespaceURI===lg?ct==="math"&&ug[vn]:!!UA[ct]:ee.namespaceURI===po?Ie.namespaceURI===lg&&!ug[vn]||Ie.namespaceURI===ag&&!cg[vn]?!1:!UA[ct]&&(iK[ct]||!jA[ct]):!!(Ud==="application/xhtml+xml"&&ky[ee.namespaceURI]):!1},Rs=function(ee){p(ke.removed,{element:ee});try{rs(ee).removeChild(ee)}catch{ns(ee)}},dg=function(ee,Ie){try{p(ke.removed,{attribute:Ie.getAttributeNode(ee),from:Ie})}catch{p(ke.removed,{attribute:null,from:Ie})}if(Ie.removeAttribute(ee),ee==="is")if(sr||Di)try{Rs(Ie)}catch{}else try{Ie.setAttribute(ee,"")}catch{}},BA=function(ee){let Ie=null,ct=null;if(br)ee="<remove></remove>"+ee;else{const _r=_(ee,/^[\r\n\t ]+/);ct=_r&&_r[0]}Ud==="application/xhtml+xml"&&Uc===po&&(ee='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ee+"</body></html>");const vn=Dt?Dt.createHTML(ee):ee;if(Uc===po)try{Ie=new Ht().parseFromString(vn,Ud)}catch{}if(!Ie||!Ie.documentElement){Ie=Gt.createDocument(Uc,"template",null);try{Ie.documentElement.innerHTML=xy?Ln:vn}catch{}}const Or=Ie.body||Ie.documentElement;return ee&&ct&&Or.insertBefore(Ne.createTextNode(ct),Or.childNodes[0]||null),Uc===po?Fn.call(Ie,ss?"html":"body")[0]:ss?Ie.documentElement:Or},qA=function(ee){return bt.call(ee.ownerDocument||ee,ee,Ke.SHOW_ELEMENT|Ke.SHOW_COMMENT|Ke.SHOW_TEXT|Ke.SHOW_PROCESSING_INSTRUCTION|Ke.SHOW_CDATA_SECTION,null)},Ey=function(ee){return ee instanceof Et&&(typeof ee.nodeName!="string"||typeof ee.textContent!="string"||typeof ee.removeChild!="function"||!(ee.attributes instanceof rt)||typeof ee.removeAttribute!="function"||typeof ee.setAttribute!="function"||typeof ee.namespaceURI!="string"||typeof ee.insertBefore!="function"||typeof ee.hasChildNodes!="function")},HA=function(ee){return typeof ut=="function"&&ee instanceof ut};function go(pt,ee,Ie){d(pt,ct=>{ct.call(ke,ee,Ie,Bc)})}const VA=function(ee){let Ie=null;if(go(Nt.beforeSanitizeElements,ee,null),Ey(ee))return Rs(ee),!0;const ct=or(ee.nodeName);if(go(Nt.uponSanitizeElement,ee,{tagName:ct,allowedTags:Ut}),ee.hasChildNodes()&&!HA(ee.firstElementChild)&&S(/<[/\w]/g,ee.innerHTML)&&S(/<[/\w]/g,ee.textContent)||ee.nodeType===He.progressingInstruction||is&&ee.nodeType===He.comment&&S(/<[/\w]/g,ee.data))return Rs(ee),!0;if(!Ut[ct]||xt[ct]){if(!xt[ct]&&GA(ct)&&(Ze.tagNameCheck instanceof RegExp&&S(Ze.tagNameCheck,ct)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(ct)))return!1;if(yy&&!jc[ct]){const vn=rs(ee)||ee.parentNode,Or=fo(ee)||ee.childNodes;if(Or&&vn){const _r=Or.length;for(let ni=_r-1;ni>=0;--ni){const Ds=nr(Or[ni],!0);Ds.__removalCount=(ee.__removalCount||0)+1,vn.insertBefore(Ds,ti(ee))}}}return Rs(ee),!0}return ee instanceof lt&&!lK(ee)||(ct==="noscript"||ct==="noembed"||ct==="noframes")&&S(/<\/no(script|embed|frames)/i,ee.innerHTML)?(Rs(ee),!0):(ir&&ee.nodeType===He.text&&(Ie=ee.textContent,d([sn,Nn,Yn],vn=>{Ie=v(Ie,vn," ")}),ee.textContent!==Ie&&(p(ke.removed,{element:ee.cloneNode()}),ee.textContent=Ie)),go(Nt.afterSanitizeElements,ee,null),!1)},WA=function(ee,Ie,ct){if(NA&&(Ie==="id"||Ie==="name")&&(ct in Ne||ct in aK))return!1;if(!(ho&&!En[Ie]&&S(Pr,Ie))){if(!(rr&&S(Ri,Ie))){if(!Vt[Ie]||En[Ie]){if(!(GA(ee)&&(Ze.tagNameCheck instanceof RegExp&&S(Ze.tagNameCheck,ee)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(ee))&&(Ze.attributeNameCheck instanceof RegExp&&S(Ze.attributeNameCheck,Ie)||Ze.attributeNameCheck instanceof Function&&Ze.attributeNameCheck(Ie))||Ie==="is"&&Ze.allowCustomizedBuiltInElements&&(Ze.tagNameCheck instanceof RegExp&&S(Ze.tagNameCheck,ct)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(ct))))return!1}else if(!wy[Ie]){if(!S(Un,v(ct,Is,""))){if(!((Ie==="src"||Ie==="xlink:href"||Ie==="href")&&ee!=="script"&&y(ct,"data:")===0&&DA[ee])){if(!(Xo&&!S(fi,v(ct,Is,"")))){if(ct)return!1}}}}}}return!0},GA=function(ee){return ee!=="annotation-xml"&&_(ee,vr)},KA=function(ee){go(Nt.beforeSanitizeAttributes,ee,null);const{attributes:Ie}=ee;if(!Ie||Ey(ee))return;const ct={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Vt,forceKeepAttr:void 0};let vn=Ie.length;for(;vn--;){const Or=Ie[vn],{name:_r,namespaceURI:ni,value:Ds}=Or,Bd=or(_r);let Hr=_r==="value"?Ds:w(Ds);if(ct.attrName=Bd,ct.attrValue=Hr,ct.keepAttr=!0,ct.forceKeepAttr=void 0,go(Nt.uponSanitizeAttribute,ee,ct),Hr=ct.attrValue,IA&&(Bd==="id"||Bd==="name")&&(dg(_r,ee),Hr=nK+Hr),is&&S(/((--!?|])>)|<\/(style|title)/i,Hr)){dg(_r,ee);continue}if(ct.forceKeepAttr||(dg(_r,ee),!ct.keepAttr))continue;if(!Bn&&S(/\/>/i,Hr)){dg(_r,ee);continue}ir&&d([sn,Nn,Yn],JA=>{Hr=v(Hr,JA," ")});const YA=or(ee.nodeName);if(WA(YA,Bd,Hr)){if(Dt&&typeof mn=="object"&&typeof mn.getAttributeType=="function"&&!ni)switch(mn.getAttributeType(YA,Bd)){case"TrustedHTML":{Hr=Dt.createHTML(Hr);break}case"TrustedScriptURL":{Hr=Dt.createScriptURL(Hr);break}}try{ni?ee.setAttributeNS(ni,_r,Hr):ee.setAttribute(_r,Hr),Ey(ee)?Rs(ee):f(ke.removed)}catch{}}}go(Nt.afterSanitizeAttributes,ee,null)},cK=function pt(ee){let Ie=null;const ct=qA(ee);for(go(Nt.beforeSanitizeShadowDOM,ee,null);Ie=ct.nextNode();)go(Nt.uponSanitizeShadowNode,Ie,null),VA(Ie),KA(Ie),Ie.content instanceof Ue&&pt(Ie.content);go(Nt.afterSanitizeShadowDOM,ee,null)};return ke.sanitize=function(pt){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=null,ct=null,vn=null,Or=null;if(xy=!pt,xy&&(pt="<!-->"),typeof pt!="string"&&!HA(pt))if(typeof pt.toString=="function"){if(pt=pt.toString(),typeof pt!="string")throw C("dirty is not a string, aborting")}else throw C("toString is not a function");if(!ke.isSupported)return pt;if(rl||Sy(ee),ke.removed=[],typeof pt=="string"&&(jd=!1),jd){if(pt.nodeName){const Ds=or(pt.nodeName);if(!Ut[Ds]||xt[Ds])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(pt instanceof ut)Ie=BA("<!---->"),ct=Ie.ownerDocument.importNode(pt,!0),ct.nodeType===He.element&&ct.nodeName==="BODY"||ct.nodeName==="HTML"?Ie=ct:Ie.appendChild(ct);else{if(!sr&&!ir&&!ss&&pt.indexOf("<")===-1)return Dt&&og?Dt.createHTML(pt):pt;if(Ie=BA(pt),!Ie)return sr?null:og?Ln:""}Ie&&br&&Rs(Ie.firstChild);const _r=qA(jd?pt:Ie);for(;vn=_r.nextNode();)VA(vn),KA(vn),vn.content instanceof Ue&&cK(vn.content);if(jd)return pt;if(sr){if(Di)for(Or=en.call(Ie.ownerDocument);Ie.firstChild;)Or.appendChild(Ie.firstChild);else Or=Ie;return(Vt.shadowroot||Vt.shadowrootmode)&&(Or=$n.call(ge,Or,!0)),Or}let ni=ss?Ie.outerHTML:Ie.innerHTML;return ss&&Ut["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&S(Oe,Ie.ownerDocument.doctype.name)&&(ni="<!DOCTYPE "+Ie.ownerDocument.doctype.name+`>
|
|
197
|
-
`+ni),ir&&d([sn,Nn,Yn],Ds=>{ni=v(ni,Ds," ")}),Dt&&og?Dt.createHTML(ni):ni},ke.setConfig=function(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Sy(pt),rl=!0},ke.clearConfig=function(){Bc=null,rl=!1},ke.isValidAttribute=function(pt,ee,Ie){Bc||Sy({});const ct=or(pt),vn=or(ee);return WA(ct,vn,Ie)},ke.addHook=function(pt,ee){typeof ee=="function"&&p(Nt[pt],ee)},ke.removeHook=function(pt,ee){if(ee!==void 0){const Ie=h(Nt[pt],ee);return Ie===-1?void 0:g(Nt[pt],Ie,1)[0]}return f(Nt[pt])},ke.removeHooks=function(pt){Nt[pt]=[]},ke.removeAllHooks=function(){Nt=et()},ke}var we
|
|
196
|
+
[inert] * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-jkihe5 {position:absolute;left:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-jkihe5 {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-jkihe5 {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-jkihe5 {display:flex;flex-direction:column;overflow:hidden;}`};function aF(t,e){se(e,!0),Te(t,oF);let n=P(e,"orientation",3,"horizontal"),r=at(e,["$$slots","$$events","$$legacy","orientation","children"]);const 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"];let s=ae(void 0);on(()=>{const g=globalThis.matchMedia("(prefers-color-scheme: dark)"),{dataset:m}=document.documentElement,b=()=>{m.autoTheming!=="false"&&(m.theme=g.matches?"dark":"light")};b(),g.onchange=()=>{b()},globalThis.setTimeout(()=>{l(s)?.remove()},1e3)});var o=sF();gw(g=>{var m=iF(),b=D(M(m),8);dt(b,17,()=>i,cr,(_,v)=>{var y=rF(),w=M(y),k=D(w,2);H(()=>{Se(w,"href",l(v)),Se(k,"href",l(v))}),T(_,y)}),T(g,m)});var a=M(o);Vr(a,"opacity","0"),Tt(a,g=>L(s,g),()=>l(s));var c=D(a,2),u=g=>g.preventDefault(),d=g=>g.preventDefault(),h=g=>{!document.documentElement.matches('[data-env="dev"]')&&!g.target?.matches('input[type="text"], textarea')&&g.preventDefault()};let f;var p=R(c);Re(p,()=>e.children??Fe),H(()=>f=yt(c,f,{...r,role:"none",class:`sui app-shell ${n()??""}`,ondragover:u,ondrop:d,oncontextmenu:h},"svelte-jkihe5")),T(t,o),oe()}var lF=F('<div><div role="none" class="inner svelte-3h03g8"><!></div></div>');const cF={hash:"svelte-3h03g8",code:".inner.svelte-3h03g8 {display:contents;}"};function mr(t,e){Te(t,cF);let n=P(e,"hidden",3,!1),r=P(e,"disabled",3,!1),i=at(e,["$$slots","$$events","$$legacy","class","hidden","disabled","children"]);var s=lF();let o;var a=R(s),c=R(a);Re(c,()=>e.children??Fe),H(()=>{o=yt(s,o,{...i,role:"group",class:`sui group ${e.class??""}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()},"svelte-3h03g8"),a.inert=r()}),T(t,s)}const rS=({fallbackLocale:t="en",initialLocale:e="en"}={})=>{Object.entries(Object.assign({"./locales/en.js":VP,"./locales/ja.js":WP})).forEach(([r,{strings:i}])=>{const[,s]=r.match(/([a-zA-Z-]+)\.js/);Jg(s,{_sui:i})}),QO({fallbackLocale:t,initialLocale:e})};rS();const iS={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(iS);const sS={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(sS);var Si=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},tc,Yu,Ca;class uF{constructor(...e){tc.set(this,new Map),Yu.set(this,new Map),Ca.set(this,new Map);for(const n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Si(this,Ca,"f").has(r)||Si(this,Ca,"f").set(r,new Set);const s=Si(this,Ca,"f").get(r);let o=!0;for(let a of i){const c=a.startsWith("*");if(a=c?a.slice(1):a,s?.add(a),o&&Si(this,Yu,"f").set(r,a),o=!1,c)continue;const u=Si(this,tc,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Si(this,tc,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;const n=e.replace(/^.*[/\\]/,"").toLowerCase(),r=n.replace(/^.*\./,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Si(this,tc,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Si(this,Yu,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Si(this,Ca,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of Si(this,Ca,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Si(this,tc,"f"),extensions:Si(this,Yu,"f")}}}tc=new WeakMap,Yu=new WeakMap,Ca=new WeakMap;const Do=new uF(sS,iS)._freeze(),oS='<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>';var Gv,aS;function lS(){if(aS)return Gv;aS=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:s,seal:o,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;s||(s=function(ke){return ke}),o||(o=function(ke){return ke}),c||(c=function(ke,Ne,ge){return ke.apply(Ne,ge)}),u||(u=function(ke,Ne){return new ke(...Ne)});const d=E(Array.prototype.forEach),h=E(Array.prototype.lastIndexOf),f=E(Array.prototype.pop),p=E(Array.prototype.push),g=E(Array.prototype.splice),m=E(String.prototype.toLowerCase),b=E(String.prototype.toString),_=E(String.prototype.match),v=E(String.prototype.replace),y=E(String.prototype.indexOf),w=E(String.prototype.trim),k=E(Object.prototype.hasOwnProperty),S=E(RegExp.prototype.test),C=A(TypeError);function E(_e){return function(ke){for(var Ne=arguments.length,ge=new Array(Ne>1?Ne-1:0),Ce=1;Ce<Ne;Ce++)ge[Ce-1]=arguments[Ce];return c(_e,ke,ge)}}function A(_e){return function(){for(var ke=arguments.length,Ne=new Array(ke),ge=0;ge<ke;ge++)Ne[ge]=arguments[ge];return u(_e,Ne)}}function O(_e,ke){let Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e(_e,null);let ge=ke.length;for(;ge--;){let Ce=ke[ge];if(typeof Ce=="string"){const Ue=Ne(Ce);Ue!==Ce&&(n(ke)||(ke[ge]=Ue),Ce=Ue)}_e[Ce]=!0}return _e}function $(_e){for(let ke=0;ke<_e.length;ke++)k(_e,ke)||(_e[ke]=null);return _e}function N(_e){const ke=a(null);for(const[Ne,ge]of t(_e))k(_e,Ne)&&(Array.isArray(ge)?ke[Ne]=$(ge):ge&&typeof ge=="object"&&ge.constructor===Object?ke[Ne]=N(ge):ke[Ne]=ge);return ke}function I(_e,ke){for(;_e!==null;){const ge=i(_e,ke);if(ge){if(ge.get)return E(ge.get);if(typeof ge.value=="function")return E(ge.value)}_e=r(_e)}function Ne(){return null}return Ne}const j=s(["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","section","select","shadow","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"]),q=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=s(["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"]),W=s(["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"]),G=s(["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"]),J=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ne=s(["#text"]),K=s(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Y=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),re=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ce=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),he=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Q=o(/<%[\w\W]*|[\w\W]*%>/gm),X=o(/\$\{[\w\W]*/gm),de=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),ye=o(/^aria-[\-\w]+$/),ve=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=o(/^(?:\w+script|data):/i),fe=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oe=o(/^html$/i),Ae=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var De=Object.freeze({__proto__:null,ARIA_ATTR:ye,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ae,DATA_ATTR:de,DOCTYPE_NAME:Oe,ERB_EXPR:Q,IS_ALLOWED_URI:ve,IS_SCRIPT_OR_DATA:be,MUSTACHE_EXPR:he,TMPLIT_EXPR:X});const He={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ve=function(){return typeof window>"u"?null:window},mt=function(ke,Ne){if(typeof ke!="object"||typeof ke.createPolicy!="function")return null;let ge=null;const Ce="data-tt-policy-suffix";Ne&&Ne.hasAttribute(Ce)&&(ge=Ne.getAttribute(Ce));const Ue="dompurify"+(ge?"#"+ge:"");try{return ke.createPolicy(Ue,{createHTML(Je){return Je},createScriptURL(Je){return Je}})}catch{return console.warn("TrustedTypes policy "+Ue+" could not be created."),null}},et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function we(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ve();const ke=pt=>we(pt);if(ke.version="3.2.4",ke.removed=[],!_e||!_e.document||_e.document.nodeType!==He.document||!_e.Element)return ke.isSupported=!1,ke;let{document:Ne}=_e;const ge=Ne,Ce=ge.currentScript,{DocumentFragment:Ue,HTMLTemplateElement:Je,Node:ut,Element:lt,NodeFilter:Ke,NamedNodeMap:rt=_e.NamedNodeMap||_e.MozNamedAttrMap,HTMLFormElement:Et,DOMParser:Ht,trustedTypes:mn}=_e,On=lt.prototype,nr=I(On,"cloneNode"),ns=I(On,"remove"),ti=I(On,"nextSibling"),fo=I(On,"childNodes"),rs=I(On,"parentNode");if(typeof Je=="function"){const pt=Ne.createElement("template");pt.content&&pt.content.ownerDocument&&(Ne=pt.content.ownerDocument)}let Dt,Ln="";const{implementation:Gt,createNodeIterator:bt,createDocumentFragment:en,getElementsByTagName:Fn}=Ne,{importNode:$n}=ge;let Nt=et();ke.isSupported=typeof t=="function"&&typeof rs=="function"&&Gt&&Gt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:sn,ERB_EXPR:Nn,TMPLIT_EXPR:Yn,DATA_ATTR:Pr,ARIA_ATTR:Ri,IS_SCRIPT_OR_DATA:fi,ATTR_WHITESPACE:Is,CUSTOM_ELEMENT:vr}=De;let{IS_ALLOWED_URI:Un}=De,Ut=null;const hi=O({},[...j,...q,...B,...G,...ne]);let Vt=null;const tn=O({},[...K,...Y,...re,...ce]);let Ze=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xt=null,En=null,rr=!0,ho=!0,Xo=!1,Bn=!0,ir=!1,is=!0,ss=!1,rl=!1,br=!1,sr=!1,Di=!1,og=!1,NA=!0,IA=!1;const nK="user-content-";let yy=!0,jd=!1,zc={},jc=null;const RA=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let DA=null;const MA=O({},["audio","video","img","source","image","track"]);let wy=null;const FA=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ag="http://www.w3.org/1998/Math/MathML",lg="http://www.w3.org/2000/svg",po="http://www.w3.org/1999/xhtml";let Uc=po,xy=!1,ky=null;const rK=O({},[ag,lg,po],b);let cg=O({},["mi","mo","mn","ms","mtext"]),ug=O({},["annotation-xml"]);const iK=O({},["title","style","font","a","script"]);let Ud=null;const sK=["application/xhtml+xml","text/html"],oK="text/html";let or=null,Bc=null;const aK=Ne.createElement("form"),zA=function(ee){return ee instanceof RegExp||ee instanceof Function},Sy=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Bc&&Bc===ee)){if((!ee||typeof ee!="object")&&(ee={}),ee=N(ee),Ud=sK.indexOf(ee.PARSER_MEDIA_TYPE)===-1?oK:ee.PARSER_MEDIA_TYPE,or=Ud==="application/xhtml+xml"?b:m,Ut=k(ee,"ALLOWED_TAGS")?O({},ee.ALLOWED_TAGS,or):hi,Vt=k(ee,"ALLOWED_ATTR")?O({},ee.ALLOWED_ATTR,or):tn,ky=k(ee,"ALLOWED_NAMESPACES")?O({},ee.ALLOWED_NAMESPACES,b):rK,wy=k(ee,"ADD_URI_SAFE_ATTR")?O(N(FA),ee.ADD_URI_SAFE_ATTR,or):FA,DA=k(ee,"ADD_DATA_URI_TAGS")?O(N(MA),ee.ADD_DATA_URI_TAGS,or):MA,jc=k(ee,"FORBID_CONTENTS")?O({},ee.FORBID_CONTENTS,or):RA,xt=k(ee,"FORBID_TAGS")?O({},ee.FORBID_TAGS,or):{},En=k(ee,"FORBID_ATTR")?O({},ee.FORBID_ATTR,or):{},zc=k(ee,"USE_PROFILES")?ee.USE_PROFILES:!1,rr=ee.ALLOW_ARIA_ATTR!==!1,ho=ee.ALLOW_DATA_ATTR!==!1,Xo=ee.ALLOW_UNKNOWN_PROTOCOLS||!1,Bn=ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ir=ee.SAFE_FOR_TEMPLATES||!1,is=ee.SAFE_FOR_XML!==!1,ss=ee.WHOLE_DOCUMENT||!1,sr=ee.RETURN_DOM||!1,Di=ee.RETURN_DOM_FRAGMENT||!1,og=ee.RETURN_TRUSTED_TYPE||!1,br=ee.FORCE_BODY||!1,NA=ee.SANITIZE_DOM!==!1,IA=ee.SANITIZE_NAMED_PROPS||!1,yy=ee.KEEP_CONTENT!==!1,jd=ee.IN_PLACE||!1,Un=ee.ALLOWED_URI_REGEXP||ve,Uc=ee.NAMESPACE||po,cg=ee.MATHML_TEXT_INTEGRATION_POINTS||cg,ug=ee.HTML_INTEGRATION_POINTS||ug,Ze=ee.CUSTOM_ELEMENT_HANDLING||{},ee.CUSTOM_ELEMENT_HANDLING&&zA(ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ze.tagNameCheck=ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&zA(ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ze.attributeNameCheck=ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&typeof ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ze.allowCustomizedBuiltInElements=ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ir&&(ho=!1),Di&&(sr=!0),zc&&(Ut=O({},ne),Vt=[],zc.html===!0&&(O(Ut,j),O(Vt,K)),zc.svg===!0&&(O(Ut,q),O(Vt,Y),O(Vt,ce)),zc.svgFilters===!0&&(O(Ut,B),O(Vt,Y),O(Vt,ce)),zc.mathMl===!0&&(O(Ut,G),O(Vt,re),O(Vt,ce))),ee.ADD_TAGS&&(Ut===hi&&(Ut=N(Ut)),O(Ut,ee.ADD_TAGS,or)),ee.ADD_ATTR&&(Vt===tn&&(Vt=N(Vt)),O(Vt,ee.ADD_ATTR,or)),ee.ADD_URI_SAFE_ATTR&&O(wy,ee.ADD_URI_SAFE_ATTR,or),ee.FORBID_CONTENTS&&(jc===RA&&(jc=N(jc)),O(jc,ee.FORBID_CONTENTS,or)),yy&&(Ut["#text"]=!0),ss&&O(Ut,["html","head","body"]),Ut.table&&(O(Ut,["tbody"]),delete xt.tbody),ee.TRUSTED_TYPES_POLICY){if(typeof ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Dt=ee.TRUSTED_TYPES_POLICY,Ln=Dt.createHTML("")}else Dt===void 0&&(Dt=mt(mn,Ce)),Dt!==null&&typeof Ln=="string"&&(Ln=Dt.createHTML(""));s&&s(ee),Bc=ee}},jA=O({},[...q,...B,...W]),UA=O({},[...G,...J]),lK=function(ee){let Ie=rs(ee);(!Ie||!Ie.tagName)&&(Ie={namespaceURI:Uc,tagName:"template"});const ct=m(ee.tagName),vn=m(Ie.tagName);return ky[ee.namespaceURI]?ee.namespaceURI===lg?Ie.namespaceURI===po?ct==="svg":Ie.namespaceURI===ag?ct==="svg"&&(vn==="annotation-xml"||cg[vn]):!!jA[ct]:ee.namespaceURI===ag?Ie.namespaceURI===po?ct==="math":Ie.namespaceURI===lg?ct==="math"&&ug[vn]:!!UA[ct]:ee.namespaceURI===po?Ie.namespaceURI===lg&&!ug[vn]||Ie.namespaceURI===ag&&!cg[vn]?!1:!UA[ct]&&(iK[ct]||!jA[ct]):!!(Ud==="application/xhtml+xml"&&ky[ee.namespaceURI]):!1},Rs=function(ee){p(ke.removed,{element:ee});try{rs(ee).removeChild(ee)}catch{ns(ee)}},dg=function(ee,Ie){try{p(ke.removed,{attribute:Ie.getAttributeNode(ee),from:Ie})}catch{p(ke.removed,{attribute:null,from:Ie})}if(Ie.removeAttribute(ee),ee==="is")if(sr||Di)try{Rs(Ie)}catch{}else try{Ie.setAttribute(ee,"")}catch{}},BA=function(ee){let Ie=null,ct=null;if(br)ee="<remove></remove>"+ee;else{const _r=_(ee,/^[\r\n\t ]+/);ct=_r&&_r[0]}Ud==="application/xhtml+xml"&&Uc===po&&(ee='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ee+"</body></html>");const vn=Dt?Dt.createHTML(ee):ee;if(Uc===po)try{Ie=new Ht().parseFromString(vn,Ud)}catch{}if(!Ie||!Ie.documentElement){Ie=Gt.createDocument(Uc,"template",null);try{Ie.documentElement.innerHTML=xy?Ln:vn}catch{}}const Or=Ie.body||Ie.documentElement;return ee&&ct&&Or.insertBefore(Ne.createTextNode(ct),Or.childNodes[0]||null),Uc===po?Fn.call(Ie,ss?"html":"body")[0]:ss?Ie.documentElement:Or},qA=function(ee){return bt.call(ee.ownerDocument||ee,ee,Ke.SHOW_ELEMENT|Ke.SHOW_COMMENT|Ke.SHOW_TEXT|Ke.SHOW_PROCESSING_INSTRUCTION|Ke.SHOW_CDATA_SECTION,null)},Ey=function(ee){return ee instanceof Et&&(typeof ee.nodeName!="string"||typeof ee.textContent!="string"||typeof ee.removeChild!="function"||!(ee.attributes instanceof rt)||typeof ee.removeAttribute!="function"||typeof ee.setAttribute!="function"||typeof ee.namespaceURI!="string"||typeof ee.insertBefore!="function"||typeof ee.hasChildNodes!="function")},HA=function(ee){return typeof ut=="function"&&ee instanceof ut};function go(pt,ee,Ie){d(pt,ct=>{ct.call(ke,ee,Ie,Bc)})}const VA=function(ee){let Ie=null;if(go(Nt.beforeSanitizeElements,ee,null),Ey(ee))return Rs(ee),!0;const ct=or(ee.nodeName);if(go(Nt.uponSanitizeElement,ee,{tagName:ct,allowedTags:Ut}),ee.hasChildNodes()&&!HA(ee.firstElementChild)&&S(/<[/\w]/g,ee.innerHTML)&&S(/<[/\w]/g,ee.textContent)||ee.nodeType===He.progressingInstruction||is&&ee.nodeType===He.comment&&S(/<[/\w]/g,ee.data))return Rs(ee),!0;if(!Ut[ct]||xt[ct]){if(!xt[ct]&&GA(ct)&&(Ze.tagNameCheck instanceof RegExp&&S(Ze.tagNameCheck,ct)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(ct)))return!1;if(yy&&!jc[ct]){const vn=rs(ee)||ee.parentNode,Or=fo(ee)||ee.childNodes;if(Or&&vn){const _r=Or.length;for(let ni=_r-1;ni>=0;--ni){const Ds=nr(Or[ni],!0);Ds.__removalCount=(ee.__removalCount||0)+1,vn.insertBefore(Ds,ti(ee))}}}return Rs(ee),!0}return ee instanceof lt&&!lK(ee)||(ct==="noscript"||ct==="noembed"||ct==="noframes")&&S(/<\/no(script|embed|frames)/i,ee.innerHTML)?(Rs(ee),!0):(ir&&ee.nodeType===He.text&&(Ie=ee.textContent,d([sn,Nn,Yn],vn=>{Ie=v(Ie,vn," ")}),ee.textContent!==Ie&&(p(ke.removed,{element:ee.cloneNode()}),ee.textContent=Ie)),go(Nt.afterSanitizeElements,ee,null),!1)},WA=function(ee,Ie,ct){if(NA&&(Ie==="id"||Ie==="name")&&(ct in Ne||ct in aK))return!1;if(!(ho&&!En[Ie]&&S(Pr,Ie))){if(!(rr&&S(Ri,Ie))){if(!Vt[Ie]||En[Ie]){if(!(GA(ee)&&(Ze.tagNameCheck instanceof RegExp&&S(Ze.tagNameCheck,ee)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(ee))&&(Ze.attributeNameCheck instanceof RegExp&&S(Ze.attributeNameCheck,Ie)||Ze.attributeNameCheck instanceof Function&&Ze.attributeNameCheck(Ie))||Ie==="is"&&Ze.allowCustomizedBuiltInElements&&(Ze.tagNameCheck instanceof RegExp&&S(Ze.tagNameCheck,ct)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(ct))))return!1}else if(!wy[Ie]){if(!S(Un,v(ct,Is,""))){if(!((Ie==="src"||Ie==="xlink:href"||Ie==="href")&&ee!=="script"&&y(ct,"data:")===0&&DA[ee])){if(!(Xo&&!S(fi,v(ct,Is,"")))){if(ct)return!1}}}}}}return!0},GA=function(ee){return ee!=="annotation-xml"&&_(ee,vr)},KA=function(ee){go(Nt.beforeSanitizeAttributes,ee,null);const{attributes:Ie}=ee;if(!Ie||Ey(ee))return;const ct={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Vt,forceKeepAttr:void 0};let vn=Ie.length;for(;vn--;){const Or=Ie[vn],{name:_r,namespaceURI:ni,value:Ds}=Or,Bd=or(_r);let Hr=_r==="value"?Ds:w(Ds);if(ct.attrName=Bd,ct.attrValue=Hr,ct.keepAttr=!0,ct.forceKeepAttr=void 0,go(Nt.uponSanitizeAttribute,ee,ct),Hr=ct.attrValue,IA&&(Bd==="id"||Bd==="name")&&(dg(_r,ee),Hr=nK+Hr),is&&S(/((--!?|])>)|<\/(style|title)/i,Hr)){dg(_r,ee);continue}if(ct.forceKeepAttr||(dg(_r,ee),!ct.keepAttr))continue;if(!Bn&&S(/\/>/i,Hr)){dg(_r,ee);continue}ir&&d([sn,Nn,Yn],JA=>{Hr=v(Hr,JA," ")});const YA=or(ee.nodeName);if(WA(YA,Bd,Hr)){if(Dt&&typeof mn=="object"&&typeof mn.getAttributeType=="function"&&!ni)switch(mn.getAttributeType(YA,Bd)){case"TrustedHTML":{Hr=Dt.createHTML(Hr);break}case"TrustedScriptURL":{Hr=Dt.createScriptURL(Hr);break}}try{ni?ee.setAttributeNS(ni,_r,Hr):ee.setAttribute(_r,Hr),Ey(ee)?Rs(ee):f(ke.removed)}catch{}}}go(Nt.afterSanitizeAttributes,ee,null)},cK=function pt(ee){let Ie=null;const ct=qA(ee);for(go(Nt.beforeSanitizeShadowDOM,ee,null);Ie=ct.nextNode();)go(Nt.uponSanitizeShadowNode,Ie,null),VA(Ie),KA(Ie),Ie.content instanceof Ue&&pt(Ie.content);go(Nt.afterSanitizeShadowDOM,ee,null)};return ke.sanitize=function(pt){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=null,ct=null,vn=null,Or=null;if(xy=!pt,xy&&(pt="<!-->"),typeof pt!="string"&&!HA(pt))if(typeof pt.toString=="function"){if(pt=pt.toString(),typeof pt!="string")throw C("dirty is not a string, aborting")}else throw C("toString is not a function");if(!ke.isSupported)return pt;if(rl||Sy(ee),ke.removed=[],typeof pt=="string"&&(jd=!1),jd){if(pt.nodeName){const Ds=or(pt.nodeName);if(!Ut[Ds]||xt[Ds])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(pt instanceof ut)Ie=BA("<!---->"),ct=Ie.ownerDocument.importNode(pt,!0),ct.nodeType===He.element&&ct.nodeName==="BODY"||ct.nodeName==="HTML"?Ie=ct:Ie.appendChild(ct);else{if(!sr&&!ir&&!ss&&pt.indexOf("<")===-1)return Dt&&og?Dt.createHTML(pt):pt;if(Ie=BA(pt),!Ie)return sr?null:og?Ln:""}Ie&&br&&Rs(Ie.firstChild);const _r=qA(jd?pt:Ie);for(;vn=_r.nextNode();)VA(vn),KA(vn),vn.content instanceof Ue&&cK(vn.content);if(jd)return pt;if(sr){if(Di)for(Or=en.call(Ie.ownerDocument);Ie.firstChild;)Or.appendChild(Ie.firstChild);else Or=Ie;return(Vt.shadowroot||Vt.shadowrootmode)&&(Or=$n.call(ge,Or,!0)),Or}let ni=ss?Ie.outerHTML:Ie.innerHTML;return ss&&Ut["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&S(Oe,Ie.ownerDocument.doctype.name)&&(ni="<!DOCTYPE "+Ie.ownerDocument.doctype.name+`>
|
|
197
|
+
`+ni),ir&&d([sn,Nn,Yn],Ds=>{ni=v(ni,Ds," ")}),Dt&&og?Dt.createHTML(ni):ni},ke.setConfig=function(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Sy(pt),rl=!0},ke.clearConfig=function(){Bc=null,rl=!1},ke.isValidAttribute=function(pt,ee,Ie){Bc||Sy({});const ct=or(pt),vn=or(ee);return WA(ct,vn,Ie)},ke.addHook=function(pt,ee){typeof ee=="function"&&p(Nt[pt],ee)},ke.removeHook=function(pt,ee){if(ee!==void 0){const Ie=h(Nt[pt],ee);return Ie===-1?void 0:g(Nt[pt],Ie,1)[0]}return f(Nt[pt])},ke.removeHooks=function(pt){Nt[pt]=[]},ke.removeAllHooks=function(){Nt=et()},ke}var xe=we();return Gv=xe,Gv}var Kv,cS;function dF(){return cS||(cS=1,Kv=window.DOMPurify||(window.DOMPurify=lS().default||lS())),Kv}var uS=dF();const oi=pf(uS);function Yv(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Aa=Yv();function dS(t){Aa=t}const Ju={exec:()=>null};function qt(t,e=""){let n=typeof t=="string"?t:t.source;const r={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(Ur.caret,"$1"),n=n.replace(i,o),r},getRegex:()=>new RegExp(n,e)};return r}const Ur={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},fF=/^(?:[ \t]*(?:\n|$))+/,hF=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,pF=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gF=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Jv=/(?:[*+-]|\d{1,9}[.)])/,fS=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hS=qt(fS).replace(/bull/g,Jv).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),mF=qt(fS).replace(/bull/g,Jv).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Zv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,vF=/^[^\n]+/,Xv=/(?!\s*\])(?:\\.|[^\[\]\\])+/,bF=qt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Xv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_F=qt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jv).getRegex(),Lh="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Qv=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yF=qt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Qv).replace("tag",Lh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pS=qt(Zv).replace("hr",Zu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Lh).getRegex(),eb={blockquote:qt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",pS).getRegex(),code:hF,def:bF,fences:pF,heading:gF,hr:Zu,html:yF,lheading:hS,list:_F,newline:fF,paragraph:pS,table:Ju,text:vF},gS=qt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Lh).getRegex(),wF={...eb,lheading:mF,table:gS,paragraph:qt(Zv).replace("hr",Zu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gS).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Lh).getRegex()},xF={...eb,html:qt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Qv).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ju,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:qt(Zv).replace("hr",Zu).replace("heading",` *#{1,6} *[^
|
|
198
198
|
]`).replace("lheading",hS).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},kF=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,SF=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mS=/^( {2,}|\\)\n(?!\s*$)/,EF=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,$h=/[\p{P}\p{S}]/u,tb=/[\s\p{P}\p{S}]/u,vS=/[^\s\p{P}\p{S}]/u,TF=qt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,tb).getRegex(),bS=/(?!~)[\p{P}\p{S}]/u,CF=/(?!~)[\s\p{P}\p{S}]/u,AF=/(?:[^\s\p{P}\p{S}]|~)/u,PF=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,_S=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,OF=qt(_S,"u").replace(/punct/g,$h).getRegex(),LF=qt(_S,"u").replace(/punct/g,bS).getRegex(),yS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$F=qt(yS,"gu").replace(/notPunctSpace/g,vS).replace(/punctSpace/g,tb).replace(/punct/g,$h).getRegex(),NF=qt(yS,"gu").replace(/notPunctSpace/g,AF).replace(/punctSpace/g,CF).replace(/punct/g,bS).getRegex(),IF=qt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vS).replace(/punctSpace/g,tb).replace(/punct/g,$h).getRegex(),RF=qt(/\\(punct)/,"gu").replace(/punct/g,$h).getRegex(),DF=qt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),MF=qt(Qv).replace("(?:-->|$)","-->").getRegex(),FF=qt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",MF).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nh=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,zF=qt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Nh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),wS=qt(/^!?\[(label)\]\[(ref)\]/).replace("label",Nh).replace("ref",Xv).getRegex(),xS=qt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Xv).getRegex(),jF=qt("reflink|nolink(?!\\()","g").replace("reflink",wS).replace("nolink",xS).getRegex(),nb={_backpedal:Ju,anyPunctuation:RF,autolink:DF,blockSkip:PF,br:mS,code:SF,del:Ju,emStrongLDelim:OF,emStrongRDelimAst:$F,emStrongRDelimUnd:IF,escape:kF,link:zF,nolink:xS,punctuation:TF,reflink:wS,reflinkSearch:jF,tag:FF,text:EF,url:Ju},UF={...nb,link:qt(/^!?\[(label)\]\((.*?)\)/).replace("label",Nh).getRegex(),reflink:qt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nh).getRegex()},rb={...nb,emStrongRDelimAst:NF,emStrongLDelim:LF,url:qt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},BF={...rb,br:qt(mS).replace("{2,}","*").getRegex(),text:qt(rb.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ih={normal:eb,gfm:wF,pedantic:xF},Xu={normal:nb,gfm:rb,breaks:BF,pedantic:UF},qF={"&":"&","<":"<",">":">",'"':""","'":"'"},kS=t=>qF[t];function ws(t,e){if(e){if(Ur.escapeTest.test(t))return t.replace(Ur.escapeReplace,kS)}else if(Ur.escapeTestNoEncode.test(t))return t.replace(Ur.escapeReplaceNoEncode,kS);return t}function SS(t){try{t=encodeURI(t).replace(Ur.percentDecode,"%")}catch{return null}return t}function ES(t,e){const n=t.replace(Ur.findPipe,(s,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Ur.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Ur.slashPipe,"|");return r}function Qu(t,e,n){const r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function HF(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return-1}function TS(t,e,n,r,i){const s=e.href,o=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");if(t[0].charAt(0)!=="!"){r.state.inLink=!0;const c={type:"link",raw:n,href:s,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,c}return{type:"image",raw:n,href:s,title:o,text:a}}function VF(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(r===null)return e;const i=r[1];return e.split(`
|
|
199
199
|
`).map(s=>{const o=s.match(n.other.beginningSpace);if(o===null)return s;const[a]=o;return a.length>=i.length?s.slice(i.length):s}).join(`
|
|
200
200
|
`)}class Rh{options;rules;lexer;constructor(e){this.options=e||Aa}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Qu(r,`
|
|
@@ -558,8 +558,8 @@ ${i}`.trim()}function u8(t,e){if(Sd(t)!=="object")throw new TypeError("stringify
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
`);if(a.push(...Object.values(c.project.repository).map(({lastCommit:u})=>u)),!o.length)break}return Object.fromEntries(t.map(({path:c,sha:u},d)=>{const{size:h,rawTextBlob:f}=s[d],p=a[d],g={sha:u,size:Number(h),text:f,meta:{}};if(p){const{author:m,authorName:b,authorEmail:_,committedDate:v}=p,{id:y,username:w}=m??{},k=y?.match(/\d+/);g.meta={commitAuthor:{name:b,email:_,id:k?Number(k[0]):void 0,login:w},committedDate:new Date(v)}}return[c,g]}))},M8={name:Ga,label:mC,repository:Os,statusDashboardURL:T8,checkStatus:A8,getRepositoryInfo:vC,init:P8,signIn:O8,signOut:L8,fetchFiles:async()=>{await $8(),await fC({repository:Os,fetchDefaultBranchName:N8,fetchLastCommit:I8,fetchFileList:R8,fetchFileContents:D8})},fetchBlob:async t=>{const{owner:e,repo:n,branch:r=""}=Os,{path:i}=t;return Td(`/projects/${encodeURIComponent(`${e}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?ref=${encodeURIComponent(r)}`,{},{responseType:"blob"})},commitChanges:async(t,e)=>{const{owner:n,repo:r,branch:i}=Os;return(await Td(`/projects/${encodeURIComponent(`${n}/${r}`)}/repository/commits`,{method:"POST",body:{branch:i,commit_message:QT(t,e),actions:await Promise.all(t.map(async({action:o,path:a,previousPath:c,data:u="",base64:d})=>({action:o,content:d??(typeof u!="string"?await Cw(u):u),encoding:d||typeof u!="string"?"base64":"text",file_path:a,previous_path:c})))}})).web_url}},bC="local",F8="Local Repository";let K_;const z8=new Proxy({},{get:(t,e)=>(K_??p8)[e]}),Y_=it(null),J_="root_dir_handle";let Kp;const j8=async({forceReload:t=!1,showPicker:e=!0}={})=>{if(!("showDirectoryPicker"in window))throw new Error("unsupported");let n=t?null:await Kp?.get(J_)??null;if(n)if(await n.requestPermission({mode:"readwrite"})!=="granted")n=null;else try{await n.entries().next()}catch(r){n=null,console.error(r)}return!n&&e&&(n=await window.showDirectoryPicker(),n&&(await n.getDirectoryHandle(".git"),await Kp?.set(J_,n))),n},U8=async()=>{await Kp?.delete(J_)},B8=()=>{const{name:t}=te(_t).backend;K_=Yp[t]?.getRepositoryInfo?.();const{databaseName:e}=K_??{};Kp=e?new Mo(e,"file-system-handles"):null},q8=async({auto:t=!1})=>{const e=await j8({showPicker:!t});if(e)Y_.set(e);else throw new Error("Directory handle could not be acquired");return{backendName:bC}},H8=async()=>{U8()},Ad=async t=>{let e=te(Y_);if(!t)return e;const n=In(t).split("/"),r=!0;for(const i of n)e=await(i.includes(".")?e.getFileHandle(i,{create:r}):e.getDirectoryHandle(i,{create:r}));return e},V8=async()=>{const t=te(Y_),e=[],n=ec([...te(D_).map(({filePathMap:o,folderPathMap:a})=>Object.values(o||(a??{}))).flat(1),...te(ci).map(({internalPath:o})=>o)].map(o=>In(o??""))),r=o=>new RegExp(`^${an(o)}\\b`),i=n.map(r),s=async o=>{for await(const[a,c]of o.entries()){if(a.startsWith("."))continue;const u=(await t?.resolve(c))?.join("/")??"",d=i.some(h=>h.test(u));if(c.kind==="file"){if(!d)continue;try{let h=await c.getFile();h=new File([h],h.name,{type:h.type,lastModified:h.lastModified}),e.push({file:h,path:u})}catch(h){console.error(h)}}if(c.kind==="directory"){const h=r(u);if(!d&&!n.some(f=>h.test(f)))continue;await s(c)}}};return await s(t),Promise.all(e.map(async({file:o,path:a})=>({file:o,path:a.normalize(),size:o.size,sha:await(async()=>{try{return await sa(o)}catch(c){console.error(c)}return""})()})))},Yp={github:E8,gitlab:M8,local:{name:bC,label:F8,repository:z8,init:B8,signIn:q8,signOut:H8,fetchFiles:async()=>{const{entryFiles:t,assetFiles:e}=G_(await V8());await Promise.all(t.map(async i=>{try{i.text=await IP(i.file)}catch(s){i.text="",console.error(s)}}));const{entries:n,errors:r}=await dC(t);ei.set(n),M_.set(r),Qt.set(eC(e)),$c.set(!0)},commitChanges:async t=>Promise.all(t.map(async({action:e,path:n,previousPath:r,data:i})=>{try{let s;if(e==="move"&&r){const{dirname:o,basename:a}=Tn(n);s=await Ad(r),o&&o!==Tn(r).dirname?await s.move(await Ad(o),a):await s.move(a)}if(["create","update","move"].includes(e)&&i){s??=await Ad(n);const o=await s.createWritable();try{await o.write(i)}catch{}finally{await o.close()}return s.getFile()}if(e==="delete"){const{dirname:o="",basename:a}=Tn(In(n));let c=await Ad(o);if(await c.removeEntry(a),!o)return null;const u=o.split("/");for(;;){const d=[];for await(const f of c.keys())d.push(f);if(d.length>1||!u.length)break;const h=u.pop();c=await Ad(u.join("/")),c.removeEntry(h)}}}catch(s){console.error(s)}return null}))}},Ls=it(),Pn=dr([Ls],([t],e,n)=>{n(r=>{const i=t?Yp[t]:void 0;return i&&i!==r&&i.init(),i})}),Jp=it(!0),Pd=it({message:"",canRetry:!1}),Ka=it(!0),Z_=t=>{let e=t.cause?.message||te(le)("unexpected_error"),n=!1;t.name==="NotFoundError"&&(e=te(le)("sign_in_error.not_project_root"),n=!0),t.name==="AbortError"&&(e=te(le)(te(Ls)==="local"?"sign_in_error.picker_dismissed":"sign_in_error.authentication_aborted"),n=!0),Pd.set({message:e,canRetry:n}),console.error(t.message,t.cause)},W8=async()=>{const t=await Jr.get("sveltia-cms.user")||await Jr.get("decap-cms-user")||await Jr.get("netlify-cms-user");let e=Gn(t)&&t.backendName?t:void 0;const n=e?.backendName?.replace("proxy","local")??te(_t)?.backend?.name;Ls.set(n);const r=te(Pn);if(e&&r)try{e=await r.signIn({token:e.token,auto:!0})}catch{e=void 0}if(Ka.set(!e),!(!e||!r)){ui.set(e);try{await r.fetchFiles(),Pd.set({message:"",canRetry:!1})}catch(i){[401,403,404].includes(i.cause?.status)?Ka.set(!0):Z_(i)}}},_C=async t=>{Ls.set(t);const e=te(Pn);if(!e)return;let n;try{n=await e.signIn({auto:!1})}catch(r){Ka.set(!0),Z_(r);return}if(Ka.set(!n),!!n){ui.set(n);try{await e.fetchFiles(),Pd.set({message:"",canRetry:!1})}catch(r){Z_(r)}}},G8=async()=>{await te(Pn)?.signOut(),await Jr.delete("sveltia-cms.user"),Ls.set(void 0),ui.set(void 0),Ka.set(!0),$c.set(!1)};var K8=F('<div role="alert" class="message"> </div>'),Y8=F('<div role="alert"> </div>'),J8=F('<div role="alert"><!></div>'),Z8=F('<div role="none"><!></div>'),X8=F("<!> <!>",1),Q8=F("<!> <!>",1),eq=F('<div role="alert"> </div>'),tq=F('<div role="none" class="buttons svelte-8a6wia"><!> <!></div>');const nq={hash:"svelte-8a6wia",code:".buttons.svelte-8a6wia {display:flex;flex-direction:column;align-items:center;gap:16px;}.buttons.svelte-8a6wia button {width:240px;}"};function rq(t,e){se(e,!0),Te(t,nq);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(Ka,"$unauthenticated",n),o=()=>z(le,"$_",n),a=()=>z(Pd,"$signInError",n);let c=ae(!1),u=ae(!1),d=ae(!1);const h=x(()=>i()?.backend?.name),f=x(()=>l(h)?Yp[l(h)]:null),p=x(()=>i()?.backend?.repo?.split("/")?.[1]);on(()=>{const{hostname:w}=window.location;L(c,ie(w==="127.0.0.1"||w==="localhost"||w.endsWith(".localhost"))),L(u,"showDirectoryPicker"in window),L(d,ie(navigator.userAgentData?.brands.some(({brand:k})=>k==="Brave")??!1)),W8()});var g=tq(),m=R(g);{var b=w=>{var k=K8(),S=R(k);H(C=>Z(S,C),[()=>o()("signing_in")]),T(w,k)},_=w=>{var k=V(),S=M(k);{var C=A=>{var O=Y8(),$=R(O);H(N=>Z($,N),[()=>o()("config.error.unsupported_backend",{values:{name:l(h)}})]),T(A,O)},E=A=>{var O=Q8(),$=M(O);const N=x(()=>o()("sign_in_with_x",{values:{service:l(f).label}}));Xe($,{variant:"primary",get label(){return l(N)},onclick:async()=>{await _C(l(h))}});var I=D($,2);{var j=q=>{var B=X8(),W=M(B);const G=x(()=>o()("work_with_local_repo")),J=x(()=>!l(u));Xe(W,{variant:"primary",get label(){return l(G)},get disabled(){return l(J)},onclick:async()=>{await _C("local")}});var ne=D(W,2);{var K=re=>{var ce=J8(),he=R(ce);{var Q=de=>{var _e=V(),ve=M(_e);ur(ve,()=>oi.sanitize(o()("local_backend.disabled").replace("<a>",'<a href="https://github.com/sveltia/sveltia-cms#enabling-local-development-in-brave" target="_blank">'),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target"]})),T(de,_e)},X=de=>{var _e=We();H(ve=>Z(_e,ve),[()=>o()("local_backend.unsupported_browser")]),T(de,_e)};U(he,de=>{l(d)?de(Q):de(X,!1)})}T(re,ce)},Y=re=>{var ce=V(),he=M(ce);{var Q=X=>{var de=Z8(),_e=R(de);{var ve=fe=>{var Oe=We();H(Ae=>Z(Oe,Ae),[()=>o()("work_with_local_repo_description",{values:{repo:l(p)}})]),T(fe,Oe)},be=fe=>{var Oe=We();H(Ae=>Z(Oe,Ae),[()=>o()("work_with_local_repo_description_no_repo")]),T(fe,Oe)};U(_e,fe=>{l(p)?fe(ve):fe(be,!1)})}T(X,de)};U(he,X=>{a().message||X(Q)},!0)}T(re,ce)};U(ne,re=>{l(u)?re(Y,!1):re(K)})}T(q,B)};U(I,q=>{l(c)&&q(j)})}T(A,O)};U(S,A=>{l(f)?A(E,!1):A(C)},!0)}T(w,k)};U(m,w=>{s()?w(_,!1):w(b)})}var v=D(m,2);{var y=w=>{var k=eq(),S=R(k);H(()=>Z(S,a().message)),T(w,k)};U(v,w=>{a().message&&a().canRetry&&w(y)})}T(t,g),oe(),r()}const st=it(),es=it(!0);st.subscribe(t=>{te(St).devModeEnabled&&console.info("entryDraft",t)});const Ya=it(!1),X_=it(!1),Od=it({show:!1,multiple:!1}),Q_=it({id:void 0,show:!1,status:"success",message:void 0,count:1,sourceLocale:void 0}),Ja=it(null),Yo=it(null),Ii=it(),Ic=it(),uo=t=>{st.update(e=>(e&&Object.entries(t).forEach(([n,r])=>{e.expanderStates._[n]!==r&&(e.expanderStates._[n]=r)}),e))},yC=({collectionName:t,fileName:e,valueMap:n,keyPath:r})=>{const i=new Set;return r.split(".").forEach((s,o,a)=>{const c=a.slice(0,o+1).join("."),u=gn({collectionName:t,fileName:e,valueMap:n,keyPath:c}),d=/\.\d+$/.test(c);if(u?.widget==="object")d&&i.add(c),i.add(`${c}#`);else if(u?.widget==="list")i.add(d?c:`${c}#`);else if(o>0){const h=a.slice(0,o).join("."),f=gn({collectionName:t,fileName:e,valueMap:n,keyPath:h});f?.widget==="object"&&f.fields&&i.add(`${h}.${f.name}#`),f?.widget==="list"&&f.field&&i.add(c)}}),[...i]},iq=({collectionName:t,fileName:e,currentValues:n})=>{const r={};Object.entries(te(st)?.validities??{}).forEach(([i,s])=>{Object.entries(s).forEach(([o,{valid:a}])=>{a||yC({collectionName:t,fileName:e,valueMap:n[i],keyPath:o}).forEach(c=>{r[c]=!0})})}),uo(r)},sq=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new Mo(e,"ui-settings"):null,r="entry-view",i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:"grid"},...await n?.get(r)??{}};Ii.set(i),Ic.set(i.selectAssetsView),Ii.subscribe(s=>{(async()=>{try{Dn(s,await n?.get(r))||await n?.set(r,s)}catch{}})()}),Ic.subscribe(s=>{if(!s||!Object.keys(s).length)return;const o=te(Ii)?.selectAssetsView??{};Dn(s,o)||Ii.update(a=>({...a,selectAssetsView:s}))})};Pn.subscribe(t=>{t&&!te(Ii)&&sq(t)});const wC=dr([Ya,Go],([t,e])=>t||e),ey=it(""),$s=it(""),Ld=(t=window.location)=>{const{pathname:e,searchParams:n}=new URL(`${t.origin}${t.hash.substring(1)}`);return{path:decodeURIComponent(e),params:Object.fromEntries(n)}},jn=(t,{state:e={},replaceState:n=!1,notifyChange:r=!0}={})=>{const i=window.location.hash,s=`#${t}`,o=[{...e,from:i},"",s];n?window.history.replaceState(...o):window.history.pushState(...o),r&&window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:i,newURL:s}))},Rc=(t,e={})=>{window.history.state?.from?window.history.back():jn(t,e)},xC=()=>{const{display_url:t,_siteURL:e}=te(_t);window.open(t||e||"/","_blank")};var oq=F('<img alt="" class="logo svelte-4zxkou">'),aq=F('<div role="alert" class="message"> </div>'),lq=F('<div role="alert" class="message"> </div>'),cq=F('<div role="alert" class="message"> </div>'),uq=F('<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-4zxkou"><!></div></div>'),dq=F('<div role="alert" class="message"> </div>'),fq=F('<div role="alert" class="message"> </div> <!>',1),hq=F('<div role="none" class="container svelte-4zxkou"><div role="none" class="inner svelte-4zxkou"><!> <h1 class="svelte-4zxkou">Sveltia CMS</h1> <!></div></div>');const pq={hash:"svelte-4zxkou",code:".container.svelte-4zxkou {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;transition:filter 250ms;}.container[inert].svelte-4zxkou {filter:opacity(0);}.container.svelte-4zxkou .inner:where(.svelte-4zxkou) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.container.svelte-4zxkou .logo:where(.svelte-4zxkou) {max-width:160px;height:auto;}.container.svelte-4zxkou h1:where(.svelte-4zxkou) {font-size:48px;}.container.svelte-4zxkou .logo:where(.svelte-4zxkou) ~ h1:where(.svelte-4zxkou) {font-size:var(--sui-font-size-xxx-large);}.container.svelte-4zxkou .message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;}.container.svelte-4zxkou .error:where(.svelte-4zxkou) {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;text-align:center;}"};function gq(t,e){se(e,!0),Te(t,pq);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(ui,"$user",n),o=()=>z($c,"$dataLoaded",n),a=()=>z(_t,"$siteConfig",n),c=()=>z(z_,"$siteConfigError",n),u=()=>z(Rb,"$prefsError",n),d=()=>z(St,"$prefs",n),h=()=>z(Pd,"$signInError",n),f=()=>z(CS,"$inAuthPopup",n),p=()=>z(Ka,"$unauthenticated",n),g=()=>z(Va,"$dataLoadedProgress",n);Be(()=>{ot($s,i()("welcome_to_sveltia_cms"))});var m=hq(),b=R(m),_=R(b);{var v=S=>{var C=oq();const E=x(()=>a()?.logo_url);H(A=>Se(C,"src",A),[()=>l(E)||`data:image/svg+xml;base64,${btoa(oS)}`]),T(S,C)};U(_,S=>{(a()||c())&&S(v)})}var y=D(_,4);{var w=S=>{var C=aq(),E=R(C);H(A=>Z(E,`${c().message??""}
|
|
562
|
-
${A??""}`),[()=>i()("config.error.try_again")]),T(S,C)},k=S=>{var C=V(),E=M(C);{var A=$=>{var N=lq(),I=R(N);H(j=>Z(I,j),[()=>i()(`prefs.error.${u().type}`)]),T($,N)},O=$=>{var N=V(),I=M(N);{var j=B=>{var W=cq(),G=R(W);H(J=>Z(G,J),[()=>i()("loading_site_config")]),T(B,W)},q=B=>{var W=V(),G=M(W);{var J=K=>{var Y=uq(),re=R(Y),ce=R(re),he=D(re,2),Q=R(he);ur(Q,()=>oi.sanitize(At.parseInline(h().message),{ALLOWED_TAGS:["a","code"],ALLOWED_ATTR:["href"]})),H(X=>Z(ce,X),[()=>i()("loading_site_data_error")]),T(K,Y)},ne=K=>{var Y=V(),re=M(Y);{var ce=Q=>{var X=dq(),de=R(X);H(_e=>Z(de,_e),[()=>i()("authorizing")]),T(Q,X)},he=Q=>{var X=V(),de=M(X);{var _e=be=>{rq(be,{})},ve=be=>{var fe=V(),Oe=M(fe);{var Ae=De=>{var He=fq(),Ve=M(He),mt=R(Ve),et=D(Ve,2);{var ye=we=>{H$(we,{get now(){return g()}})};U(et,we=>{g()!==void 0&&we(ye)})}H(we=>Z(mt,we),[()=>i()("loading_site_data")]),T(De,He)};U(Oe,De=>{o()||De(Ae)},!0)}T(be,fe)};U(de,be=>{!s()||p()?be(_e):be(ve,!1)},!0)}T(Q,X)};U(re,Q=>{f()?Q(ce):Q(he,!1)},!0)}T(K,Y)};U(G,K=>{h().message&&!h().canRetry?K(J):K(ne,!1)},!0)}T(B,W)};U(I,B=>{!a()||!d()?B(j):B(q,!1)},!0)}T($,N)};U(E,$=>{u()?$(A):$(O,!1)},!0)}T(S,C)};U(y,S=>{c()?S(w):S(k,!1)})}H(()=>m.inert=s()&&o()),T(t,m),oe(),r()}var mq=F('<div role="alert"> <!></div>');const vq={hash:"svelte-1tew8xu",code:".wrapper.svelte-1tew8xu {flex:none;display:flex;align-items:center;justify-content:center;gap:8px;height:32px;text-align:center;border-bottom:1px solid transparent;font-size:var(--sui-font-size-small);}.wrapper.minor.svelte-1tew8xu {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.wrapper.major.svelte-1tew8xu {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.wrapper.svelte-1tew8xu button {font-size:inherit !important;}"};function bq(t,e){se(e,!0),Te(t,vq);const[n,r]=me(),i=()=>z(Pn,"$backend",n),s=()=>z(_t,"$siteConfig",n),o=()=>z(le,"$_",n),a=5*60*1e3;let c=0,u=ae(!1),d=ae("none");const h=async()=>{i()?.checkStatus&&L(d,ie(await i().checkStatus()))},f=()=>{h(),c=window.setInterval(()=>{h()},a)},p=()=>{window.clearInterval(c),L(d,"none")},g=()=>{l(u)&&(i()?.checkStatus&&!s()?.backend.api_root?f():p())};on(()=>(L(u,!0),()=>{p()})),Be(()=>{l(u),i(),s(),g()});var m=V(),b=M(m);{var _=v=>{var y=mq(),w=R(y),k=D(w);const S=x(()=>o()("details"));Xe(k,{variant:"link",get label(){return l(S)},onclick:()=>{window.open(i()?.statusDashboardURL,"_blank")}}),H(C=>{Ir(y,`wrapper ${l(d)??""} svelte-1tew8xu`),Z(w,`${C??""} `)},[()=>o()(`backend_status.${l(d)}_incident`,{values:{service:i()?.label}})]),T(v,y)};U(b,v=>{["minor","major"].includes(l(d))&&v(_)})}T(t,m),oe(),r()}const ty="0.58.3";var _q=F('<div role="alert" class="wrapper svelte-103hdap"> <!></div>');const yq={hash:"svelte-103hdap",code:".wrapper.svelte-103hdap {flex:none;display:flex;align-items:center;justify-content:center;gap:8px;height:32px;text-align:center;border-bottom:1px solid var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}.wrapper.svelte-103hdap button {font-size:inherit !important;}"};function wq(t,e){se(e,!0),Te(t,yq);const[n,r]=me(),i=()=>z(le,"$_",n),s=60*60*1e3,o=10*60*1e3;let a=0,c=0,u=ae(!1);const d=async()=>{try{const g=await fetch("https://unpkg.com/@sveltia/cms/package.json");if(!g.ok)return;const{version:m}=await g.json();m&&m!==ty&&(c=window.setTimeout(()=>{L(u,!0)},o))}catch{}};on(()=>{if(document.querySelector('script[src^="https://unpkg.com/@sveltia/cms"]'))return d(),a=window.setInterval(()=>{d()},s),()=>{window.clearInterval(a),window.clearTimeout(c)}});var h=V(),f=M(h);{var p=g=>{var m=_q(),b=R(m),_=D(b);const v=x(()=>i()("update_now"));Xe(_,{variant:"link",get label(){return l(v)},onclick:()=>{window.location.reload()}}),H(y=>Z(b,`${y??""} `),[()=>i()("update_available")]),T(g,m)};U(f,g=>{l(u)&&g(p)})}T(t,h),oe(),r()}var xq=F('<div role="none" class="empty svelte-17yv21"><!></div>');const kq={hash:"svelte-17yv21",code:".empty.svelte-17yv21 {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}"};function qr(t,e){Te(t,kq);let n=P(e,"children",3,void 0);var r=xq(),i=R(r);Re(i,()=>n()??Fe),T(t,r)}var Sq=F("<img>"),Eq=F("<video></video>",2),Tq=F("<audio></audio>"),Cq=F('<video playsinline="" class="svelte-1va4mre"></video>',2),Aq=F('<img alt="" class="svelte-1va4mre">'),Pq=F('<div role="none" class="blur svelte-1va4mre"><div role="none" class="overlay svelte-1va4mre"></div> <!></div>'),Oq=F('<div role="none"><!> <!></div>');const Lq={hash:"svelte-1va4mre",code:".preview.svelte-1va4mre {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}.preview.tile.svelte-1va4mre {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);}.preview.tile.svelte-1va4mre .sui.icon {font-size:48px;}.preview.icon.svelte-1va4mre {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}.preview.tile.svelte-1va4mre, .preview.icon.svelte-1va4mre {overflow:hidden;aspect-ratio:1/1;}.preview.svelte-1va4mre .blur:where(.svelte-1va4mre) {display:contents;}.preview.svelte-1va4mre .blur:where(.svelte-1va4mre) > :where(.svelte-1va4mre) {position:absolute;inset:0;pointer-events:none;}.preview.svelte-1va4mre .blur:where(.svelte-1va4mre) .overlay {z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}.preview.svelte-1va4mre .blur:where(.svelte-1va4mre) :is(img, video) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);}.preview.cover.svelte-1va4mre {padding:0;}.preview.cover.svelte-1va4mre > :is(img, video) {flex:auto;}.preview.svelte-1va4mre > :is(img, video) {flex:0;max-width:100%;max-height:100%;}.preview.dissolve.svelte-1va4mre :is(img, video) {opacity:0;transition:opacity 250ms;}.preview.dissolve.loaded.svelte-1va4mre :is(img, video) {opacity:1;}.checkerboard.svelte-1va4mre img:where(.svelte-1va4mre) {background-image:linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);background-size:8px 8px;background-position:0 0, 4px 4px;}.svelte-1va4mre:not(.checkerboard) img:where(.svelte-1va4mre) {background-color:#e5e5e5;}:is(img, video) {object-fit:contain;}.svelte-1va4mre:is(img, video):not([src]) {visibility:hidden;}.cover.svelte-1va4mre :is(img, video) {object-fit:cover;aspect-ratio:1/1;}"};function Ns(t,e){se(e,!0),Te(t,Lq);let n=P(e,"loading",3,"lazy"),r=P(e,"asset",3,void 0),i=P(e,"src",15,void 0),s=P(e,"variant",3,void 0),o=P(e,"blurBackground",3,!1),a=P(e,"cover",3,!1),c=P(e,"checkerboard",3,!1),u=P(e,"dissolve",3,!0),d=P(e,"alt",3,""),h=P(e,"controls",3,!1),f=at(e,["$$slots","$$events","$$legacy","kind","loading","asset","src","variant","blurBackground","cover","checkerboard","dissolve","alt","controls"]),p=ae(void 0),g=ae(!1),m=ae(!1);const b=x(()=>!!r()&&!!s()),_=x(()=>l(b)||e.kind==="image"||r()?.name.endsWith(".pdf"));let v=!1;const y=async()=>{if(!(!r()||!l(p)||v)){v=!0,L(g,!1),n()==="lazy"&&await iu(l(p));try{i(l(b)?await YT(r()):await L_(r()))}catch{L(g,!0)}v=!1}},w=async()=>{!l(p)||!i()||((l(_)?!l(p).complete:!l(p).readyState)&&await new Promise($=>{l(p)?.addEventListener(l(_)?"load":"loadedmetadata",()=>{$(void 0)},{once:!0})}),u()&&await iu(l(p)),L(m,!0),r()&&l(b)&&i().startsWith("blob:")&&URL.revokeObjectURL(i()))};Be(()=>{l(p),r(),y()}),Be(()=>{l(p),i(),w()});var k=Oq(),S=R(k);{var C=$=>{nt($,{name:"draft"})},E=$=>{var N=V(),I=M(N);{var j=B=>{var W=Sq();let G;Tt(W,J=>L(p,J),()=>l(p)),H(()=>G=yt(W,G,{loading:n(),src:i(),alt:d(),...f},"svelte-1va4mre")),T(B,W)},q=B=>{var W=V(),G=M(W);{var J=K=>{var Y=Eq();let re;Tt(Y,ce=>L(p,ce),()=>l(p)),H(()=>re=yt(Y,re,{src:i(),controls:h()||void 0,playsinline:!0,...f},"svelte-1va4mre")),T(K,Y)},ne=K=>{var Y=V(),re=M(Y);{var ce=Q=>{var X=V(),de=M(X);{var _e=be=>{var fe=Tq();let Oe;Tt(fe,Ae=>L(p,Ae),()=>l(p)),H(()=>Oe=yt(fe,Oe,{src:i(),controls:!0,playsinline:!0,...f},"svelte-1va4mre")),T(be,fe)},ve=be=>{nt(be,{name:"audio_file"})};U(de,be=>{h()?be(_e):be(ve,!1)})}T(Q,X)},he=Q=>{nt(Q,{name:"draft"})};U(re,Q=>{e.kind==="audio"?Q(ce):Q(he,!1)},!0)}T(K,Y)};U(G,K=>{e.kind==="video"?K(J):K(ne,!1)},!0)}T(B,W)};U(I,B=>{l(_)?B(j):B(q,!1)},!0)}T($,N)};U(S,$=>{l(g)?$(C):$(E,!1)})}var A=D(S,2);{var O=$=>{var N=Pq(),I=D(R(N),2);{var j=B=>{var W=Cq();H(()=>Se(W,"src",i())),T(B,W)},q=B=>{var W=Aq();H(()=>{Se(W,"loading",n()),Se(W,"src",i())}),T(B,W)};U(I,B=>{e.kind==="video"?B(j):B(q,!1)})}T($,N)};U(A,$=>{o()&&$(O)})}H(()=>{Ir(k,`preview ${s()??""} svelte-1va4mre`),ft(k,"cover",a()),ft(k,"checkerboard",c()),ft(k,"dissolve",u()),ft(k,"loaded",l(m))}),T(t,k),oe()}const $q=/^(?:\d{4}-[01]\d-[0-3]\d)?(?:T?[0-2]\d:[0-5]\d)?(?::[0-5]\d)?(?:\.\d+)?(?:[+-][0-2]\d:[0-5]\d|Z)?$/,ny={year:"numeric",month:"short",day:"numeric"},ry={hour:"numeric",minute:"numeric",hour12:!0},kC=(t,e)=>{let n=()=>e?.().link,r=()=>e?.().collectionLabel,i=()=>e?.().entryLabel;var s=Iq(),o=R(s);Xe(o,{role:"link",variant:"link",onclick:()=>jn(n()),children:(a,c)=>{var u=Nq(),d=R(u);H(()=>Z(d,`${r()??""} › ${i()??""}`)),T(a,u)},$$slots:{default:!0}}),T(t,s)};var Nq=F('<span role="none"> </span>'),Iq=F("<p><!></p>"),Rq=F('<div role="none" class="preview svelte-1i169qh"><!></div>'),Dq=F('<section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section>'),Mq=F('<section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section>'),Fq=F('<a target="_blank"> </a>'),zq=F("<a> </a>"),jq=F('<section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section>'),Uq=F('<section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section>'),Bq=F("<p> </p>"),qq=F('<div role="none" class="detail svelte-1i169qh"><!> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section> <!> <!> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p><!></p></section> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p><!></p></section> <!> <!> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <!></section></div>');const Hq={hash:"svelte-1i169qh",code:".detail.svelte-1i169qh {flex:none;overflow-x:hidden;overflow-y:auto;padding:16px;width:320px;}.detail.svelte-1i169qh .preview:where(.svelte-1i169qh) {overflow:hidden;margin:0 0 16px;border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-content-background-color);aspect-ratio:1/1;}.detail.svelte-1i169qh section:where(.svelte-1i169qh) {margin:0 0 16px;}.detail.svelte-1i169qh section:where(.svelte-1i169qh) > * {margin:0 0 4px;word-break:break-all;}.detail.svelte-1i169qh h4:where(.svelte-1i169qh) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}"};function SC(t,e){se(e,!0),Te(t,Hq);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(Cn,"$appLocale",n);let o=P(e,"showPreview",3,!1),a=ae(ie({...qp}));const c=x(()=>e.asset.path),u=x(()=>e.asset.size),d=x(()=>e.asset.kind),h=x(()=>e.asset.commitAuthor),f=x(()=>e.asset.commitDate),p=x(()=>l(a).publicURL),g=x(()=>l(a).repoBlobURL),m=x(()=>l(a).dimensions),b=x(()=>l(a).duration),_=x(()=>l(a).usedEntries),v=x(()=>Tn(l(c))),y=x(()=>tt(l(v).extension,"")),w=x(()=>jp(l(d))||l(c).endsWith(".pdf")),k=async()=>{L(a,ie(e.asset?await Hp(e.asset):{...qp}))};Be(()=>{e.asset,k()});var S=qq(),C=R(S);{var E=ge=>{var Ce=Rq(),Ue=R(Ce);const Je=x(()=>l(d)==="image"),ut=x(()=>["audio","video"].includes(l(d)));Ns(Ue,{get kind(){return l(d)},get asset(){return e.asset},variant:"tile",get checkerboard(){return l(Je)},get controls(){return l(ut)}}),T(ge,Ce)};U(C,ge=>{o()&&l(w)&&ge(E)})}var A=D(C,2),O=R(A),$=R(O),N=D(O,2),I=R(N),j=D(A,2),q=R(j),B=R(q),W=D(q,2),G=R(W),J=D(j,2);{var ne=ge=>{var Ce=Dq(),Ue=R(Ce),Je=R(Ue),ut=D(Ue,2),lt=R(ut);H(Ke=>{Z(Je,Ke),Z(lt,l(m)?`${l(m).width}×${l(m).height}`:"–")},[()=>i()("dimensions")]),T(ge,Ce)};U(J,ge=>{l(w)&&ge(ne)})}var K=D(J,2);{var Y=ge=>{var Ce=Mq(),Ue=R(Ce),Je=R(Ue),ut=D(Ue,2),lt=R(ut);H((Ke,rt)=>{Z(Je,Ke),Z(lt,rt)},[()=>i()("duration"),()=>l(b)?$B(l(b)):"–"]),T(ge,Ce)};U(K,ge=>{["audio","video"].includes(l(d))&&ge(Y)})}var re=D(K,2),ce=R(re),he=R(ce),Q=D(ce,2),X=R(Q);{var de=ge=>{var Ce=Fq(),Ue=R(Ce);H(()=>{Se(Ce,"href",l(p)),Z(Ue,l(p))}),T(ge,Ce)},_e=ge=>{var Ce=We("–");T(ge,Ce)};U(X,ge=>{l(p)?ge(de):ge(_e,!1)})}var ve=D(re,2),be=R(ve),fe=R(be),Oe=D(be,2),Ae=R(Oe);{var De=ge=>{var Ce=zq(),Ue=R(Ce);H(()=>{Se(Ce,"href",l(g)),Z(Ue,`/${l(c)??""}`)}),T(ge,Ce)},He=ge=>{var Ce=We();H(()=>Z(Ce,`/${l(c)??""}`)),T(ge,Ce)};U(Ae,ge=>{l(g)?ge(De):ge(He,!1)})}var Ve=D(ve,2);{var mt=ge=>{var Ce=jq(),Ue=R(Ce),Je=R(Ue),ut=D(Ue,2),lt=R(ut);H(Ke=>{Z(Je,Ke),Z(lt,l(h).name||l(h).login||l(h).email)},[()=>i()("sort_keys.commit_author")]),T(ge,Ce)};U(Ve,ge=>{l(h)&&ge(mt)})}var et=D(Ve,2);{var ye=ge=>{var Ce=Uq(),Ue=R(Ce),Je=R(Ue),ut=D(Ue,2),lt=R(ut);H((Ke,rt)=>{Z(Je,Ke),Z(lt,rt)},[()=>i()("sort_keys.commit_date"),()=>l(f).toLocaleString(s()??void 0,{...ny,...ry})]),T(ge,Ce)};U(et,ge=>{l(f)&&ge(ye)})}var we=D(et,2),xe=R(we),ke=R(xe),Ne=D(xe,2);dt(Ne,17,()=>l(_),ge=>ge.sha,(ge,Ce)=>{var Ue=V(),Je=M(Ue);dt(Je,17,()=>ao(l(Ce)),ut=>ut.name,(ut,lt)=>{var Ke=V();const rt=x(()=>l(lt).label||l(lt).name);var Et=M(Ke);dt(Et,17,()=>Vo(l(lt),l(Ce)),Ht=>Ht.name,(Ht,mn)=>{kC(Ht,()=>({link:`/collections/${l(lt).name}/entries/${l(mn).name}`,collectionLabel:l(rt),entryLabel:l(mn).label||l(mn).name}))},Ht=>{var mn=Ge(()=>({link:`/collections/${l(lt).name}/entries/${l(Ce).subPath}`,collectionLabel:l(rt),entryLabel:Ho(l(lt),l(Ce),{useTemplate:!0})}));kC(Ht,()=>l(mn))}),T(ut,Ke)}),T(ge,Ue)},ge=>{var Ce=Bq(),Ue=R(Ce);H(Je=>Z(Ue,Je),[()=>i()("sort_keys.none")]),T(ge,Ce)}),H((ge,Ce,Ue,Je,ut,lt,Ke)=>{Z($,ge),Z(I,Ce),Z(B,Ue),Z(G,Je),Z(he,ut),Z(fe,lt),Z(ke,Ke)},[()=>i()("kind"),()=>i()(`file_type_labels.${l(y)}`,{default:Do.getType(l(c))??l(y).toUpperCase()}),()=>i()("size"),()=>s()?x_(l(u)):"",()=>i()("public_url"),()=>i()("file_path"),()=>i()("used_in")]),T(t,S),oe(),r()}var Vq=F("<!> <!> <!>",1),Wq=F("<!> <!>",1);function EC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"assets",19,()=>[]),o=ae(ie([])),a=ae(!1);const c=ie({show:!1,text:"",status:"success"}),u=x(()=>s().length===1),d=x(()=>l(o).filter(({publicURL:S})=>!!S).map(({publicURL:S})=>S));let h;const f=async()=>{if(h=void 0,!l(u))return!1;const S=await Ha(s()[0]);return h=S,Xc(S.type)?!0:S.type.startsWith("image/")?typeof navigator.clipboard.write=="function":!1},p=async()=>{await navigator.clipboard.writeText(l(d).join(`
|
|
561
|
+
`);if(a.push(...Object.values(c.project.repository).map(({lastCommit:u})=>u)),!o.length)break}return Object.fromEntries(t.map(({path:c,sha:u},d)=>{const{size:h,rawTextBlob:f}=s[d],p=a[d],g={sha:u,size:Number(h),text:f,meta:{}};if(p){const{author:m,authorName:b,authorEmail:_,committedDate:v}=p,{id:y,username:w}=m??{},k=y?.match(/\d+/);g.meta={commitAuthor:{name:b,email:_,id:k?Number(k[0]):void 0,login:w},committedDate:new Date(v)}}return[c,g]}))},M8={name:Ga,label:mC,repository:Os,statusDashboardURL:T8,checkStatus:A8,getRepositoryInfo:vC,init:P8,signIn:O8,signOut:L8,fetchFiles:async()=>{await $8(),await fC({repository:Os,fetchDefaultBranchName:N8,fetchLastCommit:I8,fetchFileList:R8,fetchFileContents:D8})},fetchBlob:async t=>{const{owner:e,repo:n,branch:r=""}=Os,{path:i}=t;return Td(`/projects/${encodeURIComponent(`${e}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?ref=${encodeURIComponent(r)}`,{},{responseType:"blob"})},commitChanges:async(t,e)=>{const{owner:n,repo:r,branch:i}=Os;return(await Td(`/projects/${encodeURIComponent(`${n}/${r}`)}/repository/commits`,{method:"POST",body:{branch:i,commit_message:QT(t,e),actions:await Promise.all(t.map(async({action:o,path:a,previousPath:c,data:u="",base64:d})=>({action:o,content:d??(typeof u!="string"?await Cw(u):u),encoding:d||typeof u!="string"?"base64":"text",file_path:a,previous_path:c})))}})).web_url}},bC="local",F8="Local Repository";let K_;const z8=new Proxy({},{get:(t,e)=>(K_??p8)[e]}),Y_=it(null),J_="root_dir_handle";let Kp;const j8=async({forceReload:t=!1,showPicker:e=!0}={})=>{if(!("showDirectoryPicker"in window))throw new Error("unsupported");let n=t?null:await Kp?.get(J_)??null;if(n)if(await n.requestPermission({mode:"readwrite"})!=="granted")n=null;else try{await n.entries().next()}catch(r){n=null,console.error(r)}return!n&&e&&(n=await window.showDirectoryPicker(),n&&(await n.getDirectoryHandle(".git"),await Kp?.set(J_,n))),n},U8=async()=>{await Kp?.delete(J_)},B8=()=>{const{name:t}=te(_t).backend;K_=Yp[t]?.getRepositoryInfo?.();const{databaseName:e}=K_??{};Kp=e?new Mo(e,"file-system-handles"):null},q8=async({auto:t=!1})=>{const e=await j8({showPicker:!t});if(e)Y_.set(e);else throw new Error("Directory handle could not be acquired");return{backendName:bC}},H8=async()=>{U8()},Ad=async t=>{let e=te(Y_);if(!t)return e;const n=In(t).split("/"),r=!0;for(const i of n)e=await(i.includes(".")?e.getFileHandle(i,{create:r}):e.getDirectoryHandle(i,{create:r}));return e},V8=async()=>{const t=te(Y_),e=[],n=ec([...te(D_).map(({filePathMap:o,folderPathMap:a})=>Object.values(o||(a??{}))).flat(1),...te(ci).map(({internalPath:o})=>o)].map(o=>In(o??""))),r=o=>new RegExp(`^${an(o)}\\b`),i=n.map(r),s=async o=>{for await(const[a,c]of o.entries()){if(a.startsWith("."))continue;const u=(await t?.resolve(c))?.join("/")??"",d=i.some(h=>h.test(u));if(c.kind==="file"){if(!d)continue;try{let h=await c.getFile();h=new File([h],h.name,{type:h.type,lastModified:h.lastModified}),e.push({file:h,path:u})}catch(h){console.error(h)}}if(c.kind==="directory"){const h=r(u);if(!d&&!n.some(f=>h.test(f)))continue;await s(c)}}};return await s(t),Promise.all(e.map(async({file:o,path:a})=>({file:o,path:a.normalize(),size:o.size,sha:await(async()=>{try{return await sa(o)}catch(c){console.error(c)}return""})()})))},Yp={github:E8,gitlab:M8,local:{name:bC,label:F8,repository:z8,init:B8,signIn:q8,signOut:H8,fetchFiles:async()=>{const{entryFiles:t,assetFiles:e}=G_(await V8());await Promise.all(t.map(async i=>{try{i.text=await IP(i.file)}catch(s){i.text="",console.error(s)}}));const{entries:n,errors:r}=await dC(t);ei.set(n),M_.set(r),Qt.set(eC(e)),$c.set(!0)},commitChanges:async t=>Promise.all(t.map(async({action:e,path:n,previousPath:r,data:i})=>{try{let s;if(e==="move"&&r){const{dirname:o,basename:a}=Tn(n);s=await Ad(r),o&&o!==Tn(r).dirname?await s.move(await Ad(o),a):await s.move(a)}if(["create","update","move"].includes(e)&&i){s??=await Ad(n);const o=await s.createWritable();try{await o.write(i)}catch{}finally{await o.close()}return s.getFile()}if(e==="delete"){const{dirname:o="",basename:a}=Tn(In(n));let c=await Ad(o);if(await c.removeEntry(a),!o)return null;const u=o.split("/");for(;;){const d=[];for await(const f of c.keys())d.push(f);if(d.length>1||!u.length)break;const h=u.pop();c=await Ad(u.join("/")),c.removeEntry(h)}}}catch(s){console.error(s)}return null}))}},Ls=it(),Pn=dr([Ls],([t],e,n)=>{n(r=>{const i=t?Yp[t]:void 0;return i&&i!==r&&i.init(),i})}),Jp=it(!0),Pd=it({message:"",canRetry:!1}),Ka=it(!0),Z_=t=>{let e=t.cause?.message||te(le)("unexpected_error"),n=!1;t.name==="NotFoundError"&&(e=te(le)("sign_in_error.not_project_root"),n=!0),t.name==="AbortError"&&(e=te(le)(te(Ls)==="local"?"sign_in_error.picker_dismissed":"sign_in_error.authentication_aborted"),n=!0),Pd.set({message:e,canRetry:n}),console.error(t.message,t.cause)},W8=async()=>{const t=await Jr.get("sveltia-cms.user")||await Jr.get("decap-cms-user")||await Jr.get("netlify-cms-user");let e=Gn(t)&&t.backendName?t:void 0;const n=e?.backendName?.replace("proxy","local")??te(_t)?.backend?.name;Ls.set(n);const r=te(Pn);if(e&&r)try{e=await r.signIn({token:e.token,auto:!0})}catch{e=void 0}if(Ka.set(!e),!(!e||!r)){ui.set(e);try{await r.fetchFiles(),Pd.set({message:"",canRetry:!1})}catch(i){[401,403,404].includes(i.cause?.status)?Ka.set(!0):Z_(i)}}},_C=async t=>{Ls.set(t);const e=te(Pn);if(!e)return;let n;try{n=await e.signIn({auto:!1})}catch(r){Ka.set(!0),Z_(r);return}if(Ka.set(!n),!!n){ui.set(n);try{await e.fetchFiles(),Pd.set({message:"",canRetry:!1})}catch(r){Z_(r)}}},G8=async()=>{await te(Pn)?.signOut(),await Jr.delete("sveltia-cms.user"),Ls.set(void 0),ui.set(void 0),Ka.set(!0),$c.set(!1)};var K8=F('<div role="alert" class="message"> </div>'),Y8=F('<div role="alert"> </div>'),J8=F('<div role="alert"><!></div>'),Z8=F('<div role="none"><!></div>'),X8=F("<!> <!>",1),Q8=F("<!> <!>",1),eq=F('<div role="alert"> </div>'),tq=F('<div role="none" class="buttons svelte-8a6wia"><!> <!></div>');const nq={hash:"svelte-8a6wia",code:".buttons.svelte-8a6wia {display:flex;flex-direction:column;align-items:center;gap:16px;}.buttons.svelte-8a6wia button {width:240px;}"};function rq(t,e){se(e,!0),Te(t,nq);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(Ka,"$unauthenticated",n),o=()=>z(le,"$_",n),a=()=>z(Pd,"$signInError",n);let c=ae(!1),u=ae(!1),d=ae(!1);const h=x(()=>i()?.backend?.name),f=x(()=>l(h)?Yp[l(h)]:null),p=x(()=>i()?.backend?.repo?.split("/")?.[1]);on(()=>{const{hostname:w}=window.location;L(c,ie(w==="127.0.0.1"||w==="localhost"||w.endsWith(".localhost"))),L(u,"showDirectoryPicker"in window),L(d,ie(navigator.userAgentData?.brands.some(({brand:k})=>k==="Brave")??!1)),W8()});var g=tq(),m=R(g);{var b=w=>{var k=K8(),S=R(k);H(C=>Z(S,C),[()=>o()("signing_in")]),T(w,k)},_=w=>{var k=V(),S=M(k);{var C=A=>{var O=Y8(),$=R(O);H(N=>Z($,N),[()=>o()("config.error.unsupported_backend",{values:{name:l(h)}})]),T(A,O)},E=A=>{var O=Q8(),$=M(O);const N=x(()=>o()("sign_in_with_x",{values:{service:l(f).label}}));Xe($,{variant:"primary",get label(){return l(N)},onclick:async()=>{await _C(l(h))}});var I=D($,2);{var j=q=>{var B=X8(),W=M(B);const G=x(()=>o()("work_with_local_repo")),J=x(()=>!l(u));Xe(W,{variant:"primary",get label(){return l(G)},get disabled(){return l(J)},onclick:async()=>{await _C("local")}});var ne=D(W,2);{var K=re=>{var ce=J8(),he=R(ce);{var Q=de=>{var ye=V(),ve=M(ye);ur(ve,()=>oi.sanitize(o()("local_backend.disabled").replace("<a>",'<a href="https://github.com/sveltia/sveltia-cms#enabling-local-development-in-brave" target="_blank">'),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target"]})),T(de,ye)},X=de=>{var ye=We();H(ve=>Z(ye,ve),[()=>o()("local_backend.unsupported_browser")]),T(de,ye)};U(he,de=>{l(d)?de(Q):de(X,!1)})}T(re,ce)},Y=re=>{var ce=V(),he=M(ce);{var Q=X=>{var de=Z8(),ye=R(de);{var ve=fe=>{var Oe=We();H(Ae=>Z(Oe,Ae),[()=>o()("work_with_local_repo_description",{values:{repo:l(p)}})]),T(fe,Oe)},be=fe=>{var Oe=We();H(Ae=>Z(Oe,Ae),[()=>o()("work_with_local_repo_description_no_repo")]),T(fe,Oe)};U(ye,fe=>{l(p)?fe(ve):fe(be,!1)})}T(X,de)};U(he,X=>{a().message||X(Q)},!0)}T(re,ce)};U(ne,re=>{l(u)?re(Y,!1):re(K)})}T(q,B)};U(I,q=>{l(c)&&q(j)})}T(A,O)};U(S,A=>{l(f)?A(E,!1):A(C)},!0)}T(w,k)};U(m,w=>{s()?w(_,!1):w(b)})}var v=D(m,2);{var y=w=>{var k=eq(),S=R(k);H(()=>Z(S,a().message)),T(w,k)};U(v,w=>{a().message&&a().canRetry&&w(y)})}T(t,g),oe(),r()}const st=it(),es=it(!0);st.subscribe(t=>{te(St).devModeEnabled&&console.info("entryDraft",t)});const Ya=it(!1),X_=it(!1),Od=it({show:!1,multiple:!1}),Q_=it({id:void 0,show:!1,status:"success",message:void 0,count:1,sourceLocale:void 0}),Ja=it(null),Yo=it(null),Ii=it(),Ic=it(),uo=t=>{st.update(e=>(e&&Object.entries(t).forEach(([n,r])=>{e.expanderStates._[n]!==r&&(e.expanderStates._[n]=r)}),e))},yC=({collectionName:t,fileName:e,valueMap:n,keyPath:r})=>{const i=new Set;return r.split(".").forEach((s,o,a)=>{const c=a.slice(0,o+1).join("."),u=gn({collectionName:t,fileName:e,valueMap:n,keyPath:c}),d=/\.\d+$/.test(c);if(u?.widget==="object")d&&i.add(c),i.add(`${c}#`);else if(u?.widget==="list")i.add(d?c:`${c}#`);else if(o>0){const h=a.slice(0,o).join("."),f=gn({collectionName:t,fileName:e,valueMap:n,keyPath:h});f?.widget==="object"&&f.fields&&i.add(`${h}.${f.name}#`),f?.widget==="list"&&f.field&&i.add(c)}}),[...i]},iq=({collectionName:t,fileName:e,currentValues:n})=>{const r={};Object.entries(te(st)?.validities??{}).forEach(([i,s])=>{Object.entries(s).forEach(([o,{valid:a}])=>{a||yC({collectionName:t,fileName:e,valueMap:n[i],keyPath:o}).forEach(c=>{r[c]=!0})})}),uo(r)},sq=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new Mo(e,"ui-settings"):null,r="entry-view",i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:"grid"},...await n?.get(r)??{}};Ii.set(i),Ic.set(i.selectAssetsView),Ii.subscribe(s=>{(async()=>{try{Dn(s,await n?.get(r))||await n?.set(r,s)}catch{}})()}),Ic.subscribe(s=>{if(!s||!Object.keys(s).length)return;const o=te(Ii)?.selectAssetsView??{};Dn(s,o)||Ii.update(a=>({...a,selectAssetsView:s}))})};Pn.subscribe(t=>{t&&!te(Ii)&&sq(t)});const wC=dr([Ya,Go],([t,e])=>t||e),ey=it(""),$s=it(""),Ld=(t=window.location)=>{const{pathname:e,searchParams:n}=new URL(`${t.origin}${t.hash.substring(1)}`);return{path:decodeURIComponent(e),params:Object.fromEntries(n)}},jn=(t,{state:e={},replaceState:n=!1,notifyChange:r=!0}={})=>{const i=window.location.hash,s=`#${t}`,o=[{...e,from:i},"",s];n?window.history.replaceState(...o):window.history.pushState(...o),r&&window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:i,newURL:s}))},Rc=(t,e={})=>{window.history.state?.from?window.history.back():jn(t,e)},xC=()=>{const{display_url:t,_siteURL:e}=te(_t);window.open(t||e||"/","_blank")};var oq=F('<img alt="" class="logo svelte-4zxkou">'),aq=F('<div role="alert" class="message"> </div>'),lq=F('<div role="alert" class="message"> </div>'),cq=F('<div role="alert" class="message"> </div>'),uq=F('<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-4zxkou"><!></div></div>'),dq=F('<div role="alert" class="message"> </div>'),fq=F('<div role="alert" class="message"> </div> <!>',1),hq=F('<div role="none" class="container svelte-4zxkou"><div role="none" class="inner svelte-4zxkou"><!> <h1 class="svelte-4zxkou">Sveltia CMS</h1> <!></div></div>');const pq={hash:"svelte-4zxkou",code:".container.svelte-4zxkou {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;transition:filter 250ms;}.container[inert].svelte-4zxkou {filter:opacity(0);}.container.svelte-4zxkou .inner:where(.svelte-4zxkou) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.container.svelte-4zxkou .logo:where(.svelte-4zxkou) {max-width:160px;height:auto;}.container.svelte-4zxkou h1:where(.svelte-4zxkou) {font-size:48px;}.container.svelte-4zxkou .logo:where(.svelte-4zxkou) ~ h1:where(.svelte-4zxkou) {font-size:var(--sui-font-size-xxx-large);}.container.svelte-4zxkou .message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;}.container.svelte-4zxkou .error:where(.svelte-4zxkou) {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;text-align:center;}"};function gq(t,e){se(e,!0),Te(t,pq);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(ui,"$user",n),o=()=>z($c,"$dataLoaded",n),a=()=>z(_t,"$siteConfig",n),c=()=>z(z_,"$siteConfigError",n),u=()=>z(Rb,"$prefsError",n),d=()=>z(St,"$prefs",n),h=()=>z(Pd,"$signInError",n),f=()=>z(CS,"$inAuthPopup",n),p=()=>z(Ka,"$unauthenticated",n),g=()=>z(Va,"$dataLoadedProgress",n);Be(()=>{ot($s,i()("welcome_to_sveltia_cms"))});var m=hq(),b=R(m),_=R(b);{var v=S=>{var C=oq();const E=x(()=>a()?.logo_url);H(A=>Se(C,"src",A),[()=>l(E)||`data:image/svg+xml;base64,${btoa(oS)}`]),T(S,C)};U(_,S=>{(a()||c())&&S(v)})}var y=D(_,4);{var w=S=>{var C=aq(),E=R(C);H(A=>Z(E,`${c().message??""}
|
|
562
|
+
${A??""}`),[()=>i()("config.error.try_again")]),T(S,C)},k=S=>{var C=V(),E=M(C);{var A=$=>{var N=lq(),I=R(N);H(j=>Z(I,j),[()=>i()(`prefs.error.${u().type}`)]),T($,N)},O=$=>{var N=V(),I=M(N);{var j=B=>{var W=cq(),G=R(W);H(J=>Z(G,J),[()=>i()("loading_site_config")]),T(B,W)},q=B=>{var W=V(),G=M(W);{var J=K=>{var Y=uq(),re=R(Y),ce=R(re),he=D(re,2),Q=R(he);ur(Q,()=>oi.sanitize(At.parseInline(h().message),{ALLOWED_TAGS:["a","code"],ALLOWED_ATTR:["href"]})),H(X=>Z(ce,X),[()=>i()("loading_site_data_error")]),T(K,Y)},ne=K=>{var Y=V(),re=M(Y);{var ce=Q=>{var X=dq(),de=R(X);H(ye=>Z(de,ye),[()=>i()("authorizing")]),T(Q,X)},he=Q=>{var X=V(),de=M(X);{var ye=be=>{rq(be,{})},ve=be=>{var fe=V(),Oe=M(fe);{var Ae=De=>{var He=fq(),Ve=M(He),mt=R(Ve),et=D(Ve,2);{var we=xe=>{H$(xe,{get now(){return g()}})};U(et,xe=>{g()!==void 0&&xe(we)})}H(xe=>Z(mt,xe),[()=>i()("loading_site_data")]),T(De,He)};U(Oe,De=>{o()||De(Ae)},!0)}T(be,fe)};U(de,be=>{!s()||p()?be(ye):be(ve,!1)},!0)}T(Q,X)};U(re,Q=>{f()?Q(ce):Q(he,!1)},!0)}T(K,Y)};U(G,K=>{h().message&&!h().canRetry?K(J):K(ne,!1)},!0)}T(B,W)};U(I,B=>{!a()||!d()?B(j):B(q,!1)},!0)}T($,N)};U(E,$=>{u()?$(A):$(O,!1)},!0)}T(S,C)};U(y,S=>{c()?S(w):S(k,!1)})}H(()=>m.inert=s()&&o()),T(t,m),oe(),r()}var mq=F('<div role="alert"> <!></div>');const vq={hash:"svelte-1tew8xu",code:".wrapper.svelte-1tew8xu {flex:none;display:flex;align-items:center;justify-content:center;gap:8px;height:32px;text-align:center;border-bottom:1px solid transparent;font-size:var(--sui-font-size-small);}.wrapper.minor.svelte-1tew8xu {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.wrapper.major.svelte-1tew8xu {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.wrapper.svelte-1tew8xu button {font-size:inherit !important;}"};function bq(t,e){se(e,!0),Te(t,vq);const[n,r]=me(),i=()=>z(Pn,"$backend",n),s=()=>z(_t,"$siteConfig",n),o=()=>z(le,"$_",n),a=5*60*1e3;let c=0,u=ae(!1),d=ae("none");const h=async()=>{i()?.checkStatus&&L(d,ie(await i().checkStatus()))},f=()=>{h(),c=window.setInterval(()=>{h()},a)},p=()=>{window.clearInterval(c),L(d,"none")},g=()=>{l(u)&&(i()?.checkStatus&&!s()?.backend.api_root?f():p())};on(()=>(L(u,!0),()=>{p()})),Be(()=>{l(u),i(),s(),g()});var m=V(),b=M(m);{var _=v=>{var y=mq(),w=R(y),k=D(w);const S=x(()=>o()("details"));Xe(k,{variant:"link",get label(){return l(S)},onclick:()=>{window.open(i()?.statusDashboardURL,"_blank")}}),H(C=>{Ir(y,`wrapper ${l(d)??""} svelte-1tew8xu`),Z(w,`${C??""} `)},[()=>o()(`backend_status.${l(d)}_incident`,{values:{service:i()?.label}})]),T(v,y)};U(b,v=>{["minor","major"].includes(l(d))&&v(_)})}T(t,m),oe(),r()}const ty="0.58.4";var _q=F('<div role="alert" class="wrapper svelte-103hdap"> <!></div>');const yq={hash:"svelte-103hdap",code:".wrapper.svelte-103hdap {flex:none;display:flex;align-items:center;justify-content:center;gap:8px;height:32px;text-align:center;border-bottom:1px solid var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}.wrapper.svelte-103hdap button {font-size:inherit !important;}"};function wq(t,e){se(e,!0),Te(t,yq);const[n,r]=me(),i=()=>z(le,"$_",n),s=60*60*1e3,o=10*60*1e3;let a=0,c=0,u=ae(!1);const d=async()=>{try{const g=await fetch("https://unpkg.com/@sveltia/cms/package.json");if(!g.ok)return;const{version:m}=await g.json();m&&m!==ty&&(c=window.setTimeout(()=>{L(u,!0)},o))}catch{}};on(()=>{if(document.querySelector('script[src^="https://unpkg.com/@sveltia/cms"]'))return d(),a=window.setInterval(()=>{d()},s),()=>{window.clearInterval(a),window.clearTimeout(c)}});var h=V(),f=M(h);{var p=g=>{var m=_q(),b=R(m),_=D(b);const v=x(()=>i()("update_now"));Xe(_,{variant:"link",get label(){return l(v)},onclick:()=>{window.location.reload()}}),H(y=>Z(b,`${y??""} `),[()=>i()("update_available")]),T(g,m)};U(f,g=>{l(u)&&g(p)})}T(t,h),oe(),r()}var xq=F('<div role="none" class="empty svelte-17yv21"><!></div>');const kq={hash:"svelte-17yv21",code:".empty.svelte-17yv21 {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}"};function qr(t,e){Te(t,kq);let n=P(e,"children",3,void 0);var r=xq(),i=R(r);Re(i,()=>n()??Fe),T(t,r)}var Sq=F("<img>"),Eq=F("<video></video>",2),Tq=F("<audio></audio>"),Cq=F('<video playsinline="" class="svelte-1va4mre"></video>',2),Aq=F('<img alt="" class="svelte-1va4mre">'),Pq=F('<div role="none" class="blur svelte-1va4mre"><div role="none" class="overlay svelte-1va4mre"></div> <!></div>'),Oq=F('<div role="none"><!> <!></div>');const Lq={hash:"svelte-1va4mre",code:".preview.svelte-1va4mre {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}.preview.tile.svelte-1va4mre {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);}.preview.tile.svelte-1va4mre .sui.icon {font-size:48px;}.preview.icon.svelte-1va4mre {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}.preview.tile.svelte-1va4mre, .preview.icon.svelte-1va4mre {overflow:hidden;aspect-ratio:1/1;}.preview.svelte-1va4mre .blur:where(.svelte-1va4mre) {display:contents;}.preview.svelte-1va4mre .blur:where(.svelte-1va4mre) > :where(.svelte-1va4mre) {position:absolute;inset:0;pointer-events:none;}.preview.svelte-1va4mre .blur:where(.svelte-1va4mre) .overlay {z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}.preview.svelte-1va4mre .blur:where(.svelte-1va4mre) :is(img, video) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);}.preview.cover.svelte-1va4mre {padding:0;}.preview.cover.svelte-1va4mre > :is(img, video) {flex:auto;}.preview.svelte-1va4mre > :is(img, video) {flex:0;max-width:100%;max-height:100%;}.preview.dissolve.svelte-1va4mre :is(img, video) {opacity:0;transition:opacity 250ms;}.preview.dissolve.loaded.svelte-1va4mre :is(img, video) {opacity:1;}.checkerboard.svelte-1va4mre img:where(.svelte-1va4mre) {background-image:linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);background-size:8px 8px;background-position:0 0, 4px 4px;}.svelte-1va4mre:not(.checkerboard) img:where(.svelte-1va4mre) {background-color:#e5e5e5;}:is(img, video) {object-fit:contain;}.svelte-1va4mre:is(img, video):not([src]) {visibility:hidden;}.cover.svelte-1va4mre :is(img, video) {object-fit:cover;aspect-ratio:1/1;}"};function Ns(t,e){se(e,!0),Te(t,Lq);let n=P(e,"loading",3,"lazy"),r=P(e,"asset",3,void 0),i=P(e,"src",15,void 0),s=P(e,"variant",3,void 0),o=P(e,"blurBackground",3,!1),a=P(e,"cover",3,!1),c=P(e,"checkerboard",3,!1),u=P(e,"dissolve",3,!0),d=P(e,"alt",3,""),h=P(e,"controls",3,!1),f=at(e,["$$slots","$$events","$$legacy","kind","loading","asset","src","variant","blurBackground","cover","checkerboard","dissolve","alt","controls"]),p=ae(void 0),g=ae(!1),m=ae(!1);const b=x(()=>!!r()&&!!s()),_=x(()=>l(b)||e.kind==="image"||r()?.name.endsWith(".pdf"));let v=!1;const y=async()=>{if(!(!r()||!l(p)||v)){v=!0,L(g,!1),n()==="lazy"&&await iu(l(p));try{i(l(b)?await YT(r()):await L_(r()))}catch{L(g,!0)}v=!1}},w=async()=>{!l(p)||!i()||((l(_)?!l(p).complete:!l(p).readyState)&&await new Promise($=>{l(p)?.addEventListener(l(_)?"load":"loadedmetadata",()=>{$(void 0)},{once:!0})}),u()&&await iu(l(p)),L(m,!0),r()&&l(b)&&i().startsWith("blob:")&&URL.revokeObjectURL(i()))};Be(()=>{l(p),r(),y()}),Be(()=>{l(p),i(),w()});var k=Oq(),S=R(k);{var C=$=>{nt($,{name:"draft"})},E=$=>{var N=V(),I=M(N);{var j=B=>{var W=Sq();let G;Tt(W,J=>L(p,J),()=>l(p)),H(()=>G=yt(W,G,{loading:n(),src:i(),alt:d(),...f},"svelte-1va4mre")),T(B,W)},q=B=>{var W=V(),G=M(W);{var J=K=>{var Y=Eq();let re;Tt(Y,ce=>L(p,ce),()=>l(p)),H(()=>re=yt(Y,re,{src:i(),controls:h()||void 0,playsinline:!0,...f},"svelte-1va4mre")),T(K,Y)},ne=K=>{var Y=V(),re=M(Y);{var ce=Q=>{var X=V(),de=M(X);{var ye=be=>{var fe=Tq();let Oe;Tt(fe,Ae=>L(p,Ae),()=>l(p)),H(()=>Oe=yt(fe,Oe,{src:i(),controls:!0,playsinline:!0,...f},"svelte-1va4mre")),T(be,fe)},ve=be=>{nt(be,{name:"audio_file"})};U(de,be=>{h()?be(ye):be(ve,!1)})}T(Q,X)},he=Q=>{nt(Q,{name:"draft"})};U(re,Q=>{e.kind==="audio"?Q(ce):Q(he,!1)},!0)}T(K,Y)};U(G,K=>{e.kind==="video"?K(J):K(ne,!1)},!0)}T(B,W)};U(I,B=>{l(_)?B(j):B(q,!1)},!0)}T($,N)};U(S,$=>{l(g)?$(C):$(E,!1)})}var A=D(S,2);{var O=$=>{var N=Pq(),I=D(R(N),2);{var j=B=>{var W=Cq();H(()=>Se(W,"src",i())),T(B,W)},q=B=>{var W=Aq();H(()=>{Se(W,"loading",n()),Se(W,"src",i())}),T(B,W)};U(I,B=>{e.kind==="video"?B(j):B(q,!1)})}T($,N)};U(A,$=>{o()&&$(O)})}H(()=>{Ir(k,`preview ${s()??""} svelte-1va4mre`),ft(k,"cover",a()),ft(k,"checkerboard",c()),ft(k,"dissolve",u()),ft(k,"loaded",l(m))}),T(t,k),oe()}const $q=/^(?:\d{4}-[01]\d-[0-3]\d)?(?:T?[0-2]\d:[0-5]\d)?(?::[0-5]\d)?(?:\.\d+)?(?:[+-][0-2]\d:[0-5]\d|Z)?$/,ny={year:"numeric",month:"short",day:"numeric"},ry={hour:"numeric",minute:"numeric",hour12:!0},kC=(t,e)=>{let n=()=>e?.().link,r=()=>e?.().collectionLabel,i=()=>e?.().entryLabel;var s=Iq(),o=R(s);Xe(o,{role:"link",variant:"link",onclick:()=>jn(n()),children:(a,c)=>{var u=Nq(),d=R(u);H(()=>Z(d,`${r()??""} › ${i()??""}`)),T(a,u)},$$slots:{default:!0}}),T(t,s)};var Nq=F('<span role="none"> </span>'),Iq=F("<p><!></p>"),Rq=F('<div role="none" class="preview svelte-1i169qh"><!></div>'),Dq=F('<section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section>'),Mq=F('<section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section>'),Fq=F('<a target="_blank"> </a>'),zq=F("<a> </a>"),jq=F('<section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section>'),Uq=F('<section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section>'),Bq=F("<p> </p>"),qq=F('<div role="none" class="detail svelte-1i169qh"><!> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p> </p></section> <!> <!> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p><!></p></section> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <p><!></p></section> <!> <!> <section class="svelte-1i169qh"><h4 class="svelte-1i169qh"> </h4> <!></section></div>');const Hq={hash:"svelte-1i169qh",code:".detail.svelte-1i169qh {flex:none;overflow-x:hidden;overflow-y:auto;padding:16px;width:320px;}.detail.svelte-1i169qh .preview:where(.svelte-1i169qh) {overflow:hidden;margin:0 0 16px;border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-content-background-color);aspect-ratio:1/1;}.detail.svelte-1i169qh section:where(.svelte-1i169qh) {margin:0 0 16px;}.detail.svelte-1i169qh section:where(.svelte-1i169qh) > * {margin:0 0 4px;word-break:break-all;}.detail.svelte-1i169qh h4:where(.svelte-1i169qh) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}"};function SC(t,e){se(e,!0),Te(t,Hq);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(Cn,"$appLocale",n);let o=P(e,"showPreview",3,!1),a=ae(ie({...qp}));const c=x(()=>e.asset.path),u=x(()=>e.asset.size),d=x(()=>e.asset.kind),h=x(()=>e.asset.commitAuthor),f=x(()=>e.asset.commitDate),p=x(()=>l(a).publicURL),g=x(()=>l(a).repoBlobURL),m=x(()=>l(a).dimensions),b=x(()=>l(a).duration),_=x(()=>l(a).usedEntries),v=x(()=>Tn(l(c))),y=x(()=>tt(l(v).extension,"")),w=x(()=>jp(l(d))||l(c).endsWith(".pdf")),k=async()=>{L(a,ie(e.asset?await Hp(e.asset):{...qp}))};Be(()=>{e.asset,k()});var S=qq(),C=R(S);{var E=ge=>{var Ce=Rq(),Ue=R(Ce);const Je=x(()=>l(d)==="image"),ut=x(()=>["audio","video"].includes(l(d)));Ns(Ue,{get kind(){return l(d)},get asset(){return e.asset},variant:"tile",get checkerboard(){return l(Je)},get controls(){return l(ut)}}),T(ge,Ce)};U(C,ge=>{o()&&l(w)&&ge(E)})}var A=D(C,2),O=R(A),$=R(O),N=D(O,2),I=R(N),j=D(A,2),q=R(j),B=R(q),W=D(q,2),G=R(W),J=D(j,2);{var ne=ge=>{var Ce=Dq(),Ue=R(Ce),Je=R(Ue),ut=D(Ue,2),lt=R(ut);H(Ke=>{Z(Je,Ke),Z(lt,l(m)?`${l(m).width}×${l(m).height}`:"–")},[()=>i()("dimensions")]),T(ge,Ce)};U(J,ge=>{l(w)&&ge(ne)})}var K=D(J,2);{var Y=ge=>{var Ce=Mq(),Ue=R(Ce),Je=R(Ue),ut=D(Ue,2),lt=R(ut);H((Ke,rt)=>{Z(Je,Ke),Z(lt,rt)},[()=>i()("duration"),()=>l(b)?$B(l(b)):"–"]),T(ge,Ce)};U(K,ge=>{["audio","video"].includes(l(d))&&ge(Y)})}var re=D(K,2),ce=R(re),he=R(ce),Q=D(ce,2),X=R(Q);{var de=ge=>{var Ce=Fq(),Ue=R(Ce);H(()=>{Se(Ce,"href",l(p)),Z(Ue,l(p))}),T(ge,Ce)},ye=ge=>{var Ce=We("–");T(ge,Ce)};U(X,ge=>{l(p)?ge(de):ge(ye,!1)})}var ve=D(re,2),be=R(ve),fe=R(be),Oe=D(be,2),Ae=R(Oe);{var De=ge=>{var Ce=zq(),Ue=R(Ce);H(()=>{Se(Ce,"href",l(g)),Z(Ue,`/${l(c)??""}`)}),T(ge,Ce)},He=ge=>{var Ce=We();H(()=>Z(Ce,`/${l(c)??""}`)),T(ge,Ce)};U(Ae,ge=>{l(g)?ge(De):ge(He,!1)})}var Ve=D(ve,2);{var mt=ge=>{var Ce=jq(),Ue=R(Ce),Je=R(Ue),ut=D(Ue,2),lt=R(ut);H(Ke=>{Z(Je,Ke),Z(lt,l(h).name||l(h).login||l(h).email)},[()=>i()("sort_keys.commit_author")]),T(ge,Ce)};U(Ve,ge=>{l(h)&&ge(mt)})}var et=D(Ve,2);{var we=ge=>{var Ce=Uq(),Ue=R(Ce),Je=R(Ue),ut=D(Ue,2),lt=R(ut);H((Ke,rt)=>{Z(Je,Ke),Z(lt,rt)},[()=>i()("sort_keys.commit_date"),()=>l(f).toLocaleString(s()??void 0,{...ny,...ry})]),T(ge,Ce)};U(et,ge=>{l(f)&&ge(we)})}var xe=D(et,2),_e=R(xe),ke=R(_e),Ne=D(_e,2);dt(Ne,17,()=>l(_),ge=>ge.sha,(ge,Ce)=>{var Ue=V(),Je=M(Ue);dt(Je,17,()=>ao(l(Ce)),ut=>ut.name,(ut,lt)=>{var Ke=V();const rt=x(()=>l(lt).label||l(lt).name);var Et=M(Ke);dt(Et,17,()=>Vo(l(lt),l(Ce)),Ht=>Ht.name,(Ht,mn)=>{kC(Ht,()=>({link:`/collections/${l(lt).name}/entries/${l(mn).name}`,collectionLabel:l(rt),entryLabel:l(mn).label||l(mn).name}))},Ht=>{var mn=Ge(()=>({link:`/collections/${l(lt).name}/entries/${l(Ce).subPath}`,collectionLabel:l(rt),entryLabel:Ho(l(lt),l(Ce),{useTemplate:!0})}));kC(Ht,()=>l(mn))}),T(ut,Ke)}),T(ge,Ue)},ge=>{var Ce=Bq(),Ue=R(Ce);H(Je=>Z(Ue,Je),[()=>i()("sort_keys.none")]),T(ge,Ce)}),H((ge,Ce,Ue,Je,ut,lt,Ke)=>{Z($,ge),Z(I,Ce),Z(B,Ue),Z(G,Je),Z(he,ut),Z(fe,lt),Z(ke,Ke)},[()=>i()("kind"),()=>i()(`file_type_labels.${l(y)}`,{default:Do.getType(l(c))??l(y).toUpperCase()}),()=>i()("size"),()=>s()?x_(l(u)):"",()=>i()("public_url"),()=>i()("file_path"),()=>i()("used_in")]),T(t,S),oe(),r()}var Vq=F("<!> <!> <!>",1),Wq=F("<!> <!>",1);function EC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"assets",19,()=>[]),o=ae(ie([])),a=ae(!1);const c=ie({show:!1,text:"",status:"success"}),u=x(()=>s().length===1),d=x(()=>l(o).filter(({publicURL:S})=>!!S).map(({publicURL:S})=>S));let h;const f=async()=>{if(h=void 0,!l(u))return!1;const S=await Ha(s()[0]);return h=S,Xc(S.type)?!0:S.type.startsWith("image/")?typeof navigator.clipboard.write=="function":!1},p=async()=>{await navigator.clipboard.writeText(l(d).join(`
|
|
563
563
|
`))},g=async()=>{await navigator.clipboard.writeText(s().map(({path:S})=>`/${S}`).join(`
|
|
564
564
|
`))},m=async()=>{let S=h;if(Xc(S.type)){await navigator.clipboard.writeText(await S.text());return}if(!S.type.startsWith("image/"))throw new Error("Unsupported type");S.type!=="image/png"&&(S=await VT(S)),await navigator.clipboard.write([new ClipboardItem({"image/png":S})])},b=async(S,C,E)=>{try{await S(),c.status="success",c.text=l(u)?C:E}catch{c.status="error",c.text=i()("clipboard_error")}finally{c.show=!0}};Be(()=>{(async()=>(L(o,ie(await Promise.all(s().map(Hp)))),L(a,ie(await f()))))()});var _=Wq(),v=M(_);const y=x(()=>!s().length),w=x(()=>i()("copy"));kr(v,{variant:"ghost",get disabled(){return l(y)},get label(){return l(w)},popupPosition:"bottom-right",popup:C=>{const E=x(()=>i()("copy_options"));hr(C,{get"aria-label"(){return l(E)},children:(A,O)=>{var $=Vq(),N=M($);const I=x(()=>l(u)?i()("public_url"):i()("public_urls")),j=x(()=>!l(d).length);$t(N,{get label(){return l(I)},get disabled(){return l(j)},onclick:()=>{b(p,i()("asset_url_copied"),i()("asset_urls_copied"))}});var q=D(N,2);const B=x(()=>l(u)?i()("file_path"):i()("file_paths"));$t(q,{get label(){return l(B)},onclick:()=>{b(g,i()("asset_path_copied"),i()("asset_paths_copied"))}});var W=D(q,2);const G=x(()=>i()("file_data")),J=x(()=>!l(a));$t(W,{get label(){return l(G)},get disabled(){return l(J)},onclick:()=>{b(m,i()("asset_data_copied"),i()("asset_data_copied"))}}),T(A,$)},$$slots:{default:!0}})},$$slots:{popup:!0}});var k=D(v,2);Hn(k,{get show(){return c.show},set show(S){c.show=S},children:(S,C)=>{qn(S,{get status(){return c.status},children:(E,A)=>{var O=We();H(()=>Z(O,c.text)),T(E,O)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,_),oe(),r()}const Za={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},$d=it({...Za}),TC=async(t,e=[])=>{const n=te(ei),r=t.map(i=>{const{locales:s,slug:o}=n.find(a=>a.id===i)??{};if(s)return Object.values(s).map(({path:a})=>({action:"delete",slug:o,path:a}))}).flat(1).filter((i,s,o)=>i&&o.findIndex(a=>a?.path===i.path)===s);e.length&&r.push(...e.map(i=>({action:"delete",path:i}))),await te(Pn)?.commitChanges(r,{commitType:"delete",collection:te(zn)}),ei.set(n.filter(i=>!t.includes(i.id))),$d.set({...Za,deleted:!0,count:t.length}),e.length&&Qt.update(i=>i.filter(s=>!e.includes(s.path)))},Gq=({fieldConfig:t,keyPath:e})=>{const n={},{default:r,output_code_only:i=!1,keys:s={code:"code",lang:"lang"}}=t;if(i)n[e]=typeof r=="string"?r:"";else{const o=Gn(r)?r:void 0,a=o?o[s.code]:r,c=o?o[s.lang]:"";n[e]={},n[`${e}.${s.code}`]=typeof a=="string"?a:"",n[`${e}.${s.lang}`]=typeof c=="string"?c:""}return n},CC=(t,e)=>{const{default:n}=t;return typeof n!="string"?n:n.replaceAll(/{{(.+?)}}/g,(r,i)=>i==="locale"?e:i==="datetime"?new Date().toJSON().replace(/\d+\.\d+Z$/,"00.000Z"):i==="uuid"?Jn():i==="uuid_short"?Jn("short"):i==="uuid_shorter"?Jn("shorter"):"")},Kq=t=>{const{default:e,required:n=!0}=t;return e&&Gn(e)?e:n?{"":""}:{}},iy=({entryDraft:t,keyPath:e,locale:n})=>Object.entries(te(t).currentValues[n]??{}).filter(([r])=>r.startsWith(`${e}.`)).map(([r,i])=>[r.replace(`${e}.`,""),i]),Yq=({pairs:t,edited:e})=>t.map(([n],r,i)=>{if(!n.trim()&&e[r])return"empty";if(n.trim()&&i.findIndex(s=>s[0]===n)!==r)return"duplicate"}),Jq=({entryDraft:t,keyPath:e,locale:n,fieldConfig:r,pairs:i})=>{const{i18n:s}=r;es.set(!1),t.update(o=>(o&&Object.entries(o.currentValues).forEach(([a,c])=>{(a===n||s==="duplicate")&&(Object.entries(c).forEach(([u])=>{u.startsWith(`${e}.`)&&delete c[u]}),i.forEach(([u,d])=>{c[`${e}.${u}`]=d}))}),o)),es.set(!0)},AC=t=>{const{prefix:e,use_b32_encoding:n}=t,r=n?Ig():Jn();return e?`${e}${r}`:r},Zq=({fieldConfig:t,keyPath:e,newContent:n,value:r})=>{const{widget:i="string"}=t,s=()=>{n[e]=[],r.split(/,\s*/).forEach((o,a)=>{n[`${e}.${a}`]=o})};if(i==="boolean"){n[e]=r==="true";return}if(i==="list"){const{field:o,fields:a,types:c}=t;if(!(!!o||!!a||!!c)){s();return}}if(i==="markdown"){n[e]=OP(r);return}if(i==="number"){const{value_type:o="int"}=t;if(o==="int"||o==="float"){const a=o==="int"?Number.parseInt(r,10):Number.parseFloat(r);Number.isNaN(a)||(n[e]=a)}else n[e]=r;return}if(i==="relation"||i==="select"){const{multiple:o=!1}=t;if(o){s();return}}n[e]=r},Zp=(t,e,n={})=>{const r={},i=({fieldConfig:s,keyPath:o})=>{if(o in n){Zq({fieldConfig:s,keyPath:o,newContent:r,value:n[o]});return}const{widget:a="string",default:c}=s,u=xd({fieldConfig:s,locale:e}),d=Array.isArray(c)&&!!c.length;if(a==="list"){const{fields:h}=s;if(!d){r[o]=[];return}if(h){c.forEach((f,p)=>{Object.entries(f).forEach(([g,m])=>{r[[o,p,g].join(".")]=m})});return}c.forEach((f,p)=>{r[[o,p].join(".")]=f});return}if(a==="object"){const{fields:h,types:f}=s;!u||Array.isArray(f)?r[o]=null:h?.forEach(p=>{i({keyPath:[o,p.name].join("."),fieldConfig:p})});return}if(a==="boolean"){r[o]=typeof c=="boolean"?c:!1;return}if(a==="code"){Object.assign(r,Gq({fieldConfig:s,keyPath:o}));return}if(a==="relation"||a==="select"){const{multiple:h=!1}=s;if(h){d?c.forEach((f,p)=>{r[[o,p].join(".")]=f}):r[o]=[];return}}if(a==="datetime"){r[o]=hB(s);return}if(a==="hidden"){r[o]=CC(s,e);return}if(a==="keyvalue"){Object.entries(Kq(s)).forEach(([h,f])=>{r[`${o}.${h}`]=String(f)});return}r[o]=c!==void 0?c:""};return t.forEach(s=>{i({keyPath:s.name,fieldConfig:s})}),r},sy=({draft:{collectionName:t,fileName:e},locale:n,target:r={},getValueMap:i=void 0})=>{const s=Ni(t),o=e?s?._fileMap[e]:void 0;if(!s||e&&!o)return;const{defaultLocale:a,canonicalSlug:{key:c}}=(o??s)._i18n;return new Proxy(r,{set:(u,d,h)=>{if(u[d]!==h&&(u[d]=h),[c].includes(d))return!0;const f=typeof i=="function"?i():u,p=gn({collectionName:t,fileName:e,valueMap:f,keyPath:d});if(!p)return!0;const g=te(st)?.validities?.[n]?.[d];return g&&typeof h=="string"&&xd({fieldConfig:p,locale:n})&&(g.valueMissing=!h),te(es)&&p.i18n==="duplicate"&&n===a&&Object.entries(te(st).currentValues).forEach(([m,b])=>{if(d.includes(".")){const{path:_}=d.match(/(?<path>.+?)\.[^.]*$/)?.groups??{};if(!Object.keys(b).some(v=>v.startsWith(`${_}.`))&&!gn({collectionName:t,fileName:e,valueMap:f,keyPath:_}))return}m!==n&&b[d]!==h&&(b[d]=h)}),!0}})},Nd=({collection:t,collectionFile:e,originalEntry:n={},dynamicValues:r,expanderStates:i})=>{const s=t.name,o=e?.name,{id:a,slug:c,locales:u}=n,d=a===void 0,{fields:h=[],_i18n:f}=e??t,{allLocales:p,initialLocales:g}=f,m=d?g:p.filter(v=>!!u?.[v]?.content),b=Object.fromEntries(p.map(v=>[v,m.includes(v)])),_=Object.fromEntries(m.map(v=>d?[v,Zp(h,v,r)]:[v,structuredClone(u?.[v].content)]));st.set({isNew:d&&!o,collectionName:s,collection:t,fileName:o,collectionFile:e,originalEntry:d?void 0:n,originalLocales:b,currentLocales:structuredClone(b),originalValues:_,currentValues:Object.fromEntries(m.map(v=>[v,sy({draft:{collectionName:s,fileName:o},locale:v,target:structuredClone(_[v])})])),files:{},validities:Object.fromEntries(p.map(v=>[v,{}])),expanderStates:i??{_:{}}}),e5({collectionName:s,fileName:o,slug:c})},Xq=()=>{const t=te(st),{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:s,validities:o}=t,{defaultLocale:a}=(i??r)._i18n,{canonicalSlug:{key:c}}=(i??r)._i18n;Object.entries(s).forEach(([u,d])=>{delete d[c],Object.keys(d).forEach(h=>{const f=gn({collectionName:e,fileName:n,valueMap:d,keyPath:h});f?.widget==="uuid"&&(u===a||[!0,"translate"].includes(f?.i18n??!1))&&(d[h]=AC(f)),f?.widget==="hidden"&&(u===a||[!0,"translate"].includes(f?.i18n??!1))&&(d[h]=CC(f,u))})}),Object.keys(o).forEach(u=>{o[u]={}}),st.set({...t,isNew:!0,originalEntry:void 0}),X_.set(!0)};let PC=0,Xa;const OC={saved:!1,restored:!1,deleted:!1},Xp=it({show:!1}),Jo=it({...OC}),Qp=async(t,e="")=>{await Xa?.delete([t,e])},oy=async(t,e="")=>{const n=await Xa?.get([t,e]);return n?n.siteConfigVersion===te(F_)?n:(await Qp(t,e),null):null},Qq=async t=>{const{collectionName:e,originalEntry:n,originalLocales:r={},currentLocales:i={},originalValues:s={},currentValues:o={},files:a}=t,c=n?.slug||"";if(!Dn(r,i)||!Dn(s,o)){const d={timestamp:new Date,siteConfigVersion:te(F_),collectionName:e,slug:c,currentLocales:i,currentValues:Ku(o),files:a};await Xa?.put(d)}else await oy(e,c)&&await Qp(e,c)},e5=async({collectionName:t,fileName:e,slug:n=""})=>{const r=await oy(t,n);if(!r)return;const{timestamp:i,currentLocales:s,currentValues:o,files:a}=r,c=await new Promise(u=>{Xp.set({show:!0,timestamp:i,resolve:u})});c!==void 0&&(c?(es.set(!1),st.update(u=>(u&&(u.currentLocales=s,Object.entries(o).forEach(([d,h])=>{Object.entries(h).forEach(([f,p])=>{typeof p=="string"&&[...p.matchAll(Tw("g"))].forEach(([g])=>{const m=a[g];if(m instanceof File){const b=URL.createObjectURL(m);h[f]=p.replaceAll(g,b),u.files[b]=m}})}),u.currentValues[d]?Object.assign(u.currentValues[d],h):u.currentValues[d]=sy({draft:{collectionName:t,fileName:e},locale:d,target:structuredClone(h)}),u.originalValues[d]||(u.originalValues[d]={})})),u)),es.set(!0)):await Qp(t,n),Jo.set({restored:c,deleted:!c,saved:!1}))},t5=async()=>{const t=te(st);if(!t||te(Jo).saved)return;const{collectionName:e,originalEntry:n}=t;await oy(e,n?.slug)&&Jo.set({restored:!1,deleted:!1,saved:!0})},n5=()=>{Jo.set({...OC})};Pn.subscribe(t=>{if(t&&!Xa){const{databaseName:e}=t.repository??{};if(e){Xa=new Mo(e,"draft-backups",{keyPath:["collectionName","slug"]});return}}Xa=null}),st.subscribe(t=>{globalThis.clearTimeout(PC),t&&Xa&&(PC=globalThis.setTimeout(()=>{Qq(t)},500))});const LC=(t,e)=>{const{minlength:n,maxlength:r}=t,i=Number.isInteger(n)&&n<=(r??1/0),s=Number.isInteger(r)&&(n??0)<=r,o=e?[...e.trim()].length:0,a=i&&o<n,c=s&&o>r;return{count:o,hasMin:i,hasMax:s,tooShort:a,tooLong:c,invalid:a||c}},r5=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuvy]*))?$/,i5=()=>{const{collection:t,collectionFile:e,fileName:n,currentLocales:r,currentValues:i,validities:s}=te(st),{i18nEnabled:o,defaultLocale:a}=(e??t)._i18n;let c=!0;return Object.entries(i).forEach(([u,d])=>{const h=Object.entries(d);if(!r[u]){s[u]=Object.fromEntries(h.map(([p])=>[p,{valid:!0}]));return}s[u]={};const f=(p,g)=>{const m=gn({collectionName:t.name,fileName:n,valueMap:d,keyPath:p});if(!m)return;const{widget:b="string",i18n:_=!1,pattern:v}=m,y=xd({fieldConfig:m,locale:u});if(u!==a&&(!o||_===!1||_==="none"||_==="duplicate"))return;if(!["select","relation"].includes(b)&&/\.\d+$/.test(p)){const q=p.replace(/\.\d+$/,"");if(q in s[u]||f(q,void 0),b==="list"){const{field:B,fields:W,types:G}=m;if(!B&&!W&&!G)return}}const{multiple:w=!1}=m,{min:k,max:S}=m;let C=!1,E=!1,A=!1,O=!1,$=!1,N=!1,I=!1;if(b==="list"){if(p in s[u])return;const q=new RegExp(`^${an(p)}\\.\\d+$`),B=Array.isArray(g)&&g.length?g:h.filter(([W])=>q.test(W)).map(([,W])=>W).filter(W=>W!==void 0)??[];y&&!B.length?C=!0:typeof k=="number"&&B.length<k?O=!0:typeof S=="number"&&B.length>S&&($=!0)}if(b==="object"&&y&&!g&&(C=!0),b==="keyvalue"){const q=p.match(/(.+?)(?:\.[^.]*)?$/)?.[1],B=gn({collectionName:t.name,fileName:n,valueMap:d,keyPath:q});if(q in s[u]||B?.widget!=="keyvalue")return;p=q;const G=iy({entryDraft:st,keyPath:q,locale:u});y&&!G.length?C=!0:typeof k=="number"&&G.length<k?O=!0:typeof S=="number"&&G.length>S&&($=!0)}if(!["object","list","hidden","compute","keyvalue"].includes(b)){if(b==="code"){const{output_code_only:q=!1,keys:B={code:"code",lang:"lang"}}=m,W=p.match(`(.+)\\.(?:${B.code}|${B.lang})$`)?.[1]??"";if(W&&(p=W),p in s[u])return;q||(g=d[`${p}.${B.code}`])}if(typeof g=="string"&&(g=g.trim()),y&&(g==null||g===""||w&&!g.length)&&(C=!0),Array.isArray(v)&&typeof v[0]=="string"){const{pattern:q,flags:B}=v[0].match(r5)?.groups??{},W=new RegExp(q,B);q&&!W.test(String(g))&&(N=!0)}if(["string","text"].includes(b)&&({tooShort:E,tooLong:A}=LC(m,g)),b==="string"&&g){const{type:q="text"}=m;if(q!=="text"){const B=document.createElement("input");B.type=q,B.value=g,{typeMismatch:I}=B.validity}q==="email"&&!I&&!g.split("@")[1]?.includes(".")&&(I=!0)}if(b==="number"){const{value_type:q="int"}=m;typeof k=="number"&&g!==null&&Number(g)<k?O=!0:typeof S=="number"&&g!==null&&Number(g)>S&&($=!0),(q==="int"||q==="float")&&y&&g===null&&(I=!0)}}const j=new Proxy({valueMissing:C,tooShort:E,tooLong:A,rangeUnderflow:O,rangeOverflow:$,patternMismatch:N,typeMismatch:I},{get:(q,B)=>B==="valid"?!Object.values(q).some(Boolean):q[B]});s[u][p]=j,j.valid||(c=!1)};h.forEach(([p,g])=>{f(p,g)})}),st.update(u=>({...u,validities:s})),c},$C=(t,e=te(_t)?.output?.json??{})=>{const{indent_style:n="space",indent_size:r=n==="tab"?1:2}=e;return JSON.stringify(t,null,n==="tab"?" ".repeat(r):r).trim()},NC=t=>u8(t).trim(),IC=(t,e=te(_t)?.output?.yaml??{},n={})=>{const{indent_size:r=2,quote:i="none"}=e,{quote:s=!1}=n;return cd.stringify(t,null,{indent:r,lineWidth:0,defaultKeyType:"PLAIN",defaultStringType:s||i==="double"?"QUOTE_DOUBLE":i==="single"?"QUOTE_SINGLE":"PLAIN",singleQuote:!(s||i==="double")}).trim()},RC=async({content:t,_file:e})=>{const{format:n,fmDelimiters:r,yamlQuote:i=!1}=e,s=hf[n]?.formatter;if(s)return`${(await s(t)).trim()}
|
|
565
565
|
`;try{if(/^ya?ml$/.test(n))return`${IC(t,void 0,{quote:i})}
|
|
@@ -581,12 +581,12 @@ ${c}
|
|
|
581
581
|
`}catch(u){console.error(u)}}return""},s5=t=>{const{collection:e}=t,{_i18n:{structure:n},_assetFolder:r}=e,i=e._type==="entry"?e._file.subPath:void 0,s=i?.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??"",o=["multiple_folders","multiple_folders_i18n_root"].includes(n),{entryRelative:a,internalPath:c,publicPath:u}=r??te(ci)[0];return a?{internalBaseAssetFolder:c,internalAssetFolder:S_(As(Mp([c,o||i?.includes("/")?s:void 0]),t)),publicAssetFolder:!o&&/^\.?$/.test(u)?u:S_(As(o?Mp([...Array((i?.match(/\//g)??[]).length+1).fill(".."),u,s]):u,t))}:{internalBaseAssetFolder:c,internalAssetFolder:As(c,t),publicAssetFolder:As(u,t)}},DC=({draft:t,locale:e,slug:n})=>{const{collection:r,collectionFile:i,originalEntry:s,currentValues:o}=t;if(i)return i.file.replace("{{locale}}",e);if(s?.locales[e])return s.locales[e].path;const a=r,{_file:{basePath:c,subPath:u,extension:d},_i18n:{defaultLocale:h,structure:f}}=a,p=u?As(u,{collection:a,locale:e,content:o[h],currentSlug:n}):n,g={multiple_folders:`${c}/${e}/${p}.${d}`,multiple_folders_i18n_root:`${e}/${c}/${p}.${d}`,multiple_files:`${c}/${p}.${e}.${d}`,single_file:`${c}/${p}.${d}`};return g[f]??g.single_file},eg=({field:t,keyPath:e,keyPathList:n})=>{const{widget:r}=t,i=r==="list";if(n.push(e),i||r==="object"){const{fields:s,types:o,typeKey:a="type"}=t;if(s)s.forEach(c=>{eg({field:c,keyPath:i?`${e}.*.${c.name}`:`${e}.${c.name}`,keyPathList:n})});else if(o)n.push(i?`${e}.*.${a}`:`${e}.${a}`),o.forEach(c=>{c.fields?.forEach(u=>{eg({field:u,keyPath:i?`${e}.*.${u.name}`:`${e}.${u.name}`,keyPathList:n})})});else if(i){const{field:c}=t;c?eg({field:c,keyPath:`${e}.*`,keyPathList:n}):n.push(`${e}.*`)}}if(r==="select"||r==="relation"){const{multiple:s=!1}=t;n.push(s?`${e}.*`:e)}},o5=t=>{const e=[];return t.forEach(n=>{eg({field:n,keyPath:n.name,keyPathList:e})}),e},Id=({key:t,field:e,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:s,omitEmptyOptionalFields:o})=>{let a=r[t];if(s&&typeof a=="string"&&$q.test(a)&&e?.widget==="datetime")try{a=new Wa(a)}catch{}o&&e&&!xd({fieldConfig:e,locale:n})&&!Object.keys(r).some(c=>c.startsWith(`${t}.`))&&(!a||Array.isArray(a)&&!a.length||Gn(a)&&!Object.keys(a).length)||(i[t]=a),delete r[t]},a5=({collectionName:t,fileName:e,fields:n,locale:r,valueMap:i,canonicalSlugKey:s,isTomlOutput:o=!1})=>{const a=Ku(i),c={},{omit_empty_optional_fields:u=!1}=te(_t)?.output??{},d={locale:r,unsortedMap:a,sortedMap:c,isTomlOutput:o,omitEmptyOptionalFields:u};return s&&s in a&&Id({key:s,...d}),o5(n).forEach(h=>{const f=gn({collectionName:t,fileName:e,valueMap:i,keyPath:h});if(h in a)Id({key:h,field:f,...d});else if(f?.widget==="keyvalue")c[h]={},Object.entries(a).filter(([p])=>p.startsWith(`${h}.`)).forEach(([p])=>{Id({key:p,field:f,...d})});else{const p=new RegExp(`^${an(h.replaceAll("*","\\d+")).replaceAll("\\\\d\\+","\\d+")}$`);Object.keys(a).filter(g=>p.test(g)).sort(([g,m])=>ii(g,m)).forEach(g=>{Id({key:g,field:f,...d})})}}),Object.keys(a).sort(([h,f])=>ii(h,f)).forEach(h=>{Id({key:h,...d})}),Fa(c)},ay=({draft:t,locale:e,valueMap:n})=>{const{collection:r,collectionFile:i}=t,{fields:s=[],_file:o,_i18n:{canonicalSlug:{key:a}}}=i??r,c=a5({collectionName:r.name,fileName:i?.name,fields:s,locale:e,valueMap:n,canonicalSlugKey:a,isTomlOutput:["toml","toml-frontmatter"].includes(o.format)});return tC(s)?c[s[0].name]??[]:c},l5=({draft:t,defaultLocaleSlug:e})=>{const{collection:n,currentLocales:r,collectionFile:i,currentValues:s}=t,{identifier_field:o="title",slug:a=`{{${o}}}`}=n,{_i18n:{defaultLocale:c,structure:u}}=i??n,d=[...a.matchAll(/{{(?:fields\.)?(.+?)( \| localize)?}}/g)].filter(([,,f])=>!!f).map(([,f])=>f);if(u==="single_file"||!d.length)return;const h=n;return Object.fromEntries(Object.entries(r).filter(([,f])=>f).map(([f])=>[f,f===c?e:As(a,{collection:h,locale:f,content:{...s[c],...Object.fromEntries(d.map(p=>[p,s[f][p]]))}})]))},c5=({draft:t,defaultLocaleSlug:e,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;const{collection:i,collectionFile:s}=t,{_i18n:{canonicalSlug:{value:o}}}=s??i;return o==="{{slug}}"?e:As(o,{...r,currentSlug:e})},MC=({draft:t})=>{const{collection:e,collectionFile:n,currentValues:r}=t,{_i18n:{defaultLocale:i}}=n??e;return{collection:e,content:r[i]}},FC=({draft:t})=>{const{collection:e,originalEntry:n,fileName:r}=t,{identifier_field:i="title",slug:s=`{{${i}}}`}=e,o=MC({draft:t}),a=r??n?.slug??As(s,o),c=l5({draft:t,defaultLocaleSlug:a}),u=c5({draft:t,defaultLocaleSlug:a,localizedSlugs:c,fillSlugOptions:o});return{defaultLocaleSlug:a,localizedSlugs:c,canonicalSlug:u}},u5=({draft:t,defaultLocaleSlug:e})=>{const{collection:n,collectionName:r,collectionFile:i}=t,s=MC({draft:t}),{_i18n:{defaultLocale:o}}=i??n,a=s5({...s,type:"media_folder",currentSlug:e,entryFilePath:DC({draft:t,locale:o,slug:e})}),{internalBaseAssetFolder:c,internalAssetFolder:u}=a,d=I_(u).map(g=>g.name.normalize()),{email:h,name:f}=te(ui);return{assetFolderPaths:a,assetNamesInSameFolder:d,savingAssetProps:{text:void 0,collectionName:r,folder:c,commitAuthor:h?{name:f,email:h}:void 0,commitDate:new Date}}},d5=async({blobURL:t,keyPath:e,content:n,changes:r,files:i,savingAssets:s,savingAssetProps:o,assetNamesInSameFolder:a,assetFolderPaths:{internalAssetFolder:c,publicAssetFolder:u}})=>{const d=i[t];if(!d)return;const h=await sa(d),f=s.find(m=>m.sha===h);let p="";if(f)p=f.name;else{p=k_(d.name.normalize(),a);const m=c?`${c}/${p}`:p;a.push(p),r.push({action:"create",path:m,data:d}),s.push({...o,blobURL:URL.createObjectURL(d),name:p,path:m,sha:h,size:d.size,kind:O_(p)})}const g=u?`${u==="/"?"":u}/${p}`:p;n[e]=n[e].replaceAll(t,g)},f5=async({draft:t,slugs:{defaultLocaleSlug:e,canonicalSlug:n,localizedSlugs:r}})=>{const{collection:i,currentLocales:s,collectionFile:o,currentValues:a,files:c}=t,{_i18n:{canonicalSlug:{key:u}}}=o??i,d=[],h=[],f={files:c,changes:d,savingAssets:h,...u5({draft:t,defaultLocaleSlug:e})};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(a).map(async([g,m])=>{const _=r?.[g]??e,v=DC({draft:t,locale:g,slug:_});return s[g]?(!m[u]&&n&&(m[u]=n),await Promise.all(Object.entries(m).map(async([y,w])=>{if(w===void 0){delete m[y];return}typeof w=="string"&&(m[y]=w.trim(),await Promise.all([...w.matchAll(Tw("g"))].map(([k])=>d5({blobURL:k,keyPath:y,content:m,...f}))))})),[g,{slug:_,path:v,sha:"",content:Ku(m)}]):[g,{path:v}]}))),changes:d,savingAssets:h}},zC=async({draft:t,slugs:e})=>{const{collection:n,isNew:r,originalLocales:i,currentLocales:s,originalEntry:o,collectionFile:a}=t,{defaultLocaleSlug:c}=e,{_file:u,_i18n:{i18nEnabled:d,allLocales:h,defaultLocale:f,structure:p}}=a??n,{localizedEntryMap:g,changes:m,savingAssets:b}=await f5({draft:t,slugs:e}),_={id:o?.id??Jn(),sha:"",slug:c,subPath:o?.subPath??(u.fullPathRegEx?g[f].path.match(u.fullPathRegEx)?.groups?.subPath??c:c),locales:Object.fromEntries(Object.entries(g).filter(([,{content:v}])=>!!v))};if(!d||p==="single_file"){const v=_.locales[f],{slug:y,path:w,content:k}=v,S=r?"create":"update",C=await RC({content:d?Object.fromEntries(Object.entries(_.locales).map(([E,A])=>[E,ay({draft:t,locale:E,valueMap:A.content})])):ay({draft:t,locale:"_default",valueMap:k}),_file:u});m.push({action:S,slug:y,path:w,data:C}),v.sha=await sa(new Blob([C],{type:"text/plain"}))}else await Promise.all(h.map(async v=>{const y=_.locales[v],{slug:w,path:k,content:S}=y??{};if(s[v]){const C=r||!i[v]?"create":"update",E=await RC({content:ay({draft:t,locale:v,valueMap:S}),_file:u});m.push({action:C,slug:w,path:k,data:E}),y.sha=await sa(new Blob([E],{type:"text/plain"}))}else i[v]&&m.push({action:"delete",slug:w,path:k});return!0}));return _.sha=_.locales[f].sha,{savingEntry:_,savingAssets:b,changes:m}},h5=async({skipCI:t=void 0}={})=>{const e=te(st),{collection:n,isNew:r,collectionName:i,fileName:s,currentValues:o}=e;if(!i5())throw iq({collectionName:i,fileName:s,currentValues:o}),new Error("validation_failed");const a=FC({draft:e}),{defaultLocaleSlug:c}=a,{savingEntry:u,changes:d,savingAssets:h}=await zC({draft:e,slugs:a});try{await te(Pn).commitChanges(d,{commitType:r?"create":"update",collection:n,skipCI:t})}catch(b){throw console.error(b.cause??b),new Error("saving_failed",{cause:b.cause??b})}const f=h.map(b=>b.path);ei.update(b=>[...b.filter(_=>_.id!==u.id),u]),Qt.update(b=>[...b.filter(_=>!f.includes(_.path)),...h]);const p=te(Ls)==="local",g=te(_t)?.backend.automatic_deployments,m=!p&&(t===void 0?g===!0:t===!1);return $d.set({...Za,saved:!0,published:m,count:1}),Jp.set(m),Qp(i,r?"":c),u},Zo=it({...Za}),jC=async(t,e)=>{const{files:n,folder:r,originalAsset:i}=t,s=r?I_(r).map(f=>f.name.normalize()):[],o=n.map(f=>{const p=i?.name??k_(f.name.normalize(),s);return s.includes(p)||s.push(p),{action:i?"update":"create",name:p,path:[r,p].join("/"),file:f}});await te(Pn)?.commitChanges(o.map(({action:f,path:p,file:g})=>({action:f,path:p,data:g})),e);const a=await Promise.all(o.map(async({name:f,path:p,file:g})=>({blobURL:URL.createObjectURL(g),name:f,path:p,sha:await sa(g),size:g.size,kind:O_(f),text:void 0,folder:r})));Qt.update(f=>[...f.filter(p=>!a.some(g=>g.path===p.path)),...a]);const c=te(lo),u=te(Ko);c&&lo.set(te(Qt).find(f=>f.path===c.path)),u&&Ko.set(te(Qt).find(f=>f.path===u.path));const d=te(Ls)==="local",h=te(_t)?.backend.automatic_deployments;Zo.set({...Za,saved:!0,published:!d&&h===!0,count:n.length})},p5=async(t,e)=>{const n=te(ci),r=[],i=[],s=[];await Promise.all(e.map(async({asset:h,path:f})=>{const p=f,g=Tn(p).basename;s.push({...h,path:p,name:g}),r.push({action:"move",path:p,previousPath:h.path,data:new File([h.file??await Ha(h)],g)});const m=h.blobURL??Bp(h),b=m?await T_(m):[];if(!m||!b.length)return;const{publicPath:_}=n.find(({collectionName:y})=>$_(h).some(w=>w.name===y))??n.find(({collectionName:y})=>!y)??{},v=await T_(m,{entries:structuredClone(b),newURL:p.replace(h.folder,_??"")});await Promise.all(v.map(async y=>{const{locales:w}=y,k=Object.fromEntries(Object.entries(w).map(([E])=>[E,!0])),S=Object.fromEntries(Object.entries(w).map(([E,{content:A}])=>[E,A])),C={isNew:!1,originalEntry:y,originalLocales:k,currentLocales:k,originalValues:S,currentValues:S,files:{},validities:{},expanderStates:{}};await Promise.all(ao(y).map(async E=>{const A=async $=>{const N={...C,collection:E,collectionName:E.name,collectionFile:$,fileName:$?.name},{savingEntry:I,changes:j}=await zC({draft:N,slugs:FC({draft:N})});i.push(I),r.push(...j)},O=Vo(E,y);O.length?await Promise.all(O.map(A)):await A()}))}))}));const o=await te(Pn)?.commitChanges(r,{commitType:"uploadMedia"});Array.isArray(o)&&s.forEach((h,f)=>{o[f]instanceof File&&(h.blobURL=URL.createObjectURL(o[f]))});const a=e.map(h=>h.asset.path),c=i.map(h=>h.id);Qt.update(h=>[...h.filter(f=>!a.includes(f.path)),...s]),ei.update(h=>[...h.filter(f=>!c.includes(f.id)),...i]);const u=e.find(h=>h.asset.path===te(lo)?.path),d=e.find(h=>h.asset.path===te(Ko)?.path);u&&lo.set(te(Qt).find(h=>h.path===u.path)),d&&Ko.set(te(Qt).find(h=>h.path===d.path)),Zo.set({...Za,moved:t==="move",renamed:t==="rename",count:e.length})},g5=async t=>{await te(Pn)?.commitChanges(t.map(({path:e})=>({action:"delete",path:e})),{commitType:"deleteMedia"}),Qt.update(e=>e.filter(n=>!t.includes(n))),Zo.set({...Za,deleted:!0,count:t.length})};var m5=F("<!> <!>",1);function UC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"assets",19,()=>[]),o=P(e,"buttonDescription",3,""),a=P(e,"dialogDescription",3,""),c=P(e,"onDelete",3,void 0),u=ae(!1);var d=m5(),h=M(d);const f=x(()=>!s().length),p=x(()=>i()("delete"));Xe(h,{variant:"ghost",get disabled(){return l(f)},get label(){return l(p)},get"aria-label"(){return o()},onclick:()=>{L(u,!0)}});var g=D(h,2);const m=x(()=>s().length===1?i()("delete_asset"):i()("delete_assets")),b=x(()=>i()("delete"));kl(g,{get title(){return l(m)},get okLabel(){return l(b)},onOk:()=>{g5(s()),c()?.()},get open(){return l(u)},set open(_){L(u,ie(_))},children:(_,v)=>{var y=We();H(()=>Z(y,a())),T(_,y)},$$slots:{default:!0}}),T(t,d),oe(),r()}var v5=F("<!> <!>",1);function BC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"assets",19,()=>[]),o=ae(!1);const a=async()=>{for(const p of s())DP(await Ha(p),p.name),await dn(300);L(o,!0)};var c=v5(),u=M(c);const d=x(()=>!s().length),h=x(()=>i()("download"));Xe(u,{variant:"ghost",get disabled(){return l(d)},get label(){return l(h)},onclick:()=>{a()}});var f=D(u,2);Hn(f,{get show(){return l(o)},set show(p){L(o,ie(p))},children:(p,g)=>{qn(p,{status:"success",children:(m,b)=>{var _=We();H(v=>Z(_,v),[()=>s().length===1?i()("asset_downloaded"):i()("assets_downloaded")]),T(m,_)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,c),oe(),r()}const Qa=it(!1),b5=dr([Ps],([t],e)=>{e(!!t.files.length)}),tg=t=>t==="*"?te(le)("all_assets"):t?te(_t)?.collections.find(({name:e})=>e===t)?.label??"":te(le)("uncategorized"),ly=t=>{const{media_folder:e}=te(_t);if(!t)return tg("*");if(t===e)return tg(void 0);const n=te(ci).find(({internalPath:r})=>r===t);return n?tg(n.collectionName):""},_5=(t,{key:e,order:n}={})=>{if(!e||!n)return t;const r=[...t],i={commit_author:String,commit_date:Date}[e]||r[0]?.[e]?.constructor||String,s=o=>{const{commitAuthor:{name:a,login:c,email:u}={},commitDate:d}=o;return e==="commit_author"?a||c||u:e==="commit_date"?d:e==="name"?o.name.split(".")[0]:o[e]??""};return r.sort((o,a)=>{const c=s(o),u=s(a);return i===String?ii(c,u):i===Date?Number(c)-Number(u):c-u}),n==="descending"&&r.reverse(),r},y5=(t,{field:e,pattern:n}={field:"",pattern:""})=>{if(!e)return t;if(e==="fileType")return t.filter(({path:i})=>n==="other"?!Object.values(C_).some(s=>s.test(i)):C_[n].test(i));const r=typeof n=="string"?new RegExp(n):void 0;return t.filter(i=>{const s=i[e];return r?r.test(String(s??"")):s===n})},w5=(t,{field:e,pattern:n}={field:"",pattern:void 0})=>{if(!e)return t.length?{"*":t}:{};const r=typeof n=="string"?new RegExp(n):void 0,i={},s=te(le)("other");return t.forEach(o=>{const a=o[e];let c;r?[c=s]=String(a??"").match(r)??[]:c=a,c in i||(i[c]=[]),i[c].push(o)}),Object.fromEntries(Object.entries(i).sort(([o],[a])=>ii(o,a)))},x5={type:"grid",showInfo:!0,sort:{key:"name",order:"ascending"}},ts=it({type:"grid",showInfo:!0}),Dc=it(),k5=dr([Qt,Cn],([t],e)=>{const n=["name"];t.every(r=>!!r.commitAuthor)&&n.push("commit_author"),t.every(r=>!!r.commitDate)&&n.push("commit_date"),e(n.map(r=>({key:r,label:te(le)(`sort_keys.${r}`)})))}),el=dr([Qt,Qr],([t,e],n)=>{n(t&&e?t.filter(({folder:r})=>e.internalPath===r):t?[...t]:[])}),cy=dr([el,ts],([t,e],n)=>{let r=[...t];r=_5(r,e.sort),r=y5(r,e.filter);const i=w5(r,e.group);Dn(te(cy),i)||n(i)}),S5=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new Mo(e,"ui-settings"):null,r="assets-view";Dc.set(await n?.get(r)??{}),Dc.subscribe(i=>{(async()=>{try{Dn(i,await n?.get(r))||await n?.set(r,i)}catch{}})()}),Qr.subscribe(i=>{const s=te(Dc)?.[i?.internalPath||"*"]??structuredClone(x5);Dn(s,te(ts))||ts.set(s)}),ts.subscribe(i=>{const s=te(Qr)?.internalPath||"*",o=te(Dc)?.[s]??{};Dn(i,o)||Dc.update(a=>({...a,[s]:i}))})};Pn.subscribe(t=>{t&&!te(Dc)&&S5(t)}),el.subscribe(t=>{kd.set([]),te(St).devModeEnabled&&console.info("listedAssets",t)});var E5=F("<!> <!> <!> <!> <!> <!>",1);function qC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(St,"$prefs",n),o=()=>z(Pn,"$backend",n);let a=ae(ie({...qp}));const c=x(()=>l(a).publicURL),u=x(()=>l(a).repoBlobURL),d=async()=>{L(a,ie(e.asset?await Hp(e.asset):{...qp}))};Be(()=>{e.asset,d()});const h=x(()=>i()("show_edit_options"));kr(t,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(h)},popup:p=>{const g=x(()=>i()("edit_options"));hr(p,{get"aria-label"(){return l(g)},children:(m,b)=>{var _=E5(),v=M(_);const y=x(()=>i()("edit")),w=x(()=>i()("edit_asset")),k=x(()=>!e.asset||!MB(e.asset));$t(v,{variant:"ghost",get label(){return l(y)},get"aria-label"(){return l(w)},get disabled(){return l(k)},onclick:()=>{ot(P_,e.asset)}});var S=D(v,2);const C=x(()=>i()("rename")),E=x(()=>i()("rename_asset")),A=x(()=>!e.asset);$t(S,{variant:"ghost",get label(){return l(C)},get"aria-label"(){return l(E)},get disabled(){return l(A)},onclick:()=>{ot(zp,e.asset)}});var O=D(S,2);const $=x(()=>i()("replace")),N=x(()=>i()("replace_asset")),I=x(()=>!e.asset);$t(O,{variant:"ghost",get label(){return l($)},get"aria-label"(){return l(N)},get disabled(){return l(I)},onclick:()=>{ot(Ps,{folder:void 0,files:[],originalAsset:e.asset}),ot(Qa,!0)}});var j=D(O,2);Sr(j,{});var q=D(j,2);const B=x(()=>i()("view_on_live_site")),W=x(()=>!l(c));$t(q,{get label(){return l(B)},get disabled(){return l(W)},onclick:()=>{window.open(l(c))}});var G=D(q,2);{var J=ne=>{const K=x(()=>!o()?.repository||!l(u)),Y=x(()=>i()("view_on_x",{values:{service:o()?.repository?.label},default:i()("view_in_repository")}));$t(ne,{get disabled(){return l(K)},get label(){return l(Y)},onclick:()=>{window.open(`${l(u)}?plain=1`)}})};U(G,ne=>{s().devModeEnabled&&ne(J)})}T(m,_)},$$slots:{default:!0}})},$$slots:{popup:!0}}),oe(),r()}var T5=F('<!> <h2 role="none"><strong role="none"> </strong></h2> <!> <!> <!> <!> <!>',1);function C5(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Ko,"$overlaidAsset",n),s=()=>z(le,"$_",n),o=()=>z(Qr,"$selectedAssetFolder",n),a=x(()=>i()?[i()]:[]),c=x(()=>s()("primary"));Ks(t,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var h=T5(),f=M(h);const p=x(()=>s()("cancel_editing"));Xe(f,{variant:"ghost",iconic:!0,get"aria-label"(){return l(p)},keyShortcuts:"Escape",onclick:()=>{Rc(o()?`/assets/${o().internalPath}`:"/assets")},startIcon:A=>{nt(A,{name:"arrow_back_ios_new"})},$$slots:{startIcon:!0}});var g=D(f,2),m=R(g),b=R(m),_=D(g,2);Wr(_,{flex:!0});var v=D(_,2);EC(v,{get assets(){return l(a)}});var y=D(v,2);BC(y,{get assets(){return l(a)}});var w=D(y,2);const k=x(()=>s()("delete_asset")),S=x(()=>s()("confirm_deleting_this_asset"));UC(w,{get assets(){return l(a)},get buttonDescription(){return l(k)},get dialogDescription(){return l(S)},onDelete:()=>{Rc(o()?`/assets/${o().internalPath}`:"/assets")}});var C=D(w,2);qC(C,{get asset(){return i()}}),H(()=>Z(b,i()?.name)),T(u,h)},$$slots:{default:!0}}),oe(),r()}var A5=F('<iframe class="svelte-1lmpz2c"></iframe>'),P5=F('<div role="figure" class="markdown svelte-1lmpz2c"><!></div>'),O5=F('<pre role="figure" class="svelte-1lmpz2c"> </pre>'),L5=F('<pre role="figure" class="svelte-1lmpz2c"> </pre>'),$5=F('<span role="alert"> </span>'),N5=F('<!> <div role="none" class="row svelte-1lmpz2c"><div role="none" class="preview svelte-1lmpz2c"><!></div> <!></div>',1),I5=F('<div role="none" class="wrapper svelte-1lmpz2c"><!></div>');const R5={hash:"svelte-1lmpz2c",code:`.wrapper.svelte-1lmpz2c {display:contents;}.wrapper[hidden].svelte-1lmpz2c {display:none;}.wrapper.svelte-1lmpz2c > .sui.group {position:absolute;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);transition:filter 250ms;}.wrapper[inert].svelte-1lmpz2c > .sui.group {filter:opacity(0);}.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) {flex:auto;display:flex;overflow:hidden;}.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) {flex:auto;overflow:hidden;}.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) iframe:where(.svelte-1lmpz2c),
|
|
582
582
|
.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) pre:where(.svelte-1lmpz2c),
|
|
583
583
|
.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) .markdown:where(.svelte-1lmpz2c) {display:block;width:100%;height:100%;}.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) pre:where(.svelte-1lmpz2c),
|
|
584
|
-
.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) .markdown:where(.svelte-1lmpz2c) {margin:0;padding:16px;overflow:auto;}.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) pre:where(.svelte-1lmpz2c) {white-space:pre-wrap;}.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .detail {background-color:var(--sui-primary-background-color);}`};function D5(t,e){se(e,!0),Te(t,R5);const[n,r]=me(),i=()=>z(Ko,"$overlaidAsset",n),s=()=>z(Go,"$showAssetOverlay",n),o=()=>z(le,"$_",n);let a=ae(void 0),c,u=ae(!1),d=ae(!0),h=ae(void 0);const f=x(()=>i()?.kind),p=x(()=>i()?.blobURL),g=x(()=>i()?.name),m=async()=>{await pl(),c&&(c.tabIndex=0,c.focus())};Be(()=>{i()&&(async()=>L(h,ie(await Ha(i()))))()}),Be(()=>{l(a)&&!c&&(c=l(a).querySelector('[role="group"]'),c.addEventListener("transitionend",()=>{s()||(L(u,!1),L(d,!0))}))}),Be(()=>{l(a)&&(s()?(L(u,!1),L(d,!1),m()):L(u,!0))});var b=I5(),_=R(b);const v=x(()=>o()("asset_editor"));mr(_,{get"aria-label"(){return l(v)},children:(y,w)=>{var k=V(),S=M(k);hs(S,()=>i()?.sha,C=>{var E=N5(),A=M(E);C5(A,{});var O=D(A,2),$=R(O),N=R($);{var I=W=>{const G=x(()=>["image","video"].includes(l(f))),J=x(()=>l(f)==="image"),ne=x(()=>l(f)==="image"?l(g):void 0),K=x(()=>["audio","video"].includes(l(f)));Ns(W,{get kind(){return l(f)},get asset(){return i()},get blurBackground(){return l(G)},get checkerboard(){return l(J)},get alt(){return l(ne)},get controls(){return l(K)}})},j=W=>{var G=V(),J=M(G);{var ne=Y=>{var re=A5();H(()=>{Se(re,"src",l(p)),Se(re,"title",l(g))}),T(Y,re)},K=Y=>{var re=V(),ce=M(re);{var he=X=>{var de=V(),_e=M(de);lr(_e,()=>i()?.text??l(h).text(),null,(ve,be)=>{var fe=V(),Oe=M(fe);{var Ae=He=>{var Ve=V(),mt=M(Ve);lr(mt,()=>At.parse(l(be),{breaks:!0,async:!0}),null,(et,ye)=>{var we=P5(),xe=R(we);ur(xe,()=>oi.sanitize(l(ye))),T(et,we)},et=>{var ye=O5(),we=R(ye);H(()=>Z(we,l(be))),T(et,ye)}),T(He,Ve)},De=He=>{var Ve=L5(),mt=R(Ve);H(()=>Z(mt,l(be))),T(He,Ve)};U(Oe,He=>{l(g)?.endsWith(".md")?He(Ae):He(De,!1)})}T(ve,fe)}),T(X,de)},Q=X=>{qr(X,{children:(de,_e)=>{var ve=$5(),be=R(ve);H(fe=>Z(be,fe),[()=>o()("preview_unavailable")]),T(de,ve)},$$slots:{default:!0}})};U(ce,X=>{l(h)?.type&&Xc(l(h).type)?X(he):X(Q,!1)},!0)}T(Y,re)};U(J,Y=>{l(h)?.type==="application/pdf"?Y(ne):Y(K,!1)},!0)}T(W,G)};U(N,W=>{l(f)&&jp(l(f))?W(I):W(j,!1)})}var q=D($,2);{var B=W=>{SC(W,{get asset(){return i()}})};U(q,W=>{i()&&W(B)})}T(C,E)}),T(y,k)},$$slots:{default:!0}}),Tt(b,y=>L(a,y),()=>l(a)),H(()=>{b.hidden=l(d),b.inert=!s(),ft(b,"hiding",l(u))}),T(t,b),oe(),r()}var M5=F('<div role="none" class="wrapper svelte-1wzrlmj"><!></div>');const F5={hash:"svelte-1wzrlmj",code:".wrapper.svelte-1wzrlmj {display:contents;}.wrapper.svelte-1wzrlmj textarea {min-height:40dvh;max-height:80dvh;font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);text-wrap:nowrap;resize:vertical;}.wrapper.wrap.svelte-1wzrlmj textarea {text-wrap:wrap;}"};function z5(t,e){se(e,!0),Te(t,F5);const[n,r]=me(),i=()=>z(P_,"$editingAsset",n),s=()=>z(Go,"$showAssetOverlay",n),o=()=>z(le,"$_",n),a=x(i);let c=ae(!1),u=ae(void 0),d=ae(void 0),h=ae(void 0),f=ae(!1);const p=async()=>{L(u,ie(await Ha(l(a)))),L(d,ie(await l(u).text())),L(h,ie(l(d))),L(c,!0)},g=()=>{ot(P_,void 0),L(u,void 0),L(d,void 0),L(h,void 0)},m=async()=>{l(a)&&l(u)&&typeof l(h)=="string"&&await jC({folder:l(a).folder,files:[new File([l(h)],l(a).name,{type:l(u).type})],originalAsset:l(a)},{commitType:"uploadMedia"})};Be(()=>{l(a)&&l(u)===void 0&&p()}),Be(()=>{s()||L(c,!1)});const b=x(()=>o()("edit_x",{values:{name:l(a)?.name}})),_=x(()=>o()("save")),v=x(()=>l(h)===l(d));ps(t,{size:"x-large",get title(){return l(b)},get okLabel(){return l(_)},get okDisabled(){return l(v)},onOk:()=>{m()},onClose:()=>{g()},get open(){return l(c)},set open(w){L(c,ie(w))},footerExtra:w=>{const k=x(()=>o()("wrap_long_lines"));du(w,{get label(){return l(k)},get checked(){return l(f)},set checked(S){L(f,ie(S))}})},children:(w,k)=>{var S=M5(),C=R(S);Oh(C,{flex:!0,get value(){return l(h)},set value(E){L(h,ie(E))}}),H(()=>ft(S,"wrap",l(f))),T(w,S)},$$slots:{footerExtra:!0,default:!0}}),oe(),r()}var j5=F('<span role="none"> </span>'),U5=F('<p class="svelte-via8re"> </p> <div role="none" class="svelte-via8re"><!> <!></div> <div class="error svelte-via8re"><!></div>',1);const B5={hash:"svelte-via8re",code:"p.svelte-via8re {margin:0 0 8px;}div.svelte-via8re {display:flex;align-items:center;gap:4px;}.error.svelte-via8re {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}"};function q5(t,e){se(e,!0),Te(t,B5);const[n,r]=me(),i=()=>z(zp,"$renamingAsset",n),s=()=>z(Go,"$showAssetOverlay",n),o=()=>z(le,"$_",n),a=Jn("short");let c=ae(!1),u=ae(ie({filename:""})),d=ae(""),h=ae(ie([])),f=ae(ie([]));const p=x(i),g=x(()=>l(u).dirname),m=x(()=>l(u).filename),b=x(()=>l(u).extension),_=x(()=>{if(!l(d).trim())return"empty";if(l(d).includes("/"))return"character";if(l(h).includes(`${l(d)}${l(b)?`.${l(b)}`:""}`))return"duplicate"}),v=x(()=>!!l(_)),y=async()=>{l(p)&&(L(u,ie(Tn(l(p).path))),L(d,ie(l(m))),L(h,ie(I_(l(g)).map(C=>C.name).filter(C=>C!==l(p).name))),await(async C=>L(f,ie(C.usedEntries)))(await Hp(l(p))),L(c,!0))};Be(()=>{l(p)&&y()}),Be(()=>{s()||(L(c,!1),ot(zp,void 0))});const w=x(()=>o()("rename_x",{values:{name:l(p)?.name}})),k=x(()=>o()("rename")),S=x(()=>l(d)===l(m)||l(v));ps(t,{get title(){return l(w)},get okLabel(){return l(k)},get okDisabled(){return l(S)},onOk:()=>{l(p)&&p5("rename",[{asset:l(p),path:`${l(g)}/${l(d)}${l(b)?`.${l(b)}`:""}`}])},onClose:()=>{ot(zp,void 0)},get open(){return l(c)},set open(C){L(c,ie(C))},children:(C,E)=>{var A=U5(),O=M(A),$=R(O),N=D(O,2),I=R(N);An(I,{flex:!0,get invalid(){return l(v)},"aria-errormessage":`${a??""}-error`,get value(){return l(d)},set value(J){L(d,ie(J))}});var j=D(I,2);{var q=J=>{var ne=j5(),K=R(ne);H(()=>Z(K,`.${l(b)??""}`)),T(J,ne)};U(j,J=>{l(b)&&J(q)})}var B=D(N,2);Se(B,"id",`${a??""}-error`);var W=R(B);{var G=J=>{var ne=We();H(K=>Z(ne,K),[()=>o()(`enter_new_name_for_asset_error.${l(_)}`)]),T(J,ne)};U(W,J=>{l(v)&&J(G)})}H(J=>Z($,J),[()=>o()(l(f).length===0?"enter_new_name_for_asset":l(f).length===1?"enter_new_name_for_asset_with_one_entry":"enter_new_name_for_asset_with_many_entries",{values:{count:l(f).length}})]),T(C,A)},$$slots:{default:!0}}),oe(),r()}var H5=F('<span role="none"> </span>'),V5=F("<!> <!> <!>",1);function W5(t,e){se(e,!0);const[n,r]=me(),i=()=>z(el,"$listedAssets",n),s=()=>z(lo,"$focusedAsset",n),o=()=>z(kd,"$selectedAssets",n),a=x(()=>e.asset.name),c=x(()=>e.asset.kind),u=h=>{kd.update(f=>{const p=f.indexOf(e.asset);return h&&p===-1&&f.push(e.asset),!h&&p>-1&&f.splice(p,1),f})},d=x(()=>i().indexOf(e.asset));au(t,{get"aria-rowindex"(){return l(d)},onChange:h=>{u(h.detail.selected)},onfocus:()=>{ot(lo,e.asset)},ondblclick:()=>{s()&>(s())&&jn(`/assets/${s().path}`)},children:(h,f)=>{var p=V5(),g=M(p);si(g,{class:"checkbox",children:(_,v)=>{const y=x(()=>o().includes(e.asset));ou(_,{role:"none",tabindex:"-1",get checked(){return l(y)},onChange:({detail:{checked:w}})=>{u(w)}})},$$slots:{default:!0}});var m=D(g,2);si(m,{class:"image",children:(_,v)=>{const y=x(()=>e.viewType==="list"?"icon":"tile"),w=x(()=>l(c)==="image");Ns(_,{get kind(){return l(c)},get asset(){return e.asset},get variant(){return l(y)},get checkerboard(){return l(w)}})},$$slots:{default:!0}});var b=D(m,2);si(b,{class:"title",children:(_,v)=>{var y=H5(),w=R(y);H(()=>Z(w,l(a))),T(_,y)},$$slots:{default:!0}}),T(h,p)},$$slots:{default:!0}}),oe(),r()}function uy(t,e){let n=P(e,"loading",3,"lazy"),r=P(e,"asset",3,void 0),i=P(e,"src",3,void 0),s=P(e,"variant",3,void 0),o=P(e,"blurBackground",3,!1),a=P(e,"cover",3,!1),c=P(e,"checkerboard",3,!1),u=P(e,"alt",3,""),d=at(e,["$$slots","$$events","$$legacy","loading","asset","src","variant","blurBackground","cover","checkerboard","alt"]);Ns(t,Zt({kind:"image",get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return s()},get blurBackground(){return o()},get cover(){return a()},get checkerboard(){return c()},get alt(){return u()}},()=>d))}var G5=F('<span role="none" class="image svelte-1aay9a6"><!></span>'),K5=F('<div role="none" class="file svelte-1aay9a6"><!> <div role="none" class="meta svelte-1aay9a6"><div role="none" class="name"> </div> <div role="none" class="size svelte-1aay9a6"> </div></div> <!></div>'),Y5=F('<div role="none" class="files svelte-1aay9a6"></div>');const J5={hash:"svelte-1aay9a6",code:".files.svelte-1aay9a6 {display:flex;flex-direction:column;gap:16px;padding:16px 0 0;}.file.svelte-1aay9a6 {display:flex;align-items:center;gap:16px;}.file.svelte-1aay9a6 .image:where(.svelte-1aay9a6) {display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1/1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.file.svelte-1aay9a6 .meta:where(.svelte-1aay9a6) {flex:auto;display:flex;flex-direction:column;gap:4px;text-align:left;}.file.svelte-1aay9a6 .meta:where(.svelte-1aay9a6) .size:where(.svelte-1aay9a6) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}"};function HC(t,e){se(e,!0),Te(t,J5);const[n,r]=me(),i=()=>z(Cn,"$appLocale",n),s=()=>z(le,"$_",n);let o=P(e,"files",31,()=>ie([]));var a=Y5();dt(a,21,o,cr,(c,u,d)=>{var h=K5();const f=x(()=>{const{name:A,type:O,size:$}=l(u);return{name:A,type:O,size:$}}),p=x(()=>{const{extension:A=""}=Tn(l(f).name);return{extension:A}});var g=R(h);{var m=A=>{const O=x(()=>URL.createObjectURL(l(u)));uy(A,{get src(){return l(O)},variant:"icon",checkerboard:!0})},b=A=>{var O=G5(),$=R(O);nt($,{name:"draft"}),T(A,O)};U(g,A=>{l(f).type.startsWith("image/")?A(m):A(b,!1)})}var _=D(g,2),v=R(_),y=R(v),w=D(v,2),k=R(w),S=D(_,2);const C=x(()=>s()("remove")),E=x(()=>o().length===1);Xe(S,{variant:"ghost",iconic:!0,get"aria-label"(){return l(C)},get hidden(){return l(E)},onclick:A=>{A.stopPropagation(),o().splice(d,1),o([...o()])},children:(A,O)=>{nt(A,{name:"close"})},$$slots:{default:!0}}),H((A,O,$)=>{Z(y,A),Z(k,`${O??""}
|
|
584
|
+
.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) .markdown:where(.svelte-1lmpz2c) {margin:0;padding:16px;overflow:auto;}.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .preview:where(.svelte-1lmpz2c) pre:where(.svelte-1lmpz2c) {white-space:pre-wrap;}.wrapper.svelte-1lmpz2c .row:where(.svelte-1lmpz2c) .detail {background-color:var(--sui-primary-background-color);}`};function D5(t,e){se(e,!0),Te(t,R5);const[n,r]=me(),i=()=>z(Ko,"$overlaidAsset",n),s=()=>z(Go,"$showAssetOverlay",n),o=()=>z(le,"$_",n);let a=ae(void 0),c,u=ae(!1),d=ae(!0),h=ae(void 0);const f=x(()=>i()?.kind),p=x(()=>i()?.blobURL),g=x(()=>i()?.name),m=async()=>{await pl(),c&&(c.tabIndex=0,c.focus())};Be(()=>{i()&&(async()=>L(h,ie(await Ha(i()))))()}),Be(()=>{l(a)&&!c&&(c=l(a).querySelector('[role="group"]'),c.addEventListener("transitionend",()=>{s()||(L(u,!1),L(d,!0))}))}),Be(()=>{l(a)&&(s()?(L(u,!1),L(d,!1),m()):L(u,!0))});var b=I5(),_=R(b);const v=x(()=>o()("asset_editor"));mr(_,{get"aria-label"(){return l(v)},children:(y,w)=>{var k=V(),S=M(k);hs(S,()=>i()?.sha,C=>{var E=N5(),A=M(E);C5(A,{});var O=D(A,2),$=R(O),N=R($);{var I=W=>{const G=x(()=>["image","video"].includes(l(f))),J=x(()=>l(f)==="image"),ne=x(()=>l(f)==="image"?l(g):void 0),K=x(()=>["audio","video"].includes(l(f)));Ns(W,{get kind(){return l(f)},get asset(){return i()},get blurBackground(){return l(G)},get checkerboard(){return l(J)},get alt(){return l(ne)},get controls(){return l(K)}})},j=W=>{var G=V(),J=M(G);{var ne=Y=>{var re=A5();H(()=>{Se(re,"src",l(p)),Se(re,"title",l(g))}),T(Y,re)},K=Y=>{var re=V(),ce=M(re);{var he=X=>{var de=V(),ye=M(de);lr(ye,()=>i()?.text??l(h).text(),null,(ve,be)=>{var fe=V(),Oe=M(fe);{var Ae=He=>{var Ve=V(),mt=M(Ve);lr(mt,()=>At.parse(l(be),{breaks:!0,async:!0}),null,(et,we)=>{var xe=P5(),_e=R(xe);ur(_e,()=>oi.sanitize(l(we))),T(et,xe)},et=>{var we=O5(),xe=R(we);H(()=>Z(xe,l(be))),T(et,we)}),T(He,Ve)},De=He=>{var Ve=L5(),mt=R(Ve);H(()=>Z(mt,l(be))),T(He,Ve)};U(Oe,He=>{l(g)?.endsWith(".md")?He(Ae):He(De,!1)})}T(ve,fe)}),T(X,de)},Q=X=>{qr(X,{children:(de,ye)=>{var ve=$5(),be=R(ve);H(fe=>Z(be,fe),[()=>o()("preview_unavailable")]),T(de,ve)},$$slots:{default:!0}})};U(ce,X=>{l(h)?.type&&Xc(l(h).type)?X(he):X(Q,!1)},!0)}T(Y,re)};U(J,Y=>{l(h)?.type==="application/pdf"?Y(ne):Y(K,!1)},!0)}T(W,G)};U(N,W=>{l(f)&&jp(l(f))?W(I):W(j,!1)})}var q=D($,2);{var B=W=>{SC(W,{get asset(){return i()}})};U(q,W=>{i()&&W(B)})}T(C,E)}),T(y,k)},$$slots:{default:!0}}),Tt(b,y=>L(a,y),()=>l(a)),H(()=>{b.hidden=l(d),b.inert=!s(),ft(b,"hiding",l(u))}),T(t,b),oe(),r()}var M5=F('<div role="none" class="wrapper svelte-1wzrlmj"><!></div>');const F5={hash:"svelte-1wzrlmj",code:".wrapper.svelte-1wzrlmj {display:contents;}.wrapper.svelte-1wzrlmj textarea {min-height:40dvh;max-height:80dvh;font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);text-wrap:nowrap;resize:vertical;}.wrapper.wrap.svelte-1wzrlmj textarea {text-wrap:wrap;}"};function z5(t,e){se(e,!0),Te(t,F5);const[n,r]=me(),i=()=>z(P_,"$editingAsset",n),s=()=>z(Go,"$showAssetOverlay",n),o=()=>z(le,"$_",n),a=x(i);let c=ae(!1),u=ae(void 0),d=ae(void 0),h=ae(void 0),f=ae(!1);const p=async()=>{L(u,ie(await Ha(l(a)))),L(d,ie(await l(u).text())),L(h,ie(l(d))),L(c,!0)},g=()=>{ot(P_,void 0),L(u,void 0),L(d,void 0),L(h,void 0)},m=async()=>{l(a)&&l(u)&&typeof l(h)=="string"&&await jC({folder:l(a).folder,files:[new File([l(h)],l(a).name,{type:l(u).type})],originalAsset:l(a)},{commitType:"uploadMedia"})};Be(()=>{l(a)&&l(u)===void 0&&p()}),Be(()=>{s()||L(c,!1)});const b=x(()=>o()("edit_x",{values:{name:l(a)?.name}})),_=x(()=>o()("save")),v=x(()=>l(h)===l(d));ps(t,{size:"x-large",get title(){return l(b)},get okLabel(){return l(_)},get okDisabled(){return l(v)},onOk:()=>{m()},onClose:()=>{g()},get open(){return l(c)},set open(w){L(c,ie(w))},footerExtra:w=>{const k=x(()=>o()("wrap_long_lines"));du(w,{get label(){return l(k)},get checked(){return l(f)},set checked(S){L(f,ie(S))}})},children:(w,k)=>{var S=M5(),C=R(S);Oh(C,{flex:!0,get value(){return l(h)},set value(E){L(h,ie(E))}}),H(()=>ft(S,"wrap",l(f))),T(w,S)},$$slots:{footerExtra:!0,default:!0}}),oe(),r()}var j5=F('<span role="none"> </span>'),U5=F('<p class="svelte-via8re"> </p> <div role="none" class="svelte-via8re"><!> <!></div> <div class="error svelte-via8re"><!></div>',1);const B5={hash:"svelte-via8re",code:"p.svelte-via8re {margin:0 0 8px;}div.svelte-via8re {display:flex;align-items:center;gap:4px;}.error.svelte-via8re {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}"};function q5(t,e){se(e,!0),Te(t,B5);const[n,r]=me(),i=()=>z(zp,"$renamingAsset",n),s=()=>z(Go,"$showAssetOverlay",n),o=()=>z(le,"$_",n),a=Jn("short");let c=ae(!1),u=ae(ie({filename:""})),d=ae(""),h=ae(ie([])),f=ae(ie([]));const p=x(i),g=x(()=>l(u).dirname),m=x(()=>l(u).filename),b=x(()=>l(u).extension),_=x(()=>{if(!l(d).trim())return"empty";if(l(d).includes("/"))return"character";if(l(h).includes(`${l(d)}${l(b)?`.${l(b)}`:""}`))return"duplicate"}),v=x(()=>!!l(_)),y=async()=>{l(p)&&(L(u,ie(Tn(l(p).path))),L(d,ie(l(m))),L(h,ie(I_(l(g)).map(C=>C.name).filter(C=>C!==l(p).name))),await(async C=>L(f,ie(C.usedEntries)))(await Hp(l(p))),L(c,!0))};Be(()=>{l(p)&&y()}),Be(()=>{s()||(L(c,!1),ot(zp,void 0))});const w=x(()=>o()("rename_x",{values:{name:l(p)?.name}})),k=x(()=>o()("rename")),S=x(()=>l(d)===l(m)||l(v));ps(t,{get title(){return l(w)},get okLabel(){return l(k)},get okDisabled(){return l(S)},onOk:()=>{l(p)&&p5("rename",[{asset:l(p),path:`${l(g)}/${l(d)}${l(b)?`.${l(b)}`:""}`}])},onClose:()=>{ot(zp,void 0)},get open(){return l(c)},set open(C){L(c,ie(C))},children:(C,E)=>{var A=U5(),O=M(A),$=R(O),N=D(O,2),I=R(N);An(I,{flex:!0,get invalid(){return l(v)},"aria-errormessage":`${a??""}-error`,get value(){return l(d)},set value(J){L(d,ie(J))}});var j=D(I,2);{var q=J=>{var ne=j5(),K=R(ne);H(()=>Z(K,`.${l(b)??""}`)),T(J,ne)};U(j,J=>{l(b)&&J(q)})}var B=D(N,2);Se(B,"id",`${a??""}-error`);var W=R(B);{var G=J=>{var ne=We();H(K=>Z(ne,K),[()=>o()(`enter_new_name_for_asset_error.${l(_)}`)]),T(J,ne)};U(W,J=>{l(v)&&J(G)})}H(J=>Z($,J),[()=>o()(l(f).length===0?"enter_new_name_for_asset":l(f).length===1?"enter_new_name_for_asset_with_one_entry":"enter_new_name_for_asset_with_many_entries",{values:{count:l(f).length}})]),T(C,A)},$$slots:{default:!0}}),oe(),r()}var H5=F('<span role="none"> </span>'),V5=F("<!> <!> <!>",1);function W5(t,e){se(e,!0);const[n,r]=me(),i=()=>z(el,"$listedAssets",n),s=()=>z(lo,"$focusedAsset",n),o=()=>z(kd,"$selectedAssets",n),a=x(()=>e.asset.name),c=x(()=>e.asset.kind),u=h=>{kd.update(f=>{const p=f.indexOf(e.asset);return h&&p===-1&&f.push(e.asset),!h&&p>-1&&f.splice(p,1),f})},d=x(()=>i().indexOf(e.asset));au(t,{get"aria-rowindex"(){return l(d)},onChange:h=>{u(h.detail.selected)},onfocus:()=>{ot(lo,e.asset)},ondblclick:()=>{s()&>(s())&&jn(`/assets/${s().path}`)},children:(h,f)=>{var p=V5(),g=M(p);si(g,{class:"checkbox",children:(_,v)=>{const y=x(()=>o().includes(e.asset));ou(_,{role:"none",tabindex:"-1",get checked(){return l(y)},onChange:({detail:{checked:w}})=>{u(w)}})},$$slots:{default:!0}});var m=D(g,2);si(m,{class:"image",children:(_,v)=>{const y=x(()=>e.viewType==="list"?"icon":"tile"),w=x(()=>l(c)==="image");Ns(_,{get kind(){return l(c)},get asset(){return e.asset},get variant(){return l(y)},get checkerboard(){return l(w)}})},$$slots:{default:!0}});var b=D(m,2);si(b,{class:"title",children:(_,v)=>{var y=H5(),w=R(y);H(()=>Z(w,l(a))),T(_,y)},$$slots:{default:!0}}),T(h,p)},$$slots:{default:!0}}),oe(),r()}function uy(t,e){let n=P(e,"loading",3,"lazy"),r=P(e,"asset",3,void 0),i=P(e,"src",3,void 0),s=P(e,"variant",3,void 0),o=P(e,"blurBackground",3,!1),a=P(e,"cover",3,!1),c=P(e,"checkerboard",3,!1),u=P(e,"alt",3,""),d=at(e,["$$slots","$$events","$$legacy","loading","asset","src","variant","blurBackground","cover","checkerboard","alt"]);Ns(t,Zt({kind:"image",get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return s()},get blurBackground(){return o()},get cover(){return a()},get checkerboard(){return c()},get alt(){return u()}},()=>d))}var G5=F('<span role="none" class="image svelte-1aay9a6"><!></span>'),K5=F('<div role="none" class="file svelte-1aay9a6"><!> <div role="none" class="meta svelte-1aay9a6"><div role="none" class="name"> </div> <div role="none" class="size svelte-1aay9a6"> </div></div> <!></div>'),Y5=F('<div role="none" class="files svelte-1aay9a6"></div>');const J5={hash:"svelte-1aay9a6",code:".files.svelte-1aay9a6 {display:flex;flex-direction:column;gap:16px;padding:16px 0 0;}.file.svelte-1aay9a6 {display:flex;align-items:center;gap:16px;}.file.svelte-1aay9a6 .image:where(.svelte-1aay9a6) {display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1/1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.file.svelte-1aay9a6 .meta:where(.svelte-1aay9a6) {flex:auto;display:flex;flex-direction:column;gap:4px;text-align:left;}.file.svelte-1aay9a6 .meta:where(.svelte-1aay9a6) .size:where(.svelte-1aay9a6) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}"};function HC(t,e){se(e,!0),Te(t,J5);const[n,r]=me(),i=()=>z(Cn,"$appLocale",n),s=()=>z(le,"$_",n);let o=P(e,"files",31,()=>ie([]));var a=Y5();dt(a,21,o,cr,(c,u,d)=>{var h=K5();const f=x(()=>{const{name:A,type:O,size:$}=l(u);return{name:A,type:O,size:$}}),p=x(()=>{const{extension:A=""}=Tn(l(f).name);return{extension:A}});var g=R(h);{var m=A=>{const O=x(()=>URL.createObjectURL(l(u)));uy(A,{get src(){return l(O)},variant:"icon",checkerboard:!0})},b=A=>{var O=G5(),$=R(O);nt($,{name:"draft"}),T(A,O)};U(g,A=>{l(f).type.startsWith("image/")?A(m):A(b,!1)})}var _=D(g,2),v=R(_),y=R(v),w=D(v,2),k=R(w),S=D(_,2);const C=x(()=>s()("remove")),E=x(()=>o().length===1);Xe(S,{variant:"ghost",iconic:!0,get"aria-label"(){return l(C)},get hidden(){return l(E)},onclick:A=>{A.stopPropagation(),o().splice(d,1),o([...o()])},children:(A,O)=>{nt(A,{name:"close"})},$$slots:{default:!0}}),H((A,O,$)=>{Z(y,A),Z(k,`${O??""}
|
|
585
585
|
·
|
|
586
|
-
${$??""}`)},[()=>l(f).name.normalize(),()=>i()?x_(l(f).size):"",()=>s()(`file_type_labels.${l(p).extension}`,{default:l(p).extension.toUpperCase()})]),T(c,h)}),T(t,a),oe(),r()}var Z5=({target:t},e)=>{const n=[...t.files];e()?.({files:n,file:n[0]})},X5=F('<input type="file" hidden>');function VC(t,e){se(e,!0);let n=P(e,"accept",3,void 0),r=P(e,"multiple",3,!1),i=P(e,"onSelect",3,void 0),s=ae(void 0);const o=()=>{l(s)?.click()};var a=X5();return a.__change=[Z5,i],Tt(a,c=>L(s,c),()=>l(s)),H(()=>{Se(a,"accept",n()),a.multiple=r()}),vi("cancel",a,c=>{c.stopPropagation()}),T(t,a),oe({open:o})}ia(["change"]);var Q5=F('<div role="alert"> </div>'),eH=F('<div role="none"> </div> <div role="none"><!></div> <!>',1),tH=F('<div role="none" class="content svelte-osk4b"><!> <!></div>'),nH=F('<div role="none" class="drop-indicator svelte-osk4b"><div role="none" class="svelte-osk4b"><!> <span role="none"> </span></div></div>'),rH=F('<div role="none" class="drop-target svelte-osk4b"><!> <!></div> <!>',1);const iH={hash:"svelte-osk4b",code:".drop-target.svelte-osk4b {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;}.drop-target.svelte-osk4b > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}.drop-target.svelte-osk4b > :where(.svelte-osk4b) {pointer-events:none;}.drop-target.svelte-osk4b button {pointer-events:auto;}.drop-indicator.svelte-osk4b {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl)/80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;}.drop-indicator.svelte-osk4b div:where(.svelte-osk4b) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);}.drop-indicator.svelte-osk4b div:where(.svelte-osk4b) .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.content.svelte-osk4b {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}"};function Rd(t,e){se(e,!0),Te(t,iH);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"accept",3,void 0),o=P(e,"disabled",3,!1),a=P(e,"multiple",3,!1),c=P(e,"showUploadButton",3,!1),u=P(e,"showFilePreview",3,!1),d=P(e,"onSelect",3,void 0),h=P(e,"children",3,void 0),f=ae(!1),p=ae(!1),g=ae(void 0),m=ae(ie([]));const b=()=>{l(g)?.open()},_=()=>{L(m,ie([])),d()?.({files:l(m)})},v=N=>{L(m,ie(a()?N:N.slice(0,1))),d()?.({files:l(m)})};var y=rH(),w=M(y),k=R(w);{var S=N=>{var I=tH(),j=R(I);{var q=G=>{var J=eH(),ne=M(J),K=R(ne),Y=D(ne,2),re=R(Y);const ce=x(()=>i()(a()?"choose_files":"choose_file"));Xe(re,{variant:"primary",get label(){return l(ce)},get disabled(){return o()},onclick:()=>{b()},startIcon:de=>{nt(de,{name:"cloud_upload"})},$$slots:{startIcon:!0}});var he=D(Y,2);{var Q=X=>{var de=Q5(),_e=R(de);H(ve=>Z(_e,ve),[()=>i()("drop_files_type_mismatch",{values:{type:s()}})]),T(X,de)};U(he,X=>{l(p)&&X(Q)})}H(X=>Z(K,X),[()=>i()(a()?"drop_or_browse_files":"drop_or_browse_file")]),T(G,J)};U(j,G=>{c()&&G(q)})}var B=D(j,2);{var W=G=>{HC(G,{get files(){return l(m)},set files(J){L(m,ie(J))}})};U(B,G=>{u()&&l(m).length&&G(W)})}T(N,I)},C=N=>{var I=V(),j=M(I);Re(j,()=>h()??Fe),T(N,I)};U(k,N=>{c()||u()&&l(m).length?N(S):N(C,!1)})}var E=D(k,2);{var A=N=>{var I=nH(),j=R(I),q=R(j);nt(q,{name:"download"});var B=D(q,2),W=R(B);H(G=>Z(W,G),[()=>i()(a()?"drop_files_here":"drop_file_here")]),T(N,I)};U(E,N=>{l(f)&&N(A)})}var O=D(w,2);Tt(VC(O,{get accept(){return s()},get multiple(){return a()},onSelect:({files:N})=>{v(N)}}),N=>L(g,ie(N)),()=>l(g)),vi("dragover",w,N=>{N.preventDefault(),!(o()||!N.dataTransfer)&&(N.dataTransfer.dropEffect="copy",L(f,!0),L(p,!1))}),vi("dragleave",w,N=>{N.preventDefault(),!o()&&L(f,!1)}),vi("dragend",w,N=>{N.preventDefault(),!o()&&L(f,!1)}),vi("drop",w,async N=>{if(N.preventDefault(),o()||!N.dataTransfer)return;L(f,!1);const I=await NP(N.dataTransfer,{accept:s()});I.length?v(I):L(p,!0)}),T(t,y);var $=oe({openFilePicker:b,reset:_});return r(),$}var sH=F('<div role="none" class="spinner svelte-v6s0f"></div>'),oH=F("<!> <!>",1);const aH={hash:"svelte-v6s0f",code:".spinner.svelte-v6s0f {height:1px;}"};function tl(t,e){se(e,!0),Te(t,aH);let n=P(e,"itemChunkSize",3,25),r=ae(ie(n())),i=ae(void 0);const s=x(()=>e.items.length>l(r)),o=new IntersectionObserver(([{isIntersecting:h}])=>{h&&(l(s)?L(r,l(r)+n()):o.disconnect())});Be(()=>{l(i)&&o.observe(l(i))});var a=oH(),c=M(a);dt(c,17,()=>e.items.slice(0,l(r)),h=>h[e.itemKey],(h,f)=>{var p=V(),g=M(p);Re(g,()=>e.renderItem,()=>l(f)),T(h,p)});var u=D(c,2);{var d=h=>{var f=sH();Tt(f,p=>L(i,p),()=>l(i)),T(h,f)};U(u,h=>{l(s)&&h(d)})}T(t,a),oe()}var lH=F('<div role="none" class="list-container svelte-1smo9s9"><!></div>');const cH={hash:"svelte-1smo9s9",code:".list-container.svelte-1smo9s9 {flex:auto;position:relative;height:100%;overflow:hidden;}.list-container.svelte-1smo9s9 > .group {height:100%;overflow-y:auto;overscroll-behavior-y:contain;}.list-container.svelte-1smo9s9 > .group :is(.grid-view, .list-view) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}"};function dy(t,e){Te(t,cH);let n=P(e,"children",3,void 0),r=at(e,["$$slots","$$events","$$legacy","children"]);var i=lH(),s=R(i);mr(s,Zt(()=>r,{children:(o,a)=>{var c=V(),u=M(c);Re(u,()=>n()??Fe),T(o,c)},$$slots:{default:!0}})),T(t,i)}var uH=F('<div role="none"><!></div>');const dH={hash:"svelte-180m7hm",code:'.grid-view.svelte-180m7hm .row-group-caption {display:block;margin:8px;grid-column:1/-1;}.grid-view.svelte-180m7hm .row-group-caption th {display:block;}.grid-view.svelte-180m7hm .grid-body {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 200px), 1fr));gap:16px;border-width:0;}.grid-view.svelte-180m7hm [role="row"] {display:block;position:relative;overflow:hidden;height:auto;text-align:left;}.grid-view.svelte-180m7hm [role="row"] .grid-cell {display:block;}.grid-view.svelte-180m7hm [role="row"] .grid-cell.image:empty {aspect-ratio:1/1;}.grid-view.svelte-180m7hm [role="row"] .checkbox {position:absolute;inset:4px auto auto 4px;z-index:2;}.grid-view.svelte-180m7hm [role="row"] .title span {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:12px;height:40px;line-height:1.5;word-break:break-all;}.grid-view.svelte-180m7hm [role="row"][tabindex] {border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-secondary-background-color);cursor:pointer;transition:background-color 200ms;}.grid-view.svelte-180m7hm [role="row"][tabindex]:hover, .grid-view.svelte-180m7hm [role="row"][tabindex]:focus, .grid-view.svelte-180m7hm [role="row"][tabindex]:active {background-color:var(--sui-hover-background-color);}.list-view.svelte-180m7hm {--icon-size: 36px;}.list-view.svelte-180m7hm [role="grid"] .row-group .row-group-caption + .grid-row .grid-cell {border-top-width:0 !important;}.list-view.svelte-180m7hm [role="grid"] .row-group .row-group-caption ~ .grid-row:last-child .grid-cell {border-bottom-width:0 !important;}.list-view.svelte-180m7hm [role="grid"] [role="row"] {transition-property:background-color, outline-color;transition-duration:200ms;}.list-view.svelte-180m7hm [role="grid"] [role="row"][tabindex] {cursor:pointer;}.list-view.svelte-180m7hm [role="grid"] [role="row"]:hover {background-color:var(--sui-hover-background-color);}.list-view.svelte-180m7hm [role="grid"] [role="rowheader"] {border-width:0;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"] {overflow:hidden;padding:0 16px 0 0;height:40px;max-width:100%;color:var(--sui-secondary-foreground-color);white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"]:first-child {padding-left:16px;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"] .label {overflow:hidden;text-overflow:ellipsis;}.list-view.svelte-180m7hm [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:"";}.list-view.svelte-180m7hm [role="grid"] [role="row"] [role="gridcell"] {border-width:1px 0 0;border-color:var(--sui-secondary-border-color);}.list-view.svelte-180m7hm [role="grid"] [role="row"]:last-child [role="gridcell"] {border-width:1px 0;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"].checkbox {padding-left:8px;width:44px;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"].title {width:100%; /* flex: auto */color:var(--sui-primary-foreground-color);}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"].image {width:48px;}'};function Dd(t,e){se(e,!0),Te(t,dH);let n=P(e,"children",3,void 0),r=at(e,["$$slots","$$events","$$legacy","viewType","children"]);var i=uH(),s=R(i);lr(s,()=>dn(0),null,o=>{A$(o,Zt({multiple:!0,clickToSelect:!1},()=>r,{children:(a,c)=>{var u=V(),d=M(u);Re(d,()=>n()??Fe),T(a,u)},$$slots:{default:!0}}))}),H(()=>Ir(i,`${e.viewType??""}-view svelte-180m7hm`)),T(t,i),oe()}var fH=F('<span role="none"> </span>');function hH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ts,"$currentView",n),s=()=>z(Qr,"$selectedAssetFolder",n),o=()=>z(le,"$_",n),a=()=>z(A_,"$globalAssetFolder",n),c=()=>z(cy,"$assetGroups",n),u=()=>z(el,"$listedAssets",n),d=x(()=>i().type),h=x(()=>!!s()?.entryRelative),f=x(()=>o()("asset_list"));dy(t,{get"aria-label"(){return l(f)},children:(p,g)=>{Rd(p,{get disabled(){return l(h)},multiple:!0,onSelect:({files:m})=>{ot(Ps,{folder:s()?.internalPath||a()?.internalPath,files:m})},children:(m,b)=>{var _=V(),v=M(_);{var y=k=>{const S=x(()=>o()("assets"));Dd(k,{id:"asset-list",get viewType(){return l(d)},get"aria-label"(){return l(S)},get"aria-rowcount"(){return u().length},children:(C,E)=>{var A=V(),O=M(A);dt(O,1,()=>Object.entries(c()),([$,N])=>$,($,N)=>{let I=()=>l(N)[0],j=()=>l(N)[1];const q=x(()=>I()!=="*"?I():void 0);kx($,{get label(){return l(q)},children:(B,W)=>{tl(B,{get items(){return j()},itemKey:"path",renderItem:(J,ne=Fe)=>{var K=V(),Y=M(K);hs(Y,()=>ne().sha,re=>{W5(re,{get asset(){return ne()},get viewType(){return l(d)}})}),T(J,K)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}),T(C,A)},$$slots:{default:!0}})},w=k=>{qr(k,{children:(S,C)=>{var E=fH(),A=R(E);H(O=>Z(A,O),[()=>o()("no_files_found")]),T(S,E)},$$slots:{default:!0}})};U(v,k=>{Object.values(c()).flat(1).length?k(y):k(w,!1)})}T(m,_)},$$slots:{default:!0}})},$$slots:{default:!0}}),oe(),r()}var pH=F('<span class="count"> </span>'),gH=F('<div role="none" class="primary-sidebar"><!></div>');function mH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Cn,"$appLocale",n),s=()=>z(ci,"$allAssetFolders",n),o=()=>z(le,"$_",n),a=()=>z(Qr,"$selectedAssetFolder",n),c=()=>z(Qt,"$allAssets",n),u=x(()=>Intl.NumberFormat(i()??void 0)),d=x(()=>[{collectionName:"*",internalPath:void 0,publicPath:void 0,entryRelative:!1},...s()]);var h=gH(),f=R(h);const p=x(()=>o()("asset_folders"));lu(f,{get"aria-label"(){return l(p)},"aria-controls":"assets-container",children:(g,m)=>{var b=V(),_=M(b);dt(_,17,()=>l(d),({collectionName:v,internalPath:y,entryRelative:w})=>v,(v,y)=>{let w=()=>l(y).collectionName,k=()=>l(y).internalPath,S=()=>l(y).entryRelative;const C=x(()=>w()?Ni(w()):void 0),E=x(S),A=x(()=>k()===void 0&&!a()||k()===a()?.internalPath),O=x(()=>i()?tg(w()):"");fr(v,{get selected(){return l(A)},get label(){return l(O)},onSelect:()=>{jn(k()?`/assets/${k()}`:"/assets")},ondragover:I=>{I.preventDefault(),!l(E)&&(k()===void 0||l(A)?I.dataTransfer.dropEffect="none":(I.dataTransfer.dropEffect="move",I.target.classList.add("dragover")))},ondragleave:I=>{I.preventDefault(),!l(E)&&I.target.classList.remove("dragover")},ondragend:I=>{I.preventDefault(),!l(E)&&I.target.classList.remove("dragover")},ondrop:I=>{I.preventDefault(),!l(E)&&I.target.classList.remove("dragover")},startIcon:I=>{const j=x(()=>l(C)?.icon||"folder");nt(I,{get name(){return l(j)}})},endIcon:I=>{var j=V(),q=M(j);hs(q,c,B=>{var W=V(),G=M(W);lr(G,()=>dn(0),null,J=>{var ne=pH();const K=x(()=>(k()?FB(k()):c()).length);var Y=R(ne);H((re,ce)=>{Se(ne,"aria-label",`(${re??""})`),Z(Y,ce)},[()=>o()(l(K)>1?"many_assets":l(K)===1?"one_asset":"no_assets",{values:{count:l(K)}}),()=>l(u).format(l(K))]),T(J,ne)}),T(B,W)}),T(I,j)},$$slots:{startIcon:!0,endIcon:!0}})}),T(g,b)},$$slots:{default:!0}}),T(t,h),oe(),r()}function vH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=x(()=>!e.asset||!GT(e.asset)),o=x(()=>i()("preview")),a=x(()=>i()("show_preview"));Xe(t,{variant:"ghost",get disabled(){return l(s)},get label(){return l(o)},get"aria-label"(){return l(a)},onclick:()=>{jn(`/assets/${e.asset?.path}`)}}),oe(),r()}function bH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Qr,"$selectedAssetFolder",n),s=()=>z(le,"$_",n),o=x(()=>!!i()?.entryRelative),a=x(()=>s()("upload")),c=x(()=>s()("upload_assets"));Xe(t,{variant:"primary",get label(){return l(a)},get disabled(){return l(o)},get"aria-label"(){return l(c)},onclick:()=>{ot(Qa,!0)},startIcon:d=>{nt(d,{name:"cloud_upload"})},$$slots:{startIcon:!0}}),oe(),r()}var _H=F('<span role="none"> </span>'),yH=F('<h2 role="none"> <!></h2> <!> <!> <!> <!> <!> <!> <!>',1);function wH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(kd,"$selectedAssets",n),s=()=>z(lo,"$focusedAsset",n),o=()=>z(le,"$_",n),a=()=>z(Cn,"$appLocale",n),c=()=>z(Qr,"$selectedAssetFolder",n),u=()=>z(el,"$listedAssets",n),d=x(()=>i().length?i():s()?[s()]:[]),h=x(()=>o()("folder"));Ks(t,{variant:"primary",get"aria-label"(){return l(h)},children:(f,p)=>{var g=yH(),m=M(g),b=R(m),_=D(b);{var v=I=>{var j=_H(),q=R(j);H(()=>Z(q,`/${c().internalPath??""}`)),T(I,j)};U(_,I=>{c()&&I(v)})}var y=D(m,2);Wr(y,{flex:!0});var w=D(y,2);vH(w,{get asset(){return s()}});var k=D(w,2);const S=x(()=>s()?[s()]:[]);EC(k,{get assets(){return l(S)}});var C=D(k,2);BC(C,{get assets(){return l(d)}});var E=D(C,2);const A=x(()=>o()(l(d).length===1?"delete_selected_asset":"delete_selected_assets")),O=x(()=>o()(l(d).length===1?"confirm_deleting_selected_asset":l(d).length===u().length?"confirm_deleting_all_assets":"confirm_deleting_selected_assets",{values:{count:l(d).length}}));UC(E,{get assets(){return l(d)},get buttonDescription(){return l(A)},get dialogDescription(){return l(O)}});var $=D(E,2);qC($,{get asset(){return s()}});var N=D($,2);bH(N,{}),H(I=>Z(b,`${I??""} `),[()=>a()?ly(c()?.internalPath):""]),T(f,g)},$$slots:{default:!0}}),oe(),r()}var xH=F('<span role="none"> </span>');function kH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ts,"$currentView",n),s=()=>z(le,"$_",n),o=()=>z(lo,"$focusedAsset",n),a=x(()=>!i().showInfo),c=x(()=>s()("asset_info"));mr(t,{id:"asset-info",class:"secondary-sidebar",get hidden(){return l(a)},get"aria-label"(){return l(c)},children:(u,d)=>{var h=V(),f=M(h);{var p=m=>{SC(m,{get asset(){return o()},showPreview:!0})},g=m=>{qr(m,{children:(b,_)=>{var v=xH(),y=R(v);H(w=>Z(y,w),[()=>s()("select_asset_show_info")]),T(b,v)},$$slots:{default:!0}})};U(f,m=>{o()?m(p):m(g,!1)})}T(u,h)},$$slots:{default:!0}}),oe(),r()}var SH=F("<!> <!>",1);function WC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(e.currentView,"$currentView",n);let o=P(e,"label",3,""),a=P(e,"disabled",3,!1),c=P(e,"multiple",3,!1),u=P(e,"noneLabel",3,""),d=P(e,"filters",19,()=>[]);const h=x(()=>o()||i()("filter"));kr(t,{variant:"ghost",get label(){return l(h)},get disabled(){return a()},popupPosition:"bottom-right",popup:p=>{const g=x(()=>i()("filtering_options"));hr(p,{get"aria-label"(){return l(g)},get"aria-controls"(){return e["aria-controls"]},children:(m,b)=>{var _=V(),v=M(_);{var y=k=>{var S=V(),C=M(S);dt(C,17,d,cr,(E,A)=>{let O=()=>l(A).label,$=()=>l(A).field,N=()=>l(A).pattern;const I=x(()=>(s().filters||[]).findIndex(q=>q.field===$()&&q.pattern===N())),j=x(()=>l(I)>-1);Af(E,{get label(){return O()},get checked(){return l(j)},onChange:()=>{e.currentView.update(q=>{const B=q.filters?[...q.filters]:[];return l(I)>-1?B.splice(l(I),1):B.push({field:$(),pattern:N()}),{...q,filters:B}})}})}),T(k,S)},w=k=>{var S=SH(),C=M(S);const E=x(()=>u()||i()("sort_keys.none")),A=x(()=>!s().filter);cu(C,{get label(){return l(E)},get checked(){return l(A)},onSelect:()=>{e.currentView.update($=>({...$,filter:void 0}))}});var O=D(C,2);dt(O,17,d,cr,($,N)=>{let I=()=>l(N).label,j=()=>l(N).field,q=()=>l(N).pattern;const B=x(()=>s().filter?.field===j()&&s().filter.pattern===q());cu($,{get label(){return I()},get checked(){return l(B)},onSelect:()=>{e.currentView.update(W=>({...W,filter:{field:j(),pattern:q()}}))}})}),T(k,S)};U(v,k=>{c()?k(y):k(w,!1)})}T(m,_)},$$slots:{default:!0}})},$$slots:{popup:!0}}),oe(),r()}var EH=F('<span role="none" class="svelte-1154dkn"> </span>'),TH=F('<div role="none" class="wrapper svelte-1154dkn"><!> <!></div>');const CH={hash:"svelte-1154dkn",code:".wrapper.svelte-1154dkn {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1154dkn {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function GC(t,e){se(e,!0),Te(t,CH);const[n,r]=me(),i=()=>z(e.selectedItems,"$selectedItems",n),s=()=>z(le,"$_",n),o=x(()=>e.allItems.length),a=x(()=>i().length),c=x(()=>!!l(a)),u=x(()=>l(c)&&l(a)===l(o));var d=TH(),h=R(d);const f=x(()=>!l(o)),p=x(()=>s()("select_all")),g=x(()=>l(c)&&!l(u)?"mixed":l(c));ou(h,{get disabled(){return l(f)},get"aria-label"(){return l(p)},get checked(){return l(g)},onChange:()=>{e.selectedItems.set(l(u)?[]:[...e.allItems])}});var m=D(h,2);{var b=_=>{var v=EH(),y=R(v);H(w=>Z(y,w),[()=>s()("x_of_x_selected",{values:{total:l(o),selected:l(a)}})]),T(_,v)};U(m,_=>{l(c)&&_(b)})}T(t,d),oe(),r()}function KC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(e.currentView,"$currentView",n);let o=P(e,"label",3,""),a=P(e,"disabled",3,!1),c=P(e,"fields",19,()=>[]),u=P(e,"collectionName",3,void 0);const d=["ascending","descending"],h=["date","commit_date"],f=x(()=>o()||i()("sort"));kr(t,{variant:"ghost",get label(){return l(f)},get disabled(){return a()},popupPosition:"bottom-right",popup:g=>{const m=x(()=>i()("sorting_options"));hr(g,{get"aria-label"(){return l(m)},get"aria-controls"(){return e["aria-controls"]},children:(b,_)=>{var v=V(),y=M(v);dt(y,17,c,({key:w,label:k})=>w,(w,k)=>{let S=()=>l(k).key,C=()=>l(k).label;var E=V(),A=M(E);dt(A,16,()=>d,O=>O,(O,$)=>{const N=x(()=>i()(h.includes(S())||u()&&gn({collectionName:u(),keyPath:S()})?.widget==="datetime"?`${$}_date`:$,{values:{label:C()}})),I=x(()=>s().sort?.key===S()&&s().sort.order===$);cu(O,{get label(){return l(N)},get checked(){return l(I)},onSelect:()=>{e.currentView.update(j=>({...j,sort:{key:S(),order:$}}))}})}),T(w,E)}),T(b,v)},$$slots:{default:!0}})},$$slots:{popup:!0}}),oe(),r()}var AH=F("<!> <!>",1),PH=F('<div role="none" class="wrapper svelte-1adg8sx"><!></div>');const OH={hash:"svelte-1adg8sx",code:".wrapper.svelte-1adg8sx {display:contents;}.wrapper.svelte-1adg8sx button {border-radius:var(--sui-button-medium-border-radius) !important;}"};function fy(t,e){se(e,!0),Te(t,OH);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(e.currentView,"$currentView",n);let o=P(e,"disabled",3,!1),a=at(e,["$$slots","$$events","$$legacy","disabled","currentView"]);var c=PH(),u=R(c);const d=x(()=>i()("switch_view"));Tf(u,Zt({get disabled(){return o()},get"aria-label"(){return l(d)}},()=>a,{children:(h,f)=>{var p=AH(),g=M(p);const m=x(()=>s().type!=="grid"),b=x(()=>i()("list_view"));su(g,{get disabled(){return o()},get selected(){return l(m)},variant:"ghost",iconic:!0,get"aria-label"(){return l(b)},onSelect:()=>{e.currentView.update(k=>({...k,type:"list"}))},startIcon:k=>{nt(k,{name:"format_list_bulleted"})},$$slots:{startIcon:!0}});var _=D(g,2);const v=x(()=>s().type==="grid"),y=x(()=>i()("grid_view"));su(_,{get disabled(){return o()},get selected(){return l(v)},variant:"ghost",iconic:!0,get"aria-label"(){return l(y)},onSelect:()=>{e.currentView.update(k=>({...k,type:"grid"}))},startIcon:k=>{nt(k,{name:"grid_view"})},$$slots:{startIcon:!0}}),T(h,p)},$$slots:{default:!0}})),T(t,c),oe(),r()}var LH=F("<!> <!> <!> <!> <!> <!> <!>",1);function $H(t,e){se(e,!0);const[n,r]=me(),i=()=>z(el,"$listedAssets",n),s=()=>z(le,"$_",n),o=()=>z(cy,"$assetGroups",n),a=()=>z(k5,"$sortFields",n),c=()=>z(ts,"$currentView",n),u=x(()=>!!i().length),d=x(()=>i().length>1),h=x(()=>s()("asset_list"));Ks(t,{variant:"secondary",get"aria-label"(){return l(h)},children:(f,p)=>{var g=LH(),m=M(g);const b=x(()=>Object.values(o()).flat(1));GC(m,{get allItems(){return l(b)},selectedItems:kd});var _=D(m,2);Wr(_,{flex:!0});var v=D(_,2);const y=x(()=>!l(d));KC(v,{get disabled(){return l(y)},currentView:ts,get fields(){return a()},"aria-controls":"asset-list"});var w=D(v,2);const k=x(()=>s()("type")),S=x(()=>!l(d)),C=x(()=>s()("all")),E=x(()=>DB.map(W=>({label:s()(W),field:"fileType",pattern:W})));WC(w,{get label(){return l(k)},get disabled(){return l(S)},currentView:ts,get noneLabel(){return l(C)},get filters(){return l(E)},"aria-controls":"asset-list"});var A=D(w,2);const O=x(()=>!l(u));fy(A,{get disabled(){return l(O)},currentView:ts,"aria-controls":"asset-list"});var $=D(A,2);Sr($,{orientation:"vertical"});var N=D($,2);const I=x(()=>!l(u)),j=x(()=>!!c().showInfo),q=x(()=>!!c().showInfo),B=x(()=>s()(c().showInfo?"hide_info":"show_info"));Xe(N,{variant:"ghost",iconic:!0,get disabled(){return l(I)},get pressed(){return l(j)},"aria-controls":"asset-info",get"aria-expanded"(){return l(q)},get"aria-label"(){return l(B)},onclick:()=>{ts.update(G=>({...G,showInfo:!c().showInfo}))},startIcon:G=>{nt(G,{name:"info"})},$$slots:{startIcon:!0}}),T(f,g)},$$slots:{default:!0}}),oe(),r()}var NH=F('<!> <div role="none" class="main-inner svelte-1fpggxh"><div role="none" class="main-inner-main svelte-1fpggxh"><!> <!></div> <!></div>',1);const IH={hash:"svelte-1fpggxh",code:'.main-inner.svelte-1fpggxh {flex:auto;display:flex;overflow:hidden;}.main-inner.svelte-1fpggxh .main-inner-main:where(.svelte-1fpggxh) {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.main-inner.svelte-1fpggxh .secondary-sidebar {flex:none;overflow:auto;box-sizing:content-box;border-top-left-radius:16px;width:320px;background-color:var(--sui-secondary-background-color);}.main-inner.svelte-1fpggxh .secondary-sidebar [role="listbox"] {padding:12px;}'};function YC(t,e){Te(t,IH);let n=P(e,"primaryToolbar",3,void 0),r=P(e,"secondaryToolbar",3,void 0),i=P(e,"mainContent",3,void 0),s=P(e,"secondarySidebar",3,void 0);var o=NH(),a=M(o);Re(a,()=>n()??Fe);var c=D(a,2),u=R(c),d=R(u);Re(d,()=>r()??Fe);var h=D(d,2);Re(h,()=>i()??Fe);var f=D(u,2);Re(f,()=>s()??Fe),T(t,o)}var RH=F("<!> <!>",1),DH=F('<div role="none" id="page-container" class="outer svelte-6friv7"><!></div>');const MH={hash:"svelte-6friv7",code:'.outer.svelte-6friv7 {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.outer[inert].svelte-6friv7 {display:none;}.outer.svelte-6friv7 > [role="toolbar"] {flex:none;}.outer.svelte-6friv7 > [role="toolbar"] [role="search"] {flex:auto;width:auto;max-width:480px;}.outer.svelte-6friv7 .browser {flex:auto;display:flex;overflow:hidden;}.outer.svelte-6friv7 .primary-sidebar {display:flex;flex-direction:column;flex:none;width:240px;overflow-y:auto;}.outer.svelte-6friv7 .primary-sidebar [role="radiogroup"] {width:100%;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] {margin:8px;border-width:0;background-color:transparent;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:left;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button span {flex:none;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button .label {flex:auto;overflow:hidden;text-overflow:ellipsis;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button .icon {transition:color 200ms;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button .icon.check {display:none;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button .count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button:not(:first-child) {margin-top:4px;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button:not(:focus) {border-color:transparent;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] [role="option"][aria-selected="true"] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] [role="option"][aria-selected="true"] .count {color:var(--sui-highlighted-foreground-color);}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] [role="option"].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}.outer.svelte-6friv7 .primary-sidebar .sui.divider {margin:8px 0;}.outer.svelte-6friv7 .main {flex:auto;display:flex;flex-direction:column;overflow:hidden;border-top-left-radius:16px;background-color:var(--sui-primary-background-color);}.outer.svelte-6friv7 .main .primary.global[role="toolbar"] {justify-content:center;}'};function Md(t,e){Te(t,MH);const[n,r]=me(),i=()=>z(wC,"$hasOverlay",n);let s=P(e,"class",3,""),o=P(e,"primarySidebar",3,void 0),a=P(e,"main",3,void 0),c=at(e,["$$slots","$$events","$$legacy","class","primarySidebar","main"]);var u=DH(),d=R(u);mr(d,Zt({get class(){return`browser ${s()??""}`}},()=>c,{children:(h,f)=>{var p=RH(),g=M(p);Re(g,()=>o()??Fe);var m=D(g,2);Re(m,()=>a()??Fe),T(h,p)},$$slots:{default:!0}})),H(()=>u.inert=i()),T(t,u),r()}var FH=F("<!> <!> <!> <!> <!> <!> <!> <!>",1);function zH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Qr,"$selectedAssetFolder",n),s=()=>z(ci,"$allAssetFolders",n),o=()=>z(el,"$listedAssets",n),a=()=>z(le,"$_",n),c=()=>z(Ko,"$overlaidAsset",n),u=()=>z(Qt,"$allAssets",n),d=()=>z(Zo,"$assetUpdatesToast",n),h=/^\/assets(?:\/(?<folderPath>[/\-\w]+))?(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?$/,f=x(()=>ly(i()?.internalPath)),p=async()=>{const{path:E}=Ld(),A=E.match(h);if(!A?.groups)return;const{folderPath:O,fileName:$}=A.groups;if(!O)ot(Qr,void 0);else if(i()?.internalPath!==O){const N=s().find(({internalPath:I})=>O===I);N&&ot(Qr,N)}if(!$){const N=o().length;await dn(100),ot($s,a()(N>1?"viewing_x_asset_folder_many_assets":N===1?"viewing_x_asset_folder_one_asset":"viewing_x_asset_folder_no_assets",{values:{folder:l(f),count:N}}));return}ot(Ko,$?u().find(N=>N.path===`${O}/${$}`):void 0),ot($s,c()?a()("viewing_x_asset_details",{values:{name:c().name}}):a()("file_not_found")),ot(Go,!0)};on(()=>{p()});var g=FH();vi("hashchange",al,()=>{p()});var m=M(g);const b=x(()=>a()("asset_library"));Md(m,{class:"media",get"aria-label"(){return l(b)},primarySidebar:O=>{mH(O,{})},main:O=>{const $=x(()=>a()("x_asset_folder",{values:{folder:l(f)}}));mr(O,{id:"assets-container",class:"main",get"aria-label"(){return l($)},children:(N,I)=>{YC(N,{primaryToolbar:G=>{wH(G,{})},secondaryToolbar:G=>{var J=V(),ne=M(J);{var K=Y=>{$H(Y,{})};U(ne,Y=>{o().length&&Y(K)})}T(G,J)},mainContent:G=>{hH(G,{})},secondarySidebar:G=>{kH(G,{})},$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})},$$slots:{default:!0}})},$$slots:{primarySidebar:!0,main:!0}});var _=D(m,2);D5(_,{});var v=D(_,2);z5(v,{});var y=D(v,2);q5(y,{});var w=D(y,2);Hn(w,{get show(){return d().saved},set show(E){Ct(Zo,Ee(d).saved=E,Ee(d))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()(d().published?d().count===1?"asset_saved_and_published":"assets_saved_and_published":d().count===1?"asset_saved":"assets_saved",{values:{count:d().count}})]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var k=D(w,2);Hn(k,{get show(){return d().moved},set show(E){Ct(Zo,Ee(d).moved=E,Ee(d))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()(d().count===1?"asset_moved":"assets_moved",{values:{count:d().count}})]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var S=D(k,2);Hn(S,{get show(){return d().renamed},set show(E){Ct(Zo,Ee(d).renamed=E,Ee(d))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()(d().count===1?"asset_renamed":"assets_renamed",{values:{count:d().count}})]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=D(S,2);Hn(C,{get show(){return d().deleted},set show(E){Ct(Zo,Ee(d).deleted=E,Ee(d))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()(d().count===1?"asset_deleted":"assets_deleted",{values:{count:d().count}})]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,g),oe(),r()}var jH=F('<div role="none"><!></div> <!>',1);function UH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Ps,"$uploadingAssets",n),s=()=>z(Go,"$showAssetOverlay",n),o=()=>z(b5,"$showUploadAssetsConfirmDialog",n),a=()=>z(le,"$_",n),c=x(()=>i().files),u=x(()=>i().folder),d=x(()=>i().originalAsset);let h=ae(ie([]));Be(()=>{L(h,ie([...l(c)]))}),Be(()=>{s()||ot(Ps,{folder:void 0,files:[]})});const f=x(()=>a()(l(d)?"replace_asset":"upload_assets")),p=x(()=>a()(l(d)?"replace":"upload"));kl(t,{get open(){return o()},get title(){return l(f)},get okLabel(){return l(p)},onOk:async()=>{await jC(i(),{commitType:"uploadMedia"}),ot(Ps,{folder:void 0,files:[]})},onCancel:()=>{ot(Ps,{folder:void 0,files:[]})},children:(g,m)=>{var b=jH(),_=M(b),v=R(_);{var y=S=>{var C=We();H(E=>Z(C,E),[()=>a()("confirm_replacing_file",{values:{name:l(d).name}})]),T(S,C)},w=S=>{var C=We();H(E=>Z(C,E),[()=>a()(l(h).length===1?"confirm_uploading_file":"confirm_uploading_files",{values:{count:l(h).length,folder:`/${l(u)}`}})]),T(S,C)};U(v,S=>{l(d)?S(y):S(w,!1)})}var k=D(_,2);HC(k,{get files(){return l(h)},set files(S){L(h,ie(S))}}),T(g,b)},$$slots:{default:!0}}),oe(),r()}function BH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Ps,"$uploadingAssets",n),s=()=>z(Qr,"$selectedAssetFolder",n),o=()=>z(A_,"$globalAssetFolder",n),a=()=>z(Qa,"$showUploadAssetsDialog",n),c=()=>z(Go,"$showAssetOverlay",n),u=()=>z(le,"$_",n);let d=ae(void 0);const h=x(()=>i().originalAsset),f=x(()=>!l(h)),p=x(()=>l(h)?Do.getType(l(h).name)??void 0:void 0),g=y=>{y.length&&(ot(Ps,{folder:l(h)?l(h).folder:s()?.internalPath||o()?.internalPath,files:y,originalAsset:l(h)}),ot(Qa,!1))};Be(()=>{!Dp()&&a()&&l(d)?.open()}),Be(()=>{c()||ot(Qa,!1)});var m=V(),b=M(m);{var _=y=>{const w=x(()=>l(h)?u()("replace_x",{values:{name:l(h).name}}):u()("upload_assets"));ps(y,{get title(){return l(w)},showOk:!1,get open(){return Sw(),a()},set open(k){ot(Qa,k)},children:(k,S)=>{Rd(k,{showUploadButton:!0,get accept(){return l(p)},get multiple(){return l(f)},onSelect:({files:C})=>{g(C)}})},$$slots:{default:!0}})},v=y=>{Tt(VC(y,{get accept(){return l(p)},get multiple(){return l(f)},onSelect:({files:w})=>{g(w)}}),w=>L(d,ie(w)),()=>l(d))};U(b,y=>{Dp()?y(_):y(v,!1)})}T(t,m),oe(),r()}var qH=F('<div role="blockquote" class="svelte-soravq"><pre class="svelte-soravq"> </pre></div>');const HH={hash:"svelte-soravq",code:"div.svelte-soravq {flex:auto;overflow:auto;}pre.svelte-soravq {margin:0;padding:16px;}"};function VH(t,e){se(e,!0),Te(t,HH);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(_t,"$siteConfig",n),o=x(()=>i()("site_configuration_editor"));Md(t,{class:"content",get"aria-label"(){return l(o)},main:c=>{var u=qH(),d=R(u),h=R(d);H((f,p)=>{Se(u,"aria-label",f),Z(h,p)},[()=>i()("site_config"),()=>cd.stringify(s())]),T(c,u)},$$slots:{main:!0}}),oe(),r()}var WH=F("<!> <!> <!> <!>",1);function GH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Xp,"$restoreDialogState",n),s=()=>z(Cn,"$appLocale",n),o=()=>z(Ya,"$showContentOverlay",n),a=()=>z(le,"$_",n),c=()=>z(Jo,"$backupToastState",n),u=x(()=>new Date),d=x(()=>i().resolve),h=x(()=>i().timestamp),f=x(()=>l(u).getUTCFullYear()===l(h)?.getUTCFullYear()),p=x(()=>l(f)&&l(u).getUTCMonth()===l(h)?.getUTCMonth()),g=x(()=>l(p)&&l(u).getUTCDate()===l(h)?.getUTCDate()),m=x(()=>l(h)?.toLocaleString(s()??void 0,{year:l(f)?void 0:"numeric",month:l(g)?void 0:"short",day:l(g)?void 0:"numeric",hour:"numeric",minute:"numeric"}));Be(()=>{!o()&&i().show&&(Ct(Xp,Ee(i).show=!1,Ee(i)),l(d)?.())});var b=WH(),_=M(b);const v=x(()=>a()("restore_backup_title")),y=x(()=>a()("restore")),w=x(()=>a()("discard"));kl(_,{get title(){return l(v)},get okLabel(){return l(y)},get cancelLabel(){return l(w)},onOk:()=>{l(d)?.(!0)},onCancel:()=>{l(d)?.(!1)},get open(){return i().show},set open(E){Ct(Xp,Ee(i).show=E,Ee(i))},children:(E,A)=>{var O=We();H($=>Z(O,$),[()=>a()("restore_backup_description",{values:{datetime:l(m)}})]),T(E,O)},$$slots:{default:!0}});var k=D(_,2);Hn(k,{get show(){return c().saved},set show(E){Ct(Jo,Ee(c).saved=E,Ee(c))},children:(E,A)=>{qn(E,{status:"info",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()("draft_backup_saved")]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var S=D(k,2);Hn(S,{get show(){return c().restored},set show(E){Ct(Jo,Ee(c).restored=E,Ee(c))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()("draft_backup_restored")]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=D(S,2);Hn(C,{get show(){return c().deleted},set show(E){Ct(Jo,Ee(c).deleted=E,Ee(c))},children:(E,A)=>{qn(E,{status:"info",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()("draft_backup_deleted")]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,b),oe(),r()}const KH="deepl",YH="DeepL",JH="https://www.deepl.com/pro-api",ZH="https://www.deepl.com/account/summary",XH=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?::fx)?/,QH=["AR","BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT","RO","RU","SK","SL","SV","TR","UK","ZH"],JC=["AR","BG","CS","DA","DE","EL","EN","EN-GB","EN-US","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT","PT-BR","PT-PT","RO","RU","SK","SL","SV","TR","UK","ZH","ZH-HANS","ZH-HANT"],ZC=t=>{const[e]=t.toUpperCase().split("-");if(QH.includes(e))return e},XC=t=>{let e=t.toUpperCase();if(JC.includes(e))return e;if(["ZH-CN","ZH-SG"].includes(e))return"ZH-HANS";if(["ZH-HK","ZH-MO","ZH-TW"].includes(e))return"ZH-HANT";if([e]=e.split("-"),JC.includes(e))return e},QC={serviceId:KH,serviceLabel:YH,developerURL:JH,apiKeyURL:ZH,apiKeyPattern:XH,getSourceLanguage:ZC,getTargetLanguage:XC,translate:async(t,{sourceLocale:e,targetLocale:n,apiKey:r})=>{const i=ZC(e),s=XC(n);if(!i)throw new Error("Source locale is not supported.");if(!s)throw new Error("Target locale is not supported.");const o=new URLSearchParams([...t.map(d=>["text",d]),["source_lang",i],["target_lang",s],["tag_handling","html"],["split_sentences","1"],["auth_key",r]]),c=`https://${r.endsWith(":fx")?"api-free.deepl.com":"api.deepl.com"}/v2/translate?${o.toString()}`,{translations:u}=await fetch(c).then(d=>d.json());return u.map(d=>d.text)}},eV={deepl:QC},ng=it(QC),eA=(t,e)=>{Object.entries(e).forEach(([n,r])=>{t[n]!==r&&(t[n]=r)}),Object.keys(t).forEach(n=>{n in e||delete t[n]})},tA=(t,e)=>{const n=new RegExp(`^${an(e)}\\b(?!#)`),r=Object.entries(t).filter(([i])=>n.test(i)).map(([i,s])=>[i.replace(n,"_"),s]).sort();return[Fa(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(t).filter(([i])=>!n.test(i)))]},nA=(t,e,n)=>{const r=te(st),{collection:i,collectionFile:s}=r,{defaultLocale:o}=(s??i)._i18n,[a,c]=tA(r.currentValues[t],e),[u,d]=t===o?tA(r.expanderStates._,e):[[],[]];n({valueList:a,expanderStateList:u}),es.set(!1),st.update(h=>(eA(h.currentValues[t],{...Ma({[e]:a}),...c}),t===o&&eA(h.expanderStates._,{...Ma({[e]:u}),...d}),h)),es.set(!0)},rA=t=>{const e=te(st),{collectionName:n,fileName:r,collection:i,collectionFile:s}=e,{defaultLocale:o}=(s??i)._i18n,a=e.currentValues[o],c=ec([...Object.keys(t),...Object.keys(a)]),u={};return c.forEach(d=>{const h=gn({collectionName:n,fileName:r,keyPath:d})?.i18n==="duplicate";u[d]=(h?a[d]:void 0)??t[d]}),u},iA=t=>{st.update(e=>{const{currentLocales:n,currentValues:r,validities:i}=e,s=!n[t];if(s&&!r[t]){const{collection:o,collectionName:a,collectionFile:c,fileName:u,originalValues:d}=e,{fields:h=[]}=c??o,f=Zp(h,t);return{...e,currentLocales:{...n,[t]:s},originalValues:{...d,[t]:f},currentValues:{...r,[t]:sy({draft:{collectionName:a,fileName:u},locale:t,target:rA(f)})}}}return{...e,currentLocales:{...n,[t]:s},validities:{...i,[t]:{}}}})},sA=async(t,e,{keyPath:n="",translate:r=!1}={})=>{const{collectionName:i,fileName:s,currentValues:o}=te(st),a=o[t],c=Object.fromEntries(Object.entries(a).filter(([p,g])=>{const m=o[e][p],b=gn({collectionName:i,fileName:s,valueMap:a,keyPath:p});return!(n&&!p.startsWith(n)||typeof g!="string"||!g||!["markdown","text","string","list"].includes(b?.widget??"string")||b?.widget==="list"&&(b.field??b.fields)||!r&&g===m||!n&&r&&m)})),u=Object.keys(c).length,d=u===1?"one":"many",h=r?"translation":"copy",f=(p,g)=>{Q_.set({id:Date.now(),show:!0,status:p,message:g,count:u,sourceLocale:t})};if(!u){f("info",`${h}.none`);return}if(r){const p=te(ng),g=te(St).apiKeys?.[p.serviceId]||await new Promise(m=>{Od.set({show:!0,multiple:u>1,resolve:m})});if(!g)return;f("info","translation.started");try{const m=await p.translate(Object.values(c),{apiKey:g,sourceLocale:t,targetLocale:e});Object.keys(c).forEach((b,_)=>{o[e][b]=m[_]}),f("success",`translation.complete.${d}`)}catch(m){f("error","translation.error"),console.error(m)}}else Object.entries(c).forEach(([p,g])=>{o[e][p]=g}),f("success",`copy.complete.${d}`);st.update(p=>({...p,currentValues:o}))},hy=(t="",e="")=>{const{collection:n,collectionFile:r,fileName:i,currentValues:s,originalValues:o}=te(st),{allLocales:a,defaultLocale:c}=(r??n)._i18n,u=t?[t]:a,d=(h,f,p=!1)=>{Object.entries(f).forEach(([g,m])=>{if(!e||g.startsWith(e)){const b=gn({collectionName:n.name,fileName:i,valueMap:f,keyPath:g});(h===c||[!0,"translate"].includes(b?.i18n??!1))&&(p?delete s[h][g]:s[h][g]=m)}})};u.forEach(h=>{d(h,s[h],!0),d(h,o[h],!1)}),st.update(h=>({...h,currentValues:s}))};function tV(t,e){let n=P(e,"currentValue",15,!1),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),s=P(e,"invalid",3,!1);du(t,{get readonly(){return i()},get required(){return r()},get invalid(){return s()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get checked(){return n()},set checked(o){n(o)}})}var nV=F("<p> </p>");function rV(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"currentValue",3,!1);var o=V(),a=M(o);{var c=u=>{var d=nV(),h=R(d);H(f=>Z(h,f),[()=>i()(`boolean.${s()}`)]),T(u,d)};U(a,u=>{typeof s()=="boolean"&&u(c)})}T(t,o),oe(),r()}function iV(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);let s=P(e,"currentValue",15),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1),u=ae(""),d=ae("");const h=x(()=>tt(e.fieldConfig.default_language,"")),f=x(()=>tt(e.fieldConfig.allow_language_selection,!0)),p=x(()=>tt(e.fieldConfig.output_code_only,!1)),g=x(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),m=x(()=>wr(i()?.currentValues[e.locale])??{}),b=x(()=>`${e.keyPath}.${l(g).code}`),_=x(()=>`${e.keyPath}.${l(g).lang}`),v=()=>{if(l(p))typeof s()!="string"?L(u,""):l(u)!==s()&&L(u,ie(s()));else{const w=l(m)[l(b)],k=l(m)[l(_)]||l(h);typeof w!="string"?L(u,""):l(u)!==w&&L(u,ie(w)),typeof k!="string"?L(d,""):l(d)!==k&&L(d,ie(k))}},y=()=>{l(p)?s()!==l(u)&&s(l(u)):i()&&(s({}),l(m)[l(b)]!==l(u)&&Ct(st,Ee(i).currentValues[e.locale][l(b)]=l(u),Ee(i)),l(m)[l(_)]!==l(d)&&Ct(st,Ee(i).currentValues[e.locale][l(_)]=l(d),Ee(i)))};Be(()=>{l(m),Ee(()=>{v()})}),Be(()=>{l(u),l(d),Ee(()=>{y()})}),OM(t,{get showLanguageSwitcher(){return l(f)},flex:!0,get readonly(){return a()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get code(){return l(u)},set code(w){L(u,ie(w))},get lang(){return l(d)},set lang(w){L(d,ie(w))}}),oe(),r()}var sV=F("<pre> </pre>");function oV(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=x(()=>tt(e.fieldConfig.default_language,"")),o=x(()=>tt(e.fieldConfig.output_code_only,!1)),a=x(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),c=x(()=>wr(i()?.currentValues[e.locale])??{}),u=x(()=>`${e.keyPath}.${l(a).code}`),d=x(()=>`${e.keyPath}.${l(a).lang}`),h=x(()=>l(o)?e.currentValue:l(c)[l(u)]),f=x(()=>l(o)?l(s):l(c)[l(d)]);var p=V(),g=M(p);{var m=b=>{var _=sV(),v=R(_);H(()=>{Ir(_,_w(l(f)?`language-${l(f)}`:void 0)),Z(v,l(h))}),T(b,_)};U(g,b=>{l(h)&&b(m)})}T(t,p),oe(),r()}var aV=F(" <!>",1),lV=F('<span role="none" class="value svelte-s59zhj"><!> <!></span>'),cV=F('<div role="none" class="svelte-s59zhj"><input type="color" class="svelte-s59zhj"> <!> <!></div>');const uV={hash:"svelte-s59zhj",code:"div.svelte-s59zhj {display:flex;align-items:center;gap:8px;}div.svelte-s59zhj .value:where(.svelte-s59zhj) {display:flex;align-items:center;gap:8px;}div.svelte-s59zhj .value:where(.svelte-s59zhj) .sui.text-input {width:80px;min-width:0;}div.svelte-s59zhj .value:where(.svelte-s59zhj) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-s59zhj {font-family:var(--sui-textbox-font-family);}"};function dV(t,e){se(e,!0),Te(t,uV);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"currentValue",15,""),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1),u=ae(""),d=ae(255);const h=x(()=>tt(e.fieldConfig.allowInput,!1)),f=x(()=>tt(e.fieldConfig.enableAlpha,!1)),p=Zn("color"),g=/^#[0-9a-f]{6}$/,m=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/,b=()=>{if(typeof s()!="string")return;const{rgb:E,a:A="ff"}=s().match(m)?.groups??{};if(E&&l(u)!==E&&L(u,ie(E)),E&&l(f)){const O=Number.parseInt(`0x${A}`,16);l(d)!==O&&L(d,ie(O))}},_=()=>{let E=g.test(l(u))?l(u):"";E&&l(f)&&(E+=l(d).toString(16).padStart(2,"0")),s()!==E&&s(E)};Be(()=>{s(),Ee(()=>{b()})}),Be(()=>{l(u),l(d),Ee(()=>{_()})});var v=cV(),y=R(v);Se(y,"id",`${p??""}-picker`);var w=D(y,2);{var k=E=>{var A=lV(),O=R(A);{var $=j=>{An(j,{id:`${p??""}-input`,get invalid(){return c()},get readonly(){return a()},get required(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(u)},set value(q){L(u,ie(q))}})};U(O,j=>{l(h)&&j($)})}var N=D(O,2);{var I=j=>{var q=aV(),B=M(q),W=D(B);const G=x(()=>!l(u)),J=x(()=>i()("opacity"));_N(W,{min:0,max:255,get disabled(){return l(G)},get"aria-label"(){return l(J)},get value(){return l(d)},set value(ne){L(d,ie(ne))}}),H(ne=>Z(B,`${ne??""} `),[()=>i()("opacity")]),T(j,q)};U(N,j=>{l(f)&&j(I)})}T(E,A)};U(w,E=>{(l(h)||l(f))&&E(k)})}var S=D(w,2);{var C=E=>{const A=x(()=>i()("clear")),O=x(()=>!l(u)),$=x(()=>`${p}-picker ${l(h)?`${p}-input`:""}`);Xe(E,{variant:"tertiary",get label(){return l(A)},get disabled(){return l(O)},get"aria-controls"(){return l($)},onclick:()=>{L(u,""),L(d,255)}})};U(S,E=>{!a()&&!o()&&E(C)})}H(()=>{y.readOnly=a(),Se(y,"aria-invalid",c()),Se(y,"aria-readonly",a()),Se(y,"aria-required",o()),Se(y,"aria-labelledby",`${e.fieldId??""}-label`),Se(y,"aria-errormessage",`${e.fieldId??""}-error`)}),ff(y,()=>l(u),E=>L(u,E)),T(t,v),oe(),r()}var fV=F('<p><span role="none" class="preview svelte-16cruwo"><span role="none" class="color svelte-16cruwo"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>');const hV={hash:"svelte-16cruwo",code:".preview.svelte-16cruwo {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-16cruwo .color:where(.svelte-16cruwo) {display:block;width:24px;height:24px;border-radius:24px;}"};function pV(t,e){se(e,!0),Te(t,hV);const n=x(()=>tt(e.fieldConfig.enableAlpha,!1)),r=u=>Number.parseInt(`0x${u}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/,s=x(()=>{const{r:u,g:d,b:h,a:f}=e.currentValue?.match(i)?.groups??{};return u?`rgb(${r(u)} ${r(d)} ${r(h)}${l(n)&&f?` / ${Math.round(r(f)/255*100)}%`:""})`:""});var o=V(),a=M(o);{var c=u=>{var d=fV(),h=R(d),f=R(h),p=D(f,2),g=R(p),m=D(p,2),b=R(m);H(()=>{Vr(f,"background-color",e.currentValue),Z(g,e.currentValue),Z(b,l(s))}),T(u,d)};U(a,u=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&u(c)})}T(t,o),oe()}function gV(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);let s=P(e,"currentValue",15),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1);const u=x(()=>tt(e.fieldConfig.value,"")),d=x(()=>i()?.collectionName??""),h=x(()=>i()?.fileName),f=x(()=>wr(i()?.currentValues[e.locale])??{}),p=x(()=>bc(e.locale)),g=()=>{const[_]=e.keyPath.split(".").splice(-2,1);return _?.match(/^\d+$/)?Number(_):void 0},m=()=>{if(!Object.keys(l(f)).includes(e.keyPath))return;const _=l(u)==="{{index}}"?g()??"":l(u).replaceAll(/{{(.+?)}}/g,(v,y)=>{if(y==="index")return String(g()??"");if(!y.startsWith("fields."))return"";const w=Rp({collectionName:l(d),fileName:l(h),valueMap:l(f),keyPath:y.replace(/^fields\./,""),locale:e.locale});return Array.isArray(w)?l(p).format(w):String(w)});s()!==_&&s(_)};Be(()=>{l(f),Ee(()=>{m()})});const b=x(()=>String(s()));An(t,{get value(){return l(b)},flex:!0,get readonly(){return a()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`}}),oe(),r()}var mV=F('<p dir="auto"> </p>');function vV(t,e){var n=mV(),r=R(n);H(()=>{Se(n,"lang",e.locale),Z(r,e.currentValue),n.dir=n.dir}),T(t,n)}var bV=F('<span role="none" class="utc svelte-13u8gbo">UTC</span>'),_V=F('<div role="none" class="svelte-13u8gbo"><input> <!> <!> <!></div>');const yV={hash:"svelte-13u8gbo",code:"div.svelte-13u8gbo {display:flex;align-items:center;}.utc.svelte-13u8gbo {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function wV(t,e){se(e,!0),Te(t,yV);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"currentValue",15),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1),u=ae("");const d=x(()=>qa(e.fieldConfig)),h=x(()=>l(d).dateOnly),f=x(()=>l(d).timeOnly),p=x(()=>l(d).utc),g=()=>{const E=pB(s(),e.fieldConfig);E!==void 0&&E!==l(u)&&L(u,ie(E))},m=()=>{const E=g_(l(u),s(),e.fieldConfig);E!==void 0&&E!==s()&&Number(Ac(E,e.fieldConfig))!==Number(Ac(s(),e.fieldConfig))&&s(E)};Be(()=>{s(),Ee(()=>{g()})}),Be(()=>{l(u),Ee(()=>{m()})});var b=_V(),_=R(b),v=D(_,2);{var y=E=>{var A=bV();T(E,A)};U(v,E=>{l(p)&&E(y)})}var w=D(v,2);{var k=E=>{const A=x(()=>i()(l(h)?"today":"now"));Xe(E,{variant:"tertiary",get label(){return l(A)},onclick:()=>{s(g_(NT(e.fieldConfig),"",e.fieldConfig))}})};U(w,E=>{a()||E(k)})}var S=D(w,2);{var C=E=>{const A=x(()=>i()("clear")),O=x(()=>!s());Xe(E,{variant:"tertiary",get label(){return l(A)},get disabled(){return l(O)},onclick:()=>{s("")}})};U(S,E=>{!a()&&!o()&&E(C)})}H(()=>{Se(_,"type",l(h)?"date":l(f)?"time":"datetime-local"),_.readOnly=a(),Se(_,"aria-readonly",a()),Se(_,"aria-required",o()),Se(_,"aria-invalid",c()),Se(_,"aria-labelledby",`${e.fieldId??""}-label`),Se(_,"aria-errormessage",`${e.fieldId??""}-error`)}),ff(_,()=>l(u),E=>L(u,E)),T(t,b),oe(),r()}var xV=F("<time><!></time>"),kV=F('<p dir="auto"><!> <!></p>');function SV(t,e){se(e,!0);const n=x(()=>qa(e.fieldConfig)),r=x(()=>l(n).dateOnly),i=x(()=>l(n).timeOnly),s=x(()=>l(n).utc),o=x(()=>Ac(e.currentValue,e.fieldConfig)),a=x(()=>hp(e.locale)),c=/^\d{4}-[01]\d-[0-3]\d$/,u=/T00:00(?::00)?(?:\.000)?Z$/;var d=V(),h=M(d);{var f=p=>{var g=kV(),m=R(g);{var b=w=>{var k=We();H(S=>Z(k,S),[()=>l(o).toLocaleTimeString(l(a),ry)]),T(w,k)},_=w=>{var k=xV(),S=R(k);{var C=A=>{var O=We();H($=>Z(O,$),[()=>l(o).toLocaleDateString(l(a),{...ny,timeZone:l(s)||l(r)&&e.currentValue?.match(c)||l(r)&&e.currentValue?.match(u)?"UTC":void 0})]),T(A,O)},E=A=>{var O=We();H($=>Z(O,$),[()=>l(o).toLocaleString(l(a),{...ny,...ry,timeZone:l(s)?"UTC":void 0,timeZoneName:l(s)?void 0:"short"})]),T(A,O)};U(S,A=>{l(r)?A(C):A(E,!1)})}H(A=>Se(k,"datetime",A),[()=>l(o).toJSON()]),T(w,k)};U(m,w=>{l(i)?w(b):w(_,!1)})}var v=D(m,2);{var y=w=>{var k=We("UTC");T(w,k)};U(v,w=>{l(s)&&w(y)})}H(()=>{Se(g,"lang",e.locale),g.dir=g.dir}),T(p,g)};U(h,p=>{l(o)&&p(f)})}T(t,d),oe()}_2();var EV=F('<div role="none" class="wrapper svelte-j0kdh9"><!></div>');const TV={hash:"svelte-j0kdh9",code:'.wrapper.svelte-j0kdh9 {display:contents;}.wrapper.svelte-j0kdh9 .listbox {gap:4px;overflow-x:hidden;overflow-y:auto;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);}.wrapper.svelte-j0kdh9 .listbox .option button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;}.wrapper.svelte-j0kdh9 .listbox .option button:focus-visible {outline-color:transparent;}.wrapper.svelte-j0kdh9 .listbox .option button .preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1/1;object-fit:contain;}.wrapper.svelte-j0kdh9 .listbox .option button[aria-selected="true"] .icon {display:none;}.wrapper.svelte-j0kdh9 .listbox .name {display:-webkit-box;min-height:calc(var(--sui-font-size-default) * 2);-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;line-height:var(--sui-line-height-compact);}.wrapper.svelte-j0kdh9 .listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;}.wrapper.svelte-j0kdh9 .listbox.grid .option button {flex-direction:column;justify-content:flex-start;}.wrapper.svelte-j0kdh9 .listbox.grid .option button .preview {width:100%;height:auto;}.wrapper.svelte-j0kdh9 .listbox.grid .option button .name {flex:none;padding:4px 8px 12px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);}.wrapper.svelte-j0kdh9 .listbox.grid button[aria-selected="true"] .preview {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}.wrapper.svelte-j0kdh9:not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;left:-99999px;}.wrapper.svelte-j0kdh9 .listbox.list .option button {gap:16px;}.wrapper.svelte-j0kdh9 .listbox.list .option button .preview {width:64px;}.wrapper.svelte-j0kdh9 .listbox.list .option button .name {flex:auto;}.wrapper.svelte-j0kdh9 .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 oA(t,e){se(e,!0),Te(t,TV);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"viewType",3,"grid"),o=P(e,"gridId",3,void 0),a=P(e,"showTitle",3,!1),c=P(e,"onChange",3,void 0),u=P(e,"children",3,void 0);var d=EV(),h=R(d);const f=x(()=>i()("assets_dialog.available_images"));lu(h,{get id(){return o()},get class(){return s()},get"aria-label"(){return l(f)},onChange:p=>{c()?.(p.detail)},children:(p,g)=>{var m=V(),b=M(m);Re(b,()=>u()??Fe),T(p,m)},$$slots:{default:!0}}),H(()=>ft(d,"show-title",a())),T(t,d),oe(),r()}var CV=F('<span role="alert"> </span>'),AV=F('<span role="alert"> </span>'),PV=F('<span role="alert"> </span>'),OV=F('<!> <span role="none" class="name"> </span>',1),LV=F('<div role="none" class="input-outer svelte-t9mjci"><!></div>'),$V=F('<div role="none" class="input-outer svelte-t9mjci"><!></div> <div role="none" class="input-outer svelte-t9mjci"><!></div> <div role="none" class="input-outer svelte-t9mjci"><!></div>',1),NV=F('<p role="alert" class="svelte-t9mjci"><!> <!></p> <!> <!>',1),IV=F('<span role="alert"> </span>');const RV={hash:"svelte-t9mjci",code:"p.svelte-t9mjci {margin:0 0 8px;}.input-outer.svelte-t9mjci {width:400px;text-align:center;}"};function aA(t,e){se(e,!0),Te(t,RV);const[n,r]=me(),i=()=>z(St,"$prefs",n),s=()=>z(le,"$_",n),o=()=>z(Ic,"$selectAssetsView",n);let a=P(e,"kind",3,"image"),c=P(e,"searchTerms",3,""),u=P(e,"gridId",3,void 0),d=P(e,"onSelect",3,void 0);const h=x(()=>tt(e.serviceProps.serviceType,"stock_photos")),f=x(()=>tt(e.serviceProps.serviceId,"")),p=x(()=>tt(e.serviceProps.serviceLabel,"")),g=x(()=>tt(e.serviceProps.hotlinking,!1)),m=x(()=>tt(e.serviceProps.authType,"api_key")),b=x(()=>tt(e.serviceProps.developerURL,"")),_=x(()=>tt(e.serviceProps.apiKeyURL,"")),v=x(()=>e.serviceProps.apiKeyPattern),y=x(()=>e.serviceProps.init),w=x(()=>e.serviceProps.signIn),k=x(()=>e.serviceProps.search),S=ie({userName:"",password:""});let C=ae(!0),E=ae(!1),A=ae(""),O=ae(""),$=ae(""),N=ae("initial"),I=ae(null),j=ae(void 0),q=0;const B=async(Y="")=>{L(I,null);try{L(I,ie(await l(k)(Y,{kind:a(),apiKey:l(A),userName:l(O),password:l($)})))}catch(re){L(j,"search_fetch_failed"),console.error(re)}},W=async Y=>{const{downloadURL:re,fileName:ce,credit:he}=Y;if(l(g)){d()?.({url:re,credit:he});return}try{const Q=await fetch(re),{ok:X,status:de}=Q;if(!X)throw new Error(`The response returned with HTTP status ${de}.`);const _e=await Q.blob(),ve=new File([_e],ce,{type:_e.type});d()?.({file:ve,credit:he})}catch(Q){L(j,"image_fetch_failed"),console.error(Q)}};on(()=>{(async()=>(typeof l(y)=="function"&&(L(C,!1),L(C,ie(await l(y)()))),l(C)&&(L(A,ie(i().apiKeys?.[l(f)]??"")),(Y=>(L(O,ie(Y[0])),L($,ie(Y[1]))))((i().logins?.[l(f)]??"").split(" ")),L(E,ie(!!l(A)||!!l($))),L(I,null),l(E)&&B())))()}),Be(()=>{c(),window.clearTimeout(q),q=window.setTimeout(()=>{l(E)&&B(c())},1e3)});var G=V(),J=M(G);{var ne=Y=>{var re=V(),ce=M(re);{var he=X=>{qr(X,{children:(de,_e)=>{var ve=CV(),be=R(ve);H(fe=>Z(be,fe),[()=>s()(`assets_dialog.error.${l(j)}`)]),T(de,ve)},$$slots:{default:!0}})},Q=X=>{var de=V(),_e=M(de);{var ve=fe=>{qr(fe,{children:(Oe,Ae)=>{var De=AV(),He=R(De);H(Ve=>Z(He,Ve),[()=>s()("searching")]),T(Oe,De)},$$slots:{default:!0}})},be=fe=>{var Oe=V(),Ae=M(Oe);{var De=Ve=>{qr(Ve,{children:(mt,et)=>{var ye=PV(),we=R(ye);H(xe=>Z(we,xe),[()=>s()("no_files_found")]),T(mt,ye)},$$slots:{default:!0}})},He=Ve=>{const mt=x(()=>o()?.type);oA(Ve,{get gridId(){return u()},get viewType(){return l(mt)},onChange:({value:et})=>{const ye=l(I)?.find(({id:we})=>we===et);ye&&W(ye)},children:(et,ye)=>{tl(et,{get items(){return l(I)},itemKey:"id",renderItem:(xe,ke=Fe)=>{const Ne=x(()=>{const{id:ge,previewURL:Ce,description:Ue,kind:Je}=ke();return{id:ge,previewURL:Ce,description:Ue,_kind:Je}});fr(xe,{label:"",get value(){return l(Ne).id},children:(ge,Ce)=>{var Ue=OV(),Je=M(Ue);Ns(Je,{get kind(){return l(Ne)._kind},get src(){return l(Ne).previewURL},variant:"tile",crossorigin:"anonymous"});var ut=D(Je,2),lt=R(ut);H(()=>Z(lt,l(Ne).description)),T(ge,Ue)},$$slots:{default:!0}})},$$slots:{renderItem:!0}})},$$slots:{default:!0}})};U(Ae,Ve=>{l(I).length?Ve(He,!1):Ve(De)},!0)}T(fe,Oe)};U(_e,fe=>{l(I)?fe(be,!1):fe(ve)},!0)}T(X,de)};U(ce,X=>{l(j)?X(he):X(Q,!1)})}T(Y,re)},K=Y=>{var re=V(),ce=M(re);{var he=X=>{qr(X,{children:(de,_e)=>{var ve=NV(),be=M(ve),fe=R(be);{var Oe=ye=>{var we=V(),xe=M(we);ur(xe,()=>oi.sanitize(s()("prefs.media.stock_photos.description",{values:{service:l(p),homeHref:`href="${l(b)}"`,apiKeyHref:`href="${l(_)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),T(ye,we)};U(fe,ye=>{l(h)==="stock_photos"&&ye(Oe)})}var Ae=D(fe,2);{var De=ye=>{var we=V(),xe=M(we);ur(xe,()=>oi.sanitize(s()(`cloud_storage.auth.${l(N)}`,{values:{service:l(p)}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),T(ye,we)};U(Ae,ye=>{l(h)==="cloud_storage"&&ye(De)})}var He=D(be,2);{var Ve=ye=>{var we=LV(),xe=R(we);const ke=x(()=>s()("prefs.media.stock_photos.field_label",{values:{service:l(p)}}));An(xe,{flex:!0,spellcheck:"false",get"aria-label"(){return l(ke)},oninput:Ne=>{const ge=Ne.target.value.trim();l(v)?.test(ge)&&(L(A,ie(ge)),L(E,!0),Ct(St,Ee(i).apiKeys??={},Ee(i)),Ct(St,Ee(i).apiKeys[l(f)]=l(A),Ee(i)),B())}}),T(ye,we)};U(He,ye=>{l(m)==="api_key"&&ye(Ve)})}var mt=D(He,2);{var et=ye=>{var we=$V(),xe=M(we),ke=R(xe);const Ne=x(()=>s()("user_name")),ge=x(()=>l(N)==="requested");An(ke,{flex:!0,spellcheck:"false",get"aria-label"(){return l(Ne)},get disabled(){return l(ge)},get value(){return S.userName},set value(Ht){S.userName=Ht}});var Ce=D(xe,2),Ue=R(Ce);const Je=x(()=>s()("password")),ut=x(()=>l(N)==="requested");nF(Ue,{get"aria-label"(){return l(Je)},get disabled(){return l(ut)},get value(){return S.password},set value(Ht){S.password=Ht}});var lt=D(Ce,2),Ke=R(lt);const rt=x(()=>s()("sign_in")),Et=x(()=>!S.userName||!S.password||l(N)==="requested");Xe(Ke,{variant:"secondary",get label(){return l(rt)},get disabled(){return l(Et)},onclick:async()=>{L(N,"requested"),S.userName=S.userName.trim(),S.password=S.password.trim(),await l(w)?.(S.userName,S.password)?(L(N,"success"),L(O,ie(S.userName)),L($,ie(S.password)),L(E,!0),Ct(St,Ee(i).logins??={},Ee(i)),Ct(St,Ee(i).logins[l(f)]=[l(O),l($)].join(" "),Ee(i)),B()):L(N,"error")}}),T(ye,we)};U(mt,ye=>{l(m)==="password"&&ye(et)})}T(de,ve)},$$slots:{default:!0}})},Q=X=>{qr(X,{children:(de,_e)=>{var ve=IV(),be=R(ve);H(fe=>Z(be,fe),[()=>s()("cloud_storage.invalid")]),T(de,ve)},$$slots:{default:!0}})};U(ce,X=>{l(C)?X(he):X(Q,!1)},!0)}T(Y,re)};U(J,Y=>{l(E)?Y(ne):Y(K,!1)})}T(t,G),oe(),r()}const Mc=it(""),Fd=t=>t.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase(),lA=dr([ei,Qt,Mc],([t,e,n],r)=>{const i=n?Fd(n):"",s=c=>Fd(c).includes(i),o=!t.length||!i?[]:t.map(c=>{let u=0;return ao(c).forEach(d=>{s(d.label||d.name)&&(u+=10),s(Ho(d,c,{useTemplate:!0,allowMarkdown:!0}))&&(u+=10),u+=Vo(d,c).filter(h=>s(h.label||h.name)).length,Object.values(c.locales).forEach(({content:h})=>{u+=Object.values(h).filter(f=>typeof f=="string"&&!!f&&s(f)).length})}),{entry:c,points:u}}).filter(({points:c})=>c>0).sort((c,u)=>u.points-c.points).map(c=>c.entry),a=!e.length||!i?[]:e.filter(c=>Fd(c.name).includes(i));r({entries:o,assets:a})}),cA=(t,e=Fe)=>{var n=V(),r=M(n);ur(r,()=>oi.sanitize(e().replace(/([-_.])/g,"$1<wbr>"),{ALLOWED_TAGS:["wbr"]})),T(t,n)};var DV=F('<strong class="svelte-7q7g7u"><!></strong>'),MV=F("<!>/",1),FV=F('<!> <span role="none" class="name svelte-7q7g7u"></span>',1),zV=F('<div role="none" class="grid-wrapper svelte-7q7g7u"><!></div>'),jV=F('<span role="none"> </span>');const UV={hash:"svelte-7q7g7u",code:'.grid-wrapper.svelte-7q7g7u {overflow-y:auto;height:100%;}.grid-wrapper.svelte-7q7g7u [role="listbox"] {background-color:transparent;}.name.svelte-7q7g7u {color:var(--sui-tertiary-foreground-color);}.name.svelte-7q7g7u strong:where(.svelte-7q7g7u) {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}'};function uA(t,e){se(e,!0),Te(t,UV);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"assets",19,()=>[]),o=P(e,"viewType",3,"grid"),a=P(e,"searchTerms",3,""),c=P(e,"basePath",3,void 0),u=P(e,"gridId",3,void 0),d=P(e,"checkerboard",3,!1),h=P(e,"onSelect",3,void 0);const f=x(()=>a()?s().filter(({name:_})=>Fd(_).includes(a())):s());var p=V(),g=M(p);{var m=_=>{var v=zV(),y=R(v);oA(y,{get gridId(){return u()},get viewType(){return o()},showTitle:!0,onChange:({value:w})=>{h()?.({asset:s().find(({path:k})=>k===w)})},children:(w,k)=>{tl(w,{get items(){return l(f)},itemKey:"path",renderItem:(C,E=Fe)=>{const A=x(()=>{const{kind:N,name:I,path:j}=E();return{kind:N,name:I,path:j}}),O=x(()=>c()?In(l(A).path.replace(c(),"")):l(A).name),$=x(()=>l(O).split("/"));fr(C,{label:"",get value(){return l(A).path},children:(N,I)=>{var j=FV(),q=M(j);Ns(q,{get kind(){return l(A).kind},get asset(){return E()},variant:"tile",get checkerboard(){return d()}});var B=D(q,2);dt(B,21,()=>l($),cr,(W,G,J)=>{var ne=V(),K=M(ne);{var Y=ce=>{var he=DV(),Q=R(he);cA(Q,()=>l(G)),T(ce,he)},re=ce=>{var he=MV(),Q=M(he);cA(Q,()=>l(G)),T(ce,he)};U(K,ce=>{J===l($).length-1?ce(Y):ce(re,!1)})}T(W,ne)}),T(N,j)},$$slots:{default:!0}})},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),T(_,v)},b=_=>{qr(_,{children:(v,y)=>{var w=jV(),k=R(w);H(S=>Z(k,S),[()=>i()("no_files_found")]),T(v,w)},$$slots:{default:!0}})};U(g,_=>{l(f).length?_(m):_(b,!1)})}T(t,p),oe(),r()}function py(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Ic,"$selectAssetsView",n);let s=P(e,"assets",19,()=>[]),o=P(e,"selectedAsset",15,null),a=P(e,"showUploader",3,!1),c=P(e,"searchTerms",3,""),u=P(e,"basePath",3,void 0),d=ae(void 0);Be(()=>{o()||Ee(()=>{l(d)?.reset()})});const h=x(()=>e.kind==="image"?"image/*":void 0);Tt(Rd(t,{get accept(){return l(h)},get showUploadButton(){return a()},showFilePreview:!0,onSelect:({files:f})=>{o(f.length?{file:f[0]}:null)},children:(f,p)=>{var g=V(),m=M(g);{var b=_=>{const v=x(()=>s().sort((w,k)=>w.name.localeCompare(k.name))),y=x(()=>i()?.type);uA(_,{get assets(){return l(v)},get viewType(){return l(y)},get searchTerms(){return c()},get basePath(){return u()},gridId:"select-assets-grid",checkerboard:!0,onSelect:({asset:w})=>{o({asset:w})}})};U(m,_=>{a()||_(b)})}T(f,g)},$$slots:{default:!0}}),f=>L(d,ie(f)),()=>l(d)),oe(),r()}const BV=["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"],dA="https://api.pexels.com/v1",qV={serviceType:"stock_photos",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}$/,search:async(t,{apiKey:e})=>{const n={Authorization:e},[r]=te(Cn).toLowerCase().split("-");let i=[];if(t)for(let s=1;s<=2;s+=1){const o=new URLSearchParams({query:t,locale:BV.find(d=>d.split("-")[0]===r)||"en-US",page:s,per_page:80}),a=await fetch(`${dA}/search?${o.toString()}`,{headers:n});if(!a.ok)return Promise.reject();const{photos:c,next_page:u}=await a.json();if(i.push(...c),!u)break;await dn(50)}else{const s=new URLSearchParams({per_page:80}),o=await fetch(`${dA}/curated?${s.toString()}`,{headers:n});if(!o.ok)return Promise.reject();i=(await o.json()).photos}return i.map(({id:s,url:o,alt:a,src:{large2x:c,medium:u},photographer:d})=>({id:String(s),description:o.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g," ")??a,previewURL:u,downloadURL:c,fileName:`pexels-${d.split(/\s+/).join("-").toLowerCase()}-${s}.jpg`,kind:"image",credit:`<a href="${o}">Photo by ${d} on Pexels</a>`}))}},HV=["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"],VV="https://pixabay.com/api",WV={serviceType:"stock_photos",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}$/,search:async(t,{apiKey:e})=>{const[n]=te(Cn).toLowerCase().split("-"),r=new URLSearchParams({key:e,q:t,lang:HV.includes(n)?n:"en",image_type:"photo",min_width:1280,editors_choice:!t,safesearch:!0,per_page:150}),i=await fetch(`${VV}/?${r.toString()}`);return i.ok?(await i.json()).hits.map(({id:o,webformatURL:a,previewURL:c,largeImageURL:u,imageWidth:d,imageHeight:h,pageURL:f,tags:p,user:g})=>({id:String(o),description:p,previewURL:a.replace("_640.",d>h?"_180.":"_340."),downloadURL:u,fileName:c.split("/").pop().replace("_150.","_1280."),kind:"image",credit:`<a href="${f}">Photo by ${g} on Pixabay`})):Promise.reject()}},GV=["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"],fA="https://api.unsplash.com",hA="utm_source=sveltia-cms&utm_medium=referral",KV={serviceType:"stock_photos",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,}$/,search:async(t,{apiKey:e})=>{const n={Authorization:`Client-ID ${e}`},[r]=te(Cn).toLowerCase().split("-");let i=[];if(t)for(let s=1;s<=5;s+=1){const o=new URLSearchParams({query:t,lang:GV.includes(r)?r:"en",page:s,per_page:30}),a=await fetch(`${fA}/search/photos?${o.toString()}`,{headers:n});if(!a.ok)return Promise.reject();const{results:c,total_pages:u}=await a.json();if(i.push(...c),u===s)break;await dn(50)}else{const s=new URLSearchParams({per_page:30}),o=await fetch(`${fA}/photos?${s.toString()}`,{headers:n});if(!o.ok)return Promise.reject();i=await o.json()}return i.map(({id:s,description:o,alt_description:a,urls:{regular:c,thumb:u},user:{username:d,name:h}})=>({id:String(s),description:[o,a].filter(Boolean).join(" — "),previewURL:u,downloadURL:c,fileName:`${h.split(/\s+/).join("-").toLowerCase()}-${s}-unsplash.jpg`,kind:"image",credit:`Photo by <a href="https://unsplash.com/@${d}?${hA}">${h}</a> on <a href="https://unsplash.com/?${hA}">Unsplash</a>`}))}},rg={},zd={pexels:qV,pixabay:WV,unsplash:KV};var YV=F("<!> <!>",1),JV=F("<a> </a>"),ZV=F("<!> <!> <!>",1),XV=F("<!> <!>",1),QV=F("<!> <!> <!> <!>",1),e9=F('<div role="none"> </div> <!>',1),t9=F('<div role="none" class="wrapper svelte-v3cscd"><!> <div role="none" class="content-pane svelte-v3cscd"><!> <!> <!> <!></div></div>');const n9={hash:"svelte-v3cscd",code:".wrapper.svelte-v3cscd {display:flex;gap:16px;height:60vh;}.wrapper.svelte-v3cscd .listbox {flex:none;background-color:transparent;}.wrapper.svelte-v3cscd .content-pane:where(.svelte-v3cscd) {overflow:auto;flex:auto;}"};function r9(t,e){se(e,!0),Te(t,n9);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(St,"$prefs",n),a=()=>z(Ya,"$showContentOverlay",n),c=()=>z(Ic,"$selectAssetsView",n),u=()=>z(Qt,"$allAssets",n),d=()=>z(A_,"$globalAssetFolder",n);let h=P(e,"open",15,!1),f=P(e,"canEnterURL",3,!0),p=P(e,"onSelect",3,void 0),g=ae(""),m=ae(null),b=ae(""),_=ae(""),v=ae("uncategorized-assets");const y=x(()=>e.kind==="image"?i()("assets_dialog.title.image"):i()("assets_dialog.title.file")),w=x(()=>Fd(l(_))),k=x(()=>s()?._assetFolder?.internalPath??""),S=x(()=>s()?._assetFolder?.entryRelative??!1),C=x(()=>!!l(k)&&!l(S)),E=x(()=>!!e.entry&&l(S)),A=x(()=>l(v)==="upload"),O=x(()=>e.entry?Tn(Object.values(e.entry.locales)[0].path).dirname:void 0),$=x(()=>l(v).endsWith("-assets")),N=x(()=>Object.keys(zd).includes(l(v))&&o()?.apiKeys?.[l(v)]||Object.keys(rg).includes(l(v))&&o()?.logins?.[l(v)]);on(()=>{L(g,`library-${Jn("short")}`)}),Be(()=>{L(v,ie(l(E)?"entry-assets":l(C)?"collection-assets":"uncategorized-assets"))}),Be(()=>{h()&&L(b,"")}),Be(()=>{a()||h(!1)});const I=x(()=>i()("insert")),j=x(()=>!l(m));ps(t,{get title(){return l(y)},size:"x-large",get okLabel(){return l(I)},get okDisabled(){return l(j)},onOk:()=>{p()?.({asset:l(m)})},get open(){return h()},set open(W){h(W)},headerExtra:W=>{var G=V(),J=M(G);{var ne=K=>{var Y=YV(),re=M(Y);{var ce=de=>{const _e=x(()=>Ic);fy(de,{get currentView(){return l(_e)},"aria-controls":"select-assets-grid"})};U(re,de=>{c()&&de(ce)})}var he=D(re,2);const Q=x(()=>!!l(m)?.file),X=x(()=>i()(`assets_dialog.search_for_${e.kind??"file"}`));em(he,{get disabled(){return l(Q)},get"aria-label"(){return l(X)},get value(){return l(_)},set value(de){L(_,ie(de))}}),T(K,Y)};U(J,K=>{(l($)||l(N))&&K(ne)})}T(W,G)},footerExtra:W=>{var G=V(),J=M(G);{var ne=K=>{var Y=V();const re=x(()=>{const{showServiceLink:Q,serviceLabel:X,serviceURL:de}=zd[l(v)]??{};return{showServiceLink:Q,serviceLabel:X,serviceURL:de}});var ce=M(Y);{var he=Q=>{var X=JV(),de=R(X);H(_e=>{Se(X,"href",l(re).serviceURL),Z(de,_e)},[()=>i()("prefs.media.stock_photos.credit",{values:{service:l(re).serviceLabel}})]),T(Q,X)};U(ce,Q=>{l(re).showServiceLink&&Q(he)})}T(K,Y)};U(J,K=>{l(N)&&K(ne)})}T(W,G)},children:(W,G)=>{var J=t9(),ne=R(J);const K=x(()=>i()("assets_dialog.locations"));lu(ne,{class:"tabs",get"aria-label"(){return l(K)},get"aria-controls"(){return`${l(g)??""}-content-pane`},onChange:ve=>{L(v,ie(ve.detail.name)),L(m,null)},children:(ve,be)=>{var fe=QV(),Oe=M(fe);const Ae=x(()=>i()("assets_dialog.location.repository"));Cf(Oe,{get label(){return l(Ae)},children:(we,xe)=>{var ke=ZV(),Ne=M(ke);{var ge=Ke=>{const rt=x(()=>i()("entry_assets")),Et=x(()=>l(v)==="entry-assets");fr(Ke,{name:"entry-assets",get label(){return l(rt)},get selected(){return l(Et)}})};U(Ne,Ke=>{l(E)&&Ke(ge)})}var Ce=D(Ne,2);{var Ue=Ke=>{const rt=x(()=>i()("collection_assets")),Et=x(()=>l(v)==="collection-assets");fr(Ke,{name:"collection-assets",get label(){return l(rt)},get selected(){return l(Et)}})};U(Ce,Ke=>{l(C)&&Ke(Ue)})}var Je=D(Ce,2);const ut=x(()=>i()("uncategorized")),lt=x(()=>l(v)==="uncategorized-assets");fr(Je,{name:"uncategorized-assets",get label(){return l(ut)},get selected(){return l(lt)}}),T(we,ke)},$$slots:{default:!0}});var De=D(Oe,2);const He=x(()=>i()("assets_dialog.location.local"));Cf(De,{get label(){return l(He)},children:(we,xe)=>{const ke=x(()=>i()("upload"));fr(we,{name:"upload",get label(){return l(ke)},get selected(){return l(A)}})},$$slots:{default:!0}});var Ve=D(De,2);{var mt=we=>{const xe=x(()=>i()("assets_dialog.location.external_locations"));Cf(we,{get label(){return l(xe)},children:(ke,Ne)=>{var ge=XV(),Ce=M(ge);{var Ue=ut=>{const lt=x(()=>i()("assets_dialog.enter_url"));fr(ut,{name:"enter-url",get label(){return l(lt)}})};U(Ce,ut=>{f()&&ut(Ue)})}var Je=D(Ce,2);dt(Je,17,()=>Object.values(rg),({serviceId:ut,serviceLabel:lt})=>ut,(ut,lt)=>{let Ke=()=>l(lt).serviceId,rt=()=>l(lt).serviceLabel;fr(ut,{get name(){return Ke()},get label(){return rt()}})}),T(ke,ge)},$$slots:{default:!0}})};U(Ve,we=>{(f()||Object.keys(rg).length)&&we(mt)})}var et=D(Ve,2);const ye=x(()=>i()("assets_dialog.location.stock_photos"));Cf(et,{get label(){return l(ye)},children:(we,xe)=>{var ke=V(),Ne=M(ke);dt(Ne,17,()=>Object.values(zd),({serviceId:ge,serviceLabel:Ce})=>ge,(ge,Ce)=>{let Ue=()=>l(Ce).serviceId,Je=()=>l(Ce).serviceLabel;fr(ge,{get name(){return Ue()},get label(){return Je()}})}),T(we,ke)},$$slots:{default:!0}}),T(ve,fe)},$$slots:{default:!0}});var Y=D(ne,2),re=R(Y);{var ce=ve=>{const be=x(()=>u().filter(fe=>(!e.kind||e.kind===fe.kind)&&Tn(fe.path).dirname===l(O)));py(ve,{get kind(){return e.kind},get assets(){return l(be)},get showUploader(){return l(A)},get searchTerms(){return l(w)},get selectedAsset(){return l(m)},set selectedAsset(fe){L(m,ie(fe))}})},he=ve=>{var be=V(),fe=M(be);{var Oe=De=>{const He=x(()=>u().filter(Ve=>(!e.kind||e.kind===Ve.kind)&&Ve.folder===l(k)));py(De,{get kind(){return e.kind},get assets(){return l(He)},get showUploader(){return l(A)},get searchTerms(){return l(w)},get basePath(){return l(k)},get selectedAsset(){return l(m)},set selectedAsset(Ve){L(m,ie(Ve))}})},Ae=De=>{var He=V(),Ve=M(He);{var mt=et=>{const ye=x(()=>u().filter(we=>(!e.kind||e.kind===we.kind)&&we.folder===d()?.internalPath));py(et,{get kind(){return e.kind},get assets(){return l(ye)},get showUploader(){return l(A)},get searchTerms(){return l(w)},get selectedAsset(){return l(m)},set selectedAsset(we){L(m,ie(we))}})};U(Ve,et=>{(l(v)==="uncategorized-assets"||l(A))&&et(mt)},!0)}T(De,He)};U(fe,De=>{l(C)&&(l(v)==="collection-assets"||l(A))?De(Oe):De(Ae,!1)},!0)}T(ve,be)};U(re,ve=>{l(E)&&(l(v)==="entry-assets"||l(A))?ve(ce):ve(he,!1)})}var Q=D(re,2);{var X=ve=>{qr(ve,{children:(be,fe)=>{var Oe=e9(),Ae=M(Oe),De=R(Ae),He=D(Ae,2);An(He,{flex:!0,oninput:()=>{L(m,ie(l(b).trim()?{url:l(b).trim()}:null))},get value(){return l(b)},set value(Ve){L(b,ie(Ve))}}),H(Ve=>Z(De,Ve),[()=>e.kind==="image"?i()("assets_dialog.enter_image_url"):i()("assets_dialog.enter_file_url")]),T(be,Oe)},$$slots:{default:!0}})};U(Q,ve=>{f()&&l(v)==="enter-url"&&ve(X)})}var de=D(Q,2);dt(de,17,()=>Object.entries(rg),([ve,be])=>ve,(ve,be)=>{let fe=()=>l(be)[0],Oe=()=>l(be)[1];var Ae=V(),De=M(Ae);{var He=Ve=>{aA(Ve,{get kind(){return e.kind},get searchTerms(){return l(w)},get serviceProps(){return Oe()},gridId:"select-assets-grid",onSelect:mt=>{L(m,ie(mt))}})};U(De,Ve=>{l(v)===fe()&&Ve(He)})}T(ve,Ae)});var _e=D(de,2);dt(_e,17,()=>Object.entries(zd),([ve,be])=>ve,(ve,be)=>{let fe=()=>l(be)[0],Oe=()=>l(be)[1];var Ae=V(),De=M(Ae);{var He=Ve=>{aA(Ve,{get kind(){return e.kind},get searchTerms(){return l(w)},get serviceProps(){return Oe()},gridId:"select-assets-grid",onSelect:mt=>{L(m,ie(mt))}})};U(De,Ve=>{l(v)===fe()&&Ve(He)})}T(ve,Ae)}),H(()=>Se(Y,"id",`${l(g)??""}-content-pane`)),T(W,J)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}}),oe(),r()}var i9=F('<span role="none" class="preview no-thumbnail"><!></span>'),s9=F('<div role="textbox" tabindex="0" class="filename svelte-7plsvm"><!></div>'),o9=F('<div role="none" class="filled svelte-7plsvm"><!> <div role="none" class="svelte-7plsvm"><!> <div role="none"><!> <!></div></div></div>'),a9=F('<!> <div role="none"><!></div>',1),l9=F('<div class="empty svelte-7plsvm"><!></div>'),c9=F('<div role="none"> </div> <div role="none"><!></div>',1),u9=F("<!> <!> <!> <!>",1);const d9={hash:"svelte-7plsvm",code:".filled.svelte-7plsvm {display:flex !important;align-items:center;gap:16px;margin:var(--sui-focus-ring-width);}.filled.svelte-7plsvm .preview {flex:none;width:160px !important;height:160px !important;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-control-medium-border-radius);}.filled.svelte-7plsvm .preview.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);}.filled.svelte-7plsvm .preview.no-thumbnail .icon {font-size:64px;}.filled.svelte-7plsvm > div:where(.svelte-7plsvm) {flex:auto;overflow:hidden;}.filled.svelte-7plsvm > div:where(.svelte-7plsvm) .filename:where(.svelte-7plsvm) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;}.filled.svelte-7plsvm > div:where(.svelte-7plsvm) .filename:where(.svelte-7plsvm):empty {margin:0;padding:0;}.empty.svelte-7plsvm button {flex-direction:column;justify-content:center;height:160px;}.empty.svelte-7plsvm button .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.empty.svelte-7plsvm button:disabled {pointer-events:none !important;}.empty.svelte-7plsvm button:disabled * {opacity:0.5;}.empty.invalid.svelte-7plsvm button {border-color:var(--sui-error-border-color);}"};function pA(t,e){se(e,!1),Te(t,d9);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue();P(e,"locale",8),P(e,"keyPath",8);let f=P(e,"fieldId",8);P(e,"fieldLabel",8);let p=P(e,"fieldConfig",8),g=P(e,"currentValue",12),m=P(e,"readonly",8,!1),b=P(e,"required",8,!0),_=P(e,"invalid",8,!1),v=P(e,"inEditorComponent",8,!1),y=ue(),w=ue(),k,S=ue(),C=ue(),E,A=ue(!1),O=ue(!1),$=ue(!1),N=ue(""),I=ue();const j=()=>{g(""),L(y,void 0),L(w,void 0),k=void 0,E=void 0,l(I)?.reset()},q=async X=>{j(),L(y,X.asset),L(w,X.file),k=X.url,E=X.credit,l(y)&&g(Bp(l(y),{pathOnly:!0,allowSpecial:!0,entry:l(h)})),l(w)&&(l(u)&&l(c)!==void 0&&Number.isInteger(l(c))&&l(w).size>l(c)?L(O,!0):(g(URL.createObjectURL(l(w))),Ct(st,Ee(i).files[g()]=l(w),Ee(i)))),k&&g(k),E&&(L(N,oi.sanitize(E,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})),L($,!0))},B=async()=>{g()?.startsWith("blob:")&&i()&&L(w,i().files[g()]),g()?g().startsWith("blob:")?(L(y,void 0),L(S,g()?await KT(g()):void 0),L(C,g()&&l(S)?await Lc(g(),l(h),{thumbnail:!0}):void 0)):l(u)&&/^https?:/.test(g())?(L(y,void 0),L(S,"image"),L(C,g())):(L(y,N_(g(),{entry:l(h),collection:l(d)})),L(S,void 0),L(C,void 0)):(L(y,void 0),L(w,void 0),L(S,void 0),L(C,void 0))};Me(()=>(l(o),l(a),l(c),gt(p())),()=>{(X=>(L(o,X.widget),L(a,tt(X.choose_url,!0)),L(c,tt(tt(tt(X.media_library,()=>({}),!0).config,()=>({}),!0).max_file_size,void 0))))(p())}),Me(()=>l(o),()=>{L(u,l(o)==="image")}),Me(()=>i(),()=>{L(d,i()?.collection)}),Me(()=>i(),()=>{L(h,i()?.originalEntry)}),Me(()=>gt(g()),()=>{g(),B()}),$r(),xr();var W=u9(),G=M(W);const J=Ge(()=>l(u)?"image/*":void 0);Tt(Rd(G,{get disabled(){return m()},get accept(){return l(J)},onSelect:({files:X})=>{X.length&&q({file:X[0]})},children:(X,de)=>{var _e=V(),ve=M(_e);{var be=Oe=>{var Ae=o9(),De=R(Ae);{var He=Ue=>{Ns(Ue,{get kind(){return l(S)},get src(){return l(C)},variant:"tile",checkerboard:!0})},Ve=Ue=>{var Je=V(),ut=M(Je);{var lt=rt=>{Ns(rt,{get kind(){return l(y).kind},get asset(){return l(y)},variant:"tile",checkerboard:!0})},Ke=rt=>{var Et=i9(),Ht=R(Et);nt(Ht,{name:"draft"}),T(rt,Et)};U(ut,rt=>{l(y)?rt(lt):rt(Ke,!1)},!0)}T(Ue,Je)};U(De,Ue=>{l(S)&&l(C)?Ue(He):Ue(Ve,!1)})}var mt=D(De,2),et=R(mt);{var ye=Ue=>{var Je=s9(),ut=R(Je);{var lt=rt=>{var Et=We();H(Ht=>Z(Et,Ht),[()=>l(w).name.normalize()],Ge),T(rt,Et)},Ke=rt=>{var Et=V(),Ht=M(Et);{var mn=On=>{var nr=We();H(()=>Z(nr,g())),T(On,nr)};U(Ht,On=>{g().startsWith("blob:")||On(mn)},!0)}T(rt,Et)};U(ut,rt=>{l(w)?rt(lt):rt(Ke,!1)})}H(()=>{Se(Je,"id",`${f()??""}-value`),Se(Je,"aria-readonly",m()),Se(Je,"aria-invalid",_()),Se(Je,"aria-required",b()),Se(Je,"aria-labelledby",`${f()??""}-label`),Se(Je,"aria-errormessage",`${f()??""}-error`)}),T(Ue,Je)};U(et,Ue=>{typeof g()=="string"&&Ue(ye)})}var we=D(et,2),xe=R(we);const ke=Ge(()=>s()("replace")),Ne=Ge(()=>s()(`replace_${l(o)}`));Xe(xe,{get disabled(){return m()},variant:"tertiary",get label(){return l(ke)},get"aria-label"(){return l(Ne)},get"aria-controls"(){return`${f()??""}-value`},onclick:()=>{L(A,!0)}});var ge=D(xe,2);{var Ce=Ue=>{const Je=Ge(()=>s()("remove")),ut=Ge(()=>s()(`remove_${l(o)}`));Xe(Ue,{get disabled(){return m()},variant:"tertiary",get label(){return l(Je)},get"aria-label"(){return l(ut)},get"aria-controls"(){return`${f()??""}-value`},onclick:()=>{j()}})};U(ge,Ue=>{v()||Ue(Ce)})}T(Oe,Ae)},fe=Oe=>{var Ae=l9(),De=R(Ae);Xe(De,{flex:!0,role:"button",variant:"tertiary",get disabled(){return m()},tabindex:"0",onclick:()=>{m()||L(A,!0)},children:(He,Ve)=>{var mt=a9(),et=M(mt);nt(et,{name:"cloud_upload"});var ye=D(et,2),we=R(ye);{var xe=Ne=>{var ge=We();H(Ce=>Z(ge,Ce),[()=>s()(Dp()?"drop_or_browse_image_file":"browse_file")],Ge),T(Ne,ge)},ke=Ne=>{var ge=We();H(Ce=>Z(ge,Ce),[()=>s()(Dp()?"drop_or_browse_file":"browse_file")],Ge),T(Ne,ge)};U(we,Ne=>{l(u)?Ne(xe):Ne(ke,!1)})}T(He,mt)},$$slots:{default:!0}}),H(()=>ft(Ae,"invalid",_())),T(Oe,Ae)};U(ve,Oe=>{g()?Oe(be):Oe(fe,!1)})}T(X,_e)},$$slots:{default:!0},$$legacy:!0}),X=>L(I,X),()=>l(I));var ne=D(G,2);const K=Ge(()=>l(u)?"image":void 0);r9(ne,{get kind(){return l(K)},get canEnterURL(){return l(a)},get entry(){return l(h)},onSelect:({asset:X})=>{q(X)},get open(){return l(A)},set open(X){L(A,X)},$$legacy:!0});var Y=D(ne,2);const re=Ge(()=>s()("assets_dialog.large_file.title"));xx(Y,{get title(){return l(re)},get open(){return l(O)},set open(X){L(O,X)},children:(X,de)=>{var _e=We();H(ve=>Z(_e,ve),[()=>s()("assets_dialog.large_file.description",{values:{size:x_(l(c))}})],Ge),T(X,_e)},$$slots:{default:!0},$$legacy:!0});var ce=D(Y,2);const he=Ge(()=>s()("assets_dialog.photo_credit.title")),Q=Ge(()=>s()("copy"));kl(ce,{get title(){return l(he)},get okLabel(){return l(Q)},onOk:()=>{navigator.clipboard.writeText(l(N))},get open(){return l($)},set open(X){L($,X)},children:(X,de)=>{var _e=c9(),ve=M(_e),be=R(ve),fe=D(ve,2),Oe=R(fe);Oh(Oe,{flex:!0,readonly:!0,get value(){return l(N)},onclick:Ae=>{Ae.target.focus(),Ae.target.select()}}),H(Ae=>Z(be,Ae),[()=>s()("assets_dialog.photo_credit.description")],Ge),T(X,_e)},$$slots:{default:!0},$$legacy:!0}),T(t,W),oe(),r()}var f9=F("<p><!></p>"),h9=F("<p> </p>");function gA(t,e){se(e,!1);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);P(e,"locale",8),P(e,"keyPath",8),P(e,"fieldConfig",8);let s=P(e,"currentValue",8),o=ue(),a=ue();const c=async()=>{L(o,s()?await KT(s()):void 0),L(a,s()&&l(o)?await Lc(s(),i()?.originalEntry):void 0)};Me(()=>gt(s()),()=>{s(),c()}),$r(),xr();var u=V(),d=M(u);{var h=p=>{var g=f9(),m=R(g);const b=Ge(()=>["audio","video"].includes(l(o)));Ns(m,{get kind(){return l(o)},get src(){return l(a)},get controls(){return l(b)}}),T(p,g)},f=p=>{var g=V(),m=M(g);{var b=_=>{var v=h9(),y=R(v);H(()=>Z(y,s())),T(_,v)};U(m,_=>{typeof s()=="string"&&s().trim()&&!s().startsWith("blob:")&&_(b)},!0)}T(p,g)};U(d,p=>{l(o)&&l(a)?p(h):p(f,!1)})}T(t,u),oe(),r()}var p9=F('<div role="alert" class="validation svelte-1rv50nx" aria-live="polite"><div role="none" class="svelte-1rv50nx"><!> <!></div></div>');const g9={hash:"svelte-1rv50nx",code:".validation.svelte-1rv50nx {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);}.validation.svelte-1rv50nx div:where(.svelte-1rv50nx) {display:flex;align-items:center;gap:4px;margin:4px 0;}.validation.svelte-1rv50nx div:where(.svelte-1rv50nx) .icon {flex:none;font-size:16px; /* !hardcoded */}"};function mA(t,e){Te(t,g9);var n=p9(),r=R(n),i=R(r);nt(i,{name:"error"});var s=D(i,2);Re(s,()=>e.children),H(()=>Se(n,"id",e.id)),T(t,n)}var m9=F('<th scope="col" class="action svelte-5r6rgh"></th>'),v9=F('<td class="action svelte-5r6rgh"><!></td>'),b9=F('<tr><td class="key svelte-5r6rgh"><!></td><td class="value svelte-5r6rgh"><!></td><!></tr>'),_9=F('<table class="svelte-5r6rgh"><thead><tr><th scope="col" class="key svelte-5r6rgh"> </th><th scope="col" class="value svelte-5r6rgh"> </th><!></tr></thead><tbody></tbody></table>'),y9=F("<!> <!>",1),w9=F("<!> <!> <div><!></div>",1);const x9={hash:"svelte-5r6rgh",code:`table.svelte-5r6rgh {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-5r6rgh,
|
|
587
|
-
td.svelte-5r6rgh {border-width:0;}th.svelte-5r6rgh {padding-block:4px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:left;}th.key.svelte-5r6rgh, th.value.svelte-5r6rgh {width:50%;}td.svelte-5r6rgh {padding:0;vertical-align:middle;}`};function k9(t,e){se(e,!1),Te(t,x9);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(st,"$entryDraft",n),o=ue(),a=ue(),c=ue(),u=ue();let d=P(e,"locale",8),h=P(e,"keyPath",8),f=P(e,"fieldId",8);P(e,"fieldLabel",8);let p=P(e,"fieldConfig",8);P(e,"currentValue",8);let g=P(e,"readonly",8,!1);P(e,"required",8,!0),P(e,"invalid",8,!1);let m=ue([]);const b=ue([]);let _=ue([]),v=ue([]);const y=()=>{if(!s())return;const W=iy({entryDraft:st,keyPath:h(),locale:d()});Dn(l(m),W)||(L(m,W),L(_,W.map(()=>!1))),!l(m).length&&s().currentValues[d()][h()]!==null&&Ct(st,Ee(s).currentValues[d()][h()]=null,Ee(s))},w=()=>{s()&&(Object.entries(s().currentValues).forEach(([B,W])=>{(B===d()||l(o)==="duplicate")&&delete W[h()]}),L(m,[...l(m),["",""]]),L(_,[...l(_),!1]),window.requestAnimationFrame(()=>{l(b)[l(m).length-1].querySelector("input").focus()}))},k=B=>{l(m).splice(B,1),L(m,[...l(m)]),l(_).splice(B,1),L(_,[...l(_)])},S=()=>{if(L(v,Yq({pairs:l(m),edited:l(_)})),!s()||l(v).some(Boolean)||l(m).some(([W])=>!W.trim()))return;Jq({entryDraft:st,fieldConfig:p(),keyPath:h(),locale:d(),pairs:l(m)})};Me(()=>(l(o),l(a),i(),l(c),l(u),gt(p())),()=>{(B=>(L(o,tt(B.i18n,!1)),L(a,tt(B.key_label,()=>i()("key_value.key"),!0)),L(c,tt(B.value_label,()=>i()("key_value.value"),!0)),L(u,tt(B.max,1/0))))(p())}),Me(()=>(s(),gt(d())),()=>{s()?.currentValues[d()],y()}),Me(()=>l(m),()=>{l(m),S()}),$r(),xr();var C=w9(),E=M(C);{var A=B=>{var W=_9(),G=R(W),J=R(G),ne=R(J),K=R(ne),Y=D(ne),re=R(Y),ce=D(Y);{var he=X=>{var de=m9();H(_e=>Se(de,"aria-label",_e),[()=>i()("key_value.action")],Ge),T(X,de)};U(ce,X=>{g()||X(he)})}var Q=D(G);dt(Q,5,()=>l(m),cr,(X,de,_e)=>{var ve=b9(),be=R(ve),fe=R(be);const Oe=Ge(()=>!!l(v)[_e]),Ae=Ge(()=>l(v)[_e]?`${f()}-kv-error`:void 0);An(fe,{get readonly(){return g()},flex:!0,get invalid(){return l(Oe)},get"aria-label"(){return l(a)},get"aria-errormessage"(){return l(Ae)},oninput:()=>{jy(_,l(_)[_e]=!0)},onkeydown:et=>{et.key==="Enter"&&!et.isComposing&&l(b)[_e].querySelector("td.value input").focus()},get value(){return l(de)[0]},set value(et){l(de)[0]=et,dw(()=>l(m))},$$legacy:!0});var De=D(be),He=R(De);An(He,{get readonly(){return g()},flex:!0,get"aria-label"(){return l(c)},onkeydown:et=>{et.key==="Enter"&&!et.isComposing&&(_e<l(m).length-1?l(b)[_e+1].querySelector("input").focus():l(m).length<l(u)&&w())},get value(){return l(de)[1]},set value(et){l(de)[1]=et,dw(()=>l(m))},$$legacy:!0});var Ve=D(De);{var mt=et=>{var ye=v9(),we=R(ye);const xe=Ge(()=>i()("remove"));Xe(we,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(xe)},onclick:()=>{k(_e)},startIcon:Ne=>{nt(Ne,{name:"close"})},$$slots:{startIcon:!0}}),T(et,ye)};U(Ve,et=>{g()||et(mt)})}Tt(ve,(et,ye)=>jy(b,l(b)[ye]=et),et=>l(b)?.[et],()=>[_e]),T(X,ve)}),H(()=>{Z(K,l(a)),Z(re,l(c))}),T(B,W)};U(E,B=>{l(m).length&&B(A)})}var O=D(E,2);{var $=B=>{mA(B,{get id(){return`${f()??""}-kv-error`},children:(W,G)=>{var J=y9(),ne=M(J);{var K=ce=>{var he=We();H(Q=>Z(he,Q),[()=>i()("key_value.empty_key")],Ge),T(ce,he)};U(ne,ce=>{l(v).includes("empty")&&ce(K)})}var Y=D(ne,2);{var re=ce=>{var he=We();H(Q=>Z(he,Q),[()=>i()("key_value.duplicate_key")],Ge),T(ce,he)};U(Y,ce=>{l(v).includes("duplicate")&&ce(re)})}T(W,J)}})};U(O,B=>{l(v).some(Boolean)&&B($)})}var N=D(O,2),I=R(N);const j=Ge(()=>i()("add")),q=Ge(()=>g()||l(m).length>=l(u));Xe(I,{get label(){return l(j)},variant:"tertiary",get disabled(){return l(q)},onclick:()=>{w()}}),T(t,C),oe(),r()}var S9=F('<tr><td class="svelte-1ni5ht9"> </td><td class="svelte-1ni5ht9"> </td></tr>'),E9=F('<table class="svelte-1ni5ht9"><thead><tr><th scope="col" class="svelte-1ni5ht9"> </th><th scope="col" class="svelte-1ni5ht9"> </th></tr></thead><tbody></tbody></table>');const T9={hash:"svelte-1ni5ht9",code:'@charset "UTF-8";table.svelte-1ni5ht9 {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-1ni5ht9 {padding-block:4px;width:50%;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:left;}td.svelte-1ni5ht9:empty::after {content:" ";}'};function C9(t,e){se(e,!1),Te(t,T9);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(st,"$entryDraft",n),o=ue(),a=ue();let c=P(e,"locale",8),u=P(e,"keyPath",8),d=P(e,"fieldConfig",8);P(e,"currentValue",8);let h=ue([]);const f=()=>{const _=iy({entryDraft:st,keyPath:u(),locale:c()});Dn(l(h),_)||L(h,_)};Me(()=>(l(o),i(),l(a),gt(d())),()=>{(b=>(L(o,tt(b.key_label,()=>i()("key_value.key"),!0)),L(a,tt(b.value_label,()=>i()("key_value.value"),!0))))(d())}),Me(()=>(s(),gt(c())),()=>{s()&&(s().currentValues[c()],f())}),$r(),xr();var p=V(),g=M(p);{var m=b=>{var _=E9(),v=R(_),y=R(v),w=R(y),k=R(w),S=D(w),C=R(S),E=D(v);dt(E,5,()=>l(h),cr,(A,O)=>{let $=()=>l(O)[0],N=()=>l(O)[1];var I=S9(),j=R(I),q=R(j),B=D(j),W=R(B);H(()=>{Z(q,$()),Z(W,N())}),T(A,I)}),H(()=>{Z(k,l(o)),Z(C,l(a))}),T(b,_)};U(g,b=>{l(h).length&&b(m)})}T(t,p),oe(),r()}function gy(t,e){se(e,!1);const[n,r]=me(),i=()=>z(le,"$_",n),s=ue(),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue();let g=P(e,"disabled",8,!1),m=P(e,"fieldConfig",8),b=P(e,"items",24,()=>[]),_=P(e,"addItem",8,S=>{});Me(()=>(l(s),l(o),l(a),l(c),gt(m())),()=>{(S=>(L(s,S.widget),L(o,S.name),L(a,S.label),L(c,S.types)))(m())}),Me(()=>(l(s),gt(m())),()=>{L(u,l(s)==="list"?m():void 0)}),Me(()=>l(u),()=>{L(d,l(u)?.label_singular??"")}),Me(()=>l(u),()=>{L(h,l(u)?.max??void 0)}),Me(()=>(i(),l(d),l(a),l(o)),()=>{L(f,i()("add_x",{values:{name:l(d)||l(a)||l(o)}}))}),Me(()=>(gt(g()),l(h),gt(b())),()=>{L(p,g()||typeof l(h)=="number"&&b().length===l(h))}),$r(),xr();var v=V(),y=M(v);{var w=S=>{kr(S,{variant:"tertiary",get label(){return l(f)},get disabled(){return l(p)},endIcon:A=>{nt(A,{name:"add"})},popup:A=>{const O=Ge(()=>i()("select_list_type"));hr(A,{get"aria-label"(){return l(O)},children:($,N)=>{var I=V(),j=M(I);dt(j,1,()=>l(c),({name:q,label:B})=>q,(q,B)=>{let W=()=>l(B).name,G=()=>l(B).label;const J=Ge(()=>G()||W());$t(q,{get label(){return l(J)},onclick:()=>_()(W())})}),T($,I)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}})},k=S=>{Xe(S,{variant:"tertiary",get label(){return l(f)},get disabled(){return l(p)},onclick:()=>_()(),startIcon:E=>{nt(E,{name:"add"})},$$slots:{startIcon:!0}})};U(y,S=>{Array.isArray(l(c))?S(w):S(k,!1)})}T(t,v),oe(),r()}var A9=F('<span role="none" class="type svelte-drw5o5"> </span>'),P9=F('<div role="none" class="header svelte-drw5o5"><div role="none" class="svelte-drw5o5"><!></div> <div role="none" class="svelte-drw5o5"><!></div> <div role="none" class="svelte-drw5o5"><!></div></div>');const O9={hash:"svelte-drw5o5",code:".header.svelte-drw5o5 {display:flex;align-items:center;gap:8px;background-color:var(--sui-secondary-border-color);}.header.svelte-drw5o5 > div:where(.svelte-drw5o5) {display:flex;align-items:center;}.header.svelte-drw5o5 > div:where(.svelte-drw5o5):first-child {justify-content:flex-start;width:40%;}.header.svelte-drw5o5 > div:where(.svelte-drw5o5):nth-child(2) {width:20%;justify-content:center;}.header.svelte-drw5o5 > div:where(.svelte-drw5o5):last-child {width:40%;justify-content:flex-end;}.header.svelte-drw5o5 button {padding:0;height:16px;}.header.svelte-drw5o5 .type:where(.svelte-drw5o5) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}"};function vA(t,e){se(e,!1),Te(t,O9);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"label",8,""),o=P(e,"controlId",8),a=P(e,"expanded",8),c=P(e,"toggleExpanded",8),u=P(e,"removeButtonVisible",8,!1),d=P(e,"removeButtonDisabled",8,!1),h=P(e,"remove",8),f=P(e,"children",8,void 0);xr();var p=P9(),g=R(p),m=R(g);const b=Ge(()=>!c()),_=Ge(()=>a()?i()("collapse"):i()("expand"));Xe(m,{size:"small",get disabled(){return l(b)},get"aria-label"(){return l(_)},get"aria-expanded"(){return a()},get"aria-controls"(){return o()},onclick:()=>{c()?.()},startIcon:E=>{const A=Ge(()=>a()?"expand_more":"chevron_right");nt(E,{get name(){return l(A)}})},children:(E,A)=>{var O=V(),$=M(O);{var N=I=>{var j=A9(),q=R(j);H(()=>Z(q,s())),T(I,j)};U($,I=>{s()&&I(N)})}T(E,O)},$$slots:{startIcon:!0,default:!0}});var v=D(g,2),y=R(v);Re(y,()=>f()??Fe);var w=D(v,2),k=R(w);{var S=C=>{const E=Ge(()=>i()("remove_this_item"));Xe(C,{size:"small",iconic:!0,get disabled(){return d()},get"aria-label"(){return l(E)},onclick:()=>{h()()},startIcon:O=>{nt(O,{name:"close"})},$$slots:{startIcon:!0}})};U(k,C=>{u()&&C(S)})}T(t,p),oe(),r()}var L9=F("<!> <!>",1),$9=F('<div role="none" class="toolbar top svelte-iirqfr"><!></div>'),N9=F("<!> <!> <!>",1),I9=F('<div role="none" class="summary svelte-iirqfr"> </div>'),R9=F('<div role="none" class="item svelte-iirqfr"><!> <div role="none" class="item-body"><!></div></div>'),D9=F('<div role="none" class="toolbar bottom svelte-iirqfr"><!> <!></div>'),M9=F('<div role="none" class="toolbar top svelte-iirqfr"><!> <div role="none" class="summary svelte-iirqfr"> </div> <!> <!></div> <!> <div role="none" class="item-list svelte-iirqfr"></div> <!>',1);const F9={hash:"svelte-iirqfr",code:".toolbar.svelte-iirqfr {display:flex;align-items:center;}.summary.svelte-iirqfr {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.item-list.collapsed.svelte-iirqfr {display:none;}.item.svelte-iirqfr {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.item.svelte-iirqfr .summary:where(.svelte-iirqfr) {padding:8px;}.item.svelte-iirqfr .summary:where(.svelte-iirqfr):empty {display:none;}"};function z9(t,e){se(e,!1),Te(t,F9);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue(),g=ue(),m=ue(),b=ue(),_=ue(),v=ue(),y=ue(),w=ue(),k=ue(),S=ue(),C=ue(),E=ue(),A=ue(),O=ue(),$=ue(),N=ue(),I=ue(),j=ue(),q=ue(),B=ue(),W=ue(),G=ue(),J=ue(),ne=ue();let K=P(e,"locale",8),Y=P(e,"keyPath",8),re=P(e,"fieldId",8);P(e,"fieldLabel",8);let ce=P(e,"fieldConfig",8),he=P(e,"currentValue",8),Q=P(e,"readonly",8,!1),X=P(e,"required",8,!0),de=P(e,"invalid",8,!1),_e=ue(!1),ve=ue(""),be=ue("");on(()=>{L(_e,!0),L(ve,Jn("short")),uo({[l(W)]:!l(f),...Object.fromEntries(l(J).map((ye,we)=>{const xe=`${Y()}.${we}`;return[xe,l(I)?._[xe]??!l(d)]}))})});const fe=()=>{const ye=he().join(", ");!/,\s*$/.test(l(be))&&l(be).trim()!==ye&&L(be,ye)},Oe=()=>{const ye=l(be).split(/,/g).map(we=>we.trim()).filter(we=>we!=="");Object.keys(i()?.currentValues??{}).forEach(we=>{l(c)!=="duplicate"&&we!==K()||(Object.keys(i()?.currentValues[we]??{}).forEach(xe=>{xe.match(`^${an(Y())}\\.\\d+$`)&&delete i()?.currentValues[we][xe]}),ye.forEach((xe,ke)=>{Ct(st,Ee(i).currentValues[we][`${Y()}.${ke}`]=xe,Ee(i))}))})},Ae=ye=>{Object.keys(i()?.currentValues??{}).forEach(we=>{l(c)!=="duplicate"&&we!==K()||nA(we,Y(),ye)})},De=ye=>{Ae(({valueList:we,expanderStateList:xe})=>{const ke=ye?l(_)?.find(({name:Ce})=>Ce===ye)?.fields??[]:l(m)??(l(g)?[l(g)]:[]),Ne=l(b)?0:we.length,ge=Fa(Zp(ke,K()));ye&&(ge[l(v)]=ye),we.splice(Ne,0,l(y)&&l(g)?ge[l(g).name]:ge),xe.splice(Ne,0,!0)})},He=ye=>{Ae(({valueList:we,expanderStateList:xe})=>{we.splice(ye,1),xe.splice(ye,1)})},Ve=ye=>{Ae(({valueList:we,expanderStateList:xe})=>{[we[ye],we[ye-1]]=[we[ye-1],we[ye]],[xe[ye],xe[ye-1]]=[xe[ye-1],xe[ye]]})},mt=ye=>{Ae(({valueList:we,expanderStateList:xe})=>{[we[ye],we[ye+1]]=[we[ye+1],we[ye]],[xe[ye],xe[ye+1]]=[xe[ye+1],xe[ye]]})},et=(ye,we)=>WB({collectionName:l(A),fileName:l($),keyPath:Y(),valueMap:l(B),locale:K(),summaryTemplate:we,hasSingleSubField:l(y),index:ye});Me(()=>(l(o),l(a),l(c),l(u),l(d),l(h),l(f),l(p),l(g),l(m),l(b),l(_),l(v),gt(ce())),()=>{(ye=>(L(o,ye.name),L(a,ye.label),L(c,ye.i18n),L(u,tt(ye.allow_add,!0)),L(d,tt(ye.collapsed,!1)),L(h,ye.summary),L(f,tt(ye.minimize_collapsed,!1)),L(p,ye.label_singular),L(g,ye.field),L(m,ye.fields),L(b,tt(ye.add_to_top,!1)),L(_,ye.types),L(v,tt(ye.typeKey,"type"))))(ce())}),Me(()=>l(g),()=>{L(y,!!l(g))}),Me(()=>l(m),()=>{L(w,Array.isArray(l(m)))}),Me(()=>l(_),()=>{L(k,Array.isArray(l(_)))}),Me(()=>(l(y),l(w),l(k)),()=>{L(S,l(y)||l(w)||l(k))}),Me(()=>gt(Y()),()=>{L(C,new RegExp(`^${an(Y())}\\.(\\d+)(.*)?`))}),Me(()=>i(),()=>{L(E,i()?.collection)}),Me(()=>i(),()=>{L(A,i()?.collectionName??"")}),Me(()=>i(),()=>{L(O,i()?.collectionFile)}),Me(()=>i(),()=>{L($,i()?.fileName)}),Me(()=>i(),()=>{L(N,i()?.currentValues??{})}),Me(()=>i(),()=>{L(I,i()?.expanderStates)}),Me(()=>(l(j),l(O),l(E),Pi),()=>{(ye=>L(j,ye.defaultLocale))((l(O)??l(E))?._i18n??Pi)}),Me(()=>(gt(K()),l(j),l(c)),()=>{L(q,K()!==l(j)&&l(c)==="duplicate")}),Me(()=>(l(N),gt(K())),()=>{L(B,l(N)[K()])}),Me(()=>gt(Y()),()=>{L(W,`${Y()}#`)}),Me(()=>(l(I),l(W)),()=>{L(G,l(I)?._[l(W)]??!0)}),Me(()=>(l(B),l(C),gt(Y()),l(o)),()=>{L(J,Fa(Object.fromEntries(Object.entries(l(B)).filter(([ye])=>l(C).test(ye)).map(([ye,we])=>[ye.replace(new RegExp(`^${an(Y())}`),l(o)),we])))[l(o)]??[])}),Me(()=>(l(J),gt(Y()),l(I)),()=>{L(ne,l(J).map((ye,we)=>{const xe=`${Y()}.${we}`;return[xe,l(I)?._[xe]??!0]}))}),Me(()=>(l(_e),l(S),gt(he())),()=>{l(_e)&&!l(S)&&(he(),fe())}),$r(),xr(),mr(t,{get"aria-labelledby"(){return`list-${l(ve)??""}-summary`},children:(ye,we)=>{var xe=V(),ke=M(xe);{var Ne=Ce=>{var Ue=M9(),Je=M(Ue),ut=R(Je);const lt=Ge(()=>!l(J).length),Ke=Ge(()=>l(G)?s()("collapse"):s()("expand"));Xe(ut,{iconic:!0,get disabled(){return l(lt)},get"aria-label"(){return l(Ke)},get"aria-expanded"(){return l(G)},get"aria-controls"(){return`list-${l(ve)??""}-item-list`},onclick:()=>{uo({[l(W)]:!l(G)})},startIcon:Ln=>{const Gt=Ge(()=>l(G)?"expand_more":"chevron_right");nt(Ln,{get name(){return l(Gt)}})},$$slots:{startIcon:!0}});var rt=D(ut,2),Et=R(rt),Ht=D(rt,2);Wr(Ht,{flex:!0});var mn=D(Ht,2);{var On=Dt=>{var Ln=L9(),Gt=M(Ln);const bt=Ge(()=>s()("expand_all")),en=Ge(()=>l(ne).every(([,sn])=>sn));Xe(Gt,{variant:"tertiary",size:"small",get label(){return l(bt)},get disabled(){return l(en)},onclick:()=>{uo(Object.fromEntries(l(ne).map(([sn])=>[sn,!0])))}});var Fn=D(Gt,2);const $n=Ge(()=>s()("collapse_all")),Nt=Ge(()=>l(ne).every(([,sn])=>!sn));Xe(Fn,{variant:"tertiary",size:"small",get label(){return l($n)},get disabled(){return l(Nt)},onclick:()=>{uo(Object.fromEntries(l(ne).map(([sn])=>[sn,!1])))}}),T(Dt,Ln)};U(mn,Dt=>{l(G)&&l(J).length>1&&Dt(On)})}var nr=D(Je,2);{var ns=Dt=>{var Ln=$9(),Gt=R(Ln);gy(Gt,{get disabled(){return l(q)},get fieldConfig(){return ce()},get items(){return l(J)},addItem:De}),T(Dt,Ln)};U(nr,Dt=>{l(u)&&(l(b)||!l(J).length)&&Dt(ns)})}var ti=D(nr,2);dt(ti,5,()=>l(J),cr,(Dt,Ln,Gt)=>{var bt=R9();const en=Ge(()=>`${Y()}.${Gt}`),Fn=Ge(()=>l(I)?._[l(en)]??!0),$n=Ge(()=>l(k)?l(_)?.find(({name:Un})=>Un===l(Ln)[l(v)]):void 0),Nt=Ge(()=>l(k)?l($n)?.fields??[]:l(m)??(l(g)?[l(g)]:[])),sn=Ge(()=>l(k)&&l($n)?.summary||l(h));var Nn=R(bt);const Yn=Ge(()=>l(k)?l($n)?.label||l($n)?.name:""),Pr=Ge(()=>l(Nt).length?()=>uo({[l(en)]:!l(Fn)}):void 0);vA(Nn,{get label(){return l(Yn)},get controlId(){return`list-${l(ve)??""}-item-${Gt??""}-body`},get expanded(){return l(Fn)},get toggleExpanded(){return l(Pr)},removeButtonVisible:!0,get removeButtonDisabled(){return l(q)},remove:()=>{He(Gt)},children:(Un,Ut)=>{var hi=N9(),Vt=M(hi);const tn=Ge(()=>l(q)||Gt===0),Ze=Ge(()=>s()("move_up"));Xe(Vt,{size:"small",iconic:!0,get disabled(){return l(tn)},get"aria-label"(){return l(Ze)},onclick:()=>{Ve(Gt)},startIcon:Bn=>{nt(Bn,{name:"arrow_upward"})},$$slots:{startIcon:!0}});var xt=D(Vt,2);Wr(xt,{});var En=D(xt,2);const rr=Ge(()=>l(q)||Gt===l(J).length-1),ho=Ge(()=>s()("move_down"));Xe(En,{iconic:!0,size:"small",get disabled(){return l(rr)},get"aria-label"(){return l(ho)},onclick:()=>{mt(Gt)},startIcon:Bn=>{nt(Bn,{name:"arrow_downward"})},$$slots:{startIcon:!0}}),T(Un,hi)},$$slots:{default:!0}});var Ri=D(Nn,2),fi=R(Ri);{var Is=Un=>{var Ut=V(),hi=M(Ut);dt(hi,1,()=>l(Nt),Vt=>Vt.name,(Vt,tn)=>{var Ze=V(),xt=M(Ze);lr(xt,()=>dn(0),null,En=>{const rr=Ge(()=>l(y)?`${Y()}.${Gt}`:`${Y()}.${Gt}.${l(tn).name}`);by(En,{get keyPath(){return l(rr)},get locale(){return K()},get fieldConfig(){return l(tn)}})}),T(Vt,Ze)}),T(Un,Ut)},vr=Un=>{var Ut=I9(),hi=R(Ut);H(Vt=>Z(hi,Vt),[()=>et(Gt,l(sn))],Ge),T(Un,Ut)};U(fi,Un=>{l(Fn)?Un(Is):Un(vr,!1)})}H(()=>Se(Ri,"id",`list-${l(ve)??""}-item-${Gt??""}-body`)),T(Dt,bt)});var fo=D(ti,2);{var rs=Dt=>{var Ln=D9(),Gt=R(Ln);gy(Gt,{get disabled(){return l(q)},get fieldConfig(){return ce()},get items(){return l(J)},addItem:De});var bt=D(Gt,2);Wr(bt,{flex:!0}),T(Dt,Ln)};U(fo,Dt=>{l(u)&&!l(b)&&l(J).length&&Dt(rs)})}H(()=>{Se(rt,"id",`object-${l(ve)??""}-summary`),Z(Et,`${l(J).length??""}
|
|
588
|
-
${((l(J).length===1?l(p):void 0)||l(a)||l(o))??""}`),Se(ti,"id",`list-${l(ve)??""}-item-list`),ft(ti,"collapsed",!l(G))}),T(Ce,Ue)},ge=Ce=>{An(Ce,{flex:!0,get readonly(){return Q()},get required(){return X()},get invalid(){return de()},get"aria-errormessage"(){return`${re()??""}-error`},oninput:()=>{Oe()},get value(){return l(be)},set value(Ue){L(be,Ue)},$$legacy:!0})};U(ke,Ce=>{l(S)?Ce(Ne):Ce(ge,!1)})}T(ye,xe)},$$slots:{default:!0}}),oe(),r()}var j9=(t,e)=>{t.key==="Enter"&&(t.stopPropagation(),e())},U9=(t,e)=>{t.stopPropagation(),e()},B9=F('<section role="group" tabindex="0" class="svelte-11ls1m1"><h4 class="svelte-11ls1m1"> </h4> <!></section>');const q9={hash:"svelte-11ls1m1",code:"section.svelte-11ls1m1 {overflow:hidden;margin:8px 0;padding:8px 0;}section.svelte-11ls1m1 > * {margin-right:auto;margin-left:auto;max-width:768px;}section.svelte-11ls1m1 h4:where(.svelte-11ls1m1) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}section.svelte-11ls1m1 h4:where(.svelte-11ls1m1):not(:last-child) {margin-bottom:8px;}section.svelte-11ls1m1 p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}section.svelte-11ls1m1 img {max-height:800px !important;}"};function my(t,e){se(e,!0),Te(t,q9);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=x(()=>e.fieldConfig.name),o=x(()=>tt(e.fieldConfig.label,"")),a=x(()=>tt(e.fieldConfig.widget,"string")),c=x(()=>tt(e.fieldConfig.preview,!0)),u=x(()=>tt(e.fieldConfig.i18n,!1)),d=x(()=>["relation","select"].includes(l(a))),h=x(()=>l(d)?e.fieldConfig.multiple:void 0),f=x(()=>l(a)==="list"||l(d)&&l(h)),p=x(()=>i()?.collection),g=x(()=>i()?.collectionName??""),m=x(()=>i()?.collectionFile),b=x(()=>i()?.fileName),_=x(()=>wr(i()?.currentValues[e.locale]??{})),v=x(()=>(l(m)??l(p))?._i18n??Pi),y=x(()=>l(v).i18nEnabled),w=x(()=>l(v).defaultLocale),k=x(()=>l(y)&&(l(u)===!0||l(u)==="translate")),S=x(()=>l(y)&&l(u)==="duplicate"),C=x(()=>new RegExp(`^${an(e.keyPath)}\\.\\d+$`)),E=x(()=>l(f)?Object.entries(l(_)).filter(([I])=>l(C).test(I)).map(([,I])=>I).filter(I=>I!==void 0):l(_)[e.keyPath]),A=()=>{uo(Object.fromEntries(yC({collectionName:l(g),fileName:l(b),valueMap:l(_),keyPath:e.keyPath}).map(I=>[I,!0]))),window.requestAnimationFrame(()=>{const I=document.querySelector(`.content-editor .pane[data-mode="edit"] .field[data-key-path="${CSS.escape(e.keyPath)}"]`);I&&(typeof I.scrollIntoViewIfNeeded=="function"?I.scrollIntoViewIfNeeded():I.scrollIntoView(),I.classList.add("highlight"),window.setTimeout(()=>{I.classList.remove("highlight")},1500))})};var O=V(),$=M(O);{var N=I=>{var j=B9();j.__keydown=[j9,A],j.__click=[U9,A];var q=R(j),B=R(q),W=D(q,2);{var G=J=>{var ne=V();const K=x(()=>SA[l(a)]);var Y=M(ne);bi(Y,()=>l(K),(re,ce)=>{ce(re,{get keyPath(){return e.keyPath},get locale(){return e.locale},get fieldConfig(){return e.fieldConfig},get currentValue(){return l(E)}})}),T(J,ne)};U(W,J=>{l(a)in SA&&J(G)})}H(()=>{Se(j,"data-widget",l(a)),Se(j,"data-key-path",e.keyPath),Z(B,l(o)||l(s))}),T(I,j)};U($,I=>{l(a)!=="hidden"&&l(c)&&(e.locale===l(w)||l(k)||l(S))&&I(N)})}T(t,O),oe(),r()}ia(["keydown","click"]);var H9=F('<div role="none" class="header svelte-1bztb9y"> </div>'),V9=F('<div role="group" class="subsection svelte-1bztb9y"><!> <div class="items svelte-1bztb9y"><!></div></div>');const W9={hash:"svelte-1bztb9y",code:".subsection.svelte-1bztb9y {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.subsection.svelte-1bztb9y .title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}.header.svelte-1bztb9y {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-1bztb9y {padding:8px 16px;}.items.svelte-1bztb9y:empty {display:none;}"};function bA(t,e){se(e,!0),Te(t,W9);const r=`${Zn("section")}-header`;let i=ae(void 0);var s=V9(),o=R(s);{var a=d=>{var h=H9();Se(h,"id",r);var f=R(h);H(()=>Z(f,e.label)),T(d,h)};U(o,d=>{e.label&&d(a)})}var c=D(o,2),u=R(c);lr(u,()=>iu(l(i)),null,d=>{var h=V(),f=M(h);Re(f,()=>e.children??Fe),T(d,h)}),Tt(s,d=>L(i,d),()=>l(i)),H(()=>Se(s,"aria-labelledby",e.label?r:void 0)),T(t,s),oe()}var G9=F('<p dir="auto"> </p>');function K9(t,e){se(e,!1);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=ue(),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue();let g=P(e,"locale",8),m=P(e,"keyPath",8),b=P(e,"fieldConfig",8),_=P(e,"currentValue",8);Me(()=>(l(s),l(o),l(a),l(c),l(u),gt(b())),()=>{(S=>(L(s,S.name),L(o,S.field),L(a,S.fields),L(c,S.types),L(u,tt(S.typeKey,"type"))))(b())}),Me(()=>(l(o),l(a),l(c)),()=>{L(d,!!(l(o)??l(a)??l(c)))}),Me(()=>gt(m()),()=>{L(h,new RegExp(`^${an(m())}\\.\\d+`))}),Me(()=>gt(g()),()=>{L(f,bc(g()))}),Me(()=>(i(),gt(g()),l(h),gt(m()),l(s)),()=>{L(p,Fa(Object.fromEntries(Object.entries(i()?.currentValues[g()]??{}).filter(([S])=>l(h).test(S)).map(([S,C])=>[S.replace(new RegExp(`^${an(m())}`),l(s)),C])))[l(s)]??[])}),$r(),xr();var v=V(),y=M(v);{var w=S=>{var C=V(),E=M(C);dt(E,1,()=>l(p),cr,(A,O,$)=>{const N=Ge(()=>Array.isArray(l(c))?i()?.currentValues[g()][`${m()}.${$}.${l(u)}`]:void 0),I=Ge(()=>l(c)?.find(({name:B})=>B===l(N))),j=Ge(()=>l(I)?l(I).label||l(I).name:void 0),q=Ge(()=>l(N)?l(I)?.fields??[]:l(a)??(l(o)?[l(o)]:[]));bA(A,{get label(){return l(j)},children:(B,W)=>{var G=V(),J=M(G);dt(J,1,()=>l(q),ne=>ne.name,(ne,K)=>{var Y=V(),re=M(Y);lr(re,()=>dn(0),null,ce=>{const he=Ge(()=>l(o)?`${m()}.${$}`:`${m()}.${$}.${l(K).name}`);my(ce,{get keyPath(){return l(he)},get locale(){return g()},get fieldConfig(){return l(K)}})}),T(ne,Y)}),T(B,G)},$$slots:{default:!0}})}),T(S,C)},k=S=>{var C=V(),E=M(C);{var A=O=>{var $=G9(),N=R($);H(I=>{Se($,"lang",g()),Z(N,I),$.dir=$.dir},[()=>l(f).format(_())],Ge),T(O,$)};U(E,O=>{Array.isArray(_())&&_().length&&O(A)},!0)}T(S,C)};U(y,S=>{l(d)?S(w):S(k,!1)})}T(t,v),oe(),r()}var Y9=(t,e,n)=>{!t.target.matches("button, input, textarea")&&t.key!=="Tab"&&t.preventDefault(),t.target===l(e)&&t.key==="Backspace"&&n()(new CustomEvent("remove"))},J9=F('<section role="group" class="field svelte-z6qmsu"><header role="none"><h4 role="none" class="svelte-z6qmsu"> </h4></header> <div role="none" class="widget-wrapper"><!></div></section>'),Z9=F('<div role="group" class="wrapper svelte-z6qmsu" contenteditable="false" tabindex="0"><header role="none" class="svelte-z6qmsu"><h3 role="none" class="svelte-z6qmsu"> </h3> <!></header> <!></div>');const X9={hash:"svelte-z6qmsu",code:".wrapper.svelte-z6qmsu {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-z6qmsu:focus {outline-color:var(--sui-primary-accent-color-translucent);}.wrapper.svelte-z6qmsu > header:where(.svelte-z6qmsu) {display:flex;align-items:center;justify-content:space-between;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);}.wrapper.svelte-z6qmsu > header:where(.svelte-z6qmsu) h3:where(.svelte-z6qmsu) {padding:0 8px;font-size:var(--sui-font-size-small);font-weight:600;}.wrapper.svelte-z6qmsu > header:where(.svelte-z6qmsu) button {padding:0;height:16px;}section.svelte-z6qmsu {margin:0;border-top:1px solid var(--sui-secondary-border-color);padding:16px;}section.svelte-z6qmsu h4:where(.svelte-z6qmsu) {margin-bottom:8px;font-size:var(--sui-font-size-small);font-weight:600;color:var(--sui-secondary-foreground-color);}"};function Q9(t,e){se(e,!0),Te(t,X9);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"values",19,()=>({})),o=P(e,"onChange",3,()=>{}),a=ae(void 0),c=ae(""),u=ae("");const d=ie({}),h=["image","string"],f=()=>l(a);on(()=>{window.requestAnimationFrame(()=>{L(c,ie(l(a)?.closest("[data-locale]")?.dataset.locale)),L(u,ie(l(a)?.closest("[data-key-path]")?.dataset.keyPath))})}),Be(()=>{s(),Ee(()=>{Dn(s(),wr(d))||Object.assign(d,s())})}),Be(()=>{const S=wr(d);Ee(()=>{Dn(s(),S)||o()(new CustomEvent("update",{detail:S}))})});var p=Z9();p.__keydown=[Y9,a,o];var g=R(p),m=R(g),b=R(m),_=D(m,2);const v=x(()=>i()("remove"));Xe(_,{size:"small",iconic:!0,get"aria-label"(){return l(v)},onclick:()=>{o()(new CustomEvent("remove"))},startIcon:C=>{nt(C,{name:"close"})},$$slots:{startIcon:!0}});var y=D(g,2);{var w=S=>{var C=V(),E=M(C);dt(E,17,()=>e.fields,({name:A,label:O,widget:$})=>A,(A,O)=>{let $=()=>l(O).name,N=()=>l(O).label,I=()=>l(O).widget;var j=V(),q=M(j);{var B=W=>{var G=J9();const J=x(()=>ig[I()]);var ne=R(G),K=R(ne),Y=R(K),re=D(ne,2),ce=R(re);const he=x(()=>Zn("field")),Q=x(()=>N()??$()),X=x(()=>({name:$(),widget:I()}));bi(ce,()=>l(J),(de,_e)=>{_e(de,{get locale(){return l(c)},get keyPath(){return`${l(u)??""}:${$()??""}`},get fieldId(){return l(he)},get fieldLabel(){return l(Q)},get fieldConfig(){return l(X)},inEditorComponent:!0,get currentValue(){return d[$()]},set currentValue(ve){d[$()]=ve}})}),H(de=>{Se(G,"aria-label",de),Se(G,"data-widget",I()),Se(G,"data-key-path",`${l(u)??""}:${$()??""}`),Z(Y,N())},[()=>i()("x_field",{values:{field:N()}})]),vi("keydown",G,de=>{de.stopPropagation()},!0),T(W,G)};U(q,W=>{I()&&h.includes(I())&&W(B)})}T(A,j)}),T(S,C)};U(y,S=>{l(c)&&l(u)&&S(w)})}Tt(p,S=>L(a,S),()=>l(a)),H(()=>{Se(p,"aria-label",e.label),Z(b,e.label)}),T(t,p);var k=oe({getElement:f});return r(),k}ia(["keydown"]);const _A=t=>Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?n.trim().replace(/["()[[\]]/g,"\\$&"):""])),e6=t=>({image:{id:"image",icon:"image",label:te(le)("editor_components.image"),fields:[{name:"src",label:te(le)("editor_components.src"),widget:"image"},{name:"alt",label:te(le)("editor_components.alt"),widget:"string"},{name:"title",label:te(le)("editor_components.title"),widget:"string"},{name:"link",label:te(le)("editor_components.link"),widget:"string"}],pattern:/\[?!\[(?<alt>.*?)\]\((?<src>.*?)(?: "(?<title>.*?)")?\)(?:\]\((?<link>.*?)\))?/,toBlock:n=>{const{src:r,alt:i,title:s,link:o}=_A(n);if(!r)return"";const a=``;return o?`[${a}](${o})`:a},toPreview:n=>{const{src:r,alt:i,title:s,link:o}=_A(n),a=`<img src="${r}" alt="${i}" title="${s}">`;return o?`<a href="${o}">${a}</a>`:a}}})[t],t6=({id:t,label:e,fields:n,pattern:r,fromBlock:i,toBlock:s,toPreview:o})=>{const a=o({}).match(/\w+/)?.[0]??t;class c extends B0{__props;constructor(p,g){super(g),this.__props=p}static getType(){return t}isInline(){return!0}static clone(p){return new c(p.__props,p.__key)}static importJSON(p){return u().updateFromJSON(p)}exportJSON(){return{...this.__props,type:t,version:1}}createDOM(){let p,g=null;const m=async({type:_,detail:v})=>{await pl(),g??=Zm(p),g?.update(()=>{_==="update"&&(this.getWritable().__props=v),_==="remove"&&this.remove()})},b=Tg(Q9,{target:document.createElement("div"),props:{label:e,fields:n,values:this.__props,onChange:m}});return kP(),p=b.getElement(),window.requestAnimationFrame(()=>{p.focus()}),p}exportDOM(){return{element:this.createDOM()}}static importDOM(){const p={[a]:()=>({conversion:g=>({node:u(Object.fromEntries(n.map(({name:m})=>[m,g[m]??""])))}),priority:3})};return t==="image"&&Object.assign(p,{a:g=>{if(g.firstChild?.nodeName.toLowerCase()==="img"){const{href:m}=g,{src:b,alt:_,title:v}=g.firstChild;return{conversion:()=>({node:u({src:b,alt:_,title:v,link:m}),after:()=>[]}),priority:4}}return null}}),p}updateDOM(){return!1}decorate(){return null}}const u=f=>new c(f??Object.fromEntries(n.map(({name:p})=>[p,""]))),d=f=>f instanceof c&&f.getType()===t;return{node:c,createNode:u,transformer:{dependencies:[c],export:f=>d(f)?s(f.__props):null,importRegExp:r,regExp:r,replace:(f,p)=>{const g=p,m=i?.(g)??g.groups??{};f.replace(u(m))},type:"text-match"}}},yA=new Map;class n6{constructor(e){const{id:n}=e,r=yA.get(n),i=r??t6(e);r||yA.set(n,i),Object.assign(this,{...e,...i})}}var r6=F('<div role="none" class="wrapper svelte-1e9a0b3"><!></div>');const i6={hash:"svelte-1e9a0b3",code:`.wrapper.svelte-1e9a0b3 {display:contents;}.wrapper.minimal.svelte-1e9a0b3 [role="textbox"],
|
|
589
|
-
.wrapper.minimal.svelte-1e9a0b3 textarea {overflow:auto;max-height:240px;}`};function s6(t,e){se(e,!0),Te(t,i6);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),s=P(e,"invalid",3,!1),o=ae("");const a=x(()=>tt(e.fieldConfig.modes,()=>[...zP],!0)),c=x(()=>tt(e.fieldConfig.buttons,()=>[...UP],!0)),u=x(()=>tt(e.fieldConfig.editor_components,()=>[...qP],!0)),d=x(()=>tt(e.fieldConfig.minimal,!1)),h=x(()=>l(a).map(v=>jP[v]).filter(Boolean)),f=x(()=>[...l(c),...l(u).includes("code-block")?["code-block"]:[]].map(v=>BP[v]).filter(Boolean)),p=x(()=>[...l(u).map(v=>v==="code-block"||v in $w?void 0:e6(v)).filter(v=>!!v),...Object.values($w)].map(v=>new n6(v))),g=()=>{const v=typeof n()=="string"?n():"";l(o)!==v&&L(o,ie(v))},m=()=>{const v=l(o);n()!==v&&n(v)};Be(()=>{n(),Ee(()=>{g()})}),Be(()=>{l(o),Ee(()=>{m()})});var b=r6(),_=R(b);lr(_,()=>dn(0),null,v=>{JM(v,{get lang(){return e.locale},get modes(){return l(h)},get buttons(){return l(f)},get components(){return l(p)},flex:!0,get readonly(){return i()},get required(){return r()},get invalid(){return s()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,get value(){return l(o)},set value(y){L(o,ie(y))}})}),H(()=>ft(b,"minimal",l(d))),T(t,b),oe()}function o6(){return{useNewRenderer:!0,renderer:{heading(...t){return At.Renderer.prototype.heading.call(this,...t).replace(/^<(h\d)/,'<$1 dir="auto"')},list(...t){return At.Renderer.prototype.list.call(this,...t).replace(/^<(ol|ul)/,'<$1 dir="auto"')},paragraph(...t){return At.Renderer.prototype.paragraph.call(this,...t).replace(/^<p/,'<p dir="auto"')}}}}var a6=F('<div role="none" class="svelte-xzrmoz"><!></div>');const l6={hash:"svelte-xzrmoz",code:"div.svelte-xzrmoz :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}div.svelte-xzrmoz :is(video, img) {max-width:100%;max-height:100%;}div.svelte-xzrmoz :is(a:has(img)) {display:inline-block;}div.svelte-xzrmoz :is(a:has(img)) :is(img) {pointer-events:none;}"};function c6(t,e){se(e,!0),Te(t,l6);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);let s=ae("");const o=x(()=>tt(e.fieldConfig.sanitize_preview,!1)),a={breaks:!0,async:!0,walkTokens:async h=>{if(h.type==="image"){const f=await Lc(h.href,i()?.originalEntry);f&&(h.href=f)}}};At.use(o6()),Be(()=>{(async()=>L(s,ie(await At.parse(e.currentValue??"",a))))()});var c=a6(),u=R(c);{var d=h=>{var f=V(),p=M(f);ur(p,()=>l(o)?oi.sanitize(l(s)):l(s)),T(h,f)};U(u,h=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&h(d)})}T(t,c),oe(),r()}function u6(t,e){se(e,!0);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),s=P(e,"invalid",3,!1),o=ae(void 0),a=ae("");const c=x(()=>tt(e.fieldConfig.value_type,"int")),u=x(()=>e.fieldConfig.min),d=x(()=>e.fieldConfig.max),h=x(()=>tt(e.fieldConfig.step,1)),f=x(()=>l(c)==="int"||l(c)==="float"),p=()=>{if(n()!==void 0){if(l(f)&&l(o)!==n())if(typeof n()=="number")L(o,ie(n()));else if(typeof n()=="string"){const y=n().trim()?Number(n()):NaN;L(o,ie(Number.isNaN(y)?void 0:y))}else L(o,void 0);!l(f)&&l(a)!==n()&&L(a,ie(String(n())))}},g=()=>{let y;l(f)?l(o)===void 0?y=NaN:l(c)==="int"?y=Number.parseInt(l(f)?String(l(o)):l(a),10):y=Number.parseFloat(l(f)?String(l(o)):l(a)):y=l(a),l(f)&&Number.isNaN(y)&&(y=null),n()!==y&&n(y)};Be(()=>{n(),Ee(()=>{p()})}),Be(()=>{l(a),Ee(()=>{g()})}),Be(()=>{l(o),Ee(()=>{g()})});var m=V(),b=M(m);{var _=y=>{QM(y,{get min(){return l(u)},get max(){return l(d)},get step(){return l(h)},get readonly(){return i()},get required(){return r()},get invalid(){return s()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(o)},set value(w){L(o,ie(w))}})},v=y=>{An(y,{get readonly(){return i()},get required(){return r()},get invalid(){return s()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(a)},set value(w){L(a,ie(w))}})};U(b,y=>{l(f)?y(_):y(v,!1)})}T(t,m),oe()}var d6=F('<p dir="auto"><!></p>');function f6(t,e){se(e,!0);const n=x(()=>tt(e.fieldConfig.value_type,"int")),r=x(()=>hp(e.locale)),i=x(()=>Intl.NumberFormat(l(r)));var s=V(),o=M(s);{var a=c=>{var u=d6(),d=R(u);{var h=p=>{var g=We();H(m=>Z(g,m),[()=>l(i).format(Number(e.currentValue))]),T(p,g)},f=p=>{var g=We();H(()=>Z(g,e.currentValue)),T(p,g)};U(d,p=>{l(n)==="int"||l(n)==="float"?p(h):p(f,!1)})}H(()=>{Se(u,"lang",e.locale),u.dir=u.dir}),T(c,u)};U(o,c=>{e.currentValue!==void 0&&e.currentValue!==null&&e.currentValue!==""&&c(a)})}T(t,s),oe()}const h6=({collectionName:t,fileName:e,keyPath:n,valueMap:r,locale:i,summaryTemplate:s})=>s?s.replaceAll(/{{(.+?)}}/g,(o,a)=>{const[c,...u]=a.split(/\s*\|\s*/);return Rp({collectionName:t,fileName:e,valueMap:r,keyPath:`${n}.${c.replace(/^fields\./,"")}`,locale:i,transformations:u})}):r[`${n}.title`]||r[`${n}.name`]||Object.entries(r).find(([o,a])=>o.startsWith(`${n}.`)&&typeof a=="string"&&!!a)?.[1]||"";var p6=F('<div role="none" class="summary svelte-23x9on"> </div>'),g6=F('<!> <div role="none" class="item-list"><!></div>',1),m6=F('<div role="none" class="wrapper svelte-23x9on"><!></div>'),v6=F("<!> <!> <!>",1);const b6={hash:"svelte-23x9on",code:".wrapper.svelte-23x9on {display:contents;}.sui.checkbox + .wrapper.svelte-23x9on > .group {margin-top:8px;}.wrapper.svelte-23x9on > .group {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.summary.svelte-23x9on {overflow:hidden;padding:8px;white-space:nowrap;text-overflow:ellipsis;}.summary.svelte-23x9on:empty {display:none;}"};function _6(t,e){se(e,!1),Te(t,b6);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue(),g=ue(),m=ue(),b=ue(),_=ue(),v=ue(),y=ue(),w=ue(),k=ue(),S=ue(),C=ue(),E=ue(),A=ue(),O=ue(),$=ue(),N=ue(),I=ue(),j=ue();let q=P(e,"locale",8),B=P(e,"keyPath",8);P(e,"fieldId",8);let W=P(e,"fieldLabel",8),G=P(e,"fieldConfig",8);P(e,"currentValue",8),P(e,"readonly",8,!1);let J=P(e,"required",8,!0);P(e,"invalid",8,!1);let ne=ue(""),K=ue();on(()=>{L(ne,Jn("short")),uo({[l(C)]:l(v)?._[l(C)]??!l(c)})});const Y=async fe=>{ot(es,!1),fe&&(Object.keys(i()?.currentValues??{}).forEach(Ae=>{(Ae===q()||l(a)==="duplicate")&&Ct(st,Ee(i).currentValues[Ae][l(O)]=fe,Ee(i))}),await pl());const Oe=rA(Object.fromEntries(Object.entries(Zp(l(N),q())).map(([Ae,De])=>[`${B()}.${Ae}`,De])));Object.entries(i()?.currentValues??{}).forEach(([Ae,De])=>{(Ae===q()||l(a)==="duplicate")&&(Ct(st,Ee(i).currentValues[Ae]=Object.assign(De,Ku({...Oe,...De})),Ee(i)),delete i().currentValues[Ae][B()])}),ot(es,!0)},re=()=>{ot(es,!1),Object.entries(i()?.currentValues??{}).forEach(([fe,Oe])=>{(fe===q()||l(a)==="duplicate")&&(Object.keys(Oe).forEach(Ae=>{Ae.startsWith(`${B()}.`)&&(Ct(st,Ee(i).currentValues[fe][Ae]=null,Ee(i)),delete i()?.currentValues[fe][Ae])}),Ct(st,Ee(i).currentValues[fe][B()]=null,Ee(i)))}),ot(es,!0)},ce=()=>h6({collectionName:l(g),fileName:l(b),keyPath:B(),valueMap:l(w),locale:q(),summaryTemplate:l(I)});Me(()=>(l(o),l(a),l(c),l(u),l(d),l(h),l(f),gt(G())),()=>{(fe=>(L(o,fe.name),L(a,tt(fe.i18n,!1)),L(c,tt(fe.collapsed,!1)),L(u,fe.summary),L(d,fe.fields),L(h,fe.types),L(f,tt(fe.typeKey,"type"))))(G())}),Me(()=>i(),()=>{L(p,i()?.collection)}),Me(()=>i(),()=>{L(g,i()?.collectionName??"")}),Me(()=>i(),()=>{L(m,i()?.collectionFile)}),Me(()=>i(),()=>{L(b,i()?.fileName)}),Me(()=>i(),()=>{L(_,i()?.currentValues??{})}),Me(()=>i(),()=>{L(v,i()?.expanderStates??{})}),Me(()=>(l(y),l(m),l(p),Pi),()=>{(fe=>L(y,fe.defaultLocale))((l(m)??l(p))?._i18n??Pi)}),Me(()=>(l(_),gt(q())),()=>{L(w,l(_)[q()])}),Me(()=>(l(w),gt(B()),l(g),l(b)),()=>{L(k,Object.entries(l(w)).some(([fe,Oe])=>!!fe.startsWith(`${B()}.`)&&(Oe!==null||gn({collectionName:l(g),fileName:l(b),valueMap:l(w),keyPath:fe})?.widget==="object")))}),Me(()=>(gt(q()),l(y),l(a)),()=>{L(S,q()===l(y)||l(a)!==!1)}),Me(()=>gt(B()),()=>{L(C,`${B()}#`)}),Me(()=>(l(v),l(C)),()=>{L(E,l(v)?._[l(C)]??!0)}),Me(()=>l(h),()=>{L(A,Array.isArray(l(h)))}),Me(()=>(gt(B()),l(f)),()=>{L(O,`${B()}.${l(f)}`)}),Me(()=>(l(A),l(h),l(w),l(O)),()=>{L($,l(A)?l(h)?.find(({name:fe})=>fe===l(w)[l(O)]):void 0)}),Me(()=>(l(A),l($),l(d)),()=>{L(N,(l(A)?l($)?.fields:l(d))??[])}),Me(()=>(l(A),l($),l(u)),()=>{L(I,l(A)&&l($)?.summary||l(u))}),Me(()=>(gt(q()),l(y),l(a)),()=>{L(j,q()!==l(y)&&l(a)==="duplicate")}),$r(),xr();var he=v6(),Q=M(he);{var X=fe=>{const Oe=Ge(()=>s()("add_x",{values:{name:W()||l(o)}}));ou(fe,{get label(){return l(Oe)},get checked(){return l(k)},get disabled(){return l(j)},onChange:({detail:{checked:Ae}})=>{Ae?Y():re()}})};U(Q,fe=>{J()||fe(X)})}var de=D(Q,2);{var _e=fe=>{gy(fe,{get disabled(){return l(j)},get fieldConfig(){return G()},addItem:Y})};U(de,fe=>{l(A)&&!l(k)&&fe(_e)})}var ve=D(de,2);{var be=fe=>{var Oe=m6(),Ae=R(Oe);const De=Ge(()=>l(E)?void 0:`object-${l(ne)}-summary`);mr(Ae,{get"aria-labelledby"(){return l(De)},children:(He,Ve)=>{var mt=g6(),et=M(mt);const ye=Ge(()=>l(A)?l($)?.label||l($)?.name:""),we=Ge(()=>l(N).length?()=>uo({[l(C)]:!l(E)}):void 0);vA(et,{get label(){return l(ye)},get controlId(){return`object-${l(ne)??""}-item-list`},get expanded(){return l(E)},get toggleExpanded(){return l(we)},get removeButtonVisible(){return l(A)},get removeButtonDisabled(){return l(j)},remove:()=>{re()}});var xe=D(et,2),ke=R(xe);lr(ke,()=>iu(l(K)),null,Ne=>{var ge=V(),Ce=M(ge);{var Ue=ut=>{var lt=V(),Ke=M(lt);dt(Ke,1,()=>l(N),rt=>rt.name,(rt,Et)=>{var Ht=V(),mn=M(Ht);lr(mn,()=>dn(0),null,On=>{const nr=Ge(()=>[B(),l(Et).name].join("."));by(On,{get keyPath(){return l(nr)},get locale(){return q()},get fieldConfig(){return l(Et)}})}),T(rt,Ht)}),T(ut,lt)},Je=ut=>{var lt=p6(),Ke=R(lt);H(rt=>{Se(lt,"id",`object-${l(ne)??""}-summary`),Z(Ke,rt)},[ce],Ge),T(ut,lt)};U(Ce,ut=>{l(E)?ut(Ue):ut(Je,!1)})}T(Ne,ge)}),Tt(xe,Ne=>L(K,Ne),()=>l(K)),H(()=>Se(xe,"id",`object-${l(ne)??""}-item-list`)),T(He,mt)},$$slots:{default:!0}}),T(fe,Oe)};U(ve,fe=>{(!(!J()||l(A))||l(k))&&l(S)&&fe(be)})}T(t,he),oe(),r()}function y6(t,e){se(e,!1);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=ue(),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue(),g=ue();let m=P(e,"locale",8),b=P(e,"keyPath",8),_=P(e,"fieldConfig",8);P(e,"currentValue",8),Me(()=>(l(s),l(o),l(a),gt(_())),()=>{(k=>(L(s,k.fields),L(o,k.types),L(a,tt(k.typeKey,"type"))))(_())}),Me(()=>(i(),gt(m())),()=>{L(c,i()?.currentValues[m()]??{})}),Me(()=>(l(c),gt(b())),()=>{L(u,Object.entries(l(c)).some(([k,S])=>!!k.startsWith(`${b()}.`)&&!!S))}),Me(()=>l(o),()=>{L(d,Array.isArray(l(o)))}),Me(()=>(gt(b()),l(a)),()=>{L(h,`${b()}.${l(a)}`)}),Me(()=>(l(d),l(o),l(c),l(h)),()=>{L(f,l(d)?l(o)?.find(({name:k})=>k===l(c)[l(h)]):void 0)}),Me(()=>l(f),()=>{L(p,l(f)?l(f).label||l(f).name:void 0)}),Me(()=>(l(d),l(f),l(s)),()=>{L(g,(l(d)?l(f)?.fields:l(s))??[])}),$r(),xr();var v=V(),y=M(v);{var w=k=>{bA(k,{get label(){return l(p)},children:(S,C)=>{var E=V(),A=M(E);dt(A,1,()=>l(g),O=>O.name,(O,$)=>{var N=V(),I=M(N);lr(I,()=>dn(0),null,j=>{const q=Ge(()=>[b(),l($).name].join("."));my(j,{get keyPath(){return l(q)},get locale(){return m()},get fieldConfig(){return l($)}})}),T(O,N)}),T(S,E)},$$slots:{default:!0}})};U(y,k=>{l(u)&&k(w)})}T(t,v),oe(),r()}function w6(t,e){se(e,!1);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=ue(),o=ue(),a=ue();let c=P(e,"locale",8),u=P(e,"keyPath",8),d=P(e,"fieldId",8),h=P(e,"fieldConfig",8),f=P(e,"currentValue",8),p=P(e,"readonly",8,!1),g=P(e,"required",8,!0),m=P(e,"invalid",8,!1),b=P(e,"options",8);const _=E=>{i()&&Object.keys(i().currentValues??{}).forEach(A=>{l(s)!=="duplicate"&&A!==c()||nA(A,u(),E)})},v=E=>{_(({valueList:A})=>{A.push(E)})},y=E=>{_(({valueList:A})=>{A.splice(A.indexOf(E),1)})};Me(()=>(l(s),l(o),l(a),gt(h())),()=>{(E=>(L(s,E.i18n),L(o,E.max),L(a,tt(E.dropdown_threshold,5))))(h())}),$r(),xr();var w=V(),k=M(w);{var S=E=>{cN(E,{get disabled(){return p()},get readonly(){return p()},get required(){return g()},get invalid(){return m()},get options(){return b()},get values(){return f()},get max(){return l(o)},get"aria-labelledby"(){return`${d()??""}-label`},get"aria-errormessage"(){return`${d()??""}-error`},onAddValue:({detail:{value:A}})=>{v(A)},onRemoveValue:({detail:{value:A}})=>{y(A)}})},C=E=>{n$(E,{get"aria-labelledby"(){return`${d()??""}-label`},children:(A,O)=>{var $=V(),N=M($);dt(N,1,b,({label:I,value:j})=>j,(I,j)=>{let q=()=>l(j).label,B=()=>l(j).value;const W=Ge(()=>f().includes(B()));ou(I,{get label(){return q()},get value(){return B()},get readonly(){return p()},get required(){return g()},get invalid(){return m()},get checked(){return l(W)},get"aria-errormessage"(){return`${d()??""}-error`},onChange:({detail:{checked:G}})=>{G?v(B()):y(B())}})}),T(A,$)},$$slots:{default:!0}})};U(k,E=>{b().length>l(a)?E(S):E(C,!1)})}T(t,w),oe(),r()}function wA(t,e){se(e,!1);const[n,r]=me(),i=()=>z(le,"$_",n),s=ue();P(e,"locale",8),P(e,"keyPath",8);let o=P(e,"fieldId",8),a=P(e,"fieldConfig",8),c=P(e,"currentValue",12),u=P(e,"readonly",8,!1),d=P(e,"required",8,!0),h=P(e,"invalid",8,!1),f=P(e,"options",8);Me(()=>(l(s),gt(a())),()=>{(_=>L(s,tt(_.dropdown_threshold,5)))(a())}),Me(()=>(gt(d()),gt(f()),i()),()=>{!d()&&!f().some(({value:_})=>_==="")&&f().unshift({label:i()("unselected_option"),value:"",searchValue:""})}),$r(),xr();var p=V(),g=M(p);{var m=_=>{uu(_,{get readonly(){return u()},get required(){return d()},get invalid(){return h()},get"aria-labelledby"(){return`${o()??""}-label`},get"aria-errormessage"(){return`${o()??""}-error`},get value(){return c()},set value(v){c(v)},children:(v,y)=>{var w=V(),k=M(w);dt(k,1,f,({label:S,value:C,searchValue:E})=>C,(S,C)=>{let E=()=>l(C).label,A=()=>l(C).value,O=()=>l(C).searchValue;const $=Ge(()=>A()===c());fr(S,{get label(){return E()},get value(){return A()},get searchValue(){return O()},get selected(){return l($)},wrap:!0})}),T(v,w)},$$slots:{default:!0},$$legacy:!0})},b=_=>{G$(_,{get readonly(){return u()},get required(){return d()},get invalid(){return h()},get"aria-labelledby"(){return`${o()??""}-label`},get"aria-errormessage"(){return`${o()??""}-error`},onChange:({detail:{value:v}})=>{c(v)},children:(v,y)=>{var w=V(),k=M(w);dt(k,1,f,({label:S,value:C})=>C,(S,C)=>{let E=()=>l(C).label,A=()=>l(C).value;const O=Ge(()=>A()===c());Z$(S,{get label(){return E()},get value(){return A()},get checked(){return l(O)}})}),T(v,w)},$$slots:{default:!0}})};U(g,_=>{f().length>l(s)?_(m):_(b,!1)})}T(t,p),oe(),r()}function xA(t,e){se(e,!1);const n=ue(),r=ue(),i=ue(),s=ue();let o=P(e,"locale",8),a=P(e,"keyPath",8),c=P(e,"fieldId",8);P(e,"fieldLabel",8);let u=P(e,"fieldConfig",8),d=P(e,"currentValue",12),h=P(e,"sortOptions",8,!1),f=P(e,"readonly",8,!1),p=P(e,"required",8,!0),g=P(e,"invalid",8,!1);Me(()=>(l(n),l(r),gt(u())),()=>{(_=>(L(n,_.options),L(r,_.multiple)))(u())}),Me(()=>(l(n),gt(h()),ii),()=>{L(i,(()=>{const _=l(n).map(v=>Gn(v)?v:{label:v,value:v});return h()&&_.sort((v,y)=>ii(v.label,y.label)),_})())}),Me(()=>(l(r),wA),()=>{L(s,l(r)?w6:wA)}),$r(),xr();var m=V(),b=M(m);hs(b,()=>JSON.stringify(l(i)),_=>{l(s)(_,{get locale(){return o()},get keyPath(){return a()},get fieldId(){return c()},get fieldConfig(){return u()},get readonly(){return f()},get required(){return p()},get invalid(){return g()},get options(){return l(i)},get currentValue(){return d()},set currentValue(v){d(v)},$$legacy:!0})}),T(t,m),oe()}var x6=F('<div role="none" class="wrapper"><!></div>');function k6(t,e){se(e,!1);const n=ue(),r=ue(),i=ue(),s=ue();let o=P(e,"locale",8),a=P(e,"keyPath",8),c=P(e,"fieldId",8),u=P(e,"fieldLabel",8),d=P(e,"fieldConfig",8),h=P(e,"currentValue",12),f=P(e,"readonly",8,!1),p=P(e,"required",8,!0),g=P(e,"invalid",8,!1);Me(()=>(l(n),l(r),gt(d())),()=>{(v=>(L(n,v.collection),L(r,v.file)))(d())}),Me(()=>(l(r),l(n),Wo),()=>{L(i,l(r)?[E_(l(n),l(r))].filter(Boolean):Wo(l(n)))}),Me(()=>(gt(o()),gt(d()),l(i)),()=>{L(s,b_(o(),d(),l(i)))}),$r(),xr();var m=x6(),b=R(m);const _=Ge(()=>({...d(),options:l(s)}));xA(b,{get locale(){return o()},get keyPath(){return a()},get fieldId(){return c()},get fieldLabel(){return u()},get fieldConfig(){return l(_)},get readonly(){return f()},get required(){return p()},get invalid(){return g()},sortOptions:!0,get currentValue(){return h()},set currentValue(v){h(v)},$$legacy:!0}),T(t,m),oe()}var S6=F('<p dir="auto"> </p>');function E6(t,e){se(e,!1);const n=ue(),r=ue(),i=ue(),s=ue(),o=ue(),a=ue(),c=ue(),u=ue();let d=P(e,"locale",8);P(e,"keyPath",8);let h=P(e,"fieldConfig",8),f=P(e,"currentValue",8);Me(()=>(l(n),l(r),l(i),l(s),gt(h())),()=>{(b=>(L(n,b.collection),L(r,b.file),L(i,tt(b.multiple,!1)),L(s,b.value_field)))(h())}),Me(()=>(l(r),l(n),Wo),()=>{L(o,l(r)?[E_(l(n),l(r))].filter(Boolean):Wo(l(n)))}),Me(()=>(gt(d()),gt(h()),l(o)),()=>{L(a,b_(d(),h(),l(o)))}),Me(()=>(l(i),gt(f()),l(a),l(s)),()=>{L(c,(l(i)?f():[f()]).filter(b=>b!==void 0).map(b=>{const _=l(a).find(v=>v.value===b)?.label;return _&&_!==b?["slug","{{slug}}","{{fields.slug}}"].includes(l(s))?_:`${_} (${b})`:b}))}),Me(()=>gt(d()),()=>{L(u,bc(d()))}),$r(),xr();var p=V(),g=M(p);{var m=b=>{var _=S6(),v=R(_);H(y=>{Se(_,"lang",d()),Z(v,y),_.dir=_.dir},[()=>l(u).format(l(c))],Ge),T(b,_)};U(g,b=>{l(c).length&&b(m)})}T(t,p),oe()}var T6=F('<p dir="auto"> </p>'),C6=F('<p dir="auto"> </p>');function A6(t,e){se(e,!1);const n=ue(),r=ue(),i=ue(),s=ue();let o=P(e,"locale",8);P(e,"keyPath",8);let a=P(e,"fieldConfig",8),c=P(e,"currentValue",8);const u=g=>l(i)&&l(n).find(m=>m.value===g)?.label||g;Me(()=>(l(n),l(r),gt(a())),()=>{(g=>(L(n,g.options),L(r,g.multiple)))(a())}),Me(()=>l(n),()=>{L(i,nS(l(n)))}),Me(()=>gt(o()),()=>{L(s,bc(o()))}),$r(),xr();var d=V(),h=M(d);{var f=g=>{var m=T6(),b=R(m);H(_=>{Se(m,"lang",o()),Z(b,_),m.dir=m.dir},[()=>l(s).format(c().map(u).sort())],Ge),T(g,m)},p=g=>{var m=V(),b=M(m);{var _=v=>{var y=C6(),w=R(y);H(k=>{Se(y,"lang",o()),Z(w,k),y.dir=y.dir},[()=>u(c())],Ge),T(v,y)};U(b,v=>{c()!==void 0&&v(_)},!0)}T(g,m)};U(h,g=>{l(r)&&Array.isArray(c())&&c().length?g(f):g(p,!1)})}T(t,d),oe()}var P6=F('<div class="wrapper svelte-5qs6s0"><!> <span role="none" class="count svelte-5qs6s0"> </span> <!></div>');const O6={hash:"svelte-5qs6s0",code:".wrapper.svelte-5qs6s0 {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:right;}.count.invalid.svelte-5qs6s0 {color:var(--sui-error-foreground-color);}.count.svelte-5qs6s0:not(.invalid) {color:var(--sui-success-foreground-color);}"};function kA(t,e){se(e,!0),Te(t,O6);const[n,r]=me(),i=()=>z(le,"$_",n),s=x(()=>e.fieldConfig.minlength),o=x(()=>e.fieldConfig.maxlength),a=x(()=>LC(e.fieldConfig,e.currentValue)),c=x(()=>l(a).count),u=x(()=>l(a).hasMin),d=x(()=>l(a).hasMax),h=x(()=>l(a).invalid);var f=V(),p=M(f);{var g=m=>{var b=P6(),_=R(b);{var v=C=>{var E=We();H(()=>Z(E,`${l(s)??""}
|
|
586
|
+
${$??""}`)},[()=>l(f).name.normalize(),()=>i()?x_(l(f).size):"",()=>s()(`file_type_labels.${l(p).extension}`,{default:l(p).extension.toUpperCase()})]),T(c,h)}),T(t,a),oe(),r()}var Z5=({target:t},e)=>{const n=[...t.files];e()?.({files:n,file:n[0]})},X5=F('<input type="file" hidden>');function VC(t,e){se(e,!0);let n=P(e,"accept",3,void 0),r=P(e,"multiple",3,!1),i=P(e,"onSelect",3,void 0),s=ae(void 0);const o=()=>{l(s)?.click()};var a=X5();return a.__change=[Z5,i],Tt(a,c=>L(s,c),()=>l(s)),H(()=>{Se(a,"accept",n()),a.multiple=r()}),vi("cancel",a,c=>{c.stopPropagation()}),T(t,a),oe({open:o})}ia(["change"]);var Q5=F('<div role="alert"> </div>'),eH=F('<div role="none"> </div> <div role="none"><!></div> <!>',1),tH=F('<div role="none" class="content svelte-osk4b"><!> <!></div>'),nH=F('<div role="none" class="drop-indicator svelte-osk4b"><div role="none" class="svelte-osk4b"><!> <span role="none"> </span></div></div>'),rH=F('<div role="none" class="drop-target svelte-osk4b"><!> <!></div> <!>',1);const iH={hash:"svelte-osk4b",code:".drop-target.svelte-osk4b {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;}.drop-target.svelte-osk4b > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}.drop-target.svelte-osk4b > :where(.svelte-osk4b) {pointer-events:none;}.drop-target.svelte-osk4b button {pointer-events:auto;}.drop-indicator.svelte-osk4b {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl)/80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;}.drop-indicator.svelte-osk4b div:where(.svelte-osk4b) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);}.drop-indicator.svelte-osk4b div:where(.svelte-osk4b) .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.content.svelte-osk4b {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}"};function Rd(t,e){se(e,!0),Te(t,iH);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"accept",3,void 0),o=P(e,"disabled",3,!1),a=P(e,"multiple",3,!1),c=P(e,"showUploadButton",3,!1),u=P(e,"showFilePreview",3,!1),d=P(e,"onSelect",3,void 0),h=P(e,"children",3,void 0),f=ae(!1),p=ae(!1),g=ae(void 0),m=ae(ie([]));const b=()=>{l(g)?.open()},_=()=>{L(m,ie([])),d()?.({files:l(m)})},v=N=>{L(m,ie(a()?N:N.slice(0,1))),d()?.({files:l(m)})};var y=rH(),w=M(y),k=R(w);{var S=N=>{var I=tH(),j=R(I);{var q=G=>{var J=eH(),ne=M(J),K=R(ne),Y=D(ne,2),re=R(Y);const ce=x(()=>i()(a()?"choose_files":"choose_file"));Xe(re,{variant:"primary",get label(){return l(ce)},get disabled(){return o()},onclick:()=>{b()},startIcon:de=>{nt(de,{name:"cloud_upload"})},$$slots:{startIcon:!0}});var he=D(Y,2);{var Q=X=>{var de=Q5(),ye=R(de);H(ve=>Z(ye,ve),[()=>i()("drop_files_type_mismatch",{values:{type:s()}})]),T(X,de)};U(he,X=>{l(p)&&X(Q)})}H(X=>Z(K,X),[()=>i()(a()?"drop_or_browse_files":"drop_or_browse_file")]),T(G,J)};U(j,G=>{c()&&G(q)})}var B=D(j,2);{var W=G=>{HC(G,{get files(){return l(m)},set files(J){L(m,ie(J))}})};U(B,G=>{u()&&l(m).length&&G(W)})}T(N,I)},C=N=>{var I=V(),j=M(I);Re(j,()=>h()??Fe),T(N,I)};U(k,N=>{c()||u()&&l(m).length?N(S):N(C,!1)})}var E=D(k,2);{var A=N=>{var I=nH(),j=R(I),q=R(j);nt(q,{name:"download"});var B=D(q,2),W=R(B);H(G=>Z(W,G),[()=>i()(a()?"drop_files_here":"drop_file_here")]),T(N,I)};U(E,N=>{l(f)&&N(A)})}var O=D(w,2);Tt(VC(O,{get accept(){return s()},get multiple(){return a()},onSelect:({files:N})=>{v(N)}}),N=>L(g,ie(N)),()=>l(g)),vi("dragover",w,N=>{N.preventDefault(),!(o()||!N.dataTransfer)&&(N.dataTransfer.dropEffect="copy",L(f,!0),L(p,!1))}),vi("dragleave",w,N=>{N.preventDefault(),!o()&&L(f,!1)}),vi("dragend",w,N=>{N.preventDefault(),!o()&&L(f,!1)}),vi("drop",w,async N=>{if(N.preventDefault(),o()||!N.dataTransfer)return;L(f,!1);const I=await NP(N.dataTransfer,{accept:s()});I.length?v(I):L(p,!0)}),T(t,y);var $=oe({openFilePicker:b,reset:_});return r(),$}var sH=F('<div role="none" class="spinner svelte-v6s0f"></div>'),oH=F("<!> <!>",1);const aH={hash:"svelte-v6s0f",code:".spinner.svelte-v6s0f {height:1px;}"};function tl(t,e){se(e,!0),Te(t,aH);let n=P(e,"itemChunkSize",3,25),r=ae(ie(n())),i=ae(void 0);const s=x(()=>e.items.length>l(r)),o=new IntersectionObserver(([{isIntersecting:h}])=>{h&&(l(s)?L(r,l(r)+n()):o.disconnect())});Be(()=>{l(i)&&o.observe(l(i))});var a=oH(),c=M(a);dt(c,17,()=>e.items.slice(0,l(r)),h=>h[e.itemKey],(h,f)=>{var p=V(),g=M(p);Re(g,()=>e.renderItem,()=>l(f)),T(h,p)});var u=D(c,2);{var d=h=>{var f=sH();Tt(f,p=>L(i,p),()=>l(i)),T(h,f)};U(u,h=>{l(s)&&h(d)})}T(t,a),oe()}var lH=F('<div role="none" class="list-container svelte-1smo9s9"><!></div>');const cH={hash:"svelte-1smo9s9",code:".list-container.svelte-1smo9s9 {flex:auto;position:relative;height:100%;overflow:hidden;}.list-container.svelte-1smo9s9 > .group {height:100%;overflow-y:auto;overscroll-behavior-y:contain;}.list-container.svelte-1smo9s9 > .group :is(.grid-view, .list-view) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}"};function dy(t,e){Te(t,cH);let n=P(e,"children",3,void 0),r=at(e,["$$slots","$$events","$$legacy","children"]);var i=lH(),s=R(i);mr(s,Zt(()=>r,{children:(o,a)=>{var c=V(),u=M(c);Re(u,()=>n()??Fe),T(o,c)},$$slots:{default:!0}})),T(t,i)}var uH=F('<div role="none"><!></div>');const dH={hash:"svelte-180m7hm",code:'.grid-view.svelte-180m7hm .row-group-caption {display:block;margin:8px;grid-column:1/-1;}.grid-view.svelte-180m7hm .row-group-caption th {display:block;}.grid-view.svelte-180m7hm .grid-body {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 200px), 1fr));gap:16px;border-width:0;}.grid-view.svelte-180m7hm [role="row"] {display:block;position:relative;overflow:hidden;height:auto;text-align:left;}.grid-view.svelte-180m7hm [role="row"] .grid-cell {display:block;}.grid-view.svelte-180m7hm [role="row"] .grid-cell.image:empty {aspect-ratio:1/1;}.grid-view.svelte-180m7hm [role="row"] .checkbox {position:absolute;inset:4px auto auto 4px;z-index:2;}.grid-view.svelte-180m7hm [role="row"] .title span {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:12px;height:40px;line-height:1.5;word-break:break-all;}.grid-view.svelte-180m7hm [role="row"][tabindex] {border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-secondary-background-color);cursor:pointer;transition:background-color 200ms;}.grid-view.svelte-180m7hm [role="row"][tabindex]:hover, .grid-view.svelte-180m7hm [role="row"][tabindex]:focus, .grid-view.svelte-180m7hm [role="row"][tabindex]:active {background-color:var(--sui-hover-background-color);}.list-view.svelte-180m7hm {--icon-size: 36px;}.list-view.svelte-180m7hm [role="grid"] .row-group .row-group-caption + .grid-row .grid-cell {border-top-width:0 !important;}.list-view.svelte-180m7hm [role="grid"] .row-group .row-group-caption ~ .grid-row:last-child .grid-cell {border-bottom-width:0 !important;}.list-view.svelte-180m7hm [role="grid"] [role="row"] {transition-property:background-color, outline-color;transition-duration:200ms;}.list-view.svelte-180m7hm [role="grid"] [role="row"][tabindex] {cursor:pointer;}.list-view.svelte-180m7hm [role="grid"] [role="row"]:hover {background-color:var(--sui-hover-background-color);}.list-view.svelte-180m7hm [role="grid"] [role="rowheader"] {border-width:0;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"] {overflow:hidden;padding:0 16px 0 0;height:40px;max-width:100%;color:var(--sui-secondary-foreground-color);white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"]:first-child {padding-left:16px;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"] .label {overflow:hidden;text-overflow:ellipsis;}.list-view.svelte-180m7hm [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:"";}.list-view.svelte-180m7hm [role="grid"] [role="row"] [role="gridcell"] {border-width:1px 0 0;border-color:var(--sui-secondary-border-color);}.list-view.svelte-180m7hm [role="grid"] [role="row"]:last-child [role="gridcell"] {border-width:1px 0;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"].checkbox {padding-left:8px;width:44px;}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"].title {width:100%; /* flex: auto */color:var(--sui-primary-foreground-color);}.list-view.svelte-180m7hm [role="grid"] [role="gridcell"].image {width:48px;}'};function Dd(t,e){se(e,!0),Te(t,dH);let n=P(e,"children",3,void 0),r=at(e,["$$slots","$$events","$$legacy","viewType","children"]);var i=uH(),s=R(i);lr(s,()=>dn(0),null,o=>{A$(o,Zt({multiple:!0,clickToSelect:!1},()=>r,{children:(a,c)=>{var u=V(),d=M(u);Re(d,()=>n()??Fe),T(a,u)},$$slots:{default:!0}}))}),H(()=>Ir(i,`${e.viewType??""}-view svelte-180m7hm`)),T(t,i),oe()}var fH=F('<span role="none"> </span>');function hH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ts,"$currentView",n),s=()=>z(Qr,"$selectedAssetFolder",n),o=()=>z(le,"$_",n),a=()=>z(A_,"$globalAssetFolder",n),c=()=>z(cy,"$assetGroups",n),u=()=>z(el,"$listedAssets",n),d=x(()=>i().type),h=x(()=>!!s()?.entryRelative),f=x(()=>o()("asset_list"));dy(t,{get"aria-label"(){return l(f)},children:(p,g)=>{Rd(p,{get disabled(){return l(h)},multiple:!0,onSelect:({files:m})=>{ot(Ps,{folder:s()?.internalPath||a()?.internalPath,files:m})},children:(m,b)=>{var _=V(),v=M(_);{var y=k=>{const S=x(()=>o()("assets"));Dd(k,{id:"asset-list",get viewType(){return l(d)},get"aria-label"(){return l(S)},get"aria-rowcount"(){return u().length},children:(C,E)=>{var A=V(),O=M(A);dt(O,1,()=>Object.entries(c()),([$,N])=>$,($,N)=>{let I=()=>l(N)[0],j=()=>l(N)[1];const q=x(()=>I()!=="*"?I():void 0);kx($,{get label(){return l(q)},children:(B,W)=>{tl(B,{get items(){return j()},itemKey:"path",renderItem:(J,ne=Fe)=>{var K=V(),Y=M(K);hs(Y,()=>ne().sha,re=>{W5(re,{get asset(){return ne()},get viewType(){return l(d)}})}),T(J,K)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}),T(C,A)},$$slots:{default:!0}})},w=k=>{qr(k,{children:(S,C)=>{var E=fH(),A=R(E);H(O=>Z(A,O),[()=>o()("no_files_found")]),T(S,E)},$$slots:{default:!0}})};U(v,k=>{Object.values(c()).flat(1).length?k(y):k(w,!1)})}T(m,_)},$$slots:{default:!0}})},$$slots:{default:!0}}),oe(),r()}var pH=F('<span class="count"> </span>'),gH=F('<div role="none" class="primary-sidebar"><!></div>');function mH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Cn,"$appLocale",n),s=()=>z(ci,"$allAssetFolders",n),o=()=>z(le,"$_",n),a=()=>z(Qr,"$selectedAssetFolder",n),c=()=>z(Qt,"$allAssets",n),u=x(()=>Intl.NumberFormat(i()??void 0)),d=x(()=>[{collectionName:"*",internalPath:void 0,publicPath:void 0,entryRelative:!1},...s()]);var h=gH(),f=R(h);const p=x(()=>o()("asset_folders"));lu(f,{get"aria-label"(){return l(p)},"aria-controls":"assets-container",children:(g,m)=>{var b=V(),_=M(b);dt(_,17,()=>l(d),({collectionName:v,internalPath:y,entryRelative:w})=>v,(v,y)=>{let w=()=>l(y).collectionName,k=()=>l(y).internalPath,S=()=>l(y).entryRelative;const C=x(()=>w()?Ni(w()):void 0),E=x(S),A=x(()=>k()===void 0&&!a()||k()===a()?.internalPath),O=x(()=>i()?tg(w()):"");fr(v,{get selected(){return l(A)},get label(){return l(O)},onSelect:()=>{jn(k()?`/assets/${k()}`:"/assets")},ondragover:I=>{I.preventDefault(),!l(E)&&(k()===void 0||l(A)?I.dataTransfer.dropEffect="none":(I.dataTransfer.dropEffect="move",I.target.classList.add("dragover")))},ondragleave:I=>{I.preventDefault(),!l(E)&&I.target.classList.remove("dragover")},ondragend:I=>{I.preventDefault(),!l(E)&&I.target.classList.remove("dragover")},ondrop:I=>{I.preventDefault(),!l(E)&&I.target.classList.remove("dragover")},startIcon:I=>{const j=x(()=>l(C)?.icon||"folder");nt(I,{get name(){return l(j)}})},endIcon:I=>{var j=V(),q=M(j);hs(q,c,B=>{var W=V(),G=M(W);lr(G,()=>dn(0),null,J=>{var ne=pH();const K=x(()=>(k()?FB(k()):c()).length);var Y=R(ne);H((re,ce)=>{Se(ne,"aria-label",`(${re??""})`),Z(Y,ce)},[()=>o()(l(K)>1?"many_assets":l(K)===1?"one_asset":"no_assets",{values:{count:l(K)}}),()=>l(u).format(l(K))]),T(J,ne)}),T(B,W)}),T(I,j)},$$slots:{startIcon:!0,endIcon:!0}})}),T(g,b)},$$slots:{default:!0}}),T(t,h),oe(),r()}function vH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=x(()=>!e.asset||!GT(e.asset)),o=x(()=>i()("preview")),a=x(()=>i()("show_preview"));Xe(t,{variant:"ghost",get disabled(){return l(s)},get label(){return l(o)},get"aria-label"(){return l(a)},onclick:()=>{jn(`/assets/${e.asset?.path}`)}}),oe(),r()}function bH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Qr,"$selectedAssetFolder",n),s=()=>z(le,"$_",n),o=x(()=>!!i()?.entryRelative),a=x(()=>s()("upload")),c=x(()=>s()("upload_assets"));Xe(t,{variant:"primary",get label(){return l(a)},get disabled(){return l(o)},get"aria-label"(){return l(c)},onclick:()=>{ot(Qa,!0)},startIcon:d=>{nt(d,{name:"cloud_upload"})},$$slots:{startIcon:!0}}),oe(),r()}var _H=F('<span role="none"> </span>'),yH=F('<h2 role="none"> <!></h2> <!> <!> <!> <!> <!> <!> <!>',1);function wH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(kd,"$selectedAssets",n),s=()=>z(lo,"$focusedAsset",n),o=()=>z(le,"$_",n),a=()=>z(Cn,"$appLocale",n),c=()=>z(Qr,"$selectedAssetFolder",n),u=()=>z(el,"$listedAssets",n),d=x(()=>i().length?i():s()?[s()]:[]),h=x(()=>o()("folder"));Ks(t,{variant:"primary",get"aria-label"(){return l(h)},children:(f,p)=>{var g=yH(),m=M(g),b=R(m),_=D(b);{var v=I=>{var j=_H(),q=R(j);H(()=>Z(q,`/${c().internalPath??""}`)),T(I,j)};U(_,I=>{c()&&I(v)})}var y=D(m,2);Wr(y,{flex:!0});var w=D(y,2);vH(w,{get asset(){return s()}});var k=D(w,2);const S=x(()=>s()?[s()]:[]);EC(k,{get assets(){return l(S)}});var C=D(k,2);BC(C,{get assets(){return l(d)}});var E=D(C,2);const A=x(()=>o()(l(d).length===1?"delete_selected_asset":"delete_selected_assets")),O=x(()=>o()(l(d).length===1?"confirm_deleting_selected_asset":l(d).length===u().length?"confirm_deleting_all_assets":"confirm_deleting_selected_assets",{values:{count:l(d).length}}));UC(E,{get assets(){return l(d)},get buttonDescription(){return l(A)},get dialogDescription(){return l(O)}});var $=D(E,2);qC($,{get asset(){return s()}});var N=D($,2);bH(N,{}),H(I=>Z(b,`${I??""} `),[()=>a()?ly(c()?.internalPath):""]),T(f,g)},$$slots:{default:!0}}),oe(),r()}var xH=F('<span role="none"> </span>');function kH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ts,"$currentView",n),s=()=>z(le,"$_",n),o=()=>z(lo,"$focusedAsset",n),a=x(()=>!i().showInfo),c=x(()=>s()("asset_info"));mr(t,{id:"asset-info",class:"secondary-sidebar",get hidden(){return l(a)},get"aria-label"(){return l(c)},children:(u,d)=>{var h=V(),f=M(h);{var p=m=>{SC(m,{get asset(){return o()},showPreview:!0})},g=m=>{qr(m,{children:(b,_)=>{var v=xH(),y=R(v);H(w=>Z(y,w),[()=>s()("select_asset_show_info")]),T(b,v)},$$slots:{default:!0}})};U(f,m=>{o()?m(p):m(g,!1)})}T(u,h)},$$slots:{default:!0}}),oe(),r()}var SH=F("<!> <!>",1);function WC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(e.currentView,"$currentView",n);let o=P(e,"label",3,""),a=P(e,"disabled",3,!1),c=P(e,"multiple",3,!1),u=P(e,"noneLabel",3,""),d=P(e,"filters",19,()=>[]);const h=x(()=>o()||i()("filter"));kr(t,{variant:"ghost",get label(){return l(h)},get disabled(){return a()},popupPosition:"bottom-right",popup:p=>{const g=x(()=>i()("filtering_options"));hr(p,{get"aria-label"(){return l(g)},get"aria-controls"(){return e["aria-controls"]},children:(m,b)=>{var _=V(),v=M(_);{var y=k=>{var S=V(),C=M(S);dt(C,17,d,cr,(E,A)=>{let O=()=>l(A).label,$=()=>l(A).field,N=()=>l(A).pattern;const I=x(()=>(s().filters||[]).findIndex(q=>q.field===$()&&q.pattern===N())),j=x(()=>l(I)>-1);Af(E,{get label(){return O()},get checked(){return l(j)},onChange:()=>{e.currentView.update(q=>{const B=q.filters?[...q.filters]:[];return l(I)>-1?B.splice(l(I),1):B.push({field:$(),pattern:N()}),{...q,filters:B}})}})}),T(k,S)},w=k=>{var S=SH(),C=M(S);const E=x(()=>u()||i()("sort_keys.none")),A=x(()=>!s().filter);cu(C,{get label(){return l(E)},get checked(){return l(A)},onSelect:()=>{e.currentView.update($=>({...$,filter:void 0}))}});var O=D(C,2);dt(O,17,d,cr,($,N)=>{let I=()=>l(N).label,j=()=>l(N).field,q=()=>l(N).pattern;const B=x(()=>s().filter?.field===j()&&s().filter.pattern===q());cu($,{get label(){return I()},get checked(){return l(B)},onSelect:()=>{e.currentView.update(W=>({...W,filter:{field:j(),pattern:q()}}))}})}),T(k,S)};U(v,k=>{c()?k(y):k(w,!1)})}T(m,_)},$$slots:{default:!0}})},$$slots:{popup:!0}}),oe(),r()}var EH=F('<span role="none" class="svelte-1154dkn"> </span>'),TH=F('<div role="none" class="wrapper svelte-1154dkn"><!> <!></div>');const CH={hash:"svelte-1154dkn",code:".wrapper.svelte-1154dkn {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1154dkn {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function GC(t,e){se(e,!0),Te(t,CH);const[n,r]=me(),i=()=>z(e.selectedItems,"$selectedItems",n),s=()=>z(le,"$_",n),o=x(()=>e.allItems.length),a=x(()=>i().length),c=x(()=>!!l(a)),u=x(()=>l(c)&&l(a)===l(o));var d=TH(),h=R(d);const f=x(()=>!l(o)),p=x(()=>s()("select_all")),g=x(()=>l(c)&&!l(u)?"mixed":l(c));ou(h,{get disabled(){return l(f)},get"aria-label"(){return l(p)},get checked(){return l(g)},onChange:()=>{e.selectedItems.set(l(u)?[]:[...e.allItems])}});var m=D(h,2);{var b=_=>{var v=EH(),y=R(v);H(w=>Z(y,w),[()=>s()("x_of_x_selected",{values:{total:l(o),selected:l(a)}})]),T(_,v)};U(m,_=>{l(c)&&_(b)})}T(t,d),oe(),r()}function KC(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(e.currentView,"$currentView",n);let o=P(e,"label",3,""),a=P(e,"disabled",3,!1),c=P(e,"fields",19,()=>[]),u=P(e,"collectionName",3,void 0);const d=["ascending","descending"],h=["date","commit_date"],f=x(()=>o()||i()("sort"));kr(t,{variant:"ghost",get label(){return l(f)},get disabled(){return a()},popupPosition:"bottom-right",popup:g=>{const m=x(()=>i()("sorting_options"));hr(g,{get"aria-label"(){return l(m)},get"aria-controls"(){return e["aria-controls"]},children:(b,_)=>{var v=V(),y=M(v);dt(y,17,c,({key:w,label:k})=>w,(w,k)=>{let S=()=>l(k).key,C=()=>l(k).label;var E=V(),A=M(E);dt(A,16,()=>d,O=>O,(O,$)=>{const N=x(()=>i()(h.includes(S())||u()&&gn({collectionName:u(),keyPath:S()})?.widget==="datetime"?`${$}_date`:$,{values:{label:C()}})),I=x(()=>s().sort?.key===S()&&s().sort.order===$);cu(O,{get label(){return l(N)},get checked(){return l(I)},onSelect:()=>{e.currentView.update(j=>({...j,sort:{key:S(),order:$}}))}})}),T(w,E)}),T(b,v)},$$slots:{default:!0}})},$$slots:{popup:!0}}),oe(),r()}var AH=F("<!> <!>",1),PH=F('<div role="none" class="wrapper svelte-1adg8sx"><!></div>');const OH={hash:"svelte-1adg8sx",code:".wrapper.svelte-1adg8sx {display:contents;}.wrapper.svelte-1adg8sx button {border-radius:var(--sui-button-medium-border-radius) !important;}"};function fy(t,e){se(e,!0),Te(t,OH);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(e.currentView,"$currentView",n);let o=P(e,"disabled",3,!1),a=at(e,["$$slots","$$events","$$legacy","disabled","currentView"]);var c=PH(),u=R(c);const d=x(()=>i()("switch_view"));Tf(u,Zt({get disabled(){return o()},get"aria-label"(){return l(d)}},()=>a,{children:(h,f)=>{var p=AH(),g=M(p);const m=x(()=>s().type!=="grid"),b=x(()=>i()("list_view"));su(g,{get disabled(){return o()},get selected(){return l(m)},variant:"ghost",iconic:!0,get"aria-label"(){return l(b)},onSelect:()=>{e.currentView.update(k=>({...k,type:"list"}))},startIcon:k=>{nt(k,{name:"format_list_bulleted"})},$$slots:{startIcon:!0}});var _=D(g,2);const v=x(()=>s().type==="grid"),y=x(()=>i()("grid_view"));su(_,{get disabled(){return o()},get selected(){return l(v)},variant:"ghost",iconic:!0,get"aria-label"(){return l(y)},onSelect:()=>{e.currentView.update(k=>({...k,type:"grid"}))},startIcon:k=>{nt(k,{name:"grid_view"})},$$slots:{startIcon:!0}}),T(h,p)},$$slots:{default:!0}})),T(t,c),oe(),r()}var LH=F("<!> <!> <!> <!> <!> <!> <!>",1);function $H(t,e){se(e,!0);const[n,r]=me(),i=()=>z(el,"$listedAssets",n),s=()=>z(le,"$_",n),o=()=>z(cy,"$assetGroups",n),a=()=>z(k5,"$sortFields",n),c=()=>z(ts,"$currentView",n),u=x(()=>!!i().length),d=x(()=>i().length>1),h=x(()=>s()("asset_list"));Ks(t,{variant:"secondary",get"aria-label"(){return l(h)},children:(f,p)=>{var g=LH(),m=M(g);const b=x(()=>Object.values(o()).flat(1));GC(m,{get allItems(){return l(b)},selectedItems:kd});var _=D(m,2);Wr(_,{flex:!0});var v=D(_,2);const y=x(()=>!l(d));KC(v,{get disabled(){return l(y)},currentView:ts,get fields(){return a()},"aria-controls":"asset-list"});var w=D(v,2);const k=x(()=>s()("type")),S=x(()=>!l(d)),C=x(()=>s()("all")),E=x(()=>DB.map(W=>({label:s()(W),field:"fileType",pattern:W})));WC(w,{get label(){return l(k)},get disabled(){return l(S)},currentView:ts,get noneLabel(){return l(C)},get filters(){return l(E)},"aria-controls":"asset-list"});var A=D(w,2);const O=x(()=>!l(u));fy(A,{get disabled(){return l(O)},currentView:ts,"aria-controls":"asset-list"});var $=D(A,2);Sr($,{orientation:"vertical"});var N=D($,2);const I=x(()=>!l(u)),j=x(()=>!!c().showInfo),q=x(()=>!!c().showInfo),B=x(()=>s()(c().showInfo?"hide_info":"show_info"));Xe(N,{variant:"ghost",iconic:!0,get disabled(){return l(I)},get pressed(){return l(j)},"aria-controls":"asset-info",get"aria-expanded"(){return l(q)},get"aria-label"(){return l(B)},onclick:()=>{ts.update(G=>({...G,showInfo:!c().showInfo}))},startIcon:G=>{nt(G,{name:"info"})},$$slots:{startIcon:!0}}),T(f,g)},$$slots:{default:!0}}),oe(),r()}var NH=F('<!> <div role="none" class="main-inner svelte-1fpggxh"><div role="none" class="main-inner-main svelte-1fpggxh"><!> <!></div> <!></div>',1);const IH={hash:"svelte-1fpggxh",code:'.main-inner.svelte-1fpggxh {flex:auto;display:flex;overflow:hidden;}.main-inner.svelte-1fpggxh .main-inner-main:where(.svelte-1fpggxh) {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.main-inner.svelte-1fpggxh .secondary-sidebar {flex:none;overflow:auto;box-sizing:content-box;border-top-left-radius:16px;width:320px;background-color:var(--sui-secondary-background-color);}.main-inner.svelte-1fpggxh .secondary-sidebar [role="listbox"] {padding:12px;}'};function YC(t,e){Te(t,IH);let n=P(e,"primaryToolbar",3,void 0),r=P(e,"secondaryToolbar",3,void 0),i=P(e,"mainContent",3,void 0),s=P(e,"secondarySidebar",3,void 0);var o=NH(),a=M(o);Re(a,()=>n()??Fe);var c=D(a,2),u=R(c),d=R(u);Re(d,()=>r()??Fe);var h=D(d,2);Re(h,()=>i()??Fe);var f=D(u,2);Re(f,()=>s()??Fe),T(t,o)}var RH=F("<!> <!>",1),DH=F('<div role="none" id="page-container" class="outer svelte-6friv7"><!></div>');const MH={hash:"svelte-6friv7",code:'.outer.svelte-6friv7 {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.outer[inert].svelte-6friv7 {display:none;}.outer.svelte-6friv7 > [role="toolbar"] {flex:none;}.outer.svelte-6friv7 > [role="toolbar"] [role="search"] {flex:auto;width:auto;max-width:480px;}.outer.svelte-6friv7 .browser {flex:auto;display:flex;overflow:hidden;}.outer.svelte-6friv7 .primary-sidebar {display:flex;flex-direction:column;flex:none;width:240px;overflow-y:auto;}.outer.svelte-6friv7 .primary-sidebar [role="radiogroup"] {width:100%;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] {margin:8px;border-width:0;background-color:transparent;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:left;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button span {flex:none;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button .label {flex:auto;overflow:hidden;text-overflow:ellipsis;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button .icon {transition:color 200ms;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button .icon.check {display:none;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button .count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button:not(:first-child) {margin-top:4px;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] button:not(:focus) {border-color:transparent;}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] [role="option"][aria-selected="true"] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] [role="option"][aria-selected="true"] .count {color:var(--sui-highlighted-foreground-color);}.outer.svelte-6friv7 .primary-sidebar [role="listbox"] [role="option"].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}.outer.svelte-6friv7 .primary-sidebar .sui.divider {margin:8px 0;}.outer.svelte-6friv7 .main {flex:auto;display:flex;flex-direction:column;overflow:hidden;border-top-left-radius:16px;background-color:var(--sui-primary-background-color);}.outer.svelte-6friv7 .main .primary.global[role="toolbar"] {justify-content:center;}'};function Md(t,e){Te(t,MH);const[n,r]=me(),i=()=>z(wC,"$hasOverlay",n);let s=P(e,"class",3,""),o=P(e,"primarySidebar",3,void 0),a=P(e,"main",3,void 0),c=at(e,["$$slots","$$events","$$legacy","class","primarySidebar","main"]);var u=DH(),d=R(u);mr(d,Zt({get class(){return`browser ${s()??""}`}},()=>c,{children:(h,f)=>{var p=RH(),g=M(p);Re(g,()=>o()??Fe);var m=D(g,2);Re(m,()=>a()??Fe),T(h,p)},$$slots:{default:!0}})),H(()=>u.inert=i()),T(t,u),r()}var FH=F("<!> <!> <!> <!> <!> <!> <!> <!>",1);function zH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Qr,"$selectedAssetFolder",n),s=()=>z(ci,"$allAssetFolders",n),o=()=>z(el,"$listedAssets",n),a=()=>z(le,"$_",n),c=()=>z(Ko,"$overlaidAsset",n),u=()=>z(Qt,"$allAssets",n),d=()=>z(Zo,"$assetUpdatesToast",n),h=/^\/assets(?:\/(?<folderPath>[/\-\w]+))?(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?$/,f=x(()=>ly(i()?.internalPath)),p=async()=>{const{path:E}=Ld(),A=E.match(h);if(!A?.groups)return;const{folderPath:O,fileName:$}=A.groups;if(!O)ot(Qr,void 0);else if(i()?.internalPath!==O){const N=s().find(({internalPath:I})=>O===I);N&&ot(Qr,N)}if(!$){const N=o().length;await dn(100),ot($s,a()(N>1?"viewing_x_asset_folder_many_assets":N===1?"viewing_x_asset_folder_one_asset":"viewing_x_asset_folder_no_assets",{values:{folder:l(f),count:N}}));return}ot(Ko,$?u().find(N=>N.path===`${O}/${$}`):void 0),ot($s,c()?a()("viewing_x_asset_details",{values:{name:c().name}}):a()("file_not_found")),ot(Go,!0)};on(()=>{p()});var g=FH();vi("hashchange",al,()=>{p()});var m=M(g);const b=x(()=>a()("asset_library"));Md(m,{class:"media",get"aria-label"(){return l(b)},primarySidebar:O=>{mH(O,{})},main:O=>{const $=x(()=>a()("x_asset_folder",{values:{folder:l(f)}}));mr(O,{id:"assets-container",class:"main",get"aria-label"(){return l($)},children:(N,I)=>{YC(N,{primaryToolbar:G=>{wH(G,{})},secondaryToolbar:G=>{var J=V(),ne=M(J);{var K=Y=>{$H(Y,{})};U(ne,Y=>{o().length&&Y(K)})}T(G,J)},mainContent:G=>{hH(G,{})},secondarySidebar:G=>{kH(G,{})},$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})},$$slots:{default:!0}})},$$slots:{primarySidebar:!0,main:!0}});var _=D(m,2);D5(_,{});var v=D(_,2);z5(v,{});var y=D(v,2);q5(y,{});var w=D(y,2);Hn(w,{get show(){return d().saved},set show(E){Ct(Zo,Ee(d).saved=E,Ee(d))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()(d().published?d().count===1?"asset_saved_and_published":"assets_saved_and_published":d().count===1?"asset_saved":"assets_saved",{values:{count:d().count}})]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var k=D(w,2);Hn(k,{get show(){return d().moved},set show(E){Ct(Zo,Ee(d).moved=E,Ee(d))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()(d().count===1?"asset_moved":"assets_moved",{values:{count:d().count}})]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var S=D(k,2);Hn(S,{get show(){return d().renamed},set show(E){Ct(Zo,Ee(d).renamed=E,Ee(d))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()(d().count===1?"asset_renamed":"assets_renamed",{values:{count:d().count}})]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=D(S,2);Hn(C,{get show(){return d().deleted},set show(E){Ct(Zo,Ee(d).deleted=E,Ee(d))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()(d().count===1?"asset_deleted":"assets_deleted",{values:{count:d().count}})]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,g),oe(),r()}var jH=F('<div role="none"><!></div> <!>',1);function UH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Ps,"$uploadingAssets",n),s=()=>z(Go,"$showAssetOverlay",n),o=()=>z(b5,"$showUploadAssetsConfirmDialog",n),a=()=>z(le,"$_",n),c=x(()=>i().files),u=x(()=>i().folder),d=x(()=>i().originalAsset);let h=ae(ie([]));Be(()=>{L(h,ie([...l(c)]))}),Be(()=>{s()||ot(Ps,{folder:void 0,files:[]})});const f=x(()=>a()(l(d)?"replace_asset":"upload_assets")),p=x(()=>a()(l(d)?"replace":"upload"));kl(t,{get open(){return o()},get title(){return l(f)},get okLabel(){return l(p)},onOk:async()=>{await jC(i(),{commitType:"uploadMedia"}),ot(Ps,{folder:void 0,files:[]})},onCancel:()=>{ot(Ps,{folder:void 0,files:[]})},children:(g,m)=>{var b=jH(),_=M(b),v=R(_);{var y=S=>{var C=We();H(E=>Z(C,E),[()=>a()("confirm_replacing_file",{values:{name:l(d).name}})]),T(S,C)},w=S=>{var C=We();H(E=>Z(C,E),[()=>a()(l(h).length===1?"confirm_uploading_file":"confirm_uploading_files",{values:{count:l(h).length,folder:`/${l(u)}`}})]),T(S,C)};U(v,S=>{l(d)?S(y):S(w,!1)})}var k=D(_,2);HC(k,{get files(){return l(h)},set files(S){L(h,ie(S))}}),T(g,b)},$$slots:{default:!0}}),oe(),r()}function BH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Ps,"$uploadingAssets",n),s=()=>z(Qr,"$selectedAssetFolder",n),o=()=>z(A_,"$globalAssetFolder",n),a=()=>z(Qa,"$showUploadAssetsDialog",n),c=()=>z(Go,"$showAssetOverlay",n),u=()=>z(le,"$_",n);let d=ae(void 0);const h=x(()=>i().originalAsset),f=x(()=>!l(h)),p=x(()=>l(h)?Do.getType(l(h).name)??void 0:void 0),g=y=>{y.length&&(ot(Ps,{folder:l(h)?l(h).folder:s()?.internalPath||o()?.internalPath,files:y,originalAsset:l(h)}),ot(Qa,!1))};Be(()=>{!Dp()&&a()&&l(d)?.open()}),Be(()=>{c()||ot(Qa,!1)});var m=V(),b=M(m);{var _=y=>{const w=x(()=>l(h)?u()("replace_x",{values:{name:l(h).name}}):u()("upload_assets"));ps(y,{get title(){return l(w)},showOk:!1,get open(){return Sw(),a()},set open(k){ot(Qa,k)},children:(k,S)=>{Rd(k,{showUploadButton:!0,get accept(){return l(p)},get multiple(){return l(f)},onSelect:({files:C})=>{g(C)}})},$$slots:{default:!0}})},v=y=>{Tt(VC(y,{get accept(){return l(p)},get multiple(){return l(f)},onSelect:({files:w})=>{g(w)}}),w=>L(d,ie(w)),()=>l(d))};U(b,y=>{Dp()?y(_):y(v,!1)})}T(t,m),oe(),r()}var qH=F('<div role="blockquote" class="svelte-soravq"><pre class="svelte-soravq"> </pre></div>');const HH={hash:"svelte-soravq",code:"div.svelte-soravq {flex:auto;overflow:auto;}pre.svelte-soravq {margin:0;padding:16px;}"};function VH(t,e){se(e,!0),Te(t,HH);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(_t,"$siteConfig",n),o=x(()=>i()("site_configuration_editor"));Md(t,{class:"content",get"aria-label"(){return l(o)},main:c=>{var u=qH(),d=R(u),h=R(d);H((f,p)=>{Se(u,"aria-label",f),Z(h,p)},[()=>i()("site_config"),()=>cd.stringify(s())]),T(c,u)},$$slots:{main:!0}}),oe(),r()}var WH=F("<!> <!> <!> <!>",1);function GH(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Xp,"$restoreDialogState",n),s=()=>z(Cn,"$appLocale",n),o=()=>z(Ya,"$showContentOverlay",n),a=()=>z(le,"$_",n),c=()=>z(Jo,"$backupToastState",n),u=x(()=>new Date),d=x(()=>i().resolve),h=x(()=>i().timestamp),f=x(()=>l(u).getUTCFullYear()===l(h)?.getUTCFullYear()),p=x(()=>l(f)&&l(u).getUTCMonth()===l(h)?.getUTCMonth()),g=x(()=>l(p)&&l(u).getUTCDate()===l(h)?.getUTCDate()),m=x(()=>l(h)?.toLocaleString(s()??void 0,{year:l(f)?void 0:"numeric",month:l(g)?void 0:"short",day:l(g)?void 0:"numeric",hour:"numeric",minute:"numeric"}));Be(()=>{!o()&&i().show&&(Ct(Xp,Ee(i).show=!1,Ee(i)),l(d)?.())});var b=WH(),_=M(b);const v=x(()=>a()("restore_backup_title")),y=x(()=>a()("restore")),w=x(()=>a()("discard"));kl(_,{get title(){return l(v)},get okLabel(){return l(y)},get cancelLabel(){return l(w)},onOk:()=>{l(d)?.(!0)},onCancel:()=>{l(d)?.(!1)},get open(){return i().show},set open(E){Ct(Xp,Ee(i).show=E,Ee(i))},children:(E,A)=>{var O=We();H($=>Z(O,$),[()=>a()("restore_backup_description",{values:{datetime:l(m)}})]),T(E,O)},$$slots:{default:!0}});var k=D(_,2);Hn(k,{get show(){return c().saved},set show(E){Ct(Jo,Ee(c).saved=E,Ee(c))},children:(E,A)=>{qn(E,{status:"info",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()("draft_backup_saved")]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var S=D(k,2);Hn(S,{get show(){return c().restored},set show(E){Ct(Jo,Ee(c).restored=E,Ee(c))},children:(E,A)=>{qn(E,{status:"success",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()("draft_backup_restored")]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=D(S,2);Hn(C,{get show(){return c().deleted},set show(E){Ct(Jo,Ee(c).deleted=E,Ee(c))},children:(E,A)=>{qn(E,{status:"info",children:(O,$)=>{var N=We();H(I=>Z(N,I),[()=>a()("draft_backup_deleted")]),T(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,b),oe(),r()}const KH="deepl",YH="DeepL",JH="https://www.deepl.com/pro-api",ZH="https://www.deepl.com/account/summary",XH=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?::fx)?/,QH=["AR","BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT","RO","RU","SK","SL","SV","TR","UK","ZH"],JC=["AR","BG","CS","DA","DE","EL","EN","EN-GB","EN-US","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT","PT-BR","PT-PT","RO","RU","SK","SL","SV","TR","UK","ZH","ZH-HANS","ZH-HANT"],ZC=t=>{const[e]=t.toUpperCase().split("-");if(QH.includes(e))return e},XC=t=>{let e=t.toUpperCase();if(JC.includes(e))return e;if(["ZH-CN","ZH-SG"].includes(e))return"ZH-HANS";if(["ZH-HK","ZH-MO","ZH-TW"].includes(e))return"ZH-HANT";if([e]=e.split("-"),JC.includes(e))return e},QC={serviceId:KH,serviceLabel:YH,developerURL:JH,apiKeyURL:ZH,apiKeyPattern:XH,getSourceLanguage:ZC,getTargetLanguage:XC,translate:async(t,{sourceLocale:e,targetLocale:n,apiKey:r})=>{const i=ZC(e),s=XC(n);if(!i)throw new Error("Source locale is not supported.");if(!s)throw new Error("Target locale is not supported.");const o=new URLSearchParams([...t.map(d=>["text",d]),["source_lang",i],["target_lang",s],["tag_handling","html"],["split_sentences","1"],["auth_key",r]]),c=`https://${r.endsWith(":fx")?"api-free.deepl.com":"api.deepl.com"}/v2/translate?${o.toString()}`,{translations:u}=await fetch(c).then(d=>d.json());return u.map(d=>d.text)}},eV={deepl:QC},ng=it(QC),eA=(t,e)=>{Object.entries(e).forEach(([n,r])=>{t[n]!==r&&(t[n]=r)}),Object.keys(t).forEach(n=>{n in e||delete t[n]})},tA=(t,e)=>{const n=new RegExp(`^${an(e)}\\b(?!#)`),r=Object.entries(t).filter(([i])=>n.test(i)).map(([i,s])=>[i.replace(n,"_"),s]).sort();return[Fa(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(t).filter(([i])=>!n.test(i)))]},nA=(t,e,n)=>{const r=te(st),{collection:i,collectionFile:s}=r,{defaultLocale:o}=(s??i)._i18n,[a,c]=tA(r.currentValues[t],e),[u,d]=t===o?tA(r.expanderStates._,e):[[],[]];n({valueList:a,expanderStateList:u}),es.set(!1),st.update(h=>(eA(h.currentValues[t],{...Ma({[e]:a}),...c}),t===o&&eA(h.expanderStates._,{...Ma({[e]:u}),...d}),h)),es.set(!0)},rA=t=>{const e=te(st),{collectionName:n,fileName:r,collection:i,collectionFile:s}=e,{defaultLocale:o}=(s??i)._i18n,a=e.currentValues[o],c=ec([...Object.keys(t),...Object.keys(a)]),u={};return c.forEach(d=>{const h=gn({collectionName:n,fileName:r,keyPath:d})?.i18n==="duplicate";u[d]=(h?a[d]:void 0)??t[d]}),u},iA=t=>{st.update(e=>{const{currentLocales:n,currentValues:r,validities:i}=e,s=!n[t];if(s&&!r[t]){const{collection:o,collectionName:a,collectionFile:c,fileName:u,originalValues:d}=e,{fields:h=[]}=c??o,f=Zp(h,t);return{...e,currentLocales:{...n,[t]:s},originalValues:{...d,[t]:f},currentValues:{...r,[t]:sy({draft:{collectionName:a,fileName:u},locale:t,target:rA(f)})}}}return{...e,currentLocales:{...n,[t]:s},validities:{...i,[t]:{}}}})},sA=async(t,e,{keyPath:n="",translate:r=!1}={})=>{const{collectionName:i,fileName:s,currentValues:o}=te(st),a=o[t],c=Object.fromEntries(Object.entries(a).filter(([p,g])=>{const m=o[e][p],b=gn({collectionName:i,fileName:s,valueMap:a,keyPath:p});return!(n&&!p.startsWith(n)||typeof g!="string"||!g||!["markdown","text","string","list"].includes(b?.widget??"string")||b?.widget==="list"&&(b.field??b.fields)||!r&&g===m||!n&&r&&m)})),u=Object.keys(c).length,d=u===1?"one":"many",h=r?"translation":"copy",f=(p,g)=>{Q_.set({id:Date.now(),show:!0,status:p,message:g,count:u,sourceLocale:t})};if(!u){f("info",`${h}.none`);return}if(r){const p=te(ng),g=te(St).apiKeys?.[p.serviceId]||await new Promise(m=>{Od.set({show:!0,multiple:u>1,resolve:m})});if(!g)return;f("info","translation.started");try{const m=await p.translate(Object.values(c),{apiKey:g,sourceLocale:t,targetLocale:e});Object.keys(c).forEach((b,_)=>{o[e][b]=m[_]}),f("success",`translation.complete.${d}`)}catch(m){f("error","translation.error"),console.error(m)}}else Object.entries(c).forEach(([p,g])=>{o[e][p]=g}),f("success",`copy.complete.${d}`);st.update(p=>({...p,currentValues:o}))},hy=(t="",e="")=>{const{collection:n,collectionFile:r,fileName:i,currentValues:s,originalValues:o}=te(st),{allLocales:a,defaultLocale:c}=(r??n)._i18n,u=t?[t]:a,d=(h,f,p=!1)=>{Object.entries(f).forEach(([g,m])=>{if(!e||g.startsWith(e)){const b=gn({collectionName:n.name,fileName:i,valueMap:f,keyPath:g});(h===c||[!0,"translate"].includes(b?.i18n??!1))&&(p?delete s[h][g]:s[h][g]=m)}})};u.forEach(h=>{d(h,s[h],!0),d(h,o[h],!1)}),st.update(h=>({...h,currentValues:s}))};function tV(t,e){let n=P(e,"currentValue",15,!1),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),s=P(e,"invalid",3,!1);du(t,{get readonly(){return i()},get required(){return r()},get invalid(){return s()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get checked(){return n()},set checked(o){n(o)}})}var nV=F("<p> </p>");function rV(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"currentValue",3,!1);var o=V(),a=M(o);{var c=u=>{var d=nV(),h=R(d);H(f=>Z(h,f),[()=>i()(`boolean.${s()}`)]),T(u,d)};U(a,u=>{typeof s()=="boolean"&&u(c)})}T(t,o),oe(),r()}function iV(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);let s=P(e,"currentValue",15),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1),u=ae(""),d=ae("");const h=x(()=>tt(e.fieldConfig.default_language,"")),f=x(()=>tt(e.fieldConfig.allow_language_selection,!0)),p=x(()=>tt(e.fieldConfig.output_code_only,!1)),g=x(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),m=x(()=>wr(i()?.currentValues[e.locale])??{}),b=x(()=>`${e.keyPath}.${l(g).code}`),_=x(()=>`${e.keyPath}.${l(g).lang}`),v=()=>{if(l(p))typeof s()!="string"?L(u,""):l(u)!==s()&&L(u,ie(s()));else{const w=l(m)[l(b)],k=l(m)[l(_)]||l(h);typeof w!="string"?L(u,""):l(u)!==w&&L(u,ie(w)),typeof k!="string"?L(d,""):l(d)!==k&&L(d,ie(k))}},y=()=>{l(p)?s()!==l(u)&&s(l(u)):i()&&(s({}),l(m)[l(b)]!==l(u)&&Ct(st,Ee(i).currentValues[e.locale][l(b)]=l(u),Ee(i)),l(m)[l(_)]!==l(d)&&Ct(st,Ee(i).currentValues[e.locale][l(_)]=l(d),Ee(i)))};Be(()=>{l(m),Ee(()=>{v()})}),Be(()=>{l(u),l(d),Ee(()=>{y()})}),OM(t,{get showLanguageSwitcher(){return l(f)},flex:!0,get readonly(){return a()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get code(){return l(u)},set code(w){L(u,ie(w))},get lang(){return l(d)},set lang(w){L(d,ie(w))}}),oe(),r()}var sV=F("<pre> </pre>");function oV(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=x(()=>tt(e.fieldConfig.default_language,"")),o=x(()=>tt(e.fieldConfig.output_code_only,!1)),a=x(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),c=x(()=>wr(i()?.currentValues[e.locale])??{}),u=x(()=>`${e.keyPath}.${l(a).code}`),d=x(()=>`${e.keyPath}.${l(a).lang}`),h=x(()=>l(o)?e.currentValue:l(c)[l(u)]),f=x(()=>l(o)?l(s):l(c)[l(d)]);var p=V(),g=M(p);{var m=b=>{var _=sV(),v=R(_);H(()=>{Ir(_,_w(l(f)?`language-${l(f)}`:void 0)),Z(v,l(h))}),T(b,_)};U(g,b=>{l(h)&&b(m)})}T(t,p),oe(),r()}var aV=F(" <!>",1),lV=F('<span role="none" class="value svelte-s59zhj"><!> <!></span>'),cV=F('<div role="none" class="svelte-s59zhj"><input type="color" class="svelte-s59zhj"> <!> <!></div>');const uV={hash:"svelte-s59zhj",code:"div.svelte-s59zhj {display:flex;align-items:center;gap:8px;}div.svelte-s59zhj .value:where(.svelte-s59zhj) {display:flex;align-items:center;gap:8px;}div.svelte-s59zhj .value:where(.svelte-s59zhj) .sui.text-input {width:80px;min-width:0;}div.svelte-s59zhj .value:where(.svelte-s59zhj) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-s59zhj {font-family:var(--sui-textbox-font-family);}"};function dV(t,e){se(e,!0),Te(t,uV);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"currentValue",15,""),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1),u=ae(""),d=ae(255);const h=x(()=>tt(e.fieldConfig.allowInput,!1)),f=x(()=>tt(e.fieldConfig.enableAlpha,!1)),p=Zn("color"),g=/^#[0-9a-f]{6}$/,m=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/,b=()=>{if(typeof s()!="string")return;const{rgb:E,a:A="ff"}=s().match(m)?.groups??{};if(E&&l(u)!==E&&L(u,ie(E)),E&&l(f)){const O=Number.parseInt(`0x${A}`,16);l(d)!==O&&L(d,ie(O))}},_=()=>{let E=g.test(l(u))?l(u):"";E&&l(f)&&(E+=l(d).toString(16).padStart(2,"0")),s()!==E&&s(E)};Be(()=>{s(),Ee(()=>{b()})}),Be(()=>{l(u),l(d),Ee(()=>{_()})});var v=cV(),y=R(v);Se(y,"id",`${p??""}-picker`);var w=D(y,2);{var k=E=>{var A=lV(),O=R(A);{var $=j=>{An(j,{id:`${p??""}-input`,get invalid(){return c()},get readonly(){return a()},get required(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(u)},set value(q){L(u,ie(q))}})};U(O,j=>{l(h)&&j($)})}var N=D(O,2);{var I=j=>{var q=aV(),B=M(q),W=D(B);const G=x(()=>!l(u)),J=x(()=>i()("opacity"));_N(W,{min:0,max:255,get disabled(){return l(G)},get"aria-label"(){return l(J)},get value(){return l(d)},set value(ne){L(d,ie(ne))}}),H(ne=>Z(B,`${ne??""} `),[()=>i()("opacity")]),T(j,q)};U(N,j=>{l(f)&&j(I)})}T(E,A)};U(w,E=>{(l(h)||l(f))&&E(k)})}var S=D(w,2);{var C=E=>{const A=x(()=>i()("clear")),O=x(()=>!l(u)),$=x(()=>`${p}-picker ${l(h)?`${p}-input`:""}`);Xe(E,{variant:"tertiary",get label(){return l(A)},get disabled(){return l(O)},get"aria-controls"(){return l($)},onclick:()=>{L(u,""),L(d,255)}})};U(S,E=>{!a()&&!o()&&E(C)})}H(()=>{y.readOnly=a(),Se(y,"aria-invalid",c()),Se(y,"aria-readonly",a()),Se(y,"aria-required",o()),Se(y,"aria-labelledby",`${e.fieldId??""}-label`),Se(y,"aria-errormessage",`${e.fieldId??""}-error`)}),ff(y,()=>l(u),E=>L(u,E)),T(t,v),oe(),r()}var fV=F('<p><span role="none" class="preview svelte-16cruwo"><span role="none" class="color svelte-16cruwo"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>');const hV={hash:"svelte-16cruwo",code:".preview.svelte-16cruwo {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-16cruwo .color:where(.svelte-16cruwo) {display:block;width:24px;height:24px;border-radius:24px;}"};function pV(t,e){se(e,!0),Te(t,hV);const n=x(()=>tt(e.fieldConfig.enableAlpha,!1)),r=u=>Number.parseInt(`0x${u}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/,s=x(()=>{const{r:u,g:d,b:h,a:f}=e.currentValue?.match(i)?.groups??{};return u?`rgb(${r(u)} ${r(d)} ${r(h)}${l(n)&&f?` / ${Math.round(r(f)/255*100)}%`:""})`:""});var o=V(),a=M(o);{var c=u=>{var d=fV(),h=R(d),f=R(h),p=D(f,2),g=R(p),m=D(p,2),b=R(m);H(()=>{Vr(f,"background-color",e.currentValue),Z(g,e.currentValue),Z(b,l(s))}),T(u,d)};U(a,u=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&u(c)})}T(t,o),oe()}function gV(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);let s=P(e,"currentValue",15),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1);const u=x(()=>tt(e.fieldConfig.value,"")),d=x(()=>i()?.collectionName??""),h=x(()=>i()?.fileName),f=x(()=>wr(i()?.currentValues[e.locale])??{}),p=x(()=>bc(e.locale)),g=()=>{const[_]=e.keyPath.split(".").splice(-2,1);return _?.match(/^\d+$/)?Number(_):void 0},m=()=>{if(!Object.keys(l(f)).includes(e.keyPath))return;const _=l(u)==="{{index}}"?g()??"":l(u).replaceAll(/{{(.+?)}}/g,(v,y)=>{if(y==="index")return String(g()??"");if(!y.startsWith("fields."))return"";const w=Rp({collectionName:l(d),fileName:l(h),valueMap:l(f),keyPath:y.replace(/^fields\./,""),locale:e.locale});return Array.isArray(w)?l(p).format(w):String(w)});s()!==_&&s(_)};Be(()=>{l(f),Ee(()=>{m()})});const b=x(()=>String(s()));An(t,{get value(){return l(b)},flex:!0,get readonly(){return a()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`}}),oe(),r()}var mV=F('<p dir="auto"> </p>');function vV(t,e){var n=mV(),r=R(n);H(()=>{Se(n,"lang",e.locale),Z(r,e.currentValue),n.dir=n.dir}),T(t,n)}var bV=F('<span role="none" class="utc svelte-13u8gbo">UTC</span>'),_V=F('<div role="none" class="svelte-13u8gbo"><input> <!> <!> <!></div>');const yV={hash:"svelte-13u8gbo",code:"div.svelte-13u8gbo {display:flex;align-items:center;}.utc.svelte-13u8gbo {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function wV(t,e){se(e,!0),Te(t,yV);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"currentValue",15),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1),u=ae("");const d=x(()=>qa(e.fieldConfig)),h=x(()=>l(d).dateOnly),f=x(()=>l(d).timeOnly),p=x(()=>l(d).utc),g=()=>{const E=pB(s(),e.fieldConfig);E!==void 0&&E!==l(u)&&L(u,ie(E))},m=()=>{const E=g_(l(u),s(),e.fieldConfig);E!==void 0&&E!==s()&&Number(Ac(E,e.fieldConfig))!==Number(Ac(s(),e.fieldConfig))&&s(E)};Be(()=>{s(),Ee(()=>{g()})}),Be(()=>{l(u),Ee(()=>{m()})});var b=_V(),_=R(b),v=D(_,2);{var y=E=>{var A=bV();T(E,A)};U(v,E=>{l(p)&&E(y)})}var w=D(v,2);{var k=E=>{const A=x(()=>i()(l(h)?"today":"now"));Xe(E,{variant:"tertiary",get label(){return l(A)},onclick:()=>{s(g_(NT(e.fieldConfig),"",e.fieldConfig))}})};U(w,E=>{a()||E(k)})}var S=D(w,2);{var C=E=>{const A=x(()=>i()("clear")),O=x(()=>!s());Xe(E,{variant:"tertiary",get label(){return l(A)},get disabled(){return l(O)},onclick:()=>{s("")}})};U(S,E=>{!a()&&!o()&&E(C)})}H(()=>{Se(_,"type",l(h)?"date":l(f)?"time":"datetime-local"),_.readOnly=a(),Se(_,"aria-readonly",a()),Se(_,"aria-required",o()),Se(_,"aria-invalid",c()),Se(_,"aria-labelledby",`${e.fieldId??""}-label`),Se(_,"aria-errormessage",`${e.fieldId??""}-error`)}),ff(_,()=>l(u),E=>L(u,E)),T(t,b),oe(),r()}var xV=F("<time><!></time>"),kV=F('<p dir="auto"><!> <!></p>');function SV(t,e){se(e,!0);const n=x(()=>qa(e.fieldConfig)),r=x(()=>l(n).dateOnly),i=x(()=>l(n).timeOnly),s=x(()=>l(n).utc),o=x(()=>Ac(e.currentValue,e.fieldConfig)),a=x(()=>hp(e.locale)),c=/^\d{4}-[01]\d-[0-3]\d$/,u=/T00:00(?::00)?(?:\.000)?Z$/;var d=V(),h=M(d);{var f=p=>{var g=kV(),m=R(g);{var b=w=>{var k=We();H(S=>Z(k,S),[()=>l(o).toLocaleTimeString(l(a),ry)]),T(w,k)},_=w=>{var k=xV(),S=R(k);{var C=A=>{var O=We();H($=>Z(O,$),[()=>l(o).toLocaleDateString(l(a),{...ny,timeZone:l(s)||l(r)&&e.currentValue?.match(c)||l(r)&&e.currentValue?.match(u)?"UTC":void 0})]),T(A,O)},E=A=>{var O=We();H($=>Z(O,$),[()=>l(o).toLocaleString(l(a),{...ny,...ry,timeZone:l(s)?"UTC":void 0,timeZoneName:l(s)?void 0:"short"})]),T(A,O)};U(S,A=>{l(r)?A(C):A(E,!1)})}H(A=>Se(k,"datetime",A),[()=>l(o).toJSON()]),T(w,k)};U(m,w=>{l(i)?w(b):w(_,!1)})}var v=D(m,2);{var y=w=>{var k=We("UTC");T(w,k)};U(v,w=>{l(s)&&w(y)})}H(()=>{Se(g,"lang",e.locale),g.dir=g.dir}),T(p,g)};U(h,p=>{l(o)&&p(f)})}T(t,d),oe()}_2();var EV=F('<div role="none" class="wrapper svelte-j0kdh9"><!></div>');const TV={hash:"svelte-j0kdh9",code:'.wrapper.svelte-j0kdh9 {display:contents;}.wrapper.svelte-j0kdh9 .listbox {gap:4px;overflow-x:hidden;overflow-y:auto;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);}.wrapper.svelte-j0kdh9 .listbox .option button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;}.wrapper.svelte-j0kdh9 .listbox .option button:focus-visible {outline-color:transparent;}.wrapper.svelte-j0kdh9 .listbox .option button .preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1/1;object-fit:contain;}.wrapper.svelte-j0kdh9 .listbox .option button[aria-selected="true"] .icon {display:none;}.wrapper.svelte-j0kdh9 .listbox .name {display:-webkit-box;min-height:calc(var(--sui-font-size-default) * 2);-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;line-height:var(--sui-line-height-compact);}.wrapper.svelte-j0kdh9 .listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;}.wrapper.svelte-j0kdh9 .listbox.grid .option button {flex-direction:column;justify-content:flex-start;}.wrapper.svelte-j0kdh9 .listbox.grid .option button .preview {width:100%;height:auto;}.wrapper.svelte-j0kdh9 .listbox.grid .option button .name {flex:none;padding:4px 8px 12px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);}.wrapper.svelte-j0kdh9 .listbox.grid button[aria-selected="true"] .preview {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}.wrapper.svelte-j0kdh9:not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;left:-99999px;}.wrapper.svelte-j0kdh9 .listbox.list .option button {gap:16px;}.wrapper.svelte-j0kdh9 .listbox.list .option button .preview {width:64px;}.wrapper.svelte-j0kdh9 .listbox.list .option button .name {flex:auto;}.wrapper.svelte-j0kdh9 .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 oA(t,e){se(e,!0),Te(t,TV);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"viewType",3,"grid"),o=P(e,"gridId",3,void 0),a=P(e,"showTitle",3,!1),c=P(e,"onChange",3,void 0),u=P(e,"children",3,void 0);var d=EV(),h=R(d);const f=x(()=>i()("assets_dialog.available_images"));lu(h,{get id(){return o()},get class(){return s()},get"aria-label"(){return l(f)},onChange:p=>{c()?.(p.detail)},children:(p,g)=>{var m=V(),b=M(m);Re(b,()=>u()??Fe),T(p,m)},$$slots:{default:!0}}),H(()=>ft(d,"show-title",a())),T(t,d),oe(),r()}var CV=F('<span role="alert"> </span>'),AV=F('<span role="alert"> </span>'),PV=F('<span role="alert"> </span>'),OV=F('<!> <span role="none" class="name"> </span>',1),LV=F('<div role="none" class="input-outer svelte-t9mjci"><!></div>'),$V=F('<div role="none" class="input-outer svelte-t9mjci"><!></div> <div role="none" class="input-outer svelte-t9mjci"><!></div> <div role="none" class="input-outer svelte-t9mjci"><!></div>',1),NV=F('<p role="alert" class="svelte-t9mjci"><!> <!></p> <!> <!>',1),IV=F('<span role="alert"> </span>');const RV={hash:"svelte-t9mjci",code:"p.svelte-t9mjci {margin:0 0 8px;}.input-outer.svelte-t9mjci {width:400px;text-align:center;}"};function aA(t,e){se(e,!0),Te(t,RV);const[n,r]=me(),i=()=>z(St,"$prefs",n),s=()=>z(le,"$_",n),o=()=>z(Ic,"$selectAssetsView",n);let a=P(e,"kind",3,"image"),c=P(e,"searchTerms",3,""),u=P(e,"gridId",3,void 0),d=P(e,"onSelect",3,void 0);const h=x(()=>tt(e.serviceProps.serviceType,"stock_photos")),f=x(()=>tt(e.serviceProps.serviceId,"")),p=x(()=>tt(e.serviceProps.serviceLabel,"")),g=x(()=>tt(e.serviceProps.hotlinking,!1)),m=x(()=>tt(e.serviceProps.authType,"api_key")),b=x(()=>tt(e.serviceProps.developerURL,"")),_=x(()=>tt(e.serviceProps.apiKeyURL,"")),v=x(()=>e.serviceProps.apiKeyPattern),y=x(()=>e.serviceProps.init),w=x(()=>e.serviceProps.signIn),k=x(()=>e.serviceProps.search),S=ie({userName:"",password:""});let C=ae(!0),E=ae(!1),A=ae(""),O=ae(""),$=ae(""),N=ae("initial"),I=ae(null),j=ae(void 0),q=0;const B=async(Y="")=>{L(I,null);try{L(I,ie(await l(k)(Y,{kind:a(),apiKey:l(A),userName:l(O),password:l($)})))}catch(re){L(j,"search_fetch_failed"),console.error(re)}},W=async Y=>{const{downloadURL:re,fileName:ce,credit:he}=Y;if(l(g)){d()?.({url:re,credit:he});return}try{const Q=await fetch(re),{ok:X,status:de}=Q;if(!X)throw new Error(`The response returned with HTTP status ${de}.`);const ye=await Q.blob(),ve=new File([ye],ce,{type:ye.type});d()?.({file:ve,credit:he})}catch(Q){L(j,"image_fetch_failed"),console.error(Q)}};on(()=>{(async()=>(typeof l(y)=="function"&&(L(C,!1),L(C,ie(await l(y)()))),l(C)&&(L(A,ie(i().apiKeys?.[l(f)]??"")),(Y=>(L(O,ie(Y[0])),L($,ie(Y[1]))))((i().logins?.[l(f)]??"").split(" ")),L(E,ie(!!l(A)||!!l($))),L(I,null),l(E)&&B())))()}),Be(()=>{c(),window.clearTimeout(q),q=window.setTimeout(()=>{l(E)&&B(c())},1e3)});var G=V(),J=M(G);{var ne=Y=>{var re=V(),ce=M(re);{var he=X=>{qr(X,{children:(de,ye)=>{var ve=CV(),be=R(ve);H(fe=>Z(be,fe),[()=>s()(`assets_dialog.error.${l(j)}`)]),T(de,ve)},$$slots:{default:!0}})},Q=X=>{var de=V(),ye=M(de);{var ve=fe=>{qr(fe,{children:(Oe,Ae)=>{var De=AV(),He=R(De);H(Ve=>Z(He,Ve),[()=>s()("searching")]),T(Oe,De)},$$slots:{default:!0}})},be=fe=>{var Oe=V(),Ae=M(Oe);{var De=Ve=>{qr(Ve,{children:(mt,et)=>{var we=PV(),xe=R(we);H(_e=>Z(xe,_e),[()=>s()("no_files_found")]),T(mt,we)},$$slots:{default:!0}})},He=Ve=>{const mt=x(()=>o()?.type);oA(Ve,{get gridId(){return u()},get viewType(){return l(mt)},onChange:({value:et})=>{const we=l(I)?.find(({id:xe})=>xe===et);we&&W(we)},children:(et,we)=>{tl(et,{get items(){return l(I)},itemKey:"id",renderItem:(_e,ke=Fe)=>{const Ne=x(()=>{const{id:ge,previewURL:Ce,description:Ue,kind:Je}=ke();return{id:ge,previewURL:Ce,description:Ue,_kind:Je}});fr(_e,{label:"",get value(){return l(Ne).id},children:(ge,Ce)=>{var Ue=OV(),Je=M(Ue);Ns(Je,{get kind(){return l(Ne)._kind},get src(){return l(Ne).previewURL},variant:"tile",crossorigin:"anonymous"});var ut=D(Je,2),lt=R(ut);H(()=>Z(lt,l(Ne).description)),T(ge,Ue)},$$slots:{default:!0}})},$$slots:{renderItem:!0}})},$$slots:{default:!0}})};U(Ae,Ve=>{l(I).length?Ve(He,!1):Ve(De)},!0)}T(fe,Oe)};U(ye,fe=>{l(I)?fe(be,!1):fe(ve)},!0)}T(X,de)};U(ce,X=>{l(j)?X(he):X(Q,!1)})}T(Y,re)},K=Y=>{var re=V(),ce=M(re);{var he=X=>{qr(X,{children:(de,ye)=>{var ve=NV(),be=M(ve),fe=R(be);{var Oe=we=>{var xe=V(),_e=M(xe);ur(_e,()=>oi.sanitize(s()("prefs.media.stock_photos.description",{values:{service:l(p),homeHref:`href="${l(b)}"`,apiKeyHref:`href="${l(_)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),T(we,xe)};U(fe,we=>{l(h)==="stock_photos"&&we(Oe)})}var Ae=D(fe,2);{var De=we=>{var xe=V(),_e=M(xe);ur(_e,()=>oi.sanitize(s()(`cloud_storage.auth.${l(N)}`,{values:{service:l(p)}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),T(we,xe)};U(Ae,we=>{l(h)==="cloud_storage"&&we(De)})}var He=D(be,2);{var Ve=we=>{var xe=LV(),_e=R(xe);const ke=x(()=>s()("prefs.media.stock_photos.field_label",{values:{service:l(p)}}));An(_e,{flex:!0,spellcheck:"false",get"aria-label"(){return l(ke)},oninput:Ne=>{const ge=Ne.target.value.trim();l(v)?.test(ge)&&(L(A,ie(ge)),L(E,!0),Ct(St,Ee(i).apiKeys??={},Ee(i)),Ct(St,Ee(i).apiKeys[l(f)]=l(A),Ee(i)),B())}}),T(we,xe)};U(He,we=>{l(m)==="api_key"&&we(Ve)})}var mt=D(He,2);{var et=we=>{var xe=$V(),_e=M(xe),ke=R(_e);const Ne=x(()=>s()("user_name")),ge=x(()=>l(N)==="requested");An(ke,{flex:!0,spellcheck:"false",get"aria-label"(){return l(Ne)},get disabled(){return l(ge)},get value(){return S.userName},set value(Ht){S.userName=Ht}});var Ce=D(_e,2),Ue=R(Ce);const Je=x(()=>s()("password")),ut=x(()=>l(N)==="requested");nF(Ue,{get"aria-label"(){return l(Je)},get disabled(){return l(ut)},get value(){return S.password},set value(Ht){S.password=Ht}});var lt=D(Ce,2),Ke=R(lt);const rt=x(()=>s()("sign_in")),Et=x(()=>!S.userName||!S.password||l(N)==="requested");Xe(Ke,{variant:"secondary",get label(){return l(rt)},get disabled(){return l(Et)},onclick:async()=>{L(N,"requested"),S.userName=S.userName.trim(),S.password=S.password.trim(),await l(w)?.(S.userName,S.password)?(L(N,"success"),L(O,ie(S.userName)),L($,ie(S.password)),L(E,!0),Ct(St,Ee(i).logins??={},Ee(i)),Ct(St,Ee(i).logins[l(f)]=[l(O),l($)].join(" "),Ee(i)),B()):L(N,"error")}}),T(we,xe)};U(mt,we=>{l(m)==="password"&&we(et)})}T(de,ve)},$$slots:{default:!0}})},Q=X=>{qr(X,{children:(de,ye)=>{var ve=IV(),be=R(ve);H(fe=>Z(be,fe),[()=>s()("cloud_storage.invalid")]),T(de,ve)},$$slots:{default:!0}})};U(ce,X=>{l(C)?X(he):X(Q,!1)},!0)}T(Y,re)};U(J,Y=>{l(E)?Y(ne):Y(K,!1)})}T(t,G),oe(),r()}const Mc=it(""),Fd=t=>t.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase(),lA=dr([ei,Qt,Mc],([t,e,n],r)=>{const i=n?Fd(n):"",s=c=>Fd(c).includes(i),o=!t.length||!i?[]:t.map(c=>{let u=0;return ao(c).forEach(d=>{s(d.label||d.name)&&(u+=10),s(Ho(d,c,{useTemplate:!0,allowMarkdown:!0}))&&(u+=10),u+=Vo(d,c).filter(h=>s(h.label||h.name)).length,Object.values(c.locales).forEach(({content:h})=>{u+=Object.values(h).filter(f=>typeof f=="string"&&!!f&&s(f)).length})}),{entry:c,points:u}}).filter(({points:c})=>c>0).sort((c,u)=>u.points-c.points).map(c=>c.entry),a=!e.length||!i?[]:e.filter(c=>Fd(c.name).includes(i));r({entries:o,assets:a})}),cA=(t,e=Fe)=>{var n=V(),r=M(n);ur(r,()=>oi.sanitize(e().replace(/([-_.])/g,"$1<wbr>"),{ALLOWED_TAGS:["wbr"]})),T(t,n)};var DV=F('<strong class="svelte-7q7g7u"><!></strong>'),MV=F("<!>/",1),FV=F('<!> <span role="none" class="name svelte-7q7g7u"></span>',1),zV=F('<div role="none" class="grid-wrapper svelte-7q7g7u"><!></div>'),jV=F('<span role="none"> </span>');const UV={hash:"svelte-7q7g7u",code:'.grid-wrapper.svelte-7q7g7u {overflow-y:auto;height:100%;}.grid-wrapper.svelte-7q7g7u [role="listbox"] {background-color:transparent;}.name.svelte-7q7g7u {color:var(--sui-tertiary-foreground-color);}.name.svelte-7q7g7u strong:where(.svelte-7q7g7u) {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}'};function uA(t,e){se(e,!0),Te(t,UV);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"assets",19,()=>[]),o=P(e,"viewType",3,"grid"),a=P(e,"searchTerms",3,""),c=P(e,"basePath",3,void 0),u=P(e,"gridId",3,void 0),d=P(e,"checkerboard",3,!1),h=P(e,"onSelect",3,void 0);const f=x(()=>a()?s().filter(({name:_})=>Fd(_).includes(a())):s());var p=V(),g=M(p);{var m=_=>{var v=zV(),y=R(v);oA(y,{get gridId(){return u()},get viewType(){return o()},showTitle:!0,onChange:({value:w})=>{h()?.({asset:s().find(({path:k})=>k===w)})},children:(w,k)=>{tl(w,{get items(){return l(f)},itemKey:"path",renderItem:(C,E=Fe)=>{const A=x(()=>{const{kind:N,name:I,path:j}=E();return{kind:N,name:I,path:j}}),O=x(()=>c()?In(l(A).path.replace(c(),"")):l(A).name),$=x(()=>l(O).split("/"));fr(C,{label:"",get value(){return l(A).path},children:(N,I)=>{var j=FV(),q=M(j);Ns(q,{get kind(){return l(A).kind},get asset(){return E()},variant:"tile",get checkerboard(){return d()}});var B=D(q,2);dt(B,21,()=>l($),cr,(W,G,J)=>{var ne=V(),K=M(ne);{var Y=ce=>{var he=DV(),Q=R(he);cA(Q,()=>l(G)),T(ce,he)},re=ce=>{var he=MV(),Q=M(he);cA(Q,()=>l(G)),T(ce,he)};U(K,ce=>{J===l($).length-1?ce(Y):ce(re,!1)})}T(W,ne)}),T(N,j)},$$slots:{default:!0}})},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),T(_,v)},b=_=>{qr(_,{children:(v,y)=>{var w=jV(),k=R(w);H(S=>Z(k,S),[()=>i()("no_files_found")]),T(v,w)},$$slots:{default:!0}})};U(g,_=>{l(f).length?_(m):_(b,!1)})}T(t,p),oe(),r()}function py(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Ic,"$selectAssetsView",n);let s=P(e,"assets",19,()=>[]),o=P(e,"selectedAsset",15,null),a=P(e,"showUploader",3,!1),c=P(e,"searchTerms",3,""),u=P(e,"basePath",3,void 0),d=ae(void 0);Be(()=>{o()||Ee(()=>{l(d)?.reset()})});const h=x(()=>e.kind==="image"?"image/*":void 0);Tt(Rd(t,{get accept(){return l(h)},get showUploadButton(){return a()},showFilePreview:!0,onSelect:({files:f})=>{o(f.length?{file:f[0]}:null)},children:(f,p)=>{var g=V(),m=M(g);{var b=_=>{const v=x(()=>s().sort((w,k)=>w.name.localeCompare(k.name))),y=x(()=>i()?.type);uA(_,{get assets(){return l(v)},get viewType(){return l(y)},get searchTerms(){return c()},get basePath(){return u()},gridId:"select-assets-grid",checkerboard:!0,onSelect:({asset:w})=>{o({asset:w})}})};U(m,_=>{a()||_(b)})}T(f,g)},$$slots:{default:!0}}),f=>L(d,ie(f)),()=>l(d)),oe(),r()}const BV=["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"],dA="https://api.pexels.com/v1",qV={serviceType:"stock_photos",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}$/,search:async(t,{apiKey:e})=>{const n={Authorization:e},[r]=te(Cn).toLowerCase().split("-");let i=[];if(t)for(let s=1;s<=2;s+=1){const o=new URLSearchParams({query:t,locale:BV.find(d=>d.split("-")[0]===r)||"en-US",page:s,per_page:80}),a=await fetch(`${dA}/search?${o.toString()}`,{headers:n});if(!a.ok)return Promise.reject();const{photos:c,next_page:u}=await a.json();if(i.push(...c),!u)break;await dn(50)}else{const s=new URLSearchParams({per_page:80}),o=await fetch(`${dA}/curated?${s.toString()}`,{headers:n});if(!o.ok)return Promise.reject();i=(await o.json()).photos}return i.map(({id:s,url:o,alt:a,src:{large2x:c,medium:u},photographer:d})=>({id:String(s),description:o.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g," ")??a,previewURL:u,downloadURL:c,fileName:`pexels-${d.split(/\s+/).join("-").toLowerCase()}-${s}.jpg`,kind:"image",credit:`<a href="${o}">Photo by ${d} on Pexels</a>`}))}},HV=["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"],VV="https://pixabay.com/api",WV={serviceType:"stock_photos",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}$/,search:async(t,{apiKey:e})=>{const[n]=te(Cn).toLowerCase().split("-"),r=new URLSearchParams({key:e,q:t,lang:HV.includes(n)?n:"en",image_type:"photo",min_width:1280,editors_choice:!t,safesearch:!0,per_page:150}),i=await fetch(`${VV}/?${r.toString()}`);return i.ok?(await i.json()).hits.map(({id:o,webformatURL:a,previewURL:c,largeImageURL:u,imageWidth:d,imageHeight:h,pageURL:f,tags:p,user:g})=>({id:String(o),description:p,previewURL:a.replace("_640.",d>h?"_180.":"_340."),downloadURL:u,fileName:c.split("/").pop().replace("_150.","_1280."),kind:"image",credit:`<a href="${f}">Photo by ${g} on Pixabay`})):Promise.reject()}},GV=["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"],fA="https://api.unsplash.com",hA="utm_source=sveltia-cms&utm_medium=referral",KV={serviceType:"stock_photos",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,}$/,search:async(t,{apiKey:e})=>{const n={Authorization:`Client-ID ${e}`},[r]=te(Cn).toLowerCase().split("-");let i=[];if(t)for(let s=1;s<=5;s+=1){const o=new URLSearchParams({query:t,lang:GV.includes(r)?r:"en",page:s,per_page:30}),a=await fetch(`${fA}/search/photos?${o.toString()}`,{headers:n});if(!a.ok)return Promise.reject();const{results:c,total_pages:u}=await a.json();if(i.push(...c),u===s)break;await dn(50)}else{const s=new URLSearchParams({per_page:30}),o=await fetch(`${fA}/photos?${s.toString()}`,{headers:n});if(!o.ok)return Promise.reject();i=await o.json()}return i.map(({id:s,description:o,alt_description:a,urls:{regular:c,thumb:u},user:{username:d,name:h}})=>({id:String(s),description:[o,a].filter(Boolean).join(" — "),previewURL:u,downloadURL:c,fileName:`${h.split(/\s+/).join("-").toLowerCase()}-${s}-unsplash.jpg`,kind:"image",credit:`Photo by <a href="https://unsplash.com/@${d}?${hA}">${h}</a> on <a href="https://unsplash.com/?${hA}">Unsplash</a>`}))}},rg={},zd={pexels:qV,pixabay:WV,unsplash:KV};var YV=F("<!> <!>",1),JV=F("<a> </a>"),ZV=F("<!> <!> <!>",1),XV=F("<!> <!>",1),QV=F("<!> <!> <!> <!>",1),e9=F('<div role="none"> </div> <!>',1),t9=F('<div role="none" class="wrapper svelte-v3cscd"><!> <div role="none" class="content-pane svelte-v3cscd"><!> <!> <!> <!></div></div>');const n9={hash:"svelte-v3cscd",code:".wrapper.svelte-v3cscd {display:flex;gap:16px;height:60vh;}.wrapper.svelte-v3cscd .listbox {flex:none;background-color:transparent;}.wrapper.svelte-v3cscd .content-pane:where(.svelte-v3cscd) {overflow:auto;flex:auto;}"};function r9(t,e){se(e,!0),Te(t,n9);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(St,"$prefs",n),a=()=>z(Ya,"$showContentOverlay",n),c=()=>z(Ic,"$selectAssetsView",n),u=()=>z(Qt,"$allAssets",n),d=()=>z(A_,"$globalAssetFolder",n);let h=P(e,"open",15,!1),f=P(e,"canEnterURL",3,!0),p=P(e,"onSelect",3,void 0),g=ae(""),m=ae(null),b=ae(""),_=ae(""),v=ae("uncategorized-assets");const y=x(()=>e.kind==="image"?i()("assets_dialog.title.image"):i()("assets_dialog.title.file")),w=x(()=>Fd(l(_))),k=x(()=>s()?._assetFolder?.internalPath??""),S=x(()=>s()?._assetFolder?.entryRelative??!1),C=x(()=>!!l(k)&&!l(S)),E=x(()=>!!e.entry&&l(S)),A=x(()=>l(v)==="upload"),O=x(()=>e.entry?Tn(Object.values(e.entry.locales)[0].path).dirname:void 0),$=x(()=>l(v).endsWith("-assets")),N=x(()=>Object.keys(zd).includes(l(v))&&o()?.apiKeys?.[l(v)]||Object.keys(rg).includes(l(v))&&o()?.logins?.[l(v)]);on(()=>{L(g,`library-${Jn("short")}`)}),Be(()=>{L(v,ie(l(E)?"entry-assets":l(C)?"collection-assets":"uncategorized-assets"))}),Be(()=>{h()&&L(b,"")}),Be(()=>{a()||h(!1)});const I=x(()=>i()("insert")),j=x(()=>!l(m));ps(t,{get title(){return l(y)},size:"x-large",get okLabel(){return l(I)},get okDisabled(){return l(j)},onOk:()=>{p()?.({asset:l(m)})},get open(){return h()},set open(W){h(W)},headerExtra:W=>{var G=V(),J=M(G);{var ne=K=>{var Y=YV(),re=M(Y);{var ce=de=>{const ye=x(()=>Ic);fy(de,{get currentView(){return l(ye)},"aria-controls":"select-assets-grid"})};U(re,de=>{c()&&de(ce)})}var he=D(re,2);const Q=x(()=>!!l(m)?.file),X=x(()=>i()(`assets_dialog.search_for_${e.kind??"file"}`));em(he,{get disabled(){return l(Q)},get"aria-label"(){return l(X)},get value(){return l(_)},set value(de){L(_,ie(de))}}),T(K,Y)};U(J,K=>{(l($)||l(N))&&K(ne)})}T(W,G)},footerExtra:W=>{var G=V(),J=M(G);{var ne=K=>{var Y=V();const re=x(()=>{const{showServiceLink:Q,serviceLabel:X,serviceURL:de}=zd[l(v)]??{};return{showServiceLink:Q,serviceLabel:X,serviceURL:de}});var ce=M(Y);{var he=Q=>{var X=JV(),de=R(X);H(ye=>{Se(X,"href",l(re).serviceURL),Z(de,ye)},[()=>i()("prefs.media.stock_photos.credit",{values:{service:l(re).serviceLabel}})]),T(Q,X)};U(ce,Q=>{l(re).showServiceLink&&Q(he)})}T(K,Y)};U(J,K=>{l(N)&&K(ne)})}T(W,G)},children:(W,G)=>{var J=t9(),ne=R(J);const K=x(()=>i()("assets_dialog.locations"));lu(ne,{class:"tabs",get"aria-label"(){return l(K)},get"aria-controls"(){return`${l(g)??""}-content-pane`},onChange:ve=>{L(v,ie(ve.detail.name)),L(m,null)},children:(ve,be)=>{var fe=QV(),Oe=M(fe);const Ae=x(()=>i()("assets_dialog.location.repository"));Cf(Oe,{get label(){return l(Ae)},children:(xe,_e)=>{var ke=ZV(),Ne=M(ke);{var ge=Ke=>{const rt=x(()=>i()("entry_assets")),Et=x(()=>l(v)==="entry-assets");fr(Ke,{name:"entry-assets",get label(){return l(rt)},get selected(){return l(Et)}})};U(Ne,Ke=>{l(E)&&Ke(ge)})}var Ce=D(Ne,2);{var Ue=Ke=>{const rt=x(()=>i()("collection_assets")),Et=x(()=>l(v)==="collection-assets");fr(Ke,{name:"collection-assets",get label(){return l(rt)},get selected(){return l(Et)}})};U(Ce,Ke=>{l(C)&&Ke(Ue)})}var Je=D(Ce,2);const ut=x(()=>i()("uncategorized")),lt=x(()=>l(v)==="uncategorized-assets");fr(Je,{name:"uncategorized-assets",get label(){return l(ut)},get selected(){return l(lt)}}),T(xe,ke)},$$slots:{default:!0}});var De=D(Oe,2);const He=x(()=>i()("assets_dialog.location.local"));Cf(De,{get label(){return l(He)},children:(xe,_e)=>{const ke=x(()=>i()("upload"));fr(xe,{name:"upload",get label(){return l(ke)},get selected(){return l(A)}})},$$slots:{default:!0}});var Ve=D(De,2);{var mt=xe=>{const _e=x(()=>i()("assets_dialog.location.external_locations"));Cf(xe,{get label(){return l(_e)},children:(ke,Ne)=>{var ge=XV(),Ce=M(ge);{var Ue=ut=>{const lt=x(()=>i()("assets_dialog.enter_url"));fr(ut,{name:"enter-url",get label(){return l(lt)}})};U(Ce,ut=>{f()&&ut(Ue)})}var Je=D(Ce,2);dt(Je,17,()=>Object.values(rg),({serviceId:ut,serviceLabel:lt})=>ut,(ut,lt)=>{let Ke=()=>l(lt).serviceId,rt=()=>l(lt).serviceLabel;fr(ut,{get name(){return Ke()},get label(){return rt()}})}),T(ke,ge)},$$slots:{default:!0}})};U(Ve,xe=>{(f()||Object.keys(rg).length)&&xe(mt)})}var et=D(Ve,2);const we=x(()=>i()("assets_dialog.location.stock_photos"));Cf(et,{get label(){return l(we)},children:(xe,_e)=>{var ke=V(),Ne=M(ke);dt(Ne,17,()=>Object.values(zd),({serviceId:ge,serviceLabel:Ce})=>ge,(ge,Ce)=>{let Ue=()=>l(Ce).serviceId,Je=()=>l(Ce).serviceLabel;fr(ge,{get name(){return Ue()},get label(){return Je()}})}),T(xe,ke)},$$slots:{default:!0}}),T(ve,fe)},$$slots:{default:!0}});var Y=D(ne,2),re=R(Y);{var ce=ve=>{const be=x(()=>u().filter(fe=>(!e.kind||e.kind===fe.kind)&&Tn(fe.path).dirname===l(O)));py(ve,{get kind(){return e.kind},get assets(){return l(be)},get showUploader(){return l(A)},get searchTerms(){return l(w)},get selectedAsset(){return l(m)},set selectedAsset(fe){L(m,ie(fe))}})},he=ve=>{var be=V(),fe=M(be);{var Oe=De=>{const He=x(()=>u().filter(Ve=>(!e.kind||e.kind===Ve.kind)&&Ve.folder===l(k)));py(De,{get kind(){return e.kind},get assets(){return l(He)},get showUploader(){return l(A)},get searchTerms(){return l(w)},get basePath(){return l(k)},get selectedAsset(){return l(m)},set selectedAsset(Ve){L(m,ie(Ve))}})},Ae=De=>{var He=V(),Ve=M(He);{var mt=et=>{const we=x(()=>u().filter(_e=>(!e.kind||e.kind===_e.kind)&&_e.folder===d()?.internalPath)),xe=x(()=>d()?.internalPath);py(et,{get kind(){return e.kind},get assets(){return l(we)},get showUploader(){return l(A)},get searchTerms(){return l(w)},get basePath(){return l(xe)},get selectedAsset(){return l(m)},set selectedAsset(_e){L(m,ie(_e))}})};U(Ve,et=>{(l(v)==="uncategorized-assets"||l(A))&&et(mt)},!0)}T(De,He)};U(fe,De=>{l(C)&&(l(v)==="collection-assets"||l(A))?De(Oe):De(Ae,!1)},!0)}T(ve,be)};U(re,ve=>{l(E)&&(l(v)==="entry-assets"||l(A))?ve(ce):ve(he,!1)})}var Q=D(re,2);{var X=ve=>{qr(ve,{children:(be,fe)=>{var Oe=e9(),Ae=M(Oe),De=R(Ae),He=D(Ae,2);An(He,{flex:!0,oninput:()=>{L(m,ie(l(b).trim()?{url:l(b).trim()}:null))},get value(){return l(b)},set value(Ve){L(b,ie(Ve))}}),H(Ve=>Z(De,Ve),[()=>e.kind==="image"?i()("assets_dialog.enter_image_url"):i()("assets_dialog.enter_file_url")]),T(be,Oe)},$$slots:{default:!0}})};U(Q,ve=>{f()&&l(v)==="enter-url"&&ve(X)})}var de=D(Q,2);dt(de,17,()=>Object.entries(rg),([ve,be])=>ve,(ve,be)=>{let fe=()=>l(be)[0],Oe=()=>l(be)[1];var Ae=V(),De=M(Ae);{var He=Ve=>{aA(Ve,{get kind(){return e.kind},get searchTerms(){return l(w)},get serviceProps(){return Oe()},gridId:"select-assets-grid",onSelect:mt=>{L(m,ie(mt))}})};U(De,Ve=>{l(v)===fe()&&Ve(He)})}T(ve,Ae)});var ye=D(de,2);dt(ye,17,()=>Object.entries(zd),([ve,be])=>ve,(ve,be)=>{let fe=()=>l(be)[0],Oe=()=>l(be)[1];var Ae=V(),De=M(Ae);{var He=Ve=>{aA(Ve,{get kind(){return e.kind},get searchTerms(){return l(w)},get serviceProps(){return Oe()},gridId:"select-assets-grid",onSelect:mt=>{L(m,ie(mt))}})};U(De,Ve=>{l(v)===fe()&&Ve(He)})}T(ve,Ae)}),H(()=>Se(Y,"id",`${l(g)??""}-content-pane`)),T(W,J)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}}),oe(),r()}var i9=F('<span role="none" class="preview no-thumbnail"><!></span>'),s9=F('<div role="textbox" tabindex="0" class="filename svelte-7plsvm"><!></div>'),o9=F('<div role="none" class="filled svelte-7plsvm"><!> <div role="none" class="svelte-7plsvm"><!> <div role="none"><!> <!></div></div></div>'),a9=F('<!> <div role="none"><!></div>',1),l9=F('<div class="empty svelte-7plsvm"><!></div>'),c9=F('<div role="none"> </div> <div role="none"><!></div>',1),u9=F("<!> <!> <!> <!>",1);const d9={hash:"svelte-7plsvm",code:".filled.svelte-7plsvm {display:flex !important;align-items:center;gap:16px;margin:var(--sui-focus-ring-width);}.filled.svelte-7plsvm .preview {flex:none;width:160px !important;height:160px !important;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-control-medium-border-radius);}.filled.svelte-7plsvm .preview.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);}.filled.svelte-7plsvm .preview.no-thumbnail .icon {font-size:64px;}.filled.svelte-7plsvm > div:where(.svelte-7plsvm) {flex:auto;overflow:hidden;}.filled.svelte-7plsvm > div:where(.svelte-7plsvm) .filename:where(.svelte-7plsvm) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;}.filled.svelte-7plsvm > div:where(.svelte-7plsvm) .filename:where(.svelte-7plsvm):empty {margin:0;padding:0;}.empty.svelte-7plsvm button {flex-direction:column;justify-content:center;height:160px;}.empty.svelte-7plsvm button .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.empty.svelte-7plsvm button:disabled {pointer-events:none !important;}.empty.svelte-7plsvm button:disabled * {opacity:0.5;}.empty.invalid.svelte-7plsvm button {border-color:var(--sui-error-border-color);}"};function pA(t,e){se(e,!1),Te(t,d9);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue();P(e,"locale",8),P(e,"keyPath",8);let f=P(e,"fieldId",8);P(e,"fieldLabel",8);let p=P(e,"fieldConfig",8),g=P(e,"currentValue",12),m=P(e,"readonly",8,!1),b=P(e,"required",8,!0),_=P(e,"invalid",8,!1),v=P(e,"inEditorComponent",8,!1),y=ue(),w=ue(),k,S=ue(),C=ue(),E,A=ue(!1),O=ue(!1),$=ue(!1),N=ue(""),I=ue();const j=()=>{g(""),L(y,void 0),L(w,void 0),k=void 0,E=void 0,l(I)?.reset()},q=async X=>{j(),L(y,X.asset),L(w,X.file),k=X.url,E=X.credit,l(y)&&g(Bp(l(y),{pathOnly:!0,allowSpecial:!0,entry:l(h)})),l(w)&&(l(u)&&l(c)!==void 0&&Number.isInteger(l(c))&&l(w).size>l(c)?L(O,!0):(g(URL.createObjectURL(l(w))),Ct(st,Ee(i).files[g()]=l(w),Ee(i)))),k&&g(k),E&&(L(N,oi.sanitize(E,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})),L($,!0))},B=async()=>{g()?.startsWith("blob:")&&i()&&L(w,i().files[g()]),g()?g().startsWith("blob:")?(L(y,void 0),L(S,g()?await KT(g()):void 0),L(C,g()&&l(S)?await Lc(g(),l(h),{thumbnail:!0}):void 0)):l(u)&&/^https?:/.test(g())?(L(y,void 0),L(S,"image"),L(C,g())):(L(y,N_(g(),{entry:l(h),collection:l(d)})),L(S,void 0),L(C,void 0)):(L(y,void 0),L(w,void 0),L(S,void 0),L(C,void 0))};Me(()=>(l(o),l(a),l(c),gt(p())),()=>{(X=>(L(o,X.widget),L(a,tt(X.choose_url,!0)),L(c,tt(tt(tt(X.media_library,()=>({}),!0).config,()=>({}),!0).max_file_size,void 0))))(p())}),Me(()=>l(o),()=>{L(u,l(o)==="image")}),Me(()=>i(),()=>{L(d,i()?.collection)}),Me(()=>i(),()=>{L(h,i()?.originalEntry)}),Me(()=>gt(g()),()=>{g(),B()}),$r(),xr();var W=u9(),G=M(W);const J=Ge(()=>l(u)?"image/*":void 0);Tt(Rd(G,{get disabled(){return m()},get accept(){return l(J)},onSelect:({files:X})=>{X.length&&q({file:X[0]})},children:(X,de)=>{var ye=V(),ve=M(ye);{var be=Oe=>{var Ae=o9(),De=R(Ae);{var He=Ue=>{Ns(Ue,{get kind(){return l(S)},get src(){return l(C)},variant:"tile",checkerboard:!0})},Ve=Ue=>{var Je=V(),ut=M(Je);{var lt=rt=>{Ns(rt,{get kind(){return l(y).kind},get asset(){return l(y)},variant:"tile",checkerboard:!0})},Ke=rt=>{var Et=i9(),Ht=R(Et);nt(Ht,{name:"draft"}),T(rt,Et)};U(ut,rt=>{l(y)?rt(lt):rt(Ke,!1)},!0)}T(Ue,Je)};U(De,Ue=>{l(S)&&l(C)?Ue(He):Ue(Ve,!1)})}var mt=D(De,2),et=R(mt);{var we=Ue=>{var Je=s9(),ut=R(Je);{var lt=rt=>{var Et=We();H(Ht=>Z(Et,Ht),[()=>l(w).name.normalize()],Ge),T(rt,Et)},Ke=rt=>{var Et=V(),Ht=M(Et);{var mn=On=>{var nr=We();H(()=>Z(nr,g())),T(On,nr)};U(Ht,On=>{g().startsWith("blob:")||On(mn)},!0)}T(rt,Et)};U(ut,rt=>{l(w)?rt(lt):rt(Ke,!1)})}H(()=>{Se(Je,"id",`${f()??""}-value`),Se(Je,"aria-readonly",m()),Se(Je,"aria-invalid",_()),Se(Je,"aria-required",b()),Se(Je,"aria-labelledby",`${f()??""}-label`),Se(Je,"aria-errormessage",`${f()??""}-error`)}),T(Ue,Je)};U(et,Ue=>{typeof g()=="string"&&Ue(we)})}var xe=D(et,2),_e=R(xe);const ke=Ge(()=>s()("replace")),Ne=Ge(()=>s()(`replace_${l(o)}`));Xe(_e,{get disabled(){return m()},variant:"tertiary",get label(){return l(ke)},get"aria-label"(){return l(Ne)},get"aria-controls"(){return`${f()??""}-value`},onclick:()=>{L(A,!0)}});var ge=D(_e,2);{var Ce=Ue=>{const Je=Ge(()=>s()("remove")),ut=Ge(()=>s()(`remove_${l(o)}`));Xe(Ue,{get disabled(){return m()},variant:"tertiary",get label(){return l(Je)},get"aria-label"(){return l(ut)},get"aria-controls"(){return`${f()??""}-value`},onclick:()=>{j()}})};U(ge,Ue=>{v()||Ue(Ce)})}T(Oe,Ae)},fe=Oe=>{var Ae=l9(),De=R(Ae);Xe(De,{flex:!0,role:"button",variant:"tertiary",get disabled(){return m()},tabindex:"0",onclick:()=>{m()||L(A,!0)},children:(He,Ve)=>{var mt=a9(),et=M(mt);nt(et,{name:"cloud_upload"});var we=D(et,2),xe=R(we);{var _e=Ne=>{var ge=We();H(Ce=>Z(ge,Ce),[()=>s()(Dp()?"drop_or_browse_image_file":"browse_file")],Ge),T(Ne,ge)},ke=Ne=>{var ge=We();H(Ce=>Z(ge,Ce),[()=>s()(Dp()?"drop_or_browse_file":"browse_file")],Ge),T(Ne,ge)};U(xe,Ne=>{l(u)?Ne(_e):Ne(ke,!1)})}T(He,mt)},$$slots:{default:!0}}),H(()=>ft(Ae,"invalid",_())),T(Oe,Ae)};U(ve,Oe=>{g()?Oe(be):Oe(fe,!1)})}T(X,ye)},$$slots:{default:!0},$$legacy:!0}),X=>L(I,X),()=>l(I));var ne=D(G,2);const K=Ge(()=>l(u)?"image":void 0);r9(ne,{get kind(){return l(K)},get canEnterURL(){return l(a)},get entry(){return l(h)},onSelect:({asset:X})=>{q(X)},get open(){return l(A)},set open(X){L(A,X)},$$legacy:!0});var Y=D(ne,2);const re=Ge(()=>s()("assets_dialog.large_file.title"));xx(Y,{get title(){return l(re)},get open(){return l(O)},set open(X){L(O,X)},children:(X,de)=>{var ye=We();H(ve=>Z(ye,ve),[()=>s()("assets_dialog.large_file.description",{values:{size:x_(l(c))}})],Ge),T(X,ye)},$$slots:{default:!0},$$legacy:!0});var ce=D(Y,2);const he=Ge(()=>s()("assets_dialog.photo_credit.title")),Q=Ge(()=>s()("copy"));kl(ce,{get title(){return l(he)},get okLabel(){return l(Q)},onOk:()=>{navigator.clipboard.writeText(l(N))},get open(){return l($)},set open(X){L($,X)},children:(X,de)=>{var ye=c9(),ve=M(ye),be=R(ve),fe=D(ve,2),Oe=R(fe);Oh(Oe,{flex:!0,readonly:!0,get value(){return l(N)},onclick:Ae=>{Ae.target.focus(),Ae.target.select()}}),H(Ae=>Z(be,Ae),[()=>s()("assets_dialog.photo_credit.description")],Ge),T(X,ye)},$$slots:{default:!0},$$legacy:!0}),T(t,W),oe(),r()}var f9=F("<p><!></p>"),h9=F("<p> </p>");function gA(t,e){se(e,!1);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);P(e,"locale",8),P(e,"keyPath",8),P(e,"fieldConfig",8);let s=P(e,"currentValue",8),o=ue(),a=ue();const c=async()=>{L(o,s()?await KT(s()):void 0),L(a,s()&&l(o)?await Lc(s(),i()?.originalEntry):void 0)};Me(()=>gt(s()),()=>{s(),c()}),$r(),xr();var u=V(),d=M(u);{var h=p=>{var g=f9(),m=R(g);const b=Ge(()=>["audio","video"].includes(l(o)));Ns(m,{get kind(){return l(o)},get src(){return l(a)},get controls(){return l(b)}}),T(p,g)},f=p=>{var g=V(),m=M(g);{var b=_=>{var v=h9(),y=R(v);H(()=>Z(y,s())),T(_,v)};U(m,_=>{typeof s()=="string"&&s().trim()&&!s().startsWith("blob:")&&_(b)},!0)}T(p,g)};U(d,p=>{l(o)&&l(a)?p(h):p(f,!1)})}T(t,u),oe(),r()}var p9=F('<div role="alert" class="validation svelte-1rv50nx" aria-live="polite"><div role="none" class="svelte-1rv50nx"><!> <!></div></div>');const g9={hash:"svelte-1rv50nx",code:".validation.svelte-1rv50nx {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);}.validation.svelte-1rv50nx div:where(.svelte-1rv50nx) {display:flex;align-items:center;gap:4px;margin:4px 0;}.validation.svelte-1rv50nx div:where(.svelte-1rv50nx) .icon {flex:none;font-size:16px; /* !hardcoded */}"};function mA(t,e){Te(t,g9);var n=p9(),r=R(n),i=R(r);nt(i,{name:"error"});var s=D(i,2);Re(s,()=>e.children),H(()=>Se(n,"id",e.id)),T(t,n)}var m9=F('<th scope="col" class="action svelte-5r6rgh"></th>'),v9=F('<td class="action svelte-5r6rgh"><!></td>'),b9=F('<tr><td class="key svelte-5r6rgh"><!></td><td class="value svelte-5r6rgh"><!></td><!></tr>'),_9=F('<table class="svelte-5r6rgh"><thead><tr><th scope="col" class="key svelte-5r6rgh"> </th><th scope="col" class="value svelte-5r6rgh"> </th><!></tr></thead><tbody></tbody></table>'),y9=F("<!> <!>",1),w9=F("<!> <!> <div><!></div>",1);const x9={hash:"svelte-5r6rgh",code:`table.svelte-5r6rgh {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-5r6rgh,
|
|
587
|
+
td.svelte-5r6rgh {border-width:0;}th.svelte-5r6rgh {padding-block:4px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:left;}th.key.svelte-5r6rgh, th.value.svelte-5r6rgh {width:50%;}td.svelte-5r6rgh {padding:0;vertical-align:middle;}`};function k9(t,e){se(e,!1),Te(t,x9);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(st,"$entryDraft",n),o=ue(),a=ue(),c=ue(),u=ue();let d=P(e,"locale",8),h=P(e,"keyPath",8),f=P(e,"fieldId",8);P(e,"fieldLabel",8);let p=P(e,"fieldConfig",8);P(e,"currentValue",8);let g=P(e,"readonly",8,!1);P(e,"required",8,!0),P(e,"invalid",8,!1);let m=ue([]);const b=ue([]);let _=ue([]),v=ue([]);const y=()=>{if(!s())return;const W=iy({entryDraft:st,keyPath:h(),locale:d()});Dn(l(m),W)||(L(m,W),L(_,W.map(()=>!1))),!l(m).length&&s().currentValues[d()][h()]!==null&&Ct(st,Ee(s).currentValues[d()][h()]=null,Ee(s))},w=()=>{s()&&(Object.entries(s().currentValues).forEach(([B,W])=>{(B===d()||l(o)==="duplicate")&&delete W[h()]}),L(m,[...l(m),["",""]]),L(_,[...l(_),!1]),window.requestAnimationFrame(()=>{l(b)[l(m).length-1].querySelector("input").focus()}))},k=B=>{l(m).splice(B,1),L(m,[...l(m)]),l(_).splice(B,1),L(_,[...l(_)])},S=()=>{if(L(v,Yq({pairs:l(m),edited:l(_)})),!s()||l(v).some(Boolean)||l(m).some(([W])=>!W.trim()))return;Jq({entryDraft:st,fieldConfig:p(),keyPath:h(),locale:d(),pairs:l(m)})};Me(()=>(l(o),l(a),i(),l(c),l(u),gt(p())),()=>{(B=>(L(o,tt(B.i18n,!1)),L(a,tt(B.key_label,()=>i()("key_value.key"),!0)),L(c,tt(B.value_label,()=>i()("key_value.value"),!0)),L(u,tt(B.max,1/0))))(p())}),Me(()=>(s(),gt(d())),()=>{s()?.currentValues[d()],y()}),Me(()=>l(m),()=>{l(m),S()}),$r(),xr();var C=w9(),E=M(C);{var A=B=>{var W=_9(),G=R(W),J=R(G),ne=R(J),K=R(ne),Y=D(ne),re=R(Y),ce=D(Y);{var he=X=>{var de=m9();H(ye=>Se(de,"aria-label",ye),[()=>i()("key_value.action")],Ge),T(X,de)};U(ce,X=>{g()||X(he)})}var Q=D(G);dt(Q,5,()=>l(m),cr,(X,de,ye)=>{var ve=b9(),be=R(ve),fe=R(be);const Oe=Ge(()=>!!l(v)[ye]),Ae=Ge(()=>l(v)[ye]?`${f()}-kv-error`:void 0);An(fe,{get readonly(){return g()},flex:!0,get invalid(){return l(Oe)},get"aria-label"(){return l(a)},get"aria-errormessage"(){return l(Ae)},oninput:()=>{jy(_,l(_)[ye]=!0)},onkeydown:et=>{et.key==="Enter"&&!et.isComposing&&l(b)[ye].querySelector("td.value input").focus()},get value(){return l(de)[0]},set value(et){l(de)[0]=et,dw(()=>l(m))},$$legacy:!0});var De=D(be),He=R(De);An(He,{get readonly(){return g()},flex:!0,get"aria-label"(){return l(c)},onkeydown:et=>{et.key==="Enter"&&!et.isComposing&&(ye<l(m).length-1?l(b)[ye+1].querySelector("input").focus():l(m).length<l(u)&&w())},get value(){return l(de)[1]},set value(et){l(de)[1]=et,dw(()=>l(m))},$$legacy:!0});var Ve=D(De);{var mt=et=>{var we=v9(),xe=R(we);const _e=Ge(()=>i()("remove"));Xe(xe,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(_e)},onclick:()=>{k(ye)},startIcon:Ne=>{nt(Ne,{name:"close"})},$$slots:{startIcon:!0}}),T(et,we)};U(Ve,et=>{g()||et(mt)})}Tt(ve,(et,we)=>jy(b,l(b)[we]=et),et=>l(b)?.[et],()=>[ye]),T(X,ve)}),H(()=>{Z(K,l(a)),Z(re,l(c))}),T(B,W)};U(E,B=>{l(m).length&&B(A)})}var O=D(E,2);{var $=B=>{mA(B,{get id(){return`${f()??""}-kv-error`},children:(W,G)=>{var J=y9(),ne=M(J);{var K=ce=>{var he=We();H(Q=>Z(he,Q),[()=>i()("key_value.empty_key")],Ge),T(ce,he)};U(ne,ce=>{l(v).includes("empty")&&ce(K)})}var Y=D(ne,2);{var re=ce=>{var he=We();H(Q=>Z(he,Q),[()=>i()("key_value.duplicate_key")],Ge),T(ce,he)};U(Y,ce=>{l(v).includes("duplicate")&&ce(re)})}T(W,J)}})};U(O,B=>{l(v).some(Boolean)&&B($)})}var N=D(O,2),I=R(N);const j=Ge(()=>i()("add")),q=Ge(()=>g()||l(m).length>=l(u));Xe(I,{get label(){return l(j)},variant:"tertiary",get disabled(){return l(q)},onclick:()=>{w()}}),T(t,C),oe(),r()}var S9=F('<tr><td class="svelte-1ni5ht9"> </td><td class="svelte-1ni5ht9"> </td></tr>'),E9=F('<table class="svelte-1ni5ht9"><thead><tr><th scope="col" class="svelte-1ni5ht9"> </th><th scope="col" class="svelte-1ni5ht9"> </th></tr></thead><tbody></tbody></table>');const T9={hash:"svelte-1ni5ht9",code:'@charset "UTF-8";table.svelte-1ni5ht9 {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-1ni5ht9 {padding-block:4px;width:50%;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:left;}td.svelte-1ni5ht9:empty::after {content:" ";}'};function C9(t,e){se(e,!1),Te(t,T9);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(st,"$entryDraft",n),o=ue(),a=ue();let c=P(e,"locale",8),u=P(e,"keyPath",8),d=P(e,"fieldConfig",8);P(e,"currentValue",8);let h=ue([]);const f=()=>{const _=iy({entryDraft:st,keyPath:u(),locale:c()});Dn(l(h),_)||L(h,_)};Me(()=>(l(o),i(),l(a),gt(d())),()=>{(b=>(L(o,tt(b.key_label,()=>i()("key_value.key"),!0)),L(a,tt(b.value_label,()=>i()("key_value.value"),!0))))(d())}),Me(()=>(s(),gt(c())),()=>{s()&&(s().currentValues[c()],f())}),$r(),xr();var p=V(),g=M(p);{var m=b=>{var _=E9(),v=R(_),y=R(v),w=R(y),k=R(w),S=D(w),C=R(S),E=D(v);dt(E,5,()=>l(h),cr,(A,O)=>{let $=()=>l(O)[0],N=()=>l(O)[1];var I=S9(),j=R(I),q=R(j),B=D(j),W=R(B);H(()=>{Z(q,$()),Z(W,N())}),T(A,I)}),H(()=>{Z(k,l(o)),Z(C,l(a))}),T(b,_)};U(g,b=>{l(h).length&&b(m)})}T(t,p),oe(),r()}function gy(t,e){se(e,!1);const[n,r]=me(),i=()=>z(le,"$_",n),s=ue(),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue();let g=P(e,"disabled",8,!1),m=P(e,"fieldConfig",8),b=P(e,"items",24,()=>[]),_=P(e,"addItem",8,S=>{});Me(()=>(l(s),l(o),l(a),l(c),gt(m())),()=>{(S=>(L(s,S.widget),L(o,S.name),L(a,S.label),L(c,S.types)))(m())}),Me(()=>(l(s),gt(m())),()=>{L(u,l(s)==="list"?m():void 0)}),Me(()=>l(u),()=>{L(d,l(u)?.label_singular??"")}),Me(()=>l(u),()=>{L(h,l(u)?.max??void 0)}),Me(()=>(i(),l(d),l(a),l(o)),()=>{L(f,i()("add_x",{values:{name:l(d)||l(a)||l(o)}}))}),Me(()=>(gt(g()),l(h),gt(b())),()=>{L(p,g()||typeof l(h)=="number"&&b().length===l(h))}),$r(),xr();var v=V(),y=M(v);{var w=S=>{kr(S,{variant:"tertiary",get label(){return l(f)},get disabled(){return l(p)},endIcon:A=>{nt(A,{name:"add"})},popup:A=>{const O=Ge(()=>i()("select_list_type"));hr(A,{get"aria-label"(){return l(O)},children:($,N)=>{var I=V(),j=M(I);dt(j,1,()=>l(c),({name:q,label:B})=>q,(q,B)=>{let W=()=>l(B).name,G=()=>l(B).label;const J=Ge(()=>G()||W());$t(q,{get label(){return l(J)},onclick:()=>_()(W())})}),T($,I)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}})},k=S=>{Xe(S,{variant:"tertiary",get label(){return l(f)},get disabled(){return l(p)},onclick:()=>_()(),startIcon:E=>{nt(E,{name:"add"})},$$slots:{startIcon:!0}})};U(y,S=>{Array.isArray(l(c))?S(w):S(k,!1)})}T(t,v),oe(),r()}var A9=F('<span role="none" class="type svelte-drw5o5"> </span>'),P9=F('<div role="none" class="header svelte-drw5o5"><div role="none" class="svelte-drw5o5"><!></div> <div role="none" class="svelte-drw5o5"><!></div> <div role="none" class="svelte-drw5o5"><!></div></div>');const O9={hash:"svelte-drw5o5",code:".header.svelte-drw5o5 {display:flex;align-items:center;gap:8px;background-color:var(--sui-secondary-border-color);}.header.svelte-drw5o5 > div:where(.svelte-drw5o5) {display:flex;align-items:center;}.header.svelte-drw5o5 > div:where(.svelte-drw5o5):first-child {justify-content:flex-start;width:40%;}.header.svelte-drw5o5 > div:where(.svelte-drw5o5):nth-child(2) {width:20%;justify-content:center;}.header.svelte-drw5o5 > div:where(.svelte-drw5o5):last-child {width:40%;justify-content:flex-end;}.header.svelte-drw5o5 button {padding:0;height:16px;}.header.svelte-drw5o5 .type:where(.svelte-drw5o5) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}"};function vA(t,e){se(e,!1),Te(t,O9);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"label",8,""),o=P(e,"controlId",8),a=P(e,"expanded",8),c=P(e,"toggleExpanded",8),u=P(e,"removeButtonVisible",8,!1),d=P(e,"removeButtonDisabled",8,!1),h=P(e,"remove",8),f=P(e,"children",8,void 0);xr();var p=P9(),g=R(p),m=R(g);const b=Ge(()=>!c()),_=Ge(()=>a()?i()("collapse"):i()("expand"));Xe(m,{size:"small",get disabled(){return l(b)},get"aria-label"(){return l(_)},get"aria-expanded"(){return a()},get"aria-controls"(){return o()},onclick:()=>{c()?.()},startIcon:E=>{const A=Ge(()=>a()?"expand_more":"chevron_right");nt(E,{get name(){return l(A)}})},children:(E,A)=>{var O=V(),$=M(O);{var N=I=>{var j=A9(),q=R(j);H(()=>Z(q,s())),T(I,j)};U($,I=>{s()&&I(N)})}T(E,O)},$$slots:{startIcon:!0,default:!0}});var v=D(g,2),y=R(v);Re(y,()=>f()??Fe);var w=D(v,2),k=R(w);{var S=C=>{const E=Ge(()=>i()("remove_this_item"));Xe(C,{size:"small",iconic:!0,get disabled(){return d()},get"aria-label"(){return l(E)},onclick:()=>{h()()},startIcon:O=>{nt(O,{name:"close"})},$$slots:{startIcon:!0}})};U(k,C=>{u()&&C(S)})}T(t,p),oe(),r()}var L9=F("<!> <!>",1),$9=F('<div role="none" class="toolbar top svelte-iirqfr"><!></div>'),N9=F("<!> <!> <!>",1),I9=F('<div role="none" class="summary svelte-iirqfr"> </div>'),R9=F('<div role="none" class="item svelte-iirqfr"><!> <div role="none" class="item-body"><!></div></div>'),D9=F('<div role="none" class="toolbar bottom svelte-iirqfr"><!> <!></div>'),M9=F('<div role="none" class="toolbar top svelte-iirqfr"><!> <div role="none" class="summary svelte-iirqfr"> </div> <!> <!></div> <!> <div role="none" class="item-list svelte-iirqfr"></div> <!>',1);const F9={hash:"svelte-iirqfr",code:".toolbar.svelte-iirqfr {display:flex;align-items:center;}.summary.svelte-iirqfr {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.item-list.collapsed.svelte-iirqfr {display:none;}.item.svelte-iirqfr {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.item.svelte-iirqfr .summary:where(.svelte-iirqfr) {padding:8px;}.item.svelte-iirqfr .summary:where(.svelte-iirqfr):empty {display:none;}"};function z9(t,e){se(e,!1),Te(t,F9);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue(),g=ue(),m=ue(),b=ue(),_=ue(),v=ue(),y=ue(),w=ue(),k=ue(),S=ue(),C=ue(),E=ue(),A=ue(),O=ue(),$=ue(),N=ue(),I=ue(),j=ue(),q=ue(),B=ue(),W=ue(),G=ue(),J=ue(),ne=ue();let K=P(e,"locale",8),Y=P(e,"keyPath",8),re=P(e,"fieldId",8);P(e,"fieldLabel",8);let ce=P(e,"fieldConfig",8),he=P(e,"currentValue",8),Q=P(e,"readonly",8,!1),X=P(e,"required",8,!0),de=P(e,"invalid",8,!1),ye=ue(!1),ve=ue(""),be=ue("");on(()=>{L(ye,!0),L(ve,Jn("short")),uo({[l(W)]:!l(f),...Object.fromEntries(l(J).map((we,xe)=>{const _e=`${Y()}.${xe}`;return[_e,l(I)?._[_e]??!l(d)]}))})});const fe=()=>{const we=he().join(", ");!/,\s*$/.test(l(be))&&l(be).trim()!==we&&L(be,we)},Oe=()=>{const we=l(be).split(/,/g).map(xe=>xe.trim()).filter(xe=>xe!=="");Object.keys(i()?.currentValues??{}).forEach(xe=>{l(c)!=="duplicate"&&xe!==K()||(Object.keys(i()?.currentValues[xe]??{}).forEach(_e=>{_e.match(`^${an(Y())}\\.\\d+$`)&&delete i()?.currentValues[xe][_e]}),we.forEach((_e,ke)=>{Ct(st,Ee(i).currentValues[xe][`${Y()}.${ke}`]=_e,Ee(i))}))})},Ae=we=>{Object.keys(i()?.currentValues??{}).forEach(xe=>{l(c)!=="duplicate"&&xe!==K()||nA(xe,Y(),we)})},De=we=>{Ae(({valueList:xe,expanderStateList:_e})=>{const ke=we?l(_)?.find(({name:Ce})=>Ce===we)?.fields??[]:l(m)??(l(g)?[l(g)]:[]),Ne=l(b)?0:xe.length,ge=Fa(Zp(ke,K()));we&&(ge[l(v)]=we),xe.splice(Ne,0,l(y)&&l(g)?ge[l(g).name]:ge),_e.splice(Ne,0,!0)})},He=we=>{Ae(({valueList:xe,expanderStateList:_e})=>{xe.splice(we,1),_e.splice(we,1)})},Ve=we=>{Ae(({valueList:xe,expanderStateList:_e})=>{[xe[we],xe[we-1]]=[xe[we-1],xe[we]],[_e[we],_e[we-1]]=[_e[we-1],_e[we]]})},mt=we=>{Ae(({valueList:xe,expanderStateList:_e})=>{[xe[we],xe[we+1]]=[xe[we+1],xe[we]],[_e[we],_e[we+1]]=[_e[we+1],_e[we]]})},et=(we,xe)=>WB({collectionName:l(A),fileName:l($),keyPath:Y(),valueMap:l(B),locale:K(),summaryTemplate:xe,hasSingleSubField:l(y),index:we});Me(()=>(l(o),l(a),l(c),l(u),l(d),l(h),l(f),l(p),l(g),l(m),l(b),l(_),l(v),gt(ce())),()=>{(we=>(L(o,we.name),L(a,we.label),L(c,we.i18n),L(u,tt(we.allow_add,!0)),L(d,tt(we.collapsed,!1)),L(h,we.summary),L(f,tt(we.minimize_collapsed,!1)),L(p,we.label_singular),L(g,we.field),L(m,we.fields),L(b,tt(we.add_to_top,!1)),L(_,we.types),L(v,tt(we.typeKey,"type"))))(ce())}),Me(()=>l(g),()=>{L(y,!!l(g))}),Me(()=>l(m),()=>{L(w,Array.isArray(l(m)))}),Me(()=>l(_),()=>{L(k,Array.isArray(l(_)))}),Me(()=>(l(y),l(w),l(k)),()=>{L(S,l(y)||l(w)||l(k))}),Me(()=>gt(Y()),()=>{L(C,new RegExp(`^${an(Y())}\\.(\\d+)(.*)?`))}),Me(()=>i(),()=>{L(E,i()?.collection)}),Me(()=>i(),()=>{L(A,i()?.collectionName??"")}),Me(()=>i(),()=>{L(O,i()?.collectionFile)}),Me(()=>i(),()=>{L($,i()?.fileName)}),Me(()=>i(),()=>{L(N,i()?.currentValues??{})}),Me(()=>i(),()=>{L(I,i()?.expanderStates)}),Me(()=>(l(j),l(O),l(E),Pi),()=>{(we=>L(j,we.defaultLocale))((l(O)??l(E))?._i18n??Pi)}),Me(()=>(gt(K()),l(j),l(c)),()=>{L(q,K()!==l(j)&&l(c)==="duplicate")}),Me(()=>(l(N),gt(K())),()=>{L(B,l(N)[K()])}),Me(()=>gt(Y()),()=>{L(W,`${Y()}#`)}),Me(()=>(l(I),l(W)),()=>{L(G,l(I)?._[l(W)]??!0)}),Me(()=>(l(B),l(C),gt(Y()),l(o)),()=>{L(J,Fa(Object.fromEntries(Object.entries(l(B)).filter(([we])=>l(C).test(we)).map(([we,xe])=>[we.replace(new RegExp(`^${an(Y())}`),l(o)),xe])))[l(o)]??[])}),Me(()=>(l(J),gt(Y()),l(I)),()=>{L(ne,l(J).map((we,xe)=>{const _e=`${Y()}.${xe}`;return[_e,l(I)?._[_e]??!0]}))}),Me(()=>(l(ye),l(S),gt(he())),()=>{l(ye)&&!l(S)&&(he(),fe())}),$r(),xr(),mr(t,{get"aria-labelledby"(){return`list-${l(ve)??""}-summary`},children:(we,xe)=>{var _e=V(),ke=M(_e);{var Ne=Ce=>{var Ue=M9(),Je=M(Ue),ut=R(Je);const lt=Ge(()=>!l(J).length),Ke=Ge(()=>l(G)?s()("collapse"):s()("expand"));Xe(ut,{iconic:!0,get disabled(){return l(lt)},get"aria-label"(){return l(Ke)},get"aria-expanded"(){return l(G)},get"aria-controls"(){return`list-${l(ve)??""}-item-list`},onclick:()=>{uo({[l(W)]:!l(G)})},startIcon:Ln=>{const Gt=Ge(()=>l(G)?"expand_more":"chevron_right");nt(Ln,{get name(){return l(Gt)}})},$$slots:{startIcon:!0}});var rt=D(ut,2),Et=R(rt),Ht=D(rt,2);Wr(Ht,{flex:!0});var mn=D(Ht,2);{var On=Dt=>{var Ln=L9(),Gt=M(Ln);const bt=Ge(()=>s()("expand_all")),en=Ge(()=>l(ne).every(([,sn])=>sn));Xe(Gt,{variant:"tertiary",size:"small",get label(){return l(bt)},get disabled(){return l(en)},onclick:()=>{uo(Object.fromEntries(l(ne).map(([sn])=>[sn,!0])))}});var Fn=D(Gt,2);const $n=Ge(()=>s()("collapse_all")),Nt=Ge(()=>l(ne).every(([,sn])=>!sn));Xe(Fn,{variant:"tertiary",size:"small",get label(){return l($n)},get disabled(){return l(Nt)},onclick:()=>{uo(Object.fromEntries(l(ne).map(([sn])=>[sn,!1])))}}),T(Dt,Ln)};U(mn,Dt=>{l(G)&&l(J).length>1&&Dt(On)})}var nr=D(Je,2);{var ns=Dt=>{var Ln=$9(),Gt=R(Ln);gy(Gt,{get disabled(){return l(q)},get fieldConfig(){return ce()},get items(){return l(J)},addItem:De}),T(Dt,Ln)};U(nr,Dt=>{l(u)&&(l(b)||!l(J).length)&&Dt(ns)})}var ti=D(nr,2);dt(ti,5,()=>l(J),cr,(Dt,Ln,Gt)=>{var bt=R9();const en=Ge(()=>`${Y()}.${Gt}`),Fn=Ge(()=>l(I)?._[l(en)]??!0),$n=Ge(()=>l(k)?l(_)?.find(({name:Un})=>Un===l(Ln)[l(v)]):void 0),Nt=Ge(()=>l(k)?l($n)?.fields??[]:l(m)??(l(g)?[l(g)]:[])),sn=Ge(()=>l(k)&&l($n)?.summary||l(h));var Nn=R(bt);const Yn=Ge(()=>l(k)?l($n)?.label||l($n)?.name:""),Pr=Ge(()=>l(Nt).length?()=>uo({[l(en)]:!l(Fn)}):void 0);vA(Nn,{get label(){return l(Yn)},get controlId(){return`list-${l(ve)??""}-item-${Gt??""}-body`},get expanded(){return l(Fn)},get toggleExpanded(){return l(Pr)},removeButtonVisible:!0,get removeButtonDisabled(){return l(q)},remove:()=>{He(Gt)},children:(Un,Ut)=>{var hi=N9(),Vt=M(hi);const tn=Ge(()=>l(q)||Gt===0),Ze=Ge(()=>s()("move_up"));Xe(Vt,{size:"small",iconic:!0,get disabled(){return l(tn)},get"aria-label"(){return l(Ze)},onclick:()=>{Ve(Gt)},startIcon:Bn=>{nt(Bn,{name:"arrow_upward"})},$$slots:{startIcon:!0}});var xt=D(Vt,2);Wr(xt,{});var En=D(xt,2);const rr=Ge(()=>l(q)||Gt===l(J).length-1),ho=Ge(()=>s()("move_down"));Xe(En,{iconic:!0,size:"small",get disabled(){return l(rr)},get"aria-label"(){return l(ho)},onclick:()=>{mt(Gt)},startIcon:Bn=>{nt(Bn,{name:"arrow_downward"})},$$slots:{startIcon:!0}}),T(Un,hi)},$$slots:{default:!0}});var Ri=D(Nn,2),fi=R(Ri);{var Is=Un=>{var Ut=V(),hi=M(Ut);dt(hi,1,()=>l(Nt),Vt=>Vt.name,(Vt,tn)=>{var Ze=V(),xt=M(Ze);lr(xt,()=>dn(0),null,En=>{const rr=Ge(()=>l(y)?`${Y()}.${Gt}`:`${Y()}.${Gt}.${l(tn).name}`);by(En,{get keyPath(){return l(rr)},get locale(){return K()},get fieldConfig(){return l(tn)}})}),T(Vt,Ze)}),T(Un,Ut)},vr=Un=>{var Ut=I9(),hi=R(Ut);H(Vt=>Z(hi,Vt),[()=>et(Gt,l(sn))],Ge),T(Un,Ut)};U(fi,Un=>{l(Fn)?Un(Is):Un(vr,!1)})}H(()=>Se(Ri,"id",`list-${l(ve)??""}-item-${Gt??""}-body`)),T(Dt,bt)});var fo=D(ti,2);{var rs=Dt=>{var Ln=D9(),Gt=R(Ln);gy(Gt,{get disabled(){return l(q)},get fieldConfig(){return ce()},get items(){return l(J)},addItem:De});var bt=D(Gt,2);Wr(bt,{flex:!0}),T(Dt,Ln)};U(fo,Dt=>{l(u)&&!l(b)&&l(J).length&&Dt(rs)})}H(()=>{Se(rt,"id",`object-${l(ve)??""}-summary`),Z(Et,`${l(J).length??""}
|
|
588
|
+
${((l(J).length===1?l(p):void 0)||l(a)||l(o))??""}`),Se(ti,"id",`list-${l(ve)??""}-item-list`),ft(ti,"collapsed",!l(G))}),T(Ce,Ue)},ge=Ce=>{An(Ce,{flex:!0,get readonly(){return Q()},get required(){return X()},get invalid(){return de()},get"aria-errormessage"(){return`${re()??""}-error`},oninput:()=>{Oe()},get value(){return l(be)},set value(Ue){L(be,Ue)},$$legacy:!0})};U(ke,Ce=>{l(S)?Ce(Ne):Ce(ge,!1)})}T(we,_e)},$$slots:{default:!0}}),oe(),r()}var j9=(t,e)=>{t.key==="Enter"&&(t.stopPropagation(),e())},U9=(t,e)=>{t.stopPropagation(),e()},B9=F('<section role="group" tabindex="0" class="svelte-11ls1m1"><h4 class="svelte-11ls1m1"> </h4> <!></section>');const q9={hash:"svelte-11ls1m1",code:"section.svelte-11ls1m1 {overflow:hidden;margin:8px 0;padding:8px 0;}section.svelte-11ls1m1 > * {margin-right:auto;margin-left:auto;max-width:768px;}section.svelte-11ls1m1 h4:where(.svelte-11ls1m1) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}section.svelte-11ls1m1 h4:where(.svelte-11ls1m1):not(:last-child) {margin-bottom:8px;}section.svelte-11ls1m1 p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}section.svelte-11ls1m1 img {max-height:800px !important;}"};function my(t,e){se(e,!0),Te(t,q9);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=x(()=>e.fieldConfig.name),o=x(()=>tt(e.fieldConfig.label,"")),a=x(()=>tt(e.fieldConfig.widget,"string")),c=x(()=>tt(e.fieldConfig.preview,!0)),u=x(()=>tt(e.fieldConfig.i18n,!1)),d=x(()=>["relation","select"].includes(l(a))),h=x(()=>l(d)?e.fieldConfig.multiple:void 0),f=x(()=>l(a)==="list"||l(d)&&l(h)),p=x(()=>i()?.collection),g=x(()=>i()?.collectionName??""),m=x(()=>i()?.collectionFile),b=x(()=>i()?.fileName),_=x(()=>wr(i()?.currentValues[e.locale]??{})),v=x(()=>(l(m)??l(p))?._i18n??Pi),y=x(()=>l(v).i18nEnabled),w=x(()=>l(v).defaultLocale),k=x(()=>l(y)&&(l(u)===!0||l(u)==="translate")),S=x(()=>l(y)&&l(u)==="duplicate"),C=x(()=>new RegExp(`^${an(e.keyPath)}\\.\\d+$`)),E=x(()=>l(f)?Object.entries(l(_)).filter(([I])=>l(C).test(I)).map(([,I])=>I).filter(I=>I!==void 0):l(_)[e.keyPath]),A=()=>{uo(Object.fromEntries(yC({collectionName:l(g),fileName:l(b),valueMap:l(_),keyPath:e.keyPath}).map(I=>[I,!0]))),window.requestAnimationFrame(()=>{const I=document.querySelector(`.content-editor .pane[data-mode="edit"] .field[data-key-path="${CSS.escape(e.keyPath)}"]`);I&&(typeof I.scrollIntoViewIfNeeded=="function"?I.scrollIntoViewIfNeeded():I.scrollIntoView(),I.classList.add("highlight"),window.setTimeout(()=>{I.classList.remove("highlight")},1500))})};var O=V(),$=M(O);{var N=I=>{var j=B9();j.__keydown=[j9,A],j.__click=[U9,A];var q=R(j),B=R(q),W=D(q,2);{var G=J=>{var ne=V();const K=x(()=>SA[l(a)]);var Y=M(ne);bi(Y,()=>l(K),(re,ce)=>{ce(re,{get keyPath(){return e.keyPath},get locale(){return e.locale},get fieldConfig(){return e.fieldConfig},get currentValue(){return l(E)}})}),T(J,ne)};U(W,J=>{l(a)in SA&&J(G)})}H(()=>{Se(j,"data-widget",l(a)),Se(j,"data-key-path",e.keyPath),Z(B,l(o)||l(s))}),T(I,j)};U($,I=>{l(a)!=="hidden"&&l(c)&&(e.locale===l(w)||l(k)||l(S))&&I(N)})}T(t,O),oe(),r()}ia(["keydown","click"]);var H9=F('<div role="none" class="header svelte-1bztb9y"> </div>'),V9=F('<div role="group" class="subsection svelte-1bztb9y"><!> <div class="items svelte-1bztb9y"><!></div></div>');const W9={hash:"svelte-1bztb9y",code:".subsection.svelte-1bztb9y {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.subsection.svelte-1bztb9y .title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}.header.svelte-1bztb9y {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-1bztb9y {padding:8px 16px;}.items.svelte-1bztb9y:empty {display:none;}"};function bA(t,e){se(e,!0),Te(t,W9);const r=`${Zn("section")}-header`;let i=ae(void 0);var s=V9(),o=R(s);{var a=d=>{var h=H9();Se(h,"id",r);var f=R(h);H(()=>Z(f,e.label)),T(d,h)};U(o,d=>{e.label&&d(a)})}var c=D(o,2),u=R(c);lr(u,()=>iu(l(i)),null,d=>{var h=V(),f=M(h);Re(f,()=>e.children??Fe),T(d,h)}),Tt(s,d=>L(i,d),()=>l(i)),H(()=>Se(s,"aria-labelledby",e.label?r:void 0)),T(t,s),oe()}var G9=F('<p dir="auto"> </p>');function K9(t,e){se(e,!1);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=ue(),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue();let g=P(e,"locale",8),m=P(e,"keyPath",8),b=P(e,"fieldConfig",8),_=P(e,"currentValue",8);Me(()=>(l(s),l(o),l(a),l(c),l(u),gt(b())),()=>{(S=>(L(s,S.name),L(o,S.field),L(a,S.fields),L(c,S.types),L(u,tt(S.typeKey,"type"))))(b())}),Me(()=>(l(o),l(a),l(c)),()=>{L(d,!!(l(o)??l(a)??l(c)))}),Me(()=>gt(m()),()=>{L(h,new RegExp(`^${an(m())}\\.\\d+`))}),Me(()=>gt(g()),()=>{L(f,bc(g()))}),Me(()=>(i(),gt(g()),l(h),gt(m()),l(s)),()=>{L(p,Fa(Object.fromEntries(Object.entries(i()?.currentValues[g()]??{}).filter(([S])=>l(h).test(S)).map(([S,C])=>[S.replace(new RegExp(`^${an(m())}`),l(s)),C])))[l(s)]??[])}),$r(),xr();var v=V(),y=M(v);{var w=S=>{var C=V(),E=M(C);dt(E,1,()=>l(p),cr,(A,O,$)=>{const N=Ge(()=>Array.isArray(l(c))?i()?.currentValues[g()][`${m()}.${$}.${l(u)}`]:void 0),I=Ge(()=>l(c)?.find(({name:B})=>B===l(N))),j=Ge(()=>l(I)?l(I).label||l(I).name:void 0),q=Ge(()=>l(N)?l(I)?.fields??[]:l(a)??(l(o)?[l(o)]:[]));bA(A,{get label(){return l(j)},children:(B,W)=>{var G=V(),J=M(G);dt(J,1,()=>l(q),ne=>ne.name,(ne,K)=>{var Y=V(),re=M(Y);lr(re,()=>dn(0),null,ce=>{const he=Ge(()=>l(o)?`${m()}.${$}`:`${m()}.${$}.${l(K).name}`);my(ce,{get keyPath(){return l(he)},get locale(){return g()},get fieldConfig(){return l(K)}})}),T(ne,Y)}),T(B,G)},$$slots:{default:!0}})}),T(S,C)},k=S=>{var C=V(),E=M(C);{var A=O=>{var $=G9(),N=R($);H(I=>{Se($,"lang",g()),Z(N,I),$.dir=$.dir},[()=>l(f).format(_())],Ge),T(O,$)};U(E,O=>{Array.isArray(_())&&_().length&&O(A)},!0)}T(S,C)};U(y,S=>{l(d)?S(w):S(k,!1)})}T(t,v),oe(),r()}var Y9=(t,e,n)=>{!t.target.matches("button, input, textarea")&&t.key!=="Tab"&&t.preventDefault(),t.target===l(e)&&t.key==="Backspace"&&n()(new CustomEvent("remove"))},J9=F('<section role="group" class="field svelte-z6qmsu"><header role="none"><h4 role="none" class="svelte-z6qmsu"> </h4></header> <div role="none" class="widget-wrapper"><!></div></section>'),Z9=F('<div role="group" class="wrapper svelte-z6qmsu" contenteditable="false" tabindex="0"><header role="none" class="svelte-z6qmsu"><h3 role="none" class="svelte-z6qmsu"> </h3> <!></header> <!></div>');const X9={hash:"svelte-z6qmsu",code:".wrapper.svelte-z6qmsu {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-z6qmsu:focus {outline-color:var(--sui-primary-accent-color-translucent);}.wrapper.svelte-z6qmsu > header:where(.svelte-z6qmsu) {display:flex;align-items:center;justify-content:space-between;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);}.wrapper.svelte-z6qmsu > header:where(.svelte-z6qmsu) h3:where(.svelte-z6qmsu) {padding:0 8px;font-size:var(--sui-font-size-small);font-weight:600;}.wrapper.svelte-z6qmsu > header:where(.svelte-z6qmsu) button {padding:0;height:16px;}section.svelte-z6qmsu {margin:0;border-top:1px solid var(--sui-secondary-border-color);padding:16px;}section.svelte-z6qmsu h4:where(.svelte-z6qmsu) {margin-bottom:8px;font-size:var(--sui-font-size-small);font-weight:600;color:var(--sui-secondary-foreground-color);}"};function Q9(t,e){se(e,!0),Te(t,X9);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"values",19,()=>({})),o=P(e,"onChange",3,()=>{}),a=ae(void 0),c=ae(""),u=ae("");const d=ie({}),h=["image","string"],f=()=>l(a);on(()=>{window.requestAnimationFrame(()=>{L(c,ie(l(a)?.closest("[data-locale]")?.dataset.locale)),L(u,ie(l(a)?.closest("[data-key-path]")?.dataset.keyPath))})}),Be(()=>{s(),Ee(()=>{Dn(s(),wr(d))||Object.assign(d,s())})}),Be(()=>{const S=wr(d);Ee(()=>{Dn(s(),S)||o()(new CustomEvent("update",{detail:S}))})});var p=Z9();p.__keydown=[Y9,a,o];var g=R(p),m=R(g),b=R(m),_=D(m,2);const v=x(()=>i()("remove"));Xe(_,{size:"small",iconic:!0,get"aria-label"(){return l(v)},onclick:()=>{o()(new CustomEvent("remove"))},startIcon:C=>{nt(C,{name:"close"})},$$slots:{startIcon:!0}});var y=D(g,2);{var w=S=>{var C=V(),E=M(C);dt(E,17,()=>e.fields,({name:A,label:O,widget:$})=>A,(A,O)=>{let $=()=>l(O).name,N=()=>l(O).label,I=()=>l(O).widget;var j=V(),q=M(j);{var B=W=>{var G=J9();const J=x(()=>ig[I()]);var ne=R(G),K=R(ne),Y=R(K),re=D(ne,2),ce=R(re);const he=x(()=>Zn("field")),Q=x(()=>N()??$()),X=x(()=>({name:$(),widget:I()}));bi(ce,()=>l(J),(de,ye)=>{ye(de,{get locale(){return l(c)},get keyPath(){return`${l(u)??""}:${$()??""}`},get fieldId(){return l(he)},get fieldLabel(){return l(Q)},get fieldConfig(){return l(X)},inEditorComponent:!0,get currentValue(){return d[$()]},set currentValue(ve){d[$()]=ve}})}),H(de=>{Se(G,"aria-label",de),Se(G,"data-widget",I()),Se(G,"data-key-path",`${l(u)??""}:${$()??""}`),Z(Y,N())},[()=>i()("x_field",{values:{field:N()}})]),vi("keydown",G,de=>{de.stopPropagation()},!0),T(W,G)};U(q,W=>{I()&&h.includes(I())&&W(B)})}T(A,j)}),T(S,C)};U(y,S=>{l(c)&&l(u)&&S(w)})}Tt(p,S=>L(a,S),()=>l(a)),H(()=>{Se(p,"aria-label",e.label),Z(b,e.label)}),T(t,p);var k=oe({getElement:f});return r(),k}ia(["keydown"]);const _A=t=>Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?n.trim().replace(/["()[[\]]/g,"\\$&"):""])),e6=t=>({image:{id:"image",icon:"image",label:te(le)("editor_components.image"),fields:[{name:"src",label:te(le)("editor_components.src"),widget:"image"},{name:"alt",label:te(le)("editor_components.alt"),widget:"string"},{name:"title",label:te(le)("editor_components.title"),widget:"string"},{name:"link",label:te(le)("editor_components.link"),widget:"string"}],pattern:/\[?!\[(?<alt>.*?)\]\((?<src>.*?)(?: "(?<title>.*?)")?\)(?:\]\((?<link>.*?)\))?/,toBlock:n=>{const{src:r,alt:i,title:s,link:o}=_A(n);if(!r)return"";const a=``;return o?`[${a}](${o})`:a},toPreview:n=>{const{src:r,alt:i,title:s,link:o}=_A(n),a=`<img src="${r}" alt="${i}" title="${s}">`;return o?`<a href="${o}">${a}</a>`:a}}})[t],t6=({id:t,label:e,fields:n,pattern:r,fromBlock:i,toBlock:s,toPreview:o})=>{const a=o({}).match(/\w+/)?.[0]??t;class c extends B0{__props;constructor(p,g){super(g),this.__props=p}static getType(){return t}isInline(){return!0}static clone(p){return new c(p.__props,p.__key)}static importJSON(p){return u().updateFromJSON(p)}exportJSON(){return{...this.__props,type:t,version:1}}createDOM(){let p,g=null;const m=async({type:_,detail:v})=>{await pl(),g??=Zm(p),g?.update(()=>{_==="update"&&(this.getWritable().__props=v),_==="remove"&&this.remove()})},b=Tg(Q9,{target:document.createElement("div"),props:{label:e,fields:n,values:this.__props,onChange:m}});return kP(),p=b.getElement(),window.requestAnimationFrame(()=>{p.focus()}),p}exportDOM(){return{element:this.createDOM()}}static importDOM(){const p={[a]:()=>({conversion:g=>({node:u(Object.fromEntries(n.map(({name:m})=>[m,g[m]??""])))}),priority:3})};return t==="image"&&Object.assign(p,{a:g=>{if(g.firstChild?.nodeName.toLowerCase()==="img"){const{href:m}=g,{src:b,alt:_,title:v}=g.firstChild;return{conversion:()=>({node:u({src:b,alt:_,title:v,link:m}),after:()=>[]}),priority:4}}return null}}),p}updateDOM(){return!1}decorate(){return null}}const u=f=>new c(f??Object.fromEntries(n.map(({name:p})=>[p,""]))),d=f=>f instanceof c&&f.getType()===t;return{node:c,createNode:u,transformer:{dependencies:[c],export:f=>d(f)?s(f.__props):null,importRegExp:r,regExp:r,replace:(f,p)=>{const g=p,m=i?.(g)??g.groups??{};f.replace(u(m))},type:"text-match"}}},yA=new Map;class n6{constructor(e){const{id:n}=e,r=yA.get(n),i=r??t6(e);r||yA.set(n,i),Object.assign(this,{...e,...i})}}var r6=F('<div role="none" class="wrapper svelte-1e9a0b3"><!></div>');const i6={hash:"svelte-1e9a0b3",code:`.wrapper.svelte-1e9a0b3 {display:contents;}.wrapper.minimal.svelte-1e9a0b3 [role="textbox"],
|
|
589
|
+
.wrapper.minimal.svelte-1e9a0b3 textarea {overflow:auto;max-height:240px;}`};function s6(t,e){se(e,!0),Te(t,i6);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),s=P(e,"invalid",3,!1),o=ae("");const a=x(()=>tt(e.fieldConfig.modes,()=>[...zP],!0)),c=x(()=>tt(e.fieldConfig.buttons,()=>[...UP],!0)),u=x(()=>tt(e.fieldConfig.editor_components,()=>[...qP],!0)),d=x(()=>tt(e.fieldConfig.minimal,!1)),h=x(()=>l(a).map(v=>jP[v]).filter(Boolean)),f=x(()=>[...l(c),...l(u).includes("code-block")?["code-block"]:[]].map(v=>BP[v]).filter(Boolean)),p=x(()=>[...l(u).map(v=>v==="code-block"||v in $w?void 0:e6(v)).filter(v=>!!v),...Object.values($w)].map(v=>new n6(v))),g=()=>{const v=typeof n()=="string"?n():"";l(o)!==v&&L(o,ie(v))},m=()=>{const v=l(o);n()!==v&&n(v)};Be(()=>{n(),Ee(()=>{g()})}),Be(()=>{l(o),Ee(()=>{m()})});var b=r6(),_=R(b);lr(_,()=>dn(0),null,v=>{JM(v,{get lang(){return e.locale},get modes(){return l(h)},get buttons(){return l(f)},get components(){return l(p)},flex:!0,get readonly(){return i()},get required(){return r()},get invalid(){return s()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,get value(){return l(o)},set value(y){L(o,ie(y))}})}),H(()=>ft(b,"minimal",l(d))),T(t,b),oe()}function o6(){return{useNewRenderer:!0,renderer:{heading(...t){return At.Renderer.prototype.heading.call(this,...t).replace(/^<(h\d)/,'<$1 dir="auto"')},list(...t){return At.Renderer.prototype.list.call(this,...t).replace(/^<(ol|ul)/,'<$1 dir="auto"')},paragraph(...t){return At.Renderer.prototype.paragraph.call(this,...t).replace(/^<p/,'<p dir="auto"')}}}}var a6=F('<div role="none" class="svelte-xzrmoz"><!></div>');const l6={hash:"svelte-xzrmoz",code:"div.svelte-xzrmoz :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}div.svelte-xzrmoz :is(video, img) {max-width:100%;max-height:100%;}div.svelte-xzrmoz :is(a:has(img)) {display:inline-block;}div.svelte-xzrmoz :is(a:has(img)) :is(img) {pointer-events:none;}"};function c6(t,e){se(e,!0),Te(t,l6);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);let s=ae("");const o=x(()=>tt(e.fieldConfig.sanitize_preview,!1)),a={breaks:!0,async:!0,walkTokens:async h=>{if(h.type==="image"){const f=await Lc(h.href,i()?.originalEntry);f&&(h.href=f)}}};At.use(o6()),Be(()=>{(async()=>L(s,ie(await At.parse(e.currentValue??"",a))))()});var c=a6(),u=R(c);{var d=h=>{var f=V(),p=M(f);ur(p,()=>l(o)?oi.sanitize(l(s)):l(s)),T(h,f)};U(u,h=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&h(d)})}T(t,c),oe(),r()}function u6(t,e){se(e,!0);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),s=P(e,"invalid",3,!1),o=ae(void 0),a=ae("");const c=x(()=>tt(e.fieldConfig.value_type,"int")),u=x(()=>e.fieldConfig.min),d=x(()=>e.fieldConfig.max),h=x(()=>tt(e.fieldConfig.step,1)),f=x(()=>l(c)==="int"||l(c)==="float"),p=()=>{if(n()!==void 0){if(l(f)&&l(o)!==n())if(typeof n()=="number")L(o,ie(n()));else if(typeof n()=="string"){const y=n().trim()?Number(n()):NaN;L(o,ie(Number.isNaN(y)?void 0:y))}else L(o,void 0);!l(f)&&l(a)!==n()&&L(a,ie(String(n())))}},g=()=>{let y;l(f)?l(o)===void 0?y=NaN:l(c)==="int"?y=Number.parseInt(l(f)?String(l(o)):l(a),10):y=Number.parseFloat(l(f)?String(l(o)):l(a)):y=l(a),l(f)&&Number.isNaN(y)&&(y=null),n()!==y&&n(y)};Be(()=>{n(),Ee(()=>{p()})}),Be(()=>{l(a),Ee(()=>{g()})}),Be(()=>{l(o),Ee(()=>{g()})});var m=V(),b=M(m);{var _=y=>{QM(y,{get min(){return l(u)},get max(){return l(d)},get step(){return l(h)},get readonly(){return i()},get required(){return r()},get invalid(){return s()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(o)},set value(w){L(o,ie(w))}})},v=y=>{An(y,{get readonly(){return i()},get required(){return r()},get invalid(){return s()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(a)},set value(w){L(a,ie(w))}})};U(b,y=>{l(f)?y(_):y(v,!1)})}T(t,m),oe()}var d6=F('<p dir="auto"><!></p>');function f6(t,e){se(e,!0);const n=x(()=>tt(e.fieldConfig.value_type,"int")),r=x(()=>hp(e.locale)),i=x(()=>Intl.NumberFormat(l(r)));var s=V(),o=M(s);{var a=c=>{var u=d6(),d=R(u);{var h=p=>{var g=We();H(m=>Z(g,m),[()=>l(i).format(Number(e.currentValue))]),T(p,g)},f=p=>{var g=We();H(()=>Z(g,e.currentValue)),T(p,g)};U(d,p=>{l(n)==="int"||l(n)==="float"?p(h):p(f,!1)})}H(()=>{Se(u,"lang",e.locale),u.dir=u.dir}),T(c,u)};U(o,c=>{e.currentValue!==void 0&&e.currentValue!==null&&e.currentValue!==""&&c(a)})}T(t,s),oe()}const h6=({collectionName:t,fileName:e,keyPath:n,valueMap:r,locale:i,summaryTemplate:s})=>s?s.replaceAll(/{{(.+?)}}/g,(o,a)=>{const[c,...u]=a.split(/\s*\|\s*/);return Rp({collectionName:t,fileName:e,valueMap:r,keyPath:`${n}.${c.replace(/^fields\./,"")}`,locale:i,transformations:u})}):r[`${n}.title`]||r[`${n}.name`]||Object.entries(r).find(([o,a])=>o.startsWith(`${n}.`)&&typeof a=="string"&&!!a)?.[1]||"";var p6=F('<div role="none" class="summary svelte-23x9on"> </div>'),g6=F('<!> <div role="none" class="item-list"><!></div>',1),m6=F('<div role="none" class="wrapper svelte-23x9on"><!></div>'),v6=F("<!> <!> <!>",1);const b6={hash:"svelte-23x9on",code:".wrapper.svelte-23x9on {display:contents;}.sui.checkbox + .wrapper.svelte-23x9on > .group {margin-top:8px;}.wrapper.svelte-23x9on > .group {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.summary.svelte-23x9on {overflow:hidden;padding:8px;white-space:nowrap;text-overflow:ellipsis;}.summary.svelte-23x9on:empty {display:none;}"};function _6(t,e){se(e,!1),Te(t,b6);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue(),g=ue(),m=ue(),b=ue(),_=ue(),v=ue(),y=ue(),w=ue(),k=ue(),S=ue(),C=ue(),E=ue(),A=ue(),O=ue(),$=ue(),N=ue(),I=ue(),j=ue();let q=P(e,"locale",8),B=P(e,"keyPath",8);P(e,"fieldId",8);let W=P(e,"fieldLabel",8),G=P(e,"fieldConfig",8);P(e,"currentValue",8),P(e,"readonly",8,!1);let J=P(e,"required",8,!0);P(e,"invalid",8,!1);let ne=ue(""),K=ue();on(()=>{L(ne,Jn("short")),uo({[l(C)]:l(v)?._[l(C)]??!l(c)})});const Y=async fe=>{ot(es,!1),fe&&(Object.keys(i()?.currentValues??{}).forEach(Ae=>{(Ae===q()||l(a)==="duplicate")&&Ct(st,Ee(i).currentValues[Ae][l(O)]=fe,Ee(i))}),await pl());const Oe=rA(Object.fromEntries(Object.entries(Zp(l(N),q())).map(([Ae,De])=>[`${B()}.${Ae}`,De])));Object.entries(i()?.currentValues??{}).forEach(([Ae,De])=>{(Ae===q()||l(a)==="duplicate")&&(Ct(st,Ee(i).currentValues[Ae]=Object.assign(De,Ku({...Oe,...De})),Ee(i)),delete i().currentValues[Ae][B()])}),ot(es,!0)},re=()=>{ot(es,!1),Object.entries(i()?.currentValues??{}).forEach(([fe,Oe])=>{(fe===q()||l(a)==="duplicate")&&(Object.keys(Oe).forEach(Ae=>{Ae.startsWith(`${B()}.`)&&(Ct(st,Ee(i).currentValues[fe][Ae]=null,Ee(i)),delete i()?.currentValues[fe][Ae])}),Ct(st,Ee(i).currentValues[fe][B()]=null,Ee(i)))}),ot(es,!0)},ce=()=>h6({collectionName:l(g),fileName:l(b),keyPath:B(),valueMap:l(w),locale:q(),summaryTemplate:l(I)});Me(()=>(l(o),l(a),l(c),l(u),l(d),l(h),l(f),gt(G())),()=>{(fe=>(L(o,fe.name),L(a,tt(fe.i18n,!1)),L(c,tt(fe.collapsed,!1)),L(u,fe.summary),L(d,fe.fields),L(h,fe.types),L(f,tt(fe.typeKey,"type"))))(G())}),Me(()=>i(),()=>{L(p,i()?.collection)}),Me(()=>i(),()=>{L(g,i()?.collectionName??"")}),Me(()=>i(),()=>{L(m,i()?.collectionFile)}),Me(()=>i(),()=>{L(b,i()?.fileName)}),Me(()=>i(),()=>{L(_,i()?.currentValues??{})}),Me(()=>i(),()=>{L(v,i()?.expanderStates??{})}),Me(()=>(l(y),l(m),l(p),Pi),()=>{(fe=>L(y,fe.defaultLocale))((l(m)??l(p))?._i18n??Pi)}),Me(()=>(l(_),gt(q())),()=>{L(w,l(_)[q()])}),Me(()=>(l(w),gt(B()),l(g),l(b)),()=>{L(k,Object.entries(l(w)).some(([fe,Oe])=>!!fe.startsWith(`${B()}.`)&&(Oe!==null||gn({collectionName:l(g),fileName:l(b),valueMap:l(w),keyPath:fe})?.widget==="object")))}),Me(()=>(gt(q()),l(y),l(a)),()=>{L(S,q()===l(y)||l(a)!==!1)}),Me(()=>gt(B()),()=>{L(C,`${B()}#`)}),Me(()=>(l(v),l(C)),()=>{L(E,l(v)?._[l(C)]??!0)}),Me(()=>l(h),()=>{L(A,Array.isArray(l(h)))}),Me(()=>(gt(B()),l(f)),()=>{L(O,`${B()}.${l(f)}`)}),Me(()=>(l(A),l(h),l(w),l(O)),()=>{L($,l(A)?l(h)?.find(({name:fe})=>fe===l(w)[l(O)]):void 0)}),Me(()=>(l(A),l($),l(d)),()=>{L(N,(l(A)?l($)?.fields:l(d))??[])}),Me(()=>(l(A),l($),l(u)),()=>{L(I,l(A)&&l($)?.summary||l(u))}),Me(()=>(gt(q()),l(y),l(a)),()=>{L(j,q()!==l(y)&&l(a)==="duplicate")}),$r(),xr();var he=v6(),Q=M(he);{var X=fe=>{const Oe=Ge(()=>s()("add_x",{values:{name:W()||l(o)}}));ou(fe,{get label(){return l(Oe)},get checked(){return l(k)},get disabled(){return l(j)},onChange:({detail:{checked:Ae}})=>{Ae?Y():re()}})};U(Q,fe=>{J()||fe(X)})}var de=D(Q,2);{var ye=fe=>{gy(fe,{get disabled(){return l(j)},get fieldConfig(){return G()},addItem:Y})};U(de,fe=>{l(A)&&!l(k)&&fe(ye)})}var ve=D(de,2);{var be=fe=>{var Oe=m6(),Ae=R(Oe);const De=Ge(()=>l(E)?void 0:`object-${l(ne)}-summary`);mr(Ae,{get"aria-labelledby"(){return l(De)},children:(He,Ve)=>{var mt=g6(),et=M(mt);const we=Ge(()=>l(A)?l($)?.label||l($)?.name:""),xe=Ge(()=>l(N).length?()=>uo({[l(C)]:!l(E)}):void 0);vA(et,{get label(){return l(we)},get controlId(){return`object-${l(ne)??""}-item-list`},get expanded(){return l(E)},get toggleExpanded(){return l(xe)},get removeButtonVisible(){return l(A)},get removeButtonDisabled(){return l(j)},remove:()=>{re()}});var _e=D(et,2),ke=R(_e);lr(ke,()=>iu(l(K)),null,Ne=>{var ge=V(),Ce=M(ge);{var Ue=ut=>{var lt=V(),Ke=M(lt);dt(Ke,1,()=>l(N),rt=>rt.name,(rt,Et)=>{var Ht=V(),mn=M(Ht);lr(mn,()=>dn(0),null,On=>{const nr=Ge(()=>[B(),l(Et).name].join("."));by(On,{get keyPath(){return l(nr)},get locale(){return q()},get fieldConfig(){return l(Et)}})}),T(rt,Ht)}),T(ut,lt)},Je=ut=>{var lt=p6(),Ke=R(lt);H(rt=>{Se(lt,"id",`object-${l(ne)??""}-summary`),Z(Ke,rt)},[ce],Ge),T(ut,lt)};U(Ce,ut=>{l(E)?ut(Ue):ut(Je,!1)})}T(Ne,ge)}),Tt(_e,Ne=>L(K,Ne),()=>l(K)),H(()=>Se(_e,"id",`object-${l(ne)??""}-item-list`)),T(He,mt)},$$slots:{default:!0}}),T(fe,Oe)};U(ve,fe=>{(!(!J()||l(A))||l(k))&&l(S)&&fe(be)})}T(t,he),oe(),r()}function y6(t,e){se(e,!1);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=ue(),o=ue(),a=ue(),c=ue(),u=ue(),d=ue(),h=ue(),f=ue(),p=ue(),g=ue();let m=P(e,"locale",8),b=P(e,"keyPath",8),_=P(e,"fieldConfig",8);P(e,"currentValue",8),Me(()=>(l(s),l(o),l(a),gt(_())),()=>{(k=>(L(s,k.fields),L(o,k.types),L(a,tt(k.typeKey,"type"))))(_())}),Me(()=>(i(),gt(m())),()=>{L(c,i()?.currentValues[m()]??{})}),Me(()=>(l(c),gt(b())),()=>{L(u,Object.entries(l(c)).some(([k,S])=>!!k.startsWith(`${b()}.`)&&!!S))}),Me(()=>l(o),()=>{L(d,Array.isArray(l(o)))}),Me(()=>(gt(b()),l(a)),()=>{L(h,`${b()}.${l(a)}`)}),Me(()=>(l(d),l(o),l(c),l(h)),()=>{L(f,l(d)?l(o)?.find(({name:k})=>k===l(c)[l(h)]):void 0)}),Me(()=>l(f),()=>{L(p,l(f)?l(f).label||l(f).name:void 0)}),Me(()=>(l(d),l(f),l(s)),()=>{L(g,(l(d)?l(f)?.fields:l(s))??[])}),$r(),xr();var v=V(),y=M(v);{var w=k=>{bA(k,{get label(){return l(p)},children:(S,C)=>{var E=V(),A=M(E);dt(A,1,()=>l(g),O=>O.name,(O,$)=>{var N=V(),I=M(N);lr(I,()=>dn(0),null,j=>{const q=Ge(()=>[b(),l($).name].join("."));my(j,{get keyPath(){return l(q)},get locale(){return m()},get fieldConfig(){return l($)}})}),T(O,N)}),T(S,E)},$$slots:{default:!0}})};U(y,k=>{l(u)&&k(w)})}T(t,v),oe(),r()}function w6(t,e){se(e,!1);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=ue(),o=ue(),a=ue();let c=P(e,"locale",8),u=P(e,"keyPath",8),d=P(e,"fieldId",8),h=P(e,"fieldConfig",8),f=P(e,"currentValue",8),p=P(e,"readonly",8,!1),g=P(e,"required",8,!0),m=P(e,"invalid",8,!1),b=P(e,"options",8);const _=E=>{i()&&Object.keys(i().currentValues??{}).forEach(A=>{l(s)!=="duplicate"&&A!==c()||nA(A,u(),E)})},v=E=>{_(({valueList:A})=>{A.push(E)})},y=E=>{_(({valueList:A})=>{A.splice(A.indexOf(E),1)})};Me(()=>(l(s),l(o),l(a),gt(h())),()=>{(E=>(L(s,E.i18n),L(o,E.max),L(a,tt(E.dropdown_threshold,5))))(h())}),$r(),xr();var w=V(),k=M(w);{var S=E=>{cN(E,{get disabled(){return p()},get readonly(){return p()},get required(){return g()},get invalid(){return m()},get options(){return b()},get values(){return f()},get max(){return l(o)},get"aria-labelledby"(){return`${d()??""}-label`},get"aria-errormessage"(){return`${d()??""}-error`},onAddValue:({detail:{value:A}})=>{v(A)},onRemoveValue:({detail:{value:A}})=>{y(A)}})},C=E=>{n$(E,{get"aria-labelledby"(){return`${d()??""}-label`},children:(A,O)=>{var $=V(),N=M($);dt(N,1,b,({label:I,value:j})=>j,(I,j)=>{let q=()=>l(j).label,B=()=>l(j).value;const W=Ge(()=>f().includes(B()));ou(I,{get label(){return q()},get value(){return B()},get readonly(){return p()},get required(){return g()},get invalid(){return m()},get checked(){return l(W)},get"aria-errormessage"(){return`${d()??""}-error`},onChange:({detail:{checked:G}})=>{G?v(B()):y(B())}})}),T(A,$)},$$slots:{default:!0}})};U(k,E=>{b().length>l(a)?E(S):E(C,!1)})}T(t,w),oe(),r()}function wA(t,e){se(e,!1);const[n,r]=me(),i=()=>z(le,"$_",n),s=ue();P(e,"locale",8),P(e,"keyPath",8);let o=P(e,"fieldId",8),a=P(e,"fieldConfig",8),c=P(e,"currentValue",12),u=P(e,"readonly",8,!1),d=P(e,"required",8,!0),h=P(e,"invalid",8,!1),f=P(e,"options",8);Me(()=>(l(s),gt(a())),()=>{(_=>L(s,tt(_.dropdown_threshold,5)))(a())}),Me(()=>(gt(d()),gt(f()),i()),()=>{!d()&&!f().some(({value:_})=>_==="")&&f().unshift({label:i()("unselected_option"),value:"",searchValue:""})}),$r(),xr();var p=V(),g=M(p);{var m=_=>{uu(_,{get readonly(){return u()},get required(){return d()},get invalid(){return h()},get"aria-labelledby"(){return`${o()??""}-label`},get"aria-errormessage"(){return`${o()??""}-error`},get value(){return c()},set value(v){c(v)},children:(v,y)=>{var w=V(),k=M(w);dt(k,1,f,({label:S,value:C,searchValue:E})=>C,(S,C)=>{let E=()=>l(C).label,A=()=>l(C).value,O=()=>l(C).searchValue;const $=Ge(()=>A()===c());fr(S,{get label(){return E()},get value(){return A()},get searchValue(){return O()},get selected(){return l($)},wrap:!0})}),T(v,w)},$$slots:{default:!0},$$legacy:!0})},b=_=>{G$(_,{get readonly(){return u()},get required(){return d()},get invalid(){return h()},get"aria-labelledby"(){return`${o()??""}-label`},get"aria-errormessage"(){return`${o()??""}-error`},onChange:({detail:{value:v}})=>{c(v)},children:(v,y)=>{var w=V(),k=M(w);dt(k,1,f,({label:S,value:C})=>C,(S,C)=>{let E=()=>l(C).label,A=()=>l(C).value;const O=Ge(()=>A()===c());Z$(S,{get label(){return E()},get value(){return A()},get checked(){return l(O)}})}),T(v,w)},$$slots:{default:!0}})};U(g,_=>{f().length>l(s)?_(m):_(b,!1)})}T(t,p),oe(),r()}function xA(t,e){se(e,!1);const n=ue(),r=ue(),i=ue(),s=ue();let o=P(e,"locale",8),a=P(e,"keyPath",8),c=P(e,"fieldId",8);P(e,"fieldLabel",8);let u=P(e,"fieldConfig",8),d=P(e,"currentValue",12),h=P(e,"sortOptions",8,!1),f=P(e,"readonly",8,!1),p=P(e,"required",8,!0),g=P(e,"invalid",8,!1);Me(()=>(l(n),l(r),gt(u())),()=>{(_=>(L(n,_.options),L(r,_.multiple)))(u())}),Me(()=>(l(n),gt(h()),ii),()=>{L(i,(()=>{const _=l(n).map(v=>Gn(v)?v:{label:v,value:v});return h()&&_.sort((v,y)=>ii(v.label,y.label)),_})())}),Me(()=>(l(r),wA),()=>{L(s,l(r)?w6:wA)}),$r(),xr();var m=V(),b=M(m);hs(b,()=>JSON.stringify(l(i)),_=>{l(s)(_,{get locale(){return o()},get keyPath(){return a()},get fieldId(){return c()},get fieldConfig(){return u()},get readonly(){return f()},get required(){return p()},get invalid(){return g()},get options(){return l(i)},get currentValue(){return d()},set currentValue(v){d(v)},$$legacy:!0})}),T(t,m),oe()}var x6=F('<div role="none" class="wrapper"><!></div>');function k6(t,e){se(e,!1);const n=ue(),r=ue(),i=ue(),s=ue();let o=P(e,"locale",8),a=P(e,"keyPath",8),c=P(e,"fieldId",8),u=P(e,"fieldLabel",8),d=P(e,"fieldConfig",8),h=P(e,"currentValue",12),f=P(e,"readonly",8,!1),p=P(e,"required",8,!0),g=P(e,"invalid",8,!1);Me(()=>(l(n),l(r),gt(d())),()=>{(v=>(L(n,v.collection),L(r,v.file)))(d())}),Me(()=>(l(r),l(n),Wo),()=>{L(i,l(r)?[E_(l(n),l(r))].filter(Boolean):Wo(l(n)))}),Me(()=>(gt(o()),gt(d()),l(i)),()=>{L(s,b_(o(),d(),l(i)))}),$r(),xr();var m=x6(),b=R(m);const _=Ge(()=>({...d(),options:l(s)}));xA(b,{get locale(){return o()},get keyPath(){return a()},get fieldId(){return c()},get fieldLabel(){return u()},get fieldConfig(){return l(_)},get readonly(){return f()},get required(){return p()},get invalid(){return g()},sortOptions:!0,get currentValue(){return h()},set currentValue(v){h(v)},$$legacy:!0}),T(t,m),oe()}var S6=F('<p dir="auto"> </p>');function E6(t,e){se(e,!1);const n=ue(),r=ue(),i=ue(),s=ue(),o=ue(),a=ue(),c=ue(),u=ue();let d=P(e,"locale",8);P(e,"keyPath",8);let h=P(e,"fieldConfig",8),f=P(e,"currentValue",8);Me(()=>(l(n),l(r),l(i),l(s),gt(h())),()=>{(b=>(L(n,b.collection),L(r,b.file),L(i,tt(b.multiple,!1)),L(s,b.value_field)))(h())}),Me(()=>(l(r),l(n),Wo),()=>{L(o,l(r)?[E_(l(n),l(r))].filter(Boolean):Wo(l(n)))}),Me(()=>(gt(d()),gt(h()),l(o)),()=>{L(a,b_(d(),h(),l(o)))}),Me(()=>(l(i),gt(f()),l(a),l(s)),()=>{L(c,(l(i)?f():[f()]).filter(b=>b!==void 0).map(b=>{const _=l(a).find(v=>v.value===b)?.label;return _&&_!==b?["slug","{{slug}}","{{fields.slug}}"].includes(l(s))?_:`${_} (${b})`:b}))}),Me(()=>gt(d()),()=>{L(u,bc(d()))}),$r(),xr();var p=V(),g=M(p);{var m=b=>{var _=S6(),v=R(_);H(y=>{Se(_,"lang",d()),Z(v,y),_.dir=_.dir},[()=>l(u).format(l(c))],Ge),T(b,_)};U(g,b=>{l(c).length&&b(m)})}T(t,p),oe()}var T6=F('<p dir="auto"> </p>'),C6=F('<p dir="auto"> </p>');function A6(t,e){se(e,!1);const n=ue(),r=ue(),i=ue(),s=ue();let o=P(e,"locale",8);P(e,"keyPath",8);let a=P(e,"fieldConfig",8),c=P(e,"currentValue",8);const u=g=>l(i)&&l(n).find(m=>m.value===g)?.label||g;Me(()=>(l(n),l(r),gt(a())),()=>{(g=>(L(n,g.options),L(r,g.multiple)))(a())}),Me(()=>l(n),()=>{L(i,nS(l(n)))}),Me(()=>gt(o()),()=>{L(s,bc(o()))}),$r(),xr();var d=V(),h=M(d);{var f=g=>{var m=T6(),b=R(m);H(_=>{Se(m,"lang",o()),Z(b,_),m.dir=m.dir},[()=>l(s).format(c().map(u).sort())],Ge),T(g,m)},p=g=>{var m=V(),b=M(m);{var _=v=>{var y=C6(),w=R(y);H(k=>{Se(y,"lang",o()),Z(w,k),y.dir=y.dir},[()=>u(c())],Ge),T(v,y)};U(b,v=>{c()!==void 0&&v(_)},!0)}T(g,m)};U(h,g=>{l(r)&&Array.isArray(c())&&c().length?g(f):g(p,!1)})}T(t,d),oe()}var P6=F('<div class="wrapper svelte-5qs6s0"><!> <span role="none" class="count svelte-5qs6s0"> </span> <!></div>');const O6={hash:"svelte-5qs6s0",code:".wrapper.svelte-5qs6s0 {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:right;}.count.invalid.svelte-5qs6s0 {color:var(--sui-error-foreground-color);}.count.svelte-5qs6s0:not(.invalid) {color:var(--sui-success-foreground-color);}"};function kA(t,e){se(e,!0),Te(t,O6);const[n,r]=me(),i=()=>z(le,"$_",n),s=x(()=>e.fieldConfig.minlength),o=x(()=>e.fieldConfig.maxlength),a=x(()=>LC(e.fieldConfig,e.currentValue)),c=x(()=>l(a).count),u=x(()=>l(a).hasMin),d=x(()=>l(a).hasMax),h=x(()=>l(a).invalid);var f=V(),p=M(f);{var g=m=>{var b=P6(),_=R(b);{var v=C=>{var E=We();H(()=>Z(E,`${l(s)??""}
|
|
590
590
|
/ `)),T(C,E)};U(_,C=>{l(u)&&C(v)})}var y=D(_,2),w=R(y),k=D(y,2);{var S=C=>{var E=We();H(()=>Z(E,` /
|
|
591
591
|
${l(o)??""}`)),T(C,E)};U(k,C=>{l(d)&&C(S)})}H(C=>{Se(b,"aria-label",C),ft(y,"invalid",l(h)),Z(w,l(c))},[()=>i()(l(u)&&l(d)?l(c)===1?"character_counter.min_max.one":"character_counter.min_max.many":l(u)?l(c)===1?"character_counter.min.one":"character_counter.min.many":l(c)===1?"character_counter.max.one":"character_counter.max.many",{values:{count:l(c),min:l(s),max:l(o)}})]),T(m,b)};U(p,m=>{(l(u)||l(d))&&m(g)})}T(t,f),oe(),r()}function L6(t,e){se(e,!0);const[n,r]=me();let i=P(e,"currentValue",15),s=P(e,"required",3,!0),o=P(e,"readonly",3,!1),a=P(e,"invalid",3,!1),c=ae("");const u=x(()=>tt(e.fieldConfig.type,"text")),d=x(()=>tt(e.fieldConfig.prefix,"")),h=x(()=>tt(e.fieldConfig.suffix,"")),{extraHint:f}=os("field-editor")??{},p=()=>{let m=typeof i()=="string"?i():"";l(d)&&m.startsWith(l(d))&&(m=m.slice(l(d).length)),l(h)&&m.endsWith(l(h))&&(m=m.slice(0,-l(h).length)),l(c)!==m&&L(c,ie(m))},g=()=>{let m=l(c).trim();m&&(l(d)||l(h))&&(m=`${l(d)}${m}${l(h)}`),i()!==m&&i(m)};Be(()=>{i(),Ee(()=>{p()})}),Be(()=>{l(c),Ee(()=>{g()})}),Be(()=>{f&&ot(f,kA)}),An(t,{get lang(){return e.locale},get type(){return l(u)},get inputmode(){return l(u)},flex:!0,get readonly(){return o()},get required(){return s()},get invalid(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(c)},set value(m){L(c,ie(m))}}),oe(),r()}var $6=F('<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-wmmi2b"></iframe>'),N6=F("<a> </a>"),I6=F('<div role="none"><!></div>');const R6={hash:"svelte-wmmi2b",code:"iframe.svelte-wmmi2b {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16/9;}"};function D6(t,e){se(e,!0),Te(t,R6);const[n,r]=me(),i=()=>z(le,"$_",n);let s=ae(void 0),o=ae(!0);const a=x(()=>RB(e.url));on(()=>{window.addEventListener("securitypolicyviolation",({blockedURI:f,violatedDirective:p})=>{f===new URL(l(a)).origin&&p==="frame-src"&&L(o,!1)})});var c=I6(),u=R(c);{var d=f=>{var p=V(),g=M(p);lr(g,()=>iu(l(s)),null,m=>{var b=$6();H((_,v)=>{Se(b,"src",_),Se(b,"title",v)},[()=>encodeURI(l(a)),()=>i()("youtube_video_player")]),T(m,b)}),T(f,p)},h=f=>{var p=N6(),g=R(p);H(m=>{Se(p,"href",m),Z(g,e.url)},[()=>encodeURI(e.url)]),T(f,p)};U(u,f=>{l(o)?f(d):f(h,!1)})}Tt(c,f=>L(s,f),()=>l(s)),T(t,c),oe(),r()}var M6=F("<a> </a>"),F6=F("<a> </a>"),z6=F('<p dir="auto" class="svelte-1dlg8zk"><!></p>');const j6={hash:"svelte-1dlg8zk",code:".title.svelte-1dlg8zk {font-size:var(--sui-font-size-xxx-large);font-weight:var(--sui-font-weight-bold);}"};function U6(t,e){se(e,!0),Te(t,j6);const n=x(()=>e.fieldConfig.name),r=x(()=>tt(e.fieldConfig.type,"text"));var i=V(),s=M(i);{var o=a=>{var c=z6(),u=R(c);{var d=f=>{var p=V(),g=M(p);{var m=_=>{D6(_,{get url(){return e.currentValue}})},b=_=>{var v=M6(),y=R(v);H(w=>{Se(v,"href",w),Z(y,e.currentValue)},[()=>encodeURI(e.currentValue)]),T(_,v)};U(g,_=>{IB(e.currentValue)?_(m):_(b,!1)})}T(f,p)},h=f=>{var p=V(),g=M(p);{var m=_=>{var v=F6(),y=R(v);H(w=>{Se(v,"href",`mailto:${w??""}`),Z(y,e.currentValue)},[()=>encodeURI(e.currentValue)]),T(_,v)},b=_=>{var v=We();H(()=>Z(v,e.currentValue)),T(_,v)};U(g,_=>{l(r)==="email"?_(m):_(b,!1)},!0)}T(f,p)};U(u,f=>{l(r)==="url"||Rg(e.currentValue)?f(d):f(h,!1)})}H(()=>{Se(c,"lang",e.locale),ft(c,"title",l(n)==="title"),c.dir=c.dir}),T(a,c)};U(s,a=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&a(o)})}T(t,i),oe()}function B6(t,e){se(e,!0);const[n,r]=me();let i=P(e,"currentValue",15),s=P(e,"required",3,!0),o=P(e,"readonly",3,!1),a=P(e,"invalid",3,!1),c=ae("");const{extraHint:u}=os("field-editor")??{},d=()=>{const f=typeof i()=="string"?i():"";l(c)!==f&&L(c,ie(f))},h=()=>{const f=l(c);i()!==f&&i(f)};Be(()=>{i(),Ee(()=>{d()})}),Be(()=>{l(c),Ee(()=>{h()})}),Be(()=>{u&&ot(u,kA)}),Oh(t,{get lang(){return e.locale},flex:!0,get readonly(){return o()},get required(){return s()},get invalid(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,get value(){return l(c)},set value(f){L(c,ie(f))}}),oe(),r()}var q6=F('<p dir="auto" class="svelte-tzbr78"> </p>');const H6={hash:"svelte-tzbr78",code:"p.svelte-tzbr78 {white-space:pre-wrap;}"};function V6(t,e){se(e,!0),Te(t,H6);var n=V(),r=M(n);{var i=s=>{var o=q6(),a=R(o);H(()=>{Se(o,"lang",e.locale),Z(a,e.currentValue),o.dir=o.dir}),T(s,o)};U(r,s=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&s(i)})}T(t,n),oe()}function W6(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n);let s=P(e,"currentValue",15),o=P(e,"required",3,!0),a=P(e,"readonly",3,!1),c=P(e,"invalid",3,!1);const u=x(()=>i()?.collection),d=x(()=>i()?.collectionFile),h=x(()=>(l(d)??l(u))?._i18n??Pi),f=x(()=>l(h).defaultLocale);on(()=>{s()||(e.locale===l(f)||[!0,"translate"].includes(e.fieldConfig?.i18n??!1))&&s(AC(e.fieldConfig))});const p=x(()=>a()||e.fieldConfig.read_only!==!1);An(t,{flex:!0,get readonly(){return l(p)},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return s()},set value(g){s(g)}}),oe(),r()}var G6=F('<p class="svelte-1e2mlgo"> </p>');const K6={hash:"svelte-1e2mlgo",code:"p.svelte-1e2mlgo {font-family:var(--sui-font-family-monospace);}"};function Y6(t,e){se(e,!0),Te(t,K6);var n=V(),r=M(n);{var i=s=>{var o=G6(),a=R(o);H(()=>Z(a,e.currentValue)),T(s,o)};U(r,s=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&s(i)})}T(t,n),oe()}const ig={boolean:tV,code:iV,color:dV,compute:gV,datetime:wV,file:pA,image:pA,keyvalue:k9,list:z9,markdown:s6,number:u6,object:_6,relation:k6,select:xA,string:L6,text:B6,uuid:W6},SA={boolean:rV,code:oV,color:pV,compute:vV,datetime:SV,file:gA,image:gA,keyvalue:C9,list:K9,markdown:c6,number:f6,object:y6,relation:E6,select:A6,string:U6,text:V6,uuid:Y6};function vy(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ng,"$translator",n),s=()=>z(le,"$_",n),o=()=>z(st,"$entryDraft",n);let a=P(e,"keyPath",3,""),c=P(e,"translate",3,!1);const u=x(()=>i().getSourceLanguage),d=x(()=>i().getTargetLanguage);var h=V(),f=M(h);dt(f,17,()=>e.otherLocales,cr,(p,g)=>{const m=x(()=>s()(c()?"translate_from_x":"copy_from_x",{values:{locale:Zs(l(g))}})),b=x(()=>!o()?.currentLocales[e.locale]||!o().currentLocales[l(g)]||a()&&!wr(o().currentValues[l(g)])[a()]||!c()&&a()&&wr(o().currentValues[l(g)])[a()]===wr(o().currentValues[e.locale])[a()]||c()&&(!l(u)(e.locale)||!l(d)(l(g))));$t(p,{get label(){return l(m)},get disabled(){return l(b)},onclick:()=>{sA(l(g),e.locale,{keyPath:a(),translate:c()})}})}),T(t,h),oe(),r()}function EA(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ng,"$translator",n),s=()=>z(st,"$entryDraft",n),o=()=>z(le,"$_",n);let a=P(e,"size",3,"medium"),c=P(e,"keyPath",3,"");const u=x(()=>i()??{}),d=x(()=>l(u).getSourceLanguage),h=x(()=>l(u).getTargetLanguage),f=x(()=>!s()?.currentLocales[e.locale]||!l(d)(e.locale));var p=V(),g=M(p);{var m=_=>{const v=x(()=>{const[k]=e.otherLocales;return{otherLocale:k}}),y=x(()=>o()("translate_from_x",{values:{locale:Zs(l(v).otherLocale)}})),w=x(()=>l(f)||!s()?.currentLocales[l(v).otherLocale]||!l(h)(l(v).otherLocale));Xe(_,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(y)},get title(){return l(y)},get disabled(){return l(w)},onclick:()=>{sA(l(v).otherLocale,e.locale,{keyPath:c(),translate:!0})},startIcon:S=>{nt(S,{name:"translate"})},$$slots:{startIcon:!0}})},b=_=>{const v=x(()=>o()("translate"));kr(_,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(v)},get disabled(){return l(f)},endIcon:k=>{nt(k,{name:"translate"})},popup:k=>{const S=x(()=>o()("translation_options"));hr(k,{get"aria-label"(){return l(S)},children:(C,E)=>{vy(C,{get locale(){return e.locale},get otherLocales(){return e.otherLocales},get keyPath(){return c()},translate:!0})},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}})};U(g,_=>{e.otherLocales.length===1?_(m):_(b,!1)})}T(t,p),oe(),r()}var J6=F('<div class="required svelte-1vsh88z">*</div>'),Z6=F("<!> <!>",1),X6=F('<p class="comment svelte-1vsh88z"><!></p>'),Q6=F("<!> <!> <!> <!> <!> <!> <!>",1),eW=F('<div role="none" class="svelte-1vsh88z"> </div>'),tW=F('<div role="none" class="before-input svelte-1vsh88z"><!></div>'),nW=F('<div role="none" class="prefix svelte-1vsh88z"> </div>'),rW=F('<div role="none" class="suffix svelte-1vsh88z"> </div>'),iW=F('<div role="none" class="after-input svelte-1vsh88z"><!></div>'),sW=F("<!> <!> <!> <!> <!>",1),oW=F('<p class="hint svelte-1vsh88z"><!></p>'),aW=F('<div role="none" class="footer svelte-1vsh88z"><!> <!></div>'),lW=F('<section role="group" class="field svelte-1vsh88z"><header role="none" class="svelte-1vsh88z"><h4 role="none" class="svelte-1vsh88z"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none" class="widget-wrapper svelte-1vsh88z"><!></div> <!></section>');const cW={hash:"svelte-1vsh88z",code:`@keyframes svelte-1vsh88z-highlight {
|
|
592
592
|
50% {
|
|
@@ -611,8 +611,8 @@ td.svelte-5r6rgh {border-width:0;}th.svelte-5r6rgh {padding-block:4px;color:var(
|
|
|
611
611
|
.widget-wrapper.svelte-1vsh88z input[type="time"][aria-invalid="true"] {border-color:var(--sui-error-border-color);}.before-input.svelte-1vsh88z,
|
|
612
612
|
.after-input.svelte-1vsh88z,
|
|
613
613
|
.prefix.svelte-1vsh88z,
|
|
614
|
-
.suffix.svelte-1vsh88z {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-1vsh88z {margin-block:4px;line-height:var(--sui-line-height-compact);}.footer.svelte-1vsh88z {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}.hint.svelte-1vsh88z {flex:auto;margin:0;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);opacity:0.75;}`};function by(t,e){se(e,!0),Te(t,cW);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=()=>z(u,"$extraHint",n),a=Zn("field"),c=we=>oi.sanitize(At.parseInline(we.replaceAll("\\n","<br>")),{ALLOWED_TAGS:["strong","em","del","code","a","br"],ALLOWED_ATTR:["href"]}),u=it();vg("field-editor",{extraHint:u});const d=x(()=>e.fieldConfig.name),h=x(()=>tt(e.fieldConfig.label,"")),f=x(()=>tt(e.fieldConfig.comment,"")),p=x(()=>tt(e.fieldConfig.hint,"")),g=x(()=>tt(e.fieldConfig.widget,"string")),m=x(()=>tt(e.fieldConfig.i18n,!1)),b=x(()=>tt(e.fieldConfig.pattern,()=>[],!0)),_=x(()=>xd({fieldConfig:e.fieldConfig,locale:e.locale})),v=x(()=>e.fieldConfig.field),y=x(()=>e.fieldConfig.fields),w=x(()=>e.fieldConfig.types),k=x(()=>!!l(v)||!!l(y)||!!l(w)),S=x(()=>e.fieldConfig.min),C=x(()=>e.fieldConfig.max),E=x(()=>l(g)==="string"?e.fieldConfig.type??"text":l(g)==="number"?"number":void 0),A=x(()=>["string"].includes(l(g))),O=x(()=>l(A)?e.fieldConfig.prefix:void 0),$=x(()=>l(A)?e.fieldConfig.suffix:void 0),N=x(()=>["boolean","number","string"].includes(l(g))),I=x(()=>l(N)?e.fieldConfig.before_input:void 0),j=x(()=>l(N)?e.fieldConfig.after_input:void 0),q=x(()=>!!(l(O)||l($)||l(I)||l(j))),B=x(()=>["relation","select"].includes(l(g))),W=x(()=>l(B)?e.fieldConfig.multiple:void 0),G=x(()=>l(g)==="list"&&l(k)||l(W)||l(g)==="keyvalue"),J=x(()=>l(g)==="list"||l(B)&&l(W)),ne=x(()=>i()?.collection),K=x(()=>i()?.collectionFile),Y=x(()=>i()?.originalValues),re=x(()=>(l(K)??l(ne))?._i18n??Pi),ce=x(()=>l(re).i18nEnabled),he=x(()=>l(re).allLocales),Q=x(()=>l(re).defaultLocale),X=x(()=>l(ce)?l(he).filter(we=>we!==e.locale):[]),de=x(()=>l(ce)&&(l(m)===!0||l(m)==="translate")),_e=x(()=>l(ce)&&l(m)==="duplicate"),ve=x(()=>e.locale===l(Q)||l(de)||l(_e)),be=x(()=>new RegExp(`^${an(e.keyPath)}\\.\\d+$`)),fe=x(()=>l(J)?Object.entries(wr(i()?.currentValues[e.locale]??{})).filter(([we])=>l(be).test(we)).map(([,we])=>we).filter(we=>we!==void 0):wr(i()?.currentValues[e.locale])?.[e.keyPath]),Oe=x(()=>l(J)?Object.entries(l(Y)?.[e.locale]??{}).filter(([we])=>l(be).test(we)).map(([,we])=>we).filter(we=>we!==void 0):l(Y)?.[e.locale][e.keyPath]),Ae=x(()=>i()?.validities[e.locale][e.keyPath]),De=x(()=>l(h)||l(d)),He=x(()=>l(m)==="duplicate"&&e.locale!==l(Q)||l(g)==="compute"),Ve=x(()=>l(Ae)?.valid===!1);var mt=V(),et=M(mt);{var ye=we=>{var xe=lW();const ke=x(()=>l(de)&&l(X).length),Ne=x(()=>!(l(_e)&&e.locale!==l(Q)));var ge=R(xe),Ce=R(ge);Se(Ce,"id",`${a??""}-label`);var Ue=R(Ce),Je=D(Ce,2);{var ut=bt=>{var en=J6();H(Fn=>Se(en,"aria-label",Fn),[()=>s()("required")]),T(bt,en)};U(Je,bt=>{!l(He)&&l(_)&&bt(ut)})}var lt=D(Je,2);Wr(lt,{flex:!0});var Ke=D(lt,2);{var rt=bt=>{EA(bt,{size:"small",get locale(){return e.locale},get otherLocales(){return l(X)},get keyPath(){return e.keyPath}})};U(Ke,bt=>{l(ke)&&["markdown","string","text","list","object"].includes(l(g))&&bt(rt)})}var Et=D(Ke,2);{var Ht=bt=>{const en=x(()=>s()("show_field_options"));kr(bt,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(en)},popup:$n=>{const Nt=x(()=>s()("field_options"));hr($n,{get"aria-label"(){return l(Nt)},children:(sn,Nn)=>{var Yn=Z6(),Pr=M(Yn);{var Ri=vr=>{vy(vr,{get locale(){return e.locale},get otherLocales(){return l(X)},get keyPath(){return e.keyPath}})};U(Pr,vr=>{l(ke)&&vr(Ri)})}var fi=D(Pr,2);{var Is=vr=>{const Un=x(()=>s()("revert_changes")),Ut=x(()=>Dn(l(fe),l(Oe)));$t(vr,{get label(){return l(Un)},get disabled(){return l(Ut)},onclick:()=>{hy(e.locale,e.keyPath)}})};U(fi,vr=>{l(Ne)&&vr(Is)})}T(sn,Yn)},$$slots:{default:!0}})},$$slots:{popup:!0}})};U(Et,bt=>{(l(ke)||l(Ne))&&bt(Ht)})}var mn=D(ge,2);{var On=bt=>{var en=X6(),Fn=R(en);ur(Fn,()=>c(l(f))),T(bt,en)};U(mn,bt=>{!l(He)&&l(f)&&bt(On)})}var nr=D(mn,2);{var ns=bt=>{mA(bt,{id:`${a??""}-error`,children:(en,Fn)=>{var $n=Q6(),Nt=M($n);{var sn=Ze=>{var xt=We();H(En=>Z(xt,En),[()=>s()("validation.value_missing")]),T(Ze,xt)};U(Nt,Ze=>{l(Ae).valueMissing&&Ze(sn)})}var Nn=D(Nt,2);{var Yn=Ze=>{var xt=We();const En=x(()=>{const{minlength:rr}=e.fieldConfig;return{minlength:rr}});H(rr=>Z(xt,rr),[()=>s()(l(En).minlength===1?"validation.too_short.one":"validation.too_short.many",{values:{min:l(En).minlength}})]),T(Ze,xt)};U(Nn,Ze=>{l(Ae).tooShort&&Ze(Yn)})}var Pr=D(Nn,2);{var Ri=Ze=>{var xt=We();const En=x(()=>{const{maxlength:rr}=e.fieldConfig;return{maxlength:rr}});H(rr=>Z(xt,rr),[()=>s()(l(En).maxlength===1?"validation.too_long.one":"validation.too_long.many",{values:{max:l(En).maxlength}})]),T(Ze,xt)};U(Pr,Ze=>{l(Ae).tooLong&&Ze(Ri)})}var fi=D(Pr,2);{var Is=Ze=>{var xt=V();const En=x(()=>l(S)===1?"one":"many");var rr=M(xt);{var ho=Bn=>{var ir=We();H(is=>Z(ir,is),[()=>s()("validation.range_underflow.number",{values:{min:l(S)}})]),T(Bn,ir)},Xo=Bn=>{var ir=V(),is=M(ir);{var ss=br=>{var sr=We();H(Di=>Z(sr,Di),[()=>s()(`validation.range_underflow.add_${l(En)}`,{values:{min:l(S)}})]),T(br,sr)},rl=br=>{var sr=We();H(Di=>Z(sr,Di),[()=>s()(`validation.range_underflow.select_${l(En)}`,{values:{min:l(S)}})]),T(br,sr)};U(is,br=>{l(G)?br(ss):br(rl,!1)},!0)}T(Bn,ir)};U(rr,Bn=>{l(g)==="number"?Bn(ho):Bn(Xo,!1)})}T(Ze,xt)};U(fi,Ze=>{l(Ae).rangeUnderflow&&Ze(Is)})}var vr=D(fi,2);{var Un=Ze=>{var xt=V();const En=x(()=>l(C)===1?"one":"many");var rr=M(xt);{var ho=Bn=>{var ir=We();H(is=>Z(ir,is),[()=>s()("validation.range_overflow.number",{values:{max:l(C)}})]),T(Bn,ir)},Xo=Bn=>{var ir=V(),is=M(ir);{var ss=br=>{var sr=We();H(Di=>Z(sr,Di),[()=>s()(`validation.range_overflow.add_${l(En)}`,{values:{max:l(C)}})]),T(br,sr)},rl=br=>{var sr=We();H(Di=>Z(sr,Di),[()=>s()(`validation.range_overflow.select_${l(En)}`,{values:{max:l(C)}})]),T(br,sr)};U(is,br=>{l(G)?br(ss):br(rl,!1)},!0)}T(Bn,ir)};U(rr,Bn=>{l(g)==="number"?Bn(ho):Bn(Xo,!1)})}T(Ze,xt)};U(vr,Ze=>{l(Ae).rangeOverflow&&Ze(Un)})}var Ut=D(vr,2);{var hi=Ze=>{var xt=We();H(()=>Z(xt,l(b)[1])),T(Ze,xt)};U(Ut,Ze=>{l(Ae).patternMismatch&&Ze(hi)})}var Vt=D(Ut,2);{var tn=Ze=>{var xt=We();H(En=>Z(xt,En),[()=>s()(`validation.type_mismatch.${l(E)}`)]),T(Ze,xt)};U(Vt,Ze=>{l(Ae).typeMismatch&&Ze(tn)})}T(en,$n)}})};U(nr,bt=>{l(Ae)?.valid===!1&&bt(ns)})}var ti=D(nr,2),fo=R(ti);{var rs=bt=>{var en=eW(),Fn=R(en);H($n=>Z(Fn,$n),[()=>s()("unsupported_widget_x",{values:{name:l(g)}})]),T(bt,en)},Dt=bt=>{var en=V(),Fn=M(en);{var $n=sn=>{var Nn=V();const Yn=x(()=>ig[l(g)]);var Pr=M(Nn);bi(Pr,()=>l(Yn),(Ri,fi)=>{fi(Ri,{get locale(){return e.locale},get keyPath(){return e.keyPath},fieldId:a,get fieldLabel(){return l(De)},get fieldConfig(){return e.fieldConfig},get currentValue(){return l(fe)},get readonly(){return l(He)},get required(){return l(_)},get invalid(){return l(Ve)}})}),T(sn,Nn)},Nt=sn=>{var Nn=sW();const Yn=x(()=>ig[l(g)]);var Pr=M(Nn);{var Ri=tn=>{var Ze=tW(),xt=R(Ze);ur(xt,()=>c(l(I))),T(tn,Ze)};U(Pr,tn=>{l(I)&&tn(Ri)})}var fi=D(Pr,2);{var Is=tn=>{var Ze=nW(),xt=R(Ze);H(()=>Z(xt,l(O))),T(tn,Ze)};U(fi,tn=>{l(O)&&tn(Is)})}var vr=D(fi,2);bi(vr,()=>l(Yn),(tn,Ze)=>{Ze(tn,{get locale(){return e.locale},get keyPath(){return e.keyPath},fieldId:a,get fieldLabel(){return l(De)},get fieldConfig(){return e.fieldConfig},get readonly(){return l(He)},get required(){return l(_)},get invalid(){return l(Ve)},get currentValue(){return i().currentValues[e.locale][e.keyPath]},set currentValue(xt){Ct(st,Ee(i).currentValues[e.locale][e.keyPath]=xt,Ee(i))}})});var Un=D(vr,2);{var Ut=tn=>{var Ze=rW(),xt=R(Ze);H(()=>Z(xt,l($))),T(tn,Ze)};U(Un,tn=>{l($)&&tn(Ut)})}var hi=D(Un,2);{var Vt=tn=>{var Ze=iW(),xt=R(Ze);ur(xt,()=>c(l(j))),T(tn,Ze)};U(hi,tn=>{l(j)&&tn(Vt)})}T(sn,Nn)};U(Fn,sn=>{l(J)?sn($n):sn(Nt,!1)},!0)}T(bt,en)};U(fo,bt=>{l(g)in ig?bt(Dt,!1):bt(rs)})}var Ln=D(ti,2);{var Gt=bt=>{var en=aW();const Fn=x(o);var $n=R(en);{var Nt=Nn=>{var Yn=oW(),Pr=R(Yn);ur(Pr,()=>c(l(p))),T(Nn,Yn)};U($n,Nn=>{l(p)&&Nn(Nt)})}var sn=D($n,2);bi(sn,()=>l(Fn),(Nn,Yn)=>{Yn(Nn,{get fieldConfig(){return e.fieldConfig},get currentValue(){return l(fe)}})}),T(bt,en)};U(Ln,bt=>{!l(He)&&(l(p)||o())&&bt(Gt)})}H(bt=>{Se(xe,"aria-label",bt),Se(xe,"data-widget",l(g)),Se(xe,"data-key-path",e.keyPath),xe.hidden=l(g)==="compute",Z(Ue,l(De)),ft(ti,"has-extra-labels",l(q))},[()=>s()("x_field",{values:{field:l(De)}})]),T(we,xe)};U(et,we=>{i()&&l(ve)&&l(g)!=="hidden"&&we(ye)})}T(t,mt),oe(),r()}function uW(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=x(()=>i()?.collection),o=x(()=>i()?.collectionFile),a=x(()=>l(o)?.fields??l(s)?.fields??[]);var c=V(),u=M(c);dt(u,17,()=>l(a),d=>d.name,(d,h)=>{var f=V(),p=M(f);lr(p,()=>dn(0),null,g=>{by(g,{get keyPath(){return l(h).name},get locale(){return e.locale},get fieldConfig(){return l(h)}})}),T(d,f)}),T(t,c),oe(),r()}var dW=F('<div role="document" class="svelte-t01vxl"></div>');const fW={hash:"svelte-t01vxl",code:"div.svelte-t01vxl {padding:8px 16px;}"};function hW(t,e){se(e,!0),Te(t,fW);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=x(()=>i()?.collection),a=x(()=>i()?.collectionFile),c=x(()=>l(a)?.fields??l(o)?.fields??[]);var u=dW();dt(u,21,()=>l(c),d=>d.name,(d,h)=>{var f=V(),p=M(f);lr(p,()=>dn(0),null,g=>{my(g,{get keyPath(){return l(h).name},get locale(){return e.locale},get fieldConfig(){return l(h)}})}),T(d,f)}),H(d=>Se(u,"aria-label",d),[()=>s()("content_preview")]),T(t,u),oe(),r()}var pW=F('<div role="none" class="content svelte-1g8n4fi"><!></div>'),gW=F('<span role="alert"> </span> <!>',1),mW=F('<div role="none" class="wrapper svelte-1g8n4fi"><!></div>');const vW={hash:"svelte-1g8n4fi",code:'@charset "UTF-8";.wrapper.svelte-1g8n4fi {display:contents;}.wrapper.svelte-1g8n4fi > .group {display:contents;}.content.svelte-1g8n4fi {flex:auto;overflow-y:auto;scroll-behavior:auto; /* Don’t use smooth scroll for syncing */overscroll-behavior-y:contain;}'};function TA(t,e){se(e,!0),Te(t,vW);const[n,r]=me(),i=()=>z(Ii,"$entryEditorSettings",n),s=()=>z(e.thisPane,"$thisPane",n),o=()=>z(st,"$entryDraft",n),a=()=>z(le,"$_",n);let c=P(e,"thisPaneContentArea",15),u=P(e,"thatPaneContentArea",15);const d=x(()=>i()??{}),h=x(()=>l(d).syncScrolling),f=x(()=>s()?.locale),p=x(()=>s()?.mode),g=x(()=>!!l(f)&&!!wr(o()?.currentValues[l(f)])),m=x(()=>({values:{locale:l(f)?Zs(l(f)):""}})),b=x(()=>l(p)==="preview"?hW:uW),_=()=>{window.requestAnimationFrame(()=>{if(!l(h)||!c()||!u())return;const{x:C,y:E}=c().getBoundingClientRect(),A=document.elementsFromPoint(C+80,E).find(q=>q.matches("[data-key-path]"));if(!A)return;const{keyPath:O}=A.dataset,{top:$,height:N}=A.getBoundingClientRect(),I=(E-$)/N,j=u().querySelector(`[data-key-path="${CSS.escape(O??"")}"]`);I<0||I>1||!j||u(u().scrollTop=j.offsetTop-E+j.clientHeight*I,!0)})},v={capture:!0,passive:!0};Be(()=>{c()&&(c(c().scrollTop=0,!0),c().addEventListener("wheel",_,v),c().addEventListener("touchmove",_,v))});var y=mW(),w=R(y);{var k=C=>{var E=pW(),A=R(E);bi(A,()=>l(b),(O,$)=>{$(O,{get locale(){return l(f)}})}),Tt(E,O=>c(O),()=>c()),T(C,E)},S=C=>{var E=V(),A=M(E);{var O=$=>{qr($,{children:(N,I)=>{var j=gW(),q=M(j),B=R(q),W=D(q,2);const G=x(()=>a()(l(g)?"reenable_x_locale":"enable_x_locale",l(m)));Xe(W,{variant:"tertiary",get label(){return l(G)},onclick:()=>{l(f)&&iA(l(f))}}),H(J=>Z(B,J),[()=>a()(l(g)?"locale_x_now_disabled":"locale_x_has_been_disabled",l(m))]),T(N,j)},$$slots:{default:!0}})};U(A,$=>{l(p)==="edit"&&$(O)},!0)}T(C,E)};U(w,C=>{l(f)&&o()?.currentLocales[l(f)]?C(k):C(S,!1)})}H(()=>Se(y,"id",e.id)),T(t,y),oe(),r()}var bW=F('<div class="inner svelte-1ivrcdt"><!> <!></div>'),_W=F('<div class="outer svelte-1ivrcdt"><!></div>');const yW={hash:"svelte-1ivrcdt",code:`.outer.svelte-1ivrcdt {display:contents;}.outer.svelte-1ivrcdt .combobox.error [role="combobox"] {border-color:var(--sui-error-border-color);}.inner.svelte-1ivrcdt {display:contents;}.inner.svelte-1ivrcdt .error,
|
|
615
|
-
.inner.svelte-1ivrcdt .error button {color:var(--sui-error-foreground-color) !important;}`};function wW(t,e){se(e,!0),Te(t,yW);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(st,"$entryDraft",n),o=()=>z(d(),"$thatPane",n),a=()=>z(le,"$_",n),c=()=>z(e.thisPane,"$thisPane",n),u=()=>z(Ii,"$entryEditorSettings",n);let d=P(e,"thatPane",19,()=>it(null));const h=x(()=>i()?.editor?.preview??!0),f=x(()=>s()?.collection),p=x(()=>s()?.collectionFile),g=x(()=>(l(p)??l(f))?._i18n??Pi),m=x(()=>l(g).allLocales),b=x(()=>l(m).filter(I=>!(o()?.mode==="edit"&&o().locale===I))),_=x(()=>Object.entries(s()?.validities??{}).some(([I,j])=>l(b).includes(I)&&Object.values(j??{}).some(({valid:q})=>!q))),v=x(()=>(l(p)??l(f))?.editor?.preview??l(h)),y=x(()=>l(m).length>=5),w=x(()=>l(y)?uu:Tf),k=x(()=>l(y)?fr:su),S=x(()=>l(y)?void 0:"tertiary"),C=x(()=>l(y)?void 0:"small");var E=_W(),A=R(E);const O=x(()=>l(_)?"error":void 0),$=x(()=>a()("switch_locale")),N=x(()=>e.id.replace("-header","-body"));bi(A,()=>l(w),(I,j)=>{j(I,{get class(){return l(O)},get"aria-label"(){return l($)},get"aria-controls"(){return l(N)},children:(q,B)=>{var W=bW(),G=R(W);dt(G,17,()=>l(b),cr,(K,Y)=>{var re=V();const ce=x(()=>Zs(l(Y))),he=x(()=>!s()?.currentLocales[l(Y)]),Q=x(()=>Object.values(s()?.validities[l(Y)]??{}).some(({valid:fe})=>!fe));var X=M(re);const de=x(()=>l(ce)),_e=x(()=>l(he)?a()("locale_content_disabled_short"):l(Q)?a()("locale_content_error_short"):""),ve=x(()=>c()?.mode==="edit"&&c().locale===l(Y)),be=x(()=>l(Q)?"error":"");bi(X,()=>l(k),(fe,Oe)=>{Oe(fe,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(ce)},get"aria-label"(){return`${l(de)??""} ${l(_e)??""}`},get selected(){return l(ve)},get class(){return l(be)},onSelect:()=>{ot(e.thisPane,{mode:"edit",locale:l(Y)}),o()?.mode==="preview"&&ot(d(),{mode:"preview",locale:l(Y)})},startIcon:De=>{var He=V(),Ve=M(He);{var mt=ye=>{nt(ye,{name:"edit_off"})},et=ye=>{var we=V(),xe=M(we);{var ke=Ne=>{nt(Ne,{name:"error"})};U(xe,Ne=>{l(Q)&&Ne(ke)},!0)}T(ye,we)};U(Ve,ye=>{l(he)?ye(mt):ye(et,!1)})}T(De,He)},$$slots:{startIcon:!0}})}),T(K,re)});var J=D(G,2);{var ne=K=>{var Y=V(),re=M(Y);const ce=x(()=>a()("preview")),he=x(()=>c()?.mode==="preview");bi(re,()=>l(k),(Q,X)=>{X(Q,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(ce)},get selected(){return l(he)},onSelect:()=>{ot(e.thisPane,{mode:"preview",locale:o()?.locale??""})}})}),T(K,Y)};U(J,K=>{o()?.mode==="edit"&&l(v)&&u()?.showPreview&&K(ne)})}T(q,W)},$$slots:{default:!0}})}),T(t,E),oe(),r()}var xW=F('<h3 role="none"> </h3>'),kW=F("<!> <!>",1),SW=F("<!> <!> <!>",1),EW=F("<!> <!> <!> <!>",1),TW=F("<!> <!>",1),CW=F("<!> <!> <!>",1),AW=F('<div role="none" class="header svelte-2uraod"><!></div>');const PW={hash:"svelte-2uraod",code:'.header.svelte-2uraod {flex:none !important;}.header.svelte-2uraod > [role="toolbar"] {margin-right:auto;margin-left:auto;max-width:800px;}.header.svelte-2uraod > [role="toolbar"] h3 {margin:0 8px;font-size:var(--sui-font-size-default);}'};function CA(t,e){se(e,!0),Te(t,PW);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(e.thisPane,"$thisPane",n),o=()=>z(le,"$_",n),a=()=>z(St,"$prefs",n),c=()=>z(Pn,"$backend",n);let u=P(e,"thatPane",19,()=>it(null));const d=x(()=>i()?.collection),h=x(()=>i()?.collectionFile),f=x(()=>i()?.originalEntry),p=x(()=>i()?.originalValues??{}),g=x(()=>(l(h)??l(d))?._i18n??Pi),m=x(()=>l(g).i18nEnabled),b=x(()=>l(g).saveAllLocales),_=x(()=>l(g).allLocales),v=x(()=>l(g).defaultLocale),y=x(()=>i()?.currentLocales[s()?.locale??""]),w=x(()=>Object.values(i()?.currentLocales??{}).filter(N=>N).length===1),k=x(()=>l(m)?l(_).filter(N=>N!==s()?.locale):[]),S=x(()=>!!l(k).length),C=x(()=>s()?.locale&&!Dn(wr(i()?.currentValues[s().locale]),l(p)[s().locale])),E=x(()=>l(d)&&l(f)&&s()?.locale?BT(l(f),s().locale,l(d),l(h)):void 0);var A=AW(),O=R(A);const $=x(()=>o()("secondary"));Ks(O,{variant:"secondary",get"aria-label"(){return l($)},children:(N,I)=>{var j=CW(),q=M(j);{var B=K=>{wW(K,{get id(){return e.id},get thisPane(){return e.thisPane},get thatPane(){return u()}})},W=K=>{var Y=xW(),re=R(Y);H(ce=>Z(re,ce),[()=>s()?.mode==="preview"?o()("preview"):o()("edit")]),T(K,Y)};U(q,K=>{l(m)?K(B):K(W,!1)})}var G=D(q,2);Wr(G,{flex:!0});var J=D(G,2);{var ne=K=>{var Y=TW();const re=x(()=>Zs(s().locale));var ce=M(Y);{var he=de=>{EA(de,{get locale(){return s().locale},get otherLocales(){return l(k)}})};U(ce,de=>{l(S)&&de(he)})}var Q=D(ce,2);const X=x(()=>o()("show_content_options_x_locale",{values:{locale:l(re)}}));kr(Q,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(X)},popup:_e=>{const ve=x(()=>o()("content_options_x_locale",{values:{locale:l(re)}}));hr(_e,{get"aria-label"(){return l(ve)},children:(be,fe)=>{var Oe=EW(),Ae=M(Oe);{var De=ke=>{vy(ke,{get locale(){return s().locale},get otherLocales(){return l(k)}})};U(Ae,ke=>{l(S)&&s()?.locale&&ke(De)})}var He=D(Ae,2);const Ve=x(()=>o()("revert_changes")),mt=x(()=>!l(C));$t(He,{get label(){return l(Ve)},get disabled(){return l(mt)},onclick:()=>{hy(s()?.locale)}});var et=D(He,2);{var ye=ke=>{var Ne=kW(),ge=M(Ne);Sr(ge,{});var Ce=D(ge,2);const Ue=x(()=>o()(l(y)?"disable_x_locale":wr(i()?.currentValues[s().locale])?"reenable_x_locale":"enable_x_locale",{values:{locale:l(re)}})),Je=x(()=>s().locale===l(v)||l(y)&&l(w));$t(Ce,{get label(){return l(Ue)},get disabled(){return l(Je)},onclick:()=>{iA(s()?.locale??"")}}),T(ke,Ne)};U(et,ke=>{!l(b)&&s()?.locale&&ke(ye)})}var we=D(et,2);{var xe=ke=>{var Ne=SW(),ge=M(Ne);Sr(ge,{});var Ce=D(ge,2);{var Ue=lt=>{const Ke=x(()=>o()("view_on_live_site"));$t(lt,{get label(){return l(Ke)},onclick:()=>{window.open(l(E))}})};U(Ce,lt=>{l(E)&<(Ue)})}var Je=D(Ce,2);{var ut=lt=>{const Ke=x(()=>!c()?.repository?.blobBaseURL),rt=x(()=>o()("view_on_x",{values:{service:c()?.repository?.label},default:o()("view_in_repository")}));$t(lt,{get disabled(){return l(Ke)},get label(){return l(rt)},onclick:()=>{l(f)&&s()&&window.open(PB(l(f),s().locale))}})};U(Je,lt=>{a().devModeEnabled&<(ut)})}T(ke,Ne)};U(we,ke=>{l(f)&&(l(E)||a().devModeEnabled)&&ke(xe)})}T(be,Oe)},$$slots:{default:!0}})},$$slots:{popup:!0}}),T(K,Y)};U(J,K=>{s()?.mode==="edit"&&K(ne)})}T(N,j)},$$slots:{default:!0}}),H(()=>Se(A,"id",e.id)),T(t,A),oe(),r()}const AA=async(t,e)=>{const{_i18n:{defaultLocale:n},_thumbnailFieldNames:r}=t,{locales:i}=e,{content:s}=i[n]??Object.values(i)[0]??{};if(!s)return;const o=r.map(a=>{if(a.includes("*")){const c=new RegExp(`^${an(a).replace("\\*",".+")}$`);return Object.keys(s).filter(u=>c.test(u))}return a}).flat(1);for(const a of o){const c=s[a]?await Lc(s[a],e,{thumbnail:!0}):void 0;if(c)return c}},PA=({entry:t,collectionName:e,relative:n=!1})=>{const{locales:r}=t,i=Ni(e),s=Object.values(r).map(({content:o})=>Object.entries(o).map(([a,c])=>{if(typeof c=="string"&&(!n||!/^[/@]/.test(c))&&["image","file"].includes(gn({collectionName:e,keyPath:a})?.widget??"string")){const u=N_(c,{entry:t,collection:i});if(u&&$_(u).some(d=>d.name===e))return u}})).flat(1).filter((o,a,c)=>!!o&&c.indexOf(o)===a);if(n&&i?._assetFolder?.entryRelative){const o=Tn(Object.values(t.locales)[0].path).dirname;te(Qt).forEach(a=>{Tn(a.path).dirname===o&&!s.find(({path:c})=>c===a.path)&&s.push(a)})}return s};var OW=F("<!> <!>",1),LW=F("<!> <!> <!> <!>",1),$W=F('<!> <h2 role="none"><strong role="none"><!></strong></h2> <!> <!> <!> <!> <!>',1),NW=F('<div class="error svelte-1432d6m"> </div>'),IW=F(" <!>",1),RW=F("<!> <!> <!> <!> <!>",1);const DW={hash:"svelte-1432d6m",code:".error.svelte-1432d6m {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 MW(t,e){se(e,!0),Te(t,DW);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(_t,"$siteConfig",n),o=()=>z(Ls,"$backendName",n),a=()=>z(St,"$prefs",n),c=()=>z(le,"$_",n),u=()=>z(Ii,"$entryEditorSettings",n),d=()=>z(Q_,"$copyFromLocaleToast",n);let h=ae(!1),f=ae(!1),p=ae(!1),g=ae(""),m=ae(!1),b=ae(void 0);const _=x(()=>i()?.isNew),v=x(()=>i()?.collection),y=x(()=>i()?.collectionFile),w=x(()=>i()?.originalEntry),k=x(()=>i()?.originalLocales??{}),S=x(()=>i()?.originalValues??{}),C=x(()=>s()?.editor?.preview??!0),E=x(()=>s()?.backend.automatic_deployments),A=x(()=>o()!=="local"&&typeof l(E)=="boolean"),O=x(()=>(l(y)??l(v))?._i18n??Pi),$=x(()=>l(O).defaultLocale),N=x(()=>l(v)?.name),I=x(()=>l(v)?.label||l(N)),j=x(()=>l(v)?.label_singular||l(I)),q=x(()=>(l(y)??l(v))?.editor?.preview??l(C)),B=x(()=>l(_)||!Dn(l(k),wr(i()?.currentLocales))||!Dn(l(S),wr(i()?.currentValues))),W=x(()=>Object.values(i()?.validities??{}).map(be=>Object.values(be).map(({valid:fe})=>!fe)).flat(1).filter(Boolean).length),G=x(()=>l(N)&&l(w)&&l(v)?._assetFolder?.entryRelative?PA({entry:l(w),collectionName:l(N),relative:!0}):[]),J=x(()=>l(v)&&l(w)?BT(l(w),l($),l(v),l(y)):void 0),ne=async({skipCI:be=void 0}={})=>{if(L(m,!0),!!l(v))try{const fe=await h5({skipCI:be});a()?.closeOnSave??!0?(Rc(`/collections/${l(N)}`),ot(st,null)):(l(_)&&jn(`/collections/${l(N)}/entries/${fe.subPath}`,{replaceState:!0,notifyChange:!1}),Nd({collection:l(v),collectionFile:l(y),originalEntry:fe,expanderStates:i()?.expanderStates}))}catch(fe){fe.message==="validation_failed"?L(h,!0):fe.message==="saving_failed"?(L(p,!0),L(g,ie(fe.cause?.message??fe.message??c()("unexpected_error")))):(L(p,!0),L(g,""),console.error(fe))}finally{L(m,!1)}};var K=RW(),Y=M(K);const re=x(()=>c()("primary"));Ks(Y,{variant:"primary",get"aria-label"(){return l(re)},children:(be,fe)=>{var Oe=$W(),Ae=M(Oe);const De=x(()=>c()("cancel_editing"));Xe(Ae,{variant:"ghost",iconic:!0,get"aria-label"(){return l(De)},keyShortcuts:"Escape",onclick:()=>{Rc(`/collections/${l(N)}`)},startIcon:rt=>{nt(rt,{name:"arrow_back_ios_new"})},$$slots:{startIcon:!0}});var He=D(Ae,2),Ve=R(He),mt=R(Ve);{var et=Ke=>{var rt=We();H(Et=>Z(rt,Et),[()=>c()("creating_x",{values:{name:l(j)}})]),T(Ke,rt)},ye=Ke=>{var rt=We();H(Et=>Z(rt,Et),[()=>c()("editing_x_in_x",{values:{collection:l(I),entry:l(y)?l(y).label||l(y).name:l(v)&&l(w)?Ho(l(v),l(w)):""}})]),T(Ke,rt)};U(mt,Ke=>{l(_)?Ke(et):Ke(ye,!1)})}var we=D(He,2);Wr(we,{flex:!0});var xe=D(we,2);{var ke=Ke=>{const rt=x(()=>c()("view_on_live_site"));Xe(Ke,{variant:"tertiary",get label(){return l(rt)},onclick:()=>{window.open(l(J))}})};U(xe,Ke=>{l(J)&&Ke(ke)})}var Ne=D(xe,2);{var ge=Ke=>{var rt=OW(),Et=M(rt);const Ht=x(()=>c()("duplicate")),mn=x(()=>c()("duplicate_entry")),On=x(()=>l(v)?.create===!1);Xe(Et,{variant:"ghost",get label(){return l(Ht)},get"aria-label"(){return l(mn)},get disabled(){return l(On)},onclick:()=>{jn(`/collections/${l(N)}/new`,{replaceState:!0,notifyChange:!1}),Xq()}});var nr=D(Et,2);const ns=x(()=>c()("delete")),ti=x(()=>c()("delete_entry")),fo=x(()=>l(v)?.delete===!1);Xe(nr,{variant:"ghost",get label(){return l(ns)},get"aria-label"(){return l(ti)},get disabled(){return l(fo)},onclick:()=>{L(f,!0)}}),T(Ke,rt)};U(Ne,Ke=>{!l(y)&&!l(_)&&Ke(ge)})}var Ce=D(Ne,2);const Ue=x(()=>c()("show_editor_options"));Tt(kr(Ce,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Ue)},popup:rt=>{const Et=x(()=>c()("editor_options"));hr(rt,{get"aria-label"(){return l(Et)},children:(Ht,mn)=>{var On=LW(),nr=M(On);const ns=x(()=>c()("show_preview")),ti=x(()=>u()?.showPreview),fo=x(()=>!l(q));Af(nr,{get label(){return l(ns)},get checked(){return l(ti)},get disabled(){return l(fo)},onChange:()=>{Ii.update((Nt={})=>({...Nt,showPreview:!Nt.showPreview}))}});var rs=D(nr,2);const Dt=x(()=>c()("sync_scrolling")),Ln=x(()=>u()?.syncScrolling),Gt=x(()=>!l(q)&&Object.keys(i()?.currentValues??{}).length===1);Af(rs,{get label(){return l(Dt)},get checked(){return l(Ln)},get disabled(){return l(Gt)},onChange:()=>{Ii.update((Nt={})=>({...Nt,syncScrolling:!Nt.syncScrolling}))}});var bt=D(rs,2);Sr(bt,{});var en=D(bt,2);const Fn=x(()=>c()("revert_all_changes")),$n=x(()=>!l(B));$t(en,{get label(){return l(Fn)},get disabled(){return l($n)},onclick:()=>{hy()}}),T(Ht,On)},$$slots:{default:!0}})},$$slots:{popup:!0}}),rt=>L(b,ie(rt)),()=>l(b));var Je=D(Ce,2);{var ut=Ke=>{const rt=x(()=>c()(l(m)?"saving":"save")),Et=x(()=>!l(B)||l(m));YL(Ke,{variant:"primary",get label(){return l(rt)},get disabled(){return l(Et)},keyShortcuts:"Accel+S",onclick:()=>{ne()},popup:mn=>{hr(mn,{children:(On,nr)=>{const ns=x(()=>c()(l(E)?"save_without_publishing":"save_and_publish"));$t(On,{get label(){return l(ns)},onclick:()=>{ne({skipCI:l(E)})}})},$$slots:{default:!0}})},$$slots:{popup:!0}})},lt=Ke=>{const rt=x(()=>c()(l(m)?"saving":"save")),Et=x(()=>!l(B)||l(m));Xe(Ke,{variant:"primary",get label(){return l(rt)},get disabled(){return l(Et)},keyShortcuts:"Accel+S",onclick:()=>{ne()}})};U(Je,Ke=>{l(A)?Ke(ut):Ke(lt,!1)})}T(be,Oe)},$$slots:{default:!0}});var ce=D(Y,2);Hn(ce,{get show(){return l(h)},set show(be){L(h,ie(be))},children:(be,fe)=>{qn(be,{status:"error",children:(Oe,Ae)=>{var De=We();H(He=>Z(De,He),[()=>c()(l(W)===1?"entry_validation_error":"entry_validation_errors",{values:{count:l(W)}})]),T(Oe,De)},$$slots:{default:!0}})},$$slots:{default:!0}});var he=D(ce,2);Hn(he,{get id(){return d().id},get show(){return d().show},set show(be){Ct(Q_,Ee(d).show=be,Ee(d))},children:(be,fe)=>{const Oe=x(()=>{const{status:Ae,message:De,count:He,sourceLocale:Ve}=d();return{status:Ae,message:De,count:He,sourceLocale:Ve}});qn(be,{get status(){return l(Oe).status},children:(Ae,De)=>{var He=We();H(Ve=>Z(He,Ve),[()=>c()(`editor.${l(Oe).message}`,{values:{count:l(Oe).count,source:l(Oe).sourceLocale?Zs(l(Oe).sourceLocale):""}})]),T(Ae,He)},$$slots:{default:!0}})},$$slots:{default:!0}});var Q=D(he,2);const X=x(()=>c()("delete_entry")),de=x(()=>c()("delete"));kl(Q,{get title(){return l(X)},get okLabel(){return l(de)},onOk:async()=>{l(w)&&await TC([l(w).id],l(G).map(({path:be})=>be)),Rc(`/collections/${l(N)}`)},onClose:()=>{l(b).focus()},get open(){return l(f)},set open(be){L(f,ie(be))},children:(be,fe)=>{var Oe=We();H(Ae=>Z(Oe,Ae),[()=>c()(l(G).length?"confirm_deleting_this_entry_with_assets":"confirm_deleting_this_entry")]),T(be,Oe)},$$slots:{default:!0}});var _e=D(Q,2);const ve=x(()=>c()("saving_entry.error.title"));xx(_e,{get title(){return l(ve)},onClose:()=>{l(b).focus()},get open(){return l(p)},set open(be){L(p,ie(be))},children:(be,fe)=>{var Oe=IW(),Ae=M(Oe),De=D(Ae);{var He=Ve=>{var mt=NW(),et=R(mt);H(()=>Z(et,l(g))),T(Ve,mt)};U(De,Ve=>{l(g)&&Ve(He)})}H(Ve=>Z(Ae,`${Ve??""} `),[()=>c()("saving_entry.error.description")]),T(be,Oe)},$$slots:{default:!0}}),T(t,K),oe(),r()}var FW=F("<!> <!>",1),zW=F("<!> <!>",1),jW=F("<!> <!>",1),UW=F('<!> <div role="none" class="cols svelte-1pb3yei"><!></div>',1),BW=F('<div role="none" class="wrapper svelte-1pb3yei"><!></div> <!> <!>',1);const qW={hash:"svelte-1pb3yei",code:'.wrapper.svelte-1pb3yei {display:contents;}.wrapper[hidden].svelte-1pb3yei {display:none;}.wrapper.svelte-1pb3yei > .sui.group {position:absolute;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);transition:filter 250ms;}.wrapper[inert].svelte-1pb3yei > .sui.group {filter:opacity(0);}.wrapper.svelte-1pb3yei .cols:where(.svelte-1pb3yei) {flex:auto;overflow:hidden;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}.wrapper.svelte-1pb3yei .cols:where(.svelte-1pb3yei) > div {display:flex;flex-direction:column;min-width:480px;background-color:var(--sui-primary-background-color);transition:all 500ms;}.wrapper.svelte-1pb3yei .cols:where(.svelte-1pb3yei) > [data-mode="edit"] {flex:1 1;}.wrapper.svelte-1pb3yei .cols:where(.svelte-1pb3yei) > [data-mode="preview"] {flex:2 1;}'};function HW(t,e){se(e,!0),Te(t,qW);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(st,"$entryDraft",n),o=()=>z(Ii,"$entryEditorSettings",n),a=()=>z(Ja,"$editorLeftPane",n),c=()=>z(Yo,"$editorRightPane",n),u=()=>z(Ya,"$showContentOverlay",n),d=()=>z(le,"$_",n),h=()=>z(X_,"$showDuplicateToast",n);let f,p=!1,g=ae(!1),m=ae(!0),b=ae(void 0),_=ae(void 0),v=ae(void 0);const y=x(()=>i()?.editor?.preview??!0),w=x(()=>s()?.collection),k=x(()=>s()?.collectionFile),S=x(()=>s()?.originalEntry),C=x(()=>l(S)?.id??[l(w)?.name??"-",l(k)?.name??"-"].join("/")),E=x(()=>o()??{}),A=x(()=>l(E).showPreview),O=x(()=>(l(k)??l(w))?._i18n??Pi),$=x(()=>l(O).i18nEnabled),N=x(()=>l(O).allLocales),I=x(()=>l(O).defaultLocale),j=x(()=>(l(k)??l(w))?.editor?.preview??l(y)),q=x(()=>l(k)?.name?[l(w)?.name,l(k).name].join("|"):l(w)?.name),B=async()=>{const[Q,X]=o()?.paneStates?.[l(q)??""]??[];return p||!Q||!X||Q.locale&&!l(N).includes(Q.locale)||X.locale&&!l(N).includes(X.locale)||(!l(A)||!l(j))&&(Q.mode==="preview"||X.mode==="preview")?!1:(p=!0,await pl(),ot(Ja,Q),ot(Yo,X),await pl(),p=!1,!0)},W=async()=>{if(s()&&!await B())if(ot(Ja,{mode:"edit",locale:a()?.locale??l(I)}),!l(A)||!l(j)){const Q=l($)?l(N).filter(X=>X!==a()?.locale):[];ot(Yo,Q.length?{mode:"edit",locale:Q[0]}:null)}else ot(Yo,{mode:"preview",locale:a().locale})},G=()=>{!l(w)||p||!a()||!c()||!l(q)||Ii.update((Q={})=>({...Q,paneStates:{...Q.paneStates??{},[l(q)]:[a(),c()]}}))},J=async()=>{await pl(),f&&(f.tabIndex=0,f.focus())};on(()=>{f=l(b)?.querySelector('[role="group"]'),f.addEventListener("transitionend",()=>{u()||(L(g,!1),L(m,!0),ot(st,null))})}),Be(()=>{l(q)&&(ot(Ja,null),ot(Yo,null))}),Be(()=>{l(A),l(j),W()}),Be(()=>{a(),c(),G()}),Be(()=>{l(b)&&(u()?l(m)&&(L(g,!1),L(m,!1),W(),J(),n5()):(L(g,!0),t5()))});var ne=BW(),K=M(ne),Y=R(K);const re=x(()=>d()("content_editor"));mr(Y,{class:"content-editor",get"aria-label"(){return l(re)},children:(Q,X)=>{var de=V(),_e=M(de);hs(_e,()=>l(C),ve=>{var be=UW(),fe=M(be);MW(fe,{});var Oe=D(fe,2),Ae=R(Oe);{var De=He=>{var Ve=jW(),mt=M(Ve);{var et=xe=>{const ke=x(()=>{const{locale:ge,mode:Ce}=a();return{locale:ge,mode:Ce}}),Ne=x(()=>d()(l(ke).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Zs(l(ke).locale)}}));mr(xe,{class:"pane",get"aria-label"(){return l(Ne)},get"data-locale"(){return l(ke).locale},get"data-mode"(){return l(ke).mode},children:(ge,Ce)=>{var Ue=FW(),Je=M(Ue);CA(Je,{id:"left-pane-header",thisPane:Ja,thatPane:Yo});var ut=D(Je,2);TA(ut,{id:"left-pane-body",thisPane:Ja,get thatPaneContentArea(){return l(v)},get thisPaneContentArea(){return l(_)},set thisPaneContentArea(lt){L(_,ie(lt))}}),T(ge,Ue)},$$slots:{default:!0}})};U(mt,xe=>{a()&&xe(et)})}var ye=D(mt,2);{var we=xe=>{const ke=x(()=>{const{locale:ge,mode:Ce}=c();return{locale:ge,mode:Ce}}),Ne=x(()=>d()(l(ke).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Zs(l(ke).locale)}}));mr(xe,{get"aria-label"(){return l(Ne)},get"data-locale"(){return l(ke).locale},get"data-mode"(){return l(ke).mode},children:(ge,Ce)=>{var Ue=zW(),Je=M(Ue);CA(Je,{id:"right-pane-header",thisPane:Yo,thatPane:Ja});var ut=D(Je,2);TA(ut,{id:"right-pane-body",thisPane:Yo,get thatPaneContentArea(){return l(_)},get thisPaneContentArea(){return l(v)},set thisPaneContentArea(lt){L(v,ie(lt))}}),T(ge,Ue)},$$slots:{default:!0}})};U(ye,xe=>{c()&&xe(we)})}T(He,Ve)};U(Ae,He=>{l(w)&&He(De)})}T(ve,be)}),T(Q,de)},$$slots:{default:!0}}),Tt(K,Q=>L(b,Q),()=>l(b));var ce=D(K,2);GH(ce,{});var he=D(ce,2);Hn(he,{get show(){return Sw(),h()},set show(Q){ot(X_,Q)},children:(Q,X)=>{qn(Q,{status:"success",children:(de,_e)=>{var ve=We();H(be=>Z(ve,be),[()=>d()("entry_duplicated")]),T(de,ve)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(()=>{K.hidden=l(m),K.inert=!u(),ft(K,"hiding",l(g))}),T(t,ne),oe(),r()}const VW=["title","name","date","author","description"],di=it({type:"list"}),OA=t=>t.replace(/[_*`]+/g,""),WW=(t,e,{key:n,order:r}={})=>{const i=[...t],{name:s,_i18n:{defaultLocale:o}}=e;if(n===void 0){const h={useTemplate:!0,allowMarkdown:!0};return i.sort((f,p)=>Ho(e,f,h).localeCompare(Ho(e,p,h)))}const a={slug:String,commit_author:String,commit_date:Date}[n]||(i.length?Pc({entry:i[0],locale:o,collectionName:s,key:n})?.constructor:String)||String,c=Object.fromEntries(i.map(h=>[h.slug,Pc({entry:h,locale:o,collectionName:s,key:n})])),u=gn({collectionName:s,keyPath:n}),d=u?.widget==="datetime"?u:void 0;return i.sort((h,f)=>{const p=c[h.slug],g=c[f.slug];if(p===void 0||g===void 0)return 0;if(d){const m=Ac(p,d),b=Ac(g,d);if(m&&b)return Number(m)-Number(b)}return a===String?ii(OA(p),OA(g)):a===Date?Number(p)-Number(g):p-g}),r==="descending"&&i.reverse(),i},GW=(t,e,n)=>{const{name:r,view_filters:i=[],_i18n:{defaultLocale:s}}=e,o=n.filter(({field:a,pattern:c})=>a!==void 0&&c!==void 0&&i.some(u=>u.field===a&&u.pattern===c));return t.filter(a=>o.every(({field:c,pattern:u})=>{const d={entry:a,locale:s,collectionName:r,key:c},h=Pc({...d,resolveRef:!1}),f=Pc({...d}),p=typeof u=="string"?new RegExp(u):void 0;return h===void 0||f===void 0?!1:p?p.test(String(h))||p.test(String(f)):h===u||f===u}))},KW=(t,e,{field:n,pattern:r}={field:"",pattern:void 0})=>{if(!n)return t.length?[{name:"*",entries:t}]:[];const{name:i,_i18n:{defaultLocale:s}}=e,o=te(di).sort,a=typeof r=="string"?new RegExp(r):void 0,c={},u=te(le)("other");t.forEach(h=>{const f=Pc({entry:h,locale:s,collectionName:i,key:n});if(f===void 0)return;const p=a?String(f).match(a)?.[0]??u:String(f);p in c||(c[p]=[]),c[p].push(h)});const d=Object.entries(c).map(([h,f])=>({name:h,entries:f})).sort(({name:h},{name:f})=>ii(h,f));return o?.key===n&&o.order==="descending"&&d.reverse(),d},Fc=it(),YW=t=>{const{name:e,identifier_field:n,sortable_fields:r}=t;let i=[],s,o;if(r){if(Array.isArray(r)&&(i=r),Gn(r)){const a=r;Array.isArray(a.fields)&&(i=a.fields),a.default&&Gn(a.default)&&(s=a.default.field,o=["descending","Descending"].includes(a.default.direction??"")?"descending":"ascending")}}else i=[...VW],n&&(i.unshift(n),s=n);return i=ec(i).filter(a=>!!gn({collectionName:e,keyPath:a})),{fields:i,default:{key:s??i[0],order:o??"ascending"}}},JW=(t,e)=>["name","commit_author","commit_date"].includes(e)?te(le)(`sort_keys.${e}`):e.includes(".")?e.split(".").map((n,r,i)=>{if(/^\d+$/.test(n))return;const s=i.slice(0,r+1).join(".");return gn({collectionName:t.name,keyPath:s})?.label||n}).filter(Boolean).join(" – "):t.fields?.find(({name:n})=>n===e)?.label||e,ZW=dr([zn,ei,Cn],([t,e],n)=>{if(!t?.folder){n([]);return}const r=t,{fields:i,default:s}=YW(r),o=te(Fc)?.[r.name]??{type:"list"};o.sort??=s,e.every(a=>!!a.commitAuthor)&&!i.includes("author")&&i.push("commit_author"),e.every(a=>!!a.commitDate)&&!i.includes("date")&&i.push("commit_date"),n(i.map(a=>({key:a,label:JW(r,a)}))),Dn(o,te(di))||di.set(o)}),nl=dr([ei,zn],([t,e],n)=>{n(t&&e?Wo(e.name):[])}),_y=dr([nl,di],([t,e],n)=>{const r=te(zn);let i=[...t];if(!i.length||Vo(r,i[0]).length)n([]);else{i=WW(i,r,e.sort),e.filters&&(i=GW(i,r,e.filters));const s=KW(i,r,e.group);Dn(te(_y),s)||n(s)}}),XW=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new Mo(e,"ui-settings"):null,r="contents-view";Fc.set(await n?.get(r)??{}),Fc.subscribe(i=>{(async()=>{try{Dn(i,await n?.get(r))||await n?.set(r,i)}catch{}})()}),di.subscribe(i=>{const{name:s}=te(zn)??{},o=te(Fc)?.[s??""]??{};s&&!Dn(i,o)&&Fc.update(a=>({...a,[s]:i}))})};Pn.subscribe(t=>{t&&!te(Fc)&&XW(t)}),nl.subscribe(t=>{Oc.set([]),te(St).devModeEnabled&&console.info("listedEntries",t)}),zn.subscribe(t=>{t&&te(St).devModeEnabled&&console.info("selectedCollection",t)});var QW=F('<span role="none"><!></span>'),e7=F("<!> <!> <!>",1);function t7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(nl,"$listedEntries",n),s=()=>z(Oc,"$selectedEntries",n),o=c=>{Oc.update(u=>{const d=u.indexOf(e.entry);return c&&d===-1&&u.push(e.entry),!c&&d>-1&&u.splice(d,1),u})},a=x(()=>i().indexOf(e.entry));au(t,{get"aria-rowindex"(){return l(a)},onChange:c=>{o(c.detail.selected)},onclick:()=>{jn(`/collections/${e.collection.name}/entries/${e.entry.subPath}`)},children:(c,u)=>{var d=e7(),h=M(d);si(h,{class:"checkbox",children:(m,b)=>{const _=x(()=>s().includes(e.entry));ou(m,{role:"none",tabindex:"-1",get checked(){return l(_)},onChange:({detail:{checked:v}})=>{o(v)}})},$$slots:{default:!0}});var f=D(h,2);{var p=m=>{si(m,{class:"image",children:(b,_)=>{var v=V(),y=M(v);lr(y,()=>AA(e.collection,e.entry),null,(w,k)=>{var S=V(),C=M(S);{var E=A=>{const O=x(()=>e.viewType==="list"?"icon":"tile");uy(A,{get src(){return l(k)},get variant(){return l(O)},cover:!0})};U(C,A=>{l(k)&&A(E)})}T(w,S)}),T(b,v)},$$slots:{default:!0}})};U(f,m=>{e.collection._thumbnailFieldNames.length&&m(p)})}var g=D(f,2);si(g,{class:"title",children:(m,b)=>{var _=QW(),v=R(_);ur(v,()=>Ho(e.collection,e.entry,{useTemplate:!0,allowMarkdown:!0})),T(m,_)},$$slots:{default:!0}}),T(c,d)},$$slots:{default:!0}}),oe(),r()}var n7=F('<span role="none"> </span>'),r7=F('<span role="none"> </span> <!>',1),i7=F('<span role="none"> </span>');function s7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(di,"$currentView",n),o=()=>z(_y,"$entryGroups",n),a=()=>z(le,"$_",n),c=()=>z(nl,"$listedEntries",n),u=x(i),d=x(()=>s().type),h=x(()=>o().map(({entries:p})=>p).flat(1)),f=x(()=>l(u)?.files?a()("file_list"):a()("entry_list"));dy(t,{get"aria-label"(){return l(f)},children:(p,g)=>{var m=V(),b=M(m);{var _=y=>{var w=V(),k=M(w);{var S=E=>{const A=x(()=>{const{defaultLocale:$}=l(u)._i18n;return{defaultLocale:$}}),O=x(()=>a()("entries"));Dd(E,{get viewType(){return l(d)},id:"entry-list",get"aria-label"(){return l(O)},get"aria-rowcount"(){return c().length},children:($,N)=>{var I=V(),j=M(I);dt(j,1,o,({name:q,entries:B})=>q,(q,B)=>{let W=()=>l(B).name,G=()=>l(B).entries;const J=x(()=>W()!=="*"?W():void 0);kx(q,{get label(){return l(J)},children:(ne,K)=>{const Y=x(()=>G().filter(({locales:re})=>!!(re[l(A).defaultLocale]??Object.values(re)[0])?.content));tl(ne,{get items(){return l(Y)},itemKey:"id",renderItem:(ce,he=Fe)=>{t7(ce,{get collection(){return l(u)},get entry(){return he()},get viewType(){return l(d)}})},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}),T($,I)},$$slots:{default:!0}})},C=E=>{var A=V(),O=M(A);{var $=I=>{qr(I,{children:(j,q)=>{var B=n7(),W=R(B);H(G=>Z(W,G),[()=>a()("no_entries_found")]),T(j,B)},$$slots:{default:!0}})},N=I=>{qr(I,{children:(j,q)=>{var B=r7(),W=M(B),G=R(W),J=D(W,2);const ne=x(()=>!l(u).create),K=x(()=>a()("create_new_entry"));Xe(J,{variant:"primary",get disabled(){return l(ne)},get label(){return l(K)},onclick:()=>{jn(`/collections/${l(u).name}/new`)},startIcon:re=>{nt(re,{name:"edit"})},$$slots:{startIcon:!0}}),H(Y=>Z(G,Y),[()=>a()("no_entries_created")]),T(j,B)},$$slots:{default:!0}})};U(O,I=>{c().length?I($):I(N,!1)},!0)}T(E,A)};U(k,E=>{l(h).length?E(S):E(C,!1)})}T(y,w)},v=y=>{qr(y,{children:(w,k)=>{var S=i7(),C=R(S);H(E=>Z(C,E),[()=>a()("collection_not_found")]),T(w,S)},$$slots:{default:!0}})};U(b,y=>{l(u)?y(_):y(v,!1)})}T(p,m)},$$slots:{default:!0}}),oe(),r()}var o7=F('<span role="none"> </span>');function a7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(zn,"$selectedCollection",n),o=x(()=>i()("file_list"));dy(t,{get"aria-label"(){return l(o)},children:(a,c)=>{var u=V(),d=M(u);{var h=p=>{const g=x(()=>i()("files"));Dd(p,{viewType:"list",get"aria-label"(){return l(g)},get"aria-rowcount"(){return s().files.length},children:(m,b)=>{tl(m,{get items(){return s().files},itemKey:"name",renderItem:(v,y)=>{let w=()=>y?.().name,k=()=>y?.().label;au(v,{onclick:()=>{jn(`/collections/${s().name}/entries/${w()}`)},children:(S,C)=>{si(S,{class:"title",children:(E,A)=>{var O=We();H(()=>Z(O,k()||w())),T(E,O)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{renderItem:!0}})},$$slots:{default:!0}})},f=p=>{qr(p,{children:(g,m)=>{var b=o7(),_=R(b);H(v=>Z(_,v),[()=>i()("no_files_in_collection")]),T(g,b)},$$slots:{default:!0}})};U(d,p=>{s()?.files?.length?p(h):p(f,!1)})}T(a,u)},$$slots:{default:!0}}),oe(),r()}var l7=F('<span class="count"> </span>'),c7=F('<div role="none" class="primary-sidebar"><!></div>');function u7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Cn,"$appLocale",n),s=()=>z(_t,"$siteConfig",n),o=()=>z(le,"$_",n),a=()=>z(zn,"$selectedCollection",n),c=()=>z(ei,"$allEntries",n),u=x(()=>Intl.NumberFormat(i()??void 0)),d=x(()=>s()?.collections.filter(({hide:g})=>!g)??[]);var h=c7(),f=R(h);const p=x(()=>o()("collections"));lu(f,{get"aria-label"(){return l(p)},"aria-controls":"collection-container",children:(g,m)=>{var b=V(),_=M(b);dt(_,17,()=>l(d),({name:v,label:y,icon:w,files:k,divider:S=!1})=>v,(v,y)=>{let w=()=>l(y).name,k=()=>l(y).label,S=()=>l(y).icon,C=()=>l(y).files,E=Ge(()=>tt(l(y).divider,!1));var A=V(),O=M(A);{var $=I=>{Sr(I,{})},N=I=>{const j=x(()=>k()||w()),q=x(()=>a()?.name===w());fr(I,{get label(){return l(j)},get selected(){return l(q)},onSelect:()=>{jn(`/collections/${w()}`)},startIcon:G=>{const J=x(()=>S()||"edit_note");nt(G,{get name(){return l(J)}})},endIcon:G=>{var J=V(),ne=M(J);hs(ne,c,K=>{var Y=V(),re=M(Y);lr(re,()=>dn(0),null,ce=>{var he=l7();const Q=x(()=>(C()??Wo(w())).length);var X=R(he);H((de,_e)=>{Se(he,"aria-label",`(${de??""})`),Z(X,_e)},[()=>o()(l(Q)>1?"many_entries":l(Q)===1?"one_entry":"no_entries",{values:{count:l(Q)}}),()=>l(u).format(l(Q))]),T(ce,he)}),T(K,Y)}),T(G,J)},$$slots:{startIcon:!0,endIcon:!0}})};U(O,I=>{l(E)?I($):I(N,!1)})}T(v,A)}),T(g,b)},$$slots:{default:!0}}),T(t,h),oe(),r()}function d7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Oc,"$selectedEntries",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(le,"$_",n),a=()=>z(nl,"$listedEntries",n);let c=P(e,"open",15,!1);const u=x(()=>{if(i().length&&s()?._assetFolder?.entryRelative){const f=s().name;return i().map(p=>PA({entry:p,collectionName:f,relative:!0})).flat(1)}return[]}),d=x(()=>i().length===1?o()("delete_entry"):o()("delete_entries")),h=x(()=>o()("delete"));kl(t,{get title(){return l(d)},get okLabel(){return l(h)},onOk:()=>{TC(i().map(({id:f})=>f),l(u).map(({path:f})=>f))},get open(){return c()},set open(f){c(f)},children:(f,p)=>{var g=V(),m=M(g);{var b=v=>{var y=We();H(w=>Z(y,w),[()=>o()(l(u).length?"confirm_deleting_selected_entry_with_assets":"confirm_deleting_selected_entry")]),T(v,y)},_=v=>{var y=V(),w=M(y);{var k=C=>{var E=We();H(A=>Z(E,A),[()=>o()(l(u).length?"confirm_deleting_all_entries_with_assets":"confirm_deleting_all_entries")]),T(C,E)},S=C=>{var E=We();H(A=>Z(E,A),[()=>o()(l(u).length?"confirm_deleting_selected_entries_with_assets":"confirm_deleting_selected_entries",{values:{count:i().length}})]),T(C,E)};U(w,C=>{i().length===a().length?C(k):C(S,!1)},!0)}T(v,y)};U(m,v=>{i().length===1?v(b):v(_,!1)})}T(f,g)},$$slots:{default:!0}}),oe(),r()}var f7=F("<!> <!>",1),h7=F('<h2 role="none"> </h2> <div role="none" class="description svelte-1koahme"><!></div> <!> <!>',1),p7=F("<!> <!>",1);const g7={hash:"svelte-1koahme",code:".description.svelte-1koahme {flex:auto;font-size:var(--sui-font-size-small);opacity:0.8;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function m7(t,e){se(e,!0),Te(t,g7);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(le,"$_",n),o=()=>z(Oc,"$selectedEntries",n);let a=ae(!1);const c=w=>oi.sanitize(At.parseInline(w),{ALLOWED_TAGS:["strong","em","del","code","a"],ALLOWED_ATTR:["href"]}),u=x(()=>i()?.name),d=x(()=>i()?.label),h=x(()=>i()?.description),f=x(()=>i()?.files),p=x(()=>i()?.create??!1),g=x(()=>i()?.delete??!0),m=x(()=>l(d)||l(u)||"");var b=p7(),_=M(b);{var v=w=>{const k=x(()=>s()("collection"));Ks(w,{variant:"primary",get"aria-label"(){return l(k)},children:(S,C)=>{var E=h7(),A=M(E),O=R(A),$=D(A,2),N=R($);ur(N,()=>c(l(h)||""));var I=D($,2);Wr(I,{flex:!0});var j=D(I,2);{var q=B=>{var W=f7(),G=M(W);const J=x(()=>s()("delete")),ne=x(()=>o().length===1?s()("delete_selected_entry"):s()("delete_selected_entries")),K=x(()=>!o().length||!l(g));Xe(G,{variant:"ghost",get label(){return l(J)},get"aria-label"(){return l(ne)},get disabled(){return l(K)},onclick:()=>{L(a,!0)}});var Y=D(G,2);const re=x(()=>!l(p)),ce=x(()=>s()("create")),he=x(()=>s()("create_new_entry"));Xe(Y,{variant:"primary",get disabled(){return l(re)},get label(){return l(ce)},get"aria-label"(){return l(he)},keyShortcuts:"Accel+E",onclick:()=>{jn(`/collections/${l(u)}/new`)},startIcon:X=>{nt(X,{name:"edit"})},$$slots:{startIcon:!0}}),T(B,W)};U(j,B=>{l(f)||B(q)})}H(()=>Z(O,l(m))),T(S,E)},$$slots:{default:!0}})};U(_,w=>{i()&&w(v)})}var y=D(_,2);d7(y,{get open(){return l(a)},set open(w){L(a,ie(w))}}),T(t,b),oe(),r()}function v7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(di,"$currentView",n),o=()=>z(le,"$_",n),a=()=>z(Qt,"$allAssets",n),c=x(()=>i()?._assetFolder?.internalPath),u=x(()=>i()?._assetFolder?.entryRelative),d=x(()=>!!l(u));var h=V(),f=M(h);{var p=g=>{const m=x(()=>!s().showMedia),b=x(()=>o()("collection_assets"));mr(g,{id:"collection-assets",class:"secondary-sidebar",get hidden(){return l(m)},get"aria-label"(){return l(b)},children:(_,v)=>{Rd(_,{get disabled(){return l(d)},multiple:!0,onSelect:({files:y})=>{ot(Ps,{folder:l(c),files:y})},children:(y,w)=>{const k=x(()=>a().filter(({folder:S})=>l(c)===S));uA(y,{get assets(){return l(k)},onSelect:({asset:S})=>{jn(`/assets/${S.path}`)}})},$$slots:{default:!0}})},$$slots:{default:!0}})};U(f,g=>{l(c)&&g(p)})}T(t,h),oe(),r()}var b7=F("<!> <!>",1);function _7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(e.currentView,"$currentView",n);let o=P(e,"label",3,""),a=P(e,"disabled",3,!1),c=P(e,"noneLabel",3,""),u=P(e,"groups",19,()=>[]);const d=x(()=>o()||i()("group"));kr(t,{variant:"ghost",get label(){return l(d)},get disabled(){return a()},popupPosition:"bottom-right",popup:f=>{const p=x(()=>i()("grouping_options"));hr(f,{get"aria-label"(){return l(p)},get"aria-controls"(){return e["aria-controls"]},children:(g,m)=>{var b=b7(),_=M(b);const v=x(()=>c()||i()("sort_keys.none")),y=x(()=>!s().group);cu(_,{get label(){return l(v)},get checked(){return l(y)},onSelect:()=>{e.currentView.update(k=>({...k,group:void 0}))}});var w=D(_,2);dt(w,17,u,cr,(k,S)=>{let C=()=>l(S).label,E=()=>l(S).field,A=()=>l(S).pattern;const O=x(()=>s().group?.field===E()&&s().group.pattern===A());cu(k,{get label(){return C()},get checked(){return l(O)},onSelect:()=>{e.currentView.update($=>({...$,group:{field:E(),pattern:A()}}))}})}),T(g,b)},$$slots:{default:!0}})},$$slots:{popup:!0}}),oe(),r()}var y7=F("<!> <!> <!> <!> <!> <!> <!> <!>",1);function w7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(nl,"$listedEntries",n),o=()=>z(le,"$_",n),a=()=>z(_y,"$entryGroups",n),c=()=>z(ZW,"$sortFields",n),u=()=>z(di,"$currentView",n),d=x(()=>i()?._type==="entry"?i():void 0),h=x(()=>l(d)?.name),f=x(()=>l(d)?._thumbnailFieldNames??[]),p=x(()=>!!s().length),g=x(()=>s().length>1);var m=V(),b=M(m);{var _=v=>{const y=x(()=>o()("entry_list"));Ks(v,{variant:"secondary",get"aria-label"(){return l(y)},children:(w,k)=>{var S=y7(),C=M(S);const E=x(()=>a().map(({entries:re})=>re).flat(1));GC(C,{get allItems(){return l(E)},selectedItems:Oc});var A=D(C,2);Wr(A,{flex:!0});var O=D(A,2);const $=x(()=>!l(g)||!c().length);KC(O,{get disabled(){return l($)},currentView:di,get fields(){return c()},get collectionName(){return l(h)},"aria-controls":"entry-list"});var N=D(O,2);{var I=re=>{const ce=x(()=>!l(g));WC(re,{get disabled(){return l(ce)},currentView:di,get filters(){return l(d).view_filters},multiple:!0,"aria-controls":"entry-list"})};U(N,re=>{l(d).view_filters?.length&&re(I)})}var j=D(N,2);{var q=re=>{const ce=x(()=>!l(g));_7(re,{get disabled(){return l(ce)},currentView:di,get groups(){return l(d).view_groups},"aria-controls":"entry-list"})};U(j,re=>{l(d).view_groups?.length&&re(q)})}var B=D(j,2);const W=x(()=>!l(p)||!l(f).length);fy(B,{get disabled(){return l(W)},currentView:di,"aria-controls":"entry-list"});var G=D(B,2);Sr(G,{orientation:"vertical"});var J=D(G,2);const ne=x(()=>!l(p)||!l(d)._assetFolder),K=x(()=>!!u().showMedia),Y=x(()=>o()(u().showMedia?"hide_assets":"show_assets"));Xe(J,{variant:"ghost",iconic:!0,get disabled(){return l(ne)},get pressed(){return l(K)},"aria-controls":"collection-assets",get"aria-expanded"(){return u().showMedia},get"aria-label"(){return l(Y)},onclick:()=>{di.update(ce=>({...ce,showMedia:!u().showMedia}))},startIcon:ce=>{nt(ce,{name:"photo_library"})},$$slots:{startIcon:!0}}),T(w,S)},$$slots:{default:!0}})};U(b,v=>{l(d)&&v(_)})}T(t,m),oe(),r()}var x7=F("<!> <!> <!> <!>",1);function k7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(le,"$_",n),o=()=>z(nl,"$listedEntries",n),a=()=>z($d,"$contentUpdatesToast",n),c=/^\/collections\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?$/,u=x(()=>i()?.files?a7:s7),d=()=>{const{path:_,params:v}=Ld(),y=_.match(c);if(!y?.groups)return;const{_collectionName:w,routeType:k,subPath:S}=y.groups,C=w?Ni(w):void 0;if(!C||C.hide?ot(zn,void 0):i()?.name!==C.name&&ot(zn,C),!C||!i()){ot($s,s()("collection_not_found"));return}const{name:E,label:A,create:O,files:$}=i(),N=A||E,I=$?i()._fileMap:void 0;if(!k){const j=o().length;ot($s,s()(j>1?"viewing_x_collection_many_entries":j===1?"viewing_x_collection_one_entry":"viewing_x_collection_no_entries",{values:{collection:N,count:j}}));return}if(ot(Ya,!0),I){if(k==="entries"&&S){const j=E_(E,S),q=I[S];Nd(j?{collection:C,collectionFile:q,originalEntry:j}:{collection:C,collectionFile:q,originalEntry:{slug:q.name,locales:Object.fromEntries(q._i18n.initialLocales.map(B=>[B,{}]))}}),ot($s,s()("editing_x_collection_file",{values:{collection:N,file:q.label||q.name}}))}}else if(k==="new"&&!S&&O&&(Nd({collection:C,dynamicValues:v}),ot($s,s()("creating_x_collection_entry",{values:{collection:N}}))),k==="entries"&&S){const j=o().find(q=>q.subPath===S);j&&(Nd({collection:C,originalEntry:j}),ot($s,s()("editing_x_collection_entry",{values:{collection:N,entry:Ho(i(),j)}})))}};on(()=>{d()});var h=x7();vi("hashchange",al,()=>{d()});var f=M(h);const p=x(()=>s()("content_library"));Md(f,{class:"content",get"aria-label"(){return l(p)},primarySidebar:y=>{u7(y,{})},main:y=>{const w=x(()=>s()("x_collection",{values:{collection:i()?.label||i()?.name}})),k=x(()=>i()?.description);mr(y,{id:"collection-container",class:"main",get"aria-label"(){return l(w)},get"aria-description"(){return l(k)},children:(S,C)=>{YC(S,{primaryToolbar:N=>{m7(N,{})},secondaryToolbar:N=>{var I=V(),j=M(I);{var q=B=>{w7(B,{})};U(j,B=>{i()?._type==="entry"&&o().length&&B(q)})}T(N,I)},mainContent:N=>{var I=V(),j=M(I);bi(j,()=>l(u),(q,B)=>{B(q,{})}),T(N,I)},secondarySidebar:N=>{v7(N,{})},$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})},$$slots:{default:!0}})},$$slots:{primarySidebar:!0,main:!0}});var g=D(f,2);HW(g,{});var m=D(g,2);Hn(m,{get show(){return a().saved},set show(_){Ct($d,Ee(a).saved=_,Ee(a))},children:(_,v)=>{qn(_,{status:"success",children:(y,w)=>{var k=We();H(S=>Z(k,S),[()=>s()(a().published?"entry_saved_and_published":"entry_saved")]),T(y,k)},$$slots:{default:!0}})},$$slots:{default:!0}});var b=D(m,2);Hn(b,{get show(){return a().deleted},set show(_){Ct($d,Ee(a).deleted=_,Ee(a))},children:(_,v)=>{qn(_,{status:"success",children:(y,w)=>{var k=We();H(S=>Z(k,S),[()=>s()(a().count===1?"entry_deleted":"entries_deleted",{values:{count:a().count}})]),T(y,k)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,h),oe(),r()}function S7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ng,"$translator",n),s=()=>z(Ya,"$showContentOverlay",n),o=()=>z(Od,"$translatorApiKeyDialogState",n),a=()=>z(le,"$_",n),c=()=>z(St,"$prefs",n),u=x(()=>i().serviceId),d=x(()=>i().serviceLabel),h=x(()=>i().developerURL),f=x(()=>i().apiKeyURL),p=x(()=>i().apiKeyPattern);Be(()=>{!s()&&o().show&&(Ct(Od,Ee(o).show=!1,Ee(o)),o().resolve?.())});const g=x(()=>a()(o().multiple?"translate_fields":"translate_field")),m=x(()=>({spellcheck:!1,"aria-label":a()("api_key")}));b$(t,{get title(){return l(g)},showOk:!1,get textboxAttrs(){return l(m)},oninput:b=>{const _=b.target.value.trim();l(p)?.test(_)&&(Ct(St,Ee(c).apiKeys??={},Ee(c)),Ct(St,Ee(c).apiKeys[l(u)]=_,Ee(c)),Ct(Od,Ee(o).show=!1,Ee(o)),o().resolve?.(_))},onCancel:()=>{o().resolve?.()},get open(){return o().show},set open(b){Ct(Od,Ee(o).show=b,Ee(o))},children:(b,_)=>{var v=V(),y=M(v);ur(y,()=>oi.sanitize(a()("prefs.languages.translator.description",{values:{service:l(d),homeHref:`href="${l(h)}"`,apiKeyHref:`href="${l(f)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),T(b,v)},$$slots:{default:!0}}),oe(),r()}function E7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(M_,"$entryParseErrors",n),s=()=>z(le,"$_",n);let o=ae(!!i().length);Hn(t,{get show(){return l(o)},set show(a){L(o,ie(a))},children:(a,c)=>{qn(a,{status:"error",children:(u,d)=>{var h=We();H(f=>Z(h,f),[()=>s()(i().length===1?"entry_parse_error":"entry_parse_errors")]),T(u,h)},$$slots:{default:!0}})},$$slots:{default:!0}}),oe(),r()}var T7=F('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>');function C7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(St,"$prefs",n),s=()=>z(le,"$_",n);P(e,"onChange",3,void 0);let o=ae(!0);Be(()=>{L(o,ie(i().underlineLinks??!0))}),Be(()=>{i().underlineLinks!==l(o)&&Ct(St,Ee(i).underlineLinks=l(o),Ee(i))}),Sl(t,{id:"prefs-tab-accessibility",children:(a,c)=>{var u=T7(),d=R(u),h=R(d),f=D(d,2),p=R(f),g=D(f,2),m=R(g);const b=x(()=>s()("prefs.accessibility.underline_links.switch_label"));du(m,{get label(){return l(b)},get checked(){return l(o)},set checked(_){L(o,ie(_))}}),H((_,v)=>{Z(h,_),Z(p,v)},[()=>s()("prefs.accessibility.underline_links.title"),()=>s()("prefs.accessibility.underline_links.description")]),T(a,u)},$$slots:{default:!0}}),oe(),r()}var A7=F('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>'),P7=F('<!> <section><h4> </h4> <p> </p> <div role="none"><!></div></section>',1);function O7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(St,"$prefs",n),o=()=>z(le,"$_",n);let a=P(e,"onChange",3,void 0);const c=x(()=>i()?.backend.automatic_deployments);let u=ae(!1);Be(()=>{L(u,ie(s().devModeEnabled??!1))}),Be(()=>{s().devModeEnabled!==l(u)&&Ct(St,Ee(s).devModeEnabled=l(u),Ee(s))}),Sl(t,{id:"prefs-tab-advanced",children:(d,h)=>{var f=P7(),p=M(f);{var g=C=>{var E=A7(),A=R(E),O=R(A),$=D(A,2),N=R($),I=D($,2),j=R(I);const q=x(()=>o()("prefs.advanced.deploy_hook.field_label"));An(j,{flex:!0,get label(){return l(q)},onchange:()=>{a()?.({message:o()(s().deployHookURL?"prefs.advanced.deploy_hook.url_saved":"prefs.advanced.deploy_hook.url_removed")})},get value(){return s().deployHookURL},set value(B){Ct(St,Ee(s).deployHookURL=B,Ee(s))}}),H((B,W)=>{Z(O,B),Z(N,W)},[()=>o()("prefs.advanced.deploy_hook.title"),()=>o()("prefs.advanced.deploy_hook.description")]),T(C,E)};U(p,C=>{typeof l(c)=="boolean"&&C(g)})}var m=D(p,2),b=R(m),_=R(b),v=D(b,2),y=R(v),w=D(v,2),k=R(w);const S=x(()=>o()("prefs.advanced.developer_mode.switch_label"));du(k,{get label(){return l(S)},get checked(){return l(u)},set checked(C){L(u,ie(C))}}),H((C,E)=>{Z(_,C),Z(y,E)},[()=>o()("prefs.advanced.developer_mode.title"),()=>o()("prefs.advanced.developer_mode.description")]),T(d,f)},$$slots:{default:!0}}),oe(),r()}var L7=F('<section><h4> </h4> <div role="none"><!></div></section>');function $7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(St,"$prefs",n);P(e,"onChange",3,void 0),Sl(t,{id:"prefs-tab-appearance",children:(o,a)=>{var c=L7(),u=R(c),d=R(u),h=D(u,2),f=R(h);const p=x(()=>i()("prefs.appearance.select_theme"));Tf(f,{get"aria-label"(){return l(p)},onChange:g=>{ot(St,{...s(),theme:g.detail.value})},children:(g,m)=>{var b=V(),_=M(b);dt(_,16,()=>["auto","dark","light"],cr,(v,y)=>{const w=x(()=>i()(`prefs.theme.${y}`)),k=x(()=>!s().theme&&y==="auto"||s().theme===y);su(v,{variant:"tertiary",get label(){return l(w)},get value(){return y},get selected(){return l(k)}})}),T(g,b)},$$slots:{default:!0}}),H(g=>Z(d,g),[()=>i()("prefs.appearance.theme")]),T(o,c)},$$slots:{default:!0}}),oe(),r()}var N7=F('<section><h4> </h4> <div role="none"><!></div></section>');function I7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(St,"$prefs",n),s=()=>z(le,"$_",n);P(e,"onChange",3,void 0);let o=ae(!0);Be(()=>{L(o,ie(i().closeOnSave??!0))}),Be(()=>{i().closeOnSave!==l(o)&&Ct(St,Ee(i).closeOnSave=l(o),Ee(i))}),Sl(t,{id:"prefs-tab-contents",children:(a,c)=>{var u=N7(),d=R(u),h=R(d),f=D(d,2),p=R(f);const g=x(()=>s()("prefs.contents.editor.close_on_save.switch_label"));du(p,{get label(){return l(g)},get checked(){return l(o)},set checked(m){L(o,ie(m))}}),H(m=>Z(h,m),[()=>s()("prefs.contents.editor.title")]),T(a,u)},$$slots:{default:!0}}),oe(),r()}var R7=F('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>'),D7=F('<section><h4> </h4> <div role="none"><!></div></section> <!>',1);function M7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(Cn,"$appLocale",n),o=()=>z(St,"$prefs",n),a=()=>z(cx,"$appLocales",n),c=()=>z(_t,"$siteConfig",n);let u=P(e,"onChange",3,void 0);Sl(t,{id:"prefs-tab-languages",children:(d,h)=>{var f=D7(),p=M(f),g=R(p),m=R(g),b=D(g,2),_=R(b);hs(_,s,w=>{const k=x(()=>i()("prefs.languages.ui_language.select_language")),S=x(()=>s()??void 0);uu(w,{get"aria-label"(){return l(k)},get value(){return l(S)},onChange:C=>{ot(St,{...o(),locale:C.detail.value})},children:(C,E)=>{var A=V(),O=M(A);dt(O,1,a,cr,($,N)=>{const I=x(()=>Zs(l(N))),j=x(()=>l(N)===s());fr($,{get label(){return l(I)},get value(){return l(N)},get selected(){return l(j)}})}),T(C,A)},$$slots:{default:!0}})});var v=D(p,2);{var y=w=>{var k=V(),S=M(k);dt(S,17,()=>Object.entries(eV),([C,E])=>C,(C,E)=>{let A=()=>l(E)[0],O=()=>l(E)[1];var $=R7();const N=x(()=>{const{serviceLabel:ne,developerURL:K,apiKeyURL:Y}=O();return{serviceLabel:ne,developerURL:K,apiKeyURL:Y}});var I=R($),j=R(I),q=D(I,2),B=R(q);ur(B,()=>oi.sanitize(i()("prefs.languages.translator.description",{values:{service:l(N).serviceLabel,homeHref:`href="${l(N).developerURL}"`,apiKeyHref:`href="${l(N).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var W=D(q,2),G=R(W);{var J=ne=>{const K=x(()=>i()("prefs.languages.translator.field_label",{values:{service:l(N).serviceLabel}}));An(ne,{flex:!0,spellcheck:"false",get"aria-label"(){return l(K)},onchange:()=>{u()?.({message:i()(o().apiKeys?.[A()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return o().apiKeys[A()]},set value(Y){Ct(St,Ee(o).apiKeys[A()]=Y,Ee(o))}})};U(G,ne=>{o().apiKeys&&ne(J)})}H(ne=>Z(j,ne),[()=>i()("prefs.languages.translator.title",{values:{service:l(N).serviceLabel}})]),T(C,$)}),T(w,k)};U(v,w=>{(c()?.i18n?.locales?.length??0)>1&&w(y)})}H(w=>Z(m,w),[()=>i()("prefs.languages.ui_language.title")]),T(d,f)},$$slots:{default:!0}}),oe(),r()}var F7=F('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>');function z7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(St,"$prefs",n);let o=P(e,"onChange",3,void 0);Sl(t,{id:"prefs-tab-media",children:(a,c)=>{var u=V(),d=M(u);dt(d,17,()=>Object.entries(zd),([h,f])=>h,(h,f)=>{let p=()=>l(f)[0],g=()=>l(f)[1];var m=F7();const b=x(()=>{const{serviceLabel:E,developerURL:A,apiKeyURL:O}=g();return{serviceLabel:E,developerURL:A,apiKeyURL:O}});var _=R(m),v=R(_),y=D(_,2),w=R(y);ur(w,()=>oi.sanitize(i()("prefs.media.stock_photos.description",{values:{service:l(b).serviceLabel,homeHref:`href="${l(b).developerURL}"`,apiKeyHref:`href="${l(b).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var k=D(y,2),S=R(k);{var C=E=>{const A=x(()=>i()("prefs.media.stock_photos.field_label",{values:{service:l(b).serviceLabel}}));An(E,{flex:!0,spellcheck:"false",get"aria-label"(){return l(A)},onchange:()=>{o()?.({message:i()(s().apiKeys?.[p()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return s().apiKeys[p()]},set value(O){Ct(St,Ee(s).apiKeys[p()]=O,Ee(s))}})};U(S,E=>{s().apiKeys&&E(C)})}H(E=>Z(v,E),[()=>i()("prefs.media.stock_photos.title",{values:{service:l(b).serviceLabel}})]),T(h,m)}),T(a,u)},$$slots:{default:!0}}),oe(),r()}var j7=F('<div role="none" class="wrapper svelte-z6esgm"><!> <!></div>'),U7=F("<!> <!>",1);const B7={hash:"svelte-z6esgm",code:".wrapper.svelte-z6esgm {display:flex;}.wrapper.svelte-z6esgm .tab-list {flex:none;}.wrapper.svelte-z6esgm .tab-panel {flex:auto;border-width:0;}.wrapper.svelte-z6esgm .tab-panel section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-z6esgm .tab-panel p {margin-top:0;}.wrapper.svelte-z6esgm .tab-panel h4 {font-size:inherit;}.wrapper.svelte-z6esgm .tab-panel h4 ~ div {margin:8px 0 0;}.wrapper.svelte-z6esgm .tab-panel h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function q7(t,e){se(e,!0),Te(t,B7);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"open",15,!1),o=P(e,"onClose",3,void 0),a=ae("appearance"),c=ae(""),u=ae(!1);const d=[{key:"appearance",icon:"palette",component:$7},{key:"languages",icon:"language",component:M7},{key:"contents",icon:"library_books",component:I7},{key:"media",icon:"photo_library",component:z7},{key:"accessibility",icon:"accessibility_new",component:C7},{key:"advanced",icon:"build",component:O7}];var h=U7(),f=M(h);const p=x(()=>i()("settings"));ps(f,{get title(){return l(p)},showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{o()?.()},get open(){return s()},set open(m){s(m)},children:(m,b)=>{var _=j7(),v=R(_);const y=x(()=>i()("categories"));$N(v,{orientation:"vertical",get"aria-label"(){return l(y)},children:(k,S)=>{var C=V(),E=M(C);dt(E,17,()=>d,({key:A,icon:O})=>A,(A,O)=>{let $=()=>l(O).key,N=()=>l(O).icon;const I=x(()=>i()(`prefs.${$()}.title`)),j=x(()=>$()===l(a));RN(A,{get label(){return l(I)},get selected(){return l(j)},get"aria-controls"(){return`prefs-tab-${$()??""}`},onSelect:()=>{L(a,ie($()))},startIcon:B=>{nt(B,{get name(){return N()}})},$$slots:{startIcon:!0}})}),T(k,C)},$$slots:{default:!0}});var w=D(v,2);dt(w,17,()=>d,({key:k,component:S})=>k,(k,S)=>{let C=()=>l(S).component;var E=V(),A=M(E);bi(A,C,(O,$)=>{$(O,{onChange:({message:N})=>{L(c,ie(N)),L(u,!0)}})}),T(k,E)}),T(m,_)},$$slots:{default:!0}});var g=D(f,2);Hn(g,{get show(){return l(u)},set show(m){L(u,ie(m))},children:(m,b)=>{qn(m,{status:"success",children:(_,v)=>{var y=We();H(()=>Z(y,l(c))),T(_,y)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,h),oe(),r()}var H7=F('<img class="avatar svelte-xssn1c" loading="lazy" alt="">'),V7=F("<!> <!>",1),W7=F("<!> <!> <!> <!> <!> <!> <!> <!>",1),G7=F('<div role="none" class="wrapper svelte-xssn1c"><!></div> <!>',1);const K7={hash:"svelte-xssn1c",code:".wrapper.svelte-xssn1c {display:contents;}.wrapper.svelte-xssn1c button.avatar {border-width:0;background-color:transparent;}.avatar.svelte-xssn1c {width:32px;height:32px;border-radius:32px;object-fit:cover;}"};function Y7(t,e){se(e,!0),Te(t,K7);const[n,r]=me(),i=()=>z(ui,"$user",n),s=()=>z(Ls,"$backendName",n),o=()=>z(le,"$_",n),a=()=>z(St,"$prefs",n),c=()=>z(Pn,"$backend",n);let u=ae(void 0),d=ae(!1);const h=x(()=>!!i()?.avatarURL),f=x(()=>s()==="local");var p=G7(),g=M(p),m=R(g);const b=x(()=>l(h)?"avatar":""),_=x(()=>o()("show_account_menu"));Tt(kr(m,{variant:"ghost",iconic:!0,get class(){return l(b)},popupPosition:"bottom-right",get"aria-label"(){return l(_)},endIcon:k=>{var S=V(),C=M(S);{var E=O=>{var $=H7();H(()=>Se($,"src",i()?.avatarURL)),T(O,$)},A=O=>{nt(O,{name:"account_circle"})};U(C,O=>{l(h)?O(E):O(A,!1)})}T(k,S)},popup:k=>{const S=x(()=>o()("account"));hr(k,{get"aria-label"(){return l(S)},children:(C,E)=>{var A=W7(),O=M(A);const $=x(()=>l(f)?o()("working_with_local_repo"):o()("signed_in_as_x",{values:{name:i()?.login}}));$t(O,{get label(){return l($)},get disabled(){return l(f)},onclick:()=>{window.open(i()?.profileURL,"_blank")}});var N=D(O,2);Sr(N,{});var I=D(N,2);const j=x(()=>o()("live_site"));$t(I,{get label(){return l(j)},onclick:()=>{xC()}});var q=D(I,2);{var B=re=>{var ce=V7(),he=M(ce);const Q=x(()=>o()("git_repository")),X=x(()=>!c()?.repository?.treeBaseURL);$t(he,{get label(){return l(Q)},get disabled(){return l(X)},onclick:()=>{window.open(c()?.repository?.treeBaseURL)}});var de=D(he,2);const _e=x(()=>o()("site_config"));$t(de,{get label(){return l(_e)},onclick:()=>{jn("/config")}}),T(re,ce)};U(q,re=>{a().devModeEnabled&&re(B)})}var W=D(q,2);Sr(W,{});var G=D(W,2);const J=x(()=>o()("settings"));$t(G,{get label(){return l(J)},onclick:()=>{L(d,!0)}});var ne=D(G,2);Sr(ne,{});var K=D(ne,2);const Y=x(()=>o()("sign_out"));$t(K,{get label(){return l(Y)},onclick:async()=>{window.requestAnimationFrame(()=>{G8()})}}),T(C,A)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}}),k=>L(u,ie(k)),()=>l(u));var v=D(g,2);q7(v,{onClose:()=>{l(u)?.focus()},get open(){return l(d)},set open(y){L(d,ie(y))}}),T(t,p),oe(),r()}var J7=F("<!> <!>",1),Z7=F("<!> <!>",1);function X7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(le,"$_",n),o=x(()=>(i()?.collections??[]).filter(({folder:c,create:u=!1,hide:d=!1,divider:h=!1})=>typeof c=="string"&&u&&!d&&!h)),a=x(()=>s()("create_entry_or_assets"));kr(t,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(a)},endIcon:d=>{nt(d,{name:"add"})},popup:d=>{const h=x(()=>s()("create_entry_or_assets"));hr(d,{get"aria-label"(){return l(h)},children:(f,p)=>{var g=Z7(),m=M(g);{var b=y=>{var w=J7(),k=M(w);dt(k,17,()=>l(o),({name:C,label:E,label_singular:A})=>C,(C,E)=>{let A=()=>l(E).name,O=()=>l(E).label,$=()=>l(E).label_singular;const N=x(()=>$()||O()||A());$t(C,{get label(){return l(N)},onclick:()=>{jn(`/collections/${A()}/new`)}})});var S=D(k,2);Sr(S,{}),T(y,w)};U(m,y=>{l(o).length&&y(b)})}var _=D(m,2);const v=x(()=>s()("assets"));$t(_,{get label(){return l(v)},onclick:async()=>{jn("/assets"),await dn(100),ot(Qa,!0)}}),T(f,g)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}}),oe(),r()}var Q7=F('<kbd class="svelte-h10dbf"> </kbd>'),eG=F("<!> <!>",1),tG=F('<div role="none" class="wrapper svelte-h10dbf"><!></div>');const nG={hash:"svelte-h10dbf",code:".wrapper.svelte-h10dbf {display:contents;}.wrapper.svelte-h10dbf .table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-h10dbf .table-row:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-h10dbf .table-row .feature {flex:auto;}.wrapper.svelte-h10dbf .table-row .keys {display:flex;gap:8px;}kbd.svelte-h10dbf {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 rG(t,e){se(e,!0),Te(t,nG);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"open",15,!1),o=P(e,"onClose",3,void 0);const a=[{feature:"view_content_library",keys:"Alt+1"},{feature:"view_asset_library",keys:"Alt+2"},{feature:"search",keys:"Accel+F"},{feature:"create_entry",keys:"Accel+E"},{feature:"save_entry",keys:"Accel+S"},{feature:"cancel_editing",keys:"Escape"}];let c=ae("Ctrl");on(()=>{(navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"))&&L(c,"⌘")});const u=x(()=>i()("help.keyboard_shortcuts"));ps(t,{get title(){return l(u)},showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{o()?.()},get open(){return s()},set open(d){s(d)},children:(d,h)=>{var f=tG(),p=R(f);const g=x(()=>i()("help.keyboard_shortcuts"));PN(p,{get"aria-label"(){return l(g)},children:(m,b)=>{var _=V(),v=M(_);dt(v,17,()=>a,({feature:y,keys:w})=>w,(y,w)=>{let k=()=>l(w).feature,S=()=>l(w).keys;TN(y,{children:(C,E)=>{var A=eG(),O=M(A);Sx(O,{class:"feature",children:(N,I)=>{var j=We();H(q=>Z(j,q),[()=>i()(`keyboard_shortcuts_.${k()}`)]),T(N,j)},$$slots:{default:!0}});var $=D(O,2);Sx($,{class:"keys",children:(N,I)=>{var j=V(),q=M(j);dt(q,17,()=>S().split("+"),cr,(B,W)=>{var G=Q7(),J=R(G);H(ne=>Z(J,ne),[()=>l(W).replace("Accel",l(c))]),T(B,G)}),T(N,j)},$$slots:{default:!0}}),T(C,A)},$$slots:{default:!0}})}),T(m,_)},$$slots:{default:!0}}),T(d,f)},$$slots:{default:!0}}),oe(),r()}var iG=F('<span class="version svelte-69n4ux"></span>'),sG=F("<!> <!> <!> <!> <!> <!> <!> <!> <!>",1),oG=F('<div role="none" class="wrapper svelte-69n4ux"><!></div> <!>',1);const aG={hash:"svelte-69n4ux",code:".wrapper.svelte-69n4ux {display:contents;}.version.svelte-69n4ux {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 lG(t,e){se(e,!0),Te(t,aG);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(St,"$prefs",n);let o=ae(void 0),a=ae(!1);var c=oG(),u=M(c),d=R(u);const h=x(()=>i()("show_help_menu"));Tt(kr(d,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(h)},endIcon:m=>{nt(m,{name:"help"})},popup:m=>{const b=x(()=>i()("help"));hr(m,{get"aria-label"(){return l(b)},children:(_,v)=>{var y=sG(),w=M(y);{var k=ne=>{const K=x(()=>i()("keyboard_shortcuts"));$t(ne,{get label(){return l(K)},onclick:()=>{L(a,!0)}})};U(w,ne=>{window.matchMedia("(pointer: fine)").matches&&ne(k)})}var S=D(w,2);const C=x(()=>i()("documentation"));$t(S,{get label(){return l(C)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/blob/main/README.md","_blank")}});var E=D(S,2);const A=x(()=>i()("release_notes"));$t(E,{get label(){return l(A)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/releases","_blank")},endIcon:K=>{var Y=V(),re=M(Y);{var ce=he=>{var Q=iG();Q.textContent=`v${ty}`,H(X=>Se(Q,"aria-label",`(${X??""})`),[()=>i()("version_x",{values:{version:ty}})]),T(he,Q)};U(re,he=>{s().devModeEnabled&&he(ce)})}T(K,Y)},$$slots:{endIcon:!0}});var O=D(E,2);Sr(O,{});var $=D(O,2);const N=x(()=>i()("report_issue"));$t($,{get label(){return l(N)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/issues/new?labels=bug","_blank")}});var I=D($,2);const j=x(()=>i()("share_feedback"));$t(I,{get label(){return l(j)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/discussions/new?category=general","_blank")}});var q=D(I,2);const B=x(()=>i()("get_help"));$t(q,{get label(){return l(B)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/discussions/new?category=q-a","_blank")}});var W=D(q,2);Sr(W,{});var G=D(W,2);const J=x(()=>i()("join_discord"));$t(G,{get label(){return l(J)},onclick:()=>{window.open("https://discord.gg/5hwCGqup5b","_blank")}}),T(_,y)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}}),m=>L(o,ie(m)),()=>l(o));var f=D(u,2);rG(f,{onClose:()=>{l(o)?.focus()},get open(){return l(a)},set open(p){L(a,ie(p))}}),T(t,c),oe(),r()}function cG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=x(()=>i()("show_notifications"));Xe(t,{variant:"ghost",iconic:!0,hidden:!0,get"aria-label"(){return l(s)},onclick:()=>{},startIcon:a=>{nt(a,{name:"notifications"})},$$slots:{startIcon:!0}}),oe(),r()}var uG=F('<div role="none" class="wrapper svelte-1wpllk"><!></div>');const dG={hash:"svelte-1wpllk",code:".wrapper.svelte-1wpllk {display:contents;}.wrapper.svelte-1wpllk .sui.select-button-group {gap:4px;}.wrapper.svelte-1wpllk .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}"};function fG(t,e){se(e,!0),Te(t,dG);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(_t,"$siteConfig",n),a=()=>z(Qr,"$selectedAssetFolder",n),c=()=>z(ey,"$selectedPageName",n),u=x(()=>[{key:"collections",label:i()("contents"),icon:"library_books",link:`/collections/${s()?.name??o()?.collections[0].name}`},{key:"assets",label:i()("assets"),icon:"photo_library",link:a()?`/assets/${a().internalPath}`:"/assets"}]);var d=uG(),h=R(d);const f=x(()=>i()("switch_page"));Tf(h,{get"aria-label"(){return l(f)},"aria-controls":"page-container",children:(p,g)=>{var m=V(),b=M(m);dt(b,19,()=>l(u),({key:_,label:v,icon:y,link:w})=>_,(_,v,y)=>{let w=()=>l(v).key,k=()=>l(v).label,S=()=>l(v).icon,C=()=>l(v).link;const E=x(()=>c()===w()),A=x(()=>l(y)+1);su(_,{variant:"ghost",iconic:!0,get selected(){return l(E)},get"aria-label"(){return k()},get keyShortcuts(){return`Alt+${l(A)??""}`},onSelect:()=>{jn(C())},startIcon:$=>{nt($,{get name(){return S()}})},$$slots:{startIcon:!0}})}),T(p,m)},$$slots:{default:!0}}),T(t,d),oe(),r()}var hG=F("<!> <!>",1);function pG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(St,"$prefs",n),o=()=>z(Pn,"$backend",n),a=()=>z(Ls,"$backendName",n),c=()=>z(Jp,"$isLastCommitPublished",n),u=()=>z(le,"$_",n),d=x(()=>i()?.backend.automatic_deployments),h=x(()=>s().deployHookURL),f=x(()=>o()?.triggerDeployment),p=x(()=>a()!=="local"&&typeof l(d)=="boolean"),g=x(()=>(!!l(h)||typeof l(f)=="function")&&!c());let m=ae("info"),b=ae(!1);const _=async()=>{L(m,"info"),L(b,!0);try{const{ok:k,status:S}=l(h)?await fetch(l(h),{method:"POST",mode:"no-cors"}):await l(f)?.()??{};if(!k&&S!==0)throw new Error(`Webhook returned ${S} error`);ot(Jp,!0)}catch(k){L(m,"error"),L(b,!0),console.error(k)}};var v=V(),y=M(v);{var w=k=>{var S=hG(),C=M(S);const E=x(()=>u()("publish_changes")),A=x(()=>!l(g));Xe(C,{variant:"secondary",get label(){return l(E)},get disabled(){return l(A)},onclick:()=>_()});var O=D(C,2);Hn(O,{get show(){return l(b)},set show($){L(b,ie($))},children:($,N)=>{qn($,{get status(){return l(m)},children:(I,j)=>{var q=We();H(B=>Z(q,B),[()=>u()(l(m)==="error"?"publishing_changes_failed":"publishing_changes")]),T(I,q)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(k,S)};U(y,k=>{l(p)&&k(w)})}T(t,v),oe(),r()}var gG=F('<div role="none" class="wrapper svelte-ns8gcu"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></div>');const mG={hash:"svelte-ns8gcu",code:".wrapper.svelte-ns8gcu {display:contents;--sui-textbox-border-width: 0;}"};function vG(t,e){se(e,!0),Te(t,mG);const[n,r]=me(),i=()=>z(Mc,"$searchTerms",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(_t,"$siteConfig",n),a=()=>z(le,"$_",n),c=g=>{const m=!!i(),{path:b}=Ld(),_=b.startsWith("/search/");ot(Mc,g),g?jn(`/search/${g}`,{replaceState:_}):m&&_&&Rc(`/collections/${s()?.name??o()?.collections[0].name}`)};let u=ae(void 0),d=ae(void 0);Be(()=>{l(d)&&i()!==l(d)?.value&&(l(d).value=i())});var h=gG(),f=R(h);const p=x(()=>a()("search_placeholder"));cP(f,()=>({"--sui-textbox-placeholder-text-align":"center"})),Tt(em(f.lastChild,{keyShortcuts:"Accel+F",showInlineLabel:!0,get"aria-label"(){return l(p)},oninput:({target:g})=>{c(g.value.trim())}}),g=>L(d,ie(g)),()=>l(d)),Tt(h,g=>L(u,g),()=>l(u)),T(t,h),oe(),r()}var bG=F('<img loading="lazy" alt="" class="logo svelte-14sy0eb">');const _G={hash:"svelte-14sy0eb",code:"img.svelte-14sy0eb {width:24px;height:24px;object-fit:contain;}"};function yG(t,e){se(e,!0),Te(t,_G);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(le,"$_",n);var o=V(),a=M(o);{var c=u=>{const d=x(()=>s()("visit_live_site"));Xe(u,{variant:"ghost",iconic:!0,get"aria-label"(){return l(d)},onclick:()=>{xC()},children:(h,f)=>{var p=bG();H(()=>Se(p,"src",i().logo_url)),T(h,p)},$$slots:{default:!0}})};U(a,u=>{i()?.logo_url&&u(c)})}T(t,o),oe(),r()}var wG=F('<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>',1),xG=F('<div role="none" class="toolbar-wrapper svelte-ornzx3"><!></div>');const kG={hash:"svelte-ornzx3",code:".toolbar-wrapper.svelte-ornzx3 {display:contents;}.toolbar-wrapper[inert].svelte-ornzx3 {display:none;}.toolbar-wrapper.svelte-ornzx3 > .toolbar .buttons {flex:auto;display:flex;align-items:center;width:50%;}.toolbar-wrapper.svelte-ornzx3 > .toolbar .buttons:last-child {justify-content:flex-end;}.toolbar-wrapper.svelte-ornzx3 > .toolbar .search-bar {flex:none;width:640px;max-width:50%;}"};function SG(t,e){se(e,!0),Te(t,kG);const[n,r]=me(),i=()=>z(wC,"$hasOverlay",n),s=()=>z(le,"$_",n);var o=xG(),a=R(o);const c=x(()=>s()("global"));Ks(a,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var h=wG(),f=M(h),p=R(f);yG(p,{});var g=D(p,2);fG(g,{});var m=D(f,2);vG(m,{});var b=D(m,2),_=R(b);pG(_,{});var v=D(_,2);X7(v,{});var y=D(v,2);cG(y,{});var w=D(y,2);lG(w,{});var k=D(w,2);Y7(k,{}),T(u,h)},$$slots:{default:!0}}),H(()=>o.inert=i()),T(t,o),oe(),r()}var EG=F("<!> <!> <!>",1);function TG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Cn,"$appLocale",n),s=x(()=>e.asset.path),o=x(()=>e.asset.name),a=x(()=>e.asset.folder),c=x(()=>e.asset.kind);au(t,{onclick:()=>{jn(`/assets/${l(s)}`)},children:(u,d)=>{var h=EG(),f=M(h);si(f,{class:"image",children:(m,b)=>{Ns(m,{get kind(){return l(c)},get asset(){return e.asset},variant:"icon",cover:!0})},$$slots:{default:!0}});var p=D(f,2);si(p,{class:"collection",children:(m,b)=>{var _=We();H(v=>Z(_,v),[()=>i()?ly(l(a)):""]),T(m,_)},$$slots:{default:!0}});var g=D(p,2);si(g,{class:"title",children:(m,b)=>{var _=We();H(()=>Z(_,l(o))),T(m,_)},$$slots:{default:!0}}),T(u,h)},$$slots:{default:!0}}),oe(),r()}var CG=F("<!> <!> <!>",1);function AG(t,e){se(e,!0);const n=(a,c)=>{let u=()=>c?.().collection,d=()=>c?.().collectionFile;var h=V();const f=x(()=>{const{defaultLocale:b}=(d()??u())._i18n??Pi;return{defaultLocale:b}}),p=x(()=>{const{content:b}=l(r)[l(f).defaultLocale]??Object.values(l(r))[0]??{};return{content:b}});var g=M(h);{var m=b=>{au(b,{onclick:()=>{jn(`/collections/${u().name}/entries/${d()?.name||l(i)}`)},children:(_,v)=>{var y=CG(),w=M(y);si(w,{class:"image",children:(C,E)=>{var A=V(),O=M(A);{var $=N=>{var I=V(),j=M(I);lr(j,()=>AA(u(),e.entry),null,(q,B)=>{var W=V(),G=M(W);{var J=ne=>{uy(ne,{get src(){return l(B)},variant:"icon",cover:!0})};U(G,ne=>{l(B)&&ne(J)})}T(q,W)}),T(N,I)};U(O,N=>{u()._type==="entry"&&N($)})}T(C,A)},$$slots:{default:!0}});var k=D(w,2);si(k,{class:"collection",children:(C,E)=>{var A=We();H(()=>Z(A,u().label||u().name)),T(C,A)},$$slots:{default:!0}});var S=D(k,2);si(S,{class:"title",children:(C,E)=>{var A=V(),O=M(A);{var $=I=>{var j=We();H(()=>Z(j,d().label||d().name)),T(I,j)},N=I=>{var j=V(),q=M(j);ur(q,()=>Ho(u(),e.entry,{useTemplate:!0,allowMarkdown:!0})),T(I,j)};U(O,I=>{d()?I($):I(N,!1)})}T(C,A)},$$slots:{default:!0}}),T(_,y)},$$slots:{default:!0}})};U(g,b=>{l(p).content&&b(m)})}T(a,h)},r=x(()=>e.entry.locales),i=x(()=>e.entry.subPath);var s=V(),o=M(s);dt(o,17,()=>ao(e.entry),a=>a.name,(a,c)=>{var u=V(),d=M(u);dt(d,17,()=>Vo(l(c),e.entry),h=>h.name,(h,f)=>{n(h,()=>({collection:l(c),collectionFile:l(f)}))},h=>{n(h,()=>({collection:l(c)}))}),T(a,u)}),T(t,s),oe()}var PG=F('<h3 role="none" id="search-results-entries" class="svelte-11iebi8"> </h3> <div role="none" class="svelte-11iebi8"><!></div>',1),OG=F('<h3 role="none" id="search-results-assets" class="svelte-11iebi8"> </h3> <div role="none" class="svelte-11iebi8"><!></div>',1),LG=F('<div role="none" class="wrapper svelte-11iebi8"><header role="none" class="svelte-11iebi8"><h2 role="none" class="svelte-11iebi8"> </h2></header> <div role="none" class="results svelte-11iebi8"><!> <!></div></div>');const $G={hash:"svelte-11iebi8",code:".wrapper.svelte-11iebi8 {display:flex;flex-direction:column;width:100%;}header.svelte-11iebi8 {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}header.svelte-11iebi8 h2:where(.svelte-11iebi8) {font-size:var(--sui-font-size-x-large);}.results.svelte-11iebi8 {flex:auto;display:flex;gap:16px;overflow:hidden;padding:16px;height:100%;}.results.svelte-11iebi8 > .group {flex:auto;display:flex;flex-direction:column;overflow:hidden;width:50%;height:100%;}.results.svelte-11iebi8 h3:where(.svelte-11iebi8) {flex:none;margin:0 0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-large);}.results.svelte-11iebi8 h3:where(.svelte-11iebi8) + div:where(.svelte-11iebi8) {overflow:auto;flex:auto;}"};function NG(t,e){se(e,!0),Te(t,$G);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(Mc,"$searchTerms",n),o=()=>z(lA,"$searchResults",n);var a=LG(),c=R(a),u=R(c),d=R(u),h=D(c,2),f=R(h);mr(f,{"aria-labelledby":"search-results-entries",children:(g,m)=>{var b=PG(),_=M(b),v=R(_),y=D(_,2),w=R(y);{var k=C=>{const E=x(()=>i()("entries"));Dd(C,{viewType:"list",get"aria-label"(){return l(E)},get"aria-rowcount"(){return o().entries.length},children:(A,O)=>{var $=V(),N=M($);hs(N,s,I=>{tl(I,{get items(){return o().entries},itemKey:"id",renderItem:(q,B=Fe)=>{AG(q,{get entry(){return B()}})},$$slots:{renderItem:!0}})}),T(A,$)},$$slots:{default:!0}})},S=C=>{var E=We();H(A=>Z(E,A),[()=>i()("no_entries_found")]),T(C,E)};U(w,C=>{o().entries.length?C(k):C(S,!1)})}H(C=>Z(v,C),[()=>i()("entries")]),T(g,b)},$$slots:{default:!0}});var p=D(f,2);mr(p,{"aria-labelledby":"search-results-assets",children:(g,m)=>{var b=OG(),_=M(b),v=R(_),y=D(_,2),w=R(y);{var k=C=>{const E=x(()=>i()("assets"));Dd(C,{viewType:"list",get"aria-label"(){return l(E)},get"aria-rowcount"(){return o().assets.length},children:(A,O)=>{var $=V(),N=M($);hs(N,s,I=>{tl(I,{get items(){return o().assets},itemKey:"path",renderItem:(q,B=Fe)=>{TG(q,{get asset(){return B()}})},$$slots:{renderItem:!0}})}),T(A,$)},$$slots:{default:!0}})},S=C=>{var E=We();H(A=>Z(E,A),[()=>i()("no_files_found")]),T(C,E)};U(w,C=>{o().assets.length?C(k):C(S,!1)})}H(C=>Z(v,C),[()=>i()("assets")]),T(g,b)},$$slots:{default:!0}}),H(g=>Z(d,g),[()=>i()("search_results_for_x",{values:{terms:s()}})]),T(t,a),oe(),r()}function IG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Mc,"$searchTerms",n),s=()=>z(lA,"$searchResults",n),o=()=>z(le,"$_",n),a=/^\/search\/(?<terms>.+)$/,c=()=>{const{path:d}=Ld(),{terms:h}=d.match(a)?.groups??{};h&&h!==i()&&ot(Mc,h);const{entries:f,assets:p}=s(),g=f.length,m=p.length;ot($s,o()("viewing_search_results",{values:{terms:i(),entries:g>1?o()("many_entries",{values:{count:g}}):g===1?o()("one_entry"):o()("no_entries"),assets:m>1?o()("many_assets",{values:{count:m}}):m===1?o()("one_asset"):o()("no_assets")}}))};on(()=>{c()}),vi("hashchange",al,()=>{c()});const u=x(()=>o()("search_results_for_x",{values:{terms:i()}}));Md(t,{class:"content",get"aria-label"(){return l(u)},main:h=>{NG(h,{})},$$slots:{main:!0}}),oe(),r()}var RG=F('<header role="none" class="svelte-1lr8kgc"><h3 role="none" id="draft-column-title" class="svelte-1lr8kgc"> </h3></header>'),DG=F('<header role="none" class="svelte-1lr8kgc"><h3 role="none" id="review-column-title" class="svelte-1lr8kgc"> </h3></header>'),MG=F('<header role="none" class="svelte-1lr8kgc"><h3 role="none" id="ready-column-title" class="svelte-1lr8kgc"> </h3></header>'),FG=F('<div role="none" class="columns svelte-1lr8kgc"><!> <!> <!></div>');const zG={hash:"svelte-1lr8kgc",code:".columns.svelte-1lr8kgc {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}.columns.svelte-1lr8kgc .column {flex:auto;width:33.3333333333%;background-color:var(--sui-primary-background-color);}.columns.svelte-1lr8kgc header:where(.svelte-1lr8kgc) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}.columns.svelte-1lr8kgc header:where(.svelte-1lr8kgc) h3:where(.svelte-1lr8kgc) {font-size:var(--sui-font-size-x-large);}"};function jG(t,e){se(e,!0),Te(t,zG);const[n,r]=me(),i=()=>z(le,"$_",n),s=x(()=>i()("editorial_workflow"));Md(t,{class:"content",get"aria-label"(){return l(s)},main:a=>{var c=FG(),u=R(c);mr(u,{class:"column","aria-labelledby":"draft-column-title",children:(f,p)=>{var g=RG(),m=R(g),b=R(m);H(_=>Z(b,_),[()=>i()("status.drafts")]),T(f,g)},$$slots:{default:!0}});var d=D(u,2);mr(d,{class:"column","aria-labelledby":"review-column-title",children:(f,p)=>{var g=DG(),m=R(g),b=R(m);H(_=>Z(b,_),[()=>i()("status.in_review")]),T(f,g)},$$slots:{default:!0}});var h=D(d,2);mr(h,{class:"column","aria-labelledby":"ready-column-title",children:(f,p)=>{var g=MG(),m=R(g),b=R(m);H(_=>Z(b,_),[()=>i()("status.ready")]),T(f,g)},$$slots:{default:!0}}),T(a,c)},$$slots:{main:!0}}),oe(),r()}var UG=F("<!> <!> <!> <!> <!> <!>",1);function BG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ey,"$selectedPageName",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(_t,"$siteConfig",n),a={collections:k7,assets:zH,search:IG,workflow:jG,config:VH},c=x(()=>a[i()]),u=()=>{ot(Ya,!1),ot(Go,!1);const{path:v}=Ld(),{pageName:y}=v.match(`^\\/(?<pageName>${Object.keys(a).join("|")})\\b`)?.groups??{};y?i()!==y&&ot(ey,y):window.location.replace(`#/collections/${s()?.name??o()?.collections[0].name}`)};on(()=>{u()});var d=UG();vi("hashchange",al,()=>{u()});var h=M(d);SG(h,{});var f=D(h,2);bi(f,()=>l(c),(v,y)=>{y(v,{})});var p=D(f,2);BH(p,{});var g=D(p,2);UH(g,{});var m=D(g,2);S7(m,{});var b=D(m,2);E7(b,{}),T(t,d);var _=oe({pages:a,selectPage:u});return r(),_}const qG=Object.freeze(Object.defineProperty({__proto__:null,strings:{collections:"Collections",contents:"Contents",entries:"Entries",assets:"Assets",media:"Media",workflow:"Workflow",editorial_workflow:"Editorial Workflow",user_name:"User Name",password:"Password",sign_in:"Sign In",signed_in_as_x:"Signed In as {name}",working_with_local_repo:"Working with Local Repository",sign_out:"Sign Out",create:"New",select:"Select",select_all:"Select All",upload:"Upload",copy:"Copy",download:"Download",duplicate:"Duplicate",delete:"Delete",save:"Save",saving:"Saving…",rename:"Rename",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…",global:"Global",primary:"Primary",secondary:"Secondary",collection:"Collection",folder:"Folder",api_key:"API Key",details:"Details",clipboard_error:"There was an error while copying data.",welcome_to_sveltia_cms:"Welcome to Sveltia CMS",loading_site_config:"Loading Site Configuration…",loading_site_data:"Loading Site Data…",loading_site_data_error:"There was an error while loading site data.",sign_in_with_x:"Sign In with {service}",authorizing:"Authorizing…",signing_in:"Signing in…",work_with_local_repo:"Work with Local Repository",work_with_local_repo_description:"Click the button to select the root directory of the “{repo}” repository.",work_with_local_repo_description_no_repo:"Click the button to select the root directory of your Git 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.",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.",MALFORMED_RESPONSE:"Server responded with malformed data. Please try again later."},repository_no_access:"You don’t have access to the “{repo}” repository.",repository_not_found:"The “{repo}” repository doesn’t exist.",repository_empty:"The “{repo}” repository has no branches.",branch_not_found:"The “{repo}” repository doesn’t have the “{branch}” branch.",unexpected_error:"Unexpected Error",entry_parse_error:"There was an error while parsing an entry file. Check the browser console for details.",entry_parse_errors:"There were errors while parsing entry files. Check the browser console for details.",visit_live_site:"Visit Live Site",switch_page:"Switch Page",search_placeholder:"Search for entries and assets…",create_entry_or_assets:"Create Entry or Assets",publish_changes:"Publish Changes",publishing_changes:"Publishing Changes…",publishing_changes_failed:"Changes could not be published. Please try again later.",show_notifications:"Show Notifications",notifications:"Notifications",show_account_menu:"Show Account Menu",account:"Account",live_site:"Live Site",git_repository:"Git Repository",settings:"Settings",site_config:"Site Configuration",show_help_menu:"Show Help Menu",help:"Help",keyboard_shortcuts:"Keyboard Shortcuts",documentation:"Documentation",release_notes:"Release Notes",version_x:"Version {version}",report_issue:"Report Issue",share_feedback:"Share Feedback",get_help:"Get Help",join_discord:"Join Us on Discord",update_available:"The latest version of Sveltia CMS is available.",update_now:"Update Now",backend_status:{minor_incident:"{service} is experiencing a minor incident. Your workflow may be potentially affected.",major_incident:"{service} is experiencing a major incident. You may want to wait until the situation has improved."},content_library:"Content Library",asset_library:"Asset Library",collection_assets:"Collection Assets",entry_assets:"Entry Assets",entry_list:"Entry List",file_list:"File List",asset_list:"Asset List",x_collection:"“{collection}” Collection",x_asset_folder:"“{folder}” Asset Folder",viewing_x_collection_many_entries:"You’re now viewing the “{collection}” collection, which has {count} entries.",viewing_x_collection_one_entry:"You’re now viewing the “{collection}” collection, which has one entry.",viewing_x_collection_no_entries:"You’re now viewing the “{collection}” collection, which has no entries yet.",viewing_x_asset_folder_many_assets:"You’re now viewing the “{folder}” asset folder, which has {count} assets.",viewing_x_asset_folder_one_asset:"You’re now viewing the “{folder}” asset folder, which has one asset.",viewing_x_asset_folder_no_assets:"You’re now viewing the “{folder}” asset folder, which has no assets yet.",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",sort:"Sort",sorting_options:"Sorting Options",sort_keys:{none:"None",name:"Name",commit_author:"Updated by",commit_date:"Updated on"},ascending:"{label}, A to Z",ascending_date:"{label}, old to new",descending:"{label}, Z to A",descending_date:"{label}, new to old",filter:"Filter",filtering_options:"Filtering Options",group:"Group",grouping_options:"Grouping Options",type:"Type",all:"All",image:"Image",video:"Video",audio:"Audio",document:"Document",other:"Other",show_assets:"Show Assets",hide_assets:"Hide Assets",show_info:"Show Info",hide_info:"Hide Info",asset_folders:"Asset Folders",all_assets:"All Assets",uncategorized:"Uncategorized",search_results_for_x:"Search Results for “{terms}”",viewing_search_results:"You’re now viewing search results for “{terms}”. We’ve found {entries} and {assets}.",many_entries:"{count} entries",one_entry:"one entry",no_entries:"no entries",many_assets:"{count} assets",one_asset:"one asset",no_assets:"no assets",no_files_found:"No files found.",no_entries_found:"No entries found.",upload_assets:"Upload New Assets",edit_options:"Edit Options",show_edit_options:"Show Edit Options",edit_asset:"Edit Asset",edit_x:"Edit {name}",wrap_long_lines:"Wrap Long Lines",rename_asset:"Rename Asset",rename_x:"Rename {name}",enter_new_name_for_asset:"Enter a new name below.",enter_new_name_for_asset_with_one_entry:"Enter a new name below. An entry using the asset will also be updated.",enter_new_name_for_asset_with_many_entries:"Enter a new name below. {count} entries using the asset will also be updated.",enter_new_name_for_asset_error:{empty:"File name cannot be empty.",character:"File name cannot contain special characters.",duplicate:"This file name is used for another asset."},replace_asset:"Replace Asset",replace_x:"Replace {name}",browse_file:"Click to browse",drop_or_browse_file:"Drop a file here or click to browse",drop_or_browse_files:"Drop files here or click to browse",drop_or_browse_image_file:"Drop an image file here or click to browse",drop_or_browse_image_files:"Drop image files here or click to browse",drop_file_here:"Drop a file here",drop_files_here:"Drop files here",drop_files_type_mismatch:"The dropped file is not the “{type}” type. Please try again.",choose_file:"Choose File",choose_files:"Choose Files",delete_asset:"Delete Asset",delete_assets:"Delete Assets",delete_selected_asset:"Delete Selected Asset",delete_selected_assets:"Delete Selected Assets",confirm_deleting_this_asset:"Are you sure to delete this asset?",confirm_deleting_selected_asset:"Are you sure to delete the selected asset?",confirm_deleting_selected_assets:"Are you sure to delete the selected {count} assets?",confirm_deleting_all_assets:"Are you sure to delete all the assets?",delete_entry:"Delete Entry",delete_entries:"Delete Entries",delete_selected_entry:"Delete Selected Entry",delete_selected_entries:"Delete Selected Entries",confirm_deleting_this_entry:"Are you sure to delete this entry?",confirm_deleting_this_entry_with_assets:"Are you sure to delete this entry and associated assets?",confirm_deleting_selected_entry:"Are you sure to delete the selected entry?",confirm_deleting_selected_entry_with_assets:"Are you sure to delete the selected entry and associated assets?",confirm_deleting_selected_entries:"Are you sure to delete the selected {count} entries?",confirm_deleting_selected_entries_with_assets:"Are you sure to delete the selected {count} entries and associated assets?",confirm_deleting_all_entries:"Are you sure to delete all the entries?",confirm_deleting_all_entries_with_assets:"Are you sure to delete all the entries and associated assets?",confirm_replacing_file:"Are you sure to replace “{name}” with the following file?",confirm_uploading_file:"Are you sure to save the following file to the “{folder}” folder?",confirm_uploading_files:"Are you sure to save the following {count} files to the “{folder}” folder?",no_entries_created:"This collection has no entries yet.",create_new_entry:"Create New Entry",no_files_in_collection:"No files available in this collection.",asset_info:"Asset Info",select_asset_show_info:"Select an asset to show the info.",duplicate_entry:"Duplicate Entry",entry_duplicated:"Entry has been duplicated. It’s now a new draft.",entry_validation_error:"One field has an error. Please correct it to save the entry.",entry_validation_errors:"{count} fields have an error. Please correct them to save the entry.",entry_saved:"Entry has been saved.",entry_saved_and_published:"Entry has been saved and published.",entry_deleted:"Entry has been deleted.",entries_deleted:"{count} entries have been deleted.",asset_saved:"Asset has been saved.",asset_saved_and_published:"Asset has been saved and published.",assets_saved:"{count} assets have been saved.",assets_saved_and_published:"{count} assets have been saved and published.",asset_url_copied:"Asset URL has been copied to clipboard.",asset_urls_copied:"Asset URLs have been copied to clipboard.",asset_path_copied:"Asset file path has been copied to clipboard.",asset_paths_copied:"Asset file paths have been copied to clipboard.",asset_data_copied:"Asset file has been copied to clipboard.",asset_downloaded:"Asset file has been downloaded.",assets_downloaded:"Asset files have been downloaded.",asset_moved:"Asset has been moved.",assets_moved:"{count} assets have been moved.",asset_renamed:"Asset has been renamed.",assets_renamed:"{count} assets have been renamed.",asset_deleted:"Asset has been deleted.",assets_deleted:"{count} assets have been deleted.",content_editor:"Content Editor",restore_backup_title:"Restore Draft",restore_backup_description:"This entry has a backup from {datetime}. Do you want to restore the edited draft?",draft_backup_saved:"Draft backup has been saved.",draft_backup_restored:"Draft backup has been restored.",draft_backup_deleted:"Draft backup has been deleted.",cancel_editing:"Cancel Editing",creating_x:"Creating {name}",creating_x_collection_entry:"You’re now creating a new entry in the “{collection}” collection.",editing_x_in_x:"Editing {collection} › {entry}",editing_x_collection_entry:"You’re now editing the “{entry}” entry in the “{collection}” collection.",editing_x_collection_file:"You’re now editing the “{file}” file in the “{collection}” collection.",save_and_publish:"Save and Publish",save_without_publishing:"Save without Publishing",show_editor_options:"Show Editor Options",editor_options:"Editor Options",show_preview:"Show Preview",sync_scrolling:"Sync Scrolling",switch_locale:"Switch Locale",locale_content_disabled_short:"(disabled)",locale_content_error_short:"(error)",edit:"Edit",preview:"Preview",edit_x_locale:"Edit {locale} Content",preview_x_locale:"Preview {locale} Content",content_preview:"Content Preview",show_content_options_x_locale:"Show {locale} Content Options",content_options_x_locale:"{locale} Content Options",x_field:"“{field}” Field",show_field_options:"Show Field Options",field_options:"Field Options",unsupported_widget_x:"Unsupported widget: {name}",enable_x_locale:"Enable {locale}",reenable_x_locale:"Reenable {locale}",disable_x_locale:"Disable {locale}",locale_x_has_been_disabled:"The {locale} content has been disabled.",locale_x_now_disabled:"The {locale} content is now disabled. It will be deleted when you save the entry.",view_in_repository:"View in Repository",view_on_x:"View on {service}",view_on_live_site:"View on Live Site",copy_from:"Copy from…",copy_from_x:"Copy from {locale}",translation_options:"Translation Options",translate:"Translate",translate_field:"Translate Field",translate_fields:"Translate Fields",translate_from:"Translate from…",translate_from_x:"Translate from {locale}",revert_changes:"Revert Changes",revert_all_changes:"Revert All Changes",required:"Required",editor:{translation:{none:"Nothing has been translated.",started:"Translating…",error:"There was an error while translating.",complete:{one:"Translated the field from {source}.",many:"Translated {count} fields from {source}."}},copy:{none:"Nothing has been copied.",complete:{one:"Copied the field from {source}.",many:"Copied {count} fields from {source}."}}},validation:{value_missing:"This field is required.",range_underflow:{number:"Value must be greater than or equal to {min}.",select_many:"You have to select at least {min} items.",select_one:"You have to select at least {min} item.",add_many:"You have to add at least {min} items.",add_one:"You have to add at least {min} item."},range_overflow:{number:"Value must be less than or equal to {max}.",select_many:"You cannot select more than {max} items.",select_one:"You cannot select more than {max} item.",add_many:"You cannot add more than {max} items.",add_one:"You cannot add more than {max} item."},too_short:{one:"You must enter at least {min} character.",many:"You must enter at least {min} characters."},too_long:{one:"You cannot enter more than {max} character.",many:"You cannot enter more than {max} characters."},type_mismatch:{number:"Please enter a number.",email:"Please enter a valid email.",url:"Please enter a valid URL."}},saving_entry:{error:{title:"Error",description:"There was an error while saving the entry. Please try again later."}},viewing_x_asset_details:"You’re viewing the details of the “{name}” asset.",asset_editor:"Asset Editor",preview_unavailable:"Preview Unavailable.",public_url:"Public URL",public_urls:"Public URLs",file_path:"File Path",file_paths:"File Paths",file_data:"File Data",kind:"Kind",size:"Size",dimensions:"Dimensions",duration:"Duration",used_in:"Used in",select_file:"Select File",select_image:"Select Image",replace_file:"Replace File",replace_image:"Replace Image",remove_file:"Remove File",remove_image:"Remove Image",remove_this_item:"Remove This Item",move_up:"Move Up",move_down:"Move Down",add_x:"Add {name}",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",location:{local:"Your Computer",repository:"This Repository",external_locations:"External Locations",stock_photos:"Stock Photos"},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",description:"This file exceeds the maximum size of {size}. Please choose another."},photo_credit:{title:"Photo Credit",description:"Use the following credit if possible:"}},character_counter:{min_max:{one:"{count} character entered. Minimum: {min}. Maximum: {max}.",many:"{count} characters entered. Minimum: {min}. Maximum: {max}."},min:{one:"{count} character entered. Minimum: {min}.",many:"{count} characters entered. Minimum: {min}."},max:{one:"{count} character entered. Maximum: {max}.",many:"{count} characters entered. Maximum: {max}."}},youtube_video_player:"YouTube video player",today:"Today",now:"Now",editor_components:{image:"Image",src:"Source",alt:"Alt Text",title:"Title",link:"Link"},key_value:{key:"Key",value:"Value",action:"Action",empty_key:"Key is required.",duplicate_key:"Key must be unique."},boolean:{true:"Yes",false:"No"},cloud_storage:{invalid:"The service is not configured properly.",auth:{initial:"Sign into {service} to insert media on the storage to entry fields.",requested:"Signing in…",error:"User name or password is incorrect. Please double check and try again."}},config:{error:{no_secure_context:"Sveltia CMS only works with HTTPS or localhost URLs.",fetch_failed:"The configuration file could not be retrieved.",fetch_failed_not_ok:"HTTP response returned with status {status}.",parse_failed:"The configuration file could not be parsed.",parse_failed_invalid_object:"The configuration file is not a valid JavaScript object.",no_collection:"Collections are not defined in the configuration file.",no_backend:"The backend is not defined in the configuration file.",unsupported_backend:"The configured “{name}” backend is not supported.",no_repository:"The repository is not defined in the configuration file.",oauth_implicit_flow:"The configured authentication method (implicit flow) is not supported.",oauth_no_app_id:"OAuth application ID is not defined in the configuration file.",no_media_folder:"The media folder is not defined in the configuration file.",unexpected:"There was an unexpected error while validating the configuration file.",try_again:"Please solve the issue and try again."}},local_backend:{unsupported_browser:"Local development is not supported in your browser. Please use Chrome or Edge instead.",disabled:"Local development is disabled in your browser. <a>Here’s how to enable it</a>."},status:{drafts:"Drafts",in_review:"In Review",ready:"Ready"},categories:"Categories",prefs:{changes:{api_key_saved:"API key has been saved.",api_key_removed:"API key has been removed."},error:{permission_denied:"Browser storage (Cookie) access has been denied. Please check the permission and try again."},appearance:{title:"Appearance",theme:"Theme",select_theme:"Select Theme"},theme:{auto:"Auto",dark:"Dark",light:"Light"},languages:{title:"Languages",ui_language:{title:"User Interface Language",select_language:"Select Language"},translator:{title:"{service} Translator",field_label:"{service} API Authentication Key",description:"Sign up for <a {homeHref}>{service} API</a> and enter <a {apiKeyHref}>your Authentication Key</a> here to enable quick translation of text entry fields."}},contents:{title:"Contents",editor:{title:"Editor",close_on_save:{switch_label:"Close the editor after saving a draft"}}},media:{title:"Media",stock_photos:{title:"{service} Free Images",field_label:"{service} API Key",description:"Sign up for <a {homeHref}>{service} API</a> and enter <a {apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.",credit:"Photos provided by {service}"}},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",deploy_hook:{title:"Deploy Hook",description:"Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.",field_label:"Deploy Hook URL",url_saved:"Webhook URL has been saved.",url_removed:"Webhook URL has been removed."},developer_mode:{title:"Developer Mode",description:"Enable some features, including detailed console logs and native context menus.",switch_label:"Enable Developer Mode"}}},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",mp4:"MP4 video",mpeg:"MPEG video",ogv:"OGG video",ts:"MPEG video",webm:"WebM video","3gp":"3GPP video","3g2":"3GPP2 video",aac:"AAC audio",mid:"MIDI",midi:"MIDI",mp3:"MP3 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"}}},Symbol.toStringTag,{value:"Module"})),HG=Object.freeze(Object.defineProperty({__proto__:null,strings:{collections:"コレクション",contents:"コンテンツ",entries:"エントリー",assets:"アセット",media:"メディア",workflow:"ワークフロー",editorial_workflow:"編集ワークフロー",user_name:"ユーザー名",password:"パスワード",sign_in:"ログイン",signed_in_as_x:"{name} としてログイン中",working_with_local_repo:"ローカルレポジトリで作業中",sign_out:"ログアウト",create:"新規作成",select:"選択",select_all:"すべて選択",upload:"アップロード",copy:"コピー",download:"ダウンロード",duplicate:"複製",delete:"削除",save:"保存",saving:"保存中…",rename:"名前を変更",replace:"差し替え",add:"追加",remove:"削除",remove_x:"{name} を削除",clear:"クリア",expand:"広げる",expand_all:"すべて広げる",collapse:"折り畳む",collapse_all:"すべて折り畳む",insert:"挿入",restore:"復元",discard:"破棄",searching:"検索中…",global:"グローバル",primary:"プライマリー",secondary:"セカンダリー",collection:"コレクション",folder:"フォルダー",api_key:"API キー",details:"詳細",clipboard_error:"データのコピー中に問題が発生しました。",welcome_to_sveltia_cms:"Sveltia CMS へようこそ",loading_site_config:"サイト設定を読み込んでいます…",loading_site_data:"サイトデータを読み込んでいます…",loading_site_data_error:"サイトデータの読み込み中にエラーが発生しました。",sign_in_with_x:"{service} でログイン",authorizing:"認証中…",signing_in:"ログイン中…",work_with_local_repo:"ローカルレポジトリで作業",work_with_local_repo_description:"ボタンをクリックして「{repo}」レポジトリのルートディレクトリを選択してください。",work_with_local_repo_description_no_repo:"ボタンをクリックして Git レポジトリのルートディレクトリを選択してください。",sign_in_error:{not_project_root:"選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。",picker_dismissed:"レポジトリのルートディレクトリを選択できませんでした。再度お試しください。",authentication_aborted:"認証が中断されました。再度お試しください。",UNSUPPORTED_BACKEND:"この認証アプリはお使いの Git バックエンドに対応していません。",UNSUPPORTED_DOMAIN:"この認証アプリではお使いのドメインの使用は許可されていません。",MISCONFIGURED_CLIENT:"OAuth アプリのクライアント ID またはシークレットが設定されていません。",AUTH_CODE_REQUEST_FAILED:"認証コードを取得できませんでした。後で再度お試しください。",CSRF_DETECTED:"CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。",TOKEN_REQUEST_FAILED:"アクセストークンを要求できませんでした。後で再度お試しください。",MALFORMED_RESPONSE:"サーバーから不正なデータが返されました。後で再度お試しください。"},repository_no_access:"あなたには「{repo}」レポジトリへのアクセス権がありません。",repository_not_found:"「{repo}」レポジトリは存在しません。",repository_empty:"「{repo}」レポジトリにはブランチがありません。",branch_not_found:"「{repo}」レポジトリに「{branch}」ブランチは存在しません。",unexpected_error:"予期せぬエラー",entry_parse_error:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",entry_parse_errors:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",visit_live_site:"管理対象サイトを開く",switch_page:"ページを切り替え",search_placeholder:"エントリーとアセットを検索…",create_entry_or_assets:"エントリーまたはアセットを作成",publish_changes:"変更を公開",publishing_changes:"変更を公開しています…",publishing_changes_failed:"変更を公開できませんでした。後で再度お試しください。",show_notifications:"通知を表示",notifications:"通知",show_account_menu:"アカウントメニューを表示",account:"アカウント",live_site:"管理対象サイト",git_repository:"Git レポジトリ",settings:"設定",site_config:"サイト設定",show_help_menu:"ヘルプメニューを表示",help:"ヘルプ",keyboard_shortcuts:"キーボードショートカット",documentation:"ドキュメンテーション",release_notes:"リリースノート",version_x:"バージョン {version}",report_issue:"問題を報告",share_feedback:"フィードバックを共有",get_help:"サポート",join_discord:"Discord チャンネルに参加",update_available:"Sveltia CMS の最新版が利用可能です。",update_now:"今すぐ更新",backend_status:{minor_incident:"{service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。",major_incident:"{service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。"},content_library:"コンテンツライブラリ",asset_library:"アセットライブラリ",collection_assets:"コレクションアセット",entry_assets:"エントリーアセット",entry_list:"エントリーリスト",file_list:"ファイルリスト",asset_list:"アセットリスト",x_collection:"「{collection}」コレクション",x_asset_folder:"「{folder}」アセットフォルダー",viewing_x_collection_many_entries:"「{collection}」コレクションを表示しています。ここには {count} 個のエントリーがあります。",viewing_x_collection_one_entry:"「{collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。",viewing_x_collection_no_entries:"「{collection}」コレクションを表示しています。ここにはまだエントリーがありません。",viewing_x_asset_folder_many_assets:"「{folder}」アセットフォルダーを表示しています。ここには {count} 個のアセットがあります。",viewing_x_asset_folder_one_asset:"「{folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。",viewing_x_asset_folder_no_assets:"「{folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。",collection_not_found:"コレクションが見つかりませんでした",file_not_found:"ファイルが見つかりませんでした",x_of_x_selected:"{total} 個のうち {selected} 個を選択中",switch_view:"ビューを切り替え",list_view:"リストビュー",grid_view:"グリッドビュー",sort:"並び替え",sorting_options:"並べ替えオプション",sort_keys:{none:"なし",name:"名前",commit_author:"更新者",commit_date:"更新日時"},ascending:"{label} (A–Z)",ascending_date:"{label} (古い順)",descending:"{label} (Z–A)",descending_date:"{label} (新しい順)",filter:"絞り込み",filtering_options:"絞り込みオプション",group:"グループ化",grouping_options:"グループ化オプション",type:"種類",all:"すべて",image:"画像",video:"動画",audio:"音声",document:"書類",other:"その他",show_assets:"アセットを表示",hide_assets:"アセットを隠す",show_info:"情報を表示",hide_info:"情報を隠す",asset_folders:"アセットフォルダー",all_assets:"すべてのアセット",uncategorized:"未分類",search_results_for_x:"「{terms}」の検索結果",viewing_search_results:"「{terms}」の検索結果を表示しています。{entries} と {assets} が見つかりました。",many_entries:"{count} 個のエントリー",one_entry:"1 個のエントリー",no_entries:"0 個のエントリー",many_assets:"{count} 個のアセット",one_asset:"1 個のアセット",no_assets:"0 個のアセット",no_files_found:"ファイルは見つかりませんでした。",no_entries_found:"エントリーは見つかりませんでした。",upload_assets:"新しいアセットをアップロード",edit_options:"編集オプション",show_edit_options:"編集オプションを表示",edit_asset:"アセットを編集",edit_x:"{name} を編集",wrap_long_lines:"長い行を折り返す",rename_asset:"アセットの名前を変更",rename_x:"{name} の名前を変更",enter_new_name_for_asset:"新しい名前を以下に入力してください。",enter_new_name_for_asset_with_one_entry:"新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。",enter_new_name_for_asset_with_many_entries:"新しい名前を以下に入力してください。このアセットを使用している {count} 個のエントリーも更新されます。",enter_new_name_for_asset_error:{empty:"ファイル名を空白にすることはできません。",character:"ファイル名に特別な文字を含めることはできません。",duplicate:"このファイル名は他のアセットに使われています。"},replace_asset:"アセットを差し替え",replace_x:"{name} を差し替え",browse_file:"クリックして参照",drop_or_browse_file:"ここにファイルをドロップするかクリックして参照",drop_or_browse_files:"ここにファイルをドロップするかクリックして参照",drop_or_browse_image_file:"ここに画像ファイルをドロップするかクリックして参照",drop_or_browse_image_files:"ここに画像ファイルをドロップするかクリックして参照",drop_file_here:"ここにファイルをドロップ",drop_files_here:"ここにファイルをドロップ",drop_files_type_mismatch:"ドロップされたファイルは「{type}」形式ではありません。再度お試しください。",choose_file:"ファイルを選択",choose_files:"ファイルを選択",delete_asset:"アセットを削除",delete_assets:"アセットを削除",delete_selected_asset:"選択されたアセットを削除",delete_selected_assets:"選択されたアセットを削除",confirm_deleting_this_asset:"このアセットを削除してもよろしいですか?",confirm_deleting_selected_asset:"選択されたファイルを削除してもよろしいですか?",confirm_deleting_selected_assets:"選択された {count} 個のファイルを削除してもよろしいですか?",confirm_deleting_all_assets:"すべてのアセットを削除してもよろしいですか?",delete_entry:"エントリーを削除",delete_entries:"エントリーを削除",delete_selected_entry:"選択されたエントリーを削除",delete_selected_entries:"選択されたエントリーを削除",confirm_deleting_this_entry:"このエントリーを削除してもよろしいですか?",confirm_deleting_this_entry_with_assets:"このエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entry:"選択されたエントリーを削除してもよろしいですか?",confirm_deleting_selected_entry_with_assets:"選択されたエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entries:"選択された {count} 個のエントリーを削除してもよろしいですか?",confirm_deleting_selected_entries_with_assets:"選択された {count} 個のエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_all_entries:"すべてのエントリーを削除してもよろしいですか?",confirm_deleting_all_entries_with_assets:"すべてのエントリーと関連アセットを削除してもよろしいですか?",confirm_replacing_file:"「{name}」を以下のファイルと差し替えてもよろしいですか?",confirm_uploading_file:"以下のファイルを「{folder}」フォルダーに保存してもよろしいですか?",confirm_uploading_files:"以下の {count} 個のファイルを「{folder}」フォルダーに保存してもよろしいですか?",no_entries_created:"このコレクションにはまだエントリーがありません。",create_new_entry:"新しいエントリーを作成",no_files_in_collection:"このコレクションにはファイルがありません。",asset_info:"アセット情報",select_asset_show_info:"アセットを選択すると情報が表示されます。",duplicate_entry:"エントリーを複製",entry_duplicated:"エントリーが複製され、新しい下書きとなりました。",entry_validation_error:"ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_validation_errors:"{count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_saved:"エントリーが保存されました。",entry_saved_and_published:"エントリーが保存、公開されました。",entry_deleted:"エントリーが削除されました。",entries_deleted:"{count} 個のエントリーが削除されました。",asset_saved:"アセットが保存されました。",asset_saved_and_published:"アセットが保存、公開されました。",assets_saved:"{count} 個のアセットが保存されました。",assets_saved_and_published:"{count} 個のアセットが保存、公開されました。",asset_url_copied:"アセット URL がクリップボードにコピーされました。",asset_urls_copied:"アセット URL がクリップボードにコピーされました。",asset_path_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_paths_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_data_copied:"アセットファイルがクリップボードにコピーされました。",asset_downloaded:"アセットファイルがダウンロードされました。",assets_downloaded:"アセットファイルがダウンロードされました。",asset_moved:"アセットが移動されました。",assets_moved:"{count} 個のアセットが移動されました。",asset_renamed:"アセットの名前が変更されました。",assets_renamed:"{count} 個のアセットの名前が変更されました。",asset_deleted:"アセットが削除されました。",assets_deleted:"{count} 個のアセットが削除されました。",content_editor:"コンテンツエディター",restore_backup_title:"下書きを復元",restore_backup_description:"このエントリーには {datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか?",draft_backup_saved:"下書きのバックアップが保存されました。",draft_backup_restored:"下書きのバックアップが復元されました。",draft_backup_deleted:"下書きのバックアップが削除されました。",cancel_editing:"編集をキャンセル",creating_x:"{name} を作成",creating_x_collection_entry:"「{collection}」コレクションの新しいエントリーを作成しています。",editing_x_in_x:"{collection} › {entry} を編集",editing_x_collection_entry:"「{collection}」コレクションの「{entry}」エントリーを編集しています。",editing_x_collection_file:"「{collection}」コレクションの「{file}」ファイルを編集しています。",save_and_publish:"保存して公開",save_without_publishing:"公開せずに保存",show_editor_options:"エディターオプションを表示",editor_options:"エディターオプション",show_preview:"プレビューを表示",sync_scrolling:"スクロールを同期",switch_locale:"ロケールを切り替え",locale_content_disabled_short:"(無効)",locale_content_error_short:"(エラー)",edit:"編集",preview:"プレビュー",edit_x_locale:"{locale} コンテンツを編集",preview_x_locale:"{locale} コンテンツをプレビュー",content_preview:"コンテンツプレビュー",show_content_options_x_locale:"{locale} コンテンツのオプションを表示",content_options_x_locale:"{locale} コンテンツのオプション",x_field:"「{field}」フィールド",show_field_options:"フィールドオプションを表示",field_options:"フィールドオプション",unsupported_widget_x:"非対応ウィジェット: {name}",enable_x_locale:"{locale} を有効化",reenable_x_locale:"{locale} を再度有効化",disable_x_locale:"{locale} を無効化",locale_x_has_been_disabled:"{locale} コンテンツは無効化されています。",locale_x_now_disabled:"{locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。",view_in_repository:"レポジトリ内で見る",view_on_x:"{service} で見る",view_on_live_site:"管理対象サイトで見る",copy_from:"他の言語からコピー…",copy_from_x:"{locale} からコピー",translation_options:"翻訳オプション",translate:"翻訳",translate_field:"フィールドを翻訳",translate_fields:"フィールドを翻訳",translate_from:"他の言語から翻訳…",translate_from_x:"{locale} から翻訳",revert_changes:"変更を取り消す",revert_all_changes:"すべての変更を取り消す",required:"必須",editor:{translation:{none:"翻訳されたフィールドはありません。",started:"翻訳中…",error:"翻訳中に問題が発生しました。",complete:{one:"{source} からフィールドを翻訳しました。",many:"{source} から {count} 個のフィールドを翻訳しました。"}},copy:{none:"コピーされたフィールドはありません。",complete:{one:"{source} からフィールドをコピーしました。",many:"{source} から {count} 個のフィールドをコピーしました。"}}},validation:{value_missing:"この項目は必須です。",range_underflow:{select_many:"少なくとも {min} 個の項目を選択してください。",select_one:"少なくとも {min} 個の項目を選択してください。",add_many:"少なくとも {min} 個の項目を追加してください。",add_one:"少なくとも {min} 個の項目を追加してください。"},range_overflow:{select_many:"選択できるのは最大で {max} 項目です。",select_one:"選択できるのは最大で {max} 項目です。",add_many:"追加できるのは最大で {max} 項目です。",add_one:"追加できるのは最大で {max} 項目です。"},too_short:{one:"少なくとも {min} 文字は入力してください。",many:"少なくとも {min} 文字は入力してください。"},too_long:{one:"{max} 文字を超える入力はできません。",many:"{max} 文字を超える入力はできません。"},type_mismatch:{email:"正しいメールアドレスを入力してください。",url:"正しい URL を入力してください。"}},saving_entry:{error:{title:"エラー",description:"エントリーを保存中に問題が発生しました。後で再度お試しください。"}},viewing_x_asset_details:"「{name}」アセットの詳細を表示しています。",asset_editor:"アセットエディター",preview_unavailable:"プレビューは表示できません",public_url:"公開 URL",public_urls:"公開 URL",file_path:"ファイルパス",file_paths:"ファイルパス",file_data:"ファイルデータ",kind:"種類",size:"サイズ",dimensions:"大きさ",duration:"再生時間",used_in:"使われているエントリー",select_file:"ファイルを選択",select_image:"画像を選択",replace_file:"ファイルを差し替え",replace_image:"画像を差し替え",remove_file:"ファイルを削除",remove_image:"画像を削除",remove_this_item:"このアイテムを削除",move_up:"上へ移動",move_down:"下へ移動",add_x:"{name} を追加",select_list_type:"リストタイプを選択",opacity:"透明度",unselected_option:"(なし)",assets_dialog:{title:{file:"ファイルを選択",image:"画像を選択"},search_for_file:"ファイルを検索",search_for_image:"画像を検索",locations:"場所",location:{local:"お使いのコンピューター",repository:"このレポジトリ",external_locations:"外部の場所",stock_photos:"ストックフォト"},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:"大きなファイル",description:"このファイルは最大サイズ {size} を超えています。他のファイルを選んでください。"},photo_credit:{title:"写真クレジット",description:"可能であれば以下のクレジットを使ってください:"}},character_counter:{min_max:{one:"{count} 文字入力されています。最小: {min}。最大 {max}。",many:"{count} 文字入力されています。最小: {min}。最大 {max}。"},min:{one:"{count} 文字入力されています。最小: {min}。",many:"{count} 文字入力されています。最小: {min}。"},max:{one:"{count} 文字入力されています。最大: {max}。",many:"{count} 文字入力されています。最大: {max}。"}},youtube_video_player:"YouTube 動画プレーヤー",today:"今日",now:"現在時刻",editor_components:{image:"画像",src:"ソース",alt:"代替テキスト",title:"タイトル",link:"リンク"},key_value:{key:"キー",value:"値",action:"アクション",empty_key:"キーは必須です。",duplicate_key:"キーが重複しています。"},boolean:{true:"はい",false:"いいえ"},cloud_storage:{invalid:"このサービスは正しく設定されていません。",auth:{initial:"{service} へログインすると、ストレージ上のメディアをエントリー項目へ挿入できます。",requested:"ログイン中…",error:"ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。"}},config:{error:{no_secure_context:"Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。",fetch_failed:"設定ファイルを読み込めませんでした。",fetch_failed_not_ok:"HTTP レスポンスがステータス {status} で返されました。",parse_failed:"設定ファイルを解析できませんでした。",parse_failed_invalid_object:"設定ファイルが有効な JavaScript オブジェクトではありません。",no_collection:"設定ファイル内でコレクションが定義されていません。",no_backend:"設定ファイル内でバックエンドが定義されていません。",unsupported_backend:"設定されている「{name}」バックエンドは非対応です。",no_repository:"設定ファイル内でレポジトリが定義されていません。",oauth_implicit_flow:"設定されている認証方式 (暗黙的フロー) は非対応です。",oauth_no_app_id:"設定ファイル内で OAuth アプリケーション ID が定義されていません。",no_media_folder:"設定ファイル内でメディアフォルダーが定義されていません。",unexpected:"設定ファイルを検証中に予期せぬ問題が発生しました。",try_again:"問題を解決してから再度お試しください。"}},local_backend:{unsupported_browser:"お使いのブラウザーはローカル開発に対応していません。代わりに Chrome か Edge を使ってください。",disabled:"お使いのブラウザーではローカル開発が無効化されています。<a>有効化する方法はこちら</a>。"},status:{drafts:"下書き",in_review:"レビュー中",ready:"公開可"},categories:"カテゴリ",prefs:{changes:{api_key_saved:"API キーが保存されました。",api_key_removed:"API キーが削除されました。"},error:{permission_denied:"ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。"},appearance:{title:"アピアランス",theme:"テーマ",select_theme:"テーマを選択"},theme:{auto:"自動",dark:"ダーク",light:"ライト"},languages:{title:"言語",ui_language:{title:"ユーザーインターフェース言語",select_language:"言語を選択"},translator:{title:"{service} 翻訳",field_label:"{service} API 認証キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された認証キー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。"}},contents:{title:"コンテンツ",editor:{title:"エディター",close_on_save:{switch_label:"下書き保存後にエディターを閉じる"}}},media:{title:"メディア",stock_photos:{title:"{service} 無料画像素材",field_label:"{service} API キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。",credit:"写真提供: {service}"}},accessibility:{title:"アクセシビリティ",underline_links:{title:"リンクに下線を付ける",description:"エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。",switch_label:"常に下線を付ける"}},advanced:{title:"詳細",deploy_hook:{title:"デプロイフック",description:"「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。",field_label:"デプロイフック URL",url_saved:"ウェブフック URL が保存されました。",url_removed:"ウェブフック URL が削除されました。"},developer_mode:{title:"開発者モード",description:"詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの機能を有効化します。",switch_label:"開発者モードを有効にする"}}},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 動画",mp4:"MP4 動画",mpeg:"MPEG 動画",ogv:"OGG 動画",ts:"MPEG 動画",webm:"WebM 動画","3gp":"3GPP 動画","3g2":"3GPP2 動画",aac:"AAC 音声",mid:"MIDI",midi:"MIDI",mp3:"MP3 音声",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"}}},Symbol.toStringTag,{value:"Module"})),VG=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":qG,"/src/lib/locales/ja.js":HG})).forEach(([e,{strings:n}])=>{const r=Tn(e).filename;Jg(r,n)}),rS({fallbackLocale:"en",initialLocale:te(St).locale||(lL()??"").split("-")[0]||"en"})};var WG=F('<link rel="icon">'),GG=F('<meta name="referrer" content="same-origin"> <meta name="robots" content="noindex"> <!> <!>',1),KG=F('<div role="none" class="outer svelte-1729mpr"><!> <!> <div role="none" class="main svelte-1729mpr"><!> <!></div></div>'),YG=F('<!> <div role="status" class="svelte-1729mpr"> </div>',1);const JG={hash:"svelte-1729mpr",code:"body:not(:has(#nc-root)) {overflow:hidden;}#nc-root > .sui.app-shell {position:absolute;}.outer.svelte-1729mpr {display:flex;flex-direction:column;position:absolute;inset:0;overflow:hidden;}.main.svelte-1729mpr {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-secondary-background-color);}[role=status].svelte-1729mpr {position:absolute;z-index:-1;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;}"};function ZG(t,e){se(e,!0),Te(t,JG);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(wf,"$isLoading",n),o=()=>z(Pn,"$backend",n),a=()=>z(ui,"$user",n),c=()=>z($c,"$dataLoaded",n),u=()=>z($s,"$announcedPageStatus",n);on(()=>{VG(),HB(e.config)}),on(()=>{const d=document.querySelector("#nc-root");if(d&&window.getComputedStyle(d).position==="static"){const{top:h,height:f}=d.getBoundingClientRect();f?d.style.position="relative":(d.style.position="fixed",d.style.inset=`${h}px 0 0 0`)}}),gw(d=>{var h=GG(),f=D(M(h),4);{var p=m=>{var b=WG();const _=x(()=>i().logo_url);H((v,y)=>{Se(b,"href",v),Se(b,"type",y)},[()=>l(_)||`data:image/svg+xml;base64,${btoa(oS)}`,()=>l(_)?Do.getType(l(_))??void 0:"image/svg+xml"]),T(m,b)};U(f,m=>{i()&&m(p)})}var g=D(f,2);U(g,m=>{}),T(d,h)}),vi("mousedown",bg.body,d=>{d.target?.matches("a")&&d.target.origin!==window.location.origin&&(d.target.target="_blank")}),aF(t,{children:(d,h)=>{var f=YG(),p=M(f);{var g=_=>{var v=KG(),y=R(v);wq(y,{});var w=D(y,2);{var k=O=>{bq(O,{})};U(w,O=>{o()&&O(k)})}var S=D(w,2),C=R(S);gq(C,{});var E=D(C,2);{var A=O=>{BG(O,{})};U(E,O=>{a()&&c()&&O(A)})}T(_,v)};U(p,_=>{s()||_(g)})}var m=D(p,2),b=R(m);H(()=>Z(b,u())),T(d,f)},$$slots:{default:!0}}),oe(),r()}const XG=["registerEditorComponent","registerEventListener","registerPreviewStyle","registerPreviewTemplate","registerWidget"],QG=["getBackend","getCustomFormats","getCustomFormatsExtensions","getCustomFormatsFormatters","getEditorComponents","getEventListeners","getLocale","getMediaLibrary","getPreviewStyles","getPreviewTemplate","getRemarkPlugins","getWidget","getWidgetValueSerializer","getWidgets","invokeEvent","moment","registerBackend","registerLocale","registerMediaLibrary","registerRemarkPlugin","registerWidgetValueSerializer","removeEventListener","resolveWidget"],eK="https://github.com/sveltia/sveltia-cms#compatibility";let LA=!1;const sg=async({config:t={}}={})=>{LA||(LA=!0,document.readyState==="loading"&&!document.querySelector("#nc-root")&&await new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>e(void 0),{once:!0})}),Tg(ZG,{target:document.querySelector("#nc-root")??document.body,props:{config:t}}))},tK=(t,e,{fromFile:n,toFile:r})=>{hf[t]={extension:e,parser:n,formatter:r}},$A=new Proxy({init:sg,registerCustomFormat:tK},{get:(t,e)=>{if(e in t)return t[e];let n="";if(XG.includes(e)&&(n="CMS.%s() is not yet supported in Sveltia CMS, but we plan to implement it soon."),QG.includes(e)&&(n="CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it."),n)return console.error(`${n} See %s for compatibility information.`,e,eK),()=>{}}});return window.CMS=$A,window.initCMS=sg,!window.CMS_MANUAL_INIT&&(document.currentScript||document.querySelector('script[src$="/sveltia-cms.js"]'))&&sg(),qd.default=$A,qd.init=sg,Object.defineProperties(qd,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),qd})({});
|
|
614
|
+
.suffix.svelte-1vsh88z {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-1vsh88z {margin-block:4px;line-height:var(--sui-line-height-compact);}.footer.svelte-1vsh88z {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}.hint.svelte-1vsh88z {flex:auto;margin:0;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);opacity:0.75;}`};function by(t,e){se(e,!0),Te(t,cW);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=()=>z(u,"$extraHint",n),a=Zn("field"),c=xe=>oi.sanitize(At.parseInline(xe.replaceAll("\\n","<br>")),{ALLOWED_TAGS:["strong","em","del","code","a","br"],ALLOWED_ATTR:["href"]}),u=it();vg("field-editor",{extraHint:u});const d=x(()=>e.fieldConfig.name),h=x(()=>tt(e.fieldConfig.label,"")),f=x(()=>tt(e.fieldConfig.comment,"")),p=x(()=>tt(e.fieldConfig.hint,"")),g=x(()=>tt(e.fieldConfig.widget,"string")),m=x(()=>tt(e.fieldConfig.i18n,!1)),b=x(()=>tt(e.fieldConfig.pattern,()=>[],!0)),_=x(()=>xd({fieldConfig:e.fieldConfig,locale:e.locale})),v=x(()=>e.fieldConfig.field),y=x(()=>e.fieldConfig.fields),w=x(()=>e.fieldConfig.types),k=x(()=>!!l(v)||!!l(y)||!!l(w)),S=x(()=>e.fieldConfig.min),C=x(()=>e.fieldConfig.max),E=x(()=>l(g)==="string"?e.fieldConfig.type??"text":l(g)==="number"?"number":void 0),A=x(()=>["string"].includes(l(g))),O=x(()=>l(A)?e.fieldConfig.prefix:void 0),$=x(()=>l(A)?e.fieldConfig.suffix:void 0),N=x(()=>["boolean","number","string"].includes(l(g))),I=x(()=>l(N)?e.fieldConfig.before_input:void 0),j=x(()=>l(N)?e.fieldConfig.after_input:void 0),q=x(()=>!!(l(O)||l($)||l(I)||l(j))),B=x(()=>["relation","select"].includes(l(g))),W=x(()=>l(B)?e.fieldConfig.multiple:void 0),G=x(()=>l(g)==="list"&&l(k)||l(W)||l(g)==="keyvalue"),J=x(()=>l(g)==="list"||l(B)&&l(W)),ne=x(()=>i()?.collection),K=x(()=>i()?.collectionFile),Y=x(()=>i()?.originalValues),re=x(()=>(l(K)??l(ne))?._i18n??Pi),ce=x(()=>l(re).i18nEnabled),he=x(()=>l(re).allLocales),Q=x(()=>l(re).defaultLocale),X=x(()=>l(ce)?l(he).filter(xe=>xe!==e.locale):[]),de=x(()=>l(ce)&&(l(m)===!0||l(m)==="translate")),ye=x(()=>l(ce)&&l(m)==="duplicate"),ve=x(()=>e.locale===l(Q)||l(de)||l(ye)),be=x(()=>new RegExp(`^${an(e.keyPath)}\\.\\d+$`)),fe=x(()=>l(J)?Object.entries(wr(i()?.currentValues[e.locale]??{})).filter(([xe])=>l(be).test(xe)).map(([,xe])=>xe).filter(xe=>xe!==void 0):wr(i()?.currentValues[e.locale])?.[e.keyPath]),Oe=x(()=>l(J)?Object.entries(l(Y)?.[e.locale]??{}).filter(([xe])=>l(be).test(xe)).map(([,xe])=>xe).filter(xe=>xe!==void 0):l(Y)?.[e.locale][e.keyPath]),Ae=x(()=>i()?.validities[e.locale][e.keyPath]),De=x(()=>l(h)||l(d)),He=x(()=>l(m)==="duplicate"&&e.locale!==l(Q)||l(g)==="compute"),Ve=x(()=>l(Ae)?.valid===!1);var mt=V(),et=M(mt);{var we=xe=>{var _e=lW();const ke=x(()=>l(de)&&l(X).length),Ne=x(()=>!(l(ye)&&e.locale!==l(Q)));var ge=R(_e),Ce=R(ge);Se(Ce,"id",`${a??""}-label`);var Ue=R(Ce),Je=D(Ce,2);{var ut=bt=>{var en=J6();H(Fn=>Se(en,"aria-label",Fn),[()=>s()("required")]),T(bt,en)};U(Je,bt=>{!l(He)&&l(_)&&bt(ut)})}var lt=D(Je,2);Wr(lt,{flex:!0});var Ke=D(lt,2);{var rt=bt=>{EA(bt,{size:"small",get locale(){return e.locale},get otherLocales(){return l(X)},get keyPath(){return e.keyPath}})};U(Ke,bt=>{l(ke)&&["markdown","string","text","list","object"].includes(l(g))&&bt(rt)})}var Et=D(Ke,2);{var Ht=bt=>{const en=x(()=>s()("show_field_options"));kr(bt,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(en)},popup:$n=>{const Nt=x(()=>s()("field_options"));hr($n,{get"aria-label"(){return l(Nt)},children:(sn,Nn)=>{var Yn=Z6(),Pr=M(Yn);{var Ri=vr=>{vy(vr,{get locale(){return e.locale},get otherLocales(){return l(X)},get keyPath(){return e.keyPath}})};U(Pr,vr=>{l(ke)&&vr(Ri)})}var fi=D(Pr,2);{var Is=vr=>{const Un=x(()=>s()("revert_changes")),Ut=x(()=>Dn(l(fe),l(Oe)));$t(vr,{get label(){return l(Un)},get disabled(){return l(Ut)},onclick:()=>{hy(e.locale,e.keyPath)}})};U(fi,vr=>{l(Ne)&&vr(Is)})}T(sn,Yn)},$$slots:{default:!0}})},$$slots:{popup:!0}})};U(Et,bt=>{(l(ke)||l(Ne))&&bt(Ht)})}var mn=D(ge,2);{var On=bt=>{var en=X6(),Fn=R(en);ur(Fn,()=>c(l(f))),T(bt,en)};U(mn,bt=>{!l(He)&&l(f)&&bt(On)})}var nr=D(mn,2);{var ns=bt=>{mA(bt,{id:`${a??""}-error`,children:(en,Fn)=>{var $n=Q6(),Nt=M($n);{var sn=Ze=>{var xt=We();H(En=>Z(xt,En),[()=>s()("validation.value_missing")]),T(Ze,xt)};U(Nt,Ze=>{l(Ae).valueMissing&&Ze(sn)})}var Nn=D(Nt,2);{var Yn=Ze=>{var xt=We();const En=x(()=>{const{minlength:rr}=e.fieldConfig;return{minlength:rr}});H(rr=>Z(xt,rr),[()=>s()(l(En).minlength===1?"validation.too_short.one":"validation.too_short.many",{values:{min:l(En).minlength}})]),T(Ze,xt)};U(Nn,Ze=>{l(Ae).tooShort&&Ze(Yn)})}var Pr=D(Nn,2);{var Ri=Ze=>{var xt=We();const En=x(()=>{const{maxlength:rr}=e.fieldConfig;return{maxlength:rr}});H(rr=>Z(xt,rr),[()=>s()(l(En).maxlength===1?"validation.too_long.one":"validation.too_long.many",{values:{max:l(En).maxlength}})]),T(Ze,xt)};U(Pr,Ze=>{l(Ae).tooLong&&Ze(Ri)})}var fi=D(Pr,2);{var Is=Ze=>{var xt=V();const En=x(()=>l(S)===1?"one":"many");var rr=M(xt);{var ho=Bn=>{var ir=We();H(is=>Z(ir,is),[()=>s()("validation.range_underflow.number",{values:{min:l(S)}})]),T(Bn,ir)},Xo=Bn=>{var ir=V(),is=M(ir);{var ss=br=>{var sr=We();H(Di=>Z(sr,Di),[()=>s()(`validation.range_underflow.add_${l(En)}`,{values:{min:l(S)}})]),T(br,sr)},rl=br=>{var sr=We();H(Di=>Z(sr,Di),[()=>s()(`validation.range_underflow.select_${l(En)}`,{values:{min:l(S)}})]),T(br,sr)};U(is,br=>{l(G)?br(ss):br(rl,!1)},!0)}T(Bn,ir)};U(rr,Bn=>{l(g)==="number"?Bn(ho):Bn(Xo,!1)})}T(Ze,xt)};U(fi,Ze=>{l(Ae).rangeUnderflow&&Ze(Is)})}var vr=D(fi,2);{var Un=Ze=>{var xt=V();const En=x(()=>l(C)===1?"one":"many");var rr=M(xt);{var ho=Bn=>{var ir=We();H(is=>Z(ir,is),[()=>s()("validation.range_overflow.number",{values:{max:l(C)}})]),T(Bn,ir)},Xo=Bn=>{var ir=V(),is=M(ir);{var ss=br=>{var sr=We();H(Di=>Z(sr,Di),[()=>s()(`validation.range_overflow.add_${l(En)}`,{values:{max:l(C)}})]),T(br,sr)},rl=br=>{var sr=We();H(Di=>Z(sr,Di),[()=>s()(`validation.range_overflow.select_${l(En)}`,{values:{max:l(C)}})]),T(br,sr)};U(is,br=>{l(G)?br(ss):br(rl,!1)},!0)}T(Bn,ir)};U(rr,Bn=>{l(g)==="number"?Bn(ho):Bn(Xo,!1)})}T(Ze,xt)};U(vr,Ze=>{l(Ae).rangeOverflow&&Ze(Un)})}var Ut=D(vr,2);{var hi=Ze=>{var xt=We();H(()=>Z(xt,l(b)[1])),T(Ze,xt)};U(Ut,Ze=>{l(Ae).patternMismatch&&Ze(hi)})}var Vt=D(Ut,2);{var tn=Ze=>{var xt=We();H(En=>Z(xt,En),[()=>s()(`validation.type_mismatch.${l(E)}`)]),T(Ze,xt)};U(Vt,Ze=>{l(Ae).typeMismatch&&Ze(tn)})}T(en,$n)}})};U(nr,bt=>{l(Ae)?.valid===!1&&bt(ns)})}var ti=D(nr,2),fo=R(ti);{var rs=bt=>{var en=eW(),Fn=R(en);H($n=>Z(Fn,$n),[()=>s()("unsupported_widget_x",{values:{name:l(g)}})]),T(bt,en)},Dt=bt=>{var en=V(),Fn=M(en);{var $n=sn=>{var Nn=V();const Yn=x(()=>ig[l(g)]);var Pr=M(Nn);bi(Pr,()=>l(Yn),(Ri,fi)=>{fi(Ri,{get locale(){return e.locale},get keyPath(){return e.keyPath},fieldId:a,get fieldLabel(){return l(De)},get fieldConfig(){return e.fieldConfig},get currentValue(){return l(fe)},get readonly(){return l(He)},get required(){return l(_)},get invalid(){return l(Ve)}})}),T(sn,Nn)},Nt=sn=>{var Nn=sW();const Yn=x(()=>ig[l(g)]);var Pr=M(Nn);{var Ri=tn=>{var Ze=tW(),xt=R(Ze);ur(xt,()=>c(l(I))),T(tn,Ze)};U(Pr,tn=>{l(I)&&tn(Ri)})}var fi=D(Pr,2);{var Is=tn=>{var Ze=nW(),xt=R(Ze);H(()=>Z(xt,l(O))),T(tn,Ze)};U(fi,tn=>{l(O)&&tn(Is)})}var vr=D(fi,2);bi(vr,()=>l(Yn),(tn,Ze)=>{Ze(tn,{get locale(){return e.locale},get keyPath(){return e.keyPath},fieldId:a,get fieldLabel(){return l(De)},get fieldConfig(){return e.fieldConfig},get readonly(){return l(He)},get required(){return l(_)},get invalid(){return l(Ve)},get currentValue(){return i().currentValues[e.locale][e.keyPath]},set currentValue(xt){Ct(st,Ee(i).currentValues[e.locale][e.keyPath]=xt,Ee(i))}})});var Un=D(vr,2);{var Ut=tn=>{var Ze=rW(),xt=R(Ze);H(()=>Z(xt,l($))),T(tn,Ze)};U(Un,tn=>{l($)&&tn(Ut)})}var hi=D(Un,2);{var Vt=tn=>{var Ze=iW(),xt=R(Ze);ur(xt,()=>c(l(j))),T(tn,Ze)};U(hi,tn=>{l(j)&&tn(Vt)})}T(sn,Nn)};U(Fn,sn=>{l(J)?sn($n):sn(Nt,!1)},!0)}T(bt,en)};U(fo,bt=>{l(g)in ig?bt(Dt,!1):bt(rs)})}var Ln=D(ti,2);{var Gt=bt=>{var en=aW();const Fn=x(o);var $n=R(en);{var Nt=Nn=>{var Yn=oW(),Pr=R(Yn);ur(Pr,()=>c(l(p))),T(Nn,Yn)};U($n,Nn=>{l(p)&&Nn(Nt)})}var sn=D($n,2);bi(sn,()=>l(Fn),(Nn,Yn)=>{Yn(Nn,{get fieldConfig(){return e.fieldConfig},get currentValue(){return l(fe)}})}),T(bt,en)};U(Ln,bt=>{!l(He)&&(l(p)||o())&&bt(Gt)})}H(bt=>{Se(_e,"aria-label",bt),Se(_e,"data-widget",l(g)),Se(_e,"data-key-path",e.keyPath),_e.hidden=l(g)==="compute",Z(Ue,l(De)),ft(ti,"has-extra-labels",l(q))},[()=>s()("x_field",{values:{field:l(De)}})]),T(xe,_e)};U(et,xe=>{i()&&l(ve)&&l(g)!=="hidden"&&xe(we)})}T(t,mt),oe(),r()}function uW(t,e){se(e,!0);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=x(()=>i()?.collection),o=x(()=>i()?.collectionFile),a=x(()=>l(o)?.fields??l(s)?.fields??[]);var c=V(),u=M(c);dt(u,17,()=>l(a),d=>d.name,(d,h)=>{var f=V(),p=M(f);lr(p,()=>dn(0),null,g=>{by(g,{get keyPath(){return l(h).name},get locale(){return e.locale},get fieldConfig(){return l(h)}})}),T(d,f)}),T(t,c),oe(),r()}var dW=F('<div role="document" class="svelte-t01vxl"></div>');const fW={hash:"svelte-t01vxl",code:"div.svelte-t01vxl {padding:8px 16px;}"};function hW(t,e){se(e,!0),Te(t,fW);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(le,"$_",n),o=x(()=>i()?.collection),a=x(()=>i()?.collectionFile),c=x(()=>l(a)?.fields??l(o)?.fields??[]);var u=dW();dt(u,21,()=>l(c),d=>d.name,(d,h)=>{var f=V(),p=M(f);lr(p,()=>dn(0),null,g=>{my(g,{get keyPath(){return l(h).name},get locale(){return e.locale},get fieldConfig(){return l(h)}})}),T(d,f)}),H(d=>Se(u,"aria-label",d),[()=>s()("content_preview")]),T(t,u),oe(),r()}var pW=F('<div role="none" class="content svelte-1g8n4fi"><!></div>'),gW=F('<span role="alert"> </span> <!>',1),mW=F('<div role="none" class="wrapper svelte-1g8n4fi"><!></div>');const vW={hash:"svelte-1g8n4fi",code:'@charset "UTF-8";.wrapper.svelte-1g8n4fi {display:contents;}.wrapper.svelte-1g8n4fi > .group {display:contents;}.content.svelte-1g8n4fi {flex:auto;overflow-y:auto;scroll-behavior:auto; /* Don’t use smooth scroll for syncing */overscroll-behavior-y:contain;}'};function TA(t,e){se(e,!0),Te(t,vW);const[n,r]=me(),i=()=>z(Ii,"$entryEditorSettings",n),s=()=>z(e.thisPane,"$thisPane",n),o=()=>z(st,"$entryDraft",n),a=()=>z(le,"$_",n);let c=P(e,"thisPaneContentArea",15),u=P(e,"thatPaneContentArea",15);const d=x(()=>i()??{}),h=x(()=>l(d).syncScrolling),f=x(()=>s()?.locale),p=x(()=>s()?.mode),g=x(()=>!!l(f)&&!!wr(o()?.currentValues[l(f)])),m=x(()=>({values:{locale:l(f)?Zs(l(f)):""}})),b=x(()=>l(p)==="preview"?hW:uW),_=()=>{window.requestAnimationFrame(()=>{if(!l(h)||!c()||!u())return;const{x:C,y:E}=c().getBoundingClientRect(),A=document.elementsFromPoint(C+80,E).find(q=>q.matches("[data-key-path]"));if(!A)return;const{keyPath:O}=A.dataset,{top:$,height:N}=A.getBoundingClientRect(),I=(E-$)/N,j=u().querySelector(`[data-key-path="${CSS.escape(O??"")}"]`);I<0||I>1||!j||u(u().scrollTop=j.offsetTop-E+j.clientHeight*I,!0)})},v={capture:!0,passive:!0};Be(()=>{c()&&(c(c().scrollTop=0,!0),c().addEventListener("wheel",_,v),c().addEventListener("touchmove",_,v))});var y=mW(),w=R(y);{var k=C=>{var E=pW(),A=R(E);bi(A,()=>l(b),(O,$)=>{$(O,{get locale(){return l(f)}})}),Tt(E,O=>c(O),()=>c()),T(C,E)},S=C=>{var E=V(),A=M(E);{var O=$=>{qr($,{children:(N,I)=>{var j=gW(),q=M(j),B=R(q),W=D(q,2);const G=x(()=>a()(l(g)?"reenable_x_locale":"enable_x_locale",l(m)));Xe(W,{variant:"tertiary",get label(){return l(G)},onclick:()=>{l(f)&&iA(l(f))}}),H(J=>Z(B,J),[()=>a()(l(g)?"locale_x_now_disabled":"locale_x_has_been_disabled",l(m))]),T(N,j)},$$slots:{default:!0}})};U(A,$=>{l(p)==="edit"&&$(O)},!0)}T(C,E)};U(w,C=>{l(f)&&o()?.currentLocales[l(f)]?C(k):C(S,!1)})}H(()=>Se(y,"id",e.id)),T(t,y),oe(),r()}var bW=F('<div class="inner svelte-1ivrcdt"><!> <!></div>'),_W=F('<div class="outer svelte-1ivrcdt"><!></div>');const yW={hash:"svelte-1ivrcdt",code:`.outer.svelte-1ivrcdt {display:contents;}.outer.svelte-1ivrcdt .combobox.error [role="combobox"] {border-color:var(--sui-error-border-color);}.inner.svelte-1ivrcdt {display:contents;}.inner.svelte-1ivrcdt .error,
|
|
615
|
+
.inner.svelte-1ivrcdt .error button {color:var(--sui-error-foreground-color) !important;}`};function wW(t,e){se(e,!0),Te(t,yW);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(st,"$entryDraft",n),o=()=>z(d(),"$thatPane",n),a=()=>z(le,"$_",n),c=()=>z(e.thisPane,"$thisPane",n),u=()=>z(Ii,"$entryEditorSettings",n);let d=P(e,"thatPane",19,()=>it(null));const h=x(()=>i()?.editor?.preview??!0),f=x(()=>s()?.collection),p=x(()=>s()?.collectionFile),g=x(()=>(l(p)??l(f))?._i18n??Pi),m=x(()=>l(g).allLocales),b=x(()=>l(m).filter(I=>!(o()?.mode==="edit"&&o().locale===I))),_=x(()=>Object.entries(s()?.validities??{}).some(([I,j])=>l(b).includes(I)&&Object.values(j??{}).some(({valid:q})=>!q))),v=x(()=>(l(p)??l(f))?.editor?.preview??l(h)),y=x(()=>l(m).length>=5),w=x(()=>l(y)?uu:Tf),k=x(()=>l(y)?fr:su),S=x(()=>l(y)?void 0:"tertiary"),C=x(()=>l(y)?void 0:"small");var E=_W(),A=R(E);const O=x(()=>l(_)?"error":void 0),$=x(()=>a()("switch_locale")),N=x(()=>e.id.replace("-header","-body"));bi(A,()=>l(w),(I,j)=>{j(I,{get class(){return l(O)},get"aria-label"(){return l($)},get"aria-controls"(){return l(N)},children:(q,B)=>{var W=bW(),G=R(W);dt(G,17,()=>l(b),cr,(K,Y)=>{var re=V();const ce=x(()=>Zs(l(Y))),he=x(()=>!s()?.currentLocales[l(Y)]),Q=x(()=>Object.values(s()?.validities[l(Y)]??{}).some(({valid:fe})=>!fe));var X=M(re);const de=x(()=>l(ce)),ye=x(()=>l(he)?a()("locale_content_disabled_short"):l(Q)?a()("locale_content_error_short"):""),ve=x(()=>c()?.mode==="edit"&&c().locale===l(Y)),be=x(()=>l(Q)?"error":"");bi(X,()=>l(k),(fe,Oe)=>{Oe(fe,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(ce)},get"aria-label"(){return`${l(de)??""} ${l(ye)??""}`},get selected(){return l(ve)},get class(){return l(be)},onSelect:()=>{ot(e.thisPane,{mode:"edit",locale:l(Y)}),o()?.mode==="preview"&&ot(d(),{mode:"preview",locale:l(Y)})},startIcon:De=>{var He=V(),Ve=M(He);{var mt=we=>{nt(we,{name:"edit_off"})},et=we=>{var xe=V(),_e=M(xe);{var ke=Ne=>{nt(Ne,{name:"error"})};U(_e,Ne=>{l(Q)&&Ne(ke)},!0)}T(we,xe)};U(Ve,we=>{l(he)?we(mt):we(et,!1)})}T(De,He)},$$slots:{startIcon:!0}})}),T(K,re)});var J=D(G,2);{var ne=K=>{var Y=V(),re=M(Y);const ce=x(()=>a()("preview")),he=x(()=>c()?.mode==="preview");bi(re,()=>l(k),(Q,X)=>{X(Q,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(ce)},get selected(){return l(he)},onSelect:()=>{ot(e.thisPane,{mode:"preview",locale:o()?.locale??""})}})}),T(K,Y)};U(J,K=>{o()?.mode==="edit"&&l(v)&&u()?.showPreview&&K(ne)})}T(q,W)},$$slots:{default:!0}})}),T(t,E),oe(),r()}var xW=F('<h3 role="none"> </h3>'),kW=F("<!> <!>",1),SW=F("<!> <!> <!>",1),EW=F("<!> <!> <!> <!>",1),TW=F("<!> <!>",1),CW=F("<!> <!> <!>",1),AW=F('<div role="none" class="header svelte-2uraod"><!></div>');const PW={hash:"svelte-2uraod",code:'.header.svelte-2uraod {flex:none !important;}.header.svelte-2uraod > [role="toolbar"] {margin-right:auto;margin-left:auto;max-width:800px;}.header.svelte-2uraod > [role="toolbar"] h3 {margin:0 8px;font-size:var(--sui-font-size-default);}'};function CA(t,e){se(e,!0),Te(t,PW);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(e.thisPane,"$thisPane",n),o=()=>z(le,"$_",n),a=()=>z(St,"$prefs",n),c=()=>z(Pn,"$backend",n);let u=P(e,"thatPane",19,()=>it(null));const d=x(()=>i()?.collection),h=x(()=>i()?.collectionFile),f=x(()=>i()?.originalEntry),p=x(()=>i()?.originalValues??{}),g=x(()=>(l(h)??l(d))?._i18n??Pi),m=x(()=>l(g).i18nEnabled),b=x(()=>l(g).saveAllLocales),_=x(()=>l(g).allLocales),v=x(()=>l(g).defaultLocale),y=x(()=>i()?.currentLocales[s()?.locale??""]),w=x(()=>Object.values(i()?.currentLocales??{}).filter(N=>N).length===1),k=x(()=>l(m)?l(_).filter(N=>N!==s()?.locale):[]),S=x(()=>!!l(k).length),C=x(()=>s()?.locale&&!Dn(wr(i()?.currentValues[s().locale]),l(p)[s().locale])),E=x(()=>l(d)&&l(f)&&s()?.locale?BT(l(f),s().locale,l(d),l(h)):void 0);var A=AW(),O=R(A);const $=x(()=>o()("secondary"));Ks(O,{variant:"secondary",get"aria-label"(){return l($)},children:(N,I)=>{var j=CW(),q=M(j);{var B=K=>{wW(K,{get id(){return e.id},get thisPane(){return e.thisPane},get thatPane(){return u()}})},W=K=>{var Y=xW(),re=R(Y);H(ce=>Z(re,ce),[()=>s()?.mode==="preview"?o()("preview"):o()("edit")]),T(K,Y)};U(q,K=>{l(m)?K(B):K(W,!1)})}var G=D(q,2);Wr(G,{flex:!0});var J=D(G,2);{var ne=K=>{var Y=TW();const re=x(()=>Zs(s().locale));var ce=M(Y);{var he=de=>{EA(de,{get locale(){return s().locale},get otherLocales(){return l(k)}})};U(ce,de=>{l(S)&&de(he)})}var Q=D(ce,2);const X=x(()=>o()("show_content_options_x_locale",{values:{locale:l(re)}}));kr(Q,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(X)},popup:ye=>{const ve=x(()=>o()("content_options_x_locale",{values:{locale:l(re)}}));hr(ye,{get"aria-label"(){return l(ve)},children:(be,fe)=>{var Oe=EW(),Ae=M(Oe);{var De=ke=>{vy(ke,{get locale(){return s().locale},get otherLocales(){return l(k)}})};U(Ae,ke=>{l(S)&&s()?.locale&&ke(De)})}var He=D(Ae,2);const Ve=x(()=>o()("revert_changes")),mt=x(()=>!l(C));$t(He,{get label(){return l(Ve)},get disabled(){return l(mt)},onclick:()=>{hy(s()?.locale)}});var et=D(He,2);{var we=ke=>{var Ne=kW(),ge=M(Ne);Sr(ge,{});var Ce=D(ge,2);const Ue=x(()=>o()(l(y)?"disable_x_locale":wr(i()?.currentValues[s().locale])?"reenable_x_locale":"enable_x_locale",{values:{locale:l(re)}})),Je=x(()=>s().locale===l(v)||l(y)&&l(w));$t(Ce,{get label(){return l(Ue)},get disabled(){return l(Je)},onclick:()=>{iA(s()?.locale??"")}}),T(ke,Ne)};U(et,ke=>{!l(b)&&s()?.locale&&ke(we)})}var xe=D(et,2);{var _e=ke=>{var Ne=SW(),ge=M(Ne);Sr(ge,{});var Ce=D(ge,2);{var Ue=lt=>{const Ke=x(()=>o()("view_on_live_site"));$t(lt,{get label(){return l(Ke)},onclick:()=>{window.open(l(E))}})};U(Ce,lt=>{l(E)&<(Ue)})}var Je=D(Ce,2);{var ut=lt=>{const Ke=x(()=>!c()?.repository?.blobBaseURL),rt=x(()=>o()("view_on_x",{values:{service:c()?.repository?.label},default:o()("view_in_repository")}));$t(lt,{get disabled(){return l(Ke)},get label(){return l(rt)},onclick:()=>{l(f)&&s()&&window.open(PB(l(f),s().locale))}})};U(Je,lt=>{a().devModeEnabled&<(ut)})}T(ke,Ne)};U(xe,ke=>{l(f)&&(l(E)||a().devModeEnabled)&&ke(_e)})}T(be,Oe)},$$slots:{default:!0}})},$$slots:{popup:!0}}),T(K,Y)};U(J,K=>{s()?.mode==="edit"&&K(ne)})}T(N,j)},$$slots:{default:!0}}),H(()=>Se(A,"id",e.id)),T(t,A),oe(),r()}const AA=async(t,e)=>{const{_i18n:{defaultLocale:n},_thumbnailFieldNames:r}=t,{locales:i}=e,{content:s}=i[n]??Object.values(i)[0]??{};if(!s)return;const o=r.map(a=>{if(a.includes("*")){const c=new RegExp(`^${an(a).replace("\\*",".+")}$`);return Object.keys(s).filter(u=>c.test(u))}return a}).flat(1);for(const a of o){const c=s[a]?await Lc(s[a],e,{thumbnail:!0}):void 0;if(c)return c}},PA=({entry:t,collectionName:e,relative:n=!1})=>{const{locales:r}=t,i=Ni(e),s=Object.values(r).map(({content:o})=>Object.entries(o).map(([a,c])=>{if(typeof c=="string"&&(!n||!/^[/@]/.test(c))&&["image","file"].includes(gn({collectionName:e,keyPath:a})?.widget??"string")){const u=N_(c,{entry:t,collection:i});if(u&&$_(u).some(d=>d.name===e))return u}})).flat(1).filter((o,a,c)=>!!o&&c.indexOf(o)===a);if(n&&i?._assetFolder?.entryRelative){const o=Tn(Object.values(t.locales)[0].path).dirname;te(Qt).forEach(a=>{Tn(a.path).dirname===o&&!s.find(({path:c})=>c===a.path)&&s.push(a)})}return s};var OW=F("<!> <!>",1),LW=F("<!> <!> <!> <!>",1),$W=F('<!> <h2 role="none"><strong role="none"><!></strong></h2> <!> <!> <!> <!> <!>',1),NW=F('<div class="error svelte-1432d6m"> </div>'),IW=F(" <!>",1),RW=F("<!> <!> <!> <!> <!>",1);const DW={hash:"svelte-1432d6m",code:".error.svelte-1432d6m {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 MW(t,e){se(e,!0),Te(t,DW);const[n,r]=me(),i=()=>z(st,"$entryDraft",n),s=()=>z(_t,"$siteConfig",n),o=()=>z(Ls,"$backendName",n),a=()=>z(St,"$prefs",n),c=()=>z(le,"$_",n),u=()=>z(Ii,"$entryEditorSettings",n),d=()=>z(Q_,"$copyFromLocaleToast",n);let h=ae(!1),f=ae(!1),p=ae(!1),g=ae(""),m=ae(!1),b=ae(void 0);const _=x(()=>i()?.isNew),v=x(()=>i()?.collection),y=x(()=>i()?.collectionFile),w=x(()=>i()?.originalEntry),k=x(()=>i()?.originalLocales??{}),S=x(()=>i()?.originalValues??{}),C=x(()=>s()?.editor?.preview??!0),E=x(()=>s()?.backend.automatic_deployments),A=x(()=>o()!=="local"&&typeof l(E)=="boolean"),O=x(()=>(l(y)??l(v))?._i18n??Pi),$=x(()=>l(O).defaultLocale),N=x(()=>l(v)?.name),I=x(()=>l(v)?.label||l(N)),j=x(()=>l(v)?.label_singular||l(I)),q=x(()=>(l(y)??l(v))?.editor?.preview??l(C)),B=x(()=>l(_)||!Dn(l(k),wr(i()?.currentLocales))||!Dn(l(S),wr(i()?.currentValues))),W=x(()=>Object.values(i()?.validities??{}).map(be=>Object.values(be).map(({valid:fe})=>!fe)).flat(1).filter(Boolean).length),G=x(()=>l(N)&&l(w)&&l(v)?._assetFolder?.entryRelative?PA({entry:l(w),collectionName:l(N),relative:!0}):[]),J=x(()=>l(v)&&l(w)?BT(l(w),l($),l(v),l(y)):void 0),ne=async({skipCI:be=void 0}={})=>{if(L(m,!0),!!l(v))try{const fe=await h5({skipCI:be});a()?.closeOnSave??!0?(Rc(`/collections/${l(N)}`),ot(st,null)):(l(_)&&jn(`/collections/${l(N)}/entries/${fe.subPath}`,{replaceState:!0,notifyChange:!1}),Nd({collection:l(v),collectionFile:l(y),originalEntry:fe,expanderStates:i()?.expanderStates}))}catch(fe){fe.message==="validation_failed"?L(h,!0):fe.message==="saving_failed"?(L(p,!0),L(g,ie(fe.cause?.message??fe.message??c()("unexpected_error")))):(L(p,!0),L(g,""),console.error(fe))}finally{L(m,!1)}};var K=RW(),Y=M(K);const re=x(()=>c()("primary"));Ks(Y,{variant:"primary",get"aria-label"(){return l(re)},children:(be,fe)=>{var Oe=$W(),Ae=M(Oe);const De=x(()=>c()("cancel_editing"));Xe(Ae,{variant:"ghost",iconic:!0,get"aria-label"(){return l(De)},keyShortcuts:"Escape",onclick:()=>{Rc(`/collections/${l(N)}`)},startIcon:rt=>{nt(rt,{name:"arrow_back_ios_new"})},$$slots:{startIcon:!0}});var He=D(Ae,2),Ve=R(He),mt=R(Ve);{var et=Ke=>{var rt=We();H(Et=>Z(rt,Et),[()=>c()("creating_x",{values:{name:l(j)}})]),T(Ke,rt)},we=Ke=>{var rt=We();H(Et=>Z(rt,Et),[()=>c()("editing_x_in_x",{values:{collection:l(I),entry:l(y)?l(y).label||l(y).name:l(v)&&l(w)?Ho(l(v),l(w)):""}})]),T(Ke,rt)};U(mt,Ke=>{l(_)?Ke(et):Ke(we,!1)})}var xe=D(He,2);Wr(xe,{flex:!0});var _e=D(xe,2);{var ke=Ke=>{const rt=x(()=>c()("view_on_live_site"));Xe(Ke,{variant:"tertiary",get label(){return l(rt)},onclick:()=>{window.open(l(J))}})};U(_e,Ke=>{l(J)&&Ke(ke)})}var Ne=D(_e,2);{var ge=Ke=>{var rt=OW(),Et=M(rt);const Ht=x(()=>c()("duplicate")),mn=x(()=>c()("duplicate_entry")),On=x(()=>l(v)?.create===!1);Xe(Et,{variant:"ghost",get label(){return l(Ht)},get"aria-label"(){return l(mn)},get disabled(){return l(On)},onclick:()=>{jn(`/collections/${l(N)}/new`,{replaceState:!0,notifyChange:!1}),Xq()}});var nr=D(Et,2);const ns=x(()=>c()("delete")),ti=x(()=>c()("delete_entry")),fo=x(()=>l(v)?.delete===!1);Xe(nr,{variant:"ghost",get label(){return l(ns)},get"aria-label"(){return l(ti)},get disabled(){return l(fo)},onclick:()=>{L(f,!0)}}),T(Ke,rt)};U(Ne,Ke=>{!l(y)&&!l(_)&&Ke(ge)})}var Ce=D(Ne,2);const Ue=x(()=>c()("show_editor_options"));Tt(kr(Ce,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Ue)},popup:rt=>{const Et=x(()=>c()("editor_options"));hr(rt,{get"aria-label"(){return l(Et)},children:(Ht,mn)=>{var On=LW(),nr=M(On);const ns=x(()=>c()("show_preview")),ti=x(()=>u()?.showPreview),fo=x(()=>!l(q));Af(nr,{get label(){return l(ns)},get checked(){return l(ti)},get disabled(){return l(fo)},onChange:()=>{Ii.update((Nt={})=>({...Nt,showPreview:!Nt.showPreview}))}});var rs=D(nr,2);const Dt=x(()=>c()("sync_scrolling")),Ln=x(()=>u()?.syncScrolling),Gt=x(()=>!l(q)&&Object.keys(i()?.currentValues??{}).length===1);Af(rs,{get label(){return l(Dt)},get checked(){return l(Ln)},get disabled(){return l(Gt)},onChange:()=>{Ii.update((Nt={})=>({...Nt,syncScrolling:!Nt.syncScrolling}))}});var bt=D(rs,2);Sr(bt,{});var en=D(bt,2);const Fn=x(()=>c()("revert_all_changes")),$n=x(()=>!l(B));$t(en,{get label(){return l(Fn)},get disabled(){return l($n)},onclick:()=>{hy()}}),T(Ht,On)},$$slots:{default:!0}})},$$slots:{popup:!0}}),rt=>L(b,ie(rt)),()=>l(b));var Je=D(Ce,2);{var ut=Ke=>{const rt=x(()=>c()(l(m)?"saving":"save")),Et=x(()=>!l(B)||l(m));YL(Ke,{variant:"primary",get label(){return l(rt)},get disabled(){return l(Et)},keyShortcuts:"Accel+S",onclick:()=>{ne()},popup:mn=>{hr(mn,{children:(On,nr)=>{const ns=x(()=>c()(l(E)?"save_without_publishing":"save_and_publish"));$t(On,{get label(){return l(ns)},onclick:()=>{ne({skipCI:l(E)})}})},$$slots:{default:!0}})},$$slots:{popup:!0}})},lt=Ke=>{const rt=x(()=>c()(l(m)?"saving":"save")),Et=x(()=>!l(B)||l(m));Xe(Ke,{variant:"primary",get label(){return l(rt)},get disabled(){return l(Et)},keyShortcuts:"Accel+S",onclick:()=>{ne()}})};U(Je,Ke=>{l(A)?Ke(ut):Ke(lt,!1)})}T(be,Oe)},$$slots:{default:!0}});var ce=D(Y,2);Hn(ce,{get show(){return l(h)},set show(be){L(h,ie(be))},children:(be,fe)=>{qn(be,{status:"error",children:(Oe,Ae)=>{var De=We();H(He=>Z(De,He),[()=>c()(l(W)===1?"entry_validation_error":"entry_validation_errors",{values:{count:l(W)}})]),T(Oe,De)},$$slots:{default:!0}})},$$slots:{default:!0}});var he=D(ce,2);Hn(he,{get id(){return d().id},get show(){return d().show},set show(be){Ct(Q_,Ee(d).show=be,Ee(d))},children:(be,fe)=>{const Oe=x(()=>{const{status:Ae,message:De,count:He,sourceLocale:Ve}=d();return{status:Ae,message:De,count:He,sourceLocale:Ve}});qn(be,{get status(){return l(Oe).status},children:(Ae,De)=>{var He=We();H(Ve=>Z(He,Ve),[()=>c()(`editor.${l(Oe).message}`,{values:{count:l(Oe).count,source:l(Oe).sourceLocale?Zs(l(Oe).sourceLocale):""}})]),T(Ae,He)},$$slots:{default:!0}})},$$slots:{default:!0}});var Q=D(he,2);const X=x(()=>c()("delete_entry")),de=x(()=>c()("delete"));kl(Q,{get title(){return l(X)},get okLabel(){return l(de)},onOk:async()=>{l(w)&&await TC([l(w).id],l(G).map(({path:be})=>be)),Rc(`/collections/${l(N)}`)},onClose:()=>{l(b).focus()},get open(){return l(f)},set open(be){L(f,ie(be))},children:(be,fe)=>{var Oe=We();H(Ae=>Z(Oe,Ae),[()=>c()(l(G).length?"confirm_deleting_this_entry_with_assets":"confirm_deleting_this_entry")]),T(be,Oe)},$$slots:{default:!0}});var ye=D(Q,2);const ve=x(()=>c()("saving_entry.error.title"));xx(ye,{get title(){return l(ve)},onClose:()=>{l(b).focus()},get open(){return l(p)},set open(be){L(p,ie(be))},children:(be,fe)=>{var Oe=IW(),Ae=M(Oe),De=D(Ae);{var He=Ve=>{var mt=NW(),et=R(mt);H(()=>Z(et,l(g))),T(Ve,mt)};U(De,Ve=>{l(g)&&Ve(He)})}H(Ve=>Z(Ae,`${Ve??""} `),[()=>c()("saving_entry.error.description")]),T(be,Oe)},$$slots:{default:!0}}),T(t,K),oe(),r()}var FW=F("<!> <!>",1),zW=F("<!> <!>",1),jW=F("<!> <!>",1),UW=F('<!> <div role="none" class="cols svelte-1pb3yei"><!></div>',1),BW=F('<div role="none" class="wrapper svelte-1pb3yei"><!></div> <!> <!>',1);const qW={hash:"svelte-1pb3yei",code:'.wrapper.svelte-1pb3yei {display:contents;}.wrapper[hidden].svelte-1pb3yei {display:none;}.wrapper.svelte-1pb3yei > .sui.group {position:absolute;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);transition:filter 250ms;}.wrapper[inert].svelte-1pb3yei > .sui.group {filter:opacity(0);}.wrapper.svelte-1pb3yei .cols:where(.svelte-1pb3yei) {flex:auto;overflow:hidden;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}.wrapper.svelte-1pb3yei .cols:where(.svelte-1pb3yei) > div {display:flex;flex-direction:column;min-width:480px;background-color:var(--sui-primary-background-color);transition:all 500ms;}.wrapper.svelte-1pb3yei .cols:where(.svelte-1pb3yei) > [data-mode="edit"] {flex:1 1;}.wrapper.svelte-1pb3yei .cols:where(.svelte-1pb3yei) > [data-mode="preview"] {flex:2 1;}'};function HW(t,e){se(e,!0),Te(t,qW);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(st,"$entryDraft",n),o=()=>z(Ii,"$entryEditorSettings",n),a=()=>z(Ja,"$editorLeftPane",n),c=()=>z(Yo,"$editorRightPane",n),u=()=>z(Ya,"$showContentOverlay",n),d=()=>z(le,"$_",n),h=()=>z(X_,"$showDuplicateToast",n);let f,p=!1,g=ae(!1),m=ae(!0),b=ae(void 0),_=ae(void 0),v=ae(void 0);const y=x(()=>i()?.editor?.preview??!0),w=x(()=>s()?.collection),k=x(()=>s()?.collectionFile),S=x(()=>s()?.originalEntry),C=x(()=>l(S)?.id??[l(w)?.name??"-",l(k)?.name??"-"].join("/")),E=x(()=>o()??{}),A=x(()=>l(E).showPreview),O=x(()=>(l(k)??l(w))?._i18n??Pi),$=x(()=>l(O).i18nEnabled),N=x(()=>l(O).allLocales),I=x(()=>l(O).defaultLocale),j=x(()=>(l(k)??l(w))?.editor?.preview??l(y)),q=x(()=>l(k)?.name?[l(w)?.name,l(k).name].join("|"):l(w)?.name),B=async()=>{const[Q,X]=o()?.paneStates?.[l(q)??""]??[];return p||!Q||!X||Q.locale&&!l(N).includes(Q.locale)||X.locale&&!l(N).includes(X.locale)||(!l(A)||!l(j))&&(Q.mode==="preview"||X.mode==="preview")?!1:(p=!0,await pl(),ot(Ja,Q),ot(Yo,X),await pl(),p=!1,!0)},W=async()=>{if(s()&&!await B())if(ot(Ja,{mode:"edit",locale:a()?.locale??l(I)}),!l(A)||!l(j)){const Q=l($)?l(N).filter(X=>X!==a()?.locale):[];ot(Yo,Q.length?{mode:"edit",locale:Q[0]}:null)}else ot(Yo,{mode:"preview",locale:a().locale})},G=()=>{!l(w)||p||!a()||!c()||!l(q)||Ii.update((Q={})=>({...Q,paneStates:{...Q.paneStates??{},[l(q)]:[a(),c()]}}))},J=async()=>{await pl(),f&&(f.tabIndex=0,f.focus())};on(()=>{f=l(b)?.querySelector('[role="group"]'),f.addEventListener("transitionend",()=>{u()||(L(g,!1),L(m,!0),ot(st,null))})}),Be(()=>{l(q)&&(ot(Ja,null),ot(Yo,null))}),Be(()=>{l(A),l(j),W()}),Be(()=>{a(),c(),G()}),Be(()=>{l(b)&&(u()?l(m)&&(L(g,!1),L(m,!1),W(),J(),n5()):(L(g,!0),t5()))});var ne=BW(),K=M(ne),Y=R(K);const re=x(()=>d()("content_editor"));mr(Y,{class:"content-editor",get"aria-label"(){return l(re)},children:(Q,X)=>{var de=V(),ye=M(de);hs(ye,()=>l(C),ve=>{var be=UW(),fe=M(be);MW(fe,{});var Oe=D(fe,2),Ae=R(Oe);{var De=He=>{var Ve=jW(),mt=M(Ve);{var et=_e=>{const ke=x(()=>{const{locale:ge,mode:Ce}=a();return{locale:ge,mode:Ce}}),Ne=x(()=>d()(l(ke).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Zs(l(ke).locale)}}));mr(_e,{class:"pane",get"aria-label"(){return l(Ne)},get"data-locale"(){return l(ke).locale},get"data-mode"(){return l(ke).mode},children:(ge,Ce)=>{var Ue=FW(),Je=M(Ue);CA(Je,{id:"left-pane-header",thisPane:Ja,thatPane:Yo});var ut=D(Je,2);TA(ut,{id:"left-pane-body",thisPane:Ja,get thatPaneContentArea(){return l(v)},get thisPaneContentArea(){return l(_)},set thisPaneContentArea(lt){L(_,ie(lt))}}),T(ge,Ue)},$$slots:{default:!0}})};U(mt,_e=>{a()&&_e(et)})}var we=D(mt,2);{var xe=_e=>{const ke=x(()=>{const{locale:ge,mode:Ce}=c();return{locale:ge,mode:Ce}}),Ne=x(()=>d()(l(ke).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Zs(l(ke).locale)}}));mr(_e,{get"aria-label"(){return l(Ne)},get"data-locale"(){return l(ke).locale},get"data-mode"(){return l(ke).mode},children:(ge,Ce)=>{var Ue=zW(),Je=M(Ue);CA(Je,{id:"right-pane-header",thisPane:Yo,thatPane:Ja});var ut=D(Je,2);TA(ut,{id:"right-pane-body",thisPane:Yo,get thatPaneContentArea(){return l(_)},get thisPaneContentArea(){return l(v)},set thisPaneContentArea(lt){L(v,ie(lt))}}),T(ge,Ue)},$$slots:{default:!0}})};U(we,_e=>{c()&&_e(xe)})}T(He,Ve)};U(Ae,He=>{l(w)&&He(De)})}T(ve,be)}),T(Q,de)},$$slots:{default:!0}}),Tt(K,Q=>L(b,Q),()=>l(b));var ce=D(K,2);GH(ce,{});var he=D(ce,2);Hn(he,{get show(){return Sw(),h()},set show(Q){ot(X_,Q)},children:(Q,X)=>{qn(Q,{status:"success",children:(de,ye)=>{var ve=We();H(be=>Z(ve,be),[()=>d()("entry_duplicated")]),T(de,ve)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(()=>{K.hidden=l(m),K.inert=!u(),ft(K,"hiding",l(g))}),T(t,ne),oe(),r()}const VW=["title","name","date","author","description"],di=it({type:"list"}),OA=t=>t.replace(/[_*`]+/g,""),WW=(t,e,{key:n,order:r}={})=>{const i=[...t],{name:s,_i18n:{defaultLocale:o}}=e;if(n===void 0){const h={useTemplate:!0,allowMarkdown:!0};return i.sort((f,p)=>Ho(e,f,h).localeCompare(Ho(e,p,h)))}const a={slug:String,commit_author:String,commit_date:Date}[n]||(i.length?Pc({entry:i[0],locale:o,collectionName:s,key:n})?.constructor:String)||String,c=Object.fromEntries(i.map(h=>[h.slug,Pc({entry:h,locale:o,collectionName:s,key:n})])),u=gn({collectionName:s,keyPath:n}),d=u?.widget==="datetime"?u:void 0;return i.sort((h,f)=>{const p=c[h.slug],g=c[f.slug];if(p===void 0||g===void 0)return 0;if(d){const m=Ac(p,d),b=Ac(g,d);if(m&&b)return Number(m)-Number(b)}return a===String?ii(OA(p),OA(g)):a===Date?Number(p)-Number(g):p-g}),r==="descending"&&i.reverse(),i},GW=(t,e,n)=>{const{name:r,view_filters:i=[],_i18n:{defaultLocale:s}}=e,o=n.filter(({field:a,pattern:c})=>a!==void 0&&c!==void 0&&i.some(u=>u.field===a&&u.pattern===c));return t.filter(a=>o.every(({field:c,pattern:u})=>{const d={entry:a,locale:s,collectionName:r,key:c},h=Pc({...d,resolveRef:!1}),f=Pc({...d}),p=typeof u=="string"?new RegExp(u):void 0;return h===void 0||f===void 0?!1:p?p.test(String(h))||p.test(String(f)):h===u||f===u}))},KW=(t,e,{field:n,pattern:r}={field:"",pattern:void 0})=>{if(!n)return t.length?[{name:"*",entries:t}]:[];const{name:i,_i18n:{defaultLocale:s}}=e,o=te(di).sort,a=typeof r=="string"?new RegExp(r):void 0,c={},u=te(le)("other");t.forEach(h=>{const f=Pc({entry:h,locale:s,collectionName:i,key:n});if(f===void 0)return;const p=a?String(f).match(a)?.[0]??u:String(f);p in c||(c[p]=[]),c[p].push(h)});const d=Object.entries(c).map(([h,f])=>({name:h,entries:f})).sort(({name:h},{name:f})=>ii(h,f));return o?.key===n&&o.order==="descending"&&d.reverse(),d},Fc=it(),YW=t=>{const{name:e,identifier_field:n,sortable_fields:r}=t;let i=[],s,o;if(r){if(Array.isArray(r)&&(i=r),Gn(r)){const a=r;Array.isArray(a.fields)&&(i=a.fields),a.default&&Gn(a.default)&&(s=a.default.field,o=["descending","Descending"].includes(a.default.direction??"")?"descending":"ascending")}}else i=[...VW],n&&(i.unshift(n),s=n);return i=ec(i).filter(a=>!!gn({collectionName:e,keyPath:a})),{fields:i,default:{key:s??i[0],order:o??"ascending"}}},JW=(t,e)=>["name","commit_author","commit_date"].includes(e)?te(le)(`sort_keys.${e}`):e.includes(".")?e.split(".").map((n,r,i)=>{if(/^\d+$/.test(n))return;const s=i.slice(0,r+1).join(".");return gn({collectionName:t.name,keyPath:s})?.label||n}).filter(Boolean).join(" – "):t.fields?.find(({name:n})=>n===e)?.label||e,ZW=dr([zn,ei,Cn],([t,e],n)=>{if(!t?.folder){n([]);return}const r=t,{fields:i,default:s}=YW(r),o=te(Fc)?.[r.name]??{type:"list"};o.sort??=s,e.every(a=>!!a.commitAuthor)&&!i.includes("author")&&i.push("commit_author"),e.every(a=>!!a.commitDate)&&!i.includes("date")&&i.push("commit_date"),n(i.map(a=>({key:a,label:JW(r,a)}))),Dn(o,te(di))||di.set(o)}),nl=dr([ei,zn],([t,e],n)=>{n(t&&e?Wo(e.name):[])}),_y=dr([nl,di],([t,e],n)=>{const r=te(zn);let i=[...t];if(!i.length||Vo(r,i[0]).length)n([]);else{i=WW(i,r,e.sort),e.filters&&(i=GW(i,r,e.filters));const s=KW(i,r,e.group);Dn(te(_y),s)||n(s)}}),XW=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new Mo(e,"ui-settings"):null,r="contents-view";Fc.set(await n?.get(r)??{}),Fc.subscribe(i=>{(async()=>{try{Dn(i,await n?.get(r))||await n?.set(r,i)}catch{}})()}),di.subscribe(i=>{const{name:s}=te(zn)??{},o=te(Fc)?.[s??""]??{};s&&!Dn(i,o)&&Fc.update(a=>({...a,[s]:i}))})};Pn.subscribe(t=>{t&&!te(Fc)&&XW(t)}),nl.subscribe(t=>{Oc.set([]),te(St).devModeEnabled&&console.info("listedEntries",t)}),zn.subscribe(t=>{t&&te(St).devModeEnabled&&console.info("selectedCollection",t)});var QW=F('<span role="none"><!></span>'),e7=F("<!> <!> <!>",1);function t7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(nl,"$listedEntries",n),s=()=>z(Oc,"$selectedEntries",n),o=c=>{Oc.update(u=>{const d=u.indexOf(e.entry);return c&&d===-1&&u.push(e.entry),!c&&d>-1&&u.splice(d,1),u})},a=x(()=>i().indexOf(e.entry));au(t,{get"aria-rowindex"(){return l(a)},onChange:c=>{o(c.detail.selected)},onclick:()=>{jn(`/collections/${e.collection.name}/entries/${e.entry.subPath}`)},children:(c,u)=>{var d=e7(),h=M(d);si(h,{class:"checkbox",children:(m,b)=>{const _=x(()=>s().includes(e.entry));ou(m,{role:"none",tabindex:"-1",get checked(){return l(_)},onChange:({detail:{checked:v}})=>{o(v)}})},$$slots:{default:!0}});var f=D(h,2);{var p=m=>{si(m,{class:"image",children:(b,_)=>{var v=V(),y=M(v);lr(y,()=>AA(e.collection,e.entry),null,(w,k)=>{var S=V(),C=M(S);{var E=A=>{const O=x(()=>e.viewType==="list"?"icon":"tile");uy(A,{get src(){return l(k)},get variant(){return l(O)},cover:!0})};U(C,A=>{l(k)&&A(E)})}T(w,S)}),T(b,v)},$$slots:{default:!0}})};U(f,m=>{e.collection._thumbnailFieldNames.length&&m(p)})}var g=D(f,2);si(g,{class:"title",children:(m,b)=>{var _=QW(),v=R(_);ur(v,()=>Ho(e.collection,e.entry,{useTemplate:!0,allowMarkdown:!0})),T(m,_)},$$slots:{default:!0}}),T(c,d)},$$slots:{default:!0}}),oe(),r()}var n7=F('<span role="none"> </span>'),r7=F('<span role="none"> </span> <!>',1),i7=F('<span role="none"> </span>');function s7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(di,"$currentView",n),o=()=>z(_y,"$entryGroups",n),a=()=>z(le,"$_",n),c=()=>z(nl,"$listedEntries",n),u=x(i),d=x(()=>s().type),h=x(()=>o().map(({entries:p})=>p).flat(1)),f=x(()=>l(u)?.files?a()("file_list"):a()("entry_list"));dy(t,{get"aria-label"(){return l(f)},children:(p,g)=>{var m=V(),b=M(m);{var _=y=>{var w=V(),k=M(w);{var S=E=>{const A=x(()=>{const{defaultLocale:$}=l(u)._i18n;return{defaultLocale:$}}),O=x(()=>a()("entries"));Dd(E,{get viewType(){return l(d)},id:"entry-list",get"aria-label"(){return l(O)},get"aria-rowcount"(){return c().length},children:($,N)=>{var I=V(),j=M(I);dt(j,1,o,({name:q,entries:B})=>q,(q,B)=>{let W=()=>l(B).name,G=()=>l(B).entries;const J=x(()=>W()!=="*"?W():void 0);kx(q,{get label(){return l(J)},children:(ne,K)=>{const Y=x(()=>G().filter(({locales:re})=>!!(re[l(A).defaultLocale]??Object.values(re)[0])?.content));tl(ne,{get items(){return l(Y)},itemKey:"id",renderItem:(ce,he=Fe)=>{t7(ce,{get collection(){return l(u)},get entry(){return he()},get viewType(){return l(d)}})},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}),T($,I)},$$slots:{default:!0}})},C=E=>{var A=V(),O=M(A);{var $=I=>{qr(I,{children:(j,q)=>{var B=n7(),W=R(B);H(G=>Z(W,G),[()=>a()("no_entries_found")]),T(j,B)},$$slots:{default:!0}})},N=I=>{qr(I,{children:(j,q)=>{var B=r7(),W=M(B),G=R(W),J=D(W,2);const ne=x(()=>!l(u).create),K=x(()=>a()("create_new_entry"));Xe(J,{variant:"primary",get disabled(){return l(ne)},get label(){return l(K)},onclick:()=>{jn(`/collections/${l(u).name}/new`)},startIcon:re=>{nt(re,{name:"edit"})},$$slots:{startIcon:!0}}),H(Y=>Z(G,Y),[()=>a()("no_entries_created")]),T(j,B)},$$slots:{default:!0}})};U(O,I=>{c().length?I($):I(N,!1)},!0)}T(E,A)};U(k,E=>{l(h).length?E(S):E(C,!1)})}T(y,w)},v=y=>{qr(y,{children:(w,k)=>{var S=i7(),C=R(S);H(E=>Z(C,E),[()=>a()("collection_not_found")]),T(w,S)},$$slots:{default:!0}})};U(b,y=>{l(u)?y(_):y(v,!1)})}T(p,m)},$$slots:{default:!0}}),oe(),r()}var o7=F('<span role="none"> </span>');function a7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(zn,"$selectedCollection",n),o=x(()=>i()("file_list"));dy(t,{get"aria-label"(){return l(o)},children:(a,c)=>{var u=V(),d=M(u);{var h=p=>{const g=x(()=>i()("files"));Dd(p,{viewType:"list",get"aria-label"(){return l(g)},get"aria-rowcount"(){return s().files.length},children:(m,b)=>{tl(m,{get items(){return s().files},itemKey:"name",renderItem:(v,y)=>{let w=()=>y?.().name,k=()=>y?.().label;au(v,{onclick:()=>{jn(`/collections/${s().name}/entries/${w()}`)},children:(S,C)=>{si(S,{class:"title",children:(E,A)=>{var O=We();H(()=>Z(O,k()||w())),T(E,O)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{renderItem:!0}})},$$slots:{default:!0}})},f=p=>{qr(p,{children:(g,m)=>{var b=o7(),_=R(b);H(v=>Z(_,v),[()=>i()("no_files_in_collection")]),T(g,b)},$$slots:{default:!0}})};U(d,p=>{s()?.files?.length?p(h):p(f,!1)})}T(a,u)},$$slots:{default:!0}}),oe(),r()}var l7=F('<span class="count"> </span>'),c7=F('<div role="none" class="primary-sidebar"><!></div>');function u7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Cn,"$appLocale",n),s=()=>z(_t,"$siteConfig",n),o=()=>z(le,"$_",n),a=()=>z(zn,"$selectedCollection",n),c=()=>z(ei,"$allEntries",n),u=x(()=>Intl.NumberFormat(i()??void 0)),d=x(()=>s()?.collections.filter(({hide:g})=>!g)??[]);var h=c7(),f=R(h);const p=x(()=>o()("collections"));lu(f,{get"aria-label"(){return l(p)},"aria-controls":"collection-container",children:(g,m)=>{var b=V(),_=M(b);dt(_,17,()=>l(d),({name:v,label:y,icon:w,files:k,divider:S=!1})=>v,(v,y)=>{let w=()=>l(y).name,k=()=>l(y).label,S=()=>l(y).icon,C=()=>l(y).files,E=Ge(()=>tt(l(y).divider,!1));var A=V(),O=M(A);{var $=I=>{Sr(I,{})},N=I=>{const j=x(()=>k()||w()),q=x(()=>a()?.name===w());fr(I,{get label(){return l(j)},get selected(){return l(q)},onSelect:()=>{jn(`/collections/${w()}`)},startIcon:G=>{const J=x(()=>S()||"edit_note");nt(G,{get name(){return l(J)}})},endIcon:G=>{var J=V(),ne=M(J);hs(ne,c,K=>{var Y=V(),re=M(Y);lr(re,()=>dn(0),null,ce=>{var he=l7();const Q=x(()=>(C()??Wo(w())).length);var X=R(he);H((de,ye)=>{Se(he,"aria-label",`(${de??""})`),Z(X,ye)},[()=>o()(l(Q)>1?"many_entries":l(Q)===1?"one_entry":"no_entries",{values:{count:l(Q)}}),()=>l(u).format(l(Q))]),T(ce,he)}),T(K,Y)}),T(G,J)},$$slots:{startIcon:!0,endIcon:!0}})};U(O,I=>{l(E)?I($):I(N,!1)})}T(v,A)}),T(g,b)},$$slots:{default:!0}}),T(t,h),oe(),r()}function d7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Oc,"$selectedEntries",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(le,"$_",n),a=()=>z(nl,"$listedEntries",n);let c=P(e,"open",15,!1);const u=x(()=>{if(i().length&&s()?._assetFolder?.entryRelative){const f=s().name;return i().map(p=>PA({entry:p,collectionName:f,relative:!0})).flat(1)}return[]}),d=x(()=>i().length===1?o()("delete_entry"):o()("delete_entries")),h=x(()=>o()("delete"));kl(t,{get title(){return l(d)},get okLabel(){return l(h)},onOk:()=>{TC(i().map(({id:f})=>f),l(u).map(({path:f})=>f))},get open(){return c()},set open(f){c(f)},children:(f,p)=>{var g=V(),m=M(g);{var b=v=>{var y=We();H(w=>Z(y,w),[()=>o()(l(u).length?"confirm_deleting_selected_entry_with_assets":"confirm_deleting_selected_entry")]),T(v,y)},_=v=>{var y=V(),w=M(y);{var k=C=>{var E=We();H(A=>Z(E,A),[()=>o()(l(u).length?"confirm_deleting_all_entries_with_assets":"confirm_deleting_all_entries")]),T(C,E)},S=C=>{var E=We();H(A=>Z(E,A),[()=>o()(l(u).length?"confirm_deleting_selected_entries_with_assets":"confirm_deleting_selected_entries",{values:{count:i().length}})]),T(C,E)};U(w,C=>{i().length===a().length?C(k):C(S,!1)},!0)}T(v,y)};U(m,v=>{i().length===1?v(b):v(_,!1)})}T(f,g)},$$slots:{default:!0}}),oe(),r()}var f7=F("<!> <!>",1),h7=F('<h2 role="none"> </h2> <div role="none" class="description svelte-1koahme"><!></div> <!> <!>',1),p7=F("<!> <!>",1);const g7={hash:"svelte-1koahme",code:".description.svelte-1koahme {flex:auto;font-size:var(--sui-font-size-small);opacity:0.8;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function m7(t,e){se(e,!0),Te(t,g7);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(le,"$_",n),o=()=>z(Oc,"$selectedEntries",n);let a=ae(!1);const c=w=>oi.sanitize(At.parseInline(w),{ALLOWED_TAGS:["strong","em","del","code","a"],ALLOWED_ATTR:["href"]}),u=x(()=>i()?.name),d=x(()=>i()?.label),h=x(()=>i()?.description),f=x(()=>i()?.files),p=x(()=>i()?.create??!1),g=x(()=>i()?.delete??!0),m=x(()=>l(d)||l(u)||"");var b=p7(),_=M(b);{var v=w=>{const k=x(()=>s()("collection"));Ks(w,{variant:"primary",get"aria-label"(){return l(k)},children:(S,C)=>{var E=h7(),A=M(E),O=R(A),$=D(A,2),N=R($);ur(N,()=>c(l(h)||""));var I=D($,2);Wr(I,{flex:!0});var j=D(I,2);{var q=B=>{var W=f7(),G=M(W);const J=x(()=>s()("delete")),ne=x(()=>o().length===1?s()("delete_selected_entry"):s()("delete_selected_entries")),K=x(()=>!o().length||!l(g));Xe(G,{variant:"ghost",get label(){return l(J)},get"aria-label"(){return l(ne)},get disabled(){return l(K)},onclick:()=>{L(a,!0)}});var Y=D(G,2);const re=x(()=>!l(p)),ce=x(()=>s()("create")),he=x(()=>s()("create_new_entry"));Xe(Y,{variant:"primary",get disabled(){return l(re)},get label(){return l(ce)},get"aria-label"(){return l(he)},keyShortcuts:"Accel+E",onclick:()=>{jn(`/collections/${l(u)}/new`)},startIcon:X=>{nt(X,{name:"edit"})},$$slots:{startIcon:!0}}),T(B,W)};U(j,B=>{l(f)||B(q)})}H(()=>Z(O,l(m))),T(S,E)},$$slots:{default:!0}})};U(_,w=>{i()&&w(v)})}var y=D(_,2);d7(y,{get open(){return l(a)},set open(w){L(a,ie(w))}}),T(t,b),oe(),r()}function v7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(di,"$currentView",n),o=()=>z(le,"$_",n),a=()=>z(Qt,"$allAssets",n),c=x(()=>i()?._assetFolder?.internalPath),u=x(()=>i()?._assetFolder?.entryRelative),d=x(()=>!!l(u));var h=V(),f=M(h);{var p=g=>{const m=x(()=>!s().showMedia),b=x(()=>o()("collection_assets"));mr(g,{id:"collection-assets",class:"secondary-sidebar",get hidden(){return l(m)},get"aria-label"(){return l(b)},children:(_,v)=>{Rd(_,{get disabled(){return l(d)},multiple:!0,onSelect:({files:y})=>{ot(Ps,{folder:l(c),files:y})},children:(y,w)=>{const k=x(()=>a().filter(({folder:S})=>l(c)===S));uA(y,{get assets(){return l(k)},onSelect:({asset:S})=>{jn(`/assets/${S.path}`)}})},$$slots:{default:!0}})},$$slots:{default:!0}})};U(f,g=>{l(c)&&g(p)})}T(t,h),oe(),r()}var b7=F("<!> <!>",1);function _7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(e.currentView,"$currentView",n);let o=P(e,"label",3,""),a=P(e,"disabled",3,!1),c=P(e,"noneLabel",3,""),u=P(e,"groups",19,()=>[]);const d=x(()=>o()||i()("group"));kr(t,{variant:"ghost",get label(){return l(d)},get disabled(){return a()},popupPosition:"bottom-right",popup:f=>{const p=x(()=>i()("grouping_options"));hr(f,{get"aria-label"(){return l(p)},get"aria-controls"(){return e["aria-controls"]},children:(g,m)=>{var b=b7(),_=M(b);const v=x(()=>c()||i()("sort_keys.none")),y=x(()=>!s().group);cu(_,{get label(){return l(v)},get checked(){return l(y)},onSelect:()=>{e.currentView.update(k=>({...k,group:void 0}))}});var w=D(_,2);dt(w,17,u,cr,(k,S)=>{let C=()=>l(S).label,E=()=>l(S).field,A=()=>l(S).pattern;const O=x(()=>s().group?.field===E()&&s().group.pattern===A());cu(k,{get label(){return C()},get checked(){return l(O)},onSelect:()=>{e.currentView.update($=>({...$,group:{field:E(),pattern:A()}}))}})}),T(g,b)},$$slots:{default:!0}})},$$slots:{popup:!0}}),oe(),r()}var y7=F("<!> <!> <!> <!> <!> <!> <!> <!>",1);function w7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(nl,"$listedEntries",n),o=()=>z(le,"$_",n),a=()=>z(_y,"$entryGroups",n),c=()=>z(ZW,"$sortFields",n),u=()=>z(di,"$currentView",n),d=x(()=>i()?._type==="entry"?i():void 0),h=x(()=>l(d)?.name),f=x(()=>l(d)?._thumbnailFieldNames??[]),p=x(()=>!!s().length),g=x(()=>s().length>1);var m=V(),b=M(m);{var _=v=>{const y=x(()=>o()("entry_list"));Ks(v,{variant:"secondary",get"aria-label"(){return l(y)},children:(w,k)=>{var S=y7(),C=M(S);const E=x(()=>a().map(({entries:re})=>re).flat(1));GC(C,{get allItems(){return l(E)},selectedItems:Oc});var A=D(C,2);Wr(A,{flex:!0});var O=D(A,2);const $=x(()=>!l(g)||!c().length);KC(O,{get disabled(){return l($)},currentView:di,get fields(){return c()},get collectionName(){return l(h)},"aria-controls":"entry-list"});var N=D(O,2);{var I=re=>{const ce=x(()=>!l(g));WC(re,{get disabled(){return l(ce)},currentView:di,get filters(){return l(d).view_filters},multiple:!0,"aria-controls":"entry-list"})};U(N,re=>{l(d).view_filters?.length&&re(I)})}var j=D(N,2);{var q=re=>{const ce=x(()=>!l(g));_7(re,{get disabled(){return l(ce)},currentView:di,get groups(){return l(d).view_groups},"aria-controls":"entry-list"})};U(j,re=>{l(d).view_groups?.length&&re(q)})}var B=D(j,2);const W=x(()=>!l(p)||!l(f).length);fy(B,{get disabled(){return l(W)},currentView:di,"aria-controls":"entry-list"});var G=D(B,2);Sr(G,{orientation:"vertical"});var J=D(G,2);const ne=x(()=>!l(p)||!l(d)._assetFolder),K=x(()=>!!u().showMedia),Y=x(()=>o()(u().showMedia?"hide_assets":"show_assets"));Xe(J,{variant:"ghost",iconic:!0,get disabled(){return l(ne)},get pressed(){return l(K)},"aria-controls":"collection-assets",get"aria-expanded"(){return u().showMedia},get"aria-label"(){return l(Y)},onclick:()=>{di.update(ce=>({...ce,showMedia:!u().showMedia}))},startIcon:ce=>{nt(ce,{name:"photo_library"})},$$slots:{startIcon:!0}}),T(w,S)},$$slots:{default:!0}})};U(b,v=>{l(d)&&v(_)})}T(t,m),oe(),r()}var x7=F("<!> <!> <!> <!>",1);function k7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(zn,"$selectedCollection",n),s=()=>z(le,"$_",n),o=()=>z(nl,"$listedEntries",n),a=()=>z($d,"$contentUpdatesToast",n),c=/^\/collections\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?$/,u=x(()=>i()?.files?a7:s7),d=()=>{const{path:_,params:v}=Ld(),y=_.match(c);if(!y?.groups)return;const{_collectionName:w,routeType:k,subPath:S}=y.groups,C=w?Ni(w):void 0;if(!C||C.hide?ot(zn,void 0):i()?.name!==C.name&&ot(zn,C),!C||!i()){ot($s,s()("collection_not_found"));return}const{name:E,label:A,create:O,files:$}=i(),N=A||E,I=$?i()._fileMap:void 0;if(!k){const j=o().length;ot($s,s()(j>1?"viewing_x_collection_many_entries":j===1?"viewing_x_collection_one_entry":"viewing_x_collection_no_entries",{values:{collection:N,count:j}}));return}if(ot(Ya,!0),I){if(k==="entries"&&S){const j=E_(E,S),q=I[S];Nd(j?{collection:C,collectionFile:q,originalEntry:j}:{collection:C,collectionFile:q,originalEntry:{slug:q.name,locales:Object.fromEntries(q._i18n.initialLocales.map(B=>[B,{}]))}}),ot($s,s()("editing_x_collection_file",{values:{collection:N,file:q.label||q.name}}))}}else if(k==="new"&&!S&&O&&(Nd({collection:C,dynamicValues:v}),ot($s,s()("creating_x_collection_entry",{values:{collection:N}}))),k==="entries"&&S){const j=o().find(q=>q.subPath===S);j&&(Nd({collection:C,originalEntry:j}),ot($s,s()("editing_x_collection_entry",{values:{collection:N,entry:Ho(i(),j)}})))}};on(()=>{d()});var h=x7();vi("hashchange",al,()=>{d()});var f=M(h);const p=x(()=>s()("content_library"));Md(f,{class:"content",get"aria-label"(){return l(p)},primarySidebar:y=>{u7(y,{})},main:y=>{const w=x(()=>s()("x_collection",{values:{collection:i()?.label||i()?.name}})),k=x(()=>i()?.description);mr(y,{id:"collection-container",class:"main",get"aria-label"(){return l(w)},get"aria-description"(){return l(k)},children:(S,C)=>{YC(S,{primaryToolbar:N=>{m7(N,{})},secondaryToolbar:N=>{var I=V(),j=M(I);{var q=B=>{w7(B,{})};U(j,B=>{i()?._type==="entry"&&o().length&&B(q)})}T(N,I)},mainContent:N=>{var I=V(),j=M(I);bi(j,()=>l(u),(q,B)=>{B(q,{})}),T(N,I)},secondarySidebar:N=>{v7(N,{})},$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})},$$slots:{default:!0}})},$$slots:{primarySidebar:!0,main:!0}});var g=D(f,2);HW(g,{});var m=D(g,2);Hn(m,{get show(){return a().saved},set show(_){Ct($d,Ee(a).saved=_,Ee(a))},children:(_,v)=>{qn(_,{status:"success",children:(y,w)=>{var k=We();H(S=>Z(k,S),[()=>s()(a().published?"entry_saved_and_published":"entry_saved")]),T(y,k)},$$slots:{default:!0}})},$$slots:{default:!0}});var b=D(m,2);Hn(b,{get show(){return a().deleted},set show(_){Ct($d,Ee(a).deleted=_,Ee(a))},children:(_,v)=>{qn(_,{status:"success",children:(y,w)=>{var k=We();H(S=>Z(k,S),[()=>s()(a().count===1?"entry_deleted":"entries_deleted",{values:{count:a().count}})]),T(y,k)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,h),oe(),r()}function S7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ng,"$translator",n),s=()=>z(Ya,"$showContentOverlay",n),o=()=>z(Od,"$translatorApiKeyDialogState",n),a=()=>z(le,"$_",n),c=()=>z(St,"$prefs",n),u=x(()=>i().serviceId),d=x(()=>i().serviceLabel),h=x(()=>i().developerURL),f=x(()=>i().apiKeyURL),p=x(()=>i().apiKeyPattern);Be(()=>{!s()&&o().show&&(Ct(Od,Ee(o).show=!1,Ee(o)),o().resolve?.())});const g=x(()=>a()(o().multiple?"translate_fields":"translate_field")),m=x(()=>({spellcheck:!1,"aria-label":a()("api_key")}));b$(t,{get title(){return l(g)},showOk:!1,get textboxAttrs(){return l(m)},oninput:b=>{const _=b.target.value.trim();l(p)?.test(_)&&(Ct(St,Ee(c).apiKeys??={},Ee(c)),Ct(St,Ee(c).apiKeys[l(u)]=_,Ee(c)),Ct(Od,Ee(o).show=!1,Ee(o)),o().resolve?.(_))},onCancel:()=>{o().resolve?.()},get open(){return o().show},set open(b){Ct(Od,Ee(o).show=b,Ee(o))},children:(b,_)=>{var v=V(),y=M(v);ur(y,()=>oi.sanitize(a()("prefs.languages.translator.description",{values:{service:l(d),homeHref:`href="${l(h)}"`,apiKeyHref:`href="${l(f)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),T(b,v)},$$slots:{default:!0}}),oe(),r()}function E7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(M_,"$entryParseErrors",n),s=()=>z(le,"$_",n);let o=ae(!!i().length);Hn(t,{get show(){return l(o)},set show(a){L(o,ie(a))},children:(a,c)=>{qn(a,{status:"error",children:(u,d)=>{var h=We();H(f=>Z(h,f),[()=>s()(i().length===1?"entry_parse_error":"entry_parse_errors")]),T(u,h)},$$slots:{default:!0}})},$$slots:{default:!0}}),oe(),r()}var T7=F('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>');function C7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(St,"$prefs",n),s=()=>z(le,"$_",n);P(e,"onChange",3,void 0);let o=ae(!0);Be(()=>{L(o,ie(i().underlineLinks??!0))}),Be(()=>{i().underlineLinks!==l(o)&&Ct(St,Ee(i).underlineLinks=l(o),Ee(i))}),Sl(t,{id:"prefs-tab-accessibility",children:(a,c)=>{var u=T7(),d=R(u),h=R(d),f=D(d,2),p=R(f),g=D(f,2),m=R(g);const b=x(()=>s()("prefs.accessibility.underline_links.switch_label"));du(m,{get label(){return l(b)},get checked(){return l(o)},set checked(_){L(o,ie(_))}}),H((_,v)=>{Z(h,_),Z(p,v)},[()=>s()("prefs.accessibility.underline_links.title"),()=>s()("prefs.accessibility.underline_links.description")]),T(a,u)},$$slots:{default:!0}}),oe(),r()}var A7=F('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>'),P7=F('<!> <section><h4> </h4> <p> </p> <div role="none"><!></div></section>',1);function O7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(St,"$prefs",n),o=()=>z(le,"$_",n);let a=P(e,"onChange",3,void 0);const c=x(()=>i()?.backend.automatic_deployments);let u=ae(!1);Be(()=>{L(u,ie(s().devModeEnabled??!1))}),Be(()=>{s().devModeEnabled!==l(u)&&Ct(St,Ee(s).devModeEnabled=l(u),Ee(s))}),Sl(t,{id:"prefs-tab-advanced",children:(d,h)=>{var f=P7(),p=M(f);{var g=C=>{var E=A7(),A=R(E),O=R(A),$=D(A,2),N=R($),I=D($,2),j=R(I);const q=x(()=>o()("prefs.advanced.deploy_hook.field_label"));An(j,{flex:!0,get label(){return l(q)},onchange:()=>{a()?.({message:o()(s().deployHookURL?"prefs.advanced.deploy_hook.url_saved":"prefs.advanced.deploy_hook.url_removed")})},get value(){return s().deployHookURL},set value(B){Ct(St,Ee(s).deployHookURL=B,Ee(s))}}),H((B,W)=>{Z(O,B),Z(N,W)},[()=>o()("prefs.advanced.deploy_hook.title"),()=>o()("prefs.advanced.deploy_hook.description")]),T(C,E)};U(p,C=>{typeof l(c)=="boolean"&&C(g)})}var m=D(p,2),b=R(m),_=R(b),v=D(b,2),y=R(v),w=D(v,2),k=R(w);const S=x(()=>o()("prefs.advanced.developer_mode.switch_label"));du(k,{get label(){return l(S)},get checked(){return l(u)},set checked(C){L(u,ie(C))}}),H((C,E)=>{Z(_,C),Z(y,E)},[()=>o()("prefs.advanced.developer_mode.title"),()=>o()("prefs.advanced.developer_mode.description")]),T(d,f)},$$slots:{default:!0}}),oe(),r()}var L7=F('<section><h4> </h4> <div role="none"><!></div></section>');function $7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(St,"$prefs",n);P(e,"onChange",3,void 0),Sl(t,{id:"prefs-tab-appearance",children:(o,a)=>{var c=L7(),u=R(c),d=R(u),h=D(u,2),f=R(h);const p=x(()=>i()("prefs.appearance.select_theme"));Tf(f,{get"aria-label"(){return l(p)},onChange:g=>{ot(St,{...s(),theme:g.detail.value})},children:(g,m)=>{var b=V(),_=M(b);dt(_,16,()=>["auto","dark","light"],cr,(v,y)=>{const w=x(()=>i()(`prefs.theme.${y}`)),k=x(()=>!s().theme&&y==="auto"||s().theme===y);su(v,{variant:"tertiary",get label(){return l(w)},get value(){return y},get selected(){return l(k)}})}),T(g,b)},$$slots:{default:!0}}),H(g=>Z(d,g),[()=>i()("prefs.appearance.theme")]),T(o,c)},$$slots:{default:!0}}),oe(),r()}var N7=F('<section><h4> </h4> <div role="none"><!></div></section>');function I7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(St,"$prefs",n),s=()=>z(le,"$_",n);P(e,"onChange",3,void 0);let o=ae(!0);Be(()=>{L(o,ie(i().closeOnSave??!0))}),Be(()=>{i().closeOnSave!==l(o)&&Ct(St,Ee(i).closeOnSave=l(o),Ee(i))}),Sl(t,{id:"prefs-tab-contents",children:(a,c)=>{var u=N7(),d=R(u),h=R(d),f=D(d,2),p=R(f);const g=x(()=>s()("prefs.contents.editor.close_on_save.switch_label"));du(p,{get label(){return l(g)},get checked(){return l(o)},set checked(m){L(o,ie(m))}}),H(m=>Z(h,m),[()=>s()("prefs.contents.editor.title")]),T(a,u)},$$slots:{default:!0}}),oe(),r()}var R7=F('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>'),D7=F('<section><h4> </h4> <div role="none"><!></div></section> <!>',1);function M7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(Cn,"$appLocale",n),o=()=>z(St,"$prefs",n),a=()=>z(cx,"$appLocales",n),c=()=>z(_t,"$siteConfig",n);let u=P(e,"onChange",3,void 0);Sl(t,{id:"prefs-tab-languages",children:(d,h)=>{var f=D7(),p=M(f),g=R(p),m=R(g),b=D(g,2),_=R(b);hs(_,s,w=>{const k=x(()=>i()("prefs.languages.ui_language.select_language")),S=x(()=>s()??void 0);uu(w,{get"aria-label"(){return l(k)},get value(){return l(S)},onChange:C=>{ot(St,{...o(),locale:C.detail.value})},children:(C,E)=>{var A=V(),O=M(A);dt(O,1,a,cr,($,N)=>{const I=x(()=>Zs(l(N))),j=x(()=>l(N)===s());fr($,{get label(){return l(I)},get value(){return l(N)},get selected(){return l(j)}})}),T(C,A)},$$slots:{default:!0}})});var v=D(p,2);{var y=w=>{var k=V(),S=M(k);dt(S,17,()=>Object.entries(eV),([C,E])=>C,(C,E)=>{let A=()=>l(E)[0],O=()=>l(E)[1];var $=R7();const N=x(()=>{const{serviceLabel:ne,developerURL:K,apiKeyURL:Y}=O();return{serviceLabel:ne,developerURL:K,apiKeyURL:Y}});var I=R($),j=R(I),q=D(I,2),B=R(q);ur(B,()=>oi.sanitize(i()("prefs.languages.translator.description",{values:{service:l(N).serviceLabel,homeHref:`href="${l(N).developerURL}"`,apiKeyHref:`href="${l(N).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var W=D(q,2),G=R(W);{var J=ne=>{const K=x(()=>i()("prefs.languages.translator.field_label",{values:{service:l(N).serviceLabel}}));An(ne,{flex:!0,spellcheck:"false",get"aria-label"(){return l(K)},onchange:()=>{u()?.({message:i()(o().apiKeys?.[A()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return o().apiKeys[A()]},set value(Y){Ct(St,Ee(o).apiKeys[A()]=Y,Ee(o))}})};U(G,ne=>{o().apiKeys&&ne(J)})}H(ne=>Z(j,ne),[()=>i()("prefs.languages.translator.title",{values:{service:l(N).serviceLabel}})]),T(C,$)}),T(w,k)};U(v,w=>{(c()?.i18n?.locales?.length??0)>1&&w(y)})}H(w=>Z(m,w),[()=>i()("prefs.languages.ui_language.title")]),T(d,f)},$$slots:{default:!0}}),oe(),r()}var F7=F('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>');function z7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(St,"$prefs",n);let o=P(e,"onChange",3,void 0);Sl(t,{id:"prefs-tab-media",children:(a,c)=>{var u=V(),d=M(u);dt(d,17,()=>Object.entries(zd),([h,f])=>h,(h,f)=>{let p=()=>l(f)[0],g=()=>l(f)[1];var m=F7();const b=x(()=>{const{serviceLabel:E,developerURL:A,apiKeyURL:O}=g();return{serviceLabel:E,developerURL:A,apiKeyURL:O}});var _=R(m),v=R(_),y=D(_,2),w=R(y);ur(w,()=>oi.sanitize(i()("prefs.media.stock_photos.description",{values:{service:l(b).serviceLabel,homeHref:`href="${l(b).developerURL}"`,apiKeyHref:`href="${l(b).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var k=D(y,2),S=R(k);{var C=E=>{const A=x(()=>i()("prefs.media.stock_photos.field_label",{values:{service:l(b).serviceLabel}}));An(E,{flex:!0,spellcheck:"false",get"aria-label"(){return l(A)},onchange:()=>{o()?.({message:i()(s().apiKeys?.[p()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return s().apiKeys[p()]},set value(O){Ct(St,Ee(s).apiKeys[p()]=O,Ee(s))}})};U(S,E=>{s().apiKeys&&E(C)})}H(E=>Z(v,E),[()=>i()("prefs.media.stock_photos.title",{values:{service:l(b).serviceLabel}})]),T(h,m)}),T(a,u)},$$slots:{default:!0}}),oe(),r()}var j7=F('<div role="none" class="wrapper svelte-z6esgm"><!> <!></div>'),U7=F("<!> <!>",1);const B7={hash:"svelte-z6esgm",code:".wrapper.svelte-z6esgm {display:flex;}.wrapper.svelte-z6esgm .tab-list {flex:none;}.wrapper.svelte-z6esgm .tab-panel {flex:auto;border-width:0;}.wrapper.svelte-z6esgm .tab-panel section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-z6esgm .tab-panel p {margin-top:0;}.wrapper.svelte-z6esgm .tab-panel h4 {font-size:inherit;}.wrapper.svelte-z6esgm .tab-panel h4 ~ div {margin:8px 0 0;}.wrapper.svelte-z6esgm .tab-panel h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function q7(t,e){se(e,!0),Te(t,B7);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"open",15,!1),o=P(e,"onClose",3,void 0),a=ae("appearance"),c=ae(""),u=ae(!1);const d=[{key:"appearance",icon:"palette",component:$7},{key:"languages",icon:"language",component:M7},{key:"contents",icon:"library_books",component:I7},{key:"media",icon:"photo_library",component:z7},{key:"accessibility",icon:"accessibility_new",component:C7},{key:"advanced",icon:"build",component:O7}];var h=U7(),f=M(h);const p=x(()=>i()("settings"));ps(f,{get title(){return l(p)},showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{o()?.()},get open(){return s()},set open(m){s(m)},children:(m,b)=>{var _=j7(),v=R(_);const y=x(()=>i()("categories"));$N(v,{orientation:"vertical",get"aria-label"(){return l(y)},children:(k,S)=>{var C=V(),E=M(C);dt(E,17,()=>d,({key:A,icon:O})=>A,(A,O)=>{let $=()=>l(O).key,N=()=>l(O).icon;const I=x(()=>i()(`prefs.${$()}.title`)),j=x(()=>$()===l(a));RN(A,{get label(){return l(I)},get selected(){return l(j)},get"aria-controls"(){return`prefs-tab-${$()??""}`},onSelect:()=>{L(a,ie($()))},startIcon:B=>{nt(B,{get name(){return N()}})},$$slots:{startIcon:!0}})}),T(k,C)},$$slots:{default:!0}});var w=D(v,2);dt(w,17,()=>d,({key:k,component:S})=>k,(k,S)=>{let C=()=>l(S).component;var E=V(),A=M(E);bi(A,C,(O,$)=>{$(O,{onChange:({message:N})=>{L(c,ie(N)),L(u,!0)}})}),T(k,E)}),T(m,_)},$$slots:{default:!0}});var g=D(f,2);Hn(g,{get show(){return l(u)},set show(m){L(u,ie(m))},children:(m,b)=>{qn(m,{status:"success",children:(_,v)=>{var y=We();H(()=>Z(y,l(c))),T(_,y)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(t,h),oe(),r()}var H7=F('<img class="avatar svelte-xssn1c" loading="lazy" alt="">'),V7=F("<!> <!>",1),W7=F("<!> <!> <!> <!> <!> <!> <!> <!>",1),G7=F('<div role="none" class="wrapper svelte-xssn1c"><!></div> <!>',1);const K7={hash:"svelte-xssn1c",code:".wrapper.svelte-xssn1c {display:contents;}.wrapper.svelte-xssn1c button.avatar {border-width:0;background-color:transparent;}.avatar.svelte-xssn1c {width:32px;height:32px;border-radius:32px;object-fit:cover;}"};function Y7(t,e){se(e,!0),Te(t,K7);const[n,r]=me(),i=()=>z(ui,"$user",n),s=()=>z(Ls,"$backendName",n),o=()=>z(le,"$_",n),a=()=>z(St,"$prefs",n),c=()=>z(Pn,"$backend",n);let u=ae(void 0),d=ae(!1);const h=x(()=>!!i()?.avatarURL),f=x(()=>s()==="local");var p=G7(),g=M(p),m=R(g);const b=x(()=>l(h)?"avatar":""),_=x(()=>o()("show_account_menu"));Tt(kr(m,{variant:"ghost",iconic:!0,get class(){return l(b)},popupPosition:"bottom-right",get"aria-label"(){return l(_)},endIcon:k=>{var S=V(),C=M(S);{var E=O=>{var $=H7();H(()=>Se($,"src",i()?.avatarURL)),T(O,$)},A=O=>{nt(O,{name:"account_circle"})};U(C,O=>{l(h)?O(E):O(A,!1)})}T(k,S)},popup:k=>{const S=x(()=>o()("account"));hr(k,{get"aria-label"(){return l(S)},children:(C,E)=>{var A=W7(),O=M(A);const $=x(()=>l(f)?o()("working_with_local_repo"):o()("signed_in_as_x",{values:{name:i()?.login}}));$t(O,{get label(){return l($)},get disabled(){return l(f)},onclick:()=>{window.open(i()?.profileURL,"_blank")}});var N=D(O,2);Sr(N,{});var I=D(N,2);const j=x(()=>o()("live_site"));$t(I,{get label(){return l(j)},onclick:()=>{xC()}});var q=D(I,2);{var B=re=>{var ce=V7(),he=M(ce);const Q=x(()=>o()("git_repository")),X=x(()=>!c()?.repository?.treeBaseURL);$t(he,{get label(){return l(Q)},get disabled(){return l(X)},onclick:()=>{window.open(c()?.repository?.treeBaseURL)}});var de=D(he,2);const ye=x(()=>o()("site_config"));$t(de,{get label(){return l(ye)},onclick:()=>{jn("/config")}}),T(re,ce)};U(q,re=>{a().devModeEnabled&&re(B)})}var W=D(q,2);Sr(W,{});var G=D(W,2);const J=x(()=>o()("settings"));$t(G,{get label(){return l(J)},onclick:()=>{L(d,!0)}});var ne=D(G,2);Sr(ne,{});var K=D(ne,2);const Y=x(()=>o()("sign_out"));$t(K,{get label(){return l(Y)},onclick:async()=>{window.requestAnimationFrame(()=>{G8()})}}),T(C,A)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}}),k=>L(u,ie(k)),()=>l(u));var v=D(g,2);q7(v,{onClose:()=>{l(u)?.focus()},get open(){return l(d)},set open(y){L(d,ie(y))}}),T(t,p),oe(),r()}var J7=F("<!> <!>",1),Z7=F("<!> <!>",1);function X7(t,e){se(e,!0);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(le,"$_",n),o=x(()=>(i()?.collections??[]).filter(({folder:c,create:u=!1,hide:d=!1,divider:h=!1})=>typeof c=="string"&&u&&!d&&!h)),a=x(()=>s()("create_entry_or_assets"));kr(t,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(a)},endIcon:d=>{nt(d,{name:"add"})},popup:d=>{const h=x(()=>s()("create_entry_or_assets"));hr(d,{get"aria-label"(){return l(h)},children:(f,p)=>{var g=Z7(),m=M(g);{var b=y=>{var w=J7(),k=M(w);dt(k,17,()=>l(o),({name:C,label:E,label_singular:A})=>C,(C,E)=>{let A=()=>l(E).name,O=()=>l(E).label,$=()=>l(E).label_singular;const N=x(()=>$()||O()||A());$t(C,{get label(){return l(N)},onclick:()=>{jn(`/collections/${A()}/new`)}})});var S=D(k,2);Sr(S,{}),T(y,w)};U(m,y=>{l(o).length&&y(b)})}var _=D(m,2);const v=x(()=>s()("assets"));$t(_,{get label(){return l(v)},onclick:async()=>{jn("/assets"),await dn(100),ot(Qa,!0)}}),T(f,g)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}}),oe(),r()}var Q7=F('<kbd class="svelte-h10dbf"> </kbd>'),eG=F("<!> <!>",1),tG=F('<div role="none" class="wrapper svelte-h10dbf"><!></div>');const nG={hash:"svelte-h10dbf",code:".wrapper.svelte-h10dbf {display:contents;}.wrapper.svelte-h10dbf .table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-h10dbf .table-row:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-h10dbf .table-row .feature {flex:auto;}.wrapper.svelte-h10dbf .table-row .keys {display:flex;gap:8px;}kbd.svelte-h10dbf {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 rG(t,e){se(e,!0),Te(t,nG);const[n,r]=me(),i=()=>z(le,"$_",n);let s=P(e,"open",15,!1),o=P(e,"onClose",3,void 0);const a=[{feature:"view_content_library",keys:"Alt+1"},{feature:"view_asset_library",keys:"Alt+2"},{feature:"search",keys:"Accel+F"},{feature:"create_entry",keys:"Accel+E"},{feature:"save_entry",keys:"Accel+S"},{feature:"cancel_editing",keys:"Escape"}];let c=ae("Ctrl");on(()=>{(navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"))&&L(c,"⌘")});const u=x(()=>i()("help.keyboard_shortcuts"));ps(t,{get title(){return l(u)},showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{o()?.()},get open(){return s()},set open(d){s(d)},children:(d,h)=>{var f=tG(),p=R(f);const g=x(()=>i()("help.keyboard_shortcuts"));PN(p,{get"aria-label"(){return l(g)},children:(m,b)=>{var _=V(),v=M(_);dt(v,17,()=>a,({feature:y,keys:w})=>w,(y,w)=>{let k=()=>l(w).feature,S=()=>l(w).keys;TN(y,{children:(C,E)=>{var A=eG(),O=M(A);Sx(O,{class:"feature",children:(N,I)=>{var j=We();H(q=>Z(j,q),[()=>i()(`keyboard_shortcuts_.${k()}`)]),T(N,j)},$$slots:{default:!0}});var $=D(O,2);Sx($,{class:"keys",children:(N,I)=>{var j=V(),q=M(j);dt(q,17,()=>S().split("+"),cr,(B,W)=>{var G=Q7(),J=R(G);H(ne=>Z(J,ne),[()=>l(W).replace("Accel",l(c))]),T(B,G)}),T(N,j)},$$slots:{default:!0}}),T(C,A)},$$slots:{default:!0}})}),T(m,_)},$$slots:{default:!0}}),T(d,f)},$$slots:{default:!0}}),oe(),r()}var iG=F('<span class="version svelte-69n4ux"></span>'),sG=F("<!> <!> <!> <!> <!> <!> <!> <!> <!>",1),oG=F('<div role="none" class="wrapper svelte-69n4ux"><!></div> <!>',1);const aG={hash:"svelte-69n4ux",code:".wrapper.svelte-69n4ux {display:contents;}.version.svelte-69n4ux {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 lG(t,e){se(e,!0),Te(t,aG);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(St,"$prefs",n);let o=ae(void 0),a=ae(!1);var c=oG(),u=M(c),d=R(u);const h=x(()=>i()("show_help_menu"));Tt(kr(d,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(h)},endIcon:m=>{nt(m,{name:"help"})},popup:m=>{const b=x(()=>i()("help"));hr(m,{get"aria-label"(){return l(b)},children:(_,v)=>{var y=sG(),w=M(y);{var k=ne=>{const K=x(()=>i()("keyboard_shortcuts"));$t(ne,{get label(){return l(K)},onclick:()=>{L(a,!0)}})};U(w,ne=>{window.matchMedia("(pointer: fine)").matches&&ne(k)})}var S=D(w,2);const C=x(()=>i()("documentation"));$t(S,{get label(){return l(C)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/blob/main/README.md","_blank")}});var E=D(S,2);const A=x(()=>i()("release_notes"));$t(E,{get label(){return l(A)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/releases","_blank")},endIcon:K=>{var Y=V(),re=M(Y);{var ce=he=>{var Q=iG();Q.textContent=`v${ty}`,H(X=>Se(Q,"aria-label",`(${X??""})`),[()=>i()("version_x",{values:{version:ty}})]),T(he,Q)};U(re,he=>{s().devModeEnabled&&he(ce)})}T(K,Y)},$$slots:{endIcon:!0}});var O=D(E,2);Sr(O,{});var $=D(O,2);const N=x(()=>i()("report_issue"));$t($,{get label(){return l(N)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/issues/new?labels=bug","_blank")}});var I=D($,2);const j=x(()=>i()("share_feedback"));$t(I,{get label(){return l(j)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/discussions/new?category=general","_blank")}});var q=D(I,2);const B=x(()=>i()("get_help"));$t(q,{get label(){return l(B)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/discussions/new?category=q-a","_blank")}});var W=D(q,2);Sr(W,{});var G=D(W,2);const J=x(()=>i()("join_discord"));$t(G,{get label(){return l(J)},onclick:()=>{window.open("https://discord.gg/5hwCGqup5b","_blank")}}),T(_,y)},$$slots:{default:!0}})},$$slots:{endIcon:!0,popup:!0}}),m=>L(o,ie(m)),()=>l(o));var f=D(u,2);rG(f,{onClose:()=>{l(o)?.focus()},get open(){return l(a)},set open(p){L(a,ie(p))}}),T(t,c),oe(),r()}function cG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(le,"$_",n),s=x(()=>i()("show_notifications"));Xe(t,{variant:"ghost",iconic:!0,hidden:!0,get"aria-label"(){return l(s)},onclick:()=>{},startIcon:a=>{nt(a,{name:"notifications"})},$$slots:{startIcon:!0}}),oe(),r()}var uG=F('<div role="none" class="wrapper svelte-1wpllk"><!></div>');const dG={hash:"svelte-1wpllk",code:".wrapper.svelte-1wpllk {display:contents;}.wrapper.svelte-1wpllk .sui.select-button-group {gap:4px;}.wrapper.svelte-1wpllk .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}"};function fG(t,e){se(e,!0),Te(t,dG);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(_t,"$siteConfig",n),a=()=>z(Qr,"$selectedAssetFolder",n),c=()=>z(ey,"$selectedPageName",n),u=x(()=>[{key:"collections",label:i()("contents"),icon:"library_books",link:`/collections/${s()?.name??o()?.collections[0].name}`},{key:"assets",label:i()("assets"),icon:"photo_library",link:a()?`/assets/${a().internalPath}`:"/assets"}]);var d=uG(),h=R(d);const f=x(()=>i()("switch_page"));Tf(h,{get"aria-label"(){return l(f)},"aria-controls":"page-container",children:(p,g)=>{var m=V(),b=M(m);dt(b,19,()=>l(u),({key:_,label:v,icon:y,link:w})=>_,(_,v,y)=>{let w=()=>l(v).key,k=()=>l(v).label,S=()=>l(v).icon,C=()=>l(v).link;const E=x(()=>c()===w()),A=x(()=>l(y)+1);su(_,{variant:"ghost",iconic:!0,get selected(){return l(E)},get"aria-label"(){return k()},get keyShortcuts(){return`Alt+${l(A)??""}`},onSelect:()=>{jn(C())},startIcon:$=>{nt($,{get name(){return S()}})},$$slots:{startIcon:!0}})}),T(p,m)},$$slots:{default:!0}}),T(t,d),oe(),r()}var hG=F("<!> <!>",1);function pG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(St,"$prefs",n),o=()=>z(Pn,"$backend",n),a=()=>z(Ls,"$backendName",n),c=()=>z(Jp,"$isLastCommitPublished",n),u=()=>z(le,"$_",n),d=x(()=>i()?.backend.automatic_deployments),h=x(()=>s().deployHookURL),f=x(()=>o()?.triggerDeployment),p=x(()=>a()!=="local"&&typeof l(d)=="boolean"),g=x(()=>(!!l(h)||typeof l(f)=="function")&&!c());let m=ae("info"),b=ae(!1);const _=async()=>{L(m,"info"),L(b,!0);try{const{ok:k,status:S}=l(h)?await fetch(l(h),{method:"POST",mode:"no-cors"}):await l(f)?.()??{};if(!k&&S!==0)throw new Error(`Webhook returned ${S} error`);ot(Jp,!0)}catch(k){L(m,"error"),L(b,!0),console.error(k)}};var v=V(),y=M(v);{var w=k=>{var S=hG(),C=M(S);const E=x(()=>u()("publish_changes")),A=x(()=>!l(g));Xe(C,{variant:"secondary",get label(){return l(E)},get disabled(){return l(A)},onclick:()=>_()});var O=D(C,2);Hn(O,{get show(){return l(b)},set show($){L(b,ie($))},children:($,N)=>{qn($,{get status(){return l(m)},children:(I,j)=>{var q=We();H(B=>Z(q,B),[()=>u()(l(m)==="error"?"publishing_changes_failed":"publishing_changes")]),T(I,q)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(k,S)};U(y,k=>{l(p)&&k(w)})}T(t,v),oe(),r()}var gG=F('<div role="none" class="wrapper svelte-ns8gcu"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></div>');const mG={hash:"svelte-ns8gcu",code:".wrapper.svelte-ns8gcu {display:contents;--sui-textbox-border-width: 0;}"};function vG(t,e){se(e,!0),Te(t,mG);const[n,r]=me(),i=()=>z(Mc,"$searchTerms",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(_t,"$siteConfig",n),a=()=>z(le,"$_",n),c=g=>{const m=!!i(),{path:b}=Ld(),_=b.startsWith("/search/");ot(Mc,g),g?jn(`/search/${g}`,{replaceState:_}):m&&_&&Rc(`/collections/${s()?.name??o()?.collections[0].name}`)};let u=ae(void 0),d=ae(void 0);Be(()=>{l(d)&&i()!==l(d)?.value&&(l(d).value=i())});var h=gG(),f=R(h);const p=x(()=>a()("search_placeholder"));cP(f,()=>({"--sui-textbox-placeholder-text-align":"center"})),Tt(em(f.lastChild,{keyShortcuts:"Accel+F",showInlineLabel:!0,get"aria-label"(){return l(p)},oninput:({target:g})=>{c(g.value.trim())}}),g=>L(d,ie(g)),()=>l(d)),Tt(h,g=>L(u,g),()=>l(u)),T(t,h),oe(),r()}var bG=F('<img loading="lazy" alt="" class="logo svelte-14sy0eb">');const _G={hash:"svelte-14sy0eb",code:"img.svelte-14sy0eb {width:24px;height:24px;object-fit:contain;}"};function yG(t,e){se(e,!0),Te(t,_G);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(le,"$_",n);var o=V(),a=M(o);{var c=u=>{const d=x(()=>s()("visit_live_site"));Xe(u,{variant:"ghost",iconic:!0,get"aria-label"(){return l(d)},onclick:()=>{xC()},children:(h,f)=>{var p=bG();H(()=>Se(p,"src",i().logo_url)),T(h,p)},$$slots:{default:!0}})};U(a,u=>{i()?.logo_url&&u(c)})}T(t,o),oe(),r()}var wG=F('<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>',1),xG=F('<div role="none" class="toolbar-wrapper svelte-ornzx3"><!></div>');const kG={hash:"svelte-ornzx3",code:".toolbar-wrapper.svelte-ornzx3 {display:contents;}.toolbar-wrapper[inert].svelte-ornzx3 {display:none;}.toolbar-wrapper.svelte-ornzx3 > .toolbar .buttons {flex:auto;display:flex;align-items:center;width:50%;}.toolbar-wrapper.svelte-ornzx3 > .toolbar .buttons:last-child {justify-content:flex-end;}.toolbar-wrapper.svelte-ornzx3 > .toolbar .search-bar {flex:none;width:640px;max-width:50%;}"};function SG(t,e){se(e,!0),Te(t,kG);const[n,r]=me(),i=()=>z(wC,"$hasOverlay",n),s=()=>z(le,"$_",n);var o=xG(),a=R(o);const c=x(()=>s()("global"));Ks(a,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var h=wG(),f=M(h),p=R(f);yG(p,{});var g=D(p,2);fG(g,{});var m=D(f,2);vG(m,{});var b=D(m,2),_=R(b);pG(_,{});var v=D(_,2);X7(v,{});var y=D(v,2);cG(y,{});var w=D(y,2);lG(w,{});var k=D(w,2);Y7(k,{}),T(u,h)},$$slots:{default:!0}}),H(()=>o.inert=i()),T(t,o),oe(),r()}var EG=F("<!> <!> <!>",1);function TG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Cn,"$appLocale",n),s=x(()=>e.asset.path),o=x(()=>e.asset.name),a=x(()=>e.asset.folder),c=x(()=>e.asset.kind);au(t,{onclick:()=>{jn(`/assets/${l(s)}`)},children:(u,d)=>{var h=EG(),f=M(h);si(f,{class:"image",children:(m,b)=>{Ns(m,{get kind(){return l(c)},get asset(){return e.asset},variant:"icon",cover:!0})},$$slots:{default:!0}});var p=D(f,2);si(p,{class:"collection",children:(m,b)=>{var _=We();H(v=>Z(_,v),[()=>i()?ly(l(a)):""]),T(m,_)},$$slots:{default:!0}});var g=D(p,2);si(g,{class:"title",children:(m,b)=>{var _=We();H(()=>Z(_,l(o))),T(m,_)},$$slots:{default:!0}}),T(u,h)},$$slots:{default:!0}}),oe(),r()}var CG=F("<!> <!> <!>",1);function AG(t,e){se(e,!0);const n=(a,c)=>{let u=()=>c?.().collection,d=()=>c?.().collectionFile;var h=V();const f=x(()=>{const{defaultLocale:b}=(d()??u())._i18n??Pi;return{defaultLocale:b}}),p=x(()=>{const{content:b}=l(r)[l(f).defaultLocale]??Object.values(l(r))[0]??{};return{content:b}});var g=M(h);{var m=b=>{au(b,{onclick:()=>{jn(`/collections/${u().name}/entries/${d()?.name||l(i)}`)},children:(_,v)=>{var y=CG(),w=M(y);si(w,{class:"image",children:(C,E)=>{var A=V(),O=M(A);{var $=N=>{var I=V(),j=M(I);lr(j,()=>AA(u(),e.entry),null,(q,B)=>{var W=V(),G=M(W);{var J=ne=>{uy(ne,{get src(){return l(B)},variant:"icon",cover:!0})};U(G,ne=>{l(B)&&ne(J)})}T(q,W)}),T(N,I)};U(O,N=>{u()._type==="entry"&&N($)})}T(C,A)},$$slots:{default:!0}});var k=D(w,2);si(k,{class:"collection",children:(C,E)=>{var A=We();H(()=>Z(A,u().label||u().name)),T(C,A)},$$slots:{default:!0}});var S=D(k,2);si(S,{class:"title",children:(C,E)=>{var A=V(),O=M(A);{var $=I=>{var j=We();H(()=>Z(j,d().label||d().name)),T(I,j)},N=I=>{var j=V(),q=M(j);ur(q,()=>Ho(u(),e.entry,{useTemplate:!0,allowMarkdown:!0})),T(I,j)};U(O,I=>{d()?I($):I(N,!1)})}T(C,A)},$$slots:{default:!0}}),T(_,y)},$$slots:{default:!0}})};U(g,b=>{l(p).content&&b(m)})}T(a,h)},r=x(()=>e.entry.locales),i=x(()=>e.entry.subPath);var s=V(),o=M(s);dt(o,17,()=>ao(e.entry),a=>a.name,(a,c)=>{var u=V(),d=M(u);dt(d,17,()=>Vo(l(c),e.entry),h=>h.name,(h,f)=>{n(h,()=>({collection:l(c),collectionFile:l(f)}))},h=>{n(h,()=>({collection:l(c)}))}),T(a,u)}),T(t,s),oe()}var PG=F('<h3 role="none" id="search-results-entries" class="svelte-11iebi8"> </h3> <div role="none" class="svelte-11iebi8"><!></div>',1),OG=F('<h3 role="none" id="search-results-assets" class="svelte-11iebi8"> </h3> <div role="none" class="svelte-11iebi8"><!></div>',1),LG=F('<div role="none" class="wrapper svelte-11iebi8"><header role="none" class="svelte-11iebi8"><h2 role="none" class="svelte-11iebi8"> </h2></header> <div role="none" class="results svelte-11iebi8"><!> <!></div></div>');const $G={hash:"svelte-11iebi8",code:".wrapper.svelte-11iebi8 {display:flex;flex-direction:column;width:100%;}header.svelte-11iebi8 {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}header.svelte-11iebi8 h2:where(.svelte-11iebi8) {font-size:var(--sui-font-size-x-large);}.results.svelte-11iebi8 {flex:auto;display:flex;gap:16px;overflow:hidden;padding:16px;height:100%;}.results.svelte-11iebi8 > .group {flex:auto;display:flex;flex-direction:column;overflow:hidden;width:50%;height:100%;}.results.svelte-11iebi8 h3:where(.svelte-11iebi8) {flex:none;margin:0 0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-large);}.results.svelte-11iebi8 h3:where(.svelte-11iebi8) + div:where(.svelte-11iebi8) {overflow:auto;flex:auto;}"};function NG(t,e){se(e,!0),Te(t,$G);const[n,r]=me(),i=()=>z(le,"$_",n),s=()=>z(Mc,"$searchTerms",n),o=()=>z(lA,"$searchResults",n);var a=LG(),c=R(a),u=R(c),d=R(u),h=D(c,2),f=R(h);mr(f,{"aria-labelledby":"search-results-entries",children:(g,m)=>{var b=PG(),_=M(b),v=R(_),y=D(_,2),w=R(y);{var k=C=>{const E=x(()=>i()("entries"));Dd(C,{viewType:"list",get"aria-label"(){return l(E)},get"aria-rowcount"(){return o().entries.length},children:(A,O)=>{var $=V(),N=M($);hs(N,s,I=>{tl(I,{get items(){return o().entries},itemKey:"id",renderItem:(q,B=Fe)=>{AG(q,{get entry(){return B()}})},$$slots:{renderItem:!0}})}),T(A,$)},$$slots:{default:!0}})},S=C=>{var E=We();H(A=>Z(E,A),[()=>i()("no_entries_found")]),T(C,E)};U(w,C=>{o().entries.length?C(k):C(S,!1)})}H(C=>Z(v,C),[()=>i()("entries")]),T(g,b)},$$slots:{default:!0}});var p=D(f,2);mr(p,{"aria-labelledby":"search-results-assets",children:(g,m)=>{var b=OG(),_=M(b),v=R(_),y=D(_,2),w=R(y);{var k=C=>{const E=x(()=>i()("assets"));Dd(C,{viewType:"list",get"aria-label"(){return l(E)},get"aria-rowcount"(){return o().assets.length},children:(A,O)=>{var $=V(),N=M($);hs(N,s,I=>{tl(I,{get items(){return o().assets},itemKey:"path",renderItem:(q,B=Fe)=>{TG(q,{get asset(){return B()}})},$$slots:{renderItem:!0}})}),T(A,$)},$$slots:{default:!0}})},S=C=>{var E=We();H(A=>Z(E,A),[()=>i()("no_files_found")]),T(C,E)};U(w,C=>{o().assets.length?C(k):C(S,!1)})}H(C=>Z(v,C),[()=>i()("assets")]),T(g,b)},$$slots:{default:!0}}),H(g=>Z(d,g),[()=>i()("search_results_for_x",{values:{terms:s()}})]),T(t,a),oe(),r()}function IG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(Mc,"$searchTerms",n),s=()=>z(lA,"$searchResults",n),o=()=>z(le,"$_",n),a=/^\/search\/(?<terms>.+)$/,c=()=>{const{path:d}=Ld(),{terms:h}=d.match(a)?.groups??{};h&&h!==i()&&ot(Mc,h);const{entries:f,assets:p}=s(),g=f.length,m=p.length;ot($s,o()("viewing_search_results",{values:{terms:i(),entries:g>1?o()("many_entries",{values:{count:g}}):g===1?o()("one_entry"):o()("no_entries"),assets:m>1?o()("many_assets",{values:{count:m}}):m===1?o()("one_asset"):o()("no_assets")}}))};on(()=>{c()}),vi("hashchange",al,()=>{c()});const u=x(()=>o()("search_results_for_x",{values:{terms:i()}}));Md(t,{class:"content",get"aria-label"(){return l(u)},main:h=>{NG(h,{})},$$slots:{main:!0}}),oe(),r()}var RG=F('<header role="none" class="svelte-1lr8kgc"><h3 role="none" id="draft-column-title" class="svelte-1lr8kgc"> </h3></header>'),DG=F('<header role="none" class="svelte-1lr8kgc"><h3 role="none" id="review-column-title" class="svelte-1lr8kgc"> </h3></header>'),MG=F('<header role="none" class="svelte-1lr8kgc"><h3 role="none" id="ready-column-title" class="svelte-1lr8kgc"> </h3></header>'),FG=F('<div role="none" class="columns svelte-1lr8kgc"><!> <!> <!></div>');const zG={hash:"svelte-1lr8kgc",code:".columns.svelte-1lr8kgc {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}.columns.svelte-1lr8kgc .column {flex:auto;width:33.3333333333%;background-color:var(--sui-primary-background-color);}.columns.svelte-1lr8kgc header:where(.svelte-1lr8kgc) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}.columns.svelte-1lr8kgc header:where(.svelte-1lr8kgc) h3:where(.svelte-1lr8kgc) {font-size:var(--sui-font-size-x-large);}"};function jG(t,e){se(e,!0),Te(t,zG);const[n,r]=me(),i=()=>z(le,"$_",n),s=x(()=>i()("editorial_workflow"));Md(t,{class:"content",get"aria-label"(){return l(s)},main:a=>{var c=FG(),u=R(c);mr(u,{class:"column","aria-labelledby":"draft-column-title",children:(f,p)=>{var g=RG(),m=R(g),b=R(m);H(_=>Z(b,_),[()=>i()("status.drafts")]),T(f,g)},$$slots:{default:!0}});var d=D(u,2);mr(d,{class:"column","aria-labelledby":"review-column-title",children:(f,p)=>{var g=DG(),m=R(g),b=R(m);H(_=>Z(b,_),[()=>i()("status.in_review")]),T(f,g)},$$slots:{default:!0}});var h=D(d,2);mr(h,{class:"column","aria-labelledby":"ready-column-title",children:(f,p)=>{var g=MG(),m=R(g),b=R(m);H(_=>Z(b,_),[()=>i()("status.ready")]),T(f,g)},$$slots:{default:!0}}),T(a,c)},$$slots:{main:!0}}),oe(),r()}var UG=F("<!> <!> <!> <!> <!> <!>",1);function BG(t,e){se(e,!0);const[n,r]=me(),i=()=>z(ey,"$selectedPageName",n),s=()=>z(zn,"$selectedCollection",n),o=()=>z(_t,"$siteConfig",n),a={collections:k7,assets:zH,search:IG,workflow:jG,config:VH},c=x(()=>a[i()]),u=()=>{ot(Ya,!1),ot(Go,!1);const{path:v}=Ld(),{pageName:y}=v.match(`^\\/(?<pageName>${Object.keys(a).join("|")})\\b`)?.groups??{};y?i()!==y&&ot(ey,y):window.location.replace(`#/collections/${s()?.name??o()?.collections[0].name}`)};on(()=>{u()});var d=UG();vi("hashchange",al,()=>{u()});var h=M(d);SG(h,{});var f=D(h,2);bi(f,()=>l(c),(v,y)=>{y(v,{})});var p=D(f,2);BH(p,{});var g=D(p,2);UH(g,{});var m=D(g,2);S7(m,{});var b=D(m,2);E7(b,{}),T(t,d);var _=oe({pages:a,selectPage:u});return r(),_}const qG=Object.freeze(Object.defineProperty({__proto__:null,strings:{collections:"Collections",contents:"Contents",entries:"Entries",assets:"Assets",media:"Media",workflow:"Workflow",editorial_workflow:"Editorial Workflow",user_name:"User Name",password:"Password",sign_in:"Sign In",signed_in_as_x:"Signed In as {name}",working_with_local_repo:"Working with Local Repository",sign_out:"Sign Out",create:"New",select:"Select",select_all:"Select All",upload:"Upload",copy:"Copy",download:"Download",duplicate:"Duplicate",delete:"Delete",save:"Save",saving:"Saving…",rename:"Rename",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…",global:"Global",primary:"Primary",secondary:"Secondary",collection:"Collection",folder:"Folder",api_key:"API Key",details:"Details",clipboard_error:"There was an error while copying data.",welcome_to_sveltia_cms:"Welcome to Sveltia CMS",loading_site_config:"Loading Site Configuration…",loading_site_data:"Loading Site Data…",loading_site_data_error:"There was an error while loading site data.",sign_in_with_x:"Sign In with {service}",authorizing:"Authorizing…",signing_in:"Signing in…",work_with_local_repo:"Work with Local Repository",work_with_local_repo_description:"Click the button to select the root directory of the “{repo}” repository.",work_with_local_repo_description_no_repo:"Click the button to select the root directory of your Git 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.",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.",MALFORMED_RESPONSE:"Server responded with malformed data. Please try again later."},repository_no_access:"You don’t have access to the “{repo}” repository.",repository_not_found:"The “{repo}” repository doesn’t exist.",repository_empty:"The “{repo}” repository has no branches.",branch_not_found:"The “{repo}” repository doesn’t have the “{branch}” branch.",unexpected_error:"Unexpected Error",entry_parse_error:"There was an error while parsing an entry file. Check the browser console for details.",entry_parse_errors:"There were errors while parsing entry files. Check the browser console for details.",visit_live_site:"Visit Live Site",switch_page:"Switch Page",search_placeholder:"Search for entries and assets…",create_entry_or_assets:"Create Entry or Assets",publish_changes:"Publish Changes",publishing_changes:"Publishing Changes…",publishing_changes_failed:"Changes could not be published. Please try again later.",show_notifications:"Show Notifications",notifications:"Notifications",show_account_menu:"Show Account Menu",account:"Account",live_site:"Live Site",git_repository:"Git Repository",settings:"Settings",site_config:"Site Configuration",show_help_menu:"Show Help Menu",help:"Help",keyboard_shortcuts:"Keyboard Shortcuts",documentation:"Documentation",release_notes:"Release Notes",version_x:"Version {version}",report_issue:"Report Issue",share_feedback:"Share Feedback",get_help:"Get Help",join_discord:"Join Us on Discord",update_available:"The latest version of Sveltia CMS is available.",update_now:"Update Now",backend_status:{minor_incident:"{service} is experiencing a minor incident. Your workflow may be potentially affected.",major_incident:"{service} is experiencing a major incident. You may want to wait until the situation has improved."},content_library:"Content Library",asset_library:"Asset Library",collection_assets:"Collection Assets",entry_assets:"Entry Assets",entry_list:"Entry List",file_list:"File List",asset_list:"Asset List",x_collection:"“{collection}” Collection",x_asset_folder:"“{folder}” Asset Folder",viewing_x_collection_many_entries:"You’re now viewing the “{collection}” collection, which has {count} entries.",viewing_x_collection_one_entry:"You’re now viewing the “{collection}” collection, which has one entry.",viewing_x_collection_no_entries:"You’re now viewing the “{collection}” collection, which has no entries yet.",viewing_x_asset_folder_many_assets:"You’re now viewing the “{folder}” asset folder, which has {count} assets.",viewing_x_asset_folder_one_asset:"You’re now viewing the “{folder}” asset folder, which has one asset.",viewing_x_asset_folder_no_assets:"You’re now viewing the “{folder}” asset folder, which has no assets yet.",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",sort:"Sort",sorting_options:"Sorting Options",sort_keys:{none:"None",name:"Name",commit_author:"Updated by",commit_date:"Updated on"},ascending:"{label}, A to Z",ascending_date:"{label}, old to new",descending:"{label}, Z to A",descending_date:"{label}, new to old",filter:"Filter",filtering_options:"Filtering Options",group:"Group",grouping_options:"Grouping Options",type:"Type",all:"All",image:"Image",video:"Video",audio:"Audio",document:"Document",other:"Other",show_assets:"Show Assets",hide_assets:"Hide Assets",show_info:"Show Info",hide_info:"Hide Info",asset_folders:"Asset Folders",all_assets:"All Assets",uncategorized:"Uncategorized",search_results_for_x:"Search Results for “{terms}”",viewing_search_results:"You’re now viewing search results for “{terms}”. We’ve found {entries} and {assets}.",many_entries:"{count} entries",one_entry:"one entry",no_entries:"no entries",many_assets:"{count} assets",one_asset:"one asset",no_assets:"no assets",no_files_found:"No files found.",no_entries_found:"No entries found.",upload_assets:"Upload New Assets",edit_options:"Edit Options",show_edit_options:"Show Edit Options",edit_asset:"Edit Asset",edit_x:"Edit {name}",wrap_long_lines:"Wrap Long Lines",rename_asset:"Rename Asset",rename_x:"Rename {name}",enter_new_name_for_asset:"Enter a new name below.",enter_new_name_for_asset_with_one_entry:"Enter a new name below. An entry using the asset will also be updated.",enter_new_name_for_asset_with_many_entries:"Enter a new name below. {count} entries using the asset will also be updated.",enter_new_name_for_asset_error:{empty:"File name cannot be empty.",character:"File name cannot contain special characters.",duplicate:"This file name is used for another asset."},replace_asset:"Replace Asset",replace_x:"Replace {name}",browse_file:"Click to browse",drop_or_browse_file:"Drop a file here or click to browse",drop_or_browse_files:"Drop files here or click to browse",drop_or_browse_image_file:"Drop an image file here or click to browse",drop_or_browse_image_files:"Drop image files here or click to browse",drop_file_here:"Drop a file here",drop_files_here:"Drop files here",drop_files_type_mismatch:"The dropped file is not the “{type}” type. Please try again.",choose_file:"Choose File",choose_files:"Choose Files",delete_asset:"Delete Asset",delete_assets:"Delete Assets",delete_selected_asset:"Delete Selected Asset",delete_selected_assets:"Delete Selected Assets",confirm_deleting_this_asset:"Are you sure to delete this asset?",confirm_deleting_selected_asset:"Are you sure to delete the selected asset?",confirm_deleting_selected_assets:"Are you sure to delete the selected {count} assets?",confirm_deleting_all_assets:"Are you sure to delete all the assets?",delete_entry:"Delete Entry",delete_entries:"Delete Entries",delete_selected_entry:"Delete Selected Entry",delete_selected_entries:"Delete Selected Entries",confirm_deleting_this_entry:"Are you sure to delete this entry?",confirm_deleting_this_entry_with_assets:"Are you sure to delete this entry and associated assets?",confirm_deleting_selected_entry:"Are you sure to delete the selected entry?",confirm_deleting_selected_entry_with_assets:"Are you sure to delete the selected entry and associated assets?",confirm_deleting_selected_entries:"Are you sure to delete the selected {count} entries?",confirm_deleting_selected_entries_with_assets:"Are you sure to delete the selected {count} entries and associated assets?",confirm_deleting_all_entries:"Are you sure to delete all the entries?",confirm_deleting_all_entries_with_assets:"Are you sure to delete all the entries and associated assets?",confirm_replacing_file:"Are you sure to replace “{name}” with the following file?",confirm_uploading_file:"Are you sure to save the following file to the “{folder}” folder?",confirm_uploading_files:"Are you sure to save the following {count} files to the “{folder}” folder?",no_entries_created:"This collection has no entries yet.",create_new_entry:"Create New Entry",no_files_in_collection:"No files available in this collection.",asset_info:"Asset Info",select_asset_show_info:"Select an asset to show the info.",duplicate_entry:"Duplicate Entry",entry_duplicated:"Entry has been duplicated. It’s now a new draft.",entry_validation_error:"One field has an error. Please correct it to save the entry.",entry_validation_errors:"{count} fields have an error. Please correct them to save the entry.",entry_saved:"Entry has been saved.",entry_saved_and_published:"Entry has been saved and published.",entry_deleted:"Entry has been deleted.",entries_deleted:"{count} entries have been deleted.",asset_saved:"Asset has been saved.",asset_saved_and_published:"Asset has been saved and published.",assets_saved:"{count} assets have been saved.",assets_saved_and_published:"{count} assets have been saved and published.",asset_url_copied:"Asset URL has been copied to clipboard.",asset_urls_copied:"Asset URLs have been copied to clipboard.",asset_path_copied:"Asset file path has been copied to clipboard.",asset_paths_copied:"Asset file paths have been copied to clipboard.",asset_data_copied:"Asset file has been copied to clipboard.",asset_downloaded:"Asset file has been downloaded.",assets_downloaded:"Asset files have been downloaded.",asset_moved:"Asset has been moved.",assets_moved:"{count} assets have been moved.",asset_renamed:"Asset has been renamed.",assets_renamed:"{count} assets have been renamed.",asset_deleted:"Asset has been deleted.",assets_deleted:"{count} assets have been deleted.",content_editor:"Content Editor",restore_backup_title:"Restore Draft",restore_backup_description:"This entry has a backup from {datetime}. Do you want to restore the edited draft?",draft_backup_saved:"Draft backup has been saved.",draft_backup_restored:"Draft backup has been restored.",draft_backup_deleted:"Draft backup has been deleted.",cancel_editing:"Cancel Editing",creating_x:"Creating {name}",creating_x_collection_entry:"You’re now creating a new entry in the “{collection}” collection.",editing_x_in_x:"Editing {collection} › {entry}",editing_x_collection_entry:"You’re now editing the “{entry}” entry in the “{collection}” collection.",editing_x_collection_file:"You’re now editing the “{file}” file in the “{collection}” collection.",save_and_publish:"Save and Publish",save_without_publishing:"Save without Publishing",show_editor_options:"Show Editor Options",editor_options:"Editor Options",show_preview:"Show Preview",sync_scrolling:"Sync Scrolling",switch_locale:"Switch Locale",locale_content_disabled_short:"(disabled)",locale_content_error_short:"(error)",edit:"Edit",preview:"Preview",edit_x_locale:"Edit {locale} Content",preview_x_locale:"Preview {locale} Content",content_preview:"Content Preview",show_content_options_x_locale:"Show {locale} Content Options",content_options_x_locale:"{locale} Content Options",x_field:"“{field}” Field",show_field_options:"Show Field Options",field_options:"Field Options",unsupported_widget_x:"Unsupported widget: {name}",enable_x_locale:"Enable {locale}",reenable_x_locale:"Reenable {locale}",disable_x_locale:"Disable {locale}",locale_x_has_been_disabled:"The {locale} content has been disabled.",locale_x_now_disabled:"The {locale} content is now disabled. It will be deleted when you save the entry.",view_in_repository:"View in Repository",view_on_x:"View on {service}",view_on_live_site:"View on Live Site",copy_from:"Copy from…",copy_from_x:"Copy from {locale}",translation_options:"Translation Options",translate:"Translate",translate_field:"Translate Field",translate_fields:"Translate Fields",translate_from:"Translate from…",translate_from_x:"Translate from {locale}",revert_changes:"Revert Changes",revert_all_changes:"Revert All Changes",required:"Required",editor:{translation:{none:"Nothing has been translated.",started:"Translating…",error:"There was an error while translating.",complete:{one:"Translated the field from {source}.",many:"Translated {count} fields from {source}."}},copy:{none:"Nothing has been copied.",complete:{one:"Copied the field from {source}.",many:"Copied {count} fields from {source}."}}},validation:{value_missing:"This field is required.",range_underflow:{number:"Value must be greater than or equal to {min}.",select_many:"You have to select at least {min} items.",select_one:"You have to select at least {min} item.",add_many:"You have to add at least {min} items.",add_one:"You have to add at least {min} item."},range_overflow:{number:"Value must be less than or equal to {max}.",select_many:"You cannot select more than {max} items.",select_one:"You cannot select more than {max} item.",add_many:"You cannot add more than {max} items.",add_one:"You cannot add more than {max} item."},too_short:{one:"You must enter at least {min} character.",many:"You must enter at least {min} characters."},too_long:{one:"You cannot enter more than {max} character.",many:"You cannot enter more than {max} characters."},type_mismatch:{number:"Please enter a number.",email:"Please enter a valid email.",url:"Please enter a valid URL."}},saving_entry:{error:{title:"Error",description:"There was an error while saving the entry. Please try again later."}},viewing_x_asset_details:"You’re viewing the details of the “{name}” asset.",asset_editor:"Asset Editor",preview_unavailable:"Preview Unavailable.",public_url:"Public URL",public_urls:"Public URLs",file_path:"File Path",file_paths:"File Paths",file_data:"File Data",kind:"Kind",size:"Size",dimensions:"Dimensions",duration:"Duration",used_in:"Used in",select_file:"Select File",select_image:"Select Image",replace_file:"Replace File",replace_image:"Replace Image",remove_file:"Remove File",remove_image:"Remove Image",remove_this_item:"Remove This Item",move_up:"Move Up",move_down:"Move Down",add_x:"Add {name}",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",location:{local:"Your Computer",repository:"This Repository",external_locations:"External Locations",stock_photos:"Stock Photos"},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",description:"This file exceeds the maximum size of {size}. Please choose another."},photo_credit:{title:"Photo Credit",description:"Use the following credit if possible:"}},character_counter:{min_max:{one:"{count} character entered. Minimum: {min}. Maximum: {max}.",many:"{count} characters entered. Minimum: {min}. Maximum: {max}."},min:{one:"{count} character entered. Minimum: {min}.",many:"{count} characters entered. Minimum: {min}."},max:{one:"{count} character entered. Maximum: {max}.",many:"{count} characters entered. Maximum: {max}."}},youtube_video_player:"YouTube video player",today:"Today",now:"Now",editor_components:{image:"Image",src:"Source",alt:"Alt Text",title:"Title",link:"Link"},key_value:{key:"Key",value:"Value",action:"Action",empty_key:"Key is required.",duplicate_key:"Key must be unique."},boolean:{true:"Yes",false:"No"},cloud_storage:{invalid:"The service is not configured properly.",auth:{initial:"Sign into {service} to insert media on the storage to entry fields.",requested:"Signing in…",error:"User name or password is incorrect. Please double check and try again."}},config:{error:{no_secure_context:"Sveltia CMS only works with HTTPS or localhost URLs.",fetch_failed:"The configuration file could not be retrieved.",fetch_failed_not_ok:"HTTP response returned with status {status}.",parse_failed:"The configuration file could not be parsed.",parse_failed_invalid_object:"The configuration file is not a valid JavaScript object.",no_collection:"Collections are not defined in the configuration file.",no_backend:"The backend is not defined in the configuration file.",unsupported_backend:"The configured “{name}” backend is not supported.",no_repository:"The repository is not defined in the configuration file.",oauth_implicit_flow:"The configured authentication method (implicit flow) is not supported.",oauth_no_app_id:"OAuth application ID is not defined in the configuration file.",no_media_folder:"The media folder is not defined in the configuration file.",unexpected:"There was an unexpected error while validating the configuration file.",try_again:"Please solve the issue and try again."}},local_backend:{unsupported_browser:"Local development is not supported in your browser. Please use Chrome or Edge instead.",disabled:"Local development is disabled in your browser. <a>Here’s how to enable it</a>."},status:{drafts:"Drafts",in_review:"In Review",ready:"Ready"},categories:"Categories",prefs:{changes:{api_key_saved:"API key has been saved.",api_key_removed:"API key has been removed."},error:{permission_denied:"Browser storage (Cookie) access has been denied. Please check the permission and try again."},appearance:{title:"Appearance",theme:"Theme",select_theme:"Select Theme"},theme:{auto:"Auto",dark:"Dark",light:"Light"},languages:{title:"Languages",ui_language:{title:"User Interface Language",select_language:"Select Language"},translator:{title:"{service} Translator",field_label:"{service} API Authentication Key",description:"Sign up for <a {homeHref}>{service} API</a> and enter <a {apiKeyHref}>your Authentication Key</a> here to enable quick translation of text entry fields."}},contents:{title:"Contents",editor:{title:"Editor",close_on_save:{switch_label:"Close the editor after saving a draft"}}},media:{title:"Media",stock_photos:{title:"{service} Free Images",field_label:"{service} API Key",description:"Sign up for <a {homeHref}>{service} API</a> and enter <a {apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.",credit:"Photos provided by {service}"}},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",deploy_hook:{title:"Deploy Hook",description:"Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.",field_label:"Deploy Hook URL",url_saved:"Webhook URL has been saved.",url_removed:"Webhook URL has been removed."},developer_mode:{title:"Developer Mode",description:"Enable some features, including detailed console logs and native context menus.",switch_label:"Enable Developer Mode"}}},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",mp4:"MP4 video",mpeg:"MPEG video",ogv:"OGG video",ts:"MPEG video",webm:"WebM video","3gp":"3GPP video","3g2":"3GPP2 video",aac:"AAC audio",mid:"MIDI",midi:"MIDI",mp3:"MP3 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"}}},Symbol.toStringTag,{value:"Module"})),HG=Object.freeze(Object.defineProperty({__proto__:null,strings:{collections:"コレクション",contents:"コンテンツ",entries:"エントリー",assets:"アセット",media:"メディア",workflow:"ワークフロー",editorial_workflow:"編集ワークフロー",user_name:"ユーザー名",password:"パスワード",sign_in:"ログイン",signed_in_as_x:"{name} としてログイン中",working_with_local_repo:"ローカルレポジトリで作業中",sign_out:"ログアウト",create:"新規作成",select:"選択",select_all:"すべて選択",upload:"アップロード",copy:"コピー",download:"ダウンロード",duplicate:"複製",delete:"削除",save:"保存",saving:"保存中…",rename:"名前を変更",replace:"差し替え",add:"追加",remove:"削除",remove_x:"{name} を削除",clear:"クリア",expand:"広げる",expand_all:"すべて広げる",collapse:"折り畳む",collapse_all:"すべて折り畳む",insert:"挿入",restore:"復元",discard:"破棄",searching:"検索中…",global:"グローバル",primary:"プライマリー",secondary:"セカンダリー",collection:"コレクション",folder:"フォルダー",api_key:"API キー",details:"詳細",clipboard_error:"データのコピー中に問題が発生しました。",welcome_to_sveltia_cms:"Sveltia CMS へようこそ",loading_site_config:"サイト設定を読み込んでいます…",loading_site_data:"サイトデータを読み込んでいます…",loading_site_data_error:"サイトデータの読み込み中にエラーが発生しました。",sign_in_with_x:"{service} でログイン",authorizing:"認証中…",signing_in:"ログイン中…",work_with_local_repo:"ローカルレポジトリで作業",work_with_local_repo_description:"ボタンをクリックして「{repo}」レポジトリのルートディレクトリを選択してください。",work_with_local_repo_description_no_repo:"ボタンをクリックして Git レポジトリのルートディレクトリを選択してください。",sign_in_error:{not_project_root:"選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。",picker_dismissed:"レポジトリのルートディレクトリを選択できませんでした。再度お試しください。",authentication_aborted:"認証が中断されました。再度お試しください。",UNSUPPORTED_BACKEND:"この認証アプリはお使いの Git バックエンドに対応していません。",UNSUPPORTED_DOMAIN:"この認証アプリではお使いのドメインの使用は許可されていません。",MISCONFIGURED_CLIENT:"OAuth アプリのクライアント ID またはシークレットが設定されていません。",AUTH_CODE_REQUEST_FAILED:"認証コードを取得できませんでした。後で再度お試しください。",CSRF_DETECTED:"CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。",TOKEN_REQUEST_FAILED:"アクセストークンを要求できませんでした。後で再度お試しください。",MALFORMED_RESPONSE:"サーバーから不正なデータが返されました。後で再度お試しください。"},repository_no_access:"あなたには「{repo}」レポジトリへのアクセス権がありません。",repository_not_found:"「{repo}」レポジトリは存在しません。",repository_empty:"「{repo}」レポジトリにはブランチがありません。",branch_not_found:"「{repo}」レポジトリに「{branch}」ブランチは存在しません。",unexpected_error:"予期せぬエラー",entry_parse_error:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",entry_parse_errors:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",visit_live_site:"管理対象サイトを開く",switch_page:"ページを切り替え",search_placeholder:"エントリーとアセットを検索…",create_entry_or_assets:"エントリーまたはアセットを作成",publish_changes:"変更を公開",publishing_changes:"変更を公開しています…",publishing_changes_failed:"変更を公開できませんでした。後で再度お試しください。",show_notifications:"通知を表示",notifications:"通知",show_account_menu:"アカウントメニューを表示",account:"アカウント",live_site:"管理対象サイト",git_repository:"Git レポジトリ",settings:"設定",site_config:"サイト設定",show_help_menu:"ヘルプメニューを表示",help:"ヘルプ",keyboard_shortcuts:"キーボードショートカット",documentation:"ドキュメンテーション",release_notes:"リリースノート",version_x:"バージョン {version}",report_issue:"問題を報告",share_feedback:"フィードバックを共有",get_help:"サポート",join_discord:"Discord チャンネルに参加",update_available:"Sveltia CMS の最新版が利用可能です。",update_now:"今すぐ更新",backend_status:{minor_incident:"{service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。",major_incident:"{service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。"},content_library:"コンテンツライブラリ",asset_library:"アセットライブラリ",collection_assets:"コレクションアセット",entry_assets:"エントリーアセット",entry_list:"エントリーリスト",file_list:"ファイルリスト",asset_list:"アセットリスト",x_collection:"「{collection}」コレクション",x_asset_folder:"「{folder}」アセットフォルダー",viewing_x_collection_many_entries:"「{collection}」コレクションを表示しています。ここには {count} 個のエントリーがあります。",viewing_x_collection_one_entry:"「{collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。",viewing_x_collection_no_entries:"「{collection}」コレクションを表示しています。ここにはまだエントリーがありません。",viewing_x_asset_folder_many_assets:"「{folder}」アセットフォルダーを表示しています。ここには {count} 個のアセットがあります。",viewing_x_asset_folder_one_asset:"「{folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。",viewing_x_asset_folder_no_assets:"「{folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。",collection_not_found:"コレクションが見つかりませんでした",file_not_found:"ファイルが見つかりませんでした",x_of_x_selected:"{total} 個のうち {selected} 個を選択中",switch_view:"ビューを切り替え",list_view:"リストビュー",grid_view:"グリッドビュー",sort:"並び替え",sorting_options:"並べ替えオプション",sort_keys:{none:"なし",name:"名前",commit_author:"更新者",commit_date:"更新日時"},ascending:"{label} (A–Z)",ascending_date:"{label} (古い順)",descending:"{label} (Z–A)",descending_date:"{label} (新しい順)",filter:"絞り込み",filtering_options:"絞り込みオプション",group:"グループ化",grouping_options:"グループ化オプション",type:"種類",all:"すべて",image:"画像",video:"動画",audio:"音声",document:"書類",other:"その他",show_assets:"アセットを表示",hide_assets:"アセットを隠す",show_info:"情報を表示",hide_info:"情報を隠す",asset_folders:"アセットフォルダー",all_assets:"すべてのアセット",uncategorized:"未分類",search_results_for_x:"「{terms}」の検索結果",viewing_search_results:"「{terms}」の検索結果を表示しています。{entries} と {assets} が見つかりました。",many_entries:"{count} 個のエントリー",one_entry:"1 個のエントリー",no_entries:"0 個のエントリー",many_assets:"{count} 個のアセット",one_asset:"1 個のアセット",no_assets:"0 個のアセット",no_files_found:"ファイルは見つかりませんでした。",no_entries_found:"エントリーは見つかりませんでした。",upload_assets:"新しいアセットをアップロード",edit_options:"編集オプション",show_edit_options:"編集オプションを表示",edit_asset:"アセットを編集",edit_x:"{name} を編集",wrap_long_lines:"長い行を折り返す",rename_asset:"アセットの名前を変更",rename_x:"{name} の名前を変更",enter_new_name_for_asset:"新しい名前を以下に入力してください。",enter_new_name_for_asset_with_one_entry:"新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。",enter_new_name_for_asset_with_many_entries:"新しい名前を以下に入力してください。このアセットを使用している {count} 個のエントリーも更新されます。",enter_new_name_for_asset_error:{empty:"ファイル名を空白にすることはできません。",character:"ファイル名に特別な文字を含めることはできません。",duplicate:"このファイル名は他のアセットに使われています。"},replace_asset:"アセットを差し替え",replace_x:"{name} を差し替え",browse_file:"クリックして参照",drop_or_browse_file:"ここにファイルをドロップするかクリックして参照",drop_or_browse_files:"ここにファイルをドロップするかクリックして参照",drop_or_browse_image_file:"ここに画像ファイルをドロップするかクリックして参照",drop_or_browse_image_files:"ここに画像ファイルをドロップするかクリックして参照",drop_file_here:"ここにファイルをドロップ",drop_files_here:"ここにファイルをドロップ",drop_files_type_mismatch:"ドロップされたファイルは「{type}」形式ではありません。再度お試しください。",choose_file:"ファイルを選択",choose_files:"ファイルを選択",delete_asset:"アセットを削除",delete_assets:"アセットを削除",delete_selected_asset:"選択されたアセットを削除",delete_selected_assets:"選択されたアセットを削除",confirm_deleting_this_asset:"このアセットを削除してもよろしいですか?",confirm_deleting_selected_asset:"選択されたファイルを削除してもよろしいですか?",confirm_deleting_selected_assets:"選択された {count} 個のファイルを削除してもよろしいですか?",confirm_deleting_all_assets:"すべてのアセットを削除してもよろしいですか?",delete_entry:"エントリーを削除",delete_entries:"エントリーを削除",delete_selected_entry:"選択されたエントリーを削除",delete_selected_entries:"選択されたエントリーを削除",confirm_deleting_this_entry:"このエントリーを削除してもよろしいですか?",confirm_deleting_this_entry_with_assets:"このエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entry:"選択されたエントリーを削除してもよろしいですか?",confirm_deleting_selected_entry_with_assets:"選択されたエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entries:"選択された {count} 個のエントリーを削除してもよろしいですか?",confirm_deleting_selected_entries_with_assets:"選択された {count} 個のエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_all_entries:"すべてのエントリーを削除してもよろしいですか?",confirm_deleting_all_entries_with_assets:"すべてのエントリーと関連アセットを削除してもよろしいですか?",confirm_replacing_file:"「{name}」を以下のファイルと差し替えてもよろしいですか?",confirm_uploading_file:"以下のファイルを「{folder}」フォルダーに保存してもよろしいですか?",confirm_uploading_files:"以下の {count} 個のファイルを「{folder}」フォルダーに保存してもよろしいですか?",no_entries_created:"このコレクションにはまだエントリーがありません。",create_new_entry:"新しいエントリーを作成",no_files_in_collection:"このコレクションにはファイルがありません。",asset_info:"アセット情報",select_asset_show_info:"アセットを選択すると情報が表示されます。",duplicate_entry:"エントリーを複製",entry_duplicated:"エントリーが複製され、新しい下書きとなりました。",entry_validation_error:"ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_validation_errors:"{count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_saved:"エントリーが保存されました。",entry_saved_and_published:"エントリーが保存、公開されました。",entry_deleted:"エントリーが削除されました。",entries_deleted:"{count} 個のエントリーが削除されました。",asset_saved:"アセットが保存されました。",asset_saved_and_published:"アセットが保存、公開されました。",assets_saved:"{count} 個のアセットが保存されました。",assets_saved_and_published:"{count} 個のアセットが保存、公開されました。",asset_url_copied:"アセット URL がクリップボードにコピーされました。",asset_urls_copied:"アセット URL がクリップボードにコピーされました。",asset_path_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_paths_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_data_copied:"アセットファイルがクリップボードにコピーされました。",asset_downloaded:"アセットファイルがダウンロードされました。",assets_downloaded:"アセットファイルがダウンロードされました。",asset_moved:"アセットが移動されました。",assets_moved:"{count} 個のアセットが移動されました。",asset_renamed:"アセットの名前が変更されました。",assets_renamed:"{count} 個のアセットの名前が変更されました。",asset_deleted:"アセットが削除されました。",assets_deleted:"{count} 個のアセットが削除されました。",content_editor:"コンテンツエディター",restore_backup_title:"下書きを復元",restore_backup_description:"このエントリーには {datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか?",draft_backup_saved:"下書きのバックアップが保存されました。",draft_backup_restored:"下書きのバックアップが復元されました。",draft_backup_deleted:"下書きのバックアップが削除されました。",cancel_editing:"編集をキャンセル",creating_x:"{name} を作成",creating_x_collection_entry:"「{collection}」コレクションの新しいエントリーを作成しています。",editing_x_in_x:"{collection} › {entry} を編集",editing_x_collection_entry:"「{collection}」コレクションの「{entry}」エントリーを編集しています。",editing_x_collection_file:"「{collection}」コレクションの「{file}」ファイルを編集しています。",save_and_publish:"保存して公開",save_without_publishing:"公開せずに保存",show_editor_options:"エディターオプションを表示",editor_options:"エディターオプション",show_preview:"プレビューを表示",sync_scrolling:"スクロールを同期",switch_locale:"ロケールを切り替え",locale_content_disabled_short:"(無効)",locale_content_error_short:"(エラー)",edit:"編集",preview:"プレビュー",edit_x_locale:"{locale} コンテンツを編集",preview_x_locale:"{locale} コンテンツをプレビュー",content_preview:"コンテンツプレビュー",show_content_options_x_locale:"{locale} コンテンツのオプションを表示",content_options_x_locale:"{locale} コンテンツのオプション",x_field:"「{field}」フィールド",show_field_options:"フィールドオプションを表示",field_options:"フィールドオプション",unsupported_widget_x:"非対応ウィジェット: {name}",enable_x_locale:"{locale} を有効化",reenable_x_locale:"{locale} を再度有効化",disable_x_locale:"{locale} を無効化",locale_x_has_been_disabled:"{locale} コンテンツは無効化されています。",locale_x_now_disabled:"{locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。",view_in_repository:"レポジトリ内で見る",view_on_x:"{service} で見る",view_on_live_site:"管理対象サイトで見る",copy_from:"他の言語からコピー…",copy_from_x:"{locale} からコピー",translation_options:"翻訳オプション",translate:"翻訳",translate_field:"フィールドを翻訳",translate_fields:"フィールドを翻訳",translate_from:"他の言語から翻訳…",translate_from_x:"{locale} から翻訳",revert_changes:"変更を取り消す",revert_all_changes:"すべての変更を取り消す",required:"必須",editor:{translation:{none:"翻訳されたフィールドはありません。",started:"翻訳中…",error:"翻訳中に問題が発生しました。",complete:{one:"{source} からフィールドを翻訳しました。",many:"{source} から {count} 個のフィールドを翻訳しました。"}},copy:{none:"コピーされたフィールドはありません。",complete:{one:"{source} からフィールドをコピーしました。",many:"{source} から {count} 個のフィールドをコピーしました。"}}},validation:{value_missing:"この項目は必須です。",range_underflow:{select_many:"少なくとも {min} 個の項目を選択してください。",select_one:"少なくとも {min} 個の項目を選択してください。",add_many:"少なくとも {min} 個の項目を追加してください。",add_one:"少なくとも {min} 個の項目を追加してください。"},range_overflow:{select_many:"選択できるのは最大で {max} 項目です。",select_one:"選択できるのは最大で {max} 項目です。",add_many:"追加できるのは最大で {max} 項目です。",add_one:"追加できるのは最大で {max} 項目です。"},too_short:{one:"少なくとも {min} 文字は入力してください。",many:"少なくとも {min} 文字は入力してください。"},too_long:{one:"{max} 文字を超える入力はできません。",many:"{max} 文字を超える入力はできません。"},type_mismatch:{email:"正しいメールアドレスを入力してください。",url:"正しい URL を入力してください。"}},saving_entry:{error:{title:"エラー",description:"エントリーを保存中に問題が発生しました。後で再度お試しください。"}},viewing_x_asset_details:"「{name}」アセットの詳細を表示しています。",asset_editor:"アセットエディター",preview_unavailable:"プレビューは表示できません",public_url:"公開 URL",public_urls:"公開 URL",file_path:"ファイルパス",file_paths:"ファイルパス",file_data:"ファイルデータ",kind:"種類",size:"サイズ",dimensions:"大きさ",duration:"再生時間",used_in:"使われているエントリー",select_file:"ファイルを選択",select_image:"画像を選択",replace_file:"ファイルを差し替え",replace_image:"画像を差し替え",remove_file:"ファイルを削除",remove_image:"画像を削除",remove_this_item:"このアイテムを削除",move_up:"上へ移動",move_down:"下へ移動",add_x:"{name} を追加",select_list_type:"リストタイプを選択",opacity:"透明度",unselected_option:"(なし)",assets_dialog:{title:{file:"ファイルを選択",image:"画像を選択"},search_for_file:"ファイルを検索",search_for_image:"画像を検索",locations:"場所",location:{local:"お使いのコンピューター",repository:"このレポジトリ",external_locations:"外部の場所",stock_photos:"ストックフォト"},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:"大きなファイル",description:"このファイルは最大サイズ {size} を超えています。他のファイルを選んでください。"},photo_credit:{title:"写真クレジット",description:"可能であれば以下のクレジットを使ってください:"}},character_counter:{min_max:{one:"{count} 文字入力されています。最小: {min}。最大 {max}。",many:"{count} 文字入力されています。最小: {min}。最大 {max}。"},min:{one:"{count} 文字入力されています。最小: {min}。",many:"{count} 文字入力されています。最小: {min}。"},max:{one:"{count} 文字入力されています。最大: {max}。",many:"{count} 文字入力されています。最大: {max}。"}},youtube_video_player:"YouTube 動画プレーヤー",today:"今日",now:"現在時刻",editor_components:{image:"画像",src:"ソース",alt:"代替テキスト",title:"タイトル",link:"リンク"},key_value:{key:"キー",value:"値",action:"アクション",empty_key:"キーは必須です。",duplicate_key:"キーが重複しています。"},boolean:{true:"はい",false:"いいえ"},cloud_storage:{invalid:"このサービスは正しく設定されていません。",auth:{initial:"{service} へログインすると、ストレージ上のメディアをエントリー項目へ挿入できます。",requested:"ログイン中…",error:"ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。"}},config:{error:{no_secure_context:"Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。",fetch_failed:"設定ファイルを読み込めませんでした。",fetch_failed_not_ok:"HTTP レスポンスがステータス {status} で返されました。",parse_failed:"設定ファイルを解析できませんでした。",parse_failed_invalid_object:"設定ファイルが有効な JavaScript オブジェクトではありません。",no_collection:"設定ファイル内でコレクションが定義されていません。",no_backend:"設定ファイル内でバックエンドが定義されていません。",unsupported_backend:"設定されている「{name}」バックエンドは非対応です。",no_repository:"設定ファイル内でレポジトリが定義されていません。",oauth_implicit_flow:"設定されている認証方式 (暗黙的フロー) は非対応です。",oauth_no_app_id:"設定ファイル内で OAuth アプリケーション ID が定義されていません。",no_media_folder:"設定ファイル内でメディアフォルダーが定義されていません。",unexpected:"設定ファイルを検証中に予期せぬ問題が発生しました。",try_again:"問題を解決してから再度お試しください。"}},local_backend:{unsupported_browser:"お使いのブラウザーはローカル開発に対応していません。代わりに Chrome か Edge を使ってください。",disabled:"お使いのブラウザーではローカル開発が無効化されています。<a>有効化する方法はこちら</a>。"},status:{drafts:"下書き",in_review:"レビュー中",ready:"公開可"},categories:"カテゴリ",prefs:{changes:{api_key_saved:"API キーが保存されました。",api_key_removed:"API キーが削除されました。"},error:{permission_denied:"ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。"},appearance:{title:"アピアランス",theme:"テーマ",select_theme:"テーマを選択"},theme:{auto:"自動",dark:"ダーク",light:"ライト"},languages:{title:"言語",ui_language:{title:"ユーザーインターフェース言語",select_language:"言語を選択"},translator:{title:"{service} 翻訳",field_label:"{service} API 認証キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された認証キー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。"}},contents:{title:"コンテンツ",editor:{title:"エディター",close_on_save:{switch_label:"下書き保存後にエディターを閉じる"}}},media:{title:"メディア",stock_photos:{title:"{service} 無料画像素材",field_label:"{service} API キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。",credit:"写真提供: {service}"}},accessibility:{title:"アクセシビリティ",underline_links:{title:"リンクに下線を付ける",description:"エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。",switch_label:"常に下線を付ける"}},advanced:{title:"詳細",deploy_hook:{title:"デプロイフック",description:"「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。",field_label:"デプロイフック URL",url_saved:"ウェブフック URL が保存されました。",url_removed:"ウェブフック URL が削除されました。"},developer_mode:{title:"開発者モード",description:"詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの機能を有効化します。",switch_label:"開発者モードを有効にする"}}},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 動画",mp4:"MP4 動画",mpeg:"MPEG 動画",ogv:"OGG 動画",ts:"MPEG 動画",webm:"WebM 動画","3gp":"3GPP 動画","3g2":"3GPP2 動画",aac:"AAC 音声",mid:"MIDI",midi:"MIDI",mp3:"MP3 音声",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"}}},Symbol.toStringTag,{value:"Module"})),VG=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":qG,"/src/lib/locales/ja.js":HG})).forEach(([e,{strings:n}])=>{const r=Tn(e).filename;Jg(r,n)}),rS({fallbackLocale:"en",initialLocale:te(St).locale||(lL()??"").split("-")[0]||"en"})};var WG=F('<link rel="icon">'),GG=F('<meta name="referrer" content="same-origin"> <meta name="robots" content="noindex"> <!> <!>',1),KG=F('<div role="none" class="outer svelte-1729mpr"><!> <!> <div role="none" class="main svelte-1729mpr"><!> <!></div></div>'),YG=F('<!> <div role="status" class="svelte-1729mpr"> </div>',1);const JG={hash:"svelte-1729mpr",code:"body:not(:has(#nc-root)) {overflow:hidden;}#nc-root > .sui.app-shell {position:absolute;}.outer.svelte-1729mpr {display:flex;flex-direction:column;position:absolute;inset:0;overflow:hidden;}.main.svelte-1729mpr {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-secondary-background-color);}[role=status].svelte-1729mpr {position:absolute;z-index:-1;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;}"};function ZG(t,e){se(e,!0),Te(t,JG);const[n,r]=me(),i=()=>z(_t,"$siteConfig",n),s=()=>z(wf,"$isLoading",n),o=()=>z(Pn,"$backend",n),a=()=>z(ui,"$user",n),c=()=>z($c,"$dataLoaded",n),u=()=>z($s,"$announcedPageStatus",n);on(()=>{VG(),HB(e.config)}),on(()=>{const d=document.querySelector("#nc-root");if(d&&window.getComputedStyle(d).position==="static"){const{top:h,height:f}=d.getBoundingClientRect();f?d.style.position="relative":(d.style.position="fixed",d.style.inset=`${h}px 0 0 0`)}}),gw(d=>{var h=GG(),f=D(M(h),4);{var p=m=>{var b=WG();const _=x(()=>i().logo_url);H((v,y)=>{Se(b,"href",v),Se(b,"type",y)},[()=>l(_)||`data:image/svg+xml;base64,${btoa(oS)}`,()=>l(_)?Do.getType(l(_))??void 0:"image/svg+xml"]),T(m,b)};U(f,m=>{i()&&m(p)})}var g=D(f,2);U(g,m=>{}),T(d,h)}),vi("mousedown",bg.body,d=>{d.target?.matches("a")&&d.target.origin!==window.location.origin&&(d.target.target="_blank")}),aF(t,{children:(d,h)=>{var f=YG(),p=M(f);{var g=_=>{var v=KG(),y=R(v);wq(y,{});var w=D(y,2);{var k=O=>{bq(O,{})};U(w,O=>{o()&&O(k)})}var S=D(w,2),C=R(S);gq(C,{});var E=D(C,2);{var A=O=>{BG(O,{})};U(E,O=>{a()&&c()&&O(A)})}T(_,v)};U(p,_=>{s()||_(g)})}var m=D(p,2),b=R(m);H(()=>Z(b,u())),T(d,f)},$$slots:{default:!0}}),oe(),r()}const XG=["registerEditorComponent","registerEventListener","registerPreviewStyle","registerPreviewTemplate","registerWidget"],QG=["getBackend","getCustomFormats","getCustomFormatsExtensions","getCustomFormatsFormatters","getEditorComponents","getEventListeners","getLocale","getMediaLibrary","getPreviewStyles","getPreviewTemplate","getRemarkPlugins","getWidget","getWidgetValueSerializer","getWidgets","invokeEvent","moment","registerBackend","registerLocale","registerMediaLibrary","registerRemarkPlugin","registerWidgetValueSerializer","removeEventListener","resolveWidget"],eK="https://github.com/sveltia/sveltia-cms#compatibility";let LA=!1;const sg=async({config:t={}}={})=>{LA||(LA=!0,document.readyState==="loading"&&!document.querySelector("#nc-root")&&await new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>e(void 0),{once:!0})}),Tg(ZG,{target:document.querySelector("#nc-root")??document.body,props:{config:t}}))},tK=(t,e,{fromFile:n,toFile:r})=>{hf[t]={extension:e,parser:n,formatter:r}},$A=new Proxy({init:sg,registerCustomFormat:tK},{get:(t,e)=>{if(e in t)return t[e];let n="";if(XG.includes(e)&&(n="CMS.%s() is not yet supported in Sveltia CMS, but we plan to implement it soon."),QG.includes(e)&&(n="CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it."),n)return console.error(`${n} See %s for compatibility information.`,e,eK),()=>{}}});return window.CMS=$A,window.initCMS=sg,!window.CMS_MANUAL_INIT&&(document.currentScript||document.querySelector('script[src$="/sveltia-cms.js"]'))&&sg(),qd.default=$A,qd.init=sg,Object.defineProperties(qd,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),qd})({});
|
|
616
616
|
/**
|
|
617
617
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
618
618
|
*
|