@sveltia/cms 0.189.0 → 0.189.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/sveltia-cms.js +39 -39
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +96 -96
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
package/dist/sveltia-cms.js
CHANGED
|
@@ -14,33 +14,33 @@ object-assign
|
|
|
14
14
|
(c) Sindre Sorhus
|
|
15
15
|
@license MIT
|
|
16
16
|
*/
|
|
17
|
-
var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),p=s(((e,t)=>{var n=f(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps=e.getDefaultProps?g(e.getDefaultProps,t):t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),m=s(((e,t)=>{var n=d(),r=p();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),h=d(),g=l(m(),1),_=e=>typeof e==`object`&&!!e&&!Array.isArray(e),v=e=>JSON.parse(JSON.stringify(e)),y=Array.isArray,b=Array.prototype.indexOf,x=Array.prototype.includes,S=Array.from,C=Object.defineProperty,w=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyDescriptors,ee=Object.prototype,te=Array.prototype,ne=Object.getPrototypeOf,re=Object.isExtensible;function ie(e){return typeof e==`function`}var E=()=>{};function ae(e){return typeof e?.then==`function`}function oe(e){for(var t=0;t<e.length;t++)e[t]()}function se(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function ce(e,t,n=!1){return e===void 0?n?t():t:e}function le(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var ue=1<<24,de=1024,fe=2048,pe=4096,me=8192,he=16384,ge=32768,_e=1<<25,ve=65536,ye=1<<18,be=1<<19,xe=1<<20,Se=1<<25,Ce=65536,we=1<<21,Te=1<<22,Ee=1<<23,De=Symbol(`$state`),Oe=Symbol(`legacy props`),ke=Symbol(``),Ae=Symbol(`attributes`),je=Symbol(`class`),Me=Symbol(`style`),Ne=Symbol(`text`),Pe=Symbol(`form reset`),Fe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ie=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Le(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Re(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ze(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Be(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function He(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ue(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function We(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ge(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ke(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function qe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Je(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ye={},Xe=Symbol(`uninitialized`),Ze=`http://www.w3.org/1999/xhtml`,Qe=`http://www.w3.org/2000/svg`,$e=`http://www.w3.org/1998/Math/MathML`;function et(){console.warn(`https://svelte.dev/e/derived_inert`)}function tt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function nt(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function rt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var it=!1;function at(e){it=e}var ot;function st(e){if(e===null)throw tt(),Ye;return ot=e}function ct(){return st(or(ot))}function D(e){if(it){if(or(ot)!==null)throw tt(),Ye;ot=e}}function lt(e=1){if(it){for(var t=e,n=ot;t--;)n=or(n);ot=n}}function ut(e=!0){for(var t=0,n=ot;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=or(n);e&&n.remove(),n=i}}function dt(e){if(!e||e.nodeType!==8)throw tt(),Ye;return e.data}function ft(e){return e===this.v}function pt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function mt(e){return!pt(e,this.v)}var ht=[];function gt(e,t=!1,n=!1){return _t(e,new Map,``,ht,null,n)}function _t(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(y(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=_t(l,t,n,r,null,a))}return s}if(ne(e)===ee){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=_t(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return _t(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var vt=null;function yt(e){vt=e}function bt(e){return wt(`getContext`).get(e)}function xt(e,t){return wt(`setContext`).set(e,t),t}function St(){return wt(`getAllContexts`)}function O(e,t=!1,n){vt={p:vt,i:!1,c:null,e:null,s:e,x:null,r:Gr,l:null}}function k(e){var t=vt,n=t.e;if(n!==null){t.e=null;for(var r of n)gr(r)}return e!==void 0&&(t.x=e),t.i=!0,vt=t.p,e??{}}function Ct(){return!0}function wt(e){return vt===null&&Le(e),vt.c??=new Map(Tt(vt)||void 0)}function Tt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Et=[];function Dt(){var e=Et;Et=[],oe(e)}function Ot(e){if(Et.length===0&&!En){var t=Et;queueMicrotask(()=>{t===Et&&Dt()})}Et.push(e)}function kt(){for(;Et.length>0;)Dt()}function At(e){var t=Gr;if(t===null)return Hr.f|=Ee,e;if(!(t.f&32768)&&!(t.f&4))throw e;jt(e,t)}function jt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var Mt=~(fe|pe|de);function Nt(e,t){e.f=e.f&Mt|t}function Pt(e){e.f&512||e.deps===null?Nt(e,de):Nt(e,pe)}function Ft(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=Ce,Ft(t.deps))}function It(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ft(e.deps),Nt(e,de)}function Lt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),E;let r=pi(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var Rt=[];function zt(e,t){return{subscribe:Bt(e,t).subscribe}}function Bt(e,t=E){let n=null,r=new Set;function i(t){if(pt(e,t)&&(e=t,n)){let t=!Rt.length;for(let t of r)t[1](),Rt.push(t,e);if(t){for(let e=0;e<Rt.length;e+=2)Rt[e][0](Rt[e+1]);Rt.length=0}}}function a(t){i(t(e))}function o(o,s=E){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||E),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Vt(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return zt(n,(e,n)=>{let o=!1,s=[],c=0,l=E,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:E},d=i.map((e,t)=>Lt(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){oe(d),l(),o=!1}})}function A(e){let t;return Lt(e,e=>t=e)(),t}var Ht=!1,Ut=!1,Wt=Symbol(`unmounted`);function j(e,t,n){let r=n[t]??={store:null,source:Wn(void 0),unsubscribe:E};if(r.store!==e&&!(Wt in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=E;else{var i=!0;r.unsubscribe=Lt(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}}return e&&Wt in n?A(e):B(r.source)}function Gt(e,t){return qt(e,t),t}function Kt(){let e={};function t(){hr(()=>{for(var t in e)e[t].unsubscribe();C(e,Wt,{enumerable:!1,value:!0})})}return[e,t]}function qt(e,t){Ht=!0;try{e.set(t)}finally{Ht=!1}}function Jt(e,t,n){return qt(e,n),t}function Yt(){Ut=!0}function Xt(e){var t=Ut;try{return Ut=!1,[e(),Ut]}finally{Ut=t}}function Zt(e,t){if(t){let t=document.body;e.autofocus=!0,Ot(()=>{document.activeElement===t&&e.focus()})}}function Qt(e){it&&ar(e)!==null&&sr(e)}var $t=!1;function en(){$t||($t=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Pe]?.()})},{capture:!0}))}function tn(e){var t=Hr,n=Gr;Wr(null),Kr(null);try{return e()}finally{Wr(t),Kr(n)}}function nn(e,t,n,r=n){e.addEventListener(t,()=>tn(n));let i=e[Pe];e[Pe]=i?()=>{i(),r(!0)}:()=>r(!0),en()}function rn(e){let t=0,n=Un(0),r;return()=>{mr()&&(B(n),Sr(()=>(t===0&&(r=pi(()=>e(()=>qn(n)))),t+=1,()=>{Ot(()=>{--t,t===0&&(r?.(),r=void 0,qn(n))})})))}}var an=ve|be;function on(e,t,n,r){new sn(e,t,n,r)}var sn=class{parent;is_pending=!1;transform_error;#e;#t=it?ot:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=rn(()=>(this.#m=Un(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Gr;t.b=this,t.f|=128,n(e)},this.parent=Gr.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=wr(()=>{if(it){let e=this.#t;ct();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},an),it&&(this.#e=ot)}#g(){try{this.#a=Er(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Ot(r),t&&(this.#s=Er(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){rt();return}t=!0,n&&Je(),this.#s!==null&&Nr(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){jt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Er(()=>e(this.#e)),Ot(()=>{var e=this.#c=document.createDocumentFragment(),t=ir();e.append(t),this.#a=this.#S(()=>Er(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Nr(this.#o,()=>{this.#o=null}),this.#x(Sn))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Er(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Lr(this.#a,e);let t=this.#n.pending;this.#o=Er(()=>t(this.#e))}else this.#x(Sn)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){It(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=Gr,n=Hr,r=vt;Kr(this.#i),Wr(this.#i),yt(this.#i.ctx);try{return Mn.ensure(),e()}catch(e){return At(e),null}finally{Kr(t),Wr(n),yt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Nr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ot(()=>{this.#d=!1,this.#m&&Gn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),B(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;Sn?.is_fork?(this.#a&&Sn.skip_effect(this.#a),this.#o&&Sn.skip_effect(this.#o),this.#s&&Sn.skip_effect(this.#s),Sn.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(Ar(this.#a),null),this.#o&&=(Ar(this.#o),null),this.#s&&=(Ar(this.#s),null),it&&(st(this.#t),lt(),st(ut()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return Er(()=>{var r=Gr;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return jt(e,this.#i.parent),null}}))};Ot(()=>{var t;try{t=this.transform_error(e)}catch(e){jt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>jt(e,this.#i&&this.#i.parent)):n(t)})}};function cn(e,t,n,r){let i=Ct()?fn:hn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=Gr,c=ln(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){jt(e,s)}un()}}var d=dn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>mn(e))).then(u).catch(e=>jt(e,s)).finally(d)}l?l.then(()=>{c(),f(),un()}):f()}function ln(){var e=Gr,t=Hr,n=vt,r=Sn;return function(i=!0){Kr(e),Wr(t),yt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function un(e=!0){Kr(null),Wr(null),yt(null),e&&Sn?.deactivate()}function dn(){var e=Gr,t=e.b,n=Sn,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function fn(e){var t=2|fe;return Gr!==null&&(Gr.f|=be),{ctx:vt,deps:null,effects:null,equals:ft,f:t,fn:e,reactions:null,rv:0,v:Xe,wv:0,parent:Gr,ac:null}}var pn=Symbol(`obsolete`);function mn(e,t,n){let r=Gr;r===null&&Re();var i=void 0,a=Un(Xe),o=!Hr,s=new Set;return xr(()=>{var t=Gr,n=se();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Fe&&n.reject(e)}).finally(un)}catch(e){n.reject(e),un()}var c=Sn;if(o){if(t.f&32768)var l=dn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(pn);else for(let e of s.values())e.reject(pn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==pn&&(c.activate(),t?(a.f|=Ee,Gn(a,t)):(a.f&8388608&&(a.f^=Ee),Gn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),hr(()=>{for(let e of s)e.reject(pn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=fn(e);return Jr(t),t}function hn(e){let t=fn(e);return t.equals=mt,t}function gn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Ar(t[n])}}function _n(e){var t,n=Gr,r=e.parent;if(!Br&&r!==null&&e.v!==Xe&&r.f&24576)return et(),e.v;Kr(r);try{e.f&=~Ce,gn(e),t=oi(e)}finally{Kr(n)}return t}function vn(e){var t=_n(e);if(!e.equals(t)&&(e.wv=ri(),(!Sn?.is_fork||e.deps===null)&&(Sn===null?e.v=t:(Sn.capture(e,t,!0),Cn?.capture(e,t,!0)),e.deps===null))){Nt(e,de);return}Br||(wn===null?Pt(e):(mr()||Sn?.is_fork)&&wn.set(e,t))}function yn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&tn(()=>{t.ac.abort(Fe),t.ac=null}),t.fn!==null&&(t.teardown=E),ci(t,0),Or(t))}function bn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&li(t)}var xn=null,Sn=null,Cn=null,wn=null,Tn=null,En=!1,Dn=!1,On=null,kn=null,An=0,jn=1,Mn=class e{id=jn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){xn===null?xn=this:(xn.#n=this,this.#t=xn),xn=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)Nt(r,fe),t(r);for(r of n.m)Nt(r,pe),t(r)}this.#p.add(e)}#g(){this.#e=!0,An++>1e3&&(this.#x(),Pn());for(let e of this.#u)this.#d.delete(e),Nt(e,fe),this.schedule(e);for(let e of this.#d)Nt(e,pe),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=On=[],r=[],i=kn=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw zn(e),this.#h()||this.discard(),t}if(Sn=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(On=null,kn=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Rn(e,t);i.length>0&&Sn.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Cn=this,In(r),In(n),Cn=null,this.#s?.resolve();var s=Sn;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&s.#g()}#_(e,t,n){e.f^=de;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=de:i&4?t.push(r):ii(r)&&(i&16&&this.#d.add(r),li(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),Nt(i,fe),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),Sn=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)It(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==Xe&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),wn?.set(e,t)),this.is_fork||(e.v=t)}activate(){Sn=this}deactivate(){Sn=null,wn=null}flush(){try{Dn=!0,Sn=this,this.#g()}finally{An=0,Tn=null,On=null,kn=null,Dn=!1,Sn=null,wn=null,Vn.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(pn);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Ot(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=se()).promise}static ensure(){if(Sn===null){let t=Sn=new e;!Dn&&!En&&Ot(()=>{t.#e||t.flush()})}return Sn}apply(){wn=null}schedule(e){if(Tn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(On!==null&&t===Gr&&(Hr===null||!(Hr.f&2))&&!Ht)return;if(n&96){if(!(n&1024))return;t.f^=de}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?xn=e:t.#t=e,this.linked=!1}}};function Nn(e){var t=En;En=!0;try{var n;for(e&&(Sn!==null&&!Sn.is_fork&&Sn.flush(),n=e());;){if(kt(),Sn===null)return n;Sn.flush()}}finally{En=t}}function Pn(){try{Ue()}catch(e){jt(e,Tn)}}var Fn=null;function In(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ii(r)&&(Fn=new Set,li(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Mr(r),Fn?.size>0)){Vn.clear();for(let e of Fn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Fn.has(n)&&(Fn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||li(n)}}Fn.clear()}}Fn=null}}function Ln(e){Sn.schedule(e)}function Rn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Nt(e,de);for(var n=e.first;n!==null;)Rn(n,t),n=n.next}}function zn(e){Nt(e,de);for(var t=e.first;t!==null;)zn(t),t=t.next}var Bn=new Set,Vn=new Map,Hn=!1;function Un(e,t){return{f:0,v:e,reactions:null,equals:ft,rv:0,wv:0}}function N(e,t){let n=Un(e,t);return Jr(n),n}function Wn(e,t=!1,n=!0){let r=Un(e);return t||(r.equals=mt),r}function P(e,t,n=!1){return Hr!==null&&(!Ur||Hr.f&131072)&&Ct()&&Hr.f&4325394&&(qr===null||!qr.has(e))&&qe(),Gn(e,n?Yn(t):t,kn)}function Gn(e,t,n=null){if(!e.equals(t)){Vn.set(e,Br?t:e.v);var r=Mn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&_n(t),wn===null&&Pt(t)}e.wv=ri(),Jn(e,fe,n),Ct()&&Gr!==null&&Gr.f&1024&&!(Gr.f&96)&&(Zr===null?Qr([e]):Zr.push(e)),!r.is_fork&&Bn.size>0&&!Hn&&Kn()}return t}function Kn(){Hn=!1;for(let e of Bn){e.f&1024&&Nt(e,pe);let t;try{t=ii(e)}catch{t=!0}t&&li(e)}Bn.clear()}function qn(e){P(e,e.v+1)}function Jn(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ct(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Gr)){var l=(c&fe)===0;if(l&&Nt(s,t),c&131072)Bn.add(s);else if(c&2){var u=s;wn?.delete(u),c&65536||(c&512&&(Gr===null||!(Gr.f&2097152))&&(s.f|=Ce),Jn(u,pe,n))}else if(l){var d=s;c&16&&Fn!==null&&Fn.add(d),n===null?Ln(d):n.push(d)}}}}function Yn(e){if(typeof e!=`object`||!e||De in e)return e;let t=ne(e);if(t!==ee&&t!==te)return e;var n=new Map,r=y(e),i=N(0),a=null,o=ti,s=e=>{if(ti===o)return e();var t=Hr,n=ti;Wr(null),ni(o);var r=e();return Wr(t),ni(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ge();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(Xe,a));n.set(t,e),qn(i)}}else P(r,Xe),qn(i);return!0},get(t,r,i){if(r===De)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||w(t,r)?.writable)&&(o=s(()=>N(Yn(c?t[r]:Xe),a)),n.set(r,o)),o!==void 0){var l=B(o);return l===Xe?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=B(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==Xe)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===De)return!0;var r=n.get(t),i=r!==void 0&&r.v!==Xe||Reflect.has(e,t);return(r!==void 0||Gr!==null&&(!i||w(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Yn(e[t]):Xe,a)),n.set(t,r)),B(r)===Xe)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>N(Xe,a)),n.set(d+``,f)):P(f,Xe)}if(l===void 0)(!u||w(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Yn(o)),n.set(t,l));else{u=l.v!==Xe;var p=s(()=>Yn(o));P(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&P(h,g+1)}qn(i)}return!0},ownKeys(e){B(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==Xe});for(var[r,a]of n)a.v!==Xe&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ke()}})}function Xn(e){try{if(typeof e==`object`&&e&&De in e)return e[De]}catch{}return e}function Zn(e,t){return Object.is(Xn(e),Xn(t))}var Qn,$n,er,tr,nr;function rr(){if(Qn===void 0){Qn=window,$n=document,er=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tr=w(t,`firstChild`).get,nr=w(t,`nextSibling`).get,re(e)&&(e[je]=void 0,e[Ae]=null,e[Me]=void 0,e.__e=void 0),re(n)&&(n[Ne]=void 0)}}function ir(e=``){return document.createTextNode(e)}function ar(e){return tr.call(e)}function or(e){return nr.call(e)}function F(e,t){if(!it)return ar(e);var n=ar(ot);if(n===null)n=ot.appendChild(ir());else if(t&&n.nodeType!==3){var r=ir();return n?.before(r),st(r),r}return t&&ur(n),st(n),n}function I(e,t=!1){if(!it){var n=ar(e);return n instanceof Comment&&n.data===``?or(n):n}if(t){if(ot?.nodeType!==3){var r=ir();return ot?.before(r),st(r),r}ur(ot)}return ot}function L(e,t=1,n=!1){let r=it?ot:e;for(var i;t--;)i=r,r=or(r);if(!it)return r;if(n){if(r?.nodeType!==3){var a=ir();return r===null?i?.after(a):r.before(a),st(a),a}ur(r)}return st(r),r}function sr(e){e.textContent=``}function cr(){return!1}function lr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function ur(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function dr(e){Gr===null&&(Hr===null&&He(e),Ve()),Br&&Be(e)}function fr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function pr(e,t){var n=Gr;n!==null&&n.f&8192&&(e|=me);var r={ctx:vt,deps:null,nodes:null,f:e|fe|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Sn?.register_created_effect(r);var i=r;if(e&4)On===null?Mn.ensure().schedule(r):On.push(r);else if(t!==null){try{li(r)}catch(e){throw Ar(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ve))}if(i!==null&&(i.parent=n,n!==null&&fr(i,n),Hr!==null&&Hr.f&2&&!(e&64))){var a=Hr;(a.effects??=[]).push(i)}return r}function mr(){return Hr!==null&&!Ur}function hr(e){let t=pr(8,null);return Nt(t,de),t.teardown=e,t}function R(e){dr(`$effect`);var t=Gr.f;if(!Hr&&t&32&&vt!==null&&!vt.i){var n=vt;(n.e??=[]).push(e)}else return gr(e)}function gr(e){return pr(4|xe,e)}function _r(e){return dr(`$effect.pre`),pr(8|xe,e)}function vr(e){Mn.ensure();let t=pr(64|be,e);return()=>{Ar(t)}}function yr(e){Mn.ensure();let t=pr(64|be,e);return(e={})=>new Promise(n=>{e.outro?Nr(t,()=>{Ar(t),n(void 0)}):(Ar(t),n(void 0))})}function br(e){return pr(4,e)}function xr(e){return pr(Te|be,e)}function Sr(e,t=0){return pr(8|t,e)}function z(e,t=[],n=[],r=[]){cn(r,t,n,t=>{pr(8,()=>{e(...t.map(B))})})}function Cr(e,t=[],n=[],r=[]){cn(r,t,n,t=>{pr(4,()=>e(...t.map(B)))})}function wr(e,t=0){return pr(16|t,e)}function Tr(e,t=0){return pr(ue|t,e)}function Er(e){return pr(32|be,e)}function Dr(e){var t=e.teardown;if(t!==null){let e=Br,n=Hr;Vr(!0),Wr(null);try{t.call(null)}finally{Vr(e),Wr(n)}}}function Or(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&tn(()=>{e.abort(Fe)});var r=n.next;n.f&64?n.parent=null:Ar(n,t),n=r}}function kr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Ar(t),t=n}}function Ar(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(jr(e.nodes.start,e.nodes.end),n=!0),e.f|=_e,Or(e,t&&!n),ci(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Dr(e),e.f^=_e,e.f|=he;var i=e.parent;i!==null&&i.first!==null&&Mr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function jr(e,t){for(;e!==null;){var n=e===t?null:or(e);e.remove(),e=n}}function Mr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Nr(e,t,n=!0){var r=[];Pr(e,r,!0);var i=()=>{n&&Ar(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Pr(e,t,n){if(!(e.f&8192)){e.f^=me;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Pr(i,t,o?n:!1)}i=a}}}function Fr(e){Ir(e,!0)}function Ir(e,t){if(e.f&8192){e.f^=me,e.f&1024||(Nt(e,fe),Mn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Ir(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Lr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:or(n);t.append(n),n=i}}var Rr=null,zr=!1,Br=!1;function Vr(e){Br=e}var Hr=null,Ur=!1;function Wr(e){Hr=e}var Gr=null;function Kr(e){Gr=e}var qr=null;function Jr(e){Hr!==null&&(qr??=new Set).add(e)}var Yr=null,Xr=0,Zr=null;function Qr(e){Zr=e}var $r=1,ei=0,ti=ei;function ni(e){ti=e}function ri(){return++$r}function ii(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~Ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ii(a)&&vn(a),a.wv>e.wv)return!0}t&512&&wn===null&&Nt(e,de)}return!1}function ai(e,t,n=!0){var r=e.reactions;if(r!==null&&!(qr!==null&&qr.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?ai(a,t,!1):t===a&&(n?Nt(a,fe):a.f&1024&&Nt(a,pe),Ln(a))}}function oi(e){var t=Yr,n=Xr,r=Zr,i=Hr,a=qr,o=vt,s=Ur,c=ti,l=e.f;Yr=null,Xr=0,Zr=null,Hr=l&96?null:e,qr=null,yt(e.ctx),Ur=!1,ti=++ei,e.ac!==null&&(tn(()=>{e.ac.abort(Fe)}),e.ac=null);try{e.f|=we;var u=e.fn,d=u();e.f|=ge;var f=e.deps,p=Sn?.is_fork;if(Yr!==null){var m;if(p||ci(e,Xr),f!==null&&Xr>0)for(f.length=Xr+Yr.length,m=0;m<Yr.length;m++)f[Xr+m]=Yr[m];else e.deps=f=Yr;if(mr()&&e.f&512)for(m=Xr;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Xr<f.length&&(ci(e,Xr),f.length=Xr);if(Ct()&&Zr!==null&&!Ur&&f!==null&&!(e.f&6146))for(m=0;m<Zr.length;m++)ai(Zr[m],e);if(i!==null&&i!==e){if(ei++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=ei;if(t!==null)for(let e of t)e.rv=ei;Zr!==null&&(r===null?r=Zr:r.push(...Zr))}return e.f&8388608&&(e.f^=Ee),d}catch(e){return At(e)}finally{e.f^=we,Yr=t,Xr=n,Zr=r,Hr=i,qr=a,yt(o),Ur=s,ti=c}}function si(e,t){let n=t.reactions;if(n!==null){var r=b.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Yr===null||!x.call(Yr,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~Ce),a.v!==Xe&&Pt(a),a.ac!==null&&tn(()=>{a.ac.abort(Fe),a.ac=null,Nt(a,fe)}),yn(a),ci(a,0)}}function ci(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)si(e,n[r])}function li(e){var t=e.f;if(!(t&16384)){Nt(e,de);var n=Gr,r=zr;Gr=e,zr=!(t&96);try{t&16777232?kr(e):Or(e),Dr(e);var i=oi(e);e.teardown=typeof i==`function`?i:null,e.wv=$r}finally{zr=r,Gr=n}}}async function ui(){await Promise.resolve(),Nn()}function B(e){var t=!!(e.f&2);if(Rr?.add(e),Hr!==null&&!Ur&&!(Gr!==null&&Gr.f&16384)&&(qr===null||!qr.has(e))){var n=Hr.deps;if(Hr.f&2097152)e.rv<ei&&(e.rv=ei,Yr===null&&n!==null&&n[Xr]===e?Xr++:Yr===null?Yr=[e]:Yr.push(e));else{Hr.deps??=[],x.call(Hr.deps,e)||Hr.deps.push(e);var r=e.reactions;r===null?e.reactions=[Hr]:x.call(r,Hr)||r.push(Hr)}}if(Br&&Vn.has(e))return Vn.get(e);if(t){var i=e;if(Br){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||fi(i))&&(a=_n(i)),Vn.set(i,a),a}var o=!(i.f&512)&&!Ur&&Hr!==null&&(zr||!!(Hr.f&512)),s=(i.f&ge)===0;ii(i)&&(o&&(i.f|=512),vn(i)),o&&!s&&(bn(i),di(i))}if(wn?.has(e))return wn.get(e);if(e.f&8388608)throw e.v;return e.v}function di(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(bn(t),di(t))}function fi(e){if(e.v===Xe)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Vn.has(t)||t.f&2&&fi(t))return!0;return!1}function pi(e){var t=Ur;try{return Ur=!0,e()}finally{Ur=t}}function mi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var hi=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function gi(e){return hi.includes(e)}var _i=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),vi={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function yi(e){return e=e.toLowerCase(),vi[e]??e}[..._i];var bi=[`touchstart`,`touchmove`];function xi(e){return bi.includes(e)}var Si=[`textarea`,`script`,`style`,`title`];function Ci(e){return Si.includes(e)}var wi=Symbol(`events`),Ti=new Set,Ei=new Set;function Di(e){if(!it)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function Oi(e,t,n,r={}){function i(e){if(r.capture||Pi.call(t,e),!e.cancelBubble)return tn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ot(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ki(e,t,n,r={}){var i=Oi(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function Ai(e,t,n,r,i){var a={capture:r,passive:i},o=Oi(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&hr(()=>{t.removeEventListener(e,o,a)})}function ji(e,t,n){(t[wi]??={})[e]=n}function Mi(e){for(var t=0;t<e.length;t++)Ti.add(e[t]);for(var n of Ei)n(e)}var Ni=null;function Pi(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Ni=e;var o=0,s=Ni===e&&e[wi];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[wi]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){C(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Hr,d=Gr;Wr(null),Kr(null);try{for(var f,p=[];a!==null&&a!==t;){try{var m=a[wi]?.[r];m!=null&&(!a.disabled||e.target===a)&&m.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[wi]=t,delete e.currentTarget,Wr(u),Kr(d)}}}var Fi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Ii(e){return Fi?.createHTML(e)??e}function Li(e){var t=lr(`template`);return t.innerHTML=Ii(e.replaceAll(`<!>`,`<!---->`)),t.content}function Ri(e,t){var n=Gr;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function V(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(it)return Ri(ot,null),ot;i===void 0&&(i=Li(a?e:`<!>`+e),n||(i=ar(i)));var t=r||er?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=ar(t),s=t.lastChild;Ri(o,s)}else Ri(t,t);return t}}function zi(e=``){if(!it){var t=ir(e+``);return Ri(t,t),t}var n=ot;return n.nodeType===3?ur(n):(n.before(n=ir()),st(n)),Ri(n,n),n}function H(){if(it)return Ri(ot,null),ot;var e=document.createDocumentFragment(),t=document.createComment(``),n=ir();return e.append(t,n),Ri(t,n),e}function U(e,t){if(it){var n=Gr;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=ot),ct();return}e!==null&&e.before(t)}function Bi(){if(it&&ot&&ot.nodeType===8&&ot.textContent?.startsWith(`$`)){let e=ot.textContent.substring(1);return ct(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function W(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Ne]??=e.nodeValue)&&(e[Ne]=n,e.nodeValue=`${n}`)}function Vi(e,t){return Ui(e,t)}var Hi=new Map;function Ui(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){rr();var c=void 0,l=yr(()=>{var o=n??t.appendChild(ir());on(o,{pending:()=>{}},t=>{O({});var n=vt;if(a&&(n.c=a),i&&(r.$$events=i),it&&Ri(t,null),c=e(t,r)||{},it&&(Gr.nodes.end=ot,ot===null||ot.nodeType!==8||ot.data!==`]`))throw tt(),Ye;k()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=xi(r);for(let e of[t,document]){var a=Hi.get(e);a===void 0&&(a=new Map,Hi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Pi,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(S(Ti)),Ei.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=Hi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Pi),r.delete(e),r.size===0&&Hi.delete(n)):r.set(e,i)}Ei.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return Wi.set(c,l),c}var Wi=new WeakMap;function Gi(e,t){let n=Wi.get(e);return n?(Wi.delete(e),n(t)):Promise.resolve()}var Ki=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Fr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Fr(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Ar(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Lr(r,t),t.append(ir()),this.#n.set(e,{effect:r,fragment:t})}else Ar(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Nr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Ar(n.effect),this.#n.delete(e))};ensure(e,t){var n=Sn,r=cr();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=ir();i.append(a),this.#n.set(e,{effect:Er(()=>t(a)),fragment:i})}else this.#t.set(e,Er(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else it&&(this.anchor=ot),this.#a(n)}},qi=0,Ji=1,Yi=2;function Xi(e,t,n,r,i){it&&ct();var a=Ct(),o=Xe,s=a?Un(o):Wn(o,!1,!1),c=a?Un(o):Wn(o,!1,!1),l=new Ki(e);wr(()=>{var a=Sn,o=t(),u=!1;let d=it&&ae(o)===(e.data===`[!`);if(d&&(st(ut()),at(!1)),ae(o)){var f=ln(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Sn===a&&a.deactivate(),Mn.ensure();try{e()}finally{un(!1),En||Nn()}}};o.then(t=>{e(()=>{Gn(s,t),l.ensure(Ji,r&&(e=>r(e,s)))})},t=>{e(()=>{if(Gn(c,t),l.ensure(Yi,i&&(e=>i(e,c))),!i)throw c.v})}),it?l.ensure(qi,n):Ot(()=>{p||e(()=>{l.ensure(qi,n)})})}else Gn(s,o),l.ensure(Ji,r&&(e=>r(e,s)));return d&&at(!0),()=>{u=!0}})}function G(e,t,n=!1){var r;it&&(r=ot,ct());var i=new Ki(e),a=n?ve:0;function o(e,t){if(it){var n=dt(r);if(e!==parseInt(n.substring(1))){var a=ut();st(a),i.anchor=a,at(!1),i.ensure(e,t),at(!0);return}}i.ensure(e,t)}wr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Zi=Symbol(`NaN`);function Qi(e,t,n){it&&ct();var r=new Ki(e),i=!Ct();wr(()=>{var e=t();e!==e&&(e=Zi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function $i(e,t){it&&st(ar(e)),Sr(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}function ea(e,t){return t}function ta(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Nr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;na(e,S(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;sr(u),u.append(l),e.items.clear()}na(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function na(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=Se,Lr(a,document.createDocumentFragment())):Ar(t[i],n)}}var ra;function ia(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=it?st(ar(c)):c.appendChild(ir())}it&&ct();var l=null,u=hn(()=>{var e=n();return y(e)?e:e==null?[]:S(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,oa(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Se,ca(l,null,o)):Fr(l):Nr(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:wr(()=>{d=B(u);var e=d.length;let c=!1;it&&dt(o)===`[!`!=(e===0)&&(o=ut(),st(o),at(!1),c=!0);for(var g=new Set,_=Sn,v=cr(),y=0;y<e;y+=1){it&&ot.nodeType===8&&ot.data===`]`&&(o=ot,c=!0,at(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&Gn(S.v,b),S.i&&Gn(S.i,y),v&&_.unskip_effect(S.e)):(S=sa(s,p?o:ra??=ir(),b,x,y,i,t,n),p||(S.e.f|=Se),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=Er(()=>a(o)):(l=Er(()=>a(ra??=ir())),l.f|=Se)),e>g.size&&ze(``,``,``),it&&e>0&&st(ut()),!p){if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_)}c&&at(!0),B(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,it&&(o=ot)}function aa(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function oa(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=aa(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(Fr(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432){if(g.f^=Se,g===c)ca(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),la(e,u,g),la(e,g,v),ca(g,v,n),u=g,f=[],p=[],c=aa(u.next);continue}}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],b;u=y.prev;var x=f[0],C=f[f.length-1];for(b=0;b<f.length;b+=1)ca(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);la(e,x.prev,C.next),la(e,u,x),la(e,C,y),c=y,u=C,--_,f=[],p=[]}else l.delete(g),ca(g,c,n),la(e,g.prev,g.next),la(e,g,u===null?e.effect.first:u.next),la(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=aa(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=aa(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(na(e,S(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var w=[];if(l!==void 0)for(g of l)g.f&8192||w.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&w.push(c),c=aa(c.next);var T=w.length;if(T>0){var ee=r&4&&o===0?n:null;if(a){for(_=0;_<T;_+=1)w[_].nodes?.a?.measure();for(_=0;_<T;_+=1)w[_].nodes?.a?.fix()}ta(e,w,ee)}}a&&Ot(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function sa(e,t,n,r,i,a,o,s){var c=o&1?o&16?Un(n):Wn(n,!1,!1):null,l=o&2?Un(i):null;return{v:c,i:l,e:Er(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ca(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=or(r);if(a.before(r),r===i)return;r=o}}function la(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ua(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;it&&(o=st(ar(c)))}z(()=>{var e=Gr;if(s===(s=t()??``)){it&&ct();return}if(n&&!it){e.nodes=null,c.innerHTML=s,s!==``&&Ri(ar(c),c.lastChild);return}if(e.nodes!==null&&(jr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(it){for(var a=ot.data,l=ct(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=or(l);if(l===null)throw tt(),Ye;Ri(ot,u),o=st(l);return}var d=lr(r?`svg`:i?`math`:`template`,r?Qe:i?$e:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Ri(ar(f),f.lastChild),r||i)for(;ar(f);)o.before(ar(f));else o.before(f)}})}function da(e,t,...n){var r=new Ki(e);wr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ve)}function fa(e,t,n){var r;it&&(r=ot,ct());var i=new Ki(e);wr(()=>{var e=t()??null;if(it&&dt(r)===`[`!=(e!==null)){var a=ut();st(a),i.anchor=a,at(!1),i.ensure(e,e&&(t=>n(t,e))),at(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ve)}var pa=()=>performance.now(),ma={tick:e=>requestAnimationFrame(e),now:()=>pa(),tasks:new Set};function ha(){let e=ma.now();ma.tasks.forEach(t=>{t.c(e)||(ma.tasks.delete(t),t.f())}),ma.tasks.size!==0&&ma.tick(ha)}function ga(e){let t;return ma.tasks.size===0&&ma.tick(ha),{promise:new Promise(n=>{ma.tasks.add(t={c:e,f:n})}),abort(){ma.tasks.delete(t)}}}function _a(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function va(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=_a(n.trim());t[i]=r.trim()}return t}var ya=e=>e,ba=null;function xa(e){ba=e}function Sa(e,t,n){var r=(ba??Gr).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Ca(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Ca(e,t,n,r,i,a){var o=r===1;if(ie(t)){var s,c=!1;return Ot(()=>{c||(s=Ca(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:E,deactivate:E,reset:E,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=ya}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=va(u(0,1));p.push(m,m)}var h=()=>1-r,g=e.animate(p,{duration:l,fill:`forwards`});return g.onfinish=()=>{g.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=va(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),h=()=>{var e=g.currentTime;return o+s*f(e/c)},d&&ga(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=E)},deactivate:()=>{a=E},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}function wa(e,t,n,r,i,a){let o=it;it&&ct();var s=null;it&&ot.nodeType===1&&(s=ot,ct());var c=it?ot:e,l=Gr,u=new Ki(c,!1);wr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Qe:void 0;if(e===null){u.ensure(null,null);return}return u.ensure(e,t=>{if(e){if(s=it?s:lr(e,a),Ri(s,s),r){var n=null;it&&Ci(e)&&s.append(n=document.createComment(``));var i=it?ar(s):s.appendChild(ir());it&&(i===null?at(!1):st(i)),xa(l),r(s,i),n?.remove(),xa(null)}Gr.nodes.end=s,t.before(s)}it&&st(t)}),()=>{}},ve),hr(()=>{}),o&&(at(!0),st(c))}function Ta(e,t){let n=null,r=it;var i;if(it){n=ot;for(var a=ar(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=or(a);if(a===null)at(!1);else{var o=or(a);a.remove(),st(o)}}it||(i=document.head.appendChild(ir()));try{wr(()=>{var e=Er(()=>t(i));e.f|=ye})}finally{r&&(at(!0),st(n))}}function K(e,t){br(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=lr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Ea(e,t){var n=void 0,r;Tr(()=>{n!==(n=t())&&(r&&=(Ar(r),null),n&&(r=Er(()=>{br(()=>n(e))})))})}function Da(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Da(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Oa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Da(e))&&(r&&(r+=` `),r+=t);return r}function ka(e){return typeof e==`object`?Oa(e):e??``}var Aa=[...`
|
|
18
|
-
\r\f\xA0\v`];function ja(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Aa.includes(r[o-1]))&&(s===r.length||Aa.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ma(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Na(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Pa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Na)),i&&c.push(...Object.keys(i).map(Na));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Na(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ma(r)),i&&(n+=Ma(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Fa(e,t,n,r,i,a){var o=e[je];if(it||o!==n||o===void 0){var s=ja(n,r,a);(!it||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[je]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Ia(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function La(e,t,n,r){var i=e[Me];if(it||i!==t){var a=Pa(t,r);(!it||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Me]=t}else r&&(Array.isArray(r)?(Ia(e,n?.[0],r[0]),Ia(e,n?.[1],r[1],`important`)):Ia(e,n,r));return r}function Ra(e,t,n=!1){if(e.multiple){if(t==null)return;if(!y(t))return nt();for(var r of e.options)r.selected=t.includes(Ba(r));return}for(r of e.options)if(Zn(Ba(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function za(e){var t=new MutationObserver(()=>{`__value`in e&&Ra(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),hr(()=>{t.disconnect()})}function Ba(e){return`__value`in e?e.__value:e.value}var Va=Symbol(`class`),Ha=Symbol(`style`),Ua=Symbol(`is custom element`),Wa=Symbol(`is html`),Ga=Ie?`link`:`LINK`,Ka=Ie?`input`:`INPUT`,qa=Ie?`option`:`OPTION`,Ja=Ie?`select`:`SELECT`;function Ya(e){if(it){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;q(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;q(e,`checked`,null),e.checked=r}}};e[Pe]=n,Ot(n),en()}}function Xa(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function q(e,t,n,r){var i=$a(e);it&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ga)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ke]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&to(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Za(e,t,n,r,i=!1,a=!1){if(it&&i&&e.nodeName===Ka){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ya(o)}var s=$a(e),c=s[Ua],l=!s[Wa];let u=it&&c;u&&at(!1);var d=t||{},f=e.nodeName===qa;for(var p in t)p in n||(n[p]=null);n.class?n.class=ka(n.class):(r||n[Va])&&(n.class=null),n[Ha]&&(n.style??=null);var m=to(e);if(e.nodeName===Ka&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,q(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){Fa(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Va],n[Va]),d[i]=o,d[Va]=n[Va];continue}if(i===`style`){La(e,o,t?.[Ha],n[Ha]),d[i]=o,d[Ha]=n[Ha];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=gi(r);if(mi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)ji(r,e,o),Mi([r]);else if(o!=null){function y(e){d[i].call(this,e)}d[n]=Oi(r,e,y,t)}}else if(i===`style`)q(e,i,o);else if(i===`autofocus`)Zt(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Xa(e,o);else{var b=i;l||(b=yi(b));var x=b===`defaultValue`||b===`defaultChecked`;if(o==null&&!c&&!x){if(s[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||m.includes(b)&&(c||typeof o!=`string`)?(e[b]=o,b in s&&(s[b]=Xe)):typeof o!=`function`&&q(e,b,o,a)}}}}return u&&at(!0),d}function Qa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){cn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ja,l=!1;if(Tr(()=>{var u=t(...n.map(B)),d=Za(e,r,u,a,o,s);l&&c&&`value`in u&&Ra(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||Ar(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&Ar(i[t]),i[t]=Er(()=>Ea(e,()=>f))),d[t]=f}r=d}),c){var u=e;br(()=>{Ra(u,r.value,!0),za(u)})}l=!0})}function $a(e){return e[Ae]??={[Ua]:e.nodeName.includes(`-`),[Wa]:e.namespaceURI===Ze}}var eo=new Map;function to(e){var t=e.getAttribute(`is`)||e.nodeName,n=eo.get(t);if(n)return n;eo.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=T(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=ne(i)}return n}function no(e,t,n=t){var r=new WeakSet;nn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=ro(e)?io(a):a,n(a),Sn!==null&&r.add(Sn),await ui(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(it&&e.defaultValue!==e.value||pi(t)==null&&e.value)&&(n(ro(e)?io(e.value):e.value),Sn!==null&&r.add(Sn)),Sr(()=>{var n=t();if(e===document.activeElement){var i=Sn;if(r.has(i))return}ro(e)&&n===io(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function ro(e){var t=e.type;return t===`number`||t===`range`}function io(e){return e===``?null:+e}function ao(e,t){return e===t||e?.[De]===t}function oo(e={},t,n,r){var i=vt.r,a=Gr;return br(()=>{var o,s;return Sr(()=>{o=s,s=r?.()||[],pi(()=>{ao(n(...s),e)||(t(e,...s),o&&ao(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ao(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var so={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function co(e,t,n){return new Proxy({props:e,exclude:t},so)}var lo={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ie(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];ie(i)&&(i=i());let a=w(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ie(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=w(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===De||t===Oe)return!1;for(let n of e.props)if(ie(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(ie(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function uo(...e){return new Proxy({props:e},lo)}function J(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=fn(r),B(l)):(c&&(c=!1,s=o?pi(r):r),s);let d;if(a){var f=De in e||Oe in e;d=w(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Xt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&We(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?fn:hn)(()=>(_=!1,h()));a&&B(v);var y=Gr;return(function(e,t){if(arguments.length>0){let n=t?B(v):i&&a?Yn(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Br&&_||y.f&16384?v.v:B(v)})}function fo(e){vt===null&&Le(`onMount`),R(()=>{let t=pi(e);if(typeof t==`function`)return t})}function po(e){vt===null&&Le(`onDestroy`),fo(()=>()=>pi(e))}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var mo=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),ho=V(`<span> </span>`),go={hash:`svelte-cd3ofx`,code:`.icon.small-arrow.svelte-cd3ofx {overflow:hidden;width:12px;text-indent:-6px;}`};function _o(e,t){K(e,go);let n=co(t,mo);var r=ho();Qa(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-cd3ofx`);var i=F(r,!0);D(r),z(()=>W(i,t.name)),U(e,r)}var vo=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`ariaLive`,`children`,`icon`]),yo=V(`<div><!> <!></div>`),bo={hash:`svelte-17icn7h`,code:`.alert.svelte-17icn7h {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-17icn7h {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-17icn7h {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-17icn7h {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-17icn7h {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`};function xo(e,t){K(e,bo);let n=J(t,`ariaLive`,3,`assertive`),r=co(t,vo);var i=yo();Qa(i,()=>({...r,role:`alert`,class:`sui alert ${t.status??``}`,"aria-live":n()}),void 0,void 0,void 0,`svelte-17icn7h`);var a=F(i),o=e=>{var n=H();da(I(n),()=>t.icon),U(e,n)},s=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);_o(e,{get name(){return B(n)}})}};G(a,e=>{t.icon?e(o):e(s,-1)}),da(L(a,2),()=>t.children??E),D(i),U(e,i)}var So=/^[\u061c\u200e\u200f\u2066-\u2069]+/,Co=/^[-.+0-9A-Z_a-z\u{a1}-\u{61b}\u{61d}-\u{167f}\u{1681}-\u{1fff}\u{200b}-\u{200d}\u{2010}-\u{2027}\u{2030}-\u{205e}\u{2060}-\u{2065}\u{206a}-\u{2fff}\u{3001}-\u{d7ff}\u{e000}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{1fffd}\u{20000}-\u{2fffd}\u{30000}-\u{3fffd}\u{40000}-\u{4fffd}\u{50000}-\u{5fffd}\u{60000}-\u{6fffd}\u{70000}-\u{7fffd}\u{80000}-\u{8fffd}\u{90000}-\u{9fffd}\u{a0000}-\u{afffd}\u{b0000}-\u{bfffd}\u{c0000}-\u{cfffd}\u{d0000}-\u{dfffd}\u{e0000}-\u{efffd}\u{f0000}-\u{ffffd}\u{100000}-\u{10fffd}]+/u,wo=/^[-.0-9]/;function To(e,t){let n=t,r=e.slice(n).match(So);r&&(n+=r[0].length);let i=e.slice(n).match(Co);if(!i)return null;let a=i[0];if(wo.test(a))return null;n+=a.length;let o=e.slice(n).match(So);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var Eo=(e,t)=>e.slice(t).match(Co)?.[0]??``,Do=Symbol.for(`CST`),Oo=class extends Error{type;constructor(e,t){super(t),this.type=e}},ko=class extends Oo{start;end;constructor(e,t,n,r){let i=r?`Missing ${r}`:e;t>=0&&(i+=` at ${t}`),super(e,i),this.start=t,this.end=n??t+1}},Ao=class extends ko{constructor(e,t){let{start:n,end:r}=t[Do]??{start:-1,end:-1};super(e,n,r)}},jo=class extends Oo{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},Mo=class extends Oo{source;cause;constructor(e,t){super(e,t),this.source=`�`}},No=new Set(``),Po=new Set(`
|
|
19
|
-
\r `),Fo,Io,Lo=(e,t)=>new ko(`missing-syntax`,e,e+t.length,t),Ro=(...e)=>new ko(...e);function zo(e,t){if(Io.startsWith(e,Fo))t&&(Fo+=e.length);else throw Lo(Fo,e)}function Bo(e){Fo=0,Io=e;let t=Wo();if(Io.startsWith(`.match`,Fo))return Vo(t);let n=t.length>0||Io.startsWith(`{{`,Fo);!n&&Fo>0&&(Fo=0);let r=Uo(n);if(n&&(rs(),Fo<Io.length))throw Ro(`extra-content`,Fo,Io.length);return{type:`message`,declarations:t,pattern:r}}function Vo(e){Fo+=6,rs(!0);let t=[];for(;Io[Fo]===`$`;)t.push(Qo()),rs(!0);if(t.length===0)throw Ro(`empty-token`,Fo);let n=[];for(;Fo<Io.length;)n.push(Ho()),rs();return{type:`select`,declarations:e,selectors:t,variants:n}}function Ho(){let e=[];for(;Fo<Io.length;){rs(e.length?`{`:!1);let t=Io[Fo];if(t===`{`)break;if(t===`*`)e.push({type:`*`}),Fo+=1;else{let t=$o(!0);t.value=t.value.normalize(),e.push(t)}}return{keys:e,value:Uo(!0)}}function Uo(e){if(e){if(Io.startsWith(`{{`,Fo))Fo+=2;else throw Lo(Fo,`{{`)}let t=[];loop:for(;Fo<Io.length;)switch(Io[Fo]){case`{`:t.push(qo(!0));break;case`}`:if(!e)throw Ro(`parse-error`,Fo);break loop;default:t.push(Xo())}if(e){if(Io.startsWith(`}}`,Fo))Fo+=2;else throw Lo(Fo,`}}`)}return t}function Wo(){let e=[];rs();loop:for(;Io[Fo]===`.`;){switch(Io.substr(Fo,6)){case`.input`:e.push(Go());break;case`.local`:e.push(Ko());break;case`.match`:break loop;default:throw Ro(`parse-error`,Fo)}rs()}return e}function Go(){Fo+=6,rs(),zo(`{`,!1);let e=Fo,t=qo(!1);if(t.type===`expression`&&t.arg?.type===`variable`)return{type:`input`,name:t.arg.name,value:t};throw Ro(`bad-input-expression`,e,Fo)}function Ko(){Fo+=6,rs(!0),zo(`$`,!0);let e=ns();return rs(),zo(`=`,!0),rs(),zo(`{`,!1),{type:`local`,name:e,value:qo(!1)}}function qo(e){let t=Fo;Fo+=1,rs();let n=Zo(!1);n&&rs(`}`);let r=Io[Fo],i,a;switch(r){case`@`:case`}`:break;case`:`:{Fo+=1,i={type:`function`,name:ts()};let e=Jo();e&&(i.options=e);break}case`#`:case`/`:{if(n||!e)throw Ro(`parse-error`,Fo);Fo+=1,a={type:`markup`,kind:r===`#`?`open`:`close`,name:ts()};let t=Jo();t&&(a.options=t);break}default:throw Ro(`parse-error`,Fo)}let o=Yo();if(a?.kind===`open`&&Io[Fo]===`/`&&(a.kind=`standalone`,Fo+=1),zo(`}`,!0),i){let e=n?{type:`expression`,arg:n,functionRef:i}:{type:`expression`,functionRef:i};return o&&(e.attributes=o),e}if(a)return o&&(a.attributes=o),a;if(!n)throw Ro(`empty-token`,t,Fo);return o?{type:`expression`,arg:n,attributes:o}:{type:`expression`,arg:n}}function Jo(){rs(`/}`);let e={},t=!0;for(;Fo<Io.length;){let n=Io[Fo];if(n===`@`||n===`/`||n===`}`)break;let r=Fo,i=ts();if(Object.hasOwn(e,i))throw Ro(`duplicate-option-name`,r,Fo);rs(),zo(`=`,!0),rs(),e[i]=Zo(!0),t=!1,rs(`/}`)}return t?null:e}function Yo(){let e={},t=!0;for(;Io[Fo]===`@`;){let n=Fo;Fo+=1;let r=ts();if(Object.hasOwn(e,r))throw Ro(`duplicate-attribute`,n,Fo);rs(`=/}`),Io[Fo]===`=`?(Fo+=1,rs(),e[r]=$o(!0),rs(`/}`)):e[r]=!0,t=!1}return t?null:e}function Xo(){let e=``,t=Fo;loop:for(;t<Io.length;++t)switch(Io[t]){case`\\`:{let n=Io[t+1];if(!`\\{|}`.includes(n))throw Ro(`bad-escape`,t,t+2);e+=Io.substring(Fo,t)+n,t+=1,Fo=t+1;break}case`{`:case`}`:break loop}return e+=Io.substring(Fo,t),Fo=t,e}function Zo(e){return Io[Fo]===`$`?Qo():$o(e)}function Qo(){return Fo+=1,{type:`variable`,name:ns()}}function $o(e){if(Io[Fo]===`|`)return es();let t=Eo(Io,Fo);if(!t){if(e)throw Ro(`empty-token`,Fo);return}return Fo+=t.length,{type:`literal`,value:t}}function es(){Fo+=1;let e=``;for(let t=Fo;t<Io.length;++t)switch(Io[t]){case`\\`:{let n=Io[t+1];if(!`\\{|}`.includes(n))throw Ro(`bad-escape`,t,t+2);e+=Io.substring(Fo,t)+n,t+=1,Fo=t+1;break}case`|`:return e+=Io.substring(Fo,t),Fo=t+1,{type:`literal`,value:e}}throw Lo(Io.length,`|`)}function ts(){let e=ns();return Io[Fo]===`:`?(Fo+=1,e+`:`+ns()):e}function ns(){let e=To(Io,Fo);if(!e)throw Ro(`empty-token`,Fo);return Fo=e.end,e.value}function rs(e=!1){let t=Io[Fo],n=!1;if(e){for(;No.has(t);)t=Io[++Fo];for(;Po.has(t);)t=Io[++Fo],n=!0}for(;No.has(t)||Po.has(t);)t=Io[++Fo];if(e&&!n&&(e===!0||!e.includes(Io[Fo])))throw Lo(Fo,`' '`)}function is(e,t){let{node:n,pattern:r}=t,{functionRef:i=n,attributes:a=null,declaration:o=n,expression:s=n,key:c=n,markup:l=n,options:u=null,value:d=n,variant:f=n}=t,p=(e,t)=>{if(e){let n=u?.(e,t);if(d)for(let n of Object.values(e))d(n,t,`option`);n?.()}},m=(e,t)=>{if(e){let n=a?.(e,t);if(d)for(let n of Object.values(e))n!==!0&&d(n,t,`attribute`);n?.()}},h=(e,t)=>{if(typeof e==`object`){let n;switch(e.type){case`expression`:if(n=s?.(e,t),e.arg&&d?.(e.arg,t,`arg`),e.functionRef){let n=i?.(e.functionRef,t,e.arg);p(e.functionRef.options,t),n?.()}m(e.attributes,t);break;case`markup`:n=l?.(e,t),p(e.options,t),m(e.attributes,t)}n?.()}},g=e=>{let t=r?.(e);for(let t of e)h(t,`placeholder`);t?.()};for(let t of e.declarations){let e=o?.(t);t.value&&h(t.value,`declaration`),e?.()}if(e.type===`message`)g(e.pattern);else{if(d)for(let t of e.selectors)d(t,`selector`,`arg`);for(let t of e.variants){let e=f?.(t);c&&t.keys.forEach(c),g(t.value),e?.()}}}function as(e,t=(e,t)=>{throw new Ao(e,t)}){let n=0,r=null,i=new Set,a=new Set,o=new Set,s=new Set,c=new Set,l=new Set,u=!0;is(e,{declaration(e){if(e.name)return(e.value.functionRef||e.type===`local`&&e.value.arg?.type===`variable`&&i.has(e.value.arg.name))&&i.add(e.name),e.type===`local`&&s.add(e.name),u=e.type===`local`,()=>{a.has(e.name)?t(`duplicate-declaration`,e):a.add(e.name)}},expression({functionRef:e}){e&&o.add(e.name)},value(e,o,s){if(e.type===`variable`)switch(c.add(e.name),o){case`declaration`:(s!==`arg`||u)&&a.add(e.name);break;case`selector`:n+=1,r=e,i.has(e.name)||t(`missing-selector-annotation`,e)}},variant(e){let{keys:i}=e;i.length!==n&&t(`key-mismatch`,e);let a=JSON.stringify(i.map(e=>e.type===`literal`?e.value:0));l.has(a)?t(`duplicate-variant`,e):l.add(a),r&&=i.every(e=>e.type===`*`)?null:e}}),r&&t(`missing-fallback`,r);for(let e of s)c.delete(e);return{functions:o,variables:c}}var os=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`;function ss(e){if(e)try{typeof e==`string`&&(e=new Intl.Locale(e));let t=e.getTextInfo?.()??e.textInfo;if(t?.direction)return t.direction;let n=e.maximize().script;if(n)return os.includes(n)?`rtl`:`ltr`}catch{}return`auto`}function cs(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`boolean`)return e;if(e&&typeof e==`object`&&(e=String(e)),e===`true`)return!0;if(e===`false`)return!1;throw RangeError(`Not a boolean`)}function ls(e){if(e&&typeof e==`object`&&(e=e.valueOf()),e&&typeof e==`object`&&(e=String(e)),typeof e==`string`&&/^(0|[1-9][0-9]*)$/.test(e)&&(e=Number(e)),typeof e==`number`&&e>=0&&Number.isInteger(e))return e;throw RangeError(`Not a positive integer`)}function us(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`string`)return e;if(e&&typeof e==`object`)return String(e);throw RangeError(`Not a string`)}function ds(e){let t;if(typeof e==`object`){let n=e?.valueOf;typeof n==`function`&&(t=e.options,e=n.call(e))}if(typeof e==`string`)try{e=JSON.parse(e)}catch{}if(typeof e!=`bigint`&&typeof e!=`number`)throw new Mo(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function fs(e,t,n,r){let{dir:i,locales:a}=e;n.useGrouping===`never`&&(n.useGrouping=!1),r&&`select`in n&&!e.literalOptionKeys.has(`select`)&&(e.onError(`bad-option`,`The option select may only be set by a literal value`),r=!1);let o,s,c,l;return{type:`number`,get dir(){return i??=(o??=Intl.NumberFormat.supportedLocalesOf(a,n)[0],ss(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(r*=typeof r==`bigint`?100n:100);let i=String(r);if(e.has(i))return i;if(n.select===`exact`)return null;let o=n.select?{...n,select:void 0,type:n.select}:n;return c??=new Intl.PluralRules(a,o).select(Number(r)),e.has(c)?c:null}:void 0,toParts(){s??=new Intl.NumberFormat(a,n);let e=s.formatToParts(t);return o??=s.resolvedOptions().locale,i??=ss(o),i===`ltr`||i===`rtl`?[{type:`number`,dir:i,locale:o,parts:e}]:[{type:`number`,locale:o,parts:e}]},toString(){return s??=new Intl.NumberFormat(a,n),l??=s.format(t),l},valueOf:()=>t}}function ps(e,t,n){let r=ds(n),i=r.value,a=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:a[n]=ls(r);break;case`roundingMode`:case`roundingPriority`:case`select`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:a[n]=us(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :number option ${n}`)}return fs(e,i,a,!0)}function ms(e,t,n){let r=ds(n),i=Number.isFinite(r.value)?Math.round(r.value):r.value,a=Object.assign({},r.options,{maximumFractionDigits:0,minimumFractionDigits:void 0,minimumSignificantDigits:void 0,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`maximumSignificantDigits`:a[n]=ls(r);break;case`select`:case`signDisplay`:case`useGrouping`:a[n]=us(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :integer option ${n}`)}return fs(e,i,a,!0)}function hs(e,t,n){let r=ds(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`currency`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`currency`:case`currencySign`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=us(r);break;case`minimumIntegerDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=ls(r);break;case`currencyDisplay`:{let t=us(r);t===`never`?e.onError(`unsupported-operation`,`Currency display "never" is not yet supported`):i[n]=t;break}case`fractionDigits`:{let e=us(r);if(e===`auto`)i.minimumFractionDigits=void 0,i.maximumFractionDigits=void 0;else{let t=ls(e);i.minimumFractionDigits=t,i.maximumFractionDigits=t}break}}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.currency)throw new Mo(`bad-operand`,`A currency code is required for :currency`);return fs(e,r.value,i,!1)}var gs=new Set([`weekday`,`day-weekday`,`month-day`,`month-day-weekday`,`year-month-day`,`year-month-day-weekday`]),_s=new Set([`long`,`medium`,`short`]),vs=new Set([`hour`,`minute`,`second`]),ys=new Set([`long`,`short`]),bs=(e,t,n)=>Cs(`datetime`,e,t,n),xs=(e,t,n)=>Cs(`date`,e,t,n),Ss=(e,t,n)=>Cs(`time`,e,t,n);function Cs(e,t,n,r){let i={localeMatcher:t.localeMatcher},a=r;if(typeof a==`object`&&a){let t=a.options;t&&(i.calendar=t.calendar,e!==`date`&&(i.hour12=t.hour12),i.timeZone=t.timeZone),typeof a.valueOf==`function`&&(a=a.valueOf())}switch(typeof a){case`number`:case`string`:a=new Date(a)}if(!(a instanceof Date)||isNaN(a.getTime()))throw new Mo(`bad-operand`,`Input is not a valid date`);if(n.calendar!==void 0)try{i.calendar=us(n.calendar)}catch{t.onError(`bad-option`,`Invalid :${e} calendar option value`)}if(n.hour12!==void 0&&e!==`date`)try{i.hour12=cs(n.hour12)}catch{t.onError(`bad-option`,`Invalid :${e} hour12 option value`)}if(n.timeZone!==void 0){let r;try{r=us(n.timeZone)}catch{t.onError(`bad-option`,`Invalid :${e} timeZone option value`)}if(r===`input`)i.timeZone===void 0&&t.onError(`bad-operand`,`Missing input timeZone value for :${e}`);else if(r!==void 0){if(i.timeZone!==void 0&&r!==i.timeZone)throw new Mo(`bad-option`,`Time zone conversion is not supported`);i.timeZone=r}}if(e!==`time`){let r=e===`date`?`fields`:`dateFields`,a=e===`date`?`length`:`dateLength`,o=ws(t,n,r,gs)??`year-month-day`,s=ws(t,n,a,_s),c=new Set(o.split(`-`));c.has(`year`)&&(i.year=`numeric`),c.has(`month`)&&(i.month=s===`long`?`long`:s===`short`?`numeric`:`short`),c.has(`day`)&&(i.day=`numeric`),c.has(`weekday`)&&(i.weekday=s===`long`?`long`:`short`)}if(e!==`date`){switch(ws(t,n,e===`time`?`precision`:`timePrecision`,vs)){case`hour`:i.hour=`numeric`;break;case`second`:i.hour=`numeric`,i.minute=`numeric`,i.second=`numeric`;break;default:i.hour=`numeric`,i.minute=`numeric`}i.timeZoneName=ws(t,n,`timeZoneStyle`,ys)}let o=new Intl.DateTimeFormat(t.locales,i),s=t.dir,c,l;return{type:`datetime`,get dir(){return s??=(c??=o.resolvedOptions().locale,ss(c)),s},get options(){return{...i}},toParts(){let e=o.formatToParts(a);return c??=o.resolvedOptions().locale,s??=ss(c),s===`ltr`||s===`rtl`?[{type:`datetime`,dir:s,locale:c,parts:e}]:[{type:`datetime`,locale:c,parts:e}]},toString(){return l??=o.format(a),l},valueOf:()=>a}}function ws(e,t,n,r){let i=t[n];if(i!==void 0)try{let e=us(i);if(r&&!r.has(e))throw Error();return e}catch{e.onError(`bad-option`,`Invalid value for ${n} option`)}}function Ts(e,t,n){let{value:r,options:i}=ds(n),a;try{a=`add`in t?ls(t.add):-1}catch{throw new Mo(`bad-option`,`Value ${t.add} is not valid for :offset option add`)}let o;try{o=`subtract`in t?ls(t.subtract):-1}catch{throw new Mo(`bad-option`,`Value ${t.subtract} is not valid for :offset option subtract`)}if(a<0==o<0)throw new Mo(`bad-option`,`Exactly one of "add" or "subtract" is required as an :offset option`);let s=a<0?-o:a;return r+=typeof r==`number`?s:BigInt(s),ps(e,{},{valueOf:()=>r,options:i})}function Es(e,t,n){let r=ds(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`percent`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`roundingMode`:case`roundingPriority`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=us(r);break;case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:i[n]=ls(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :percent option ${n}`)}return fs(e,r.value,i,!0)}function Ds(e,t,n){let r=n===void 0?``:String(n),i=r.normalize();return{type:`string`,dir:e.dir??`auto`,selectKey:e=>e.has(i)?i:null,toParts(){let{dir:t}=e,n=e.locales[0];return t===`ltr`||t===`rtl`?[{type:`string`,dir:t,locale:n,value:r}]:[{type:`string`,locale:n,value:r}]},toString:()=>r,valueOf:()=>r}}function Os(e,t,n){let r=ds(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`unit`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`signDisplay`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`unit`:case`unitDisplay`:case`useGrouping`:i[n]=us(r);break;case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=ls(r)}}catch(t){t instanceof Oo?e.onError(t):e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.unit)throw new Mo(`bad-operand`,`A unit identifier is required for :unit`);return fs(e,r.value,i,!1)}var ks={integer:ms,number:ps,offset:Ts,string:Ds};ks=Object.freeze(Object.assign(Object.create(null),ks));var As={currency:hs,date:xs,datetime:bs,percent:Es,time:Ss,unit:Os};As=Object.freeze(Object.assign(Object.create(null),As));var js=Symbol(`bidi-isolate`),Ms=(e=`�`)=>({type:`fallback`,source:e,toParts:()=>[{type:`fallback`,source:e}],toString:()=>`{${e}}`}),Ns=(e,t)=>({type:`unknown`,source:e,dir:`auto`,toParts:()=>[{type:`unknown`,value:t}],toString:()=>String(t),valueOf:()=>t}),Ps=class{#e;#t;#n;dir;id;constructor(e,t,n){this.#e=e,this.#n=t,this.dir=void 0;let r=n&&Object.hasOwn(n,`u:dir`)?n[`u:dir`]:void 0;if(r){let t=String(Us(e,r));if(t===`ltr`||t===`rtl`||t===`auto`)this.dir=t;else if(t!==`inherit`){let t=new Mo(`bad-option`,`Unsupported value for u:dir option`);t.source=Ws(r),e.onError(t)}}let i=n&&Object.hasOwn(n,`u:id`)?n[`u:id`]:void 0;if(this.id=i?String(Us(e,i)):void 0,n){this.#t=new Set;for(let[e,t]of Object.entries(n))t.type===`literal`&&this.#t.add(e)}}get literalOptionKeys(){return new Set(this.#t)}get localeMatcher(){return this.#e.localeMatcher}get locales(){return this.#e.locales.map(String)}onError(e,t){let n;e instanceof Mo?n=e:typeof e==`string`&&typeof t==`string`?n=new Mo(e,t):(n=new Mo(`function-error`,String(e)),n.cause=e),n.source=this.#n,this.#e.onError(n)}};function Fs(e,t,{name:n,options:r}){let i=`:${n}`,a=Ws(t)??i;try{let o=t?[Us(e,t)]:[],s=e.functions[n];if(!s)throw new jo(`unknown-function`,`Unknown function ${i}`,a);let c=new Ps(e,a,r),l=s(c,Is(e,r),...o);if(typeof l!=`object`||!l||typeof l.type!=`string`)throw new jo(`bad-function-result`,`Function ${i} did not return a MessageValue`,a);let u={source:a};return c.dir&&(u.dir=c.dir,u[js]=!0),c.id&&typeof l.toParts==`function`&&(u.toParts=()=>{let e=l.toParts();for(let t of e)t.id=c.id;return e}),{...l,...u}}catch(t){return e.onError(t instanceof Oo?t:new jo(`bad-function-result`,String(t),a,t)),Ms(a)}}function Is(e,t){let n=Object.create(null);if(t)for(let[r,i]of Object.entries(t))r.startsWith(`u:`)||(n[r]=Us(e,i));return n}function Ls(e,{arg:t,functionRef:n}){if(n)return Fs(e,t,n);switch(t?.type){case`literal`:{let n=`|${t.value}|`,r=Ds(new Ps(e,n),{},t.value);return r.source=n,r}case`variable`:return Hs(e,t);default:throw Error(`Unsupported expression: ${t?.type}`)}}var Rs=class{expression;scope;constructor(e,t){this.expression=e,this.scope=t}},zs=e=>e!==null&&(typeof e==`object`||typeof e==`function`);function Bs(e,t){if(zs(e)){if(t in e)return e[t];let n=t.split(`.`);for(let t=n.length-1;t>0;--t){let r=n.slice(0,t).join(`.`);if(r in e){let i=n.slice(t).join(`.`);return Bs(e[r],i)}}for(let[n,r]of Object.entries(e))if(n.normalize()===t)return r}}function Vs(e,{name:t}){let n=Bs(e.scope,t);if(n===void 0){let n=`$`+t,r=`Variable not available: ${n}`;e.onError(new jo(`unresolved-variable`,r,n))}else if(n instanceof Rs){let r=Ls(n.scope?{...e,scope:n.scope}:e,n.expression);return e.scope[t]=r,e.localVars.add(r),r}return n}function Hs(e,t){let n=`$`+t.name,r=Vs(e,t);if(r===void 0)return Ms(n);let i=typeof r;if(i===`object`){let t=r;if(t.type===`fallback`)return Ms(n);if(e.localVars.has(t))return t.source=n,t;r instanceof Number?i=`number`:r instanceof String&&(i=`string`)}let a;switch(i){case`bigint`:case`number`:a=e.functions.number;break;case`string`:a=e.functions.string;break;default:return Ns(n,r)}let o=new Ps(e,n),s=a(o,{},r);return s.source=n,s}function Us(e,t){switch(t.type){case`literal`:return t.value;case`variable`:return Vs(e,t);default:throw Error(`Unsupported value: ${t.type}`)}}function Ws(e){switch(e?.type){case`literal`:return`|`+e.value.replaceAll(`\\`,`\\\\`).replaceAll(`|`,`\\|`)+`|`;case`variable`:return`$`+e.name;default:return}}function Gs(e,{kind:t,name:n,options:r}){let i={type:`markup`,kind:t,name:n},a=r?Object.entries(r):null;if(a?.length){i.options={};for(let[t,n]of a)if(t===`u:dir`){let r=new Mo(`bad-option`,`The option ${t} is not valid for markup`);r.source=Ws(n),e.onError(r)}else{let r=Us(e,n);typeof r==`object`&&typeof r?.valueOf==`function`&&(r=r.valueOf()),t===`u:id`?i.id=String(r):i.options[t]=r}}return i}function Ks(e,t){if(t.type===`message`)return t.pattern;let n=t.selectors.map(t=>{let n=Hs(e,t),r;return typeof n.selectKey==`function`?r=n.selectKey.bind(n):(e.onError(new jo(`bad-selector`,`Selector does not support selection`,n.source)),r=()=>null),{selectKey:r,source:n.source,best:null,keys:null}}),r=t.variants;loop:for(let i=0;i<n.length;++i){let a=n[i];if(!a.keys){a.keys=new Set;for(let{keys:e}of r){let t=e[i];if(!t)break loop;t.type!==`*`&&a.keys.add(t.value)}}try{a.best=a.keys.size?a.selectKey(a.keys):null}catch(t){e.onError(new jo(`bad-selector`,`Selection failed`,a.source,t)),a.selectKey=()=>null,a.best=null}if(r=r.filter(e=>{let t=e.keys[i];return t.type===`*`?a.best==null:a.best===t.value}),r.length===0){if(i===0)break;let e=n[i-1];e.best==null?e.keys?.clear():e.keys?.delete(e.best);for(let e=i;e<n.length;++e)n[e].keys=null;r=t.variants,i=-1}}let i=r[0];return i?i.value:(e.onError(new jo(`no-match`,`No variant was selected!?`,`.match`)),[])}var qs=class{#e;#t;#n;#r;#i;#a;constructor(e,t,n){this.#e=n?.bidiIsolation!==`none`,this.#n=n?.localeMatcher??`best fit`,this.#r=Array.isArray(e)?e.map(e=>new Intl.Locale(e)):e?[new Intl.Locale(e)]:[],this.#t=n?.dir??ss(this.#r[0]),this.#i=typeof t==`string`?Bo(t):t,as(this.#i),this.#a=n?.functions?Object.assign(Object.create(null),ks,n.functions):ks}format(e,t){let n=this.#o(e,t),r=``;for(let e of Ks(n,this.#i))if(typeof e==`string`)r+=e;else if(e.type===`markup`)Gs(n,e);else{let t;try{if(t=Ls(n,e),typeof t.toString==`function`){if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[js])){let e=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r+=e+t.toString()+``}else r+=t.toString()}else{let e=new Mo(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i=`{${t?.source??`�`}}`;r+=this.#e?``+i+``:i}}return r}formatToParts(e,t){let n=this.#o(e,t),r=[];for(let e of Ks(n,this.#i))if(typeof e==`string`)r.push({type:`text`,value:e});else if(e.type===`markup`)r.push(Gs(n,e));else{let t;try{if(t=Ls(n,e),typeof t.toParts==`function`){let e=t.toParts();if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[js])){let n=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r.push({type:`bidiIsolation`,value:n},...e,{type:`bidiIsolation`,value:``})}else r.push(...e)}else{let e=new Mo(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i={type:`fallback`,source:t?.source??`�`};this.#e?r.push({type:`bidiIsolation`,value:``},i,{type:`bidiIsolation`,value:``}):r.push(i)}}return r}#o(e,t=e=>{try{process.emitWarning(e)}catch{console.warn(e)}}){let n={...e};for(let t of this.#i.declarations)n[t.name]=new Rs(t.value,t.type===`input`?e??{}:void 0);return{onError:t,localeMatcher:this.#n,locales:this.#r,localVars:new WeakSet,functions:this.#a,scope:n}}},Js=class extends Map{#e=new Map;#t=N(0);#n=N(0);#r=ti||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return ti===this.#r?N(e):Un(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return B(this.#t),!1}return B(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{B(this.#t);return}}return B(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),P(this.#n,super.size),qn(o);else if(i!==t){qn(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&qn(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),P(n,-1)),r&&(P(this.#n,super.size),qn(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;P(this.#n,0);for(var t of e.values())P(t,-1);qn(this.#t),e.clear()}}#a(){B(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)B(n)}keys(){return B(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return B(this.#n),super.size}};Intl.MessageFormat??=qs;var Ys=N(``),Xs=Yn([]),Zs=Yn({}),Qs=``,$s=``,ec,tc={},nc={},rc,ic=(e,t)=>{if(typeof t!=`string`||!t)throw TypeError(`${e} must be a non-empty string (got ${JSON.stringify(t)})`)},ac=(e,t)=>{if(typeof t!=`string`)throw TypeError(`${e} must be a string (got ${typeof t})`)},oc=(e,t)=>{if(typeof t!=`function`)throw TypeError(`${e} must be a function (got ${typeof t})`)},sc=(e,t)=>{if(!e||!t.length||t.includes(e))return e;try{let n=new Intl.Locale(e).language;return t.find(e=>{try{return new Intl.Locale(e).language===n}catch{return!1}})??e}catch{return e}},cc=(e,t=``)=>Object.entries(e).reduce((e,[n,r])=>{let i=t?`${t}.${n}`:n;return typeof r==`object`&&r&&!Array.isArray(r)?Object.assign(e,cc(r,i)):e[i]=r,e},Object.create(null)),lc=e=>{Xs.includes(e)||(Xs.push(e),$s=sc(Qs,Xs))},uc=()=>{B(Ys)&&!Xs.includes(B(Ys))&&gc.set(B(Ys))},dc=(e,...t)=>{ic(`addMessages: localeCode`,e),t.forEach((e,t)=>{if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`addMessages: maps[${t}] must be a plain object (got ${Array.isArray(e)?`array`:typeof e})`)}),lc(e),Zs[e]??={};let n=Zs[e],r={...Ec,...nc};t.forEach(t=>{Object.entries(cc(t)).forEach(([t,i])=>{n[t]=new Intl.MessageFormat(e,String(i),{functions:r})})}),uc()},fc=new Js,pc=new Js,mc=(e=B(Ys))=>{if(ac(`waitLocale: localeCode`,e),!e)return Promise.resolve();if(!pc.has(e)){let t=fc.get(e);if(t){let n=Promise.resolve(t()).then(t=>{dc(e,t)},()=>{pc.delete(e),B(Ys)===e&&!Zs[e]&&$s&&P(Ys,$s,!0)});pc.set(e,n)}else pc.set(e,Promise.resolve())}return pc.get(e)??Promise.resolve()},hc=(e=B(Ys))=>ss(e)===`rtl`,gc={get current(){return B(Ys)},set(e){ac(`locale.set: value`,e);let t=Xs.length?sc(e,Xs):e;if(e&&Xs.length&&!Xs.includes(t)&&$s&&Xs.includes($s)&&(t=$s),P(Ys,t,!0),typeof document<`u`&&t){document.documentElement.lang=t;let e=ss(t);e!==`auto`&&(document.documentElement.dir=e)}return mc(t)}},_c=(e,t)=>{ic(`register: localeCode`,e),oc(`register: loader`,t),fc.set(e,t),pc.delete(e),lc(e),uc()},vc=()=>typeof navigator>`u`?void 0:navigator.languages?.[0]??navigator.language,yc=e=>{if(!e||typeof e.fallbackLocale!=`string`)throw TypeError(`init: fallbackLocale must be a string (got ${JSON.stringify(e?.fallbackLocale)})`);e.initialLocale!==void 0&&ac(`init: initialLocale`,e.initialLocale),e.handleMissingMessage!==void 0&&oc(`init: handleMissingMessage`,e.handleMissingMessage),Qs=e.fallbackLocale,$s=sc(Qs,Xs),ec=e.handleMissingMessage,tc=e.formats??{},e.initialLocale&&gc.set(e.initialLocale)},Y=(e,{values:t={},locale:n,default:r,formats:i}={})=>{if(e==null)throw TypeError(`format: key must be a string or message object (got ${JSON.stringify(e)})`);if(typeof e==`object`){let{id:t,values:n={},locale:r,default:i,formats:a}=e;return Y(t,{values:n,locale:r,default:i,formats:a})}let a=n??B(Ys),o=$s;rc=i;let s;try{s=Zs[a]?.[e]?.format(t)??(a===o?void 0:Zs[o]?.[e]?.format(t))}finally{rc=void 0}if(s!==void 0)return s;if(ec){let t=ec(e,a,r);if(t!==void 0)return t}return r??e},bc=`_default`,xc={date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}},number:{currency:{style:`currency`},percent:{style:`percent`},scientific:{notation:`scientific`},engineering:{notation:`engineering`},compactLong:{notation:`compact`,compactDisplay:`long`},compactShort:{notation:`compact`,compactDisplay:`short`}}},Sc=(e,t)=>tc[e]?.[t]??xc[e]?.[t],Cc=e=>{let t=rc?.[e];return(typeof t==`string`?Sc(e,t):t)??tc[e]?.[bc]},wc=(e,t,n)=>{let r=e.valueOf();return{...e,dir:n?ss(n):e.dir,toString:()=>t.format(r)}},Tc=(e,t,n)=>(r,i,a)=>{let o=e(r,i,a),s=Cc(t);if(!s)return o;let{locale:c,...l}=s;return wc(o,new n(c??r.locales,l),c)},Ec={...As,date:Tc(As.date,`date`,Intl.DateTimeFormat),time:Tc(As.time,`time`,Intl.DateTimeFormat),datetime:Tc(As.datetime,`datetime`,Intl.DateTimeFormat),number:Tc(ks.number,`number`,Intl.NumberFormat),integer:Tc(ks.integer,`number`,Intl.NumberFormat)},Dc,Oc=()=>(Dc??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Dc),kc=[`Ctrl`,`Meta`,`Alt`,`Shift`],Ac=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),jc=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:Ac.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),Mc=e=>e.replace(/\bAccel\b/g,Oc()?`Meta`:`Ctrl`),Nc=new Map,Pc=e=>{let t=Nc.get(e);return t||(t=Mc(e).split(/\s+/).map(e=>{let t=e.split(`+`);return{ctrl:t.includes(`Ctrl`),meta:t.includes(`Meta`),alt:t.includes(`Alt`),shift:t.includes(`Shift`),tokens:t.filter(e=>!kc.includes(e))}}),Nc.set(e,t)),t},Fc=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.some(({ctrl:t,meta:o,alt:s,shift:c,tokens:l})=>t===n&&o===r&&s===i&&c===a&&l.every(t=>jc(t,e)))},Ic=(e,t)=>Fc(e,Pc(t)),Lc=new Map,Rc=(e,t)=>{let{disabled:n}=e;if(!e.getClientRects().length)return;let{top:r,left:i}=e.getBoundingClientRect();n&&e.style.setProperty(`pointer-events`,`auto`);let a=document.elementsFromPoint(i+4,r+4).includes(e);n&&e.style.removeProperty(`pointer-events`),a&&(t.preventDefault(),n||(e.focus(),e.click()))},zc=e=>{Lc.forEach((t,n)=>{Fc(e,t)&&Rc(n,e)})},Bc=(e=``)=>{let t=e?Mc(e):void 0;if(!t)return()=>()=>{};let n=Pc(t);return e=>(Lc.size||globalThis.addEventListener(`keydown`,zc,{capture:!0}),Lc.set(e,n),e.setAttribute(`aria-keyshortcuts`,t),()=>{Lc.delete(e),e.removeAttribute(`aria-keyshortcuts`),Lc.size||globalThis.removeEventListener(`keydown`,zc,{capture:!0})})},Vc=V(`<span role="none" class="sui truncated-text svelte-11cf3b2"><!></span>`),Hc={hash:`svelte-11cf3b2`,code:`.truncated-text.svelte-11cf3b2 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`};function Uc(e,t){K(e,Hc);let n=J(t,`lines`,3,1),r=J(t,`children`,3,void 0);var i=Vc();da(F(i),()=>r()??E),D(i),z(()=>La(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),U(e,i)}var Wc=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)});function Gc(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}var Kc=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,qc=`0123456789ABCDEFGHIJKLMNOPQRSTUV`,Jc=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`;function Yc(e,t,n){n||={};let r,i;switch(t){case`RFC3548`:case`RFC4648`:r=Kc,i=!0;break;case`RFC4648-HEX`:r=qc,i=!0;break;case`Crockford`:r=Jc,i=!1;break;default:throw Error(`Unknown base32 variant: `+t)}let a=n.padding===void 0?i:n.padding,o=Gc(e),s=0,c=0,l=``;for(let e=0;e<o.byteLength;e++)for(c=c<<8|o.getUint8(e),s+=8;s>=5;)l+=r[c>>>s-5&31],s-=5;if(s>0&&(l+=r[c<<5-s&31]),a)for(;l.length%8!=0;)l+=`=`;return l}var Xc=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,Zc=e=>{let t=globalThis.crypto.randomUUID();return e===`short`?t.split(`-`).pop():e===`shorter`?t.split(`-`).shift():typeof e==`number`?t.split(`-`).join(``).slice(0,e):t},Qc=()=>{let e=Zc().replaceAll(`-`,``),{buffer:t}=new Uint8Array(e.match(/../g).map(e=>parseInt(e,16)));return Yc(t,`RFC4648`,{padding:!1}).toLowerCase()},$c=async(e,{algorithm:t=`SHA-1`,format:n=`hex`}={})=>{let r;if(typeof e==`string`){let t=new TextEncoder().encode(e);r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e instanceof ArrayBuffer)r=e;else if(ArrayBuffer.isView(e)){let t=e;r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e&&typeof e.arrayBuffer==`function`)r=await e.arrayBuffer();else throw Error(`Unsupported input type for getHash`);let i=await globalThis.crypto.subtle.digest(t,r);return n===`binary`?Array.from(new Uint8Array(i),e=>String.fromCharCode(e)).join(``):Array.from(new Uint8Array(i),e=>e.toString(16).padStart(2,`0`)).join(``)},el,tl,nl=(e=`e`,t=7)=>[e,Zc(t)].join(`-`),rl=e=>{el?.delete(e),tl?.unobserve(e)},il=()=>{if(`IntersectionObserver`in globalThis)return tl||(el=new WeakMap,tl=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=el?.get(t);n&&(n(),rl(t))})}),tl)},al=e=>{let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=globalThis;return r>0&&i>0&&t<a&&n<o},ol=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},sl=e=>{let t=il();if(t)return al(e)?Promise.resolve(void 0):new Promise(n=>{el?.set(e,n),ol(()=>{t.observe(e)})})},cl=class{#e=N(!1);get open(){return B(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&window.requestAnimationFrame(()=>{let{activeElement:e}=document;(!e||e===document.body||this.popupElement?.contains(e))&&this.anchorElement.focus()}),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Yn({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return B(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let n=this.contentElement??this.popupElement?.querySelector(`.content`)??null;if(!n)return;let{scrollHeight:r,scrollWidth:i}=n,a=e.top-8,o=t.height-e.bottom-8,{position:s}=this,c;document.dir===`rtl`&&(s.endsWith(`-left`)?s=s.replace(`-left`,`-right`):s.endsWith(`-right`)&&(s=s.replace(`-right`,`-left`)),s.startsWith(`left-`)?s=s.replace(`left-`,`right-`):s.startsWith(`right-`)&&(s=s.replace(`right-`,`left-`))),s.startsWith(`bottom-`)&&r>o&&(a>o?(s=s.replace(`bottom-`,`top-`),c=a):c=o),s.endsWith(`-left`)&&e.left+i>t.width-8&&(s=s.replace(`-left`,`-right`)),s.endsWith(`-right`)&&e.right-i<8&&(s=s.replace(`-right`,`-left`));let l={inset:[s.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:s.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,s.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:s.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,s.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:s.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,s.startsWith(`right-`)?`${Math.round(e.right)}px`:s.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:s.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:c?`${Math.round(c)}px`:`auto`};(l.inset!==this.style.inset||l.zIndex!==this.style.zIndex||l.minWidth!==this.style.minWidth||l.maxWidth!==this.style.maxWidth||l.height!==this.style.height)&&(this.style=l)})});popupElement=void 0;contentElement=void 0;#n=void 0;constructor(e,t,n,r){this.anchorElement=e,this.position=n,this.positionBaseElement=r??e,this.id=nl(`popup`),this.anchorElement.setAttribute(`aria-expanded`,`false`),ki(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ki(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),ki(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement),t&&this.attachPopupElement(t)}attachPopupElement(e,t){if(this.popupElement===e&&this.contentElement===t)return;this.detachPopupElement(),this.popupElement=e,this.contentElement=t;let n=t??e;n.id=this.id,this.anchorElement.setAttribute(`aria-controls`,this.id);let r=ki(e,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),i=ki(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)});this.#n=()=>{r(),i()}}detachPopupElement(){this.#n?.(),this.#n=void 0,this.anchorElement.getAttribute(`aria-controls`)===this.id&&this.anchorElement.removeAttribute(`aria-controls`),this.popupElement=void 0,this.contentElement=void 0}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.popupElement&&(this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement))}async hideImmediately(){this.popupElement&&(this.popupElement.hidden=!0),this.open=!1,await Wc(50),this.popupElement&&(this.popupElement.hidden=!1)}destroy(){this.detachPopupElement(),this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},ll=(...e)=>new cl(...e);function ul(e,t){var n=H();da(I(n),()=>t.children??E),U(e,n)}var dl=Symbol(`sui-modal-retainer`),fl=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),pl=V(`<dialog><!> <!></dialog>`),ml={hash:`svelte-19xbtrg`,code:`dialog.svelte-19xbtrg {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-19xbtrg::backdrop {background:transparent;}dialog.backdrop.svelte-19xbtrg {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-19xbtrg {transition-duration:50ms;opacity:1;}dialog.svelte-19xbtrg:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-19xbtrg {transition-duration:1ms !important;}dialog.svelte-19xbtrg:not(.active) {pointer-events:none !important;}dialog.svelte-19xbtrg:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`};function hl(e,t){O(t,!0),K(e,ml);let n=e=>{var n=H(),l=I(n),d=e=>{var n=pl(),l=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},d=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};Qa(n,()=>({...u,inert:!B(p),role:a(),class:`sui modal ${t.class??``}`,onclick:l,oncancel:d,[Va]:{backdrop:o(),open:B(p),active:B(m)}}),void 0,void 0,void 0,`svelte-19xbtrg`);var f=F(n);da(f,()=>t.extraContent??E),da(L(f,2),()=>t.children??E),D(n),oo(n,e=>i(e),()=>i()),U(e,n)};G(l,e=>{B(v)&&e(d)}),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`dialog`,15),a=J(t,`role`,3,`dialog`),o=J(t,`showBackdrop`,3,!1),s=J(t,`lightDismiss`,3,!1),c=J(t,`escapeDismiss`,3,!0),l=J(t,`keepContent`,3,!1),u=co(t,fl),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=N(0),_=bt(dl);xt(dl,{retain:()=>{pi(()=>{P(g,B(g)+1)})},release:()=>{pi(()=>{P(g,B(g)-1)})}});let v=M(()=>l()||B(h)||B(g)>0),y=!1,b=0,x=e=>Math.max(0,...e.split(`,`).map(e=>Number.parseFloat(e)||0))*1e3,S=async()=>{if(await ui(),!i())return;let{transitionDuration:e,transitionDelay:t}=getComputedStyle(i()),n=x(e)+x(t)+100,r=new AbortController,{signal:a}=r;i().addEventListener(`transitionend`,e=>{e.target===i()&&r.abort()},{signal:a});let o=window.setTimeout(()=>r.abort(),n);await new Promise(e=>{a.addEventListener(`abort`,()=>e(void 0))}),window.clearTimeout(o)},C=async()=>{if(y)return;y=!0,b+=1;let e=b;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),await ui(),!(e!==b||!i()||i().open)&&(i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),i().getBoundingClientRect(),P(p,!0),await S(),e===b&&P(m,!0))},w=async()=>{if(!y)return;y=!1,b+=1;let e=b,n=B(p),r=i()?.returnValue??``;t.onClosing?.(new CustomEvent(`Closing`)),i()?.open&&(document.body.inert=!0,i().close(),document.body.inert=!1),P(m,!1),P(p,!1),n&&await S(),e===b&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i()&&i(i().returnValue=``,!0))},T=St();return fo(()=>{let e=Vi(ul,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n},context:T});return()=>{i()?.close(),Gi(e)}}),R(()=>{r()?C():w()}),R(()=>{if(B(h))return _?.retain(),()=>{_?.release()}}),k({focus:d,close:f})}var gl=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),_l=V(`<div role="none"><!></div>`),vl={hash:`svelte-mt7bb9`,code:`.content.svelte-mt7bb9 {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-mt7bb9 {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-mt7bb9 .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-mt7bb9 {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-mt7bb9 .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-mt7bb9 {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-mt7bb9 {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-mt7bb9 {transform:scale(90%);}.content.touch.combobox.svelte-mt7bb9 .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-mt7bb9 {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-mt7bb9 {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`};function yl(e,t){O(t,!0),K(e,vl);let n=e=>{var n=_l();let o,s;da(F(n),()=>t.children??E),D(n),oo(n,e=>a(e),()=>a()),z(()=>{q(n,`hidden`,!r()),o=Fa(n,1,`content ${t.class??``} ${B(m)??``}`,`svelte-mt7bb9`,o,{touch:B(_)}),s=La(n,``,s,{inset:B(h)?.style.inset,"z-index":B(h)?.style.zIndex,"min-width":B(h)?.style.minWidth,"max-width":B(h)?.style.maxWidth,"max-height":B(h)?.style.height,visibility:B(h)?.style.inset?void 0:`hidden`})}),Ai(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(g)}),Ai(`mouseleave`,n,()=>{i(!1),l()&&(g=window.setTimeout(()=>{r(!1)},200))}),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`hovered`,15,!1),a=J(t,`content`,15,void 0),o=J(t,`showBackdrop`,3,void 0),s=J(t,`position`,3,`bottom-left`),c=J(t,`positionBaseElement`,3,void 0),l=J(t,`parentDialogElement`,3,void 0),u=J(t,`touchOptimized`,3,!1),d=co(t,gl),f=N(void 0),p=N(!1),m=N(void 0),h=N(void 0),g=0;R(()=>{B(h)&&r(B(h).open)}),R(()=>{l()&&!B(f)&&a()&&(P(f,l()),B(f).append(a()))}),R(()=>{t.anchor&&!B(h)&&(P(h,ll(t.anchor,void 0,s(),c()),!0),P(m,t.anchor.getAttribute(`aria-haspopup`)??void 0,!0))}),R(()=>{if(B(h)&&B(f)&&a())return B(h).attachPopupElement(B(f),a()),()=>{B(h)?.detachPopupElement()}}),R(()=>{r()&&B(f)&&B(h)?.checkPosition()});let _=M(()=>u()&&B(p));fo(()=>(P(p,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{B(h)?.destroy?.(),globalThis.clearTimeout(g)}));var v=H(),y=I(v),b=e=>{n(e)},x=e=>{{let i=M(()=>o()??B(_));hl(e,uo(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return B(i)},lightDismiss:!0,onOpen:async e=>{if(t.onOpen?.(e),await Wc(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return B(f)},set dialog(e){P(f,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};G(y,e=>{l()?e(b):e(x,-1)}),U(e,v),k()}var bl=new Set(`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`)),xl=V(`<span role="none" class="label svelte-whizbb"><!></span>`),Sl=V(`<!> <!>`,1),Cl=V(`<button><!> <!> <!></button> <!>`,1),wl={hash:`svelte-whizbb`,code:`button.svelte-whizbb {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-whizbb {display:none !important;}button.svelte-whizbb:not(:disabled):focus-visible {z-index:1;}button.svelte-whizbb:is(.primary:where(.svelte-whizbb), .secondary:where(.svelte-whizbb), .tertiary:where(.svelte-whizbb), .ghost:where(.svelte-whizbb)) {justify-content:center;border-width:1px;}button.svelte-whizbb:is(.primary:where(.svelte-whizbb), .secondary:where(.svelte-whizbb), .tertiary:where(.svelte-whizbb), .ghost:where(.svelte-whizbb)) .label:where(.svelte-whizbb):only-child {padding:0 4px;}button.primary.svelte-whizbb {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-whizbb:is(:where(.svelte-whizbb):hover, :where(.svelte-whizbb):focus-visible, [aria-expanded=true]:where(.svelte-whizbb)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-whizbb:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-whizbb {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-whizbb:is(:where(.svelte-whizbb):hover, :where(.svelte-whizbb):focus-visible, [aria-expanded=true]:where(.svelte-whizbb)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-whizbb:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-whizbb {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-whizbb {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-whizbb:is(:where(.svelte-whizbb):hover, :where(.svelte-whizbb):focus-visible, [aria-expanded=true]:where(.svelte-whizbb)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-whizbb:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-whizbb {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-whizbb {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-whizbb:is(:where(.svelte-whizbb):hover, :where(.svelte-whizbb):focus-visible, [aria-expanded=true]:where(.svelte-whizbb)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-whizbb:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-whizbb {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-whizbb {outline:0;margin:0;border-radius:0 !important;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-whizbb .label:where(.svelte-whizbb) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-whizbb .label:where(.svelte-whizbb) {text-decoration:underline;}button.link.svelte-whizbb:is(:where(.svelte-whizbb):hover, :where(.svelte-whizbb):focus, :where(.svelte-whizbb):active) .label:where(.svelte-whizbb) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-whizbb {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-whizbb .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-whizbb {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-whizbb {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-whizbb {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-whizbb:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-whizbb {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-whizbb {background-color:var(--sui-error-background-color);}button.svelte-whizbb .label:where(.svelte-whizbb) {padding:0 4px;}button.svelte-whizbb > * {pointer-events:none;}button.svelte-whizbb :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`};function Tl(e,t){O(t,!0),K(e,wl);let n=J(t,`element`,15),r=J(t,`class`,3,``),i=J(t,`type`,3,`button`),a=J(t,`role`,3,`button`),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,19,()=>typeof s()),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`pressed`,3,void 0),p=J(t,`keyShortcuts`,3,void 0),m=J(t,`label`,3,``),h=J(t,`lines`,3,1),g=J(t,`variant`,3,void 0),_=J(t,`size`,3,`medium`),v=J(t,`iconic`,3,!1),y=J(t,`pill`,3,!1),b=J(t,`flex`,3,!1),x=J(t,`popupPosition`,3,`bottom-left`),S=J(t,`showPopupBackdrop`,3,!1),C=co(t,bl);var w=Cl(),T=I(w);Qa(T,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[Va]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-whizbb`);var ee=F(T);da(ee,()=>t.startIcon??E);var te=L(ee,2),ne=e=>{var n=H(),r=I(n),i=e=>{var t=xl();Uc(F(t),{get lines(){return h()},children:(e,t)=>{lt();var n=zi();z(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},a=e=>{var n=xl();da(F(n),()=>t.children??E),D(n),U(e,n)};G(r,e=>{m()?e(i):e(a,-1)}),U(e,n)},re=e=>{var n=Sl(),r=I(n),i=e=>{var t=xl();Uc(F(t),{get lines(){return h()},children:(e,t)=>{lt();var n=zi();z(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(r,e=>{m()&&e(i)}),da(L(r,2),()=>t.children??E),U(e,n)};G(te,e=>{g()===`link`?e(ne):e(re,-1)}),da(L(te,2),()=>t.endIcon??E),D(T),oo(T,e=>n(e),()=>n()),Ea(T,()=>p()&&Bc(p()));var ie=L(T,2),ae=e=>{yl(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=H();da(I(r),()=>t.popup),U(e,r)},$$slots:{default:!0}})};G(ie,e=>{t.popup&&e(ae)}),U(e,w),k()}var El=V(`<div role="none"><!></div>`),Dl=V(`<div role="none"><div role="alert" class="message svelte-kh1dbi"><!> <!></div> <!></div>`),Ol={hash:`svelte-kh1dbi`,code:`.infobar.svelte-kh1dbi {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-kh1dbi {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-kh1dbi {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-kh1dbi {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-kh1dbi {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-kh1dbi {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-kh1dbi button {font-size:inherit !important;}.message.svelte-kh1dbi .icon {font-size:16px; /* !hardcoded */}`};function kl(e,t){O(t,!0),K(e,Ol);let n=J(t,`show`,15,!0),r=J(t,`dismissible`,3,!0),i=J(t,`status`,3,`info`),a=J(t,`ariaLive`,3,`polite`),o=J(t,`children`,3,void 0),s=J(t,`icon`,3,void 0);var c=H(),l=I(c),u=e=>{var t=Dl(),c=F(t),l=F(c),u=e=>{var t=H();da(I(t),s),U(e,t)},d=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());_o(e,{get name(){return B(t)}})}};G(l,e=>{s()?e(u):e(d,-1)}),da(L(l,2),()=>o()??E),D(c);var f=L(c,2),p=e=>{var t=El(),r=F(t);{let e=M(()=>Y(`_sui.dismiss`));Tl(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return B(e)},onclick:()=>{n(!1)},children:(e,t)=>{_o(e,{name:`close`})},$$slots:{default:!0}})}D(t),U(e,t)};G(f,e=>{r()&&e(p)}),D(t),z(()=>{Fa(t,1,`infobar ${i()??``}`,`svelte-kh1dbi`),q(c,`aria-live`,a())}),U(e,t)};G(l,e=>{n()&&e(u)}),U(e,c),k()}var Al=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),jl=V(`<div><!></div>`),Ml={hash:`svelte-1cgzv35`,code:`.bottom-navigation.svelte-1cgzv35 {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-1cgzv35:is([inert]:where(.svelte-1cgzv35), [hidden]:where(.svelte-1cgzv35)) {display:none;}.bottom-navigation.svelte-1cgzv35 .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`};function Nl(e,t){K(e,Ml);let n=co(t,Al);var r=jl();Qa(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-1cgzv35`),da(F(r),()=>t.children??E),D(r),U(e,r)}var Pl=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),Fl=V(`<div><!></div>`),Il={hash:`svelte-1s4ibz9`,code:`.button-group.svelte-1s4ibz9 {flex:none;display:inline-flex;align-items:center;}`};function Ll(e,t){K(e,Il);let n=J(t,`ariaLabel`,3,void 0),r=co(t,Pl);var i=Fl();Qa(i,()=>({...r,role:`group`,class:`sui button-group ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1s4ibz9`),da(F(i),()=>t.children??E),D(i),U(e,i)}var Rl=V(`<div role="none" class="sui floating-action-button-wrapper svelte-171gkyf"><!></div>`),zl={hash:`svelte-171gkyf`,code:`.floating-action-button-wrapper.svelte-171gkyf {display:contents;}
|
|
20
|
-
@media (width < 768px) {.floating-action-button-wrapper.svelte-
|
|
21
|
-
}`};function Bl(e,t){K(e,zl);let n=J(t,`children`,3,void 0);var r=Rl();da(F(r),()=>n()??E),D(r),U(e,r)}var Vl=Symbol(`sui-option-registry`),Hl=class{#e=N(!1);get expanded(){return B(this.#e)}set expanded(e){P(this.#e,e,!0)}#t=N([]);get count(){return B(this.#t).length}get selectedEntry(){return B(this.#t).find(e=>e.selected)}register(e){return P(this.#t,[...B(this.#t),e]),()=>{P(this.#t,B(this.#t).filter(t=>t!==e))}}find(e){return B(this.#t).find(t=>t.value===e)}selectOnly(e){B(this.#t).forEach(t=>{let n=t.value===e;t.selected!==n&&(t.selected=n)})}},Ul=()=>xt(Vl,new Hl),Wl=()=>bt(Vl),Gl=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}},Kl=/\p{Diacritic}/gu,ql=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(Kl,``).toLocaleLowerCase():``),Jl={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!1,rovingTabStop:`selected`},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!0,rovingTabStop:`selected`}},Yl=`a[href], button, input, select, textarea, summary, [tabindex]`,Xl=(e,t)=>{let n=[...document.querySelectorAll(Yl)].filter(t=>t===e||t.tabIndex>=0&&!t.matches(`:disabled, [aria-disabled="true"], [hidden], [inert], [inert] *`)),r=n.indexOf(e);if(r===-1)return;let i=t?-1:1;for(let e=r+i;e>=0&&e<n.length;e+=i)if(n[e].getClientRects().length){n[e].focus();return}},Zl=e=>{let t=e;for(;t;){if(t.id){let e=document.querySelector(`[aria-haspopup="menu"][aria-controls="${CSS.escape(t.id)}"]`);if(e)return e}t=t.parentElement}return null},Ql=class{#e=void 0;#t=new WeakMap;#n=new WeakMap;#r(e){let t=e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent,n=this.#t.get(e);if(n?.raw===t)return n.normalized;let r=ql(t);return this.#t.set(e,{raw:t,normalized:r}),r}constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=nl(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o,controlsPanel:s,rovingTabStop:c}=Jl[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.controlsPanel=s,this.rovingTabStop=c,this.parent.tabIndex=a?-1:0,this.observer=new globalThis.MutationObserver(()=>{this.#e=void 0}),this.observer.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`aria-disabled`,`aria-hidden`]}),(async()=>{await Wc(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=this.controlsPanel?document.querySelector(`#${e.getAttribute(`aria-controls`)}`):null;e.id||=`${this.id}-item-${t+1}`,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),this.updateTabStop(),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}updateTabStop(){let{allMembers:e,activeMembers:t}=this;if(!this.focusChild){e.forEach(e=>{e.tabIndex=-1});return}let n=this.rovingTabStop===`selected`?t.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)??t[0]:t[0];e.forEach(e=>{e.tabIndex=e===n?0:-1})}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get#i(){if(this.observer.takeRecords().length&&(this.#e=void 0),!this.#e){let e=[...this.parent.querySelectorAll(this.selector)];this.#e={all:e,active:e.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}}return this.#e}get allMembers(){return this.#i.all}get activeMembers(){return this.#i.active}get opener(){return Zl(this.parent)}get parentMenuItem(){let{opener:e}=this;return e?.matches(`[role^="menuitem"]`)?e:null}closeMenuChain(){let{opener:e}=this,t=e,n=null;for(let e=0;e<10&&t;e+=1){n=t,t.getAttribute(`aria-expanded`)===`true`&&t.click();let e=t.closest(`[role="menu"], [role="menubar"]`);t=e?Zl(e):null}return n}async leaveMenu(e){let t=this.closeMenuChain();t&&(t.focus(),await Wc(50),Xl(t,e))}async enterSubmenu(e){let t=e.getAttribute(`aria-controls`);if(!t)return;e.getAttribute(`aria-expanded`)!==`true`&&e.click();let n=document.getElementById(t);for(let e=0;e<20;e+=1){let e=[...n?.querySelectorAll(this.selector)??[]].find(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`));if(e?.focus(),e&&document.activeElement===e)return;await Wc(20)}}leaveSubmenu(e){e.getAttribute(`aria-expanded`)===`true`&&e.click(),e.focus()}get selected(){return this.activeMembers.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `,o=[],s=!1;this.activeMembers.forEach(c=>{let l=c.getAttribute(`role`),u=l===`menuitemcheckbox`,d=l===`menuitemradio`;if((u||d)&&(l!==n||c.closest(this.parentGroupSelector)!==r))return;let f=u||this.multi,p=d||!f,m=c===t,h=c.getAttribute(this.childSelectedAttr)===`true`,g=this.controlsPanel?c.getAttribute(`aria-controls`):null,_=g?document.getElementById(g):null;o.push(c),s||=m,f&&m&&(i||a)&&(c.setAttribute(this.childSelectedAttr,String(!h)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!h}})),h||c.dispatchEvent(new CustomEvent(`Select`))),p&&h!==m&&(!d||a||i)&&(c.setAttribute(this.childSelectedAttr,String(m)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:m}})),m&&(e.type===`keydown`&&l===`radio`&&c.click(),c.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild||(c.classList.toggle(`focused`,m),m&&c.dispatchEvent(new CustomEvent(`Focus`))),_&&(_.inert=!m,_.setAttribute(`aria-hidden`,String(!m)),m&&globalThis.setTimeout(()=>{try{_.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{_.scrollIntoView(!0)}},300)),m&&(this.parent.setAttribute(`aria-activedescendant`,c.id),globalThis.setTimeout(()=>{try{c.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{c.scrollIntoView(!0)}},300))}),this.focusChild&&globalThis.requestAnimationFrame(()=>{o.forEach(e=>{e.tabIndex=e===t?0:-1}),s&&(t.focus(),t.dispatchEvent(new CustomEvent(`Focus`)))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:Gl(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r,s=this.childRoles.includes(`menuitem`);if(t===`Tab`&&s&&!n&&!r&&!a){e.preventDefault(),this.leaveMenu(i);return}if(o)return;let c=e.target,{allMembers:l,activeMembers:u}=this,d=(()=>{if(!this.focusChild)return u.find(e=>e.matches(`.focused`));if(c.matches(this.selector))return c})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){d?.click();return}if(t===` `){d&&this.selectTarget(e,d);return}if(t===`Escape`&&s){let{parentMenuItem:t}=this;if(t){e.preventDefault(),e.stopPropagation(),this.leaveSubmenu(t);return}}if(this.orientation===`vertical`&&s){let e=hc()?`ArrowLeft`:`ArrowRight`,n=hc()?`ArrowRight`:`ArrowLeft`;if(t===e&&d?.getAttribute(`aria-haspopup`)===`menu`){this.enterSubmenu(d);return}if(t===n){let{parentMenuItem:e}=this;if(e){this.leaveSubmenu(e);return}}}let f,p;if(this.grid){let e=Math.floor(this.parent.clientWidth/u[0].clientWidth),n=hc();f=d?l.indexOf(d):-1,t===`ArrowUp`&&f>0&&(p=l[f-e]),t===`ArrowDown`&&f<l.length-1&&(p=l[f+e]),t===`ArrowLeft`&&f>0&&(p=l[f+(n?1:-1)]),t===`ArrowRight`&&f<l.length-1&&(p=l[f+(n?-1:1)]),p?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(p=void 0)}else{f=d?u.indexOf(d):-1;let e=hc(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(f>0&&(p=u[f-1]),f<=0&&(p=u[u.length-1])),t===r&&(f<u.length-1&&(p=u[f+1]),f===u.length-1&&([p]=u))}p&&p!==d&&this.selectTarget(e,p)}destroy(){this.observer.disconnect(),this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=ql(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=this.#r(e),r=!n.every(e=>t.includes(e));return this.#n.get(e)!==r&&(this.#n.set(e,r),e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}}))),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},$l=e=>t=>{let n=typeof e==`function`,r=new Ql(t,n?e():e);return n&&R(()=>{r.onUpdate(e())}),()=>{r.destroy()}},eu=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`]),tu=V(`<div><div role="none" class="inner svelte-fp3qfs"><!></div></div>`),nu={hash:`svelte-fp3qfs`,code:`.select-button-group.svelte-fp3qfs {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-fp3qfs:focus-visible {outline-width:0 !important;}.select-button-group.svelte-fp3qfs button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-fp3qfs button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-fp3qfs button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-fp3qfs button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-fp3qfs button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-fp3qfs [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-fp3qfs [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-fp3qfs [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-fp3qfs {display:contents;}`};function ru(e,t){O(t,!0),K(e,nu);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`ariaLabel`,3,void 0),c=co(t,eu);var l=tu();Qa(l,()=>({...c,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-label":s()}),void 0,void 0,void 0,`svelte-fp3qfs`);var u=F(l);da(F(u),()=>t.children??E),D(u),D(l),Ea(l,$l),z(()=>u.inert=r()),U(e,l),k()}var iu=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);function au(e,t){O(t,!0);let n=J(t,`selected`,15,!1),r=co(t,iu);Tl(e,uo(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var ou=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),su=V(`<!> <!>`,1);function cu(e,t){O(t,!0);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`popupPosition`,3,`bottom-left`),a=J(t,`popupPositionBaseElement`,3,void 0),o=J(t,`showPopupBackdrop`,3,!1),s=J(t,`label`,3,``),c=J(t,`variant`,3,void 0),l=J(t,`size`,3,`medium`),u=J(t,`iconic`,3,!1),d=co(t,ou),f=N(void 0);var p={focus:()=>{B(f)?.focus()}},m=su(),h=I(m);return Tl(h,uo(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return B(f)},set element(e){P(f,e,!0)},startIcon:e=>{var n=H();da(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.endIcon),U(e,n)},a=e=>{_o(e,{name:`more_vert`})},o=e=>{_o(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),yl(L(h,2),{get anchor(){return B(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=H();da(I(r),()=>t.popup??E),U(e,r)},$$slots:{default:!0}}),U(e,m),k(p)}var lu=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),uu=V(`<div role="group" class="sui split-button svelte-pmwk0s"><!> <!></div>`),du={hash:`svelte-pmwk0s`,code:`.split-button.svelte-pmwk0s {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-pmwk0s button {margin:0;}.split-button.svelte-pmwk0s button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-pmwk0s button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`};function fu(e,t){O(t,!0),K(e,du);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`label`,3,``),a=J(t,`variant`,3,void 0),o=J(t,`size`,3,`medium`),s=J(t,`popupPosition`,3,`bottom-left`),c=J(t,`showPopupBackdrop`,3,!1),l=co(t,lu),u=N(void 0);var d=uu(),f=F(d);Tl(f,uo(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=L(f,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{_o(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},i=e=>{var n=H();da(I(n),()=>t.popup??E),U(e,n)},l=M(()=>Y(`_sui.split_button.more_options`));cu(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return B(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return B(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),oo(d,e=>P(u,e),()=>B(u)),z(e=>{q(d,`hidden`,n()),q(d,`aria-hidden`,n()),q(d,`aria-disabled`,r()),q(d,`aria-label`,e)},[()=>Y(`_sui.split_button.x_options`,{values:{name:i()}})]),U(e,d),k()}var pu=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`,`ariaLabel`]),mu=V(`<div></div>`),hu={hash:`svelte-vzbblx`,code:`.divider.svelte-vzbblx {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-vzbblx {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-vzbblx {margin:0 8px;width:1px;height:100%;}`};function gu(e,t){K(e,hu);let n=J(t,`hidden`,3,!1),r=J(t,`orientation`,3,`horizontal`),i=J(t,`ariaLabel`,3,void 0),a=co(t,pu);var o=mu();Qa(o,()=>({...a,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-vzbblx`),U(e,o)}var _u=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),vu=V(`<div></div>`),yu={hash:`svelte-1anhpxw`,code:`.spacer.flex.svelte-1anhpxw:not([hidden]) {display:block;flex:auto;}.spacer.svelte-1anhpxw:not(.flex) {width:8px;height:8px;}`};function bu(e,t){K(e,yu);let n=J(t,`flex`,3,!1),r=co(t,_u);var i=vu();Qa(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Va]:{flex:n()}}),void 0,void 0,void 0,`svelte-1anhpxw`),U(e,i)}var xu=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`ariaLabel`,`children`]),Su=V(`<div><div role="none" class="inner svelte-1ymaugj"><!></div></div>`),Cu={hash:`svelte-1ymaugj`,code:`.checkbox-group.svelte-1ymaugj {display:inline-flex;}.checkbox-group.horizontal.svelte-1ymaugj {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-1ymaugj {gap:4px;flex-direction:column;}
|
|
22
|
-
@media (pointer: coarse) {.checkbox-group.vertical.svelte-
|
|
23
|
-
}.inner.svelte-
|
|
24
|
-
@media (max-height: 400px) {.content.small.svelte-
|
|
25
|
-
}.content.medium.svelte-
|
|
26
|
-
@media (max-height: 600px) {.content.medium.svelte-
|
|
27
|
-
}.content.large.svelte-
|
|
28
|
-
@media (max-height: 800px) {.content.large.svelte-
|
|
29
|
-
}.content.x-large.svelte-
|
|
30
|
-
@media (max-height: 1000px) {.content.x-large.svelte-
|
|
31
|
-
}:is(.header.svelte-
|
|
32
|
-
@media (width < 768px) {.footer.svelte-
|
|
33
|
-
}.body.svelte-
|
|
34
|
-
@media (width < 768px) {.body.svelte-
|
|
35
|
-
}`};function Lu(e,t){let n=Bi();O(t,!0),K(e,Iu);let r=J(t,`open`,15,!1);J(t,`value`,11,``);let i=J(t,`role`,3,`dialog`),a=J(t,`size`,3,`medium`),o=J(t,`showClose`,3,!1),s=J(t,`showOk`,3,!0),c=J(t,`showCancel`,3,!0),l=J(t,`okLabel`,3,``),u=J(t,`okShortcuts`,3,void 0),d=J(t,`okDisabled`,3,!1),f=J(t,`cancelLabel`,3,``),p=J(t,`cancelShortcuts`,3,void 0),m=J(t,`cancelDisabled`,3,!1),h=J(t,`focusInput`,3,!0),g=co(t,Au),_=N(void 0),v=N(void 0);R(()=>{if(r()&&B(v)){let e=!1;return(async()=>{await Wc(50),!e&&(h()?((B(v)?.querySelector(`input, button.primary`))?.focus(),(B(v)?.querySelector(`input`))?.select()):B(_)?.focus())})(),()=>{e=!0}}});{let h=M(()=>t.header?void 0:t.title),y=M(()=>t.header?t.title:`${n}-title`);oo(hl(e,uo(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return B(h)},get"aria-labelledby"(){return B(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=Fu(),h=F(i),g=e=>{var r=Mu(),i=F(r),a=e=>{var n=H();da(I(n),()=>t.header),U(e,n)},s=e=>{var r=ju(),i=I(r),a=F(i,!0);D(i);var s=L(i,2);bu(s,{flex:!0});var c=L(s,2);da(c,()=>t.headerExtra??E);var l=L(c,2),u=e=>{{let r=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.closeIcon),U(e,n)},a=e=>{_o(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>Y(`_sui.close`));Tl(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return B(i)},get"aria-controls"(){return n},onclick:()=>{B(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};G(l,e=>{o()&&e(u)}),z(()=>{q(i,`id`,`${n}-title`),W(a,t.title)}),U(e,r)};G(i,e=>{t.header?e(a):e(s,-1)}),D(r),U(e,r)};G(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=L(h,2);da(F(y),()=>t.children??E),D(y);var b=L(y,2),x=e=>{var n=Pu(),r=F(n),i=e=>{var n=H();da(I(n),()=>t.footer??E),U(e,n)},a=e=>{var n=Nu(),r=I(n);da(r,()=>t.footerExtra??E);var i=L(r,2);bu(i,{flex:!0});var a=L(i,2),o=e=>{{let t=M(()=>l()||Y(`_sui.ok`));Tl(e,{variant:`primary`,get label(){return B(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{B(_)?.close(`ok`)}})}};G(a,e=>{s()&&e(o)});var h=L(a,2),g=e=>{{let t=M(()=>f()||Y(`_sui.cancel`));Tl(e,{variant:`secondary`,get label(){return B(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{B(_)?.close(`cancel`)}})}};G(h,e=>{c()&&e(g)}),U(e,n)};G(r,e=>{t.footer?e(i):e(a,-1)}),D(n),U(e,n)};G(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),D(i),oo(i,e=>P(v,e),()=>B(v)),z(()=>{Fa(i,1,`content ${t.class??``} ${a()??``}`,`svelte-
|
|
36
|
-
.label.svelte-
|
|
37
|
-
@media (pointer: coarse) {[role=listbox].svelte-
|
|
38
|
-
}[role=listbox].svelte-
|
|
39
|
-
@media (pointer: coarse) {.menu.svelte-
|
|
40
|
-
}.menu.svelte-
|
|
41
|
-
@media (pointer: coarse) {.radio-group.vertical.svelte-
|
|
42
|
-
}.radio-group.svelte-151u90b [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-151u90b [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-151u90b [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-151u90b {display:contents;}`};function Xd(e,t){O(t,!0),K(e,Yd);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`orientation`,3,`horizontal`),c=J(t,`ariaLabel`,3,void 0),l=co(t,qd);var u=Jd(),d=e=>{t.onChange?.(e)};Qa(u,()=>({...l,role:`radiogroup`,class:`sui radio-group ${t.class??``} ${s()??``}`,tabindex:`-1`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-orientation":s(),"aria-label":c(),onChange:d}),void 0,void 0,void 0,`svelte-151u90b`);var f=F(u);da(F(f),()=>t.children??E),D(f),D(u),Ea(u,$l),z(()=>f.inert=r()),U(e,u),k()}var Zd=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),Qd=V(`<label class="svelte-1f1v3i5"><!></label>`),$d=V(`<span><!> <!></span>`),ef={hash:`svelte-1f1v3i5`,code:`.radio.svelte-1f1v3i5 {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-1f1v3i5 :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-1f1v3i5 :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-1f1v3i5 :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-1f1v3i5 :active button {background-color:var(--sui-active-background-color);}.radio.svelte-1f1v3i5 :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-1f1v3i5 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-1f1v3i5 button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-1f1v3i5 button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-1f1v3i5 button[aria-checked=true]::before {opacity:1;}.radio.svelte-1f1v3i5 label:where(.svelte-1f1v3i5) {cursor:inherit;}`};function tf(e,t){let n=Bi();O(t,!0),K(e,ef);let r=J(t,`checked`,7,!1),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,3,void 0),l=J(t,`label`,3,void 0),u=J(t,`group`,15),d=co(t,Zd),f=N(void 0);R(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=$d(),m=e=>{e.target.matches(`button`)||B(f)?.click()};Qa(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[Va]:{disabled:a()}}),void 0,void 0,void 0,`svelte-1f1v3i5`);var h=F(p);Tl(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return B(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=Qd(),i=F(r),a=e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)},o=e=>{var t=zi();z(()=>W(t,l())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),z(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(g,e=>{(t.children||l())&&e(_)}),D(p),U(e,p),k()}var nf=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`ariaLabel`,`children`,`onResizeStart`,`onResizeEnd`]),rf=V(`<div role="none" class="handle-bar svelte-3ree33"></div>`),af=V(`<div><!></div>`),of={hash:`svelte-3ree33`,code:`.resizable-handle.svelte-3ree33 {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-3ree33:focus-visible, .resizable-handle.svelte-3ree33:hover, .resizable-handle.dragging.svelte-3ree33 {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent-light);}.resizable-handle.svelte-3ree33:focus-visible .handle-bar:where(.svelte-3ree33), .resizable-handle.svelte-3ree33:hover .handle-bar:where(.svelte-3ree33), .resizable-handle.dragging.svelte-3ree33 .handle-bar:where(.svelte-3ree33) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-3ree33 {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-3ree33 {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-3ree33 .handle-bar:where(.svelte-3ree33) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-3ree33 {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-3ree33 .handle-bar:where(.svelte-3ree33) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-3ree33 .handle-bar:where(.svelte-3ree33) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`};function sf(e,t){O(t,!0),K(e,of);let n=J(t,`disabled`,3,!1),r=J(t,`showHandleBar`,3,!1),i=J(t,`ariaLabel`,3,void 0),a=co(t,nf),o=bt(`paneGroup`);if(!o)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let s=o.registerHandle(),c=M(()=>o.direction===`horizontal`),l=M(()=>o.sizes),u=M(()=>B(l)[s]??0),d=M(()=>o.getPaneConstraints(s)),f=M(()=>Math.max(B(d).minSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).maxSize),0))),p=M(()=>Math.min(B(d).maxSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).minSize),0))),m=N(void 0),h=N(!1),g=N(0),_=N(0),v=N(!1),y=0,b=()=>{let e=B(m)?.closest(`.resizable-pane-group`);return e?B(c)?e.clientWidth:e.clientHeight:0},x=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!B(h)||i!==B(_))return;e.preventDefault(),e.stopPropagation();let a=B(c)?t:r,l=a-B(g);if(!y)return;let u=l/y*100;B(c)&&hc()&&(u=-u),P(g,a,!0),o.resize(s,u)},S=e=>{let{pointerId:n}=e;!B(h)||n!==B(_)||(B(m)?.releasePointerCapture(n),P(h,!1),P(g,0),P(_,0),t.onResizeEnd?.(),document.removeEventListener(`pointermove`,x),document.removeEventListener(`pointerup`,S),document.removeEventListener(`pointercancel`,S))},C=e=>{if(n())return;e.preventDefault(),e.stopPropagation();let{screenX:r,screenY:i,pointerId:a}=e;P(h,!0),P(g,B(c)?r:i,!0),P(_,a,!0),y=b(),B(m)?.setPointerCapture(a),t.onResizeStart?.(),document.addEventListener(`pointermove`,x),document.addEventListener(`pointerup`,S),document.addEventListener(`pointercancel`,S)},w=e=>{if(n())return;let{key:r,shiftKey:i}=e,a=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),o.toggleCollapse(s);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),o.resize(s,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),o.resize(s,100);return}if(B(c)){let e=hc();if(r===`ArrowLeft`)l=e?a:-a;else if(r===`ArrowRight`)l=e?-a:a;else return}else if(r===`ArrowUp`)l=-a;else if(r===`ArrowDown`)l=a;else return;e.preventDefault(),e.stopPropagation(),B(v)||(P(v,!0),t.onResizeStart?.()),o.resize(s,l)},T=()=>{B(v)&&(P(v,!1),t.onResizeEnd?.())};var ee=af();Qa(ee,e=>({...a,role:`separator`,tabindex:n()?-1:0,"aria-orientation":B(c)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":B(f),"aria-valuemax":B(p),"aria-controls":o.paneDefs[s]?.id,"aria-disabled":n()||void 0,"aria-label":i(),class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:C,onkeydown:w,onblur:T,[Va]:{horizontal:B(c),vertical:!B(c),disabled:n(),dragging:B(h)}}),[()=>Math.round(B(u))],void 0,void 0,`svelte-3ree33`);var te=F(ee),ne=e=>{var n=H();da(I(n),()=>t.children),U(e,n)},re=e=>{U(e,rf())};G(te,e=>{t.children?e(ne):r()&&e(re,1)}),D(ee),oo(ee,e=>P(m,e),()=>B(m)),U(e,ee),k()}var cf=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),lf=V(`<div><!></div>`),uf={hash:`svelte-74r6lx`,code:`.resizable-pane-group.svelte-74r6lx {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-74r6lx {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-74r6lx {flex-direction:column;width:100%;height:100%;}`};function df(e,t){O(t,!0),K(e,uf);let n=J(t,`direction`,3,`horizontal`),r=co(t,cf),i=Yn([]),a=N(void 0),o=Yn([]),s=Yn([]),c=0,l=()=>B(a)?n()===`horizontal`?B(a).clientWidth:B(a).clientHeight:0,u=(e,t)=>{if(typeof e==`number`)return e;if(!e||typeof e!=`string`)return t;let n=e.trim(),r=n.match(/^(-?\d+(?:\.\d+)?)%$/);if(r)return Number(r[1]);let i=l();if(!i)return t;let a=n.match(/^(-?\d+(?:\.\d+)?)px$/i);if(a)return Number(a[1])/i*100;let o=n.match(/^(-?\d+(?:\.\d+)?)(dvw|vw|dvh|vh)$/i);if(o){let e=Number(o[1]),t=o[2].toLowerCase().endsWith(`w`)?window.innerWidth:window.innerHeight;return e/100*t/i*100}return t},d=e=>{let t=i[e];if(!t)return{minSize:0,maxSize:100};let n=Math.max(0,u(t.minSize,0)),r=Math.min(100,u(t.maxSize,100));return{minSize:n,maxSize:Math.max(n,r)}},f=()=>{if(!i.length)return;let e=i.map(e=>e.defaultSize===void 0?NaN:u(e.defaultSize,NaN)),t=e.filter(e=>!Number.isNaN(e)).reduce((e,t)=>e+t,0),n=e.filter(e=>Number.isNaN(e)).length,r=Math.max(0,100-t),a=n>0?r/n:0,s=e.map(e=>Number.isNaN(e)?a:e);o.splice(0,o.length,...s)},p=(e,n)=>{let r=e,i=e+1;if(r<0||i>=o.length)return;let{minSize:a,maxSize:s}=d(r),{minSize:c,maxSize:l}=d(i),u=o[r],f=o[i],p=Math.min(s-u,f-c),m=Math.min(u-a,l-f),h=n>0?Math.min(n,p):-Math.min(-n,m);o[r]=u+h,o[i]=f-h,t.onResize?.({sizes:o.map(e=>Number(e.toFixed(1)))})};xt(`paneGroup`,{get direction(){return n()},sizes:o,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=c;return c+=1,e},resize:p,toggleCollapse:e=>{let{minSize:t}=d(e);if(s[e]!==void 0){let t=s[e]-o[e];s[e]=void 0,p(e,t)}else s[e]=o[e],p(e,-(o[e]-t))},getPaneConstraints:d,paneDefs:i}),R(()=>{i.length&&!o.length&&f()});var m=lf();Qa(m,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-74r6lx`),da(F(m),()=>t.children??E),D(m),oo(m,e=>P(a,e),()=>B(a)),U(e,m),k()}var ff=new Set([`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),pf=V(`<div><!></div>`);function mf(e,t){let n=Bi();O(t,!0);let r=J(t,`defaultSize`,3,void 0),i=J(t,`minSize`,3,0),a=J(t,`maxSize`,3,100),o=co(t,ff),s=bt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=M(()=>s.direction),u=M(()=>s.sizes[c]),d=M(()=>B(u)===void 0?typeof r()==`number`?`${r()}%`:r()??`0%`:`${B(u)}%`);R(()=>{B(u)!==void 0&&pi(()=>t.onResize?.({size:Number(B(u).toFixed(1))}))});var f=pf();Qa(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[Ha]:{"flex-basis":B(d),"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":B(l)===`horizontal`?`auto`:void 0,"overflow-y":B(l)===`vertical`?`auto`:void 0}})),da(F(f),()=>t.children??E),D(f),U(e,f),k()}var hf=V(`<div role="none" class="spinner svelte-10aob4q"></div>`),gf=V(`<!> <!>`,1),_f={hash:`svelte-10aob4q`,code:`.spinner.svelte-10aob4q {height:1px;}`};function vf(e,t){O(t,!0),K(e,_f);let n=J(t,`itemChunkSize`,3,25),r=N(Yn(n())),i=N(void 0),a=M(()=>t.items.length>B(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(B(a)?P(r,B(r)+n()):o.disconnect())});R(()=>{B(i)&&o.observe(B(i))});var s=gf(),c=I(s);ia(c,19,()=>t.items.slice(0,B(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=H();da(I(i),()=>t.renderItem,()=>B(n),()=>B(r)),U(e,i)});var l=L(c,2),u=e=>{var t=hf();oo(t,e=>P(i,e),()=>B(i)),U(e,t)};G(l,e=>{B(a)&&e(u)}),U(e,s),k()}var yf=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),bf=V(`<div><span role="none" class="svelte-12yxatx"><!></span> <!> <!></div>`),xf={hash:`svelte-12yxatx`,code:`.search-bar.svelte-12yxatx {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-12yxatx:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-12yxatx > span:where(.svelte-12yxatx) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-12yxatx .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-12yxatx > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-12yxatx .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-12yxatx .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-12yxatx input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`};function Sf(e,t){let n=Bi();O(t,!0),K(e,xf);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=co(t,yf),d=N(void 0);var f={focus:()=>{B(d)?.focus()}},p=bf();let m;var h=F(p),g=F(h),_=e=>{var n=H();da(I(n),()=>t.searchIcon),U(e,n)},v=e=>{_o(e,{name:`search`})};G(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=L(h,2);Ku(y,uo({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return B(d)},set element(e){P(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=L(y,2),x=e=>{{let i=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.closeIcon),U(e,n)},a=e=>{_o(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},a=M(()=>Y(`_sui.clear`));Tl(e,{iconic:!0,get"aria-label"(){return B(a)},get"aria-controls"(){return n},onclick:()=>{r(``),B(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return G(b,e=>{r()&&e(x)}),D(p),z(()=>{q(p,`role`,a()?void 0:`none`),m=Fa(p,1,`sui search-bar ${t.class??``}`,`svelte-12yxatx`,m,{flex:i(),disabled:o(),readonly:s()}),q(p,`hidden`,a()),q(p,`aria-hidden`,a())}),U(e,p),k(f)}var Cf=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`ariaLabel`,`children`,`chevronIcon`,`onChange`]),wf=V(`<div><div role="none" class="label svelte-1mfz62k"><!></div></div>`),Tf=V(`<div role="alert" class="no-options svelte-1mfz62k" aria-live="assertive"> </div>`),Ef=V(`<div role="none" class="combobox-inner svelte-1mfz62k"><!> <div role="none" class="listbox-slot svelte-1mfz62k"></div> <!></div>`),Df=V(`<div><!> <!></div> <div role="none" class="idle-host" hidden=""><div role="none" class="option-host svelte-1mfz62k"><!></div></div> <!>`,1),Of={hash:`svelte-1mfz62k`,code:`:is(.option-host.svelte-1mfz62k, .listbox-slot.svelte-1mfz62k) {display:contents;}.combobox.svelte-1mfz62k {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-1mfz62k div[role=combobox]:where(.svelte-1mfz62k) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-1mfz62k div[role=combobox]:where(.svelte-1mfz62k):not(.selected) {font-style:italic;}.combobox.svelte-1mfz62k div[role=combobox]:where(.svelte-1mfz62k):is(:where(.svelte-1mfz62k):hover, :where(.svelte-1mfz62k):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-1mfz62k div[role=combobox][aria-invalid=true]:where(.svelte-1mfz62k) {border-color:var(--sui-error-border-color);}.combobox.svelte-1mfz62k div[role=combobox]:where(.svelte-1mfz62k) .label:where(.svelte-1mfz62k) {width:100%;}.combobox.svelte-1mfz62k .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-1mfz62k > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-1mfz62k > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-1mfz62k > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-1mfz62k :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-1mfz62k .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-1mfz62k input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-1mfz62k + [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);
|
|
43
|
-
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-1mfz62k + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-1mfz62k {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-1mfz62k .sui.search-bar {flex:none;}.combobox-inner.svelte-1mfz62k .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-1mfz62k .no-options:where(.svelte-1mfz62k) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`};function kf(e,t){let n=Bi();O(t,!0),K(e,Of);let r=J(t,`value`,15),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=J(t,`editable`,3,!0),u=J(t,`position`,3,`bottom-left`),d=J(t,`filterThreshold`,3,5),f=J(t,`ariaLabel`,3,void 0),p=co(t,Cf),m=N(!1),h=N(void 0),g=N(void 0),_=N(void 0),v=N(void 0),y=N(void 0),b=N(void 0),x=N(``),S=N(!1),C=N(``),w=N(0),T=M(()=>!B(C)||B(w)>0),ee=M(()=>B(h)??B(g)),te=Ul(),ne=()=>{let e=te.find(r());e&&(P(x,e.label,!0),te.selectOnly(r()))},re=e=>{let n=Gl(e);r(n.value),ne(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))};R(()=>{te.expanded=B(m)}),R(()=>{if(!B(y))return;let e=B(m)?B(b):B(v);e&&B(y).parentElement!==e&&e.append(B(y))}),fo(()=>{let e=te.selectedEntry;e&&(r(e.value),P(x,e.label,!0),t.onChange?.(new CustomEvent(`Change`,{detail:{target:void 0,type:e.type,name:e.name,label:e.label,value:e.value}})))}),R(()=>{r(),ne()});var ie=Df(),ae=I(ie);Qa(ae,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:i(),[Va]:{editable:l()}}),void 0,void 0,void 0,`svelte-1mfz62k`);var oe=F(ae),se=e=>{var t=wf();Qa(t,()=>({...p,role:`combobox`,id:n,tabindex:a()?-1:0,"aria-expanded":B(m),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-haspopup":`listbox`,"aria-label":f(),[Va]:{selected:r()!==void 0}}),void 0,void 0,void 0,`svelte-1mfz62k`);var l=F(t);Uc(F(l),{children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>r()===void 0?Y(`_sui.combobox.select_an_option`):B(x)]),U(e,n)},$$slots:{default:!0}}),D(l),D(t),oo(t,e=>P(h,e),()=>B(h)),U(e,t)},ce=e=>{{let t=M(()=>r()===void 0?``:String(r()));Ku(e,uo(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return B(t)},get hidden(){return i()},get disabled(){return a()},get readonly(){return o()},get required(){return s()},get invalid(){return c()},get"aria-expanded"(){return B(m)},"aria-haspopup":`listbox`,get"aria-label"(){return f()},get element(){return B(g)},set element(e){P(g,e,!0)}}))}};G(oe,e=>{l()?e(ce,-1):e(se)});var le=L(oe,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{_o(e,{name:`expand_more`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>!l()||o()||a()?-1:0),s=M(()=>B(m)?Y(`_sui.collapse`):Y(`_sui.expand`)),c=M(()=>B(m)?`${n}-popup`:void 0);Tl(le,{variant:`ghost`,iconic:!0,get hidden(){return i()},get disabled(){return a()},get tabindex(){return B(r)},get"aria-label"(){return B(s)},get"aria-controls"(){return B(c)},get"aria-expanded"(){return B(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!a()&&!o()&&P(m,!B(m))},startIcon:e,$$slots:{startIcon:!0}})}D(ae);var ue=L(ae,2),de=F(ue);yd(F(de),{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return B(C)},onclick:e=>{e.target.matches(`[role="option"]`)&&re(e.target)},onFilter:e=>{P(w,e.detail.matched,!0)},children:(e,n)=>{var r=H();da(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}}),D(de),oo(de,e=>P(y,e),()=>B(y)),D(ue),oo(ue,e=>P(v,e),()=>B(v)),yl(L(ue,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return B(ee)},get position(){return u()},touchOptimized:!0,onOpen:()=>{P(S,d()!==-1&&te.count>d(),!0),P(C,``)},get content(){return B(_)},set content(e){P(_,e,!0)},get open(){return B(m)},set open(e){P(m,e,!0)},children:(e,t)=>{var r=Ef(),i=F(r),a=e=>{{let t=M(()=>Y(`_sui.combobox.filter_options`));Sf(e,{flex:!0,get"aria-label"(){return B(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),B(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return B(C)},set value(e){P(C,e,!0)}})}};G(i,e=>{B(S)&&e(a)});var o=L(i,2);oo(o,e=>P(b,e),()=>B(b));var s=L(o,2),c=e=>{var t=Tf(),n=F(t,!0);D(t),z(e=>W(n,e),[()=>Y(`_sui.combobox.no_matching_options`)]),U(e,t)};G(s,e=>{B(T)||e(c)}),D(r),U(e,r)},$$slots:{default:!0}}),U(e,ie),k()}function Af(e){let t=e-1;return t*t*t+1}function jf(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Af}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=Mf(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function Mf(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var Nf=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);function Pf(e,t){O(t,!0);let n=J(t,`value`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`readonly`,3,!1),o=J(t,`required`,3,!1),s=J(t,`invalid`,3,!1),c=co(t,Nf);kf(e,uo(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=H();da(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),k()}var Ff=new Set([`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),If=V(`<span role="none"><span class="label svelte-1izmuft" role="option" aria-selected="true"> </span> <!></span>`),Lf=V(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-1izmuft"></span> <!></div>`),Rf={hash:`svelte-1izmuft`,code:`.select-tags.svelte-1izmuft {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1izmuft {pointer-events:none;}.select-tags.disabled.svelte-1izmuft > :where(.svelte-1izmuft) {opacity:0.5;}.select-tags.svelte-1izmuft span[role=listbox]:where(.svelte-1izmuft) {display:contents;}.select-tags.svelte-1izmuft span[draggable]:where(.svelte-1izmuft) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-1izmuft span[draggable]:where(.svelte-1izmuft):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.select-tags.svelte-1izmuft span[draggable].drag-source:where(.svelte-1izmuft) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1izmuft span[draggable].drop-before:where(.svelte-1izmuft)::before, .select-tags.svelte-1izmuft span[draggable].drop-after:where(.svelte-1izmuft)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-1izmuft span[draggable].drop-before:where(.svelte-1izmuft)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1izmuft span[draggable].drop-after:where(.svelte-1izmuft)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1izmuft span[draggable]:where(.svelte-1izmuft) .label:where(.svelte-1izmuft) {outline:none;}.select-tags.svelte-1izmuft span[draggable]:where(.svelte-1izmuft) button {outline-offset:-2px;}.select-tags.svelte-1izmuft span[draggable]:where(.svelte-1izmuft) .icon {font-size:var(--sui-font-size-large);}`};function zf(e,t){O(t,!0),K(e,Rf);let n=J(t,`values`,31,()=>Yn([])),r=J(t,`max`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=co(t,Ff),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>new Set(n())),f=M(()=>hc()?`ArrowRight`:`ArrowLeft`),p=M(()=>hc()?`ArrowLeft`:`ArrowRight`),m=N(void 0),h=N(void 0),g=N(void 0),_=N(void 0),v=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},y=async(e,t)=>{v(e,t),await ui(),(B(m)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var b=Lf();let x;var S=F(b);ia(S,30,n,e=>e,(e,r,i)=>{let s=M(()=>B(u).get(r)),c=M(()=>B(s)?.label||B(s)?.value||r);var l=If();let d;var m=F(l),h=F(m,!0);D(m);var v=L(m,2),b=e=>{{let i=e=>{_o(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>Y(`_sui.select_tags.remove_x`,{values:{name:B(c)}}));Tl(e,{iconic:!0,size:`small`,get disabled(){return B(s)},get"aria-label"(){return B(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};G(v,e=>{B(s)&&e(b)}),D(l),z(()=>{q(l,`draggable`,!a()&&!o()),d=Fa(l,1,`svelte-1izmuft`,null,d,{"drag-source":B(g)===B(i),"drop-before":B(_)===B(i)&&B(g)!==B(i)&&B(g)!==B(i)-1,"drop-after":B(_)===n().length&&B(i)===n().length-1&&B(g)!==n().length-1}),q(m,`tabindex`,a()||o()?void 0:0),W(h,B(c))}),Ai(`dragstart`,l,e=>{P(g,B(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,B(c)),e.dataTransfer.effectAllowed=`move`)}),Ai(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect(),n=e.clientX<t.left+t.width/2;P(_,n===hc()?B(i)+1:B(i),!0)}),Ai(`drop`,l,async e=>{e.preventDefault();let t=B(g),n=B(_);P(g,void 0),P(_,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await y(t,n>t?n-1:n)}),Ai(`dragend`,l,()=>{P(g,void 0),P(_,void 0)}),ji(`keydown`,m,async e=>{let{key:t}=e,r=t===B(f)&&B(i)>0?B(i)-1:t===B(p)&&B(i)<n().length-1?B(i)+1:t===`Home`&&B(i)>0?0:t===`End`&&B(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await y(B(i),r))}),Sa(l,()=>jf,()=>({duration:200})),U(e,l)}),D(S);var C=L(S,2),w=e=>{{let r=M(()=>a()||o());Pf(e,uo(()=>l,{get disabled(){return B(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{B(h)&&(n([...n(),B(h)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:B(h)}})),P(h,void 0))},get value(){return B(h)},set value(e){P(h,e,!0)},children:(e,n)=>{var r=H();ia(I(r),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let n=()=>B(t).label,r=()=>B(t).value,i=()=>B(t).searchValue;var a=H(),o=I(a),s=e=>{Od(e,{get label(){return n()},get value(){return r()},get searchValue(){return i()}})},c=M(()=>!B(d).has(r()));G(o,e=>{B(c)&&e(s)}),U(e,a)}),U(e,r)},$$slots:{default:!0}}))}};G(C,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(w)}),D(b),oo(b,e=>P(m,e),()=>B(m)),z(e=>{x=Fa(b,1,`sui select-tags ${t.class??``}`,`svelte-1izmuft`,x,{disabled:a()||o()}),q(b,`hidden`,i()),q(S,`aria-label`,e)},[()=>Y(`_sui.select_tags.selected_options`)]),U(e,b),k()}Mi([`keydown`]);var Bf=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),Vf=V(`<div role="slider" class="svelte-1gfdnot"></div>`),Hf=V(`<span role="none" class="label svelte-1gfdnot"> </span>`),Uf=V(`<div><div role="none" class="base svelte-1gfdnot"><div role="none" class="base-bar svelte-1gfdnot"></div> <div class="slider-bar svelte-1gfdnot"></div> <div role="slider" class="svelte-1gfdnot"></div> <!> <!></div></div>`),Wf={hash:`svelte-1gfdnot`,code:`.slider.svelte-1gfdnot {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-1gfdnot:hover .base-bar:where(.svelte-1gfdnot) {background-color:var(--sui-hover-background-color);}.slider.svelte-1gfdnot:active .base-bar:where(.svelte-1gfdnot) {background-color:var(--sui-active-background-color);}.base.svelte-1gfdnot {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-1gfdnot {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-1gfdnot {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-1gfdnot .slider-bar:where(.svelte-1gfdnot) {background-color:var(--sui-error-border-color);}[role=slider].svelte-1gfdnot {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-1gfdnot:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-1gfdnot:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-1gfdnot [role=slider]:where(.svelte-1gfdnot) {border-color:var(--sui-error-border-color);}.label.svelte-1gfdnot {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-1gfdnot:dir(ltr) {transform:translateX(-50%);}.label.svelte-1gfdnot:dir(rtl) {transform:translateX(50%);}`};function Gf(e,t){O(t,!0),K(e,Wf);let n=J(t,`value`,15,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=J(t,`sliderLabel`,3,``),o=J(t,`values`,15,void 0),s=J(t,`sliderLabels`,3,void 0),c=J(t,`step`,3,1),l=J(t,`optionLabels`,19,()=>[]),u=J(t,`hidden`,3,!1),d=J(t,`disabled`,3,!1),f=J(t,`readonly`,3,!1),p=J(t,`invalid`,3,!1),m=co(t,Bf),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Yn([])),y=N(Yn([])),b=N(0),x=N(0),S=Yn([0,0]),C=N(!1),w=N(0),T=N(0),ee=e=>{let t=Math.min(B(_),Math.max(0,hc()?B(_)-e:e)),r=B(v).findLastIndex(e=>e<=t),i=B(v).findIndex(e=>t<=e),a;a=r===-1?i:i===-1||Math.abs(B(v)[r]-t)<Math.abs(B(v)[i]-t)?r:i,!(S[B(T)]===B(v)[a]||B(h)&&(B(T)===0&&S[1]<=B(v)[a]||B(T)===1&&S[0]>=B(v)[a]))&&(B(h)?(o(o()[B(T)]=B(y)[a],!0),o([...o()])):n(B(y)[a]))},te=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=B(h)?o()[t]:n(),g=-1,_=hc(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=B(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=B(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(B(h)&&(t===0&&S[1]<=B(v)[g]||t===1&&S[0]>=B(v)[g]))return;B(h)?(o(o()[t]=B(y)[g],!0),o([...o()])):n(B(y)[g])}},ne=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!B(C)||n!==B(w))return;e.preventDefault(),e.stopPropagation();let r=t-B(x),i=B(b)+r;ee(i)},re=e=>{let{pointerId:t,target:n}=e;if(d()||f()||!B(C)||t!==B(w))return;e.stopPropagation();let r=n;if(r.matches(`.base-bar, .slider-bar`)){let t=B(g).getBoundingClientRect(),n=e.clientX-t.left;ee(n)}r.releasePointerCapture(t),P(C,!1),P(b,0),P(x,0),P(w,0),P(T,0),document.removeEventListener(`pointermove`,ne),document.removeEventListener(`pointerup`,re),document.removeEventListener(`pointercancel`,re)},ie=(e,t=0)=>{if(d()||f())return;e.preventDefault(),e.stopPropagation(),P(C,!0);let{clientX:n,screenX:r,pointerId:i,target:a}=e,o=a,s=B(g).getBoundingClientRect();P(b,n-s.left),P(x,r,!0),P(w,i,!0),P(T,t,!0),o.setPointerCapture(i),document.addEventListener(`pointermove`,ne),document.addEventListener(`pointerup`,re),document.addEventListener(`pointercancel`,re)},E=()=>{if(B(h)){let[e,n]=o();S[0]=B(v)[B(y).indexOf(e)],S[1]=B(v)[B(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=B(v)[B(y).indexOf(n())],t.onChange?.({value:n()})},ae=()=>{if(!B(g))return;P(_,B(g).clientWidth,!0);let e=(i()-r())/c()+1,t=B(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),E()};fo(()=>{let e=new ResizeObserver(()=>ae()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(B(g)),t.addEventListener(`change`,ae),ae(),()=>{e.disconnect(),t.removeEventListener(`change`,ae)}}),R(()=>{n(),o(),E()});var oe=Uf();Ai(`click`,$n.body,()=>{P(C,!1)}),Qa(oe,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[Va]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-1gfdnot`);var se=F(oe),ce=L(F(se),2);let le;var ue=L(ce,2);let de;var fe=L(ue,2),pe=e=>{var t=Vf();let n;z(()=>{q(t,`tabindex`,d()?-1:0),q(t,`aria-label`,s()?.[1]),q(t,`aria-hidden`,u()),q(t,`aria-disabled`,d()),q(t,`aria-readonly`,f()),q(t,`aria-invalid`,p()),q(t,`aria-valuemin`,r()),q(t,`aria-valuemax`,i()),q(t,`aria-valuenow`,o()?.[1]),n=La(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),ji(`pointerdown`,t,e=>ie(e,1)),ji(`keydown`,t,e=>te(e,1)),U(e,t)};G(fe,e=>{B(h)&&e(pe)});var me=L(fe,2),he=e=>{var t=H();ia(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=Hf();let i;var a=F(r,!0);D(r),z(()=>{i=La(r,``,i,{"inset-inline-start":`${B(_)/(l().length-1)*B(n)}px`}),W(a,B(t))}),U(e,r)}),U(e,t)};G(me,e=>{l().length&&e(he)}),D(se),oo(se,e=>P(g,e),()=>B(g)),D(oe),z(()=>{le=La(ce,``,le,{"inset-inline-start":`${(B(h)?S[0]:0)??``}px`,width:`${(B(h)?S[1]-S[0]:S[0])??``}px`}),q(ue,`tabindex`,d()?-1:0),q(ue,`aria-label`,B(h)?s()?.[0]:a()),q(ue,`aria-hidden`,u()),q(ue,`aria-disabled`,d()),q(ue,`aria-readonly`,f()),q(ue,`aria-invalid`,p()),q(ue,`aria-valuemin`,r()),q(ue,`aria-valuemax`,i()),q(ue,`aria-valuenow`,B(h)?o()?.[0]:n()),de=La(ue,``,de,{"inset-inline-start":`${S[0]??``}px`})}),ji(`pointerdown`,se,e=>ie(e)),ji(`pointerdown`,ue,e=>ie(e,0)),ji(`keydown`,ue,e=>te(e,0)),U(e,oe),k()}Mi([`pointerdown`,`keydown`]);var Kf=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`onChange`]),qf=V(`<button><span role="none" class="svelte-2oi67"></span> <!></button>`),Jf={hash:`svelte-2oi67`,code:`button.svelte-2oi67 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-2oi67 span:where(.svelte-2oi67) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-2oi67 span:where(.svelte-2oi67) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-2oi67 span:where(.svelte-2oi67) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-2oi67 span:where(.svelte-2oi67) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-2oi67 span:where(.svelte-2oi67) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-2oi67:focus-visible {outline:0;}button.svelte-2oi67:focus-visible span:where(.svelte-2oi67) {outline-color:var(--sui-focus-ring-color);}button[aria-checked=true].svelte-2oi67 span:where(.svelte-2oi67) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-2oi67 span:where(.svelte-2oi67)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-2oi67 span:where(.svelte-2oi67):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-2oi67 span:where(.svelte-2oi67):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-2oi67 {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-2oi67::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 Yf(e,t){O(t,!0),K(e,Jf);let n=J(t,`checked`,15),r=J(t,`label`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=J(t,`ariaLabel`,3,void 0),u=co(t,Kf);var d=qf(),f=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};Qa(d,()=>({...u,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-label":l(),onclick:f}),void 0,void 0,void 0,`svelte-2oi67`);var p=L(F(d),2),m=e=>{var t=zi();z(()=>W(t,r())),U(e,t)},h=e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)};G(p,e=>{r()?e(m):e(h,-1)}),D(d),U(e,d),k()}var Xf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Zf=V(`<div><!></div>`),Qf={hash:`svelte-b7krw4`,code:`.table-cell.svelte-b7krw4 {display:table-cell;}`};function $f(e,t){K(e,Qf);let n=co(t,Xf);var r=Zf();Qa(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-b7krw4`),da(F(r),()=>t.children??E),D(r),U(e,r)}var ep=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),tp=V(`<div><!></div>`),np={hash:`svelte-1w4fre4`,code:`.table-row.svelte-1w4fre4 {display:table-row;height:var(--sui-primary-row-height);}`};function rp(e,t){K(e,np);let n=co(t,ep);var r=tp();Qa(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-1w4fre4`),da(F(r),()=>t.children??E),D(r),U(e,r)}var ip=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),ap=V(`<div><!></div>`),op={hash:`svelte-1wxvqnd`,code:`.table.svelte-1wxvqnd {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-1wxvqnd {border-collapse:collapse;}.table.data.svelte-1wxvqnd :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`};function sp(e,t){K(e,op);let n=J(t,`ariaLabel`,3,void 0),r=co(t,ip);var i=ap();Qa(i,()=>({...r,role:`table`,class:`sui table ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1wxvqnd`),da(F(i),()=>t.children??E),D(i),U(e,i)}var cp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`ariaLabel`,`children`,`onChange`]),lp=V(`<div><div role="none" class="inner svelte-ah1qb9"><!></div> <div role="none" class="indicator svelte-ah1qb9"></div></div>`),up={hash:`svelte-ah1qb9`,code:`.tab-list.svelte-ah1qb9 {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-ah1qb9 {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-ah1qb9 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-ah1qb9 .indicator:where(.svelte-ah1qb9) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-ah1qb9 {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-ah1qb9 button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-ah1qb9 .indicator:where(.svelte-ah1qb9) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-ah1qb9 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-ah1qb9 {display:contents;}.indicator.svelte-ah1qb9 {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 dp(e,t){O(t,!0),K(e,up);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`name`,3,void 0),o=J(t,`ariaLabel`,3,void 0),s=co(t,cp),c=N(void 0),l=N(void 0),u=()=>{globalThis.requestAnimationFrame(()=>{let e=B(c)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;P(l,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else P(l,void 0)})};fo(()=>{let e=new ResizeObserver(()=>{u()});return e.observe(B(c)),()=>{e.disconnect()}});var d=lp(),f=()=>{u()},p=e=>{u(),t.onChange?.(e)};Qa(d,()=>({...s,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o(),"data-name":a()||void 0,onInitialized:f,onChange:p}),void 0,void 0,void 0,`svelte-ah1qb9`);var m=F(d);da(F(m),()=>t.children??E),D(m);var h=L(m,2);D(d),oo(d,e=>P(c,e),()=>B(c)),Ea(d,$l),z(()=>{m.inert=r(),La(h,B(l))}),U(e,d),k()}var fp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),pp=V(`<div><!></div>`),mp={hash:`svelte-1gyyxkv`,code:`.tab-panel.svelte-1gyyxkv {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1gyyxkv, .tab-panel.svelte-1gyyxkv:not([aria-hidden]) {display:none;}`};function hp(e,t){K(e,mp);let n=co(t,fp);var r=pp();Qa(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-1gyyxkv`),da(F(r),()=>t.children??E),D(r),U(e,r)}var gp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`]);function _p(e,t){let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`selected`,3,!1),a=co(t,gp);Tl(e,uo(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:e=>{var n=H();da(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H();da(I(n),()=>t.endIcon??E),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var vp=new Set([`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),yp=V(`<div role="none" class="sui toast-base svelte-ukh2g5"></div> <div><!></div>`,1),bp={hash:`svelte-ukh2g5`,code:`.toast-base.svelte-ukh2g5 {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-ukh2g5 {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-ukh2g5 {display:block;opacity:0;}.toast.top-left.svelte-ukh2g5 {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-ukh2g5 {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-ukh2g5:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-ukh2g5:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-ukh2g5 {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-ukh2g5 {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-ukh2g5 {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-ukh2g5:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-ukh2g5:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-ukh2g5 {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`};function xp(e,t){O(t,!0),K(e,bp);let n=J(t,`show`,15,!1),r=J(t,`id`,3,void 0),i=J(t,`duration`,3,5e3),a=J(t,`position`,7,`auto`),o=co(t,vp),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);fo(()=>(P(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),B(c)?B(s)?.remove():(P(c,B(s),!0),B(c)&&(B(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(B(c)),B(c).showPopover&&(B(c).popover=`manual`,B(c).showPopover()))),()=>{B(l)?.remove()})),fo(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-right`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),R(()=>{B(c)&&B(l)&&B(c).appendChild(B(l))}),R(()=>{r(),n(),i(),pi(()=>{globalThis.clearTimeout(B(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=yp(),f=I(d);oo(f,e=>P(s,e),()=>B(s));var p=L(f,2);Qa(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-ukh2g5`),da(F(p),()=>t.children??E),D(p),oo(p,e=>P(l,e),()=>B(l)),U(e,d),k()}function X(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Sp(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var Cp=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,wp=Cp&&`documentMode`in document?document.documentMode:null,Tp=Cp&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ep=Cp&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Dp=!(!Cp||!(`InputEvent`in window)||wp)&&`getTargetRanges`in new window.InputEvent(`input`),Op=Cp&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,kp=Cp&&/Android/.test(navigator.userAgent),Ap=Cp&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!kp,jp=Cp&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Mp=Cp&&kp&&jp,Np=Cp&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Tp&&!jp,Pp=0,Fp=1,Ip=2,Lp=1,Rp=2,zp=3,Bp=4,Vp=5,Hp=6,Up=Ap||Op||Np?`\xA0`:``,Wp=`
|
|
17
|
+
var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),p=s(((e,t)=>{var n=f(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps=e.getDefaultProps?g(e.getDefaultProps,t):t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),m=s(((e,t)=>{var n=d(),r=p();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),h=d(),g=l(m(),1),_=e=>typeof e==`object`&&!!e&&!Array.isArray(e),v=e=>JSON.parse(JSON.stringify(e)),y=Array.isArray,b=Array.prototype.indexOf,x=Array.prototype.includes,S=Array.from,C=Object.defineProperty,w=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyDescriptors,ee=Object.prototype,te=Array.prototype,ne=Object.getPrototypeOf,re=Object.isExtensible;function ie(e){return typeof e==`function`}var E=()=>{};function ae(e){return typeof e?.then==`function`}function oe(e){for(var t=0;t<e.length;t++)e[t]()}function se(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function ce(e,t,n=!1){return e===void 0?n?t():t:e}function le(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var ue=1<<24,de=1024,fe=2048,pe=4096,me=8192,he=16384,ge=32768,_e=1<<25,ve=65536,ye=1<<18,be=1<<19,xe=1<<20,Se=1<<25,Ce=65536,we=1<<21,Te=1<<22,Ee=1<<23,De=Symbol(`$state`),Oe=Symbol(`legacy props`),ke=Symbol(``),Ae=Symbol(`attributes`),je=Symbol(`class`),Me=Symbol(`style`),Ne=Symbol(`text`),Pe=Symbol(`form reset`),Fe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ie=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Le(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Re(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ze(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Be(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function He(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ue(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function We(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ge(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ke(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function qe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Je(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ye={},Xe=Symbol(`uninitialized`),Ze=`http://www.w3.org/1999/xhtml`,Qe=`http://www.w3.org/2000/svg`,$e=`http://www.w3.org/1998/Math/MathML`;function et(){console.warn(`https://svelte.dev/e/derived_inert`)}function tt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function nt(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function rt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var it=!1;function at(e){it=e}var ot;function st(e){if(e===null)throw tt(),Ye;return ot=e}function ct(){return st(or(ot))}function D(e){if(it){if(or(ot)!==null)throw tt(),Ye;ot=e}}function lt(e=1){if(it){for(var t=e,n=ot;t--;)n=or(n);ot=n}}function ut(e=!0){for(var t=0,n=ot;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=or(n);e&&n.remove(),n=i}}function dt(e){if(!e||e.nodeType!==8)throw tt(),Ye;return e.data}function ft(e){return e===this.v}function pt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function mt(e){return!pt(e,this.v)}var ht=[];function gt(e,t=!1,n=!1){return _t(e,new Map,``,ht,null,n)}function _t(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(y(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=_t(l,t,n,r,null,a))}return s}if(ne(e)===ee){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=_t(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return _t(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var vt=null;function yt(e){vt=e}function bt(e){return wt(`getContext`).get(e)}function xt(e,t){return wt(`setContext`).set(e,t),t}function St(){return wt(`getAllContexts`)}function O(e,t=!1,n){vt={p:vt,i:!1,c:null,e:null,s:e,x:null,r:Gr,l:null}}function k(e){var t=vt,n=t.e;if(n!==null){t.e=null;for(var r of n)gr(r)}return e!==void 0&&(t.x=e),t.i=!0,vt=t.p,e??{}}function Ct(){return!0}function wt(e){return vt===null&&Le(e),vt.c??=new Map(Tt(vt)||void 0)}function Tt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Et=[];function Dt(){var e=Et;Et=[],oe(e)}function Ot(e){if(Et.length===0&&!En){var t=Et;queueMicrotask(()=>{t===Et&&Dt()})}Et.push(e)}function kt(){for(;Et.length>0;)Dt()}function At(e){var t=Gr;if(t===null)return Hr.f|=Ee,e;if(!(t.f&32768)&&!(t.f&4))throw e;jt(e,t)}function jt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var Mt=~(fe|pe|de);function Nt(e,t){e.f=e.f&Mt|t}function Pt(e){e.f&512||e.deps===null?Nt(e,de):Nt(e,pe)}function Ft(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=Ce,Ft(t.deps))}function It(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ft(e.deps),Nt(e,de)}function Lt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),E;let r=pi(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var Rt=[];function zt(e,t){return{subscribe:Bt(e,t).subscribe}}function Bt(e,t=E){let n=null,r=new Set;function i(t){if(pt(e,t)&&(e=t,n)){let t=!Rt.length;for(let t of r)t[1](),Rt.push(t,e);if(t){for(let e=0;e<Rt.length;e+=2)Rt[e][0](Rt[e+1]);Rt.length=0}}}function a(t){i(t(e))}function o(o,s=E){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||E),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Vt(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return zt(n,(e,n)=>{let o=!1,s=[],c=0,l=E,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:E},d=i.map((e,t)=>Lt(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){oe(d),l(),o=!1}})}function A(e){let t;return Lt(e,e=>t=e)(),t}var Ht=!1,Ut=!1,Wt=Symbol(`unmounted`);function j(e,t,n){let r=n[t]??={store:null,source:Wn(void 0),unsubscribe:E};if(r.store!==e&&!(Wt in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=E;else{var i=!0;r.unsubscribe=Lt(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}}return e&&Wt in n?A(e):B(r.source)}function Gt(e,t){return qt(e,t),t}function Kt(){let e={};function t(){hr(()=>{for(var t in e)e[t].unsubscribe();C(e,Wt,{enumerable:!1,value:!0})})}return[e,t]}function qt(e,t){Ht=!0;try{e.set(t)}finally{Ht=!1}}function Jt(e,t,n){return qt(e,n),t}function Yt(){Ut=!0}function Xt(e){var t=Ut;try{return Ut=!1,[e(),Ut]}finally{Ut=t}}function Zt(e,t){if(t){let t=document.body;e.autofocus=!0,Ot(()=>{document.activeElement===t&&e.focus()})}}function Qt(e){it&&ar(e)!==null&&sr(e)}var $t=!1;function en(){$t||($t=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Pe]?.()})},{capture:!0}))}function tn(e){var t=Hr,n=Gr;Wr(null),Kr(null);try{return e()}finally{Wr(t),Kr(n)}}function nn(e,t,n,r=n){e.addEventListener(t,()=>tn(n));let i=e[Pe];e[Pe]=i?()=>{i(),r(!0)}:()=>r(!0),en()}function rn(e){let t=0,n=Un(0),r;return()=>{mr()&&(B(n),Sr(()=>(t===0&&(r=pi(()=>e(()=>qn(n)))),t+=1,()=>{Ot(()=>{--t,t===0&&(r?.(),r=void 0,qn(n))})})))}}var an=ve|be;function on(e,t,n,r){new sn(e,t,n,r)}var sn=class{parent;is_pending=!1;transform_error;#e;#t=it?ot:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=rn(()=>(this.#m=Un(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Gr;t.b=this,t.f|=128,n(e)},this.parent=Gr.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=wr(()=>{if(it){let e=this.#t;ct();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},an),it&&(this.#e=ot)}#g(){try{this.#a=Er(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Ot(r),t&&(this.#s=Er(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){rt();return}t=!0,n&&Je(),this.#s!==null&&Nr(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){jt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Er(()=>e(this.#e)),Ot(()=>{var e=this.#c=document.createDocumentFragment(),t=ir();e.append(t),this.#a=this.#S(()=>Er(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Nr(this.#o,()=>{this.#o=null}),this.#x(Sn))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Er(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Lr(this.#a,e);let t=this.#n.pending;this.#o=Er(()=>t(this.#e))}else this.#x(Sn)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){It(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=Gr,n=Hr,r=vt;Kr(this.#i),Wr(this.#i),yt(this.#i.ctx);try{return Mn.ensure(),e()}catch(e){return At(e),null}finally{Kr(t),Wr(n),yt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Nr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ot(()=>{this.#d=!1,this.#m&&Gn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),B(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;Sn?.is_fork?(this.#a&&Sn.skip_effect(this.#a),this.#o&&Sn.skip_effect(this.#o),this.#s&&Sn.skip_effect(this.#s),Sn.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(Ar(this.#a),null),this.#o&&=(Ar(this.#o),null),this.#s&&=(Ar(this.#s),null),it&&(st(this.#t),lt(),st(ut()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return Er(()=>{var r=Gr;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return jt(e,this.#i.parent),null}}))};Ot(()=>{var t;try{t=this.transform_error(e)}catch(e){jt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>jt(e,this.#i&&this.#i.parent)):n(t)})}};function cn(e,t,n,r){let i=Ct()?fn:hn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=Gr,c=ln(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){jt(e,s)}un()}}var d=dn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>mn(e))).then(u).catch(e=>jt(e,s)).finally(d)}l?l.then(()=>{c(),f(),un()}):f()}function ln(){var e=Gr,t=Hr,n=vt,r=Sn;return function(i=!0){Kr(e),Wr(t),yt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function un(e=!0){Kr(null),Wr(null),yt(null),e&&Sn?.deactivate()}function dn(){var e=Gr,t=e.b,n=Sn,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function fn(e){var t=2|fe;return Gr!==null&&(Gr.f|=be),{ctx:vt,deps:null,effects:null,equals:ft,f:t,fn:e,reactions:null,rv:0,v:Xe,wv:0,parent:Gr,ac:null}}var pn=Symbol(`obsolete`);function mn(e,t,n){let r=Gr;r===null&&Re();var i=void 0,a=Un(Xe),o=!Hr,s=new Set;return xr(()=>{var t=Gr,n=se();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Fe&&n.reject(e)}).finally(un)}catch(e){n.reject(e),un()}var c=Sn;if(o){if(t.f&32768)var l=dn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(pn);else for(let e of s.values())e.reject(pn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==pn&&(c.activate(),t?(a.f|=Ee,Gn(a,t)):(a.f&8388608&&(a.f^=Ee),Gn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),hr(()=>{for(let e of s)e.reject(pn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=fn(e);return Jr(t),t}function hn(e){let t=fn(e);return t.equals=mt,t}function gn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Ar(t[n])}}function _n(e){var t,n=Gr,r=e.parent;if(!Br&&r!==null&&e.v!==Xe&&r.f&24576)return et(),e.v;Kr(r);try{e.f&=~Ce,gn(e),t=oi(e)}finally{Kr(n)}return t}function vn(e){var t=_n(e);if(!e.equals(t)&&(e.wv=ri(),(!Sn?.is_fork||e.deps===null)&&(Sn===null?e.v=t:(Sn.capture(e,t,!0),Cn?.capture(e,t,!0)),e.deps===null))){Nt(e,de);return}Br||(wn===null?Pt(e):(mr()||Sn?.is_fork)&&wn.set(e,t))}function yn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&tn(()=>{t.ac.abort(Fe),t.ac=null}),t.fn!==null&&(t.teardown=E),ci(t,0),Or(t))}function bn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&li(t)}var xn=null,Sn=null,Cn=null,wn=null,Tn=null,En=!1,Dn=!1,On=null,kn=null,An=0,jn=1,Mn=class e{id=jn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){xn===null?xn=this:(xn.#n=this,this.#t=xn),xn=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)Nt(r,fe),t(r);for(r of n.m)Nt(r,pe),t(r)}this.#p.add(e)}#g(){this.#e=!0,An++>1e3&&(this.#x(),Pn());for(let e of this.#u)this.#d.delete(e),Nt(e,fe),this.schedule(e);for(let e of this.#d)Nt(e,pe),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=On=[],r=[],i=kn=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw zn(e),this.#h()||this.discard(),t}if(Sn=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(On=null,kn=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Rn(e,t);i.length>0&&Sn.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Cn=this,In(r),In(n),Cn=null,this.#s?.resolve();var s=Sn;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&s.#g()}#_(e,t,n){e.f^=de;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=de:i&4?t.push(r):ii(r)&&(i&16&&this.#d.add(r),li(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),Nt(i,fe),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),Sn=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)It(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==Xe&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),wn?.set(e,t)),this.is_fork||(e.v=t)}activate(){Sn=this}deactivate(){Sn=null,wn=null}flush(){try{Dn=!0,Sn=this,this.#g()}finally{An=0,Tn=null,On=null,kn=null,Dn=!1,Sn=null,wn=null,Vn.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(pn);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Ot(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=se()).promise}static ensure(){if(Sn===null){let t=Sn=new e;!Dn&&!En&&Ot(()=>{t.#e||t.flush()})}return Sn}apply(){wn=null}schedule(e){if(Tn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(On!==null&&t===Gr&&(Hr===null||!(Hr.f&2))&&!Ht)return;if(n&96){if(!(n&1024))return;t.f^=de}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?xn=e:t.#t=e,this.linked=!1}}};function Nn(e){var t=En;En=!0;try{var n;for(e&&(Sn!==null&&!Sn.is_fork&&Sn.flush(),n=e());;){if(kt(),Sn===null)return n;Sn.flush()}}finally{En=t}}function Pn(){try{Ue()}catch(e){jt(e,Tn)}}var Fn=null;function In(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ii(r)&&(Fn=new Set,li(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Mr(r),Fn?.size>0)){Vn.clear();for(let e of Fn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Fn.has(n)&&(Fn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||li(n)}}Fn.clear()}}Fn=null}}function Ln(e){Sn.schedule(e)}function Rn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Nt(e,de);for(var n=e.first;n!==null;)Rn(n,t),n=n.next}}function zn(e){Nt(e,de);for(var t=e.first;t!==null;)zn(t),t=t.next}var Bn=new Set,Vn=new Map,Hn=!1;function Un(e,t){return{f:0,v:e,reactions:null,equals:ft,rv:0,wv:0}}function N(e,t){let n=Un(e,t);return Jr(n),n}function Wn(e,t=!1,n=!0){let r=Un(e);return t||(r.equals=mt),r}function P(e,t,n=!1){return Hr!==null&&(!Ur||Hr.f&131072)&&Ct()&&Hr.f&4325394&&(qr===null||!qr.has(e))&&qe(),Gn(e,n?Yn(t):t,kn)}function Gn(e,t,n=null){if(!e.equals(t)){Vn.set(e,Br?t:e.v);var r=Mn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&_n(t),wn===null&&Pt(t)}e.wv=ri(),Jn(e,fe,n),Ct()&&Gr!==null&&Gr.f&1024&&!(Gr.f&96)&&(Zr===null?Qr([e]):Zr.push(e)),!r.is_fork&&Bn.size>0&&!Hn&&Kn()}return t}function Kn(){Hn=!1;for(let e of Bn){e.f&1024&&Nt(e,pe);let t;try{t=ii(e)}catch{t=!0}t&&li(e)}Bn.clear()}function qn(e){P(e,e.v+1)}function Jn(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ct(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Gr)){var l=(c&fe)===0;if(l&&Nt(s,t),c&131072)Bn.add(s);else if(c&2){var u=s;wn?.delete(u),c&65536||(c&512&&(Gr===null||!(Gr.f&2097152))&&(s.f|=Ce),Jn(u,pe,n))}else if(l){var d=s;c&16&&Fn!==null&&Fn.add(d),n===null?Ln(d):n.push(d)}}}}function Yn(e){if(typeof e!=`object`||!e||De in e)return e;let t=ne(e);if(t!==ee&&t!==te)return e;var n=new Map,r=y(e),i=N(0),a=null,o=ti,s=e=>{if(ti===o)return e();var t=Hr,n=ti;Wr(null),ni(o);var r=e();return Wr(t),ni(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ge();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(Xe,a));n.set(t,e),qn(i)}}else P(r,Xe),qn(i);return!0},get(t,r,i){if(r===De)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||w(t,r)?.writable)&&(o=s(()=>N(Yn(c?t[r]:Xe),a)),n.set(r,o)),o!==void 0){var l=B(o);return l===Xe?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=B(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==Xe)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===De)return!0;var r=n.get(t),i=r!==void 0&&r.v!==Xe||Reflect.has(e,t);return(r!==void 0||Gr!==null&&(!i||w(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Yn(e[t]):Xe,a)),n.set(t,r)),B(r)===Xe)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>N(Xe,a)),n.set(d+``,f)):P(f,Xe)}if(l===void 0)(!u||w(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Yn(o)),n.set(t,l));else{u=l.v!==Xe;var p=s(()=>Yn(o));P(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&P(h,g+1)}qn(i)}return!0},ownKeys(e){B(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==Xe});for(var[r,a]of n)a.v!==Xe&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ke()}})}function Xn(e){try{if(typeof e==`object`&&e&&De in e)return e[De]}catch{}return e}function Zn(e,t){return Object.is(Xn(e),Xn(t))}var Qn,$n,er,tr,nr;function rr(){if(Qn===void 0){Qn=window,$n=document,er=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tr=w(t,`firstChild`).get,nr=w(t,`nextSibling`).get,re(e)&&(e[je]=void 0,e[Ae]=null,e[Me]=void 0,e.__e=void 0),re(n)&&(n[Ne]=void 0)}}function ir(e=``){return document.createTextNode(e)}function ar(e){return tr.call(e)}function or(e){return nr.call(e)}function F(e,t){if(!it)return ar(e);var n=ar(ot);if(n===null)n=ot.appendChild(ir());else if(t&&n.nodeType!==3){var r=ir();return n?.before(r),st(r),r}return t&&ur(n),st(n),n}function I(e,t=!1){if(!it){var n=ar(e);return n instanceof Comment&&n.data===``?or(n):n}if(t){if(ot?.nodeType!==3){var r=ir();return ot?.before(r),st(r),r}ur(ot)}return ot}function L(e,t=1,n=!1){let r=it?ot:e;for(var i;t--;)i=r,r=or(r);if(!it)return r;if(n){if(r?.nodeType!==3){var a=ir();return r===null?i?.after(a):r.before(a),st(a),a}ur(r)}return st(r),r}function sr(e){e.textContent=``}function cr(){return!1}function lr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function ur(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function dr(e){Gr===null&&(Hr===null&&He(e),Ve()),Br&&Be(e)}function fr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function pr(e,t){var n=Gr;n!==null&&n.f&8192&&(e|=me);var r={ctx:vt,deps:null,nodes:null,f:e|fe|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Sn?.register_created_effect(r);var i=r;if(e&4)On===null?Mn.ensure().schedule(r):On.push(r);else if(t!==null){try{li(r)}catch(e){throw Ar(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ve))}if(i!==null&&(i.parent=n,n!==null&&fr(i,n),Hr!==null&&Hr.f&2&&!(e&64))){var a=Hr;(a.effects??=[]).push(i)}return r}function mr(){return Hr!==null&&!Ur}function hr(e){let t=pr(8,null);return Nt(t,de),t.teardown=e,t}function R(e){dr(`$effect`);var t=Gr.f;if(!Hr&&t&32&&vt!==null&&!vt.i){var n=vt;(n.e??=[]).push(e)}else return gr(e)}function gr(e){return pr(4|xe,e)}function _r(e){return dr(`$effect.pre`),pr(8|xe,e)}function vr(e){Mn.ensure();let t=pr(64|be,e);return()=>{Ar(t)}}function yr(e){Mn.ensure();let t=pr(64|be,e);return(e={})=>new Promise(n=>{e.outro?Nr(t,()=>{Ar(t),n(void 0)}):(Ar(t),n(void 0))})}function br(e){return pr(4,e)}function xr(e){return pr(Te|be,e)}function Sr(e,t=0){return pr(8|t,e)}function z(e,t=[],n=[],r=[]){cn(r,t,n,t=>{pr(8,()=>{e(...t.map(B))})})}function Cr(e,t=[],n=[],r=[]){cn(r,t,n,t=>{pr(4,()=>e(...t.map(B)))})}function wr(e,t=0){return pr(16|t,e)}function Tr(e,t=0){return pr(ue|t,e)}function Er(e){return pr(32|be,e)}function Dr(e){var t=e.teardown;if(t!==null){let e=Br,n=Hr;Vr(!0),Wr(null);try{t.call(null)}finally{Vr(e),Wr(n)}}}function Or(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&tn(()=>{e.abort(Fe)});var r=n.next;n.f&64?n.parent=null:Ar(n,t),n=r}}function kr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Ar(t),t=n}}function Ar(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(jr(e.nodes.start,e.nodes.end),n=!0),e.f|=_e,Or(e,t&&!n),ci(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Dr(e),e.f^=_e,e.f|=he;var i=e.parent;i!==null&&i.first!==null&&Mr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function jr(e,t){for(;e!==null;){var n=e===t?null:or(e);e.remove(),e=n}}function Mr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Nr(e,t,n=!0){var r=[];Pr(e,r,!0);var i=()=>{n&&Ar(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Pr(e,t,n){if(!(e.f&8192)){e.f^=me;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Pr(i,t,o?n:!1)}i=a}}}function Fr(e){Ir(e,!0)}function Ir(e,t){if(e.f&8192){e.f^=me,e.f&1024||(Nt(e,fe),Mn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Ir(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Lr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:or(n);t.append(n),n=i}}var Rr=null,zr=!1,Br=!1;function Vr(e){Br=e}var Hr=null,Ur=!1;function Wr(e){Hr=e}var Gr=null;function Kr(e){Gr=e}var qr=null;function Jr(e){Hr!==null&&(qr??=new Set).add(e)}var Yr=null,Xr=0,Zr=null;function Qr(e){Zr=e}var $r=1,ei=0,ti=ei;function ni(e){ti=e}function ri(){return++$r}function ii(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~Ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ii(a)&&vn(a),a.wv>e.wv)return!0}t&512&&wn===null&&Nt(e,de)}return!1}function ai(e,t,n=!0){var r=e.reactions;if(r!==null&&!(qr!==null&&qr.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?ai(a,t,!1):t===a&&(n?Nt(a,fe):a.f&1024&&Nt(a,pe),Ln(a))}}function oi(e){var t=Yr,n=Xr,r=Zr,i=Hr,a=qr,o=vt,s=Ur,c=ti,l=e.f;Yr=null,Xr=0,Zr=null,Hr=l&96?null:e,qr=null,yt(e.ctx),Ur=!1,ti=++ei,e.ac!==null&&(tn(()=>{e.ac.abort(Fe)}),e.ac=null);try{e.f|=we;var u=e.fn,d=u();e.f|=ge;var f=e.deps,p=Sn?.is_fork;if(Yr!==null){var m;if(p||ci(e,Xr),f!==null&&Xr>0)for(f.length=Xr+Yr.length,m=0;m<Yr.length;m++)f[Xr+m]=Yr[m];else e.deps=f=Yr;if(mr()&&e.f&512)for(m=Xr;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Xr<f.length&&(ci(e,Xr),f.length=Xr);if(Ct()&&Zr!==null&&!Ur&&f!==null&&!(e.f&6146))for(m=0;m<Zr.length;m++)ai(Zr[m],e);if(i!==null&&i!==e){if(ei++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=ei;if(t!==null)for(let e of t)e.rv=ei;Zr!==null&&(r===null?r=Zr:r.push(...Zr))}return e.f&8388608&&(e.f^=Ee),d}catch(e){return At(e)}finally{e.f^=we,Yr=t,Xr=n,Zr=r,Hr=i,qr=a,yt(o),Ur=s,ti=c}}function si(e,t){let n=t.reactions;if(n!==null){var r=b.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Yr===null||!x.call(Yr,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~Ce),a.v!==Xe&&Pt(a),a.ac!==null&&tn(()=>{a.ac.abort(Fe),a.ac=null,Nt(a,fe)}),yn(a),ci(a,0)}}function ci(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)si(e,n[r])}function li(e){var t=e.f;if(!(t&16384)){Nt(e,de);var n=Gr,r=zr;Gr=e,zr=!(t&96);try{t&16777232?kr(e):Or(e),Dr(e);var i=oi(e);e.teardown=typeof i==`function`?i:null,e.wv=$r}finally{zr=r,Gr=n}}}async function ui(){await Promise.resolve(),Nn()}function B(e){var t=!!(e.f&2);if(Rr?.add(e),Hr!==null&&!Ur&&!(Gr!==null&&Gr.f&16384)&&(qr===null||!qr.has(e))){var n=Hr.deps;if(Hr.f&2097152)e.rv<ei&&(e.rv=ei,Yr===null&&n!==null&&n[Xr]===e?Xr++:Yr===null?Yr=[e]:Yr.push(e));else{Hr.deps??=[],x.call(Hr.deps,e)||Hr.deps.push(e);var r=e.reactions;r===null?e.reactions=[Hr]:x.call(r,Hr)||r.push(Hr)}}if(Br&&Vn.has(e))return Vn.get(e);if(t){var i=e;if(Br){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||fi(i))&&(a=_n(i)),Vn.set(i,a),a}var o=!(i.f&512)&&!Ur&&Hr!==null&&(zr||!!(Hr.f&512)),s=(i.f&ge)===0;ii(i)&&(o&&(i.f|=512),vn(i)),o&&!s&&(bn(i),di(i))}if(wn?.has(e))return wn.get(e);if(e.f&8388608)throw e.v;return e.v}function di(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(bn(t),di(t))}function fi(e){if(e.v===Xe)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Vn.has(t)||t.f&2&&fi(t))return!0;return!1}function pi(e){var t=Ur;try{return Ur=!0,e()}finally{Ur=t}}function mi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var hi=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function gi(e){return hi.includes(e)}var _i=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),vi={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function yi(e){return e=e.toLowerCase(),vi[e]??e}[..._i];var bi=[`touchstart`,`touchmove`];function xi(e){return bi.includes(e)}var Si=[`textarea`,`script`,`style`,`title`];function Ci(e){return Si.includes(e)}var wi=Symbol(`events`),Ti=new Set,Ei=new Set;function Di(e){if(!it)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function Oi(e,t,n,r={}){function i(e){if(r.capture||Pi.call(t,e),!e.cancelBubble)return tn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ot(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ki(e,t,n,r={}){var i=Oi(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function Ai(e,t,n,r,i){var a={capture:r,passive:i},o=Oi(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&hr(()=>{t.removeEventListener(e,o,a)})}function ji(e,t,n){(t[wi]??={})[e]=n}function Mi(e){for(var t=0;t<e.length;t++)Ti.add(e[t]);for(var n of Ei)n(e)}var Ni=null;function Pi(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Ni=e;var o=0,s=Ni===e&&e[wi];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[wi]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){C(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Hr,d=Gr;Wr(null),Kr(null);try{for(var f,p=[];a!==null&&a!==t;){try{var m=a[wi]?.[r];m!=null&&(!a.disabled||e.target===a)&&m.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[wi]=t,delete e.currentTarget,Wr(u),Kr(d)}}}var Fi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Ii(e){return Fi?.createHTML(e)??e}function Li(e){var t=lr(`template`);return t.innerHTML=Ii(e.replaceAll(`<!>`,`<!---->`)),t.content}function Ri(e,t){var n=Gr;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function V(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(it)return Ri(ot,null),ot;i===void 0&&(i=Li(a?e:`<!>`+e),n||(i=ar(i)));var t=r||er?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=ar(t),s=t.lastChild;Ri(o,s)}else Ri(t,t);return t}}function zi(e=``){if(!it){var t=ir(e+``);return Ri(t,t),t}var n=ot;return n.nodeType===3?ur(n):(n.before(n=ir()),st(n)),Ri(n,n),n}function H(){if(it)return Ri(ot,null),ot;var e=document.createDocumentFragment(),t=document.createComment(``),n=ir();return e.append(t,n),Ri(t,n),e}function U(e,t){if(it){var n=Gr;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=ot),ct();return}e!==null&&e.before(t)}function Bi(){if(it&&ot&&ot.nodeType===8&&ot.textContent?.startsWith(`$`)){let e=ot.textContent.substring(1);return ct(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function W(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Ne]??=e.nodeValue)&&(e[Ne]=n,e.nodeValue=`${n}`)}function Vi(e,t){return Ui(e,t)}var Hi=new Map;function Ui(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){rr();var c=void 0,l=yr(()=>{var o=n??t.appendChild(ir());on(o,{pending:()=>{}},t=>{O({});var n=vt;if(a&&(n.c=a),i&&(r.$$events=i),it&&Ri(t,null),c=e(t,r)||{},it&&(Gr.nodes.end=ot,ot===null||ot.nodeType!==8||ot.data!==`]`))throw tt(),Ye;k()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=xi(r);for(let e of[t,document]){var a=Hi.get(e);a===void 0&&(a=new Map,Hi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Pi,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(S(Ti)),Ei.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=Hi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Pi),r.delete(e),r.size===0&&Hi.delete(n)):r.set(e,i)}Ei.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return Wi.set(c,l),c}var Wi=new WeakMap;function Gi(e,t){let n=Wi.get(e);return n?(Wi.delete(e),n(t)):Promise.resolve()}var Ki=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Fr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Fr(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Ar(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Lr(r,t),t.append(ir()),this.#n.set(e,{effect:r,fragment:t})}else Ar(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Nr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Ar(n.effect),this.#n.delete(e))};ensure(e,t){var n=Sn,r=cr();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=ir();i.append(a),this.#n.set(e,{effect:Er(()=>t(a)),fragment:i})}else this.#t.set(e,Er(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else it&&(this.anchor=ot),this.#a(n)}},qi=0,Ji=1,Yi=2;function Xi(e,t,n,r,i){it&&ct();var a=Ct(),o=Xe,s=a?Un(o):Wn(o,!1,!1),c=a?Un(o):Wn(o,!1,!1),l=new Ki(e);wr(()=>{var a=Sn,o=t(),u=!1;let d=it&&ae(o)===(e.data===`[!`);if(d&&(st(ut()),at(!1)),ae(o)){var f=ln(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Sn===a&&a.deactivate(),Mn.ensure();try{e()}finally{un(!1),En||Nn()}}};o.then(t=>{e(()=>{Gn(s,t),l.ensure(Ji,r&&(e=>r(e,s)))})},t=>{e(()=>{if(Gn(c,t),l.ensure(Yi,i&&(e=>i(e,c))),!i)throw c.v})}),it?l.ensure(qi,n):Ot(()=>{p||e(()=>{l.ensure(qi,n)})})}else Gn(s,o),l.ensure(Ji,r&&(e=>r(e,s)));return d&&at(!0),()=>{u=!0}})}function G(e,t,n=!1){var r;it&&(r=ot,ct());var i=new Ki(e),a=n?ve:0;function o(e,t){if(it){var n=dt(r);if(e!==parseInt(n.substring(1))){var a=ut();st(a),i.anchor=a,at(!1),i.ensure(e,t),at(!0);return}}i.ensure(e,t)}wr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Zi=Symbol(`NaN`);function Qi(e,t,n){it&&ct();var r=new Ki(e),i=!Ct();wr(()=>{var e=t();e!==e&&(e=Zi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function $i(e,t){it&&st(ar(e)),Sr(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}function ea(e,t){return t}function ta(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Nr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;na(e,S(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;sr(u),u.append(l),e.items.clear()}na(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function na(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=Se,Lr(a,document.createDocumentFragment())):Ar(t[i],n)}}var ra;function ia(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=it?st(ar(c)):c.appendChild(ir())}it&&ct();var l=null,u=hn(()=>{var e=n();return y(e)?e:e==null?[]:S(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,oa(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Se,ca(l,null,o)):Fr(l):Nr(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:wr(()=>{d=B(u);var e=d.length;let c=!1;it&&dt(o)===`[!`!=(e===0)&&(o=ut(),st(o),at(!1),c=!0);for(var g=new Set,_=Sn,v=cr(),y=0;y<e;y+=1){it&&ot.nodeType===8&&ot.data===`]`&&(o=ot,c=!0,at(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&Gn(S.v,b),S.i&&Gn(S.i,y),v&&_.unskip_effect(S.e)):(S=sa(s,p?o:ra??=ir(),b,x,y,i,t,n),p||(S.e.f|=Se),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=Er(()=>a(o)):(l=Er(()=>a(ra??=ir())),l.f|=Se)),e>g.size&&ze(``,``,``),it&&e>0&&st(ut()),!p){if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_)}c&&at(!0),B(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,it&&(o=ot)}function aa(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function oa(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=aa(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(Fr(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432){if(g.f^=Se,g===c)ca(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),la(e,u,g),la(e,g,v),ca(g,v,n),u=g,f=[],p=[],c=aa(u.next);continue}}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],b;u=y.prev;var x=f[0],C=f[f.length-1];for(b=0;b<f.length;b+=1)ca(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);la(e,x.prev,C.next),la(e,u,x),la(e,C,y),c=y,u=C,--_,f=[],p=[]}else l.delete(g),ca(g,c,n),la(e,g.prev,g.next),la(e,g,u===null?e.effect.first:u.next),la(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=aa(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=aa(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(na(e,S(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var w=[];if(l!==void 0)for(g of l)g.f&8192||w.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&w.push(c),c=aa(c.next);var T=w.length;if(T>0){var ee=r&4&&o===0?n:null;if(a){for(_=0;_<T;_+=1)w[_].nodes?.a?.measure();for(_=0;_<T;_+=1)w[_].nodes?.a?.fix()}ta(e,w,ee)}}a&&Ot(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function sa(e,t,n,r,i,a,o,s){var c=o&1?o&16?Un(n):Wn(n,!1,!1):null,l=o&2?Un(i):null;return{v:c,i:l,e:Er(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ca(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=or(r);if(a.before(r),r===i)return;r=o}}function la(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ua(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;it&&(o=st(ar(c)))}z(()=>{var e=Gr;if(s===(s=t()??``)){it&&ct();return}if(n&&!it){e.nodes=null,c.innerHTML=s,s!==``&&Ri(ar(c),c.lastChild);return}if(e.nodes!==null&&(jr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(it){for(var a=ot.data,l=ct(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=or(l);if(l===null)throw tt(),Ye;Ri(ot,u),o=st(l);return}var d=lr(r?`svg`:i?`math`:`template`,r?Qe:i?$e:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Ri(ar(f),f.lastChild),r||i)for(;ar(f);)o.before(ar(f));else o.before(f)}})}function da(e,t,...n){var r=new Ki(e);wr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ve)}function fa(e,t,n){var r;it&&(r=ot,ct());var i=new Ki(e);wr(()=>{var e=t()??null;if(it&&dt(r)===`[`!=(e!==null)){var a=ut();st(a),i.anchor=a,at(!1),i.ensure(e,e&&(t=>n(t,e))),at(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ve)}var pa=()=>performance.now(),ma={tick:e=>requestAnimationFrame(e),now:()=>pa(),tasks:new Set};function ha(){let e=ma.now();ma.tasks.forEach(t=>{t.c(e)||(ma.tasks.delete(t),t.f())}),ma.tasks.size!==0&&ma.tick(ha)}function ga(e){let t;return ma.tasks.size===0&&ma.tick(ha),{promise:new Promise(n=>{ma.tasks.add(t={c:e,f:n})}),abort(){ma.tasks.delete(t)}}}function _a(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function va(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=_a(n.trim());t[i]=r.trim()}return t}var ya=e=>e,ba=null;function xa(e){ba=e}function Sa(e,t,n){var r=(ba??Gr).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Ca(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Ca(e,t,n,r,i,a){var o=r===1;if(ie(t)){var s,c=!1;return Ot(()=>{c||(s=Ca(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:E,deactivate:E,reset:E,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=ya}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=va(u(0,1));p.push(m,m)}var h=()=>1-r,g=e.animate(p,{duration:l,fill:`forwards`});return g.onfinish=()=>{g.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=va(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),h=()=>{var e=g.currentTime;return o+s*f(e/c)},d&&ga(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=E)},deactivate:()=>{a=E},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}function wa(e,t,n,r,i,a){let o=it;it&&ct();var s=null;it&&ot.nodeType===1&&(s=ot,ct());var c=it?ot:e,l=Gr,u=new Ki(c,!1);wr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Qe:void 0;if(e===null){u.ensure(null,null);return}return u.ensure(e,t=>{if(e){if(s=it?s:lr(e,a),Ri(s,s),r){var n=null;it&&Ci(e)&&s.append(n=document.createComment(``));var i=it?ar(s):s.appendChild(ir());it&&(i===null?at(!1):st(i)),xa(l),r(s,i),n?.remove(),xa(null)}Gr.nodes.end=s,t.before(s)}it&&st(t)}),()=>{}},ve),hr(()=>{}),o&&(at(!0),st(c))}function Ta(e,t){let n=null,r=it;var i;if(it){n=ot;for(var a=ar(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=or(a);if(a===null)at(!1);else{var o=or(a);a.remove(),st(o)}}it||(i=document.head.appendChild(ir()));try{wr(()=>{var e=Er(()=>t(i));e.f|=ye})}finally{r&&(at(!0),st(n))}}function K(e,t){br(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=lr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Ea(e,t){var n=void 0,r;Tr(()=>{n!==(n=t())&&(r&&=(Ar(r),null),n&&(r=Er(()=>{br(()=>n(e))})))})}function Da(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Da(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Oa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Da(e))&&(r&&(r+=` `),r+=t);return r}function ka(e){return typeof e==`object`?Oa(e):e??``}var Aa=[...`
|
|
18
|
+
\r\f\xA0\v`];function ja(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Aa.includes(r[o-1]))&&(s===r.length||Aa.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ma(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Na(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Pa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Na)),i&&c.push(...Object.keys(i).map(Na));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Na(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ma(r)),i&&(n+=Ma(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Fa(e,t,n,r,i,a){var o=e[je];if(it||o!==n||o===void 0){var s=ja(n,r,a);(!it||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[je]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Ia(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function La(e,t,n,r){var i=e[Me];if(it||i!==t){var a=Pa(t,r);(!it||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Me]=t}else r&&(Array.isArray(r)?(Ia(e,n?.[0],r[0]),Ia(e,n?.[1],r[1],`important`)):Ia(e,n,r));return r}function Ra(e,t,n=!1){if(e.multiple){if(t==null)return;if(!y(t))return nt();for(var r of e.options)r.selected=t.includes(Ba(r));return}for(r of e.options)if(Zn(Ba(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function za(e){var t=new MutationObserver(()=>{`__value`in e&&Ra(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),hr(()=>{t.disconnect()})}function Ba(e){return`__value`in e?e.__value:e.value}var Va=Symbol(`class`),Ha=Symbol(`style`),Ua=Symbol(`is custom element`),Wa=Symbol(`is html`),Ga=Ie?`link`:`LINK`,Ka=Ie?`input`:`INPUT`,qa=Ie?`option`:`OPTION`,Ja=Ie?`select`:`SELECT`;function Ya(e){if(it){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;q(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;q(e,`checked`,null),e.checked=r}}};e[Pe]=n,Ot(n),en()}}function Xa(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function q(e,t,n,r){var i=$a(e);it&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ga)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ke]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&to(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Za(e,t,n,r,i=!1,a=!1){if(it&&i&&e.nodeName===Ka){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ya(o)}var s=$a(e),c=s[Ua],l=!s[Wa];let u=it&&c;u&&at(!1);var d=t||{},f=e.nodeName===qa;for(var p in t)p in n||(n[p]=null);n.class?n.class=ka(n.class):(r||n[Va])&&(n.class=null),n[Ha]&&(n.style??=null);var m=to(e);if(e.nodeName===Ka&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,q(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){Fa(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Va],n[Va]),d[i]=o,d[Va]=n[Va];continue}if(i===`style`){La(e,o,t?.[Ha],n[Ha]),d[i]=o,d[Ha]=n[Ha];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=gi(r);if(mi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)ji(r,e,o),Mi([r]);else if(o!=null){function y(e){d[i].call(this,e)}d[n]=Oi(r,e,y,t)}}else if(i===`style`)q(e,i,o);else if(i===`autofocus`)Zt(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Xa(e,o);else{var b=i;l||(b=yi(b));var x=b===`defaultValue`||b===`defaultChecked`;if(o==null&&!c&&!x){if(s[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||m.includes(b)&&(c||typeof o!=`string`)?(e[b]=o,b in s&&(s[b]=Xe)):typeof o!=`function`&&q(e,b,o,a)}}}}return u&&at(!0),d}function Qa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){cn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ja,l=!1;if(Tr(()=>{var u=t(...n.map(B)),d=Za(e,r,u,a,o,s);l&&c&&`value`in u&&Ra(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||Ar(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&Ar(i[t]),i[t]=Er(()=>Ea(e,()=>f))),d[t]=f}r=d}),c){var u=e;br(()=>{Ra(u,r.value,!0),za(u)})}l=!0})}function $a(e){return e[Ae]??={[Ua]:e.nodeName.includes(`-`),[Wa]:e.namespaceURI===Ze}}var eo=new Map;function to(e){var t=e.getAttribute(`is`)||e.nodeName,n=eo.get(t);if(n)return n;eo.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=T(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=ne(i)}return n}function no(e,t,n=t){var r=new WeakSet;nn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=ro(e)?io(a):a,n(a),Sn!==null&&r.add(Sn),await ui(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(it&&e.defaultValue!==e.value||pi(t)==null&&e.value)&&(n(ro(e)?io(e.value):e.value),Sn!==null&&r.add(Sn)),Sr(()=>{var n=t();if(e===document.activeElement){var i=Sn;if(r.has(i))return}ro(e)&&n===io(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function ro(e){var t=e.type;return t===`number`||t===`range`}function io(e){return e===``?null:+e}function ao(e,t){return e===t||e?.[De]===t}function oo(e={},t,n,r){var i=vt.r,a=Gr;return br(()=>{var o,s;return Sr(()=>{o=s,s=r?.()||[],pi(()=>{ao(n(...s),e)||(t(e,...s),o&&ao(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ao(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var so={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function co(e,t,n){return new Proxy({props:e,exclude:t},so)}var lo={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ie(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];ie(i)&&(i=i());let a=w(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ie(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=w(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===De||t===Oe)return!1;for(let n of e.props)if(ie(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(ie(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function uo(...e){return new Proxy({props:e},lo)}function J(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=fn(r),B(l)):(c&&(c=!1,s=o?pi(r):r),s);let d;if(a){var f=De in e||Oe in e;d=w(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Xt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&We(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?fn:hn)(()=>(_=!1,h()));a&&B(v);var y=Gr;return(function(e,t){if(arguments.length>0){let n=t?B(v):i&&a?Yn(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Br&&_||y.f&16384?v.v:B(v)})}function fo(e){vt===null&&Le(`onMount`),R(()=>{let t=pi(e);if(typeof t==`function`)return t})}function po(e){vt===null&&Le(`onDestroy`),fo(()=>()=>pi(e))}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var mo=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),ho=V(`<span> </span>`),go={hash:`svelte-zgeu2p`,code:`.icon.small-arrow.svelte-zgeu2p {overflow:hidden;width:12px;text-indent:-6px;}`};function _o(e,t){K(e,go);let n=co(t,mo);var r=ho();Qa(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-zgeu2p`);var i=F(r,!0);D(r),z(()=>W(i,t.name)),U(e,r)}var vo=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`ariaLive`,`children`,`icon`]),yo=V(`<div><!> <!></div>`),bo={hash:`svelte-1ulnsu9`,code:`.alert.svelte-1ulnsu9 {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-1ulnsu9 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-1ulnsu9 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-1ulnsu9 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-1ulnsu9 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`};function xo(e,t){K(e,bo);let n=J(t,`ariaLive`,3,`assertive`),r=co(t,vo);var i=yo();Qa(i,()=>({...r,role:`alert`,class:`sui alert ${t.status??``}`,"aria-live":n()}),void 0,void 0,void 0,`svelte-1ulnsu9`);var a=F(i),o=e=>{var n=H();da(I(n),()=>t.icon),U(e,n)},s=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);_o(e,{get name(){return B(n)}})}};G(a,e=>{t.icon?e(o):e(s,-1)}),da(L(a,2),()=>t.children??E),D(i),U(e,i)}var So=/^[\u061c\u200e\u200f\u2066-\u2069]+/,Co=/^[-.+0-9A-Z_a-z\u{a1}-\u{61b}\u{61d}-\u{167f}\u{1681}-\u{1fff}\u{200b}-\u{200d}\u{2010}-\u{2027}\u{2030}-\u{205e}\u{2060}-\u{2065}\u{206a}-\u{2fff}\u{3001}-\u{d7ff}\u{e000}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{1fffd}\u{20000}-\u{2fffd}\u{30000}-\u{3fffd}\u{40000}-\u{4fffd}\u{50000}-\u{5fffd}\u{60000}-\u{6fffd}\u{70000}-\u{7fffd}\u{80000}-\u{8fffd}\u{90000}-\u{9fffd}\u{a0000}-\u{afffd}\u{b0000}-\u{bfffd}\u{c0000}-\u{cfffd}\u{d0000}-\u{dfffd}\u{e0000}-\u{efffd}\u{f0000}-\u{ffffd}\u{100000}-\u{10fffd}]+/u,wo=/^[-.0-9]/;function To(e,t){let n=t,r=e.slice(n).match(So);r&&(n+=r[0].length);let i=e.slice(n).match(Co);if(!i)return null;let a=i[0];if(wo.test(a))return null;n+=a.length;let o=e.slice(n).match(So);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var Eo=(e,t)=>e.slice(t).match(Co)?.[0]??``,Do=Symbol.for(`CST`),Oo=class extends Error{type;constructor(e,t){super(t),this.type=e}},ko=class extends Oo{start;end;constructor(e,t,n,r){let i=r?`Missing ${r}`:e;t>=0&&(i+=` at ${t}`),super(e,i),this.start=t,this.end=n??t+1}},Ao=class extends ko{constructor(e,t){let{start:n,end:r}=t[Do]??{start:-1,end:-1};super(e,n,r)}},jo=class extends Oo{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},Mo=class extends Oo{source;cause;constructor(e,t){super(e,t),this.source=`�`}},No=new Set(``),Po=new Set(`
|
|
19
|
+
\r `),Fo,Io,Lo=(e,t)=>new ko(`missing-syntax`,e,e+t.length,t),Ro=(...e)=>new ko(...e);function zo(e,t){if(Io.startsWith(e,Fo))t&&(Fo+=e.length);else throw Lo(Fo,e)}function Bo(e){Fo=0,Io=e;let t=Wo();if(Io.startsWith(`.match`,Fo))return Vo(t);let n=t.length>0||Io.startsWith(`{{`,Fo);!n&&Fo>0&&(Fo=0);let r=Uo(n);if(n&&(rs(),Fo<Io.length))throw Ro(`extra-content`,Fo,Io.length);return{type:`message`,declarations:t,pattern:r}}function Vo(e){Fo+=6,rs(!0);let t=[];for(;Io[Fo]===`$`;)t.push(Qo()),rs(!0);if(t.length===0)throw Ro(`empty-token`,Fo);let n=[];for(;Fo<Io.length;)n.push(Ho()),rs();return{type:`select`,declarations:e,selectors:t,variants:n}}function Ho(){let e=[];for(;Fo<Io.length;){rs(e.length?`{`:!1);let t=Io[Fo];if(t===`{`)break;if(t===`*`)e.push({type:`*`}),Fo+=1;else{let t=$o(!0);t.value=t.value.normalize(),e.push(t)}}return{keys:e,value:Uo(!0)}}function Uo(e){if(e){if(Io.startsWith(`{{`,Fo))Fo+=2;else throw Lo(Fo,`{{`)}let t=[];loop:for(;Fo<Io.length;)switch(Io[Fo]){case`{`:t.push(qo(!0));break;case`}`:if(!e)throw Ro(`parse-error`,Fo);break loop;default:t.push(Xo())}if(e){if(Io.startsWith(`}}`,Fo))Fo+=2;else throw Lo(Fo,`}}`)}return t}function Wo(){let e=[];rs();loop:for(;Io[Fo]===`.`;){switch(Io.substr(Fo,6)){case`.input`:e.push(Go());break;case`.local`:e.push(Ko());break;case`.match`:break loop;default:throw Ro(`parse-error`,Fo)}rs()}return e}function Go(){Fo+=6,rs(),zo(`{`,!1);let e=Fo,t=qo(!1);if(t.type===`expression`&&t.arg?.type===`variable`)return{type:`input`,name:t.arg.name,value:t};throw Ro(`bad-input-expression`,e,Fo)}function Ko(){Fo+=6,rs(!0),zo(`$`,!0);let e=ns();return rs(),zo(`=`,!0),rs(),zo(`{`,!1),{type:`local`,name:e,value:qo(!1)}}function qo(e){let t=Fo;Fo+=1,rs();let n=Zo(!1);n&&rs(`}`);let r=Io[Fo],i,a;switch(r){case`@`:case`}`:break;case`:`:{Fo+=1,i={type:`function`,name:ts()};let e=Jo();e&&(i.options=e);break}case`#`:case`/`:{if(n||!e)throw Ro(`parse-error`,Fo);Fo+=1,a={type:`markup`,kind:r===`#`?`open`:`close`,name:ts()};let t=Jo();t&&(a.options=t);break}default:throw Ro(`parse-error`,Fo)}let o=Yo();if(a?.kind===`open`&&Io[Fo]===`/`&&(a.kind=`standalone`,Fo+=1),zo(`}`,!0),i){let e=n?{type:`expression`,arg:n,functionRef:i}:{type:`expression`,functionRef:i};return o&&(e.attributes=o),e}if(a)return o&&(a.attributes=o),a;if(!n)throw Ro(`empty-token`,t,Fo);return o?{type:`expression`,arg:n,attributes:o}:{type:`expression`,arg:n}}function Jo(){rs(`/}`);let e={},t=!0;for(;Fo<Io.length;){let n=Io[Fo];if(n===`@`||n===`/`||n===`}`)break;let r=Fo,i=ts();if(Object.hasOwn(e,i))throw Ro(`duplicate-option-name`,r,Fo);rs(),zo(`=`,!0),rs(),e[i]=Zo(!0),t=!1,rs(`/}`)}return t?null:e}function Yo(){let e={},t=!0;for(;Io[Fo]===`@`;){let n=Fo;Fo+=1;let r=ts();if(Object.hasOwn(e,r))throw Ro(`duplicate-attribute`,n,Fo);rs(`=/}`),Io[Fo]===`=`?(Fo+=1,rs(),e[r]=$o(!0),rs(`/}`)):e[r]=!0,t=!1}return t?null:e}function Xo(){let e=``,t=Fo;loop:for(;t<Io.length;++t)switch(Io[t]){case`\\`:{let n=Io[t+1];if(!`\\{|}`.includes(n))throw Ro(`bad-escape`,t,t+2);e+=Io.substring(Fo,t)+n,t+=1,Fo=t+1;break}case`{`:case`}`:break loop}return e+=Io.substring(Fo,t),Fo=t,e}function Zo(e){return Io[Fo]===`$`?Qo():$o(e)}function Qo(){return Fo+=1,{type:`variable`,name:ns()}}function $o(e){if(Io[Fo]===`|`)return es();let t=Eo(Io,Fo);if(!t){if(e)throw Ro(`empty-token`,Fo);return}return Fo+=t.length,{type:`literal`,value:t}}function es(){Fo+=1;let e=``;for(let t=Fo;t<Io.length;++t)switch(Io[t]){case`\\`:{let n=Io[t+1];if(!`\\{|}`.includes(n))throw Ro(`bad-escape`,t,t+2);e+=Io.substring(Fo,t)+n,t+=1,Fo=t+1;break}case`|`:return e+=Io.substring(Fo,t),Fo=t+1,{type:`literal`,value:e}}throw Lo(Io.length,`|`)}function ts(){let e=ns();return Io[Fo]===`:`?(Fo+=1,e+`:`+ns()):e}function ns(){let e=To(Io,Fo);if(!e)throw Ro(`empty-token`,Fo);return Fo=e.end,e.value}function rs(e=!1){let t=Io[Fo],n=!1;if(e){for(;No.has(t);)t=Io[++Fo];for(;Po.has(t);)t=Io[++Fo],n=!0}for(;No.has(t)||Po.has(t);)t=Io[++Fo];if(e&&!n&&(e===!0||!e.includes(Io[Fo])))throw Lo(Fo,`' '`)}function is(e,t){let{node:n,pattern:r}=t,{functionRef:i=n,attributes:a=null,declaration:o=n,expression:s=n,key:c=n,markup:l=n,options:u=null,value:d=n,variant:f=n}=t,p=(e,t)=>{if(e){let n=u?.(e,t);if(d)for(let n of Object.values(e))d(n,t,`option`);n?.()}},m=(e,t)=>{if(e){let n=a?.(e,t);if(d)for(let n of Object.values(e))n!==!0&&d(n,t,`attribute`);n?.()}},h=(e,t)=>{if(typeof e==`object`){let n;switch(e.type){case`expression`:if(n=s?.(e,t),e.arg&&d?.(e.arg,t,`arg`),e.functionRef){let n=i?.(e.functionRef,t,e.arg);p(e.functionRef.options,t),n?.()}m(e.attributes,t);break;case`markup`:n=l?.(e,t),p(e.options,t),m(e.attributes,t)}n?.()}},g=e=>{let t=r?.(e);for(let t of e)h(t,`placeholder`);t?.()};for(let t of e.declarations){let e=o?.(t);t.value&&h(t.value,`declaration`),e?.()}if(e.type===`message`)g(e.pattern);else{if(d)for(let t of e.selectors)d(t,`selector`,`arg`);for(let t of e.variants){let e=f?.(t);c&&t.keys.forEach(c),g(t.value),e?.()}}}function as(e,t=(e,t)=>{throw new Ao(e,t)}){let n=0,r=null,i=new Set,a=new Set,o=new Set,s=new Set,c=new Set,l=new Set,u=!0;is(e,{declaration(e){if(e.name)return(e.value.functionRef||e.type===`local`&&e.value.arg?.type===`variable`&&i.has(e.value.arg.name))&&i.add(e.name),e.type===`local`&&s.add(e.name),u=e.type===`local`,()=>{a.has(e.name)?t(`duplicate-declaration`,e):a.add(e.name)}},expression({functionRef:e}){e&&o.add(e.name)},value(e,o,s){if(e.type===`variable`)switch(c.add(e.name),o){case`declaration`:(s!==`arg`||u)&&a.add(e.name);break;case`selector`:n+=1,r=e,i.has(e.name)||t(`missing-selector-annotation`,e)}},variant(e){let{keys:i}=e;i.length!==n&&t(`key-mismatch`,e);let a=JSON.stringify(i.map(e=>e.type===`literal`?e.value:0));l.has(a)?t(`duplicate-variant`,e):l.add(a),r&&=i.every(e=>e.type===`*`)?null:e}}),r&&t(`missing-fallback`,r);for(let e of s)c.delete(e);return{functions:o,variables:c}}var os=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`;function ss(e){if(e)try{typeof e==`string`&&(e=new Intl.Locale(e));let t=e.getTextInfo?.()??e.textInfo;if(t?.direction)return t.direction;let n=e.maximize().script;if(n)return os.includes(n)?`rtl`:`ltr`}catch{}return`auto`}function cs(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`boolean`)return e;if(e&&typeof e==`object`&&(e=String(e)),e===`true`)return!0;if(e===`false`)return!1;throw RangeError(`Not a boolean`)}function ls(e){if(e&&typeof e==`object`&&(e=e.valueOf()),e&&typeof e==`object`&&(e=String(e)),typeof e==`string`&&/^(0|[1-9][0-9]*)$/.test(e)&&(e=Number(e)),typeof e==`number`&&e>=0&&Number.isInteger(e))return e;throw RangeError(`Not a positive integer`)}function us(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`string`)return e;if(e&&typeof e==`object`)return String(e);throw RangeError(`Not a string`)}function ds(e){let t;if(typeof e==`object`){let n=e?.valueOf;typeof n==`function`&&(t=e.options,e=n.call(e))}if(typeof e==`string`)try{e=JSON.parse(e)}catch{}if(typeof e!=`bigint`&&typeof e!=`number`)throw new Mo(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function fs(e,t,n,r){let{dir:i,locales:a}=e;n.useGrouping===`never`&&(n.useGrouping=!1),r&&`select`in n&&!e.literalOptionKeys.has(`select`)&&(e.onError(`bad-option`,`The option select may only be set by a literal value`),r=!1);let o,s,c,l;return{type:`number`,get dir(){return i??=(o??=Intl.NumberFormat.supportedLocalesOf(a,n)[0],ss(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(r*=typeof r==`bigint`?100n:100);let i=String(r);if(e.has(i))return i;if(n.select===`exact`)return null;let o=n.select?{...n,select:void 0,type:n.select}:n;return c??=new Intl.PluralRules(a,o).select(Number(r)),e.has(c)?c:null}:void 0,toParts(){s??=new Intl.NumberFormat(a,n);let e=s.formatToParts(t);return o??=s.resolvedOptions().locale,i??=ss(o),i===`ltr`||i===`rtl`?[{type:`number`,dir:i,locale:o,parts:e}]:[{type:`number`,locale:o,parts:e}]},toString(){return s??=new Intl.NumberFormat(a,n),l??=s.format(t),l},valueOf:()=>t}}function ps(e,t,n){let r=ds(n),i=r.value,a=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:a[n]=ls(r);break;case`roundingMode`:case`roundingPriority`:case`select`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:a[n]=us(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :number option ${n}`)}return fs(e,i,a,!0)}function ms(e,t,n){let r=ds(n),i=Number.isFinite(r.value)?Math.round(r.value):r.value,a=Object.assign({},r.options,{maximumFractionDigits:0,minimumFractionDigits:void 0,minimumSignificantDigits:void 0,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`maximumSignificantDigits`:a[n]=ls(r);break;case`select`:case`signDisplay`:case`useGrouping`:a[n]=us(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :integer option ${n}`)}return fs(e,i,a,!0)}function hs(e,t,n){let r=ds(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`currency`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`currency`:case`currencySign`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=us(r);break;case`minimumIntegerDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=ls(r);break;case`currencyDisplay`:{let t=us(r);t===`never`?e.onError(`unsupported-operation`,`Currency display "never" is not yet supported`):i[n]=t;break}case`fractionDigits`:{let e=us(r);if(e===`auto`)i.minimumFractionDigits=void 0,i.maximumFractionDigits=void 0;else{let t=ls(e);i.minimumFractionDigits=t,i.maximumFractionDigits=t}break}}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.currency)throw new Mo(`bad-operand`,`A currency code is required for :currency`);return fs(e,r.value,i,!1)}var gs=new Set([`weekday`,`day-weekday`,`month-day`,`month-day-weekday`,`year-month-day`,`year-month-day-weekday`]),_s=new Set([`long`,`medium`,`short`]),vs=new Set([`hour`,`minute`,`second`]),ys=new Set([`long`,`short`]),bs=(e,t,n)=>Cs(`datetime`,e,t,n),xs=(e,t,n)=>Cs(`date`,e,t,n),Ss=(e,t,n)=>Cs(`time`,e,t,n);function Cs(e,t,n,r){let i={localeMatcher:t.localeMatcher},a=r;if(typeof a==`object`&&a){let t=a.options;t&&(i.calendar=t.calendar,e!==`date`&&(i.hour12=t.hour12),i.timeZone=t.timeZone),typeof a.valueOf==`function`&&(a=a.valueOf())}switch(typeof a){case`number`:case`string`:a=new Date(a)}if(!(a instanceof Date)||isNaN(a.getTime()))throw new Mo(`bad-operand`,`Input is not a valid date`);if(n.calendar!==void 0)try{i.calendar=us(n.calendar)}catch{t.onError(`bad-option`,`Invalid :${e} calendar option value`)}if(n.hour12!==void 0&&e!==`date`)try{i.hour12=cs(n.hour12)}catch{t.onError(`bad-option`,`Invalid :${e} hour12 option value`)}if(n.timeZone!==void 0){let r;try{r=us(n.timeZone)}catch{t.onError(`bad-option`,`Invalid :${e} timeZone option value`)}if(r===`input`)i.timeZone===void 0&&t.onError(`bad-operand`,`Missing input timeZone value for :${e}`);else if(r!==void 0){if(i.timeZone!==void 0&&r!==i.timeZone)throw new Mo(`bad-option`,`Time zone conversion is not supported`);i.timeZone=r}}if(e!==`time`){let r=e===`date`?`fields`:`dateFields`,a=e===`date`?`length`:`dateLength`,o=ws(t,n,r,gs)??`year-month-day`,s=ws(t,n,a,_s),c=new Set(o.split(`-`));c.has(`year`)&&(i.year=`numeric`),c.has(`month`)&&(i.month=s===`long`?`long`:s===`short`?`numeric`:`short`),c.has(`day`)&&(i.day=`numeric`),c.has(`weekday`)&&(i.weekday=s===`long`?`long`:`short`)}if(e!==`date`){switch(ws(t,n,e===`time`?`precision`:`timePrecision`,vs)){case`hour`:i.hour=`numeric`;break;case`second`:i.hour=`numeric`,i.minute=`numeric`,i.second=`numeric`;break;default:i.hour=`numeric`,i.minute=`numeric`}i.timeZoneName=ws(t,n,`timeZoneStyle`,ys)}let o=new Intl.DateTimeFormat(t.locales,i),s=t.dir,c,l;return{type:`datetime`,get dir(){return s??=(c??=o.resolvedOptions().locale,ss(c)),s},get options(){return{...i}},toParts(){let e=o.formatToParts(a);return c??=o.resolvedOptions().locale,s??=ss(c),s===`ltr`||s===`rtl`?[{type:`datetime`,dir:s,locale:c,parts:e}]:[{type:`datetime`,locale:c,parts:e}]},toString(){return l??=o.format(a),l},valueOf:()=>a}}function ws(e,t,n,r){let i=t[n];if(i!==void 0)try{let e=us(i);if(r&&!r.has(e))throw Error();return e}catch{e.onError(`bad-option`,`Invalid value for ${n} option`)}}function Ts(e,t,n){let{value:r,options:i}=ds(n),a;try{a=`add`in t?ls(t.add):-1}catch{throw new Mo(`bad-option`,`Value ${t.add} is not valid for :offset option add`)}let o;try{o=`subtract`in t?ls(t.subtract):-1}catch{throw new Mo(`bad-option`,`Value ${t.subtract} is not valid for :offset option subtract`)}if(a<0==o<0)throw new Mo(`bad-option`,`Exactly one of "add" or "subtract" is required as an :offset option`);let s=a<0?-o:a;return r+=typeof r==`number`?s:BigInt(s),ps(e,{},{valueOf:()=>r,options:i})}function Es(e,t,n){let r=ds(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`percent`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`roundingMode`:case`roundingPriority`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=us(r);break;case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:i[n]=ls(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :percent option ${n}`)}return fs(e,r.value,i,!0)}function Ds(e,t,n){let r=n===void 0?``:String(n),i=r.normalize();return{type:`string`,dir:e.dir??`auto`,selectKey:e=>e.has(i)?i:null,toParts(){let{dir:t}=e,n=e.locales[0];return t===`ltr`||t===`rtl`?[{type:`string`,dir:t,locale:n,value:r}]:[{type:`string`,locale:n,value:r}]},toString:()=>r,valueOf:()=>r}}function Os(e,t,n){let r=ds(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`unit`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`signDisplay`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`unit`:case`unitDisplay`:case`useGrouping`:i[n]=us(r);break;case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=ls(r)}}catch(t){t instanceof Oo?e.onError(t):e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.unit)throw new Mo(`bad-operand`,`A unit identifier is required for :unit`);return fs(e,r.value,i,!1)}var ks={integer:ms,number:ps,offset:Ts,string:Ds};ks=Object.freeze(Object.assign(Object.create(null),ks));var As={currency:hs,date:xs,datetime:bs,percent:Es,time:Ss,unit:Os};As=Object.freeze(Object.assign(Object.create(null),As));var js=Symbol(`bidi-isolate`),Ms=(e=`�`)=>({type:`fallback`,source:e,toParts:()=>[{type:`fallback`,source:e}],toString:()=>`{${e}}`}),Ns=(e,t)=>({type:`unknown`,source:e,dir:`auto`,toParts:()=>[{type:`unknown`,value:t}],toString:()=>String(t),valueOf:()=>t}),Ps=class{#e;#t;#n;dir;id;constructor(e,t,n){this.#e=e,this.#n=t,this.dir=void 0;let r=n&&Object.hasOwn(n,`u:dir`)?n[`u:dir`]:void 0;if(r){let t=String(Us(e,r));if(t===`ltr`||t===`rtl`||t===`auto`)this.dir=t;else if(t!==`inherit`){let t=new Mo(`bad-option`,`Unsupported value for u:dir option`);t.source=Ws(r),e.onError(t)}}let i=n&&Object.hasOwn(n,`u:id`)?n[`u:id`]:void 0;if(this.id=i?String(Us(e,i)):void 0,n){this.#t=new Set;for(let[e,t]of Object.entries(n))t.type===`literal`&&this.#t.add(e)}}get literalOptionKeys(){return new Set(this.#t)}get localeMatcher(){return this.#e.localeMatcher}get locales(){return this.#e.locales.map(String)}onError(e,t){let n;e instanceof Mo?n=e:typeof e==`string`&&typeof t==`string`?n=new Mo(e,t):(n=new Mo(`function-error`,String(e)),n.cause=e),n.source=this.#n,this.#e.onError(n)}};function Fs(e,t,{name:n,options:r}){let i=`:${n}`,a=Ws(t)??i;try{let o=t?[Us(e,t)]:[],s=e.functions[n];if(!s)throw new jo(`unknown-function`,`Unknown function ${i}`,a);let c=new Ps(e,a,r),l=s(c,Is(e,r),...o);if(typeof l!=`object`||!l||typeof l.type!=`string`)throw new jo(`bad-function-result`,`Function ${i} did not return a MessageValue`,a);let u={source:a};return c.dir&&(u.dir=c.dir,u[js]=!0),c.id&&typeof l.toParts==`function`&&(u.toParts=()=>{let e=l.toParts();for(let t of e)t.id=c.id;return e}),{...l,...u}}catch(t){return e.onError(t instanceof Oo?t:new jo(`bad-function-result`,String(t),a,t)),Ms(a)}}function Is(e,t){let n=Object.create(null);if(t)for(let[r,i]of Object.entries(t))r.startsWith(`u:`)||(n[r]=Us(e,i));return n}function Ls(e,{arg:t,functionRef:n}){if(n)return Fs(e,t,n);switch(t?.type){case`literal`:{let n=`|${t.value}|`,r=Ds(new Ps(e,n),{},t.value);return r.source=n,r}case`variable`:return Hs(e,t);default:throw Error(`Unsupported expression: ${t?.type}`)}}var Rs=class{expression;scope;constructor(e,t){this.expression=e,this.scope=t}},zs=e=>e!==null&&(typeof e==`object`||typeof e==`function`);function Bs(e,t){if(zs(e)){if(t in e)return e[t];let n=t.split(`.`);for(let t=n.length-1;t>0;--t){let r=n.slice(0,t).join(`.`);if(r in e){let i=n.slice(t).join(`.`);return Bs(e[r],i)}}for(let[n,r]of Object.entries(e))if(n.normalize()===t)return r}}function Vs(e,{name:t}){let n=Bs(e.scope,t);if(n===void 0){let n=`$`+t,r=`Variable not available: ${n}`;e.onError(new jo(`unresolved-variable`,r,n))}else if(n instanceof Rs){let r=Ls(n.scope?{...e,scope:n.scope}:e,n.expression);return e.scope[t]=r,e.localVars.add(r),r}return n}function Hs(e,t){let n=`$`+t.name,r=Vs(e,t);if(r===void 0)return Ms(n);let i=typeof r;if(i===`object`){let t=r;if(t.type===`fallback`)return Ms(n);if(e.localVars.has(t))return t.source=n,t;r instanceof Number?i=`number`:r instanceof String&&(i=`string`)}let a;switch(i){case`bigint`:case`number`:a=e.functions.number;break;case`string`:a=e.functions.string;break;default:return Ns(n,r)}let o=new Ps(e,n),s=a(o,{},r);return s.source=n,s}function Us(e,t){switch(t.type){case`literal`:return t.value;case`variable`:return Vs(e,t);default:throw Error(`Unsupported value: ${t.type}`)}}function Ws(e){switch(e?.type){case`literal`:return`|`+e.value.replaceAll(`\\`,`\\\\`).replaceAll(`|`,`\\|`)+`|`;case`variable`:return`$`+e.name;default:return}}function Gs(e,{kind:t,name:n,options:r}){let i={type:`markup`,kind:t,name:n},a=r?Object.entries(r):null;if(a?.length){i.options={};for(let[t,n]of a)if(t===`u:dir`){let r=new Mo(`bad-option`,`The option ${t} is not valid for markup`);r.source=Ws(n),e.onError(r)}else{let r=Us(e,n);typeof r==`object`&&typeof r?.valueOf==`function`&&(r=r.valueOf()),t===`u:id`?i.id=String(r):i.options[t]=r}}return i}function Ks(e,t){if(t.type===`message`)return t.pattern;let n=t.selectors.map(t=>{let n=Hs(e,t),r;return typeof n.selectKey==`function`?r=n.selectKey.bind(n):(e.onError(new jo(`bad-selector`,`Selector does not support selection`,n.source)),r=()=>null),{selectKey:r,source:n.source,best:null,keys:null}}),r=t.variants;loop:for(let i=0;i<n.length;++i){let a=n[i];if(!a.keys){a.keys=new Set;for(let{keys:e}of r){let t=e[i];if(!t)break loop;t.type!==`*`&&a.keys.add(t.value)}}try{a.best=a.keys.size?a.selectKey(a.keys):null}catch(t){e.onError(new jo(`bad-selector`,`Selection failed`,a.source,t)),a.selectKey=()=>null,a.best=null}if(r=r.filter(e=>{let t=e.keys[i];return t.type===`*`?a.best==null:a.best===t.value}),r.length===0){if(i===0)break;let e=n[i-1];e.best==null?e.keys?.clear():e.keys?.delete(e.best);for(let e=i;e<n.length;++e)n[e].keys=null;r=t.variants,i=-1}}let i=r[0];return i?i.value:(e.onError(new jo(`no-match`,`No variant was selected!?`,`.match`)),[])}var qs=class{#e;#t;#n;#r;#i;#a;constructor(e,t,n){this.#e=n?.bidiIsolation!==`none`,this.#n=n?.localeMatcher??`best fit`,this.#r=Array.isArray(e)?e.map(e=>new Intl.Locale(e)):e?[new Intl.Locale(e)]:[],this.#t=n?.dir??ss(this.#r[0]),this.#i=typeof t==`string`?Bo(t):t,as(this.#i),this.#a=n?.functions?Object.assign(Object.create(null),ks,n.functions):ks}format(e,t){let n=this.#o(e,t),r=``;for(let e of Ks(n,this.#i))if(typeof e==`string`)r+=e;else if(e.type===`markup`)Gs(n,e);else{let t;try{if(t=Ls(n,e),typeof t.toString==`function`){if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[js])){let e=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r+=e+t.toString()+``}else r+=t.toString()}else{let e=new Mo(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i=`{${t?.source??`�`}}`;r+=this.#e?``+i+``:i}}return r}formatToParts(e,t){let n=this.#o(e,t),r=[];for(let e of Ks(n,this.#i))if(typeof e==`string`)r.push({type:`text`,value:e});else if(e.type===`markup`)r.push(Gs(n,e));else{let t;try{if(t=Ls(n,e),typeof t.toParts==`function`){let e=t.toParts();if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[js])){let n=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r.push({type:`bidiIsolation`,value:n},...e,{type:`bidiIsolation`,value:``})}else r.push(...e)}else{let e=new Mo(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i={type:`fallback`,source:t?.source??`�`};this.#e?r.push({type:`bidiIsolation`,value:``},i,{type:`bidiIsolation`,value:``}):r.push(i)}}return r}#o(e,t=e=>{try{process.emitWarning(e)}catch{console.warn(e)}}){let n={...e};for(let t of this.#i.declarations)n[t.name]=new Rs(t.value,t.type===`input`?e??{}:void 0);return{onError:t,localeMatcher:this.#n,locales:this.#r,localVars:new WeakSet,functions:this.#a,scope:n}}},Js=class extends Map{#e=new Map;#t=N(0);#n=N(0);#r=ti||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return ti===this.#r?N(e):Un(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return B(this.#t),!1}return B(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{B(this.#t);return}}return B(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),P(this.#n,super.size),qn(o);else if(i!==t){qn(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&qn(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),P(n,-1)),r&&(P(this.#n,super.size),qn(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;P(this.#n,0);for(var t of e.values())P(t,-1);qn(this.#t),e.clear()}}#a(){B(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)B(n)}keys(){return B(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return B(this.#n),super.size}};Intl.MessageFormat??=qs;var Ys=N(``),Xs=Yn([]),Zs=Yn({}),Qs=``,$s=``,ec,tc={},nc={},rc,ic=(e,t)=>{if(typeof t!=`string`||!t)throw TypeError(`${e} must be a non-empty string (got ${JSON.stringify(t)})`)},ac=(e,t)=>{if(typeof t!=`string`)throw TypeError(`${e} must be a string (got ${typeof t})`)},oc=(e,t)=>{if(typeof t!=`function`)throw TypeError(`${e} must be a function (got ${typeof t})`)},sc=(e,t)=>{if(!e||!t.length||t.includes(e))return e;try{let n=new Intl.Locale(e).language;return t.find(e=>{try{return new Intl.Locale(e).language===n}catch{return!1}})??e}catch{return e}},cc=(e,t=``)=>Object.entries(e).reduce((e,[n,r])=>{let i=t?`${t}.${n}`:n;return typeof r==`object`&&r&&!Array.isArray(r)?Object.assign(e,cc(r,i)):e[i]=r,e},Object.create(null)),lc=e=>{Xs.includes(e)||(Xs.push(e),$s=sc(Qs,Xs))},uc=()=>{B(Ys)&&!Xs.includes(B(Ys))&&gc.set(B(Ys))},dc=(e,...t)=>{ic(`addMessages: localeCode`,e),t.forEach((e,t)=>{if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`addMessages: maps[${t}] must be a plain object (got ${Array.isArray(e)?`array`:typeof e})`)}),lc(e),Zs[e]??={};let n=Zs[e],r={...Ec,...nc};t.forEach(t=>{Object.entries(cc(t)).forEach(([t,i])=>{n[t]=new Intl.MessageFormat(e,String(i),{functions:r})})}),uc()},fc=new Js,pc=new Js,mc=(e=B(Ys))=>{if(ac(`waitLocale: localeCode`,e),!e)return Promise.resolve();if(!pc.has(e)){let t=fc.get(e);if(t){let n=Promise.resolve(t()).then(t=>{dc(e,t)},()=>{pc.delete(e),B(Ys)===e&&!Zs[e]&&$s&&P(Ys,$s,!0)});pc.set(e,n)}else pc.set(e,Promise.resolve())}return pc.get(e)??Promise.resolve()},hc=(e=B(Ys))=>ss(e)===`rtl`,gc={get current(){return B(Ys)},set(e){ac(`locale.set: value`,e);let t=Xs.length?sc(e,Xs):e;if(e&&Xs.length&&!Xs.includes(t)&&$s&&Xs.includes($s)&&(t=$s),P(Ys,t,!0),typeof document<`u`&&t){document.documentElement.lang=t;let e=ss(t);e!==`auto`&&(document.documentElement.dir=e)}return mc(t)}},_c=(e,t)=>{ic(`register: localeCode`,e),oc(`register: loader`,t),fc.set(e,t),pc.delete(e),lc(e),uc()},vc=()=>typeof navigator>`u`?void 0:navigator.languages?.[0]??navigator.language,yc=e=>{if(!e||typeof e.fallbackLocale!=`string`)throw TypeError(`init: fallbackLocale must be a string (got ${JSON.stringify(e?.fallbackLocale)})`);e.initialLocale!==void 0&&ac(`init: initialLocale`,e.initialLocale),e.handleMissingMessage!==void 0&&oc(`init: handleMissingMessage`,e.handleMissingMessage),Qs=e.fallbackLocale,$s=sc(Qs,Xs),ec=e.handleMissingMessage,tc=e.formats??{},e.initialLocale&&gc.set(e.initialLocale)},Y=(e,{values:t={},locale:n,default:r,formats:i}={})=>{if(e==null)throw TypeError(`format: key must be a string or message object (got ${JSON.stringify(e)})`);if(typeof e==`object`){let{id:t,values:n={},locale:r,default:i,formats:a}=e;return Y(t,{values:n,locale:r,default:i,formats:a})}let a=n??B(Ys),o=$s;rc=i;let s;try{s=Zs[a]?.[e]?.format(t)??(a===o?void 0:Zs[o]?.[e]?.format(t))}finally{rc=void 0}if(s!==void 0)return s;if(ec){let t=ec(e,a,r);if(t!==void 0)return t}return r??e},bc=`_default`,xc={date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}},number:{currency:{style:`currency`},percent:{style:`percent`},scientific:{notation:`scientific`},engineering:{notation:`engineering`},compactLong:{notation:`compact`,compactDisplay:`long`},compactShort:{notation:`compact`,compactDisplay:`short`}}},Sc=(e,t)=>tc[e]?.[t]??xc[e]?.[t],Cc=e=>{let t=rc?.[e];return(typeof t==`string`?Sc(e,t):t)??tc[e]?.[bc]},wc=(e,t,n)=>{let r=e.valueOf();return{...e,dir:n?ss(n):e.dir,toString:()=>t.format(r)}},Tc=(e,t,n)=>(r,i,a)=>{let o=e(r,i,a),s=Cc(t);if(!s)return o;let{locale:c,...l}=s;return wc(o,new n(c??r.locales,l),c)},Ec={...As,date:Tc(As.date,`date`,Intl.DateTimeFormat),time:Tc(As.time,`time`,Intl.DateTimeFormat),datetime:Tc(As.datetime,`datetime`,Intl.DateTimeFormat),number:Tc(ks.number,`number`,Intl.NumberFormat),integer:Tc(ks.integer,`number`,Intl.NumberFormat)},Dc,Oc=()=>(Dc??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Dc),kc=[`Ctrl`,`Meta`,`Alt`,`Shift`],Ac=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),jc=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:Ac.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),Mc=e=>e.replace(/\bAccel\b/g,Oc()?`Meta`:`Ctrl`),Nc=new Map,Pc=e=>{let t=Nc.get(e);return t||(t=Mc(e).split(/\s+/).map(e=>{let t=e.split(`+`);return{ctrl:t.includes(`Ctrl`),meta:t.includes(`Meta`),alt:t.includes(`Alt`),shift:t.includes(`Shift`),tokens:t.filter(e=>!kc.includes(e))}}),Nc.set(e,t)),t},Fc=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.some(({ctrl:t,meta:o,alt:s,shift:c,tokens:l})=>t===n&&o===r&&s===i&&c===a&&l.every(t=>jc(t,e)))},Ic=(e,t)=>Fc(e,Pc(t)),Lc=new Map,Rc=(e,t)=>{let{disabled:n}=e;if(!e.getClientRects().length)return;let{top:r,left:i}=e.getBoundingClientRect();n&&e.style.setProperty(`pointer-events`,`auto`);let a=document.elementsFromPoint(i+4,r+4).includes(e);n&&e.style.removeProperty(`pointer-events`),a&&(t.preventDefault(),n||(e.focus(),e.click()))},zc=e=>{Lc.forEach((t,n)=>{Fc(e,t)&&Rc(n,e)})},Bc=(e=``)=>{let t=e?Mc(e):void 0;if(!t)return()=>()=>{};let n=Pc(t);return e=>(Lc.size||globalThis.addEventListener(`keydown`,zc,{capture:!0}),Lc.set(e,n),e.setAttribute(`aria-keyshortcuts`,t),()=>{Lc.delete(e),e.removeAttribute(`aria-keyshortcuts`),Lc.size||globalThis.removeEventListener(`keydown`,zc,{capture:!0})})},Vc=V(`<span role="none" class="sui truncated-text svelte-5bs4oa"><!></span>`),Hc={hash:`svelte-5bs4oa`,code:`.truncated-text.svelte-5bs4oa {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`};function Uc(e,t){K(e,Hc);let n=J(t,`lines`,3,1),r=J(t,`children`,3,void 0);var i=Vc();da(F(i),()=>r()??E),D(i),z(()=>La(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),U(e,i)}var Wc=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)});function Gc(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}var Kc=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,qc=`0123456789ABCDEFGHIJKLMNOPQRSTUV`,Jc=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`;function Yc(e,t,n){n||={};let r,i;switch(t){case`RFC3548`:case`RFC4648`:r=Kc,i=!0;break;case`RFC4648-HEX`:r=qc,i=!0;break;case`Crockford`:r=Jc,i=!1;break;default:throw Error(`Unknown base32 variant: `+t)}let a=n.padding===void 0?i:n.padding,o=Gc(e),s=0,c=0,l=``;for(let e=0;e<o.byteLength;e++)for(c=c<<8|o.getUint8(e),s+=8;s>=5;)l+=r[c>>>s-5&31],s-=5;if(s>0&&(l+=r[c<<5-s&31]),a)for(;l.length%8!=0;)l+=`=`;return l}var Xc=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,Zc=e=>{let t=globalThis.crypto.randomUUID();return e===`short`?t.split(`-`).pop():e===`shorter`?t.split(`-`).shift():typeof e==`number`?t.split(`-`).join(``).slice(0,e):t},Qc=()=>{let e=Zc().replaceAll(`-`,``),{buffer:t}=new Uint8Array(e.match(/../g).map(e=>parseInt(e,16)));return Yc(t,`RFC4648`,{padding:!1}).toLowerCase()},$c=async(e,{algorithm:t=`SHA-1`,format:n=`hex`}={})=>{let r;if(typeof e==`string`){let t=new TextEncoder().encode(e);r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e instanceof ArrayBuffer)r=e;else if(ArrayBuffer.isView(e)){let t=e;r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e&&typeof e.arrayBuffer==`function`)r=await e.arrayBuffer();else throw Error(`Unsupported input type for getHash`);let i=await globalThis.crypto.subtle.digest(t,r);return n===`binary`?Array.from(new Uint8Array(i),e=>String.fromCharCode(e)).join(``):Array.from(new Uint8Array(i),e=>e.toString(16).padStart(2,`0`)).join(``)},el,tl,nl=(e=`e`,t=7)=>[e,Zc(t)].join(`-`),rl=e=>{el?.delete(e),tl?.unobserve(e)},il=()=>{if(`IntersectionObserver`in globalThis)return tl||(el=new WeakMap,tl=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=el?.get(t);n&&(n(),rl(t))})}),tl)},al=e=>{let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=globalThis;return r>0&&i>0&&t<a&&n<o},ol=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},sl=e=>{let t=il();if(t)return al(e)?Promise.resolve(void 0):new Promise(n=>{el?.set(e,n),ol(()=>{t.observe(e)})})},cl=class{#e=N(!1);get open(){return B(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&window.requestAnimationFrame(()=>{let{activeElement:e}=document;(!e||e===document.body||this.popupElement?.contains(e))&&this.anchorElement.focus()}),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Yn({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return B(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let n=this.contentElement??this.popupElement?.querySelector(`.content`)??null;if(!n)return;let{scrollHeight:r,scrollWidth:i}=n,a=e.top-8,o=t.height-e.bottom-8,{position:s}=this,c;document.dir===`rtl`&&(s.endsWith(`-left`)?s=s.replace(`-left`,`-right`):s.endsWith(`-right`)&&(s=s.replace(`-right`,`-left`)),s.startsWith(`left-`)?s=s.replace(`left-`,`right-`):s.startsWith(`right-`)&&(s=s.replace(`right-`,`left-`))),s.startsWith(`bottom-`)&&r>o&&(a>o?(s=s.replace(`bottom-`,`top-`),c=a):c=o),s.endsWith(`-left`)&&e.left+i>t.width-8&&(s=s.replace(`-left`,`-right`)),s.endsWith(`-right`)&&e.right-i<8&&(s=s.replace(`-right`,`-left`));let l={inset:[s.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:s.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,s.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:s.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,s.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:s.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,s.startsWith(`right-`)?`${Math.round(e.right)}px`:s.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:s.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:c?`${Math.round(c)}px`:`auto`};(l.inset!==this.style.inset||l.zIndex!==this.style.zIndex||l.minWidth!==this.style.minWidth||l.maxWidth!==this.style.maxWidth||l.height!==this.style.height)&&(this.style=l)})});popupElement=void 0;contentElement=void 0;#n=void 0;constructor(e,t,n,r){this.anchorElement=e,this.position=n,this.positionBaseElement=r??e,this.id=nl(`popup`),this.anchorElement.setAttribute(`aria-expanded`,`false`),ki(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ki(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),ki(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement),t&&this.attachPopupElement(t)}attachPopupElement(e,t){if(this.popupElement===e&&this.contentElement===t)return;this.detachPopupElement(),this.popupElement=e,this.contentElement=t;let n=t??e;n.id=this.id,this.anchorElement.setAttribute(`aria-controls`,this.id);let r=ki(e,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),i=ki(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)});this.#n=()=>{r(),i()}}detachPopupElement(){this.#n?.(),this.#n=void 0,this.anchorElement.getAttribute(`aria-controls`)===this.id&&this.anchorElement.removeAttribute(`aria-controls`),this.popupElement=void 0,this.contentElement=void 0}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.popupElement&&(this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement))}async hideImmediately(){this.popupElement&&(this.popupElement.hidden=!0),this.open=!1,await Wc(50),this.popupElement&&(this.popupElement.hidden=!1)}destroy(){this.detachPopupElement(),this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},ll=(...e)=>new cl(...e);function ul(e,t){var n=H();da(I(n),()=>t.children??E),U(e,n)}var dl=Symbol(`sui-modal-retainer`),fl=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),pl=V(`<dialog><!> <!></dialog>`),ml={hash:`svelte-w0jcg8`,code:`dialog.svelte-w0jcg8 {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-w0jcg8::backdrop {background:transparent;}dialog.backdrop.svelte-w0jcg8 {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-w0jcg8 {transition-duration:50ms;opacity:1;}dialog.svelte-w0jcg8:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-w0jcg8 {transition-duration:1ms !important;}dialog.svelte-w0jcg8:not(.active) {pointer-events:none !important;}dialog.svelte-w0jcg8:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`};function hl(e,t){O(t,!0),K(e,ml);let n=e=>{var n=H(),l=I(n),d=e=>{var n=pl(),l=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},d=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};Qa(n,()=>({...u,inert:!B(p),role:a(),class:`sui modal ${t.class??``}`,onclick:l,oncancel:d,[Va]:{backdrop:o(),open:B(p),active:B(m)}}),void 0,void 0,void 0,`svelte-w0jcg8`);var f=F(n);da(f,()=>t.extraContent??E),da(L(f,2),()=>t.children??E),D(n),oo(n,e=>i(e),()=>i()),U(e,n)};G(l,e=>{B(v)&&e(d)}),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`dialog`,15),a=J(t,`role`,3,`dialog`),o=J(t,`showBackdrop`,3,!1),s=J(t,`lightDismiss`,3,!1),c=J(t,`escapeDismiss`,3,!0),l=J(t,`keepContent`,3,!1),u=co(t,fl),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=N(0),_=bt(dl);xt(dl,{retain:()=>{pi(()=>{P(g,B(g)+1)})},release:()=>{pi(()=>{P(g,B(g)-1)})}});let v=M(()=>l()||B(h)||B(g)>0),y=!1,b=0,x=e=>Math.max(0,...e.split(`,`).map(e=>Number.parseFloat(e)||0))*1e3,S=async()=>{if(await ui(),!i())return;let{transitionDuration:e,transitionDelay:t}=getComputedStyle(i()),n=x(e)+x(t)+100,r=new AbortController,{signal:a}=r;i().addEventListener(`transitionend`,e=>{e.target===i()&&r.abort()},{signal:a});let o=window.setTimeout(()=>r.abort(),n);await new Promise(e=>{a.addEventListener(`abort`,()=>e(void 0))}),window.clearTimeout(o)},C=async()=>{if(y)return;y=!0,b+=1;let e=b;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),await ui(),!(e!==b||!i()||i().open)&&(i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),i().getBoundingClientRect(),P(p,!0),await S(),e===b&&P(m,!0))},w=async()=>{if(!y)return;y=!1,b+=1;let e=b,n=B(p),r=i()?.returnValue??``;t.onClosing?.(new CustomEvent(`Closing`)),i()?.open&&(document.body.inert=!0,i().close(),document.body.inert=!1),P(m,!1),P(p,!1),n&&await S(),e===b&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i()&&i(i().returnValue=``,!0))},T=St();return fo(()=>{let e=Vi(ul,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n},context:T});return()=>{i()?.close(),Gi(e)}}),R(()=>{r()?C():w()}),R(()=>{if(B(h))return _?.retain(),()=>{_?.release()}}),k({focus:d,close:f})}var gl=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),_l=V(`<div role="none"><!></div>`),vl={hash:`svelte-1arpsbt`,code:`.content.svelte-1arpsbt {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-1arpsbt {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-1arpsbt .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-1arpsbt {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-1arpsbt .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.combobox.svelte-1arpsbt {display:flex;flex-direction:column;overflow:hidden;}.content.touch.svelte-1arpsbt {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-1arpsbt {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-1arpsbt {transform:scale(90%);}.content.touch.combobox.svelte-1arpsbt .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-1arpsbt {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-1arpsbt {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`};function yl(e,t){O(t,!0),K(e,vl);let n=e=>{var n=_l();let o,s;da(F(n),()=>t.children??E),D(n),oo(n,e=>a(e),()=>a()),z(()=>{q(n,`hidden`,!r()),o=Fa(n,1,`content ${t.class??``} ${B(m)??``}`,`svelte-1arpsbt`,o,{touch:B(_)}),s=La(n,``,s,{inset:B(h)?.style.inset,"z-index":B(h)?.style.zIndex,"min-width":B(h)?.style.minWidth,"max-width":B(h)?.style.maxWidth,"max-height":B(h)?.style.height,visibility:B(h)?.style.inset?void 0:`hidden`})}),Ai(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(g)}),Ai(`mouseleave`,n,()=>{i(!1),l()&&(g=window.setTimeout(()=>{r(!1)},200))}),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`hovered`,15,!1),a=J(t,`content`,15,void 0),o=J(t,`showBackdrop`,3,void 0),s=J(t,`position`,3,`bottom-left`),c=J(t,`positionBaseElement`,3,void 0),l=J(t,`parentDialogElement`,3,void 0),u=J(t,`touchOptimized`,3,!1),d=co(t,gl),f=N(void 0),p=N(!1),m=N(void 0),h=N(void 0),g=0;R(()=>{B(h)&&r(B(h).open)}),R(()=>{l()&&!B(f)&&a()&&(P(f,l()),B(f).append(a()))}),R(()=>{t.anchor&&!B(h)&&(P(h,ll(t.anchor,void 0,s(),c()),!0),P(m,t.anchor.getAttribute(`aria-haspopup`)??void 0,!0))}),R(()=>{if(B(h)&&B(f)&&a())return B(h).attachPopupElement(B(f),a()),()=>{B(h)?.detachPopupElement()}}),R(()=>{r()&&B(f)&&B(h)?.checkPosition()});let _=M(()=>u()&&B(p));fo(()=>(P(p,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{B(h)?.destroy?.(),globalThis.clearTimeout(g)}));var v=H(),y=I(v),b=e=>{n(e)},x=e=>{{let i=M(()=>o()??B(_));hl(e,uo(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return B(i)},lightDismiss:!0,onOpen:async e=>{if(t.onOpen?.(e),await Wc(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return B(f)},set dialog(e){P(f,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};G(y,e=>{l()?e(b):e(x,-1)}),U(e,v),k()}var bl=new Set(`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`)),xl=V(`<span role="none" class="label svelte-i516vf"><!></span>`),Sl=V(`<!> <!>`,1),Cl=V(`<button><!> <!> <!></button> <!>`,1),wl={hash:`svelte-i516vf`,code:`button.svelte-i516vf {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-i516vf {display:none !important;}button.svelte-i516vf:not(:disabled):focus-visible {z-index:1;}button.svelte-i516vf:is(.primary:where(.svelte-i516vf), .secondary:where(.svelte-i516vf), .tertiary:where(.svelte-i516vf), .ghost:where(.svelte-i516vf)) {justify-content:center;border-width:1px;}button.svelte-i516vf:is(.primary:where(.svelte-i516vf), .secondary:where(.svelte-i516vf), .tertiary:where(.svelte-i516vf), .ghost:where(.svelte-i516vf)) .label:where(.svelte-i516vf):only-child {padding:0 4px;}button.primary.svelte-i516vf {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-i516vf:is(:where(.svelte-i516vf):hover, :where(.svelte-i516vf):focus-visible, [aria-expanded=true]:where(.svelte-i516vf)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-i516vf:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-i516vf {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-i516vf:is(:where(.svelte-i516vf):hover, :where(.svelte-i516vf):focus-visible, [aria-expanded=true]:where(.svelte-i516vf)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-i516vf:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-i516vf {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-i516vf {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-i516vf:is(:where(.svelte-i516vf):hover, :where(.svelte-i516vf):focus-visible, [aria-expanded=true]:where(.svelte-i516vf)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-i516vf:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-i516vf {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-i516vf {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-i516vf:is(:where(.svelte-i516vf):hover, :where(.svelte-i516vf):focus-visible, [aria-expanded=true]:where(.svelte-i516vf)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-i516vf:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-i516vf {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-i516vf {margin:0;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-i516vf .label:where(.svelte-i516vf) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-i516vf .label:where(.svelte-i516vf) {text-decoration:underline;}button.small.svelte-i516vf {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-i516vf .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-i516vf {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-i516vf {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-i516vf {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-i516vf:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-i516vf {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-i516vf {background-color:var(--sui-error-background-color);}button.svelte-i516vf .label:where(.svelte-i516vf) {padding:0 4px;}button.svelte-i516vf > * {pointer-events:none;}button.svelte-i516vf :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`};function Tl(e,t){O(t,!0),K(e,wl);let n=J(t,`element`,15),r=J(t,`class`,3,``),i=J(t,`type`,3,`button`),a=J(t,`role`,3,`button`),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,19,()=>typeof s()),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`pressed`,3,void 0),p=J(t,`keyShortcuts`,3,void 0),m=J(t,`label`,3,``),h=J(t,`lines`,3,1),g=J(t,`variant`,3,void 0),_=J(t,`size`,3,`medium`),v=J(t,`iconic`,3,!1),y=J(t,`pill`,3,!1),b=J(t,`flex`,3,!1),x=J(t,`popupPosition`,3,`bottom-left`),S=J(t,`showPopupBackdrop`,3,!1),C=co(t,bl);var w=Cl(),T=I(w);Qa(T,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[Va]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-i516vf`);var ee=F(T);da(ee,()=>t.startIcon??E);var te=L(ee,2),ne=e=>{var n=H(),r=I(n),i=e=>{var t=xl();Uc(F(t),{get lines(){return h()},children:(e,t)=>{lt();var n=zi();z(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},a=e=>{var n=xl();da(F(n),()=>t.children??E),D(n),U(e,n)};G(r,e=>{m()?e(i):e(a,-1)}),U(e,n)},re=e=>{var n=Sl(),r=I(n),i=e=>{var t=xl();Uc(F(t),{get lines(){return h()},children:(e,t)=>{lt();var n=zi();z(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(r,e=>{m()&&e(i)}),da(L(r,2),()=>t.children??E),U(e,n)};G(te,e=>{g()===`link`?e(ne):e(re,-1)}),da(L(te,2),()=>t.endIcon??E),D(T),oo(T,e=>n(e),()=>n()),Ea(T,()=>p()&&Bc(p()));var ie=L(T,2),ae=e=>{yl(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=H();da(I(r),()=>t.popup),U(e,r)},$$slots:{default:!0}})};G(ie,e=>{t.popup&&e(ae)}),U(e,w),k()}var El=V(`<div role="none"><!></div>`),Dl=V(`<div role="none"><div role="alert" class="message svelte-stqsd6"><!> <!></div> <!></div>`),Ol={hash:`svelte-stqsd6`,code:`.infobar.svelte-stqsd6 {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-stqsd6 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-stqsd6 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-stqsd6 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-stqsd6 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-stqsd6 {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-stqsd6 button {font-size:inherit !important;}.message.svelte-stqsd6 .icon {font-size:16px; /* !hardcoded */}`};function kl(e,t){O(t,!0),K(e,Ol);let n=J(t,`show`,15,!0),r=J(t,`dismissible`,3,!0),i=J(t,`status`,3,`info`),a=J(t,`ariaLive`,3,`polite`),o=J(t,`children`,3,void 0),s=J(t,`icon`,3,void 0);var c=H(),l=I(c),u=e=>{var t=Dl(),c=F(t),l=F(c),u=e=>{var t=H();da(I(t),s),U(e,t)},d=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());_o(e,{get name(){return B(t)}})}};G(l,e=>{s()?e(u):e(d,-1)}),da(L(l,2),()=>o()??E),D(c);var f=L(c,2),p=e=>{var t=El(),r=F(t);{let e=M(()=>Y(`_sui.dismiss`));Tl(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return B(e)},onclick:()=>{n(!1)},children:(e,t)=>{_o(e,{name:`close`})},$$slots:{default:!0}})}D(t),U(e,t)};G(f,e=>{r()&&e(p)}),D(t),z(()=>{Fa(t,1,`infobar ${i()??``}`,`svelte-stqsd6`),q(c,`aria-live`,a())}),U(e,t)};G(l,e=>{n()&&e(u)}),U(e,c),k()}var Al=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),jl=V(`<div><!></div>`),Ml={hash:`svelte-1a1iib9`,code:`.bottom-navigation.svelte-1a1iib9 {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-1a1iib9:is([inert]:where(.svelte-1a1iib9), [hidden]:where(.svelte-1a1iib9)) {display:none;}.bottom-navigation.svelte-1a1iib9 .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`};function Nl(e,t){K(e,Ml);let n=co(t,Al);var r=jl();Qa(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-1a1iib9`),da(F(r),()=>t.children??E),D(r),U(e,r)}var Pl=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),Fl=V(`<div><!></div>`),Il={hash:`svelte-sabefd`,code:`.button-group.svelte-sabefd {flex:none;display:inline-flex;align-items:center;}`};function Ll(e,t){K(e,Il);let n=J(t,`ariaLabel`,3,void 0),r=co(t,Pl);var i=Fl();Qa(i,()=>({...r,role:`group`,class:`sui button-group ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-sabefd`),da(F(i),()=>t.children??E),D(i),U(e,i)}var Rl=V(`<div role="none" class="sui floating-action-button-wrapper svelte-fh9e6z"><!></div>`),zl={hash:`svelte-fh9e6z`,code:`.floating-action-button-wrapper.svelte-fh9e6z {display:contents;}
|
|
20
|
+
@media (width < 768px) {.floating-action-button-wrapper.svelte-fh9e6z {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-fh9e6z button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-fh9e6z button .icon {font-size:32px;}
|
|
21
|
+
}`};function Bl(e,t){K(e,zl);let n=J(t,`children`,3,void 0);var r=Rl();da(F(r),()=>n()??E),D(r),U(e,r)}var Vl=Symbol(`sui-option-registry`),Hl=class{#e=N(!1);get expanded(){return B(this.#e)}set expanded(e){P(this.#e,e,!0)}#t=N([]);get count(){return B(this.#t).length}get selectedEntry(){return B(this.#t).find(e=>e.selected)}register(e){return P(this.#t,[...B(this.#t),e]),()=>{P(this.#t,B(this.#t).filter(t=>t!==e))}}find(e){return B(this.#t).find(t=>t.value===e)}selectOnly(e){B(this.#t).forEach(t=>{let n=t.value===e;t.selected!==n&&(t.selected=n)})}},Ul=()=>xt(Vl,new Hl),Wl=()=>bt(Vl),Gl=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}},Kl=/\p{Diacritic}/gu,ql=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(Kl,``).toLocaleLowerCase():``),Jl={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!1,rovingTabStop:`selected`},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!0,rovingTabStop:`selected`}},Yl=`a[href], button, input, select, textarea, summary, [tabindex]`,Xl=(e,t)=>{let n=[...document.querySelectorAll(Yl)].filter(t=>t===e||t.tabIndex>=0&&!t.matches(`:disabled, [aria-disabled="true"], [hidden], [inert], [inert] *`)),r=n.indexOf(e);if(r===-1)return;let i=t?-1:1;for(let e=r+i;e>=0&&e<n.length;e+=i)if(n[e].getClientRects().length){n[e].focus();return}},Zl=e=>{let t=e;for(;t;){if(t.id){let e=document.querySelector(`[aria-haspopup="menu"][aria-controls="${CSS.escape(t.id)}"]`);if(e)return e}t=t.parentElement}return null},Ql=class{#e=void 0;#t=new WeakMap;#n=new WeakMap;#r(e){let t=e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent,n=this.#t.get(e);if(n?.raw===t)return n.normalized;let r=ql(t);return this.#t.set(e,{raw:t,normalized:r}),r}constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=nl(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o,controlsPanel:s,rovingTabStop:c}=Jl[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.controlsPanel=s,this.rovingTabStop=c,this.parent.tabIndex=a?-1:0,this.observer=new globalThis.MutationObserver(()=>{this.#e=void 0}),this.observer.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`aria-disabled`,`aria-hidden`]}),(async()=>{await Wc(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=this.controlsPanel?document.querySelector(`#${e.getAttribute(`aria-controls`)}`):null;e.id||=`${this.id}-item-${t+1}`,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),this.updateTabStop(),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}updateTabStop(){let{allMembers:e,activeMembers:t}=this;if(!this.focusChild){e.forEach(e=>{e.tabIndex=-1});return}let n=this.rovingTabStop===`selected`?t.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)??t[0]:t[0];e.forEach(e=>{e.tabIndex=e===n?0:-1})}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get#i(){if(this.observer.takeRecords().length&&(this.#e=void 0),!this.#e){let e=[...this.parent.querySelectorAll(this.selector)];this.#e={all:e,active:e.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}}return this.#e}get allMembers(){return this.#i.all}get activeMembers(){return this.#i.active}get opener(){return Zl(this.parent)}get parentMenuItem(){let{opener:e}=this;return e?.matches(`[role^="menuitem"]`)?e:null}closeMenuChain(){let{opener:e}=this,t=e,n=null;for(let e=0;e<10&&t;e+=1){n=t,t.getAttribute(`aria-expanded`)===`true`&&t.click();let e=t.closest(`[role="menu"], [role="menubar"]`);t=e?Zl(e):null}return n}async leaveMenu(e){let t=this.closeMenuChain();t&&(t.focus(),await Wc(50),Xl(t,e))}async enterSubmenu(e){let t=e.getAttribute(`aria-controls`);if(!t)return;e.getAttribute(`aria-expanded`)!==`true`&&e.click();let n=document.getElementById(t);for(let e=0;e<20;e+=1){let e=[...n?.querySelectorAll(this.selector)??[]].find(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`));if(e?.focus(),e&&document.activeElement===e)return;await Wc(20)}}leaveSubmenu(e){e.getAttribute(`aria-expanded`)===`true`&&e.click(),e.focus()}get selected(){return this.activeMembers.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `,o=[],s=!1;this.activeMembers.forEach(c=>{let l=c.getAttribute(`role`),u=l===`menuitemcheckbox`,d=l===`menuitemradio`;if((u||d)&&(l!==n||c.closest(this.parentGroupSelector)!==r))return;let f=u||this.multi,p=d||!f,m=c===t,h=c.getAttribute(this.childSelectedAttr)===`true`,g=this.controlsPanel?c.getAttribute(`aria-controls`):null,_=g?document.getElementById(g):null;o.push(c),s||=m,f&&m&&(i||a)&&(c.setAttribute(this.childSelectedAttr,String(!h)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!h}})),h||c.dispatchEvent(new CustomEvent(`Select`))),p&&h!==m&&(!d||a||i)&&(c.setAttribute(this.childSelectedAttr,String(m)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:m}})),m&&(e.type===`keydown`&&l===`radio`&&c.click(),c.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild||(c.classList.toggle(`focused`,m),m&&c.dispatchEvent(new CustomEvent(`Focus`))),_&&(_.inert=!m,_.setAttribute(`aria-hidden`,String(!m)),m&&globalThis.setTimeout(()=>{try{_.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{_.scrollIntoView(!0)}},300)),m&&(this.parent.setAttribute(`aria-activedescendant`,c.id),globalThis.setTimeout(()=>{try{c.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{c.scrollIntoView(!0)}},300))}),this.focusChild&&globalThis.requestAnimationFrame(()=>{o.forEach(e=>{e.tabIndex=e===t?0:-1}),s&&(t.focus(),t.dispatchEvent(new CustomEvent(`Focus`)))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:Gl(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r,s=this.childRoles.includes(`menuitem`);if(t===`Tab`&&s&&!n&&!r&&!a){e.preventDefault(),this.leaveMenu(i);return}if(o)return;let c=e.target,{allMembers:l,activeMembers:u}=this,d=(()=>{if(!this.focusChild)return u.find(e=>e.matches(`.focused`));if(c.matches(this.selector))return c})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){d?.click();return}if(t===` `){d&&this.selectTarget(e,d);return}if(t===`Escape`&&s){let{parentMenuItem:t}=this;if(t){e.preventDefault(),e.stopPropagation(),this.leaveSubmenu(t);return}}if(this.orientation===`vertical`&&s){let e=hc()?`ArrowLeft`:`ArrowRight`,n=hc()?`ArrowRight`:`ArrowLeft`;if(t===e&&d?.getAttribute(`aria-haspopup`)===`menu`){this.enterSubmenu(d);return}if(t===n){let{parentMenuItem:e}=this;if(e){this.leaveSubmenu(e);return}}}let f,p;if(this.grid){let e=Math.floor(this.parent.clientWidth/u[0].clientWidth),n=hc();f=d?l.indexOf(d):-1,t===`ArrowUp`&&f>0&&(p=l[f-e]),t===`ArrowDown`&&f<l.length-1&&(p=l[f+e]),t===`ArrowLeft`&&f>0&&(p=l[f+(n?1:-1)]),t===`ArrowRight`&&f<l.length-1&&(p=l[f+(n?-1:1)]),p?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(p=void 0)}else{f=d?u.indexOf(d):-1;let e=hc(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(f>0&&(p=u[f-1]),f<=0&&(p=u[u.length-1])),t===r&&(f<u.length-1&&(p=u[f+1]),f===u.length-1&&([p]=u))}p&&p!==d&&this.selectTarget(e,p)}destroy(){this.observer.disconnect(),this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=ql(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=this.#r(e),r=!n.every(e=>t.includes(e));return this.#n.get(e)!==r&&(this.#n.set(e,r),e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}}))),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},$l=e=>t=>{let n=typeof e==`function`,r=new Ql(t,n?e():e);return n&&R(()=>{r.onUpdate(e())}),()=>{r.destroy()}},eu=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`]),tu=V(`<div><div role="none" class="inner svelte-1ldy3fo"><!></div></div>`),nu={hash:`svelte-1ldy3fo`,code:`.select-button-group.svelte-1ldy3fo {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1ldy3fo:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1ldy3fo button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1ldy3fo button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1ldy3fo button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1ldy3fo button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1ldy3fo button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1ldy3fo [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1ldy3fo [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1ldy3fo [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1ldy3fo {display:contents;}`};function ru(e,t){O(t,!0),K(e,nu);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`ariaLabel`,3,void 0),c=co(t,eu);var l=tu();Qa(l,()=>({...c,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-label":s()}),void 0,void 0,void 0,`svelte-1ldy3fo`);var u=F(l);da(F(u),()=>t.children??E),D(u),D(l),Ea(l,$l),z(()=>u.inert=r()),U(e,l),k()}var iu=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);function au(e,t){O(t,!0);let n=J(t,`selected`,15,!1),r=co(t,iu);Tl(e,uo(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var ou=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),su=V(`<!> <!>`,1);function cu(e,t){O(t,!0);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`popupPosition`,3,`bottom-left`),a=J(t,`popupPositionBaseElement`,3,void 0),o=J(t,`showPopupBackdrop`,3,!1),s=J(t,`label`,3,``),c=J(t,`variant`,3,void 0),l=J(t,`size`,3,`medium`),u=J(t,`iconic`,3,!1),d=co(t,ou),f=N(void 0);var p={focus:()=>{B(f)?.focus()}},m=su(),h=I(m);return Tl(h,uo(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return B(f)},set element(e){P(f,e,!0)},startIcon:e=>{var n=H();da(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.endIcon),U(e,n)},a=e=>{_o(e,{name:`more_vert`})},o=e=>{_o(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),yl(L(h,2),{get anchor(){return B(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=H();da(I(r),()=>t.popup??E),U(e,r)},$$slots:{default:!0}}),U(e,m),k(p)}var lu=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),uu=V(`<div role="group" class="sui split-button svelte-xj9ym0"><!> <!></div>`),du={hash:`svelte-xj9ym0`,code:`.split-button.svelte-xj9ym0 {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-xj9ym0 button {margin:0;}.split-button.svelte-xj9ym0 button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-xj9ym0 button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`};function fu(e,t){O(t,!0),K(e,du);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`label`,3,``),a=J(t,`variant`,3,void 0),o=J(t,`size`,3,`medium`),s=J(t,`popupPosition`,3,`bottom-left`),c=J(t,`showPopupBackdrop`,3,!1),l=co(t,lu),u=N(void 0);var d=uu(),f=F(d);Tl(f,uo(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=L(f,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{_o(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},i=e=>{var n=H();da(I(n),()=>t.popup??E),U(e,n)},l=M(()=>Y(`_sui.split_button.more_options`));cu(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return B(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return B(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),oo(d,e=>P(u,e),()=>B(u)),z(e=>{q(d,`hidden`,n()),q(d,`aria-hidden`,n()),q(d,`aria-disabled`,r()),q(d,`aria-label`,e)},[()=>Y(`_sui.split_button.x_options`,{values:{name:i()}})]),U(e,d),k()}var pu=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`,`ariaLabel`]),mu=V(`<div></div>`),hu={hash:`svelte-1jxtsmh`,code:`.divider.svelte-1jxtsmh {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-1jxtsmh {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-1jxtsmh {margin:0 8px;width:1px;height:100%;}`};function gu(e,t){K(e,hu);let n=J(t,`hidden`,3,!1),r=J(t,`orientation`,3,`horizontal`),i=J(t,`ariaLabel`,3,void 0),a=co(t,pu);var o=mu();Qa(o,()=>({...a,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-1jxtsmh`),U(e,o)}var _u=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),vu=V(`<div></div>`),yu={hash:`svelte-1uu6y8g`,code:`.spacer.flex.svelte-1uu6y8g:not([hidden]) {display:block;flex:auto;}.spacer.svelte-1uu6y8g:not(.flex) {width:8px;height:8px;}`};function bu(e,t){K(e,yu);let n=J(t,`flex`,3,!1),r=co(t,_u);var i=vu();Qa(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Va]:{flex:n()}}),void 0,void 0,void 0,`svelte-1uu6y8g`),U(e,i)}var xu=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`ariaLabel`,`children`]),Su=V(`<div><div role="none" class="inner svelte-1ai91tz"><!></div></div>`),Cu={hash:`svelte-1ai91tz`,code:`.checkbox-group.svelte-1ai91tz {display:inline-flex;}.checkbox-group.horizontal.svelte-1ai91tz {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-1ai91tz {gap:4px;flex-direction:column;}
|
|
22
|
+
@media (pointer: coarse) {.checkbox-group.vertical.svelte-1ai91tz {gap:8px;}
|
|
23
|
+
}.inner.svelte-1ai91tz {display:contents;}`};function wu(e,t){K(e,Cu);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`ariaLabel`,3,void 0),o=co(t,xu);var s=Su();Qa(s,()=>({...o,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`,"aria-label":a()}),void 0,void 0,void 0,`svelte-1ai91tz`);var c=F(s);da(F(c),()=>t.children??E),D(c),D(s),z(()=>c.inert=r()),U(e,s)}var Tu=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`ariaLabel`,`group`,`onChange`,`children`,`checkIcon`]),Eu=V(`<label class="svelte-18f7ujl"><!></label>`),Du=V(`<div role="none"><div role="none" class="inner svelte-18f7ujl"><!> <!></div></div>`),Ou={hash:`svelte-18f7ujl`,code:`.checkbox.svelte-18f7ujl {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.checkbox.svelte-18f7ujl:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-18f7ujl:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-18f7ujl:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-18f7ujl:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-18f7ujl button {flex:none;align-items:center;justify-content:center;overflow:hidden;margin:0 !important;border-width:var(--sui-checkbox-border-width, 1.5px);border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-border-radius);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);color:var(--sui-primary-accent-text-color);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.checkbox.svelte-18f7ujl button[aria-checked=true] {border-color:var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));color:var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));background-color:var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));}.checkbox.svelte-18f7ujl button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-18f7ujl button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-18f7ujl button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-18f7ujl label:where(.svelte-18f7ujl) {cursor:inherit;}.inner.svelte-18f7ujl {display:contents;}`};function ku(e,t){let n=Bi();O(t,!0),K(e,Ou);let r=J(t,`checked`,15),i=J(t,`name`,3,void 0),a=J(t,`value`,3,void 0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=J(t,`label`,3,void 0),f=J(t,`ariaLabel`,3,void 0),p=J(t,`group`,15),m=co(t,Tu),h=N(void 0),g=M(()=>r()===`mixed`);R(()=>{Array.isArray(p())&&(p().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var _=Du();let v;var y=F(_),b=F(y);{let e=e=>{var n=H(),i=I(n),a=e=>{var n=H();da(I(n),()=>t.checkIcon),U(e,n)},o=e=>{_o(e,{name:`remove`})},s=e=>{_o(e,{name:`check`})};G(i,e=>{t.checkIcon?e(a):B(g)?e(o,1):r()&&e(s,2)}),U(e,n)},d=M(()=>f()||void 0),_=M(()=>f()?void 0:`${n}-label`);Tl(b,uo(()=>m,{role:`checkbox`,get id(){return n},get name(){return i()},get value(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get"aria-invalid"(){return u()},get"aria-checked"(){return r()},get"aria-label"(){return B(d)},get"aria-labelledby"(){return B(_)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(B(g)?!0:!r()),Array.isArray(p())&&(r()?p().includes(a())||p([...p(),a()]):p().includes(a())&&p(p().filter(e=>e!==a()))),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:r()}})))},get element(){return B(h)},set element(e){P(h,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var x=L(b,2),S=e=>{var r=Eu(),i=F(r),a=e=>{var n=H();da(I(n),()=>t.children),U(e,n)},o=e=>{var t=zi();z(()=>W(t,d())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),z(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(x,e=>{(t.children||d())&&e(S)}),D(y),D(_),z(()=>{v=Fa(_,1,`sui checkbox ${t.class??``}`,`svelte-18f7ujl`,v,{checked:r(),indeterminate:B(g),disabled:s(),readonly:c()}),q(_,`hidden`,o()),y.inert=s()}),ji(`click`,_,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||B(h)?.click()}),U(e,_),k()}Mi([`click`]);var Au=new Set(`$$slots.$$events.$$legacy.open.value.title.role.size.class.showClose.showOk.showCancel.okLabel.okShortcuts.okDisabled.cancelLabel.cancelShortcuts.cancelDisabled.focusInput.children.header.headerExtra.footer.footerExtra.closeIcon.input`.split(`.`)),ju=V(`<div role="none" class="title svelte-1wwwiub"> </div> <!> <!> <!>`,1),Mu=V(`<div role="none" class="header svelte-1wwwiub"><!></div>`),Nu=V(`<!> <!> <!> <!>`,1),Pu=V(`<div role="none" class="footer svelte-1wwwiub"><!></div>`),Fu=V(`<div role="none"><!> <div role="none" class="body svelte-1wwwiub"><!></div> <!></div>`),Iu={hash:`svelte-1wwwiub`,code:`.content.svelte-1wwwiub {position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--sui-dialog-content-border-radius, 4px);max-width:calc(100dvw - var(--sui-dialog-content-margin, 16px) * 2);background-color:var(--sui-dialog-content-background-color, var(--sui-secondary-background-color-translucent));box-shadow:var(--sui-dialog-content-box-shadow, 0 8px 16px var(--sui-popup-shadow-color));-webkit-backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));transition-property:transform;}dialog.open .content.svelte-1wwwiub {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-1wwwiub {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-1wwwiub {width:var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));max-height:var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));}
|
|
24
|
+
@media (max-height: 400px) {.content.small.svelte-1wwwiub {max-height:calc(100dvh - 32px);}
|
|
25
|
+
}.content.medium.svelte-1wwwiub {width:var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));max-height:var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));}
|
|
26
|
+
@media (max-height: 600px) {.content.medium.svelte-1wwwiub {max-height:calc(100dvh - 32px);}
|
|
27
|
+
}.content.large.svelte-1wwwiub {width:var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));max-height:var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));}
|
|
28
|
+
@media (max-height: 800px) {.content.large.svelte-1wwwiub {max-height:calc(100dvh - 32px);}
|
|
29
|
+
}.content.x-large.svelte-1wwwiub {width:var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));max-height:var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));}
|
|
30
|
+
@media (max-height: 1000px) {.content.x-large.svelte-1wwwiub {max-height:calc(100dvh - 32px);}
|
|
31
|
+
}:is(.header.svelte-1wwwiub, .footer.svelte-1wwwiub) {display:flex;align-items:center;gap:4px;}.header.svelte-1wwwiub {box-sizing:content-box;margin:var(--sui-dialog-header-margin, 0 16px);border-width:var(--sui-dialog-header-border-width, 0 0 1px);border-color:var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));padding:var(--sui-dialog-header-padding, 16px 8px);height:var(--sui-dialog-header-height, 32px);}.header.svelte-1wwwiub .title:where(.svelte-1wwwiub) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-1wwwiub {margin:var(--sui-dialog-footer-margin, 0 24px 24px);}
|
|
32
|
+
@media (width < 768px) {.footer.svelte-1wwwiub {margin:var(--sui-dialog-footer-margin, 0 16px 16px);}
|
|
33
|
+
}.body.svelte-1wwwiub {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);}
|
|
34
|
+
@media (width < 768px) {.body.svelte-1wwwiub {margin:var(--sui-dialog-body-margin, 16px 16px);}
|
|
35
|
+
}`};function Lu(e,t){let n=Bi();O(t,!0),K(e,Iu);let r=J(t,`open`,15,!1);J(t,`value`,11,``);let i=J(t,`role`,3,`dialog`),a=J(t,`size`,3,`medium`),o=J(t,`showClose`,3,!1),s=J(t,`showOk`,3,!0),c=J(t,`showCancel`,3,!0),l=J(t,`okLabel`,3,``),u=J(t,`okShortcuts`,3,void 0),d=J(t,`okDisabled`,3,!1),f=J(t,`cancelLabel`,3,``),p=J(t,`cancelShortcuts`,3,void 0),m=J(t,`cancelDisabled`,3,!1),h=J(t,`focusInput`,3,!0),g=co(t,Au),_=N(void 0),v=N(void 0);R(()=>{if(r()&&B(v)){let e=!1;return(async()=>{await Wc(50),!e&&(h()?((B(v)?.querySelector(`input, button.primary`))?.focus(),(B(v)?.querySelector(`input`))?.select()):B(_)?.focus())})(),()=>{e=!0}}});{let h=M(()=>t.header?void 0:t.title),y=M(()=>t.header?t.title:`${n}-title`);oo(hl(e,uo(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return B(h)},get"aria-labelledby"(){return B(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=Fu(),h=F(i),g=e=>{var r=Mu(),i=F(r),a=e=>{var n=H();da(I(n),()=>t.header),U(e,n)},s=e=>{var r=ju(),i=I(r),a=F(i,!0);D(i);var s=L(i,2);bu(s,{flex:!0});var c=L(s,2);da(c,()=>t.headerExtra??E);var l=L(c,2),u=e=>{{let r=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.closeIcon),U(e,n)},a=e=>{_o(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>Y(`_sui.close`));Tl(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return B(i)},get"aria-controls"(){return n},onclick:()=>{B(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};G(l,e=>{o()&&e(u)}),z(()=>{q(i,`id`,`${n}-title`),W(a,t.title)}),U(e,r)};G(i,e=>{t.header?e(a):e(s,-1)}),D(r),U(e,r)};G(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=L(h,2);da(F(y),()=>t.children??E),D(y);var b=L(y,2),x=e=>{var n=Pu(),r=F(n),i=e=>{var n=H();da(I(n),()=>t.footer??E),U(e,n)},a=e=>{var n=Nu(),r=I(n);da(r,()=>t.footerExtra??E);var i=L(r,2);bu(i,{flex:!0});var a=L(i,2),o=e=>{{let t=M(()=>l()||Y(`_sui.ok`));Tl(e,{variant:`primary`,get label(){return B(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{B(_)?.close(`ok`)}})}};G(a,e=>{s()&&e(o)});var h=L(a,2),g=e=>{{let t=M(()=>f()||Y(`_sui.cancel`));Tl(e,{variant:`secondary`,get label(){return B(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{B(_)?.close(`cancel`)}})}};G(h,e=>{c()&&e(g)}),U(e,n)};G(r,e=>{t.footer?e(i):e(a,-1)}),D(n),U(e,n)};G(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),D(i),oo(i,e=>P(v,e),()=>B(v)),z(()=>{Fa(i,1,`content ${t.class??``} ${a()??``}`,`svelte-1wwwiub`),q(y,`id`,`${n}-body`)}),U(e,i)},$$slots:{default:!0}})),e=>P(_,e,!0),()=>B(_))}k()}var Ru=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function zu(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=co(t,Ru);Lu(e,uo(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),k()}var Bu=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Vu(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=co(t,Bu);Lu(e,uo(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),k()}var Hu=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`oninput`]),Uu=V(`<span aria-hidden="true"><!></span>`),Wu=V(`<div role="none"><input/> <!></div>`),Gu={hash:`svelte-w9b673`,code:`.text-input.svelte-w9b673 {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-w9b673:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-w9b673 {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-w9b673:is(:where(.svelte-w9b673):-webkit-autofill, :where(.svelte-w9b673):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-w9b673 {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-w9b673:focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-w9b673:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-w9b673:is(:where(.svelte-w9b673):disabled, :where(.svelte-w9b673):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-w9b673 {border-color:var(--sui-error-border-color);}input.svelte-w9b673 ~ button {flex:none;margin-inline-start:-1px;border-width:1px;border-color:var(--sui-textbox-border-color);height:var(--sui-textbox-height);aspect-ratio:1/1;}input.svelte-w9b673 ~ button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}input.svelte-w9b673 ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-w9b673 {position:absolute;inset:var(--sui-textbox-singleline-padding);z-index:2;display:flex;align-items:center;justify-content:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));pointer-events:none;}.label.hidden.svelte-w9b673 {opacity:0;}input.svelte-w9b673:focus + .label:where(.svelte-w9b673) {opacity:0;}input.svelte-w9b673::placeholder,
|
|
36
|
+
.label.svelte-w9b673 {color:var(--sui-textbox-placeholder-foreground-color, var(--sui-textbox-foreground-color));opacity:var(--sui-textbox-placeholder-opacity, 0.5);font-family:var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));font-size:var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));line-height:var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));font-weight:var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));text-align:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));text-indent:var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));letter-spacing:var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));}`};function Ku(e,t){let n=Bi();O(t,!0),K(e,Gu);let r=J(t,`value`,15),i=J(t,`element`,15),a=J(t,`role`,3,`textbox`),o=J(t,`keyShortcuts`,3,void 0),s=J(t,`dir`,3,void 0),c=J(t,`name`,3,void 0),l=J(t,`showInlineLabel`,3,!1),u=J(t,`inputmode`,3,`text`),d=J(t,`flex`,3,!1),f=J(t,`monospace`,3,!1),p=J(t,`debounce`,3,!1),m=J(t,`hidden`,3,!1),h=J(t,`disabled`,3,!1),g=J(t,`readonly`,3,!1),_=J(t,`required`,3,!1),v=J(t,`invalid`,3,!1),y=J(t,`ariaLabel`,3,void 0),b=co(t,Hu),x=M(()=>typeof p()==`number`?p():300),S=0;R(()=>()=>{clearTimeout(S)});let C=e=>{r(i()?.value),t.oninput?.(e)},w=e=>{let t=e;p()?(clearTimeout(S),S=setTimeout(()=>{C(t)},B(x))):C(t)};var T=Wu();let ee;var te=F(T);Qa(te,()=>({...b,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:h()?-1:0,disabled:h()||void 0,readonly:g()||void 0,inputmode:u(),"aria-label":y(),"aria-hidden":m(),"aria-disabled":h(),"aria-readonly":g(),"aria-required":_(),"aria-invalid":v(),oninputcapture:w}),void 0,void 0,void 0,`svelte-w9b673`,!0),oo(te,e=>i(e),()=>i()),Ea(te,()=>Bc(o()));var ne=L(te,2),re=e=>{var t=Uu();let i;Uc(F(t),{children:(e,t)=>{lt();var n=zi();z(()=>W(n,y())),U(e,n)},$$slots:{default:!0}}),D(t),z(()=>{q(t,`id`,`${n}-label`),i=Fa(t,1,`label svelte-w9b673`,null,i,{hidden:!!r()})}),U(e,t)};G(ne,e=>{y()&&l()&&e(re)}),D(T),z(()=>{ee=Fa(T,1,`sui text-input ${t.class??``}`,`svelte-w9b673`,ee,{flex:d(),monospace:f(),disabled:h(),readonly:g()}),q(T,`hidden`,m()),te.dir=te.dir}),U(e,T),k()}var qu=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]),Ju=V(`<!> <div class="input-outer svelte-xp5m20"><!></div>`,1),Yu={hash:`svelte-xp5m20`,code:`.input-outer.svelte-xp5m20 {margin:12px 0 0;}`};function Xu(e,t){O(t,!0),K(e,Yu);let n=J(t,`open`,15,!1),r=J(t,`value`,15,``),i=J(t,`textboxAttrs`,19,()=>({})),a=co(t,qu);Lu(e,uo(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=Ju(),o=I(a);da(o,()=>t.children??E);var s=L(o,2),c=F(s),l=e=>{var n=H();da(I(n),()=>t.input),U(e,n)},u=e=>{Ku(e,uo({dir:`auto`,flex:!0,autofocus:!0},i,{get onkeydown(){return t.onkeydown},get onkeyup(){return t.onkeyup},get onkeypress(){return t.onkeypress},get oninput(){return t.oninput},get value(){return r()},set value(e){r(e)}}))};G(c,e=>{t.input?e(l):e(u,-1)}),D(s),U(e,a)},$$slots:{default:!0}})),k()}var Zu=V(`<input class="sui file-picker" type="file" hidden=""/>`);function Qu(e,t){O(t,!0);let n=J(t,`accept`,3,void 0),r=J(t,`multiple`,3,!1),i=J(t,`onSelect`,3,void 0),a=J(t,`onCancel`,3,void 0),o=N(void 0);var s={open:()=>{B(o)?.click()}},c=Zu();return oo(c,e=>P(o,e),()=>B(o)),z(()=>{q(c,`accept`,n()),c.multiple=r()}),ji(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),Ai(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),U(e,c),k(s)}Mi([`change`]);var $u=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]),ed=V(`<div role="row" class="row-group-caption svelte-v8o6i2"><!></div>`),td=V(`<div><!> <!></div>`),nd={hash:`svelte-v8o6i2`,code:`[role=rowgroup].svelte-v8o6i2 {display:table-row-group;}[role=row].svelte-v8o6i2 {display:table-row;}[role=columnheader].svelte-v8o6i2 {display:table-cell;padding:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);text-align:start;}`};function rd(e,t){let n=Bi();K(e,nd);let r=J(t,`label`,3,``),i=co(t,$u);var a=td();Qa(a,()=>({...i,role:`rowgroup`,class:`sui grid-body row-group ${t.class??``}`,"aria-labelledby":r()?`${n}-label`:void 0,"aria-roledescription":`grid body`}),void 0,void 0,void 0,`svelte-v8o6i2`);var o=F(a),s=e=>{var t=ed();wa(F(t),()=>`th`,!1,(e,t)=>{Qa(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-v8o6i2`);var i=zi();z(()=>W(i,r())),U(t,i)}),D(t),U(e,t)};G(o,e=>{r()&&e(s)}),da(L(o,2),()=>t.children??E),D(a),U(e,a)}var id=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),ad=V(`<div><!></div>`),od={hash:`svelte-14gzqsu`,code:`.grid-cell.svelte-14gzqsu {display:table-cell;}`};function sd(e,t){K(e,od);let n=co(t,id);var r=ad();Qa(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-14gzqsu`),da(F(r),()=>t.children??E),D(r),U(e,r)}var cd=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]),ld=V(`<div><!></div>`),ud={hash:`svelte-we6kti`,code:`.grid-row.svelte-we6kti {display:table-row;height:var(--sui-primary-row-height);}`};function dd(e,t){K(e,ud);let n=J(t,`selected`,3,!1),r=co(t,cd);var i=ld();Qa(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-we6kti`),da(F(i),()=>t.children??E),D(i),U(e,i)}var fd=new Set([`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`ariaLabel`,`children`,`onChange`]),pd=V(`<div><!></div>`),md={hash:`svelte-azsymz`,code:`.grid.svelte-azsymz {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-azsymz {border-collapse:collapse;}.grid.data.svelte-azsymz :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`};function hd(e,t){O(t,!0),K(e,md);let n=J(t,`element`,15),r=J(t,`multiple`,3,!1),i=J(t,`clickToSelect`,3,!0),a=J(t,`ariaLabel`,3,void 0),o=co(t,fd);var s=pd(),c=e=>{t.onChange?.(e)};Qa(s,()=>({...o,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),"aria-label":a(),onChange:c}),void 0,void 0,void 0,`svelte-azsymz`),da(F(s),()=>t.children??E),D(s),oo(s,e=>n(e),()=>n()),Ea(s,()=>$l({clickToSelect:i()})),U(e,s),k()}var gd=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`ariaLabel`,`children`,`onFilter`]),_d=V(`<div><div role="none" class="inner svelte-1oxrnn9"><!></div></div>`),vd={hash:`svelte-1oxrnn9`,code:`[role=listbox].svelte-1oxrnn9 {display:flex;flex-direction:column;margin:var(--sui-focus-ring-width);border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);min-width:var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));color:var(--sui-listbox-foreground-color);background-color:var(--sui-listbox-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}
|
|
37
|
+
@media (pointer: coarse) {[role=listbox].svelte-1oxrnn9 {gap:8px 0;}
|
|
38
|
+
}[role=listbox].svelte-1oxrnn9 [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-1oxrnn9 {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-1oxrnn9 {padding:0;border-block-start-width:0;border-block-end-width:0;border-inline-end-width:1px;border-inline-start-width:0;border-color:var(--sui-control-border-color);}[role=listbox].tabs.svelte-1oxrnn9 .option button {justify-content:flex-start;border-width:0;border-inline-end-width:2px;border-color:transparent;padding:0 12px;border-start-end-radius:0;border-end-end-radius:0;height:var(--sui-tab-medium-height);}[role=listbox].tabs.svelte-1oxrnn9 .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-1oxrnn9 .option button .icon {display:none;}[role=listbox].in-combobox.svelte-1oxrnn9:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-1oxrnn9 [role=separator] {display:none;}.inner.svelte-1oxrnn9 {display:contents;}`};function yd(e,t){O(t,!0),K(e,vd);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`multiple`,3,!1),c=J(t,`searchTerms`,3,``),l=J(t,`ariaLabel`,3,void 0),u=co(t,gd),d=N(!1);var f=_d(),p=e=>{let{detail:{matched:n,total:r}}=e;P(d,n!==r),t.onFilter?.(e)};Qa(f,()=>({...u,role:`listbox`,class:`sui listbox ${t.class??``}`,tabindex:r()?-1:0,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-multiselectable":s(),"aria-label":l(),onFilter:p,[Va]:{filtered:B(d)}}),void 0,void 0,void 0,`svelte-1oxrnn9`);var m=F(f);da(F(m),()=>t.children??E),D(m),D(f),Ea(f,()=>$l(()=>({searchTerms:c()}))),z(()=>m.inert=r()),U(e,f),k()}var bd=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]),xd=V(`<div><div role="none" class="label svelte-1v36971"><!></div> <div role="none" class="inner svelte-1v36971"><!></div></div>`),Sd={hash:`svelte-1v36971`,code:`.option-group.svelte-1v36971:not(:first-child) {margin:12px 0 0;}.label.svelte-1v36971 {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-1v36971 {display:contents;}`};function Cd(e,t){let n=Bi();K(e,Sd);let r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=co(t,bd);var s=xd();Qa(s,()=>({...o,role:`group`,id:n,class:`sui option-group ${t.class??``}`,hidden:r(),"aria-hidden":r(),"aria-disabled":i(),"aria-labelledby":`${n}-label`,"aria-roledescription":`option group`}),void 0,void 0,void 0,`svelte-1v36971`);var c=F(s);Uc(F(c),{children:(e,t)=>{lt();var n=zi();z(()=>W(n,a())),U(e,n)},$$slots:{default:!0}}),D(c);var l=L(c,2);da(F(l),()=>t.children??E),D(l),D(s),z(()=>{q(c,`id`,`${n}-label`),l.inert=i()}),U(e,s)}var wd=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]),Td=V(`<!> <!>`,1),Ed=V(`<div role="none"><!></div>`),Dd={hash:`svelte-xudoc3`,code:`.option.svelte-xudoc3 {display:contents;}.option.svelte-xudoc3:focus-visible {outline-width:0 !important;}.option.svelte-xudoc3 .wrap button {white-space:normal;}.option.svelte-xudoc3 button {flex:none;display:flex;gap:4px;margin:0 !important;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);width:100%;height:auto;min-height:var(--sui-option-height);}.option.svelte-xudoc3 button:active {background-color:var(--sui-active-background-color);}.option.svelte-xudoc3 button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-xudoc3 button * {flex:none;}.option.svelte-xudoc3 button .label {flex:auto;}.option.svelte-xudoc3 :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-xudoc3 .icon.check {margin:-2px;}`};function Od(e,t){let n=Bi();O(t,!0),K(e,Dd);let r=J(t,`selected`,15,!1),i=J(t,`hidden`,15,!1),a=J(t,`disabled`,3,!1),o=J(t,`value`,19,()=>t.label),s=J(t,`searchValue`,19,()=>t.label),c=J(t,`wrap`,3,!1),l=co(t,wd),u=Wl();u&&po(u.register({get value(){return o()},get label(){return t.label},get name(){return t.name},get type(){return t.valueType??typeof o()},get selected(){return r()},set selected(e){r(e)},get disabled(){return a()}}));let d=M(()=>!u||u.expanded);var f=H(),p=I(f),m=e=>{var u=Ed();let d;var f=F(u);{let e=e=>{var n=H();da(I(n),()=>t.startIcon??E),U(e,n)},c=M(()=>t.id??n);Tl(f,uo(()=>l,{role:`option`,get id(){return B(c)},tabindex:`-1`,get"aria-selected"(){return r()},get label(){return t.label},get value(){return o()},get hidden(){return i()},get disabled(){return a()},get"data-search-value"(){return s()},onChange:e=>{r(e.detail.selected),t.onChange?.(e)},onToggle:e=>{i(e.detail.hidden),i()&&r(!1),t.onToggle?.(e)},startIcon:e,children:(e,n)=>{var i=Td(),a=I(i),o=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.checkIcon),U(e,n)},a=e=>{_o(e,{class:`check`,name:`check`})};G(r,e=>{t.checkIcon?e(i):e(a,-1)}),U(e,n)};G(a,e=>{r()&&e(o)}),da(L(a,2),()=>t.children??E),U(e,i)},$$slots:{startIcon:!0,default:!0}}))}D(u),z(()=>{d=Fa(u,1,`sui option ${t.class??``}`,`svelte-xudoc3`,d,{wrap:c()}),q(u,`hidden`,i())}),U(e,u)};G(p,e=>{B(d)&&e(m)}),U(e,f),k()}var kd=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`,`onChange`]),Ad=V(`<div><!></div>`),jd={hash:`svelte-11szlw9`,code:`.menu.svelte-11szlw9 {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);}
|
|
39
|
+
@media (pointer: coarse) {.menu.svelte-11szlw9 {gap:8px 0;}
|
|
40
|
+
}.menu.svelte-11szlw9 [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`};function Md(e,t){O(t,!0),K(e,jd);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`ariaLabel`,3,void 0),a=co(t,kd);var o=Ad(),s=e=>{t.onChange?.(e)};Qa(o,()=>({...a,role:`menu`,class:`sui menu ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-label":i(),onChange:s}),void 0,void 0,void 0,`svelte-11szlw9`),da(F(o),()=>t.children??E),D(o),Ea(o,$l),U(e,o),k()}var Nd=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),Pd=V(`<span role="none" class="icon-outer svelte-1q0wyz5"><!></span>`),Fd=V(`<div role="none"><!></div> <!>`,1),Id=V(`<div role="none"><!> <!></div>`),Ld={hash:`svelte-1q0wyz5`,code:`.menuitem.svelte-1q0wyz5 {position:relative;}.menuitem.svelte-1q0wyz5 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-1q0wyz5 button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1q0wyz5 button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1q0wyz5 button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1q0wyz5 :hover > [role=menu] {opacity:1;}.menuitem.svelte-1q0wyz5 > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-1q0wyz5 > [role=menu]:hover {opacity:1;}.content.svelte-1q0wyz5 {flex:auto;}.icon-outer.svelte-1q0wyz5 {flex:none;width:24px;height:24px;}`};function Rd(e,t){O(t,!0),K(e,Ld);let n=J(t,`role`,3,`menuitem`),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=J(t,`popupPosition`,3,`right-top`),s=co(t,Nd),c=N(!1),l=N(!1),u=N(void 0),d=N(void 0),f=M(()=>n()===`menuitem`&&!!t.items);fo(()=>{P(d,B(u)?.closest(`dialog`)??void 0,!0)});var p=Id(),m=F(p);{let e=e=>{var n=H();da(I(n),()=>t.startIcon??E),U(e,n)},o=e=>{var n=Fd(),r=I(n);let i;var o=F(r),s=e=>{var t=zi();z(()=>W(t,a())),U(e,t)},c=e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)};G(o,e=>{a()?e(s):e(c,-1)}),D(r);var l=L(r,2),u=e=>{var n=Pd(),r=F(n),i=e=>{var n=H();da(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{{let t=M(()=>hc()?`chevron_left`:`chevron_right`);_o(e,{get name(){return B(t)}})}};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),D(n),U(e,n)};G(l,e=>{B(f)&&e(u)}),z(()=>i=Fa(r,1,`content svelte-1q0wyz5`,null,i,{label:!!a()})),U(e,n)},d=e=>{var n=H();da(I(n),()=>t.endIcon??E),U(e,n)},p=M(()=>B(f)?`menu`:void 0),h=M(()=>B(f)?B(c):void 0);Tl(m,uo(()=>s,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return B(p)},get"aria-expanded"(){return B(h)},onmouseenter:e=>{B(f)&&window.setTimeout(()=>{P(c,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{B(f)&&window.setTimeout(()=>{B(l)||P(c,!1)},200),t.onmouseleave?.(e)},onclick:e=>{B(f)&&(e.preventDefault(),e.stopPropagation(),P(c,!B(c))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return B(u)},set element(e){P(u,e,!0)},startIcon:e,children:o,endIcon:d,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var h=L(m,2),g=e=>{yl(e,{get anchor(){return B(u)},get parentDialogElement(){return B(d)},get position(){return o()},get open(){return B(c)},set open(e){P(c,e,!0)},get hovered(){return B(l)},set hovered(e){P(l,e,!0)},children:(e,n)=>{Md(e,{children:(e,n)=>{var r=H();da(I(r),()=>t.items??E),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(h,e=>{B(f)&&B(u)&&B(d)&&e(g)}),D(p),z(()=>{Fa(p,1,`sui menuitem ${t.class??``}`,`svelte-1q0wyz5`),q(p,`hidden`,r())}),U(e,p),k()}var zd=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);function Bd(e,t){O(t,!0);let n=J(t,`checked`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=co(t,zd);Rd(e,uo(()=>o,{role:`menuitemcheckbox`,get class(){return`sui menu-item-checkbox ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=H();da(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var t=H(),r=I(t),i=e=>{_o(e,{name:`check`})};G(r,e=>{n()&&e(i)}),U(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var Vd=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);function Hd(e,t){O(t,!0);let n=J(t,`checked`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=co(t,Vd);Rd(e,uo(()=>o,{role:`menuitemradio`,get class(){return`sui menu-item-radio ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=H();da(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var t=H(),r=I(t),i=e=>{_o(e,{name:`check`})};G(r,e=>{n()&&e(i)}),U(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var Ud=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`,`ariaLabel`]),Wd=V(`<div><div role="none" class="svelte-1tcyhf9"></div></div>`),Gd={hash:`svelte-1tcyhf9`,code:`.progressbar.svelte-1tcyhf9 {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-1tcyhf9 div:where(.svelte-1tcyhf9) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`};function Kd(e,t){K(e,Gd);let n=J(t,`now`,3,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=J(t,`ariaLabel`,3,void 0),o=co(t,Ud);var s=Wd();Qa(s,()=>({...o,role:`progressbar`,class:`sui progressbar ${t.class??``}`,"aria-valuenow":n(),"aria-valuemin":r(),"aria-valuemax":i(),"aria-valuetext":t.text,"aria-label":a()}),void 0,void 0,void 0,`svelte-1tcyhf9`);var c=F(s);let l;D(s),z(()=>l=La(c,``,l,{width:`${n()??``}%`})),U(e,s)}var qd=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`ariaLabel`,`children`,`onChange`]),Jd=V(`<div><div role="none" class="inner svelte-1b3rapb"><!></div></div>`),Yd={hash:`svelte-1b3rapb`,code:`.radio-group.svelte-1b3rapb {display:inline-flex;}.radio-group.svelte-1b3rapb:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-1b3rapb {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-1b3rapb {gap:4px;flex-direction:column;}
|
|
41
|
+
@media (pointer: coarse) {.radio-group.vertical.svelte-1b3rapb {gap:8px;}
|
|
42
|
+
}.radio-group.svelte-1b3rapb [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-1b3rapb [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-1b3rapb [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-1b3rapb {display:contents;}`};function Xd(e,t){O(t,!0),K(e,Yd);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`orientation`,3,`horizontal`),c=J(t,`ariaLabel`,3,void 0),l=co(t,qd);var u=Jd(),d=e=>{t.onChange?.(e)};Qa(u,()=>({...l,role:`radiogroup`,class:`sui radio-group ${t.class??``} ${s()??``}`,tabindex:`-1`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-orientation":s(),"aria-label":c(),onChange:d}),void 0,void 0,void 0,`svelte-1b3rapb`);var f=F(u);da(F(f),()=>t.children??E),D(f),D(u),Ea(u,$l),z(()=>f.inert=r()),U(e,u),k()}var Zd=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),Qd=V(`<label class="svelte-34275t"><!></label>`),$d=V(`<span><!> <!></span>`),ef={hash:`svelte-34275t`,code:`.radio.svelte-34275t {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-34275t :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-34275t :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-34275t :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-34275t :active button {background-color:var(--sui-active-background-color);}.radio.svelte-34275t :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-34275t 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-34275t button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-34275t button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-34275t button[aria-checked=true]::before {opacity:1;}.radio.svelte-34275t label:where(.svelte-34275t) {cursor:inherit;}`};function tf(e,t){let n=Bi();O(t,!0),K(e,ef);let r=J(t,`checked`,7,!1),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,3,void 0),l=J(t,`label`,3,void 0),u=J(t,`group`,15),d=co(t,Zd),f=N(void 0);R(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=$d(),m=e=>{e.target.matches(`button`)||B(f)?.click()};Qa(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[Va]:{disabled:a()}}),void 0,void 0,void 0,`svelte-34275t`);var h=F(p);Tl(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return B(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=Qd(),i=F(r),a=e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)},o=e=>{var t=zi();z(()=>W(t,l())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),z(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(g,e=>{(t.children||l())&&e(_)}),D(p),U(e,p),k()}var nf=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`ariaLabel`,`children`,`onResizeStart`,`onResizeEnd`]),rf=V(`<div role="none" class="handle-bar svelte-a7vkoj"></div>`),af=V(`<div><!></div>`),of={hash:`svelte-a7vkoj`,code:`.resizable-handle.svelte-a7vkoj {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-a7vkoj:focus-visible, .resizable-handle.svelte-a7vkoj:hover, .resizable-handle.dragging.svelte-a7vkoj {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent-light);}.resizable-handle.svelte-a7vkoj:focus-visible .handle-bar:where(.svelte-a7vkoj), .resizable-handle.svelte-a7vkoj:hover .handle-bar:where(.svelte-a7vkoj), .resizable-handle.dragging.svelte-a7vkoj .handle-bar:where(.svelte-a7vkoj) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-a7vkoj {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-a7vkoj {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-a7vkoj .handle-bar:where(.svelte-a7vkoj) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-a7vkoj {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-a7vkoj .handle-bar:where(.svelte-a7vkoj) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-a7vkoj .handle-bar:where(.svelte-a7vkoj) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`};function sf(e,t){O(t,!0),K(e,of);let n=J(t,`disabled`,3,!1),r=J(t,`showHandleBar`,3,!1),i=J(t,`ariaLabel`,3,void 0),a=co(t,nf),o=bt(`paneGroup`);if(!o)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let s=o.registerHandle(),c=M(()=>o.direction===`horizontal`),l=M(()=>o.sizes),u=M(()=>B(l)[s]??0),d=M(()=>o.getPaneConstraints(s)),f=M(()=>Math.max(B(d).minSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).maxSize),0))),p=M(()=>Math.min(B(d).maxSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).minSize),0))),m=N(void 0),h=N(!1),g=N(0),_=N(0),v=N(!1),y=0,b=()=>{let e=B(m)?.closest(`.resizable-pane-group`);return e?B(c)?e.clientWidth:e.clientHeight:0},x=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!B(h)||i!==B(_))return;e.preventDefault(),e.stopPropagation();let a=B(c)?t:r,l=a-B(g);if(!y)return;let u=l/y*100;B(c)&&hc()&&(u=-u),P(g,a,!0),o.resize(s,u)},S=e=>{let{pointerId:n}=e;!B(h)||n!==B(_)||(B(m)?.releasePointerCapture(n),P(h,!1),P(g,0),P(_,0),t.onResizeEnd?.(),document.removeEventListener(`pointermove`,x),document.removeEventListener(`pointerup`,S),document.removeEventListener(`pointercancel`,S))},C=e=>{if(n())return;e.preventDefault(),e.stopPropagation();let{screenX:r,screenY:i,pointerId:a}=e;P(h,!0),P(g,B(c)?r:i,!0),P(_,a,!0),y=b(),B(m)?.setPointerCapture(a),t.onResizeStart?.(),document.addEventListener(`pointermove`,x),document.addEventListener(`pointerup`,S),document.addEventListener(`pointercancel`,S)},w=e=>{if(n())return;let{key:r,shiftKey:i}=e,a=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),o.toggleCollapse(s);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),o.resize(s,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),o.resize(s,100);return}if(B(c)){let e=hc();if(r===`ArrowLeft`)l=e?a:-a;else if(r===`ArrowRight`)l=e?-a:a;else return}else if(r===`ArrowUp`)l=-a;else if(r===`ArrowDown`)l=a;else return;e.preventDefault(),e.stopPropagation(),B(v)||(P(v,!0),t.onResizeStart?.()),o.resize(s,l)},T=()=>{B(v)&&(P(v,!1),t.onResizeEnd?.())};var ee=af();Qa(ee,e=>({...a,role:`separator`,tabindex:n()?-1:0,"aria-orientation":B(c)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":B(f),"aria-valuemax":B(p),"aria-controls":o.paneDefs[s]?.id,"aria-disabled":n()||void 0,"aria-label":i(),class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:C,onkeydown:w,onblur:T,[Va]:{horizontal:B(c),vertical:!B(c),disabled:n(),dragging:B(h)}}),[()=>Math.round(B(u))],void 0,void 0,`svelte-a7vkoj`);var te=F(ee),ne=e=>{var n=H();da(I(n),()=>t.children),U(e,n)},re=e=>{U(e,rf())};G(te,e=>{t.children?e(ne):r()&&e(re,1)}),D(ee),oo(ee,e=>P(m,e),()=>B(m)),U(e,ee),k()}var cf=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),lf=V(`<div><!></div>`),uf={hash:`svelte-1q2snix`,code:`.resizable-pane-group.svelte-1q2snix {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-1q2snix {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-1q2snix {flex-direction:column;width:100%;height:100%;}`};function df(e,t){O(t,!0),K(e,uf);let n=J(t,`direction`,3,`horizontal`),r=co(t,cf),i=Yn([]),a=N(void 0),o=Yn([]),s=Yn([]),c=0,l=()=>B(a)?n()===`horizontal`?B(a).clientWidth:B(a).clientHeight:0,u=(e,t)=>{if(typeof e==`number`)return e;if(!e||typeof e!=`string`)return t;let n=e.trim(),r=n.match(/^(-?\d+(?:\.\d+)?)%$/);if(r)return Number(r[1]);let i=l();if(!i)return t;let a=n.match(/^(-?\d+(?:\.\d+)?)px$/i);if(a)return Number(a[1])/i*100;let o=n.match(/^(-?\d+(?:\.\d+)?)(dvw|vw|dvh|vh)$/i);if(o){let e=Number(o[1]),t=o[2].toLowerCase().endsWith(`w`)?window.innerWidth:window.innerHeight;return e/100*t/i*100}return t},d=e=>{let t=i[e];if(!t)return{minSize:0,maxSize:100};let n=Math.max(0,u(t.minSize,0)),r=Math.min(100,u(t.maxSize,100));return{minSize:n,maxSize:Math.max(n,r)}},f=()=>{if(!i.length)return;let e=i.map(e=>e.defaultSize===void 0?NaN:u(e.defaultSize,NaN)),t=e.filter(e=>!Number.isNaN(e)).reduce((e,t)=>e+t,0),n=e.filter(e=>Number.isNaN(e)).length,r=Math.max(0,100-t),a=n>0?r/n:0,s=e.map(e=>Number.isNaN(e)?a:e);o.splice(0,o.length,...s)},p=(e,n)=>{let r=e,i=e+1;if(r<0||i>=o.length)return;let{minSize:a,maxSize:s}=d(r),{minSize:c,maxSize:l}=d(i),u=o[r],f=o[i],p=Math.min(s-u,f-c),m=Math.min(u-a,l-f),h=n>0?Math.min(n,p):-Math.min(-n,m);o[r]=u+h,o[i]=f-h,t.onResize?.({sizes:o.map(e=>Number(e.toFixed(1)))})};xt(`paneGroup`,{get direction(){return n()},sizes:o,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=c;return c+=1,e},resize:p,toggleCollapse:e=>{let{minSize:t}=d(e);if(s[e]!==void 0){let t=s[e]-o[e];s[e]=void 0,p(e,t)}else s[e]=o[e],p(e,-(o[e]-t))},getPaneConstraints:d,paneDefs:i}),R(()=>{i.length&&!o.length&&f()});var m=lf();Qa(m,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-1q2snix`),da(F(m),()=>t.children??E),D(m),oo(m,e=>P(a,e),()=>B(a)),U(e,m),k()}var ff=new Set([`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),pf=V(`<div><!></div>`);function mf(e,t){let n=Bi();O(t,!0);let r=J(t,`defaultSize`,3,void 0),i=J(t,`minSize`,3,0),a=J(t,`maxSize`,3,100),o=co(t,ff),s=bt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=M(()=>s.direction),u=M(()=>s.sizes[c]),d=M(()=>B(u)===void 0?typeof r()==`number`?`${r()}%`:r()??`0%`:`${B(u)}%`);R(()=>{B(u)!==void 0&&pi(()=>t.onResize?.({size:Number(B(u).toFixed(1))}))});var f=pf();Qa(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[Ha]:{"flex-basis":B(d),"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":B(l)===`horizontal`?`auto`:void 0,"overflow-y":B(l)===`vertical`?`auto`:void 0}})),da(F(f),()=>t.children??E),D(f),U(e,f),k()}var hf=V(`<div role="none" class="spinner svelte-1rc7zzq"></div>`),gf=V(`<!> <!>`,1),_f={hash:`svelte-1rc7zzq`,code:`.spinner.svelte-1rc7zzq {height:1px;}`};function vf(e,t){O(t,!0),K(e,_f);let n=J(t,`itemChunkSize`,3,25),r=N(Yn(n())),i=N(void 0),a=M(()=>t.items.length>B(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(B(a)?P(r,B(r)+n()):o.disconnect())});R(()=>{B(i)&&o.observe(B(i))});var s=gf(),c=I(s);ia(c,19,()=>t.items.slice(0,B(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=H();da(I(i),()=>t.renderItem,()=>B(n),()=>B(r)),U(e,i)});var l=L(c,2),u=e=>{var t=hf();oo(t,e=>P(i,e),()=>B(i)),U(e,t)};G(l,e=>{B(a)&&e(u)}),U(e,s),k()}var yf=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),bf=V(`<div><span role="none" class="svelte-1w4wjnd"><!></span> <!> <!></div>`),xf={hash:`svelte-1w4wjnd`,code:`.search-bar.svelte-1w4wjnd {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-1w4wjnd:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-1w4wjnd > span:where(.svelte-1w4wjnd) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-1w4wjnd .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-1w4wjnd > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-1w4wjnd .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-1w4wjnd .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-1w4wjnd input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`};function Sf(e,t){let n=Bi();O(t,!0),K(e,xf);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=co(t,yf),d=N(void 0);var f={focus:()=>{B(d)?.focus()}},p=bf();let m;var h=F(p),g=F(h),_=e=>{var n=H();da(I(n),()=>t.searchIcon),U(e,n)},v=e=>{_o(e,{name:`search`})};G(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=L(h,2);Ku(y,uo({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return B(d)},set element(e){P(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=L(y,2),x=e=>{{let i=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.closeIcon),U(e,n)},a=e=>{_o(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},a=M(()=>Y(`_sui.clear`));Tl(e,{iconic:!0,get"aria-label"(){return B(a)},get"aria-controls"(){return n},onclick:()=>{r(``),B(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return G(b,e=>{r()&&e(x)}),D(p),z(()=>{q(p,`role`,a()?void 0:`none`),m=Fa(p,1,`sui search-bar ${t.class??``}`,`svelte-1w4wjnd`,m,{flex:i(),disabled:o(),readonly:s()}),q(p,`hidden`,a()),q(p,`aria-hidden`,a())}),U(e,p),k(f)}var Cf=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`ariaLabel`,`children`,`chevronIcon`,`onChange`]),wf=V(`<div><div role="none" class="label svelte-fghyu0"><!></div></div>`),Tf=V(`<div role="alert" class="no-options svelte-fghyu0" aria-live="assertive"> </div>`),Ef=V(`<div role="none" class="combobox-inner svelte-fghyu0"><!> <div role="none" class="listbox-slot svelte-fghyu0"></div> <!></div>`),Df=V(`<div><!> <!></div> <div role="none" class="idle-host" hidden=""><div role="none" class="option-host svelte-fghyu0"><!></div></div> <!>`,1),Of={hash:`svelte-fghyu0`,code:`:is(.option-host.svelte-fghyu0, .listbox-slot.svelte-fghyu0) {display:contents;}.combobox.svelte-fghyu0 {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-fghyu0 div[role=combobox]:where(.svelte-fghyu0) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-fghyu0 div[role=combobox]:where(.svelte-fghyu0):not(.selected) {font-style:italic;}.combobox.svelte-fghyu0 div[role=combobox]:where(.svelte-fghyu0):is(:where(.svelte-fghyu0):hover, :where(.svelte-fghyu0):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-fghyu0 div[role=combobox][aria-invalid=true]:where(.svelte-fghyu0) {border-color:var(--sui-error-border-color);}.combobox.svelte-fghyu0 div[role=combobox]:where(.svelte-fghyu0) .label:where(.svelte-fghyu0) {width:100%;}.combobox.svelte-fghyu0 .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-fghyu0 > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-fghyu0 > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-fghyu0 > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-fghyu0 :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-fghyu0 .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-fghyu0 input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-fghyu0 + [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);
|
|
43
|
+
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-fghyu0 + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-fghyu0 {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-fghyu0 .sui.search-bar {flex:none;}.combobox-inner.svelte-fghyu0 .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-fghyu0 .no-options:where(.svelte-fghyu0) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`};function kf(e,t){let n=Bi();O(t,!0),K(e,Of);let r=J(t,`value`,15),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=J(t,`editable`,3,!0),u=J(t,`position`,3,`bottom-left`),d=J(t,`filterThreshold`,3,5),f=J(t,`ariaLabel`,3,void 0),p=co(t,Cf),m=N(!1),h=N(void 0),g=N(void 0),_=N(void 0),v=N(void 0),y=N(void 0),b=N(void 0),x=N(``),S=N(!1),C=N(``),w=N(0),T=M(()=>!B(C)||B(w)>0),ee=M(()=>B(h)??B(g)),te=Ul(),ne=()=>{let e=te.find(r());e&&(P(x,e.label,!0),te.selectOnly(r()))},re=e=>{let n=Gl(e);r(n.value),ne(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))},ie=()=>B(y)?.querySelector(`[role="listbox"]`),ae=()=>{let e=ie(),t=e?.querySelector(`[role="option"][aria-selected="true"]`);!e||!t||(t.classList.add(`focused`),e.setAttribute(`aria-activedescendant`,t.id),t.scrollIntoView(!0))};R(()=>{te.expanded=B(m)}),R(()=>{if(!B(m))return;let e=globalThis.setTimeout(ae,150);return()=>{globalThis.clearTimeout(e),ie()?.removeAttribute(`aria-activedescendant`)}}),R(()=>{if(!B(y))return;let e=B(m)?B(b):B(v);e&&B(y).parentElement!==e&&e.append(B(y))}),fo(()=>{let e=te.selectedEntry;e&&(r(e.value),P(x,e.label,!0),t.onChange?.(new CustomEvent(`Change`,{detail:{target:void 0,type:e.type,name:e.name,label:e.label,value:e.value}})))}),R(()=>{r(),ne()});var oe=Df(),se=I(oe);Qa(se,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:i(),[Va]:{editable:l()}}),void 0,void 0,void 0,`svelte-fghyu0`);var ce=F(se),le=e=>{var t=wf();Qa(t,()=>({...p,role:`combobox`,id:n,tabindex:a()?-1:0,"aria-expanded":B(m),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-haspopup":`listbox`,"aria-label":f(),[Va]:{selected:r()!==void 0}}),void 0,void 0,void 0,`svelte-fghyu0`);var l=F(t);Uc(F(l),{children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>r()===void 0?Y(`_sui.combobox.select_an_option`):B(x)]),U(e,n)},$$slots:{default:!0}}),D(l),D(t),oo(t,e=>P(h,e),()=>B(h)),U(e,t)},ue=e=>{{let t=M(()=>r()===void 0?``:String(r()));Ku(e,uo(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return B(t)},get hidden(){return i()},get disabled(){return a()},get readonly(){return o()},get required(){return s()},get invalid(){return c()},get"aria-expanded"(){return B(m)},"aria-haspopup":`listbox`,get"aria-label"(){return f()},get element(){return B(g)},set element(e){P(g,e,!0)}}))}};G(ce,e=>{l()?e(ue,-1):e(le)});var de=L(ce,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{_o(e,{name:`expand_more`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>!l()||o()||a()?-1:0),s=M(()=>B(m)?Y(`_sui.collapse`):Y(`_sui.expand`)),c=M(()=>B(m)?`${n}-popup`:void 0);Tl(de,{variant:`ghost`,iconic:!0,get hidden(){return i()},get disabled(){return a()},get tabindex(){return B(r)},get"aria-label"(){return B(s)},get"aria-controls"(){return B(c)},get"aria-expanded"(){return B(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!a()&&!o()&&P(m,!B(m))},startIcon:e,$$slots:{startIcon:!0}})}D(se);var fe=L(se,2),pe=F(fe);yd(F(pe),{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return B(C)},onclick:e=>{e.target.matches(`[role="option"]`)&&re(e.target)},onFilter:e=>{P(w,e.detail.matched,!0)},children:(e,n)=>{var r=H();da(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}}),D(pe),oo(pe,e=>P(y,e),()=>B(y)),D(fe),oo(fe,e=>P(v,e),()=>B(v)),yl(L(fe,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return B(ee)},get position(){return u()},touchOptimized:!0,onOpen:()=>{P(S,d()!==-1&&te.count>d(),!0),P(C,``)},get content(){return B(_)},set content(e){P(_,e,!0)},get open(){return B(m)},set open(e){P(m,e,!0)},children:(e,t)=>{var r=Ef(),i=F(r),a=e=>{{let t=M(()=>Y(`_sui.combobox.filter_options`));Sf(e,{flex:!0,get"aria-label"(){return B(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),B(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return B(C)},set value(e){P(C,e,!0)}})}};G(i,e=>{B(S)&&e(a)});var o=L(i,2);oo(o,e=>P(b,e),()=>B(b));var s=L(o,2),c=e=>{var t=Tf(),n=F(t,!0);D(t),z(e=>W(n,e),[()=>Y(`_sui.combobox.no_matching_options`)]),U(e,t)};G(s,e=>{B(T)||e(c)}),D(r),U(e,r)},$$slots:{default:!0}}),U(e,oe),k()}function Af(e){let t=e-1;return t*t*t+1}function jf(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Af}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=Mf(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function Mf(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var Nf=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);function Pf(e,t){O(t,!0);let n=J(t,`value`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`readonly`,3,!1),o=J(t,`required`,3,!1),s=J(t,`invalid`,3,!1),c=co(t,Nf);kf(e,uo(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=H();da(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),k()}var Ff=new Set([`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),If=V(`<span role="none"><span class="label svelte-1bivp59" role="option" aria-selected="true"> </span> <!></span>`),Lf=V(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-1bivp59"></span> <!></div>`),Rf={hash:`svelte-1bivp59`,code:`.select-tags.svelte-1bivp59 {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1bivp59 {pointer-events:none;}.select-tags.disabled.svelte-1bivp59 > :where(.svelte-1bivp59) {opacity:0.5;}.select-tags.svelte-1bivp59 span[role=listbox]:where(.svelte-1bivp59) {display:contents;}.select-tags.svelte-1bivp59 span[draggable]:where(.svelte-1bivp59) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-1bivp59 span[draggable]:where(.svelte-1bivp59):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.select-tags.svelte-1bivp59 span[draggable].drag-source:where(.svelte-1bivp59) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1bivp59 span[draggable].drop-before:where(.svelte-1bivp59)::before, .select-tags.svelte-1bivp59 span[draggable].drop-after:where(.svelte-1bivp59)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-1bivp59 span[draggable].drop-before:where(.svelte-1bivp59)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1bivp59 span[draggable].drop-after:where(.svelte-1bivp59)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1bivp59 span[draggable]:where(.svelte-1bivp59) .label:where(.svelte-1bivp59) {outline:none;}.select-tags.svelte-1bivp59 span[draggable]:where(.svelte-1bivp59) button {outline-offset:-2px;}.select-tags.svelte-1bivp59 span[draggable]:where(.svelte-1bivp59) .icon {font-size:var(--sui-font-size-large);}`};function zf(e,t){O(t,!0),K(e,Rf);let n=J(t,`values`,31,()=>Yn([])),r=J(t,`max`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=co(t,Ff),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>new Set(n())),f=M(()=>hc()?`ArrowRight`:`ArrowLeft`),p=M(()=>hc()?`ArrowLeft`:`ArrowRight`),m=N(void 0),h=N(void 0),g=N(void 0),_=N(void 0),v=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},y=async(e,t)=>{v(e,t),await ui(),(B(m)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var b=Lf();let x;var S=F(b);ia(S,30,n,e=>e,(e,r,i)=>{let s=M(()=>B(u).get(r)),c=M(()=>B(s)?.label||B(s)?.value||r);var l=If();let d;var m=F(l),h=F(m,!0);D(m);var v=L(m,2),b=e=>{{let i=e=>{_o(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>Y(`_sui.select_tags.remove_x`,{values:{name:B(c)}}));Tl(e,{iconic:!0,size:`small`,get disabled(){return B(s)},get"aria-label"(){return B(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};G(v,e=>{B(s)&&e(b)}),D(l),z(()=>{q(l,`draggable`,!a()&&!o()),d=Fa(l,1,`svelte-1bivp59`,null,d,{"drag-source":B(g)===B(i),"drop-before":B(_)===B(i)&&B(g)!==B(i)&&B(g)!==B(i)-1,"drop-after":B(_)===n().length&&B(i)===n().length-1&&B(g)!==n().length-1}),q(m,`tabindex`,a()||o()?void 0:0),W(h,B(c))}),Ai(`dragstart`,l,e=>{P(g,B(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,B(c)),e.dataTransfer.effectAllowed=`move`)}),Ai(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect(),n=e.clientX<t.left+t.width/2;P(_,n===hc()?B(i)+1:B(i),!0)}),Ai(`drop`,l,async e=>{e.preventDefault();let t=B(g),n=B(_);P(g,void 0),P(_,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await y(t,n>t?n-1:n)}),Ai(`dragend`,l,()=>{P(g,void 0),P(_,void 0)}),ji(`keydown`,m,async e=>{let{key:t}=e,r=t===B(f)&&B(i)>0?B(i)-1:t===B(p)&&B(i)<n().length-1?B(i)+1:t===`Home`&&B(i)>0?0:t===`End`&&B(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await y(B(i),r))}),Sa(l,()=>jf,()=>({duration:200})),U(e,l)}),D(S);var C=L(S,2),w=e=>{{let r=M(()=>a()||o());Pf(e,uo(()=>l,{get disabled(){return B(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{B(h)&&(n([...n(),B(h)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:B(h)}})),P(h,void 0))},get value(){return B(h)},set value(e){P(h,e,!0)},children:(e,n)=>{var r=H();ia(I(r),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let n=()=>B(t).label,r=()=>B(t).value,i=()=>B(t).searchValue;var a=H(),o=I(a),s=e=>{Od(e,{get label(){return n()},get value(){return r()},get searchValue(){return i()}})},c=M(()=>!B(d).has(r()));G(o,e=>{B(c)&&e(s)}),U(e,a)}),U(e,r)},$$slots:{default:!0}}))}};G(C,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(w)}),D(b),oo(b,e=>P(m,e),()=>B(m)),z(e=>{x=Fa(b,1,`sui select-tags ${t.class??``}`,`svelte-1bivp59`,x,{disabled:a()||o()}),q(b,`hidden`,i()),q(S,`aria-label`,e)},[()=>Y(`_sui.select_tags.selected_options`)]),U(e,b),k()}Mi([`keydown`]);var Bf=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),Vf=V(`<div role="slider" class="svelte-13xk0dt"></div>`),Hf=V(`<span role="none" class="label svelte-13xk0dt"> </span>`),Uf=V(`<div><div role="none" class="base svelte-13xk0dt"><div role="none" class="base-bar svelte-13xk0dt"></div> <div class="slider-bar svelte-13xk0dt"></div> <div role="slider" class="svelte-13xk0dt"></div> <!> <!></div></div>`),Wf={hash:`svelte-13xk0dt`,code:`.slider.svelte-13xk0dt {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-13xk0dt:hover .base-bar:where(.svelte-13xk0dt) {background-color:var(--sui-hover-background-color);}.slider.svelte-13xk0dt:active .base-bar:where(.svelte-13xk0dt) {background-color:var(--sui-active-background-color);}.base.svelte-13xk0dt {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-13xk0dt {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-13xk0dt {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-13xk0dt .slider-bar:where(.svelte-13xk0dt) {background-color:var(--sui-error-border-color);}[role=slider].svelte-13xk0dt {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-13xk0dt:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-13xk0dt:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-13xk0dt [role=slider]:where(.svelte-13xk0dt) {border-color:var(--sui-error-border-color);}.label.svelte-13xk0dt {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-13xk0dt:dir(ltr) {transform:translateX(-50%);}.label.svelte-13xk0dt:dir(rtl) {transform:translateX(50%);}`};function Gf(e,t){O(t,!0),K(e,Wf);let n=J(t,`value`,15,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=J(t,`sliderLabel`,3,``),o=J(t,`values`,15,void 0),s=J(t,`sliderLabels`,3,void 0),c=J(t,`step`,3,1),l=J(t,`optionLabels`,19,()=>[]),u=J(t,`hidden`,3,!1),d=J(t,`disabled`,3,!1),f=J(t,`readonly`,3,!1),p=J(t,`invalid`,3,!1),m=co(t,Bf),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Yn([])),y=N(Yn([])),b=N(0),x=N(0),S=Yn([0,0]),C=N(!1),w=N(0),T=N(0),ee=e=>{let t=Math.min(B(_),Math.max(0,hc()?B(_)-e:e)),r=B(v).findLastIndex(e=>e<=t),i=B(v).findIndex(e=>t<=e),a;a=r===-1?i:i===-1||Math.abs(B(v)[r]-t)<Math.abs(B(v)[i]-t)?r:i,!(S[B(T)]===B(v)[a]||B(h)&&(B(T)===0&&S[1]<=B(v)[a]||B(T)===1&&S[0]>=B(v)[a]))&&(B(h)?(o(o()[B(T)]=B(y)[a],!0),o([...o()])):n(B(y)[a]))},te=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=B(h)?o()[t]:n(),g=-1,_=hc(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=B(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=B(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(B(h)&&(t===0&&S[1]<=B(v)[g]||t===1&&S[0]>=B(v)[g]))return;B(h)?(o(o()[t]=B(y)[g],!0),o([...o()])):n(B(y)[g])}},ne=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!B(C)||n!==B(w))return;e.preventDefault(),e.stopPropagation();let r=t-B(x),i=B(b)+r;ee(i)},re=e=>{let{pointerId:t,target:n}=e;if(d()||f()||!B(C)||t!==B(w))return;e.stopPropagation();let r=n;if(r.matches(`.base-bar, .slider-bar`)){let t=B(g).getBoundingClientRect(),n=e.clientX-t.left;ee(n)}r.releasePointerCapture(t),P(C,!1),P(b,0),P(x,0),P(w,0),P(T,0),document.removeEventListener(`pointermove`,ne),document.removeEventListener(`pointerup`,re),document.removeEventListener(`pointercancel`,re)},ie=(e,t=0)=>{if(d()||f())return;e.preventDefault(),e.stopPropagation(),P(C,!0);let{clientX:n,screenX:r,pointerId:i,target:a}=e,o=a,s=B(g).getBoundingClientRect();P(b,n-s.left),P(x,r,!0),P(w,i,!0),P(T,t,!0),o.setPointerCapture(i),document.addEventListener(`pointermove`,ne),document.addEventListener(`pointerup`,re),document.addEventListener(`pointercancel`,re)},E=()=>{if(B(h)){let[e,n]=o();S[0]=B(v)[B(y).indexOf(e)],S[1]=B(v)[B(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=B(v)[B(y).indexOf(n())],t.onChange?.({value:n()})},ae=()=>{if(!B(g))return;P(_,B(g).clientWidth,!0);let e=(i()-r())/c()+1,t=B(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),E()};fo(()=>{let e=new ResizeObserver(()=>ae()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(B(g)),t.addEventListener(`change`,ae),ae(),()=>{e.disconnect(),t.removeEventListener(`change`,ae)}}),R(()=>{n(),o(),E()});var oe=Uf();Ai(`click`,$n.body,()=>{P(C,!1)}),Qa(oe,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[Va]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-13xk0dt`);var se=F(oe),ce=L(F(se),2);let le;var ue=L(ce,2);let de;var fe=L(ue,2),pe=e=>{var t=Vf();let n;z(()=>{q(t,`tabindex`,d()?-1:0),q(t,`aria-label`,s()?.[1]),q(t,`aria-hidden`,u()),q(t,`aria-disabled`,d()),q(t,`aria-readonly`,f()),q(t,`aria-invalid`,p()),q(t,`aria-valuemin`,r()),q(t,`aria-valuemax`,i()),q(t,`aria-valuenow`,o()?.[1]),n=La(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),ji(`pointerdown`,t,e=>ie(e,1)),ji(`keydown`,t,e=>te(e,1)),U(e,t)};G(fe,e=>{B(h)&&e(pe)});var me=L(fe,2),he=e=>{var t=H();ia(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=Hf();let i;var a=F(r,!0);D(r),z(()=>{i=La(r,``,i,{"inset-inline-start":`${B(_)/(l().length-1)*B(n)}px`}),W(a,B(t))}),U(e,r)}),U(e,t)};G(me,e=>{l().length&&e(he)}),D(se),oo(se,e=>P(g,e),()=>B(g)),D(oe),z(()=>{le=La(ce,``,le,{"inset-inline-start":`${(B(h)?S[0]:0)??``}px`,width:`${(B(h)?S[1]-S[0]:S[0])??``}px`}),q(ue,`tabindex`,d()?-1:0),q(ue,`aria-label`,B(h)?s()?.[0]:a()),q(ue,`aria-hidden`,u()),q(ue,`aria-disabled`,d()),q(ue,`aria-readonly`,f()),q(ue,`aria-invalid`,p()),q(ue,`aria-valuemin`,r()),q(ue,`aria-valuemax`,i()),q(ue,`aria-valuenow`,B(h)?o()?.[0]:n()),de=La(ue,``,de,{"inset-inline-start":`${S[0]??``}px`})}),ji(`pointerdown`,se,e=>ie(e)),ji(`pointerdown`,ue,e=>ie(e,0)),ji(`keydown`,ue,e=>te(e,0)),U(e,oe),k()}Mi([`pointerdown`,`keydown`]);var Kf=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`onChange`]),qf=V(`<button><span role="none" class="svelte-104wyn7"></span> <!></button>`),Jf={hash:`svelte-104wyn7`,code:`button.svelte-104wyn7 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-104wyn7 span:where(.svelte-104wyn7) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-104wyn7 span:where(.svelte-104wyn7) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-104wyn7 span:where(.svelte-104wyn7) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-104wyn7 span:where(.svelte-104wyn7) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-104wyn7 span:where(.svelte-104wyn7) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-104wyn7:focus-visible {outline:0;}button.svelte-104wyn7:focus-visible span:where(.svelte-104wyn7) {outline-color:var(--sui-focus-ring-color);}button[aria-checked=true].svelte-104wyn7 span:where(.svelte-104wyn7) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-104wyn7 span:where(.svelte-104wyn7)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-104wyn7 span:where(.svelte-104wyn7):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-104wyn7 span:where(.svelte-104wyn7):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-104wyn7 {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-104wyn7::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 Yf(e,t){O(t,!0),K(e,Jf);let n=J(t,`checked`,15),r=J(t,`label`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=J(t,`ariaLabel`,3,void 0),u=co(t,Kf);var d=qf(),f=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};Qa(d,()=>({...u,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-label":l(),onclick:f}),void 0,void 0,void 0,`svelte-104wyn7`);var p=L(F(d),2),m=e=>{var t=zi();z(()=>W(t,r())),U(e,t)},h=e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)};G(p,e=>{r()?e(m):e(h,-1)}),D(d),U(e,d),k()}var Xf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Zf=V(`<div><!></div>`),Qf={hash:`svelte-lk93sg`,code:`.table-cell.svelte-lk93sg {display:table-cell;}`};function $f(e,t){K(e,Qf);let n=co(t,Xf);var r=Zf();Qa(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-lk93sg`),da(F(r),()=>t.children??E),D(r),U(e,r)}var ep=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),tp=V(`<div><!></div>`),np={hash:`svelte-1i7na2w`,code:`.table-row.svelte-1i7na2w {display:table-row;height:var(--sui-primary-row-height);}`};function rp(e,t){K(e,np);let n=co(t,ep);var r=tp();Qa(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-1i7na2w`),da(F(r),()=>t.children??E),D(r),U(e,r)}var ip=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),ap=V(`<div><!></div>`),op={hash:`svelte-nadl7h`,code:`.table.svelte-nadl7h {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-nadl7h {border-collapse:collapse;}.table.data.svelte-nadl7h :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`};function sp(e,t){K(e,op);let n=J(t,`ariaLabel`,3,void 0),r=co(t,ip);var i=ap();Qa(i,()=>({...r,role:`table`,class:`sui table ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-nadl7h`),da(F(i),()=>t.children??E),D(i),U(e,i)}var cp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`ariaLabel`,`children`,`onChange`]),lp=V(`<div><div role="none" class="inner svelte-lhtwex"><!></div> <div role="none" class="indicator svelte-lhtwex"></div></div>`),up={hash:`svelte-lhtwex`,code:`.tab-list.svelte-lhtwex {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-lhtwex {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-lhtwex 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-lhtwex .indicator:where(.svelte-lhtwex) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-lhtwex {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-lhtwex button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-lhtwex .indicator:where(.svelte-lhtwex) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-lhtwex 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-lhtwex {display:contents;}.indicator.svelte-lhtwex {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 dp(e,t){O(t,!0),K(e,up);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`name`,3,void 0),o=J(t,`ariaLabel`,3,void 0),s=co(t,cp),c=N(void 0),l=N(void 0),u=()=>{globalThis.requestAnimationFrame(()=>{let e=B(c)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;P(l,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else P(l,void 0)})};fo(()=>{let e=new ResizeObserver(()=>{u()});return e.observe(B(c)),()=>{e.disconnect()}});var d=lp(),f=()=>{u()},p=e=>{u(),t.onChange?.(e)};Qa(d,()=>({...s,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o(),"data-name":a()||void 0,onInitialized:f,onChange:p}),void 0,void 0,void 0,`svelte-lhtwex`);var m=F(d);da(F(m),()=>t.children??E),D(m);var h=L(m,2);D(d),oo(d,e=>P(c,e),()=>B(c)),Ea(d,$l),z(()=>{m.inert=r(),La(h,B(l))}),U(e,d),k()}var fp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),pp=V(`<div><!></div>`),mp={hash:`svelte-i03c2r`,code:`.tab-panel.svelte-i03c2r {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-i03c2r, .tab-panel.svelte-i03c2r:not([aria-hidden]) {display:none;}`};function hp(e,t){K(e,mp);let n=co(t,fp);var r=pp();Qa(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-i03c2r`),da(F(r),()=>t.children??E),D(r),U(e,r)}var gp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`]);function _p(e,t){let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`selected`,3,!1),a=co(t,gp);Tl(e,uo(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:e=>{var n=H();da(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();da(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H();da(I(n),()=>t.endIcon??E),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var vp=new Set([`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),yp=V(`<div role="none" class="sui toast-base svelte-1tre6vd"></div> <div><!></div>`,1),bp={hash:`svelte-1tre6vd`,code:`.toast-base.svelte-1tre6vd {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-1tre6vd {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-1tre6vd {display:block;opacity:0;}.toast.top-left.svelte-1tre6vd {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-1tre6vd {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-1tre6vd:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-1tre6vd:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-1tre6vd {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-1tre6vd {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-1tre6vd {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-1tre6vd:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-1tre6vd:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-1tre6vd {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`};function xp(e,t){O(t,!0),K(e,bp);let n=J(t,`show`,15,!1),r=J(t,`id`,3,void 0),i=J(t,`duration`,3,5e3),a=J(t,`position`,7,`auto`),o=co(t,vp),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);fo(()=>(P(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),B(c)?B(s)?.remove():(P(c,B(s),!0),B(c)&&(B(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(B(c)),B(c).showPopover&&(B(c).popover=`manual`,B(c).showPopover()))),()=>{B(l)?.remove()})),fo(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-right`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),R(()=>{B(c)&&B(l)&&B(c).appendChild(B(l))}),R(()=>{r(),n(),i(),pi(()=>{globalThis.clearTimeout(B(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=yp(),f=I(d);oo(f,e=>P(s,e),()=>B(s));var p=L(f,2);Qa(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-1tre6vd`),da(F(p),()=>t.children??E),D(p),oo(p,e=>P(l,e),()=>B(l)),U(e,d),k()}function X(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Sp(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var Cp=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,wp=Cp&&`documentMode`in document?document.documentMode:null,Tp=Cp&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ep=Cp&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Dp=!(!Cp||!(`InputEvent`in window)||wp)&&`getTargetRanges`in new window.InputEvent(`input`),Op=Cp&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,kp=Cp&&/Android/.test(navigator.userAgent),Ap=Cp&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!kp,jp=Cp&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Mp=Cp&&kp&&jp,Np=Cp&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Tp&&!jp,Pp=0,Fp=1,Ip=2,Lp=1,Rp=2,zp=3,Bp=4,Vp=5,Hp=6,Up=Ap||Op||Np?`\xA0`:``,Wp=`
|
|
44
44
|
|
|
45
45
|
`,Gp=Ep?`\xA0`:Up,Kp=RegExp(`^[^A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--]*[֑-߿יִ-﷽ﹰ-ﻼ]`),qp=RegExp(`^[^֑-߿יִ-﷽ﹰ-ﻼ]*[A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--]`),Jp={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Yp={directionless:1,unmergeable:2},Xp={center:2,end:6,justify:4,left:1,right:3,start:5},eee={[Rp]:`center`,[Hp]:`end`,[Bp]:`justify`,[Lp]:`left`,[zp]:`right`,[Vp]:`start`},tee={normal:0,segmented:2,token:1},Zp={[Pp]:`normal`,[Ip]:`segmented`,[Fp]:`token`},Qp=`$config`;function $p(){return Ex()._blockCursorElement}function em(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}var tm=class e{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let t=this.getInsertionAnchor();return t!==null&&t.parentElement!==this.element&&X(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&X(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&X(359),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;return t===this.getInsertionAnchor()?null:t}getFirstChildAnchor(){return this.after}resolveLeafPosition(e,t,n){if(this.element===e)return t===e&&n===0?`before`:`after`;let r=nm(e,this.element);if(r===null)return`after`;let i=Array.prototype.indexOf.call(e.childNodes,r);if(i<0)return`after`;if(t===e)return n<=i?`before`:`after`;let a=nm(e,t);if(a===null)return`after`;let o=Array.prototype.indexOf.call(e.childNodes,a);return o>=0&&o<=i?`before`:`after`}getInsertionAnchor(){return this.before}};function nm(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}var rm=class e extends tm{withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()}getFirstChildAnchor(){let e=super.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;for(;em(t);)e=t,t=t.nextSibling;let n=e?e.nextSibling:this.element.firstChild;return n!==null&&n===$p()?n:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(this.element.__lexicalLastChildKind=e,e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(Np||Op||Ap);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n=e.nodeName===`IMG`?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===(t.nodeName===`IMG`))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=sx().createElement(`br`);if(i.setAttribute(`data-lexical-managed-linebreak`,`true`),n.insertBefore(i,r),e){let e=sx().createElement(`img`);e.setAttribute(`data-lexical-managed-linebreak`,`true`),e.style.setProperty(`display`,`inline`,`important`),e.style.setProperty(`border`,`0px`,`important`),e.style.setProperty(`margin`,`0px`,`important`),e.alt=``,n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=this.getFirstChild(),t=this.getInsertionAnchor(),n=0;for(let r=this.element.firstChild;r!==null&&r!==e&&r!==t;r=r.nextSibling)n++;return n}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset(),n=$p(),i=this.element.childNodes,a=Math.min(r,i.length),o=0;for(let e=t;e<a;e++)i[e]!==n&&o++;return[e,Math.min(o,e.getChildrenSize())]}let i=im(t,n);i.push(r);let a=im(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<a.length;e++){let t=i[e],n=a[e];if(t===void 0||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}};function im(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&X(225),n.reverse()}var am;try{am=`0.49.0+prod.esm`}catch{}var om=am??`"<unknown>+source"`,sm=class{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){let e=Array.from(this._front).reverse();for(let t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}},cm=null;function lm(e,t=1e3){return e instanceof um?e.clone():e.size<t?new Map(e):new um().init(new Map(e),void 0,e.size)}var um=class e{_mutable=!1;_old=void 0;_nursery=void 0;_size=0;clone(){return this._mutable=!1,new e().init(this._old,this._nursery,this._size)}init(e,t,n){return this._old=e,this._nursery=t,this._size=n,this}get size(){return this._size}has(e){return this.get(e)!==void 0}getWithTombstone(e){let t=this._nursery&&this._nursery.get(e);return t===void 0?this._old&&this._old.get(e):t}get(e){let t=this.getWithTombstone(e);return t===cm?void 0:t}shouldCompact(){return this._nursery!==void 0&&2*this._nursery.size>this._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(e=!1){if(this._nursery&&this._nursery.size>0&&(e||this.shouldCompact())){let e=new Map(this._old);for(let[t,n]of this._nursery)n===cm?e.delete(t):e.set(t,n);this._old=e,this._nursery=void 0}return this._mutable=!1,this}set(e,t){let n=this.getWithTombstone(e);if(n===t)return this;let r=this.getNursery();return n!==cm&&n!==void 0||(this._size++,n===cm&&r.delete(e)),r.set(e,t),this}delete(e){let t=this.has(e);return t&&(this.getNursery().set(e,cm),this._size--),t}getOrInsert(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}getOrInsertComputed(e,t){let n=this.get(e);if(n!==void 0)return n;let r=t(e);return this.set(e,r),r}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(let e of this.entries())yield e[0]}*values(){for(let e of this.entries())yield e[1]}*entries(){let e=this._nursery,t=this._old;if(t)for(let n of t){let t=n[0],r=e?e.get(t):void 0;r!==cm&&(r!==void 0&&(n[1]=r),yield n)}if(e)for(let n of e)n[1]===cm||t&&t.has(n[0])||(yield n)}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.entries())e(n,t,this)}get[Symbol.toStringTag](){return`GenMap`}[Symbol.iterator](){return this.entries()}};function dm(e,t,n,r,i,a){if($(e)){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&(($(o)||$x(o)&&o.__slots!==null)&&dm(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}for(let o of $x(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&eS(e)&&e.__slotHost===t&&(($(e)||$x(e)&&e.__slots!==null)&&dm(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}var fm=!1,pm=0;function nee(e){pm=e.timeStamp}function mm(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&ub(e,n)!==void 0}function ree(e,t,n){let r=ex(Ub(n)),i=r&&ux(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&Cb(t,s,a,o,!1)}function hm(e,t,n){if(Q(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Zy(t)&&n.isAttached()}function gm(e,t,n){for(let r=e;r&&!Bx(r);r=Lb(r)){let e=ub(r,t);if(e!==void 0){let t=sb(e,n);if(t)return my(t)||!vx(r)?void 0:[r,t]}}}function _m(e,t,n){fm=!0;let r=performance.now()-pm>100;try{ly(e,()=>{let i=gv()||function(e){return e.read(`latest`,()=>{let e=gv();return e===null?null:e.clone()})}(e),a=new Map,o=e._editorState,s=e._blockCursorElement,c=!1,l=``;for(let n=0;n<t.length;n++){let u=t[n],d=u.type,f=u.target,p=gm(f,e,o);if(!p)continue;let[m,h]=p;if(d===`characterData`)r&&Z(h)&&Zy(f)&&hm(i,f,h)&&ree(f,h,e);else if(d===`childList`){c=!0;let t=u.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=cb(r),a=r.parentNode;if(!(a==null||r===s||i!==null||mm(r,a,e)||e._slotsUsed&&vx(r)&&r.hasAttribute(`data-lexical-slot`)||Bx(r))){if(Ep){let e=(vx(r)?r.innerText:null)||r.nodeValue;e&&(l+=e)}a.removeChild(r)}}let n=u.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(mm(r,f,e)||s===r)&&(f.appendChild(r),t++)}r!==t&&a.set(m,h)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let u=n.takeRecords();if(u.length>0){for(let t=0;t<u.length;t++){let n=u[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;a==null||n.nodeName!==`BR`||mm(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(c&&hb(i),Ep&&Pb(e)&&i.insertRawText(l))})}finally{fm=!1}}function vm(e){let t=e._observer;t!==null&&_m(e,t.takeRecords(),t)}function ym(e){(function(e){pm===0&&Ub(e).addEventListener(`textInput`,nee,!0)})(e),e._observer=new MutationObserver((t,n)=>{_m(e,t,n)})}var bm=`latest`,xm=class{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||iee).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}};function Sm(e,t){return new xm(e,t)}function Cm(e,t,n=bm){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function wm(e,t,n){let r;if(Uv(),typeof n==`function`){let i=e.getLatest(),a=Cm(i,t);if(r=n(a),t.isEqual(a,r))return i}else r=n;let i=e.getWritable();return Om(i).updateFromKnown(t,r),i}function Tm(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of qx(typeof e==`function`?e:e.replace))if(r&&r.stateConfigs)for(let e of r.stateConfigs){let r;`stateConfig`in e?(r=e.stateConfig,e.flat&&n.add(r.key)):r=e,t.set(r.key,r)}return{flatKeys:n,sharedConfigMap:t}}var Em=new Set([`__proto__`,`constructor`,`prototype`]),Dm=class e{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:a}=this.sharedNodeState,o=i===void 0?function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(a,n,r):i;this.size=o}getValue(e){let t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];t!==void 0&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Am(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;let{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,function(e,t,n){let r;if(n)for(let[i,a]of Object.entries(n)){if(Em.has(i))continue;let n=e.get(i);n?t.has(n)||t.set(n,n.parse(a)):(r||={},r[i]=a)}return r}(n.sharedConfigMap,i,r),i,this.size)}resetOnCopyNode(){for(let e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=Am(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){if(Em.has(e))return;let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}};function Om(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Dm(t,km(t));return t.__state=n,n}function km(e){return e.__state?e.__state.sharedNodeState:By(Ex(),e.getType()).sharedNodeState}function Am(e){if(e)for(let t in e)return e}function iee(e){return e}function jm(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function Mm(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function Nm(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Pm(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;let n=new Set;return!(e&&jm(n,e,t)||t&&jm(n,t,e)||e&&Mm(n,e,t)||t&&Mm(n,t,e))}(c,l))}function Fm(e,t){let n=e.mergeWithSibling(t),r=qv()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Im(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&Z(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(Pm(t,r)){r=Fm(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Z(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(Pm(r,n)){r=Fm(r,n);break}break}n.remove()}}else r.remove()}function Lm(e){return Rm(e.anchor),Rm(e.focus),e}function Rm(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),Z(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!$(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}var zm=Symbol.for(`@lexical/CachedTextSize`);function Bm(e,t){return rh.read(()=>{let n=0,r=e;for(let e=0;e<t&&r!==null;e++){let i=nh.get(r);if(i===void 0&&X(345,r),$(i)){let a=ih.get(r);if(a!==void 0&&$(a)&&a.__parent!==i.__parent)n+=i.getTextContentSize();else{let e=ah.get(r),t=e&&e.__lexicalTextContent;typeof t!=`string`&&X(346,i.getType()),n+=t.length}e<t-1&&!i.isInline()&&(n+=2)}else{let e=i[zm];e===void 0&&X(347,i.getType(),r),n+=e}r=i.__next}return n},{editor:Wm})}function Vm(e){$(e)||e[zm]===void 0&&(e[zm]=Z(e)?e.__text.length:e.getTextContentSize())}var Hm=4,Um,Wm,Gm,Km=``,qm=null,Jm=null,Ym=null;function Xm(){return{firstTextKey:Ym,format:qm,style:Jm}}function Zm(e){e.firstTextKey!==null&&(qm=e.format,Jm=e.style,Ym=e.firstTextKey)}function Qm(e){if(Ym!==null)return;let t=e.__lexicalFirstTextKey;if(t===void 0&&X(348),t===null)return;let n=ih.get(t);Z(n)&&(qm=n.getFormat(),Jm=n.getStyle(),Ym=t)}var $m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh=!1,uh=!1;function dh(e,t){let n=nh.get(e),r=ih.has(e);if(t!==null){let n=Nh(e);n.parentNode===t&&t.removeChild(n)}if(!r){if(Wm._keyToDOMMap.delete(e),$(n)){let e=Xx(n,nh);fh(e,0,e.length-1,null)}if(n!==void 0){for(let e of bh(n).values()){let t=Sh(e);dh(e,null),t!==null&&t.remove()}Mb(sh,Gm,$m,n,`destroyed`)}}}function fh(e,t,n,r){for(let i=t;i<=n;++i){let t=e[i];t!==void 0&&dh(t,r)}}function ph(e,t){e.setProperty(`text-align`,t)}var aee=`40px`;function mh(e,t){let n=Um.theme.indent;if(typeof n==`string`){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * var(--lexical-indent-base-value, ${aee}))`)}function hh(e,t){let n=e.style;t===0?ph(n,``):t===1?ph(n,`left`):t===2?ph(n,`center`):t===3?ph(n,`right`):t===4?ph(n,`justify`):t===5?ph(n,`start`):t===6&&ph(n,`end`)}function gh(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(gy(e))return null;let n=e.getParent();return n===null||qb(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function _h(e){let t=sx().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function vh(e,t,n){t||e.contentEditable===`false`?Vx(n,Wm):n.removeAttribute(`contenteditable`)}function yh(e,t,n){let r=Km,i=Xm();Km=``;let a=``,o=my(e);for(let[r,i]of n){let n=_h(r);vh(t,o,n),t.appendChild(n),Km=``;let s=Xm();wh(i,Ox(e,n,Wm)),Zm(s),xh(e,r,t,n),a+=Km}return Zm(i),Km=r,a}function bh(e){return $x(e)&&e.__slots!==null?e.__slots:Qx}function xh(e,t,n,r){let i=ch.$getSlotTargetElement(e,t,n,Wm);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function Sh(e){let t=ah.get(e);return t===void 0?null:t.parentElement}function Ch(e,t,n){let r=bh(e),i=bh(t);for(let[e,t]of r)if(!i.has(e)){let e=Sh(t);dh(t,null),e!==null&&e.remove()}let a=Km,o=Xm(),s=``,c=null,l=my(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:Sh(i);Km=``;let u=Xm();if(o===null){o=_h(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),wh(a,Ox(t,o,Wm))}else i===a?kh(a,o):(i!==void 0&&dh(i,o),wh(a,Ox(t,o,Wm)));if(Zm(u),vh(n,l,o),xh(t,e,n,o),s+=Km,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return Zm(o),Km=a,s}function wh(e,t){let n=ih.get(e);if(n===void 0&&X(60),t!==null){let r=nh.get(e);if(r!==void 0){let i=ah.get(e);if(i!==void 0){let a=eS(r)?r.__slotHost:null,o=eS(n)?n.__slotHost:null,s=r.__parent!==n.__parent||a!==o,c=o!==null&&i.parentElement!==t.element;if(s||c)return t.insertChild(i),kh(e,t.element)}}}let r=ch.$createDOM(n,Wm);if(function(e,t,n){let r=n._keyToDOMMap;lb(t,n,e),r.set(e,t)}(e,r,Wm),Z(n)?r.setAttribute(`data-lexical-text`,`true`):my(n)&&(r.setAttribute(`data-lexical-decorator`,`true`),zx(r,{captureSelection:!0})),$(n)){let e=n.__indent,t=n.__size;gh(r,n),e!==0&&mh(r,e);let i=bh(n),a=i.size>0?yh(n,r,i):``;if(t===0)r.__lexicalTextContent=a,r.__lexicalFirstTextKey=null,Km+=a,i.size>0&&(r.__lexicalSlotTextLength=a.length);else{let e=Km,o=t-1;if(Th(Xx(n,ih),n,0,o,Ox(n,r,Wm)),a!==``){let t=r.__lexicalTextContent||``;r.__lexicalTextContent=a+t,Km=e+a+t}i.size>0&&(r.__lexicalSlotTextLength=a.length)}let o=n.__format;o!==0&&hh(r,o),n.isInline()||Eh(null,n,r)}else{let t=n.getTextContent();if(my(n)){let t=n.decorate(Wm,Um);t!==null&&Ah(e,t),r.contentEditable=`false`;let i=bh(n);i.size>0&&yh(n,r,i)}Km+=t}return t!==null&&t.insertChild(r),ch.$decorateDOM(n,null,r,Wm),Vm(n),Mb(sh,Gm,$m,n,`created`),r}function Th(e,t,n,r,i){let a=Km,o=Xm();Km=``,qm=null,Jm=null,Ym=null;let s=n;for(;s<=r;++s){let t=Xm();wh(e[s],i);let n=ih.get(e[s]);n!==null&&Z(n)?qm===null&&(qm=n.getFormat(),Jm=n.getStyle(),Ym=n.__key):$(n)&&s<r&&!n.isInline()&&(Km+=Wp),Zm(t)}let c=Wm._keyToDOMMap.get(t.__key);c===void 0&&X(349,t.__key),c.__lexicalTextContent=Km,c.__lexicalFirstTextKey=Ym,Km=a+Km,Zm(o)}function Eh(e,t,n){let r=Ox(t,n,Wm),i=r.element.__lexicalLastChildKind??null,a=function(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return wy(e)?`line-break`:my(e)&&e.isInline()?`decorator`:null}return bh(e).size>0?null:`empty`}return null}(t,ih);i!==a&&r.setManagedLineBreak(a)}function Dh(e,t,n){var r;qm=null,Jm=null,Ym=null,function(e,t,n){let r=Km,i=e.__size,a=t.__size;Km=``;let o=n.element,s=Wm._keyToDOMMap.get(t.__key);s===void 0&&X(351,t.__key);let c=a-i;if(!lh&&Math.abs(c)<=1&&i>=Hm&&e.__first===t.__first&&(c!==0||!Wm._cloneNotNeeded.has(e.__key))){let i=s.__lexicalTextContent,l=oh.get(e.__key);if(!lh&&typeof i==`string`&&l!==void 0){let a=function(e,t){let n=t.size;if(n===0||n>=e.__size)return null;let r=e.__last,i=null,a=0;for(;r!==null&&a<n;){if(!t.has(r))return null;i=r;let e=ih.get(r);if(e===void 0)return null;r=e.__prev,a++}return a!==n||r!==null&&t.has(r)?null:i}(t,l);if(a!==null){let u=l.size;if(c===0){let e=Bm(a,u),n=a,c=0;for(;n!==null&&c<u;){let e=ih.get(n);if(e===void 0)break;let t=Xm();kh(n,o),Z(e)&&qm===null&&(qm=e.getFormat(),Jm=e.getStyle(),Ym=e.__key),Zm(t),n=e.__next,c++}let d=``;for(n=a,c=0;n!==null&&c<u;){let e=ih.get(n);if(e===void 0)break;let t;if($(e)){let r=Wm._keyToDOMMap.get(n),i=r&&r.__lexicalTextContent;typeof i!=`string`&&X(352,e.getType()),t=i}else t=e.getTextContent();d+=t,c<u-1&&$(e)&&!e.isInline()&&(d+=Wp),n=e.__next,c++}let f=s.__lexicalSlotTextLength||0,p=f>0?i.slice(f):i,m=p.slice(0,p.length-e)+d;s.__lexicalTextContent=m,Km=r+m,Oh(t,s,l);return}if(function(e,t,n,r,i,a,o,s){if(s!==1&&s!==-1||o!==(s===1?2:1))return!1;let c=o-s,l=e.__last;for(let e=0;e<c-1;e++){if(l===null)return!1;let e=nh.get(l);if(e===void 0)return!1;l=e.__prev}if(l===null)return!1;let u=ih.get(a),d=nh.get(l);if(u===void 0||d===void 0||u.__prev!==d.__prev)return!1;let f=[],p=a;for(let e=0;e<o;e++){if(p===null)return!1;f.push(p);let e=ih.get(p);p=e?e.__next:null}let m=[];p=l;for(let e=0;e<c;e++){if(p===null)return!1;m.push(p);let e=nh.get(p);p=e?e.__next:null}let h=new Set(m),g=new Set(f),_=[],v=0,y=0;for(;v<c&&y<o;)if(f[y]===m[v])_.push({key:f[y],kind:`reconcile`}),v++,y++;else if(g.has(m[v])){if(h.has(f[y]))return!1;_.push({key:f[y],kind:`create`,nextIndex:y}),y++}else _.push({key:m[v],kind:`destroy`}),v++;for(;v<c;)_.push({key:m[v++],kind:`destroy`});for(;y<o;)_.push({key:f[y],kind:`create`,nextIndex:y}),y++;let b=Bm(l,c);for(let e of _){let t=Xm();if(e.kind===`reconcile`)kh(e.key,n.element);else if(e.kind===`destroy`)dh(e.key,n.element);else{let t=null;for(let n=e.nextIndex+1;n<o;n++){let e=Wm._keyToDOMMap.get(f[n]);if(e!==void 0){t=e;break}}wh(e.key,n.withBefore(t??n.before))}if(e.kind!==`destroy`){let t=ih.get(e.key);t&&Z(t)&&qm===null&&(qm=t.getFormat(),Jm=t.getStyle(),Ym=t.__key)}Zm(t)}let x=``;for(let e=0;e<o;e++){let t=ih.get(f[e]);if(t===void 0)return!1;let n;if($(t)){let r=Wm._keyToDOMMap.get(f[e]),i=r&&r.__lexicalTextContent;typeof i!=`string`&&X(350,t.getType()),n=i}else n=t.getTextContent();x+=n,e<o-1&&$(t)&&!t.isInline()&&(x+=Wp)}let S=r.__lexicalSlotTextLength||0,C=S>0?i.slice(S):i;return r.__lexicalTextContent=C.slice(0,C.length-b)+x,!0}(e,0,n,s,i,a,u,c)){let e=s.__lexicalTextContent;typeof e!=`string`&&X(353),Km=r+e,Oh(t,s,l);return}}}if(c===0){let t=e.__first,n=0;for(;t!==null;){let e=ih.get(t);if(e===void 0)break;let r=lh||th.has(t)||eh.has(t),i=Xm();if(r)kh(t,o);else{let n,r;if($(e)){r=ah.get(t);let i=r&&r.__lexicalTextContent;typeof i!=`string`&&X(354,e.getType()),n=i}else n=e.getTextContent();Km+=n,r!==void 0&&Qm(r)}Z(e)?qm===null&&(qm=e.getFormat(),Jm=e.getStyle(),Ym=e.__key):$(e)&&n<a-1&&!e.isInline()&&(Km+=Wp),Zm(i),t=e.__next,n++}s.__lexicalTextContent=Km,s.__lexicalFirstTextKey=Ym,Km=r+Km;return}}if(i===1&&a===1){let r=e.__first,i=t.__first;if(r===i)kh(r,o);else{let e=Nh(r),t=wh(i,null);try{e.parentNode===o?o.replaceChild(t,e):n.insertChild(t)}catch(n){if(typeof n==`object`&&n){let a=`${n.toString()} Parent: ${o.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${r}}.`;throw Error(a)}throw n}dh(r,null)}let a=ih.get(i);Z(a)&&qm===null&&(qm=a.getFormat(),Jm=a.getStyle(),Ym=a.__key)}else{let r=Xx(e,nh),s=Xx(t,ih);if(r.length!==i&&X(227),s.length!==a&&X(228),i===0)a!==0&&Th(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&bh(t).size===0&&n.element.__lexicalLineBreak==null;fh(r,0,i-1,e?null:o),e&&(o.textContent=``)}}else(function(e,t,n,r,i,a){let o=r-1,s=i-1,c,l,u=a.getFirstChild(),d=0,f=0;for(;d<=o&&f<=s;){let e=t[d],r=n[f],i=Xm();if(e===r)u=jh(kh(r,a.element)),d++,f++;else{if(l===void 0&&(l=Mh(n,f)),c===void 0)c=Mh(t,d);else if(!c.has(e)){d++,Zm(i);continue}if(!l.has(e)){u=jh(Nh(e)),dh(e,a.element),d++,c.delete(e),Zm(i);continue}if(c.has(r)){let e=Ib(Wm,r);e!==u&&a.withBefore(u??a.before).insertChild(e),u=jh(kh(r,a.element)),d++,f++}else wh(r,a.withBefore(u??a.before)),f++}let o=ih.get(r);o!==null&&Z(o)?qm===null&&(qm=o.getFormat(),Jm=o.getStyle(),Ym=o.__key):$(o)&&f<=s&&!o.isInline()&&(Km+=Wp),Zm(i)}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:Wm.getElementByKey(t);Th(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&fh(t,d,o,a.element)})(t,r,s,i,a,n)}s.__lexicalTextContent=Km,s.__lexicalFirstTextKey=Ym,Km=r+Km}(e,t,Ox(t,n,Wm)),qb(t)||(r=t,qm==null||qm===r.__textFormat||uh||r.setTextFormat(qm),function(e){Jm==null||Jm===e.__textStyle||uh||e.setTextStyle(Jm)}(t))}function Oh(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=ih.get(i);if(e===void 0){i=null;break}if(e.__parent===t)break;i=e.__parent}if(i!==null&&!n.has(i)){let e=ih.get(r);if(Z(e))return qm=e.getFormat(),void(Jm=e.getStyle())}}t.__lexicalFirstTextKey=Ym}function kh(e,t){let n=nh.get(e),r=ih.get(e);n!==void 0&&r!==void 0||X(61);let i=lh||th.has(e)||eh.has(e),a=Ib(Wm,e);if(n===r&&!i){let e;if($(n)){let t=a.__lexicalTextContent;typeof t!=`string`&&X(355,n.getType()),e=t,Qm(a)}else e=n.getTextContent();return Km+=e,a}if(n!==r&&i&&Mb(sh,Gm,$m,r,`updated`),ch.$updateDOM(r,n,a,Wm)){let n=wh(e,null);return t===null&&X(62),t.replaceChild(n,a),dh(e,null),n}if($(n)){$(r)||X(334,e);let t=r.__indent;(lh||t!==n.__indent)&&mh(a,t);let o=r.__format;(lh||o!==n.__format)&&hh(a,o);let s=i&&(bh(r).size>0||bh(n).size>0)?Ch(n,r,a):``;if(i){let e=Km;if(Dh(n,r,a),gy(r)||r.isInline()||Eh(0,r,a),s!==``){let t=a.__lexicalTextContent||``;a.__lexicalTextContent=s+t,Km=e+s+t,a.__lexicalSlotTextLength=s.length}else(bh(r).size>0||bh(n).size>0)&&(a.__lexicalSlotTextLength=0)}else{let e=a.__lexicalTextContent;typeof e!=`string`&&X(356,n.getType()),Km+=e,Qm(a)}if((lh||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(gh(a,r),gy(r)&&!lh))for(let e of r.getChildren())$(e)&&gh(Ib(Wm,e.getKey()),e)}else{let t=r.getTextContent();if(my(r)){let t=r.decorate(Wm,Um);t!==null&&Ah(e,t),i&&(bh(r).size>0||bh(n).size>0)&&Ch(n,r,a)}Km+=t}if(!uh&&gy(r)){let e=r.getLatest();if(e.__cachedText!==Km){let t=e.getWritable();t.__cachedText=Km,r=t}}return ch.$decorateDOM(r,n,a,Wm),Vm(r),a}function Ah(e,t){let n=Wm._pendingDecorators,r=Wm._decorators;if(n===null){if(r[e]===t)return;n=fb(Wm)}n[e]=t}function jh(e){let t=e.nextSibling;return t!==null&&t===Wm._blockCursorElement&&(t=t.nextSibling),t}function Mh(e,t){let n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function oee(e,t,n,r,i,a){Km=``,qm=null,Jm=null,Ym=null,lh=r===2,Wm=n,Um=n._config,ch=n._config.dom||jy,Gm=n._nodes,$m=Wm._listeners.mutation,eh=i,th=a,nh=e._nodeMap,rh=e,ih=t._nodeMap,uh=t._readOnly,ah=lm(n._keyToDOMMap),oh=function(){let e=new Map,t=t=>{for(let n of t){let t=ih.get(n);if(t===void 0)continue;let r=t.__parent;if(r===null)continue;let i=e.get(r);i===void 0&&(i=new Set,e.set(r,i)),i.add(n)}};return t(eh.keys()),t(th),e}();let o=new Map;return sh=o,kh(`root`,null),Wm=void 0,Gm=void 0,eh=void 0,th=void 0,nh=void 0,rh=void 0,ih=void 0,Um=void 0,ah=void 0,oh=void 0,sh=void 0,ch=jy,o}function Nh(e){let t=ah.get(e);return t===void 0&&X(75,e),t}function Ph(e){return{type:e}}var Fh=Ph(`SELECTION_CHANGE_COMMAND`),see=Ph(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),Ih=Ph(`CLICK_COMMAND`),Lh=Ph(`BEFORE_INPUT_COMMAND`),Rh=Ph(`INPUT_COMMAND`),zh=Ph(`COMPOSITION_START_COMMAND`),Bh=Ph(`COMPOSITION_END_COMMAND`),Vh=Ph(`DELETE_CHARACTER_COMMAND`),Hh=Ph(`INSERT_LINE_BREAK_COMMAND`),Uh=Ph(`INSERT_PARAGRAPH_COMMAND`),Wh=Ph(`CONTROLLED_TEXT_INSERTION_COMMAND`),Gh=Ph(`PASTE_COMMAND`),Kh=Ph(`REMOVE_TEXT_COMMAND`),qh=Ph(`DELETE_WORD_COMMAND`),Jh=Ph(`DELETE_LINE_COMMAND`),Yh=Ph(`FORMAT_TEXT_COMMAND`),Xh=Ph(`SET_TEXT_FORMAT_COMMAND`),Zh=Ph(`UNDO_COMMAND`),Qh=Ph(`REDO_COMMAND`),$h=Ph(`KEYDOWN_COMMAND`),eg=Ph(`KEY_ARROW_RIGHT_COMMAND`),tg=Ph(`MOVE_TO_END`),ng=Ph(`KEY_ARROW_LEFT_COMMAND`),rg=Ph(`MOVE_TO_START`),ig=Ph(`KEY_ARROW_UP_COMMAND`),ag=Ph(`KEY_ARROW_DOWN_COMMAND`),og=Ph(`KEY_ENTER_COMMAND`),sg=Ph(`KEY_SPACE_COMMAND`),cg=Ph(`KEY_BACKSPACE_COMMAND`),lg=Ph(`KEY_ESCAPE_COMMAND`),ug=Ph(`KEY_DELETE_COMMAND`),dg=Ph(`KEY_TAB_COMMAND`),fg=Ph(`INSERT_TAB_COMMAND`),pg=Ph(`INDENT_CONTENT_COMMAND`),mg=Ph(`OUTDENT_CONTENT_COMMAND`),hg=Ph(`DROP_COMMAND`),gg=Ph(`FORMAT_ELEMENT_COMMAND`),_g=Ph(`DRAGSTART_COMMAND`),vg=Ph(`DRAGOVER_COMMAND`),yg=Ph(`DRAGEND_COMMAND`),bg=Ph(`COPY_COMMAND`),xg=Ph(`CUT_COMMAND`),Sg=Ph(`SELECT_ALL_COMMAND`),Cg=Ph(`CLEAR_EDITOR_COMMAND`),wg=Ph(`CLEAR_HISTORY_COMMAND`),Tg=Ph(`CAN_REDO_COMMAND`),Eg=Ph(`CAN_UNDO_COMMAND`),Dg=Ph(`FOCUS_COMMAND`),Og=Ph(`BLUR_COMMAND`),kg=Ph(`KEY_MODIFIER_COMMAND`);function Ag(e){let t=new Map;return{dispose(){for(let e of t.values())e.dispose();t.clear()},register(n,r){let i=t.get(n);i===void 0&&(i={dispose:e(n,r),holders:new Set},t.set(n,i));let a=()=>{let e=t.get(n);e&&e.holders.delete(a)&&e.holders.size===0&&(t.delete(n),e.dispose())};return i.holders.add(a),a}}}function jg(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}var Mg=Object.freeze({}),Ng=[[`keydown`,function(e,t){let n=t._inputState;n.lastKeyDownTimeStamp=e.timeStamp,n.lastKeyCode=e.key,e.key!==`Backspace`&&Ug(n),!t.isComposing()&&Fb(t,$h,e)}],[`pointerdown`,function(e,t){let n=gx(e),r=e.pointerType;yx(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&ly(t,()=>{Hx(n,t)||(t._inputState.isSelectionChangeFromMouseDown=!0)})}],[`compositionstart`,function(e,t){Fb(t,zh,e)}],[`compositionend`,function(e,t){let n=t._inputState;Ep?n.compositionPhase=`ending-firefox`:Op||!Ap&&!Np?Fb(t,Bh,e):(n.compositionPhase=`ending-safari`,n.compositionEndData=e.data)}],[`input`,function(e,t){e.stopPropagation();let n=t._inputState;Ug(n),ly(t,()=>{Gg(e,t)||t.dispatchCommand(Rh,e)},{event:e}),n.unprocessedBeforeInputData=null}],[`click`,function(e,t){ly(t,()=>{let n=gv(),r=ex(Ub(t)),i=_v();if(r){if(Q(n)){let e=n.anchor,t=e.getNode();e.type===`element`&&e.offset===0&&n.isCollapsed()&&!gy(t)&&mb().getChildrenSize()===1&&t.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}else if(e.pointerType===`touch`||e.pointerType===`pen`){let n=ux(r,t._rootElement).anchorNode;(vx(n)||Zy(n))&&hb(hv(i,r,t,e))}}if(Ep&&r!==null&&r.rangeCount===0){let n=t._rootElement;if(n!==null&&e.target===n){let a=e.clientY,o=n.childNodes.length;for(let e=0;e<n.childNodes.length;e++){let t=n.childNodes[e];if(vx(t)){let n=t.getBoundingClientRect();if(a<=(n.top+n.bottom)/2){o=e;break}}}r.setBaseAndExtent(n,o,n,o);let s=hv(i,r,t,e);s===null?r.removeAllRanges():hb(s)}}Fb(t,Ih,e)})}],[`cut`,Mg],[`copy`,Mg],[`dragstart`,Mg],[`dragover`,Mg],[`dragend`,Mg],[`paste`,Mg],[`focus`,Mg],[`blur`,Mg],[`drop`,Mg]];Dp&&Ng.push([`beforeinput`,(e,t)=>function(e,t){let n=e.inputType;n===`deleteCompositionText`||Ep&&Pb(t)||n!==`insertCompositionText`&&ly(t,()=>{Gg(e,t)||Fb(t,Lh,e)},{event:e})}(e,t)]);var Pg=new WeakMap,Fg=new WeakMap,cee=Ag(e=>(e.addEventListener(`selectionchange`,t_),()=>e.removeEventListener(`selectionchange`,t_)));function Ig(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=qv(),u;if(a!==void 0)u=a;else{let e=ex(Ub(l));u=e===null?null:ux(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!Z(c)||(!i&&(!Dp||l._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||c.isDirty()&&m<2||vb(n))&&o.offset!==s.offset&&!c.isComposing()||Xy(c)||c.isDirty()&&m>1||(i||!Dp)&&p!==null&&!c.isComposing()&&d!==Ax(c,p,l)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==e.format||c.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=Yy(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(Z(t)||$(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function Lg(e,t){return Zy(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Rg(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=ux(e,t._rootElement),s=t._inputState;s.isSelectionChangeFromDOMUpdate&&(s.isSelectionChangeFromDOMUpdate=!1,Lg(r,i)&&Lg(a,o)&&!s.postDeleteSelectionToRestore)||ly(t,()=>{if(!n)return void hb(null);if(!Wy(t,r,a))return;let c=gv();if(s.postDeleteSelectionToRestore&&Q(c)&&c.isCollapsed()){let e=c.anchor,t=s.postDeleteSelectionToRestore.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(c=s.postDeleteSelectionToRestore.clone(),hb(c))}if(s.postDeleteSelectionToRestore=null,Q(c)){let n=c.anchor,l=n.getNode();if(c.isCollapsed()){e.type===`Range`&&r===a&&(c.dirty=!0);let i=Ub(t).event,o=i?i.timeStamp:performance.now(),{format:u,style:d,offset:f,key:p,timeStamp:m}=s.collapsedSelectionFormat,h=mb(),g=!1===t.isComposing()&&h.getTextContent()===``;if(o<m+200&&n.offset===f&&n.key===p)zg(c,u,d);else if(n.type===`text`)Z(l)||X(141),Bg(c,l);else if(n.type===`element`&&!g){$(l)||X(259);let e=n.getNode();e.isEmpty()?function(e,t){zg(e,t.getTextFormat(),t.getTextStyle())}(c,e):zg(c,c.format,``)}}else{let e=n.key,t=c.focus.key,r=c.getNodes(),a=r.length,s=c.isBackward(),l=s?o:i,u=s?i:o,d=s?t:e,f=s?e:t,p=2047,m=!1;for(let e=0;e<a;e++){let t=r[e],n=t.getTextContentSize();if(Z(t)&&n!==0&&!(e===0&&t.__key===d&&l===n||e===a-1&&t.__key===f&&u===0)&&(m=!0,p&=t.getFormat(),p===0))break}c.format=m?p:0}}Fb(t,Fh)})}function zg(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Bg(e,t){zg(e,t.getFormat(),t.getStyle())}function Vg(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function Hg(e){let{lastKeyCode:t}=qv()._inputState;if(e==null||e.length<=1||t==null)return;let n=t.length===1?t:t===`Enter`?`
|
|
46
46
|
`:t===`Tab`?` `:null;if(!n)return;let r=gv();if(!Q(r)||!r.isCollapsed())return;let i=r.anchor.getNode();if(!Z(i))return;let{offset:a}=r.anchor;if(i.getTextContentSize()===a){let e=i.getNextSibling();if(n===`
|
|
@@ -69,14 +69,14 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
69
69
|
**$3**$4`).replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm,`$1~~$2~~
|
|
70
70
|
~~$3~~$4`).replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm,"$1`$2`\n`$3`$4"),yk=e=>{if(!e.match(/^\s{2}(?:-|\+|\*|\d+\.)\s/m))return e;let t=!1;return e.split(`
|
|
71
71
|
`).map(e=>/^(`{3,}|~{3,})/.test(e)?(t=!t,e):t?e:e.replace(/^(\s+)(-|\+|\*|\d+\.)/,(e,t,n)=>`${` `.repeat(t.length*2)}${n}`)).join(`
|
|
72
|
-
`)},bk=class{#e;#t;#n=``;#r=``;#i={};#a=[];constructor(e,t,{keyPath:n,autoIncrement:r,indexes:i=[]}={}){this.#e=void 0,this.#n=e,this.#r=t,this.#i={keyPath:n,autoIncrement:r},this.#a=i}async#o(e){return new Promise((t,n)=>{let r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{let e=r.result,t=this.#r,n=e.objectStoreNames.contains(t)?r.transaction.objectStore(t):e.createObjectStore(t,this.#i);this.#a.forEach(({name:e,keyPath:t,options:r})=>{n.indexNames.contains(e)||n.createIndex(e,t,r)})},r.onsuccess=()=>{t(r.result)},r.onerror=()=>{n(r.error)}})}async#s(){let e=!1,t=await this.#o(),{version:n,objectStoreNames:r}=t,i=this.#r;if(r.contains(i)){let n=t.transaction(i).objectStore(i);e=this.#a.some(({name:e})=>!n.indexNames.contains(e))}else e=!0;return e&&(t.close(),t=await this.#o(n+1)),t.onversionchange=()=>{t.close(),this.#e=void 0},t}async#c(e,{mode:t=`readonly`}={}){if(!this.#e){this.#t??=this.#s();try{this.#e=await this.#t}finally{this.#t=void 0}}let n=this.#e,r=this.#r,i=n.transaction(r,t),a=e(i.objectStore(r));return new Promise((e,n)=>{if(i.onerror=()=>{n(i.error)},i.onabort=()=>{n(i.error)},t===`readwrite`){let t;a&&(a.onsuccess=()=>{t=a.result}),i.oncomplete=()=>{e(t)}}else a?a.onsuccess=()=>{e(a.result)}:i.oncomplete=()=>{e(void 0)}})}async set(e,t){return this.#c(n=>n.put(t,e),{mode:`readwrite`})}async put(e){return this.#c(t=>t.put(e),{mode:`readwrite`})}async saveEntries(e){return this.#c(t=>{e.forEach(([e,n])=>{t.put(n,e)})},{mode:`readwrite`})}async get(e){return this.#c(t=>t.get(e))}async keys(){return this.#c(e=>e.getAllKeys())}async values(){return this.#c(e=>e.getAll())}async entries(){return new Promise((e,t)=>{this.#c(t=>{let n=t.openCursor(),r=[];n.onsuccess=()=>{let t=n.result;t?(r.push([t.key,t.value]),t.continue()):e(r)}}).catch(t)})}async#l({callback:e=void 0,index:t=void 0,query:n=void 0,direction:r=`next`,multiple:i=!1}){return new Promise((a,o)=>{this.#c(o=>{let s=(t?o.index(t):o).openCursor(n,r),c=[];s.onsuccess=()=>{let t=s.result;if(t){let{value:n}=t;typeof e!=`function`||e(n)?i?(c.push(n),t.continue()):a(n):t.continue()}else a(i?c:void 0)}}).catch(o)})}async find(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n})}async findLast(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,direction:`prev`})}async filter(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,multiple:!0})}async delete(e){await this.#c(t=>t.delete(e),{mode:`readwrite`})}async deleteEntries(e){await this.#c(t=>{e.forEach(e=>{t.delete(e)})},{mode:`readwrite`})}async clear(){await this.#c(e=>e.clear(),{mode:`readwrite`})}},xk=e=>{try{return JSON.parse(e)}catch{return null}},Sk=class{static async set(e,t){if(t===void 0){globalThis.localStorage.removeItem(e);return}globalThis.localStorage.setItem(e,JSON.stringify(t))}static async get(e){let t=globalThis.localStorage.getItem(e);return t?xk(t):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(xk)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,xk(t)])}},Ck=`4.4.3`,wk=`0.63.0`,Tk=[{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`]},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`]},{id:`abap`,name:`ABAP`},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`]},{id:`ada`,name:`Ada`},{id:`angular-html`,name:`Angular HTML`},{id:`angular-ts`,name:`Angular TypeScript`},{id:`apache`,name:`Apache Conf`},{id:`apex`,name:`Apex`},{id:`apl`,name:`APL`},{id:`applescript`,name:`AppleScript`},{id:`ara`,name:`Ara`},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`]},{id:`razor`,name:`ASP.NET Razor`},{id:`asm`,name:`Assembly`},{id:`astro`,name:`Astro`},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`]},{id:`ahk2`,name:`AutoHotkey2`},{id:`awk`,name:`AWK`},{id:`ballerina`,name:`Ballerina`},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`]},{id:`beancount`,name:`Beancount`},{id:`berry`,name:`Berry`,aliases:[`be`]},{id:`bibtex`,name:`BibTeX`},{id:`bicep`,name:`Bicep`},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`]},{id:`blade`,name:`Blade`},{id:`c`,name:`C`},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`]},{id:`cpp`,name:`C++`,aliases:[`c++`]},{id:`c3`,name:`C3`},{id:`cadence`,name:`Cadence`,aliases:[`cdc`]},{id:`cairo`,name:`Cairo`},{id:`chapel`,name:`Chapel`,aliases:[`chpl`]},{id:`clarity`,name:`Clarity`},{id:`clojure`,name:`Clojure`,aliases:[`clj`]},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`]},{id:`cmake`,name:`CMake`},{id:`cobol`,name:`COBOL`},{id:`codeowners`,name:`CODEOWNERS`},{id:`codeql`,name:`CodeQL`,aliases:[`ql`]},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`]},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`]},{id:`crystal`,name:`Crystal`},{id:`css`,name:`CSS`},{id:`csv`,name:`CSV`},{id:`cue`,name:`CUE`},{id:`cypher`,name:`Cypher`,aliases:[`cql`]},{id:`d`,name:`D`},{id:`dart`,name:`Dart`},{id:`dax`,name:`DAX`},{id:`desktop`,name:`Desktop`},{id:`diff`,name:`Diff`},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`]},{id:`dotenv`,name:`dotEnv`},{id:`dream-maker`,name:`Dream Maker`},{id:`edge`,name:`Edge`},{id:`elixir`,name:`Elixir`},{id:`elm`,name:`Elm`},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`]},{id:`erb`,name:`ERB`},{id:`erlang`,name:`Erlang`,aliases:[`erl`]},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`]},{id:`fennel`,name:`Fennel`},{id:`fish`,name:`Fish`},{id:`fluent`,name:`Fluent`,aliases:[`ftl`]},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`]},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`]},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`]},{id:`gdscript`,name:`GDScript`,aliases:[`gd`]},{id:`gdshader`,name:`GDShader`},{id:`genie`,name:`Genie`},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`]},{id:`gherkin`,name:`Gherkin`},{id:`git-commit`,name:`Git Commit Message`},{id:`git-rebase`,name:`Git Rebase Message`},{id:`gleam`,name:`Gleam`},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`]},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`]},{id:`glsl`,name:`GLSL`},{id:`gn`,name:`GN`},{id:`smalltalk`,name:`GNU Smalltalk`},{id:`gnuplot`,name:`Gnuplot`},{id:`go`,name:`Go`},{id:`graphql`,name:`GraphQL`,aliases:[`gql`]},{id:`groovy`,name:`Groovy`},{id:`hack`,name:`Hack`},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`]},{id:`hcl`,name:`HashiCorp HCL`},{id:`haskell`,name:`Haskell`,aliases:[`hs`]},{id:`haxe`,name:`Haxe`},{id:`hjson`,name:`Hjson`},{id:`hlsl`,name:`HLSL`},{id:`html`,name:`HTML`},{id:`html-derivative`,name:`HTML (Derivative)`},{id:`http`,name:`HTTP`},{id:`hurl`,name:`Hurl`},{id:`hxml`,name:`HXML`},{id:`hy`,name:`Hy`},{id:`imba`,name:`Imba`},{id:`ini`,name:`INI`,aliases:[`properties`]},{id:`java`,name:`Java`},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`]},{id:`jinja`,name:`Jinja`},{id:`jison`,name:`Jison`},{id:`json`,name:`JSON`},{id:`jsonl`,name:`JSON Lines`},{id:`jsonc`,name:`JSON with Comments`},{id:`json5`,name:`JSON5`},{id:`jsonnet`,name:`Jsonnet`},{id:`jssm`,name:`JSSM`,aliases:[`fsl`]},{id:`jsx`,name:`JSX`},{id:`julia`,name:`Julia`,aliases:[`jl`]},{id:`just`,name:`Just`,aliases:[`justfile`]},{id:`kdl`,name:`KDL`},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`]},{id:`kusto`,name:`Kusto`,aliases:[`kql`]},{id:`latex`,name:`LaTeX`},{id:`lean`,name:`Lean 4`,aliases:[`lean4`]},{id:`less`,name:`Less`},{id:`liquid`,name:`Liquid`},{id:`llvm`,name:`LLVM IR`},{id:`log`,name:`Log file`},{id:`logo`,name:`Logo`},{id:`lua`,name:`Lua`},{id:`luau`,name:`Luau`},{id:`make`,name:`Makefile`,aliases:[`makefile`]},{id:`markdown`,name:`Markdown`,aliases:[`md`]},{id:`marko`,name:`Marko`},{id:`matlab`,name:`MATLAB`},{id:`mdc`,name:`MDC`},{id:`mdx`,name:`MDX`},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`]},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`]},{id:`mojo`,name:`Mojo`},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`]},{id:`move`,name:`Move`},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`]},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`]},{id:`nextflow-groovy`,name:`Nextflow Groovy`},{id:`nginx`,name:`Nginx`},{id:`nim`,name:`Nim`},{id:`nix`,name:`Nix`},{id:`nsis`,name:`NSIS`},{id:`nushell`,name:`nushell`,aliases:[`nu`]},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`]},{id:`objective-cpp`,name:`Objective-C++`},{id:`ocaml`,name:`OCaml`},{id:`odin`,name:`Odin`},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`]},{id:`org`,name:`Org Markup`},{id:`pascal`,name:`Pascal`},{id:`perl`,name:`Perl`},{id:`php`,name:`PHP`},{id:`pkl`,name:`Pkl`},{id:`plsql`,name:`PL/SQL`},{id:`polar`,name:`Polar`},{id:`postcss`,name:`PostCSS`},{id:`powerquery`,name:`PowerQuery`},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`]},{id:`prisma`,name:`Prisma`},{id:`prolog`,name:`Prolog`},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`]},{id:`pug`,name:`Pug`,aliases:[`jade`]},{id:`puppet`,name:`Puppet`},{id:`purescript`,name:`PureScript`},{id:`python`,name:`Python`,aliases:[`py`]},{id:`qml`,name:`QML`},{id:`qmldir`,name:`QML Directory`},{id:`qss`,name:`Qt Style Sheets`},{id:`r`,name:`R`},{id:`racket`,name:`Racket`},{id:`raku`,name:`Raku`,aliases:[`perl6`]},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`]},{id:`regexp`,name:`RegExp`,aliases:[`regex`]},{id:`rel`,name:`Rel`},{id:`rst`,name:`reStructuredText`},{id:`riscv`,name:`RISC-V`},{id:`coq`,name:`Rocq`},{id:`ron`,name:`RON`},{id:`rosmsg`,name:`ROS Interface`},{id:`ruby`,name:`Ruby`,aliases:[`rb`]},{id:`haml`,name:`Ruby Haml`},{id:`rust`,name:`Rust`,aliases:[`rs`]},{id:`sas`,name:`SAS`},{id:`sass`,name:`Sass`},{id:`scala`,name:`Scala`},{id:`scheme`,name:`Scheme`},{id:`scss`,name:`SCSS`},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`]},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`]},{id:`shellsession`,name:`Shell Session`,aliases:[`console`]},{id:`smithy`,name:`Smithy`},{id:`solidity`,name:`Solidity`},{id:`sparql`,name:`SPARQL`},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`]},{id:`sql`,name:`SQL`},{id:`ssh-config`,name:`SSH Config`},{id:`stata`,name:`Stata`},{id:`stylus`,name:`Stylus`,aliases:[`styl`]},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`]},{id:`svelte`,name:`Svelte`},{id:`swift`,name:`Swift`},{id:`systemd`,name:`Systemd Units`},{id:`system-verilog`,name:`SystemVerilog`},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`]},{id:`tasl`,name:`Tasl`},{id:`tcl`,name:`Tcl`},{id:`templ`,name:`Templ`},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`]},{id:`tex`,name:`TeX`},{id:`toml`,name:`TOML`},{id:`tsv`,name:`TSV`},{id:`tsx`,name:`TSX`},{id:`turtle`,name:`Turtle`},{id:`twig`,name:`Twig`},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`]},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`]},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`]},{id:`typst`,name:`Typst`,aliases:[`typ`]},{id:`v`,name:`V`},{id:`vala`,name:`Vala`},{id:`verilog`,name:`Verilog`},{id:`vhdl`,name:`VHDL`},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`]},{id:`vb`,name:`Visual Basic`},{id:`vue`,name:`Vue`},{id:`vue-html`,name:`Vue HTML`},{id:`vue-vine`,name:`Vue Vine`},{id:`vyper`,name:`Vyper`,aliases:[`vy`]},{id:`wasm`,name:`WebAssembly`},{id:`wit`,name:`WebAssembly Interface Types`},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`]},{id:`wgsl`,name:`WGSL`},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`]},{id:`reg`,name:`Windows Registry Script`},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`]},{id:`xml`,name:`XML`},{id:`xsl`,name:`XSL`},{id:`yaml`,name:`YAML`,aliases:[`yml`]},{id:`zenscript`,name:`ZenScript`},{id:`zig`,name:`Zig`}],Ek=[{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`},{id:`github-light`,displayName:`GitHub Light`,type:`light`},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`},{id:`horizon`,displayName:`Horizon`,type:`dark`},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`},{id:`houston`,displayName:`Houston`,type:`dark`},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`},{id:`laserwave`,displayName:`LaserWave`,type:`dark`},{id:`light-plus`,displayName:`Light Plus`,type:`light`},{id:`material-theme`,displayName:`Material Theme`,type:`dark`},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`},{id:`min-dark`,displayName:`Min Dark`,type:`dark`},{id:`min-light`,displayName:`Min Light`,type:`light`},{id:`monokai`,displayName:`Monokai`,type:`dark`},{id:`night-owl`,displayName:`Night Owl`,type:`dark`},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`},{id:`nord`,displayName:`Nord`,type:`dark`},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`},{id:`one-light`,displayName:`One Light`,type:`light`},{id:`plastic`,displayName:`Plastic`,type:`dark`},{id:`poimandres`,displayName:`Poimandres`,type:`dark`},{id:`red`,displayName:`Red`,type:`dark`},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`},{id:`vesper`,displayName:`Vesper`,type:`dark`},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`}],Dk=`sveltia-ui`,Ok=`shiki`,kk,Ak,jk=!0,Mk=(e,t)=>`${Ck}/${e}/${t}`,Nk=()=>(kk===void 0&&(kk=typeof indexedDB>`u`?null:new bk(Dk,Ok)),kk),Pk=async e=>(Ak??=(async()=>{let t=(await e.keys()).filter(e=>typeof e==`string`&&!e.startsWith(`4.4.3/`));t.length&&await e.deleteEntries(t)})(),Ak),Fk=async(e,t)=>{let n=jk?Nk():null;if(n)try{return await Pk(n),await n.get(Mk(e,t))}catch{return}},Ik=async(e,t,n)=>{let r=jk?Nk():null;if(r)try{await r.set(Mk(e,t),n)}catch{}},Lk=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Rk=`https://unpkg.com/@shikijs`,zk=`https://unpkg.com/@sveltia/ui`,Bk=()=>`${zk}@${wk}/dist/shiki-engine.js`,Vk=e=>`${Rk}/langs@${Ck}/dist/${e}.mjs`,Hk=e=>`${Rk}/themes@${Ck}/dist/${e}.mjs`,Uk={loadEngine:async()=>Lk(()=>import(Bk()),void 0),loadLanguage:async e=>Lk(()=>import(Vk(e)),void 0),loadTheme:async e=>Lk(()=>import(Hk(e)),void 0)},Wk=()=>Uk,Gk=`github-light`,Kk=`github-dark`,qk=()=>{if(typeof document>`u`)return Gk;let{theme:e}=document.documentElement.dataset;return e?e===`dark`?Kk:Gk:window.matchMedia(`(prefers-color-scheme: dark)`).matches?Kk:Gk},Jk=e=>{if(typeof document>`u`)return()=>void 0;let t=()=>{let t=qk();e.update(()=>{mb().getChildren().forEach(e=>{fT(e)&&e.getTheme()!==t&&(e.setTheme(t),e.markDirty())})},{tag:p_})},n=new MutationObserver(t);n.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]});let r=window.matchMedia(`(prefers-color-scheme: dark)`);return r.addEventListener(`change`,t),()=>{n.disconnect(),r.removeEventListener(`change`,t)}},Yk=[``,`plain`,`plaintext`,`text`,`txt`],Xk=/^diff-([\w-]+)/i,Zk=null,Qk=null,$k=!1,eA=e=>Xk.exec(e)?.[1]??null,tA=e=>Yk.includes(e??``),nA=()=>!!Qk,rA=()=>$k,iA=e=>{if(!Qk)return!1;let t=eA(e)??e;return Zk.isSpecialLang(t)?!0:Qk.getLoadedLanguages().includes(t)},aA=(e,t)=>{e.update(()=>{let e=sb(t);if(!fT(e))return;let n=e.getLanguage();n&&iA(n)&&!e.getIsSyntaxHighlightSupported()&&e.setIsSyntaxHighlightSupported(!0),e.markDirty()},{tag:p_})},oA=new Map,sA=(e,t,n,r)=>{let i=oA.get(e);if(!i){let n=new Map;i={promise:(async()=>{try{await t()}catch{}oA.delete(e),n.forEach((e,t)=>aA(e,t))})(),targets:n},oA.set(e,i)}return n&&r&&i.targets.set(r,n),i.promise},cA=(e,t)=>{if(!(Qk||$k))return sA(`engine`,async()=>{try{Zk=await Wk().loadEngine(),Qk=Zk.createHighlighterCoreSync({engine:Zk.createJavaScriptRegexEngine(),langs:[],themes:[]})}catch{$k=!0}},e,t)},lA=async(e,t,n)=>{let r=await Fk(e,t);if(r)return r;let i=await n();if(!i)return;let a=i.default??i;return await Ik(e,t,a),a},uA=e=>Tk.find(({id:t,aliases:n})=>t===e||n?.includes(e))?.id??e,dA=(e,t,n)=>{let r=eA(e)??e;if(!Qk||iA(r))return;let i=Tk.find(({id:e,aliases:t})=>e===r||t?.includes(r));if(i)return sA(`lang/${i.id}`,async()=>{let e=await lA(`lang`,i.id,()=>Wk().loadLanguage(i.id));e&&await Qk.loadLanguage(e)},t,n)},fA=e=>Qk?Zk.isSpecialTheme(e)||Qk.getLoadedThemes().includes(e):!1,pA=(e,t,n)=>{if(!(!Qk||fA(e))&&Ek.some(({id:t})=>t===e))return sA(`theme/${e}`,async()=>{let t=await lA(`theme`,e,()=>Wk().loadTheme(e));t&&await Qk.loadTheme(t)},t,n)},mA=(e,t)=>{let n=[];return e.forEach((e,r)=>{r&&n.push(Cy()),e.forEach((e,r)=>{let{content:i}=e;if(t&&r===0&&i.length>0){let e=[`+`,`-`,`>`,`<`,` `],t=[`inserted`,`deleted`,`inserted`,`deleted`,`unchanged`],r=e.indexOf(i[0]);r!==-1&&(n.push(ST(e[r],t[r])),i=i.slice(1))}let a=Zk.stringifyTokenStyle(e.htmlStyle||Zk.getTokenStyleObject(e));Tv(i,{linebreak:()=>n.push(Cy()),tab:()=>n.push(F_()),text:e=>{let t=ST(e);t.setStyle(a),n.push(t)}})})}),n},hA=(e,t)=>{let n=eA(t),{tokens:r}=Qk.codeToTokens(e.getTextContent(),{lang:n??t,theme:e.getTheme()});return mA(r,!!n)},gA=(e,t,{theme:n}={})=>{let r=uA(eA(t)??t);if(!Qk||tA(r)||!iA(r))return;let i=n??qk();if(fA(i))return Qk.codeToHtml(e,{lang:r,theme:i})},_A={defaultLanguage:aT,defaultTheme:`github-light`,tokenize(e,t){let n=t||this.defaultLanguage;return n===null||tA(n)||!nA()?rT(e.getTextContent()):hA(e,n)}},vA=(e,t)=>{let n=t.getElementByKey(e.getKey());if(n===null)return;let r=e.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let a=`1`,o=1;for(let e=0;e<i;e+=1)wy(r[e])&&(o+=1,a+=`\n${o}`);n.setAttribute(`data-gutter`,a)},yA=(e,t)=>CT(e)&&CT(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType&&e.__style===t.__style||I_(e)&&I_(t)||wy(e)&&wy(t),bA=(e,t)=>{let n=0;for(;n<e.length&&yA(e[n],t[n]);)n+=1;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o+=1,!yA(e[r-o],t[i-o])){--o;break}return{from:n,to:r-o,nodesForReplacement:t.slice(n,i-o)}},xA=(e,t)=>{let n=sb(e);if(!fT(n)||!n.isAttached())return;let r=gv();if(!Q(r)){t();return}let{anchor:i}=r,a=i.offset,o=i.type===`element`&&wy(n.getChildAtIndex(i.offset-1)),s=0;if(o||(s=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o){i.getNode().select(a,a);return}n.getChildren().some(e=>{let t=Z(e);if(t||wy(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}},SA=(e,t,n,r)=>{let i=r.getKey(),{nodesCurrentlyHighlighting:a}=n,o=r.getLanguage();!o&&t.defaultLanguage!==null&&(o=t.defaultLanguage,r.setLanguage(o));let s=r.getTheme();s||(s=t.defaultTheme,r.setTheme(s));let c=!o||tA(o),l=!1;if(c||!o||rA()?r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1):nA()?(fA(s)||(pA(s,e,i),l=!0),iA(o)?r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0):(!dA(o,e,i)&&r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),l=!0)):(cA(e,i),l=!0),!l){if(a.has(i)){n.pendingRefresh.has(i)||(n.pendingRefresh.add(i),Bb(()=>{n.pendingRefresh.delete(i),e.update(()=>{let e=sb(i);fT(e)&&e.markDirty()},{tag:p_})}));return}a.add(i),n.didTransform||(n.didTransform=!0,Bb(()=>{n.didTransform=!1,a.clear()})),xA(i,()=>{let e=sb(i);if(!fT(e)||!e.isAttached())return!1;let n=e.getLanguage()||t.defaultLanguage,a=t.tokenize(e,n??void 0),{from:o,to:s,nodesForReplacement:c}=bA(e.getChildren(),a);return o!==s||c.length?(r.splice(o,s-o,c),!0):!1})}},CA=(e,t,n,r)=>{let i=r.getParent();fT(i)?SA(e,t,n,i):CT(r)&&r.replace(M_(r.__text))},wA=(e,t=_A)=>{if(!e.hasNodes([uT,bT]))throw Error(`CodeNode or CodeHighlightNode not registered on editor`);let n=[];e._headless!==!0&&n.push(e.registerMutationListener(uT,t=>{e.read(`latest`,()=>{t.forEach((t,n)=>{if(t!==`destroyed`){let t=sb(n);t!==null&&vA(t,e)}})})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set,pendingRefresh:new Set};return n.push(e.registerNodeTransform(uT,SA.bind(null,e,t,r)),e.registerNodeTransform(D_,CA.bind(null,e,t,r)),e.registerNodeTransform(bT,CA.bind(null,e,t,r)),kT(e)),uC(...n)},TA={dependencies:[Cw],export:e=>Jee(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=ww();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},EA=/^(?:\|)(.+)(?:\|)\s?$/,DA=/^(\| ?:?-*:? ?)+\|\s?$/,OA=e=>{let t=e.getFirstChild();return VO(t)?t.getChildrenSize():0},kA=e=>{e=e.replace(/\\n/g,`
|
|
72
|
+
`)},bk=class{#e;#t;#n=``;#r=``;#i={};#a=[];constructor(e,t,{keyPath:n,autoIncrement:r,indexes:i=[]}={}){this.#e=void 0,this.#n=e,this.#r=t,this.#i={keyPath:n,autoIncrement:r},this.#a=i}async#o(e){return new Promise((t,n)=>{let r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{let e=r.result,t=this.#r,n=e.objectStoreNames.contains(t)?r.transaction.objectStore(t):e.createObjectStore(t,this.#i);this.#a.forEach(({name:e,keyPath:t,options:r})=>{n.indexNames.contains(e)||n.createIndex(e,t,r)})},r.onsuccess=()=>{t(r.result)},r.onerror=()=>{n(r.error)}})}async#s(){let e=!1,t=await this.#o(),{version:n,objectStoreNames:r}=t,i=this.#r;if(r.contains(i)){let n=t.transaction(i).objectStore(i);e=this.#a.some(({name:e})=>!n.indexNames.contains(e))}else e=!0;return e&&(t.close(),t=await this.#o(n+1)),t.onversionchange=()=>{t.close(),this.#e=void 0},t}async#c(e,{mode:t=`readonly`}={}){if(!this.#e){this.#t??=this.#s();try{this.#e=await this.#t}finally{this.#t=void 0}}let n=this.#e,r=this.#r,i=n.transaction(r,t),a=e(i.objectStore(r));return new Promise((e,n)=>{if(i.onerror=()=>{n(i.error)},i.onabort=()=>{n(i.error)},t===`readwrite`){let t;a&&(a.onsuccess=()=>{t=a.result}),i.oncomplete=()=>{e(t)}}else a?a.onsuccess=()=>{e(a.result)}:i.oncomplete=()=>{e(void 0)}})}async set(e,t){return this.#c(n=>n.put(t,e),{mode:`readwrite`})}async put(e){return this.#c(t=>t.put(e),{mode:`readwrite`})}async saveEntries(e){return this.#c(t=>{e.forEach(([e,n])=>{t.put(n,e)})},{mode:`readwrite`})}async get(e){return this.#c(t=>t.get(e))}async keys(){return this.#c(e=>e.getAllKeys())}async values(){return this.#c(e=>e.getAll())}async entries(){return new Promise((e,t)=>{this.#c(t=>{let n=t.openCursor(),r=[];n.onsuccess=()=>{let t=n.result;t?(r.push([t.key,t.value]),t.continue()):e(r)}}).catch(t)})}async#l({callback:e=void 0,index:t=void 0,query:n=void 0,direction:r=`next`,multiple:i=!1}){return new Promise((a,o)=>{this.#c(o=>{let s=(t?o.index(t):o).openCursor(n,r),c=[];s.onsuccess=()=>{let t=s.result;if(t){let{value:n}=t;typeof e!=`function`||e(n)?i?(c.push(n),t.continue()):a(n):t.continue()}else a(i?c:void 0)}}).catch(o)})}async find(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n})}async findLast(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,direction:`prev`})}async filter(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,multiple:!0})}async delete(e){await this.#c(t=>t.delete(e),{mode:`readwrite`})}async deleteEntries(e){await this.#c(t=>{e.forEach(e=>{t.delete(e)})},{mode:`readwrite`})}async clear(){await this.#c(e=>e.clear(),{mode:`readwrite`})}},xk=e=>{try{return JSON.parse(e)}catch{return null}},Sk=class{static async set(e,t){if(t===void 0){globalThis.localStorage.removeItem(e);return}globalThis.localStorage.setItem(e,JSON.stringify(t))}static async get(e){let t=globalThis.localStorage.getItem(e);return t?xk(t):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(xk)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,xk(t)])}},Ck=`4.4.3`,wk=`0.63.1`,Tk=[{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`]},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`]},{id:`abap`,name:`ABAP`},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`]},{id:`ada`,name:`Ada`},{id:`angular-html`,name:`Angular HTML`},{id:`angular-ts`,name:`Angular TypeScript`},{id:`apache`,name:`Apache Conf`},{id:`apex`,name:`Apex`},{id:`apl`,name:`APL`},{id:`applescript`,name:`AppleScript`},{id:`ara`,name:`Ara`},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`]},{id:`razor`,name:`ASP.NET Razor`},{id:`asm`,name:`Assembly`},{id:`astro`,name:`Astro`},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`]},{id:`ahk2`,name:`AutoHotkey2`},{id:`awk`,name:`AWK`},{id:`ballerina`,name:`Ballerina`},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`]},{id:`beancount`,name:`Beancount`},{id:`berry`,name:`Berry`,aliases:[`be`]},{id:`bibtex`,name:`BibTeX`},{id:`bicep`,name:`Bicep`},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`]},{id:`blade`,name:`Blade`},{id:`c`,name:`C`},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`]},{id:`cpp`,name:`C++`,aliases:[`c++`]},{id:`c3`,name:`C3`},{id:`cadence`,name:`Cadence`,aliases:[`cdc`]},{id:`cairo`,name:`Cairo`},{id:`chapel`,name:`Chapel`,aliases:[`chpl`]},{id:`clarity`,name:`Clarity`},{id:`clojure`,name:`Clojure`,aliases:[`clj`]},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`]},{id:`cmake`,name:`CMake`},{id:`cobol`,name:`COBOL`},{id:`codeowners`,name:`CODEOWNERS`},{id:`codeql`,name:`CodeQL`,aliases:[`ql`]},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`]},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`]},{id:`crystal`,name:`Crystal`},{id:`css`,name:`CSS`},{id:`csv`,name:`CSV`},{id:`cue`,name:`CUE`},{id:`cypher`,name:`Cypher`,aliases:[`cql`]},{id:`d`,name:`D`},{id:`dart`,name:`Dart`},{id:`dax`,name:`DAX`},{id:`desktop`,name:`Desktop`},{id:`diff`,name:`Diff`},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`]},{id:`dotenv`,name:`dotEnv`},{id:`dream-maker`,name:`Dream Maker`},{id:`edge`,name:`Edge`},{id:`elixir`,name:`Elixir`},{id:`elm`,name:`Elm`},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`]},{id:`erb`,name:`ERB`},{id:`erlang`,name:`Erlang`,aliases:[`erl`]},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`]},{id:`fennel`,name:`Fennel`},{id:`fish`,name:`Fish`},{id:`fluent`,name:`Fluent`,aliases:[`ftl`]},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`]},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`]},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`]},{id:`gdscript`,name:`GDScript`,aliases:[`gd`]},{id:`gdshader`,name:`GDShader`},{id:`genie`,name:`Genie`},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`]},{id:`gherkin`,name:`Gherkin`},{id:`git-commit`,name:`Git Commit Message`},{id:`git-rebase`,name:`Git Rebase Message`},{id:`gleam`,name:`Gleam`},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`]},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`]},{id:`glsl`,name:`GLSL`},{id:`gn`,name:`GN`},{id:`smalltalk`,name:`GNU Smalltalk`},{id:`gnuplot`,name:`Gnuplot`},{id:`go`,name:`Go`},{id:`graphql`,name:`GraphQL`,aliases:[`gql`]},{id:`groovy`,name:`Groovy`},{id:`hack`,name:`Hack`},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`]},{id:`hcl`,name:`HashiCorp HCL`},{id:`haskell`,name:`Haskell`,aliases:[`hs`]},{id:`haxe`,name:`Haxe`},{id:`hjson`,name:`Hjson`},{id:`hlsl`,name:`HLSL`},{id:`html`,name:`HTML`},{id:`html-derivative`,name:`HTML (Derivative)`},{id:`http`,name:`HTTP`},{id:`hurl`,name:`Hurl`},{id:`hxml`,name:`HXML`},{id:`hy`,name:`Hy`},{id:`imba`,name:`Imba`},{id:`ini`,name:`INI`,aliases:[`properties`]},{id:`java`,name:`Java`},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`]},{id:`jinja`,name:`Jinja`},{id:`jison`,name:`Jison`},{id:`json`,name:`JSON`},{id:`jsonl`,name:`JSON Lines`},{id:`jsonc`,name:`JSON with Comments`},{id:`json5`,name:`JSON5`},{id:`jsonnet`,name:`Jsonnet`},{id:`jssm`,name:`JSSM`,aliases:[`fsl`]},{id:`jsx`,name:`JSX`},{id:`julia`,name:`Julia`,aliases:[`jl`]},{id:`just`,name:`Just`,aliases:[`justfile`]},{id:`kdl`,name:`KDL`},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`]},{id:`kusto`,name:`Kusto`,aliases:[`kql`]},{id:`latex`,name:`LaTeX`},{id:`lean`,name:`Lean 4`,aliases:[`lean4`]},{id:`less`,name:`Less`},{id:`liquid`,name:`Liquid`},{id:`llvm`,name:`LLVM IR`},{id:`log`,name:`Log file`},{id:`logo`,name:`Logo`},{id:`lua`,name:`Lua`},{id:`luau`,name:`Luau`},{id:`make`,name:`Makefile`,aliases:[`makefile`]},{id:`markdown`,name:`Markdown`,aliases:[`md`]},{id:`marko`,name:`Marko`},{id:`matlab`,name:`MATLAB`},{id:`mdc`,name:`MDC`},{id:`mdx`,name:`MDX`},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`]},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`]},{id:`mojo`,name:`Mojo`},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`]},{id:`move`,name:`Move`},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`]},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`]},{id:`nextflow-groovy`,name:`Nextflow Groovy`},{id:`nginx`,name:`Nginx`},{id:`nim`,name:`Nim`},{id:`nix`,name:`Nix`},{id:`nsis`,name:`NSIS`},{id:`nushell`,name:`nushell`,aliases:[`nu`]},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`]},{id:`objective-cpp`,name:`Objective-C++`},{id:`ocaml`,name:`OCaml`},{id:`odin`,name:`Odin`},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`]},{id:`org`,name:`Org Markup`},{id:`pascal`,name:`Pascal`},{id:`perl`,name:`Perl`},{id:`php`,name:`PHP`},{id:`pkl`,name:`Pkl`},{id:`plsql`,name:`PL/SQL`},{id:`polar`,name:`Polar`},{id:`postcss`,name:`PostCSS`},{id:`powerquery`,name:`PowerQuery`},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`]},{id:`prisma`,name:`Prisma`},{id:`prolog`,name:`Prolog`},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`]},{id:`pug`,name:`Pug`,aliases:[`jade`]},{id:`puppet`,name:`Puppet`},{id:`purescript`,name:`PureScript`},{id:`python`,name:`Python`,aliases:[`py`]},{id:`qml`,name:`QML`},{id:`qmldir`,name:`QML Directory`},{id:`qss`,name:`Qt Style Sheets`},{id:`r`,name:`R`},{id:`racket`,name:`Racket`},{id:`raku`,name:`Raku`,aliases:[`perl6`]},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`]},{id:`regexp`,name:`RegExp`,aliases:[`regex`]},{id:`rel`,name:`Rel`},{id:`rst`,name:`reStructuredText`},{id:`riscv`,name:`RISC-V`},{id:`coq`,name:`Rocq`},{id:`ron`,name:`RON`},{id:`rosmsg`,name:`ROS Interface`},{id:`ruby`,name:`Ruby`,aliases:[`rb`]},{id:`haml`,name:`Ruby Haml`},{id:`rust`,name:`Rust`,aliases:[`rs`]},{id:`sas`,name:`SAS`},{id:`sass`,name:`Sass`},{id:`scala`,name:`Scala`},{id:`scheme`,name:`Scheme`},{id:`scss`,name:`SCSS`},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`]},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`]},{id:`shellsession`,name:`Shell Session`,aliases:[`console`]},{id:`smithy`,name:`Smithy`},{id:`solidity`,name:`Solidity`},{id:`sparql`,name:`SPARQL`},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`]},{id:`sql`,name:`SQL`},{id:`ssh-config`,name:`SSH Config`},{id:`stata`,name:`Stata`},{id:`stylus`,name:`Stylus`,aliases:[`styl`]},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`]},{id:`svelte`,name:`Svelte`},{id:`swift`,name:`Swift`},{id:`systemd`,name:`Systemd Units`},{id:`system-verilog`,name:`SystemVerilog`},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`]},{id:`tasl`,name:`Tasl`},{id:`tcl`,name:`Tcl`},{id:`templ`,name:`Templ`},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`]},{id:`tex`,name:`TeX`},{id:`toml`,name:`TOML`},{id:`tsv`,name:`TSV`},{id:`tsx`,name:`TSX`},{id:`turtle`,name:`Turtle`},{id:`twig`,name:`Twig`},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`]},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`]},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`]},{id:`typst`,name:`Typst`,aliases:[`typ`]},{id:`v`,name:`V`},{id:`vala`,name:`Vala`},{id:`verilog`,name:`Verilog`},{id:`vhdl`,name:`VHDL`},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`]},{id:`vb`,name:`Visual Basic`},{id:`vue`,name:`Vue`},{id:`vue-html`,name:`Vue HTML`},{id:`vue-vine`,name:`Vue Vine`},{id:`vyper`,name:`Vyper`,aliases:[`vy`]},{id:`wasm`,name:`WebAssembly`},{id:`wit`,name:`WebAssembly Interface Types`},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`]},{id:`wgsl`,name:`WGSL`},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`]},{id:`reg`,name:`Windows Registry Script`},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`]},{id:`xml`,name:`XML`},{id:`xsl`,name:`XSL`},{id:`yaml`,name:`YAML`,aliases:[`yml`]},{id:`zenscript`,name:`ZenScript`},{id:`zig`,name:`Zig`}],Ek=[{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`},{id:`github-light`,displayName:`GitHub Light`,type:`light`},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`},{id:`horizon`,displayName:`Horizon`,type:`dark`},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`},{id:`houston`,displayName:`Houston`,type:`dark`},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`},{id:`laserwave`,displayName:`LaserWave`,type:`dark`},{id:`light-plus`,displayName:`Light Plus`,type:`light`},{id:`material-theme`,displayName:`Material Theme`,type:`dark`},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`},{id:`min-dark`,displayName:`Min Dark`,type:`dark`},{id:`min-light`,displayName:`Min Light`,type:`light`},{id:`monokai`,displayName:`Monokai`,type:`dark`},{id:`night-owl`,displayName:`Night Owl`,type:`dark`},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`},{id:`nord`,displayName:`Nord`,type:`dark`},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`},{id:`one-light`,displayName:`One Light`,type:`light`},{id:`plastic`,displayName:`Plastic`,type:`dark`},{id:`poimandres`,displayName:`Poimandres`,type:`dark`},{id:`red`,displayName:`Red`,type:`dark`},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`},{id:`vesper`,displayName:`Vesper`,type:`dark`},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`}],Dk=`sveltia-ui`,Ok=`shiki`,kk,Ak,jk=!0,Mk=(e,t)=>`${Ck}/${e}/${t}`,Nk=()=>(kk===void 0&&(kk=typeof indexedDB>`u`?null:new bk(Dk,Ok)),kk),Pk=async e=>(Ak??=(async()=>{let t=(await e.keys()).filter(e=>typeof e==`string`&&!e.startsWith(`4.4.3/`));t.length&&await e.deleteEntries(t)})(),Ak),Fk=async(e,t)=>{let n=jk?Nk():null;if(n)try{return await Pk(n),await n.get(Mk(e,t))}catch{return}},Ik=async(e,t,n)=>{let r=jk?Nk():null;if(r)try{await r.set(Mk(e,t),n)}catch{}},Lk=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Rk=`https://unpkg.com/@shikijs`,zk=`https://unpkg.com/@sveltia/ui`,Bk=()=>`${zk}@${wk}/dist/shiki-engine.js`,Vk=e=>`${Rk}/langs@${Ck}/dist/${e}.mjs`,Hk=e=>`${Rk}/themes@${Ck}/dist/${e}.mjs`,Uk={loadEngine:async()=>Lk(()=>import(Bk()),void 0),loadLanguage:async e=>Lk(()=>import(Vk(e)),void 0),loadTheme:async e=>Lk(()=>import(Hk(e)),void 0)},Wk=()=>Uk,Gk=`github-light`,Kk=`github-dark`,qk=()=>{if(typeof document>`u`)return Gk;let{theme:e}=document.documentElement.dataset;return e?e===`dark`?Kk:Gk:window.matchMedia(`(prefers-color-scheme: dark)`).matches?Kk:Gk},Jk=e=>{if(typeof document>`u`)return()=>void 0;let t=()=>{let t=qk();e.update(()=>{mb().getChildren().forEach(e=>{fT(e)&&e.getTheme()!==t&&(e.setTheme(t),e.markDirty())})},{tag:p_})},n=new MutationObserver(t);n.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]});let r=window.matchMedia(`(prefers-color-scheme: dark)`);return r.addEventListener(`change`,t),()=>{n.disconnect(),r.removeEventListener(`change`,t)}},Yk=[``,`plain`,`plaintext`,`text`,`txt`],Xk=/^diff-([\w-]+)/i,Zk=null,Qk=null,$k=!1,eA=e=>Xk.exec(e)?.[1]??null,tA=e=>Yk.includes(e??``),nA=()=>!!Qk,rA=()=>$k,iA=e=>{if(!Qk)return!1;let t=eA(e)??e;return Zk.isSpecialLang(t)?!0:Qk.getLoadedLanguages().includes(t)},aA=(e,t)=>{e.update(()=>{let e=sb(t);if(!fT(e))return;let n=e.getLanguage();n&&iA(n)&&!e.getIsSyntaxHighlightSupported()&&e.setIsSyntaxHighlightSupported(!0),e.markDirty()},{tag:p_})},oA=new Map,sA=(e,t,n,r)=>{let i=oA.get(e);if(!i){let n=new Map;i={promise:(async()=>{try{await t()}catch{}oA.delete(e),n.forEach((e,t)=>aA(e,t))})(),targets:n},oA.set(e,i)}return n&&r&&i.targets.set(r,n),i.promise},cA=(e,t)=>{if(!(Qk||$k))return sA(`engine`,async()=>{try{Zk=await Wk().loadEngine(),Qk=Zk.createHighlighterCoreSync({engine:Zk.createJavaScriptRegexEngine(),langs:[],themes:[]})}catch{$k=!0}},e,t)},lA=async(e,t,n)=>{let r=await Fk(e,t);if(r)return r;let i=await n();if(!i)return;let a=i.default??i;return await Ik(e,t,a),a},uA=e=>Tk.find(({id:t,aliases:n})=>t===e||n?.includes(e))?.id??e,dA=(e,t,n)=>{let r=eA(e)??e;if(!Qk||iA(r))return;let i=Tk.find(({id:e,aliases:t})=>e===r||t?.includes(r));if(i)return sA(`lang/${i.id}`,async()=>{let e=await lA(`lang`,i.id,()=>Wk().loadLanguage(i.id));e&&await Qk.loadLanguage(e)},t,n)},fA=e=>Qk?Zk.isSpecialTheme(e)||Qk.getLoadedThemes().includes(e):!1,pA=(e,t,n)=>{if(!(!Qk||fA(e))&&Ek.some(({id:t})=>t===e))return sA(`theme/${e}`,async()=>{let t=await lA(`theme`,e,()=>Wk().loadTheme(e));t&&await Qk.loadTheme(t)},t,n)},mA=(e,t)=>{let n=[];return e.forEach((e,r)=>{r&&n.push(Cy()),e.forEach((e,r)=>{let{content:i}=e;if(t&&r===0&&i.length>0){let e=[`+`,`-`,`>`,`<`,` `],t=[`inserted`,`deleted`,`inserted`,`deleted`,`unchanged`],r=e.indexOf(i[0]);r!==-1&&(n.push(ST(e[r],t[r])),i=i.slice(1))}let a=Zk.stringifyTokenStyle(e.htmlStyle||Zk.getTokenStyleObject(e));Tv(i,{linebreak:()=>n.push(Cy()),tab:()=>n.push(F_()),text:e=>{let t=ST(e);t.setStyle(a),n.push(t)}})})}),n},hA=(e,t)=>{let n=eA(t),{tokens:r}=Qk.codeToTokens(e.getTextContent(),{lang:n??t,theme:e.getTheme()});return mA(r,!!n)},gA=(e,t,{theme:n}={})=>{let r=uA(eA(t)??t);if(!Qk||tA(r)||!iA(r))return;let i=n??qk();if(fA(i))return Qk.codeToHtml(e,{lang:r,theme:i})},_A={defaultLanguage:aT,defaultTheme:`github-light`,tokenize(e,t){let n=t||this.defaultLanguage;return n===null||tA(n)||!nA()?rT(e.getTextContent()):hA(e,n)}},vA=(e,t)=>{let n=t.getElementByKey(e.getKey());if(n===null)return;let r=e.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let a=`1`,o=1;for(let e=0;e<i;e+=1)wy(r[e])&&(o+=1,a+=`\n${o}`);n.setAttribute(`data-gutter`,a)},yA=(e,t)=>CT(e)&&CT(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType&&e.__style===t.__style||I_(e)&&I_(t)||wy(e)&&wy(t),bA=(e,t)=>{let n=0;for(;n<e.length&&yA(e[n],t[n]);)n+=1;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o+=1,!yA(e[r-o],t[i-o])){--o;break}return{from:n,to:r-o,nodesForReplacement:t.slice(n,i-o)}},xA=(e,t)=>{let n=sb(e);if(!fT(n)||!n.isAttached())return;let r=gv();if(!Q(r)){t();return}let{anchor:i}=r,a=i.offset,o=i.type===`element`&&wy(n.getChildAtIndex(i.offset-1)),s=0;if(o||(s=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o){i.getNode().select(a,a);return}n.getChildren().some(e=>{let t=Z(e);if(t||wy(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}},SA=(e,t,n,r)=>{let i=r.getKey(),{nodesCurrentlyHighlighting:a}=n,o=r.getLanguage();!o&&t.defaultLanguage!==null&&(o=t.defaultLanguage,r.setLanguage(o));let s=r.getTheme();s||(s=t.defaultTheme,r.setTheme(s));let c=!o||tA(o),l=!1;if(c||!o||rA()?r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1):nA()?(fA(s)||(pA(s,e,i),l=!0),iA(o)?r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0):(!dA(o,e,i)&&r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),l=!0)):(cA(e,i),l=!0),!l){if(a.has(i)){n.pendingRefresh.has(i)||(n.pendingRefresh.add(i),Bb(()=>{n.pendingRefresh.delete(i),e.update(()=>{let e=sb(i);fT(e)&&e.markDirty()},{tag:p_})}));return}a.add(i),n.didTransform||(n.didTransform=!0,Bb(()=>{n.didTransform=!1,a.clear()})),xA(i,()=>{let e=sb(i);if(!fT(e)||!e.isAttached())return!1;let n=e.getLanguage()||t.defaultLanguage,a=t.tokenize(e,n??void 0),{from:o,to:s,nodesForReplacement:c}=bA(e.getChildren(),a);return o!==s||c.length?(r.splice(o,s-o,c),!0):!1})}},CA=(e,t,n,r)=>{let i=r.getParent();fT(i)?SA(e,t,n,i):CT(r)&&r.replace(M_(r.__text))},wA=(e,t=_A)=>{if(!e.hasNodes([uT,bT]))throw Error(`CodeNode or CodeHighlightNode not registered on editor`);let n=[];e._headless!==!0&&n.push(e.registerMutationListener(uT,t=>{e.read(`latest`,()=>{t.forEach((t,n)=>{if(t!==`destroyed`){let t=sb(n);t!==null&&vA(t,e)}})})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set,pendingRefresh:new Set};return n.push(e.registerNodeTransform(uT,SA.bind(null,e,t,r)),e.registerNodeTransform(D_,CA.bind(null,e,t,r)),e.registerNodeTransform(bT,CA.bind(null,e,t,r)),kT(e)),uC(...n)},TA={dependencies:[Cw],export:e=>Jee(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=ww();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},EA=/^(?:\|)(.+)(?:\|)\s?$/,DA=/^(\| ?:?-*:? ?)+\|\s?$/,OA=e=>{let t=e.getFirstChild();return VO(t)?t.getChildrenSize():0},kA=e=>{e=e.replace(/\\n/g,`
|
|
73
73
|
`);let t=FO(jO.NO_STATUS);return OO(e,sO,t),t},AA=e=>{let[,t]=e.match(EA)??[];return t?t.split(`|`).map(e=>kA(e)):null},jA={dependencies:[$O,RO,MO],export:e=>{if(!nk(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!VO(e))return;let r=!1;e.getChildren().forEach(e=>{IO(e)&&(n.push(kO(sO,e).replace(/\n/g,`\\n`).trim()),e.__headerState===jO.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(`
|
|
74
|
-
`)},regExp:EA,replace:(e,t,[n])=>{if(DA.test(n)){let t=e.getPreviousSibling();if(!t||!nk(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!VO(r))return;r.getChildren().forEach(e=>{IO(e)&&e.setHeaderStyles(jO.ROW,jO.ROW)}),e.remove();return}let r=AA(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!Oy(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!Z(e))break;let t=AA(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=tk();i.forEach(e=>{let t=BO();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:kA(``))});let c=e.getPreviousSibling();nk(c)&&OA(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`},MA=()=>{let e=gv();if(!Q(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=fk.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof dy?t:TC(t,dy),KT(n)&&(r.push(`link`),n=TC(n,dy)),yE(n)&&(n=TC(n,bE)));let i=(()=>{if(!n)return`paragraph`;if(fD(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(TE(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(sD(n))return`blockquote`;if(fT(n)||CT(n))return`code-block`;let e=n.getType();return mk.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},NA=(e,t)=>{let n=t.filter(({tag:e})=>!_k.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:kO(n).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:MA()}}))},PA=({enabledButtons:e=[],components:t=[],useMarkdownShortcuts:n,isCodeEditor:r=!1,defaultLanguage:i=`plain`})=>{let a={namespace:`editor`,nodes:[...t.map(({node:e})=>e),...new Set(Object.entries(hk).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[uT,bT]:[Cw,$O,MO,RO]],theme:uk},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(gk).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[YD]:[TA,jA]],s=My(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(_te(s)),l(FT(s)),l(BT(s,VT(),1e3)),n&&l(DO(s,o)),(e.includes(`code-block`)||r)&&(l(wA(s,{..._A,defaultLanguage:i,defaultTheme:qk()})),l(Jk(s))),e.includes(`link`)&&(l(s.registerCommand(XT,e=>(QT(typeof e==`string`?e:null),!0),2)),l(s.registerCommand(Gh,e=>{let t=gv();if(!Q(t)||!DC(e,ClipboardEvent)||!e.clipboardData||e.target.matches(`input, textarea`))return!1;let n=e.clipboardData.getData(`text`).trim();return ck(n)?(t.isCollapsed()&&wv([M_(n)]),!t.getNodes().some(e=>$(e)||Z(e)&&!e.isSimpleText())&&(s.dispatchCommand(XT,n),e.preventDefault(),!0)):!1},1))),e.includes(`bulleted-list`)&&l(s.registerCommand(EE,()=>(oE(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(DE,()=>(oE(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand(Uh,()=>pE(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await Wc(100),s.update(()=>{if(r){let e=mb(),t=e.getChildren();if(t.length===1&&!fT(t[0])&&t[0].remove(),t.length===0){let t=dT();t.setLanguage(i),e.append(t)}}NA(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=gv();if(!Q(t))return;let n=t.anchor.getNode(),r=n instanceof dy?n:TC(n,dy);yE(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(mg,void 0)):(e.preventDefault(),s.dispatchCommand(pg,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},FA=async e=>{tA(e)||(await cA(),await Promise.all([dA(uA(e)),pA(qk())]))},IA=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>FA(e))),t=vk(t),t=yk(t),new Promise((r,i)=>{e.update(()=>{try{OO(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),LA=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})}),RA=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),zA=V(`<div></div>`),BA={hash:`svelte-1umq1qn`,code:`.lexical-root.svelte-1umq1qn {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:120px;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-1umq1qn:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-1umq1qn {padding:0;}.lexical-root.code.svelte-1umq1qn .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-1umq1qn:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-1umq1qn {border-color:var(--sui-error-border-color);}.lexical-root.svelte-1umq1qn [dir]:first-child {margin-top:0;}.lexical-root.svelte-1umq1qn [dir]:last-child {margin-bottom:0;}.lexical-root.svelte-1umq1qn strong.italic {font-style:italic;}.lexical-root.svelte-1umq1qn .strikethrough {text-decoration:line-through;}.lexical-root.svelte-1umq1qn li.nested {list-style-type:none;}.lexical-root.svelte-1umq1qn .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-1umq1qn .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-1umq1qn .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-1umq1qn .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-1umq1qn [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-1umq1qn :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-1umq1qn hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-1umq1qn hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}`};function VA(e,t){O(t,!0),K(e,BA);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=co(t,RA),c=bt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));R(()=>{c.editor?.setEditable(B(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};fo(()=>{let{editor:e,enabledTransformers:t,dispose:n}=PA(c.config);return c.editor=e,c.enabledTransformers=t,B(l)?.addEventListener(`Update`,d),B(l)?.addEventListener(`click`,f),()=>{B(l)?.removeEventListener(`Update`,d),B(l)?.removeEventListener(`click`,f),n(),e.setRootElement(null),c.initialized=!1,c.editor=void 0}}),R(()=>{c.editor&&B(l)&&(c.editor.setRootElement(B(l)),c.initialized=!0)});var p=zA();Qa(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:B(u),hidden:n(),[Va]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-1umq1qn`),oo(p,e=>P(l,e),()=>B(l)),U(e,p),k()}var HA=()=>{let e=nl(`editor`),t=N(!1),n=N(void 0),r=N(Yn([])),i=N(Yn({modes:[],enabledButtons:[],components:[],useMarkdownShortcuts:!0,isCodeEditor:!1})),a=N(``),o=N(Yn({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),s=N(!0),c=N(!1),l=N(!1),u=async()=>{if(!B(n)||!B(t))return;let e=B(a);try{await IA(B(n),B(a)||``,B(r))}catch(t){P(c,!0),P(a,e,!0),console.error(t)}};return{get editor(){return B(n)},set editor(e){P(n,e,!0)},set enabledTransformers(e){P(r,e,!0)},get enabledTransformers(){return B(r)},get initialized(){return B(t)},set initialized(e){P(t,e,!0)},get config(){return B(i)},set config(e){P(i,e,!0),P(s,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return B(a)},set inputValue(e){let t=B(a)!==e;t&&P(a,e,!0),B(s)&&(t||B(n)?.getEditorState().isEmpty())&&u()},get selection(){return B(o)},set selection(e){P(o,e,!0)},get useRichText(){return B(s)},set useRichText(e){P(s,e,!0)},get hasConverterError(){return B(c)},set hasConverterError(e){P(c,e,!0),B(c)&&(P(s,!1),P(l,!0))},get showConverterError(){return B(l)},set showConverterError(e){P(l,e,!0)},editorId:e,convertMarkdown:u}},UA=V(`<!> <!>`,1);function WA(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=Tk.map(({id:e,name:t,aliases:n=[]})=>({key:e,label:t,aliases:n})),i=bt(`editorStore`),a=N(`plain`);R(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?mb().getChildren()[0]:sb(i.selection.blockNodeKey);fT(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>Y(`_sui.text_editor.language`));Pf(e,{get disabled(){return n()},get"aria-label"(){return B(t)},get value(){return B(a)},onChange:async({detail:{value:e}})=>{!i.editor||B(a)===e||(await LA(i.editor),await FA(e),i.editor.update(()=>{let{blockNodeKey:t}=i.selection,n=i.config.isCodeEditor?mb().getChildren()[0]:t?sb(t):null;fT(n)&&(n.setLanguage(e),P(a,e,!0))}))},children:(e,t)=>{var n=UA(),i=I(n);{let e=M(()=>Y(`_sui.text_editor.plain_text`));Od(i,{get label(){return B(e)},value:`plain`,dir:`ltr`})}ia(L(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>B(t).key,r=()=>B(t).label,i=()=>B(t).aliases;{let t=M(()=>n()===B(a)||i().includes(B(a)));Od(e,{get label(){return r()},get value(){return n()},get selected(){return B(t)},dir:`ltr`})}}),U(e,n)},$$slots:{default:!0}})}k()}var GA=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`ariaLabel`,`children`]),KA=V(`<div><div role="none" class="inner svelte-177iyl"><!></div></div>`),qA={hash:`svelte-177iyl`,code:`[role=toolbar].svelte-177iyl {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-177iyl {--toolbar-size: var(--sui-primary-toolbar-size);}
|
|
75
|
-
@media (width < 768px) {[role=toolbar].secondary.svelte-
|
|
76
|
-
}[role=toolbar][aria-orientation=horizontal].svelte-
|
|
77
|
-
@media (width < 768px) {.wrapper.svelte-
|
|
78
|
-
}.wrapper.svelte-
|
|
79
|
-
.clone.svelte-4jfg7g {white-space:pre-wrap;word-break:break-all;}`};function cj(e,t){O(t,!0),K(e,sj);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`name`,3,void 0),o=J(t,`autoResize`,3,!1),s=J(t,`hidden`,3,!1),c=J(t,`disabled`,3,!1),l=J(t,`readonly`,3,!1),u=J(t,`required`,3,!1),d=J(t,`invalid`,3,!1),f=co(t,ij);var p=oj();let m;var h=F(p);Qt(h),Qa(h,()=>({...f,dir:i(),name:a(),disabled:c()||void 0,readonly:l()||void 0,"aria-hidden":s(),"aria-disabled":c(),"aria-readonly":l(),"aria-required":u(),"aria-invalid":d(),[Va]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-4jfg7g`);var g=L(h,2),_=e=>{var t=aj(),r=F(t,!0);D(t),z(()=>{q(t,`dir`,i()),W(r,n()),t.dir=t.dir}),U(e,t)};G(g,e=>{o()&&e(_)}),D(p),z(()=>{m=Fa(p,1,`sui text-area ${t.class??``}`,`svelte-4jfg7g`,m,{flex:r(),disabled:c(),readonly:l()}),q(p,`hidden`,s()),h.dir=h.dir}),no(h,n),U(e,p),k()}var lj=e=>Array.isArray(e)&&e.every(e=>_(e)),uj=e=>[...new Set(e)];function dj(e,t){O(t,!0);let n=bt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{_o(e,{get name(){return dk[t.type].icon}})},a=M(()=>Y(`_sui.text_editor.${dk[t.type].labelKey}`)),o=M(()=>!n.useRichText);Tl(e,{iconic:!0,get"aria-label"(){return B(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return B(o)},get pressed(){return B(r)},onclick:async()=>{n.editor&&(await LA(n.editor),n.editor.dispatchCommand(Yh,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}function fj(e,t){O(t,!0);let n=bt(`editorStore`),r=M(()=>t.component.label),i=M(()=>t.component.icon),a=M(()=>t.component.createNode);{let t=e=>{var t=H(),n=I(t),r=e=>{_o(e,{get name(){return B(i)}})};G(n,e=>{B(i)&&e(r)}),U(e,t)},o=M(()=>!!B(i)),s=M(()=>B(i)?void 0:B(r)),c=M(()=>!n.useRichText);Tl(e,{get iconic(){return B(o)},get label(){return B(s)},get title(){return B(r)},get"aria-label"(){return B(r)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return B(c)},onclick:()=>{n.editor?.update(()=>{wv([B(a)(),Dy()])})},startIcon:t,$$slots:{startIcon:!0}})}k()}var pj=V(`<div role="none"><label> </label> <!></div>`),mj=V(`<div role="none"><label> </label> <!></div> <!>`,1),hj=V(`<!> <!>`,1);function gj(e,t){let n=Bi();O(t,!0);let r=`link`,i=bt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=Dv().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(XT,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=gv();if(Q(e)){let t=e.anchor.getNode(),n=(t instanceof UT?t:TC(t,UT))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{B(a)?p():d()},h=e=>{Ic(e,`Enter`)&&B(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&B(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=gv()??_v()?.clone();Q(t)||(t=pv()),B(c)||(P(u,B(u).trim(),!0),P(u,B(u)||B(l),!0),wv([M_(B(u))])),hb(t),e(void 0)})}),await LA(i.editor),i.editor.dispatchCommand(XT,B(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand($h,e=>(Ic(e,Oc()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};R(()=>{i.editor&&_()});var v=hj(),y=I(v);{let e=e=>{_o(e,{get name(){return dk[r].icon}})},t=M(()=>Y(`_sui.text_editor.${dk[r].labelKey}`)),n=M(()=>!i.useRichText);Tl(y,{iconic:!0,get"aria-label"(){return B(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return B(n)},get pressed(){return B(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>Y(`_sui.remove`));Tl(e,{variant:`secondary`,get label(){return B(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};G(n,e=>{B(s)!==`create`&&e(r)}),U(e,t)},t=M(()=>B(s)===`create`?Y(`_sui.text_editor.insert_link`):Y(`_sui.text_editor.update_link`)),r=M(()=>!B(l)),i=M(()=>B(s)===`create`?Y(`_sui.insert`):Y(`_sui.update`));Lu(b,{get title(){return B(t)},get okDisabled(){return B(r)},get okLabel(){return B(i)},onClose:e=>{g(e)},get open(){return B(o)},set open(e){P(o,e,!0)},get value(){return B(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=mj(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);{let e=M(()=>Y(`_sui.text_editor.url`));Ku(s,{dir:`ltr`,get id(){return`${n}-url`},flex:!0,get"aria-label"(){return B(e)},onkeydown:e=>{h(e)},get value(){return B(l)},set value(e){P(l,e,!0)}})}D(i);var d=L(i,2),f=e=>{var t=pj(),r=F(t),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>Y(`_sui.text_editor.text`));Ku(a,{dir:`auto`,get id(){return`${n}-text`},flex:!0,get"aria-label"(){return B(e)},onkeydown:e=>{h(e)},get value(){return B(u)},set value(e){P(u,e,!0)}})}D(t),z(e=>{q(r,`for`,`${n}-text`),W(i,e)},[()=>Y(`_sui.text_editor.text`)]),U(e,t)};G(d,e=>{B(c)||e(f)}),z(e=>{q(a,`for`,`${n}-url`),W(o,e)},[()=>Y(`_sui.text_editor.url`)]),U(e,r)},$$slots:{footerExtra:!0,default:!0}})}U(e,v),k()}function _j(e,t){O(t,!0);let n=bt(`editorStore`);{let r=e=>{_o(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{Md(e,{children:(e,r)=>{var i=H();ia(I(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>B(t).label,i=()=>B(t).icon,a=()=>B(t).createNode;Rd(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{wv([a()(),Dy()])})},startIcon:e=>{var t=H(),n=I(t),r=e=>{_o(e,{get name(){return i()}})};G(n,e=>{i()&&e(r)}),U(e,t)},$$slots:{startIcon:!0}})}),U(e,i)},$$slots:{default:!0}})},a=M(()=>!n.useRichText),o=M(()=>Y(`_sui.insert`));cu(e,{get disabled(){return B(a)},get label(){return B(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}function vj(e,t){O(t,!0);let n=bt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await LA(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{_C(gv(),()=>dD(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{_C(gv(),()=>Dy())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(EE,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(DE,void 0),t.type===`blockquote`&&n.editor.update(()=>{_C(gv(),()=>oD())}),t.type===`code-block`&&n.editor.update(()=>{_C(gv(),()=>dT())})};var a=H();Qi(I(a),()=>B(r),e=>{{let n=e=>{_o(e,{get name(){return dk[t.type].icon}})},a=M(()=>Y(`_sui.text_editor.${dk[t.type].labelKey}`));Bd(e,{get label(){return B(a)},get checked(){return B(r)},onclick:()=>{B(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),U(e,a),k()}var yj=V(`<!> <!>`,1),bj=V(`<!> <!> <!>`,1),xj=V(`<!> <!> <!> <!>`,1);function Sj(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1),i=bt(`editorStore`),a=M(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`button`)),o=M(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`menuitem`)),s=M(()=>uj([`paragraph`,...i.config.enabledButtons.filter(e=>mk.includes(e))])),c=M(()=>uj(i.config.enabledButtons.filter(e=>pk.includes(e))));{let t=M(()=>n()||r()),l=M(()=>Y(`_sui.text_editor.text_editor`));QA(e,{get disabled(){return B(t)},get"aria-label"(){return B(l)},children:(e,t)=>{var n=xj(),r=I(n),l=e=>{{let t=e=>{{let t=M(()=>dk[i.selection.blockType??``]?.icon??`format_paragraph`);_o(e,{get name(){return B(t)}})}},n=e=>{{let t=M(()=>Y(`_sui.text_editor.text_style_options`));Md(e,{get"aria-label"(){return B(t)},children:(e,t)=>{var n=H();ia(I(n),16,()=>B(s),e=>e,(e,t)=>{vj(e,{get type(){return t}})}),U(e,n)},$$slots:{default:!0}})}},r=M(()=>!i.useRichText),a=M(()=>Y(`_sui.text_editor.show_text_style_options`));cu(e,{get disabled(){return B(r)},get"aria-label"(){return B(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:t,popup:n,$$slots:{startIcon:!0,popup:!0}})}};G(r,e=>{B(s).length>1&&e(l)});var u=L(r,2),d=e=>{var t=yj(),n=I(t);gu(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);WA(r,{get disabled(){return B(e)}})}U(e,t)},f=e=>{var t=yj(),n=I(t),r=e=>{var t=yj(),n=I(t);gu(n,{orientation:`vertical`}),Ll(L(n,2),{children:(e,t)=>{var n=H();ia(I(n),16,()=>B(c),e=>e,(e,t)=>{var n=H(),r=I(n),i=e=>{gj(e,{})},a=e=>{dj(e,{get type(){return t}})};G(r,e=>{t===`link`?e(i):e(a,-1)}),U(e,n)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(n,e=>{B(c).length&&e(r)});var s=L(n,2),l=e=>{var t=bj(),n=I(t);gu(n,{orientation:`vertical`});var r=L(n,2);ia(r,17,()=>B(a),e=>e.id,(e,t)=>{fj(e,{get component(){return B(t)}})});var i=L(r,2),s=e=>{_j(e,{get components(){return B(o)}})};G(i,e=>{B(o).length&&e(s)}),U(e,t)};G(s,e=>{i.config.components.length&&e(l)}),U(e,t)};G(u,e=>{i.selection.blockType===`code-block`?e(d):e(f,-1)});var p=L(u,2);bu(p,{flex:!0});var m=L(p,2),h=e=>{{let t=e=>{_o(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>Y(`_sui.text_editor.edit_in_markdown`));Tl(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return B(n)},get"aria-label"(){return B(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};G(m,e=>{i.config.modes.length>1&&e(h)}),U(e,n)},$$slots:{default:!0}})}k()}var Cj=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`useMarkdownShortcuts`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),wj=V(`<div><!> <!> <!></div> <!>`,1),Tj={hash:`svelte-n3xfzx`,code:`.text-editor.svelte-n3xfzx {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.text-editor.svelte-n3xfzx:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.text-editor.flex.svelte-n3xfzx:not([hidden]) {display:block;}.text-editor.svelte-n3xfzx .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-n3xfzx .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`};function Ej(e,t){O(t,!0),K(e,Tj);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=J(t,`buttons`,19,()=>[...pk,...mk]),s=J(t,`components`,19,()=>[]),c=J(t,`useMarkdownShortcuts`,3,!0),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`required`,3,!1),p=J(t,`invalid`,3,!1),m=co(t,Cj),h=HA();h.config={...h.config,modes:a(),enabledButtons:o(),components:s(),useMarkdownShortcuts:c()},xt(`editorStore`,h),R(()=>{if(!h.initialized)return;let e=n();pi(()=>{h.inputValue=e})}),R(()=>{if(!h.initialized)return;let e=h.inputValue;pi(()=>{n()!==e&&n(e)})});var g=wj(),_=I(g);Qa(_,()=>({...m,role:`none`,class:`sui text-editor`,hidden:l(),[Va]:{flex:r()}}),void 0,void 0,void 0,`svelte-n3xfzx`);var v=F(_);Sj(v,{get disabled(){return u()},get readonly(){return d()}});var y=L(v,2);{let e=M(()=>!h.useRichText||l());VA(y,{get hidden(){return B(e)},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return p()}})}var b=L(y,2);{let e=M(()=>h.useRichText||l());cj(b,{autoResize:!0,get flex(){return r()},get dir(){return i()},get hidden(){return B(e)},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return p()},get value(){return h.inputValue},set value(e){h.inputValue=e}})}D(_);var x=L(_,2),S=e=>{xp(e,{get show(){return h.showConverterError},set show(e){h.showConverterError=e},children:(e,t)=>{xo(e,{status:`error`,children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>Y(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(x,e=>{h.showConverterError&&e(S)}),U(e,g),k()}var Dj=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),Oj=V(`<div role="none"><div role="none" class="buttons svelte-1hm6zyl"><!> <!></div> <!></div>`),kj={hash:`svelte-1hm6zyl`,code:`.number-input.svelte-1hm6zyl {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-1hm6zyl:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-1hm6zyl :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-1hm6zyl :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-1hm6zyl :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-1hm6zyl :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-1hm6zyl .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-1hm6zyl {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-1hm6zyl button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-1hm6zyl button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-1hm6zyl button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-1hm6zyl button .icon {font-size:20px;}`};function Aj(e,t){let n=Bi();O(t,!0),K(e,kj);let r=J(t,`value`,15),i=J(t,`invalid`,15,!1),a=J(t,`flex`,3,!1),o=J(t,`min`,3,void 0),s=J(t,`max`,3,void 0),c=J(t,`step`,3,1),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`required`,3,!1),p=co(t,Dj),m=N(!1),h=N(``),g=M(()=>String(c()).split(`.`)[1]?.length||0),_=M(()=>typeof o()==`number`&&Number(B(h)||0)<=o()),v=M(()=>typeof s()==`number`&&Number(B(h)||0)>=s());R(()=>{let e=String(r()??``);pi(()=>{B(h)!==e&&P(h,e,!0)})}),R(()=>{let e=B(h).trim()?Number(B(h)):NaN;r(Number.isNaN(e)?void 0:e)}),R(()=>{B(m)&&i(f()&&(r()===void 0||B(h)===``)||B(h)!==void 0&&B(h)!==``&&(Number.isNaN(Number(B(h)))||typeof o()==`number`&&Number(B(h)||0)<o()||typeof s()==`number`&&Number(B(h)||0)>s()))});let y=()=>{B(_)||Number.isNaN(Number(B(h)))||P(h,Number(Number(B(h)||0)-c()).toFixed(B(g)),!0)},b=()=>{B(v)||Number.isNaN(Number(B(h)))||P(h,Number(Number(B(h)||0)+c()).toFixed(B(g)),!0)};var x=Oj();let S;var C=F(x),w=F(C);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.increaseIcon),U(e,n)},a=e=>{_o(e,{name:`expand_less`})};G(r,e=>{t.increaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||B(v)),a=M(()=>Y(`_sui.number_input.increase`));Tl(w,{iconic:!0,get disabled(){return B(i)},get"aria-label"(){return B(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var T=L(w,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.decreaseIcon),U(e,n)},a=e=>{_o(e,{name:`expand_more`})};G(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||B(_)),a=M(()=>Y(`_sui.number_input.decrease`));Tl(T,{iconic:!0,get disabled(){return B(i)},get"aria-label"(){return B(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var ee=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>B(g)>0?`decimal`:`numeric`);Ku(ee,uo({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return B(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return B(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),B(m)||P(m,!0)},oninput:()=>{B(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return B(h)},set value(e){P(h,e,!0)}}))}D(x),z(()=>{S=Fa(x,1,`sui number-input ${t.class??``}`,`svelte-1hm6zyl`,S,{flex:a(),disabled:u(),readonly:d()}),q(x,`hidden`,l())}),U(e,x),k()}var jj=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),Mj=V(`<div role="none"><!> <!></div>`),Nj={hash:`svelte-ldtr7c`,code:`.secret-input.svelte-ldtr7c {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-ldtr7c:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-ldtr7c input {-webkit-text-security:none;}.secret-input.svelte-ldtr7c .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-ldtr7c input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-ldtr7c button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-ldtr7c button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-ldtr7c button .icon {font-size:var(--sui-font-size-xx-large);}`};function Pj(e,t){let n=Bi();O(t,!0),K(e,Nj);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`monospace`,3,!0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=co(t,jj),f=N(void 0),p=N(!1);var m=Mj();let h;var g=F(m);Ku(g,uo({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return B(f)},set element(e){P(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=L(g,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.visibilityIcon),U(e,n)},a=e=>{{let t=M(()=>B(p)?`visibility_off`:`visibility`);_o(e,{get name(){return B(t)}})}};G(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>s()||c()),i=M(()=>Y(B(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));Tl(_,{iconic:!0,get disabled(){return B(r)},get pressed(){return B(p)},get"aria-label"(){return B(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!B(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),z(()=>{h=Fa(m,1,`sui secret-input ${t.class??``}`,`svelte-ldtr7c`,h,{flex:i(),disabled:s(),readonly:c(),show:B(p)}),q(m,`hidden`,o())}),U(e,m),k()}var Fj=V(`<link rel="preconnect" href="https://cdn.jsdelivr.net/"/>`),Ij={hash:`svelte-x07ca`,code:`
|
|
74
|
+
`)},regExp:EA,replace:(e,t,[n])=>{if(DA.test(n)){let t=e.getPreviousSibling();if(!t||!nk(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!VO(r))return;r.getChildren().forEach(e=>{IO(e)&&e.setHeaderStyles(jO.ROW,jO.ROW)}),e.remove();return}let r=AA(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!Oy(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!Z(e))break;let t=AA(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=tk();i.forEach(e=>{let t=BO();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:kA(``))});let c=e.getPreviousSibling();nk(c)&&OA(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`},MA=()=>{let e=gv();if(!Q(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=fk.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof dy?t:TC(t,dy),KT(n)&&(r.push(`link`),n=TC(n,dy)),yE(n)&&(n=TC(n,bE)));let i=(()=>{if(!n)return`paragraph`;if(fD(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(TE(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(sD(n))return`blockquote`;if(fT(n)||CT(n))return`code-block`;let e=n.getType();return mk.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},NA=(e,t)=>{let n=t.filter(({tag:e})=>!_k.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:kO(n).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:MA()}}))},PA=({enabledButtons:e=[],components:t=[],useMarkdownShortcuts:n,isCodeEditor:r=!1,defaultLanguage:i=`plain`})=>{let a={namespace:`editor`,nodes:[...t.map(({node:e})=>e),...new Set(Object.entries(hk).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[uT,bT]:[Cw,$O,MO,RO]],theme:uk},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(gk).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[YD]:[TA,jA]],s=My(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(_te(s)),l(FT(s)),l(BT(s,VT(),1e3)),n&&l(DO(s,o)),(e.includes(`code-block`)||r)&&(l(wA(s,{..._A,defaultLanguage:i,defaultTheme:qk()})),l(Jk(s))),e.includes(`link`)&&(l(s.registerCommand(XT,e=>(QT(typeof e==`string`?e:null),!0),2)),l(s.registerCommand(Gh,e=>{let t=gv();if(!Q(t)||!DC(e,ClipboardEvent)||!e.clipboardData||e.target.matches(`input, textarea`))return!1;let n=e.clipboardData.getData(`text`).trim();return ck(n)?(t.isCollapsed()&&wv([M_(n)]),!t.getNodes().some(e=>$(e)||Z(e)&&!e.isSimpleText())&&(s.dispatchCommand(XT,n),e.preventDefault(),!0)):!1},1))),e.includes(`bulleted-list`)&&l(s.registerCommand(EE,()=>(oE(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(DE,()=>(oE(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand(Uh,()=>pE(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await Wc(100),s.update(()=>{if(r){let e=mb(),t=e.getChildren();if(t.length===1&&!fT(t[0])&&t[0].remove(),t.length===0){let t=dT();t.setLanguage(i),e.append(t)}}NA(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=gv();if(!Q(t))return;let n=t.anchor.getNode(),r=n instanceof dy?n:TC(n,dy);yE(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(mg,void 0)):(e.preventDefault(),s.dispatchCommand(pg,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},FA=async e=>{tA(e)||(await cA(),await Promise.all([dA(uA(e)),pA(qk())]))},IA=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>FA(e))),t=vk(t),t=yk(t),new Promise((r,i)=>{e.update(()=>{try{OO(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),LA=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})}),RA=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),zA=V(`<div></div>`),BA={hash:`svelte-2236cz`,code:`.lexical-root.svelte-2236cz {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:120px;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-2236cz:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-2236cz {padding:0;}.lexical-root.code.svelte-2236cz .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-2236cz:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-2236cz {border-color:var(--sui-error-border-color);}.lexical-root.svelte-2236cz [dir]:first-child {margin-top:0;}.lexical-root.svelte-2236cz [dir]:last-child {margin-bottom:0;}.lexical-root.svelte-2236cz strong.italic {font-style:italic;}.lexical-root.svelte-2236cz .strikethrough {text-decoration:line-through;}.lexical-root.svelte-2236cz li.nested {list-style-type:none;}.lexical-root.svelte-2236cz .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-2236cz .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-2236cz .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-2236cz .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-2236cz [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-2236cz :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-2236cz hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-2236cz hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}`};function VA(e,t){O(t,!0),K(e,BA);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=co(t,RA),c=bt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));R(()=>{c.editor?.setEditable(B(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};fo(()=>{let{editor:e,enabledTransformers:t,dispose:n}=PA(c.config);return c.editor=e,c.enabledTransformers=t,B(l)?.addEventListener(`Update`,d),B(l)?.addEventListener(`click`,f),()=>{B(l)?.removeEventListener(`Update`,d),B(l)?.removeEventListener(`click`,f),n(),e.setRootElement(null),c.initialized=!1,c.editor=void 0}}),R(()=>{c.editor&&B(l)&&(c.editor.setRootElement(B(l)),c.initialized=!0)});var p=zA();Qa(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:B(u),hidden:n(),[Va]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-2236cz`),oo(p,e=>P(l,e),()=>B(l)),U(e,p),k()}var HA=()=>{let e=nl(`editor`),t=N(!1),n=N(void 0),r=N(Yn([])),i=N(Yn({modes:[],enabledButtons:[],components:[],useMarkdownShortcuts:!0,isCodeEditor:!1})),a=N(``),o=N(Yn({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),s=N(!0),c=N(!1),l=N(!1),u=async()=>{if(!B(n)||!B(t))return;let e=B(a);try{await IA(B(n),B(a)||``,B(r))}catch(t){P(c,!0),P(a,e,!0),console.error(t)}};return{get editor(){return B(n)},set editor(e){P(n,e,!0)},set enabledTransformers(e){P(r,e,!0)},get enabledTransformers(){return B(r)},get initialized(){return B(t)},set initialized(e){P(t,e,!0)},get config(){return B(i)},set config(e){P(i,e,!0),P(s,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return B(a)},set inputValue(e){let t=B(a)!==e;t&&P(a,e,!0),B(s)&&(t||B(n)?.getEditorState().isEmpty())&&u()},get selection(){return B(o)},set selection(e){P(o,e,!0)},get useRichText(){return B(s)},set useRichText(e){P(s,e,!0)},get hasConverterError(){return B(c)},set hasConverterError(e){P(c,e,!0),B(c)&&(P(s,!1),P(l,!0))},get showConverterError(){return B(l)},set showConverterError(e){P(l,e,!0)},editorId:e,convertMarkdown:u}},UA=V(`<!> <!>`,1);function WA(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=Tk.map(({id:e,name:t,aliases:n=[]})=>({key:e,label:t,aliases:n})),i=bt(`editorStore`),a=N(`plain`);R(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?mb().getChildren()[0]:sb(i.selection.blockNodeKey);fT(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>Y(`_sui.text_editor.language`));Pf(e,{get disabled(){return n()},get"aria-label"(){return B(t)},get value(){return B(a)},onChange:async({detail:{value:e}})=>{!i.editor||B(a)===e||(await LA(i.editor),await FA(e),i.editor.update(()=>{let{blockNodeKey:t}=i.selection,n=i.config.isCodeEditor?mb().getChildren()[0]:t?sb(t):null;fT(n)&&(n.setLanguage(e),P(a,e,!0))}))},children:(e,t)=>{var n=UA(),i=I(n);{let e=M(()=>Y(`_sui.text_editor.plain_text`));Od(i,{get label(){return B(e)},value:`plain`,dir:`ltr`})}ia(L(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>B(t).key,r=()=>B(t).label,i=()=>B(t).aliases;{let t=M(()=>n()===B(a)||i().includes(B(a)));Od(e,{get label(){return r()},get value(){return n()},get selected(){return B(t)},dir:`ltr`})}}),U(e,n)},$$slots:{default:!0}})}k()}var GA=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`ariaLabel`,`children`]),KA=V(`<div><div role="none" class="inner svelte-ugj3sx"><!></div></div>`),qA={hash:`svelte-ugj3sx`,code:`[role=toolbar].svelte-ugj3sx {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-ugj3sx {--toolbar-size: var(--sui-primary-toolbar-size);}
|
|
75
|
+
@media (width < 768px) {[role=toolbar].secondary.svelte-ugj3sx {padding-inline:0;}
|
|
76
|
+
}[role=toolbar][aria-orientation=horizontal].svelte-ugj3sx {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-ugj3sx {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-ugj3sx button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-ugj3sx h2 {flex:auto;display:flex;align-items:center;gap:8px;margin:0;padding-inline-end:12px;min-width:0;font-size:var(--sui-font-size-x-large);}[role=toolbar].svelte-ugj3sx h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-ugj3sx h2 span:not(.sui.truncated-text) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal, normal);opacity:0.8;}[role=toolbar].svelte-ugj3sx .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-ugj3sx .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-ugj3sx {display:contents;}`};function JA(e,t){K(e,qA);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`variant`,3,void 0),o=J(t,`ariaLabel`,3,void 0),s=co(t,GA);var c=KA();Qa(c,()=>({...s,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o()}),void 0,void 0,void 0,`svelte-ugj3sx`);var l=F(c);da(F(l),()=>t.children??E),D(l),D(c),z(()=>l.inert=r()),U(e,c)}var YA=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]),XA=V(`<div role="none" class="wrapper svelte-1o9a3fn"><!></div>`),ZA={hash:`svelte-1o9a3fn`,code:`.wrapper.svelte-1o9a3fn {display:contents;}.wrapper.svelte-1o9a3fn [role=toolbar] {position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:4px;border-width:1px 1px 0;border-style:solid;border-color:var(--sui-textbox-border-color);border-start-start-radius:var(--sui-textbox-border-radius);border-start-end-radius:var(--sui-textbox-border-radius);border-end-start-radius:0;border-end-end-radius:0;padding:0 4px;height:auto;min-height:40px;background-color:var(--sui-tertiary-background-color);}
|
|
77
|
+
@media (width < 768px) {.wrapper.svelte-1o9a3fn [role=toolbar] {flex-wrap:wrap;height:auto;}
|
|
78
|
+
}.wrapper.svelte-1o9a3fn .sui.menu-button {padding:0 4px;}.wrapper.svelte-1o9a3fn .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-1o9a3fn .sui.button-group {gap:4px;}`};function QA(e,t){O(t,!0),K(e,ZA),J(t,`code`,11,``),J(t,`lang`,11,`plain`);let n=J(t,`disabled`,3,!1),r=co(t,YA);var i=XA();JA(F(i),uo(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=H();da(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),D(i),U(e,i),k()}function $A(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1);{let t=M(()=>n()||r()),i=M(()=>Y(`_sui.text_editor.code_editor`));QA(e,{get disabled(){return B(t)},get"aria-label"(){return B(i)},children:(e,t)=>{{let t=M(()=>n()||r());WA(e,{get disabled(){return B(t)}})}},$$slots:{default:!0}})}k()}var ej=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),tj=V(`<div><!> <!></div> <!>`,1),nj={hash:`svelte-a4hhvv`,code:`.code-editor.svelte-a4hhvv {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.code-editor.svelte-a4hhvv:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.code-editor.flex.svelte-a4hhvv:not([hidden]) {display:block;}`};function rj(e,t){O(t,!0),K(e,nj);let n=J(t,`code`,15,``),r=J(t,`lang`,15,`plain`),i=J(t,`showLanguageSwitcher`,3,!1),a=J(t,`flex`,3,!1),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=co(t,ej),f=HA();f.config={...f.config,useMarkdownShortcuts:!1,isCodeEditor:!0,defaultLanguage:r()},xt(`editorStore`,f),R(()=>{f.initialized&&(n(),r(),pi(()=>{let e=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``;f.inputValue=e}))}),R(()=>{f.initialized&&(f.inputValue,pi(()=>{let{lang:e=`plain`,code:t=``}=f.inputValue.match(/^```(?<lang>\w+?)?\n(?:(?<code>.*)\n)?```/s)?.groups??{};r()!==e&&r(e),n()!==t&&n(t)}))});var p=tj(),m=I(p);Qa(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[Va]:{flex:a()}}),void 0,void 0,void 0,`svelte-a4hhvv`);var h=F(m),g=e=>{$A(e,{get disabled(){return s()},get readonly(){return c()}})};G(h,e=>{i()&&e(g)}),VA(L(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),D(m);var _=L(m,2),v=e=>{xp(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{xo(e,{status:`error`,children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>Y(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(_,e=>{f.showConverterError&&e(v)}),U(e,p),k()}var ij=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`name`,`autoResize`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),aj=V(`<div class="clone svelte-196xzu0" aria-hidden="true"> </div>`),oj=V(`<div role="none"><textarea></textarea> <!></div>`),sj={hash:`svelte-196xzu0`,code:`.text-area.svelte-196xzu0 {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-196xzu0 {display:none;}.text-area.flex.svelte-196xzu0:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-196xzu0, .clone.svelte-196xzu0) {grid-area:1/1/2/2;display:block;margin:0;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-multiline-padding);width:100%;min-height:8em;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}:is(textarea:where(.svelte-196xzu0), .clone:where(.svelte-196xzu0)).resizing.svelte-196xzu0 {transition-duration:0ms;}.svelte-196xzu0:is(textarea:where(.svelte-196xzu0), .clone:where(.svelte-196xzu0)):focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}.svelte-196xzu0:is(textarea:where(.svelte-196xzu0), .clone:where(.svelte-196xzu0)):is(:where(.svelte-196xzu0):disabled, :where(.svelte-196xzu0):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-196xzu0 {resize:vertical;}textarea.auto-resize.svelte-196xzu0 {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-196xzu0 {border-color:var(--sui-error-border-color);}.clone.svelte-196xzu0 {overflow:hidden;visibility:hidden;}textarea.svelte-196xzu0,
|
|
79
|
+
.clone.svelte-196xzu0 {white-space:pre-wrap;word-break:break-all;}`};function cj(e,t){O(t,!0),K(e,sj);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`name`,3,void 0),o=J(t,`autoResize`,3,!1),s=J(t,`hidden`,3,!1),c=J(t,`disabled`,3,!1),l=J(t,`readonly`,3,!1),u=J(t,`required`,3,!1),d=J(t,`invalid`,3,!1),f=co(t,ij);var p=oj();let m;var h=F(p);Qt(h),Qa(h,()=>({...f,dir:i(),name:a(),disabled:c()||void 0,readonly:l()||void 0,"aria-hidden":s(),"aria-disabled":c(),"aria-readonly":l(),"aria-required":u(),"aria-invalid":d(),[Va]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-196xzu0`);var g=L(h,2),_=e=>{var t=aj(),r=F(t,!0);D(t),z(()=>{q(t,`dir`,i()),W(r,n()),t.dir=t.dir}),U(e,t)};G(g,e=>{o()&&e(_)}),D(p),z(()=>{m=Fa(p,1,`sui text-area ${t.class??``}`,`svelte-196xzu0`,m,{flex:r(),disabled:c(),readonly:l()}),q(p,`hidden`,s()),h.dir=h.dir}),no(h,n),U(e,p),k()}var lj=e=>Array.isArray(e)&&e.every(e=>_(e)),uj=e=>[...new Set(e)];function dj(e,t){O(t,!0);let n=bt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{_o(e,{get name(){return dk[t.type].icon}})},a=M(()=>Y(`_sui.text_editor.${dk[t.type].labelKey}`)),o=M(()=>!n.useRichText);Tl(e,{iconic:!0,get"aria-label"(){return B(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return B(o)},get pressed(){return B(r)},onclick:async()=>{n.editor&&(await LA(n.editor),n.editor.dispatchCommand(Yh,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}function fj(e,t){O(t,!0);let n=bt(`editorStore`),r=M(()=>t.component.label),i=M(()=>t.component.icon),a=M(()=>t.component.createNode);{let t=e=>{var t=H(),n=I(t),r=e=>{_o(e,{get name(){return B(i)}})};G(n,e=>{B(i)&&e(r)}),U(e,t)},o=M(()=>!!B(i)),s=M(()=>B(i)?void 0:B(r)),c=M(()=>!n.useRichText);Tl(e,{get iconic(){return B(o)},get label(){return B(s)},get title(){return B(r)},get"aria-label"(){return B(r)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return B(c)},onclick:()=>{n.editor?.update(()=>{wv([B(a)(),Dy()])})},startIcon:t,$$slots:{startIcon:!0}})}k()}var pj=V(`<div role="none"><label> </label> <!></div>`),mj=V(`<div role="none"><label> </label> <!></div> <!>`,1),hj=V(`<!> <!>`,1);function gj(e,t){let n=Bi();O(t,!0);let r=`link`,i=bt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=Dv().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(XT,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=gv();if(Q(e)){let t=e.anchor.getNode(),n=(t instanceof UT?t:TC(t,UT))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{B(a)?p():d()},h=e=>{Ic(e,`Enter`)&&B(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&B(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=gv()??_v()?.clone();Q(t)||(t=pv()),B(c)||(P(u,B(u).trim(),!0),P(u,B(u)||B(l),!0),wv([M_(B(u))])),hb(t),e(void 0)})}),await LA(i.editor),i.editor.dispatchCommand(XT,B(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand($h,e=>(Ic(e,Oc()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};R(()=>{i.editor&&_()});var v=hj(),y=I(v);{let e=e=>{_o(e,{get name(){return dk[r].icon}})},t=M(()=>Y(`_sui.text_editor.${dk[r].labelKey}`)),n=M(()=>!i.useRichText);Tl(y,{iconic:!0,get"aria-label"(){return B(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return B(n)},get pressed(){return B(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>Y(`_sui.remove`));Tl(e,{variant:`secondary`,get label(){return B(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};G(n,e=>{B(s)!==`create`&&e(r)}),U(e,t)},t=M(()=>B(s)===`create`?Y(`_sui.text_editor.insert_link`):Y(`_sui.text_editor.update_link`)),r=M(()=>!B(l)),i=M(()=>B(s)===`create`?Y(`_sui.insert`):Y(`_sui.update`));Lu(b,{get title(){return B(t)},get okDisabled(){return B(r)},get okLabel(){return B(i)},onClose:e=>{g(e)},get open(){return B(o)},set open(e){P(o,e,!0)},get value(){return B(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=mj(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);{let e=M(()=>Y(`_sui.text_editor.url`));Ku(s,{dir:`ltr`,get id(){return`${n}-url`},flex:!0,get"aria-label"(){return B(e)},onkeydown:e=>{h(e)},get value(){return B(l)},set value(e){P(l,e,!0)}})}D(i);var d=L(i,2),f=e=>{var t=pj(),r=F(t),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>Y(`_sui.text_editor.text`));Ku(a,{dir:`auto`,get id(){return`${n}-text`},flex:!0,get"aria-label"(){return B(e)},onkeydown:e=>{h(e)},get value(){return B(u)},set value(e){P(u,e,!0)}})}D(t),z(e=>{q(r,`for`,`${n}-text`),W(i,e)},[()=>Y(`_sui.text_editor.text`)]),U(e,t)};G(d,e=>{B(c)||e(f)}),z(e=>{q(a,`for`,`${n}-url`),W(o,e)},[()=>Y(`_sui.text_editor.url`)]),U(e,r)},$$slots:{footerExtra:!0,default:!0}})}U(e,v),k()}function _j(e,t){O(t,!0);let n=bt(`editorStore`);{let r=e=>{_o(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{Md(e,{children:(e,r)=>{var i=H();ia(I(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>B(t).label,i=()=>B(t).icon,a=()=>B(t).createNode;Rd(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{wv([a()(),Dy()])})},startIcon:e=>{var t=H(),n=I(t),r=e=>{_o(e,{get name(){return i()}})};G(n,e=>{i()&&e(r)}),U(e,t)},$$slots:{startIcon:!0}})}),U(e,i)},$$slots:{default:!0}})},a=M(()=>!n.useRichText),o=M(()=>Y(`_sui.insert`));cu(e,{get disabled(){return B(a)},get label(){return B(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}function vj(e,t){O(t,!0);let n=bt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await LA(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{_C(gv(),()=>dD(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{_C(gv(),()=>Dy())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(EE,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(DE,void 0),t.type===`blockquote`&&n.editor.update(()=>{_C(gv(),()=>oD())}),t.type===`code-block`&&n.editor.update(()=>{_C(gv(),()=>dT())})};var a=H();Qi(I(a),()=>B(r),e=>{{let n=e=>{_o(e,{get name(){return dk[t.type].icon}})},a=M(()=>Y(`_sui.text_editor.${dk[t.type].labelKey}`));Bd(e,{get label(){return B(a)},get checked(){return B(r)},onclick:()=>{B(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),U(e,a),k()}var yj=V(`<!> <!>`,1),bj=V(`<!> <!> <!>`,1),xj=V(`<!> <!> <!> <!>`,1);function Sj(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1),i=bt(`editorStore`),a=M(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`button`)),o=M(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`menuitem`)),s=M(()=>uj([`paragraph`,...i.config.enabledButtons.filter(e=>mk.includes(e))])),c=M(()=>uj(i.config.enabledButtons.filter(e=>pk.includes(e))));{let t=M(()=>n()||r()),l=M(()=>Y(`_sui.text_editor.text_editor`));QA(e,{get disabled(){return B(t)},get"aria-label"(){return B(l)},children:(e,t)=>{var n=xj(),r=I(n),l=e=>{{let t=e=>{{let t=M(()=>dk[i.selection.blockType??``]?.icon??`format_paragraph`);_o(e,{get name(){return B(t)}})}},n=e=>{{let t=M(()=>Y(`_sui.text_editor.text_style_options`));Md(e,{get"aria-label"(){return B(t)},children:(e,t)=>{var n=H();ia(I(n),16,()=>B(s),e=>e,(e,t)=>{vj(e,{get type(){return t}})}),U(e,n)},$$slots:{default:!0}})}},r=M(()=>!i.useRichText),a=M(()=>Y(`_sui.text_editor.show_text_style_options`));cu(e,{get disabled(){return B(r)},get"aria-label"(){return B(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:t,popup:n,$$slots:{startIcon:!0,popup:!0}})}};G(r,e=>{B(s).length>1&&e(l)});var u=L(r,2),d=e=>{var t=yj(),n=I(t);gu(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);WA(r,{get disabled(){return B(e)}})}U(e,t)},f=e=>{var t=yj(),n=I(t),r=e=>{var t=yj(),n=I(t);gu(n,{orientation:`vertical`}),Ll(L(n,2),{children:(e,t)=>{var n=H();ia(I(n),16,()=>B(c),e=>e,(e,t)=>{var n=H(),r=I(n),i=e=>{gj(e,{})},a=e=>{dj(e,{get type(){return t}})};G(r,e=>{t===`link`?e(i):e(a,-1)}),U(e,n)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(n,e=>{B(c).length&&e(r)});var s=L(n,2),l=e=>{var t=bj(),n=I(t);gu(n,{orientation:`vertical`});var r=L(n,2);ia(r,17,()=>B(a),e=>e.id,(e,t)=>{fj(e,{get component(){return B(t)}})});var i=L(r,2),s=e=>{_j(e,{get components(){return B(o)}})};G(i,e=>{B(o).length&&e(s)}),U(e,t)};G(s,e=>{i.config.components.length&&e(l)}),U(e,t)};G(u,e=>{i.selection.blockType===`code-block`?e(d):e(f,-1)});var p=L(u,2);bu(p,{flex:!0});var m=L(p,2),h=e=>{{let t=e=>{_o(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>Y(`_sui.text_editor.edit_in_markdown`));Tl(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return B(n)},get"aria-label"(){return B(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};G(m,e=>{i.config.modes.length>1&&e(h)}),U(e,n)},$$slots:{default:!0}})}k()}var Cj=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`useMarkdownShortcuts`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),wj=V(`<div><!> <!> <!></div> <!>`,1),Tj={hash:`svelte-1gd90u9`,code:`.text-editor.svelte-1gd90u9 {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.text-editor.svelte-1gd90u9:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.text-editor.flex.svelte-1gd90u9:not([hidden]) {display:block;}.text-editor.svelte-1gd90u9 .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-1gd90u9 .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`};function Ej(e,t){O(t,!0),K(e,Tj);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=J(t,`buttons`,19,()=>[...pk,...mk]),s=J(t,`components`,19,()=>[]),c=J(t,`useMarkdownShortcuts`,3,!0),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`required`,3,!1),p=J(t,`invalid`,3,!1),m=co(t,Cj),h=HA();h.config={...h.config,modes:a(),enabledButtons:o(),components:s(),useMarkdownShortcuts:c()},xt(`editorStore`,h),R(()=>{if(!h.initialized)return;let e=n();pi(()=>{h.inputValue=e})}),R(()=>{if(!h.initialized)return;let e=h.inputValue;pi(()=>{n()!==e&&n(e)})});var g=wj(),_=I(g);Qa(_,()=>({...m,role:`none`,class:`sui text-editor`,hidden:l(),[Va]:{flex:r()}}),void 0,void 0,void 0,`svelte-1gd90u9`);var v=F(_);Sj(v,{get disabled(){return u()},get readonly(){return d()}});var y=L(v,2);{let e=M(()=>!h.useRichText||l());VA(y,{get hidden(){return B(e)},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return p()}})}var b=L(y,2);{let e=M(()=>h.useRichText||l());cj(b,{autoResize:!0,get flex(){return r()},get dir(){return i()},get hidden(){return B(e)},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return p()},get value(){return h.inputValue},set value(e){h.inputValue=e}})}D(_);var x=L(_,2),S=e=>{xp(e,{get show(){return h.showConverterError},set show(e){h.showConverterError=e},children:(e,t)=>{xo(e,{status:`error`,children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>Y(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(x,e=>{h.showConverterError&&e(S)}),U(e,g),k()}var Dj=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),Oj=V(`<div role="none"><div role="none" class="buttons svelte-1u2tzrl"><!> <!></div> <!></div>`),kj={hash:`svelte-1u2tzrl`,code:`.number-input.svelte-1u2tzrl {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-1u2tzrl:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-1u2tzrl :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-1u2tzrl :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-1u2tzrl :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-1u2tzrl :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-1u2tzrl .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-1u2tzrl {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-1u2tzrl button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-1u2tzrl button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-1u2tzrl button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-1u2tzrl button .icon {font-size:20px;}`};function Aj(e,t){let n=Bi();O(t,!0),K(e,kj);let r=J(t,`value`,15),i=J(t,`invalid`,15,!1),a=J(t,`flex`,3,!1),o=J(t,`min`,3,void 0),s=J(t,`max`,3,void 0),c=J(t,`step`,3,1),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`required`,3,!1),p=co(t,Dj),m=N(!1),h=N(``),g=M(()=>String(c()).split(`.`)[1]?.length||0),_=M(()=>typeof o()==`number`&&Number(B(h)||0)<=o()),v=M(()=>typeof s()==`number`&&Number(B(h)||0)>=s());R(()=>{let e=String(r()??``);pi(()=>{B(h)!==e&&P(h,e,!0)})}),R(()=>{let e=B(h).trim()?Number(B(h)):NaN;r(Number.isNaN(e)?void 0:e)}),R(()=>{B(m)&&i(f()&&(r()===void 0||B(h)===``)||B(h)!==void 0&&B(h)!==``&&(Number.isNaN(Number(B(h)))||typeof o()==`number`&&Number(B(h)||0)<o()||typeof s()==`number`&&Number(B(h)||0)>s()))});let y=()=>{B(_)||Number.isNaN(Number(B(h)))||P(h,Number(Number(B(h)||0)-c()).toFixed(B(g)),!0)},b=()=>{B(v)||Number.isNaN(Number(B(h)))||P(h,Number(Number(B(h)||0)+c()).toFixed(B(g)),!0)};var x=Oj();let S;var C=F(x),w=F(C);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.increaseIcon),U(e,n)},a=e=>{_o(e,{name:`expand_less`})};G(r,e=>{t.increaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||B(v)),a=M(()=>Y(`_sui.number_input.increase`));Tl(w,{iconic:!0,get disabled(){return B(i)},get"aria-label"(){return B(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var T=L(w,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.decreaseIcon),U(e,n)},a=e=>{_o(e,{name:`expand_more`})};G(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||B(_)),a=M(()=>Y(`_sui.number_input.decrease`));Tl(T,{iconic:!0,get disabled(){return B(i)},get"aria-label"(){return B(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var ee=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>B(g)>0?`decimal`:`numeric`);Ku(ee,uo({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return B(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return B(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),B(m)||P(m,!0)},oninput:()=>{B(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return B(h)},set value(e){P(h,e,!0)}}))}D(x),z(()=>{S=Fa(x,1,`sui number-input ${t.class??``}`,`svelte-1u2tzrl`,S,{flex:a(),disabled:u(),readonly:d()}),q(x,`hidden`,l())}),U(e,x),k()}var jj=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),Mj=V(`<div role="none"><!> <!></div>`),Nj={hash:`svelte-agngzo`,code:`.secret-input.svelte-agngzo {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-agngzo:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-agngzo input {-webkit-text-security:none;}.secret-input.svelte-agngzo .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-agngzo input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-agngzo button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-agngzo button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-agngzo button .icon {font-size:var(--sui-font-size-xx-large);}`};function Pj(e,t){let n=Bi();O(t,!0),K(e,Nj);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`monospace`,3,!0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=co(t,jj),f=N(void 0),p=N(!1);var m=Mj();let h;var g=F(m);Ku(g,uo({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return B(f)},set element(e){P(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=L(g,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();da(I(n),()=>t.visibilityIcon),U(e,n)},a=e=>{{let t=M(()=>B(p)?`visibility_off`:`visibility`);_o(e,{get name(){return B(t)}})}};G(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>s()||c()),i=M(()=>Y(B(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));Tl(_,{iconic:!0,get disabled(){return B(r)},get pressed(){return B(p)},get"aria-label"(){return B(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!B(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),z(()=>{h=Fa(m,1,`sui secret-input ${t.class??``}`,`svelte-agngzo`,h,{flex:i(),disabled:s(),readonly:c(),show:B(p)}),q(m,`hidden`,o())}),U(e,m),k()}var Fj=V(`<link rel="preconnect" href="https://cdn.jsdelivr.net/"/>`),Ij={hash:`svelte-1c10nra`,code:`
|
|
80
80
|
/* https://fontsource.org/fonts/source-sans-3/cdn */
|
|
81
81
|
@font-face {font-family:'Source Sans 3';font-style:normal;font-display:swap;font-weight:200 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@5.3.0/latin-wght-normal.woff2)
|
|
82
82
|
format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
@@ -93,7 +93,7 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
93
93
|
format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
94
94
|
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
95
95
|
}.material-symbols-outlined {
|
|
96
|
-
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;-moz-font-feature-settings:'liga';font-feature-settings:'liga';}`};function Lj(e){K(e,Ij),U(e,Fj())}var Rj=new Set([`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),zj=V(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <!>`,1),Bj=V(`<div class="font-loader svelte-
|
|
96
|
+
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;-moz-font-feature-settings:'liga';font-feature-settings:'liga';}`};function Lj(e){K(e,Ij),U(e,Fj())}var Rj=new Set([`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),zj=V(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <!>`,1),Bj=V(`<div class="font-loader svelte-1wen5y3" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div>`),Vj=V(`<!> <div><!></div>`,1),Hj={hash:`svelte-1wen5y3`,code:`:root,
|
|
97
97
|
: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(
|
|
98
98
|
var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation)
|
|
99
99
|
var(--sui-alert-foreground-color-lightness)
|
|
@@ -151,7 +151,7 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
151
151
|
@media (prefers-reduced-motion) {*,
|
|
152
152
|
::before,
|
|
153
153
|
::after {scroll-behavior:auto;transition-duration:1ms !important;}
|
|
154
|
-
}::selection {background-color:var(--sui-primary-accent-color-translucent-light);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-focus-ring-color);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 34px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 30px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 26px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 22px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 18px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 14px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-
|
|
154
|
+
}::selection {background-color:var(--sui-primary-accent-color-translucent-light);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-focus-ring-color);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 34px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 30px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 26px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 22px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 18px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 14px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-1wen5y3 a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-1wen5y3 {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-1wen5y3 {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-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-1wen5y3 {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-1wen5y3 {display:flex;flex-direction:column;overflow:hidden;}`};function Uj(e,t){O(t,!0),K(e,Hj);let n=J(t,`orientation`,3,`horizontal`),r=co(t,Rj),i=N(!1);fo(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{P(i,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var a=Vj();Ta(`1wen5y3`,e=>{var t=zj(),n=I(t);Lj(L(n,4),{}),z(e=>q(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),U(e,t)});var o=I(a),s=e=>{var t=Bj();La(t,``,{},{opacity:`0`}),U(e,t)};G(o,e=>{B(i)||e(s)});var c=L(o,2),l=e=>e.preventDefault(),u=e=>e.preventDefault(),d=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};Qa(c,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:l,ondrop:u,oncontextmenu:d}),void 0,void 0,void 0,`svelte-1wen5y3`),da(F(c),()=>t.children??E),D(c),U(e,a),k()}var Wj=V(`<div role="none" class="sui empty-state svelte-1ee150"><!></div>`),Gj={hash:`svelte-1ee150`,code:`.empty-state.svelte-1ee150 {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`};function Kj(e,t){K(e,Gj);let n=J(t,`children`,3,void 0);var r=Wj();da(F(r),()=>n()??E),D(r),U(e,r)}var qj=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`]),Jj=V(`<div><div role="none" class="inner svelte-pps8e6"><!></div></div>`),Yj={hash:`svelte-pps8e6`,code:`.inner.svelte-pps8e6 {display:contents;}`};function Xj(e,t){K(e,Yj);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`ariaLabel`,3,void 0),a=co(t,qj);var o=Jj();Qa(o,()=>({...a,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-pps8e6`);var s=F(o);da(F(s),()=>t.children??E),D(s),D(o),z(()=>s.inert=r()),U(e,o)}var Zj=V(`<div class="placeholder svelte-h2jjgs"></div>`),Qj={hash:`svelte-h2jjgs`,code:`.placeholder.svelte-h2jjgs {height:64px;}`};function $j(e,t){O(t,!0),K(e,Qj);let n=N(null),r=N(!1);R(()=>(B(n)&&(async()=>{await sl(B(n)),P(r,!0)})(),()=>{B(n)&&rl(B(n))}));var i=H(),a=I(i),o=e=>{var n=H();da(I(n),()=>t.children),U(e,n)},s=e=>{var t=Zj();oo(t,e=>P(n,e),()=>B(n)),U(e,t)};G(a,e=>{B(r)?e(o):e(s,-1)}),U(e,i),k()}var eM={ok:`OK`,cancel:`Cancel`,close:`Close`,clear:`Clear`,insert:`Insert`,update:`Update`,remove:`Remove`,collapse:`Collapse`,expand:`Expand`,dismiss:`Dismiss`,calendar:{year:`Year`,previous_decade:`Previous Decade`,next_decade:`Next Decade`,month:`Month`,previous_month:`Previous Month`,next_month:`Next Month`,today:`Today`},split_button:{x_options:`{$name} Options`,more_options:`More Options`},combobox:{select_an_option:`Select an option…`,filter_options:`Filter Options`,no_matching_options:`No matching options found`},number_input:{increase:`Increase`,decrease:`Decrease`},password_input:{show_password:`Show Password`,hide_password:`Hide Password`},secret_input:{show_secret:`Show Secret`,hide_secret:`Hide Secret`},select_tags:{selected_options:`Selected Options`,remove_x:`Remove {$name}`},text_editor:{text_editor:`Text Editor`,code_editor:`Code Editor`,text_style_options:`Text Style Options`,show_text_style_options:`Show Text Style Options`,paragraph:`Paragraph`,heading_1:`Heading 1`,heading_2:`Heading 2`,heading_3:`Heading 3`,heading_4:`Heading 4`,heading_5:`Heading 5`,heading_6:`Heading 6`,bulleted_list:`Bulleted List`,numbered_list:`Numbered List`,blockquote:`Block Quote`,code_block:`Code Block`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,link:`Link`,insert_link:`Insert Link`,update_link:`Update Link`,text:`Text`,url:`URL`,edit_in_markdown:`Edit in Markdown`,converter_error:`Unable to enable rich text mode. Please use the plain text editor instead.`,language:`Language`,plain_text:`Plain Text`}};
|
|
155
155
|
/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
|
|
156
156
|
function tM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nM(e){if(Array.isArray(e))return e}function rM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function iM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
157
157
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aM(e,t){return nM(e)||rM(e,t)||oM(e,t)||iM()}function oM(e,t){if(e){if(typeof e==`string`)return tM(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tM(e,t):void 0}}var sM=Object.entries,cM=Object.setPrototypeOf,lM=Object.isFrozen,uM=Object.getPrototypeOf,dM=Object.getOwnPropertyDescriptor,fM=Object.freeze,pM=Object.seal,mM=Object.create,hM=typeof Reflect<`u`&&Reflect,gM=hM.apply,_M=hM.construct;fM||=function(e){return e},pM||=function(e){return e},gM||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},_M||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var vM=RM(Array.prototype.forEach),yM=RM(Array.prototype.lastIndexOf),bM=RM(Array.prototype.pop),xM=RM(Array.prototype.push),SM=RM(Array.prototype.splice),CM=Array.isArray,wM=RM(String.prototype.toLowerCase),TM=RM(String.prototype.toString),EM=RM(String.prototype.match),DM=RM(String.prototype.replace),OM=RM(String.prototype.indexOf),kM=RM(String.prototype.trim),AM=RM(Number.prototype.toString),jM=RM(Boolean.prototype.toString),MM=typeof BigInt>`u`?null:RM(BigInt.prototype.toString),NM=typeof Symbol>`u`?null:RM(Symbol.prototype.toString),PM=RM(Object.prototype.hasOwnProperty),FM=RM(Object.prototype.toString),IM=RM(RegExp.prototype.test),LM=zM(TypeError);function RM(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return gM(e,t,r)}}function zM(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return _M(e,n)}}function BM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wM;if(cM&&cM(e,null),!CM(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(lM(t)||(t[r]=e),i=e)}e[i]=!0}return e}function VM(e){for(let t=0;t<e.length;t++)PM(e,t)||(e[t]=null);return e}function HM(e){let t=mM(null);for(let r of sM(e)){var n=aM(r,2);let i=n[0],a=n[1];PM(e,i)&&(t[i]=CM(a)?VM(a):a&&typeof a==`object`&&a.constructor===Object?HM(a):a)}return t}function UM(e){switch(typeof e){case`string`:return e;case`number`:return AM(e);case`boolean`:return jM(e);case`bigint`:return MM?MM(e):`0`;case`symbol`:return NM?NM(e):`Symbol()`;case`undefined`:return FM(e);case`function`:case`object`:{if(e===null)return FM(e);let t=e,n=WM(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:FM(e)}return FM(e)}default:return FM(e)}}function WM(e,t){for(;e!==null;){let n=dM(e,t);if(n){if(n.get)return RM(n.get);if(typeof n.value==`function`)return RM(n.value)}e=uM(e)}function n(){return null}return n}function GM(e){try{return IM(e,``),!0}catch{return!1}}var KM=fM(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),qM=fM(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),JM=fM([`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`]),YM=fM([`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`]),XM=fM(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ZM=fM([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),QM=fM([`#text`]),$M=fM(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),eN=fM(`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.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),tN=fM(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),nN=fM([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),rN=pM(/{{[\w\W]*|^[\w\W]*}}/g),iN=pM(/<%[\w\W]*|^[\w\W]*%>/g),aN=pM(/\${[\w\W]*/g),oN=pM(/^data-[\-\w.\u00B7-\uFFFF]+$/),sN=pM(/^aria-[\-\w]+$/),cN=pM(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lN=pM(/^(?:\w+script|data):/i),uN=pM(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dN=pM(/^html$/i),Nte=pM(/^[a-z][.\w]*(-[.\w]+)+$/i),fN=pM(/<[/\w!]/g),pN=pM(/<[/\w]/g),Pte=pM(/<\/no(script|embed|frames)/i),Fte=pM(/\/>/i),mN={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ite=function(){return typeof window>`u`?null:window},Lte=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},hN=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},gN=function(e,t,n,r){return PM(e,t)&&CM(e[t])?BM(r.base?HM(r.base):{},e[t],r.transform):n};function _N(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ite(),t=e=>_N(e);if(t.version=`3.4.13`,t.removed=[],!e||!e.document||e.document.nodeType!==mN.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=WM(d,`cloneNode`),p=WM(d,`remove`),m=WM(d,`nextSibling`),h=WM(d,`childNodes`),g=WM(d,`parentNode`),_=WM(d,`shadowRoot`),v=WM(d,`attributes`),y=o&&o.prototype?WM(o.prototype,`nodeType`):null,b=o&&o.prototype?WM(o.prototype,`nodeName`):null,x=o&&o.prototype?WM(o.prototype,`ownerDocument`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,T=!1,ee=0,te=function(){if(ee>0)throw LM(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ne=function(e){te(),ee++;try{return S.createHTML(e)}finally{ee--}},re=function(e){te(),ee++;try{return S.createScriptURL(e)}finally{ee--}},ie=function(){return T||=(w=Lte(u,i),!0),w},E=n,ae=E.implementation,oe=E.createNodeIterator,se=E.createDocumentFragment,ce=E.getElementsByTagName,le=r.importNode,ue=hN();t.isSupported=typeof sM==`function`&&typeof g==`function`&&ae&&ae.createHTMLDocument!==void 0;let de=rN,fe=iN,pe=aN,me=oN,he=sN,ge=lN,_e=uN,ve=Nte,ye=cN,be=null,xe=BM({},[...KM,...qM,...JM,...XM,...QM]),Se=null,Ce=BM({},[...$M,...eN,...tN,...nN]),we=Object.seal(mM(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}})),Te=null,Ee=null,De=Object.seal(mM(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Oe=!0,ke=!0,Ae=!1,je=!0,Me=!1,Ne=!0,Pe=!1,Fe=!1,Ie=null,Le=null,Re=!1,ze=!1,Be=!1,Ve=!1,He=!0,Ue=!1,We=`user-content-`,Ge=!0,Ke=!1,qe={},Je=null,Ye=BM({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Xe=null,Ze=BM({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Qe=null,$e=BM({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),et=`http://www.w3.org/1998/Math/MathML`,tt=`http://www.w3.org/2000/svg`,nt=`http://www.w3.org/1999/xhtml`,rt=nt,it=!1,at=null,ot=BM({},[et,tt,nt],TM),st=fM([`mi`,`mo`,`mn`,`ms`,`mtext`]),ct=BM({},st),D=fM([`annotation-xml`]),lt=BM({},D),ut=BM({},[`title`,`style`,`font`,`a`,`script`]),dt=null,ft=[`application/xhtml+xml`,`text/html`],pt=null,mt=null,ht=n.createElement(`form`),gt=function(e){return e instanceof RegExp||e instanceof Function},_t=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(mt&&mt===e)return;(!e||typeof e!=`object`)&&(e={}),e=HM(e),dt=ft.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,pt=dt===`application/xhtml+xml`?TM:wM,be=gN(e,`ALLOWED_TAGS`,xe,{transform:pt}),Se=gN(e,`ALLOWED_ATTR`,Ce,{transform:pt}),at=gN(e,`ALLOWED_NAMESPACES`,ot,{transform:TM}),Qe=gN(e,`ADD_URI_SAFE_ATTR`,$e,{transform:pt,base:$e}),Xe=gN(e,`ADD_DATA_URI_TAGS`,Ze,{transform:pt,base:Ze}),Je=gN(e,`FORBID_CONTENTS`,Ye,{transform:pt}),Te=gN(e,`FORBID_TAGS`,HM({}),{transform:pt}),Ee=gN(e,`FORBID_ATTR`,HM({}),{transform:pt}),qe=PM(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?HM(e.USE_PROFILES):e.USE_PROFILES:!1,Oe=e.ALLOW_ARIA_ATTR!==!1,ke=e.ALLOW_DATA_ATTR!==!1,Ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=e.SAFE_FOR_TEMPLATES||!1,Ne=e.SAFE_FOR_XML!==!1,Pe=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,He=e.SANITIZE_DOM!==!1,Ue=e.SANITIZE_NAMED_PROPS||!1,Ge=e.KEEP_CONTENT!==!1,Ke=e.IN_PLACE||!1,ye=GM(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:cN,rt=typeof e.NAMESPACE==`string`?e.NAMESPACE:nt,ct=PM(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?HM(e.MATHML_TEXT_INTEGRATION_POINTS):BM({},st),lt=PM(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?HM(e.HTML_INTEGRATION_POINTS):BM({},D);let t=PM(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?HM(e.CUSTOM_ELEMENT_HANDLING):mM(null);if(we=mM(null),PM(t,`tagNameCheck`)&>(t.tagNameCheck)&&(we.tagNameCheck=t.tagNameCheck),PM(t,`attributeNameCheck`)&>(t.attributeNameCheck)&&(we.attributeNameCheck=t.attributeNameCheck),PM(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(we.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),pM(we),Me&&(ke=!1),Be&&(ze=!0),qe&&(be=BM({},QM),Se=mM(null),qe.html===!0&&(BM(be,KM),BM(Se,$M)),qe.svg===!0&&(BM(be,qM),BM(Se,eN),BM(Se,nN)),qe.svgFilters===!0&&(BM(be,JM),BM(Se,eN),BM(Se,nN)),qe.mathMl===!0&&(BM(be,XM),BM(Se,tN),BM(Se,nN))),De.tagCheck=null,De.attributeCheck=null,PM(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?De.tagCheck=e.ADD_TAGS:CM(e.ADD_TAGS)&&(be===xe&&(be=HM(be)),BM(be,e.ADD_TAGS,pt))),PM(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?De.attributeCheck=e.ADD_ATTR:CM(e.ADD_ATTR)&&(Se===Ce&&(Se=HM(Se)),BM(Se,e.ADD_ATTR,pt))),PM(e,`ADD_URI_SAFE_ATTR`)&&CM(e.ADD_URI_SAFE_ATTR)&&BM(Qe,e.ADD_URI_SAFE_ATTR,pt),PM(e,`FORBID_CONTENTS`)&&CM(e.FORBID_CONTENTS)&&(Je===Ye&&(Je=HM(Je)),BM(Je,e.FORBID_CONTENTS,pt)),PM(e,`ADD_FORBID_CONTENTS`)&&CM(e.ADD_FORBID_CONTENTS)&&(Je===Ye&&(Je=HM(Je)),BM(Je,e.ADD_FORBID_CONTENTS,pt)),Ge&&(be[`#text`]=!0),Pe&&BM(be,[`html`,`head`,`body`]),be.table&&(BM(be,[`tbody`]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw LM(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw LM(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=ne(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=ie()),S&&typeof C==`string`&&(C=ne(``)));fM&&fM(e),mt=e},vt=BM({},[...qM,...JM,...YM]),yt=BM({},[...XM,...ZM]),bt=function(e,t,n){return t.namespaceURI===nt?e===`svg`:t.namespaceURI===et?e===`svg`&&(n===`annotation-xml`||ct[n]):!!vt[e]},xt=function(e,t,n){return t.namespaceURI===nt?e===`math`:t.namespaceURI===tt?e===`math`&<[n]:!!yt[e]},St=function(e,t,n){return t.namespaceURI===tt&&!lt[n]||t.namespaceURI===et&&!ct[n]?!1:!yt[e]&&(ut[e]||!vt[e])},O=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:rt,tagName:`template`});let n=wM(e.tagName),r=wM(t.tagName);return at[e.namespaceURI]?e.namespaceURI===tt?bt(n,t,r):e.namespaceURI===et?xt(n,t,r):e.namespaceURI===nt?St(n,t,r):!!(dt===`application/xhtml+xml`&&at[e.namespaceURI]):!1},k=function(e){xM(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw LM(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Ct=function(e){Et(e);let t=h(e);if(t){let e=[];vM(t,t=>{xM(e,t)}),vM(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},wt=function(e,n){try{xM(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{xM(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`){if(ze||Be)try{k(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Tt=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||Se[pt(i)]))try{e.removeAttribute(i)}catch{}}},Et=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===mN.element&&Tt(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Dt=function(e){if(!Ne)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y?y(e):e.nodeType;if(n===mN.processingInstruction||n===mN.comment&&IM(pN,e.data)){try{p(e)}catch{}continue}if(n===mN.element){let t=e,n=pt(b?b(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Ot=function(e){let t=null,r=null;if(Re)e=`<remove></remove>`+e;else{let t=EM(e,/^[\r\n\t ]+/);r=t&&t[0]}dt===`application/xhtml+xml`&&rt===nt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?ne(e):e;if(rt===nt)try{t=new l().parseFromString(i,dt)}catch{}if(!t||!t.documentElement){t=ae.createDocument(rt,`template`,null);try{t.documentElement.innerHTML=it?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),rt===nt?ce.call(t,Pe?`html`:`body`)[0]:Pe?t.documentElement:a},kt=function(e){let t=x?x(e):e.ownerDocument;return oe.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},At=function(e){return e=DM(e,de,` `),e=DM(e,fe,` `),e=DM(e,pe,` `),e},jt=function(e){e.normalize();let t=x?x(e):e.ownerDocument,n=oe.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=At(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&vM(i,e=>{Nt(e.content)&&jt(e.content)})},Mt=function(e){let t=b?b(e):null;return typeof t!=`string`||pt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},Nt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===mN.documentFragment}catch{return!1}},Pt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function Ft(e,n,r){e.length!==0&&vM(e,e=>{e.call(t,n,r,mt)})}let It=function(e,t){return!!(Ne&&e.hasChildNodes()&&!Pt(e.firstElementChild)&&IM(fN,e.textContent)&&IM(fN,e.innerHTML)||Ne&&e.namespaceURI===nt&&t===`style`&&Pt(e.firstElementChild)||e.nodeType===mN.processingInstruction||Ne&&e.nodeType===mN.comment&&IM(pN,e.data))},Lt=function(e,t,n){if(!Te[t]&&A(t)&&(we.tagNameCheck instanceof RegExp&&IM(we.tagNameCheck,t)||we.tagNameCheck instanceof Function&&we.tagNameCheck(t)))return!1;if(Ge&&!Je[t]){let t=g(e),r=h(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,m(e))}}}return k(e),!0},Rt=function(e,t,n,r){return e.length===0?t:t===n||t===r?HM(t):t},zt=function(e,n){if(Ft(ue.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return Ke&&Et(e),!0;if(Mt(e))return k(e),!0;let r=pt(b?b(e):e.nodeName);if(be=Rt(ue.uponSanitizeElement,be,xe,Ie),Ft(ue.uponSanitizeElement,e,{tagName:r,allowedTags:be}),e!==n&&g(e)===null)return Ke&&Et(e),!0;if(It(e,r))return k(e),!0;if(Te[r]||!(De.tagCheck instanceof Function&&De.tagCheck(r))&&!be[r]){let t=Lt(e,r,n);return t===!1&&Ft(ue.afterSanitizeElements,e,null),t}if((y?y(e):e.nodeType)===mN.element&&!O(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&IM(Pte,e.innerHTML))return k(e),!0;if(Me&&e.nodeType===mN.text){let n=At(e.textContent);e.textContent!==n&&(xM(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ft(ue.afterSanitizeElements,e,null),!1},Bt=function(e,t,r){if(Ee[t]||Ne&&t===`patchsrc`||Ne&&t===`for`&&e!==`label`&&e!==`output`||He&&(t===`id`||t===`name`)&&(r in n||r in ht))return!1;let i=Se[t]||De.attributeCheck instanceof Function&&De.attributeCheck(t,e);if(!(ke&&IM(me,t))&&!(Oe&&IM(he,t))){if(!i){if(!(A(e)&&(we.tagNameCheck instanceof RegExp&&IM(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&IM(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t,e))||t===`is`&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&IM(we.tagNameCheck,r)||we.tagNameCheck instanceof Function&&we.tagNameCheck(r))))return!1}else if(!Qe[t]&&!IM(ye,DM(r,_e,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&OM(r,`data:`)===0&&Xe[e])&&!(Ae&&!IM(ge,DM(r,_e,``)))&&r)return!1}return!0},Vt=BM({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),A=function(e){return!Vt[wM(e)]&&IM(ve,e)},Ht=function(e,t,n,r){if(S&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ne(r);case`TrustedScriptURL`:return re(r)}return r},Ut=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Mt(e)?k(e):bM(t.removed)}catch{wt(n,e)}},Wt=function(e){Ft(ue.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Mt(e))return;Se=Rt(ue.uponSanitizeAttribute,Se,Ce,Le);let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0},r=t.length,i=pt(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=pt(o),u=c,d=o===`value`?u:kM(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Ft(ue.uponSanitizeAttribute,e,n),d=n.attrValue,Ue&&(l===`id`||l===`name`)&&OM(d,We)!==0&&(wt(o,e),d=We+d),Ne&&IM(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){wt(o,e);continue}if(l===`attributename`&&EM(d,`href`)){wt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){wt(o,e);continue}if(!je&&IM(Fte,d)){wt(o,e);continue}if(Me&&(d=At(d)),!Bt(i,l,d)){wt(o,e);continue}d=Ht(i,l,s,d),d!==u&&Ut(e,o,s,d)}}Ft(ue.afterSanitizeAttributes,e,null)},j=function(e){let t=null,n=kt(e);for(Ft(ue.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ft(ue.uponSanitizeShadowNode,t,null),zt(t,e),Wt(t),Nt(t.content)&&j(t.content),(y?y(t):t.nodeType)===mN.element){let e=_(t);Nt(e)&&(Gt(e),j(e))}Ft(ue.afterSanitizeShadowDOM,e,null)},Gt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){j(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===mN.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&pt(e)===`template`){let e=n.content;Nt(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);Nt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(it=!e,it&&(e=`<!-->`),typeof e!=`string`&&!Pt(e)&&(e=UM(e),typeof e!=`string`))throw LM(`dirty is not a string, aborting`);if(!t.isSupported)return e;Fe?(be=Ie,Se=Le):_t(n),(ue.uponSanitizeElement.length>0||ue.uponSanitizeAttribute.length>0)&&(be=HM(be)),ue.uponSanitizeAttribute.length>0&&(Se=HM(Se)),t.removed=[];let c=Ke&&typeof e!=`string`&&Pt(e);if(c){Dt(e);let t=b?b(e):e.nodeName;if(typeof t==`string`){let n=pt(t);if(!be[n]||Te[n])throw Ct(e),LM(`root node is forbidden and cannot be sanitized in-place`)}if(Mt(e))throw Ct(e),LM(`root node is clobbered and cannot be sanitized in-place`);try{Gt(e)}catch(t){throw Ct(e),t}}else if(Pt(e))i=Ot(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===mN.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Gt(a);else{if(!ze&&!Me&&!Pe&&e.indexOf(`<`)===-1)return S&&Ve?ne(e):e;if(i=Ot(e),!i)return ze?null:Ve?C:``}i&&Re&&k(i.firstChild);let l=c?e:i;try{let e=kt(l);for(;o=e.nextNode();)zt(o,l),Wt(o),Nt(o.content)&&j(o.content)}catch(n){throw c&&(Ct(e),vM(t.removed,e=>{e.element&&Et(e.element)})),n}if(c)return vM(t.removed,e=>{e.element&&Et(e.element)}),Me&&jt(e),e;if(ze){if(Me&&jt(i),Be)for(s=se.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Se.shadowroot||Se.shadowrootmode)&&(s=le.call(r,s,!0)),s}let u=Pe?i.outerHTML:i.innerHTML;return Pe&&be[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&IM(dN,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
@@ -329,7 +329,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
329
329
|
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=xR(bR(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=xR(bR(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function TR(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new gR||null,prettyErrors:t}}function ER(e,t={}){let{lineCounter:n,prettyErrors:r}=TR(t),i=new wR(n?.addNewLine),a=new nR(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new vL(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(bL(e,n)),o.warnings.forEach(bL(e,n))),o}function DR(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=ER(e,n);if(!i)return null;if(i.warnings.forEach(e=>XF(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function OR(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return GP(e)&&!r?e.toString(n):new hL(e,r,n).toString(n)}var kR={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`},AR=new Map,jR=e=>{let t=e??``,n=AR.get(t);return n||(n=new Intl.DateTimeFormat(`en-US`,{...kR,hour12:!1,timeZone:e}),AR.set(t,n)),n},MR=({date:e=new Date,timeZone:t=void 0}={})=>Object.fromEntries(jR(t).formatToParts(e).filter(({type:e})=>e in kR).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t])),NR=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ`,`a`],[`ُ`,`u`],[`ِ`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]]),PR=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],FR={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:PR,nb:PR,de:[[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`ß`,`ss`],[`ẞ`,`Ss`]],tr:[[`â`,`a`],[`Â`,`A`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`],[`á`,`a`],[`Á`,`A`],[`é`,`e`],[`É`,`E`],[`í`,`i`],[`Í`,`I`],[`ó`,`o`],[`Ó`,`O`],[`ú`,`u`],[`Ú`,`U`]],sr:[[`ђ`,`dj`],[`Ђ`,`Dj`],[`џ`,`dz`],[`Џ`,`Dz`],[`љ`,`lj`],[`Љ`,`Lj`],[`њ`,`nj`],[`Њ`,`Nj`],[`ћ`,`c`],[`Ћ`,`C`],[`ч`,`ch`],[`Ч`,`Ch`],[`ш`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ж`,`Zh`]]};for(let e of Object.keys(FR))FR[e]=new Map(FR[e]);var IR=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),LR=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>IR(e)).join(`|`),`gu`)},RR=LR(NR),zR=new Map;for(let[e,t]of Object.entries(FR)){let n=new Map(NR);for(let[e,r]of t)n.set(e,r);zR.set(e,{replacements:n,pattern:LR(n)})}var BR=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(FR,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(FR,n))return n};function VR(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=BR(t.locale),r=[...t.customReplacements],i=NR,a=RR;if(n&&({replacements:i,pattern:a}=zR.get(n)),e=e.normalize(),r.length>0){r.sort((e,t)=>t[0].length-e[0].length);for(let[t,n]of r)e=e.replaceAll(t,n)}return e=e.replace(a,e=>i.get(e)??e),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var HR=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t)),UR=(e,t,n,r)=>{if(e.has(t)){let n=e.get(t);return e.delete(t),e.set(t,n),n}let i=n();return e.set(t,i),e.size>r&&e.delete(e.keys().next().value),i},WR=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],GR=new Map,KR=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=A(KG)??{},u=r??s,d=e;if(a&&(d=VR(d.normalize(`NFD`),{locale:n&&WR.includes(n)?n:void 0})),d=i===`ascii`?d.replaceAll(/[^\w-~]/g,` `):d.replaceAll(/[\p{Z}\p{C}!"#$%&'()*+,/:;<=>?@[\\\]^`{|}]/gu,` `),d=d.trim().replaceAll(/\s+/g,o),o){let e=o.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=HR(GR,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));d=d.replace(t.consecutivePattern,o),c&&(d=d.replace(t.trimPattern,``))}return!d&&t&&(d=Zc(`short`)),typeof u==`number`&&d.length>u&&(d=ik(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d},qR=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),JR={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function YR(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function XR(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function ZR(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function QR(e){return ZR(e)||YR(e)}var $R=document.createElement(`i`);function ez(e){let t=`&`+e+`;`;$R.innerHTML=t;let n=$R.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var tz=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function nz(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?QR:u===`decimal`?YR:XR;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&qR.includes(y)&&(_=y,v=ez(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&ez(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1)){if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):QR(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(rz(e))h(7,S),C=`�`;else if(e in JR)h(6,S),C=JR[e];else{let t=``;iz(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,tz[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function rz(e){return e>=55296&&e<=57343||e>1114111}function iz(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var az=(e,t)=>{if(!e.includes(`{{`))return e;let{innerTag:n}=e.match(Lne)?.groups??{};return n===void 0?e:String(t(n)??``)},oz=(e,t)=>e.map(e=>{let{defaultValue:n,truthyValue:r,falsyValue:i}=e.args,a={...e.args},o=!1;if(n!==void 0){let e=az(n,t);e!==n&&(a.defaultValue=e,o=!0)}if(r!==void 0){let e=az(r,t);e!==r&&(a.truthyValue=e,o=!0)}if(i!==void 0){let e=az(i,t);e!==i&&(a.falsyValue=e,o=!0)}return o?{...e,args:a}:e}),sz=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof ee||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new ee(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var ee=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),te=ee.prototype;return w.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,ee,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),cz=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),lz=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),uz=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),dz=l(sz(),1),fz=l(cz(),1),pz=l(lz(),1),mz=l(uz(),1),hz=new Set([`local`,`utc`]),gz=new WeakMap,_z=e=>typeof e==`string`&&!hz.has(e),vz=e=>{let t=gz.get(e);if(t)return t;let{type:n=`datetime-local`,min:r=void 0,max:i=void 0,step:a=void 0,format:o,date_format:s=void 0,time_format:c=void 0,picker_utc:l=!1,input_timezone:u=`local`,output_utc:d=!1}=e,f=typeof u==`string`&&u!==`any`?u:`local`,p=typeof s==`string`?s:``,m=typeof c==`string`?c:``,h=n===`date`||c===!1,g=n===`time`||s===!1,_=h?`9999-12-31`:g?void 0:`9999-12-31T23:59`,v=e.input_timezone===void 0?l?`utc`:`local`:f,y={type:h?`date`:g?`time`:`datetime-local`,min:typeof r==`string`&&r?r:void 0,max:typeof i==`string`&&i?i:_,step:typeof a==`number`&&Number.isInteger(a)&&a>0||a===`any`?a:void 0,format:o||[p,m].join(` `).trim()||void 0,dateOnly:h,timeOnly:g,inputTimeZone:v,outputUTC:e.output_utc===void 0?l:d,utc:v===`utc`,singleCustomTimeZone:_z(v)?v:void 0};return gz.set(e,y),y};dz.default.extend(fz.default),dz.default.extend(pz.default),dz.default.extend(mz.default);var yz=/\s*\|\s*/,bz=/^\d{4}-[01]\d-[0-3]\d$/,xz=/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/,Sz=Object.entries({date:/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,default:/^default\('(?<defaultValue>.+?)'\)$/,ternary:/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,truncate:/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/}),Cz=e=>{for(let[t,n]of Sz){let r=Object.entries(e.match(n)?.groups??{});if(r.length)return{method:t,args:Object.fromEntries(r.filter(([,e])=>e!==void 0))}}return{method:e,args:{}}},wz=e=>{let[t,...n]=e.trim().split(yz);return{value:t,transformations:n.map(e=>Cz(e))}},Tz=e=>String(e).toUpperCase(),Ez=e=>String(e).toLowerCase(),Dz=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=vz(r),s=(n===`utc`||o||a&&i.match(bz)||a&&i.match(xz)?dz.default.utc:dz.default)(i);return s.isValid()?s.format(t):``},Oz=(e,{defaultValue:t})=>e?String(e):t,kz=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Az=(e,{max:t,ellipsis:n=`…`})=>ik(String(e),Number(t),{ellipsis:n}),jz=({fieldConfig:e,value:t,transformation:n,locale:r})=>{let{method:i,args:a}=n;switch(i){case`upper`:return Tz(t);case`lower`:return Ez(t);case`slugify`:return KR(String(t),{locale:r});case`date`:return Dz(t,a,e??{});case`default`:return Oz(t,a);case`ternary`:return kz(t,a);case`truncate`:return Az(t,a);default:return String(t)}},Mz=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=jz({fieldConfig:e,value:t,transformation:n,locale:r})}),t),Nz=e=>!(`divider`in e)&&typeof e.file==`string`&&Array.isArray(e.fields),Pz=e=>e.filter(e=>Nz(e)),Fz=(e,t)=>{let n=typeof e==`string`?XB(e):e;if(!(!n||!(`_fileMap`in n)))return n._fileMap[t]},Iz=e=>e.label||e.name,Lz=(e,t)=>`_fileMap`in e?Object.values(e._fileMap).filter(({_file:e,_i18n:n})=>e.fullPath===t.locales[n.defaultLocale]?.path):[],Rz=(e,t)=>{let n=A(tV).find(({collectionName:n,fileName:r})=>n===e&&r===t);if(!n?.filePathMap)return;let r=new Set(Object.values(n.filePathMap));return A(nV).find(e=>Object.values(e.locales).some(({path:e})=>r.has(e)))},zz=(e,t)=>{if(e&&t){let{collections:n,singletons:r}=A(KG);if(e===`_singletons`)return Array.isArray(r)?Pz(r).findIndex(e=>e.name===t):-1;let i=WB({collections:n}).find(({name:t})=>t===e);if(i&&`files`in i)return i.files.findIndex(({name:e})=>e===t)}return-1},Bz=[`boolean`,`code`,`color`,`compute`,`datetime`,`file`,`hidden`,`image`,`keyvalue`,`list`,`map`,`markdown`,`number`,`object`,`relation`,`richtext`,`select`,`string`,`text`,`uuid`],Vz=[`boolean`,`color`,`compute`,`datetime`,`map`,`markdown`,`number`,`richtext`,`string`,`text`,`uuid`].filter(e=>![`boolean`,`number`].includes(e)),Hz=[`file`,`image`],Uz=[...Hz,`relation`,`select`],Wz=[...Uz,`datetime`,`keyvalue`,`list`,`number`],Gz=new Map,Kz=new Map,qz=new Map,Jz=new Set,Yz=new Map,Xz=new Set,Zz={slug_length:!1,yaml_quote:!1,uuid_read_only:!1,save_all_locales:!1,automatic_deployments:!1,multiple_folders_i18n_root:!1,omit_default_locale_from_filename:!1},Qz={slug_length:"The `slug_length` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `slug.maxlength` option instead. ",yaml_quote:"The `yaml_quote` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `output.yaml.quote` option instead. `yaml_quote: true` is equivalent to `quote: double`. https://sveltiacms.app/en/docs/data-output#controlling-data-output",uuid_read_only:"The `read_only` option for the UUID field type is deprecated and will be removed in Sveltia CMS 1.0. Use the `readonly` option instead.",save_all_locales:"The `save_all_locales` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `initial_locales` option instead. `save_all_locales: false` is equivalent to `initial_locales: all`. https://sveltiacms.app/en/docs/i18n#disabling-non-default-locale-content",automatic_deployments:"The `automatic_deployments` backend option is deprecated and will be removed in Sveltia CMS 1.0. Use the `skip_ci` option instead. `automatic_deployments: false` is equivalent to `skip_ci: true`, and `automatic_deployments: true` is equivalent to `skip_ci: false`. https://sveltiacms.app/en/docs/deployments#disabling-automatic-deployments",multiple_folders_i18n_root:"The `multiple_folders_i18n_root` i18n structure is deprecated and will be removed in Sveltia CMS 1.0. Use the `multiple_root_folders` structure instead. https://sveltiacms.app/en/docs/i18n#multiple-root-folders",omit_default_locale_from_filename:"The `omit_default_locale_from_filename` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `omit_default_locale_from_file_path` option instead. https://sveltiacms.app/en/docs/i18n#managing-content-structure"},$z=(e,t)=>{Zz[e]||(console.warn(t??Qz[e]),Zz[e]=!0)},eB=`_index`,tB=new WeakMap,nB=e=>{if(!BB(e))return;let{index_file:t}=e;if(t)return(t===!0?void 0:t.name)??eB},rB=e=>{let t=tB.get(e);if(t&&t.locale===gc.current)return t.indexFile;let n=nB(e),r;if(n!==void 0){let{index_file:t}=e,i=t===!0?{}:t;r={name:n,label:i.label??Y(`index_file`),icon:i.icon??`home`,fields:i.fields,editor:i.editor}}return tB.set(e,{locale:gc.current,indexFile:r}),r},iB=(e,t)=>{let n=nB(e);return n!==void 0&&t.slug===n},aB=[`markdown`,`md`,`mdown`,`mdwn`,`mdx`,`mkd`,`mkdn`,`html.md`],oB=[`njk`],sB=[...aB,...oB],cB={raw:`txt`,yaml:`yml`,yml:`yml`,toml:`toml`,json:`json`},lB={yaml:`yaml`,yml:`yaml`,toml:`toml`,json:`json`,astro:`raw`},uB={"json-frontmatter":[`{`,`}`],"toml-frontmatter":[`+++`,`+++`],"yaml-frontmatter":[`---`,`---`]},dB=[`yaml-frontmatter`,`toml-frontmatter`,`json-frontmatter`],fB=[`toml`,`toml-frontmatter`],pB={type:`language`,languageDisplay:`standard`,style:`short`,fallback:`none`},mB=e=>{let t;if(e!==`_default`)try{[t]=Intl.getCanonicalLocales(e)}catch{}return t},hB=e=>e===`_default`?`auto`:hc(e)?`rtl`:`ltr`,gB=new Map,_B=(e,{displayLocale:t=mB(gc.current??`en`),formatterOptions:n=pB}={})=>{let r=mB(e);if(!r)return;let i;t?(i=gB.get(t),i||(i=new Intl.DisplayNames(t,n),gB.set(t,i))):i=new Intl.DisplayNames(void 0,n);try{let e=i.of(r);if(!e)return;let[n,...a]=e;return[n.toLocaleUpperCase(t),...a].join(``)}catch(e){console.error(e);return}},vB=new Map,yB=(e,t={})=>{let n={style:`narrow`,type:`conjunction`,...t},r=`${e}|${n.style}|${n.type}`,i=vB.get(r);return i||(i=new Intl.ListFormat(mB(e),n),vB.set(r,i)),i},bB=({_i18n:e,locale:t,path:n})=>{let{defaultLocale:r,omitDefaultLocaleFromFilePath:i}=e;return i&&t===r&&(n=n.replace(/{{locale}}[./]/,``)),n.replaceAll(`{{locale}}`,t)},xB=({extension:e,format:t})=>(t?qz.get(t)?.extension:void 0)||e||(t?cB[t]??`md`:`md`),SB=({extension:e,format:t})=>t||(aB.includes(e)?`frontmatter`:lB[e]??`yaml-frontmatter`),CB=(e,t)=>e?`(?<subPath>${rk(e).replace(DP,`[^/]+?`)}${t?`|${t}`:``})`:`(?<subPath>[^/]+?)`,wB=({extension:e,format:t,basePath:n,subPath:r,indexFileName:i,_i18n:a})=>{let{allLocales:o,defaultLocale:s,omitDefaultLocaleFromFilePath:c,structureMap:{i18nMultiFile:l,i18nMultiFolder:u,i18nMultiRootFolder:d}}=a,f=`(?<locale>${o.join(`|`)})`,p=o.filter(e=>e!==s).join(`|`),m=c?`(?:(?<locale>${p})\\/)?`:`${f}\\/`,h=c?`(?:\\.(?<locale>${p}))?`:`\\.${f}`,g=[`^`,d?m:``,n?`${rk(n)}\\/`:``,u?m:``,CB(r,i),l?h:``,`\\.`,rk(xB({format:t,extension:e})),`$`].join(``);return new RegExp(g)},TB=({format:e,delimiter:t})=>typeof t==`string`&&t.trim()?[t,t]:Array.isArray(t)&&t.length===2?t:uB[e]??void 0,EB=({rawCollection:e,file:t,_i18n:n})=>{let{folder:r,path:i,extension:a,format:o,frontmatter_delimiter:s,body_field:c,yaml_quote:l}=e,u=BB(e),d=t?.file?ak(t.file):void 0,f=d?bP(d).extension:a,p=t?.format??o,m=xB({format:p,extension:f}),h=SB({format:p,extension:m}),g=t?.frontmatter_delimiter??s,_=u?ak(r):void 0,v=u?rB(e)?.name:void 0;return l!==void 0&&$z(`yaml_quote`),{extension:m,format:h,basePath:_,subPath:u?i:void 0,fullPathRegEx:_===void 0?void 0:wB({extension:m,format:h,basePath:_,subPath:i,indexFileName:v,_i18n:n}),fullPath:d?bB({_i18n:n,locale:n.defaultLocale,path:d}):void 0,fmDelimiters:TB({format:h,delimiter:g}),bodyField:t?.body_field??c,yamlQuote:!!l}},DB={SINGLE_FILE:`single_file`,SINGLE_FILE_DEFAULT_ROOT:`single_file_default_root`,MULTIPLE_FILES:`multiple_files`,MULTIPLE_FOLDERS:`multiple_folders`,MULTIPLE_FOLDERS_I18N_ROOT:`multiple_folders_i18n_root`,MULTIPLE_ROOT_FOLDERS:`multiple_root_folders`},OB=`_default`,kB={key:`translationKey`,value:`{{slug}}`},AB={i18nEnabled:!1,saveAllLocales:!0,allLocales:[OB],initialLocales:[OB],defaultLocale:OB,structure:DB.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nSingleFileDefaultRoot:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nMultiRootFolder:!1},canonicalSlug:{...kB},omitDefaultLocaleFromFilePath:!1,omitDefaultLocaleFromPreviewPath:!1},jB=(e,t)=>{let n=A(KG);if(!_(n.i18n))return;let r=structuredClone(n.i18n);if(e.i18n||HB(e)){if(_(e.i18n)&&Object.assign(r,e.i18n),t){if(t.i18n)_(t.i18n)&&Object.assign(r,t.i18n);else return}}else return;return r},MB=(e,t)=>t?t.file.includes(`{{locale}}`)?DB.MULTIPLE_FILES:e===DB.SINGLE_FILE_DEFAULT_ROOT?DB.SINGLE_FILE_DEFAULT_ROOT:DB.SINGLE_FILE:e,NB=(e,t)=>({i18nSingleFile:e&&t===DB.SINGLE_FILE,i18nSingleFileDefaultRoot:e&&t===DB.SINGLE_FILE_DEFAULT_ROOT,i18nMultiFile:e&&t===DB.MULTIPLE_FILES,i18nMultiFolder:e&&t===DB.MULTIPLE_FOLDERS,i18nMultiRootFolder:e&&(t===DB.MULTIPLE_FOLDERS_I18N_ROOT||t===DB.MULTIPLE_ROOT_FOLDERS)}),PB=(e,t,n)=>e?n&&t.includes(n)?n:t[0]:OB,FB=(e,t,n)=>e===`all`?t:e==="default"?[n]:t.filter(t=>t===n||!Array.isArray(e)||e.includes(t)),IB=(e,t,n)=>e?n?/{{locale}}[./]/.test(n.file):t.i18nMultiFile||t.i18nMultiFolder||t.i18nMultiRootFolder:!1,LB=(e,t)=>{let n=jB(e,t),{structure:r=DB.SINGLE_FILE,locales:i=[],default_locale:a,initial_locales:o,save_all_locales:s=!0,canonical_slug:c={key:void 0,value:void 0},omit_default_locale_from_filename:l,omit_default_locale_from_file_path:u=l??!1,omit_default_locale_from_preview_path:d=!1}=n??{};n?.save_all_locales!==void 0&&$z(`save_all_locales`),l!==void 0&&$z(`omit_default_locale_from_filename`);let{key:f=kB.key,value:p=kB.value}=c,m=i.length>0,h=m?i:[OB],g=PB(m,h,a),_=MB(r,t),v=NB(m,_),y=!m||s===!0&&o===void 0,b=FB(o,h,g),x=IB(u,v,t);return _===`multiple_folders_i18n_root`&&$z(`multiple_folders_i18n_root`),{i18nEnabled:m,saveAllLocales:y,allLocales:h,defaultLocale:g,initialLocales:b,structure:_,structureMap:v,canonicalSlug:{key:f,value:p},omitDefaultLocaleFromFilePath:x,omitDefaultLocaleFromPreviewPath:d}},RB=Bt(),zB=new Map,BB=e=>typeof e.folder==`string`&&!Array.isArray(e.files),VB=e=>e.folder===void 0&&Array.isArray(e.files),HB=e=>VB(e)&&e.name===`_singletons`,UB=(e,{visible:t=void 0,type:n=void 0}={})=>`divider`in e||t&&e.hide?!1:n===`entry`?BB(e):n===`file`?VB(e):n===`singleton`?HB(e):BB(e)||VB(e),WB=({collections:e=A(KG)?.collections??[],visible:t,type:n}={})=>e.filter(e=>UB(e,{visible:t,type:n})),GB=()=>WB({visible:!0})[0],KB=e=>{if(!(`folder`in e))return[];let{fields:t,thumbnail:n=!0}=e;return n===!1?[]:typeof n==`string`?[n]:Array.isArray(n)?n:t?.length?t.filter(({widget:e=`string`})=>Hz.includes(e)).map(({multiple:e,name:t})=>e?`${t}.*`:t):[]},qB=(e,t)=>({...e,_i18n:t,_type:`entry`,_file:EB({rawCollection:e,_i18n:t}),_thumbnailFieldNames:KB(e)}),JB=(e,t,n)=>({...e,_i18n:t,_type:HB(e)?`singleton`:`file`,_fileMap:Object.fromEntries(n.filter(Nz).map(t=>{let n=LB(e,t),r=EB({rawCollection:e,file:t,_i18n:n});return[t.name,{...t,_file:r,_i18n:n}]}))}),YB=()=>{let e=A(KG)?.singletons;if(!Array.isArray(e))return;let t=Pz(e).map(e=>({...e,file:ak(e.file)}));if(!t.length)return;let n={name:`_singletons`,files:t};return JB(n,LB(n),t)},XB=e=>{let t=zB.get(e);if(t)return t;if(e===`_singletons`){let t=YB();return zB.set(e,t),t}let n=WB().find(t=>t.name===e);if(!n){zB.set(e,void 0);return}let r=BB(n)?n:void 0,i=VB(n)?n:void 0;if(!r&&!i){zB.set(e,void 0);return}r?r.folder=ak(r.folder):i?.files.forEach(e=>{e.file&&=ak(e.file)});let a=LB(n),o=r?qB(r,a):JB(i,a,i.files);return zB.set(e,o),o},ZB=(e,{useSingular:t=!1}={})=>{let{_type:n,name:r,label:i,label_singular:a}=e;return n===`singleton`?Y(`files`):t&&a?a:i||r},QB=e=>e?e===`_singletons`?9999999:A(KG)?.collections?.findIndex(({name:t})=>t===e)??-1:-1,$B=Bt(!1),eV=Bt(),tV=Bt([]),nV=Bt([]),rV=Bt([]),iV={source:void 0,fileMap:new Map,regexFolders:[]},aV=()=>{let e=A(tV);if(e===iV.source)return iV;let t=new Map,n=[];return e.forEach(e=>{e.filePathMap?[...new Set(Object.values(e.filePathMap))].forEach(n=>{let r=t.get(n);r?r.push(e):t.set(n,[e])}):n.push([e,XB(e.collectionName)?._file?.fullPathRegEx])}),iV.source=e,iV.fileMap=t,iV.regexFolders=n,iV},oV=e=>{let{fileMap:t,regexFolders:n}=aV();return[...t.get(e)??[],...n.filter(([,t])=>t?.test(e)).map(([e])=>e)].sort((e,t)=>(t.folderPath??``).localeCompare(e.folderPath??``))},sV=new WeakMap,cV=e=>{let t=sV.get(e);return t||(t=Object.keys(e).map((e,t)=>[e,t]).sort(([e],[t])=>e<t?-1:1),sV.set(e,t)),t},lV=(e,t)=>{let n=cV(e),r=0,i=n.length;for(;r<i;){let e=Math.floor((r+i)/2);n[e][0]<t?r=e+1:i=e}let a=[];for(let e=r;e<n.length&&n[e][0].startsWith(t);e+=1)a.push(n[e]);return a.sort(([,e],[,t])=>e-t).map(([e])=>e)},uV=/^(?<parent>.+)\.\d+$/,dV=new WeakMap,fV=(e,t)=>{let n=dV.get(e);return n||(n=new Map,Object.keys(e).forEach(e=>{let{parent:t}=e.match(uV)?.groups??{};if(t===void 0)return;let r=n.get(t);r?r.push(e):n.set(t,[e])}),dV.set(e,n)),n.get(t)??[]},pV=l(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s<r.length;s+=1){var c=r[s],l=c.type,u=c.value,d=e[l];d>=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){e===void 0&&(e=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString(`en-US`,{timeZone:e}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(!Number(l))n=this.utcOffset(0,t);else if(n=i(s,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,r).valueOf(),c,o),u=l[0],d=l[1],f=i(u).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))}))(),1),mV=/^\d{4}-[01]\d-[0-3]\d$/,hV=/T00:00(?::00)?(?:\.000)?Z$/,gV={year:`numeric`,month:`short`,day:`numeric`},_V={hour:`numeric`,minute:`numeric`,hour12:!0},vV={...gV,..._V},yV=(e,t)=>e.toLocaleString(t??void 0,vV),bV=/(?<hours>[+-]\d{2})(?::?(?<minutes>\d{2}))?(?::?(?<seconds>\d{2}))?(?:\.\d+)?$|Z$/,xV=e=>String(Math.abs(Number(e))).padStart(2,`0`),SV=(e,t)=>{if(typeof e!=`string`||!e.trim())return;let{inputTimeZone:n}=vz(t);if(n===`local`||n===`utc`)return;let r=new Date(e);if(Number.isNaN(r.getTime()))return;let i=e.match(bV);if(!i?.groups)return;let{hours:a,minutes:o=`0`}=i.groups,s=i[0]===`Z`?`+00:00`:`${a.startsWith(`-`)?`-`:`+`}${xV(a)}:${xV(o)}`;return(new Intl.DateTimeFormat(`en-US`,{timeZone:n,timeZoneName:`longOffset`}).formatToParts(r).find(e=>e.type===`timeZoneName`)?.value??``).replace(`GMT`,``)===s?n:void 0},CV=(e,t)=>{let n=SV(e,t);if(n)return n;let{inputTimeZone:r,singleCustomTimeZone:i}=vz(t);if(i)return i;try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(r===`local`)return e}catch{return r===`local`?``:void 0}},wV=(e,t=new Date)=>{try{let n=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).formatToParts(t).find(e=>e.type===`timeZoneName`)?.value??``,r=e.split(`/`).pop()?.replaceAll(`_`,` `)??e;return`(${n.replace(`GMT`,``)}) ${r}`}catch{return e}};dz.default.extend(fz.default),dz.default.extend(pz.default),dz.default.extend(mz.default),dz.default.extend(pV.default);var TV=/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/,EV=/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/,DV=e=>e instanceof Date&&!Number.isNaN(e.getTime()),OV=e=>e?dz.default.utc:dz.default,kV=({value:e,format:t,parseAsUTC:n})=>{let r=OV(n),i=r(e,t);return i.isValid()?i:r(e)},AV=({date:e,timeZone:t,inputTimeZone:n,dateOnly:r,timeOnly:i,includeUTCSeconds:a=!1})=>{let o=t||(n===`utc`?`UTC`:void 0),{year:s,month:c,day:l,hour:u,minute:d}=MR({date:e,timeZone:o}),f=`${s}-${c}-${l}`,p=`${u}:${d}`;return r?f:i?p:a&&o===`UTC`?`${f}T${p}:00.000Z`:`${f}T${p}`},jV=(e,t)=>{let{format:n,timeOnly:r,utc:i,outputUTC:a}=vz(t),o=i||a;if(!e)return;let s;if(n){let t=kV({value:e,format:n,parseAsUTC:o});if(t.isValid())return t.toDate();console.error(`Invalid Date`,e);return}if(s=r?new Date(`${new Date().toJSON().split(`T`)[0]}T${e}`):new Date(e),DV(s))return s;console.error(`Invalid Date`,e)},MV=(e,t)=>{let{dateOnly:n,timeOnly:r,inputTimeZone:i}=vz(e);return AV({timeZone:t,inputTimeZone:i,dateOnly:n,timeOnly:r,includeUTCSeconds:!0})},NV=({inputValue:e,currentValue:t,fieldConfig:n,timeZone:r,outputUTC:i})=>{let{format:a,dateOnly:o,timeOnly:s,inputTimeZone:c,outputUTC:l}=vz(n),u=i??l,d=o?`YYYY-MM-DD`:s?`HH:mm`:`YYYY-MM-DDTHH:mm`,f=c===`utc`?`UTC`:c===`local`?u?r:void 0:r||c;if(e===``)return``;if(!e)return;if(a){let t=OV(c===`utc`),n=t(e,d);return n.isValid()||(n=t(e)),n.isValid()?(f&&(n=n.tz(f,!0)),u&&c!==`utc`&&(n=n.utc()),n.format(a)):``}if(o)return e;let p=/:\d{2}$/.test(e),m=t?`:00${t.endsWith(`.000`)?`.000`:``}`:`:00`;return s?p?e:`${e}${m}`:c===`utc`?dz.default.utc(e).format():u?(r?dz.default.tz(e,r):(0,dz.default)(e)).utc().format():r&&c!==`local`?dz.default.tz(e,r).format(`YYYY-MM-DDTHH:mm:ssZ`):p?e:`${e}${m}`},PV=({currentValue:e,fieldConfig:t,timeZone:n})=>{let{dateOnly:r,timeOnly:i,inputTimeZone:a,format:o,outputUTC:s}=vz(t),c=SV(e,t)??n;if(!e)return``;let l=r?e.match(TV)?.groups?.date:i?e.match(EV)?.groups?.time:void 0;if(l)return l;let u;if(c&&o&&!s){try{let t=(0,dz.default)(e,o).tz(c,!0);u=t.isValid()?t.toDate():void 0}catch{}u??=jV(e,t)}else u=jV(e,t);return u?AV({date:u,timeZone:c,inputTimeZone:a,dateOnly:r,timeOnly:i}):``},FV=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o,singleCustomTimeZone:s}=vz(t),c=o?`UTC`:s;if(typeof n!=`string`||!n.trim())return``;if(r){let e=kV({value:n,format:r,parseAsUTC:o});return e.isValid()?e.format(r):(console.error(`Invalid Date`,n),``)}let l=jV(n,t),u=mB(e);return DV(l)?a?l.toLocaleTimeString(u,{..._V,timeZone:c}):i?l.toLocaleDateString(u,{...gV,timeZone:c||(o||mV.test(n)||hV.test(n)?`UTC`:void 0)}):l.toLocaleString(u,{...gV,..._V,timeZone:c,timeZoneName:void 0}):``},IV={"application/prs.cww":[`cww`],"application/prs.xsf+xml":[`xsf`],"application/vnd.1000minds.decision-model+xml":[`1km`],"application/vnd.3gpp.pic-bw-large":[`plb`],"application/vnd.3gpp.pic-bw-small":[`psb`],"application/vnd.3gpp.pic-bw-var":[`pvb`],"application/vnd.3gpp2.tcap":[`tcap`],"application/vnd.3m.post-it-notes":[`pwn`],"application/vnd.accpac.simply.aso":[`aso`],"application/vnd.accpac.simply.imp":[`imp`],"application/vnd.acucobol":[`acu`],"application/vnd.acucorp":[`atc`,`acutc`],"application/vnd.adobe.air-application-installer-package+zip":[`air`],"application/vnd.adobe.formscentral.fcdt":[`fcdt`],"application/vnd.adobe.fxp":[`fxp`,`fxpl`],"application/vnd.adobe.xdp+xml":[`xdp`],"application/vnd.adobe.xfdf":[`*xfdf`],"application/vnd.age":[`age`],"application/vnd.ahead.space":[`ahead`],"application/vnd.airzip.filesecure.azf":[`azf`],"application/vnd.airzip.filesecure.azs":[`azs`],"application/vnd.amazon.ebook":[`azw`],"application/vnd.americandynamics.acc":[`acc`],"application/vnd.amiga.ami":[`ami`],"application/vnd.android.package-archive":[`apk`],"application/vnd.anser-web-certificate-issue-initiation":[`cii`],"application/vnd.anser-web-funds-transfer-initiation":[`fti`],"application/vnd.antix.game-component":[`atx`],"application/vnd.apple.installer+xml":[`mpkg`],"application/vnd.apple.keynote":[`key`],"application/vnd.apple.mpegurl":[`m3u8`],"application/vnd.apple.numbers":[`numbers`],"application/vnd.apple.pages":[`pages`],"application/vnd.apple.pkpass":[`pkpass`],"application/vnd.aristanetworks.swi":[`swi`],"application/vnd.astraea-software.iota":[`iota`],"application/vnd.audiograph":[`aep`],"application/vnd.autodesk.fbx":[`fbx`],"application/vnd.balsamiq.bmml+xml":[`bmml`],"application/vnd.blueice.multipass":[`mpm`],"application/vnd.bmi":[`bmi`],"application/vnd.businessobjects":[`rep`],"application/vnd.chemdraw+xml":[`cdxml`],"application/vnd.chipnuts.karaoke-mmd":[`mmd`],"application/vnd.cinderella":[`cdy`],"application/vnd.citationstyles.style+xml":[`csl`],"application/vnd.claymore":[`cla`],"application/vnd.cloanto.rp9":[`rp9`],"application/vnd.clonk.c4group":[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`],"application/vnd.cluetrust.cartomobile-config":[`c11amc`],"application/vnd.cluetrust.cartomobile-config-pkg":[`c11amz`],"application/vnd.commonspace":[`csp`],"application/vnd.contact.cmsg":[`cdbcmsg`],"application/vnd.cosmocaller":[`cmc`],"application/vnd.crick.clicker":[`clkx`],"application/vnd.crick.clicker.keyboard":[`clkk`],"application/vnd.crick.clicker.palette":[`clkp`],"application/vnd.crick.clicker.template":[`clkt`],"application/vnd.crick.clicker.wordbank":[`clkw`],"application/vnd.criticaltools.wbs+xml":[`wbs`],"application/vnd.ctc-posml":[`pml`],"application/vnd.cups-ppd":[`ppd`],"application/vnd.curl.car":[`car`],"application/vnd.curl.pcurl":[`pcurl`],"application/vnd.dart":[`dart`],"application/vnd.data-vision.rdz":[`rdz`],"application/vnd.dbf":[`dbf`],"application/vnd.dcmp+xml":[`dcmp`],"application/vnd.dece.data":[`uvf`,`uvvf`,`uvd`,`uvvd`],"application/vnd.dece.ttml+xml":[`uvt`,`uvvt`],"application/vnd.dece.unspecified":[`uvx`,`uvvx`],"application/vnd.dece.zip":[`uvz`,`uvvz`],"application/vnd.denovo.fcselayout-link":[`fe_launch`],"application/vnd.dna":[`dna`],"application/vnd.dolby.mlp":[`mlp`],"application/vnd.dpgraph":[`dpg`],"application/vnd.dreamfactory":[`dfac`],"application/vnd.ds-keypoint":[`kpxx`],"application/vnd.dvb.ait":[`ait`],"application/vnd.dvb.service":[`svc`],"application/vnd.dynageo":[`geo`],"application/vnd.ecowin.chart":[`mag`],"application/vnd.enliven":[`nml`],"application/vnd.epson.esf":[`esf`],"application/vnd.epson.msf":[`msf`],"application/vnd.epson.quickanime":[`qam`],"application/vnd.epson.salt":[`slt`],"application/vnd.epson.ssf":[`ssf`],"application/vnd.eszigno3+xml":[`es3`,`et3`],"application/vnd.ezpix-album":[`ez2`],"application/vnd.ezpix-package":[`ez3`],"application/vnd.fdf":[`*fdf`],"application/vnd.fdsn.mseed":[`mseed`],"application/vnd.fdsn.seed":[`seed`,`dataless`],"application/vnd.flographit":[`gph`],"application/vnd.fluxtime.clip":[`ftc`],"application/vnd.framemaker":[`fm`,`frame`,`maker`,`book`],"application/vnd.frogans.fnc":[`fnc`],"application/vnd.frogans.ltf":[`ltf`],"application/vnd.fsc.weblaunch":[`fsc`],"application/vnd.fujitsu.oasys":[`oas`],"application/vnd.fujitsu.oasys2":[`oa2`],"application/vnd.fujitsu.oasys3":[`oa3`],"application/vnd.fujitsu.oasysgp":[`fg5`],"application/vnd.fujitsu.oasysprs":[`bh2`],"application/vnd.fujixerox.ddd":[`ddd`],"application/vnd.fujixerox.docuworks":[`xdw`],"application/vnd.fujixerox.docuworks.binder":[`xbd`],"application/vnd.fuzzysheet":[`fzs`],"application/vnd.genomatix.tuxedo":[`txd`],"application/vnd.geogebra.file":[`ggb`],"application/vnd.geogebra.slides":[`ggs`],"application/vnd.geogebra.tool":[`ggt`],"application/vnd.geometry-explorer":[`gex`,`gre`],"application/vnd.geonext":[`gxt`],"application/vnd.geoplan":[`g2w`],"application/vnd.geospace":[`g3w`],"application/vnd.gmx":[`gmx`],"application/vnd.google-apps.document":[`gdoc`],"application/vnd.google-apps.drawing":[`gdraw`],"application/vnd.google-apps.form":[`gform`],"application/vnd.google-apps.jam":[`gjam`],"application/vnd.google-apps.map":[`gmap`],"application/vnd.google-apps.presentation":[`gslides`],"application/vnd.google-apps.script":[`gscript`],"application/vnd.google-apps.site":[`gsite`],"application/vnd.google-apps.spreadsheet":[`gsheet`],"application/vnd.google-earth.kml+xml":[`kml`],"application/vnd.google-earth.kmz":[`kmz`],"application/vnd.gov.sk.xmldatacontainer+xml":[`xdcf`],"application/vnd.grafeq":[`gqf`,`gqs`],"application/vnd.groove-account":[`gac`],"application/vnd.groove-help":[`ghf`],"application/vnd.groove-identity-message":[`gim`],"application/vnd.groove-injector":[`grv`],"application/vnd.groove-tool-message":[`gtm`],"application/vnd.groove-tool-template":[`tpl`],"application/vnd.groove-vcard":[`vcg`],"application/vnd.hal+xml":[`hal`],"application/vnd.handheld-entertainment+xml":[`zmm`],"application/vnd.hbci":[`hbci`],"application/vnd.hhe.lesson-player":[`les`],"application/vnd.hp-hpgl":[`hpgl`],"application/vnd.hp-hpid":[`hpid`],"application/vnd.hp-hps":[`hps`],"application/vnd.hp-jlyt":[`jlt`],"application/vnd.hp-pcl":[`pcl`],"application/vnd.hp-pclxl":[`pclxl`],"application/vnd.hydrostatix.sof-data":[`sfd-hdstx`],"application/vnd.ibm.minipay":[`mpy`],"application/vnd.ibm.modcap":[`afp`,`listafp`,`list3820`],"application/vnd.ibm.rights-management":[`irm`],"application/vnd.ibm.secure-container":[`sc`],"application/vnd.iccprofile":[`icc`,`icm`],"application/vnd.igloader":[`igl`],"application/vnd.immervision-ivp":[`ivp`],"application/vnd.immervision-ivu":[`ivu`],"application/vnd.insors.igm":[`igm`],"application/vnd.intercon.formnet":[`xpw`,`xpx`],"application/vnd.intergeo":[`i2g`],"application/vnd.intu.qbo":[`qbo`],"application/vnd.intu.qfx":[`qfx`],"application/vnd.ipunplugged.rcprofile":[`rcprofile`],"application/vnd.irepository.package+xml":[`irp`],"application/vnd.is-xpr":[`xpr`],"application/vnd.isac.fcs":[`fcs`],"application/vnd.jam":[`jam`],"application/vnd.jcp.javame.midlet-rms":[`rms`],"application/vnd.jisp":[`jisp`],"application/vnd.joost.joda-archive":[`joda`],"application/vnd.kahootz":[`ktz`,`ktr`],"application/vnd.kde.karbon":[`karbon`],"application/vnd.kde.kchart":[`chrt`],"application/vnd.kde.kformula":[`kfo`],"application/vnd.kde.kivio":[`flw`],"application/vnd.kde.kontour":[`kon`],"application/vnd.kde.kpresenter":[`kpr`,`kpt`],"application/vnd.kde.kspread":[`ksp`],"application/vnd.kde.kword":[`kwd`,`kwt`],"application/vnd.kenameaapp":[`htke`],"application/vnd.kidspiration":[`kia`],"application/vnd.kinar":[`kne`,`knp`],"application/vnd.koan":[`skp`,`skd`,`skt`,`skm`],"application/vnd.kodak-descriptor":[`sse`],"application/vnd.las.las+xml":[`lasxml`],"application/vnd.llamagraphics.life-balance.desktop":[`lbd`],"application/vnd.llamagraphics.life-balance.exchange+xml":[`lbe`],"application/vnd.lotus-1-2-3":[`123`],"application/vnd.lotus-approach":[`apr`],"application/vnd.lotus-freelance":[`pre`],"application/vnd.lotus-notes":[`nsf`],"application/vnd.lotus-organizer":[`org`],"application/vnd.lotus-screencam":[`scm`],"application/vnd.lotus-wordpro":[`lwp`],"application/vnd.macports.portpkg":[`portpkg`],"application/vnd.mapbox-vector-tile":[`mvt`],"application/vnd.mcd":[`mcd`],"application/vnd.medcalcdata":[`mc1`],"application/vnd.mediastation.cdkey":[`cdkey`],"application/vnd.mfer":[`mwf`],"application/vnd.mfmp":[`mfm`],"application/vnd.micrografx.flo":[`flo`],"application/vnd.micrografx.igx":[`igx`],"application/vnd.mif":[`mif`],"application/vnd.mobius.daf":[`daf`],"application/vnd.mobius.dis":[`dis`],"application/vnd.mobius.mbk":[`mbk`],"application/vnd.mobius.mqy":[`mqy`],"application/vnd.mobius.msl":[`msl`],"application/vnd.mobius.plc":[`plc`],"application/vnd.mobius.txf":[`txf`],"application/vnd.mophun.application":[`mpn`],"application/vnd.mophun.certificate":[`mpc`],"application/vnd.mozilla.xul+xml":[`xul`],"application/vnd.ms-artgalry":[`cil`],"application/vnd.ms-cab-compressed":[`cab`],"application/vnd.ms-excel":[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`],"application/vnd.ms-excel.addin.macroenabled.12":[`xlam`],"application/vnd.ms-excel.sheet.binary.macroenabled.12":[`xlsb`],"application/vnd.ms-excel.sheet.macroenabled.12":[`xlsm`],"application/vnd.ms-excel.template.macroenabled.12":[`xltm`],"application/vnd.ms-fontobject":[`eot`],"application/vnd.ms-htmlhelp":[`chm`],"application/vnd.ms-ims":[`ims`],"application/vnd.ms-lrm":[`lrm`],"application/vnd.ms-officetheme":[`thmx`],"application/vnd.ms-outlook":[`msg`],"application/vnd.ms-pki.seccat":[`cat`],"application/vnd.ms-pki.stl":[`*stl`],"application/vnd.ms-powerpoint":[`ppt`,`pps`,`pot`],"application/vnd.ms-powerpoint.addin.macroenabled.12":[`ppam`],"application/vnd.ms-powerpoint.presentation.macroenabled.12":[`pptm`],"application/vnd.ms-powerpoint.slide.macroenabled.12":[`sldm`],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":[`ppsm`],"application/vnd.ms-powerpoint.template.macroenabled.12":[`potm`],"application/vnd.ms-project":[`*mpp`,`mpt`],"application/vnd.ms-visio.viewer":[`vdx`],"application/vnd.ms-word.document.macroenabled.12":[`docm`],"application/vnd.ms-word.template.macroenabled.12":[`dotm`],"application/vnd.ms-works":[`wps`,`wks`,`wcm`,`wdb`],"application/vnd.ms-wpl":[`wpl`],"application/vnd.ms-xpsdocument":[`xps`],"application/vnd.mseq":[`mseq`],"application/vnd.musician":[`mus`],"application/vnd.muvee.style":[`msty`],"application/vnd.mynfc":[`taglet`],"application/vnd.nato.bindingdataobject+xml":[`bdo`],"application/vnd.neurolanguage.nlu":[`nlu`],"application/vnd.nitf":[`ntf`,`nitf`],"application/vnd.noblenet-directory":[`nnd`],"application/vnd.noblenet-sealer":[`nns`],"application/vnd.noblenet-web":[`nnw`],"application/vnd.nokia.n-gage.ac+xml":[`*ac`],"application/vnd.nokia.n-gage.data":[`ngdat`],"application/vnd.nokia.n-gage.symbian.install":[`n-gage`],"application/vnd.nokia.radio-preset":[`rpst`],"application/vnd.nokia.radio-presets":[`rpss`],"application/vnd.novadigm.edm":[`edm`],"application/vnd.novadigm.edx":[`edx`],"application/vnd.novadigm.ext":[`ext`],"application/vnd.oasis.opendocument.chart":[`odc`],"application/vnd.oasis.opendocument.chart-template":[`otc`],"application/vnd.oasis.opendocument.database":[`odb`],"application/vnd.oasis.opendocument.formula":[`odf`],"application/vnd.oasis.opendocument.formula-template":[`odft`],"application/vnd.oasis.opendocument.graphics":[`odg`],"application/vnd.oasis.opendocument.graphics-template":[`otg`],"application/vnd.oasis.opendocument.image":[`odi`],"application/vnd.oasis.opendocument.image-template":[`oti`],"application/vnd.oasis.opendocument.presentation":[`odp`],"application/vnd.oasis.opendocument.presentation-template":[`otp`],"application/vnd.oasis.opendocument.spreadsheet":[`ods`],"application/vnd.oasis.opendocument.spreadsheet-template":[`ots`],"application/vnd.oasis.opendocument.text":[`odt`],"application/vnd.oasis.opendocument.text-master":[`odm`],"application/vnd.oasis.opendocument.text-template":[`ott`],"application/vnd.oasis.opendocument.text-web":[`oth`],"application/vnd.olpc-sugar":[`xo`],"application/vnd.oma.dd2+xml":[`dd2`],"application/vnd.openblox.game+xml":[`obgx`],"application/vnd.openofficeorg.extension":[`oxt`],"application/vnd.openstreetmap.data+xml":[`osm`],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[`pptx`],"application/vnd.openxmlformats-officedocument.presentationml.slide":[`sldx`],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":[`ppsx`],"application/vnd.openxmlformats-officedocument.presentationml.template":[`potx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[`xlsx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":[`xltx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[`docx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":[`dotx`],"application/vnd.osgeo.mapguide.package":[`mgp`],"application/vnd.osgi.dp":[`dp`],"application/vnd.osgi.subsystem":[`esa`],"application/vnd.palm":[`pdb`,`pqa`,`oprc`],"application/vnd.pawaafile":[`paw`],"application/vnd.pg.format":[`str`],"application/vnd.pg.osasli":[`ei6`],"application/vnd.picsel":[`efif`],"application/vnd.pmi.widget":[`wg`],"application/vnd.pocketlearn":[`plf`],"application/vnd.powerbuilder6":[`pbd`],"application/vnd.previewsystems.box":[`box`],"application/vnd.procrate.brushset":[`brushset`],"application/vnd.procreate.brush":[`brush`],"application/vnd.procreate.dream":[`drm`],"application/vnd.proteus.magazine":[`mgz`],"application/vnd.publishare-delta-tree":[`qps`],"application/vnd.pvi.ptid1":[`ptid`],"application/vnd.pwg-xhtml-print+xml":[`xhtm`],"application/vnd.quark.quarkxpress":[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`],"application/vnd.rar":[`rar`],"application/vnd.realvnc.bed":[`bed`],"application/vnd.recordare.musicxml":[`mxl`],"application/vnd.recordare.musicxml+xml":[`musicxml`],"application/vnd.rig.cryptonote":[`cryptonote`],"application/vnd.rim.cod":[`cod`],"application/vnd.rn-realmedia":[`rm`],"application/vnd.rn-realmedia-vbr":[`rmvb`],"application/vnd.route66.link66+xml":[`link66`],"application/vnd.sailingtracker.track":[`st`],"application/vnd.seemail":[`see`],"application/vnd.sema":[`sema`],"application/vnd.semd":[`semd`],"application/vnd.semf":[`semf`],"application/vnd.shana.informed.formdata":[`ifm`],"application/vnd.shana.informed.formtemplate":[`itp`],"application/vnd.shana.informed.interchange":[`iif`],"application/vnd.shana.informed.package":[`ipk`],"application/vnd.simtech-mindmapper":[`twd`,`twds`],"application/vnd.smaf":[`mmf`],"application/vnd.smart.teacher":[`teacher`],"application/vnd.software602.filler.form+xml":[`fo`],"application/vnd.solent.sdkm+xml":[`sdkm`,`sdkd`],"application/vnd.spotfire.dxp":[`dxp`],"application/vnd.spotfire.sfs":[`sfs`],"application/vnd.stardivision.calc":[`sdc`],"application/vnd.stardivision.draw":[`sda`],"application/vnd.stardivision.impress":[`sdd`],"application/vnd.stardivision.math":[`smf`],"application/vnd.stardivision.writer":[`sdw`,`vor`],"application/vnd.stardivision.writer-global":[`sgl`],"application/vnd.stepmania.package":[`smzip`],"application/vnd.stepmania.stepchart":[`sm`],"application/vnd.sun.wadl+xml":[`wadl`],"application/vnd.sun.xml.calc":[`sxc`],"application/vnd.sun.xml.calc.template":[`stc`],"application/vnd.sun.xml.draw":[`sxd`],"application/vnd.sun.xml.draw.template":[`std`],"application/vnd.sun.xml.impress":[`sxi`],"application/vnd.sun.xml.impress.template":[`sti`],"application/vnd.sun.xml.math":[`sxm`],"application/vnd.sun.xml.writer":[`sxw`],"application/vnd.sun.xml.writer.global":[`sxg`],"application/vnd.sun.xml.writer.template":[`stw`],"application/vnd.sus-calendar":[`sus`,`susp`],"application/vnd.svd":[`svd`],"application/vnd.symbian.install":[`sis`,`sisx`],"application/vnd.syncml+xml":[`xsm`],"application/vnd.syncml.dm+wbxml":[`bdm`],"application/vnd.syncml.dm+xml":[`xdm`],"application/vnd.syncml.dmddf+xml":[`ddf`],"application/vnd.tao.intent-module-archive":[`tao`],"application/vnd.tcpdump.pcap":[`pcap`,`cap`,`dmp`],"application/vnd.tmobile-livetv":[`tmo`],"application/vnd.trid.tpt":[`tpt`],"application/vnd.triscape.mxs":[`mxs`],"application/vnd.trueapp":[`tra`],"application/vnd.ufdl":[`ufd`,`ufdl`],"application/vnd.uiq.theme":[`utz`],"application/vnd.umajin":[`umj`],"application/vnd.unity":[`unityweb`],"application/vnd.uoml+xml":[`uoml`,`uo`],"application/vnd.vcx":[`vcx`],"application/vnd.visio":[`vsd`,`vst`,`vss`,`vsw`,`vsdx`,`vtx`],"application/vnd.visionary":[`vis`],"application/vnd.vsf":[`vsf`],"application/vnd.wap.wbxml":[`wbxml`],"application/vnd.wap.wmlc":[`wmlc`],"application/vnd.wap.wmlscriptc":[`wmlsc`],"application/vnd.webturbo":[`wtb`],"application/vnd.wolfram.player":[`nbp`],"application/vnd.wordperfect":[`wpd`],"application/vnd.wqd":[`wqd`],"application/vnd.wt.stf":[`stf`],"application/vnd.xara":[`xar`],"application/vnd.xfdl":[`xfdl`],"application/vnd.yamaha.hv-dic":[`hvd`],"application/vnd.yamaha.hv-script":[`hvs`],"application/vnd.yamaha.hv-voice":[`hvp`],"application/vnd.yamaha.openscoreformat":[`osf`],"application/vnd.yamaha.openscoreformat.osfpvg+xml":[`osfpvg`],"application/vnd.yamaha.smaf-audio":[`saf`],"application/vnd.yamaha.smaf-phrase":[`spf`],"application/vnd.yellowriver-custom-menu":[`cmp`],"application/vnd.zul":[`zir`,`zirz`],"application/vnd.zzazz.deck+xml":[`zaz`],"application/x-7z-compressed":[`7z`],"application/x-abiword":[`abw`],"application/x-ace-compressed":[`ace`],"application/x-apple-diskimage":[`*dmg`],"application/x-arj":[`arj`],"application/x-authorware-bin":[`aab`,`x32`,`u32`,`vox`],"application/x-authorware-map":[`aam`],"application/x-authorware-seg":[`aas`],"application/x-bcpio":[`bcpio`],"application/x-bdoc":[`*bdoc`],"application/x-bittorrent":[`torrent`],"application/x-blender":[`blend`],"application/x-blorb":[`blb`,`blorb`],"application/x-bzip":[`bz`],"application/x-bzip2":[`bz2`,`boz`],"application/x-cbr":[`cbr`,`cba`,`cbt`,`cbz`,`cb7`],"application/x-cdlink":[`vcd`],"application/x-cfs-compressed":[`cfs`],"application/x-chat":[`chat`],"application/x-chess-pgn":[`pgn`],"application/x-chrome-extension":[`crx`],"application/x-cocoa":[`cco`],"application/x-compressed":[`*rar`],"application/x-conference":[`nsc`],"application/x-cpio":[`cpio`],"application/x-csh":[`csh`],"application/x-debian-package":[`*deb`,`udeb`],"application/x-dgc-compressed":[`dgc`],"application/x-director":[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`],"application/x-doom":[`wad`],"application/x-dtbncx+xml":[`ncx`],"application/x-dtbook+xml":[`dtb`],"application/x-dtbresource+xml":[`res`],"application/x-dvi":[`dvi`],"application/x-envoy":[`evy`],"application/x-eva":[`eva`],"application/x-font-bdf":[`bdf`],"application/x-font-ghostscript":[`gsf`],"application/x-font-linux-psf":[`psf`],"application/x-font-pcf":[`pcf`],"application/x-font-snf":[`snf`],"application/x-font-type1":[`pfa`,`pfb`,`pfm`,`afm`],"application/x-freearc":[`arc`],"application/x-futuresplash":[`spl`],"application/x-gca-compressed":[`gca`],"application/x-glulx":[`ulx`],"application/x-gnumeric":[`gnumeric`],"application/x-gramps-xml":[`gramps`],"application/x-gtar":[`gtar`],"application/x-hdf":[`hdf`],"application/x-httpd-php":[`php`],"application/x-install-instructions":[`install`],"application/x-ipynb+json":[`ipynb`],"application/x-iso9660-image":[`*iso`],"application/x-iwork-keynote-sffkey":[`*key`],"application/x-iwork-numbers-sffnumbers":[`*numbers`],"application/x-iwork-pages-sffpages":[`*pages`],"application/x-java-archive-diff":[`jardiff`],"application/x-java-jnlp-file":[`jnlp`],"application/x-keepass2":[`kdbx`],"application/x-latex":[`latex`],"application/x-lua-bytecode":[`luac`],"application/x-lzh-compressed":[`lzh`,`lha`],"application/x-makeself":[`run`],"application/x-mie":[`mie`],"application/x-mobipocket-ebook":[`*prc`,`mobi`],"application/x-ms-application":[`application`],"application/x-ms-shortcut":[`lnk`],"application/x-ms-wmd":[`wmd`],"application/x-ms-wmz":[`wmz`],"application/x-ms-xbap":[`xbap`],"application/x-msaccess":[`mdb`],"application/x-msbinder":[`obd`],"application/x-mscardfile":[`crd`],"application/x-msclip":[`clp`],"application/x-msdos-program":[`*exe`],"application/x-msdownload":[`*exe`,`*dll`,`com`,`bat`,`*msi`],"application/x-msmediaview":[`mvb`,`m13`,`m14`],"application/x-msmetafile":[`*wmf`,`*wmz`,`*emf`,`emz`],"application/x-msmoney":[`mny`],"application/x-mspublisher":[`pub`],"application/x-msschedule":[`scd`],"application/x-msterminal":[`trm`],"application/x-mswrite":[`wri`],"application/x-netcdf":[`nc`,`cdf`],"application/x-ns-proxy-autoconfig":[`pac`],"application/x-nzb":[`nzb`],"application/x-perl":[`pl`,`pm`],"application/x-pilot":[`*prc`,`*pdb`],"application/x-pkcs12":[`p12`,`pfx`],"application/x-pkcs7-certificates":[`p7b`,`spc`],"application/x-pkcs7-certreqresp":[`p7r`],"application/x-rar-compressed":[`*rar`],"application/x-redhat-package-manager":[`rpm`],"application/x-research-info-systems":[`ris`],"application/x-sea":[`sea`],"application/x-sh":[`sh`],"application/x-shar":[`shar`],"application/x-shockwave-flash":[`swf`],"application/x-silverlight-app":[`xap`],"application/x-sql":[`*sql`],"application/x-stuffit":[`sit`],"application/x-stuffitx":[`sitx`],"application/x-subrip":[`srt`],"application/x-sv4cpio":[`sv4cpio`],"application/x-sv4crc":[`sv4crc`],"application/x-t3vm-image":[`t3`],"application/x-tads":[`gam`],"application/x-tar":[`tar`],"application/x-tcl":[`tcl`,`tk`],"application/x-tex":[`tex`],"application/x-tex-tfm":[`tfm`],"application/x-texinfo":[`texinfo`,`texi`],"application/x-tgif":[`*obj`],"application/x-ustar":[`ustar`],"application/x-virtualbox-hdd":[`hdd`],"application/x-virtualbox-ova":[`ova`],"application/x-virtualbox-ovf":[`ovf`],"application/x-virtualbox-vbox":[`vbox`],"application/x-virtualbox-vbox-extpack":[`vbox-extpack`],"application/x-virtualbox-vdi":[`vdi`],"application/x-virtualbox-vhd":[`vhd`],"application/x-virtualbox-vmdk":[`vmdk`],"application/x-wais-source":[`src`],"application/x-web-app-manifest+json":[`webapp`],"application/x-x509-ca-cert":[`der`,`crt`,`pem`],"application/x-xfig":[`fig`],"application/x-xliff+xml":[`*xlf`],"application/x-xpinstall":[`xpi`],"application/x-xz":[`xz`],"application/x-zip-compressed":[`*zip`],"application/x-zmachine":[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`],"audio/vnd.dece.audio":[`uva`,`uvva`],"audio/vnd.digital-winds":[`eol`],"audio/vnd.dra":[`dra`],"audio/vnd.dts":[`dts`],"audio/vnd.dts.hd":[`dtshd`],"audio/vnd.lucent.voice":[`lvp`],"audio/vnd.ms-playready.media.pya":[`pya`],"audio/vnd.nuera.ecelp4800":[`ecelp4800`],"audio/vnd.nuera.ecelp7470":[`ecelp7470`],"audio/vnd.nuera.ecelp9600":[`ecelp9600`],"audio/vnd.rip":[`rip`],"audio/x-aac":[`*aac`],"audio/x-aiff":[`aif`,`aiff`,`aifc`],"audio/x-caf":[`caf`],"audio/x-flac":[`flac`],"audio/x-m4a":[`*m4a`],"audio/x-matroska":[`mka`],"audio/x-mpegurl":[`m3u`],"audio/x-ms-wax":[`wax`],"audio/x-ms-wma":[`wma`],"audio/x-pn-realaudio":[`ram`,`ra`],"audio/x-pn-realaudio-plugin":[`rmp`],"audio/x-realaudio":[`*ra`],"audio/x-wav":[`*wav`],"chemical/x-cdx":[`cdx`],"chemical/x-cif":[`cif`],"chemical/x-cmdf":[`cmdf`],"chemical/x-cml":[`cml`],"chemical/x-csml":[`csml`],"chemical/x-xyz":[`xyz`],"image/prs.btif":[`btif`,`btf`],"image/prs.pti":[`pti`],"image/vnd.adobe.photoshop":[`psd`],"image/vnd.airzip.accelerator.azv":[`azv`],"image/vnd.blockfact.facti":[`facti`],"image/vnd.dece.graphic":[`uvi`,`uvvi`,`uvg`,`uvvg`],"image/vnd.djvu":[`djvu`,`djv`],"image/vnd.dvb.subtitle":[`*sub`],"image/vnd.dwg":[`dwg`],"image/vnd.dxf":[`dxf`],"image/vnd.fastbidsheet":[`fbs`],"image/vnd.fpx":[`fpx`],"image/vnd.fst":[`fst`],"image/vnd.fujixerox.edmics-mmr":[`mmr`],"image/vnd.fujixerox.edmics-rlc":[`rlc`],"image/vnd.microsoft.icon":[`ico`],"image/vnd.ms-dds":[`dds`],"image/vnd.ms-modi":[`mdi`],"image/vnd.ms-photo":[`wdp`],"image/vnd.net-fpx":[`npx`],"image/vnd.pco.b16":[`b16`],"image/vnd.tencent.tap":[`tap`],"image/vnd.valve.source.texture":[`vtf`],"image/vnd.wap.wbmp":[`wbmp`],"image/vnd.xiff":[`xif`],"image/vnd.zbrush.pcx":[`pcx`],"image/x-3ds":[`3ds`],"image/x-adobe-dng":[`dng`],"image/x-cmu-raster":[`ras`],"image/x-cmx":[`cmx`],"image/x-freehand":[`fh`,`fhc`,`fh4`,`fh5`,`fh7`],"image/x-icon":[`*ico`],"image/x-jng":[`jng`],"image/x-mrsid-image":[`sid`],"image/x-ms-bmp":[`*bmp`],"image/x-pcx":[`*pcx`],"image/x-pict":[`pic`,`pct`],"image/x-portable-anymap":[`pnm`],"image/x-portable-bitmap":[`pbm`],"image/x-portable-graymap":[`pgm`],"image/x-portable-pixmap":[`ppm`],"image/x-rgb":[`rgb`],"image/x-tga":[`tga`],"image/x-xbitmap":[`xbm`],"image/x-xpixmap":[`xpm`],"image/x-xwindowdump":[`xwd`],"message/vnd.wfa.wsc":[`wsc`],"model/vnd.bary":[`bary`],"model/vnd.cld":[`cld`],"model/vnd.collada+xml":[`dae`],"model/vnd.dwf":[`dwf`],"model/vnd.gdl":[`gdl`],"model/vnd.gtw":[`gtw`],"model/vnd.mts":[`*mts`],"model/vnd.opengex":[`ogex`],"model/vnd.parasolid.transmit.binary":[`x_b`],"model/vnd.parasolid.transmit.text":[`x_t`],"model/vnd.pytha.pyox":[`pyo`,`pyox`],"model/vnd.sap.vds":[`vds`],"model/vnd.usda":[`usda`],"model/vnd.usdz+zip":[`usdz`],"model/vnd.valve.source.compiled-map":[`bsp`],"model/vnd.vtu":[`vtu`],"text/prs.lines.tag":[`dsc`],"text/vnd.curl":[`curl`],"text/vnd.curl.dcurl":[`dcurl`],"text/vnd.curl.mcurl":[`mcurl`],"text/vnd.curl.scurl":[`scurl`],"text/vnd.dvb.subtitle":[`sub`],"text/vnd.familysearch.gedcom":[`ged`],"text/vnd.fly":[`fly`],"text/vnd.fmi.flexstor":[`flx`],"text/vnd.graphviz":[`gv`],"text/vnd.in3d.3dml":[`3dml`],"text/vnd.in3d.spot":[`spot`],"text/vnd.sun.j2me.app-descriptor":[`jad`],"text/vnd.wap.wml":[`wml`],"text/vnd.wap.wmlscript":[`wmls`],"text/x-asm":[`s`,`asm`],"text/x-c":[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`],"text/x-component":[`htc`],"text/x-fortran":[`f`,`for`,`f77`,`f90`],"text/x-handlebars-template":[`hbs`],"text/x-java-source":[`java`],"text/x-lua":[`lua`],"text/x-markdown":[`mkd`],"text/x-nfo":[`nfo`],"text/x-opml":[`opml`],"text/x-org":[`*org`],"text/x-pascal":[`p`,`pas`],"text/x-processing":[`pde`],"text/x-sass":[`sass`],"text/x-scss":[`scss`],"text/x-setext":[`etx`],"text/x-sfv":[`sfv`],"text/x-suse-ymp":[`ymp`],"text/x-uuencode":[`uu`],"text/x-vcalendar":[`vcs`],"text/x-vcard":[`vcf`],"video/vnd.dece.hd":[`uvh`,`uvvh`],"video/vnd.dece.mobile":[`uvm`,`uvvm`],"video/vnd.dece.pd":[`uvp`,`uvvp`],"video/vnd.dece.sd":[`uvs`,`uvvs`],"video/vnd.dece.video":[`uvv`,`uvvv`],"video/vnd.dvb.file":[`dvb`],"video/vnd.fvt":[`fvt`],"video/vnd.mpegurl":[`mxu`,`m4u`],"video/vnd.ms-playready.media.pyv":[`pyv`],"video/vnd.uvvu.mp4":[`uvu`,`uvvu`],"video/vnd.vivo":[`viv`],"video/x-f4v":[`f4v`],"video/x-fli":[`fli`],"video/x-flv":[`flv`],"video/x-m4v":[`m4v`],"video/x-matroska":[`mkv`,`mk3d`,`mks`],"video/x-mng":[`mng`],"video/x-ms-asf":[`asf`,`asx`],"video/x-ms-vob":[`vob`],"video/x-ms-wm":[`wm`],"video/x-ms-wmv":[`wmv`],"video/x-ms-wmx":[`wmx`],"video/x-ms-wvx":[`wvx`],"video/x-msvideo":[`avi`],"video/x-sgi-movie":[`movie`],"video/x-smv":[`smv`],"x-conference/x-cooltalk":[`ice`]};Object.freeze(IV);var LV={"application/andrew-inset":[`ez`],"application/appinstaller":[`appinstaller`],"application/applixware":[`aw`],"application/appx":[`appx`],"application/appxbundle":[`appxbundle`],"application/atom+xml":[`atom`],"application/atomcat+xml":[`atomcat`],"application/atomdeleted+xml":[`atomdeleted`],"application/atomsvc+xml":[`atomsvc`],"application/atsc-dwd+xml":[`dwd`],"application/atsc-held+xml":[`held`],"application/atsc-rsat+xml":[`rsat`],"application/automationml-aml+xml":[`aml`],"application/automationml-amlx+zip":[`amlx`],"application/bdoc":[`bdoc`],"application/calendar+xml":[`xcs`],"application/ccxml+xml":[`ccxml`],"application/cdfx+xml":[`cdfx`],"application/cdmi-capability":[`cdmia`],"application/cdmi-container":[`cdmic`],"application/cdmi-domain":[`cdmid`],"application/cdmi-object":[`cdmio`],"application/cdmi-queue":[`cdmiq`],"application/cpl+xml":[`cpl`],"application/cu-seeme":[`cu`],"application/cwl":[`cwl`],"application/dash+xml":[`mpd`],"application/dash-patch+xml":[`mpp`],"application/davmount+xml":[`davmount`],"application/dicom":[`dcm`],"application/docbook+xml":[`dbk`],"application/dssc+der":[`dssc`],"application/dssc+xml":[`xdssc`],"application/ecmascript":[`ecma`],"application/emma+xml":[`emma`],"application/emotionml+xml":[`emotionml`],"application/epub+zip":[`epub`],"application/exi":[`exi`],"application/express":[`exp`],"application/fdf":[`fdf`],"application/fdt+xml":[`fdt`],"application/font-tdpfr":[`pfr`],"application/geo+json":[`geojson`],"application/gml+xml":[`gml`],"application/gpx+xml":[`gpx`],"application/gxf":[`gxf`],"application/gzip":[`gz`],"application/hjson":[`hjson`],"application/hyperstudio":[`stk`],"application/inkml+xml":[`ink`,`inkml`],"application/ipfix":[`ipfix`],"application/its+xml":[`its`],"application/java-archive":[`jar`,`war`,`ear`],"application/java-serialized-object":[`ser`],"application/java-vm":[`class`],"application/javascript":[`*js`],"application/json":[`json`,`map`],"application/json5":[`json5`],"application/jsonml+json":[`jsonml`],"application/ld+json":[`jsonld`],"application/lgr+xml":[`lgr`],"application/lost+xml":[`lostxml`],"application/mac-binhex40":[`hqx`],"application/mac-compactpro":[`cpt`],"application/mads+xml":[`mads`],"application/manifest+json":[`webmanifest`],"application/marc":[`mrc`],"application/marcxml+xml":[`mrcx`],"application/mathematica":[`ma`,`nb`,`mb`],"application/mathml+xml":[`mathml`],"application/mbox":[`mbox`],"application/media-policy-dataset+xml":[`mpf`],"application/mediaservercontrol+xml":[`mscml`],"application/metalink+xml":[`metalink`],"application/metalink4+xml":[`meta4`],"application/mets+xml":[`mets`],"application/mmt-aei+xml":[`maei`],"application/mmt-usd+xml":[`musd`],"application/mods+xml":[`mods`],"application/mp21":[`m21`,`mp21`],"application/mp4":[`*mp4`,`*mpg4`,`mp4s`,`m4p`],"application/msix":[`msix`],"application/msixbundle":[`msixbundle`],"application/msword":[`doc`,`dot`],"application/mxf":[`mxf`],"application/n-quads":[`nq`],"application/n-triples":[`nt`],"application/node":[`cjs`],"application/octet-stream":[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`],"application/oda":[`oda`],"application/oebps-package+xml":[`opf`],"application/ogg":[`ogx`],"application/omdoc+xml":[`omdoc`],"application/onenote":[`onetoc`,`onetoc2`,`onetmp`,`onepkg`,`one`,`onea`],"application/oxps":[`oxps`],"application/p2p-overlay+xml":[`relo`],"application/patch-ops-error+xml":[`xer`],"application/pdf":[`pdf`],"application/pgp-encrypted":[`pgp`],"application/pgp-keys":[`asc`],"application/pgp-signature":[`sig`,`*asc`],"application/pics-rules":[`prf`],"application/pkcs10":[`p10`],"application/pkcs7-mime":[`p7m`,`p7c`],"application/pkcs7-signature":[`p7s`],"application/pkcs8":[`p8`],"application/pkix-attr-cert":[`ac`],"application/pkix-cert":[`cer`],"application/pkix-crl":[`crl`],"application/pkix-pkipath":[`pkipath`],"application/pkixcmp":[`pki`],"application/pls+xml":[`pls`],"application/postscript":[`ai`,`eps`,`ps`],"application/provenance+xml":[`provx`],"application/pskc+xml":[`pskcxml`],"application/raml+yaml":[`raml`],"application/rdf+xml":[`rdf`,`owl`],"application/reginfo+xml":[`rif`],"application/relax-ng-compact-syntax":[`rnc`],"application/resource-lists+xml":[`rl`],"application/resource-lists-diff+xml":[`rld`],"application/rls-services+xml":[`rs`],"application/route-apd+xml":[`rapd`],"application/route-s-tsid+xml":[`sls`],"application/route-usd+xml":[`rusd`],"application/rpki-ghostbusters":[`gbr`],"application/rpki-manifest":[`mft`],"application/rpki-roa":[`roa`],"application/rsd+xml":[`rsd`],"application/rss+xml":[`rss`],"application/rtf":[`rtf`],"application/sbml+xml":[`sbml`],"application/scvp-cv-request":[`scq`],"application/scvp-cv-response":[`scs`],"application/scvp-vp-request":[`spq`],"application/scvp-vp-response":[`spp`],"application/sdp":[`sdp`],"application/senml+xml":[`senmlx`],"application/sensml+xml":[`sensmlx`],"application/set-payment-initiation":[`setpay`],"application/set-registration-initiation":[`setreg`],"application/shf+xml":[`shf`],"application/sieve":[`siv`,`sieve`],"application/smil+xml":[`smi`,`smil`],"application/sparql-query":[`rq`],"application/sparql-results+xml":[`srx`],"application/sql":[`sql`],"application/srgs":[`gram`],"application/srgs+xml":[`grxml`],"application/sru+xml":[`sru`],"application/ssdl+xml":[`ssdl`],"application/ssml+xml":[`ssml`],"application/swid+xml":[`swidtag`],"application/tei+xml":[`tei`,`teicorpus`],"application/thraud+xml":[`tfi`],"application/timestamped-data":[`tsd`],"application/toml":[`toml`],"application/trig":[`trig`],"application/ttml+xml":[`ttml`],"application/ubjson":[`ubj`],"application/urc-ressheet+xml":[`rsheet`],"application/urc-targetdesc+xml":[`td`],"application/voicexml+xml":[`vxml`],"application/wasm":[`wasm`],"application/watcherinfo+xml":[`wif`],"application/widget":[`wgt`],"application/winhlp":[`hlp`],"application/wsdl+xml":[`wsdl`],"application/wspolicy+xml":[`wspolicy`],"application/xaml+xml":[`xaml`],"application/xcap-att+xml":[`xav`],"application/xcap-caps+xml":[`xca`],"application/xcap-diff+xml":[`xdf`],"application/xcap-el+xml":[`xel`],"application/xcap-ns+xml":[`xns`],"application/xenc+xml":[`xenc`],"application/xfdf":[`xfdf`],"application/xhtml+xml":[`xhtml`,`xht`],"application/xliff+xml":[`xlf`],"application/xml":[`xml`,`xsl`,`xsd`,`rng`],"application/xml-dtd":[`dtd`],"application/xop+xml":[`xop`],"application/xproc+xml":[`xpl`],"application/xslt+xml":[`*xsl`,`xslt`],"application/xspf+xml":[`xspf`],"application/xv+xml":[`mxml`,`xhvml`,`xvml`,`xvm`],"application/yang":[`yang`],"application/yin+xml":[`yin`],"application/zip":[`zip`],"application/zip+dotlottie":[`lottie`],"audio/3gpp":[`*3gpp`],"audio/aac":[`adts`,`aac`],"audio/adpcm":[`adp`],"audio/amr":[`amr`],"audio/basic":[`au`,`snd`],"audio/midi":[`mid`,`midi`,`kar`,`rmi`],"audio/mobile-xmf":[`mxmf`],"audio/mp3":[`*mp3`],"audio/mp4":[`m4a`,`mp4a`,`m4b`],"audio/mpeg":[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`],"audio/ogg":[`oga`,`ogg`,`spx`,`opus`],"audio/s3m":[`s3m`],"audio/silk":[`sil`],"audio/wav":[`wav`],"audio/wave":[`*wav`],"audio/webm":[`weba`],"audio/xm":[`xm`],"font/collection":[`ttc`],"font/otf":[`otf`],"font/ttf":[`ttf`],"font/woff":[`woff`],"font/woff2":[`woff2`],"image/aces":[`exr`],"image/apng":[`apng`],"image/avci":[`avci`],"image/avcs":[`avcs`],"image/avif":[`avif`],"image/bmp":[`bmp`,`dib`],"image/cgm":[`cgm`],"image/dicom-rle":[`drle`],"image/dpx":[`dpx`],"image/emf":[`emf`],"image/fits":[`fits`],"image/g3fax":[`g3`],"image/gif":[`gif`],"image/heic":[`heic`],"image/heic-sequence":[`heics`],"image/heif":[`heif`],"image/heif-sequence":[`heifs`],"image/hej2k":[`hej2`],"image/ief":[`ief`],"image/jaii":[`jaii`],"image/jais":[`jais`],"image/jls":[`jls`],"image/jp2":[`jp2`,`jpg2`],"image/jpeg":[`jpg`,`jpeg`,`jpe`],"image/jph":[`jph`],"image/jphc":[`jhc`],"image/jpm":[`jpm`,`jpgm`],"image/jpx":[`jpx`,`jpf`],"image/jxl":[`jxl`],"image/jxr":[`jxr`],"image/jxra":[`jxra`],"image/jxrs":[`jxrs`],"image/jxs":[`jxs`],"image/jxsc":[`jxsc`],"image/jxsi":[`jxsi`],"image/jxss":[`jxss`],"image/ktx":[`ktx`],"image/ktx2":[`ktx2`],"image/pjpeg":[`jfif`],"image/png":[`png`],"image/sgi":[`sgi`],"image/svg+xml":[`svg`,`svgz`],"image/t38":[`t38`],"image/tiff":[`tif`,`tiff`],"image/tiff-fx":[`tfx`],"image/webp":[`webp`],"image/wmf":[`wmf`],"message/disposition-notification":[`disposition-notification`],"message/global":[`u8msg`],"message/global-delivery-status":[`u8dsn`],"message/global-disposition-notification":[`u8mdn`],"message/global-headers":[`u8hdr`],"message/rfc822":[`eml`,`mime`,`mht`,`mhtml`],"model/3mf":[`3mf`],"model/gltf+json":[`gltf`],"model/gltf-binary":[`glb`],"model/iges":[`igs`,`iges`],"model/jt":[`jt`],"model/mesh":[`msh`,`mesh`,`silo`],"model/mtl":[`mtl`],"model/obj":[`obj`],"model/prc":[`prc`],"model/step":[`step`,`stp`,`stpnc`,`p21`,`210`],"model/step+xml":[`stpx`],"model/step+zip":[`stpz`],"model/step-xml+zip":[`stpxz`],"model/stl":[`stl`],"model/u3d":[`u3d`],"model/vrml":[`wrl`,`vrml`],"model/x3d+binary":[`*x3db`,`x3dbz`],"model/x3d+fastinfoset":[`x3db`],"model/x3d+vrml":[`*x3dv`,`x3dvz`],"model/x3d+xml":[`x3d`,`x3dz`],"model/x3d-vrml":[`x3dv`],"text/cache-manifest":[`appcache`,`manifest`],"text/calendar":[`ics`,`ifb`],"text/coffeescript":[`coffee`,`litcoffee`],"text/css":[`css`],"text/csv":[`csv`],"text/html":[`html`,`htm`,`shtml`],"text/jade":[`jade`],"text/javascript":[`js`,`mjs`],"text/jsx":[`jsx`],"text/less":[`less`],"text/markdown":[`md`,`markdown`],"text/mathml":[`mml`],"text/mdx":[`mdx`],"text/n3":[`n3`],"text/plain":[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`],"text/richtext":[`rtx`],"text/rtf":[`*rtf`],"text/sgml":[`sgml`,`sgm`],"text/shex":[`shex`],"text/slim":[`slim`,`slm`],"text/spdx":[`spdx`],"text/stylus":[`stylus`,`styl`],"text/tab-separated-values":[`tsv`],"text/troff":[`t`,`tr`,`roff`,`man`,`me`,`ms`],"text/turtle":[`ttl`],"text/uri-list":[`uri`,`uris`,`urls`],"text/vcard":[`vcard`],"text/vtt":[`vtt`],"text/wgsl":[`wgsl`],"text/xml":[`*xml`],"text/yaml":[`yaml`,`yml`],"video/3gpp":[`3gp`,`3gpp`],"video/3gpp2":[`3g2`],"video/h261":[`h261`],"video/h263":[`h263`],"video/h264":[`h264`],"video/iso.segment":[`m4s`],"video/jpeg":[`jpgv`],"video/jpm":[`*jpm`,`*jpgm`],"video/mj2":[`mj2`,`mjp2`],"video/mp2t":[`ts`,`m2t`,`m2ts`,`mts`],"video/mp4":[`mp4`,`mp4v`,`mpg4`],"video/mpeg":[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`],"video/ogg":[`ogv`],"video/quicktime":[`qt`,`mov`],"video/webm":[`webm`]};Object.freeze(LV);var RV=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},zV,BV,VV,HV=class{constructor(...e){zV.set(this,new Map),BV.set(this,new Map),VV.set(this,new Map);for(let t of e)this.define(t)}define(e,t=!1){for(let[n,r]of Object.entries(e)){n=n.toLowerCase(),r=r.map(e=>e.toLowerCase()),RV(this,VV,`f`).has(n)||RV(this,VV,`f`).set(n,new Set);let e=RV(this,VV,`f`).get(n),i=!0;for(let a of r){let r=a.startsWith(`*`);if(a=r?a.slice(1):a,e?.add(a),i&&RV(this,BV,`f`).set(n,a),i=!1,r)continue;let o=RV(this,zV,`f`).get(a);if(o&&o!=n&&!t)throw Error(`"${n} -> ${a}" conflicts with "${o} -> ${a}". Pass \`force=true\` to override this definition.`);RV(this,zV,`f`).set(a,n)}}return this}getType(e){if(typeof e!=`string`)return null;let t=e.replace(/^.*[/\\]/s,``).toLowerCase(),n=t.replace(/^.*\./s,``).toLowerCase(),r=t.length<e.length;return!(n.length<t.length-1)&&r?null:RV(this,zV,`f`).get(n)??null}getExtension(e){return typeof e==`string`?(e=e?.split?.(`;`)[0],(e&&RV(this,BV,`f`).get(e.trim().toLowerCase()))??null):null}getAllExtensions(e){return typeof e==`string`?RV(this,VV,`f`).get(e.toLowerCase())??null:null}_freeze(){this.define=()=>{throw Error(`define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances`)},Object.freeze(this);for(let e of RV(this,VV,`f`).values())Object.freeze(e);return this}_getTestState(){return{types:RV(this,zV,`f`),extensions:RV(this,BV,`f`)}}};zV=new WeakMap,BV=new WeakMap,VV=new WeakMap;var UV=new HV(LV,IV)._freeze(),WV=Bt(!1),GV=Bt(!1),KV=Bt(!1),qV=`https://console.cloudinary.com/console/media_library`,JV=new URL(qV).origin,YV=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],XV=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],ZV=e=>{let t=A(KG);if(e??=t,e?.media_libraries&&`cloudinary`in e.media_libraries)return e.media_libraries.cloudinary;if(!e?.media_library)return;let n=e.media_library.name===`cloudinary`,r=!e.media_library.name&&t?.media_library?.name===`cloudinary`;if(n||r)return e.media_library},QV=new Map,$V=e=>{let t=e?JSON.stringify(e):`global`,n=QV.get(t);if(n)return n;let r=ZV()||{config:{}},i=ZV(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return QV.set(t,a),a},eH={serviceType:`cloud_storage`,serviceId:`cloudinary`,serviceLabel:`Cloudinary`,serviceURL:`https://cloudinary.com/`,showServiceLink:!0,hotlinking:!0,authType:`widget`,developerURL:`https://cloudinary.com/documentation/`,apiKeyURL:`https://console.cloudinary.com/settings/api-keys`,apiKeyPattern:/^[A-Za-z0-9_-]{15,}$/,isEnabled:e=>{let t=ZV(e)??ZV(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)}},tH=[`image`,`video`,`audio`],nH=[`image`,`video`],rH=[...tH,`document`,`other`],iH=/\.(?:csv|docx?|odp|ods|odt|pdf|pptx?|rtf|xlsx?)$/i,aH=/^(?<type>image|video|audio)\//,oH=e=>tH.includes(e),sH=e=>{let t=UV.getType(e.path);return oH(e.kind)||t===`application/pdf`||!!t&&yP(t)},cH=async e=>{let t=``;if(typeof e==`string`){if(e.startsWith(`blob:`))try{t=(await(await fetch(e)).blob()).type}catch{}else{if(ck(e)){let{hostname:t,pathname:n}=new URL(e);if(t.startsWith(`images.`))return`image`;e=n}t=UV.getType(e)??``}}else e instanceof Blob&&(t=e.type);if(!t)return;let[n,r]=t.split(`/`);if(oH(n)&&!r.startsWith(`x-`))return n},lH=e=>{let t=UV.getType(e.path);return!!t&&yP(t)},uH=e=>UV.getType(e)?.match(aH)?.groups?.type??(iH.test(e)?`document`:`other`),dH=(e,t=A(KG))=>t?.media_libraries?.[e]??(t?.media_library?.name===e?t?.media_library:void 0),fH=async(e,t)=>{let n=new TextEncoder,r=await crypto.subtle.importKey(`raw`,typeof e==`string`?n.encode(e):e,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n.encode(t));return new Uint8Array(i)},pH=async e=>{let t=typeof e==`string`?new TextEncoder().encode(e):e,n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},mH=async({method:e,url:t,headers:n,payloadHash:r,accessKeyId:i,secretAccessKey:a,region:o,service:s,date:c})=>{let l=new URL(t),u=c.toISOString().replace(/[:-]|\.\d{3}/g,``),d=u.slice(0,8),f=l.pathname,p=[...l.searchParams.entries()].sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`),m=Object.entries(n).map(([e,t])=>`${e.toLowerCase()}:${t.trim()}`).sort().join(`
|
|
330
330
|
`),h=Object.keys(n).map(e=>e.toLowerCase()).sort().join(`;`),g=[e,f,p,`${m}\n`,h,r].join(`
|
|
331
331
|
`),_=`AWS4-HMAC-SHA256`,v=`${d}/${o}/${s}/aws4_request`,y=[_,u,v,await pH(g)].join(`
|
|
332
|
-
`),b=await fH(await fH(await fH(await fH(await fH(`AWS4${a}`,d),o),s),`aws4_request`),y),x=Array.from(b).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${x}`].join(` `)},hH=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await pH(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await mH({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},gH=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},_H=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,vH=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=_H({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:uH(t)}})},yH=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=await hH({method:`GET`,url:a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,config:e,secretAccessKey:l});if(!n.ok){let e=await n.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let c=gH(await n.text()),f=(c.Contents?Array.isArray(c.Contents)?c.Contents:[c.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...f),d=c.NextContinuationToken,c.IsTruncated!==`true`||!d)break;await Wc(50)}return vH(c?u.filter(e=>uH(e.Key)===c):u,e)},bH=async(e,t,n)=>{let r=await yH(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},xH=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=await hH({method:`PUT`,url:a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,config:t,secretAccessKey:c,body:await n.arrayBuffer(),extraHeaders:{"Content-Type":n.type||`application/octet-stream`,...t.acl!==!1&&{"x-amz-acl":t.acl??`public-read`}}});if(!f.ok){let e=await f.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await Wc(50)}return vH(l,t)},SH=e=>dH(`aws_s3`,e),zne=e=>{let t=SH(e)??SH();return!!(t&&t.access_key_id&&t.bucket&&t.region)},CH=({fieldConfig:e})=>{let t=SH(e)??SH();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},Bne={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:zne,list:async e=>yH(CH(e),e),search:async(e,t)=>bH(e,CH(t),t),upload:async(e,t)=>xH(e,CH(t),t)},wH=e=>dH(`backblaze_b2`,e),Vne=e=>{let t=wH(e)??wH();return!!(t&&t.access_key_id&&t.bucket&&t.region)},TH=({fieldConfig:e})=>{let t=wH(e)??wH();if(!t)throw Error(`Backblaze B2 configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.backblazeb2.com`,acl:!1,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.backblazeb2.com`}},Hne={serviceType:`cloud_storage`,serviceId:`backblaze_b2`,serviceLabel:`Backblaze B2`,serviceURL:`https://www.backblaze.com/cloud-storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.backblaze.com/docs/cloud-storage-s3-compatible-api`,apiKeyURL:`https://secure.backblaze.com/app_keys.htm`,apiKeyPattern:/^[A-Za-z0-9/+=]{30,}$/,isEnabled:Vne,list:async e=>yH(TH(e),e),search:async(e,t)=>bH(e,TH(t),t),upload:async(e,t)=>xH(e,TH(t),t)},Une={default:``,eu:`eu.`,fedramp:`fedramp.`},Wne=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${Une[t]??``}r2.cloudflarestorage.com`,EH=e=>dH(`cloudflare_r2`,e),Gne=e=>{let t=EH(e)??EH();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},DH=({fieldConfig:e})=>{let t=EH(e)??EH();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:Wne(t)}},Kne={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:Gne,list:async e=>yH(DH(e),e),search:async(e,t)=>bH(e,DH(t),t),upload:async(e,t)=>xH(e,DH(t),t)},OH=e=>dH(`digitalocean_spaces`,e),qne=e=>{let t=OH(e)??OH();return!!(t&&t.access_key_id&&t.bucket&&t.region)},kH=({fieldConfig:e})=>{let t=OH(e)??OH();if(!t)throw Error(`DigitalOcean Spaces configuration is not available`);return{...t,endpoint:`https://${t.region}.digitaloceanspaces.com`,public_url:t.public_url??`https://${t.bucket}.${t.region}.digitaloceanspaces.com`}},Jne={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:qne,list:async e=>yH(kH(e),e),search:async(e,t)=>bH(e,kH(t),t),upload:async(e,t)=>xH(e,kH(t),t)},AH=e=>dH(`scaleway_object_storage`,e),Yne=e=>{let t=AH(e)??AH();return!!(t&&t.access_key_id&&t.bucket&&t.region)},jH=({fieldConfig:e})=>{let t=AH(e)??AH();if(!t)throw Error(`Scaleway Object Storage configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.scw.cloud`,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.scw.cloud`}},Xne={serviceType:`cloud_storage`,serviceId:`scaleway_object_storage`,serviceLabel:`Scaleway Object Storage`,serviceURL:`https://www.scaleway.com/en/object-storage/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.scaleway.com/en/docs/object-storage/`,apiKeyURL:`https://console.scaleway.com/iam/api-keys`,apiKeyPattern:/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,isEnabled:Yne,list:async e=>yH(jH(e),e),search:async(e,t)=>bH(e,jH(t),t),upload:async(e,t)=>xH(e,jH(t),t)},Zne=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,Qne=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,MH=e=>dH(`supabase_storage`,e),$ne=e=>{let t=MH(e)??MH();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},NH=({fieldConfig:e})=>{let t=MH(e)??MH();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:Zne(t),public_url:t.public_url??Qne(t)}},ere={serviceType:`cloud_storage`,serviceId:`supabase_storage`,serviceLabel:`Supabase Storage`,serviceURL:`https://supabase.com/storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://supabase.com/docs/guides/storage`,apiKeyURL:`https://supabase.com/dashboard/project/_/storage/settings`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:$ne,list:async e=>yH(NH(e),e),search:async(e,t)=>bH(e,NH(t),t),upload:async(e,t)=>xH(e,NH(t),t)},tre=s(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),nre=s(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),rre=s(((e,t)=>{var n=tre(),r=nre();t.exports=n.bind(null,r)})),ire=l(s(((e,t)=>{var n=rre(),r=/[\/\?<>\\:\*\|"]/g,i=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,o=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function s(e,t){for(var n=e.length;n>0&&(e[n-1]===`.`||e[n-1]===` `);)n--;return n<e.length?e.slice(0,n)+t:e}function c(e,t){if(typeof e!=`string`)throw Error(`Input must be string`);var c=e.replace(r,t).replace(i,t).replace(a,t).replace(o,t);return c=s(c,t),n(c,255)}t.exports=function(e,t){var n=t&&t.replacement||``,r=c(e,n);return n===``?r:c(r,``)}}))(),1),PH=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),FH=e=>{let t=e.startsWith(`@`);return t&&(e=e.slice(1)),e=e.split(`/`).map(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).join(`/`),t?`@${e}`:e},are=e=>decodeURIComponent(e),IH=new Map,LH=e=>{let t=gc.current,n=IH.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),IH.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?Y(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?Y(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?Y(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?Y(`file_size_units.gb`,{values:{size:n.format(e/a)}}):Y(`file_size_units.tb`,{values:{size:n.format(e/o)}})},RH=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=bP(e),i=RegExp(`^${rk(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>lk(e.split(`.`)[0],t.split(`.`)[0])).findLast(e=>i.test(e));return a?`${n}-${Number(a.match(i)?.groups?.num??0)+1}${r?`.${r}`:``}`:e},zH=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,ire.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=bP(r);r=`${KR(e)}${t?`.${t.toLowerCase()}`:``}`}return RH(r,n)},ore=[[`jpg`,`jpeg`,`jpe`,`jfif`],[`tif`,`tiff`],[`htm`,`html`],[`yml`,`yaml`],[`md`,`markdown`],[`mpg`,`mpeg`],[`mid`,`midi`],[`aif`,`aiff`]],BH=(e,t)=>{let n=e?.toLowerCase()??``,r=t?.toLowerCase()??``;return n===r||ore.some(e=>e.includes(n)&&e.includes(r))},VH=e=>e.filter(Boolean).join(`/`),sre=e=>e.split(`/`).filter(e=>e!==`.`&&e!==`..`).join(`/`),HH=e=>{let t=e.split(`/`),n=!1;return t.forEach((e,r)=>{if(e===`.`||e===`..`){if(n&&(t[r]=null,e===`..`)){let e=t.findLastIndex((e,t)=>!!e&&t<r);e>-1&&(t[e]=null)}}else n=!0}),VH(t)},UH=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,WH=async e=>{let t=await UH(e).arrayBuffer();return $c(new Blob([`blob ${t.byteLength}\0`,t]))},GH=(e=A(KG))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),KH=e=>{let t=GH(e)??GH();return t?t.config?.publicKey:void 0},cre=e=>!!KH(e),qH=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(GH(t)??GH())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},JH=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=KH(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await Wc(50)}return qH(l,{fieldConfig:i})},lre=async e=>JH(e),ure=async(e,t)=>{let n=e.toLowerCase();return JH(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},dre=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},YH={aws_s3:Bne,backblaze_b2:Hne,cloudflare_r2:Kne,cloudinary:eH,digitalocean_spaces:Jne,scaleway_object_storage:Xne,supabase_storage:ere,uploadcare:{serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:cre,list:lre,search:ure,upload:async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=KH(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await dre(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(zH(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json();return qH(Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}}),{fieldConfig:n})}}},XH=Object.keys(YH),{dependencies:fre,version:ZH}={name:`@sveltia/cms`,version:`0.189.0`,description:`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,keywords:[`svelte`,`cms`,`content-management-system`],homepage:`https://sveltiacms.app/en/`,repository:{type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},funding:{type:`github`,url:`https://github.com/sponsors/kyoshino`},license:`MIT`,author:{name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},type:`module`,scripts:{build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},dependencies:{"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.49.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.2.2`,"@sveltia/ui":`^0.63.0`,"@sveltia/utils":`^0.12.1`,"create-react-class":`^15.7.0`,dayjs:`^1.11.21`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.9`,"isomorphic-dompurify":`^3.22.0`,leaflet:`^1.9.4`,lexical:`^0.49.0`,marked:`^18.0.9`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^6.2.108`,qrcode:`^1.5.4`,react:`^19.2.8`,"react-dom":`^19.2.8`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.8.0`,svgo:`^4.0.2`,"terra-draw":`^1.32.3`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},devDependencies:{"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.3.0`,"@types/leaflet":`^1.9.22`,"@types/node":`^26.2.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.18`,"@types/react-dom":`^19.2.4`,"@vitest/coverage-v8":`^4.1.10`,cspell:`^10.0.1`,eslint:`^9.39.5`,"eslint-config-airbnb-extended":`^3.2.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^64.1.0`,"eslint-plugin-package-json":`^1.7.1`,"eslint-plugin-svelte":`^3.22.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.10.0`,oxlint:`^1.78.0`,"postcss-html":`^2.0.0`,prettier:`^3.9.6`,"prettier-plugin-svelte":`^4.1.1`,sonda:`^0.14.0`,stylelint:`^17.14.1`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.56.8`,"svelte-check":`^4.7.5`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.2.1`,vitest:`^4.1.10`},publishConfig:{directory:`package`,access:`public`,provenance:!0}},QH=`https://unpkg.com/@sveltia/cms`,$H=e=>{let t=`https://unpkg.com/${e}`,n=fre[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},eU=async(e,t)=>Lk(()=>import(`${$H(e)}/${t}`),void 0),tU=[`avif`,`gif`,`jpeg`,`png`,`webp`],nU=tU.map(e=>`image/${e}`),rU=/\b(?:avif|gif|jpe?g|png|webp)$/i,pre=[`svg`],mre=[`image/svg+xml`],hre=/\b(?:svg)$/i;[...tU,...pre];var iU=[...nU,...mre],aU=[`webp`],oU={},gre=async e=>{if(e in oU)return oU[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return oU[e]=r,r},sU=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await gre(t)&&aU.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await eU(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})},_re=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},cU=(e,t,n)=>{let{scale:r,width:i,height:a}=_re(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}},lU={format:`webp`,quality:85,width:512,height:512,fit:`contain`},vre=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise((e,r)=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{URL.revokeObjectURL(t),r(Error(`Failed to decode image`))},{once:!0}),n.src=t})},yre=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise((e,r)=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{document.body.removeChild(n),URL.revokeObjectURL(t),r(Error(`Failed to decode video`))},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n),n.src=t})},bre=async e=>e.type.startsWith(`video/`)?yre({blob:e}):vre({blob:e}),uU=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await bre(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return cU(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),sU(l,{format:t,quality:n})},xre=async e=>{let t=await e.text();try{let{optimize:n}=await eU(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e},dU=$H(`pdfjs-dist`),Sre=`${dU}/build/pdf.min.mjs`,Cre=`${dU}/build/pdf.worker.min.mjs`,wre={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${dU}/cmaps/`,iccUrl:`${dU}/iccs/`,standardFontDataUrl:`${dU}/standard_fonts/`,wasmUrl:`${dU}/wasm/`},fU,Tre=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!fU)try{fU=await Lk(()=>import(Sre),void 0),fU.GlobalWorkerOptions.workerSrc=Cre}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await fU.getDocument({...wre,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=cU(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return sU(s,{format:t,quality:n})},Ere=/^(?:https?|data|blob):/,pU=new Set,mU=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(pU.has(o)&&t<=25)return await Wc(200),mU(e,t+1);pU.add(o);let n=await A(RY)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:UV.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),pU.delete(o),s},hU=async e=>(e.blobURL||await mU(e),e.blobURL),gU=void 0,_U=new Map,Dre=()=>{if(gU===void 0){let{databaseName:e}=A(RY)?.repository??{};gU=e?new bk(e,`asset-thumbnails`):null}},Ore=async(e,t)=>{let n=await gU?.get(e.sha);if(!n){let r=await mU(e);n=await(t?Tre:uU)(r,lU),await gU?.set(e.sha,n)}return n},vU=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;Dre();let{sha:r}=e,i=_U.get(r);if(!i){if(t){let e=await gU?.get(r);return e?URL.createObjectURL(e):void 0}i=Ore(e,n).finally(()=>{_U.delete(r)}),_U.set(r,i)}let a=await i;return a?URL.createObjectURL(a):void 0},yU=new Set,kre=()=>{let e=new Set(yU);yU.clear(),document.querySelectorAll(`[src^="blob:"]`).forEach(t=>{e.delete(t.getAttribute(`src`))}),e.size&&(e.forEach(e=>URL.revokeObjectURL(e)),A(iK).forEach(t=>{t.blobURL!==void 0&&e.has(t.blobURL)&&delete t.blobURL}))},Are=({blobURL:e})=>{if(!e)return;let t=!yU.size;yU.add(e),t&&window.requestAnimationFrame(kre)},bU=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:PP(e.path).find(({collectionName:e})=>e!==void 0)??A(kP);if(a){if(t){let t=bP(e.path).dirname,n=r?bP(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===VH([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(KG),l=o?e.path.replace(PH(e.folder.internalPath??``,e=>{let t=e.match(EP)?.[1];return t?`(?<${t}>[^/]+)`:rk(e)}),i?.replaceAll(Fne,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=FH(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},jre=e=>{if(YH.cloudinary?.isEnabled?.()){let t=$V(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},xU=async({value:e,entry:t,collectionName:n,fileName:r,componentName:i,fieldConfig:a,typedKeyPath:o,thumbnail:s=!1})=>{if(!e)return;if(Ere.test(e))return e;if(yK(e)){let t=jre(a);if(t)return`${t}/${e}`}let c=bK({value:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:o});if(c)return(s?await vU(c):await hU(c))??bU(c)};dz.default.extend(fz.default),dz.default.extend(pz.default),dz.default.extend(mz.default);var Mre=/{{(?:year|month|day|hour|minute|second)}}/,SU=e=>oV(Object.values(e.locales)[0].path).map(({collectionName:e})=>XB(e)).filter(e=>!!e),Nre=({dateFieldName:e,fields:t,content:n})=>{let r=e?t.find(({widget:t,name:n})=>t===`datetime`&&n===e):t.find(({widget:e})=>e===`datetime`),i=r?n[r.name]:void 0;if(!r||!i)return;let a=r,o=jV(i,a);if(!DV(o))return;let{utc:s,outputUTC:c}=vz(a);return MR({date:o,timeZone:s||c?`UTC`:void 0})},CU=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=A(KG)??{},{slug:o,path:s,content:c}=e.locales[t]??{},{preview_path:l,preview_path_date_field:u,fields:d=[],_i18n:{defaultLocale:f,omitDefaultLocaleFromPreviewPath:p}}=r??n;if(!i||!a||!s||!c||!l)return;let m=iB(n,e),h=(m?rB(n):void 0)?.fields??d,g;if(Mre.test(l)&&(g=Nre({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=EW(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},Pre=(e,t)=>`${A(RY)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`,Fre=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,wU=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(Fre)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}},Ire=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,TU=Bt([]),Lre=Vt(TU,e=>new Set(e.map(e=>e.id))),Rre=e=>{let t=XB(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=wU(i?.pattern),s=i?.value===void 0?[]:Array.isArray(i.value)?i.value:[i.value],c;if(n===`entry`){let n=t._file?.fullPathRegEx;c=n?e=>n.test(Object.values(e.locales)[0]?.path??``):t=>SU(t).some(({name:t})=>t===e)}else{let t=new Set(A(tV).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return A(nV).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=mW({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},EU={entrySource:void 0,folderSource:void 0,map:new Map},DU=e=>{let t=A(nV),n=A(tV);(t!==EU.entrySource||n!==EU.folderSource)&&(EU.entrySource=t,EU.folderSource=n,EU.map=new Map);let r=EU.map.get(e);if(r)return r;let i=Rre(e);return EU.map.set(e,i),i},OU=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=cW({collectionName:n,fileName:l,valueMap:i,keyPath:a,isIndexFile:s});if(!u)return!1;let d=e.startsWith(`blob:`),f={entry:r,collectionName:n,fileName:l},{widget:p=`string`}=u;if(Hz.includes(p)){let n=d?await xU({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(Ire)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await xU({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},kU=async(e,{entries:t=A(nV),newURL:n=``}={})=>{let r=A(KG)?._baseURL,i=r&&!e.startsWith(`blob:`)?e.replace(r,``):e,a=i.startsWith(`blob:`),o=!!n,s=await Promise.all(t.map(async e=>{let{locales:t}=e,r=SU(e),s=!1;for(let{content:c}of Object.values(t)){for(let[t,l]of Object.entries(c))if(!(typeof l!=`string`||!l)&&!(!a&&!l.includes(i))){for(let a of r){let r={assetURL:i,newURL:n,collectionName:a.name,entry:e,content:c,keyPath:t,value:l,isIndexFile:iB(a,e)},u=Lz(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>OU({...r,collectionFile:e})))).includes(!0):await OU({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},zre=e=>{let t=rB(e);return t?!DU(e.name).some(({slug:e})=>e===t.name):!1},AU=new WeakMap,Bre=e=>{let t=AU.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),AU.set(e,n),n},jU=new WeakMap,MU=0,NU=e=>(jU.has(e)||(jU.set(e,MU),MU+=1),jU.get(e)),PU=e=>TW(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,Vre=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n},FU=(e,t,n)=>{let{slug:r,locale:i,getDisplayValue:a}=t,{content:o,locales:s,defaultLocale:c,identifierField:l}=n;if(e===`slug`)return r;if(e===`locale`)return i;let u=e.replace(/^fields\./,``);return a(u)||a(u,c)||_W(o,{identifierField:l})||_W(s[c]?.content||{},{identifierField:l})||r},IU=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=FU(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},LU=e=>{let t=[];return wW(e,(e,n)=>(t.push(n),``)),t},Hre=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=PU(n??`{{slug}}`),o=r.map(PU).join(` `),s=i.map(PU).join(` `),c=uj([...LU(o),...LU(a),...LU(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}},Ure=/\.(\d+)$/,Wre=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=cW({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:Vre(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},Gre=new Map,Kre=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=HR(Gre,e,()=>RegExp(`^${rk(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match(Ure);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index).map(({value:e})=>{let n={label:s,value:c,searchValue:l};t.forEach(([t])=>{n.label=n.label.replaceAll(`{{${t}}}`,e),n.value=n.value.replaceAll(`{{${t}}}`,e),n.searchValue=n.searchValue.replaceAll(`{{${t}}}`,e)});let{label:r,value:u,searchValue:d}=IU(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},RU=/^(.+)\.\*\.(.+)$/,qre=new Map,Jre=e=>{let t=null;return e.some(([e])=>(t=e.match(RU),!!t)),t},Yre=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=Jre(e)??[];if(!o)return[];let c=HR(qre,`${o}:${s}`,()=>{let e=rk(o),t=rk(s);return RegExp(`^${e}.([0-9]+).${t}$`)}),l=Object.entries(t).filter(([e])=>c.test(e)).map(([e,t])=>{let n=e.match(c);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index),{_displayField:u,_valueField:d,_searchField:f}=n;return l.map(({index:n})=>{let o={label:u,value:d,searchValue:f};e.forEach(([e])=>{let r=e.match(RU);if(r){let[,i,a]=r,s=t[`${i}.${n}.${a}`]||``;o.label=o.label.replaceAll(`{{${e}}}`,s),o.value=o.value.replaceAll(`{{${e}}}`,s),o.searchValue=o.searchValue.replaceAll(`{{${e}}}`,s)}});let{label:s,value:c,searchValue:l}=IU(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},Xre=({baseFieldGroups:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let o=[],s=!1;return e.forEach((e,c)=>{if(e.length===0)return;let[,l]=e[0],u={groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a},d=l.isComplexListField?Yre({...u}):Kre({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}},Zre=({templates:e,allFieldNames:t,context:n,fallbackContext:r})=>{let{slug:i}=n,{_displayField:a,_valueField:o,_searchField:s}=e,{content:c,locales:l,defaultLocale:u,identifierField:d}=r,f=Object.fromEntries(t.map(e=>[e,FU(e,n,r)])),p=a,m=o,h=s;return Object.entries(f).forEach(([e,t])=>{p=p.replaceAll(`{{${e}}}`,t),m=m.replaceAll(`{{${e}}}`,t),h=h.replaceAll(`{{${e}}}`,t)}),(!p||p.trim()===``)&&(p=_W(c,{identifierField:d})||_W(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}},Qre=({refEntry:e,content:t,collection:n,templates:r,allFieldNames:i,hasListFields:a,collectionName:o,fileName:s,locale:c,identifierField:l,defaultLocale:u})=>{let{slug:d,locales:f}=e,p={collectionName:o,fileName:s,isIndexFile:iB(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>fW({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[Zre({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let{results:g,hasProcessedListFields:_}=Xre({baseFieldGroups:Wre(i,p),content:t,templates:r,allFieldNames:i,context:m,fallbackContext:h});if(_)return g;let{_displayField:v,_valueField:y,_searchField:b}=r,{label:x,value:S,searchValue:C}=IU({label:v,value:y,searchValue:b},i.filter(e=>!e.includes(`*`)),m,h);return[{label:x||``,value:S||d,searchValue:C||x||``}]},$re=/^{{fields\.(.+?)}}$/,eie=(e,t,n=void 0)=>e.map(({field:e,values:r,exclude:i})=>({field:e,exclude:i,values:r.flatMap(e=>{if(typeof e!=`string`)return[e];if(e===`{{slug}}`)return n?[n]:[];let r=e.match($re);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),tie=({refEntries:e,locale:t,fileName:n=void 0,entryFilters:r=[],defaultLocale:i=void 0})=>e.filter(e=>!n||n===e.slug).map(e=>{let{content:n}=e.locales[t]??(i?e.locales[i]:void 0)??e.locales._default??{};return{refEntry:e,hasContent:!!n&&Object.keys(n).length>0,content:n??{}}}).filter(({hasContent:e,content:t,refEntry:n})=>e&&r.every(({field:e,values:r,exclude:i=!1})=>{if(r.length===0)return!0;let a=e===`slug`,o=e.replace(/^fields\./,``),s=a?n.slug:t[o];return i?!r.includes(s):r.includes(s)})),nie=new Map,rie=100,zU=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=eie(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`);return UR(nie,`${e}|${`${NU(t)}|${NU(n)}`}|${l}`,()=>{let r=XB(a);if(!r)return[];let{_type:i,_i18n:{defaultLocale:s}}=r,{identifier_field:l=`title`}=i===`entry`?r:{},u=Hre(t,l),{allFieldNames:d,hasListFields:f}=u;return tie({refEntries:n,locale:e,fileName:o,entryFilters:c,defaultLocale:s}).flatMap(({refEntry:t,content:n})=>Qre({refEntry:t,content:n,collection:r,templates:u,allFieldNames:d,hasListFields:f,collectionName:a,fileName:o,locale:e,identifierField:l,defaultLocale:s})).sort((e,t)=>lk(e.label,t.label))},rie)},BU=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=Bre(zU({locale:r,fieldConfig:e,refEntries:DU(a)})),s=e=>o.get(e)||e;return i?fV(t,n).map(e=>s(t[e])):s(t[n])},VU=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),HU=e=>TP(Object.fromEntries(Object.entries(wP(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),UU=e=>e.replace(/"/g,`'`),WU=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,iie=new RegExp(WU,`g`),aie=RegExp(`${WU.source}|\\[!\\[(?<alt2>(?:[^\\]\\\\]|\\\\.)*)\\]\\((?<src2>(?:[^"()\\\\]|\\\\.|\\([^)]*\\)|"[^"]*")*?)(?:\\s+"(?<title2>(?:[^"\\\\]|\\\\.)*)")?\\)\\](?:\\((?<link>[^)]*\\([^)]*\\)[^)]*|[^)]*)\\))`),GU=e=>typeof e==`string`&&!!e.trim(),KU=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),qU={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},JU=(e,t)=>yN(e.replace(`<a>`,`<a href="${KU(t)}" target="_blank" rel="noopener noreferrer">`),qU),YU={id:`image`,label:`Image`,fields:[{name:`src`,label:`Source`,widget:`image`},{name:`alt`,label:`Alt Text`,required:!1},{name:`title`,label:`Title`,required:!1}],pattern:WU,toBlock:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return t?`}"`:``})`:``},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return`<img src="${KU(t)}" alt="${KU(n)}" title="${KU(r)}">`}},oie={id:`linked-image`,label:`Image`,fields:[...YU.fields,{name:`link`,label:`Link`,required:!1}],pattern:aie,fromBlock:e=>{let{src:t,alt:n,title:r,src2:i,alt2:a,title2:o,link:s}=e.groups??{};return{src:(t||i||``).trim(),alt:(n||a||``).trim(),title:(r||o||``).trim(),link:(s||``).trim()}},toBlock:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=t?`}"`:``})`:``;return a&&i?`[${a}](${i})`:a},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=`<img src="${KU(t)}" alt="${KU(n)}" title="${KU(r)}">`;return i?`<a href="${KU(i)}">${a}</a>`:a}},XU=e=>{let t=Gz.get(e);if(t)return{...t,id:`x-${e}`};let n={icon:`image`,label:Y(`editor_components.image`),fields:[{name:`src`,label:Y(`editor_components.src`),widget:`image`},{name:`alt`,label:Y(`editor_components.alt`),required:!1},{name:`title`,label:Y(`editor_components.title`),required:!1}],trigger:`button`};return{image:{...YU,...n},"linked-image":{...oie,...n,fields:[...n.fields,{name:`link`,label:Y(`editor_components.link`),required:!1}]}}[e]},sie=new Map,cie=1e3,ZU=new WeakMap,lie=e=>{let t=ZU.get(e);return t===void 0&&(t=JSON.stringify(e),ZU.set(e,t)),t},uie=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=lj(i),o;r&&(o=fV(t,n).map(e=>t[e]));let s=lie(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=e=>i.find(t=>t.value===e)?.label||e;return UR(sie,c,()=>{if(r)return a?o.map(l):o;let e=t[n];return a?l(e):e},cie)},QU=e=>{if(!e)return;let t=Object.values(e);if(t.some(e=>e.config?.multiple===!0))return!0;if(t.some(e=>e.config?.multiple===!1))return!1},$U=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},eW=e=>{let t=A(KG);return e.multiple??QU(e.media_libraries)??$U(e.media_library)??QU(t?.media_libraries)??$U(t?.media_library)??!1},die=/^\d+$/,tW=e=>die.test(e),nW=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n},fie=/^(.*?)<([^>]+)>(.*)$/,rW=/\.\d+$/,iW=new Map,aW=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},oW=e=>{let t=e.widget??`string`;return Hz.includes(t)?eW(e):Uz.includes(t)?!!e.multiple:!1},sW=e=>{let t=e.match(fie);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},pie=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=sW(t),{widget:c=`text`}=e,l=s??i,u=tW(o),d=o===`*`;if((u||d)&&Uz.includes(c))return{field:oW(e)?e:void 0,explicitType:l};let{field:f}=e,{fields:p}=e,{types:m,typeKey:h=`type`}=e;if(f){let e=u||d?n[r+1]:void 0;return{field:!e||f.name===e||f.widget===`object`&&`fields`in f&&f.fields?.some(t=>t.name===e)?f:void 0,explicitType:l}}if(p&&(u||d))return{field:e,explicitType:l};if(p&&!u&&o!==``)return{field:p.find(({name:e})=>e===o),explicitType:l};if(m&&(u||d)){let e=l??a[[n.slice(0,r).join(`.`),o,h].join(`.`)];return{field:m.find(({name:t})=>t===e),explicitType:d?void 0:l}}if(m&&t!==h&&o!==h&&o!==``){let e=l??a[[n.slice(0,r).join(`.`),h].join(`.`)];return{field:m.find(({name:t})=>t===e)?.fields?.find(({name:e})=>e===o),explicitType:void 0}}return{field:void 0,explicitType:l}},cW=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=[t,n??``,r??``,a,o?`1`:`0`].join(`|`);if(iW.has(s))return iW.get(s);let c=XB(t),l=c&&n?Fz(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){iW.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?rB(c):void 0,f=r?XU(r)?.fields??[]:d?.fields??u,p=a.split(`.`),m,h,g=!1;if(p.forEach((e,t)=>{if(t===0){let{cleanKey:t,typeName:n}=sW(e);m=f.find(({name:e})=>e===t),!m&&d?.fields&&(m=u.find(({name:e})=>e===t)),n&&(h=n)}else if(m){let n=pie({field:m,key:e,keyPathArray:p,segmentIndex:t,pendingExplicitType:h,valueMap:i});m=n.field,h=n.explicitType}m&&`types`in m&&(g=!0)}),h&&m&&`types`in m){let{types:e}=m;m=e.find(({name:e})=>e===h)}return g||iW.set(s,m),m},lW=e=>{let t=e.widget??`string`;return Bz.includes(t)?`builtin`:Kz.has(t)?`custom`:`unknown`},uW=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,dW=new Map,fW=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=cW({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:o}),c=n[r];if(c===void 0&&a?.length)return``;if(s?.widget===`datetime`&&(a?.some(({method:e})=>e===`date`)||(c=FV({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=BU({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=uie({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;e||t||(c=yB(i).format(fV(n,r).map(e=>n[e]).filter(e=>typeof e==`string`&&!!e)))}if(s?.widget===`number`){let{value_type:e=`int`}=s;if(e===`int`||e===`float`){let e=mB(i),t=dW.get(e);t||(t=Intl.NumberFormat(e),dW.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=yB(i).format(c)),a?.length&&(c=Mz({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},pW=({valueMap:e,locale:t,keyPath:n,keyPathPrefix:r,getFieldArgs:i})=>{let a=[`${n}.title`,`${n}.name`,...lV(e,r)].find(t=>{let n=e[t];if(!t.startsWith(r)||!(typeof n==`string`&&n.trim()||typeof n==`number`&&!Number.isNaN(n)))return!1;let a=cW({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?fW({...i,keyPath:a,locale:t}):``},mW=({entry:e,locale:t,collectionName:n,key:r,resolveRef:i=!0})=>{let{slug:a,locales:o,commitAuthor:{name:s,login:c,email:l}={},commitDate:u}=e;if(r===`slug`)return a;if(r===`commit_author`)return s||c||l;if(r===`commit_date`)return u;let{content:d}=o[t]??{};if(d===void 0)return;let f=XB(n);if(f){if(i){let i=cW({collectionName:n,keyPath:r,isIndexFile:iB(f,e)});if(i?.widget===`relation`)return BU({fieldConfig:i,valueMap:d,keyPath:r,locale:t})}return d[r]}},hW=({valueMap:e,keyPath:t,isList:n,isCustomFieldType:r=!1})=>{let i=e[t];if(!n&&!r)return i;let a=fV(e,t);return a.length?a.map(t=>e[t]).filter(e=>e!==void 0):r?i:[]},mie=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,gW=(e,{allowMarkdown:t=!1}={})=>(e=hP(e),t&&(e=nz(e)),e=yN(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=nz(e)),e.trim()),_W=(e,{identifierField:t=`title`,useBody:n=!0}={})=>{let r=[t,`title`,`name`,`label`].find(t=>typeof e[t]==`string`&&!!e[t].trim());return r?e[r].trim():n&&typeof e.body==`string`?e.body.match(mie)?.groups?.header??``:``},hie=(e,t)=>{let{slug:n,entryPath:r,basePath:i,locales:a,commitDate:o,commitAuthor:s}=t;if(e===`slug`)return n;if(e===`locales`)return a.sort((e,t)=>e.localeCompare(t)).join(`, `);if(e===`dirname`){let e=r.replace(/[^/]+$/,``);if(i){let t=i.endsWith(`/`)?i:`${i}/`;e.startsWith(t)?e=e.slice(t.length):e.startsWith(i)&&(e=e.slice(i.length))}return ak(e)}if(e===`filename`)return r.split(`/`).pop().split(`.`).shift();if(e===`extension`)return r.split(`/`).pop().split(`.`).pop();if(e===`commit_date`)return o??``;if(e===`commit_author`)return s?.name||s?.login||s?.email},vW=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a,fallbackSummary:o}=t,{value:s,transformations:c}=wz(e),l=s.replace(/^fields\./,``),u={collectionName:r,valueMap:n,keyPath:l},d=hie(s,i),f=oz(c,e=>vW(e,t));if(d===void 0&&(d=f.some(({method:e})=>e===`date`||e===`ternary`)?n[l]:fW({...u,locale:a}),l===`title`&&!d&&(d=o)),d===void 0)return``;if(d instanceof Date&&!f.length){let{year:e,month:t,day:n}=MR({date:d});return`${e}-${t}-${n}`}return f.length&&(d=Mz({fieldConfig:cW({...u}),value:d,transformations:f,locale:a})),String(d)},yW=new WeakMap,bW,xW=0,gie=()=>{let e=A(nV);return e!==bW&&(bW=e,xW+=1),xW},_ie=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(iB(e,t))return rB(e)?.label;let{_type:a,name:o,_i18n:{defaultLocale:s}}=e,{_file:{basePath:c}={},identifier_field:l=`title`,summary:u}=a===`entry`?e:{},{locales:d,slug:f,commitDate:p,commitAuthor:m}=t,{content:h={},path:g=``}=d[n??s]??Object.values(d)[0]??{},_=_W(h,{identifierField:l})||f.replaceAll(`-`,` `);if(!r||!u)return gW(_,{allowMarkdown:i});let v={content:h,collectionName:o,replaceSubContext:{slug:f,entryPath:g,basePath:c,locales:Object.keys(d),commitDate:p,commitAuthor:m},defaultLocale:s,fallbackSummary:_};return gW(wW(u,(e,t)=>vW(t,v)),{allowMarkdown:i})},SW=(e,t,n={})=>{let{locale:r,useTemplate:i=!1,allowMarkdown:a=!1}=n,o=yW.get(t);o||(o=new WeakMap,yW.set(t,o));let s=o.get(e);s||(s=new Map,o.set(e,s));let c=[r??``,i?`1`:`0`,a?`1`:`0`,gc.current,gie()].join(`
|
|
332
|
+
`),b=await fH(await fH(await fH(await fH(await fH(`AWS4${a}`,d),o),s),`aws4_request`),y),x=Array.from(b).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${x}`].join(` `)},hH=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await pH(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await mH({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},gH=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},_H=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,vH=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=_H({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:uH(t)}})},yH=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=await hH({method:`GET`,url:a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,config:e,secretAccessKey:l});if(!n.ok){let e=await n.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let c=gH(await n.text()),f=(c.Contents?Array.isArray(c.Contents)?c.Contents:[c.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...f),d=c.NextContinuationToken,c.IsTruncated!==`true`||!d)break;await Wc(50)}return vH(c?u.filter(e=>uH(e.Key)===c):u,e)},bH=async(e,t,n)=>{let r=await yH(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},xH=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=await hH({method:`PUT`,url:a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,config:t,secretAccessKey:c,body:await n.arrayBuffer(),extraHeaders:{"Content-Type":n.type||`application/octet-stream`,...t.acl!==!1&&{"x-amz-acl":t.acl??`public-read`}}});if(!f.ok){let e=await f.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await Wc(50)}return vH(l,t)},SH=e=>dH(`aws_s3`,e),zne=e=>{let t=SH(e)??SH();return!!(t&&t.access_key_id&&t.bucket&&t.region)},CH=({fieldConfig:e})=>{let t=SH(e)??SH();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},Bne={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:zne,list:async e=>yH(CH(e),e),search:async(e,t)=>bH(e,CH(t),t),upload:async(e,t)=>xH(e,CH(t),t)},wH=e=>dH(`backblaze_b2`,e),Vne=e=>{let t=wH(e)??wH();return!!(t&&t.access_key_id&&t.bucket&&t.region)},TH=({fieldConfig:e})=>{let t=wH(e)??wH();if(!t)throw Error(`Backblaze B2 configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.backblazeb2.com`,acl:!1,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.backblazeb2.com`}},Hne={serviceType:`cloud_storage`,serviceId:`backblaze_b2`,serviceLabel:`Backblaze B2`,serviceURL:`https://www.backblaze.com/cloud-storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.backblaze.com/docs/cloud-storage-s3-compatible-api`,apiKeyURL:`https://secure.backblaze.com/app_keys.htm`,apiKeyPattern:/^[A-Za-z0-9/+=]{30,}$/,isEnabled:Vne,list:async e=>yH(TH(e),e),search:async(e,t)=>bH(e,TH(t),t),upload:async(e,t)=>xH(e,TH(t),t)},Une={default:``,eu:`eu.`,fedramp:`fedramp.`},Wne=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${Une[t]??``}r2.cloudflarestorage.com`,EH=e=>dH(`cloudflare_r2`,e),Gne=e=>{let t=EH(e)??EH();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},DH=({fieldConfig:e})=>{let t=EH(e)??EH();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:Wne(t)}},Kne={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:Gne,list:async e=>yH(DH(e),e),search:async(e,t)=>bH(e,DH(t),t),upload:async(e,t)=>xH(e,DH(t),t)},OH=e=>dH(`digitalocean_spaces`,e),qne=e=>{let t=OH(e)??OH();return!!(t&&t.access_key_id&&t.bucket&&t.region)},kH=({fieldConfig:e})=>{let t=OH(e)??OH();if(!t)throw Error(`DigitalOcean Spaces configuration is not available`);return{...t,endpoint:`https://${t.region}.digitaloceanspaces.com`,public_url:t.public_url??`https://${t.bucket}.${t.region}.digitaloceanspaces.com`}},Jne={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:qne,list:async e=>yH(kH(e),e),search:async(e,t)=>bH(e,kH(t),t),upload:async(e,t)=>xH(e,kH(t),t)},AH=e=>dH(`scaleway_object_storage`,e),Yne=e=>{let t=AH(e)??AH();return!!(t&&t.access_key_id&&t.bucket&&t.region)},jH=({fieldConfig:e})=>{let t=AH(e)??AH();if(!t)throw Error(`Scaleway Object Storage configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.scw.cloud`,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.scw.cloud`}},Xne={serviceType:`cloud_storage`,serviceId:`scaleway_object_storage`,serviceLabel:`Scaleway Object Storage`,serviceURL:`https://www.scaleway.com/en/object-storage/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.scaleway.com/en/docs/object-storage/`,apiKeyURL:`https://console.scaleway.com/iam/api-keys`,apiKeyPattern:/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,isEnabled:Yne,list:async e=>yH(jH(e),e),search:async(e,t)=>bH(e,jH(t),t),upload:async(e,t)=>xH(e,jH(t),t)},Zne=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,Qne=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,MH=e=>dH(`supabase_storage`,e),$ne=e=>{let t=MH(e)??MH();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},NH=({fieldConfig:e})=>{let t=MH(e)??MH();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:Zne(t),public_url:t.public_url??Qne(t)}},ere={serviceType:`cloud_storage`,serviceId:`supabase_storage`,serviceLabel:`Supabase Storage`,serviceURL:`https://supabase.com/storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://supabase.com/docs/guides/storage`,apiKeyURL:`https://supabase.com/dashboard/project/_/storage/settings`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:$ne,list:async e=>yH(NH(e),e),search:async(e,t)=>bH(e,NH(t),t),upload:async(e,t)=>xH(e,NH(t),t)},tre=s(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),nre=s(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),rre=s(((e,t)=>{var n=tre(),r=nre();t.exports=n.bind(null,r)})),ire=l(s(((e,t)=>{var n=rre(),r=/[\/\?<>\\:\*\|"]/g,i=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,o=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function s(e,t){for(var n=e.length;n>0&&(e[n-1]===`.`||e[n-1]===` `);)n--;return n<e.length?e.slice(0,n)+t:e}function c(e,t){if(typeof e!=`string`)throw Error(`Input must be string`);var c=e.replace(r,t).replace(i,t).replace(a,t).replace(o,t);return c=s(c,t),n(c,255)}t.exports=function(e,t){var n=t&&t.replacement||``,r=c(e,n);return n===``?r:c(r,``)}}))(),1),PH=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),FH=e=>{let t=e.startsWith(`@`);return t&&(e=e.slice(1)),e=e.split(`/`).map(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).join(`/`),t?`@${e}`:e},are=e=>decodeURIComponent(e),IH=new Map,LH=e=>{let t=gc.current,n=IH.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),IH.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?Y(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?Y(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?Y(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?Y(`file_size_units.gb`,{values:{size:n.format(e/a)}}):Y(`file_size_units.tb`,{values:{size:n.format(e/o)}})},RH=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=bP(e),i=RegExp(`^${rk(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>lk(e.split(`.`)[0],t.split(`.`)[0])).findLast(e=>i.test(e));return a?`${n}-${Number(a.match(i)?.groups?.num??0)+1}${r?`.${r}`:``}`:e},zH=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,ire.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=bP(r);r=`${KR(e)}${t?`.${t.toLowerCase()}`:``}`}return RH(r,n)},ore=[[`jpg`,`jpeg`,`jpe`,`jfif`],[`tif`,`tiff`],[`htm`,`html`],[`yml`,`yaml`],[`md`,`markdown`],[`mpg`,`mpeg`],[`mid`,`midi`],[`aif`,`aiff`]],BH=(e,t)=>{let n=e?.toLowerCase()??``,r=t?.toLowerCase()??``;return n===r||ore.some(e=>e.includes(n)&&e.includes(r))},VH=e=>e.filter(Boolean).join(`/`),sre=e=>e.split(`/`).filter(e=>e!==`.`&&e!==`..`).join(`/`),HH=e=>{let t=e.split(`/`),n=!1;return t.forEach((e,r)=>{if(e===`.`||e===`..`){if(n&&(t[r]=null,e===`..`)){let e=t.findLastIndex((e,t)=>!!e&&t<r);e>-1&&(t[e]=null)}}else n=!0}),VH(t)},UH=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,WH=async e=>{let t=await UH(e).arrayBuffer();return $c(new Blob([`blob ${t.byteLength}\0`,t]))},GH=(e=A(KG))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),KH=e=>{let t=GH(e)??GH();return t?t.config?.publicKey:void 0},cre=e=>!!KH(e),qH=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(GH(t)??GH())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},JH=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=KH(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await Wc(50)}return qH(l,{fieldConfig:i})},lre=async e=>JH(e),ure=async(e,t)=>{let n=e.toLowerCase();return JH(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},dre=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},YH={aws_s3:Bne,backblaze_b2:Hne,cloudflare_r2:Kne,cloudinary:eH,digitalocean_spaces:Jne,scaleway_object_storage:Xne,supabase_storage:ere,uploadcare:{serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:cre,list:lre,search:ure,upload:async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=KH(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await dre(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(zH(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json();return qH(Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}}),{fieldConfig:n})}}},XH=Object.keys(YH),{dependencies:fre,version:ZH}={name:`@sveltia/cms`,version:`0.189.1`,description:`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,keywords:[`svelte`,`cms`,`content-management-system`],homepage:`https://sveltiacms.app/en/`,repository:{type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},funding:{type:`github`,url:`https://github.com/sponsors/kyoshino`},license:`MIT`,author:{name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},type:`module`,scripts:{build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},dependencies:{"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.49.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.2.2`,"@sveltia/ui":`^0.63.1`,"@sveltia/utils":`^0.12.1`,"create-react-class":`^15.7.0`,dayjs:`^1.11.21`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.9`,"isomorphic-dompurify":`^3.22.0`,leaflet:`^1.9.4`,lexical:`^0.49.0`,marked:`^18.0.9`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^6.2.108`,qrcode:`^1.5.4`,react:`^19.2.8`,"react-dom":`^19.2.8`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.8.0`,svgo:`^4.0.2`,"terra-draw":`^1.32.3`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},devDependencies:{"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.3.0`,"@types/leaflet":`^1.9.22`,"@types/node":`^26.2.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.18`,"@types/react-dom":`^19.2.4`,"@vitest/coverage-v8":`^4.1.10`,cspell:`^10.0.1`,eslint:`^9.39.5`,"eslint-config-airbnb-extended":`^3.2.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^64.1.0`,"eslint-plugin-package-json":`^1.7.1`,"eslint-plugin-svelte":`^3.22.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.11.0`,oxlint:`^1.78.0`,"postcss-html":`^2.0.0`,prettier:`^3.9.6`,"prettier-plugin-svelte":`^4.1.1`,sonda:`^0.14.0`,stylelint:`^17.14.1`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.56.9`,"svelte-check":`^4.7.5`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.2.1`,vitest:`^4.1.10`},publishConfig:{directory:`package`,access:`public`,provenance:!0}},QH=`https://unpkg.com/@sveltia/cms`,$H=e=>{let t=`https://unpkg.com/${e}`,n=fre[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},eU=async(e,t)=>Lk(()=>import(`${$H(e)}/${t}`),void 0),tU=[`avif`,`gif`,`jpeg`,`png`,`webp`],nU=tU.map(e=>`image/${e}`),rU=/\b(?:avif|gif|jpe?g|png|webp)$/i,pre=[`svg`],mre=[`image/svg+xml`],hre=/\b(?:svg)$/i;[...tU,...pre];var iU=[...nU,...mre],aU=[`webp`],oU={},gre=async e=>{if(e in oU)return oU[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return oU[e]=r,r},sU=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await gre(t)&&aU.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await eU(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})},_re=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},cU=(e,t,n)=>{let{scale:r,width:i,height:a}=_re(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}},lU={format:`webp`,quality:85,width:512,height:512,fit:`contain`},vre=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise((e,r)=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{URL.revokeObjectURL(t),r(Error(`Failed to decode image`))},{once:!0}),n.src=t})},yre=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise((e,r)=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{document.body.removeChild(n),URL.revokeObjectURL(t),r(Error(`Failed to decode video`))},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n),n.src=t})},bre=async e=>e.type.startsWith(`video/`)?yre({blob:e}):vre({blob:e}),uU=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await bre(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return cU(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),sU(l,{format:t,quality:n})},xre=async e=>{let t=await e.text();try{let{optimize:n}=await eU(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e},dU=$H(`pdfjs-dist`),Sre=`${dU}/build/pdf.min.mjs`,Cre=`${dU}/build/pdf.worker.min.mjs`,wre={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${dU}/cmaps/`,iccUrl:`${dU}/iccs/`,standardFontDataUrl:`${dU}/standard_fonts/`,wasmUrl:`${dU}/wasm/`},fU,Tre=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!fU)try{fU=await Lk(()=>import(Sre),void 0),fU.GlobalWorkerOptions.workerSrc=Cre}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await fU.getDocument({...wre,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=cU(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return sU(s,{format:t,quality:n})},Ere=/^(?:https?|data|blob):/,pU=new Set,mU=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(pU.has(o)&&t<=25)return await Wc(200),mU(e,t+1);pU.add(o);let n=await A(RY)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:UV.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),pU.delete(o),s},hU=async e=>(e.blobURL||await mU(e),e.blobURL),gU=void 0,_U=new Map,Dre=()=>{if(gU===void 0){let{databaseName:e}=A(RY)?.repository??{};gU=e?new bk(e,`asset-thumbnails`):null}},Ore=async(e,t)=>{let n=await gU?.get(e.sha);if(!n){let r=await mU(e);n=await(t?Tre:uU)(r,lU),await gU?.set(e.sha,n)}return n},vU=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;Dre();let{sha:r}=e,i=_U.get(r);if(!i){if(t){let e=await gU?.get(r);return e?URL.createObjectURL(e):void 0}i=Ore(e,n).finally(()=>{_U.delete(r)}),_U.set(r,i)}let a=await i;return a?URL.createObjectURL(a):void 0},yU=new Set,kre=()=>{let e=new Set(yU);yU.clear(),document.querySelectorAll(`[src^="blob:"]`).forEach(t=>{e.delete(t.getAttribute(`src`))}),e.size&&(e.forEach(e=>URL.revokeObjectURL(e)),A(iK).forEach(t=>{t.blobURL!==void 0&&e.has(t.blobURL)&&delete t.blobURL}))},Are=({blobURL:e})=>{if(!e)return;let t=!yU.size;yU.add(e),t&&window.requestAnimationFrame(kre)},bU=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:PP(e.path).find(({collectionName:e})=>e!==void 0)??A(kP);if(a){if(t){let t=bP(e.path).dirname,n=r?bP(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===VH([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(KG),l=o?e.path.replace(PH(e.folder.internalPath??``,e=>{let t=e.match(EP)?.[1];return t?`(?<${t}>[^/]+)`:rk(e)}),i?.replaceAll(Fne,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=FH(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},jre=e=>{if(YH.cloudinary?.isEnabled?.()){let t=$V(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},xU=async({value:e,entry:t,collectionName:n,fileName:r,componentName:i,fieldConfig:a,typedKeyPath:o,thumbnail:s=!1})=>{if(!e)return;if(Ere.test(e))return e;if(yK(e)){let t=jre(a);if(t)return`${t}/${e}`}let c=bK({value:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:o});if(c)return(s?await vU(c):await hU(c))??bU(c)};dz.default.extend(fz.default),dz.default.extend(pz.default),dz.default.extend(mz.default);var Mre=/{{(?:year|month|day|hour|minute|second)}}/,SU=e=>oV(Object.values(e.locales)[0].path).map(({collectionName:e})=>XB(e)).filter(e=>!!e),Nre=({dateFieldName:e,fields:t,content:n})=>{let r=e?t.find(({widget:t,name:n})=>t===`datetime`&&n===e):t.find(({widget:e})=>e===`datetime`),i=r?n[r.name]:void 0;if(!r||!i)return;let a=r,o=jV(i,a);if(!DV(o))return;let{utc:s,outputUTC:c}=vz(a);return MR({date:o,timeZone:s||c?`UTC`:void 0})},CU=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=A(KG)??{},{slug:o,path:s,content:c}=e.locales[t]??{},{preview_path:l,preview_path_date_field:u,fields:d=[],_i18n:{defaultLocale:f,omitDefaultLocaleFromPreviewPath:p}}=r??n;if(!i||!a||!s||!c||!l)return;let m=iB(n,e),h=(m?rB(n):void 0)?.fields??d,g;if(Mre.test(l)&&(g=Nre({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=EW(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},Pre=(e,t)=>`${A(RY)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`,Fre=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,wU=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(Fre)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}},Ire=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,TU=Bt([]),Lre=Vt(TU,e=>new Set(e.map(e=>e.id))),Rre=e=>{let t=XB(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=wU(i?.pattern),s=i?.value===void 0?[]:Array.isArray(i.value)?i.value:[i.value],c;if(n===`entry`){let n=t._file?.fullPathRegEx;c=n?e=>n.test(Object.values(e.locales)[0]?.path??``):t=>SU(t).some(({name:t})=>t===e)}else{let t=new Set(A(tV).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return A(nV).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=mW({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},EU={entrySource:void 0,folderSource:void 0,map:new Map},DU=e=>{let t=A(nV),n=A(tV);(t!==EU.entrySource||n!==EU.folderSource)&&(EU.entrySource=t,EU.folderSource=n,EU.map=new Map);let r=EU.map.get(e);if(r)return r;let i=Rre(e);return EU.map.set(e,i),i},OU=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=cW({collectionName:n,fileName:l,valueMap:i,keyPath:a,isIndexFile:s});if(!u)return!1;let d=e.startsWith(`blob:`),f={entry:r,collectionName:n,fileName:l},{widget:p=`string`}=u;if(Hz.includes(p)){let n=d?await xU({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(Ire)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await xU({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},kU=async(e,{entries:t=A(nV),newURL:n=``}={})=>{let r=A(KG)?._baseURL,i=r&&!e.startsWith(`blob:`)?e.replace(r,``):e,a=i.startsWith(`blob:`),o=!!n,s=await Promise.all(t.map(async e=>{let{locales:t}=e,r=SU(e),s=!1;for(let{content:c}of Object.values(t)){for(let[t,l]of Object.entries(c))if(!(typeof l!=`string`||!l)&&!(!a&&!l.includes(i))){for(let a of r){let r={assetURL:i,newURL:n,collectionName:a.name,entry:e,content:c,keyPath:t,value:l,isIndexFile:iB(a,e)},u=Lz(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>OU({...r,collectionFile:e})))).includes(!0):await OU({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},zre=e=>{let t=rB(e);return t?!DU(e.name).some(({slug:e})=>e===t.name):!1},AU=new WeakMap,Bre=e=>{let t=AU.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),AU.set(e,n),n},jU=new WeakMap,MU=0,NU=e=>(jU.has(e)||(jU.set(e,MU),MU+=1),jU.get(e)),PU=e=>TW(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,Vre=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n},FU=(e,t,n)=>{let{slug:r,locale:i,getDisplayValue:a}=t,{content:o,locales:s,defaultLocale:c,identifierField:l}=n;if(e===`slug`)return r;if(e===`locale`)return i;let u=e.replace(/^fields\./,``);return a(u)||a(u,c)||_W(o,{identifierField:l})||_W(s[c]?.content||{},{identifierField:l})||r},IU=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=FU(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},LU=e=>{let t=[];return wW(e,(e,n)=>(t.push(n),``)),t},Hre=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=PU(n??`{{slug}}`),o=r.map(PU).join(` `),s=i.map(PU).join(` `),c=uj([...LU(o),...LU(a),...LU(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}},Ure=/\.(\d+)$/,Wre=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=cW({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:Vre(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},Gre=new Map,Kre=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=HR(Gre,e,()=>RegExp(`^${rk(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match(Ure);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index).map(({value:e})=>{let n={label:s,value:c,searchValue:l};t.forEach(([t])=>{n.label=n.label.replaceAll(`{{${t}}}`,e),n.value=n.value.replaceAll(`{{${t}}}`,e),n.searchValue=n.searchValue.replaceAll(`{{${t}}}`,e)});let{label:r,value:u,searchValue:d}=IU(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},RU=/^(.+)\.\*\.(.+)$/,qre=new Map,Jre=e=>{let t=null;return e.some(([e])=>(t=e.match(RU),!!t)),t},Yre=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=Jre(e)??[];if(!o)return[];let c=HR(qre,`${o}:${s}`,()=>{let e=rk(o),t=rk(s);return RegExp(`^${e}.([0-9]+).${t}$`)}),l=Object.entries(t).filter(([e])=>c.test(e)).map(([e,t])=>{let n=e.match(c);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index),{_displayField:u,_valueField:d,_searchField:f}=n;return l.map(({index:n})=>{let o={label:u,value:d,searchValue:f};e.forEach(([e])=>{let r=e.match(RU);if(r){let[,i,a]=r,s=t[`${i}.${n}.${a}`]||``;o.label=o.label.replaceAll(`{{${e}}}`,s),o.value=o.value.replaceAll(`{{${e}}}`,s),o.searchValue=o.searchValue.replaceAll(`{{${e}}}`,s)}});let{label:s,value:c,searchValue:l}=IU(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},Xre=({baseFieldGroups:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let o=[],s=!1;return e.forEach((e,c)=>{if(e.length===0)return;let[,l]=e[0],u={groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a},d=l.isComplexListField?Yre({...u}):Kre({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}},Zre=({templates:e,allFieldNames:t,context:n,fallbackContext:r})=>{let{slug:i}=n,{_displayField:a,_valueField:o,_searchField:s}=e,{content:c,locales:l,defaultLocale:u,identifierField:d}=r,f=Object.fromEntries(t.map(e=>[e,FU(e,n,r)])),p=a,m=o,h=s;return Object.entries(f).forEach(([e,t])=>{p=p.replaceAll(`{{${e}}}`,t),m=m.replaceAll(`{{${e}}}`,t),h=h.replaceAll(`{{${e}}}`,t)}),(!p||p.trim()===``)&&(p=_W(c,{identifierField:d})||_W(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}},Qre=({refEntry:e,content:t,collection:n,templates:r,allFieldNames:i,hasListFields:a,collectionName:o,fileName:s,locale:c,identifierField:l,defaultLocale:u})=>{let{slug:d,locales:f}=e,p={collectionName:o,fileName:s,isIndexFile:iB(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>fW({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[Zre({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let{results:g,hasProcessedListFields:_}=Xre({baseFieldGroups:Wre(i,p),content:t,templates:r,allFieldNames:i,context:m,fallbackContext:h});if(_)return g;let{_displayField:v,_valueField:y,_searchField:b}=r,{label:x,value:S,searchValue:C}=IU({label:v,value:y,searchValue:b},i.filter(e=>!e.includes(`*`)),m,h);return[{label:x||``,value:S||d,searchValue:C||x||``}]},$re=/^{{fields\.(.+?)}}$/,eie=(e,t,n=void 0)=>e.map(({field:e,values:r,exclude:i})=>({field:e,exclude:i,values:r.flatMap(e=>{if(typeof e!=`string`)return[e];if(e===`{{slug}}`)return n?[n]:[];let r=e.match($re);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),tie=({refEntries:e,locale:t,fileName:n=void 0,entryFilters:r=[],defaultLocale:i=void 0})=>e.filter(e=>!n||n===e.slug).map(e=>{let{content:n}=e.locales[t]??(i?e.locales[i]:void 0)??e.locales._default??{};return{refEntry:e,hasContent:!!n&&Object.keys(n).length>0,content:n??{}}}).filter(({hasContent:e,content:t,refEntry:n})=>e&&r.every(({field:e,values:r,exclude:i=!1})=>{if(r.length===0)return!0;let a=e===`slug`,o=e.replace(/^fields\./,``),s=a?n.slug:t[o];return i?!r.includes(s):r.includes(s)})),nie=new Map,rie=100,zU=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=eie(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`);return UR(nie,`${e}|${`${NU(t)}|${NU(n)}`}|${l}`,()=>{let r=XB(a);if(!r)return[];let{_type:i,_i18n:{defaultLocale:s}}=r,{identifier_field:l=`title`}=i===`entry`?r:{},u=Hre(t,l),{allFieldNames:d,hasListFields:f}=u;return tie({refEntries:n,locale:e,fileName:o,entryFilters:c,defaultLocale:s}).flatMap(({refEntry:t,content:n})=>Qre({refEntry:t,content:n,collection:r,templates:u,allFieldNames:d,hasListFields:f,collectionName:a,fileName:o,locale:e,identifierField:l,defaultLocale:s})).sort((e,t)=>lk(e.label,t.label))},rie)},BU=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=Bre(zU({locale:r,fieldConfig:e,refEntries:DU(a)})),s=e=>o.get(e)||e;return i?fV(t,n).map(e=>s(t[e])):s(t[n])},VU=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),HU=e=>TP(Object.fromEntries(Object.entries(wP(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),UU=e=>e.replace(/"/g,`'`),WU=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,iie=new RegExp(WU,`g`),aie=RegExp(`${WU.source}|\\[!\\[(?<alt2>(?:[^\\]\\\\]|\\\\.)*)\\]\\((?<src2>(?:[^"()\\\\]|\\\\.|\\([^)]*\\)|"[^"]*")*?)(?:\\s+"(?<title2>(?:[^"\\\\]|\\\\.)*)")?\\)\\](?:\\((?<link>[^)]*\\([^)]*\\)[^)]*|[^)]*)\\))`),GU=e=>typeof e==`string`&&!!e.trim(),KU=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),qU={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},JU=(e,t)=>yN(e.replace(`<a>`,`<a href="${KU(t)}" target="_blank" rel="noopener noreferrer">`),qU),YU={id:`image`,label:`Image`,fields:[{name:`src`,label:`Source`,widget:`image`},{name:`alt`,label:`Alt Text`,required:!1},{name:`title`,label:`Title`,required:!1}],pattern:WU,toBlock:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return t?`}"`:``})`:``},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return`<img src="${KU(t)}" alt="${KU(n)}" title="${KU(r)}">`}},oie={id:`linked-image`,label:`Image`,fields:[...YU.fields,{name:`link`,label:`Link`,required:!1}],pattern:aie,fromBlock:e=>{let{src:t,alt:n,title:r,src2:i,alt2:a,title2:o,link:s}=e.groups??{};return{src:(t||i||``).trim(),alt:(n||a||``).trim(),title:(r||o||``).trim(),link:(s||``).trim()}},toBlock:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=t?`}"`:``})`:``;return a&&i?`[${a}](${i})`:a},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=`<img src="${KU(t)}" alt="${KU(n)}" title="${KU(r)}">`;return i?`<a href="${KU(i)}">${a}</a>`:a}},XU=e=>{let t=Gz.get(e);if(t)return{...t,id:`x-${e}`};let n={icon:`image`,label:Y(`editor_components.image`),fields:[{name:`src`,label:Y(`editor_components.src`),widget:`image`},{name:`alt`,label:Y(`editor_components.alt`),required:!1},{name:`title`,label:Y(`editor_components.title`),required:!1}],trigger:`button`};return{image:{...YU,...n},"linked-image":{...oie,...n,fields:[...n.fields,{name:`link`,label:Y(`editor_components.link`),required:!1}]}}[e]},sie=new Map,cie=1e3,ZU=new WeakMap,lie=e=>{let t=ZU.get(e);return t===void 0&&(t=JSON.stringify(e),ZU.set(e,t)),t},uie=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=lj(i),o;r&&(o=fV(t,n).map(e=>t[e]));let s=lie(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=e=>i.find(t=>t.value===e)?.label||e;return UR(sie,c,()=>{if(r)return a?o.map(l):o;let e=t[n];return a?l(e):e},cie)},QU=e=>{if(!e)return;let t=Object.values(e);if(t.some(e=>e.config?.multiple===!0))return!0;if(t.some(e=>e.config?.multiple===!1))return!1},$U=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},eW=e=>{let t=A(KG);return e.multiple??QU(e.media_libraries)??$U(e.media_library)??QU(t?.media_libraries)??$U(t?.media_library)??!1},die=/^\d+$/,tW=e=>die.test(e),nW=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n},fie=/^(.*?)<([^>]+)>(.*)$/,rW=/\.\d+$/,iW=new Map,aW=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},oW=e=>{let t=e.widget??`string`;return Hz.includes(t)?eW(e):Uz.includes(t)?!!e.multiple:!1},sW=e=>{let t=e.match(fie);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},pie=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=sW(t),{widget:c=`text`}=e,l=s??i,u=tW(o),d=o===`*`;if((u||d)&&Uz.includes(c))return{field:oW(e)?e:void 0,explicitType:l};let{field:f}=e,{fields:p}=e,{types:m,typeKey:h=`type`}=e;if(f){let e=u||d?n[r+1]:void 0;return{field:!e||f.name===e||f.widget===`object`&&`fields`in f&&f.fields?.some(t=>t.name===e)?f:void 0,explicitType:l}}if(p&&(u||d))return{field:e,explicitType:l};if(p&&!u&&o!==``)return{field:p.find(({name:e})=>e===o),explicitType:l};if(m&&(u||d)){let e=l??a[[n.slice(0,r).join(`.`),o,h].join(`.`)];return{field:m.find(({name:t})=>t===e),explicitType:d?void 0:l}}if(m&&t!==h&&o!==h&&o!==``){let e=l??a[[n.slice(0,r).join(`.`),h].join(`.`)];return{field:m.find(({name:t})=>t===e)?.fields?.find(({name:e})=>e===o),explicitType:void 0}}return{field:void 0,explicitType:l}},cW=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=[t,n??``,r??``,a,o?`1`:`0`].join(`|`);if(iW.has(s))return iW.get(s);let c=XB(t),l=c&&n?Fz(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){iW.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?rB(c):void 0,f=r?XU(r)?.fields??[]:d?.fields??u,p=a.split(`.`),m,h,g=!1;if(p.forEach((e,t)=>{if(t===0){let{cleanKey:t,typeName:n}=sW(e);m=f.find(({name:e})=>e===t),!m&&d?.fields&&(m=u.find(({name:e})=>e===t)),n&&(h=n)}else if(m){let n=pie({field:m,key:e,keyPathArray:p,segmentIndex:t,pendingExplicitType:h,valueMap:i});m=n.field,h=n.explicitType}m&&`types`in m&&(g=!0)}),h&&m&&`types`in m){let{types:e}=m;m=e.find(({name:e})=>e===h)}return g||iW.set(s,m),m},lW=e=>{let t=e.widget??`string`;return Bz.includes(t)?`builtin`:Kz.has(t)?`custom`:`unknown`},uW=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,dW=new Map,fW=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=cW({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:o}),c=n[r];if(c===void 0&&a?.length)return``;if(s?.widget===`datetime`&&(a?.some(({method:e})=>e===`date`)||(c=FV({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=BU({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=uie({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;e||t||(c=yB(i).format(fV(n,r).map(e=>n[e]).filter(e=>typeof e==`string`&&!!e)))}if(s?.widget===`number`){let{value_type:e=`int`}=s;if(e===`int`||e===`float`){let e=mB(i),t=dW.get(e);t||(t=Intl.NumberFormat(e),dW.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=yB(i).format(c)),a?.length&&(c=Mz({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},pW=({valueMap:e,locale:t,keyPath:n,keyPathPrefix:r,getFieldArgs:i})=>{let a=[`${n}.title`,`${n}.name`,...lV(e,r)].find(t=>{let n=e[t];if(!t.startsWith(r)||!(typeof n==`string`&&n.trim()||typeof n==`number`&&!Number.isNaN(n)))return!1;let a=cW({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?fW({...i,keyPath:a,locale:t}):``},mW=({entry:e,locale:t,collectionName:n,key:r,resolveRef:i=!0})=>{let{slug:a,locales:o,commitAuthor:{name:s,login:c,email:l}={},commitDate:u}=e;if(r===`slug`)return a;if(r===`commit_author`)return s||c||l;if(r===`commit_date`)return u;let{content:d}=o[t]??{};if(d===void 0)return;let f=XB(n);if(f){if(i){let i=cW({collectionName:n,keyPath:r,isIndexFile:iB(f,e)});if(i?.widget===`relation`)return BU({fieldConfig:i,valueMap:d,keyPath:r,locale:t})}return d[r]}},hW=({valueMap:e,keyPath:t,isList:n,isCustomFieldType:r=!1})=>{let i=e[t];if(!n&&!r)return i;let a=fV(e,t);return a.length?a.map(t=>e[t]).filter(e=>e!==void 0):r?i:[]},mie=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,gW=(e,{allowMarkdown:t=!1}={})=>(e=hP(e),t&&(e=nz(e)),e=yN(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=nz(e)),e.trim()),_W=(e,{identifierField:t=`title`,useBody:n=!0}={})=>{let r=[t,`title`,`name`,`label`].find(t=>typeof e[t]==`string`&&!!e[t].trim());return r?e[r].trim():n&&typeof e.body==`string`?e.body.match(mie)?.groups?.header??``:``},hie=(e,t)=>{let{slug:n,entryPath:r,basePath:i,locales:a,commitDate:o,commitAuthor:s}=t;if(e===`slug`)return n;if(e===`locales`)return a.sort((e,t)=>e.localeCompare(t)).join(`, `);if(e===`dirname`){let e=r.replace(/[^/]+$/,``);if(i){let t=i.endsWith(`/`)?i:`${i}/`;e.startsWith(t)?e=e.slice(t.length):e.startsWith(i)&&(e=e.slice(i.length))}return ak(e)}if(e===`filename`)return r.split(`/`).pop().split(`.`).shift();if(e===`extension`)return r.split(`/`).pop().split(`.`).pop();if(e===`commit_date`)return o??``;if(e===`commit_author`)return s?.name||s?.login||s?.email},vW=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a,fallbackSummary:o}=t,{value:s,transformations:c}=wz(e),l=s.replace(/^fields\./,``),u={collectionName:r,valueMap:n,keyPath:l},d=hie(s,i),f=oz(c,e=>vW(e,t));if(d===void 0&&(d=f.some(({method:e})=>e===`date`||e===`ternary`)?n[l]:fW({...u,locale:a}),l===`title`&&!d&&(d=o)),d===void 0)return``;if(d instanceof Date&&!f.length){let{year:e,month:t,day:n}=MR({date:d});return`${e}-${t}-${n}`}return f.length&&(d=Mz({fieldConfig:cW({...u}),value:d,transformations:f,locale:a})),String(d)},yW=new WeakMap,bW,xW=0,gie=()=>{let e=A(nV);return e!==bW&&(bW=e,xW+=1),xW},_ie=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(iB(e,t))return rB(e)?.label;let{_type:a,name:o,_i18n:{defaultLocale:s}}=e,{_file:{basePath:c}={},identifier_field:l=`title`,summary:u}=a===`entry`?e:{},{locales:d,slug:f,commitDate:p,commitAuthor:m}=t,{content:h={},path:g=``}=d[n??s]??Object.values(d)[0]??{},_=_W(h,{identifierField:l})||f.replaceAll(`-`,` `);if(!r||!u)return gW(_,{allowMarkdown:i});let v={content:h,collectionName:o,replaceSubContext:{slug:f,entryPath:g,basePath:c,locales:Object.keys(d),commitDate:p,commitAuthor:m},defaultLocale:s,fallbackSummary:_};return gW(wW(u,(e,t)=>vW(t,v)),{allowMarkdown:i})},SW=(e,t,n={})=>{let{locale:r,useTemplate:i=!1,allowMarkdown:a=!1}=n,o=yW.get(t);o||(o=new WeakMap,yW.set(t,o));let s=o.get(e);s||(s=new Map,o.set(e,s));let c=[r??``,i?`1`:`0`,a?`1`:`0`,gc.current,gie()].join(`
|
|
333
333
|
`),l=s.get(c);if(l!==void 0)return l;let u=_ie(e,t,n);return s.set(c,u),u},vie=(e,t)=>Ine.includes(e)?t[e]:void 0,yie=e=>{switch(e){case`uuid`:return Zc();case`uuid_short`:return Zc(`short`);case`uuid_shorter`:return Zc(`shorter`);default:return}},bie=(e,t)=>{if(e!==`slug`)return;let{type:n,isIndexFile:r,currentSlug:i,content:a,identifierField:o}=t;return n===`preview_path`&&r?``:i??_W(a,{identifierField:o})},xie=(e,t,n)=>{if(!t)return``;switch(e){case`dirname`:{let e=t.replace(n??``,``),r=e.lastIndexOf(`/`);return r>0?e.substring(0,r):``}case`filename`:return t.split(`/`).pop().split(`.`).shift();case`extension`:return t.split(`/`).pop().split(`.`).pop();default:return}},CW=(e,t)=>{let{type:n,content:r,entryFilePath:i,locale:a,dateTimeParts:o,basePath:s}=t,c=vie(e,o);if(c!==void 0)return c;let l=bie(e,t);if(l!==void 0)return l;let u=yie(e);if(u!==void 0)return u;if(n===`preview_path`&&e===`locale`)return a;if(n===`preview_path`||n===`media_folder`){let t=xie(e,i,s);return t===void 0?void 0:t}return r[e.replace(/^fields\./,``)]},Sie=(e,t)=>{let{replaceSubContext:n,getFieldArgs:r}=t,{value:i,transformations:a}=wz(e),o=CW(i,n),s=oz(a,e=>String(CW(e,n)??``)),c=a.some(e=>e.args.defaultValue!==void 0),l=a.some(e=>[e.args.defaultValue,e.args.truthyValue,e.args.falsyValue].some(e=>typeof e==`string`&&e.includes(`{{`)&&!/^{{[^{}]+}}$/.test(e)));if(o===void 0&&!c)return Zc(`short`);if((o===void 0||o===``)&&c&&l)return`${Zc(`short`)}-${Zc(`short`)}`;let{type:u,locale:d}=n;return s.length&&(o=Mz({fieldConfig:cW({...r,keyPath:i}),value:o,transformations:s,locale:d})),o=sre(String(o)),u?o:KR(o,{locale:d,maxLength:1/0})},wW=(e,t)=>{let n=``,r=0;for(;r<e.length;){let i=e.indexOf(`{{`,r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let a=i+2,o=!1;for(;a<e.length;){let s=e[a],c=e[a+1];if(s===`'`&&!o?o=!0:s===`'`&&o&&(o=!1),!o&&s===`}`&&c===`}`){let o=a,s=e[i-1]===`'`,c=e[o+2]===`'`,l=e[i-2],u=e[o+3],d=e.slice(i+2,o),f=s&&c&&[`(`,`,`,`[`,`|`].includes(l??``)&&[`)`,`,`,`]`].includes(u??``);n+=d?f?e.slice(i,o+2):t(e.slice(i,o+2),d):e.slice(i,o+2),r=o+2;break}a+=1}if(a>=e.length){n+=e.slice(i);break}}return n},TW=e=>EP.test(e),Cie=(e,t)=>DU(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),EW=(e,t)=>{let{collection:n,content:r,currentSlug:i,locale:a,dateTimeParts:o,isIndexFile:s=!1}=t,{_type:c,name:l}=n,{identifier_field:u=`title`,slug_length:d=void 0,_file:{basePath:f}={}}=c===`entry`?n:{},p=A(KG)?.slug,m=d??p?.maxlength,h=p?.timezone===`local`?void 0:`UTC`,g={replaceSubContext:{...t,dateTimeParts:o??MR({timeZone:h}),identifierField:u,basePath:f},getFieldArgs:{collectionName:l,keyPath:``,valueMap:r,isIndexFile:s}},_=wW(e,(e,t)=>Sie(t,g)).trim();return i?_:(typeof m==`number`&&(_=ik(_,m,{ellipsis:``}).replace(/-$/,``)),RH(_,Cie(l,a)))},DW=[],OW=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),kW=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),wie=({collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i=!1,mediaFolder:a,publicFolder:o,baseFolder:s,globalFolders:c,label:l,icon:u,isAssetCollection:d=!1})=>{if(OW(a)){if(!c)return;a=kW(a,c)}if(o===void 0)o=a;else if(OW(o)){if(!c)return;o=kW(o,c)}a=a.replace(/^\.(?:\/|$)/,``);let f=!a.startsWith(`/`);return{collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i,internalPath:ak(f?s??``:a),internalSubPath:f?ak(a):void 0,publicPath:/^($|[.@])/.test(o)?o:`/${ak(o)}`,entryRelative:f,hasTemplateTags:TW(a),label:l,icon:u,isAssetCollection:d}},AW=e=>{if(e.mediaFolder===void 0)return;let t=wie(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||DW.push(t)},jW=({collectionName:e,files:t,globalFolders:n})=>{Pz(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;AW({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:bP(i).dirname,globalFolders:n})})},Tie=({fieldMediaFolders:e,validCollections:t,globalFolders:n})=>{e.forEach(({fieldConfig:e,context:r})=>{let{collection:i,collectionFile:a,componentName:o,typedKeyPath:s,isIndexFile:c}=r;!(i&&(i.name===`_singletons`||t.some(e=>e.name===i.name)))&&!o||AW({collectionName:i?.name,fileName:a?.name,componentName:o,typedKeyPath:s,isIndexFile:c,mediaFolder:e.media_folder,publicFolder:e.public_folder,baseFolder:i&&`folder`in i?i.folder:void 0,globalFolders:n})})},Eie=({assetCollections:e,globalFolders:t})=>{e.forEach(e=>{let{name:n,label:r=n,icon:i,media_folder:a,public_folder:o}=e;a!==void 0&&AW({collectionName:`assets:${n}`,mediaFolder:`/${ak(a)}`,publicFolder:o,globalFolders:t,label:r,icon:i,isAssetCollection:!0})})},Die=(e,t=[])=>{DW.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a,asset_collections:o}=e,s=n!==void 0,c=s?ak(n).replace(/^\.$/,``):``,l=s?r?`/${ak(r)}`.replace(/^\/@/,`@`):`/${c}`:``,u={collectionName:void 0,internalPath:void 0,internalSubPath:void 0,publicPath:void 0,entryRelative:!1,hasTemplateTags:!1,label:void 0,icon:void 0,isAssetCollection:!1},d=s?{...u,internalPath:c,publicPath:l}:void 0,f=s?{globalMediaFolder:c,globalPublicFolder:l}:void 0,p=WB({collections:i});p.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:o}=e;AW({collectionName:t,mediaFolder:s&&a===void 0&&i!==void 0?``:a,publicFolder:o,baseFolder:r,entryPath:i,globalFolders:f}),n?.length&&jW({collectionName:t,files:n,globalFolders:f})}),a?.length&&jW({collectionName:`_singletons`,files:a,globalFolders:f}),Tie({fieldMediaFolders:t,validCollections:p,globalFolders:f}),DW.sort((e,t)=>lk(e.internalPath,t.internalPath));let m=[];return d&&m.push(d),o?.length&&Eie({assetCollections:o,globalFolders:f}),m.push(...DW),m.length&&m.unshift(u),m},Oie=({collection:e,file:t})=>{let n=ak(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=LB(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,bB({_i18n:r,locale:e,path:n})]))},MW=(e,t)=>{if(Nz(t))return{collectionName:e.name,fileName:t.name,filePathMap:Oie({collection:e,file:t})}},NW=(e,t)=>lk(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),kie=({collections:e})=>WB({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=ak(n),{allLocales:i,defaultLocale:a,omitDefaultLocaleFromFilePath:o,structureMap:{i18nMultiRootFolder:s}}=LB(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,s?o&&e===a?r:`${e}/${r}`:r]))}}).sort((e,t)=>lk(e.folderPath,t.folderPath)),Aie=({collections:e})=>WB({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>MW(e,t))).filter(e=>!!e).sort(NW),jie=({singletons:e})=>{let t=Array.isArray(e)?Pz(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>MW(n,e)).filter(e=>!!e).sort(NW)},Mie=e=>[...kie(e),...Aie(e),...jie(e)],PW=`${QH}/schema/sveltia-cms.json`,Nie=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`],Pie=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,FW=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){
|
|
334
334
|
/*!
|
|
335
335
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
@@ -997,8 +997,8 @@ Error generating stack: `+e.message+`
|
|
|
997
997
|
&.value {width:50%;}}td.svelte-u0prcz {padding:0;vertical-align:middle;}`};function Zde(e,t){O(t,!0),K(e,Xde);let n=()=>j(L3,`$entryDraft`,r),[r,i]=Kt(),{valueStoreKey:a=`currentValues`}=bt(`field-editor`)??{},o=J(t,`readonly`,3,!1),s=M(()=>ce(t.fieldConfig.i18n,!1)),c=M(()=>t.fieldConfig.key_label),l=M(()=>t.fieldConfig.value_label),u=M(()=>ce(t.fieldConfig.max,1/0)),d=M(()=>B(c)||Y(`key_value.key`)),f=M(()=>B(l)||Y(`key_value.value`)),p=N(Yn([])),m=N(Yn([])),h=0,g=Yn([]),_=N(Yn([])),v=N(Yn([])),y=()=>{if(!n())return;let e=L5({entryDraft:L3,valueStoreKey:a,keyPath:t.keyPath,locale:t.locale});(0,LG.default)(B(p),e)||(P(p,[...e],!0),P(m,e.map((e,t)=>t<B(m).length?B(m)[t]:(h+=1,h-1)),!0),P(_,e.map(()=>!1),!0)),!B(p).length&&n()[a][t.locale][t.keyPath]!==null&&Jt(L3,pi(n)[a][t.locale][t.keyPath]=null,pi(n))},b=()=>{n()&&(Object.entries(n()[a]).forEach(([e,n])=>{(e===t.locale||B(s)===`duplicate`)&&delete n[t.keyPath]}),B(p).push([``,``]),B(m).push(h),h+=1,B(_).push(!1),window.requestAnimationFrame(()=>{g[B(p).length-1].querySelector(`input`).focus()}))},x=e=>{B(p).splice(e,1),B(m).splice(e,1),B(_).splice(e,1)},S=()=>{P(v,Hde({pairs:B(p),edited:B(_)}),!0),!(!n()||B(v).some(Boolean)||B(p).some(([e])=>!e.trim()))&&Ude({entryDraft:L3,fieldConfig:t.fieldConfig,keyPath:t.keyPath,locale:t.locale,pairs:B(p)})};R(()=>{A8(n(),t.locale,a),pi(()=>{y()})}),R(()=>{gt(B(p)),pi(()=>{S()})});var C=Yde(),w=I(C),T=e=>{var n=qde(),r=F(n),i=F(r),a=F(i),s=F(a,!0);D(a);var c=L(a),l=F(c,!0);D(c);var h=L(c),y=e=>{var t=Wde();z(e=>q(t,`aria-label`,e),[()=>Y(`key_value.action`)]),U(e,t)};G(h,e=>{o()||e(y)}),D(i),D(r);var S=L(r);ia(S,23,()=>B(p),(e,t)=>B(m)[t],(e,n,r)=>{var i=Kde(),a=F(i),s=F(a);{let e=M(()=>!!B(v)[B(r)]),i=M(()=>B(v)[B(r)]?`${t.fieldId}-kv-error`:void 0);Ku(s,{dir:`ltr`,get readonly(){return o()},flex:!0,get invalid(){return B(e)},get"aria-label"(){return B(d)},get"aria-errormessage"(){return B(i)},oninput:()=>{B(_)[B(r)]=!0},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&g[B(r)].querySelector(`td.value input`).focus()},get value(){return B(n)[0]},set value(e){B(n)[0]=e}})}D(a);var c=L(a),l=F(c);{let e=M(()=>hB(t.locale));Ku(l,{get dir(){return B(e)},get readonly(){return o()},flex:!0,get"aria-label"(){return B(f)},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&(B(r)<B(p).length-1?g[B(r)+1].querySelector(`input`).focus():B(p).length<B(u)&&b())},get value(){return B(n)[1]},set value(e){B(n)[1]=e}})}D(c);var m=L(c),h=e=>{var t=Gde(),n=F(t);{let e=e=>{_o(e,{name:`close`})},t=M(()=>Y(`remove`));Tl(n,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return B(t)},onclick:()=>{x(B(r))},startIcon:e,$$slots:{startIcon:!0}})}D(t),U(e,t)};G(m,e=>{o()||e(h)}),D(i),oo(i,(e,t)=>g[t]=e,e=>g?.[e],()=>[B(r)]),U(e,i)}),D(S),D(n),z(()=>{W(s,B(d)),W(l,B(f))}),U(e,n)};G(w,e=>{B(p).length&&e(T)});var ee=L(w,2),te=e=>{P8(e,{get id(){return`${t.fieldId??``}-kv-error`},children:(e,t)=>{var n=Jde(),r=I(n),i=e=>{var t=zi();z(e=>W(t,e),[()=>Y(`key_value.empty_key`)]),U(e,t)},a=M(()=>B(v).includes(`empty`));G(r,e=>{B(a)&&e(i)});var o=L(r,2),s=e=>{var t=zi();z(e=>W(t,e),[()=>Y(`key_value.duplicate_key`)]),U(e,t)},c=M(()=>B(v).includes(`duplicate`));G(o,e=>{B(c)&&e(s)}),U(e,n)},$$slots:{default:!0}})},ne=M(()=>B(v).some(Boolean));G(ee,e=>{B(ne)&&e(te)});var re=L(ee,2),ie=F(re);{let e=M(()=>Y(`add`)),t=M(()=>o()||B(p).length>=B(u));Tl(ie,{get label(){return B(e)},variant:`tertiary`,get disabled(){return B(t)},onclick:()=>{b()}})}D(re),U(e,C),k(),i()}var Qde=V(`<tr><td class="svelte-11sa460"> </td><td class="svelte-11sa460"> </td></tr>`),$de=V(`<table class="svelte-11sa460"><thead><tr><th scope="col" class="svelte-11sa460"> </th><th scope="col" class="svelte-11sa460"> </th></tr></thead><tbody></tbody></table>`),efe={hash:`svelte-11sa460`,code:`table.svelte-11sa460 {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-11sa460 {padding-block:4px;width:50%;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}td.svelte-11sa460 {&:empty::after {content:'\\00a0'; /* nbsp */}}`};function tfe(e,t){O(t,!0),K(e,efe);let n=()=>j(L3,`$entryDraft`,r),[r,i]=Kt(),a=M(()=>t.fieldConfig.key_label),o=M(()=>t.fieldConfig.value_label),s=M(()=>B(a)||Y(`key_value.key`)),c=M(()=>B(o)||Y(`key_value.value`)),l=N(Yn([])),u=()=>{let e=L5({entryDraft:L3,keyPath:t.keyPath,locale:t.locale});(0,LG.default)(B(l),e)||P(l,e,!0)};R(()=>{n()&&(A8(n(),t.locale),pi(()=>{u()}))});var d=H(),f=I(d),p=e=>{var t=$de(),n=F(t),r=F(n),i=F(r),a=F(i,!0);D(i);var o=L(i),u=F(o,!0);D(o),D(r),D(n);var d=L(n);ia(d,23,()=>B(l),([e,t],n)=>`${e}-${n}`,(e,t)=>{var n=M(()=>le(B(t),2));let r=()=>B(n)[0],i=()=>B(n)[1];var a=Qde(),o=F(a),s=F(o,!0);D(o);var c=L(o),l=F(c,!0);D(c),D(a),z(()=>{W(s,r()),W(l,i())}),U(e,a)}),D(d),D(t),z(()=>{W(a,B(s)),W(u,B(c))}),U(e,t)};G(f,e=>{B(l).length&&e(p)}),U(e,d),k(),i()}function R5(e,t){O(t,!0);let n=J(t,`expanded`,3,!1);{let t=M(()=>n()?`expand_more`:hc()?`chevron_left`:`chevron_right`);_o(e,{get name(){return B(t)}})}k()}function z5(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`items`,19,()=>[]),i=J(t,`addItem`,3,()=>void 0),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.label),s=M(()=>t.fieldConfig.types),c=M(()=>t.fieldConfig.widget===`list`?t.fieldConfig:void 0),l=M(()=>B(c)?.label_singular??``),u=M(()=>B(c)?.max??void 0),d=M(()=>Y(`add_x`,{values:{name:B(l)||B(o)||B(a)}})),f=M(()=>n()||typeof B(u)==`number`&&r().length===B(u));var p=H(),m=I(p),h=e=>{cu(e,{variant:`tertiary`,size:`small`,get label(){return B(d)},get disabled(){return B(f)},startIcon:e=>{_o(e,{name:`add`})},endIcon:e=>{},popup:e=>{{let t=M(()=>Y(`select_list_type`));Md(e,{get"aria-label"(){return B(t)},children:(e,t)=>{var n=H();ia(I(n),17,()=>B(s),({name:e,label:t})=>e,(e,t)=>{let n=()=>B(t).name,r=()=>B(t).label;{let t=M(()=>r()||n());Rd(e,{get label(){return B(t)},onclick:()=>i()({type:n()})})}}),U(e,n)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},g=M(()=>Array.isArray(B(s))),_=e=>{Tl(e,{variant:`tertiary`,size:`small`,get label(){return B(d)},get disabled(){return B(f)},onclick:()=>i()(),startIcon:e=>{_o(e,{name:`add`})},$$slots:{startIcon:!0}})};G(m,e=>{B(g)?e(h):e(_,-1)}),U(e,p),k()}var nfe=V(`<span role="none" class="type svelte-57h597"> </span>`),rfe=V(`<div role="none" class="header svelte-57h597"><div role="none" class="start svelte-57h597"><!></div> <div role="none" class="center svelte-57h597"><!></div> <div role="none" class="end svelte-57h597"><!></div></div>`),ife={hash:`svelte-57h597`,code:`.header.svelte-57h597 {display:flex;align-items:center;gap:8px;height:28px;background-color:var(--sui-secondary-border-color);& > div:where(.svelte-57h597) {display:flex;align-items:center;}.start:where(.svelte-57h597) {justify-content:flex-start;width:40%;}.center:where(.svelte-57h597) {justify-content:center;width:20%;}.end:where(.svelte-57h597) {justify-content:flex-end;width:40%;}
|
|
998
998
|
|
|
999
999
|
/* Make the expander button full-width when there is no other content */&:has(.center:where(.svelte-57h597):empty):has(.end:where(.svelte-57h597):empty) {.start:where(.svelte-57h597) {width:100%;button {justify-content:flex-start;padding:var(--sui-button-small-padding);width:-moz-available;width:-webkit-fill-available;width:stretch;aspect-ratio:auto;}}.center:where(.svelte-57h597),
|
|
1000
|
-
.end:where(.svelte-57h597) {display:none;}}.type:where(.svelte-57h597) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}}`};function B5(e,t){O(t,!0),K(e,ife);let n=J(t,`label`,3,``),r=J(t,`expanded`,15),i=J(t,`centerContent`,3,void 0),a=J(t,`endContent`,3,void 0);var o=rfe(),s=F(o),c=F(s);{let e=e=>{R5(e,{get expanded(){return r()}})},i=M(()=>!n()),a=M(()=>r()?Y(`collapse`):Y(`expand`));Tl(c,{size:`small`,get iconic(){return B(i)},get"aria-label"(){return B(a)},get"aria-expanded"(){return r()},get"aria-controls"(){return t.controlId},onclick:()=>{r(!r()),t.toggleExpanded?.()},startIcon:e,children:(e,t)=>{var r=H(),i=I(r),a=e=>{var t=nfe(),r=F(t,!0);D(t),z(()=>W(r,n())),U(e,t)};G(i,e=>{n()&&e(a)}),U(e,r)},$$slots:{startIcon:!0,default:!0}})}D(s);var l=L(s,2);da(F(l),()=>i()??E),D(l);var u=L(l,2);da(F(u),()=>a()??E),D(u),D(o),U(e,o),k()}var afe=({fieldConfig:e,dynamicValue:t})=>{if(t!==void 0)return t===`true`;let{default:n}=e;return typeof n==`boolean`&&n},ofe=e=>({[e.keyPath]:afe(e)}),sfe=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,output_code_only:i=!1,keys:a={code:`code`,lang:`lang`}}=e,o=n===void 0?r:n;if(i)return{[t]:typeof o==`string`?o:``};let s=_(o)?o:void 0,c=s?.[a.code]??o,l=s?.[a.lang]??``;return{[t]:{},[`${t}.${a.code}`]:typeof c==`string`?c:``,[`${t}.${a.lang}`]:typeof l==`string`?l:``}},cfe=({fieldConfig:e,dynamicValue:t})=>{let n=e,r=n.default,i=t??r;if(typeof i!=`string`)return``;if(i===`{{now}}`){let{singleCustomTimeZone:e,outputUTC:t}=vz(n);return NV({inputValue:MV(n,e),currentValue:``,fieldConfig:n,timeZone:e,outputUTC:t})}return i},lfe=e=>({[e.keyPath]:cfe(e)}),V5=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let r=e,i=r.default,a=eW(r),o=``;o=n===void 0?a?Array.isArray(i)?i:[]:typeof i==`string`?i:``:a?n.split(/,\s*/):n;let s={};return a&&Array.isArray(o)&&(o=o.map(e=>e.trim()).filter(e=>e!==``),o.length&&(s[t]=[],o.forEach((e,n)=>{s[`${t}.${n}`]=e}))),!a&&typeof o==`string`&&(s[t]=o.trim()),s},ufe=(e,{locale:t,account:{email:n=``,login:r=``,name:i=``}})=>e===`locale`?t:e===`datetime`?new Date().toJSON().replace(/\d+\.\d+Z$/,`00.000Z`):e===`uuid`?Zc():e===`uuid_short`?Zc(`short`):e===`uuid_shorter`?Zc(`shorter`):e===`author-email`?n:e===`author-login`?r:e===`author-name`?i:``,dfe=({fieldConfig:e,locale:t,dynamicValue:n})=>{let{default:r}=e,i=n??r;if(typeof i!=`string`)return i;let a={locale:t,account:kq.account};return wW(i,(e,n)=>{let{value:r,transformations:i}=wz(n),o=ufe(r,a);return i.length?Mz({value:o,transformations:i,locale:t}):o})},H5=e=>({[e.keyPath]:dfe(e)}),ffe=({fieldConfig:e,locale:t})=>{let{default:n}=e,r=uW({fieldConfig:e,locale:t});return _(n)?n:r?{"":``}:{}},pfe=e=>{let{keyPath:t,dynamicValue:n}=e,r;if(n!==void 0)try{let e=JSON.parse(n);_(e)&&(r=e)}catch{}return r??=ffe(e),Object.fromEntries(Object.entries(r).filter(([,e])=>typeof e==`string`).map(([e,n])=>[`${t}.${e}`,n]))},mfe=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r}=e,{fields:i}=e,{types:a}=e,o;if(o=n===void 0?Array.isArray(r)?r:[]:n.split(/,\s*/).map(e=>e.trim()).filter(e=>e!==``),!(Array.isArray(o)&&o.length))return{[t]:[]};let s={[t]:o};return i||a?o.forEach((e,n)=>{_(e)?Object.entries(wP(e)).forEach(([e,r])=>{s[`${t}.${n}.${e}`]=r}):s[`${t}.${n}`]=e}):o.forEach((e,n)=>{_(e)||(s[`${t}.${n}`]=e)}),s},hfe=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,value_type:i=`int`}=e,a=n??r,o=typeof a==`string`;if(a===void 0)return i===`int`||i===`float`?{[t]:null}:{[t]:``};if([`int`,`int/string`].includes(i)){let e=o?Number.parseInt(a,10):a;return Number.isInteger(e)?{[t]:e}:{}}if([`float`,`float/string`].includes(i)){let e=o?Number.parseFloat(a):a;return Number.isFinite(e)?{[t]:e}:{}}return{}},gfe=({fieldConfig:e,keyPath:t,locale:n,defaultLocale:r,populateDefault:i})=>{let{default:a}=e,{fields:o}=e,{types:s}=e,c=uW({fieldConfig:e,locale:n}),l={};return _(a)?(Object.entries(wP(a)).forEach(([e,n])=>{l[`${t}.${e}`]=n}),l):!c||Array.isArray(s)?(l[t]=null,l):(o&&o.length>0&&o.forEach(e=>{i?.({content:l,keyPath:[t,e.name].join(`.`),fieldConfig:e,locale:n,defaultLocale:r,dynamicValues:{}})}),l)},U5=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r=A(KG)?.field_defaults?.richtext?.default}=e,i=``;if(n!==void 0)try{i=sk(n)}catch{i=n.replace(/<[^>]*>/g,``)}else i=r||``;return{[t]:i}},W5=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,multiple:i=!1}=e,a=n===void 0?r:n.split(/,\s*/).map(e=>e.trim()),o=Array.isArray(a)&&!!a.length;if(!i){if(n!==void 0){let e=n.split(/,\s*/).map(e=>e.trim());return{[t]:e[0]||``}}return{[t]:a===void 0?``:a}}return o?Object.fromEntries(a.map((e,n)=>[`${t}.${n}`,e])):{[t]:[]}},_fe={boolean:ofe,code:sfe,datetime:lfe,file:V5,hidden:H5,image:V5,keyvalue:pfe,list:mfe,markdown:U5,number:hfe,object:gfe,relation:W5,richtext:U5,select:W5},G5=({content:e,keyPath:t,fieldConfig:n,locale:r,defaultLocale:i,dynamicValues:a})=>{let{widget:o=`string`,default:s,i18n:c=!1}=n;if(r!==i&&[!1,`none`].includes(c))return;if(o===`compute`){e[t]=``;return}let l=t in a&&!/\.\d+(?:\.|$)/.test(t)&&a[t].trim()||void 0,u=_fe[o];if(u){Object.assign(e,u({fieldConfig:n,keyPath:t,locale:r,defaultLocale:i,dynamicValue:l,populateDefault:G5}));return}e[t]=l||s||``},K5=({fields:e,locale:t,defaultLocale:n,dynamicValues:r={}})=>{let i={};return e.forEach(e=>{G5({content:i,keyPath:e.name,fieldConfig:e,locale:t,defaultLocale:n,dynamicValues:r})}),i},q5=(e,t)=>{Object.entries(t).forEach(([t,n])=>{e[t]!==n&&(e[t]=n)}),Object.keys(e).forEach(n=>{n in t||delete e[n]})},vfe=new Map,J5=(e,t)=>{let n=HR(vfe,t,()=>RegExp(`^${rk(t)}\\b(?!#)`)),r=Object.entries(e).filter(([e])=>n.test(e)).map(([e,t])=>[e.replace(n,`_`),t]).sort();return[TP(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(e).filter(([e])=>!n.test(e)))]},Y5=({locale:e,valueStoreKey:t=`currentValues`,keyPath:n,manipulate:r})=>{let i=A(L3),{collection:a,collectionFile:o}=i,{defaultLocale:s}=(o??a)._i18n,[c,l]=J5(i[t][e],n),[u,d]=e===s?J5(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:u}),R3.set(!1),L3.update(r=>(q5(r[t][e],{...wP({[n]:c}),...l}),e===s&&q5(r.expanderStates._,{...wP({[n]:u}),...d}),r)),R3.set(!0)},yfe=new Map,X5,bfe=()=>{let e=X5;X5=void 0,L3.update(t=>(t&&Object.entries(e).forEach(([e,n])=>{t.expanderStates._[e]=n}),t))},Z5=({key:e,locale:t,collapsed:n=!1})=>{let r=A(L3),i=X5?.[e]??r?.expanderStates?._[e];if(i!==void 0)return i;if(n===`auto`){let n=r?.currentValues?.[t]??{},i=e.replace(/#$/,``),a=HR(yfe,i,()=>RegExp(`^${rk(i)}\\.[^\\.]+$`));return!Object.entries(n).some(([e,t])=>a.test(e)&&!!t)}return!n},Q5=e=>{let t=A(L3)?.expanderStates?._;if(!t)return;let n=Object.entries(e).filter(([e,n])=>(X5?.[e]??t[e])!==n);n.length&&(X5||(X5={},queueMicrotask(bfe)),Object.assign(X5,Object.fromEntries(n)))},$5=({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:i=!1})=>{let a=new Set,o={collectionName:e,fileName:t,valueMap:n,isIndexFile:i};return r.split(`.`).forEach((e,t,n)=>{let r=n.slice(0,t+1).join(`.`),i=cW({...o,keyPath:r}),s=rW.test(r);if(i?.widget===`object`)s&&a.add(r),a.add(`${r}#`);else if(i?.widget===`list`)a.add(s?r:`${r}#`);else if(t>0){let e=n.slice(0,t).join(`.`),i=cW({...o,keyPath:e});i?.widget===`object`&&`fields`in i&&a.add(`${e}.${i.name}#`),i?.widget===`list`&&`field`in i&&a.add(r)}}),[...a]},xfe=({collectionName:e,fileName:t,currentValues:n})=>{let{validities:r,isIndexFile:i}=A(L3),a={};Object.entries(r??{}).forEach(([r,o])=>{Object.entries(o).forEach(([o,{valid:s}])=>{s||$5({collectionName:e,fileName:t,valueMap:n[r],keyPath:o,isIndexFile:i}).forEach(e=>{a[e]=!0})})}),Q5(a)},e7=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}},window.location.origin)},t7=V(`<!> <!>`,1),Sfe=V(`<!> `,1),n7=V(`<!> <!> <!>`,1),Cfe=V(`<div role="none" class="summary svelte-n5zzp2"><!> <!></div>`),wfe=V(`<div role="none" class="item svelte-n5zzp2"><!> <div role="none" class="item-body"><!></div></div>`),Tfe=V(`<div role="none" class="toolbar bottom add svelte-n5zzp2"><!> <!></div>`),Efe=V(`<div role="none" class="toolbar top svelte-n5zzp2"><div role="none" class="label svelte-n5zzp2"><!> <div role="none" class="summary"> </div></div> <div role="none" class="actions svelte-n5zzp2"><!> <!></div></div> <div role="none"></div> <!>`,1),Dfe={hash:`svelte-n5zzp2`,code:`.toolbar.svelte-n5zzp2 {display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;position:sticky;z-index:10;background-color:var(--sui-primary-background-color);min-height:var(--sui-secondary-toolbar-size);&.top {top:0;}&.bottom {bottom:0;}& > div:where(.svelte-n5zzp2) {display:flex;align-items:center;&.actions {flex-wrap:wrap;margin-block:8px;margin-inline-start:auto;}}}.item-list.svelte-n5zzp2 {display:flex;flex-direction:column;gap:16px;&.collapsed {display:none;}}.item.svelte-n5zzp2 {flex:none;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.summary:where(.svelte-n5zzp2) {display:flex;align-items:center;gap:8px;padding:8px;&:empty {display:none;}}}`};function Ofe(e,t){let n=Bi();O(t,!0),K(e,Dfe);let r=()=>j(L3,`$entryDraft`,i),[i,a]=Kt(),o=(e,t=E,n=E)=>{var r=H(),i=I(r),a=e=>{{let r=e=>{var n=H();ia(I(n),17,()=>B(te)??[],({name:e,label:t})=>e,(e,n)=>{let r=()=>B(n).name,i=()=>B(n).label;{let n=M(()=>i()||r());Rd(e,{get label(){return B(n)},onclick:()=>Oe({index:t(),type:r()})})}}),U(e,n)},i=M(()=>Y(`add_item_${n()}`));Rd(e,{get label(){return B(i)},get disabled(){return B(xe)},items:r,$$slots:{items:!0}})}},o=e=>{{let r=M(()=>Y(`add_item_${n()}`));Rd(e,{get label(){return B(r)},get disabled(){return B(xe)},onclick:()=>Oe({index:t()})})}};G(i,e=>{B(ae)?e(a):e(o,-1)}),U(e,r)},{valueStoreKey:s=`currentValues`,parentComponentNames:c=[]}=bt(`field-editor`)??{},l=c.at(-1),u=M(()=>t.fieldConfig.name),d=M(()=>t.fieldConfig.label),f=M(()=>t.fieldConfig.i18n),p=M(()=>ce(t.fieldConfig.allow_add,!0)),m=M(()=>ce(t.fieldConfig.allow_remove,!0)),h=M(()=>ce(t.fieldConfig.allow_duplicate,!0)),g=M(()=>ce(t.fieldConfig.allow_reorder,!0)),v=M(()=>t.fieldConfig.collapsed),y=M(()=>t.fieldConfig.summary),b=M(()=>t.fieldConfig.thumbnail),x=M(()=>ce(t.fieldConfig.minimize_collapsed,!1)),S=M(()=>t.fieldConfig.label_singular),C=M(()=>ce(t.fieldConfig.max,1/0)),w=M(()=>ce(t.fieldConfig.add_to_top,!1)),T=M(()=>t.fieldConfig.field),ee=M(()=>t.fieldConfig.fields),te=M(()=>t.fieldConfig.types),ne=M(()=>ce(t.fieldConfig.typeKey,`type`)),re=M(()=>d8(t.fieldConfig)),ie=M(()=>B(re).hasSingleSubField),ae=M(()=>B(re).hasVariableTypes),oe=M(()=>RegExp(`^${rk(t.keyPath)}\\.(\\d+)(.*)?`)),se=M(()=>r()?.isIndexFile??!1),le=M(()=>r()?.collection),ue=M(()=>r()?.collectionName??``),de=M(()=>r()?.collectionFile),fe=M(()=>r()?.fileName),pe=M(()=>(B(de)??B(le))?._i18n??AB),me=M(()=>B(pe).defaultLocale),he=M(()=>t.locale!==B(me)&&B(f)===`duplicate`),ge=M(()=>A8(r(),t.locale,s)),_e=M(()=>`${t.keyPath}#`),ve=M(()=>r()?.expanderStates?._[B(_e)]??!0),ye=M(()=>TP(Object.fromEntries(Object.entries(B(ge)).filter(([e])=>B(oe).test(e)).map(([e,n])=>[`${B(u)}${e.slice(t.keyPath.length)}`,n])))[B(u)]??[]),be=M(()=>B(ye).map((e,n)=>{let i=`${t.keyPath}.${n}`;return[i,r()?.expanderStates?._[i]??!0]})),xe=M(()=>B(ye).length>=B(C)),Se=M(()=>t.locale===B(me)||(B(ae)?B(te)?.flatMap(({fields:e=[]})=>e)??[]:B(ee)??(B(T)?[B(T)]:[])).some(({i18n:e=!1})=>e===!0||e===`translate`)),Ce=M(()=>B(he)||!B(Se)),we=Yn([]),Te=N(void 0),Ee=()=>{Q5({[B(_e)]:B(x)===`auto`?!B(ye).length:!B(x),...Object.fromEntries(B(ye).map((e,n)=>{let r=`${t.keyPath}.${n}`;return[r,Z5({key:r,locale:t.locale,collapsed:B(v)})]}))})},De=e=>{Object.keys(r()?.[s]??{}).forEach(n=>{(B(f)===`duplicate`||n===t.locale)&&Y5({locale:n,valueStoreKey:s,keyPath:t.keyPath,manipulate:e})})},Oe=async({index:e=B(w)?0:B(ye).length,dupIndex:n,type:r}={})=>{De(({valueList:i,expanderStateList:a})=>{let o=r?B(te)?.find(({name:e})=>e===r)?.fields??[]:B(ee)??(B(T)?[B(T)]:[]),s=(()=>{if(typeof n==`number`)return structuredClone(i[n]);let e=TP(K5({fields:o,locale:t.locale,defaultLocale:B(me)}));return B(ie)&&B(T)?e[B(T).name]:e})();r&&(s[B(ne)]=r),B(ie)||(s.__sc_item_id=crypto.randomUUID(),i.forEach((e,n)=>{_(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)})),i.splice(e,0,s),a.splice(e,0,!0)}),Q5({[B(_e)]:!0}),B(Te)&&(await Wc(50),(B(w)?B(Te).firstElementChild:B(Te).lastElementChild)?.scrollIntoView(),await Wc(100),B(Te).closest(`.content`)?.scrollBy({top:-50,behavior:`instant`}),(B(w)?B(Te).firstElementChild:B(Te).lastElementChild)?.querySelector(`button`)?.focus())},ke=e=>{De(({valueList:n,expanderStateList:r})=>{B(ie)||n.forEach((e,n)=>{_(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)}),n.splice(e,1),r.splice(e,1)})},Ae=e=>{De(({valueList:n,expanderStateList:r})=>{B(ie)||(n[e].__sc_item_id??=crypto.randomUUID(),n[e+1].__sc_item_id??=crypto.randomUUID(),n[e].__sc_item_original_key_path??=`${t.keyPath}.${e}`,n[e+1].__sc_item_original_key_path??=`${t.keyPath}.${e+1}`),[n[e],n[e+1]]=[n[e+1],n[e]],[r[e],r[e+1]]=[r[e+1],r[e]]})},je=(e,n)=>ele({collectionName:B(ue),fileName:B(fe),keyPath:t.keyPath,valueMap:B(ge),locale:t.locale,summaryTemplate:n,hasSingleSubField:B(ie),index:e,isIndexFile:B(se)}),Me=async e=>{if(!B(b))return;let n=B(b).replace(/^fields\./,``),i=`${t.keyPath}.${e}`,a=B(ie)?i:`${i}.${n}`,o=B(ge)[a];if(!o)return;let s=cW({collectionName:B(ue),fileName:B(fe),valueMap:B(ge),keyPath:a,isIndexFile:B(se)});if(!(s?.widget!==`image`||B(ie)&&s.name!==n))return xU({value:o,entry:r()?.originalEntry,collectionName:B(ue),fileName:B(fe),componentName:l,typedKeyPath:B(ie)?`${t.typedKeyPath}.*`:`${t.typedKeyPath}.*.${n}`})},Ne=async()=>{B(b)&&(we.length=B(ye).length,B(ye).forEach(async(e,t)=>{let n=await Me(t);we[t]!==n&&(we[t]=n)}))},Pe=({itemKeyPath:e,type:t})=>{let n=t?`The “${t}” type is not defined for the list field.`:`The type key is not found in the list item. The item must include the “${B(ne)}” property with one of the defined types: ${B(te).map(e=>e.name).join(`, `)}`;console.warn(`List item ${e}: ${n}`)};R(()=>{B(ye),pi(()=>{Ne()})}),fo(()=>{Ee()});var Fe=Efe(),Ie=I(Fe),Le=F(Ie),Re=F(Le);{let e=e=>{R5(e,{get expanded(){return B(ve)}})},t=M(()=>!B(ye).length),r=M(()=>B(ve)?Y(`collapse`):Y(`expand`));Tl(Re,{iconic:!0,get disabled(){return B(t)},get"aria-label"(){return B(r)},get"aria-expanded"(){return B(ve)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{Q5({[B(_e)]:!B(ve)})},startIcon:e,$$slots:{startIcon:!0}})}var ze=L(Re,2),Be=F(ze);D(ze),D(Le);var Ve=L(Le,2),He=F(Ve),Ue=e=>{z5(e,{get disabled(){return B(Ce)},get fieldConfig(){return t.fieldConfig},get items(){return B(ye)},addItem:Oe})};G(He,e=>{B(p)&&(B(w)||!B(ye).length||!B(ve))&&e(Ue)});var We=L(He,2),Ge=e=>{var t=t7(),n=I(t);{let e=M(()=>Y(`expand_all`)),t=M(()=>B(be).every(([,e])=>e));Tl(n,{variant:`tertiary`,size:`small`,get label(){return B(e)},get disabled(){return B(t)},onclick:()=>{Q5(Object.fromEntries(B(be).map(([e])=>[e,!0])))}})}var r=L(n,2);{let e=M(()=>Y(`collapse_all`)),t=M(()=>B(be).every(([,e])=>!e));Tl(r,{variant:`tertiary`,size:`small`,get label(){return B(e)},get disabled(){return B(t)},onclick:()=>{Q5(Object.fromEntries(B(be).map(([e])=>[e,!1])))}})}U(e,t)};G(We,e=>{B(ve)&&B(ye).length>1&&e(Ge)}),D(Ve),D(Ie);var Ke=L(Ie,2);let qe;ia(Ke,23,()=>B(ye),(e,t)=>_(e)?e.__sc_item_id??t:t,(e,i,a)=>{$j(e,{children:(e,s)=>{let c=M(()=>`${t.keyPath}.${B(a)}`),l=M(()=>B(ae)?B(i)[B(ne)]:void 0),u=M(()=>B(l)?B(te)?.find(({name:e})=>e===B(l)):void 0);var d=H(),f=I(d),_=e=>{var t=Sfe(),n=I(t);xo(n,{status:`warning`,children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>Y(`unknown_variable_type`)]),U(e,n)},$$slots:{default:!0}});var r=L(n);z(e=>W(r,` ${e??``}`),[()=>Pe({itemKeyPath:B(c),type:B(l)})]),U(e,t)},v=e=>{let i=M(()=>r()?.expanderStates?._[B(c)]??!0),s=M(()=>B(ae)?B(u)?.fields??[]:B(ee)??(B(T)?[B(T)]:[])),d=M(()=>B(ae)&&B(u)?.summary||B(y));var f=wfe(),_=F(f);{let e=e=>{var t=H(),n=I(t),r=e=>{var t=n7(),n=I(t);{let e=e=>{_o(e,{name:`arrow_upward`})},t=M(()=>B(he)||B(a)===0),r=M(()=>Y(`move_up`));Tl(n,{size:`small`,iconic:!0,get disabled(){return B(t)},get"aria-label"(){return B(r)},onclick:()=>Ae(B(a)-1),startIcon:e,$$slots:{startIcon:!0}})}var r=L(n,2);bu(r,{});var i=L(r,2);{let e=e=>{_o(e,{name:`arrow_downward`})},t=M(()=>B(he)||B(a)===B(ye).length-1),n=M(()=>Y(`move_down`));Tl(i,{iconic:!0,size:`small`,get disabled(){return B(t)},get"aria-label"(){return B(n)},onclick:()=>Ae(B(a)),startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(n,e=>{B(g)&&e(r)}),U(e,t)},t=e=>{var t=t7(),n=I(t),r=e=>{{let t=e=>{{let t=M(()=>Y(`list_item_options`));Md(e,{get"aria-label"(){return B(t)},children:(e,t)=>{var n=n7(),r=I(n),i=e=>{{let t=M(()=>Y(`duplicate`));Rd(e,{get label(){return B(t)},get disabled(){return B(xe)},onclick:()=>Oe({index:B(a)+1,dupIndex:B(a)})})}};G(r,e=>{B(h)&&e(i)});var s=L(r,2);o(s,()=>B(a),()=>`above`);var c=L(s,2);o(c,()=>B(a)+1,()=>`below`),U(e,n)},$$slots:{default:!0}})}},n=M(()=>Y(`list_item_options`));cu(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return B(n)},get disabled(){return B(Ce)},popup:t,$$slots:{popup:!0}})}};G(n,e=>{B(p)&&e(r)});var i=L(n,2),s=e=>{{let t=e=>{_o(e,{name:`close`})},n=M(()=>Y(`remove`));Tl(e,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return B(n)},onclick:()=>ke(B(a)),startIcon:t,$$slots:{startIcon:!0}})}};G(i,e=>{B(m)&&e(s)}),U(e,t)},r=M(()=>B(ae)?B(u)?.label||B(u)?.name:``),l=M(()=>B(s).length?()=>Q5({[B(c)]:!B(i)}):void 0);B5(_,{get label(){return B(r)},get controlId(){return`list-${n}-item-${B(a)??``}-body`},get expanded(){return B(i)},get toggleExpanded(){return B(l)},centerContent:e,endContent:t,$$slots:{centerContent:!0,endContent:!0}})}var v=L(_,2),b=F(v),x=e=>{var n=H();ia(I(n),17,()=>B(s),e=>e.name,(e,n)=>{$j(e,{children:(e,r)=>{{let r=M(()=>B(ie)?B(c):`${B(c)}.${B(n).name}`),i=M(()=>B(ae)?`${t.typedKeyPath}.*<${B(l)}>.${B(n).name}`:`${t.typedKeyPath}.*.${B(n).name}`),a=M(()=>B(ie)?`single-subfield-list-field`:void 0);V7(e,{get keyPath(){return B(r)},get typedKeyPath(){return B(i)},get locale(){return t.locale},get fieldConfig(){return B(n)},get context(){return B(a)}})}},$$slots:{default:!0}})}),U(e,n)},S=e=>{var t=Cfe(),n=F(t),r=e=>{J3(e,{get src(){return we[B(a)]},variant:`icon`,cover:!0})};G(n,e=>{we[B(a)]&&e(r)});var i=L(n,2);{let e=M(()=>QW.isSmallScreen?2:1);Uc(i,{get lines(){return B(e)},children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>je(B(a),B(d))]),U(e,n)},$$slots:{default:!0}})}D(t),U(e,t)};G(b,e=>{B(i)?e(x):e(S,-1)}),D(v),D(f),z(()=>q(v,`id`,`list-${n}-item-${B(a)??``}-body`)),U(e,f)};G(f,e=>{B(ae)&&!B(u)?e(_):e(v,-1)}),U(e,d)},$$slots:{default:!0}})}),D(Ke),oo(Ke,e=>P(Te,e),()=>B(Te));var Je=L(Ke,2),Ye=e=>{var n=Tfe(),r=F(n);bu(r,{flex:!0}),z5(L(r,2),{get disabled(){return B(Ce)},get fieldConfig(){return t.fieldConfig},get items(){return B(ye)},addItem:Oe}),D(n),U(e,n)};G(Je,e=>{B(p)&&!B(w)&&B(ye).length&&B(ve)&&e(Ye)}),z(()=>{q(ze,`id`,`object-${n}-summary`),W(Be,`${B(ye).length??``}
|
|
1001
|
-
${((B(ye).length===1?B(S):void 0)||B(d)||B(u))??``}`),q(
|
|
1000
|
+
.end:where(.svelte-57h597) {display:none;}}.type:where(.svelte-57h597) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}}`};function B5(e,t){O(t,!0),K(e,ife);let n=J(t,`label`,3,``),r=J(t,`expanded`,15),i=J(t,`centerContent`,3,void 0),a=J(t,`endContent`,3,void 0);var o=rfe(),s=F(o),c=F(s);{let e=e=>{R5(e,{get expanded(){return r()}})},i=M(()=>!n()),a=M(()=>r()?Y(`collapse`):Y(`expand`));Tl(c,{size:`small`,get iconic(){return B(i)},get"aria-label"(){return B(a)},get"aria-expanded"(){return r()},get"aria-controls"(){return t.controlId},onclick:()=>{r(!r()),t.toggleExpanded?.()},startIcon:e,children:(e,t)=>{var r=H(),i=I(r),a=e=>{var t=nfe(),r=F(t,!0);D(t),z(()=>W(r,n())),U(e,t)};G(i,e=>{n()&&e(a)}),U(e,r)},$$slots:{startIcon:!0,default:!0}})}D(s);var l=L(s,2);da(F(l),()=>i()??E),D(l);var u=L(l,2);da(F(u),()=>a()??E),D(u),D(o),U(e,o),k()}var afe=({fieldConfig:e,dynamicValue:t})=>{if(t!==void 0)return t===`true`;let{default:n}=e;return typeof n==`boolean`&&n},ofe=e=>({[e.keyPath]:afe(e)}),sfe=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,output_code_only:i=!1,keys:a={code:`code`,lang:`lang`}}=e,o=n===void 0?r:n;if(i)return{[t]:typeof o==`string`?o:``};let s=_(o)?o:void 0,c=s?.[a.code]??o,l=s?.[a.lang]??``;return{[t]:{},[`${t}.${a.code}`]:typeof c==`string`?c:``,[`${t}.${a.lang}`]:typeof l==`string`?l:``}},cfe=({fieldConfig:e,dynamicValue:t})=>{let n=e,r=n.default,i=t??r;if(typeof i!=`string`)return``;if(i===`{{now}}`){let{singleCustomTimeZone:e,outputUTC:t}=vz(n);return NV({inputValue:MV(n,e),currentValue:``,fieldConfig:n,timeZone:e,outputUTC:t})}return i},lfe=e=>({[e.keyPath]:cfe(e)}),V5=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let r=e,i=r.default,a=eW(r),o=``;o=n===void 0?a?Array.isArray(i)?i:[]:typeof i==`string`?i:``:a?n.split(/,\s*/):n;let s={};return a&&Array.isArray(o)&&(o=o.map(e=>e.trim()).filter(e=>e!==``),o.length&&(s[t]=[],o.forEach((e,n)=>{s[`${t}.${n}`]=e}))),!a&&typeof o==`string`&&(s[t]=o.trim()),s},ufe=(e,{locale:t,account:{email:n=``,login:r=``,name:i=``}})=>e===`locale`?t:e===`datetime`?new Date().toJSON().replace(/\d+\.\d+Z$/,`00.000Z`):e===`uuid`?Zc():e===`uuid_short`?Zc(`short`):e===`uuid_shorter`?Zc(`shorter`):e===`author-email`?n:e===`author-login`?r:e===`author-name`?i:``,dfe=({fieldConfig:e,locale:t,dynamicValue:n})=>{let{default:r}=e,i=n??r;if(typeof i!=`string`)return i;let a={locale:t,account:kq.account};return wW(i,(e,n)=>{let{value:r,transformations:i}=wz(n),o=ufe(r,a);return i.length?Mz({value:o,transformations:i,locale:t}):o})},H5=e=>({[e.keyPath]:dfe(e)}),ffe=({fieldConfig:e,locale:t})=>{let{default:n}=e,r=uW({fieldConfig:e,locale:t});return _(n)?n:r?{"":``}:{}},pfe=e=>{let{keyPath:t,dynamicValue:n}=e,r;if(n!==void 0)try{let e=JSON.parse(n);_(e)&&(r=e)}catch{}return r??=ffe(e),Object.fromEntries(Object.entries(r).filter(([,e])=>typeof e==`string`).map(([e,n])=>[`${t}.${e}`,n]))},mfe=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r}=e,{fields:i}=e,{types:a}=e,o;if(o=n===void 0?Array.isArray(r)?r:[]:n.split(/,\s*/).map(e=>e.trim()).filter(e=>e!==``),!(Array.isArray(o)&&o.length))return{[t]:[]};let s={[t]:o};return i||a?o.forEach((e,n)=>{_(e)?Object.entries(wP(e)).forEach(([e,r])=>{s[`${t}.${n}.${e}`]=r}):s[`${t}.${n}`]=e}):o.forEach((e,n)=>{_(e)||(s[`${t}.${n}`]=e)}),s},hfe=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,value_type:i=`int`}=e,a=n??r,o=typeof a==`string`;if(a===void 0)return i===`int`||i===`float`?{[t]:null}:{[t]:``};if([`int`,`int/string`].includes(i)){let e=o?Number.parseInt(a,10):a;return Number.isInteger(e)?{[t]:e}:{}}if([`float`,`float/string`].includes(i)){let e=o?Number.parseFloat(a):a;return Number.isFinite(e)?{[t]:e}:{}}return{}},gfe=({fieldConfig:e,keyPath:t,locale:n,defaultLocale:r,populateDefault:i})=>{let{default:a}=e,{fields:o}=e,{types:s}=e,c=uW({fieldConfig:e,locale:n}),l={};return _(a)?(Object.entries(wP(a)).forEach(([e,n])=>{l[`${t}.${e}`]=n}),l):!c||Array.isArray(s)?(l[t]=null,l):(o&&o.length>0&&o.forEach(e=>{i?.({content:l,keyPath:[t,e.name].join(`.`),fieldConfig:e,locale:n,defaultLocale:r,dynamicValues:{}})}),l)},U5=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r=A(KG)?.field_defaults?.richtext?.default}=e,i=``;if(n!==void 0)try{i=sk(n)}catch{i=n.replace(/<[^>]*>/g,``)}else i=r||``;return{[t]:i}},W5=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,multiple:i=!1}=e,a=n===void 0?r:n.split(/,\s*/).map(e=>e.trim()),o=Array.isArray(a)&&!!a.length;if(!i){if(n!==void 0){let e=n.split(/,\s*/).map(e=>e.trim());return{[t]:e[0]||``}}return{[t]:a===void 0?``:a}}return o?Object.fromEntries(a.map((e,n)=>[`${t}.${n}`,e])):{[t]:[]}},_fe={boolean:ofe,code:sfe,datetime:lfe,file:V5,hidden:H5,image:V5,keyvalue:pfe,list:mfe,markdown:U5,number:hfe,object:gfe,relation:W5,richtext:U5,select:W5},G5=({content:e,keyPath:t,fieldConfig:n,locale:r,defaultLocale:i,dynamicValues:a})=>{let{widget:o=`string`,default:s,i18n:c=!1}=n;if(r!==i&&[!1,`none`].includes(c))return;if(o===`compute`){e[t]=``;return}let l=t in a&&!/\.\d+(?:\.|$)/.test(t)&&a[t].trim()||void 0,u=_fe[o];if(u){Object.assign(e,u({fieldConfig:n,keyPath:t,locale:r,defaultLocale:i,dynamicValue:l,populateDefault:G5}));return}e[t]=l||s||``},K5=({fields:e,locale:t,defaultLocale:n,dynamicValues:r={}})=>{let i={};return e.forEach(e=>{G5({content:i,keyPath:e.name,fieldConfig:e,locale:t,defaultLocale:n,dynamicValues:r})}),i},q5=(e,t)=>{Object.entries(t).forEach(([t,n])=>{e[t]!==n&&(e[t]=n)}),Object.keys(e).forEach(n=>{n in t||delete e[n]})},vfe=new Map,J5=(e,t)=>{let n=HR(vfe,t,()=>RegExp(`^${rk(t)}\\b(?!#)`)),r=Object.entries(e).filter(([e])=>n.test(e)).map(([e,t])=>[e.replace(n,`_`),t]).sort();return[TP(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(e).filter(([e])=>!n.test(e)))]},Y5=({locale:e,valueStoreKey:t=`currentValues`,keyPath:n,manipulate:r})=>{let i=A(L3),{collection:a,collectionFile:o}=i,{defaultLocale:s}=(o??a)._i18n,[c,l]=J5(i[t][e],n),[u,d]=e===s?J5(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:u}),R3.set(!1),L3.update(r=>(q5(r[t][e],{...wP({[n]:c}),...l}),e===s&&q5(r.expanderStates._,{...wP({[n]:u}),...d}),r)),R3.set(!0)},yfe=new Map,X5,bfe=()=>{let e=X5;X5=void 0,L3.update(t=>(t&&Object.entries(e).forEach(([e,n])=>{t.expanderStates._[e]=n}),t))},Z5=({key:e,locale:t,collapsed:n=!1})=>{let r=A(L3),i=X5?.[e]??r?.expanderStates?._[e];if(i!==void 0)return i;if(n===`auto`){let n=r?.currentValues?.[t]??{},i=e.replace(/#$/,``),a=HR(yfe,i,()=>RegExp(`^${rk(i)}\\.[^\\.]+$`));return!Object.entries(n).some(([e,t])=>a.test(e)&&!!t)}return!n},Q5=e=>{let t=A(L3)?.expanderStates?._;if(!t)return;let n=Object.entries(e).filter(([e,n])=>(X5?.[e]??t[e])!==n);n.length&&(X5||(X5={},queueMicrotask(bfe)),Object.assign(X5,Object.fromEntries(n)))},$5=({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:i=!1})=>{let a=new Set,o={collectionName:e,fileName:t,valueMap:n,isIndexFile:i};return r.split(`.`).forEach((e,t,n)=>{let r=n.slice(0,t+1).join(`.`),i=cW({...o,keyPath:r}),s=rW.test(r);if(i?.widget===`object`)s&&a.add(r),a.add(`${r}#`);else if(i?.widget===`list`)a.add(s?r:`${r}#`);else if(t>0){let e=n.slice(0,t).join(`.`),i=cW({...o,keyPath:e});i?.widget===`object`&&`fields`in i&&a.add(`${e}.${i.name}#`),i?.widget===`list`&&`field`in i&&a.add(r)}}),[...a]},xfe=({collectionName:e,fileName:t,currentValues:n})=>{let{validities:r,isIndexFile:i}=A(L3),a={};Object.entries(r??{}).forEach(([r,o])=>{Object.entries(o).forEach(([o,{valid:s}])=>{s||$5({collectionName:e,fileName:t,valueMap:n[r],keyPath:o,isIndexFile:i}).forEach(e=>{a[e]=!0})})}),Q5(a)},e7=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}},window.location.origin)},t7=V(`<!> <!>`,1),Sfe=V(`<!> `,1),n7=V(`<!> <!> <!>`,1),Cfe=V(`<div role="none" class="summary svelte-n5zzp2"><!> <!></div>`),wfe=V(`<div role="group" class="item svelte-n5zzp2"><!> <div role="none" class="item-body"><!></div></div>`),Tfe=V(`<div role="none" class="toolbar bottom add svelte-n5zzp2"><!> <!></div>`),Efe=V(`<div role="none" class="toolbar top svelte-n5zzp2"><div role="none" class="label svelte-n5zzp2"><!> <div role="none" class="summary"> </div></div> <div role="none" class="actions svelte-n5zzp2"><!> <!></div></div> <div role="none"></div> <!>`,1),Dfe={hash:`svelte-n5zzp2`,code:`.toolbar.svelte-n5zzp2 {display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;position:sticky;z-index:10;background-color:var(--sui-primary-background-color);min-height:var(--sui-secondary-toolbar-size);&.top {top:0;}&.bottom {bottom:0;}& > div:where(.svelte-n5zzp2) {display:flex;align-items:center;&.actions {flex-wrap:wrap;margin-block:8px;margin-inline-start:auto;}}}.item-list.svelte-n5zzp2 {display:flex;flex-direction:column;gap:16px;&.collapsed {display:none;}}.item.svelte-n5zzp2 {flex:none;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.summary:where(.svelte-n5zzp2) {display:flex;align-items:center;gap:8px;padding:8px;&:empty {display:none;}}}`};function Ofe(e,t){let n=Bi();O(t,!0),K(e,Dfe);let r=()=>j(L3,`$entryDraft`,i),[i,a]=Kt(),o=(e,t=E,n=E)=>{var r=H(),i=I(r),a=e=>{{let r=e=>{var n=H();ia(I(n),17,()=>B(te)??[],({name:e,label:t})=>e,(e,n)=>{let r=()=>B(n).name,i=()=>B(n).label;{let n=M(()=>i()||r());Rd(e,{get label(){return B(n)},onclick:()=>ke({index:t(),type:r()})})}}),U(e,n)},i=M(()=>Y(`add_item_${n()}`));Rd(e,{get label(){return B(i)},get disabled(){return B(xe)},items:r,$$slots:{items:!0}})}},o=e=>{{let r=M(()=>Y(`add_item_${n()}`));Rd(e,{get label(){return B(r)},get disabled(){return B(xe)},onclick:()=>ke({index:t()})})}};G(i,e=>{B(ae)?e(a):e(o,-1)}),U(e,r)},{valueStoreKey:s=`currentValues`,parentComponentNames:c=[]}=bt(`field-editor`)??{},l=c.at(-1),u=M(()=>t.fieldConfig.name),d=M(()=>t.fieldConfig.label),f=M(()=>t.fieldConfig.i18n),p=M(()=>ce(t.fieldConfig.allow_add,!0)),m=M(()=>ce(t.fieldConfig.allow_remove,!0)),h=M(()=>ce(t.fieldConfig.allow_duplicate,!0)),g=M(()=>ce(t.fieldConfig.allow_reorder,!0)),v=M(()=>t.fieldConfig.collapsed),y=M(()=>t.fieldConfig.summary),b=M(()=>t.fieldConfig.thumbnail),x=M(()=>ce(t.fieldConfig.minimize_collapsed,!1)),S=M(()=>t.fieldConfig.label_singular),C=M(()=>ce(t.fieldConfig.max,1/0)),w=M(()=>ce(t.fieldConfig.add_to_top,!1)),T=M(()=>t.fieldConfig.field),ee=M(()=>t.fieldConfig.fields),te=M(()=>t.fieldConfig.types),ne=M(()=>ce(t.fieldConfig.typeKey,`type`)),re=M(()=>d8(t.fieldConfig)),ie=M(()=>B(re).hasSingleSubField),ae=M(()=>B(re).hasVariableTypes),oe=M(()=>RegExp(`^${rk(t.keyPath)}\\.(\\d+)(.*)?`)),se=M(()=>r()?.isIndexFile??!1),le=M(()=>r()?.collection),ue=M(()=>r()?.collectionName??``),de=M(()=>r()?.collectionFile),fe=M(()=>r()?.fileName),pe=M(()=>(B(de)??B(le))?._i18n??AB),me=M(()=>B(pe).defaultLocale),he=M(()=>t.locale!==B(me)&&B(f)===`duplicate`),ge=M(()=>A8(r(),t.locale,s)),_e=M(()=>`${t.keyPath}#`),ve=M(()=>r()?.expanderStates?._[B(_e)]??!0),ye=M(()=>TP(Object.fromEntries(Object.entries(B(ge)).filter(([e])=>B(oe).test(e)).map(([e,n])=>[`${B(u)}${e.slice(t.keyPath.length)}`,n])))[B(u)]??[]),be=M(()=>B(ye).map((e,n)=>{let i=`${t.keyPath}.${n}`;return[i,r()?.expanderStates?._[i]??!0]})),xe=M(()=>B(ye).length>=B(C)),Se=M(()=>t.locale===B(me)||(B(ae)?B(te)?.flatMap(({fields:e=[]})=>e)??[]:B(ee)??(B(T)?[B(T)]:[])).some(({i18n:e=!1})=>e===!0||e===`translate`)),Ce=M(()=>B(he)||!B(Se)),we=Yn([]),Te=N(void 0),Ee=()=>{Q5({[B(_e)]:B(x)===`auto`?!B(ye).length:!B(x),...Object.fromEntries(B(ye).map((e,n)=>{let r=`${t.keyPath}.${n}`;return[r,Z5({key:r,locale:t.locale,collapsed:B(v)})]}))})},De=e=>{Object.keys(r()?.[s]??{}).forEach(n=>{(B(f)===`duplicate`||n===t.locale)&&Y5({locale:n,valueStoreKey:s,keyPath:t.keyPath,manipulate:e})})},Oe=e=>B(Te)?.children[e],ke=async({index:e=B(w)?0:B(ye).length,dupIndex:n,type:r}={})=>{De(({valueList:i,expanderStateList:a})=>{let o=r?B(te)?.find(({name:e})=>e===r)?.fields??[]:B(ee)??(B(T)?[B(T)]:[]),s=(()=>{if(typeof n==`number`)return structuredClone(i[n]);let e=TP(K5({fields:o,locale:t.locale,defaultLocale:B(me)}));return B(ie)&&B(T)?e[B(T).name]:e})();r&&(s[B(ne)]=r),B(ie)||(s.__sc_item_id=crypto.randomUUID(),i.forEach((e,n)=>{_(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)})),i.splice(e,0,s),a.splice(e,0,!0)}),Q5({[B(_e)]:!0}),await Wc(50),Oe(e)?.scrollIntoView(),await Wc(100),B(Te)?.closest(`.content`)?.scrollBy({top:-50,behavior:`instant`}),Oe(e)?.querySelector(`button`)?.focus()},Ae=async e=>{De(({valueList:n,expanderStateList:r})=>{B(ie)||n.forEach((e,n)=>{_(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)}),n.splice(e,1),r.splice(e,1)}),await Wc(50),(Oe(e)??B(Te)?.closest(`[role="group"]`)?.querySelector(`button`))?.focus()},je=async(e,n)=>{De(({valueList:n,expanderStateList:r})=>{B(ie)||(n[e].__sc_item_id??=crypto.randomUUID(),n[e+1].__sc_item_id??=crypto.randomUUID(),n[e].__sc_item_original_key_path??=`${t.keyPath}.${e}`,n[e+1].__sc_item_original_key_path??=`${t.keyPath}.${e+1}`),[n[e],n[e+1]]=[n[e+1],n[e]],[r[e],r[e+1]]=[r[e+1],r[e]]}),await Wc(50),(Oe(n===`move-up`?e:e+1)?.querySelector(`button[data-action="${n}"]`))?.focus()},Me=(e,n)=>ele({collectionName:B(ue),fileName:B(fe),keyPath:t.keyPath,valueMap:B(ge),locale:t.locale,summaryTemplate:n,hasSingleSubField:B(ie),index:e,isIndexFile:B(se)}),Ne=async e=>{if(!B(b))return;let n=B(b).replace(/^fields\./,``),i=`${t.keyPath}.${e}`,a=B(ie)?i:`${i}.${n}`,o=B(ge)[a];if(!o)return;let s=cW({collectionName:B(ue),fileName:B(fe),valueMap:B(ge),keyPath:a,isIndexFile:B(se)});if(!(s?.widget!==`image`||B(ie)&&s.name!==n))return xU({value:o,entry:r()?.originalEntry,collectionName:B(ue),fileName:B(fe),componentName:l,typedKeyPath:B(ie)?`${t.typedKeyPath}.*`:`${t.typedKeyPath}.*.${n}`})},Pe=async()=>{B(b)&&(we.length=B(ye).length,B(ye).forEach(async(e,t)=>{let n=await Ne(t);we[t]!==n&&(we[t]=n)}))},Fe=({itemKeyPath:e,type:t})=>{let n=t?`The “${t}” type is not defined for the list field.`:`The type key is not found in the list item. The item must include the “${B(ne)}” property with one of the defined types: ${B(te).map(e=>e.name).join(`, `)}`;console.warn(`List item ${e}: ${n}`)};R(()=>{B(ye),pi(()=>{Pe()})}),fo(()=>{Ee()});var Ie=Efe(),Le=I(Ie),Re=F(Le),ze=F(Re);{let e=e=>{R5(e,{get expanded(){return B(ve)}})},t=M(()=>!B(ye).length),r=M(()=>B(ve)?Y(`collapse`):Y(`expand`));Tl(ze,{iconic:!0,get disabled(){return B(t)},get"aria-label"(){return B(r)},get"aria-expanded"(){return B(ve)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{Q5({[B(_e)]:!B(ve)})},startIcon:e,$$slots:{startIcon:!0}})}var Be=L(ze,2),Ve=F(Be);D(Be),D(Re);var He=L(Re,2),Ue=F(He),We=e=>{z5(e,{get disabled(){return B(Ce)},get fieldConfig(){return t.fieldConfig},get items(){return B(ye)},addItem:ke})};G(Ue,e=>{B(p)&&(B(w)||!B(ye).length||!B(ve))&&e(We)});var Ge=L(Ue,2),Ke=e=>{var t=t7(),n=I(t);{let e=M(()=>Y(`expand_all`)),t=M(()=>B(be).every(([,e])=>e));Tl(n,{variant:`tertiary`,size:`small`,get label(){return B(e)},get disabled(){return B(t)},onclick:()=>{Q5(Object.fromEntries(B(be).map(([e])=>[e,!0])))}})}var r=L(n,2);{let e=M(()=>Y(`collapse_all`)),t=M(()=>B(be).every(([,e])=>!e));Tl(r,{variant:`tertiary`,size:`small`,get label(){return B(e)},get disabled(){return B(t)},onclick:()=>{Q5(Object.fromEntries(B(be).map(([e])=>[e,!1])))}})}U(e,t)};G(Ge,e=>{B(ve)&&B(ye).length>1&&e(Ke)}),D(He),D(Le);var qe=L(Le,2);let Je;ia(qe,23,()=>B(ye),(e,t)=>_(e)?e.__sc_item_id??t:t,(e,i,a)=>{$j(e,{children:(e,s)=>{let c=M(()=>`${t.keyPath}.${B(a)}`),l=M(()=>B(ae)?B(i)[B(ne)]:void 0),u=M(()=>B(l)?B(te)?.find(({name:e})=>e===B(l)):void 0);var d=H(),f=I(d),_=e=>{var t=Sfe(),n=I(t);xo(n,{status:`warning`,children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>Y(`unknown_variable_type`)]),U(e,n)},$$slots:{default:!0}});var r=L(n);z(e=>W(r,` ${e??``}`),[()=>Fe({itemKeyPath:B(c),type:B(l)})]),U(e,t)},v=e=>{let i=M(()=>r()?.expanderStates?._[B(c)]??!0),s=M(()=>B(ae)?B(u)?.fields??[]:B(ee)??(B(T)?[B(T)]:[])),d=M(()=>B(ae)&&B(u)?.summary||B(y));var f=wfe(),_=F(f);{let e=e=>{var t=H(),n=I(t),r=e=>{var t=n7(),n=I(t);{let e=e=>{_o(e,{name:`arrow_upward`})},t=M(()=>B(he)||B(a)===0),r=M(()=>Y(`move_up`));Tl(n,{size:`small`,iconic:!0,get disabled(){return B(t)},get"aria-label"(){return B(r)},"data-action":`move-up`,onclick:()=>je(B(a)-1,`move-up`),startIcon:e,$$slots:{startIcon:!0}})}var r=L(n,2);bu(r,{});var i=L(r,2);{let e=e=>{_o(e,{name:`arrow_downward`})},t=M(()=>B(he)||B(a)===B(ye).length-1),n=M(()=>Y(`move_down`));Tl(i,{iconic:!0,size:`small`,get disabled(){return B(t)},get"aria-label"(){return B(n)},"data-action":`move-down`,onclick:()=>je(B(a),`move-down`),startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(n,e=>{B(g)&&e(r)}),U(e,t)},t=e=>{var t=t7(),n=I(t),r=e=>{{let t=e=>{{let t=M(()=>Y(`list_item_options`));Md(e,{get"aria-label"(){return B(t)},children:(e,t)=>{var n=n7(),r=I(n),i=e=>{{let t=M(()=>Y(`duplicate`));Rd(e,{get label(){return B(t)},get disabled(){return B(xe)},onclick:()=>ke({index:B(a)+1,dupIndex:B(a)})})}};G(r,e=>{B(h)&&e(i)});var s=L(r,2);o(s,()=>B(a),()=>`above`);var c=L(s,2);o(c,()=>B(a)+1,()=>`below`),U(e,n)},$$slots:{default:!0}})}},n=M(()=>Y(`list_item_options`));cu(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return B(n)},get disabled(){return B(Ce)},popup:t,$$slots:{popup:!0}})}};G(n,e=>{B(p)&&e(r)});var i=L(n,2),s=e=>{{let t=e=>{_o(e,{name:`close`})},n=M(()=>Y(`remove`));Tl(e,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return B(n)},onclick:()=>Ae(B(a)),startIcon:t,$$slots:{startIcon:!0}})}};G(i,e=>{B(m)&&e(s)}),U(e,t)},r=M(()=>B(ae)?B(u)?.label||B(u)?.name:``),l=M(()=>B(s).length?()=>Q5({[B(c)]:!B(i)}):void 0);B5(_,{get label(){return B(r)},get controlId(){return`list-${n}-item-${B(a)??``}-body`},get expanded(){return B(i)},get toggleExpanded(){return B(l)},centerContent:e,endContent:t,$$slots:{centerContent:!0,endContent:!0}})}var v=L(_,2),b=F(v),x=e=>{var n=H();ia(I(n),17,()=>B(s),e=>e.name,(e,n)=>{$j(e,{children:(e,r)=>{{let r=M(()=>B(ie)?B(c):`${B(c)}.${B(n).name}`),i=M(()=>B(ae)?`${t.typedKeyPath}.*<${B(l)}>.${B(n).name}`:`${t.typedKeyPath}.*.${B(n).name}`),a=M(()=>B(ie)?`single-subfield-list-field`:void 0);V7(e,{get keyPath(){return B(r)},get typedKeyPath(){return B(i)},get locale(){return t.locale},get fieldConfig(){return B(n)},get context(){return B(a)}})}},$$slots:{default:!0}})}),U(e,n)},S=e=>{var t=Cfe(),n=F(t),r=e=>{J3(e,{get src(){return we[B(a)]},variant:`icon`,cover:!0})};G(n,e=>{we[B(a)]&&e(r)});var i=L(n,2);{let e=M(()=>QW.isSmallScreen?2:1);Uc(i,{get lines(){return B(e)},children:(e,t)=>{lt();var n=zi();z(e=>W(n,e),[()=>Me(B(a),B(d))]),U(e,n)},$$slots:{default:!0}})}D(t),U(e,t)};G(b,e=>{B(i)?e(x):e(S,-1)}),D(v),D(f),z(()=>q(v,`id`,`list-${n}-item-${B(a)??``}-body`)),U(e,f)};G(f,e=>{B(ae)&&!B(u)?e(_):e(v,-1)}),U(e,d)},$$slots:{default:!0}})}),D(qe),oo(qe,e=>P(Te,e),()=>B(Te));var Ye=L(qe,2),Xe=e=>{var n=Tfe(),r=F(n);bu(r,{flex:!0}),z5(L(r,2),{get disabled(){return B(Ce)},get fieldConfig(){return t.fieldConfig},get items(){return B(ye)},addItem:ke}),D(n),U(e,n)};G(Ye,e=>{B(p)&&!B(w)&&B(ye).length&&B(ve)&&e(Xe)}),z(()=>{q(Be,`id`,`object-${n}-summary`),W(Ve,`${B(ye).length??``}
|
|
1001
|
+
${((B(ye).length===1?B(S):void 0)||B(d)||B(u))??``}`),q(qe,`id`,`list-${n}-item-list`),Je=Fa(qe,1,`item-list svelte-n5zzp2`,null,Je,{collapsed:!B(ve)})}),U(e,Ie),k(),a()}function kfe(e,t){O(t,!0);let{valueStoreKey:n=`currentValues`}=bt(`field-editor`)??{},r=J(t,`currentValue`,7),i=J(t,`required`,3,!0),a=J(t,`readonly`,3,!1),o=J(t,`invalid`,3,!1),s=N(!1),c=N(``),l=M(()=>t.fieldConfig.i18n),u=()=>{P(c,r()?.join(`
|
|
1002
1002
|
`)??``,!0)},d=(e=B(c).split(/\n/g))=>{I8({valueStoreKey:n,locale:t.locale,keyPath:t.keyPath,i18n:B(l),value:e})},f=()=>{r(B(c).split(/\n/g).map(e=>e.trim()).filter(e=>!!e)),d(r())};fo(()=>{P(s,!0)}),R(()=>{B(s)&&(r(),pi(()=>{u()}))});{let n=M(()=>hB(t.locale));cj(e,{get dir(){return B(n)},autoResize:!0,flex:!0,get readonly(){return a()},get required(){return i()},get invalid(){return o()},get"aria-errormessage"(){return`${t.fieldId??``}-error`},oninput:()=>{d()},onblur:()=>{f()},get value(){return B(c)},set value(e){P(c,e,!0)}})}k()}var Afe=new Set([`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);function jfe(e,t){let n=Bi();O(t,!0);let r=co(t,Afe);Xj(e,{get"aria-labelledby"(){return`list-${n}-summary`},children:(e,n)=>{var i=H(),a=I(i),o=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));Ofe(e,uo(()=>B(n)))}},s=M(()=>d8(t.fieldConfig).hasSubFields),c=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));kfe(e,uo(()=>B(n)))}};G(a,e=>{B(s)?e(o):e(c,-1)}),U(e,i)},$$slots:{default:!0}}),k()}var Mfe=V(`<div role="none" class="header svelte-ygwzbn"> </div>`),Nfe=V(`<div role="group" class="subsection svelte-ygwzbn"><!> <div role="none" class="items svelte-ygwzbn"><!></div></div>`),Pfe={hash:`svelte-ygwzbn`,code:`.subsection.svelte-ygwzbn {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}}.header.svelte-ygwzbn {display:flex;align-items:center;height:24px;padding-inline:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-border-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);}.items.svelte-ygwzbn {padding:8px 16px;&:empty {display:none;}}`};function r7(e,t){let n=Bi();K(e,Pfe);let r=`${n}-header`;var i=Nfe(),a=F(i),o=e=>{var n=Mfe(),i=F(n,!0);D(n),z(()=>{q(n,`id`,r),W(i,t.label)}),U(e,n)};G(a,e=>{t.label&&e(o)});var s=L(a,2);da(F(s),()=>t.children??E),D(s),D(i),z(()=>q(i,`aria-labelledby`,t.label?r:void 0)),U(e,i)}var Ffe=V(`<h4 class="svelte-s650n2"> </h4>`),Ife=V(`<section role="group" tabindex="0" class="svelte-s650n2"><!> <!></section>`),Lfe={hash:`svelte-s650n2`,code:`[role='document'] section.svelte-s650n2 {overflow:hidden;
|
|
1003
1003
|
/* Don’t set margin here because it makes scroll sync bumpy */padding:12px 0;h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);&:not(:last-child) {margin-bottom:8px;}}& > * {margin-inline:auto;max-width:768px;}p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}img {max-height:800px !important;}.sui.alert {margin-block:16px;}}
|
|
1004
1004
|
|