(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),d,f,p=s((()=>{d=e=>typeof e==`object`&&!!e&&!Array.isArray(e),f=e=>JSON.parse(JSON.stringify(e))})),m=c((e=>{
/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function te(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(te(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function se(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ce(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var le=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ue={map:se,forEach:function(e,t,n){se(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return se(e,function(){t++}),t},toArray:function(e){return se(e,function(e){return e})||[]},only:function(e){if(!te(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ue,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=te,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ce}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,le)}catch(e){le(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),h=c(((e,t)=>{t.exports=m()})),g=c(((e,t)=>{
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
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}})),_=c(((e,t)=>{var n=g(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=g(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),v=c(((e,t)=>{var n=h(),r=_();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)})),y=s((()=>{})),b=s((()=>{})),x=s((()=>{y(),b()}));function S(e){return typeof e==`function`}function C(e){return typeof e?.then==`function`}function w(e){for(var t=0;t<e.length;t++)e[t]()}function T(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function E(e,t,n=!1){return e===void 0?n?t():t:e}function ee(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var te,ne,re,ie,ae,oe,se,ce,le,ue,de,D,fe=s((()=>{te=Array.isArray,ne=Array.prototype.indexOf,re=Array.prototype.includes,ie=Array.from,ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,se=Object.getOwnPropertyDescriptors,ce=Object.prototype,le=Array.prototype,ue=Object.getPrototypeOf,de=Object.isExtensible,D=()=>{}})),pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be=s((()=>{pe=1<<24,me=1024,he=2048,ge=4096,_e=8192,ve=16384,ye=32768,be=1<<25,xe=65536,Se=1<<18,Ce=1<<19,we=1<<20,Te=1<<25,Ee=65536,De=1<<21,Oe=1<<22,ke=1<<23,Ae=Symbol(`$state`),je=Symbol(`legacy props`),Me=Symbol(``),Ne=Symbol(`attributes`),Pe=Symbol(`class`),Fe=Symbol(`style`),Ie=Symbol(`text`),Le=Symbol(`form reset`),Re=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ze=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)}));function Ve(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}var He=s((()=>{x()}));function Ue(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function We(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ge(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ke(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function qe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Je(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ye(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Xe(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ze(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Qe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function $e(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function et(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var tt=s((()=>{x(),He()})),nt,rt,it,at,ot,st=s((()=>{nt={},rt=Symbol(`uninitialized`),it=`http://www.w3.org/1999/xhtml`,at=`http://www.w3.org/2000/svg`,ot=`http://www.w3.org/1998/Math/MathML`}));function ct(){console.warn(`https://svelte.dev/e/derived_inert`)}function lt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ut(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function dt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var ft=s((()=>{x()}));function pt(e){yt=e}function mt(e){if(e===null)throw lt(),nt;return bt=e}function ht(){return mt(Vr(bt))}function O(e){if(yt){if(Vr(bt)!==null)throw lt(),nt;bt=e}}function gt(e=1){if(yt){for(var t=e,n=bt;t--;)n=Vr(n);bt=n}}function _t(e=!0){for(var t=0,n=bt;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Vr(n);e&&n.remove(),n=i}}function vt(e){if(!e||e.nodeType!==8)throw lt(),nt;return e.data}var yt,bt,xt=s((()=>{Be(),st(),ft(),Zr(),yt=!1}));function St(e){return e===this.v}function Ct(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function wt(e){return!Ct(e,this.v)}var Tt=s((()=>{})),Et,Dt,Ot=s((()=>{Et=!1,Dt=!1})),kt=s((()=>{x()}));function At(e,t=!1,n=!1){return jt(e,new Map,``,Mt,null,n)}function jt(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(te(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=jt(l,t,n,r,null,a))}return s}if(ue(e)===ce){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=jt(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return jt(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var Mt,Nt=s((()=>{x(),kt(),fe(),Mt=[]})),Pt=s((()=>{Nt(),Be(),Ei(),ia()})),Ft=s((()=>{x(),fe(),He()}));function It(e){Ht=e}function Lt(e){return Bt(`getContext`).get(e)}function Rt(e,t){let n=Bt(`setContext`);if(Et){var r=Xi.f;!Ji&&r&32&&!Ht.i||Xe()}return n.set(e,t),t}function k(e,t=!1,n){Ht={p:Ht,i:!1,c:null,e:null,s:e,x:null,r:Xi,l:Dt&&!t?{s:null,u:null,$:[]}:null}}function A(e){var t=Ht,n=t.e;if(n!==null){t.e=null;for(var r of n)ii(r)}return e!==void 0&&(t.x=e),t.i=!0,Ht=t.p,e??{}}function zt(){return!Dt||Ht!==null&&Ht.l===null}function Bt(e){return Ht===null&&Ve(e),Ht.c??=new Map(Vt(Ht)||void 0)}function Vt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ht,Ut=s((()=>{x(),tt(),ia(),Ei(),Ot(),Be(),Ht=null}));function Wt(){var e=qt;qt=[],w(e)}function Gt(e){if(qt.length===0&&!mr){var t=qt;queueMicrotask(()=>{t===qt&&Wt()})}qt.push(e)}function Kt(){for(;qt.length>0;)Wt()}var qt,Jt=s((()=>{fe(),Sr(),qt=[]}));function Yt(e){var t=Xi;if(t===null)return Ji.f|=ke,e;if(!(t.f&32768)&&!(t.f&4))throw e;Xt(e,t)}function Xt(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 Zt=s((()=>{x(),st(),Zr(),Be(),fe(),ia()}));function Qt(e,t){e.f=e.f&en|t}function $t(e){e.f&512||e.deps===null?Qt(e,me):Qt(e,ge)}var en,tn=s((()=>{Be(),en=~(he|ge|me)}));function nn(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=Ee,nn(t.deps))}function rn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nn(e.deps),Qt(e,me)}var an=s((()=>{Be(),tn()}));function on(e,t,n){if(e==null)return t(void 0),n&&n(void 0),D;let r=Gi(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var sn=s((()=>{ia(),fe()}));function cn(e,t){return{subscribe:ln(e,t).subscribe}}function ln(e,t=D){let n=null,r=new Set;function i(t){if(Ct(e,t)&&(e=t,n)){let t=!fn.length;for(let t of r)t[1](),fn.push(t,e);if(t){for(let e=0;e<fn.length;e+=2)fn[e][0](fn[e+1]);fn.length=0}}}function a(t){i(t(e))}function o(o,s=D){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||D),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function un(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return cn(n,(e,n)=>{let o=!1,s=[],c=0,l=D,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:D},d=i.map((e,t)=>on(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){w(d),l(),o=!1}})}function dn(e){let t;return on(e,e=>t=e)(),t}var fn,pn=s((()=>{fe(),Tt(),sn(),fn=[]}));function j(e,t,n){let r=n[t]??={store:null,source:wr(void 0),unsubscribe:D};if(r.store!==e&&!(Sn in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=D;else{var i=!0;r.unsubscribe=on(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}return e&&Sn in n?dn(e):z(r.source)}function mn(e,t){return gn(e,t),t}function hn(){let e={};function t(){ni(()=>{for(var t in e)e[t].unsubscribe();ae(e,Sn,{enumerable:!1,value:!0})})}return[e,t]}function gn(e,t){bn=!0;try{e.set(t)}finally{bn=!1}}function _n(e,t,n){return gn(e,n),t}function vn(){xn=!0}function yn(e){var t=xn;try{return xn=!1,[e(),xn]}finally{xn=t}}var bn,xn,Sn,Cn=s((()=>{sn(),pn(),fe(),ia(),Ei(),Mr(),x(),bn=!1,xn=!1,Sn=Symbol(`unmounted`)})),wn=s((()=>{Be(),Nt(),ia()}));function Tn(e,t){if(t){let t=document.body;e.autofocus=!0,Gt(()=>{document.activeElement===t&&e.focus()})}}function En(e){yt&&Br(e)!==null&&Hr(e)}function Dn(){On||(On=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Le]?.()})},{capture:!0}))}var On,kn=s((()=>{xt(),Zr(),Jt(),Be(),On=!1}));function An(e){var t=Ji,n=Xi;Ai(null),ji(null);try{return e()}finally{Ai(t),ji(n)}}function jn(e,t,n,r=n){e.addEventListener(t,()=>An(n));let i=e[Le];i?e[Le]=()=>{i(),r(!0)}:e[Le]=()=>r(!0),Dn()}var Mn=s((()=>{Ei(),ia(),Be(),kn()}));function Nn(e){let t=0,n=Cr(0),r;return()=>{ti()&&(z(n),ui(()=>(t===0&&(r=Gi(()=>e(()=>Dr(n)))),t+=1,()=>{Gt(()=>{--t,t===0&&(r?.(),r=void 0,Dr(n))})})))}}var Pn=s((()=>{ia(),Ei(),Mr(),Pt(),x(),Jt()}));function Fn(e,t,n,r){new Ln(e,t,n,r)}var In,Ln,Rn=s((()=>{Be(),st(),Ut(),Zt(),Ei(),ia(),xt(),Jt(),tt(),ft(),x(),Sr(),Mr(),Pt(),Pn(),Zr(),an(),In=xe|Ce,Ln=class{parent;is_pending=!1;transform_error;#e;#t=yt?bt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Nn(()=>(this.#m=Cr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Xi;t.b=this,t.f|=128,n(e)},this.parent=Xi.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=fi(()=>{if(yt){let e=this.#t;ht();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},In),yt&&(this.#e=bt)}#g(){try{this.#a=mi(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=mi(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=mi(()=>e(this.#e)),Gt(()=>{var e=this.#c=document.createDocumentFragment(),t=zr();e.append(t),this.#a=this.#x(()=>mi(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,xi(this.#o,()=>{this.#o=null}),this.#b(ur))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=mi(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Ti(this.#a,e);let t=this.#n.pending;this.#o=mi(()=>t(this.#e))}else this.#b(ur)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=Xi,n=Ji,r=Ht;ji(this.#i),Ai(this.#i),It(this.#i.ctx);try{return br.ensure(),e()}catch(e){return Yt(e),null}finally{ji(t),Ai(n),It(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&xi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Gt(()=>{this.#d=!1,this.#m&&Tr(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;ur?.is_fork?(this.#a&&ur.skip_effect(this.#a),this.#o&&ur.skip_effect(this.#o),this.#s&&ur.skip_effect(this.#s),ur.oncommit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(vi(this.#a),null),this.#o&&=(vi(this.#o),null),this.#s&&=(vi(this.#s),null),yt&&(mt(this.#t),gt(),mt(_t()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){dt();return}r=!0,i&&et(),this.#s!==null&&xi(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Xt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return mi(()=>{var t=Xi;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Xt(e,this.#i.parent),null}}))};Gt(()=>{var t;try{t=this.transform_error(e)}catch(e){Xt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Xt(e,this.#i&&this.#i.parent)):o(t)})}}}));function zn(e,t,n,r){let i=zt()?Wn:Kn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=Xi,c=Bn(),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){Xt(e,s)}Vn()}}var d=Hn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Gn(e))).then(u).catch(e=>Xt(e,s)).finally(d)}l?l.then(()=>{c(),f(),Vn()}):f()}function Bn(){var e=Xi,t=Ji,n=Ht,r=ur;return function(i=!0){ji(e),Ai(t),It(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Vn(e=!0){ji(null),Ai(null),It(null),e&&ur?.deactivate()}function Hn(){var e=Xi,t=e.b,n=ur,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}var Un=s((()=>{Be(),x(),Ut(),Rn(),Zt(),ia(),Sr(),$n(),Ei(),Jt()}));function Wn(e){var t=2|he;return Xi!==null&&(Xi.f|=Ce),{ctx:Ht,deps:null,effects:null,equals:St,f:t,fn:e,reactions:null,rv:0,v:rt,wv:0,parent:Xi,ac:null}}function Gn(e,t,n){let r=Xi;r===null&&Ue();var i=void 0,a=Cr(rt),o=!Ji,s=new Set;return li(()=>{var t=Xi,n=T();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Re&&n.reject(e)}).finally(Vn)}catch(e){n.reject(e),Vn()}var c=ur;if(o){if(t.f&32768)var l=Hn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Qn);else for(let e of s.values())e.reject(Qn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Qn&&(c.activate(),t?(a.f|=ke,Tr(a,t)):(a.f&8388608&&(a.f^=ke),Tr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),ni(()=>{for(let e of s)e.reject(Qn)}),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=Wn(e);return Et||Mi(t),t}function Kn(e){let t=Wn(e);return t.equals=wt,t}function qn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)vi(t[n])}}function Jn(e){var t,n=Xi,r=e.parent;if(!qi&&r!==null&&e.v!==rt&&r.f&24576)return ct(),e.v;ji(r);try{e.f&=~Ee,qn(e),t=Ri(e)}finally{ji(n)}return t}function Yn(e){var t=Jn(e);if(!e.equals(t)&&(e.wv=Fi(),(!ur?.is_fork||e.deps===null)&&(ur===null?e.v=t:(ur.capture(e,t,!0),dr?.capture(e,t,!0)),e.deps===null))){Qt(e,me);return}qi||(fr===null?$t(e):(ti()||ur?.is_fork)&&fr.set(e,t))}function Xn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&An(()=>{t.ac.abort(Re),t.ac=null}),t.fn!==null&&(t.teardown=D),Bi(t,0),gi(t))}function Zn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Vi(t)}var Qn,$n=s((()=>{x(),Be(),ia(),Mn(),Tt(),tt(),ft(),Ei(),Mr(),Ft(),Ot(),Ut(),st(),Sr(),Un(),fe(),tn(),Qn=Symbol(`obsolete`)}));function er(e){var t=mr;mr=!0;try{var n;for(e&&(ur!==null&&!ur.is_fork&&ur.flush(),n=e());;){if(Kt(),ur===null)return n;ur.flush()}}finally{mr=t}}function tr(){try{Je()}catch(e){Xt(e,pr)}}function nr(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ii(r)&&(xr=new Set,Vi(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&bi(r),xr?.size>0)){Ar.clear();for(let e of xr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)xr.has(n)&&(xr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vi(n)}}xr.clear()}}xr=null}}function rr(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?rr(i,t,n,r):e&4194320&&!(e&2048)&&ir(i,t,r)&&(Qt(i,he),ar(i))}}function ir(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(re.call(t,r))return!0;if(r.f&2&&ir(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function ar(e){ur.schedule(e)}function or(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Qt(e,me);for(var n=e.first;n!==null;)or(n,t),n=n.next}}function sr(e){Qt(e,me);for(var t=e.first;t!==null;)sr(t),t=t.next}var cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr=s((()=>{Be(),Ot(),fe(),ia(),tt(),Jt(),x(),Zt(),Mr(),Ei(),an(),st(),tn(),Cn(),Ft(),wn(),$n(),cr=null,lr=null,ur=null,dr=null,fr=null,pr=null,mr=!1,hr=!1,gr=null,_r=null,vr=0,yr=1,br=class e{id=yr++;#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(){lr===null?cr=lr=this:(lr.#n=this,this.#t=lr),lr=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)Qt(r,he),t(r);for(r of n.m)Qt(r,ge),t(r)}this.#p.add(e)}#g(){this.#e=!0,vr++>1e3&&(this.#S(),tr());for(let e of this.#u)this.#d.delete(e),Qt(e,he),this.schedule(e);for(let e of this.#d)Qt(e,ge),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=gr=[],r=[],i=_r=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw sr(e),this.#h()||this.discard(),t}if(ur=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(gr=null,_r=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)or(e,t);i.length>0&&ur.#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(),dr=this,nr(r),nr(n),dr=null,this.#s?.resolve();var s=ur;if(this.#a===0&&(this.#c.length===0||s!==null)&&(this.#S(),Et&&(this.#x(),ur=s)),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^=me;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=me:i&4?t.push(r):Et&&i&16777224?n.push(r):Ii(r)&&(i&16&&this.#d.add(r),Vi(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),Qt(i,he),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),ur=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)rn(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==rt&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),fr?.set(e,t)),this.is_fork||(e.v=t)}activate(){ur=this}deactivate(){ur=null,fr=null}flush(){try{hr=!0,ur=this,this.#g()}finally{vr=0,pr=null,gr=null,_r=null,hr=!1,ur=null,fr=null,Ar.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(Qn);this.#S(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}#x(){for(let u=cr;u!==null;u=u.#n){var e=u.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(e&&i!==n)u.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=u.async_deriveds.get(e);n&&t.promise.then(n.resolve).catch(n.reject)}var r=[...u.current.keys()].filter(e=>!u.current.get(e)[1]);if(!(!u.#e||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of this.#p)u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):u.#b([e])});u.activate();var a=new Set,o=new Map;for(var s of t)rr(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return!n||n[0]!==t[0]||n[1]!==t[1]}).map(([e])=>e);if(c.length>0)for(let e of this.#l)!(e.f&155648)&&ir(e,c,o)&&(e.f&4194320?(Qt(e,he),u.schedule(e)):u.#u.add(e));if(u.#c.length>0&&!u.#m){u.apply();for(var l of u.#c)u.#_(l,[],[]);u.#c=[]}u.deactivate()}}}}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,Gt(()=>{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??=T()).promise}static ensure(){if(ur===null){let t=ur=new e;!hr&&!mr&&Gt(()=>{t.#e||t.flush()})}return ur}apply(){if(!Et||!this.is_fork&&this.#t===null&&this.#n===null){fr=null;return}fr=new Map;for(let[e,[t]]of this.current)fr.set(e,t);for(let t=cr;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)fr.has(e)||fr.set(e,n)}}schedule(e){if(pr=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(gr!==null&&t===Xi&&(Et||(Ji===null||!(Ji.f&2))&&!bn))return;if(n&96){if(!(n&1024))return;t.f^=me}}this.#c.push(t)}#S(){if(this.linked){var e=this.#t,t=this.#n;e===null?cr=t:e.#n=t,t===null?lr=e:t.#t=e,this.linked=!1}}},xr=null}));function Cr(e,t){return{f:0,v:e,reactions:null,equals:St,rv:0,wv:0}}function N(e,t){let n=Cr(e,t);return Mi(n),n}function wr(e,t=!1,n=!0){let r=Cr(e);return t||(r.equals=wt),Dt&&n&&Ht!==null&&Ht.l!==null&&(Ht.l.s??=[]).push(r),r}function P(e,t,n=!1){return Ji!==null&&(!Yi||Ji.f&131072)&&zt()&&Ji.f&4325394&&(Zi===null||!Zi.has(e))&&$e(),Tr(e,n?Nr(t):t,_r)}function Tr(e,t,n=null){if(!e.equals(t)){Ar.set(e,qi?t:e.v);var r=br.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Jn(t),fr===null&&$t(t)}e.wv=Fi(),Or(e,he,n),zt()&&Xi!==null&&Xi.f&1024&&!(Xi.f&96)&&(ea===null?Ni([e]):ea.push(e)),!r.is_fork&&kr.size>0&&!jr&&Er()}return t}function Er(){jr=!1;for(let e of kr){e.f&1024&&Qt(e,ge);let t;try{t=Ii(e)}catch{t=!0}t&&Vi(e)}kr.clear()}function Dr(e){P(e,e.v+1)}function Or(e,t,n){var r=e.reactions;if(r!==null)for(var i=zt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Xi)){var l=(c&he)===0;if(l&&Qt(s,t),c&131072)kr.add(s);else if(c&2){var u=s;fr?.delete(u),c&65536||(c&512&&(Xi===null||!(Xi.f&2097152))&&(s.f|=Ee),Or(u,ge,n))}else if(l){var d=s;c&16&&xr!==null&&xr.add(d),n===null?ar(d):n.push(d)}}}}var kr,Ar,jr,Mr=s((()=>{x(),ia(),Tt(),Be(),tt(),Ot(),Pt(),Ft(),Ut(),Sr(),Ir(),$n(),tn(),kr=new Set,Ar=new Map,jr=!1}));function Nr(e){if(typeof e!=`object`||!e||Ae in e)return e;let t=ue(e);if(t!==ce&&t!==le)return e;var n=new Map,r=te(e),i=N(0),a=null,o=ra,s=e=>{if(ra===o)return e();var t=Ji,n=ra;Ai(null),Pi(o);var r=e();return Ai(t),Pi(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ze();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(rt,a));n.set(t,e),Dr(i)}}else P(r,rt),Dr(i);return!0},get(t,r,i){if(r===Ae)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||oe(t,r)?.writable)&&(o=s(()=>N(Nr(c?t[r]:rt),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===rt?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==rt)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Ae)return!0;var r=n.get(t),i=r!==void 0&&r.v!==rt||Reflect.has(e,t);return(r!==void 0||Xi!==null&&(!i||oe(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Nr(e[t]):rt,a)),n.set(t,r)),z(r)===rt)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>N(rt,a)),n.set(d+``,f)):P(f,rt)}if(l===void 0)(!u||oe(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Nr(o)),n.set(t,l));else{u=l.v!==rt;var p=s(()=>Nr(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)}Dr(i)}return!0},ownKeys(e){z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==rt});for(var[r,a]of n)a.v!==rt&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Qe()}})}function Pr(e){try{if(typeof e==`object`&&e&&Ae in e)return e[Ae]}catch{}return e}function Fr(e,t){return Object.is(Pr(e),Pr(t))}var Ir=s((()=>{x(),ia(),fe(),Mr(),Be(),st(),tt(),Pt(),Ft(),Ot()})),Lr=s((()=>{ft(),Ir()}));function Rr(){if(Kr===void 0){Kr=window,qr=document,Jr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yr=oe(t,`firstChild`).get,Xr=oe(t,`nextSibling`).get,de(e)&&(e[Pe]=void 0,e[Ne]=null,e[Fe]=void 0,e.__e=void 0),de(n)&&(n[Ie]=void 0)}}function zr(e=``){return document.createTextNode(e)}function Br(e){return Yr.call(e)}function Vr(e){return Xr.call(e)}function F(e,t){if(!yt)return Br(e);var n=Br(bt);if(n===null)n=bt.appendChild(zr());else if(t&&n.nodeType!==3){var r=zr();return n?.before(r),mt(r),r}return t&&Gr(n),mt(n),n}function I(e,t=!1){if(!yt){var n=Br(e);return n instanceof Comment&&n.data===``?Vr(n):n}if(t){if(bt?.nodeType!==3){var r=zr();return bt?.before(r),mt(r),r}Gr(bt)}return bt}function L(e,t=1,n=!1){let r=yt?bt:e;for(var i;t--;)i=r,r=Vr(r);if(!yt)return r;if(n){if(r?.nodeType!==3){var a=zr();return r===null?i?.after(a):r.before(a),mt(a),a}Gr(r)}return mt(r),r}function Hr(e){e.textContent=``}function Ur(){return!Et||xr!==null?!1:(Xi.f&ye)!==0}function Wr(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 Gr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Kr,qr,Jr,Yr,Xr,Zr=s((()=>{xt(),x(),Lr(),fe(),ia(),Ot(),Be(),Sr(),st()}));function Qr(e){Xi===null&&(Ji===null&&qe(e),Ke()),qi&&Ge(e)}function $r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ei(e,t){var n=Xi;n!==null&&n.f&8192&&(e|=_e);var r={ctx:Ht,deps:null,nodes:null,f:e|he|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};ur?.register_created_effect(r);var i=r;if(e&4)gr===null?br.ensure().schedule(r):gr.push(r);else if(t!==null){try{Vi(r)}catch(e){throw vi(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=xe))}if(i!==null&&(i.parent=n,n!==null&&$r(i,n),Ji!==null&&Ji.f&2&&!(e&64))){var a=Ji;(a.effects??=[]).push(i)}return r}function ti(){return Ji!==null&&!Yi}function ni(e){let t=ei(8,null);return Qt(t,me),t.teardown=e,t}function ri(e){Qr(`$effect`);var t=Xi.f;if(!Ji&&t&32&&Ht!==null&&!Ht.i){var n=Ht;(n.e??=[]).push(e)}else return ii(e)}function ii(e){return ei(4|we,e)}function ai(e){return Qr(`$effect.pre`),ei(8|we,e)}function oi(e){br.ensure();let t=ei(64|Ce,e);return()=>{vi(t)}}function si(e){br.ensure();let t=ei(64|Ce,e);return(e={})=>new Promise(n=>{e.outro?xi(t,()=>{vi(t),n(void 0)}):(vi(t),n(void 0))})}function ci(e){return ei(4,e)}function li(e){return ei(Oe|Ce,e)}function ui(e,t=0){return ei(8|t,e)}function R(e,t=[],n=[],r=[]){zn(r,t,n,t=>{ei(8,()=>{e(...t.map(z))})})}function di(e,t=[],n=[],r=[]){zn(r,t,n,t=>{ei(4,()=>e(...t.map(z)))})}function fi(e,t=0){return ei(16|t,e)}function pi(e,t=0){return ei(pe|t,e)}function mi(e){return ei(32|Ce,e)}function hi(e){var t=e.teardown;if(t!==null){let e=qi,n=Ji;ki(!0),Ai(null);try{t.call(null)}finally{ki(e),Ai(n)}}}function gi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&An(()=>{e.abort(Re)});var r=n.next;n.f&64?n.parent=null:vi(n,t),n=r}}function _i(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||vi(t),t=n}}function vi(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(yi(e.nodes.start,e.nodes.end),n=!0),e.f|=be,gi(e,t&&!n),Bi(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hi(e),e.f^=be,e.f|=ve;var i=e.parent;i!==null&&i.first!==null&&bi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function yi(e,t){for(;e!==null;){var n=e===t?null:Vr(e);e.remove(),e=n}}function bi(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 xi(e,t,n=!0){var r=[];Si(e,r,!0);var i=()=>{n&&vi(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Si(e,t,n){if(!(e.f&8192)){e.f^=_e;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Si(i,t,o?n:!1)}i=a}}}function Ci(e){wi(e,!0)}function wi(e,t){if(e.f&8192){e.f^=_e,e.f&1024||(Qt(e,he),br.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;wi(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 Ti(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Vr(n);t.append(n),n=i}}var Ei=s((()=>{ia(),Be(),tt(),x(),fe(),Zr(),Ut(),Sr(),Un(),Mn(),tn()})),Di,Oi=s((()=>{Mr(),ia(),Di=null}));function ki(e){qi=e}function Ai(e){Ji=e}function ji(e){Xi=e}function Mi(e){Ji!==null&&(!Et||Ji.f&2)&&(Zi??=new Set).add(e)}function Ni(e){ea=e}function Pi(e){ra=e}function Fi(){return++ta}function Ii(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~Ee),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ii(a)&&Yn(a),a.wv>e.wv)return!0}t&512&&fr===null&&Qt(e,me)}return!1}function Li(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Et&&Zi!==null&&Zi.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Li(a,t,!1):t===a&&(n?Qt(a,he):a.f&1024&&Qt(a,ge),ar(a))}}function Ri(e){var t=Qi,n=$i,r=ea,i=Ji,a=Zi,o=Ht,s=Yi,c=ra,l=e.f;Qi=null,$i=0,ea=null,Ji=l&96?null:e,Zi=null,It(e.ctx),Yi=!1,ra=++na,e.ac!==null&&(An(()=>{e.ac.abort(Re)}),e.ac=null);try{e.f|=De;var u=e.fn,d=u();e.f|=ye;var f=e.deps,p=ur?.is_fork;if(Qi!==null){var m;if(p||Bi(e,$i),f!==null&&$i>0)for(f.length=$i+Qi.length,m=0;m<Qi.length;m++)f[$i+m]=Qi[m];else e.deps=f=Qi;if(ti()&&e.f&512)for(m=$i;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&$i<f.length&&(Bi(e,$i),f.length=$i);if(zt()&&ea!==null&&!Yi&&f!==null&&!(e.f&6146))for(m=0;m<ea.length;m++)Li(ea[m],e);if(i!==null&&i!==e){if(na++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=na;if(t!==null)for(let e of t)e.rv=na;ea!==null&&(r===null?r=ea:r.push(...ea))}return e.f&8388608&&(e.f^=ke),d}catch(e){return Yt(e)}finally{e.f^=De,Qi=t,$i=n,ea=r,Ji=i,Zi=a,It(o),Yi=s,ra=c}}function zi(e,t){let n=t.reactions;if(n!==null){var r=ne.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Qi===null||!re.call(Qi,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~Ee),a.v!==rt&&$t(a),a.ac!==null&&An(()=>{a.ac.abort(Re),a.ac=null,Qt(a,he)}),Xn(a),Bi(a,0)}}function Bi(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zi(e,n[r])}function Vi(e){var t=e.f;if(!(t&16384)){Qt(e,me);var n=Xi,r=Ki;Xi=e,Ki=(t&96)==0;try{t&16777232?_i(e):gi(e),hi(e);var i=Ri(e);e.teardown=typeof i==`function`?i:null,e.wv=ta}finally{Ki=r,Xi=n}}}async function Hi(){if(Et)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),er()}function z(e){var t=(e.f&2)!=0;if(Di?.add(e),Ji!==null&&!Yi&&!(Xi!==null&&Xi.f&16384)&&(Zi===null||!Zi.has(e))){var n=Ji.deps;if(Ji.f&2097152)e.rv<na&&(e.rv=na,Qi===null&&n!==null&&n[$i]===e?$i++:Qi===null?Qi=[e]:Qi.push(e));else{Ji.deps??=[],re.call(Ji.deps,e)||Ji.deps.push(e);var r=e.reactions;r===null?e.reactions=[Ji]:re.call(r,Ji)||r.push(Ji)}}if(qi&&Ar.has(e))return Ar.get(e);if(t){var i=e;if(qi){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Wi(i))&&(a=Jn(i)),Ar.set(i,a),a}var o=(i.f&512)==0&&!Yi&&Ji!==null&&(Ki||(Ji.f&512)!=0),s=(i.f&ye)===0;Ii(i)&&(o&&(i.f|=512),Yn(i)),o&&!s&&(Zn(i),Ui(i))}if(fr?.has(e))return fr.get(e);if(e.f&8388608)throw e.v;return e.v}function Ui(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Zn(t),Ui(t))}function Wi(e){if(e.v===rt)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Ar.has(t)||t.f&2&&Wi(t))return!0;return!1}function Gi(e){var t=Yi;try{return Yi=!0,e()}finally{Yi=t}}var Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia=s((()=>{x(),fe(),Ei(),Be(),Mr(),$n(),Ot(),Pt(),Ft(),Ut(),Sr(),Zt(),st(),Oi(),Mn(),tn(),ft(),Ki=!1,qi=!1,Ji=null,Yi=!1,Xi=null,Zi=null,Qi=null,$i=0,ea=null,ta=1,na=0,ra=na})),aa=s((()=>{J(),dc(),Ei()}));function oa(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function sa(e){return da.includes(e)}function ca(e){return e=e.toLowerCase(),pa[e]??e}function la(e){return ma.includes(e)}function ua(e){return ga.includes(e)}var da,fa,pa,ma,ha,ga,_a=s((()=>{da=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],fa=`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(`.`),pa={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...fa],ma=[`touchstart`,`touchmove`],ha=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...ha],ga=[`textarea`,`script`,`style`,`title`]})),va=s((()=>{Be(),_a(),ia()})),ya=s((()=>{})),ba=s((()=>{Be(),xt(),Ut()}));function xa(e){if(!yt)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function Sa(e,t,n,r={}){function i(e){if(r.capture||Da.call(t,e),!e.cancelBubble)return An(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Gt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ca(e,t,n,r={}){var i=Sa(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function wa(e,t,n,r,i){var a={capture:r,passive:i},o=Sa(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ni(()=>{t.removeEventListener(e,o,a)})}function Ta(e,t,n){(t[Oa]??={})[e]=n}function Ea(e){for(var t=0;t<e.length;t++)ka.add(e[t]);for(var n of Aa)n(e)}function Da(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;ja=e;var o=0,s=ja===e&&e[Oa];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Oa]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){ae(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Ji,d=Xi;Ai(null),ji(null);try{for(var f,p=[];a!==null&&a!==t;){try{var m=a[Oa]?.[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[Oa]=t,delete e.currentTarget,Ai(u),ji(d)}}}var Oa,ka,Aa,ja,Ma=s((()=>{Ei(),fe(),xt(),Jt(),ia(),Mn(),Oa=Symbol(`events`),ka=new Set,Aa=new Set,ja=null}));function Na(e){return Fa?.createHTML(e)??e}function Pa(e){var t=Wr(`template`);return t.innerHTML=Na(e.replaceAll(`<!>`,`<!---->`)),t.content}var Fa,Ia=s((()=>{Zr(),Fa=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e})}));function La(e,t){var n=Xi;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function B(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(yt)return La(bt,null),bt;i===void 0&&(i=Pa(a?e:`<!>`+e),n||(i=Br(i)));var t=r||Jr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Br(t),s=t.lastChild;La(o,s)}else La(t,t);return t}}function Ra(e=``){if(!yt){var t=zr(e+``);return La(t,t),t}var n=bt;return n.nodeType===3?Gr(n):(n.before(n=zr()),mt(n)),La(n,n),n}function V(){if(yt)return La(bt,null),bt;var e=document.createDocumentFragment(),t=document.createComment(``),n=zr();return e.append(t,n),La(t,n),e}function H(e,t){if(yt){var n=Xi;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=bt),ht();return}e!==null&&e.before(t)}function za(){if(yt&&bt&&bt.nodeType===8&&bt.textContent?.startsWith(`$`)){let e=bt.textContent.substring(1);return ht(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}var Ba=s((()=>{xt(),Zr(),Ia(),ia(),st(),Be()}));function Va(e){Ga=e}function U(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Ie]??=e.nodeValue)&&(e[Ie]=n,e.nodeValue=`${n}`)}function Ha(e,t){return Ua(e,t)}function Ua(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Rr();var c=void 0,l=si(()=>{var l=n??t.appendChild(zr());Fn(l,{pending:()=>{}},t=>{k({});var n=Ht;if(a&&(n.c=a),i&&(r.$$events=i),yt&&La(t,null),Ga=o,c=e(t,r)||{},Ga=!0,yt&&(Xi.nodes.end=bt,bt===null||bt.nodeType!==8||bt.data!==`]`))throw lt(),nt;A()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=la(r);for(let e of[t,document]){var a=Ka.get(e);a===void 0&&(a=new Map,Ka.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Da,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(ie(ka)),Aa.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Ka.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Da),r.delete(e),r.size===0&&Ka.delete(n)):r.set(e,i)}Aa.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return qa.set(c,l),c}function Wa(e,t){let n=qa.get(e);return n?(qa.delete(e),n(t)):Promise.resolve()}var Ga,Ka,qa,Ja=s((()=>{x(),Zr(),st(),ia(),Ut(),Ei(),xt(),fe(),Ma(),ft(),tt(),Ba(),_a(),Be(),Rn(),Ka=new Map,qa=new WeakMap})),Ya=s((()=>{Be(),xt(),Ei(),Mr(),Ja(),ia()})),Xa=s((()=>{fe(),Be(),Ut(),_a()})),Za=s((()=>{tt(),Ut()})),Qa=s((()=>{Nt(),Ei(),ia(),Ft()})),$a=s((()=>{Un(),ia(),xt(),Ba()})),eo=s((()=>{tt()})),to,no=s((()=>{Sr(),Ei(),Be(),xt(),Zr(),x(),to=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)Ci(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Ci(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&&(vi(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();Ti(r,t),t.append(zr()),this.#n.set(e,{effect:r,fragment:t})}else vi(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),xi(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)||(vi(n.effect),this.#n.delete(e))};ensure(e,t){var n=ur,r=Ur();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=zr();i.append(a),this.#n.set(e,{effect:mi(()=>t(a)),fragment:i})}else this.#t.set(e,mi(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else yt&&(this.anchor=bt),this.#a(n)}}}));function ro(e,t,n,r,i){yt&&ht();var a=zt(),o=rt,s=a?Cr(o):wr(o,!1,!1),c=a?Cr(o):wr(o,!1,!1),l=new to(e);fi(()=>{var a=ur,o=t(),u=!1;let d=yt&&C(o)===(e.data===`[!`);if(d&&(mt(_t()),pt(!1)),C(o)){var f=Bn(),p=!1;let e=e=>{if(!u){p=!0,f(!1),ur===a&&a.deactivate(),br.ensure();try{e()}finally{Vn(!1),mr||er()}}};o.then(t=>{e(()=>{Tr(s,t),l.ensure(ao,r&&(e=>r(e,s)))})},t=>{e(()=>{if(Tr(c,t),l.ensure(oo,i&&(e=>i(e,c))),!i)throw c.v})}),yt?l.ensure(io,n):Gt(()=>{p||e(()=>{l.ensure(io,n)})})}else Tr(s,o),l.ensure(ao,r&&(e=>r(e,s)));return d&&pt(!0),()=>{u=!0}})}var io,ao,oo,so=s((()=>{fe(),Ei(),Mr(),xt(),Jt(),st(),Ut(),Sr(),no(),Un(),x(),io=0,ao=1,oo=2}));function W(e,t,n=!1){var r;yt&&(r=bt,ht());var i=new to(e),a=n?xe:0;function o(e,t){if(yt){var n=vt(r);if(e!==parseInt(n.substring(1))){var a=_t();mt(a),i.anchor=a,pt(!1),i.ensure(e,t),pt(!0);return}}i.ensure(e,t)}fi(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var co=s((()=>{Be(),xt(),Ei(),no()}));function lo(e,t,n){yt&&ht();var r=new to(e),i=!zt();fi(()=>{var e=t();e!==e&&(e=uo),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}var uo,fo=s((()=>{Ut(),Ei(),xt(),no(),uo=Symbol(`NaN`)}));function po(e,t){yt&&mt(Br(e)),ui(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}var mo=s((()=>{Ei(),xt(),Zr()}));function ho(e,t){return t}function go(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];xi(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;_o(e,ie(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;Hr(u),u.append(l),e.items.clear()}_o(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function _o(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=Te,Ti(a,document.createDocumentFragment())):vi(t[i],n)}}function vo(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=yt?mt(Br(c)):c.appendChild(zr())}yt&&ht();var l=null,u=Kn(()=>{var e=n();return te(e)?e:e==null?[]:ie(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,bo(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Te,So(l,null,o)):Ci(l):xi(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:fi(()=>{d=z(u);var e=d.length;let c=!1;yt&&vt(o)===`[!`!=(e===0)&&(o=_t(),mt(o),pt(!1),c=!0);for(var g=new Set,_=ur,v=Ur(),y=0;y<e;y+=1){yt&&bt.nodeType===8&&bt.data===`]`&&(o=bt,c=!0,pt(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&Tr(S.v,b),S.i&&Tr(S.i,y),v&&_.unskip_effect(S.e)):(S=xo(s,p?o:wo??=zr(),b,x,y,i,t,n),p||(S.e.f|=Te),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=mi(()=>a(o)):(l=mi(()=>a(wo??=zr())),l.f|=Te)),e>g.size&&We(``,``,``),yt&&e>0&&mt(_t()),!p)if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_);c&&pt(!0),z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,yt&&(o=bt)}function yo(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function bo(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=yo(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&&(Ci(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=Te,g===c)So(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),Co(e,u,g),Co(e,g,v),So(g,v,n),u=g,f=[],p=[],c=yo(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],b;u=y.prev;var x=f[0],S=f[f.length-1];for(b=0;b<f.length;b+=1)So(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);Co(e,x.prev,S.next),Co(e,u,x),Co(e,S,y),c=y,u=S,--_,f=[],p=[]}else l.delete(g),So(g,c,n),Co(e,g.prev,g.next),Co(e,g,u===null?e.effect.first:u.next),Co(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=yo(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=yo(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(_o(e,ie(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(g of l)g.f&8192||C.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=yo(c.next);var w=C.length;if(w>0){var T=r&4&&o===0?n:null;if(a){for(_=0;_<w;_+=1)C[_].nodes?.a?.measure();for(_=0;_<w;_+=1)C[_].nodes?.a?.fix()}go(e,C,T)}}a&&Gt(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function xo(e,t,n,r,i,a,o,s){var c=o&1?o&16?Cr(n):wr(n,!1,!1):null,l=o&2?Cr(i):null;return{v:c,i:l,e:mi(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function So(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=Vr(r);if(a.before(r),r===i)return;r=o}}function Co(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var wo,To=s((()=>{st(),xt(),Zr(),Ei(),Mr(),fe(),Be(),Jt(),ia(),x(),$n(),Sr(),tt(),Pt()}));function Eo(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;yt&&(o=mt(Br(c)))}R(()=>{var e=Xi;if(s===(s=t()??``)){yt&&ht();return}if(n&&!yt){e.nodes=null,c.innerHTML=s,s!==``&&La(Br(c),c.lastChild);return}if(e.nodes!==null&&(yi(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(yt){for(var a=bt.data,l=ht(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=Vr(l);if(l===null)throw lt(),nt;La(bt,u),o=mt(l);return}var d=Wr(r?`svg`:i?`math`:`template`,r?at:i?ot:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(La(Br(f),f.lastChild),r||i)for(;Br(f);)o.before(Br(f));else o.before(f)}})}var Do=s((()=>{st(),Ei(),xt(),Ba(),ft(),_a(),x(),Ut(),Zr(),ia(),Be()})),Oo=s((()=>{xt()})),ko=s((()=>{_a(),He()}));function Ao(e,t,...n){var r=new to(e);fi(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},xe)}var jo=s((()=>{Be(),Ei(),Ut(),xt(),Ia(),Ba(),tt(),x(),Zr(),ko(),no()}));function Mo(e,t,n){var r;yt&&(r=bt,ht());var i=new to(e);fi(()=>{var e=t()??null;if(yt&&vt(r)===`[`!=(e!==null)){var a=_t();mt(a),i.anchor=a,pt(!1),i.ensure(e,e&&(t=>n(t,e))),pt(!0);return}i.ensure(e,e&&(t=>n(t,e)))},xe)}var No=s((()=>{Be(),Ei(),xt(),no(),st()})),Po,Fo,Io=s((()=>{fe(),x(),Po=()=>performance.now(),Fo={tick:e=>requestAnimationFrame(e),now:()=>Po(),tasks:new Set}}));function Lo(){let e=Fo.now();Fo.tasks.forEach(t=>{t.c(e)||(Fo.tasks.delete(t),t.f())}),Fo.tasks.size!==0&&Fo.tick(Lo)}function Ro(e){let t;return Fo.tasks.size===0&&Fo.tick(Lo),{promise:new Promise(n=>{Fo.tasks.add(t={c:e,f:n})}),abort(){Fo.tasks.delete(t)}}}var zo=s((()=>{Io()}));function Bo(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 Vo(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Bo(n.trim());t[i]=r.trim()}return t}function Ho(e){Ko=e}function Uo(e,t,n){var r=(Ko??Xi).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=Wo(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 Wo(e,t,n,r,i,a){var o=r===1;if(S(t)){var s,c=!1;return Gt(()=>{c||(s=Wo(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:D,deactivate:D,reset:D,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Go}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=Vo(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=Vo(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&&Ro(()=>{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=D)},deactivate:()=>{a=D},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}var Go,Ko,qo=s((()=>{fe(),Ei(),ia(),zo(),Ja(),Be(),Jt(),Mn(),Go=e=>e,Ko=null}));function Jo(e,t,n,r,i,a){let o=yt;yt&&ht();var s=null;yt&&bt.nodeType===1&&(s=bt,ht());var c=yt?bt:e,l=Xi,u=new to(c,!1);fi(()=>{let e=t()||null;var a=i?i():n||e===`svg`?at:void 0;if(e===null){u.ensure(null,null),Va(!0);return}return u.ensure(e,t=>{if(e){if(s=yt?s:Wr(e,a),La(s,s),r){var n=null;yt&&ua(e)&&s.append(n=document.createComment(``));var i=yt?Br(s):s.appendChild(zr());yt&&(i===null?pt(!1):mt(i)),Ho(l),r(s,i),n?.remove(),Ho(null)}Xi.nodes.end=s,t.before(s)}yt&&mt(t)}),Va(!0),()=>{e&&Va(!1)}},xe),ni(()=>{Va(!0)}),o&&(pt(!0),mt(c))}var Yo=s((()=>{st(),xt(),Zr(),Ei(),Ja(),ia(),Ut(),x(),Be(),Ba(),_a(),no(),qo()}));function Xo(e,t){let n=null,r=yt;var i;if(yt){n=bt;for(var a=Br(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=Vr(a);if(a===null)pt(!1);else{var o=Vr(a);a.remove(),mt(o)}}yt||(i=document.head.appendChild(zr()));try{fi(()=>{var e=mi(()=>t(i));e.f|=Se})}finally{r&&(pt(!0),mt(n))}}var Zo=s((()=>{xt(),Zr(),Ei(),Be()}));function G(e,t){ci(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Wr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Qo=s((()=>{x(),ya(),Ei(),Zr()})),eee=s((()=>{Ei(),ia()}));function $o(e,t){var n=void 0,r;pi(()=>{n!==(n=t())&&(r&&=(vi(r),null),n&&(r=mi(()=>{ci(()=>n(e))})))})}var es=s((()=>{Ei()}));function ts(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=ts(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ns(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ts(e))&&(r&&(r+=` `),r+=t);return r}var rs=s((()=>{}));function is(e){return typeof e==`object`?ns(e):e??``}function as(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||ls.includes(r[o-1]))&&(s===r.length||ls.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function os(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 ss(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function cs(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(ss)),i&&c.push(...Object.keys(i).map(ss));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=ss(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+=os(r)),i&&(n+=os(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}var ls,us=s((()=>{rs(),fe(),ls=[...` 	
\r\f\xA0\v﻿`]}));function ds(e,t,n,r,i,a){var o=e[Pe];if(yt||o!==n||o===void 0){var s=as(n,r,a);(!yt||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Pe]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var fs=s((()=>{us(),Be(),xt()}));function ps(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 ms(e,t,n,r){var i=e[Fe];if(yt||i!==t){var a=cs(t,r);(!yt||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Fe]=t}else r&&(Array.isArray(r)?(ps(e,n?.[0],r[0]),ps(e,n?.[1],r[1],`important`)):ps(e,n,r));return r}var hs=s((()=>{us(),Be(),xt()}));function gs(e,t,n=!1){if(e.multiple){if(t==null)return;if(!te(t))return ut();for(var r of e.options)r.selected=t.includes(vs(r));return}for(r of e.options)if(Fr(vs(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function _s(e){var t=new MutationObserver(()=>{gs(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),ni(()=>{t.disconnect()})}function vs(e){return`__value`in e?e.__value:e.value}var ys=s((()=>{Ei(),Mn(),Ir(),fe(),ft(),Sr()}));function bs(e){if(yt){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;K(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;K(e,`checked`,null),e.checked=r}}};e[Le]=n,Gt(n),Dn()}}function xs(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function K(e,t,n,r){var i=ws(e);yt&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===As)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ts(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ss(e,t,n,r,i=!1,a=!1){if(yt&&i&&e.nodeName===js){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||bs(o)}var s=ws(e),c=s[Os],l=!s[ks];let u=yt&&c;u&&pt(!1);var d=t||{},f=e.nodeName===Ms;for(var p in t)p in n||(n[p]=null);n.class?n.class=is(n.class):(r||n[Es])&&(n.class=null),n[Ds]&&(n.style??=null);var m=Ts(e);if(e.nodeName===js&&`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,K(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`){ds(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Es],n[Es]),d[i]=o,d[Es]=n[Es];continue}if(i===`style`){ms(e,o,t?.[Ds],n[Ds]),d[i]=o,d[Ds]=n[Ds];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=sa(r);if(oa(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)Ta(r,e,o),Ea([r]);else if(o!=null){function y(e){d[i].call(this,e)}d[n]=Sa(r,e,y,t)}}else if(i===`style`)K(e,i,o);else if(i===`autofocus`)Tn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)xs(e,o);else{var b=i;l||(b=ca(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]=rt)):typeof o!=`function`&&K(e,b,o,a)}}}return u&&pt(!0),d}function Cs(e,t,n=[],r=[],i=[],a,o=!1,s=!1){zn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ns,l=!1;if(pi(()=>{var u=t(...n.map(z)),d=Ss(e,r,u,a,o,s);l&&c&&`value`in u&&gs(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||vi(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&vi(i[t]),i[t]=mi(()=>$o(e,()=>f))),d[t]=f}r=d}),c){var u=e;ci(()=>{gs(u,r.value,!0),_s(u)})}l=!0})}function ws(e){return e[Ne]??={[Os]:e.nodeName.includes(`-`),[ks]:e.namespaceURI===it}}function Ts(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ps.get(t);if(n)return n;Ps.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=se(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=ue(i)}return n}var Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs=s((()=>{x(),xt(),fe(),Ma(),kn(),ft(),Be(),Jt(),_a(),ia(),es(),us(),fs(),hs(),st(),Ei(),ys(),Un(),Es=Symbol(`class`),Ds=Symbol(`style`),Os=Symbol(`is custom element`),ks=Symbol(`is html`),As=ze?`link`:`LINK`,js=ze?`input`:`INPUT`,Ms=ze?`option`:`OPTION`,Ns=ze?`select`:`SELECT`,Ps=new Map})),Is=s((()=>{xt(),Zr(),Ia(),es()})),Ls=s((()=>{Mn()}));function Rs(e,t,n=t){var r=new WeakSet;jn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=zs(e)?Bs(a):a,n(a),ur!==null&&r.add(ur),await Hi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(yt&&e.defaultValue!==e.value||Gi(t)==null&&e.value)&&(n(zs(e)?Bs(e.value):e.value),ur!==null&&r.add(ur)),ui(()=>{var n=t();if(e===document.activeElement){var i=Et?dr:ur;if(r.has(i))return}zs(e)&&n===Bs(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function zs(e){var t=e.type;return t===`number`||t===`range`}function Bs(e){return e===``?null:+e}var Vs=s((()=>{x(),Ei(),Mn(),tt(),Ir(),Jt(),xt(),ia(),Sr(),Ot()})),Hs=s((()=>{Ei(),Mn()})),Us=s((()=>{Mn()})),Ws=s((()=>{Ei(),fe()})),Gs=s((()=>{Ei(),ia()}));function Ks(e,t){return e===t||e?.[Ae]===t}function qs(e={},t,n,r){var i=Ht.r,a=Xi;return ci(()=>{var o,s;return ui(()=>{o=s,s=r?.()||[],Gi(()=>{Ks(n(...s),e)||(t(e,...s),o&&Ks(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&&Ks(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var Js=s((()=>{Be(),Ut(),Ei(),ia()})),Ys=s((()=>{Ei(),Mn()})),Xs=s((()=>{Ei(),Mn()})),Zs=s((()=>{fe(),Ei(),Ma()})),Qs=s((()=>{fe(),Ut(),$n(),Ei(),ia()})),$s=s((()=>{Mr(),ia(),fe()}));function ec(e,t,n){return new Proxy({props:e,exclude:t},nc)}function tc(...e){return new Proxy({props:e},rc)}function q(e,t,n,r){var i=!Dt||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Wn(r),z(l)):(c&&(c=!1,s=o?Gi(r):r),s);let d;if(a){var f=Ae in e||je in e;d=oe(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=yn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Ye(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Wn:Kn)(()=>(_=!1,h()));a&&z(v);var y=Xi;return(function(e,t){if(arguments.length>0){let n=t?z(v):i&&a?Nr(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return qi&&_||y.f&16384?v.v:z(v)})}var nc,rc,ic=s((()=>{x(),st(),fe(),Mr(),$n(),ia(),tt(),Be(),Ir(),Cn(),Ot(),Ei(),nc={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))}},rc={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(S(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];S(i)&&(i=i());let a=oe(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(S(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=oe(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Ae||t===je)return!1;for(let n of e.props)if(S(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(S(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}}})),ac=s((()=>{Ut(),Ei(),Cn(),Un()})),tee=s((()=>{Be(),Ei(),Mr(),Ja(),ia(),Sr(),fe(),tt(),Ut(),Ot(),tn(),Zs()})),oc=s((()=>{tee(),Ei(),Ba(),fe(),Zr()})),sc=s((()=>{Be(),Nt(),ia()})),J=s((()=>{aa(),st(),Ut(),va(),ya(),ba(),Ya(),Xa(),Za(),Pt(),Qa(),$a(),eo(),so(),co(),fo(),mo(),To(),Do(),Oo(),jo(),No(),Yo(),Zo(),Qo(),eee(),es(),Fs(),fs(),Ma(),kn(),Is(),hs(),qo(),Ls(),Vs(),Hs(),Us(),Ws(),ys(),Gs(),Js(),Ys(),Xs(),xt(),Zs(),Qs(),$s(),Ba(),Un(),Sr(),$n(),Ei(),Mr(),ic(),Cn(),Rn(),Oi(),Ja(),ia(),ac(),Io(),Ir(),oc(),Zr(),us(),Nt(),fe(),ko(),Lr(),sc()})),cc=s((()=>{xt(),tt()}));function lc(e){Ht===null&&Ve(`onMount`),Dt&&Ht.l!==null?uc(Ht).m.push(e):ri(()=>{let t=Gi(e);if(typeof t==`function`)return t})}function uc(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var dc=s((()=>{ia(),fe(),J(),tt(),Ot(),Ut(),x(),Sr(),cc(),Ja(),jo()}));function fc(e){return e&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function pc(e){return e}function mc(e,t){t||={};let n=t.delimiter||`.`,r=t.maxDepth,i=t.transformKey||pc,a={};function o(e,s,c){c||=1,Object.keys(e).forEach(function(l){let u=e[l],d=t.safe&&Array.isArray(u),f=Object.prototype.toString.call(u),p=fc(u),m=f===`[object Object]`||f===`[object Array]`,h=s?s+n+i(l):i(l);if(!d&&!p&&m&&Object.keys(u).length&&(!t.maxDepth||c<r))return o(u,h,c+1);a[h]=u})}return o(e),a}function hc(e,t){t||={};let n=t.delimiter||`.`,r=t.overwrite||!1,i=t.transformKey||pc,a={};if(fc(e)||Object.prototype.toString.call(e)!==`[object Object]`)return e;function o(e){let n=Number(e);return isNaN(n)||e.indexOf(`.`)!==-1||t.object?e:n}function s(e,t,r){return Object.keys(r).reduce(function(t,i){return t[e+n+i]=r[i],t},t)}function c(e){let t=Object.prototype.toString.call(e),n=t===`[object Array]`,r=t===`[object Object]`;if(!e)return!0;if(n)return!e.length;if(r)return!Object.keys(e).length}return e=Object.keys(e).reduce(function(n,r){let i=Object.prototype.toString.call(e[r]);return!(i===`[object Object]`||i===`[object Array]`)||c(e[r])?(n[r]=e[r],n):s(r,n,mc(e[r],t))},{}),Object.keys(e).forEach(function(s){let c=s.split(n).map(i),l=o(c.shift()),u=o(c[0]),d=a;for(;u!==void 0;){if(l===`__proto__`)return;let e=Object.prototype.toString.call(d[l]),n=e===`[object Object]`||e===`[object Array]`;if(!r&&!n&&d[l]!==void 0)return;(r&&!n||!r&&d[l]==null)&&(d[l]=typeof u==`number`&&!t.object?[]:{}),d=d[l],c.length>0&&(l=o(c.shift()),u=o(c[0]))}d[l]=hc(e[s],t)}),a}var gc=s((()=>{}));
/**
* @license
* MIT License
* 
* Copyright (c) 2014-present, Lee Byron and other contributors.
* 
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* 
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
function _c(e){return!!(e&&e[Td])}function vc(e){return!!(e&&e[Ed])}function yc(e){return vc(e)||_c(e)}function bc(e){return!!(e&&e[Dd])}function xc(e,t,n,r){var i=e===Md?t:e===Nd?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function Sc(){return{value:void 0,done:!0}}function Cc(e){return Array.isArray(e)?!0:!!Ec(e)}function wc(e){return!!(e&&typeof e.next==`function`)}function Tc(e){var t=Ec(e);return t&&t.call(e)}function Ec(e){var t=e&&(Fd&&e[Fd]||e[Id]);if(typeof t==`function`)return t}function Dc(e){var t=Ec(e);return t&&t===e.entries}function Oc(e){var t=Ec(e);return t&&t===e.keys}function kc(){return{value:!1}}function Ac(e){e&&(e.value=!0)}function jc(){}function Mc(e){return e.size===void 0&&(e.size=e.__iterate(Pc)),e.size}function Nc(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?Mc(e)+t:t}function Pc(){return!0}function Fc(e,t,n){return(e===0&&!zc(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function Ic(e,t){return Rc(e,t,0)}function Lc(e,t){return Rc(e,t,t)}function Rc(e,t,n){return e===void 0?n:zc(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function zc(e){return e<0||e===0&&1/e==-1/0}function Bc(e){return!!(e&&e[Wd])}function Vc(e){return bc(e)||Bc(e)}function Hc(e){return!!(e&&e[Gd])}function Uc(e){return!!(e&&e[Kd])}function Wc(e){return Array.isArray(e)||typeof e==`string`?!0:e&&typeof e==`object`&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}function Gc(){return tf||=new Qd([])}function Kc(e){var t=Yc(e);if(t)return t.fromEntrySeq();if(typeof e==`object`)return new $d(e);throw TypeError(`Expected Array or collection object of [k, v] entries, or keyed object: `+e)}function qc(e){var t=Yc(e);if(t)return t;throw TypeError(`Expected Array or collection object of values: `+e)}function Jc(e){var t=Yc(e);if(t)return Dc(e)?t.fromEntrySeq():Oc(e)?t.toSetSeq():t;if(typeof e==`object`)return new $d(e);throw TypeError(`Expected Array or collection object of values, or keyed object: `+e)}function Yc(e){return Wc(e)?new Qd(e):Cc(e)?new ef(e):void 0}function Xc(){return this.__ensureOwner()}function Zc(){return this.__ownerID?this:this.__ensureOwner(new jc)}function Qc(e){return e>>>1&1073741824|e&3221225471}function $c(e){if(e==null)return el(e);if(typeof e.hashCode==`function`)return Qc(e.hashCode(e));var t=sl(e);if(t==null)return el(t);switch(typeof t){case`boolean`:return t?1108378657:1108378656;case`number`:return tl(t);case`string`:return t.length>pf?nl(t):rl(t);case`object`:case`function`:return nee(t);case`symbol`:return al(t);default:if(typeof t.toString==`function`)return rl(t.toString());throw Error(`Value type `+typeof t+` cannot be hashed.`)}}function el(e){return e===null?1108378658:1108378659}function tl(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return Qc(t)}function nl(e){var t=gf[e];return t===void 0&&(t=rl(e),hf===mf&&(hf=0,gf={}),hf++,gf[e]=t),t}function rl(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Qc(t)}function il(e){if(typeof e!=`string`)return $c(e);for(var t=0,n=0;n<e.length;n++)t=af*t+e.charCodeAt(n)|0;return t}function al(e){var t=uf[e];return t===void 0?(t=cl(),uf[e]=t,t):t}function nee(e){var t;if(cf&&(t=lf.get(e),t!==void 0)||(t=e[ff],t!==void 0)||!sf&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ff],t!==void 0||(t=ol(e),t!==void 0)))return t;if(t=cl(),cf)lf.set(e,t);else if(of!==void 0&&of(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(sf)Object.defineProperty(e,ff,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ff]=t;else if(e.nodeType!==void 0)e[ff]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}function ol(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function sl(e){return e.valueOf!==rf&&typeof e.valueOf==`function`?e.valueOf(e):e}function cl(){var e=++df;return df&1073741824&&(df=0),e}function ll(e){var t=Al(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=jl,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===Pd){var r=e.__iterator(t,n);return new Rd(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Nd?Md:Nd,n)},t}function ul(e,t,n){var r=Al(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,Ud);return a===Ud?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return r(t.call(n,e,i,o),i,a)!==!1},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(Pd,i);return new Rd(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return xc(r,s,t.call(n,o[1],s,e),i)})},r}function dl(e,t){var n=Al(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=ll(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=jl,n.__iterate=function(n,r){var i=this,a=0;return r&&Mc(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++a:a++,i)},!r)},n.__iterator=function(r,i){var a=0;i&&Mc(e);var o=e.__iterator(Pd,!i);return new Rd(function(){var e=o.next();if(e.done)return e;var s=e.value;return xc(r,t?s[0]:i?n.size-++a:a++,s[1],e)})},n}function fl(e,t,n,r){var i=Al(e);return r&&(i.has=function(r){var i=e.get(r,Ud);return i!==Ud&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,Ud);return a!==Ud&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return s++,i(e,r?a:s-1,o)},a),s},i.__iteratorUncached=function(i,a){var o=e.__iterator(Pd,a),s=0;return new Rd(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return xc(i,r?l:s++,u,a)}})},i}function pl(e,t,n){var r=wf().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function ml(e,t,n){var r=vc(e),i=(Hc(e)?Uf():wf()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return e||=[],e.push(r?[o,a]:a),e})});var a=kl(e);return i.map(function(t){return Dl(e,a(t))}).asImmutable()}function hl(e,t,n){var r=vc(e),i=[[],[]];e.__iterate(function(a,o){i[+!!t.call(n,a,o,e)].push(r?[o,a]:a)});var a=kl(e);return i.map(function(t){return Dl(e,a(t))})}function gl(e,t,n,r){var i=e.size;if(Fc(t,n,i))return e;if(i===void 0&&(t<0||n<0))return gl(e.toSeq().cacheResult(),t,n,r);var a=Ic(t,i),o=Lc(n,i)-a,s;o===o&&(s=o<0?0:o);var c=Al(e);return c.size=s===0?s:e.size&&s||void 0,!r&&Uc(e)&&s>=0&&(c.get=function(t,n){return t=Nc(this,t),t>=0&&t<s?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var i=this;if(s===0)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,c=!0,l=0;return e.__iterate(function(e,n){if(!(c&&=o++<a))return l++,t(e,r?n:l-1,i)!==!1&&l!==s}),l},c.__iteratorUncached=function(t,n){if(s!==0&&n)return this.cacheResult().__iterator(t,n);if(s===0)return new Rd(Sc);var i=e.__iterator(t,n),o=0,c=0;return new Rd(function(){for(;o++<a;)i.next();if(++c>s)return Sc();var e=i.next();return r||t===Nd||e.done?e:t===Md?xc(t,c-1,void 0,e):xc(t,c-1,e.value[1],e)})},c}function _l(e,t,n){var r=Al(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(Pd,i),s=!0;return new Rd(function(){if(!s)return Sc();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],l=i[1];return t.call(n,l,c,a)?r===Pd?e:xc(r,c,l,e):(s=!1,Sc())})},r}function vl(e,t,n,r){var i=Al(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var s=!0,c=0;return e.__iterate(function(e,a,l){if(!(s&&=t.call(n,e,a,l)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var s=e.__iterator(Pd,a),c=!0,l=0;return new Rd(function(){var e,a,u;do{if(e=s.next(),e.done)return r||i===Nd?e:i===Md?xc(i,l++,void 0,e):xc(i,l++,e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&=t.call(n,u,a,o)}while(c);return i===Pd?e:xc(i,a,u,e)})},i}function yl(e,t){var n=vc(e),r=[e].concat(t).map(function(e){return bc(e)?n&&(e=kd(e)):e=n?Kc(e):qc(Array.isArray(e)?e:[e]),e}).filter(function(e){return e.size!==0});if(r.length===0)return e;if(r.length===1){var i=r[0];if(i===e||n&&vc(i)||_c(e)&&_c(i))return i}return new xf(r)}function bl(e,t,n){var r=Al(e);return r.__iterateUncached=function(i,a){if(a)return this.cacheResult().__iterate(i,a);var o=0,s=!1;function c(e,l){e.__iterate(function(e,a){return(!t||l<t)&&bc(e)?c(e,l+1):(o++,i(e,n?a:o-1,r)===!1&&(s=!0)),!s},a)}return c(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(r,i),o=[],s=0;return new Rd(function(){for(;a;){var e=a.next();if(e.done!==!1){a=o.pop();continue}var c=e.value;if(r===Pd&&(c=c[1]),(!t||o.length<t)&&bc(c))o.push(a),a=c.__iterator(r,i);else return n?e:xc(r,s++,c,e)}return Sc()})},r}function xl(e,t,n){var r=kl(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function Sl(e,t){var n=Al(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e){return(!a||n(t,a++,i)!==!1)&&n(e,a++,i)!==!1},r),a},n.__iteratorUncached=function(n,r){var i=e.__iterator(Nd,r),a=0,o;return new Rd(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?xc(n,a++,t):xc(n,a++,o.value,o)})},n}function Cl(e,t,n){t||=Ml;var r=vc(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?Yd(a):_c(e)?Xd(a):Zd(a)}function wl(e,t,n){if(t||=Ml,n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Tl(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Tl(t,e,n)?n:e})}function Tl(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function El(e,t,n,r){var i=Al(e),a=new Qd(n).map(function(e){return e.size});return i.size=r?a.max():a.min(),i.__iterate=function(e,t){for(var n=this.__iterator(Nd,t),r,i=0;!(r=n.next()).done&&e(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var a=n.map(function(e){return e=Od(e),Tc(i?e.reverse():e)}),o=0,s=!1;return new Rd(function(){var n;return s||=(n=a.map(function(e){return e.next()}),r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?Sc():xc(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function Dl(e,t){return e===t?e:Uc(e)?t:e.constructor(t)}function Ol(e){if(e!==Object(e))throw TypeError(`Expected [K, V] tuple: `+e)}function kl(e){return vc(e)?kd:_c(e)?Ad:jd}function Al(e){return Object.create((vc(e)?Yd:_c(e)?Xd:Zd).prototype)}function jl(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Jd.prototype.cacheResult.call(this)}function Ml(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function Nl(e){return!!(e&&typeof e.equals==`function`&&typeof e.hashCode==`function`)}function Pl(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf==`function`&&typeof t.valueOf==`function`){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(Nl(e)&&Nl(t)&&e.equals(t))}function Fl(e,t,n,r){return Tu(e,[t],n,r)}function Il(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Rl(this,e)}function Ll(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];if(typeof e!=`function`)throw TypeError(`Invalid merger function: `+e);return Rl(this,t,e)}function Rl(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=kd(t[i]);a.size!==0&&r.push(a)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?Bc(e)?e:e.constructor(r[0]):e.withMutations(function(e){for(var t=n?function(t,r){Fl(e,r,Ud,function(e){return e===Ud?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})}function zl(e){if(!e||typeof e!=`object`||Sf.call(e)!==`[object Object]`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t,r=Object.getPrototypeOf(t);r!==null;)n=r,r=Object.getPrototypeOf(n);return n===t}function Bl(e){return typeof e==`object`&&(Vc(e)||Array.isArray(e)||zl(e))}function Vl(e){return typeof e==`string`&&(e===`__proto__`||e===`constructor`)}function Hl(e,t){t||=0;for(var n=Math.max(0,e.length-t),r=Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function Ul(e){if(Array.isArray(e))return Hl(e);var t={};for(var n in e)Vl(n)||qd.call(e,n)&&(t[n]=e[n]);return t}function Wl(e,t,n){return Gl(e,t,Kl(n))}function Gl(e,t,n){if(!Bl(e))throw TypeError(`Cannot merge into non-data-structure value: `+e);if(Vc(e))return typeof n==`function`&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,a=r?Ad:kd,o=r?function(t){i===e&&(i=Ul(i)),i.push(t)}:function(t,r){if(!Vl(r)){var a=qd.call(i,r),o=a&&n?n(i[r],t,r):t;(!a||o!==i[r])&&(i===e&&(i=Ul(i)),i[r]=o)}},s=0;s<t.length;s++)a(t[s]).forEach(o);return i}function Kl(e){function t(n,r,i){return Bl(n)&&Bl(r)&&ql(n,r)?Gl(n,[r],t):e?e(n,r,i):r}return t}function ql(e,t){var n=Jd(e),r=Jd(t);return _c(n)===_c(r)&&vc(n)===vc(r)}function Jl(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Wl(this,e)}function Yl(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return Wl(this,t,e)}function Xl(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return Tu(this,e,uu(),function(e){return Wl(e,t)})}function Zl(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return Tu(this,e,uu(),function(e){return Gl(e,t)})}function Ql(e,t,n){return Tu(e,t,Ud,function(){return n})}function $l(e,t){return Ql(this,e,t)}function eu(e,t,n){return arguments.length===1?e(this):Fl(this,e,t,n)}function tu(e,t,n){return Tu(this,e,t,n)}function nu(){return this.__altered}function ru(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function iu(e){return!!(e&&e[Cf])}function au(e,t){if(!e)throw Error(t)}function ou(e){au(e!==1/0,`Cannot perform this action with an infinite size.`)}function su(e,t){return xc(e,t[0],t[1])}function cu(e,t){return{node:e,index:0,__prev:t}}function lu(e,t,n,r){var i=Object.create(Tf);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function uu(){return Mf||=lu(0)}function du(e,t,n){var r,i;if(e._root){var a=kc(),o=kc();if(r=fu(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===Ud?-1:1:0)}else{if(n===Ud)return e;i=1,r=new Ef(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?lu(i,r):uu()}function fu(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===Ud?e:(Ac(s),Ac(o),new Af(t,r,[i,a]))}function pu(e){return e.constructor===Af||e.constructor===kf}function mu(e,t,n,r,i){if(e.keyHash===r)return new kf(t,r,[e.entry,i]);var a=(n===0?e.keyHash:e.keyHash>>>n)&Hd,o=(n===0?r:r>>>n)&Hd,s,c=a===o?[mu(e,t,n+Bd,r,i)]:(s=new Af(t,r,i),a<o?[e,s]:[s,e]);return new Df(t,1<<a|1<<o,c)}function ree(e,t,n,r){e||=new jc;for(var i=new Af(e,$c(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function hu(e,t,n,r){for(var i=0,a=0,o=Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];u!==void 0&&s!==r&&(i|=c,o[a++]=u)}return new Df(e,i,o)}function gu(e,t,n,r,i){for(var a=0,o=Array(Vd),s=0;n!==0;s++,n>>>=1)o[s]=n&1?t[a++]:void 0;return o[r]=i,new Of(e,a+1,o)}function _u(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function vu(e,t,n,r){var i=r?e:Hl(e);return i[t]=n,i}function yu(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=Array(i),o=0,s=0;s<i;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function bu(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}function xu(e){if(Wc(e)&&typeof e!=`string`)return e;if(Hc(e))return e.toArray();throw TypeError(`Invalid keyPath: expected Ordered Collection or Array: `+e)}function Su(e){try{return typeof e==`string`?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function Cu(e,t){return Vc(e)?e.has(t):Bl(e)&&qd.call(e,t)}function wu(e,t,n){return Vc(e)?e.get(t,n):Cu(e,t)?typeof e.get==`function`?e.get(t):e[t]:n}function iee(e,t){if(!Bl(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(Vc(e)){if(!e.remove)throw TypeError(`Cannot update immutable value without .remove() method: `+e);return e.remove(t)}if(!qd.call(e,t))return e;var n=Ul(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function aee(e,t,n){if(Vl(t))return e;if(!Bl(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(Vc(e)){if(!e.set)throw TypeError(`Cannot update immutable value without .set() method: `+e);return e.set(t,n)}if(qd.call(e,t)&&n===e[t])return e;var r=Ul(e);return r[t]=n,r}function Tu(e,t,n,r){r||(r=n,n=void 0);var i=Eu(Vc(e),e,xu(t),0,n,r);return i===Ud?n:i}function Eu(e,t,n,r,i,a){var o=t===Ud;if(r===n.length){var s=o?i:t,c=a(s);return c===s?t:c}if(!o&&!Bl(t))throw TypeError(`Cannot update within non-data-structure value in path [`+Array.from(n).slice(0,r).map(Su)+`]: `+t);var l=n[r],u=o?Ud:wu(t,l,Ud),d=Eu(u===Ud?e:Vc(u),u,n,r+1,i,a);return d===u?t:d===Ud?iee(t,l):aee(o?e?uu():{}:t,l,d)}function Du(e,t){return Tu(e,t,function(){return Ud})}function Ou(e){return Du(this,e)}function ku(e){return!!(e&&e[Lf])}function Au(e,t){var n=e._origin,r=e._capacity,i=zu(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return t===0?s(e,n):c(e,t,n)}function s(e,o){var s=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,l=r-o;return l>Vd&&(l=Vd),function(){if(c===l)return Vf;var e=t?--l:c++;return s&&s[e]}}function c(e,i,a){var s,c=e&&e.array,l=a>n?0:n-a>>i,u=(r-a>>i)+1;return u>Vd&&(u=Vd),function(){for(;;){if(s){var e=s();if(e!==Vf)return e;s=null}if(l===u)return Vf;var n=t?--u:l++;s=o(c&&c[n],i-Bd,a+(n<<i))}}}}function ju(e,t,n,r,i,a,o){var s=Object.create(zf);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function Mu(){return ju(0,0,Bd)}function Nu(e,t,n){if(t=Nc(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Ru(e,t).set(0,n):Ru(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=kc();return t>=zu(e._capacity)?r=Pu(r,e.__ownerID,0,t,n,a):i=Pu(i,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):ju(e._origin,e._capacity,e._level,i,r):e}function Pu(e,t,n,r,i,a){var o=r>>>n&Hd,s=e&&o<e.array.length;if(!s&&i===void 0)return e;var c;if(n>0){var l=e&&e.array[o],u=Pu(l,t,n-Bd,r,i,a);return u===l?e:(c=Fu(e,t),c.array[o]=u,c)}return s&&e.array[o]===i?e:(a&&Ac(a),c=Fu(e,t),i===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=i,c)}function Fu(e,t){return t&&e&&t===e.ownerID?e:new Bf(e?e.array.slice():[],t)}function Iu(e,t){if(t>=zu(e._capacity))return e._tail;if(t<1<<e._level+Bd){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&Hd],r-=Bd;return n}}function Lu(e,t,n){var r=e._origin+(t===void 0?0:t),i=n===void 0?e._capacity:n<0?e._capacity+n:e._origin+n;if(Number.isFinite(i)&&i>Hf||Number.isFinite(r)&&r<-Hf||Number.isFinite(i)&&Number.isFinite(r)&&i-r>Hf)throw RangeError(`Invalid List size: a List cannot hold more than `+Hf+` (2 ** 30) values.`)}function Ru(e,t,n){Lu(e,t,n),t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new jc,i=e._origin,a=e._capacity,o=i+t,s=n===void 0?a:n<0?a+n:i+n;if(o===i&&s===a)return e;if(o>=s)return e.clear();for(var c=e._level,l=e._root,u=0;o+u<0;)l=new Bf(l&&l.array.length?[void 0,l]:[],r),c+=Bd,u+=Bu(c);u&&(o+=u,i+=u,s+=u,a+=u);for(var d=zu(a),f=zu(s);f>=Bu(c+Bd);)l=new Bf(l&&l.array.length?[l]:[],r),c+=Bd;var p=e._tail,m=f<d?Iu(e,s-1):f>d?new Bf([],r):p;if(p&&f>d&&o<a&&p.array.length){l=Fu(l,r);for(var h=l,g=c;g>Bd;g-=Bd){var _=d>>>g&Hd;h=h.array[_]=Fu(h.array[_],r)}h.array[d>>>Bd&Hd]=p}if(s<a&&(m&&=m.removeAfter(r,0,s)),o>=f)o-=f,s-=f,c=Bd,l=void 0,m&&=m.removeBefore(r,0,o);else if(o>i||f<d){for(u=0;l;){var v=o>>>c&Hd;if(v!==f>>>c&Hd)break;v&&(u+=(1<<c)*v),c-=Bd,l=l.array[v]}l&&o>i&&(l=l.removeBefore(r,c,o-u)),l&&f<d&&(l=l.removeAfter(r,c,f-u)),u&&(o-=u,s-=u)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):ju(o,s,c,l,m)}function zu(e){return e<Vd?0:e-1>>>Bd<<Bd}function Bu(e){return e<31?1<<e:2**e}function Vu(e){return iu(e)&&Hc(e)}function Hu(e,t,n,r){var i=Object.create(Uf.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Uu(){return Wf||=Hu(uu(),Mu())}function Wu(e,t,n){var r=e._map,i=e._list,a=r.get(t),o=a!==void 0,s,c;if(n===Ud){if(!o)return e;i.size>=Vd&&i.size>=r.size*2?(c=i.filter(function(e,t){return e!==void 0&&a!==t}),s=c.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(s.__ownerID=c.__ownerID=e.__ownerID)):(s=r.remove(t),c=a===i.size-1?i.pop():i.set(a,void 0))}else if(o){if(n===i.get(a)[1])return e;s=r,c=i.set(a,[t,n])}else s=r.set(t,i.size),c=i.set(i.size,[t,n]);return e.__ownerID?(e.size=s.size,e._map=s,e._list=c,e.__hash=void 0,e.__altered=!0,e):Hu(s,c)}function Gu(e){return!!(e&&e[Gf])}function Ku(e,t,n,r){var i=Object.create(qf);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function qu(){return Jf||=Ku(0)}function Ju(e,t,n,r,i,a){return ou(e.size),e.__iterate(function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)},a),n}function Yu(e,t){return t}function Xu(e,t){return[t,e]}function Zu(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function Qu(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function $u(e,t){return e<t?1:e>t?-1:0}function ed(e,t){if(e===t)return!0;if(!bc(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||vc(e)!==vc(t)||_c(e)!==_c(t)||Hc(e)!==Hc(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!yc(e);if(Hc(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&Pl(i[1],e)&&(n||Pl(i[0],t))})&&r.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult==`function`&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var o=!0,s=t.__iterate(function(t,r){if(n?!e.has(t):i?!Pl(t,e.get(r,Ud)):!Pl(e.get(r,Ud),t))return o=!1,!1});return o&&e.size===s}function td(e){return!!(e&&e[Zf])}function nd(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function rd(e,t){var n=Object.create($f);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function id(){return ep||=rd(uu())}function ad(e,t,n){for(var r=xu(t),i=0;i!==r.length;)if(e=wu(e,r[i++],Ud),e===Ud)return n;return e}function od(e,t){return ad(this,e,t)}function sd(e,t){return ad(e,t,Ud)!==Ud}function cd(e){return sd(this,e)}function ld(){ou(this.size);var e={};return this.__iterate(function(t,n){Vl(n)||(e[n]=t)}),e}function ud(e){if(!e||typeof e!=`object`)return e;if(!bc(e)){if(!Bl(e))return e;e=Jd(e)}if(vc(e)){var t={};return e.__iterate(function(e,n){Vl(n)||(t[n]=ud(e))}),t}var n=[];return e.__iterate(function(e){n.push(ud(e))}),n}function dd(e){if(e.size===1/0)return 0;var t=Hc(e),n=vc(e),r=+!!t;return e.__iterate(n?t?function(e,t){r=31*r+pd($c(e),$c(t))|0}:function(e,t){r=r+pd($c(e),$c(t))|0}:t?function(e){r=31*r+$c(e)|0}:function(e){r=r+$c(e)|0}),fd(e.size,r)}function fd(e,t){return t=nf(t,3432918353),t=nf(t<<15|t>>>-15,461845907),t=nf(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=nf(t^t>>>16,2246822507),t=nf(t^t>>>13,3266489909),t=Qc(t^t>>>16),t}function pd(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function md(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function hd(){return Hl(arguments)}function gd(e){return td(e)&&Hc(e)}function _d(e,t){var n=Object.create(op);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function vd(){return sp||=_d(Uu())}function yd(e){if(Bc(e))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Vc(e))throw Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(typeof e!=`object`||!e)throw Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}function bd(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function xd(e){return e.constructor.displayName||e.constructor.name||`Record`}function Sd(e){return Kc(e._keys.map(function(t){return[t,e.get(t)]}))}function oee(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){au(this.__ownerID,`Cannot set on an immutable record.`),this.set(t,e)}})}catch{}}function Cd(e,t){return wd([],t||see,e,``,t&&t.length>2?[]:void 0,{"":e})}function wd(e,t,n,r,i,a){if(typeof n!=`string`&&!Vc(n)&&(Wc(n)||Cc(n)||zl(n))){if(~e.indexOf(n))throw TypeError(`Cannot convert circular structure to Immutable`);e.push(n),i&&r!==``&&i.push(r);var o=t.call(a,r,Jd(n).map(function(r,a){return wd(e,t,r,a,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function see(e,t){return _c(t)?t.toList():vc(t)?t.toMap():t.toSet()}var Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up=s((()=>{Td=`@@__IMMUTABLE_INDEXED__@@`,Ed=`@@__IMMUTABLE_KEYED__@@`,Dd=`@@__IMMUTABLE_ITERABLE__@@`,Od=function(e){return bc(e)?e:Jd(e)},kd=function(e){function t(e){return vc(e)?e:Yd(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Od),Ad=function(e){function t(e){return _c(e)?e:Xd(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Od),jd=function(e){function t(e){return bc(e)&&!yc(e)?e:Zd(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Od),Od.Keyed=kd,Od.Indexed=Ad,Od.Set=jd,Md=0,Nd=1,Pd=2,Fd=typeof Symbol==`function`&&Symbol.iterator,Id=`@@iterator`,Ld=Fd||Id,Rd=function(e){this.next=e},Rd.prototype.toString=function(){return`[Iterator]`},Rd.KEYS=Md,Rd.VALUES=Nd,Rd.ENTRIES=Pd,Rd.prototype.inspect=Rd.prototype.toSource=function(){return this.toString()},Rd.prototype[Ld]=function(){return this},zd=`delete`,Bd=5,Vd=1<<Bd,Hd=Vd-1,Ud={},Wd=`@@__IMMUTABLE_RECORD__@@`,Gd=`@@__IMMUTABLE_ORDERED__@@`,Kd=`@@__IMMUTABLE_SEQ__@@`,qd=Object.prototype.hasOwnProperty,Jd=function(e){function t(e){return e==null?Gc():Vc(e)?e.toSeq():Jc(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString(`Seq {`,`}`)},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var a=n[t?r-++i:i++];if(e(a[1],a[0],this)===!1)break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new Rd(function(){if(i===r)return Sc();var a=n[t?r-++i:i++];return xc(e,a[0],a[1])})}return this.__iteratorUncached(e,t)},t}(Od),Yd=function(e){function t(e){return e==null?Gc().toKeyedSeq():bc(e)?vc(e)?e.toSeq():e.fromEntrySeq():Bc(e)?e.toSeq():Kc(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Jd),Xd=function(e){function t(e){return e==null?Gc():bc(e)?vc(e)?e.entrySeq():e.toIndexedSeq():Bc(e)?e.toSeq().entrySeq():qc(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString(`Seq [`,`]`)},t}(Jd),Zd=function(e){function t(e){return(bc(e)&&!yc(e)?e:Xd(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Jd),Jd.isSeq=Uc,Jd.Keyed=Yd,Jd.Set=Zd,Jd.Indexed=Xd,Jd.prototype[Kd]=!0,Qd=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[Nc(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var a=t?r-++i:i++;if(e(n[a],a,this)===!1)break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new Rd(function(){if(i===r)return Sc();var a=t?r-++i:i++;return xc(e,a,n[a])})},t}(Xd),$d=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},t.prototype.has=function(e){return qd.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,a=0;a!==i;){var o=r[t?i-++a:a++];if(e(n[o],o,this)===!1)break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,a=0;return new Rd(function(){if(a===i)return Sc();var o=r[t?i-++a:a++];return xc(e,o,n[o])})},t}(Yd),$d.prototype[Gd]=!0,ef=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._collection,r=Tc(n),i=0;if(wc(r))for(var a;!(a=r.next()).done&&e(a.value,i++,this)!==!1;);return i},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._collection,r=Tc(n);if(!wc(r))return new Rd(Sc);var i=0;return new Rd(function(){var t=r.next();return t.done?t:xc(e,i++,t.value)})},t}(Xd),nf=typeof Math.imul==`function`?Math.imul:function(e,t){e|=0,t|=0;var n=e&65535,r=t&65535;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},rf=Object.prototype.valueOf,af=(Math.random()*1048576|1)%1048576||40503,of=Object.isExtensible,sf=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})(),cf=typeof WeakMap==`function`,cf&&(lf=new WeakMap),uf=Object.create(null),df=0,ff=`__immutablehash__`,typeof Symbol==`function`&&(ff=Symbol(ff)),pf=16,mf=255,hf=0,gf={},_f=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=dl(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=ul(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Yd),_f.prototype[Gd]=!0,vf=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&Mc(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(Nd,t),i=0;return t&&Mc(this),new Rd(function(){var a=r.next();return a.done?a:xc(e,t?n.size-++i:i++,a.value,a)})},t}(Xd),yf=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Nd,t);return new Rd(function(){var t=n.next();return t.done?t:xc(e,t.value,t.value,t)})},t}(Zd),bf=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Ol(t);var r=bc(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Nd,t);return new Rd(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ol(r);var i=bc(r);return xc(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(Yd),vf.prototype.cacheResult=_f.prototype.cacheResult=yf.prototype.cacheResult=bf.prototype.cacheResult=jl,xf=function(e){function t(e){this._wrappedIterables=e.flatMap(function(e){return e._wrappedIterables?e._wrappedIterables:[e]}),this.size=this._wrappedIterables.reduce(function(e,t){if(e!==void 0){var n=t.size;if(n!==void 0)return e+n}},0),this[Ed]=this._wrappedIterables[0][Ed],this[Td]=this._wrappedIterables[0][Td],this[Gd]=this._wrappedIterables[0][Gd]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(this._wrappedIterables.length!==0){if(t)return this.cacheResult().__iterate(e,t);for(var n=0,r=vc(this),i=r?Pd:Nd,a=this._wrappedIterables[n].__iterator(i,t),o=!0,s=0;o;){for(var c=a.next();c.done;){if(n++,n===this._wrappedIterables.length)return s;a=this._wrappedIterables[n].__iterator(i,t),c=a.next()}o=(r?e(c.value[1],c.value[0],this):e(c.value,s,this))!==!1,s++}return s}},t.prototype.__iteratorUncached=function(e,t){var n=this;if(this._wrappedIterables.length===0)return new Rd(Sc);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new Rd(function(){for(var a=i.next();a.done;){if(r++,r===n._wrappedIterables.length)return a;i=n._wrappedIterables[r].__iterator(e,t),a=i.next()}return a})},t}(Jd),Sf=Object.prototype.toString,Cf=`@@__IMMUTABLE_MAP__@@`,wf=function(e){function t(t){return t==null?uu():iu(t)&&!Hc(t)?t:uu().withMutations(function(n){var r=e(t);ou(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString(`Map {`,`}`)},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return du(this,e,t)},t.prototype.remove=function(e){return du(this,e,Ud)},t.prototype.deleteAll=function(e){var t=Od(e);return t.size===0?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):uu()},t.prototype.sort=function(e){return Uf(Cl(this,e))},t.prototype.sortBy=function(e,t){return Uf(Cl(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,a){r.set(a,e.call(t,i,a,n))})})},t.prototype.__iterator=function(e,t){return new jf(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?lu(this.size,this._root,e,this.__hash):this.size===0?uu():(this.__ownerID=e,this.__altered=!1,this)},t}(kd),wf.isMap=iu,Tf=wf.prototype,Tf[Cf]=!0,Tf[zd]=Tf.remove,Tf.removeAll=Tf.deleteAll,Tf.setIn=$l,Tf.removeIn=Tf.deleteIn=Ou,Tf.update=eu,Tf.updateIn=tu,Tf.merge=Tf.concat=Il,Tf.mergeWith=Ll,Tf.mergeDeep=Jl,Tf.mergeDeepWith=Yl,Tf.mergeIn=Zl,Tf.mergeDeepIn=Xl,Tf.withMutations=ru,Tf.wasAltered=nu,Tf.asImmutable=Xc,Tf[`@@transducer/init`]=Tf.asMutable=Zc,Tf[`@@transducer/step`]=function(e,t){return e.set(t[0],t[1])},Tf[`@@transducer/result`]=function(e){return e.asImmutable()},Ef=function(e,t){this.ownerID=e,this.entries=t},Ef.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(Pl(n,i[a][0]))return i[a][1];return r},Ef.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===Ud,c=this.entries,l=0,u=c.length;l<u&&!Pl(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(Ac(o),(s||!d)&&Ac(a),!(s&&c.length===1)){if(!d&&!s&&c.length>=Nf)return ree(e,c,r,i);var f=e&&e===this.ownerID,p=f?c:Hl(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new Ef(e,p)}},Df=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n},Df.prototype.get=function(e,t,n,r){t===void 0&&(t=$c(n));var i=1<<((e===0?t:t>>>e)&Hd),a=this.bitmap;return(a&i)===0?r:this.nodes[_u(a&i-1)].get(e+Bd,t,n,r)},Df.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=$c(r));var s=(t===0?n:n>>>t)&Hd,c=1<<s,l=this.bitmap,u=(l&c)!==0;if(!u&&i===Ud)return this;var d=_u(l&c-1),f=this.nodes,p=u?f[d]:void 0,m=fu(p,e,t+Bd,n,r,i,a,o);if(m===p)return this;if(!u&&m&&f.length>=Pf)return gu(e,f,l,s,m);if(u&&!m&&f.length===2&&pu(f[d^1]))return f[d^1];if(u&&m&&f.length===1&&pu(m))return m;var h=e&&e===this.ownerID,g=u?m?l:l^c:l|c,_=u?m?vu(f,d,m,h):bu(f,d,h):yu(f,d,m,h);return h?(this.bitmap=g,this.nodes=_,this):new Df(e,g,_)},Of=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n},Of.prototype.get=function(e,t,n,r){t===void 0&&(t=$c(n));var i=(e===0?t:t>>>e)&Hd,a=this.nodes[i];return a?a.get(e+Bd,t,n,r):r},Of.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=$c(r));var s=(t===0?n:n>>>t)&Hd,c=i===Ud,l=this.nodes,u=l[s];if(c&&!u)return this;var d=fu(u,e,t+Bd,n,r,i,a,o);if(d===u)return this;var f=this.count;if(!u)f++;else if(!d&&(f--,f<Ff))return hu(e,l,f,s);var p=e&&e===this.ownerID,m=vu(l,s,d,p);return p?(this.count=f,this.nodes=m,this):new Of(e,f,m)},kf=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n,this._index=void 0},kf.prototype._positionOf=function(e,t){var n=this.entries,r=this._index;if(r===void 0&&t&&n.length>=If&&(r=this._buildIndex()),r!==void 0){var i=r[il(e)];if(i!==void 0)for(var a=0;a<i.length;a++){var o=i[a];if(Pl(e,n[o][0]))return o}return-1}for(var s=0,c=n.length;s<c;s++)if(Pl(e,n[s][0]))return s;return-1},kf.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,n=0,r=t.length;n<r;n++){var i=il(t[n][0]),a=e[i];a===void 0?e[i]=[n]:a.push(n)}return this._index=e,e},kf.prototype.get=function(e,t,n,r){var i=this._positionOf(n,!0);return i===-1?r:this.entries[i][1]},kf.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=$c(r));var s=i===Ud;if(n!==this.keyHash)return s?this:(Ac(o),Ac(a),mu(this,e,t,n,[r,i]));var c=this.entries,l=c.length,u=e&&e===this.ownerID,d=this._positionOf(r,u),f=d===-1?l:d,p=d!==-1;if(p?c[f][1]===i:s)return this;if(Ac(o),(s||!p)&&Ac(a),s&&l===2)return new Af(e,this.keyHash,c[f^1]);var m=u?c:Hl(c);if(p)s?(f===l-1?m.pop():m[f]=m.pop(),u&&(this._index=void 0)):m[f]=[r,i];else if(m.push([r,i]),u&&this._index!==void 0){var h=il(r),g=this._index[h];g===void 0?this._index[h]=[l]:g.push(l)}return u?(this.entries=m,this):new kf(e,this.keyHash,m)},Af=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n},Af.prototype.get=function(e,t,n,r){return Pl(n,this.entry[0])?this.entry[1]:r},Af.prototype.update=function(e,t,n,r,i,a,o){var s=i===Ud,c=Pl(r,this.entry[0]);if(c?i===this.entry[1]:s)return this;if(Ac(o),s){Ac(a);return}return c?e&&e===this.ownerID?(this.entry[1]=i,this):new Af(e,this.keyHash,[r,i]):(Ac(a),mu(this,e,t,$c(r),[r,i]))},Ef.prototype.iterate=kf.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},Df.prototype.iterate=Of.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&a.iterate(e,t)===!1)return!1}},Af.prototype.iterate=function(e,t){return e(this.entry)},jf=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&cu(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(r===0)return su(e,n.entry)}else if(n.entries){if(i=n.entries.length-1,r<=i)return su(e,n.entries[this._reverse?i-r:r])}else if(i=n.nodes.length-1,r<=i){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return su(e,a.entry);t=this._stack=cu(a,t)}continue}t=this._stack=this._stack.__prev}return Sc()},t}(Rd),Nf=Vd/4,Pf=Vd/2,Ff=Vd/4,If=16,Lf=`@@__IMMUTABLE_LIST__@@`,Rf=function(e){function t(t){var n=Mu();if(t==null)return n;if(ku(t))return t;var r=e(t),i=r.size;return i===0?n:(ou(i),i>0&&i<Vd?ju(0,i,Bd,void 0,new Bf(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`List [`,`]`)},t.prototype.get=function(e,t){if(e=Nc(this,e),e>=0&&e<this.size){e+=this._origin;var n=Iu(this,e);return n&&n.array[e&Hd]}return t},t.prototype.set=function(e,t){return Nu(this,e,t)},t.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Bd,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Mu()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ru(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return Ru(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Ru(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return Ru(this,1)},t.prototype.shuffle=function(e){return e===void 0&&(e=Math.random),this.withMutations(function(t){for(var n=t.size,r,i;n;)r=Math.floor(e()*n--),i=t.get(r),t.set(r,t.get(n)),t.set(n,i)})},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],a=e(typeof i!=`string`&&Cc(i)?i:[i]);a.size!==0&&n.push(a)}return n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})})},t.prototype.setSize=function(e){return Ru(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return Fc(e,t,n)?this:Ru(this,Ic(e,n),Lc(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=Au(this,t);return new Rd(function(){var i=r();return i===Vf?Sc():xc(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n=t?this.size:0,r=Au(this,t),i;(i=r())!==Vf&&e(i,t?--n:n++,this)!==!1;);return n},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ju(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):this.size===0?Mu():(this.__ownerID=e,this.__altered=!1,this)},t}(Ad),Rf.isList=ku,zf=Rf.prototype,zf[Lf]=!0,zf[zd]=zf.remove,zf.merge=zf.concat,zf.setIn=$l,zf.deleteIn=zf.removeIn=Ou,zf.update=eu,zf.updateIn=tu,zf.mergeIn=Zl,zf.mergeDeepIn=Xl,zf.withMutations=ru,zf.wasAltered=nu,zf.asImmutable=Xc,zf[`@@transducer/init`]=zf.asMutable=Zc,zf[`@@transducer/step`]=function(e,t){return e.push(t)},zf[`@@transducer/result`]=function(e){return e.asImmutable()},Bf=function(e,t){this.array=e,this.ownerID=t},Bf.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+Bd)-1)||this.array.length===0)return this;var r=n>>>t&Hd;if(r>=this.array.length)return new Bf([],e);var i=r===0,a;if(t>0){var o=this.array[r];if(a=o&&o.removeBefore(e,t-Bd,n),a===o&&i)return this}if(i&&!a)return this;var s=Fu(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return a&&(s.array[r]=a),s},Bf.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+Bd:Vd)||this.array.length===0)return this;var r=n-1>>>t&Hd;if(r>=this.array.length)return this;var i;if(t>0){var a=this.array[r];if(i=a&&a.removeAfter(e,t-Bd,n),i===a&&r===this.array.length-1)return this}var o=Fu(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o},Vf={},Hf=2**30,Uf=function(e){function t(e){return e==null?Uu():Vu(e)?e:Uu().withMutations(function(t){var n=kd(e);ou(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`OrderedMap {`,`}`)},t.prototype.get=function(e,t){var n=this._map.get(e);return n===void 0?t:this._list.get(n)[1]},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Uu()},t.prototype.set=function(e,t){return Wu(this,e,t)},t.prototype.remove=function(e){return Wu(this,e,Ud)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Hu(t,n,e,this.__hash):this.size===0?Uu():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(wf),Uf.isOrderedMap=Vu,Uf.prototype[Gd]=!0,Uf.prototype[zd]=Uf.prototype.remove,Gf=`@@__IMMUTABLE_STACK__@@`,Kf=function(e){function t(e){return e==null?qu():Gu(e)?e:qu().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`Stack [`,`]`)},t.prototype.get=function(e,t){var n=this._head;for(e=Nc(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(arguments.length===0)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ku(t,n)},t.prototype.pushAll=function(t){if(t=e(t),t.size===0)return this;if(this.size===0&&Gu(t))return t;ou(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ku(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):qu()},t.prototype.slice=function(t,n){if(Fc(t,n,this.size))return this;var r=Ic(t,this.size);if(Lc(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):Ku(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ku(this.size,this._head,e,this.__hash):this.size===0?qu():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Qd(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&e(i.value,r++,this)!==!1;)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Qd(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new Rd(function(){if(r){var t=r.value;return r=r.next,xc(e,n++,t)}return Sc()})},t}(Ad),Kf.isStack=Gu,qf=Kf.prototype,qf[Gf]=!0,qf.shift=qf.pop,qf.unshift=qf.push,qf.unshiftAll=qf.pushAll,qf.withMutations=ru,qf.wasAltered=nu,qf.asImmutable=Xc,qf[`@@transducer/init`]=qf.asMutable=Zc,qf[`@@transducer/step`]=function(e,t){return e.unshift(t)},qf[`@@transducer/result`]=function(e){return e.asImmutable()},Yf=function(e){function t(e,n,r){if(r===void 0&&(r=1),!(this instanceof t))return new t(e,n,r);if(au(r!==0,`Cannot step a Range by 0`),au(e!==void 0,`You must define a start value when using Range`),au(n!==void 0,`You must define an end value when using Range`),r=Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),this.size===0){if(Xf)return Xf;Xf=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?`Range []`:`Range [ `+this._start+`...`+this._end+(this._step===1?``:` by `+this._step)+` ]`},t.prototype.get=function(e,t){return this.has(e)?this._start+Nc(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return Fc(e,n,this.size)?this:(e=Ic(e,this.size),n=Lc(n,this.size),n<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;a!==n&&e(i,t?n-++a:a++,this)!==!1;)i+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;return new Rd(function(){if(a===n)return Sc();var o=i;return i+=t?-r:r,xc(e,t?n-++a:a++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:ed(this,e)},t}(Xd),Zf=`@@__IMMUTABLE_SET__@@`,Qf=function(e){function t(t){return t==null?id():td(t)&&!Hc(t)?t:id().withMutations(function(n){var r=e(t);ou(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(kd(e).keySeq())},t.intersect=function(e){return e=Od(e).toArray(),e.length?$f.intersect.apply(t(e.pop()),e):id()},t.union=function(e){return e=Od(e).toArray(),e.length?$f.union.apply(t(e.pop()),e):id()},t.prototype.toString=function(){return this.__toString(`Set {`,`}`)},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return nd(this,this._map.set(e,e))},t.prototype.remove=function(e){return nd(this,this._map.remove(e))},t.prototype.clear=function(){return nd(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=nd(this,this._map.mapEntries(function(i){var a=i[1],o=e.call(t,a,a,n);return o!==a&&(r=!0),[o,o]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter(function(e){return e.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(n){for(var r=0;r<t.length;r++)typeof t[r]==`string`?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})})},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return ap(Cl(this,e))},t.prototype.sortBy=function(e,t){return ap(Cl(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):this.size===0?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(jd),Qf.isSet=td,$f=Qf.prototype,$f[Zf]=!0,$f[zd]=$f.remove,$f.merge=$f.concat=$f.union,$f.withMutations=ru,$f.asImmutable=Xc,$f[`@@transducer/init`]=$f.asMutable=Zc,$f[`@@transducer/step`]=function(e,t){return e.add(t)},$f[`@@transducer/result`]=function(e){return e.asImmutable()},$f.__empty=id,$f.__make=rd,Od.Iterator=Rd,md(Od,{toArray:function(){ou(this.size);var e=Array(this.size||0),t=vc(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new vf(this)},toJS:function(){return ud(this)},toKeyedSeq:function(){return new _f(this,!0)},toMap:function(){return wf(this.toKeyedSeq())},toObject:ld,toOrderedMap:function(){return Uf(this.toKeyedSeq())},toOrderedSet:function(){return ap(vc(this)?this.valueSeq():this)},toSet:function(){return Qf(vc(this)?this.valueSeq():this)},toSetSeq:function(){return new yf(this)},toSeq:function(){return _c(this)?this.toIndexedSeq():vc(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kf(vc(this)?this.valueSeq():this)},toList:function(){return Rf(vc(this)?this.valueSeq():this)},toString:function(){return`[Collection]`},__toString:function(e,t){return this.size===0?e+t:e+` `+this.toSeq().map(this.__toStringMapper).join(`, `)+` `+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Dl(this,yl(this,e))},includes:function(e){return this.some(function(t){return Pl(t,e)})},entries:function(){return this.__iterator(Pd)},every:function(e,t){ou(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return Dl(this,fl(this,e,t,!0))},partition:function(e,t){return hl(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ou(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ou(this.size),e=e===void 0?`,`:``+e;var t=``,n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=r==null?``:r.toString()}),t},keys:function(){return this.__iterator(Md)},map:function(e,t){return Dl(this,ul(this,e,t))},reduce:function(e,t,n){return Ju(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Ju(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Dl(this,dl(this,!0))},slice:function(e,t){return Dl(this,gl(this,e,t,!0))},some:function(e,t){ou(this.size);var n=!1;return this.__iterate(function(r,i,a){if(e.call(t,r,i,a))return n=!0,!1}),n},sort:function(e){return Dl(this,Cl(this,e))},values:function(){return this.__iterator(Nd)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size===void 0?!this.some(function(){return!0}):this.size===0},count:function(e,t){return Mc(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return pl(this,e,t)},equals:function(e){return ed(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Qd(e._cache);var t=e.toSeq().map(Xu).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Zu(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(Pc,null,e)},flatMap:function(e,t){return Dl(this,xl(this,e,t))},flatten:function(e){return Dl(this,bl(this,e,!0))},fromEntrySeq:function(){return new bf(this)},get:function(e,t){return this.find(function(t,n){return Pl(n,e)},void 0,t)},getIn:od,groupBy:function(e,t){return ml(this,e,t)},has:function(e){return this.get(e,Ud)!==Ud},hasIn:cd,isSubset:function(e){return e=typeof e.includes==`function`?e:Od(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset==`function`?e:Od(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return Pl(t,e)})},keySeq:function(){return this.toSeq().map(Yu).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return wl(this,e)},maxBy:function(e,t){return wl(this,t,e)},min:function(e){return wl(this,e?Qu(e):$u)},minBy:function(e,t){return wl(this,t?Qu(t):$u,e)},rest:function(){return this.slice(1)},skip:function(e){return e===0?this:this.slice(Math.max(0,e))},skipLast:function(e){return e===0?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Dl(this,vl(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Zu(e),t)},sortBy:function(e,t){return Dl(this,Cl(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Dl(this,_l(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Zu(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||=dd(this)}}),tp=Od.prototype,tp[Dd]=!0,tp[Ld]=tp.values,tp.toJSON=tp.toArray,tp.__toStringMapper=Su,tp.inspect=tp.toSource=function(){return this.toString()},tp.chain=tp.flatMap,tp.contains=tp.includes,md(kd,{flip:function(){return Dl(this,ll(this))},mapEntries:function(e,t){var n=this,r=0;return Dl(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Dl(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}}),np=kd.prototype,np[Ed]=!0,np[Ld]=tp.entries,np.toJSON=ld,np.__toStringMapper=function(e,t){return Su(t)+`: `+Su(e)},md(Ad,{toKeyedSeq:function(){return new _f(this,!1)},filter:function(e,t){return Dl(this,fl(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return t===void 0?-1:t},reverse:function(){return Dl(this,dl(this,!1))},slice:function(e,t){return Dl(this,gl(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),n===0||n===2&&!t)return this;e=Ic(e,e<0?this.count():this.size);var r=this.slice(0,e);return Dl(this,n===1?r:r.concat(Hl(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Dl(this,bl(this,e,!1))},get:function(e,t){return e=Nc(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=Nc(this,e),e>=0&&(this.size===void 0?this.find(function(t,n){return n===e},void 0,Ud)!==Ud:this.size===1/0||e<this.size)},interpose:function(e){return Dl(this,Sl(this,e))},interleave:function(){var e=[this].concat(Hl(arguments)),t=El(this.toSeq(),Xd.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Dl(this,n)},keySeq:function(){return Yf(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Dl(this,vl(this,e,t,!1))},zip:function(){var e=[this].concat(Hl(arguments));return Dl(this,El(this,hd,e))},zipAll:function(){var e=[this].concat(Hl(arguments));return Dl(this,El(this,hd,e,!0))},zipWith:function(e){var t=Hl(arguments);return t[0]=this,Dl(this,El(this,e,t))}}),rp=Ad.prototype,rp[Td]=!0,rp[Gd]=!0,md(jd,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),ip=jd.prototype,ip.has=tp.includes,ip.contains=ip.includes,ip.keys=ip.values,md(Yd,np),md(Xd,rp),md(Zd,ip),ap=function(e){function t(e){return e==null?vd():gd(e)?e:vd().withMutations(function(t){var n=jd(e);ou(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(kd(e).keySeq())},t.prototype.toString=function(){return this.__toString(`OrderedSet {`,`}`)},t}(Qf),ap.isOrderedSet=gd,op=ap.prototype,op[Gd]=!0,op.zip=rp.zip,op.zipWith=rp.zipWith,op.zipAll=rp.zipAll,op.__empty=vd,op.__make=_d,cp=function(e,t){var n;yd(e);var r=function(a){var o=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),c=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var u=s[l];c[u]=l,i[u]?typeof console==`object`&&console.warn&&console.warn(`Cannot define `+xd(this)+` with property "`+u+`" since that property name is part of the Record API.`):oee(i,u)}}return this.__ownerID=void 0,this._values=Rf().withMutations(function(e){e.setSize(o._keys.length),kd(a).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(lp);return i.constructor=r,t&&(r.displayName=t),r},cp.prototype.toString=function(){for(var e=xd(this)+` { `,t=this._keys,n,r=0,i=t.length;r!==i;r++)n=t[r],e+=(r?`, `:``)+n+`: `+Su(this.get(n));return e+` }`},cp.prototype.equals=function(e){return this===e||Bc(e)&&Sd(this).equals(Sd(e))},cp.prototype.hashCode=function(){return Sd(this).hashCode()},cp.prototype.has=function(e){return this._indices.hasOwnProperty(e)},cp.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return r===void 0?this._defaultValues[e]:r},cp.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return bd(this,n)}return this},cp.prototype.remove=function(e){return this.set(e)},cp.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:bd(this,e)},cp.prototype.wasAltered=function(){return this._values.wasAltered()},cp.prototype.toSeq=function(){return Sd(this)},cp.prototype.toJS=function(){return ud(this)},cp.prototype.entries=function(){return this.__iterator(Pd)},cp.prototype.__iterator=function(e,t){return Sd(this).__iterator(e,t)},cp.prototype.__iterate=function(e,t){return Sd(this).__iterate(e,t)},cp.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?bd(this,t,e):(this.__ownerID=e,this._values=t,this)},cp.isRecord=Bc,cp.getDescriptiveName=xd,lp=cp.prototype,lp[Wd]=!0,lp[zd]=lp.remove,lp.deleteIn=lp.removeIn=Ou,lp.getIn=od,lp.hasIn=tp.hasIn,lp.merge=Il,lp.mergeWith=Ll,lp.mergeIn=Zl,lp.mergeDeep=Jl,lp.mergeDeepWith=Yl,lp.mergeDeepIn=Xl,lp.setIn=$l,lp.update=eu,lp.updateIn=tu,lp.withMutations=ru,lp.asMutable=Zc,lp.asImmutable=Xc,lp[Ld]=lp.entries,lp.toJSON=lp.toObject=tp.toObject,lp.inspect=lp.toSource=function(){return this.toString()}})),dp,fp=s((()=>{gc(),up(),dp=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>Cd({data:hc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:hc(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``})})),pp,mp,hp,gp,_p,vp,yp=s((()=>{pp=new Map,mp=new Map,hp=new Map,gp=new Set,_p=new Map,vp=new Set}));function cee(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 bp=s((()=>{}));function xp(e,t,n){n||={};let r,i;switch(t){case`RFC3548`:case`RFC4648`:r=Sp,i=!0;break;case`RFC4648-HEX`:r=Cp,i=!0;break;case`Crockford`:r=wp,i=!1;break;default:throw Error(`Unknown base32 variant: `+t)}let a=n.padding===void 0?i:n.padding,o=cee(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 Sp,Cp,wp,Tp=s((()=>{bp(),Sp=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,Cp=`0123456789ABCDEFGHIJKLMNOPQRSTUV`,wp=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`})),Ep,Dp,Op,kp,Ap=s((()=>{Tp(),Ep=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,Dp=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},Op=()=>{let e=Dp().replaceAll(`-`,``),{buffer:t}=new Uint8Array(e.match(/../g).map(e=>parseInt(e,16)));return xp(t,`RFC4648`,{padding:!1}).toLowerCase()},kp=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(``)}})),jp,Mp,Np,lee,Pp,Fp,Ip=s((()=>{jp=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),Mp=(e,t,{ellipsis:n=`…`}={})=>{let r=[...e];return`${r.slice(0,t).join(``).trim()}${r.length>t?n:``}`},Np=e=>e.replace(/^\/+/,``).replace(/\/+$/,``),lee=e=>new DOMParser().parseFromString(e,`text/html`).body.textContent,Pp=e=>{if(typeof URL.canParse==`function`)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}},Fp=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`}).compare})),Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp=s((()=>{Ap(),Ip(),Lp=(e=``)=>RegExp(`\\bblob:${jp(globalThis.location.origin)}\\/${Ep.source}\\b`,e),Rp=/(?:(.+?)\/)?(([^/]+?)(?:\.((?:tar\.)?[a-zA-Z0-9]+))?)$/,zp=[`application/atom+xml`,`application/javascript`,`application/json`,`application/ld+json`,`application/rss+xml`,`application/xhtml+xml`,`application/xml`,`application/yaml`,`image/svg+xml`],Bp=e=>e.startsWith(`text/`)||zp.includes(e),Vp=e=>{let[,t,n,r,i]=e.match(Rp)??[];return{dirname:t,basename:n,filename:r,extension:i}},Hp=(e,t)=>!t.length||t.some(t=>{if(t=t.toLowerCase(),t.startsWith(`.`))return e.name.toLowerCase().endsWith(t);let[n,r]=t.split(`/`);return r===`*`?e.type.split(`/`)[0]===n:e.type===t}),Up=async({items:e},{accept:t}={})=>{let n=t?t.trim().split(/,\s*/):[],r=e=>new Promise(t=>{if(e.name.startsWith(`.`))t(null);else if(e.isFile)e.file(e=>{t(Hp(e,n)?e:null)},()=>{t(null)});else{let n=e.createReader(),i=[],a=()=>{n.readEntries(e=>{e.length?(i.push(...e),a()):t(Promise.all(i.map(r)))})};a()}});return(await Promise.all([...e].map(e=>{let t=e.webkitGetAsEntry();return t?r(t):null}))).flat(1/0).filter(Boolean).sort((e,t)=>e.name.localeCompare(t.name))},Wp=async e=>(await e.text()).replace(/\r\n?/g,`
`),Gp=async e=>{let t=typeof e==`string`?new Blob([e],{type:`text/plain`}):e,n=new FileReader;return new Promise((e,r)=>{n.onload=()=>{e(n.result)},n.onerror=()=>{r(n.error)},n.readAsDataURL(t)})},Kp=async e=>(await Gp(e)).split(`,`)[1],qp=async e=>{let t=Uint8Array.fromBase64(e);return new TextDecoder().decode(t)},Jp=(e,t)=>{let n=document.createElement(`a`),r=URL.createObjectURL(e);n.download=t??e.name??`${Date.now()}.${e.type.split(`/`)[1]}`,n.href=r,n.click(),globalThis.setTimeout(()=>{URL.revokeObjectURL(r)},0)}}));function Xp(e,t){var n=Xi,r=Ji,i=e();let a=ln(i,t=>{var a=i!==e(),o,s=Ji,c=Xi;Ai(r),ji(n);try{o=oi(()=>{ui(()=>{let n=e();a&&t(n)})})}finally{Ai(s),ji(c)}return a=!0,o});return t?{set:t,update:n=>t(n(e())),subscribe:a.subscribe}:{subscribe:a.subscribe}}var Zp=s((()=>{Ei(),pn(),Pn(),ia()})),Qp,$p,em,tm,nm,rm=s((()=>{Qp=/{{(.+?)}}/,$p=new RegExp(Qp.source,`g`),em=/\\\{\\\{.+?\\\}\\\}/g,tm=[`year`,`month`,`day`,`hour`,`minute`,`second`],nm=/^{{(?<innerTag>.+?)}}$/})),im,am,om,sm,cm,lm,uee,um,dm,fm=s((()=>{Yp(),Ip(),Zp(),rm(),im=ln([]),am=un([im],([e],t)=>{t(e.find(({collectionName:e,internalPath:t})=>e===void 0&&t!==void 0))}),om=ln(),sm=un([om,am],([e,t])=>e?.internalPath===void 0?t:e),cm=e=>{let t=`typedKeyPath`in e?e.typedKeyPath?.match(/[^:]+$/)?.[0]:e.typedKeyPath;return dn(im).find(n=>(`typedKeyPath`in e?n.typedKeyPath===t:!n.typedKeyPath)?`componentName`in e?n.componentName===e.componentName:n.collectionName===e.collectionName&&n.fileName===e.fileName&&(`isIndexFile`in e?n.isIndexFile===e.isIndexFile:!n.isIndexFile):!1)},lm={source:void 0,items:[],entryRelative:[]},uee=()=>{let e=dn(im);if(e===lm.source)return lm;let t=[],n=[];return e.forEach(e=>{let{internalPath:r,entryRelative:i}=e;if(r!==void 0)if(i)n.push(e);else{let n=jp(r).replace(em,`.+?`);t.push({folder:e,regexSub:RegExp(`^${n}${r?`(?=\\/|$)`:`$`}`),regexExact:RegExp(`^${n}$`)})}}),lm.source=e,lm.items=t,lm.entryRelative=n,lm},um=(e,{matchSubFolders:t=!0}={})=>{let{filename:n,dirname:r}=Vp(e);if(n.startsWith(`+`))return[];let{items:i,entryRelative:a}=uee(),o=r??``;return[...a.filter(({internalPath:t})=>e.startsWith(`${t}/`)),...i.filter(({regexSub:e,regexExact:n})=>(t?e:n).test(o)).map(({folder:e})=>e)].sort((e,t)=>t.internalPath.localeCompare(e.internalPath))},dm=e=>!!e&&!e.entryRelative&&!e.hasTemplateTags}));function dee(e,t){let n=t,r=e.slice(n).match(pm);r&&(n+=r[0].length);let i=e.slice(n).match(mm);if(!i)return null;let a=i[0];if(fee.test(a))return null;n+=a.length;let o=e.slice(n).match(pm);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var pm,mm,fee,pee,hm=s((()=>{pm=/^[\u061c\u200e\u200f\u2066-\u2069]+/,mm=/^[-.+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,fee=/^[-.0-9]/,pee=(e,t)=>e.slice(t).match(mm)?.[0]??``})),gm,mee=s((()=>{gm=Symbol.for(`CST`)})),_m,vm,ym,bm,xm,Sm=s((()=>{mee(),_m=class extends Error{type;constructor(e,t){super(t),this.type=e}},vm=class extends _m{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}},ym=class extends vm{constructor(e,t){let{start:n,end:r}=t[gm]??{start:-1,end:-1};super(e,n,r)}},bm=class extends _m{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},xm=class extends _m{source;cause;constructor(e,t){super(e,t),this.source=`�`}}}));function Cm(e,t){if(Im.startsWith(e,Fm))t&&(Fm+=e.length);else throw Lm(Fm,e)}function hee(e){Fm=0,Im=e;let t=vee();if(Im.startsWith(`.match`,Fm))return gee(t);let n=t.length>0||Im.startsWith(`{{`,Fm);!n&&Fm>0&&(Fm=0);let r=wm(n);if(n&&(Mm(),Fm<Im.length))throw Rm(`extra-content`,Fm,Im.length);return{type:`message`,declarations:t,pattern:r}}function gee(e){Fm+=6,Mm(!0);let t=[];for(;Im[Fm]===`$`;)t.push(Om()),Mm(!0);if(t.length===0)throw Rm(`empty-token`,Fm);let n=[];for(;Fm<Im.length;)n.push(_ee()),Mm();return{type:`select`,declarations:e,selectors:t,variants:n}}function _ee(){let e=[];for(;Fm<Im.length;){Mm(e.length?`{`:!1);let t=Im[Fm];if(t===`{`)break;if(t===`*`)e.push({type:`*`}),Fm+=1;else{let t=km(!0);t.value=t.value.normalize(),e.push(t)}}return{keys:e,value:wm(!0)}}function wm(e){if(e)if(Im.startsWith(`{{`,Fm))Fm+=2;else throw Lm(Fm,`{{`);let t=[];loop:for(;Fm<Im.length;)switch(Im[Fm]){case`{`:t.push(Tm(!0));break;case`}`:if(!e)throw Rm(`parse-error`,Fm);break loop;default:t.push(See())}if(e)if(Im.startsWith(`}}`,Fm))Fm+=2;else throw Lm(Fm,`}}`);return t}function vee(){let e=[];Mm();loop:for(;Im[Fm]===`.`;){switch(Im.substr(Fm,6)){case`.input`:e.push(yee());break;case`.local`:e.push(bee());break;case`.match`:break loop;default:throw Rm(`parse-error`,Fm)}Mm()}return e}function yee(){Fm+=6,Mm(),Cm(`{`,!1);let e=Fm,t=Tm(!1);if(t.type===`expression`&&t.arg?.type===`variable`)return{type:`input`,name:t.arg.name,value:t};throw Rm(`bad-input-expression`,e,Fm)}function bee(){Fm+=6,Mm(!0),Cm(`$`,!0);let e=jm();return Mm(),Cm(`=`,!0),Mm(),Cm(`{`,!1),{type:`local`,name:e,value:Tm(!1)}}function Tm(e){let t=Fm;Fm+=1,Mm();let n=Dm(!1);n&&Mm(`}`);let r=Im[Fm],i,a;switch(r){case`@`:case`}`:break;case`:`:{Fm+=1,i={type:`function`,name:Am()};let e=Em();e&&(i.options=e);break}case`#`:case`/`:{if(n||!e)throw Rm(`parse-error`,Fm);Fm+=1,a={type:`markup`,kind:r===`#`?`open`:`close`,name:Am()};let t=Em();t&&(a.options=t);break}default:throw Rm(`parse-error`,Fm)}let o=xee();if(a?.kind===`open`&&Im[Fm]===`/`&&(a.kind=`standalone`,Fm+=1),Cm(`}`,!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 Rm(`empty-token`,t,Fm);return o?{type:`expression`,arg:n,attributes:o}:{type:`expression`,arg:n}}function Em(){Mm(`/}`);let e={},t=!0;for(;Fm<Im.length;){let n=Im[Fm];if(n===`@`||n===`/`||n===`}`)break;let r=Fm,i=Am();if(Object.hasOwn(e,i))throw Rm(`duplicate-option-name`,r,Fm);Mm(),Cm(`=`,!0),Mm(),e[i]=Dm(!0),t=!1,Mm(`/}`)}return t?null:e}function xee(){let e={},t=!0;for(;Im[Fm]===`@`;){let n=Fm;Fm+=1;let r=Am();if(Object.hasOwn(e,r))throw Rm(`duplicate-attribute`,n,Fm);Mm(`=/}`),Im[Fm]===`=`?(Fm+=1,Mm(),e[r]=km(!0),Mm(`/}`)):e[r]=!0,t=!1}return t?null:e}function See(){let e=``,t=Fm;loop:for(;t<Im.length;++t)switch(Im[t]){case`\\`:{let n=Im[t+1];if(!`\\{|}`.includes(n))throw Rm(`bad-escape`,t,t+2);e+=Im.substring(Fm,t)+n,t+=1,Fm=t+1;break}case`{`:case`}`:break loop}return e+=Im.substring(Fm,t),Fm=t,e}function Dm(e){return Im[Fm]===`$`?Om():km(e)}function Om(){return Fm+=1,{type:`variable`,name:jm()}}function km(e){if(Im[Fm]===`|`)return Cee();let t=pee(Im,Fm);if(!t){if(e)throw Rm(`empty-token`,Fm);return}return Fm+=t.length,{type:`literal`,value:t}}function Cee(){Fm+=1;let e=``;for(let t=Fm;t<Im.length;++t)switch(Im[t]){case`\\`:{let n=Im[t+1];if(!`\\{|}`.includes(n))throw Rm(`bad-escape`,t,t+2);e+=Im.substring(Fm,t)+n,t+=1,Fm=t+1;break}case`|`:return e+=Im.substring(Fm,t),Fm=t+1,{type:`literal`,value:e}}throw Lm(Im.length,`|`)}function Am(){let e=jm();return Im[Fm]===`:`?(Fm+=1,e+`:`+jm()):e}function jm(){let e=dee(Im,Fm);if(!e)throw Rm(`empty-token`,Fm);return Fm=e.end,e.value}function Mm(e=!1){let t=Im[Fm],n=!1;if(e){for(;Nm.has(t);)t=Im[++Fm];for(;Pm.has(t);)t=Im[++Fm],n=!0}for(;Nm.has(t)||Pm.has(t);)t=Im[++Fm];if(e&&!n&&(e===!0||!e.includes(Im[Fm])))throw Lm(Fm,`' '`)}var Nm,Pm,Fm,Im,Lm,Rm,wee=s((()=>{hm(),Sm(),Nm=new Set(`؜‎‏⁦⁧⁨⁩`),Pm=new Set(`	
\r 　`),Lm=(e,t)=>new vm(`missing-syntax`,e,e+t.length,t),Rm=(...e)=>new vm(...e)}));function Tee(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);break}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?.()}}}var Eee=s((()=>{}));function Dee(e,t=(e,t)=>{throw new ym(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;Tee(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 Oee=s((()=>{Sm(),Eee()}));function zm(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 kee.includes(n)?`rtl`:`ltr`}catch{}return`auto`}var kee,Bm=s((()=>{kee=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`}));function Aee(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 Vm(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 Hm(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`)}var Um=s((()=>{}));function Wm(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 xm(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function Gm(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],zm(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(typeof r==`bigint`?r*=100n:r*=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??=zm(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 Km(e,t,n){let r=Wm(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]=Vm(r);break;case`roundingMode`:case`roundingPriority`:case`select`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:a[n]=Hm(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :number option ${n}`)}return Gm(e,i,a,!0)}function jee(e,t,n){let r=Wm(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]=Vm(r);break;case`select`:case`signDisplay`:case`useGrouping`:a[n]=Hm(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :integer option ${n}`)}return Gm(e,i,a,!0)}var qm=s((()=>{Bm(),Sm(),Um()}));function Mee(e,t,n){let r=Wm(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]=Hm(r);break;case`minimumIntegerDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=Vm(r);break;case`currencyDisplay`:{let t=Hm(r);t===`never`?e.onError(`unsupported-operation`,`Currency display "never" is not yet supported`):i[n]=t;break}case`fractionDigits`:{let e=Hm(r);if(e===`auto`)i.minimumFractionDigits=void 0,i.maximumFractionDigits=void 0;else{let t=Vm(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 xm(`bad-operand`,`A currency code is required for :currency`);return Gm(e,r.value,i,!1)}var Nee=s((()=>{Sm(),qm(),Um()}));function Jm(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 xm(`bad-operand`,`Input is not a valid date`);if(n.calendar!==void 0)try{i.calendar=Hm(n.calendar)}catch{t.onError(`bad-option`,`Invalid :${e} calendar option value`)}if(n.hour12!==void 0&&e!==`date`)try{i.hour12=Aee(n.hour12)}catch{t.onError(`bad-option`,`Invalid :${e} hour12 option value`)}if(n.timeZone!==void 0){let r;try{r=Hm(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 xm(`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=Ym(t,n,r,Xm)??`year-month-day`,s=Ym(t,n,a,Zm),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(Ym(t,n,e===`time`?`precision`:`timePrecision`,Qm)){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=Ym(t,n,`timeZoneStyle`,$m)}let o=new Intl.DateTimeFormat(t.locales,i),s=t.dir,c,l;return{type:`datetime`,get dir(){return s??=(c??=o.resolvedOptions().locale,zm(c)),s},get options(){return{...i}},toParts(){let e=o.formatToParts(a);return c??=o.resolvedOptions().locale,s??=zm(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 Ym(e,t,n,r){let i=t[n];if(i!==void 0)try{let e=Hm(i);if(r&&!r.has(e))throw Error();return e}catch{e.onError(`bad-option`,`Invalid value for ${n} option`)}}var Xm,Zm,Qm,$m,eh,th,nh,Pee=s((()=>{Bm(),Sm(),Um(),Xm=new Set([`weekday`,`day-weekday`,`month-day`,`month-day-weekday`,`year-month-day`,`year-month-day-weekday`]),Zm=new Set([`long`,`medium`,`short`]),Qm=new Set([`hour`,`minute`,`second`]),$m=new Set([`long`,`short`]),eh=(e,t,n)=>Jm(`datetime`,e,t,n),th=(e,t,n)=>Jm(`date`,e,t,n),nh=(e,t,n)=>Jm(`time`,e,t,n)}));function Fee(e,t,n){let{value:r,options:i}=Wm(n),a;try{a=`add`in t?Vm(t.add):-1}catch{throw new xm(`bad-option`,`Value ${t.add} is not valid for :offset option add`)}let o;try{o=`subtract`in t?Vm(t.subtract):-1}catch{throw new xm(`bad-option`,`Value ${t.subtract} is not valid for :offset option subtract`)}if(a<0==o<0)throw new xm(`bad-option`,`Exactly one of "add" or "subtract" is required as an :offset option`);let s=a<0?-o:a;return typeof r==`number`?r+=s:r+=BigInt(s),Km(e,{},{valueOf:()=>r,options:i})}var Iee=s((()=>{Sm(),qm(),Um()}));function Lee(e,t,n){let r=Wm(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]=Hm(r);break;case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:i[n]=Vm(r);break}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :percent option ${n}`)}return Gm(e,r.value,i,!0)}var Ree=s((()=>{qm(),Um()}));function rh(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}}var ih=s((()=>{}));function zee(e,t,n){let r=Wm(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]=Hm(r);break;case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=Vm(r);break}}catch(t){t instanceof _m?e.onError(t):e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.unit)throw new xm(`bad-operand`,`A unit identifier is required for :unit`);return Gm(e,r.value,i,!1)}var Bee=s((()=>{Sm(),qm(),Um()})),ah,oh,sh=s((()=>{Bm(),Nee(),Pee(),qm(),Iee(),Ree(),ih(),Bee(),ah={integer:jee,number:Km,offset:Fee,string:rh},ah=Object.freeze(Object.assign(Object.create(null),ah)),oh={currency:Mee,date:th,datetime:eh,percent:Lee,time:nh,unit:zee},oh=Object.freeze(Object.assign(Object.create(null),oh))})),ch,lh=s((()=>{ch=Symbol(`bidi-isolate`)})),uh,dh=s((()=>{uh=(e=`�`)=>({type:`fallback`,source:e,toParts:()=>[{type:`fallback`,source:e}],toString:()=>`{${e}}`})})),fh,Vee=s((()=>{fh=(e,t)=>({type:`unknown`,source:e,dir:`auto`,toParts:()=>[{type:`unknown`,value:t}],toString:()=>String(t),valueOf:()=>t})})),ph,mh=s((()=>{Sm(),Th(),ph=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(Ch(e,r));if(t===`ltr`||t===`rtl`||t===`auto`)this.dir=t;else if(t!==`inherit`){let t=new xm(`bad-option`,`Unsupported value for u:dir option`);t.source=wh(r),e.onError(t)}}let i=n&&Object.hasOwn(n,`u:id`)?n[`u:id`]:void 0;if(this.id=i?String(Ch(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 xm?n=e:typeof e==`string`&&typeof t==`string`?n=new xm(e,t):(n=new xm(`function-error`,String(e)),n.cause=e),n.source=this.#n,this.#e.onError(n)}}}));function Hee(e,t,{name:n,options:r}){let i=`:${n}`,a=wh(t)??i;try{let o=t?[Ch(e,t)]:[],s=e.functions[n];if(!s)throw new bm(`unknown-function`,`Unknown function ${i}`,a);let c=new ph(e,a,r),l=s(c,Uee(e,r),...o);if(typeof l!=`object`||!l||typeof l.type!=`string`)throw new bm(`bad-function-result`,`Function ${i} did not return a MessageValue`,a);let u={source:a};return c.dir&&(u.dir=c.dir,u[ch]=!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 _m?t:new bm(`bad-function-result`,String(t),a,t)),uh(a)}}function Uee(e,t){let n=Object.create(null);if(t)for(let[r,i]of Object.entries(t))r.startsWith(`u:`)||(n[r]=Ch(e,i));return n}var Wee=s((()=>{Sm(),dh(),lh(),mh(),Th()}));function hh(e,{arg:t,functionRef:n}){if(n)return Hee(e,t,n);switch(t?.type){case`literal`:{let n=`|${t.value}|`,r=rh(new ph(e,n),{},t.value);return r.source=n,r}case`variable`:return yh(e,t);default:throw Error(`Unsupported expression: ${t?.type}`)}}var gh=s((()=>{ih(),mh(),Wee(),Sh()}));function _h(e,t){if(xh(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 _h(e[r],i)}}for(let[n,r]of Object.entries(e))if(n.normalize()===t)return r}}function vh(e,{name:t}){let n=_h(e.scope,t);if(n===void 0){let n=`$`+t,r=`Variable not available: ${n}`;e.onError(new bm(`unresolved-variable`,r,n))}else if(n instanceof bh){let r=hh(n.scope?{...e,scope:n.scope}:e,n.expression);return e.scope[t]=r,e.localVars.add(r),r}return n}function yh(e,t){let n=`$`+t.name,r=vh(e,t);if(r===void 0)return uh(n);let i=typeof r;if(i===`object`){let t=r;if(t.type===`fallback`)return uh(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 fh(n,r)}let o=new ph(e,n),s=a(o,{},r);return s.source=n,s}var bh,xh,Sh=s((()=>{Sm(),dh(),Vee(),mh(),gh(),bh=class{expression;scope;constructor(e,t){this.expression=e,this.scope=t}},xh=e=>e!==null&&(typeof e==`object`||typeof e==`function`)}));function Ch(e,t){switch(t.type){case`literal`:return t.value;case`variable`:return vh(e,t);default:throw Error(`Unsupported value: ${t.type}`)}}function wh(e){switch(e?.type){case`literal`:return`|`+e.value.replaceAll(`\\`,`\\\\`).replaceAll(`|`,`\\|`)+`|`;case`variable`:return`$`+e.name;default:return}}var Th=s((()=>{Sh()}));function Eh(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 xm(`bad-option`,`The option ${t} is not valid for markup`);r.source=wh(n),e.onError(r)}else{let r=Ch(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}var Gee=s((()=>{Sm(),Th()}));function Dh(e,t){if(t.type===`message`)return t.pattern;let n=t.selectors.map(t=>{let n=yh(e,t),r;return typeof n.selectKey==`function`?r=n.selectKey.bind(n):(e.onError(new bm(`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 bm(`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 bm(`no-match`,`No variant was selected!?`,`.match`)),[])}var Kee=s((()=>{Sm(),Sh()})),Oh,qee=s((()=>{wee(),Oee(),Bm(),Sm(),sh(),lh(),Gee(),gh(),Sh(),Kee(),Oh=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??zm(this.#r[0]),this.#i=typeof t==`string`?hee(t):t,Dee(this.#i),this.#a=n?.functions?Object.assign(Object.create(null),ah,n.functions):ah}format(e,t){let n=this.#o(e,t),r=``;for(let e of Dh(n,this.#i))if(typeof e==`string`)r+=e;else if(e.type===`markup`)Eh(n,e);else{let t;try{if(t=hh(n,e),typeof t.toString==`function`)if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[ch])){let e=t.dir===`ltr`?`⁦`:t.dir===`rtl`?`⁧`:`⁨`;r+=e+t.toString()+`⁩`}else r+=t.toString();else{let e=new xm(`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 Dh(n,this.#i))if(typeof e==`string`)r.push({type:`text`,value:e});else if(e.type===`markup`)r.push(Eh(n,e));else{let t;try{if(t=hh(n,e),typeof t.toParts==`function`){let e=t.toParts();if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[ch])){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 xm(`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 bh(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}}}})),Jee=s((()=>{wee(),hm(),Oee(),Sm(),qee()})),Yee=s((()=>{J(),Mr(),Pt(),ia()})),Xee=s((()=>{Mr(),Pt(),ia()})),kh,Zee=s((()=>{x(),Mr(),Pt(),ia(),kh=class extends Map{#e=new Map;#t=N(0);#n=N(0);#r=ra||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return ra===this.#r?N(e):Cr(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 z(this.#t),!1;return z(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{z(this.#t);return}return z(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),Dr(o);else if(i!==t){Dr(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&Dr(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),Dr(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);Dr(this.#t),e.clear()}}#a(){z(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)z(n)}keys(){return z(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return z(this.#n),super.size}}})),Ah=s((()=>{Mr(),Pt(),ia(),jh()})),jh=s((()=>{Mr(),Pt(),ia(),Ah()})),Mh=s((()=>{Ma()})),Qee=s((()=>{Pn()})),$ee=s((()=>{Mh(),Qee()})),Nh=s((()=>{Yee(),Xee(),Zee(),jh(),Ah(),$ee(),Pn()})),Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,ete,Y,X=s((()=>{J(),Jee(),sh(),Nh(),Intl.MessageFormat??=Oh,Ph=N(``),Fh=Nr([]),Ih=Nr({}),Lh=``,Rh=``,Bh=new Set([`ar`,`arc`,`ckb`,`dv`,`fa`,`ha`,`he`,`khw`,`ks`,`ku`,`nqo`,`ps`,`sd`,`ug`,`ur`,`yi`]),Vh=e=>e.textInfo?.direction??(Bh.has(e.language)?`rtl`:`ltr`),Hh=(e=z(Ph))=>{if(!e)return!1;try{return Vh(new Intl.Locale(e))===`rtl`}catch{return!1}},Uh=(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}},Wh=(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,Wh(r,i)):e[i]=r,e},Object.create(null)),Gh=e=>{Fh.includes(e)||(Fh.push(e),Rh=Uh(Lh,Fh))},Kh=(e,...t)=>{if(typeof e!=`string`||!e)throw TypeError(`addMessages: localeCode must be a non-empty string (got ${JSON.stringify(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})`)}),Gh(e),Ih[e]??={},t.forEach(t=>{Object.entries(Wh(t)).forEach(([t,n])=>{Ih[e][t]=new Intl.MessageFormat(e,String(n),{functions:oh})})}),z(Ph)&&!Fh.includes(z(Ph))&&Xh.set(z(Ph))},qh=new kh,Jh=new kh,Yh=(e=z(Ph))=>{if(typeof e!=`string`)throw TypeError(`waitLocale: localeCode must be a string (got ${typeof e})`);if(!e)return Promise.resolve();if(!Jh.has(e)){let t=qh.get(e);if(t){let n=Promise.resolve(t()).then(t=>{Kh(e,t)},()=>{Jh.delete(e),z(Ph)===e&&!Ih[e]&&Rh&&P(Ph,Rh,!0)});Jh.set(e,n)}else Jh.set(e,Promise.resolve())}return Jh.get(e)??Promise.resolve()},Xh={get current(){return z(Ph)},set(e){if(typeof e!=`string`)throw TypeError(`locale.set: value must be a string (got ${typeof e})`);let t=Fh.length?Uh(e,Fh):e;if(e&&Fh.length&&!Fh.includes(t)&&Rh&&Fh.includes(Rh)&&(t=Rh),P(Ph,t,!0),typeof document<`u`&&t){document.documentElement.lang=t;try{let e=new Intl.Locale(t);document.documentElement.dir=Vh(e)}catch{}}return Yh(t)}},Zh=()=>typeof navigator>`u`?void 0:navigator.languages?.[0]??navigator.language,ete=e=>{if(!e||typeof e.fallbackLocale!=`string`)throw TypeError(`init: fallbackLocale must be a string (got ${JSON.stringify(e?.fallbackLocale)})`);if(e.initialLocale!==void 0&&typeof e.initialLocale!=`string`)throw TypeError(`init: initialLocale must be a string (got ${typeof e.initialLocale})`);if(e.handleMissingMessage!==void 0&&typeof e.handleMissingMessage!=`function`)throw TypeError(`init: handleMissingMessage must be a function (got ${typeof e.handleMissingMessage})`);Lh=e.fallbackLocale,Rh=Uh(Lh,Fh),zh=e.handleMissingMessage,e.formats,e.initialLocale&&Xh.set(e.initialLocale)},Y=(e,{values:t={},locale:n,default:r}={})=>{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}=e;return Y(t,{values:n,locale:r,default:i})}let i=n??z(Ph),a=Rh,o=Ih[i]?.[e]?.format(t)??(i===a?void 0:Ih[a]?.[e]?.format(t));if(o!==void 0)return o;if(zh){let t=zh(e,i,r);if(t!==void 0)return t}return r??e}})),tte=c(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g}));function Qh(e){if(e&&typeof e==`object`)switch(e[og]){case ng:case ag:return!0}return!1}function $h(e){if(e&&typeof e==`object`)switch(e[og]){case eg:case ng:case ig:case ag:return!0}return!1}var eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg=s((()=>{eg=Symbol.for(`yaml.alias`),tg=Symbol.for(`yaml.document`),ng=Symbol.for(`yaml.map`),rg=Symbol.for(`yaml.pair`),ig=Symbol.for(`yaml.scalar`),ag=Symbol.for(`yaml.seq`),og=Symbol.for(`yaml.node.type`),sg=e=>!!e&&typeof e==`object`&&e[og]===eg,cg=e=>!!e&&typeof e==`object`&&e[og]===tg,lg=e=>!!e&&typeof e==`object`&&e[og]===ng,ug=e=>!!e&&typeof e==`object`&&e[og]===rg,dg=e=>!!e&&typeof e==`object`&&e[og]===ig,fg=e=>!!e&&typeof e==`object`&&e[og]===ag,pg=e=>(dg(e)||Qh(e))&&!!e.anchor}));function hg(e,t){let n=nte(t);cg(e)?gg(null,e.contents,n,Object.freeze([e]))===xg&&(e.contents=null):gg(null,e,n,Object.freeze([]))}function gg(e,t,n,r){let i=rte(e,t,n,r);if($h(i)||ug(i))return ite(e,r,i),gg(e,i,n,r);if(typeof i!=`symbol`){if(Qh(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=gg(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===yg)return yg;else i===xg&&(t.items.splice(e,1),--e)}}else if(ug(t)){r=Object.freeze(r.concat(t));let e=gg(`key`,t.key,n,r);if(e===yg)return yg;e===xg&&(t.key=null);let i=gg(`value`,t.value,n,r);if(i===yg)return yg;i===xg&&(t.value=null)}}return i}async function _g(e,t){let n=nte(t);cg(e)?await vg(null,e.contents,n,Object.freeze([e]))===xg&&(e.contents=null):await vg(null,e,n,Object.freeze([]))}async function vg(e,t,n,r){let i=await rte(e,t,n,r);if($h(i)||ug(i))return ite(e,r,i),vg(e,i,n,r);if(typeof i!=`symbol`){if(Qh(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await vg(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===yg)return yg;else i===xg&&(t.items.splice(e,1),--e)}}else if(ug(t)){r=Object.freeze(r.concat(t));let e=await vg(`key`,t.key,n,r);if(e===yg)return yg;e===xg&&(t.key=null);let i=await vg(`value`,t.value,n,r);if(i===yg)return yg;i===xg&&(t.value=null)}}return i}function nte(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function rte(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(lg(t))return n.Map?.(e,t,r);if(fg(t))return n.Seq?.(e,t,r);if(ug(t))return n.Pair?.(e,t,r);if(dg(t))return n.Scalar?.(e,t,r);if(sg(t))return n.Alias?.(e,t,r)}function ite(e,t,n){let r=t[t.length-1];if(Qh(r))r.items[e]=n;else if(ug(r))e===`key`?r.key=n:r.value=n;else if(cg(r))r.contents=n;else{let e=sg(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var yg,bg,xg,Sg=s((()=>{mg(),yg=Symbol(`break visit`),bg=Symbol(`skip children`),xg=Symbol(`remove node`),hg.BREAK=yg,hg.SKIP=bg,hg.REMOVE=xg,_g.BREAK=yg,_g.SKIP=bg,_g.REMOVE=xg})),ate,ote,Cg,ste=s((()=>{mg(),Sg(),ate={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},ote=e=>e.replace(/[!,[\]{}]/g,e=>ate[e]),Cg=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ote(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&$h(e.contents)){let t={};hg(e.contents,(e,n)=>{$h(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
`)}},Cg.defaultYaml={explicit:!1,version:`1.2`},Cg.defaultTags={"!!":`tag:yaml.org,2002:`}}));function cte(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function lte(e){let t=new Set;return hg(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ute(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function dte(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=lte(e);let a=ute(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(dg(t.node)||Qh(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}var wg=s((()=>{mg(),Sg()}));function Tg(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=Tg(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=Tg(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=Tg(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=Tg(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}var Eg=s((()=>{}));function Dg(e,t,n){if(Array.isArray(e))return e.map((e,t)=>Dg(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!pg(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var Og=s((()=>{mg()})),kg,Ag=s((()=>{Eg(),mg(),Og(),kg=class{constructor(e){Object.defineProperty(this,og,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!cg(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=Dg(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?Tg(i,{"":o},``,o):o}}}));function jg(e,t,n){if(sg(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Qh(t)){let r=0;for(let i of t.items){let t=jg(e,i,n);t>r&&(r=t)}return r}else if(ug(t)){let r=jg(e,t.key,n),i=jg(e,t.value,n);return Math.max(r,i)}return 1}var Mg,Ng=s((()=>{wg(),Sg(),mg(),Ag(),Og(),Mg=class extends kg{constructor(e){super(eg),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],hg(e,{Node:(e,t)=>{(sg(t)||pg(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(Dg(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=jg(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(cte(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}}})),Pg,Fg,Ig=s((()=>{mg(),Ag(),Og(),Pg=e=>!e||typeof e!=`function`&&typeof e!=`object`,Fg=class extends kg{constructor(e){super(ig),this.value=e}toJSON(e,t){return t?.keep?this.value:Dg(this.value,e,t)}toString(){return String(this.value)}},Fg.BLOCK_FOLDED=`BLOCK_FOLDED`,Fg.BLOCK_LITERAL=`BLOCK_LITERAL`,Fg.PLAIN=`PLAIN`,Fg.QUOTE_DOUBLE=`QUOTE_DOUBLE`,Fg.QUOTE_SINGLE=`QUOTE_SINGLE`}));function fte(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Lg(e,t,n){if(cg(e)&&(e=e.contents),$h(e))return e;if(ug(e)){let t=n.schema[ng].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new Mg(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=Rg+t.slice(2));let l=fte(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new Fg(e);return c&&(c.node=t),t}l=e instanceof Map?o[ng]:Symbol.iterator in Object(e)?o[ag]:o[ng]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new Fg(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}var Rg,zg=s((()=>{Ng(),mg(),Ig(),Rg=`tag:yaml.org,2002:`}));function Bg(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Lg(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var Vg,Hg,Ug=s((()=>{zg(),mg(),Ag(),Vg=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Hg=class extends kg{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>$h(t)||ug(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Vg(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(Qh(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,Bg(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(Qh(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&dg(i)?i.value:i:Qh(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!ug(t))return!1;let n=t.value;return n==null||e&&dg(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return Qh(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(Qh(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,Bg(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}}));function Wg(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Gg,Kg,qg=s((()=>{Gg=e=>e.replace(/^(?!$)(?: $)?/gm,`#`),Kg=(e,t,n)=>e.endsWith(`
`)?Wg(n,t):n.includes(`
`)?`
`+Wg(n,t):(e.endsWith(` `)?``:` `)+n}));function Jg(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=Yg(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
`)n===`block`&&(h=Yg(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
`&&p!==`	`){let t=e[h+1];t&&t!==` `&&t!==`
`&&t!==`	`&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===`	`;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function Yg(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===`	`;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
`);r=t,i=t+1,a=e[i]}return r}var Xg,Zg,Qg,pte=s((()=>{Xg=`flow`,Zg=`block`,Qg=`quoted`}));function mte(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function $g(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(a_(e)?`  `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`

`;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
`,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:Jg(o,a,Qg,i_(t,!1))}function e_(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
`)||/[ \t]\n|\n[ \t]/.test(e))return $g(e,t);let n=t.indent||(a_(e)?`  `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:Jg(r,n,Xg,i_(t,!1))}function t_(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=$g;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?e_:i&&!t?$g:n?e_:$g}return r(e,t)}function n_({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return t_(n,r);let l=r.indent||(r.forceBlockIndent||a_(n)?`  `:``),u=o===`literal`?!0:o===`folded`||t===Fg.BLOCK_FOLDED?!1:t===Fg.BLOCK_LITERAL||!mte(n,c,l.length);if(!n)return u?`|
`:`>
`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
`&&e!==`	`&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
`&&(p=p.slice(0,-1)),p.replace(o_,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
`)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=i_(r,!0);o!==`folded`&&t!==Fg.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=Jg(`${v}${e}${p}`,l,Zg,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function hte(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
`)||u&&/[[\]{},]/.test(a))return t_(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
`)?t_(a,t):n_(e,t,n,r);if(!s&&!u&&i!==Fg.PLAIN&&a.includes(`
`))return n_(e,t,n,r);if(a_(a)){if(c===``)return t.forceBlockIndent=!0,n_(e,t,n,r);if(s&&c===l)return t_(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return t_(a,t)}return s?d:Jg(d,c,Xg,i_(t,!1))}function r_(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==Fg.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=Fg.QUOTE_DOUBLE);let c=e=>{switch(e){case Fg.BLOCK_FOLDED:case Fg.BLOCK_LITERAL:return i||a?t_(o.value,t):n_(o,t,n,r);case Fg.QUOTE_DOUBLE:return $g(o.value,t);case Fg.QUOTE_SINGLE:return e_(o.value,t);case Fg.PLAIN:return hte(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}var i_,a_,o_,s_=s((()=>{Ig(),pte(),i_=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),a_=e=>/^(%|---|\.\.\.)/m.test(e);try{o_=RegExp(`(^|(?<!
))
+(?!
|$)`,`g`)}catch{o_=/\n+(?!\n|$)/g}}));function c_(e,t){let n=Object.assign({blockQuote:!0,commentString:Gg,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):`  `,inFlow:r,options:n}}function gte(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(dg(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function _te(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(dg(e)||Qh(e))&&e.anchor;a&&cte(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function l_(e,t,n,r){if(ug(e))return e.toString(t,n,r);if(sg(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=$h(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=gte(t.doc.schema.tags,a);let o=_te(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):dg(a)?r_(a,t,n,r):a.toString(t,n,r);return o?dg(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}var u_=s((()=>{wg(),mg(),qg(),s_()}));function vte({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=$h(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(Qh(e)||!$h(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||Qh(e)||(dg(e)?e.type===Fg.BLOCK_FOLDED||e.type===Fg.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=l_(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Kg(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Kg(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Kg(g,n.indent,l(f))));let _,v,y;$h(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&dg(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&fg(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=l_(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
`:``,v){let e=l(v);S+=`\n${Wg(e,n.indent)}`}x===``&&!n.inFlow?S===`
`&&y&&(S=`

`):S+=`\n${n.indent}`}else if(!p&&Qh(t)){let e=x[0],r=x.indexOf(`
`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
`)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=Kg(g,n.indent,l(y)):h&&i&&i(),g}var yte=s((()=>{mg(),Ig(),u_(),qg()}));function d_(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var f_=s((()=>{}));function p_(e,t,n){let r=h_(e,n);if(fg(r))for(let n of r.items)m_(e,t,n);else if(Array.isArray(r))for(let n of r)m_(e,t,n);else m_(e,t,r)}function m_(e,t,n){let r=h_(e,n);if(!lg(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function h_(e,t){return e&&sg(t)?t.resolve(e.doc,e):t}var g_,__,v_,y_=s((()=>{mg(),Ig(),g_=`<<`,__={identify:e=>e===g_||typeof e==`symbol`&&e.description===g_,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new Fg(Symbol(g_)),{addToJSMap:p_}),stringify:()=>g_},v_=(e,t)=>(__.identify(t)||dg(t)&&(!t.type||t.type===Fg.PLAIN)&&__.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===__.tag&&e.default)}));function b_(e,t,{key:n,value:r}){if($h(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(v_(e,n))p_(e,t,r);else{let i=Dg(n,``,e);if(t instanceof Map)t.set(i,Dg(r,i,e));else if(t instanceof Set)t.add(i);else{let a=bte(n,i,e),o=Dg(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function bte(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if($h(e)&&n?.doc){let t=c_(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),d_(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}var x_=s((()=>{f_(),y_(),u_(),mg(),Og()}));function S_(e,t,n){let r=Lg(e,void 0,n),i=Lg(t,void 0,n);return new C_(r,i)}var C_,w_=s((()=>{zg(),yte(),x_(),mg(),C_=class e{constructor(e,t=null){Object.defineProperty(this,og,{value:rg}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return $h(n)&&(n=n.clone(t)),$h(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return b_(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?vte(this,e,t,n):JSON.stringify(this)}}}));function T_(e,t,n){return(t.inFlow??e.flow?Ste:xte)(e,t,n)}function xte({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if($h(i))!d&&i.spaceBefore&&f.push(``),E_(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(ug(i)){let e=$h(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),E_(n,f,e.commentBefore,d))}d=!1;let s=l_(i,u,()=>o=null,()=>d=!0);o&&(s+=Kg(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
`}}return e?(p+=`
`+Wg(l(e),c),s&&s()):d&&o&&o(),p}function Ste({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if($h(i))i.spaceBefore&&d.push(``),E_(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(ug(i)){let e=$h(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),E_(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=$h(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=l_(i,c,()=>a=null);l||=d.length>u||o.includes(`
`),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Kg(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
`;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function E_({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=Wg(t(r),e);n.push(i.trimStart())}}var D_=s((()=>{mg(),u_(),qg()}));function O_(e,t){let n=dg(t)?t.value:t;for(let r of e)if(ug(r)&&(r.key===t||r.key===n||dg(r.key)&&r.key.value===n))return r}var k_,A_=s((()=>{D_(),x_(),Ug(),mg(),w_(),Ig(),k_=class extends Hg{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(ng,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(S_(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=ug(e)?e:!e||typeof e!=`object`||!(`key`in e)?new C_(e,e?.value):new C_(e.key,e.value);let r=O_(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);dg(r.value)&&Pg(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=O_(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=O_(this.items,e)?.value;return(!t&&dg(n)?n.value:n)??void 0}has(e){return!!O_(this.items,e)}set(e,t){this.add(new C_(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)b_(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!ug(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),T_(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}}})),j_,M_=s((()=>{mg(),A_(),j_={collection:`map`,default:!0,nodeClass:k_,tag:`tag:yaml.org,2002:map`,resolve(e,t){return lg(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>k_.from(e,t,n)}}));function N_(e){let t=dg(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var P_,F_=s((()=>{zg(),D_(),Ug(),mg(),Ig(),Og(),P_=class extends Hg{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(ag,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=N_(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=N_(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&dg(r)?r.value:r}has(e){let t=N_(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=N_(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];dg(r)&&Pg(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(Dg(e,String(r++),t));return n}toString(e,t,n){return e?T_(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+`  `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Lg(a,void 0,n))}}return i}}})),I_,L_=s((()=>{mg(),F_(),I_={collection:`seq`,default:!0,nodeClass:P_,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return fg(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>P_.from(e,t,n)}})),R_,z_=s((()=>{s_(),R_={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),r_(e,t,n,r)}}})),B_,V_=s((()=>{Ig(),B_={identify:e=>e==null,createNode:()=>new Fg(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Fg(null),stringify:({source:e},t)=>typeof e==`string`&&B_.test.test(e)?e:t.options.nullStr}})),H_,U_=s((()=>{Ig(),H_={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Fg(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&H_.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}}}));function W_({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var G_=s((()=>{})),K_,q_,J_,Y_=s((()=>{Ig(),G_(),K_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:W_},q_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():W_(e)}},J_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Fg(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:W_}}));function X_(e,t,n){let{value:r}=e;return Z_(r)&&r>=0?n+r.toString(t):W_(e)}var Z_,Q_,$_,ev,tv,nv=s((()=>{G_(),Z_=e=>typeof e==`bigint`||Number.isInteger(e),Q_=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n),$_={identify:e=>Z_(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>Q_(e,2,8,n),stringify:e=>X_(e,8,`0o`)},ev={identify:Z_,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Q_(e,0,10,n),stringify:W_},tv={identify:e=>Z_(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Q_(e,2,16,n),stringify:e=>X_(e,16,`0x`)}})),rv,Cte=s((()=>{M_(),V_(),L_(),z_(),U_(),Y_(),nv(),rv=[j_,I_,R_,B_,H_,$_,ev,tv,K_,q_,J_]}));function iv(e){return typeof e==`bigint`||Number.isInteger(e)}var av,ov,sv,wte=s((()=>{Ig(),M_(),L_(),av=({value:e})=>JSON.stringify(e),ov=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:av},{identify:e=>e==null,createNode:()=>new Fg(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:av},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:av},{identify:iv,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>iv(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:av}],sv=[j_,I_].concat(ov,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),cv,lv=s((()=>{Ig(),s_(),cv={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=Fg.BLOCK_LITERAL,t!==Fg.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===Fg.BLOCK_LITERAL?`
`:` `)}return r_({comment:e,type:t,value:s},r,i,a)}}}));function uv(e,t){if(fg(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!ug(r)){if(lg(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new C_(new Fg(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=ug(r)?r:new C_(r)}}else t(`Expected a sequence for this tag`);return e}function dv(e,t,n){let{replacer:r}=n,i=new P_(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(S_(o,s,n))}return i}var fv,pv=s((()=>{mg(),w_(),Ig(),F_(),fv={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:uv,createNode:dv}})),mv,hv,gv=s((()=>{mg(),Og(),A_(),F_(),pv(),mv=class e extends P_{constructor(){super(),this.add=k_.prototype.add.bind(this),this.delete=k_.prototype.delete.bind(this),this.get=k_.prototype.get.bind(this),this.has=k_.prototype.has.bind(this),this.set=k_.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(ug(e)?(r=Dg(e.key,``,t),i=Dg(e.value,r,t)):r=Dg(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=dv(e,t,n),i=new this;return i.items=r.items,i}},mv.tag=`tag:yaml.org,2002:omap`,hv={collection:`seq`,identify:e=>e instanceof Map,nodeClass:mv,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=uv(e,t),r=[];for(let{key:e}of n.items)dg(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new mv,n)},createNode:(e,t,n)=>mv.from(e,t,n)}}));function _v({value:e,source:t},n){return t&&(e?vv:yv).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var vv,yv,Tte=s((()=>{Ig(),vv={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Fg(!0),stringify:_v},yv={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Fg(!1),stringify:_v}})),bv,xv,Sv,Ete=s((()=>{Ig(),G_(),bv={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:W_},xv={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():W_(e)}},Sv={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Fg(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:W_}}));function Cv(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function wv(e,t,n){let{value:r}=e;if(Tv(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return W_(e)}var Tv,Ev,Dv,Ov,kv,Dte=s((()=>{G_(),Tv=e=>typeof e==`bigint`||Number.isInteger(e),Ev={identify:Tv,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Cv(e,2,2,n),stringify:e=>wv(e,2,`0b`)},Dv={identify:Tv,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Cv(e,1,8,n),stringify:e=>wv(e,8,`0`)},Ov={identify:Tv,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Cv(e,0,10,n),stringify:W_},kv={identify:Tv,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Cv(e,2,16,n),stringify:e=>wv(e,16,`0x`)}})),Av,jv,Mv=s((()=>{mg(),w_(),A_(),Av=class e extends k_{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=ug(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new C_(e.key,null):new C_(e,null),O_(this.items,t.key)||this.items.push(t)}get(e,t){let n=O_(this.items,e);return!t&&ug(n)?dg(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=O_(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new C_(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(S_(e,null,n));return i}},Av.tag=`tag:yaml.org,2002:set`,jv={collection:`map`,identify:e=>e instanceof Set,nodeClass:Av,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>Av.from(e,t,n),resolve(e,t){if(lg(e)){if(e.hasAllNullValues(!0))return Object.assign(new Av,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}}}));function Nv(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function Pv(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return W_(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var Fv,Iv,Lv,Rv=s((()=>{G_(),Fv={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Nv(e,n),stringify:Pv},Iv={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Nv(e,!1),stringify:Pv},Lv={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Lv.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=Nv(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``}})),zv,Ote=s((()=>{M_(),V_(),L_(),z_(),lv(),Tte(),Ete(),Dte(),y_(),gv(),pv(),Mv(),Rv(),zv=[j_,I_,R_,B_,vv,yv,Ev,Dv,Ov,kv,bv,xv,Sv,cv,__,hv,fv,jv,Fv,Iv,Lv]}));function Bv(e,t,n){let r=Vv.get(t);if(r&&!e)return n&&!r.includes(__)?r.concat(__):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(Vv.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(__)),i.reduce((e,t)=>{let n=typeof t==`string`?Hv[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Hv).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var Vv,Hv,Uv,kte=s((()=>{M_(),V_(),L_(),z_(),U_(),Y_(),nv(),Cte(),wte(),lv(),y_(),gv(),pv(),Ote(),Mv(),Rv(),Vv=new Map([[`core`,rv],[`failsafe`,[j_,I_,R_]],[`json`,sv],[`yaml11`,zv],[`yaml-1.1`,zv]]),Hv={binary:cv,bool:H_,float:J_,floatExp:q_,floatNaN:K_,floatTime:Iv,int:ev,intHex:tv,intOct:$_,intTime:Fv,map:j_,merge:__,null:B_,omap:hv,pairs:fv,seq:I_,set:jv,timestamp:Lv},Uv={"tag:yaml.org,2002:binary":cv,"tag:yaml.org,2002:merge":__,"tag:yaml.org,2002:omap":hv,"tag:yaml.org,2002:pairs":fv,"tag:yaml.org,2002:set":jv,"tag:yaml.org,2002:timestamp":Lv}})),Wv,Gv,Kv=s((()=>{mg(),M_(),L_(),z_(),kte(),Wv=(e,t)=>e.key<t.key?-1:+(e.key>t.key),Gv=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?Bv(e,`compat`):e?Bv(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?Uv:{},this.tags=Bv(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,ng,{value:j_}),Object.defineProperty(this,ig,{value:R_}),Object.defineProperty(this,ag,{value:I_}),this.sortMapEntries=typeof a==`function`?a:a===!0?Wv:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}}));function Ate(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=c_(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(Wg(t,``))}let o=!1,s=null;if(e.contents){if($h(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(Wg(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=l_(e.contents,i,()=>s=null,t);s&&(c+=Kg(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(l_(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=a(e.comment);t.includes(`
`)?(n.push(`...`),n.push(Wg(t,``))):n.push(`... ${t}`)}else n.push(`...`);else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(Wg(a(t),``)))}return n.join(`
`)+`
`}var jte=s((()=>{mg(),u_(),qg()}));function qv(e){if(Qh(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var Jv,Yv=s((()=>{Ng(),Ug(),mg(),w_(),Og(),Kv(),jte(),wg(),Eg(),zg(),ste(),Jv=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,og,{value:tg});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Cg({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[og]:{value:tg}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=$h(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){qv(this.contents)&&this.contents.add(e)}addIn(e,t){qv(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=lte(this);e.anchor=!t||n.has(t)?ute(t||`a`,n):t}return new Mg(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=dte(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Lg(e,l,p);return o&&Qh(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new C_(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return qv(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Vg(e)?this.contents==null?!1:(this.contents=null,!0):qv(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return Qh(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Vg(e)?!t&&dg(this.contents)?this.contents.value:this.contents:Qh(this.contents)?this.contents.getIn(e,t):void 0}has(e){return Qh(this.contents)?this.contents.has(e):!1}hasIn(e){return Vg(e)?this.contents!==void 0:Qh(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Bg(this.schema,[e],t):qv(this.contents)&&this.contents.set(e,t)}setIn(e,t){Vg(e)?this.contents=t:this.contents==null?this.contents=Bg(this.schema,Array.from(e),t):qv(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new Cg({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new Cg({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Gv(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=Dg(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?Tg(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Ate(this,e)}}})),Xv,Zv,Qv,$v,ey=s((()=>{Xv=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},Zv=class extends Xv{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},Qv=class extends Xv{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},$v=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}}));function ty(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(`	`)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}var ny=s((()=>{}));function ry(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(ry(t.key)||ry(t.value))return!0}return!1;default:return!0}}var iy=s((()=>{}));function ay(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&ry(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}var oy=s((()=>{iy()}));function sy(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||dg(e)&&dg(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var cy=s((()=>{mg()}));function Mte({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??k_)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=ty(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,ly)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||ry(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,ly);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&ay(r.indent,u,i),n.atKey=!1,sy(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=ty(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&ay(r.indent,f,i),s=c.range[2];let l=new C_(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
`+_.comment:g.comment=_.comment);let e=new C_(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}var ly,Nte=s((()=>{w_(),A_(),ny(),iy(),oy(),cy(),ly=`All mapping items must start at the same column`}));function Pte({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??P_)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=ty(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&ay(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}var Fte=s((()=>{F_(),ny(),oy()}));function uy(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var dy=s((()=>{}));function Ite({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?k_:P_))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=ty(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
`+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&ry(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];ug(t)&&(t=t.value??t.key),t.comment?t.comment+=`
`+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],py(m)&&i(r.range,`BLOCK_IN_FLOW`,fy)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);py(f)&&i(g.range,`BLOCK_IN_FLOW`,fy),n.atKey=!1;let _=ty(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?py(m)&&i(v.range,`BLOCK_IN_FLOW`,fy):_.comment&&(g.comment?g.comment+=`
`+_.comment:g.comment=_.comment);let y=new C_(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;sy(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new k_(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=uy(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
`+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}var fy,py,Lte=s((()=>{mg(),w_(),A_(),F_(),dy(),ny(),iy(),cy(),fy=`Block collections are not allowed within flow collections`,py=e=>e&&(e.type===`block-map`||e.type===`block-seq`)}));function my(e,t,n,r,i,a){let o=n.type===`block-map`?Mte(e,t,n,r,a):n.type===`block-seq`?Pte(e,t,n,r,a):Ite(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function Rte(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===k_.tagName&&s===`map`||o===P_.tagName&&s===`seq`)return my(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),my(e,t,n,i,o)}let l=my(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=$h(u)?u:new Fg(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}var zte=s((()=>{mg(),Ig(),A_(),F_(),Nte(),Fte(),Lte()}));function Bte(e,t,n){let r=t.offset,i=Vte(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?Fg.BLOCK_FOLDED:Fg.BLOCK_LITERAL,o=t.source?Hte(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
`.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
`;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===Fg.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
`):t.length>c||r[0]===`	`?(f===` `?f=`
`:!p&&f===`
`&&(f=`

`),d+=f+t.slice(c)+r,f=`
`,p=!0):r===``?f===`
`?d+=`
`:f=`
`:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
`+o[e][0].slice(c);d[d.length-1]!==`
`&&(d+=`
`);break;default:d+=`
`}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function Vte({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function Hte(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}var hy=s((()=>{Ig()}));function Ute(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=Fg.PLAIN,c=Wte(a,l);break;case`single-quoted-scalar`:s=Fg.QUOTE_SINGLE,c=Gte(a,l);break;case`double-quoted-scalar`:s=Fg.QUOTE_DOUBLE,c=Kte(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=uy(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function Wte(e,t){let n=``;switch(e[0]){case`	`:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),gy(e)}function Gte(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),gy(e.slice(1,-1)).replace(/''/g,`'`)}function gy(e){let t,n;try{t=RegExp(`(.*?)(?<![ 	])[ 	]*\r?
`,`sy`),n=RegExp(`[ 	]*(.*?)(?:(?<![ 	])[ 	]*)?\r?
`,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
`?i+=a:a=`
`:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}function Kte(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i===`\r`&&e[r+1]===`
`))if(i===`
`){let{fold:t,offset:i}=qte(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=_y[i];if(a)n+=a;else if(i===`
`)for(i=e[r+1];i===` `||i===`	`;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
`)for(i=e[++r+1];i===` `||i===`	`;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=Jte(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===`	`){let t=r,a=e[r+1];for(;a===` `||a===`	`;)a=e[++r+1];a!==`
`&&!(a===`\r`&&e[r+2]===`
`)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function qte(e,t){let n=``,r=e[t+1];for(;(r===` `||r===`	`||r===`
`||r===`\r`)&&!(r===`\r`&&e[t+2]!==`
`);)r===`
`&&(n+=`
`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}function Jte(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}var _y,vy=s((()=>{Ig(),dy(),_y={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
`,r:`\r`,t:`	`,v:`\v`,N:``,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`,"	":`	`}}));function yy(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?Bte(e,t,r):Ute(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[ig]:c?Yte(e.schema,i,c,n,r):t.type===`scalar`?Xte(e,i,t,r):e.schema[ig];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=dg(a)?a:new Fg(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new Fg(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function Yte(e,t,n,r,i){if(n===`!`)return e[ig];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(t.default&&t.test)a.push(t);else return t;for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[ig])}function Xte({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[ig];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[ig];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}var Zte=s((()=>{mg(),Ig(),hy(),vy()}));function Qte(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var $te=s((()=>{}));function by(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=ene(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=yy(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=Rte(Sy,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=xy(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!dg(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function xy(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=yy(e,{type:`scalar`,offset:Qte(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function ene({options:e},{offset:t,source:n,end:r},i){let a=new Mg(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=uy(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}var Sy,tne=s((()=>{Ng(),mg(),zte(),Zte(),dy(),$te(),Sy={composeNode:by,composeEmptyNode:xy}}));function nne(e,t,{offset:n,start:r,value:i,end:a},o){let s=new Jv(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=ty(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?by(c,i,l,o):xy(c,l.end,r,null,l,o);let u=s.contents.range[2],d=uy(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}var rne=s((()=>{Yv(),tne(),dy(),ny()}));function Cy(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function wy(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`

`:`
`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Ty,Ey=s((()=>{ste(),Yv(),ey(),mg(),rne(),dy(),Ty=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=Cy(e);r?this.warnings.push(new Qv(i,t,n)):this.errors.push(new Zv(i,t,n))},this.directives=new Cg({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=wy(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(Qh(i)&&!i.flow&&i.items.length>0){let e=i.items[0];ug(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:wy(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=Cy(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=nne(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Zv(Cy(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new Zv(Cy(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=uy(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Zv(Cy(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new Jv(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}}})),ine=s((()=>{hy(),vy(),s_()}));function Dy(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Oy(Object.freeze([]),e,t)}function Oy(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Oy(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===ky)return ky;else r===jy&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}var ky,Ay,jy,ane=s((()=>{ky=Symbol(`break visit`),Ay=Symbol(`skip children`),jy=Symbol(`remove item`),Dy.BREAK=ky,Dy.SKIP=Ay,Dy.REMOVE=jy,Dy.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},Dy.parentCollection=(e,t)=>{let n=Dy.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)}}));function one(e){switch(e){case`﻿`:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
`:case`\r
`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case`	`:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}var My=s((()=>{ine(),ane()}));function Ny(e){switch(e){case void 0:case` `:case`
`:case`\r`:case`	`:return!0;default:return!1}}var Py,Fy,Iy,Ly,Ry,zy,By=s((()=>{My(),Py=new Set(`0123456789ABCDEFabcdef`),Fy=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),Iy=new Set(`,[]{}`),Ly=new Set(` ,[]{}
\r	`),Ry=e=>!e||Ly.has(e),zy=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===`	`;)t=this.buffer[++e];return!t||t===`#`||t===`
`||t===`\r`&&this.buffer[e+1]===`
`}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
`||!t&&!this.atEnd)return e+n+1}return t===`
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&Ny(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===`﻿`&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===`	`){t=n-1;break}else n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===`	`)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield``,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&Ny(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ny(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&Ny(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(Ry),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&Ny(r[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(r[0]===`]`||r[0]===`}`)))return this.flowLevel=0,yield``,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(Ry),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||Ny(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
`,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
`,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>Ny(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
`:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
`)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
`,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===`	`){for(;n===`	`||n===` `||n===`\r`||n===`
`;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
`&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Ny(r)||e&&Iy.has(r))break;t=n}else if(Ny(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
`?(n+=1,r=`
`,i=this.buffer[n+1]):t=n),i===`#`||e&&Iy.has(i))break;if(r===`
`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&Iy.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(Ry),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(Ny(n)||t&&Iy.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Ny(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Fy.has(t))t=this.buffer[++e];else if(t===`%`&&Py.has(this.buffer[e+1])&&Py.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===`	`);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),Vy,Hy=s((()=>{Vy=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}}));function Uy(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Wy(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function Gy(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function Ky(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function qy(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function Jy(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function Yy(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Uy(t.start,`explicit-key-ind`)&&!Uy(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,Gy(t.value)?t.value.end?Jy(t.value.end,t.sep):t.value.end=t.sep:Jy(t.start,t.sep),delete t.sep)}var Xy,Zy=s((()=>{My(),By(),Xy=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new zy,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=one(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&Yy(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Wy(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:Wy(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=qy(Ky(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Jy(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(Uy(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=qy(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Uy(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Gy(t.key)&&!Uy(t.sep,`newline`)){let e=qy(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Uy(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!Uy(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Jy(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||Uy(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=qy(Ky(t));Yy(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
`,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=qy(Ky(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=qy(Ky(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 sne(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Vy||null,prettyErrors:t}}function cne(e,t={}){let{lineCounter:n,prettyErrors:r}=sne(t),i=new Xy(n?.addNewLine),a=new Ty(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 Zv(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach($v(e,n)),o.warnings.forEach($v(e,n))),o}function lne(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=cne(e,n);if(!i)return null;if(i.warnings.forEach(e=>d_(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 Qy(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 cg(e)&&!r?e.toString(n):new Jv(e,r,n).toString(n)}var une=s((()=>{Ey(),Yv(),ey(),f_(),mg(),Hy(),Zy()})),$y=s((()=>{Ey(),Yv(),Kv(),ey(),Ng(),mg(),w_(),Ig(),A_(),F_(),My(),By(),Hy(),Zy(),une(),Sg()})),eb=s((()=>{$y(),$y()})),tb,nb=s((()=>{tb=({date:e=new Date,timeZone:t=void 0}={})=>{let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`};return Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{...n,hour12:!1,timeZone:t}).formatToParts(e).filter(({type:e})=>e in n).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t]))}})),rb,dne=s((()=>{rb=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`],[`¢`,`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`],[`−`,`-`],[`⁓`,`-`]])})),ib,ab,fne=s((()=>{ib=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],ab={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:ib,nb:ib,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(ab))ab[e]=new Map(ab[e])}));function pne(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=ub(t.locale),r=[...t.customReplacements],i=rb,a=cb;if(n&&({replacements:i,pattern:a}=lb.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 ob,sb,cb,lb,ub,mne=s((()=>{dne(),fne(),ob=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),sb=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>ob(e)).join(`|`),`gu`)},cb=sb(rb),lb=new Map;for(let[e,t]of Object.entries(ab)){let n=new Map(rb);for(let[e,r]of t)n.set(e,r);lb.set(e,{replacements:n,pattern:sb(n)})}ub=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(ab,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(ab,n))return n}})),db,fb=s((()=>{db=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t))})),pb,mb,hb,gb=s((()=>{mne(),Ap(),Ip(),Zp(),TF(),fb(),pb=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],mb=new Map,hb=(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}={}}=dn(bF)??{},u=r??s,d=e;if(a&&(d=pne(d.normalize(`NFD`),{locale:n&&pb.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=db(mb,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=Dp(`short`)),typeof u==`number`&&d.length>u&&(d=Mp(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}}));
/*! @license DOMPurify 3.4.12 | (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.12/LICENSE */
function _b(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 hne(e){if(Array.isArray(e))return e}function gne(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 _ne(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vne(e,t){return hne(e)||gne(e,t)||yne(e,t)||_ne()}function yne(e,t){if(e){if(typeof e==`string`)return _b(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)?_b(e,t):void 0}}function vb(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 Mb(e,t,r)}}function bne(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return Nb(e,n)}}function yb(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bb;if(wb&&wb(e,null),!zb(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Tb(t)||(t[r]=e),i=e)}e[i]=!0}return e}function xne(e){for(let t=0;t<e.length;t++)Xb(e,t)||(e[t]=null);return e}function bb(e){let t=Ab(null);for(let r of Cb(e)){var n=vne(r,2);let i=n[0],a=n[1];Xb(e,i)&&(zb(a)?t[i]=xne(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=bb(a):t[i]=a)}return t}function Sne(e){switch(typeof e){case`string`:return e;case`number`:return Kb(e);case`boolean`:return qb(e);case`bigint`:return Jb?Jb(e):`0`;case`symbol`:return Yb?Yb(e):`Symbol()`;case`undefined`:return Zb(e);case`function`:case`object`:{if(e===null)return Zb(e);let t=e,n=xb(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Zb(e)}return Zb(e)}default:return Zb(e)}}function xb(e,t){for(;e!==null;){let n=Db(e,t);if(n){if(n.get)return vb(n.get);if(typeof n.value==`function`)return vb(n.value)}e=Eb(e)}function n(){return null}return n}function Cne(e){try{return Qb(e,``),!0}catch{return!1}}function Sb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ane(),t=e=>Sb(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==yx.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=xb(d,`cloneNode`),p=xb(d,`remove`),m=xb(d,`nextSibling`),h=xb(d,`childNodes`),g=xb(d,`parentNode`),_=xb(d,`shadowRoot`),v=xb(d,`attributes`),y=o&&o.prototype?xb(o.prototype,`nodeType`):null,b=o&&o.prototype?xb(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,w=!1,T=0,E=function(){if(T>0)throw $b(`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.`)},ee=function(e){E(),T++;try{return x.createHTML(e)}finally{T--}},te=function(e){E(),T++;try{return x.createScriptURL(e)}finally{T--}},ne=function(){return w||=(C=jne(u,i),!0),C},re=n,ie=re.implementation,ae=re.createNodeIterator,oe=re.createDocumentFragment,se=re.getElementsByTagName,ce=r.importNode,le=bx();t.isSupported=typeof Cb==`function`&&typeof g==`function`&&ie&&ie.createHTMLDocument!==void 0;let ue=dx,de=fx,D=px,fe=mx,pe=hx,me=wne,he=Tne,ge=Dne,_e=gx,ve=null,ye=yb({},[...ex,...tx,...nx,...ix,...ox]),be=null,xe=yb({},[...sx,...cx,...lx,...ux]),Se=Object.seal(Ab(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}})),Ce=null,we=null,Te=Object.seal(Ab(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ee=!0,De=!0,Oe=!1,ke=!0,Ae=!1,je=!0,Me=!1,Ne=!1,Pe=null,Fe=null,Ie=!1,Le=!1,Re=!1,ze=!1,Be=!0,Ve=!1,He=`user-content-`,Ue=!0,We=!1,Ge={},Ke=null,qe=yb({},`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(`.`)),Je=null,Ye=yb({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Xe=null,Ze=yb({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Qe=`http://www.w3.org/1998/Math/MathML`,$e=`http://www.w3.org/2000/svg`,et=`http://www.w3.org/1999/xhtml`,tt=et,nt=!1,rt=null,it=yb({},[Qe,$e,et],Vb),at=Ob([`mi`,`mo`,`mn`,`ms`,`mtext`]),ot=yb({},at),st=Ob([`annotation-xml`]),ct=yb({},st),lt=yb({},[`title`,`style`,`font`,`a`,`script`]),ut=null,dt=[`application/xhtml+xml`,`text/html`],ft=null,pt=null,mt=n.createElement(`form`),ht=function(e){return e instanceof RegExp||e instanceof Function},O=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(pt&&pt===e)return;(!e||typeof e!=`object`)&&(e={}),e=bb(e),ut=dt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ft=ut===`application/xhtml+xml`?Vb:Bb,ve=xx(e,`ALLOWED_TAGS`,ye,{transform:ft}),be=xx(e,`ALLOWED_ATTR`,xe,{transform:ft}),rt=xx(e,`ALLOWED_NAMESPACES`,it,{transform:Vb}),Xe=xx(e,`ADD_URI_SAFE_ATTR`,Ze,{transform:ft,base:Ze}),Je=xx(e,`ADD_DATA_URI_TAGS`,Ye,{transform:ft,base:Ye}),Ke=xx(e,`FORBID_CONTENTS`,qe,{transform:ft}),Ce=xx(e,`FORBID_TAGS`,bb({}),{transform:ft}),we=xx(e,`FORBID_ATTR`,bb({}),{transform:ft}),Ge=Xb(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?bb(e.USE_PROFILES):e.USE_PROFILES:!1,Ee=e.ALLOW_ARIA_ATTR!==!1,De=e.ALLOW_DATA_ATTR!==!1,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=e.SAFE_FOR_TEMPLATES||!1,je=e.SAFE_FOR_XML!==!1,Me=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,Be=e.SANITIZE_DOM!==!1,Ve=e.SANITIZE_NAMED_PROPS||!1,Ue=e.KEEP_CONTENT!==!1,We=e.IN_PLACE||!1,_e=Cne(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:gx,tt=typeof e.NAMESPACE==`string`?e.NAMESPACE:et,ot=Xb(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?bb(e.MATHML_TEXT_INTEGRATION_POINTS):yb({},at),ct=Xb(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?bb(e.HTML_INTEGRATION_POINTS):yb({},st);let t=Xb(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?bb(e.CUSTOM_ELEMENT_HANDLING):Ab(null);if(Se=Ab(null),Xb(t,`tagNameCheck`)&&ht(t.tagNameCheck)&&(Se.tagNameCheck=t.tagNameCheck),Xb(t,`attributeNameCheck`)&&ht(t.attributeNameCheck)&&(Se.attributeNameCheck=t.attributeNameCheck),Xb(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Se.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),kb(Se),Ae&&(De=!1),Re&&(Le=!0),Ge&&(ve=yb({},ox),be=Ab(null),Ge.html===!0&&(yb(ve,ex),yb(be,sx)),Ge.svg===!0&&(yb(ve,tx),yb(be,cx),yb(be,ux)),Ge.svgFilters===!0&&(yb(ve,nx),yb(be,cx),yb(be,ux)),Ge.mathMl===!0&&(yb(ve,ix),yb(be,lx),yb(be,ux))),Te.tagCheck=null,Te.attributeCheck=null,Xb(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Te.tagCheck=e.ADD_TAGS:zb(e.ADD_TAGS)&&(ve===ye&&(ve=bb(ve)),yb(ve,e.ADD_TAGS,ft))),Xb(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Te.attributeCheck=e.ADD_ATTR:zb(e.ADD_ATTR)&&(be===xe&&(be=bb(be)),yb(be,e.ADD_ATTR,ft))),Xb(e,`ADD_URI_SAFE_ATTR`)&&zb(e.ADD_URI_SAFE_ATTR)&&yb(Xe,e.ADD_URI_SAFE_ATTR,ft),Xb(e,`FORBID_CONTENTS`)&&zb(e.FORBID_CONTENTS)&&(Ke===qe&&(Ke=bb(Ke)),yb(Ke,e.FORBID_CONTENTS,ft)),Xb(e,`ADD_FORBID_CONTENTS`)&&zb(e.ADD_FORBID_CONTENTS)&&(Ke===qe&&(Ke=bb(Ke)),yb(Ke,e.ADD_FORBID_CONTENTS,ft)),Ue&&(ve[`#text`]=!0),Me&&yb(ve,[`html`,`head`,`body`]),ve.table&&(yb(ve,[`tbody`]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw $b(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw $b(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=ee(``)}catch(e){throw x=t,e}}else e.TRUSTED_TYPES_POLICY===null?(x=void 0,S=``):(x===void 0&&(x=ne()),x&&typeof S==`string`&&(S=ee(``)));Ob&&Ob(e),pt=e},gt=yb({},[...tx,...nx,...rx]),_t=yb({},[...ix,...ax]),vt=function(e,t,n){return t.namespaceURI===et?e===`svg`:t.namespaceURI===Qe?e===`svg`&&(n===`annotation-xml`||ot[n]):!!gt[e]},yt=function(e,t,n){return t.namespaceURI===et?e===`math`:t.namespaceURI===$e?e===`math`&&ct[n]:!!_t[e]},bt=function(e,t,n){return t.namespaceURI===$e&&!ct[n]||t.namespaceURI===Qe&&!ot[n]?!1:!_t[e]&&(lt[e]||!gt[e])},xt=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:tt,tagName:`template`});let n=Bb(e.tagName),r=Bb(t.tagName);return rt[e.namespaceURI]?e.namespaceURI===$e?vt(n,t,r):e.namespaceURI===Qe?yt(n,t,r):e.namespaceURI===et?bt(n,t,r):!!(ut===`application/xhtml+xml`&&rt[e.namespaceURI]):!1},St=function(e){Lb(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw $b(`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=[];Pb(t,t=>{Lb(e,t)}),Pb(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{Lb(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Lb(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Le||Re)try{St(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`||be[ft(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)===yx.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(!je)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y?y(e):e.nodeType;if(n===yx.processingInstruction||n===yx.comment&&Qb(vx,e.data)){try{p(e)}catch{}continue}if(n===yx.element){let t=e,n=ft(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(Ie)e=`<remove></remove>`+e;else{let t=Hb(e,/^[\r\n\t ]+/);r=t&&t[0]}ut===`application/xhtml+xml`&&tt===et&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?ee(e):e;if(tt===et)try{t=new l().parseFromString(i,ut)}catch{}if(!t||!t.documentElement){t=ie.createDocument(tt,`template`,null);try{t.documentElement.innerHTML=nt?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),tt===et?se.call(t,Me?`html`:`body`)[0]:Me?t.documentElement:a},kt=function(e){return ae.call(e.ownerDocument||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=Ub(e,ue,` `),e=Ub(e,de,` `),e=Ub(e,D,` `),e},jt=function(e){e.normalize();let t=ae.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=At(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&Pb(r,e=>{Nt(e.content)&&jt(e.content)})},Mt=function(e){let t=b?b(e):null;return typeof t!=`string`||ft(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)===yx.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&&Pb(e,e=>{e.call(t,n,r,pt)})}let It=function(e,t){return!!(je&&e.hasChildNodes()&&!Pt(e.firstElementChild)&&Qb(_x,e.textContent)&&Qb(_x,e.innerHTML)||je&&e.namespaceURI===et&&t===`style`&&Pt(e.firstElementChild)||e.nodeType===yx.processingInstruction||je&&e.nodeType===yx.comment&&Qb(vx,e.data))},Lt=function(e,t){if(!Ce[t]&&zt(t)&&(Se.tagNameCheck instanceof RegExp&&Qb(Se.tagNameCheck,t)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(t)))return!1;if(Ue&&!Ke[t]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=We?n[i]:f(n[i],!0);t.insertBefore(r,m(e))}}}return St(e),!0},Rt=function(e,n){if(Ft(le.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return!0;if(Mt(e))return St(e),!0;let r=ft(b?b(e):e.nodeName);if(Ft(le.uponSanitizeElement,e,{tagName:r,allowedTags:ve}),e!==n&&g(e)===null)return!0;if(It(e,r))return St(e),!0;if(Ce[r]||!(Te.tagCheck instanceof Function&&Te.tagCheck(r))&&!ve[r]){let t=Lt(e,r);return t===!1&&Ft(le.afterSanitizeElements,e,null),t}if((y?y(e):e.nodeType)===yx.element&&!xt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Qb(One,e.innerHTML))return St(e),!0;if(Ae&&e.nodeType===yx.text){let n=At(e.textContent);e.textContent!==n&&(Lb(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ft(le.afterSanitizeElements,e,null),!1},k=function(e,t,r){if(we[t]||je&&t===`patchsrc`||je&&t===`for`&&e!==`label`&&e!==`output`||Be&&(t===`id`||t===`name`)&&(r in n||r in mt))return!1;let i=be[t]||Te.attributeCheck instanceof Function&&Te.attributeCheck(t,e);if(!(De&&Qb(fe,t))&&!(Ee&&Qb(pe,t))){if(!i){if(!(zt(e)&&(Se.tagNameCheck instanceof RegExp&&Qb(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&Qb(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||t===`is`&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&Qb(Se.tagNameCheck,r)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))))return!1}else if(!Xe[t]&&!Qb(_e,Ub(r,he,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Wb(r,`data:`)===0&&Je[e])&&!(Oe&&!Qb(me,Ub(r,he,``)))&&r)return!1}return!0},A=yb({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),zt=function(e){return!A[Bb(e)]&&Qb(ge,e)},Bt=function(e,t,n,r){if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ee(r);case`TrustedScriptURL`:return te(r)}return r},Vt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Mt(e)?St(e):Ib(t.removed)}catch{wt(n,e)}},Ht=function(e){Ft(le.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Mt(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:be,forceKeepAttr:void 0},r=t.length,i=ft(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=ft(o),u=c,d=o===`value`?u:Gb(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Ft(le.uponSanitizeAttribute,e,n),d=n.attrValue,Ve&&(l===`id`||l===`name`)&&Wb(d,He)!==0&&(wt(o,e),d=He+d),je&&Qb(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){wt(o,e);continue}if(l===`attributename`&&Hb(d,`href`)){wt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){wt(o,e);continue}if(!ke&&Qb(kne,d)){wt(o,e);continue}if(Ae&&(d=At(d)),!k(i,l,d)){wt(o,e);continue}d=Bt(i,l,s,d),d!==u&&Vt(e,o,s,d)}}Ft(le.afterSanitizeAttributes,e,null)},Ut=function(e){let t=null,n=kt(e);for(Ft(le.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ft(le.uponSanitizeShadowNode,t,null),Rt(t,e),Ht(t),Nt(t.content)&&Ut(t.content),(y?y(t):t.nodeType)===yx.element){let e=_(t);Nt(e)&&(Wt(e),Ut(e))}Ft(le.afterSanitizeShadowDOM,e,null)},Wt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Ut(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===yx.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`&&ft(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(nt=!e,nt&&(e=`<!-->`),typeof e!=`string`&&!Pt(e)&&(e=Sne(e),typeof e!=`string`))throw $b(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ne?(ve=Pe,be=Fe):O(n),(le.uponSanitizeElement.length>0||le.uponSanitizeAttribute.length>0)&&(ve=bb(ve)),le.uponSanitizeAttribute.length>0&&(be=bb(be)),t.removed=[];let c=We&&typeof e!=`string`&&Pt(e);if(c){Dt(e);let t=b?b(e):e.nodeName;if(typeof t==`string`){let n=ft(t);if(!ve[n]||Ce[n])throw Ct(e),$b(`root node is forbidden and cannot be sanitized in-place`)}if(Mt(e))throw Ct(e),$b(`root node is clobbered and cannot be sanitized in-place`);try{Wt(e)}catch(t){throw Ct(e),t}}else if(Pt(e))i=Ot(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===yx.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Wt(a);else{if(!Le&&!Ae&&!Me&&e.indexOf(`<`)===-1)return x&&ze?ee(e):e;if(i=Ot(e),!i)return Le?null:ze?S:``}i&&Ie&&St(i.firstChild);let l=c?e:i,u=kt(l);try{for(;o=u.nextNode();)Rt(o,l),Ht(o),Nt(o.content)&&Ut(o.content)}catch(n){throw c&&(Ct(e),Pb(t.removed,e=>{e.element&&Et(e.element)})),n}if(c)return Pb(t.removed,e=>{e.element&&Et(e.element)}),Ae&&jt(e),e;if(Le){if(Ae&&jt(i),Re)for(s=oe.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(be.shadowroot||be.shadowrootmode)&&(s=ce.call(r,s,!0)),s}let d=Me?i.outerHTML:i.innerHTML;return Me&&ve[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Qb(Ene,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
`+d),Ae&&(d=At(d)),x&&ze?ee(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};O(e),Ne=!0,Pe=ve,Fe=be},t.clearConfig=function(){pt=null,Ne=!1,Pe=null,Fe=null,x=C,S=``},t.isValidAttribute=function(e,t,n){pt||O({});let r=ft(e),i=ft(t);return k(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Xb(le,e)&&Lb(le[e],t)},t.removeHook=function(e,t){if(Xb(le,e)){if(t!==void 0){let n=Fb(le[e],t);return n===-1?void 0:Rb(le[e],n,1)[0]}return Ib(le[e])}},t.removeHooks=function(e){Xb(le,e)&&(le[e]=[])},t.removeAllHooks=function(){le=bx()},t}var Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,wne,Tne,Ene,Dne,_x,vx,One,kne,yx,Ane,jne,bx,xx,Sx,Mne=s((()=>{Cb=Object.entries,wb=Object.setPrototypeOf,Tb=Object.isFrozen,Eb=Object.getPrototypeOf,Db=Object.getOwnPropertyDescriptor,Ob=Object.freeze,kb=Object.seal,Ab=Object.create,jb=typeof Reflect<`u`&&Reflect,Mb=jb.apply,Nb=jb.construct,Ob||=function(e){return e},kb||=function(e){return e},Mb||=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)},Nb||=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)},Pb=vb(Array.prototype.forEach),Fb=vb(Array.prototype.lastIndexOf),Ib=vb(Array.prototype.pop),Lb=vb(Array.prototype.push),Rb=vb(Array.prototype.splice),zb=Array.isArray,Bb=vb(String.prototype.toLowerCase),Vb=vb(String.prototype.toString),Hb=vb(String.prototype.match),Ub=vb(String.prototype.replace),Wb=vb(String.prototype.indexOf),Gb=vb(String.prototype.trim),Kb=vb(Number.prototype.toString),qb=vb(Boolean.prototype.toString),Jb=typeof BigInt>`u`?null:vb(BigInt.prototype.toString),Yb=typeof Symbol>`u`?null:vb(Symbol.prototype.toString),Xb=vb(Object.prototype.hasOwnProperty),Zb=vb(Object.prototype.toString),Qb=vb(RegExp.prototype.test),$b=bne(TypeError),ex=Ob(`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(`.`)),tx=Ob(`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(`.`)),nx=Ob([`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`]),rx=Ob([`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`]),ix=Ob(`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(`.`)),ax=Ob([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ox=Ob([`#text`]),sx=Ob(`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(`.`)),cx=Ob(`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(`.`)),lx=Ob(`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(`.`)),ux=Ob([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),dx=kb(/{{[\w\W]*|^[\w\W]*}}/g),fx=kb(/<%[\w\W]*|^[\w\W]*%>/g),px=kb(/\${[\w\W]*/g),mx=kb(/^data-[\-\w.\u00B7-\uFFFF]+$/),hx=kb(/^aria-[\-\w]+$/),gx=kb(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wne=kb(/^(?:\w+script|data):/i),Tne=kb(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ene=kb(/^html$/i),Dne=kb(/^[a-z][.\w]*(-[.\w]+)+$/i),_x=kb(/<[/\w!]/g),vx=kb(/<[/\w]/g),One=kb(/<\/no(script|embed|frames)/i),kne=kb(/\/>/i),yx={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ane=function(){return typeof window>`u`?null:window},jne=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}},bx=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},xx=function(e,t,n,r){return Xb(e,t)&&zb(e[t])?yb(r.base?bb(r.base):{},e[t],r.transform):n},Sx=Sb()})),Cx,wx=s((()=>{Mne(),Cx=Sx.sanitize.bind(Sx),Sx.isSupported,Sx.addHook.bind(Sx),Sx.removeHook.bind(Sx),Sx.removeHooks.bind(Sx),Sx.removeAllHooks.bind(Sx),Sx.setConfig.bind(Sx),Sx.clearConfig.bind(Sx),Sx.isValidAttribute.bind(Sx),Sx.version,Sx.removed}));function Tx(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Nne(e){jx=e}function Ex(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Dx(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Nx.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function Ox(e,t){if(t){if(Nx.escapeTest.test(e))return e.replace(Nx.escapeReplace,mS)}else if(Nx.escapeTestNoEncode.test(e))return e.replace(Nx.escapeReplaceNoEncode,mS);return e}function Pne(e){try{e=encodeURI(e).replace(Nx.percentDecode,`%`)}catch{return null}return e}function Fne(e,t){let n=e.replace(Nx.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Nx.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(Nx.slashPipe,`|`);return n}function kx(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Ine(e){let t=e.split(`
`),n=t.length-1;for(;n>=0&&Nx.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
`)}function Lne(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Rne(e,t=0){let n=t,r=``;for(let t of e)if(t===`	`){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function zne(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Bne(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
`)}function Ax(e,t){return xS.parse(e,t)}var jx,Mx,Vne,Nx,Hne,Une,Wne,Px,Gne,Fx,Ix,Lx,Kne,Rx,qne,zx,Jne,Yne,Bx,Vx,Xne,Hx,Zne,Qne,Ux,Wx,$ne,ere,tre,nre,Gx,rre,Kx,qx,Jx,ire,Yx,are,ore,sre,Xx,cre,Zx,Qx,lre,ure,dre,$x,eS,tS,nS,fre,pre,rS,mre,iS,aS,oS,sS,cS,lS,uS,dS,fS,pS,hre,mS,hS,gS,_S,vS,yS,bS,gre,xS,SS,CS,wS,TS=s((()=>{jx=Tx(),Mx={exec:()=>null},Vne=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),Nx={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ex(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:Ex(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ex(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ex(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ex(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:Ex(e=>RegExp(`^ {0,${e}}>`))},Hne=/^(?:[ \t]*(?:\n|$))+/,Une=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Wne=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Px=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gne=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Fx=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ix=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Lx=Dx(Ix).replace(/bull/g,Fx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Kne=Dx(Ix).replace(/bull/g,Fx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Rx=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,qne=/^[^\n]+/,zx=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Jne=Dx(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,zx).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Yne=Dx(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Fx).getRegex(),Bx=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Vx=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Xne=Dx(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))`,`i`).replace(`comment`,Vx).replace(`tag`,Bx).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hx=e=>Dx(Rx).replace(`hr`,Px).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Bx).getRegex(),Zne=Hx(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Qne=Hx(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ux={blockquote:Dx(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Qne).getRegex(),code:Une,def:Jne,fences:Wne,heading:Gne,hr:Px,html:Xne,lheading:Lx,list:Yne,newline:Hne,paragraph:Zne,table:Mx,text:qne},Wx=Dx(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Px).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3}	)[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Bx).getRegex(),$ne={...Ux,lheading:Kne,table:Wx,paragraph:Dx(Rx).replace(`hr`,Px).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Wx).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Bx).getRegex()},ere={...Ux,html:Dx(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Vx).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Mx,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Dx(Rx).replace(`hr`,Px).replace(`heading`,` *#{1,6} *[^
]`).replace(`lheading`,Lx).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},tre=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nre=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gx=/^( {2,}|\\)\n(?!\s*$)/,rre=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kx=/[\p{P}\p{S}]/u,qx=/[\s\p{P}\p{S}]/u,Jx=/[^\s\p{P}\p{S}]/u,ire=Dx(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,qx).getRegex(),Yx=/(?!~)[\p{P}\p{S}]/u,are=/(?!~)[\s\p{P}\p{S}]/u,ore=/(?:[^\s\p{P}\p{S}]|~)/u,sre=Dx(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Vne?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Xx=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,cre=Dx(Xx,`u`).replace(/punct/g,Kx).getRegex(),Zx=Dx(Xx,`u`).replace(/punct/g,Yx).getRegex(),Qx=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,lre=Dx(Qx,`gu`).replace(/notPunctSpace/g,Jx).replace(/punctSpace/g,qx).replace(/punct/g,Kx).getRegex(),ure=Dx(Qx,`gu`).replace(/notPunctSpace/g,ore).replace(/punctSpace/g,are).replace(/punct/g,Yx).getRegex(),dre=Dx(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Jx).replace(/punctSpace/g,qx).replace(/punct/g,Kx).getRegex(),$x=Dx(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Kx).getRegex(),eS=Dx(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Jx).replace(/punctSpace/g,qx).replace(/punct/g,Kx).getRegex(),tS=Dx(/\\(punct)/,`gu`).replace(/punct/g,Kx).getRegex(),nS=Dx(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fre=Dx(Vx).replace(`(?:-->|$)`,`-->`).getRegex(),pre=Dx(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,fre).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rS=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,mre=Dx(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,rS).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iS=Dx(/^!?\[(label)\]\[(ref)\]/).replace(`label`,rS).replace(`ref`,zx).getRegex(),aS=Dx(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,zx).getRegex(),oS=Dx(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,iS).replace(`nolink`,aS).getRegex(),sS=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cS={_backpedal:Mx,anyPunctuation:tS,autolink:nS,blockSkip:sre,br:Gx,code:nre,del:Mx,delLDelim:Mx,delRDelim:Mx,emStrongLDelim:cre,emStrongRDelimAst:lre,emStrongRDelimUnd:dre,escape:tre,link:mre,nolink:aS,punctuation:ire,reflink:iS,reflinkSearch:oS,tag:pre,text:rre,url:Mx},lS={...cS,link:Dx(/^!?\[(label)\]\((.*?)\)/).replace(`label`,rS).getRegex(),reflink:Dx(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,rS).getRegex()},uS={...cS,emStrongRDelimAst:ure,emStrongLDelim:Zx,delLDelim:$x,delRDelim:eS,url:Dx(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,sS).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Dx(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,sS).getRegex()},dS={...uS,br:Dx(Gx).replace(`{2,}`,`*`).getRegex(),text:Dx(uS.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},fS={normal:Ux,gfm:$ne,pedantic:ere},pS={normal:cS,gfm:uS,breaks:dS,pedantic:lS},hre={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},mS=e=>hre[e],hS=class{options;rules;lexer;constructor(e){this.options=e||jx}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Ine(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Bne(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=kx(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:kx(t[0],`
`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:kx(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=kx(t[0],`
`).split(`
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
${s}`:s,r=r?`${r}
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
`+e.join(`
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
`+e.join(`
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Rne(t[2].split(`
`,1)[0],t[1].length),l=e.split(`
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,`  `),m=l):m=l.replace(this.rules.other.tabCharGlobal,`    `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,`    `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
`+l}u=!l.trim(),r+=p+`
`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Ine(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:kx(t[0],`
`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Fne(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
`):[],a={type:`table`,raw:kx(t[0],`
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Fne(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:kx(t[0],`
`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=kx(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Lne(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),zne(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return zne(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},gS=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||jx,this.options.tokenizer=this.options.tokenizer||new hS,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Nx,block:fS.normal,inline:pS.normal};this.options.pedantic?(t.block=fS.pedantic,t.inline=pS.pedantic):this.options.gfm&&(t.block=fS.gfm,this.options.breaks?t.inline=pS.breaks:t.inline=pS.gfm),this.tokenizer.rules=t}static get rules(){return{block:fS,inline:pS}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Nx.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Nx.tabCharGlobal,`    `).replace(Nx.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+i.raw,n.text+=`
`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+i.raw,n.text+=`
`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
`)?``:`
`)+i.raw,r.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+i.raw,n.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);e.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,t=>e.includes(t.slice(t.lastIndexOf(`[`)+1,-1))?`[`+`a`.repeat(t.length-2)+`]`:t))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,`++`),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},_S=class{options;parser;constructor(e){this.options=e||jx}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Nx.notSpaceStart)?.[0],i=e.replace(Nx.endingNewline,``)+`
`;return r?`<pre><code class="language-`+Ox(r)+`">`+(n?i:Ox(i,!0))+`</code></pre>
`:`<pre><code>`+(n?i:Ox(i,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
`+r+`</`+i+`>
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ox(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Pne(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Ox(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Pne(e);if(i===null)return Ox(n);e=i;let a=`<img src="${e}" alt="${Ox(n)}"`;return t&&(a+=` title="${Ox(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Ox(e.text)}},vS=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},yS=class e{options;renderer;textRenderer;constructor(e){this.options=e||jx,this.options.renderer=this.options.renderer||new _S,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new vS}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},bS=class{options;block;constructor(e){this.options=e||jx}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?gS.lex:gS.lexInline}provideParser(e=this.block){return e?yS.parse:yS.parseInline}},gre=class{defaults=Tx();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=yS;Renderer=_S;TextRenderer=vS;Lexer=gS;Tokenizer=hS;Hooks=bS;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new _S(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new hS(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new bS;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];bS.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&bS.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return gS.lex(e,t??this.defaults)}parser(e,t){return yS.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?gS.lex:gS.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?yS.parse:yS.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?gS.lex:gS.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?yS.parse:yS.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Ox(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},xS=new gre,Ax.options=Ax.setOptions=function(e){return xS.setOptions(e),Ax.defaults=xS.defaults,Nne(Ax.defaults),Ax},Ax.getDefaults=Tx,Ax.defaults=jx,Ax.use=function(...e){return xS.use(...e),Ax.defaults=xS.defaults,Nne(Ax.defaults),Ax},Ax.walkTokens=function(e,t){return xS.walkTokens(e,t)},Ax.parseInline=xS.parseInline,Ax.Parser=yS,Ax.parser=yS.parse,Ax.Renderer=_S,Ax.TextRenderer=vS,Ax.Lexer=gS,Ax.lexer=gS.lex,Ax.Tokenizer=hS,Ax.Hooks=bS,Ax.parse=Ax,Ax.options,Ax.setOptions,SS=Ax.use,Ax.walkTokens,CS=Ax.parseInline,wS=Ax,yS.parse,gS.lex})),ES,_re=s((()=>{ES=`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(`.`)})),DS,vre=s((()=>{DS={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 OS(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}var kS=s((()=>{}));function yre(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var bre=s((()=>{}));function xre(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Sre=s((()=>{}));function AS(e){return xre(e)||OS(e)}var Cre=s((()=>{Sre(),kS()}));function jS(e){let t=`&`+e+`;`;MS.innerHTML=t;let n=MS.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var MS,wre=s((()=>{MS=document.createElement(`i`)}));function NS(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`?AS:u===`decimal`?OS:yre;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&ES.includes(y)&&(_=y,v=jS(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&jS(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=``):AS(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(Tre(e))h(7,S),C=`�`;else if(e in DS)h(6,S),C=DS[e];else{let t=``;Ere(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,PS[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Tre(e){return e>=55296&&e<=57343||e>1114111}function Ere(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 PS,Dre=s((()=>{_re(),vre(),kS(),bre(),Cre(),wre(),PS=[``,`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`]})),Ore=s((()=>{Dre()})),FS,IS,LS=s((()=>{rm(),FS=(e,t)=>{if(!e.includes(`{{`))return e;let{innerTag:n}=e.match(nm)?.groups??{};return n===void 0?e:String(t(n)??``)},IS=(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=FS(n,t);e!==n&&(a.defaultValue=e,o=!0)}if(r!==void 0){let e=FS(r,t);e!==r&&(a.truthyValue=e,o=!0)}if(i!==void 0){let e=FS(i,t);e!==i&&(a.falsyValue=e,o=!0)}return o?{...e,args:a}:e})})),RS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!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 E(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 E=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}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,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}))})),zS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),BS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),VS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),kre,HS,US,WS,GS=s((()=>{kre=new Set([`local`,`utc`]),HS=new WeakMap,US=e=>typeof e==`string`&&!kre.has(e),WS=e=>{let t=HS.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:US(v)?v:void 0};return HS.set(e,y),y}})),KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC,iC,aC,oC,sC,cC,lC,uC=s((()=>{Ip(),KS=u(RS(),1),qS=u(zS(),1),JS=u(BS(),1),YS=u(VS(),1),gb(),GS(),KS.default.extend(qS.default),KS.default.extend(JS.default),KS.default.extend(YS.default),XS=/\s*\|\s*/,ZS=/^\d{4}-[01]\d-[0-3]\d$/,QS=/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/,$S=Object.entries({date:/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,default:/^default\('(?<defaultValue>.+?)'\)$/,ternary:/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,truncate:/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/}),eC=e=>{for(let[t,n]of $S){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:{}}},tC=e=>{let[t,...n]=e.trim().split(XS);return{value:t,transformations:n.map(e=>eC(e))}},nC=e=>String(e).toUpperCase(),rC=e=>String(e).toLowerCase(),iC=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=WS(r),s=(n===`utc`||o||a&&i.match(ZS)||a&&i.match(QS)?KS.default.utc:KS.default)(i);return s.isValid()?s.format(t):``},aC=(e,{defaultValue:t})=>e?String(e):t,oC=(e,{truthyValue:t,falsyValue:n})=>e?t:n,sC=(e,{max:t,ellipsis:n=`…`})=>Mp(String(e),Number(t),{ellipsis:n}),cC=({fieldConfig:e,value:t,transformation:n,locale:r})=>{let{method:i,args:a}=n;switch(i){case`upper`:return nC(t);case`lower`:return rC(t);case`slugify`:return hb(String(t),{locale:r});case`date`:return iC(t,a,e??{});case`default`:return aC(t,a);case`ternary`:return oC(t,a);case`truncate`:return sC(t,a);default:return String(t)}},lC=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=cC({fieldConfig:e,value:t,transformation:n,locale:r})}),t)})),dC,fC,pC,mC,hC,gC,_C,vC,yC=s((()=>{Zp(),Sw(),dC=ln(!1),fC=ln(),pC=ln([]),mC=ln([]),hC=ln([]),gC={source:void 0,fileMap:new Map,regexFolders:[]},_C=()=>{let e=dn(pC);if(e===gC.source)return gC;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,yw(e.collectionName)?._file?.fullPathRegEx])}),gC.source=e,gC.fileMap=t,gC.regexFolders=n,gC},vC=e=>{let{fileMap:t,regexFolders:n}=_C();return[...t.get(e)??[],...n.filter(([,t])=>t?.test(e)).map(([e])=>e)].sort((e,t)=>(t.folderPath??``).localeCompare(e.folderPath??``))}})),bC,xC,SC,CC,wC,TC,EC,DC=s((()=>{Zp(),TF(),yC(),Sw(),bC=e=>!(`divider`in e)&&typeof e.file==`string`&&Array.isArray(e.fields),xC=e=>e.filter(e=>bC(e)),SC=(e,t)=>{let n=typeof e==`string`?yw(e):e;if(!(!n||!(`_fileMap`in n)))return n._fileMap[t]},CC=e=>e.label||e.name,wC=(e,t)=>`_fileMap`in e?Object.values(e._fileMap).filter(({_file:e,_i18n:n})=>e.fullPath===t.locales[n.defaultLocale]?.path):[],TC=(e,t)=>{let n=dn(pC).find(({collectionName:n,fileName:r})=>n===e&&r===t);if(!n?.filePathMap)return;let r=new Set(Object.values(n.filePathMap));return dn(mC).find(e=>Object.values(e.locales).some(({path:e})=>r.has(e)))},EC=(e,t)=>{if(e&&t){let{collections:n,singletons:r}=dn(bF);if(e===`_singletons`)return Array.isArray(r)?xC(r).findIndex(e=>e.name===t):-1;let i=pw({collections:n}).find(({name:t})=>t===e);if(i&&`files`in i)return i.files.findIndex(({name:e})=>e===t)}return-1}})),OC,kC,AC,jC=s((()=>{OC=[`file`,`image`],kC=[...OC,`relation`,`select`],AC=[...kC,`datetime`,`keyvalue`,`list`,`number`]})),MC,NC,PC,FC=s((()=>{MC={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},NC={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"},PC=(e,t)=>{MC[e]||(console.warn(t??NC[e]),MC[e]=!0)}})),IC,LC,RC,zC,BC,VC,HC,UC,WC=s((()=>{IC=[`markdown`,`md`,`mdown`,`mdwn`,`mdx`,`mkd`,`mkdn`,`html.md`],LC=[`njk`],RC=[...IC,...LC],zC={raw:`txt`,yaml:`yml`,yml:`yml`,toml:`toml`,json:`json`},BC={yaml:`yaml`,yml:`yaml`,toml:`toml`,json:`json`,astro:`raw`},VC={"json-frontmatter":[`{`,`}`],"toml-frontmatter":[`+++`,`+++`],"yaml-frontmatter":[`---`,`---`]},HC=[`yaml-frontmatter`,`toml-frontmatter`,`json-frontmatter`],UC=[`toml`,`toml-frontmatter`]})),GC,KC,qC,JC,YC,XC,ZC,QC=s((()=>{X(),GC=e=>{let t;if(e!==`_default`)try{[t]=Intl.getCanonicalLocales(e)}catch{}return t},KC=e=>e===`_default`?`auto`:Hh(e)?`rtl`:`ltr`,qC=new Map,JC=(e,{displayLocale:t=GC(Xh.current??`en`)}={})=>{let n=GC(e);if(!n)return;let r;t?(r=qC.get(t),r||(r=new Intl.DisplayNames(t,{type:`language`}),qC.set(t,r))):r=new Intl.DisplayNames(void 0,{type:`language`});try{return r.of(n)}catch(e){console.error(e);return}},YC=new Map,XC=(e,t={})=>{let n={style:`narrow`,type:`conjunction`,...t},r=`${e}|${n.style}|${n.type}`,i=YC.get(r);return i||(i=new Intl.ListFormat(GC(e),n),YC.set(r,i)),i},ZC=({_i18n:e,locale:t,path:n})=>{let{defaultLocale:r,omitDefaultLocaleFromFilePath:i}=e;return i&&t===r&&(n=n.replace(/{{locale}}[./]/,``)),n.replaceAll(`{{locale}}`,t)}})),$C,Are,jre,Mre,ew,tw,Nre=s((()=>{Yp(),Ip(),rm(),FC(),yp(),Sw(),Tw(),WC(),QC(),$C=({extension:e,format:t})=>(t?hp.get(t)?.extension:void 0)||e||(t?zC[t]??`md`:`md`),Are=({extension:e,format:t})=>t||(IC.includes(e)?`frontmatter`:BC[e]??`yaml-frontmatter`),jre=(e,t)=>e?`(?<subPath>${jp(e).replace(em,`[^/]+?`)}${t?`|${t}`:``})`:`(?<subPath>[^/]+?)`,Mre=({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?`${jp(n)}\\/`:``,u?m:``,jre(r,i),l?h:``,`\\.`,jp($C({format:t,extension:e})),`$`].join(``);return new RegExp(g)},ew=({format:e,delimiter:t})=>typeof t==`string`&&t.trim()?[t,t]:Array.isArray(t)&&t.length===2?t:VC[e]??void 0,tw=({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=uw(e),d=t?.file?Np(t.file):void 0,f=d?Vp(d).extension:a,p=t?.format??o,m=$C({format:p,extension:f}),h=Are({format:p,extension:m}),g=t?.frontmatter_delimiter??s,_=u?Np(r):void 0,v=u?Cw(e)?.name:void 0;return l!==void 0&&PC(`yaml_quote`),{extension:m,format:h,basePath:_,subPath:u?i:void 0,fullPathRegEx:_===void 0?void 0:Mre({extension:m,format:h,basePath:_,subPath:i,indexFileName:v,_i18n:n}),fullPath:d?ZC({_i18n:n,locale:n.defaultLocale,path:d}):void 0,fmDelimiters:ew({format:h,delimiter:g}),bodyField:t?.body_field??c,yamlQuote:!!l}}})),nw,rw,iw,aw,Pre,Fre,Ire,Lre,Rre,zre,ow,sw=s((()=>{p(),Zp(),TF(),FC(),Sw(),nw={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`},rw=`_default`,iw={key:`translationKey`,value:`{{slug}}`},aw={i18nEnabled:!1,saveAllLocales:!0,allLocales:[rw],initialLocales:[rw],defaultLocale:rw,structure:nw.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nSingleFileDefaultRoot:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nMultiRootFolder:!1},canonicalSlug:{...iw},omitDefaultLocaleFromFilePath:!1,omitDefaultLocaleFromPreviewPath:!1},Pre=(e,t)=>{let n=dn(bF);if(!d(n.i18n))return;let r=structuredClone(n.i18n);if(e.i18n||fw(e)){if(d(e.i18n)&&Object.assign(r,e.i18n),t)if(t.i18n)d(t.i18n)&&Object.assign(r,t.i18n);else return}else return;return r},Fre=(e,t)=>t?t.file.includes(`{{locale}}`)?nw.MULTIPLE_FILES:e===nw.SINGLE_FILE_DEFAULT_ROOT?nw.SINGLE_FILE_DEFAULT_ROOT:nw.SINGLE_FILE:e,Ire=(e,t)=>({i18nSingleFile:e&&t===nw.SINGLE_FILE,i18nSingleFileDefaultRoot:e&&t===nw.SINGLE_FILE_DEFAULT_ROOT,i18nMultiFile:e&&t===nw.MULTIPLE_FILES,i18nMultiFolder:e&&t===nw.MULTIPLE_FOLDERS,i18nMultiRootFolder:e&&(t===nw.MULTIPLE_FOLDERS_I18N_ROOT||t===nw.MULTIPLE_ROOT_FOLDERS)}),Lre=(e,t,n)=>e?n&&t.includes(n)?n:t[0]:rw,Rre=(e,t,n)=>e===`all`?t:e==="default"?[n]:t.filter(t=>t===n||!Array.isArray(e)||e.includes(t)),zre=(e,t,n)=>e?n?/{{locale}}[./]/.test(n.file):t.i18nMultiFile||t.i18nMultiFolder||t.i18nMultiRootFolder:!1,ow=(e,t)=>{let n=Pre(e,t),{structure:r=nw.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&&PC(`save_all_locales`),l!==void 0&&PC(`omit_default_locale_from_filename`);let{key:f=iw.key,value:p=iw.value}=c,m=i.length>0,h=m?i:[rw],g=Lre(m,h,a),_=Fre(r,t),v=Ire(m,_),y=!m||s===!0&&o===void 0,b=Rre(o,h,g),x=zre(u,v,t);return _===`multiple_folders_i18n_root`&&PC(`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}}})),cw,lw,uw,dw,fw,Bre,pw,mw,hw,gw,_w,vw,yw,bw,xw,Sw=s((()=>{X(),Ip(),Zp(),TF(),DC(),jC(),Nre(),sw(),cw=ln(),lw=new Map,uw=e=>typeof e.folder==`string`&&!Array.isArray(e.files),dw=e=>e.folder===void 0&&Array.isArray(e.files),fw=e=>dw(e)&&e.name===`_singletons`,Bre=(e,{visible:t=void 0,type:n=void 0}={})=>`divider`in e||t&&e.hide?!1:n===`entry`?uw(e):n===`file`?dw(e):n===`singleton`?fw(e):uw(e)||dw(e),pw=({collections:e=dn(bF)?.collections??[],visible:t,type:n}={})=>e.filter(e=>Bre(e,{visible:t,type:n})),mw=()=>pw({visible:!0})[0],hw=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`})=>OC.includes(e)).map(({multiple:e,name:t})=>e?`${t}.*`:t):[]},gw=(e,t)=>({...e,_i18n:t,_type:`entry`,_file:tw({rawCollection:e,_i18n:t}),_thumbnailFieldNames:hw(e)}),_w=(e,t,n)=>({...e,_i18n:t,_type:fw(e)?`singleton`:`file`,_fileMap:Object.fromEntries(n.filter(bC).map(t=>{let n=ow(e,t),r=tw({rawCollection:e,file:t,_i18n:n});return[t.name,{...t,_file:r,_i18n:n}]}))}),vw=()=>{let e=dn(bF)?.singletons;if(!Array.isArray(e))return;let t=xC(e).map(e=>({...e,file:Np(e.file)}));if(!t.length)return;let n={name:`_singletons`,files:t},r=ow(n);return _w(n,r,t)},yw=e=>{let t=lw.get(e);if(t)return t;if(e===`_singletons`){let t=vw();return lw.set(e,t),t}let n=pw().find(t=>t.name===e);if(!n){lw.set(e,void 0);return}let r=uw(n)?n:void 0,i=dw(n)?n:void 0;if(!r&&!i){lw.set(e,void 0);return}r?r.folder=Np(r.folder):i?.files.forEach(e=>{e.file&&=Np(e.file)});let a=ow(n),o=r?gw(r,a):_w(i,a,i.files);return lw.set(e,o),o},bw=(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},xw=e=>e?e===`_singletons`?9999999:dn(bF)?.collections?.findIndex(({name:t})=>t===e)??-1:-1})),Cw,ww,Tw=s((()=>{X(),Sw(),Cw=e=>{if(!uw(e))return;let{index_file:t}=e;if(!t)return;let n=t===!0?{}:t;return{name:n.name??`_index`,label:n.label??Y(`index_file`),icon:n.icon??`home`,fields:n.fields,editor:n.editor}},ww=(e,t)=>{let n=Cw(e);return n?t.slug===n.name:!1}})),Vre=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_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}}}))})),Ew,Dw,Ow,kw,Aw,jw,Mw=s((()=>{Ew=/^\d{4}-[01]\d-[0-3]\d$/,Dw=/T00:00(?::00)?(?:\.000)?Z$/,Ow={year:`numeric`,month:`short`,day:`numeric`},kw={hour:`numeric`,minute:`numeric`,hour12:!0},Aw={...Ow,...kw},jw=(e,t)=>e.toLocaleString(t??void 0,Aw)})),Nw,Pw,Fw,Iw,Lw,Rw=s((()=>{GS(),Nw=/(?<hours>[+-]\d{2})(?::?(?<minutes>\d{2}))?(?::?(?<seconds>\d{2}))?(?:\.\d+)?$|Z$/,Pw=e=>String(Math.abs(Number(e))).padStart(2,`0`),Fw=(e,t)=>{if(typeof e!=`string`||!e.trim())return;let{inputTimeZone:n}=WS(t);if(n===`local`||n===`utc`)return;let r=new Date(e);if(Number.isNaN(r.getTime()))return;let i=e.match(Nw);if(!i?.groups)return;let{hours:a,minutes:o=`0`}=i.groups,s=i[0]===`Z`?`+00:00`:`${a.startsWith(`-`)?`-`:`+`}${Pw(a)}:${Pw(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},Iw=(e,t)=>{let n=Fw(e,t);if(n)return n;let{inputTimeZone:r,singleCustomTimeZone:i}=WS(t);if(i)return i;try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(r===`local`)return e}catch{return r===`local`?``:void 0}},Lw=(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}}})),zw,Bw,Vw,Hw,Uw,Ww,Gw,Kw,qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT=s((()=>{nb(),zw=u(RS(),1),Bw=u(zS(),1),Vw=u(BS(),1),Hw=u(Vre(),1),Uw=u(VS(),1),QC(),Mw(),GS(),Rw(),zw.default.extend(Bw.default),zw.default.extend(Vw.default),zw.default.extend(Uw.default),zw.default.extend(Hw.default),Ww=/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/,Gw=/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/,Kw=e=>e instanceof Date&&!Number.isNaN(e.getTime()),qw=e=>e?zw.default.utc:zw.default,Jw=({value:e,format:t,parseAsUTC:n})=>{let r=qw(n),i=r(e,t);return i.isValid()?i:r(e)},Yw=({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}=tb({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}`},Xw=(e,t)=>{let{format:n,timeOnly:r,utc:i,outputUTC:a}=WS(t),o=i||a;if(!e)return;let s;if(n){let t=Jw({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),Kw(s))return s;console.error(`Invalid Date`,e)},Zw=(e,t)=>{let{dateOnly:n,timeOnly:r,inputTimeZone:i}=WS(e);return Yw({timeZone:t,inputTimeZone:i,dateOnly:n,timeOnly:r,includeUTCSeconds:!0})},Qw=({inputValue:e,currentValue:t,fieldConfig:n,timeZone:r,outputUTC:i})=>{let{format:a,dateOnly:o,timeOnly:s,inputTimeZone:c,outputUTC:l}=WS(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=qw(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`?zw.default.utc(e).format():u?(r?zw.default.tz(e,r):(0,zw.default)(e)).utc().format():r&&c!==`local`?zw.default.tz(e,r).format(`YYYY-MM-DDTHH:mm:ssZ`):p?e:`${e}${m}`},$w=({currentValue:e,fieldConfig:t,timeZone:n})=>{let{dateOnly:r,timeOnly:i,inputTimeZone:a,format:o,outputUTC:s}=WS(t),c=Fw(e,t)??n;if(!e)return``;let l=r?e.match(Ww)?.groups?.date:i?e.match(Gw)?.groups?.time:void 0;if(l)return l;let u;if(c&&o&&!s){try{let t=(0,zw.default)(e,o).tz(c,!0);u=t.isValid()?t.toDate():void 0}catch{}u??=Xw(e,t)}else u=Xw(e,t);return u?Yw({date:u,timeZone:c,inputTimeZone:a,dateOnly:r,timeOnly:i}):``},eT=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o,singleCustomTimeZone:s}=WS(t),c=o?`UTC`:s;if(typeof n!=`string`||!n.trim())return``;if(r){let e=Jw({value:n,format:r,parseAsUTC:o});return e.isValid()?e.format(r):(console.error(`Invalid Date`,n),``)}let l=Xw(n,t),u=GC(e);return Kw(l)?a?l.toLocaleTimeString(u,{...kw,timeZone:c}):i?l.toLocaleDateString(u,{...Ow,timeZone:c||(o||Ew.test(n)||Dw.test(n)?`UTC`:void 0)}):l.toLocaleString(u,{...Ow,...kw,timeZone:c,timeZoneName:void 0}):``}})),nT,rT=s((()=>{nT=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)})})),iT,Hre=s((()=>{iT=class{#e;#t;#n=``;#r=``;#i={};#a=[];constructor(e,t,{keyPath:n,autoIncrement:r,indexes:i=[]}={}){this.#e=void 0,this.#n=e,this.#r=t,this.#i={keyPath:n,autoIncrement:r},this.#a=i}async#o(e){return new Promise((t,n)=>{let r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{let e=r.result,t=this.#r,n=e.objectStoreNames.contains(t)?r.transaction.objectStore(t):e.createObjectStore(t,this.#i);this.#a.forEach(({name:e,keyPath:t,options:r})=>{n.indexNames.contains(e)||n.createIndex(e,t,r)})},r.onsuccess=()=>{t(r.result)},r.onerror=()=>{n(r.error)}})}async#s(){let e=!1,t=await this.#o(),{version:n,objectStoreNames:r}=t,i=this.#r;if(r.contains(i)){let n=t.transaction(i).objectStore(i);e=this.#a.some(({name:e})=>!n.indexNames.contains(e))}else e=!0;return e&&(t.close(),t=await this.#o(n+1)),t.onversionchange=()=>{t.close(),this.#e=void 0},t}async#c(e,{mode:t=`readonly`}={}){this.#e||(this.#t??=this.#s(),this.#e=await this.#t,this.#t=void 0);let n=this.#e,r=this.#r,i=n.transaction(r,t),a=e(i.objectStore(r));return new Promise((e,n)=>{if(i.onerror=()=>{n(i.error)},i.onabort=()=>{n(i.error)},t===`readwrite`){let t;a&&(a.onsuccess=()=>{t=a.result}),i.oncomplete=()=>{e(t)}}else a?a.onsuccess=()=>{e(a.result)}:i.oncomplete=()=>{e(void 0)}})}async set(e,t){return this.#c(n=>n.put(t,e),{mode:`readwrite`})}async put(e){return this.#c(t=>t.put(e),{mode:`readwrite`})}async saveEntries(e){return this.#c(t=>{e.forEach(([e,n])=>{t.put(n,e)})},{mode:`readwrite`})}async get(e){return this.#c(t=>t.get(e))}async keys(){return this.#c(e=>e.getAllKeys())}async values(){return this.#c(e=>e.getAll())}async entries(){return new Promise((e,t)=>{this.#c(t=>{let n=t.openCursor(),r=[];n.onsuccess=()=>{let t=n.result;t?(r.push([t.key,t.value]),t.continue()):e(r)}}).catch(t)})}async#l({callback:e=void 0,index:t=void 0,query:n=void 0,direction:r=`next`,multiple:i=!1}){return new Promise((a,o)=>{this.#c(o=>{let s=(t?o.index(t):o).openCursor(n,r),c=[];s.onsuccess=()=>{let t=s.result;if(t){let{value:n}=t;typeof e!=`function`||e(n)?i?(c.push(n),t.continue()):a(n):t.continue()}else a(i?c:void 0)}}).catch(o)})}async find(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n})}async findLast(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,direction:`prev`})}async filter(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,multiple:!0})}async delete(e){await this.#c(t=>t.delete(e),{mode:`readwrite`})}async deleteEntries(e){await this.#c(t=>{e.forEach(e=>{t.delete(e)})},{mode:`readwrite`})}async clear(){await this.#c(e=>e.clear(),{mode:`readwrite`})}}})),aT,oT,Ure=s((()=>{aT=e=>{try{return JSON.parse(e)}catch{return null}},oT=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?aT(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(aT)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,aT(t)])}}})),sT=s((()=>{Hre(),Ure()})),cT,Wre=s((()=>{cT={"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(cT)})),lT,Gre=s((()=>{lT={"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(lT)})),uT,dT,fT,pT,mT,Kre=s((()=>{uT=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)},mT=class{constructor(...e){dT.set(this,new Map),fT.set(this,new Map),pT.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()),uT(this,pT,`f`).has(n)||uT(this,pT,`f`).set(n,new Set);let e=uT(this,pT,`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&&uT(this,fT,`f`).set(n,a),i=!1,r)continue;let o=uT(this,dT,`f`).get(a);if(o&&o!=n&&!t)throw Error(`"${n} -> ${a}" conflicts with "${o} -> ${a}". Pass \`force=true\` to override this definition.`);uT(this,dT,`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:uT(this,dT,`f`).get(n)??null}getExtension(e){return typeof e==`string`?(e=e?.split?.(`;`)[0],(e&&uT(this,fT,`f`).get(e.trim().toLowerCase()))??null):null}getAllExtensions(e){return typeof e==`string`?uT(this,pT,`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 uT(this,pT,`f`).values())Object.freeze(e);return this}_getTestState(){return{types:uT(this,dT,`f`),extensions:uT(this,fT,`f`)}}},dT=new WeakMap,fT=new WeakMap,pT=new WeakMap})),hT,gT=s((()=>{Wre(),Gre(),Kre(),hT=new mT(lT,cT)._freeze()})),_T,vT,yT=s((()=>{p(),_T=e=>Array.isArray(e)&&e.every(e=>d(e)),vT=e=>[...new Set(e)]})),bT,xT,ST,CT,wT,TT,ET,DT,OT,kT,AT=s((()=>{Yp(),Ip(),gT(),bT=[`image`,`video`,`audio`],xT=[`image`,`video`],ST=[...bT,`document`,`other`],CT=/\.(?:csv|docx?|odp|ods|odt|pdf|pptx?|rtf|xlsx?)$/i,wT=/^(?<type>image|video|audio)\//,TT=e=>bT.includes(e),ET=e=>{let t=hT.getType(e.path);return TT(e.kind)||t===`application/pdf`||!!t&&Bp(t)},DT=async e=>{let t=``;if(typeof e==`string`)if(e.startsWith(`blob:`))try{t=(await(await fetch(e)).blob()).type}catch{}else{if(Pp(e)){let{hostname:t,pathname:n}=new URL(e);if(t.startsWith(`images.`))return`image`;e=n}t=hT.getType(e)??``}else e instanceof Blob&&(t=e.type);if(!t)return;let[n,r]=t.split(`/`);if(TT(n)&&!r.startsWith(`x-`))return n},OT=e=>{let t=hT.getType(e.path);return!!t&&Bp(t)},kT=e=>hT.getType(e)?.match(wT)?.groups?.type??(CT.test(e)?`document`:`other`)})),jT,MT,NT=s((()=>{Zp(),jT=/^(?:.+\/)?(\.git(?:attributes|ignore|keep))$/,MT=ln([]),un(MT,e=>e.find(({path:e})=>e===`.gitattributes`)?.text?.replace(/\r\n?/g,`
`).split(`
`).map(e=>e.startsWith(`*.`)&&e.includes(`filter=lfs`)?e.split(` `)[0].slice(2).toLowerCase():``).filter(Boolean)??[])})),PT,FT,IT=s((()=>{PT=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,FT=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(PT);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=n,this.#n=r)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}}}));
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function qre(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function Jre(e,t,n){let r=e.split(/\r\n|\n|\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`:  `,i+=o,i+=`
`,e===t&&(i+=` `.repeat(a+n+2),i+=`^
`))}return i}var LT,RT=s((()=>{LT=class extends Error{line;column;codeblock;constructor(e,t){let[n,r]=qre(t.toml,t.ptr),i=Jre(t.toml,n,r);super(`Invalid TOML document: ${e}\n\n${i}`,t),this.line=n,this.column=r,this.codeblock=i}}}));
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function zT(e,t){let n=e[t++],r=n,i=n===`'`,a=n===e[t]&&n===e[t+1];a&&(e[t+=2]===`
`?t++:e[t]===`\r`&&e[t+1]===`
`&&(t+=2));let o=``,s=t,c=0;for(let l=t;l<e.length;l++)if(n=e[l],a&&(n===`
`||n===`\r`&&e[l+1]===`
`))c&&=3;else if(n<` `&&n!==`	`||n===``)throw new LT(`control characters are not allowed in strings`,{toml:e,ptr:l});else if((!c||c===3)&&n===r&&(!a||e[l+1]===r&&e[l+2]===r))return a&&(e[l+3]===r&&l++,e[l+3]===r&&l++),[c?o:o+e.slice(s,l),l+(a?3:1)];else if(!c)!i&&n===`\\`&&(o+=e.slice(s,s=l),c=1);else if(c===1)if(n===`x`||n===`u`||n===`U`){let t=0,r=n===`x`?2:n===`u`?4:8;for(let n=0;n<r;n++,l++){let n=e.charCodeAt(l+1),r=n>=48&&n<=57?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1;if(r<0)throw new LT(`invalid non-hex character in unicode escape`,{toml:e,ptr:l+1});t=t<<4|r}if(t<0||t>1114111||t>=55296&&t<=57343)throw new LT(`invalid unicode escape`,{toml:e,ptr:l});o+=String.fromCodePoint(t),s=l+1,c=0}else if(n===` `||n===`	`)c=2;else{if(n===`b`)o+=`\b`;else if(n===`t`)o+=`	`;else if(n===`n`)o+=`
`;else if(n===`f`)o+=`\f`;else if(n===`r`)o+=`\r`;else if(n===`e`)o+=`\x1B`;else if(n===`"`)o+=`"`;else if(n===`\\`)o+=`\\`;else throw new LT(`unrecognized escape sequence`,{toml:e,ptr:l});s=l+1,c=0}else if(n!==` `&&n!==`	`){if(c===2)throw new LT(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:s});c=+(!i&&n===`\\`),s=l}throw new LT(`unfinished string`,{toml:e,ptr:t})}function Yre(e,t,n,r){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return r?0n:0;let i=BT.test(e);if(i||VT.test(e)){if(HT.test(e))throw new LT(`leading zeroes are not allowed`,{toml:t,ptr:n});e=e.replace(/_/g,``);let a=+e;if(isNaN(a))throw new LT(`invalid number`,{toml:t,ptr:n});if(i){if((i=!Number.isSafeInteger(a))&&!r)throw new LT(`integer value cannot be represented losslessly`,{toml:t,ptr:n});(i||r===!0)&&(a=BigInt(e))}return a}let a=new FT(e);if(!a.isValid())throw new LT(`invalid value`,{toml:t,ptr:n});return a}var BT,VT,HT,UT=s((()=>{IT(),RT(),BT=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,VT=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,HT=/^[+-]?0[0-9_]/}));
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function WT(e,t=0,n=e.length){let r=e.indexOf(`
`,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}function GT(e,t){for(let n=t;n<e.length;n++){let r=e[n];if(r===`
`)return n;if(r===`\r`&&e[n+1]===`
`)return n+1;if(r<` `&&r!==`	`||r===``)throw new LT(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function KT(e,t,n,r){let i;for(;;){for(;(i=e[t])===` `||i===`	`||!n&&(i===`
`||i===`\r`&&e[t+1]===`
`);)t++;if(r||i!==`#`)break;t=GT(e,t)}return t}function Xre(e,t,n,r,i=!1){if(!r)return t=WT(e,t),t<0?e.length:t;for(let a=t;a<e.length;a++){let t=e[a];if(t===`#`)a=WT(e,a);else if(t===n)return a+1;else if(t===r||i&&(t===`
`||t===`\r`&&e[a+1]===`
`))return a}throw new LT(`cannot find end of structure`,{toml:e,ptr:t})}var qT=s((()=>{RT()}));
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function Zre(e,t,n){let r=e.slice(t,n),i=r.indexOf(`#`);return i>-1&&(GT(e,i),r=r.slice(0,i)),[r.trimEnd(),i]}function JT(e,t,n,r,i){if(r===0)throw new LT(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let a=e[t];if(a===`[`||a===`{`){let[o,s]=a===`[`?$re(e,t,r,i):Qre(e,t,r,i);if(n){if(s=KT(e,s),e[s]===`,`)s++;else if(e[s]!==n)throw new LT(`expected comma or end of structure`,{toml:e,ptr:s})}return[o,s]}if(a===`"`||a===`'`){let[r,i]=zT(e,t);if(n){if(i=KT(e,i),e[i]&&e[i]!==`,`&&e[i]!==n&&e[i]!==`
`&&e[i]!==`\r`)throw new LT(`unexpected character encountered`,{toml:e,ptr:i});e[i]===`,`&&i++}return[r,i]}let o=Xre(e,t,`,`,n),s=Zre(e,t,o-+(e[o-1]===`,`));if(!s[0])throw new LT(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return n&&s[1]>-1&&(o=KT(e,t+s[1]),e[o]===`,`&&o++),[Yre(s[0],e,t,i),o]}var YT=s((()=>{UT(),QT(),qT(),RT()}));
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function XT(e,t,n=`=`){let r=t-1,i=[],a=e.indexOf(n,t);if(a<0)throw new LT(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++r];if(o!==` `&&o!==`	`)if(o===`"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new LT(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let[s,c]=zT(e,t);r=e.indexOf(`.`,c);let l=e.slice(c,r<0||r>a?a:r),u=WT(l);if(u>-1)throw new LT(`newlines are not allowed in keys`,{toml:e,ptr:t+r+u});if(l.trimStart())throw new LT(`found extra tokens after the string part`,{toml:e,ptr:c});if(a<c&&(a=e.indexOf(n,c),a<0))throw new LT(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});i.push(s)}else{r=e.indexOf(`.`,t);let n=e.slice(t,r<0||r>a?a:r);if(!ZT.test(n))throw new LT(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});i.push(n.trimEnd())}}while(r+1&&r<a);return[i,KT(e,a+1,!0,!0)]}function Qre(e,t,n,r){let i={},a=new Set,o;for(t++;(o=e[t++])!==`}`&&o;)if(o===`,`)throw new LT(`expected value, found comma`,{toml:e,ptr:t-1});else if(o===`#`)t=GT(e,t);else if(o!==` `&&o!==`	`&&o!==`
`&&o!==`\r`){let o,s=i,c=!1,[l,u]=XT(e,t-1);for(let n=0;n<l.length;n++){if(n&&(s=c?s[o]:s[o]={}),o=l[n],(c=Object.hasOwn(s,o))&&(typeof s[o]!=`object`||a.has(s[o])))throw new LT(`trying to redefine an already defined value`,{toml:e,ptr:t});!c&&o===`__proto__`&&Object.defineProperty(s,o,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new LT(`trying to redefine an already defined value`,{toml:e,ptr:t});let[d,f]=JT(e,u,`}`,n-1,r);a.add(d),s[o]=d,t=f}if(!o)throw new LT(`unfinished table encountered`,{toml:e,ptr:t});return[i,t]}function $re(e,t,n,r){let i=[],a;for(t++;(a=e[t++])!==`]`&&a;)if(a===`,`)throw new LT(`expected value, found comma`,{toml:e,ptr:t-1});else if(a===`#`)t=GT(e,t);else if(a!==` `&&a!==`	`&&a!==`
`&&a!==`\r`){let a=JT(e,t-1,`]`,n-1,r);i.push(a[0]),t=a[1]}if(!a)throw new LT(`unfinished array encountered`,{toml:e,ptr:t});return[i,t]}var ZT,QT=s((()=>{UT(),YT(),qT(),RT(),ZT=/^[a-zA-Z0-9-_]+[ \t]*$/}));
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function $T(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&!(r===1&&c.t===3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function eie(e,{maxDepth:t=1e3,integersAsBigInt:n}={}){let r={},i={},a=r,o=i;for(let s=KT(e,0);s<e.length;){if(e[s]===`[`){let t=e[++s]===`[`,n=XT(e,s+=+t,`]`);if(t){if(e[n[1]-1]!==`]`)throw new LT(`expected end of table declaration`,{toml:e,ptr:n[1]-1});n[1]++}let c=$T(n[0],r,i,t?2:1);if(!c)throw new LT(`trying to redefine an already defined table or value`,{toml:e,ptr:s});o=c[2],a=c[1],s=n[1]}else{let r=XT(e,s),i=$T(r[0],a,o,0);if(!i)throw new LT(`trying to redefine an already defined table or value`,{toml:e,ptr:s});let c=JT(e,r[1],void 0,t,n);i[1][i[0]]=c[0],s=c[1]}if(s=KT(e,s,!0),e[s]&&e[s]!==`
`&&e[s]!==`\r`)throw new LT(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:s});s=KT(e,s)}return r}var tie=s((()=>{QT(),YT(),qT(),RT()}));
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function eE(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}function nie(e){for(let t=0;t<e.length;t++)if(eE(e[t])!==`object`)return!1;return e.length!=0}function tE(e){return JSON.stringify(e).replace(/\x7f/g,`\\u007f`)}function nE(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);if(t===`number`)return isNaN(e)?`nan`:e===1/0?`inf`:e===-1/0?`-inf`:Number.isInteger(e)&&(r||!Number.isSafeInteger(e))?e.toFixed(1):e.toString();if(t===`bigint`||t===`boolean`)return e.toString();if(t===`string`)return tE(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return rie(e,n,r);if(t===`array`)return iie(e,n,r)}function rie(e,t,n){let r=Object.keys(e);if(r.length===0)return`{}`;let i=`{ `;for(let a=0;a<r.length;a++){let o=r[a];a&&(i+=`, `),i+=iE.test(o)?o:tE(o),i+=` = `,i+=nE(e[o],eE(e[o]),t-1,n)}return i+` }`}function iie(e,t,n){if(e.length===0)return`[]`;let r=`[ `;for(let i=0;i<e.length;i++){if(i&&(r+=`, `),e[i]===null||e[i]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);r+=nE(e[i],eE(e[i]),t-1,n)}return r+` ]`}function aie(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let i=``;for(let a=0;a<e.length;a++)i+=`${i&&`
`}[[${t}]]\n`,i+=rE(0,e[a],t,n,r);return i}function rE(e,t,n,r,i){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``,o=``,s=Object.keys(t);for(let e=0;e<s.length;e++){let c=s[e];if(t[c]!==null&&t[c]!==void 0){let e=eE(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=iE.test(c)?c:tE(c);if(e===`array`&&nie(t[c]))o+=(o&&`
`)+aie(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`
`)+rE(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=nE(t[c],e,r,i),a+=`
`}}return e&&(a||!o)&&(a=a?`[${e}]\n${a}`:`[${e}]`),a&&o?`${a}\n${o}`:a||o}function oie(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(eE(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=rE(0,e,``,t,n);return r[r.length-1]===`
`?r:r+`
`}var iE,sie=s((()=>{iE=/^[a-z0-9-_]+$/i})),aE=s((()=>{tie(),sie(),IT()})),oE,sE,cE,lE,uE,dE,fE,pE=s((()=>{
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*    list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
*    this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors
*    may be used to endorse or promote products derived from this software without
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
p(),Ip(),aE(),eb(),yp(),Sw(),DC(),WC(),Nre(),fb(),oE=e=>JSON.parse(e),sE=e=>f(eie(e)),cE=(e,t)=>lne(e,t),lE=e=>e.startsWith(`+++`)?`toml-frontmatter`:e.startsWith(`{`)?`json-frontmatter`:`yaml-frontmatter`,uE=new Map,dE=({collection:e,collectionFile:t,format:n,text:r})=>{let{format:i,fmDelimiters:a,bodyField:{key:o=`body`,inline:s=!1}={}}=(t??e)._file,[c,l]=(i===`frontmatter`?ew({format:n,delimiter:a}):a)??[`---`,`---`],u=jp(c),d=jp(l),f=`${u}|${d}`,p=db(uE,f,()=>RegExp(`^${u}\n(?:(?<head>[\\s\\S]*?))\n${d}(?:\n(?<body>[\\s\\S]*))?$`,`s`)),{head:m,body:h}=r.match(p)?.groups??{};if(!m&&!h)return{[o]:r};let g={};return n===`yaml-frontmatter`&&(g=cE(m)),n===`toml-frontmatter`&&(g=sE(m)),n===`json-frontmatter`&&(g=oE(`{${m}}`)),(!g||typeof g!=`object`||Array.isArray(g))&&(g={}),{...g,...!s&&!(o in g)?{[o]:h}:{}}},fE=async({text:e=``,path:t,folder:{collectionName:n,fileName:r}})=>{let i=yw(n),a=i&&r?SC(i,r):void 0;if(!i)throw Error(`Collection not found`);if(r&&!a)throw Error(`Collection file not found`);e=e.trim().replace(/\r\n?/g,`
`);let{_file:{format:o}}=a??i,s=hp.get(o)?.parser;if(s)return s(e);if(o===`raw`)return{body:e};try{if(o===`yaml`||o===`yml`)return cE(e);if(o===`toml`)return sE(e);if(o===`json`)return oE(e);if(o===`frontmatter`&&(o=lE(e)),HC.includes(o))return dE({collection:i,collectionFile:a,format:o,text:e})}catch(e){throw Error(`${t} could not be parsed due to ${e.name}: ${e.message}`)}throw Error(`${t} could not be parsed due to an unknown format: ${o}`)}})),mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE=s((()=>{Ap(),p(),Ip(),gc(),Sw(),Tw(),DC(),jP(),pE(),fb(),mE=e=>/\/_index(?:\.[\w-]+)?\.md$/.test(e),hE=new Map,gE=({subPath:e,subPathTemplate:t})=>{if(t?.includes(`{{slug}}`)){let n=db(hE,t,()=>{let e=``,n=t;for(;n.length>0;){let t=n.indexOf(`{{`);if(t===-1){e+=jp(n);break}t>0&&(e+=jp(n.substring(0,t)));let r=n.indexOf(`}}`,t);if(r===-1){e+=jp(n);break}let i=n.substring(t,r+2);e+=i===`{{slug}}`?`([^/]+)`:`[^/]+?`,n=n.substring(r+2)}return RegExp(`^${e}$`)}),[,r]=e.match(n)??[];if(r)return r}return e},_E=async(e,t)=>{try{return await fE(e)}catch(e){console.error(e),t.push(e);return}},vE=({rawContent:e,fields:t,i18nSingleFile:n,validate:r})=>{let i=t[0].name;if(n)return!d(e)||!Object.values(e).every(r)?void 0:Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{[i]:t}]));if(r(e))return{[i]:e}},yE=(e,t,n)=>{if(!d(e))return;let r=t.filter(e=>e!==n),i=Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e))),a={[n]:i};return r.forEach(t=>{d(e[t])&&(a[t]=e[t])}),a},bE=(e,t,n)=>{let r={rawContent:e,fields:t,i18nSingleFile:n};return bP(t,`list`)?vE({...r,validate:Array.isArray}):bP(t,`keyvalue`)?vE({...r,validate:e=>d(e)&&Object.values(e).every(e=>typeof e==`string`)}):d(e)?e:void 0},xE=(e,t,n,r,i)=>r?.split(`/`).pop()===`_index`&&/\/_index(?:\.[\w-]+)?\.[\w]+$/.test(e)&&i!==`md`?!0:mE(e)?!(t||Cw(n)?.name===`_index`||r?.split(`/`).pop()===`_index`&&i===`md`):!1,SE=(e,t,n,r,i)=>{let{path:a,folder:{filePathMap:o}}=e;if(t){if(i){let[e,t]=Object.entries(o??{}).find(([,e])=>e===a)??[];return{subPath:t,locale:e}}return{subPath:a,locale:void 0}}if(!n)return{subPath:void 0,locale:void 0};let s=a.match(n);if(!s?.groups)return{subPath:void 0,locale:void 0};let{subPath:c,locale:l=r}=s.groups;return{subPath:c,locale:l}},CE=(e,t,n,r,i,a)=>{let o=r||gE({subPath:i,subPathTemplate:a});e.slug=o,e.locales._default={slug:o,path:n,content:mc(t)}},wE=(e,t,n,r,i,a,o)=>{let s=r||gE({subPath:i,subPathTemplate:a});e.slug=s,e.locales=Object.fromEntries(o.filter(e=>e in t).map(e=>[e,{slug:s,path:n,content:mc(t[e])}]))},TE=(e,t,n,r,i,a,o,s,c,l,u)=>{let d=l&&typeof t[l]==`string`?t[l]:void 0,f=r||gE({subPath:i,subPathTemplate:a}),p={slug:f,path:n,content:mc(t)},m=`${c}/${d??f}`,h=u.find(e=>e.id===m);return h?(h.locales[o]=p,o===s&&(h.slug=f,h.subPath=i),!0):(e.id=m,e.locales[o]=p,o===s&&(e.slug=f),!1)},EE=async({file:e,entries:t,errors:n})=>{let r=await _E(e,n);if(!r)return;let{path:i,meta:a={},folder:{collectionName:o,fileName:s}}=e,c=yw(o),l=c&&s?SC(c,s):void 0;if(!c||s&&!l)return;let{fields:u=[],_file:{fullPathRegEx:d,subPath:f,extension:p},_i18n:{i18nEnabled:m,allLocales:h,defaultLocale:g,structureMap:{i18nSingleFile:_,i18nSingleFileDefaultRoot:v,i18nMultiFile:y,i18nMultiFolder:b,i18nMultiRootFolder:x},canonicalSlug:{key:S}}}=l??c,C=v?yE(r,h,g):r;if(!C)return;let w=bE(C,u,_||v);if(!w||xE(i,s,c,f,p))return;let T=y||b||x,{subPath:E,locale:ee}=SE(e,s,d,g,T);if(!E||T&&!ee)return;let te={id:``,slug:``,subPath:E,locales:{},...a};if(!m)CE(te,w,i,s,E,f);else if(_||v)wE(te,w,i,s,E,f,h);else if(TE(te,w,i,s,E,f,ee,g,o,S,t))return;t.push(te)},DE=async e=>{let t=[],n=[];return await Promise.all(e.map(e=>EE({file:e,entries:t,errors:n}))),{entries:t.filter(e=>(e.id=Dp(),!!e.slug&&!!Object.keys(e.locales).length)),errors:n}}})),kE,cie=s((()=>{fm(),NT(),yC(),OE(),kE=e=>{let t=[],n=[],r=[];e.forEach(e=>{let{path:i,name:a}=e;if(a.startsWith(`.`))jT.test(a)&&r.push({...e,type:`config`});else{let[r]=vC(i),[a]=um(i);r&&t.push({...e,type:`entry`,folder:r}),a&&!t.find(e=>e.path===i)&&!mE(i)&&n.push({...e,type:`asset`,folder:a})}});let i=[...t,...n,...r];return{entryFiles:t,assetFiles:n,configFiles:r,allFiles:i,count:i.length}}})),AE,lie,jE=s((()=>{J(),AE=Nr({isLocalHost:!1,isLocalBackendSupported:!1,isBrave:!1,isMacOS:!1,isSmallScreen:!1,isMediumScreen:!1,isLargeScreen:!1,hasMouse:!0}),lie=()=>{let{location:{hostname:e},navigator:{userAgentData:t,platform:n},matchMedia:r}=globalThis;AE.isLocalHost=e===`127.0.0.1`||/^(.+\.)?localhost$/.test(e),AE.isLocalBackendSupported=`showDirectoryPicker`in globalThis,AE.isBrave=t?.brands.some(({brand:e})=>e===`Brave`)??!1,AE.isMacOS=t?.platform===`macOS`||n.startsWith(`Mac`);let i=r(`(width < 768px)`),a=r(`(768px <= width < 1024px)`),o=r(`(1024px <= width)`),s=r(`(pointer: fine)`),c=()=>{AE.isSmallScreen=i.matches},l=()=>{AE.isMediumScreen=a.matches},u=()=>{AE.isLargeScreen=o.matches},d=()=>{AE.hasMouse=s.matches};c(),l(),u(),d(),i.addEventListener(`change`,c),a.addEventListener(`change`,l),o.addEventListener(`change`,u),s.addEventListener(`change`,d)}})),uie=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),die=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),fie=c(((e,t)=>{var n=uie(),r=die();t.exports=n.bind(null,r)})),pie=c(((e,t)=>{var n=fie(),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,``)}})),mie,ME,NE,hie,PE,FE,IE,LE,RE,gie,zE,BE,VE,HE=s((()=>{X(),Ap(),Yp(),Ip(),mie=u(pie(),1),gb(),ME=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),NE=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},hie=e=>decodeURIComponent(e),PE=new Map,FE=e=>{let t=Xh.current,n=PE.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),PE.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)}})},IE=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=Vp(e),i=RegExp(`^${jp(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>Fp(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},LE=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,mie.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=Vp(r);r=`${hb(e)}${t?`.${t.toLowerCase()}`:``}`}return IE(r,n)},RE=e=>e.filter(Boolean).join(`/`),gie=e=>e.split(`/`).filter(e=>e!==`.`&&e!==`..`).join(`/`),zE=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}),RE(t)},BE=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,VE=async e=>{let t=await BE(e).arrayBuffer();return kp(new Blob([`blob ${t.byteLength}\0`,t]))}})),_ie,UE,WE,GE,KE,qE,JE,vie,yie,YE,bie,XE,ZE,QE,xie,Sie,Cie,wie,Tie,$E,Eie=s((()=>{yT(),Yp(),Ip(),Zp(),JF(),fm(),AT(),NT(),cie(),rm(),yC(),OE(),jE(),HE(),_ie=10*1024*1024,UE=10,WE=async(e,t,n=`file`)=>{let r=Np(t??``),i=e;if(!r){if(n===`directory`)return i;throw Error(`Path is required for file handle retrieval`)}let a=r.split(`/`),o=a.length-1;for await(let[e,t]of a.entries())i=await(e===o&&n===`file`?i.getFileHandle(t,{create:!0}):i.getDirectoryHandle(t,{create:!0}));return i},GE=(e,t)=>WE(e,t,`file`),KE=(e,t)=>WE(e,t,`directory`),qE=e=>e?ME(e,e=>jp(e).replace(em,`.+?`)):/^.+$/,JE=async(e,t,n=``)=>{let{scanningPaths:r,scanningPathsRegEx:i,fileHandles:a,pathRegexCache:o}=t;for await(let[s,c]of e.entries()){if(s.startsWith(`.`)&&!jT.test(s))continue;let e=n?`${n}/${s}`:s,l=i.some(t=>t.test(e));if(c.kind===`file`&&l&&a.push({handle:c,path:e}),c.kind===`directory`){let n=o.get(e);n||(n=qE(e),o.set(e,n)),(l||r.some(e=>n.test(e)))&&await JE(c,t,e)}}},vie=()=>{let e=dn(pC).flatMap(({filePathMap:e,folderPathMap:t})=>Object.values(e||(t??{}))),t=dn(im).filter(({internalPath:e})=>e!==void 0).map(({internalPath:e})=>e);return vT([...e,...t].map(e=>Np(e??``)))},yie=async e=>{let t=[],n=vie();return await JE(e,{rootDirHandle:e,scanningPaths:n,scanningPathsRegEx:n.map(qE),fileHandles:t,pathRegexCache:new Map}),t.map(({handle:e,path:t})=>({handle:e,path:t.normalize(),name:e.name.normalize(),size:0,sha:``}))},YE=async e=>{let{name:t,handle:n}=e;if(t===`.gitkeep`)return e;try{let r=await n.getFile();if(r.size>_ie)return console.warn(`File ${t} is too large (${r.size} bytes), skipping content read`),{...e,text:``};let i=await Wp(r);return{...e,text:i}}catch(t){return console.error(t),{...e,text:``}}},bie=async e=>{let{name:t,handle:n}=e,r=kT(t);try{let t=await n.getFile(),{size:i}=t,a=await VE(t);return{...e,kind:r,size:i,sha:a}}catch(t){return console.error(t),{...e,kind:r}}},XE=async e=>{let{entryFiles:t,assetFiles:n,configFiles:r}=kE(await yie(e)),i=[],a=[];for(let e=0;e<t.length;e+=UE){let n=t.slice(e,e+UE),r=await Promise.all(n.map(e=>YE(e)));i.push(...r)}for(let e=0;e<r.length;e+=UE){let t=r.slice(e,e+UE),n=await Promise.all(t.map(e=>YE(e)));a.push(...n)}let{entries:o,errors:s}=await DE(i),c=[];for(let e=0;e<n.length;e+=UE){let t=n.slice(e,e+UE),r=await Promise.all(t.map(e=>bie(e)));c.push(...r)}mC.set(o),MF.set(c),MT.set(a),hC.set(s),dC.set(!0)},ZE=()=>`move`in FileSystemFileHandle.prototype&&!AE.isBrave,QE=async(e,t)=>{let n=await e.createWritable?.();try{await n?.write(t)}finally{try{await n?.close()}catch{}}},xie=async({rootDirHandle:e,previousPath:t,path:n})=>{let{dirname:r,basename:i}=Vp(n),{dirname:a,basename:o}=Vp(t),s=await GE(e,t);if(ZE())return await s.move(await KE(e,r),i),s;let c=await GE(e,n),l=await KE(e,a);return await QE(c,await s.getFile()),await l.removeEntry(o),c},Sie=async({rootDirHandle:e,fileHandle:t,path:n,data:r})=>{let i;if(!t)if(ZE()){let{dirname:r,basename:a}=Vp(Np(n)),o=`${r?`${r}/`:``}.sveltia-tmp-${crypto.randomUUID()}`;t=await GE(e,o),i={dirname:r,basename:a}}else t=await GE(e,n);if(await QE(t,r),i){let{dirname:n,basename:r}=i;await t.move(await KE(e,n),r)}return t.getFile()},Cie=async(e,t)=>{for(let n=t.length;n>0;--n){let r=t[n-1],i=t.slice(0,n-1).join(`/`),a=await KE(e,i),o=await a.getDirectoryHandle(r);for await(let e of o.entries())return;await a.removeEntry(r)}},wie=async({rootDirHandle:e,path:t})=>{let{dirname:n=``,basename:r}=Vp(Np(t));await(await KE(e,n)).removeEntry(r),n&&await Cie(e,n.split(`/`))},Tie=async(e,{action:t,path:n,previousPath:r,data:i})=>{let a;return t===`move`&&r&&(a=await xie({rootDirHandle:e,previousPath:r,path:n})),[`create`,`update`,`move`].includes(t)&&i?Sie({rootDirHandle:e,fileHandle:a,path:n,data:i}):(t===`delete`&&await wie({rootDirHandle:e,path:n}),null)},$E=async(e,t)=>{let n=await Promise.all(t.map(async t=>{let{path:n,data:r}=t,i=null;if(e)try{i=await Tie(e,t)}catch(e){console.error(e)}if(!i){if(r===void 0)return null;i=BE(r)}return[n,{file:i,sha:await VE(i)}]}));return{sha:await VE(new Date().toJSON()),files:Object.fromEntries(n.filter(e=>!!e))}}})),eD,Die,tD,Oie,nD,rD,iD,aD,kie,Aie,jie,Mie,Nie,Pie,Fie,Iie=s((()=>{sT(),Zp(),iA(),Eie(),TF(),eD=`local`,Die=`Local Repository`,tD=void 0,Oie={service:``,label:``,owner:``,repo:``,branch:``},nD=new Proxy({},{get:(e,t)=>(tD??Oie)[t]}),rD=`root_dir_handle`,iD=void 0,aD=void 0,kie=async({forceReload:e=!1,showPicker:t=!0}={})=>{if(!(`showDirectoryPicker`in window))throw Error(`unsupported`);let n=e?null:await iD?.get(rD)??null;if(n)if(await n.requestPermission({mode:`readwrite`})!==`granted`)n=null;else try{await n.entries().next()}catch(e){n=null,console.error(e)}if(!n&&t&&(n=await window.showDirectoryPicker(),n)){try{await n.getDirectoryHandle(`.git`)}catch(e){if(e.name===`TypeMismatchError`)await n.getFileHandle(`.git`);else throw e}await iD?.set(rD,n)}return n},Aie=()=>{let{name:e}=dn(bF).backend;tD=Zk[e]?.init?.();let{databaseName:t}=tD??{};return iD=t?new iT(t,`file-system-handles`):null,nD},jie=async({auto:e=!1})=>{let t=await kie({showPicker:!e});if(t)aD=t;else throw Error(`Directory handle could not be acquired`);return{backendName:eD}},Mie=async()=>{await iD?.delete(rD)},Nie=async()=>{await XE(aD)},Pie=async e=>$E(aD,e),Fie={isGit:!1,name:eD,label:Die,repository:nD,init:Aie,signIn:jie,signOut:Mie,fetchFiles:Nie,commitChanges:Pie}})),Lie,oD,Rie,sD,zie,Bie,Vie,Hie,Uie,Wie,Gie=s((()=>{Eie(),yC(),Lie=`sveltia-cms-test`,oD=`test-repo`,Rie=`Test`,sD=void 0,zie=()=>void 0,Bie=async()=>{try{sD=await KE(await navigator.storage.getDirectory(),Lie)}catch{}return{backendName:oD}},Vie=async()=>{},Hie=async()=>{sD?await XE(sD):dC.set(!0)},Uie=async e=>$E(sD,e),Wie={isGit:!1,name:oD,label:Rie,init:zie,signIn:Bie,signOut:Vie,fetchFiles:Hie,commitChanges:Uie}})),cD,lD,uD,dD,fD,pD,mD=s((()=>{cD=`gitea`,lD=`Gitea / Forgejo`,uD=`https://gitea.com/api/v1`,dD=`https://gitea.com`,fD=`login/oauth/authorize`,pD=1.24})),hD,gD=s((()=>{J(),sT(),hD=Nr({account:void 0}),oi(()=>{ri(()=>{let e=hD.account;(async()=>{try{e?await oT.set(`sveltia-cms.user`,e):e===null&&await oT.delete(`sveltia-cms.user`)}catch{}})()})})})),_D,vD,yD=s((()=>{rT(),p(),_D=(e,t=globalThis.window?.location?.origin??globalThis.location?.origin??`https://localhost`)=>{try{let{hostname:n,protocol:r}=new URL(e,t);return r===`https:`||[`localhost`,`127.0.0.1`,`[::1]`].includes(n)}catch{return!1}},vD=async(e,t={},{responseType:n=`json`,refreshAccessToken:r=void 0,retries:i=1}={})=>{let a;if(t.cache=`no-cache`,t.headers=new Headers(t.headers),t.headers.has(`Authorization`)&&!_D(e))throw Error(`Refusing to send credentials over an insecure connection`);n===`json`&&t.headers.set(`Accept`,`application/json`),t.method===`POST`&&d(t.body)&&(t.headers.set(`Content-Type`,`application/json`),t.body=JSON.stringify(t.body));try{a=await fetch(e,t)}catch(e){throw Error(`Failed to send the request`,{cause:e})}if(n===`raw`)return a;let{ok:o,status:s}=a,c;try{if(o&&n===`blob`)return a.blob();if(o&&n===`text`)return a.text();c=await a.json()}catch(e){throw Error(`Failed to parse the response`,{cause:e})}if(o&&!(e.endsWith(`/graphql`)&&d(c)&&c.errors))return c;if(s===502&&i>0)return await nT(1e3),vD(e,t,{responseType:n,refreshAccessToken:r,retries:i-1});if(s===401&&r){let[i]=t.headers.get(`Authorization`)?.split(` `)??[`token`],{token:a}=await r();return t.headers.set(`Authorization`,`${i} ${a}`),vD(e,t,{responseType:n})}if(!d(c))throw Error(`Server responded with an error`,{cause:{status:s}});let l=``;throw typeof c.error==`string`&&(l=c.error),typeof c.message==`string`&&(l=c.message),Array.isArray(c.errors)&&(typeof c.errors[0]==`string`&&(l=c.errors.join(`, `)),d(c.errors[0])&&typeof c.errors[0].message==`string`&&(l=c.errors.map(e=>e.message).join(`, `))),Error(`Server responded with an error`,{cause:{status:s,message:l}})}})),bD,xD,SD,CD,wD,TD,ED=s((()=>{X(),gD(),yD(),bD={clientId:``,authScope:``,authURL:``,tokenURL:``,authScheme:`token`,restBaseURL:``,graphqlBaseURL:``,includeCredentials:!1},xD={...bD},SD={},CD=async({clientId:e,tokenURL:t,refreshToken:n})=>{let r,i=``;if(!_D(t))throw Error(Y(`sign_in_error.TOKEN_REFRESH_FAILED`));try{r=await fetch(t,{method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({grant_type:`refresh_token`,client_id:e,refresh_token:n}),...xD.includeCredentials&&{credentials:`include`}})}catch{}if(!r?.ok)throw Error(Y(`sign_in_error.TOKEN_REFRESH_FAILED`));return{access_token:i,refresh_token:n}=await r.json(),hD.account=hD.account?{...hD.account,token:i,refreshToken:n}:hD.account,{token:i,refreshToken:n}},wD=async(e,{method:t=`GET`,headers:n={},body:r=null,isGraphQL:i=!1,responseType:a=`json`,token:o=void 0,refreshToken:s=void 0}={})=>{let{clientId:c,tokenURL:l,restBaseURL:u,graphqlBaseURL:d,authScheme:f=`token`,includeCredentials:p}=xD,m=hD.account,h=i?d:u;return o??=m?.token,s??=m?.refreshToken,n.Authorization=`${f} ${o}`,vD(`${h}${e}`,{method:t,headers:n,body:r,...p&&{credentials:`include`}},{responseType:a,refreshAccessToken:s?()=>CD({clientId:c,tokenURL:l,refreshToken:s}):void 0})},TD=async(e,t={})=>{e=e.replace(/\n\s*/g,` `),Object.entries(SD).forEach(([n,r])=>{e.includes(`$${n}`)&&(t[n]??=r)});let{data:n}=await wD(``,{method:`POST`,body:{query:e,variables:t},isGraphQL:!0});return n}})),DD,OD=s((()=>{ED(),gD(),DD=async({token:e,refreshToken:t},n,r)=>{let i=await wD(`/user`,{token:e,refreshToken:t}),a=hD.account;return a?.token&&a.token!==e&&(e=a.token,t=a.refreshToken),{backendName:n,id:i.id,name:i[r.name],login:i[r.login],email:i.email,avatarURL:i.avatar_url,profileURL:i[r.profileURL],bot:i.bot??!1,token:e,refreshToken:t}}})),kD,Kie=s((()=>{mD(),OD(),kD=e=>DD(e,cD,{name:`full_name`,login:`login`,profileURL:`html_url`})})),AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD=s((()=>{X(),Ap(),p(),sT(),Zp(),TF(),yD(),AD=ln(!1),jD=({authURL:e})=>{let{availHeight:t,availWidth:n}=window.screen,r=t/2-800/2,i=n/2-600/2;return window.open(e,`auth`,`width=600,height=800,top=${r},left=${i}`)},MD=async({backendName:e,authURL:t,popup:n})=>(n??=jD({authURL:t}),new Promise((r,i)=>{let a=e===`github`?setInterval(()=>{n?.closed&&(clearInterval(a),i(Object.assign(Error(`Authentication aborted`),{name:`AbortError`})))},1e3):0,o=({origin:s,data:c})=>{if(s!==new URL(t).origin||typeof c!=`string`)return;let l=e;if(c===`authorizing:${l}`){n?.postMessage(c,s);return}let{result:u}=c.match(`^authorization:${l}:(success|error):(?<result>.+)`)?.groups??{},f;try{f=u?JSON.parse(u):{error:`No data`},d(f)||(f={error:`Malformed data`})}catch{f={error:`Malformed data`}}`token`in f?r(f):i(Error(`Authentication failed`,{cause:Error(f.errorCode?Y(`sign_in_error.${f.errorCode}`,{default:f.error}):f.error)})),window.removeEventListener(`message`,o),clearInterval(a),n?.close()};window.addEventListener(`message`,o)})),ND=async({backendName:e,siteDomain:t,authURL:n,scope:r})=>{let{hostname:i}=window.location;t??=i===`localhost`?`cms.netlify.com`:i;try{new URL(n).origin===`https://api.netlify.com`&&(t=new URL(`https://${t}`).hostname)}catch{}let a=new URLSearchParams({provider:e,site_id:t,scope:r});return MD({backendName:e,authURL:`${n}?${a}`})},PD=async()=>{let e=`${Op()}${Op()}`,t=btoa(await kp(e,{algorithm:`SHA-256`,format:`binary`})).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``);return{csrfToken:Dp().replaceAll(`-`,``),codeVerifier:e,codeChallenge:t}},FD=async({backendName:e,clientId:t,authURL:n,scope:r})=>{let{origin:i,pathname:a}=window.location,o=`${i}${a}`,s=jD({authURL:o});if(!s)throw Object.assign(Error(`Authentication aborted`),{name:`AbortError`});let{csrfToken:c,codeVerifier:l,codeChallenge:u}=await PD(),d=new URLSearchParams({client_id:t,redirect_uri:o,response_type:`code`,state:c,scope:r,code_challenge:u,code_challenge_method:`S256`});if(await oT.set(`sveltia-cms.auth`,{csrfToken:c,codeVerifier:l,realAuthURL:`${n}?${d}`}),await oT.set(`sveltia-cms.user`,{backendName:e}),s.closed)throw Object.assign(Error(`Authentication aborted`),{name:`AbortError`});return MD({backendName:e,authURL:o,popup:s})},ID=({provider:e=`unknown`,token:t,refreshToken:n,error:r,errorCode:i})=>{let a=r?`error`:`success`,o=r?{provider:e,error:r,errorCode:i}:{provider:e,token:t,refreshToken:n},s=({data:t,origin:n})=>{t===`authorizing:${e}`&&(window.opener?.postMessage(`authorization:${e}:${a}:${JSON.stringify(o)}`,n),window.removeEventListener(`message`,s))};window.addEventListener(`message`,s),window.opener?.postMessage(`authorizing:${e}`,window.location.origin)},LD=async({backendName:e,apiConfig:t,code:n,state:r})=>{let{clientId:i,tokenURL:a,includeCredentials:o=!1}=t,{origin:s,pathname:c}=new URL(window.location.href),{csrfToken:l,codeVerifier:u}=await oT.get(`sveltia-cms.auth`)??{},d=e,f=`${s}${c}`;if(await oT.delete(`sveltia-cms.auth`),!l||!u||r!==l)return ID({provider:d,error:Y(`sign_in_error.CSRF_DETECTED`),errorCode:`CSRF_DETECTED`});let p,m=``,h=``,g=``;if(!_D(a))return ID({provider:d,error:Y(`sign_in_error.TOKEN_REQUEST_FAILED`),errorCode:`TOKEN_REQUEST_FAILED`});try{p=await fetch(a,{method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({grant_type:`authorization_code`,client_id:i,code:n,redirect_uri:f,code_verifier:u}),...o&&{credentials:`include`}})}catch{}if(!p)return ID({provider:d,error:Y(`sign_in_error.TOKEN_REQUEST_FAILED`),errorCode:`TOKEN_REQUEST_FAILED`});try{({access_token:m,refresh_token:h,error:g}=await p.json())}catch{return ID({provider:d,error:Y(`sign_in_error.MALFORMED_RESPONSE`),errorCode:`MALFORMED_RESPONSE`})}return ID({provider:d,token:m,refreshToken:h,error:g})},RD=async({backendName:e,apiConfig:t})=>{AD.set(!0);let{search:n}=window.location,{code:r,state:i}=Object.fromEntries(new URLSearchParams(n));if(r&&i)await LD({backendName:e,apiConfig:t,code:r,state:i});else{let{realAuthURL:e}=await oT.get(`sveltia-cms.auth`)??{};e&&(window.location.href=e)}},zD=async({auto:e,apiConfig:t})=>{let{backend:n}=dn(bF),{name:r,site_domain:i,auth_type:a}=n,{clientId:o,authScope:s,authURL:c}=t,l={backendName:r,authURL:c,scope:s};if(r===`gitea`||a===`pkce`){let n=window.opener?.origin===window.location.origin&&window.name===`auth`;return n&&await RD({backendName:r,apiConfig:t}),n||e?void 0:FD({...l,clientId:o})}if(!e)return ND({...l,siteDomain:i})},BD=async({options:{token:e,refreshToken:t,auto:n=!1},apiConfig:r})=>{if(!e){let i=await zD({auto:n,apiConfig:r});if(!i)return;({token:e,refreshToken:t}=i)}return{token:e,refreshToken:t}}})),HD,UD,WD,qie=s((()=>{Kie(),ED(),VD(),HD=e=>{let{origin:t}=new URL(e);return`${t}/user/settings/applications`},UD=async e=>{let{token:t,refreshToken:n}=await BD({options:e,apiConfig:xD})??{};if(t)return kD({token:t,refreshToken:n})},WD=async()=>void 0})),GD,KD,qD=s((()=>{GD={service:``,label:``,owner:``,repo:``,branch:``,repoURL:``,treeBaseURL:``,blobBaseURL:``,isSelfHosted:!1,databaseName:``},KD=(e,t)=>`${e===`https://api.github.com`?`https://github.com`:e.replace(/\/api(?:\/v\d+)?(?:\/.*)?/,``)}/${t}`})),JD,YD,XD,ZD,QD,$D,eO=s((()=>{X(),ED(),qD(),JD={...GD},YD=null,XD=(e,t)=>({treeBaseURL:t?`${e}/src/branch/${t}`:e,blobBaseURL:t?`${e}/src/branch/${t}`:``,commitBaseURL:`${e}/commit`}),ZD=async()=>{let{owner:e,repo:t}=JD;return YD??=await wD(`/repos/${e}/${t}`),YD},QD=async()=>{let{repo:e}=JD;try{let{permissions:t}=await ZD();if(!t?.pull)throw Error(`Not a collaborator of the repository`,{cause:Error(Y(`repository_no_access`,{values:{repo:e}}))})}catch(t){throw t instanceof Error&&t.message.includes(`Not a collaborator`)?t:Error(`Failed to check repository access`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))})}},$D=async()=>{let{repo:e,repoURL:t=``}=JD;try{let{default_branch:n}=await ZD();if(!n)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_empty`,{values:{repo:e}}))});return Object.assign(JD,{branch:n},XD(t,n)),n}catch{throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))})}}})),tO,nO,rO=s((()=>{Zp(),TF(),Sw(),gD(),tO={create:`Create {{collection}} “{{slug}}”`,update:`Update {{collection}} “{{slug}}”`,delete:`Delete {{collection}} “{{slug}}”`,uploadMedia:`Upload “{{path}}”`,deleteMedia:`Delete “{{path}}”`,openAuthoring:`{{message}}`},nO=(e,{commitType:t=`update`,collection:n,skipCI:r=void 0})=>{let{commit_messages:i={},skip_ci:a,automatic_deployments:o}=dn(bF)?.backend??{},{email:s=``,login:c=``,name:l=``}=hD.account,[u=``]=e.map(e=>e.slug).filter(Boolean),[d,...f]=e.map(({path:e})=>e),p=n?bw(n,{useSingular:!0}):``,m=i[t]||tO[t]||``;return[`create`,`update`,`delete`].includes(t)&&(m=m.replaceAll(`{{slug}}`,u).replaceAll(`{{collection}}`,p).replaceAll(`{{path}}`,d).replaceAll(`{{author-email}}`,s).replaceAll(`{{author-login}}`,c).replaceAll(`{{author-name}}`,l)),[`uploadMedia`,`deleteMedia`].includes(t)&&(m=m.replaceAll(`{{path}}`,d).replaceAll(`{{author-email}}`,s).replaceAll(`{{author-login}}`,c).replaceAll(`{{author-name}}`,l)),[`openAuthoring`].includes(t)&&(m=m.replaceAll(`{{message}}`,t).replaceAll(`{{author-email}}`,s).replaceAll(`{{author-login}}`,c).replaceAll(`{{author-name}}`,l)),f.length&&(m+=` +${f.length}`),![`delete`,`deleteMedia`].includes(t)&&(r??(a===!0||o===!1))&&(m=`[skip ci] ${m}`),m}})),iO,aO,oO,sO=s((()=>{X(),Yp(),eO(),ED(),rO(),gD(),iO=async()=>{let{owner:e,repo:t,branch:n}=JD;try{let{commit:{id:r,message:i}}=await wD(`/repos/${e}/${t}/branches/${n}`);return{hash:r,message:i}}catch{throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`branch_not_found`,{values:{repo:t,branch:n}}))})}},aO=async(e,t)=>{let{owner:n,repo:r,branch:i}=JD,a=nO(e,t),{name:o,email:s}=hD.account,c=new Date().toJSON(),l=await Promise.all(e.map(async({action:e,path:t,previousPath:n,previousSha:r,data:i=``})=>({operation:e===`move`?`update`:e,path:t,content:await Kp(i),from_path:n,sha:r}))),{commit:u,files:d}=await wD(`/repos/${n}/${r}/contents`,{method:`POST`,body:{branch:i,author:{name:o,email:s},committer:{name:o,email:s},dates:{author:c,committer:c},message:a,files:l}});return{sha:u.sha,date:new Date(u.created),files:Object.fromEntries(d.map((t,n)=>[t?.path??e[n].path,{sha:t?.sha??``}]))}},oO=async e=>{let{owner:t,repo:n,branch:r}=JD,i=await Promise.all(e.map(e=>wD(`/repos/${t}/${n}/commits?sha=${encodeURIComponent(r??``)}&path=${encodeURIComponent(e)}&limit=100`))),a=new Map;return i.flat().forEach(e=>{a.has(e.sha)||a.set(e.sha,{sha:e.sha,authorName:e.commit?.author?.name??``,authorEmail:e.commit?.author?.email,authorAvatarURL:e.author?.avatar_url,authorLogin:e.author?.login,date:new Date(e.commit?.author?.date??e.created)})}),[...a.values()].sort((e,t)=>t.date.getTime()-e.date.getTime())}})),cO,lO,Jie=s((()=>{X(),mD(),eO(),ED(),cO={isForgejo:!1},lO=async()=>{let{version:e}=await wD(`/version`),t=Number.parseFloat(e),n=t>10,r=n?`Forgejo`:`Gitea`,i=n?12:pD;if(Object.assign(cO,{isForgejo:n}),Object.assign(JD,{label:r}),t<i)throw Error(`Unsupported ${r} version`,{cause:Error(Y(`backend_unsupported_version`,{values:{name:r,version:i}}))})}})),uO,dO,fO,pO,mO,hO,gO,_O=s((()=>{Yp(),sT(),JF(),AT(),iA(),NT(),cie(),yC(),OE(),uO=async({metaDB:e,lastHash:t,cachedFileEntries:n,fetchFileList:r})=>{let i=await e.get(`last_commit_hash`),a=await e.get(`git_config_fetched`);if(i&&i===t&&a&&n.length)return kE(n.map(([e,t])=>({path:e,name:Vp(e).basename,...t})));let o=kE(await r(t));return e.set(`last_commit_hash`,t),e.set(`git_config_fetched`,!0),o},dO=({allFiles:e,cachedFiles:t})=>{e.forEach(({sha:n,path:r},i)=>{t[r]?.sha===n&&Object.assign(e[i],t[r])})},fO=({fileInfo:e,fetchedFileMap:t})=>{let{meta:n,size:r,text:i}=t[e.path]??{};return{...e,size:e.size??r,text:e.text??i,meta:e.meta??n}},pO=e=>{let{name:t,meta:n={},...r}=e,i=kT(t);return{...r,...n,name:t,kind:i}},mO=({entries:e,assets:t,configFiles:n,errors:r=[]})=>{mC.set(e),MF.set(t),MT.set(n),hC.set(r),dC.set(!0)},hO=async({cacheDB:e,allFiles:t,cachedFiles:n,fetchingFiles:r,fetchedFileMap:i})=>{let a=new Set(t.map(({path:e})=>e)),o=Object.keys(n).filter(e=>!a.has(e));r.length&&await e.saveEntries(Object.entries(i)),o.length&&e.deleteEntries(o)},gO=async({repository:e,fetchDefaultBranchName:t,fetchLastCommit:n,fetchFileList:r,fetchFileContents:i})=>{let{databaseName:a,branch:o}=e,s=new iT(a,`meta`),c=new iT(a,`file-cache`),l=await c.entries(),u=o;u||(u=await t(),e.branch=u);let{hash:d,message:f}=await n(),p=await uO({metaDB:s,lastHash:d,cachedFileEntries:l,fetchFileList:r});if(rA.set(!f.startsWith(`[skip ci]`)),!p.count){mO({entries:[],assets:[],configFiles:[]});return}let{entryFiles:m,assetFiles:h,configFiles:g,allFiles:_}=p,v=Object.fromEntries(l);dO({allFiles:_,cachedFiles:v});let y=_.filter(({meta:e})=>!e),b=y.length?await i(y):{},{entries:x,errors:S}=await DE(m.map(e=>fO({fileInfo:e,fetchedFileMap:b}))),C=h.map(e=>pO(fO({fileInfo:e,fetchedFileMap:b}))),w=g.map(e=>fO({fileInfo:e,fetchedFileMap:b}));mO({entries:x,assets:C,configFiles:w,errors:S}),await hO({cacheDB:c,allFiles:_,cachedFiles:v,fetchingFiles:y,fetchedFileMap:b})}})),vO,yO,bO,xO,SO,Yie=s((()=>{Yp(),sO(),Jie(),eO(),ED(),_O(),yC(),vO=async e=>{let{owner:t,repo:n,branch:r}=JD,i=`/repos/${t}/${n}/git/trees/${e??r}?recursive=1`,a=[],o=1;for(;;){let{tree:e,truncated:t}=await wD(`${i}&page=${o}`);if(e&&a.push(...e),e&&t)o+=1;else break}return a.filter(({type:e})=>e===`blob`).map(({path:e,sha:t,size:n})=>({path:e,sha:t,size:n,name:Vp(e).basename}))},yO=async(e,t)=>{let n=await Promise.all(e.map(async({path:e,sha:n,size:r},i)=>{let a=t[i];return[e,{sha:n,size:r??0,text:a?.content&&a.encoding===`base64`?await qp(a.content):``,meta:{}}]}).filter(e=>!!e));return Object.fromEntries(n)},bO=async e=>{let{owner:t,repo:n,branch:r}=JD,{isForgejo:i}=cO,a=i?`/repos/${t}/${n}/git/blobs`:`/repos/${t}/${n}/file-contents?ref=${r}`,o=i?`sha`:`path`,s=e.filter(({type:e})=>e!==`asset`).map(({[o]:e})=>e);if(!s.length)return{};let c=[],l=[...s];fC.set(0);let{default_paging_num:u=30}=await wD(`/settings/api`);for(;;){let e=l.splice(0,u),t=await(i?wD(`${a}?shas=${e.join(`,`)}`):wD(a,{method:`POST`,body:{files:e}}));if(c.push(...t),fC.set(Math.ceil((s.length-l.length)/s.length*100)),!l.length)break}return fC.set(void 0),yO(e,c)},xO=async()=>{await lO(),await QD(),await gO({repository:JD,fetchDefaultBranchName:$D,fetchLastCommit:iO,fetchFileList:vO,fetchFileContents:bO})},SO=async e=>{let{owner:t,repo:n,branch:r}=JD,{path:i}=e;return wD(`/repos/${t}/${n}/media/${r}/${encodeURI(i)}`,{responseType:`blob`})}})),CO=c(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),wO,TO,EO,DO,OO=s((()=>{J(),X(),sT(),wO=u(CO(),1),TO=`sveltia-cms.prefs`,EO=Nr({current:void 0}),DO=Nr({}),oi(()=>{(async()=>{EO.current=void 0;try{let e=await oT.get(TO)??{};e.apiKeys??={},e.useDraftBackup??=!0,e.closeOnSave??=!0,e.closeWithEscape??=!0,e.underlineLinks??=!0,e.beta??=!1,e.devModeEnabled??=!1,e.defaultTranslationService??=`google`,Object.assign(DO,e)}catch{EO.current={type:`permission_denied`}}})(),ri(()=>{if(!Object.keys(DO).length)return;let e=At(DO);(async()=>{try{(0,wO.default)(e,await oT.get(TO))||await oT.set(TO,e)}catch{}})();let{locale:t,theme:n,underlineLinks:r=!0,beta:i=!1,devModeEnabled:a=!1}=DO;t&&Fh.includes(t)&&Xh.set(t);let o=!n||n===`auto`,s=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;Object.assign(document.documentElement.dataset,{theme:o?s:n,autoTheming:o,underlineLinks:r,beta:i,devMode:a})})})})),kO,AO,Xie=s((()=>{Ip(),Zp(),qie(),sO(),mD(),Yie(),eO(),ED(),qD(),TF(),OO(),kO=()=>{let{backend:e}=dn(bF)??{};if(e?.name!==`gitea`)return;let{repo:t,branch:n,base_url:r=dD,auth_endpoint:i=fD,app_id:a=``,api_root:o=uD,include_credentials:s=!1}=e,[c,l]=t.split(`/`),u=`${c}/${l}`,d=`${Np(r)}/${Np(i)}`,f=KD(o,u);return Object.assign(JD,{service:cD,label:lD,owner:c,repo:l,branch:n,repoURL:f,tokenPageURL:HD(f),databaseName:`${cD}:${u}`,isSelfHosted:o!==uD},XD(f,n)),Object.assign(xD,{clientId:a,authScope:`read:repository,write:repository,read:user`,authURL:d,tokenURL:d.replace(`/authorize`,`/access_token`),restBaseURL:Np(o),includeCredentials:s}),DO.devModeEnabled&&console.info(`repositoryInfo`,JD),JD},AO={isGit:!0,name:cD,label:lD,repository:JD,init:kO,signIn:UD,signOut:WD,fetchFiles:xO,fetchBlob:SO,commitChanges:aO,fetchFileCommits:oO}})),jO,MO,NO,PO,FO,IO,LO,RO=s((()=>{jO=`github`,MO=`GitHub`,NO=`https://api.github.com`,PO=`https://api.netlify.com`,FO=`auth`,IO=`https://github.com`,LO=`login/oauth/authorize`})),zO,BO,Zie=s((()=>{Ip(),RO(),zO=e=>(e=Np(e),e===`https://api.github.com`||e.endsWith(`/api/v3`)?e:e.endsWith(`/api`)?`${e}/v3`:`${e}/api/v3`),BO=e=>(e=Np(e),e===`https://api.github.com`?`${e}/graphql`:e.endsWith(`/graphql`)?e:e.endsWith(`/api/v3`)?e.replace(`/api/v3`,`/graphql`):e.endsWith(`/api`)?`${e}/graphql`:`${e}/api/graphql`)})),VO,Qie=s((()=>{RO(),OD(),VO=e=>DD(e,jO,{name:`name`,login:`login`,profileURL:`html_url`})})),HO,UO,WO,$ie=s((()=>{Qie(),ED(),VD(),HO=e=>{let{origin:t}=new URL(e);return`${t}/settings/personal-access-tokens/new?${new URLSearchParams({name:`Sveltia CMS`,contents:`write`})}`},UO=async e=>{let{token:t,refreshToken:n}=await BD({options:e,apiConfig:xD})??{};if(t)return VO({token:t,refreshToken:n})},WO=async()=>void 0})),GO,KO,qO,JO,YO,XO=s((()=>{X(),ED(),qD(),gD(),GO={...GD},KO=(e,t)=>({treeBaseURL:t?`${e}/tree/${t}`:e,blobBaseURL:t?`${e}/blob/${t}`:``,commitBaseURL:`${e}/commit`}),qO=async()=>{let{owner:e,repo:t}=GO,n=hD.account?.login,{ok:r}=await wD(`/repos/${e}/${t}/collaborators/${encodeURIComponent(n)}`,{headers:{Accept:`application/json`},responseType:`raw`});if(!r)throw Error(`Not a collaborator of the repository`,{cause:Error(Y(`repository_no_access`,{values:{repo:t}}))})},JO=`
  query($owner: String!, $repo: String!) {
    repository(owner: $owner, name: $repo) {
      defaultBranchRef {
        name
      }
    }
  }
`,YO=async()=>{let{repo:e,repoURL:t=``}=GO,n=await TD(JO);if(!n.repository)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))});let{name:r}=n.repository.defaultBranchRef??{};if(!r)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_empty`,{values:{repo:e}}))});return Object.assign(GO,{branch:r},KO(t,r)),Object.assign(SD,{branch:r}),r}})),ZO,QO,$O,ek,tk,nk=s((()=>{X(),Yp(),XO(),ED(),rO(),ZO=`
  query($owner: String!, $repo: String!, $branch: String!) {
    repository(owner: $owner, name: $repo) {
      ref(qualifiedName: $branch) {
        target {
          ... on Commit {
            history(first: 1) {
              nodes {
                oid
                message
              }
            }
          }
        }
      }
    }
  }
`,QO=async()=>{let{repo:e,branch:t}=GO,n=await TD(ZO);if(!n.repository)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))});if(!n.repository.ref)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`branch_not_found`,{values:{repo:e,branch:t}}))});let{oid:r,message:i}=n.repository.ref.target.history.nodes[0];return{hash:r,message:i}},$O=10*1024*1024,ek=async(e,t)=>{let{owner:n,repo:r,branch:i}=GO,a=e.filter(({action:e})=>[`create`,`update`,`move`].includes(e)),o=await Promise.all(a.map(async({path:e,data:t})=>({path:e,contents:await Kp(t??``)}))),s=e.filter(({action:e})=>[`move`,`delete`].includes(e)).map(({previousPath:e,path:t})=>({path:e??t})),{createCommitOnBranch:{commit:c}}=await TD(`
    mutation($input: CreateCommitOnBranchInput!) {
      createCommitOnBranch(input: $input) {
        commit {
          oid
          committedDate
          ${o.map(({path:e},t)=>{let{data:n}=a[t];return(n instanceof Blob?n.size:new Blob([n??``]).size)<=$O?`file_${t}: file(path: ${JSON.stringify(e)}) { oid }`:``}).filter(Boolean).join(` `)}
        }
      }
    }
  `,{input:{branch:{repositoryNameWithOwner:`${n}/${r}`,branchName:i},expectedHeadOid:(await QO()).hash,fileChanges:{additions:o,deletions:s},message:{headline:nO(e,t)}}});return{sha:c.oid,date:new Date(c.committedDate),files:Object.fromEntries(o.map(({path:e},t)=>{let{data:n}=a[t];return[e,{sha:c[`file_${t}`]?.oid,...n instanceof Blob&&n.size>$O?{file:n}:{}}]}))}},tk=async e=>{let t=await TD(`
    query($owner: String!, $repo: String!, $branch: String!) {
      repository(owner: $owner, name: $repo) {
        ${e.map((e,t)=>`
        history_${t}: ref(qualifiedName: $branch) {
          target {
            ... on Commit {
              history(first: 100, path: ${JSON.stringify(e)}) {
                nodes {
                  oid
                  author {
                    name
                    email
                    avatarUrl
                    user { login }
                  }
                  committedDate
                }
              }
            }
          }
        }
      `).join(``)}
      }
    }
  `),n=new Map;return e.forEach((e,r)=>{(t.repository[`history_${r}`]?.target?.history?.nodes??[]).forEach(e=>{n.has(e.oid)||n.set(e.oid,{sha:e.oid,authorName:e.author.name,authorEmail:e.author.email,authorAvatarURL:e.author.avatarUrl,authorLogin:e.author.user?.login,date:new Date(e.committedDate)})})}),[...n.values()].sort((e,t)=>t.date.getTime()-e.date.getTime())}})),rk,eae=s((()=>{XO(),ED(),rk=async()=>{let{owner:e,repo:t}=GO;return wD(`/repos/${e}/${t}/dispatches`,{method:`POST`,body:{event_type:`sveltia-cms-publish`},responseType:`raw`})}})),ik,ak,ok,sk,ck,lk,tae=s((()=>{Yp(),rT(),gT(),nk(),XO(),ED(),_O(),yC(),ik=async e=>{let{owner:t,repo:n,branch:r}=GO;return(await wD(`/repos/${t}/${n}/git/trees/${e??r}?recursive=1`)).tree.filter(({type:e})=>e===`blob`).map(({path:e,sha:t,size:n})=>({path:e,sha:t,size:n,name:Vp(e).basename}))},ak=(e,t)=>`
    query($owner: String!, $repo: String!, $branch: String!) {
      repository(owner: $owner, name: $repo) {
        ${e.map(({type:e,path:n,sha:r},i)=>{let a=[],o=t+i;return e!==`asset`&&a.push(`
          content_${o}: object(oid: ${JSON.stringify(r)}) {
            ... on Blob { text }
          }
        `),a.push(`
        commit_${o}: ref(qualifiedName: $branch) {
          target {
            ... on Commit {
              history(first: 1, path: ${JSON.stringify(n)}) {
                nodes {
                  author {
                    name
                    email
                    user {
                      id: databaseId
                      login
                    }
                  }
                  committedDate
                }
              }
            }
          }
        }
      `),a.join(``)}).join(``)}
      }
    }
  `,ok=async(e,t)=>{let n=e.map(({path:e,sha:n,size:r},i)=>{let{author:{name:a,email:o,user:s},committedDate:c}=t[`commit_${i}`].target.history.nodes[0];return[e,{sha:n,size:r,text:t[`content_${i}`]?.text,meta:{commitAuthor:{name:a,email:o,id:s?.id,login:s?.login},commitDate:new Date(c)}}]});return Object.fromEntries(n)},sk=async e=>{let t=structuredClone(e),n=[],r={};fC.set(0);let i=window.setInterval(()=>{fC.update((e=0)=>e+1)},t.length/10);for(let e=0;e<t.length;e+=250)n.push(t.slice(e,e+250));return await Promise.all(n.map(async(e,t)=>{await nT(t*500);let n=await TD(ak(e,t*250));Object.assign(r,n.repository)})),window.clearInterval(i),fC.set(void 0),ok(t,r)},ck=async()=>{await qO(),await gO({repository:GO,fetchDefaultBranchName:YO,fetchLastCommit:QO,fetchFileList:ik,fetchFileContents:sk})},lk=async e=>{let{owner:t,repo:n}=GO,{sha:r,path:i}=e,a=await wD(`/repos/${t}/${n}/git/blobs/${r}`,{headers:{Accept:`application/vnd.github.raw`},responseType:`raw`});return a.headers.get(`Content-Type`)===`application/octet-stream`?a.blob():new Blob([await a.text()],{type:hT.getType(i)??`text/plain`})}})),uk,dk,fk,nae=s((()=>{yD(),uk=`https://www.githubstatus.com/`,dk=`https://www.githubstatus.com/api/v2/status.json`,fk=async()=>{try{let{status:{indicator:e}}=await vD(dk);if(e===`none`)return`none`;if(e===`minor`)return`minor`;if(e===`major`||e===`critical`)return`major`}catch{}return`unknown`}})),pk,mk,rae=s((()=>{Ip(),Zp(),Zie(),$ie(),nk(),RO(),eae(),tae(),XO(),nae(),ED(),qD(),TF(),OO(),pk=()=>{let{backend:e}=dn(bF)??{};if(e?.name!==`github`)return;let{repo:t,branch:n,auth_type:r=``,base_url:i=r===`pkce`?IO:PO,auth_endpoint:a=r===`pkce`?LO:FO,app_id:o=``,api_root:s=NO,graphql_api_root:c=s,include_credentials:l=!1}=e,[u,d]=t.split(`/`),f=`${u}/${d}`,p=`${Np(i)}/${Np(a)}`,m=KD(s,f);return Object.assign(GO,{service:jO,label:MO,owner:u,repo:d,branch:n,repoURL:m,tokenPageURL:HO(m),databaseName:`${jO}:${f}`,isSelfHosted:s!==NO},KO(m,n)),Object.assign(xD,{clientId:o,authScope:`repo,user`,authURL:p,tokenURL:p.replace(`/authorize`,`/access_token`),restBaseURL:zO(s),graphqlBaseURL:BO(c),includeCredentials:l}),Object.assign(SD,{owner:u,repo:d,branch:n}),DO.devModeEnabled&&console.info(`repositoryInfo`,GO),GO},mk={isGit:!0,name:jO,label:MO,repository:GO,statusDashboardURL:uk,checkStatus:fk,init:pk,signIn:UO,signOut:WO,fetchFiles:ck,fetchBlob:lk,commitChanges:ek,fetchFileCommits:tk,triggerDeployment:rk}})),hk,gk,_k,vk,yk,bk=s((()=>{hk=`gitlab`,gk=`GitLab`,_k=`https://gitlab.com/api/v4`,vk=`https://gitlab.com`,yk=`oauth/authorize`})),xk,iae=s((()=>{bk(),OD(),xk=e=>DD(e,hk,{name:`name`,login:`username`,profileURL:`web_url`})})),Sk,Ck,wk,aae=s((()=>{iae(),ED(),VD(),Sk=e=>{let{origin:t}=new URL(e);return`${t}/-/user_settings/personal_access_tokens?${new URLSearchParams({name:`Sveltia CMS`,scopes:`api,read_user`})}`},Ck=async e=>{let{token:t,refreshToken:n}=await BD({options:e,apiConfig:xD})??{};if(t)return xk({token:t,refreshToken:n})},wk=async()=>void 0})),Tk,Ek,Dk,Ok,kk,Ak=s((()=>{X(),ED(),qD(),gD(),Tk={...GD},Ek=(e,t)=>({treeBaseURL:t?`${e}/-/tree/${t}`:e,blobBaseURL:t?`${e}/-/blob/${t}`:``,commitBaseURL:`${e}/-/commit`}),Dk=async()=>{let{owner:e,repo:t}=Tk,{id:n,login:r,bot:i}=hD.account,a=`/projects/${encodeURIComponent(`${e}/${t}`)}`,o=await wD(i?`${a}/service_accounts`:`${a}/users?search=${r}`,{headers:{Accept:`application/json`},responseType:`raw`});if(!(o.ok?await o.json():[]).some(e=>e.id===n))throw Error(`Not a collaborator of the repository`,{cause:Error(Y(`repository_no_access`,{values:{repo:t}}))})},Ok=`
  query($fullPath: ID!) {
    project(fullPath: $fullPath) {
      repository {
        rootRef
      }
    }
  }
`,kk=async()=>{let{repo:e,repoURL:t=``}=Tk,n=await TD(Ok);if(!n.project)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))});let{rootRef:r}=n.project.repository??{};if(!r)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_empty`,{values:{repo:e}}))});return Object.assign(Tk,{branch:r},Ek(t,r)),Object.assign(SD,{branch:r}),r}})),jk,Mk,Nk,Pk,Fk,Ik=s((()=>{X(),Yp(),Ak(),ED(),rO(),HE(),jk=`
  query($fullPath: ID!, $branch: String!) {
    project(fullPath: $fullPath) {
      repository {
        tree(ref: $branch) {
          lastCommit {
            sha
            message
          }
        }
      }
    }
  }
`,Mk=async()=>{let{repo:e,branch:t}=Tk,n=await TD(jk);if(!n.project)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))});let{lastCommit:r}=n.project.repository.tree??{};if(!r)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`branch_not_found`,{values:{repo:e,branch:t}}))});let{sha:i,message:a}=r;return{hash:i,message:a}},Nk=async(e,t)=>{let{owner:n,repo:r,branch:i}=Tk,a=await Promise.all(e.map(async({action:e,path:t,previousPath:n,data:r=``})=>({action:e,content:typeof r==`string`?r:await Kp(r),encoding:typeof r==`string`?`text`:`base64`,file_path:t,previous_path:n}))),{id:o,committed_date:s}=await wD(`/projects/${encodeURIComponent(`${n}/${r}`)}/repository/commits`,{method:`POST`,body:{branch:i,commit_message:nO(e,t),actions:a}}),c=await Promise.all(e.map(async({path:e,data:t})=>t===void 0?null:[e,{sha:await VE(t)}]));return{sha:o,date:new Date(s),files:Object.fromEntries(c.filter(e=>!!e))}},Pk=async e=>{try{let{avatar_url:t}=await wD(`/avatar?email=${encodeURIComponent(e)}&size=48`);return t||void 0}catch{return}},Fk=async e=>{let{owner:t,repo:n,branch:r}=Tk,i=encodeURIComponent(`${t}/${n}`),a=await Promise.all(e.map(e=>wD(`/projects/${i}/repository/commits?ref_name=${encodeURIComponent(r??``)}&path=${encodeURIComponent(e)}&per_page=100`))),o=new Map;a.flat().forEach(e=>{o.has(e.id)||o.set(e.id,{sha:e.id,authorName:e.author_name,authorEmail:e.author_email,authorAvatarURL:void 0,date:new Date(e.committed_date)})});let s=[...new Set([...o.values()].map(e=>e.authorEmail))].filter(e=>!!e),c=new Map(await Promise.all(s.map(async e=>[e,await Pk(e)]))),l=[...o.values()].sort((e,t)=>t.date.getTime()-e.date.getTime());return l.forEach(e=>{e.authorAvatarURL=c.get(e.authorEmail)}),l}})),Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,oae=s((()=>{Yp(),Ik(),Ak(),ED(),_O(),yC(),Lk=`
  query($fullPath: ID!, $branch: String!, $cursor: String!) {
    project(fullPath: $fullPath) {
      repository {
        tree(ref: $branch, recursive: true) {
          blobs(after: $cursor) {
            nodes {
              type
              path
              sha
            }
            pageInfo {
              endCursor
              hasNextPage
            }
          }
        }
      }
    }
  }
`,Rk=async()=>{let e=[],t=``;for(;;){let{nodes:n,pageInfo:{endCursor:r,hasNextPage:i}}=(await TD(Lk,{cursor:t})).project.repository.tree.blobs;if(e.push(...n),t=r,!i)break}return e.filter(({type:e})=>e===`blob`).map(({path:e,sha:t})=>({path:e,sha:t,size:0,name:Vp(e).basename}))},zk=`
  query($fullPath: ID!, $branch: String!, $paths: [String!]!) {
    project(fullPath: $fullPath) {
      repository {
        blobs(ref: $branch, paths: $paths) {
          nodes {
            rawTextBlob
          }
        }
      }
    }
  }
`,Bk=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=Tk,r=n?20:100,i=[...e],a=[];for(;;){let e=await TD(t,{paths:i.splice(0,r)});if(a.push(...e.project.repository.blobs.nodes),!i.length)break}return Object.fromEntries(e.map((e,t)=>[e,a[t]]))},Vk=async({fetchingFiles:e,blobs:t,sizes:n={},commits:r={}})=>{let i=e.map(({path:e,sha:i})=>{let a=r[e],o={sha:i,size:Number(n[e]?.size??0),text:t[e]?.rawTextBlob??void 0,meta:{}};if(a){let{author:e,authorName:t,authorEmail:n,committedDate:r}=a,{id:i,username:s}=e??{},c=i?.match(/\d+/);o.meta={commitAuthor:{name:t,email:n,id:c?Number(c[0]):void 0,login:s},committedDate:new Date(r)}}return[e,o]});return Object.fromEntries(i)},Hk=async e=>{fC.set(0);let t=window.setInterval(()=>{fC.update((e=0)=>e+1)},e.length/10),n=e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),r=await Bk(n,zk);return window.clearInterval(t),fC.set(void 0),Vk({fetchingFiles:e,blobs:r})},Uk=async()=>{await Dk(),await gO({repository:Tk,fetchDefaultBranchName:kk,fetchLastCommit:Mk,fetchFileList:Rk,fetchFileContents:Hk})},Wk=async e=>{let{owner:t,repo:n,branch:r=``}=Tk,{path:i}=e;return wD(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),Gk,Kk,qk,sae=s((()=>{yD(),Gk=`https://status.gitlab.com/`,Kk=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,qk=async()=>{try{let{result:{status_overall:{status_code:e}}}=await vD(Kk);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),Jk,Yk,Xk,cae=s((()=>{Ip(),Zp(),aae(),Ik(),bk(),oae(),Ak(),sae(),ED(),qD(),TF(),OO(),Jk=/(?<owner>.+)\/(?<repo>[^/]+)$/,Yk=()=>{let{backend:e}=dn(bF)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=vk,auth_endpoint:i=yk,app_id:a=``,api_root:o=_k,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(Jk)?.groups??{},d=`${l}/${u}`,f=`${Np(r)}/${Np(i)}`,p=KD(o,d);return Object.assign(Tk,{service:hk,label:gk,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:Sk(p),databaseName:`${hk}:${d}`,isSelfHosted:o!==_k},Ek(p,n)),Object.assign(xD,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:Np(o),graphqlBaseURL:Np(s),includeCredentials:c}),Object.assign(SD,{fullPath:d,branch:n}),DO.devModeEnabled&&console.info(`repositoryInfo`,Tk),Tk},Xk={isGit:!0,name:hk,label:gk,repository:Tk,statusDashboardURL:Gk,checkStatus:qk,init:Yk,signIn:Ck,signOut:wk,fetchFiles:Uk,fetchBlob:Wk,commitChanges:Nk,fetchFileCommits:Fk}})),Zk,Qk,$k,eA,tA,nA,rA,iA=s((()=>{Zp(),Iie(),Gie(),Xie(),rae(),cae(),Zk={github:mk,gitlab:Xk,gitea:AO,local:Fie,"test-repo":Wie},Qk={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},$k=Object.keys(Zk).filter(e=>e!==`local`),eA=Object.fromEntries(Object.entries(Zk).filter(([,e])=>e.isGit)),tA=ln(),nA=un([tA],([e],t,n)=>{n(t=>{let n=e?Zk[e]:void 0;return n&&n!==t&&n.init(),n})}),rA=ln(!0)})),aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A=s((()=>{Zp(),TF(),aA=ln(!1),oA=ln(!1),sA=ln(!1),cA=`https://console.cloudinary.com/console/media_library`,lA=new URL(cA).origin,uA=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],dA=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],fA=e=>{let t=dn(bF);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},pA=new Map,mA=e=>{let t=e?JSON.stringify(e):`global`,n=pA.get(t);if(n)return n;let r=fA()||{config:{}},i=fA(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return pA.set(t,a),a},hA=e=>{let t=fA(e)??fA(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},gA={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:hA}})),vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA=s((()=>{rT(),Zp(),AT(),TF(),vA=(e,t=dn(bF))=>t?.media_libraries?.[e]??(t?.media_library?.name===e?t?.media_library:void 0),yA=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)},bA=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(``)},xA=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(`
`),h=Object.keys(n).map(e=>e.toLowerCase()).sort().join(`;`),g=[e,f,p,`${m}\n`,h,r].join(`
`),_=`AWS4-HMAC-SHA256`,v=`${d}/${o}/${s}/aws4_request`,y=[_,u,v,await bA(g)].join(`
`),b=await yA(`AWS4${a}`,d),x=await yA(b,o),S=await yA(x,s),C=await yA(S,`aws4_request`),w=await yA(C,y),T=Array.from(w).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${T}`].join(` `)},SA=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 bA(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await xA({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}})},CA=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)},wA=({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}`,TA=(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=wA({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:kT(t)}})},EA=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=a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,c=await SA({method:`GET`,url:n,config:e,secretAccessKey:l});if(!c.ok){let e=await c.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let f=await c.text(),p=CA(f),m=(p.Contents?Array.isArray(p.Contents)?p.Contents:[p.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...m),d=p.NextContinuationToken,p.IsTruncated!==`true`||!d)break;await nT(50)}let f=c?u.filter(e=>kT(e.Key)===c):u;return TA(f,e)},DA=async(e,t,n)=>{let r=await EA(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},OA=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=a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,p=await n.arrayBuffer(),m=await SA({method:`PUT`,url:f,config:t,secretAccessKey:c,body:p,extraHeaders:{"Content-Type":n.type||`application/octet-stream`,...t.acl!==!1&&{"x-amz-acl":t.acl??`public-read`}}});if(!m.ok){let e=await m.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 nT(50)}return TA(l,t)}})),AA,jA,MA,NA,PA,FA,IA,lae=s((()=>{kA(),AA=e=>vA(`aws_s3`,e),jA=e=>{let t=AA(e)??AA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},MA=({fieldConfig:e})=>{let t=AA(e)??AA();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},NA=async e=>EA(MA(e),e),PA=async(e,t)=>DA(e,MA(t),t),FA=async(e,t)=>OA(e,MA(t),t),IA={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:jA,list:NA,search:PA,upload:FA}})),LA,RA,zA,BA,VA,HA,UA,uae=s((()=>{kA(),LA=e=>vA(`backblaze_b2`,e),RA=e=>{let t=LA(e)??LA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},zA=({fieldConfig:e})=>{let t=LA(e)??LA();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`}},BA=async e=>EA(zA(e),e),VA=async(e,t)=>DA(e,zA(t),t),HA=async(e,t)=>OA(e,zA(t),t),UA={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:RA,list:BA,search:VA,upload:HA}})),WA,GA,KA,qA,JA,YA,XA,ZA,QA,dae=s((()=>{kA(),WA={default:``,eu:`eu.`,fedramp:`fedramp.`},GA=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${WA[t]??``}r2.cloudflarestorage.com`,KA=e=>vA(`cloudflare_r2`,e),qA=e=>{let t=KA(e)??KA();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},JA=({fieldConfig:e})=>{let t=KA(e)??KA();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:GA(t)}},YA=async e=>EA(JA(e),e),XA=async(e,t)=>DA(e,JA(t),t),ZA=async(e,t)=>OA(e,JA(t),t),QA={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:qA,list:YA,search:XA,upload:ZA}})),$A,ej,tj,nj,rj,ij,aj,fae=s((()=>{kA(),$A=e=>vA(`digitalocean_spaces`,e),ej=e=>{let t=$A(e)??$A();return!!(t&&t.access_key_id&&t.bucket&&t.region)},tj=({fieldConfig:e})=>{let t=$A(e)??$A();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`}},nj=async e=>EA(tj(e),e),rj=async(e,t)=>DA(e,tj(t),t),ij=async(e,t)=>OA(e,tj(t),t),aj={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:ej,list:nj,search:rj,upload:ij}})),oj,sj,cj,lj,uj,dj,fj,pae=s((()=>{kA(),oj=e=>vA(`scaleway_object_storage`,e),sj=e=>{let t=oj(e)??oj();return!!(t&&t.access_key_id&&t.bucket&&t.region)},cj=({fieldConfig:e})=>{let t=oj(e)??oj();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`}},lj=async e=>EA(cj(e),e),uj=async(e,t)=>DA(e,cj(t),t),dj=async(e,t)=>OA(e,cj(t),t),fj={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:sj,list:lj,search:uj,upload:dj}})),pj,mj,hj,gj,_j,vj,yj,bj,xj,mae=s((()=>{kA(),pj=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,mj=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,hj=e=>vA(`supabase_storage`,e),gj=e=>{let t=hj(e)??hj();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},_j=({fieldConfig:e})=>{let t=hj(e)??hj();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:pj(t),public_url:t.public_url??mj(t)}},vj=async e=>EA(_j(e),e),yj=async(e,t)=>DA(e,_j(t),t),bj=async(e,t)=>OA(e,_j(t),t),xj={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:gj,list:vj,search:yj,upload:bj}})),Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,hae=s((()=>{rT(),Zp(),TF(),HE(),Sj=(e=dn(bF))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),Cj=e=>{let t=Sj(e)??Sj();return t?t.config?.publicKey:void 0},wj=e=>!!Cj(e),Tj=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(Sj(t)??Sj())||{};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`}})},Ej=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=Cj(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 nT(50)}return Tj(l,{fieldConfig:i})},Dj=async e=>Ej(e),Oj=async(e,t)=>{let n=e.toLowerCase();return Ej(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},kj=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(``)},Aj=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=Cj(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 kj(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(LE(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(),u=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}});return Tj(u,{fieldConfig:n})},jj={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:wj,list:Dj,search:Oj,upload:Aj}})),Mj,Nj,Pj=s((()=>{_A(),lae(),uae(),dae(),fae(),pae(),mae(),hae(),Mj={aws_s3:IA,backblaze_b2:UA,cloudflare_r2:QA,cloudinary:gA,digitalocean_spaces:aj,scaleway_object_storage:fj,supabase_storage:xj,uploadcare:jj},Nj=Object.keys(Mj)})),Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,gae=s((()=>{Fj=`@sveltia/cms`,Ij=`0.172.4`,Lj=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,Rj=[`svelte`,`cms`,`content-management-system`],zj=`https://sveltiacms.app/en/`,Bj={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},Vj={type:`github`,url:`https://github.com/sponsors/kyoshino`},Hj={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Uj=`module`,Wj={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`},Gj={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.48.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.3`,"@sveltia/ui":`^0.44.2`,"@sveltia/utils":`^0.10.7`,"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.19.0`,leaflet:`^1.9.4`,lexical:`^0.48.0`,marked:`^18.0.7`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^6.1.200`,qrcode:`^1.5.4`,react:`^19.2.8`,"react-dom":`^19.2.8`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.7.0`,svgo:`^4.0.2`,"terra-draw":`^1.32.1`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Kj={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.2.0`,"@types/leaflet":`^1.9.21`,"@types/node":`^26.1.1`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.17`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.10`,cspell:`^10.0.1`,eslint:`^9.39.5`,"eslint-config-airbnb-extended":`^3.1.1`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^63.2.0`,"eslint-plugin-package-json":`^1.6.0`,"eslint-plugin-svelte":`^3.22.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.7.0`,oxlint:`^1.74.0`,"postcss-html":`^1.8.1`,prettier:`^3.9.6`,"prettier-plugin-svelte":`^4.1.1`,stylelint:`^17.14.1`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.56.7`,"svelte-check":`^4.7.3`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.1.5`,vitest:`^4.1.10`},qj={directory:`package`,access:`public`,provenance:!0},Jj={name:Fj,version:Ij,description:Lj,keywords:Rj,homepage:zj,repository:Bj,funding:Vj,license:`MIT`,author:Hj,type:Uj,scripts:Wj,dependencies:Gj,devDependencies:Kj,publishConfig:qj}})),Yj,Xj,Zj=s((()=>{gae(),{dependencies:Yj,version:Xj}=Jj})),Qj,$j=s((()=>{Qj=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)})}})),eM,tM,nM=s((()=>{Zj(),$j(),eM=e=>{let t=`https://unpkg.com/${e}`,n=Yj[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},tM=async(e,t)=>Qj(()=>import(`${eM(e)}/${t}`),void 0)})),rM,iM,aM,oM,sM,cM,lM,uM,dM=s((()=>{rM=[`avif`,`gif`,`jpeg`,`png`,`webp`],iM=rM.map(e=>`image/${e}`),aM=/\b(?:avif|gif|jpe?g|png|webp)$/i,oM=[`svg`],sM=[`image/svg+xml`],cM=/\b(?:svg)$/i,[...rM,...oM],lM=[...iM,...sM],uM=[`webp`]})),fM,pM,mM,hM=s((()=>{nM(),dM(),fM={},pM=async e=>{if(e in fM)return fM[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return fM[e]=r,r},mM=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await pM(t)&&uM.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await tM(`@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})}})),gM,_M,vM=s((()=>{gM=({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}},_M=(e,t,n)=>{let{scale:r,width:i,height:a}=gM(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),yM,bM,xM,SM,CM,wM,TM=s((()=>{nM(),hM(),vM(),yM={format:`webp`,quality:85,width:512,height:512,fit:`contain`},bM=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise(e=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.src=t})},xM=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise(e=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=t,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n)})},SM=async e=>e.type.startsWith(`video/`)?xM({blob:e}):bM({blob:e}),CM=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 SM(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return _M(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),mM(l,{format:t,quality:n})},wM=async e=>{let t=await e.text();try{let{optimize:n}=await tM(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),EM,DM,OM,kM,AM,jM,_ae=s((()=>{nM(),hM(),vM(),$j(),EM=eM(`pdfjs-dist`),DM=`${EM}/build/pdf.min.mjs`,OM=`${EM}/build/pdf.worker.min.mjs`,kM={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${EM}/cmaps/`,iccUrl:`${EM}/iccs/`,standardFontDataUrl:`${EM}/standard_fonts/`,wasmUrl:`${EM}/wasm/`},jM=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!AM)try{AM=await Qj(()=>import(DM),void 0),AM.GlobalWorkerOptions.workerSrc=OM}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 AM.getDocument({...kM,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=_M(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 mM(s,{format:t,quality:n})}})),MM,NM,PM,FM,IM,LM,RM,zM,BM,VM=s((()=>{Yp(),rT(),sT(),Ip(),gT(),Zp(),JF(),fm(),iA(),rm(),TF(),Pj(),_A(),HE(),TM(),_ae(),MM=/^(?:https?|data|blob):/,NM=new Set,PM=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(NM.has(o)&&t<=25)return await nT(200),PM(e,t+1);NM.add(o);let n=await dn(nA)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:hT.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),NM.delete(o),s},FM=async e=>(e.blobURL||await PM(e),e.blobURL),IM=void 0,LM=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(IM===void 0){let{databaseName:e}=dn(nA)?.repository??{};IM=e?new iT(e,`asset-thumbnails`):null}let r=await IM?.get(e.sha);if(!r){if(t)return;let i=await PM(e);r=await(n?jM:CM)(i,yM),await IM?.set(e.sha,r)}return URL.createObjectURL(r)},RM=(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:um(e.path).find(({collectionName:e})=>e!==void 0)??dn(am);if(a){if(t){let t=Vp(e.path).dirname,n=r?Vp(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===RE([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=dn(bF),l=o?e.path.replace(ME(e.folder.internalPath??``,e=>{let t=e.match(Qp)?.[1];return t?`(?<${t}>[^/]+)`:jp(e)}),i?.replaceAll($p,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=NE(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},zM=e=>{if(Mj.cloudinary?.isEnabled?.()){let t=mA(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},BM=async({value:e,entry:t,collectionName:n,fileName:r,componentName:i,fieldConfig:a,typedKeyPath:o,thumbnail:s=!1})=>{if(!e)return;if(MM.test(e))return e;if(UF(e)){let t=zM(a);if(t)return`${t}/${e}`}let c=WF({value:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:o});if(c)return(s?await LM(c):await FM(c))??RM(c)}})),HM,UM,WM,GM,KM,qM,JM,YM,XM,ZM=s((()=>{nb(),HM=u(RS(),1),UM=u(zS(),1),WM=u(BS(),1),GM=u(VS(),1),Zp(),iA(),YP(),TF(),yC(),Sw(),Tw(),GS(),tT(),HM.default.extend(UM.default),HM.default.extend(WM.default),HM.default.extend(GM.default),KM=/{{(?:year|month|day|hour|minute|second)}}/,qM=e=>vC(Object.values(e.locales)[0].path).map(({collectionName:e})=>yw(e)).filter(e=>!!e),JM=({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=Xw(i,a);if(!Kw(o))return;let{utc:s,outputUTC:c}=WS(a);return tb({date:o,timeZone:s||c?`UTC`:void 0})},YM=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=dn(bF)??{},{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=ww(n,e),h=(m?Cw(n):void 0)?.fields??d,g;if(KM.test(l)&&(g=JM({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=JP(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},XM=(e,t)=>`${dn(nA)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`})),QM,$M,eN=s((()=>{QM=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,$M=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(QM)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}}})),tN,nN,rN,iN,aN,oN,sN,cN=s((()=>{Zp(),VM(),TF(),yC(),Sw(),Tw(),DC(),ZM(),jP(),jC(),eN(),tN=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,nN=ln([]),rN=un(nN,e=>new Set(e.map(e=>e.id))),iN=e=>{let t=yw(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=$M(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=>qM(t).some(({name:t})=>t===e)}else{let t=new Set(dn(pC).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 dn(mC).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=AP({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},aN=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=wP({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(OC.includes(p)){let n=d?await BM({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(tN)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await BM({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},oN=async(e,{entries:t=dn(mC),newURL:n=``}={})=>{let r=dn(bF)?._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=qM(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:ww(a,e)},u=wC(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>aN({...r,collectionFile:e})))).includes(!0):await aN({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},sN=e=>{let t=Cw(e);return t?!iN(e.name).some(({slug:e})=>e===t.name):!1}})),lN,uN,dN,fN,pN,vae=s((()=>{lN=new WeakMap,uN=e=>{let t=lN.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),lN.set(e,n),n},dN=new WeakMap,fN=0,pN=e=>(dN.has(e)||(dN.set(e,fN),fN+=1),dN.get(e))})),mN,hN,gN=s((()=>{YP(),mN=e=>KP(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,hN=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n}})),_N,vN,yN,bN,xN=s((()=>{yT(),YP(),RP(),gN(),_N=(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)||PP(o,{identifierField:l})||PP(s[c]?.content||{},{identifierField:l})||r},vN=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=_N(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},yN=e=>{let t=[];return GP(e,(e,n)=>(t.push(n),``)),t},bN=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=mN(n??`{{slug}}`),o=r.map(mN).join(` `),s=i.map(mN).join(` `),c=vT([...yN(o),...yN(a),...yN(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}}})),SN,CN,wN,TN,EN,DN,ON,kN,AN,yae=s((()=>{Ip(),jP(),gN(),xN(),fb(),SN=/\.(\d+)$/,CN=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=wP({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:hN(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},wN=new Map,TN=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=db(wN,e,()=>RegExp(`^${jp(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match(SN);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}=vN(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},EN=/^(.+)\.\*\.(.+)$/,DN=new Map,ON=e=>{let t=null;return e.some(([e])=>(t=e.match(EN),!!t)),t},kN=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=ON(e)??[];if(!o)return[];let c=`${o}:${s}`,l=db(DN,c,()=>{let e=jp(o),t=jp(s);return RegExp(`^${e}.([0-9]+).${t}$`)}),u=Object.entries(t).filter(([e])=>l.test(e)).map(([e,t])=>{let n=e.match(l);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index),{_displayField:d,_valueField:f,_searchField:p}=n;return u.map(({index:n})=>{let o={label:d,value:f,searchValue:p};e.forEach(([e])=>{let r=e.match(EN);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}=vN(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},AN=({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?kN({...u}):TN({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}}})),jN,bae=s((()=>{RP(),xN(),jN=({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,_N(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=PP(c,{identifierField:d})||PP(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}}})),MN,xae=s((()=>{Tw(),jP(),yae(),bae(),xN(),MN=({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:ww(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>OP({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[jN({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let{results:g,hasProcessedListFields:_}=AN({baseFieldGroups:CN(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}=vN({label:v,value:y,searchValue:b},i.filter(e=>!e.includes(`*`)),m,h);return[{label:x||``,value:S||d,searchValue:C||x||``}]}})),NN,PN,FN,Sae=s((()=>{NN=/^{{fields\.(.+?)}}$/,PN=(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(NN);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),FN=({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)}))})),IN,LN,RN,zN=s((()=>{Ip(),Sw(),cN(),vae(),xae(),Sae(),xN(),IN=new Map,LN=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=PN(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`),u=`${e}|${`${pN(t)}|${pN(n)}`}|${l}`,d=IN.get(u);if(d)return d;let f=yw(a);if(!f)return IN.set(u,[]),[];let{_type:p,_i18n:{defaultLocale:m}}=f,{identifier_field:h=`title`}=p===`entry`?f:{},g=bN(t,h),{allFieldNames:_,hasListFields:v}=g,y=FN({refEntries:n,locale:e,fileName:o,entryFilters:c,defaultLocale:m}).flatMap(({refEntry:t,content:n})=>MN({refEntry:t,content:n,collection:f,templates:g,allFieldNames:_,hasListFields:v,collectionName:a,fileName:o,locale:e,identifierField:h,defaultLocale:m})).sort((e,t)=>Fp(e.label,t.label));return IN.set(u,y),y},RN=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=iN(a),s=uN(LN({locale:r,fieldConfig:e,refEntries:o})),c=e=>s.get(e)||e;return i?Object.entries(t).filter(([e])=>e.match(`^${jp(n)}\\.\\d+$`)).map(([,e])=>e).map(c):c(t[n])}})),BN,VN,HN,UN=s((()=>{gc(),BN=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),VN=e=>hc(Object.fromEntries(Object.entries(mc(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),HN=e=>e.replace(/"/g,`'`)})),WN,GN,KN,qN,JN=s((()=>{WN=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,GN=new RegExp(WN,`g`),KN=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,qN=RegExp(`${WN.source}|${KN.source}`)})),YN,XN,ZN,QN,$N=s((()=>{wx(),YN=e=>typeof e==`string`&&!!e.trim(),XN=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&amp;`).replaceAll(`"`,`&quot;`),ZN={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},QN=(e,t)=>Cx(e.replace(`<a>`,`<a href="${XN(t)}" target="_blank" rel="noopener noreferrer">`),ZN)})),eP,tP,nP,rP=s((()=>{X(),yp(),UN(),JN(),$N(),eP={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:WN,toBlock:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return t?`![${n}](${t}${r?` "${HN(r)}"`:``})`:``},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return`<img src="${XN(t)}" alt="${XN(n)}" title="${XN(r)}">`}},tP={id:`linked-image`,label:`Image`,fields:[...eP.fields,{name:`link`,label:`Link`,required:!1}],pattern:qN,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?`![${n}](${t}${r?` "${HN(r)}"`:``})`:``;return a&&i?`[${a}](${i})`:a},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=`<img src="${XN(t)}" alt="${XN(n)}" title="${XN(r)}">`;return i?`<a href="${XN(i)}">${a}</a>`:a}},nP=e=>{let t=pp.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}]};return{image:{...eP,...n},"linked-image":{...tP,...n,fields:[...n.fields,{name:`link`,label:Y(`editor_components.link`),required:!1}]}}[e]}})),iP,aP,oP,sP=s((()=>{iP=/^\d+$/,aP=e=>iP.test(e),oP=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),cP,lP,uP,dP,Cae=s((()=>{yT(),sP(),cP=new Map,lP=new WeakMap,uP=e=>{let t=lP.get(e);return t===void 0&&(t=JSON.stringify(e),lP.set(e,t)),t},dP=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=_T(i),o;if(r){let e=`${n}.`;o=Object.entries(t).filter(([t])=>t.startsWith(e)&&aP(t.slice(e.length))).map(([,e])=>e)}let s=uP(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=cP.get(c);if(l)return l;let u=e=>i.find(t=>t.value===e)?.label||e;if(r){let e=a?o.map(u):o;return cP.set(c,e),e}let d=t[n],f=a?u(d):d;return cP.set(c,f),f}})),fP,pP,mP,hP=s((()=>{Zp(),TF(),fP=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},pP=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},mP=e=>{let t=dn(bF);return e.multiple??fP(e.media_libraries)??pP(e.media_library)??fP(t?.media_libraries)??pP(t?.media_library)??!1}})),gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP,OP,kP,AP,jP=s((()=>{Ip(),uC(),Sw(),Tw(),DC(),jC(),tT(),zN(),rP(),Cae(),QC(),hP(),fb(),sP(),gP=/^(.*?)<([^>]+)>(.*)$/,_P=/(?:^|\.)(\d+)(?:\.|$)/,vP=/\.\d+$/,yP=new Map,bP=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},xP=e=>{let t=e.widget??`string`;return OC.includes(t)?mP(e):kC.includes(t)?!!e.multiple:!1},SP=e=>{let t=e.match(gP);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},CP=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=SP(t),{widget:c=`text`}=e,l=s??i,u=aP(o),d=o===`*`;if((u||d)&&kC.includes(c))return{field:xP(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}},wP=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=_P.test(a)?JSON.stringify(e):`${t}|${n??``}|${r??``}|${a}|${o?`1`:`0`}`;if(yP.has(s))return yP.get(s);let c=yw(t),l=c&&n?SC(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){yP.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?Cw(c):void 0,f=r?nP(r)?.fields??[]:d?.fields??u,p=a.split(`.`),m,h;if(p.forEach((e,t)=>{if(t===0){let{cleanKey:t,typeName:n}=SP(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=CP({field:m,key:e,keyPathArray:p,segmentIndex:t,pendingExplicitType:h,valueMap:i});m=n.field,h=n.explicitType}}),h&&m&&`types`in m){let{types:e}=m;m=e.find(({name:e})=>e===h)}return yP.set(s,m),m},TP=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,EP=new Map,DP=new Map,OP=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=wP({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=eT({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=RN({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=dP({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;if(!(e||t)){let e=db(EP,r,()=>RegExp(`^${jp(r)}${String.raw`\.\d+$`}`));c=XC(i).format(Object.entries(n).filter(([t,n])=>e.test(t)&&typeof n==`string`&&!!n).map(([,e])=>e))}}if(s?.widget===`number`){let{value_type:e=`int`}=s;if(e===`int`||e===`float`){let e=GC(i),t=DP.get(e);t||(t=Intl.NumberFormat(e),DP.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=XC(i).format(c)),a?.length&&(c=lC({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},kP=({valueMap:e,locale:t,keyPath:n,keyPathRegex:r,getFieldArgs:i})=>{let a=[`${n}.title`,`${n}.name`,...Object.keys(e)].find(t=>{let n=e[t];if(!r.test(t)||!(typeof n==`string`&&n.trim()||typeof n==`number`&&!Number.isNaN(n)))return!1;let a=wP({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?OP({...i,keyPath:a,locale:t}):``},AP=({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=yw(n);if(f){if(i){let i=ww(f,e),a=wP({collectionName:n,keyPath:r,isIndexFile:i});if(a?.widget===`relation`)return RN({fieldConfig:a,valueMap:d,keyPath:r,locale:t})}return d[r]}}})),MP,NP,PP,FP,IP,LP,RP=s((()=>{nb(),Ip(),wx(),TS(),Ore(),YP(),LS(),uC(),Tw(),jP(),MP=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,NP=(e,{allowMarkdown:t=!1}={})=>(e=CS(e),t&&(e=NS(e)),e=Cx(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=NS(e)),e.trim()),PP=(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(MP)?.groups?.header??``:``},FP=(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 Np(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},IP=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a,fallbackSummary:o}=t,{value:s,transformations:c}=tC(e),l=s.replace(/^fields\./,``),u={collectionName:r,valueMap:n,keyPath:l},d=FP(s,i),f=IS(c,e=>IP(e,t));if(d===void 0&&(d=f.some(({method:e})=>e===`date`||e===`ternary`)?n[l]:OP({...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}=tb({date:d});return`${e}-${t}-${n}`}return f.length&&(d=lC({fieldConfig:wP({...u}),value:d,transformations:f,locale:a})),String(d)},LP=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(ww(e,t))return Cw(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]??{},_=PP(h,{identifierField:l})||f.replaceAll(`-`,` `);if(!r||!u)return NP(_,{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 NP(GP(u,(e,t)=>IP(t,v)),{allowMarkdown:i})}})),zP,BP,VP,HP,wae=s((()=>{Ap(),rm(),RP(),zP=(e,t)=>tm.includes(e)?t[e]:void 0,BP=e=>{switch(e){case`uuid`:return Dp();case`uuid_short`:return Dp(`short`);case`uuid_shorter`:return Dp(`shorter`);default:return}},VP=(e,t)=>{if(e!==`slug`)return;let{type:n,isIndexFile:r,currentSlug:i,content:a,identifierField:o}=t;return n===`preview_path`&&r?``:i??PP(a,{identifierField:o})},HP=(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}}})),UP,WP,Tae=s((()=>{Ap(),gb(),wae(),LS(),uC(),jP(),HE(),UP=(e,t)=>{let{type:n,content:r,entryFilePath:i,locale:a,dateTimeParts:o,basePath:s}=t,c=zP(e,o);if(c!==void 0)return c;let l=VP(e,t);if(l!==void 0)return l;let u=BP(e);if(u!==void 0)return u;if(n===`preview_path`&&e===`locale`)return a;if(n===`preview_path`||n===`media_folder`){let t=HP(e,i,s);return t===void 0?void 0:t}return r[e.replace(/^fields\./,``)]},WP=(e,t)=>{let{replaceSubContext:n,getFieldArgs:r}=t,{value:i,transformations:a}=tC(e),o=UP(i,n),s=IS(a,e=>String(UP(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 Dp(`short`);if((o===void 0||o===``)&&c&&l)return`${Dp(`short`)}-${Dp(`short`)}`;let{type:u,locale:d}=n;return s.length&&(o=lC({fieldConfig:wP({...r,keyPath:i}),value:o,transformations:s,locale:d})),o=gie(String(o)),u?o:hb(o,{locale:d,maxLength:1/0})}})),GP,KP,qP,JP,YP=s((()=>{nb(),Ip(),Zp(),rm(),Tae(),TF(),cN(),HE(),GP=(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??``);d?f?n+=e.slice(i,o+2):n+=t(e.slice(i,o+2),d):n+=e.slice(i,o+2),r=o+2;break}a+=1}if(a>=e.length){n+=e.slice(i);break}}return n},KP=e=>Qp.test(e),qP=(e,t)=>iN(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),JP=(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=dn(bF)?.slug,m=d??p?.maxlength,h=p?.timezone===`local`?void 0:`UTC`,g={replaceSubContext:{...t,dateTimeParts:o??tb({timeZone:h}),identifierField:u,basePath:f},getFieldArgs:{collectionName:l,keyPath:``,valueMap:r,isIndexFile:s}},_=GP(e,(e,t)=>WP(t,g)).trim();return i?_:(typeof m==`number`&&(_=Mp(_,m,{ellipsis:``}).replace(/-$/,``)),IE(_,qP(l,a)))}})),XP,ZP,QP,$P,eF,tF,Eae,Dae,Oae,kae=s((()=>{Yp(),Ip(),YP(),Sw(),DC(),XP=[],ZP=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),QP=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),$P=({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(ZP(a)){if(!c)return;a=QP(a,c)}if(o===void 0)o=a;else if(ZP(o)){if(!c)return;o=QP(o,c)}a=a.replace(/^\.(?:\/|$)/,``);let f=!a.startsWith(`/`);return{collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i,internalPath:Np(f?s??``:a),internalSubPath:f?Np(a):void 0,publicPath:/^($|[.@])/.test(o)?o:`/${Np(o)}`,entryRelative:f,hasTemplateTags:KP(a),label:l,icon:u,isAssetCollection:d}},eF=e=>{if(e.mediaFolder===void 0)return;let t=$P(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||XP.push(t)},tF=({collectionName:e,files:t,globalFolders:n})=>{xC(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;eF({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:Vp(i).dirname,globalFolders:n})})},Eae=({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||eF({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})})},Dae=({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&&eF({collectionName:`assets:${n}`,mediaFolder:`/${Np(a)}`,publicFolder:o,globalFolders:t,label:r,icon:i,isAssetCollection:!0})})},Oae=(e,t=[])=>{XP.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a,asset_collections:o}=e,s=n!==void 0,c=s?Np(n).replace(/^\.$/,``):``,l=s?r?`/${Np(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=pw({collections:i});p.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:o}=e;eF({collectionName:t,mediaFolder:s&&a===void 0&&i!==void 0?``:a,publicFolder:o,baseFolder:r,entryPath:i,globalFolders:f}),n?.length&&tF({collectionName:t,files:n,globalFolders:f})}),a?.length&&tF({collectionName:`_singletons`,files:a,globalFolders:f}),Eae({fieldMediaFolders:t,validCollections:p,globalFolders:f}),XP.sort((e,t)=>Fp(e.internalPath,t.internalPath));let m=[];return d&&m.push(d),o?.length&&Dae({assetCollections:o,globalFolders:f}),m.push(...XP),m.length&&m.unshift(u),m}})),Aae,nF,rF,jae,Mae,Nae,Pae,Fae=s((()=>{Ip(),Sw(),DC(),QC(),sw(),Aae=({collection:e,file:t})=>{let n=Np(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=ow(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,ZC({_i18n:r,locale:e,path:n})]))},nF=(e,t)=>{if(bC(t))return{collectionName:e.name,fileName:t.name,filePathMap:Aae({collection:e,file:t})}},rF=(e,t)=>Fp(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),jae=({collections:e})=>pw({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=Np(n),{allLocales:i,defaultLocale:a,omitDefaultLocaleFromFilePath:o,structureMap:{i18nMultiRootFolder:s}}=ow(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,s?o&&e===a?r:`${e}/${r}`:r]))}}).sort((e,t)=>Fp(e.folderPath,t.folderPath)),Mae=({collections:e})=>pw({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>nF(e,t))).filter(e=>!!e).sort(rF),Nae=({singletons:e})=>{let t=Array.isArray(e)?xC(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>nF(n,e)).filter(e=>!!e).sort(rF)},Pae=e=>[...jae(e),...Mae(e),...Nae(e)]})),Iae,Lae=s((()=>{Iae=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`]})),Rae,zae,Bae,Vae,iF,Hae=s((()=>{X(),p(),Rae=u(tte(),1),Lae(),pE(),jE(),yD(),zae=async({href:e,type:t=`application/yaml`},{manualInit:n=!1,showSchemaTip:r}={})=>{let i;if(!Iae.includes(t))throw Error(Y(`config.error.parse_failed`),{cause:Error(Y(`config.error.parse_failed_unsupported_type`))});let a=n?`config.error.fetch_failed_with_manual_init`:`config.error.fetch_failed`;try{let t=new URL(e,window.location.href);t.searchParams.set(`_`,Date.now().toString()),i=await fetch(t)}catch(e){throw Error(Y(a),{cause:e})}let{ok:o,status:s}=i;if(!o)throw Error(Y(a),{cause:Error(Y(`config.error.fetch_failed_not_ok`,{values:{status:s}}))});let c=!1,l;try{if(t===`application/json`)l=await i.json(),d(l)&&l.$schema!==`https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json`&&(c=!0);else{let e=await i.text();t===`application/toml`?(l=sE(e),e.includes(`#:schema https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json`)||(c=!0)):(l=cE(e,{merge:!0,maxAliasCount:-1}),e.includes(`# yaml-language-server: $schema=https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json`)||(c=!0))}}catch(e){throw Error(Y(`config.error.parse_failed`),{cause:e})}if(!d(l))throw Error(Y(`config.error.parse_failed`),{cause:Error(Y(`config.error.parse_failed_invalid_object`))});return r&&c&&console.info(Y(`config.schema_tip`)),l},Bae=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},Vae=e=>{let{origin:t}=window.location;return e.every(({href:e})=>_D(e,t))},iF=async({manualInit:e=!1}={})=>{let t=[...document.querySelectorAll(`link[rel="cms-config-url"]`)].map(({href:e,type:t})=>({href:e,type:t}));if(t.length||t.push({href:Bae(window.location.pathname)}),!Vae(t))throw Error(Y(`config.error.insecure_urls`,{values:{count:t.length}}));let n=AE.isLocalHost&&!e&&t.length===1,r=await Promise.all(t.map(t=>zae(t,{manualInit:e,showSchemaTip:n})));return r.length===1?r[0]:Rae.default.all(r)}})),aF,oF,Uae,Wae,sF,cF=s((()=>{X(),QC(),aF=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,componentName:c,typedKeyPath:l}=i,{errors:u,warnings:d}=a,f=[];o&&f.push(Y(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&f.push(Y(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&f.push(Y(`config.error_locator.component`,{values:{component:c}})),l&&f.push(Y(`config.error_locator.field`,{values:{field:l}}));let p=e===`error`?u:d,m=Xh.current,h=f.length?`${XC(m).format(f)}: `:``,g=Y(`config.${e}.${t}`,{values:n});p.add(`${h}${g}${r?` ${Y(`config.${r}`)}`:``}`)},oF=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&aF({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},Uae=/^[^\s.*:<>]+$/,Wae=e=>Uae.test(e),sF=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return aF({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return Wae(e)?n[e]===1?(aF({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(aF({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),Gae,Kae,qae=s((()=>{X(),p(),iA(),FC(),cF(),Gae=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],Kae=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!d(n)){r.add(Y(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(Y(`config.error.missing_backend_name`));return}if(!$k.includes(a)){let e=Qk[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=Y(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${i} ${Y(`config.error.unsupported_backend_suggestion`)}`);return}if(a in eA){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(Y(`config.error.no_auth_methods`));let d=!c||c.includes(`token`);o===void 0&&r.add(Y(`config.error.missing_repository`)),(typeof o!=`string`||!/^[^/:]+(?:\/[^/:]+)+$/.test(o))&&r.add(Y(`config.error.invalid_repository`)),l===`implicit`&&r.add(Y(`config.error.oauth_implicit_flow`).replace(`BACKEND_NAME`,a)),a===`github`&&l===`pkce`&&r.add(Y(`config.error.github_pkce_unsupported`)),a===`gitlab`&&l===`pkce`&&!u&&r.add(Y(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(Y(`config.warning.oauth_no_app_id`)):r.add(Y(`config.error.oauth_no_app_id`))),s!==void 0&&PC(`automatic_deployments`),oF({UNSUPPORTED_OPTIONS:Gae,config:n,context:{cmsConfig:e},collectors:t})}}})),Jae,lF,uF,Yae=s((()=>{WC(),Jae=[`code`,`markdown`,`richtext`,`text`],lF=[`yaml`,`toml`,`json`],uF=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&Jae.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(IC.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return!LC.includes(i)&&i!==e}return a===`frontmatter`?!RC.includes(i):lF.includes(a)?lF.includes(i)&&i!==a:!1}})),Xae,Zae,Qae,$ae,eoe=s((()=>{cF(),GS(),Xae=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Zae=e=>{try{return Intl.DateTimeFormat(`en-US`,{timeZone:e}),!0}catch{return!1}},Qae=e=>{let{config:t,context:n,collectors:r}=e,{picker_utc:i,input_timezone:a,output_utc:o}=t;i!==void 0&&(a!==void 0||o!==void 0)&&aF({type:`warning`,strKey:`conflicting_timezone_options`,context:n,collectors:r}),US(a)&&!Zae(a)&&aF({strKey:`invalid_timezone`,values:{timeZone:a},context:n,collectors:r})},$ae=e=>{oF({...e,UNSUPPORTED_OPTIONS:Xae}),Qae(e)}})),toe,dF,noe=s((()=>{cF(),toe=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],dF=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),oF({...e,UNSUPPORTED_OPTIONS:toe})}})),roe,ioe,aoe=s((()=>{hF(),cF(),roe=(e,t,n)=>e===`object`?!0:(aF({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),ioe=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){aF({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&pF({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&mF(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};sF({...c,name:e,index:a,context:o})&&roe(t,o,r)&&i&&mF(i,o,r)})}})),ooe,soe,coe=s((()=>{cF(),ooe=[{prop:`valueType`,newProp:`value_type`}],soe=e=>{oF({...e,UNSUPPORTED_OPTIONS:ooe})}})),loe,uoe=s((()=>{hF(),cF(),loe=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){aF({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){aF({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&mF(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};sF({...s,name:e,index:i,context:a})&&t&&mF(t,a,r)})}})),doe,foe,poe=s((()=>{cF(),doe=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],foe=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||aF({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&aF({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else aF({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});oF({...e,UNSUPPORTED_OPTIONS:doe}),r.relationFields.add({fieldConfig:i,context:n})}})),moe,fF,hoe=s((()=>{cF(),moe=[{prop:`editorComponents`,newProp:`editor_components`}],fF=e=>{oF({...e,UNSUPPORTED_OPTIONS:moe})}})),goe,pF,mF,hF=s((()=>{eoe(),noe(),aoe(),coe(),uoe(),poe(),hoe(),cF(),goe={datetime:$ae,file:dF,image:dF,list:ioe,markdown:fF,number:soe,object:loe,relation:foe,richtext:fF},pF=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};goe[i]?.(o),i===`date`&&aF({...o,strKey:`date_field_type`})},mF=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;sF({...r,name:a,index:i})&&pF({config:e,context:t,collectors:n})})}})),_oe,gF,voe=s((()=>{Yp(),Yae(),hF(),cF(),_oe=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=Vp(i);uF(c,a,o)&&aF({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||aF({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&aF({strKey:`collection_file_i18n_required`,context:e,collectors:t}),mF(o,e,t)},gF=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};sF({...a,name:o,index:i,context:s})&&_oe(s,t)})}})),yoe,boe,xoe,Soe,Coe=s((()=>{X(),FC(),voe(),Yae(),hF(),cF(),yoe=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],boe=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;uF(i,a)&&aF({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&PC(`slug_length`),oF({UNSUPPORTED_OPTIONS:yoe,config:r,context:e,collectors:t}),o?.length||aF({strKey:`collection_no_fields`,context:e,collectors:t}),mF(o,e,t),s&&mF(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&aF({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},xoe=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){aF({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){aF({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?gF({cmsConfig:e,collection:t},n):a&&boe({cmsConfig:e,collection:t},n)},Soe=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(Y(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};sF({...a,name:i,index:r,context:o})&&xoe(o,t)}),Array.isArray(r)&&gF({cmsConfig:e,collection:{name:`_singletons`,label:Y(`singletons`),label_singular:Y(`singleton`),files:r}},t)}})),woe,Toe=s((()=>{X(),cF(),Pj(),woe=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a,asset_collections:o}=e,{errors:s}=t;if(n===void 0?!Nj.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>Nj.includes(e))&&s.add(Y(`config.error.missing_media_folder`)):typeof n!=`string`&&s.add(Y(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&s.add(Y(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&s.add(Y(`config.error.public_folder_absolute_url`))):s.add(Y(`config.error.invalid_public_folder`))),o!==void 0)if(!Array.isArray(o))s.add(Y(`config.error.invalid_asset_collections`));else{let n={nameCounts:{},strKeyBase:`asset_collection_name`,collectors:t};o.forEach((t,r)=>{let{name:i,media_folder:a}=t,o={cmsConfig:e};sF({...n,name:i,index:r,context:o})&&typeof a!=`string`&&s.add(Y(`config.error.asset_collection_invalid_media_folder`,{values:{name:i}}))})}}})),Eoe,Doe,Ooe=s((()=>{qae(),Coe(),hF(),Toe(),cF(),yp(),Eoe=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],Doe=(e,t)=>{Kae(e,t),woe(e,t),Soe(e,t),oF({UNSUPPORTED_OPTIONS:Eoe,config:e,context:{cmsConfig:e},collectors:t}),pp.forEach(({fields:n},r)=>{mF(n,{cmsConfig:e,componentName:r},t)})}})),koe,_F,Aoe,vF,yF,bF,xF,SF,CF,wF,joe,TF=s((()=>{X(),Ap(),p(),Ip(),koe=u(tte(),1),Zp(),eb(),fm(),kae(),Fae(),Hae(),Ooe(),yC(),OO(),{DEV:_F,VITE_SITE_URL:Aoe}={DEV:!1},vF=_F?Aoe||`http://localhost:5174`:void 0,yF={},bF=ln(),xF=ln(),SF=ln([]),CF=un([bF,SF],([e,t])=>!!e||!!t.length),wF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},joe=async e=>{bF.set(void 0),SF.set([]),Object.assign(wF,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(Y(`config.error.no_secure_context`));let t;if(e){if(!d(e))throw Error(Y(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,koe.default)(await iF({manualInit:!0}),t))}else t=await iF();if(Object.assign(yF,t),Doe(t,wF),wF.errors.size)throw wF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);wF.warnings.size&&wF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(_F?vF:window.location.origin),n._baseURL=Pp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),bF.set(n),xF.set(await kp(Qy(n)))}catch(e){SF.set(wF.errors.size?[...wF.errors]:[e.name===`Error`?e.message:Y(`config.error.unexpected`)]),console.error(e,e.cause)}},bF.subscribe(e=>{if(DO.devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,wF)),!e)return;let t=Pae(e),n=Oae(e,[...wF.mediaFields]);pC.set(t),im.set(n),DO.devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),EF,DF=s((()=>{Zp(),TF(),EF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=dn(bF),r=e==="default"?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n!==!1&&i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t!==!1&&i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})),OF,Moe,kF=s((()=>{p(),DF(),dM(),TM(),OF=({fieldConfig:e}={})=>{let t=EF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`&&r,slugify_filename:typeof i==`boolean`&&i,transformations:d(a)?a:void 0}}},Moe=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(rM.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&uM.includes(t)?t:`webp`,s=await CM(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0}),c=s.type===`image/${o}`?aM.test(e.name)?e.name.replace(aM,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await wM(e)],e.name,{type:e.type}):e}})),AF,jF=s((()=>{kF(),HE(),AF=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=LE(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await Moe(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),Noe,MF,NF,PF,FF,IF,Poe,LF,RF,zF,BF,VF,Foe,HF,Ioe,Loe,UF,WF,GF,Roe,KF,qF,JF=s((()=>{Yp(),Ip(),gc(),Zp(),fm(),jF(),YP(),rm(),Sw(),Tw(),DC(),ZM(),kF(),HE(),Noe=/^(?<entryFolder>.+?)(?:\/[^/]+)?$/,MF=ln([]),NF={source:void 0,map:new Map},PF=()=>{let e=dn(MF);return e!==NF.source&&(NF.source=e,NF.map=new Map(e.map(e=>[e.path,e]))),NF.map},FF=e=>PF().get(e),IF=ln([]),Poe=un(IF,e=>new Set(e.map(e=>e.path))),LF=ln(),RF=ln(),zF=ln({folder:void 0,files:[]}),BF=ln(),VF=ln(),Foe=un([zF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=OF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>AF(e,i)));n(()=>({processing:!1,undersizedFiles:e.filter(({oversized:e})=>!e).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),HF=({path:e,entry:t,collection:n,file:r,componentName:i,typedKeyPath:a})=>{let{locales:o}=t,{_i18n:{defaultLocale:s}}=r??n,c=a?cm({collectionName:n.name,fileName:r?.name,componentName:i,typedKeyPath:a}):void 0,l=c?.entryRelative?c.internalSubPath??``:(r??n).media_folder,u=c?.publicPath?c.publicPath:(r??n).public_folder,{path:d,content:f}=o[s in o?s:Object.keys(o)[0]];if(!d||!f)return;let{entryFolder:p}=d.match(Noe).groups,m=e.replace(/^\.\//,``),h=l&&m.startsWith(`${l}/`)?m.slice(l.length+1):m,g;if(l?.startsWith(`/`)&&u){let e=u.replace(/^\.\//,``);m.startsWith(`${e}/`)&&(h=m.slice(e.length+1)),g=zE(RE([l.slice(1),h]))}else g=zE(RE([p,l,h]));return PF().get(g)},Ioe=({path:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:a})=>{if(!t){let t=[i?cm({componentName:i,typedKeyPath:a}):void 0,n&&a?cm({collectionName:n,fileName:r,typedKeyPath:a}):void 0,n?cm({collectionName:n,fileName:r}):void 0,n?cm({collectionName:n}):void 0,dn(am)].filter(e=>!!e&&!e.hasTemplateTags),o;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=PF().get(RE([t.internalPath,t.internalSubPath??``,r]));return i&&(o=i),!!i}),o??PF().get(e)}return qM(t).flatMap(n=>{let r=wC(n,t),o={path:e,entry:t,collection:n,componentName:i,typedKeyPath:a};return r.length?r.map(e=>HF({...o,file:e})):HF({...o})}).filter(Boolean)[0]??PF().get(e)},Loe=({path:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:a})=>{let o=PF().get(Np(e));if(o)return o;let{dirname:s=``,basename:c}=Vp(e),l;return[i?cm({componentName:i,typedKeyPath:a}):void 0,a?cm({collectionName:n,fileName:r,typedKeyPath:a}):void 0,cm({collectionName:n,fileName:r}),cm({collectionName:n}),dn(am),dn(im).findLast(e=>{let t=e.publicPath??``,n=jp(t).replace(em,`.+?`);return s.match(`^${n}${t?`(?=\\/|$)`:`$`}`)})].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&Qp.test(i)){let e=r?yw(r):t?qM(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=JP(i,{type:`media_folder`,collection:e,content:mc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:ww(e,t)})}n&&i&&s&&(n===`/`?i=`${i}${s}`:s.startsWith(`${n}/`)&&(i=s.replace(n,i)));let a=RE([i,c]),o=PF().get(a);return o&&(l=o),!!o}),l},UF=e=>!/^[/@]/.test(e),WF=({value:e,...t})=>{let n=hie(e.split(`#`)[0]);return UF(n)?Ioe({path:n,...t}):Loe({path:n,...t})},GF=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,Roe=e=>dn(MF).filter(t=>GF(t,e)),KF=e=>dn(MF).filter(t=>Vp(t.path).dirname===e),om.subscribe(()=>{LF.set(void 0)}),qF=(e,t)=>{if(!t.length||!e.length)return[];let n=new Set(t.map(({name:e})=>e.normalize().toLowerCase()));return e.filter(e=>n.has(e.name.normalize().toLowerCase()))}})),YF,XF,ZF=s((()=>{Yp(),Ip(),Zp(),JF(),fm(),VM(),Sw(),Tw(),jP(),YF=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${jp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await BM({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},XF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=yw(t);if(!a)return[];let o=ww(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||UF(a))){let s=wP({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=WF({value:a,entry:e,collectionName:t,fileName:n});if(c&&um(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(!r||e.entryRelative)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&cm({collectionName:t,fileName:n})?.entryRelative){let t=Vp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));dn(MF).forEach(n=>{let r=Vp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),QF,zoe,$F,eI=s((()=>{p(),gc(),up(),fp(),yp(),ZF(),gD(),QF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],zoe=[`preSave`,`prePublish`],$F=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=hD.account,{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==u),{content:h,path:g}=p[u],_=XF({entry:n,collectionName:c,fileName:l});for(let t of vp){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:dp({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(zoe.includes(e)&&iu(n)){let e=n.toJS();d(e.data)&&d(e.i18n)?(p[u].content=mc(e.data),m.forEach(t=>{d(e.i18n[t]?.data)&&(p[t].content=mc(e.i18n[t].data))})):p[u].content=mc(e)}}}})),Boe=s((()=>{})),Z=s((()=>{Boe(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)}));function tI(e,t){G(e,Uoe);let n=ec(t,Voe);var r=Hoe();Cs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-57f687`);var i=F(r,!0);O(r),R(()=>U(i,t.name)),H(e,r)}var Voe,Hoe,Uoe,nI=s((()=>{Z(),J(),Voe=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),Hoe=B(`<span> </span>`),Uoe={hash:`svelte-57f687`,code:`.icon.small-arrow.svelte-57f687 {overflow:hidden;width:12px;text-indent:-6px;}`}}));function rI(e,t){G(e,Koe);let n=q(t,`ariaLive`,3,`assertive`),r=ec(t,Woe);var i=Goe();Cs(i,()=>({...r,role:`alert`,class:`sui alert ${t.status??``}`,"aria-live":n()}),void 0,void 0,void 0,`svelte-10co4zr`);var a=F(i),o=e=>{var n=V();Ao(I(n),()=>t.icon),H(e,n)},s=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);tI(e,{get name(){return z(n)}})}};W(a,e=>{t.icon?e(o):e(s,-1)}),Ao(L(a,2),()=>t.children??D),O(i),H(e,i)}var Woe,Goe,Koe,iI=s((()=>{Z(),J(),nI(),Woe=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`ariaLive`,`children`,`icon`]),Goe=B(`<div><!> <!></div>`),Koe={hash:`svelte-10co4zr`,code:`.alert.svelte-10co4zr {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-10co4zr {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-10co4zr {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-10co4zr {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-10co4zr {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),qoe,aI,Joe,Yoe,Xoe,oI,sI,cI=s((()=>{aI=()=>(qoe??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),qoe),Joe=[`Ctrl`,`Meta`,`Alt`,`Shift`],Yoe=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}`)]),Xoe=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:Yoe.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),oI=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.replace(/\bAccel\b/g,aI()?`Meta`:`Ctrl`).split(/\s+/).some(t=>{let o=t.split(`+`);return o.includes(`Ctrl`)&&!n||o.includes(`Meta`)&&!r||o.includes(`Alt`)&&!i||o.includes(`Shift`)&&!a||!o.includes(`Ctrl`)&&n||!o.includes(`Meta`)&&r||!o.includes(`Alt`)&&i||!o.includes(`Shift`)&&a?!1:o.filter(e=>!Joe.includes(e)).every(t=>Xoe(t,e))})},sI=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,aI()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!oI(n,t))return;let{top:i,left:a}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`);let o=document.elementsFromPoint(a+4,i+4).includes(e);r&&e.style.removeProperty(`pointer-events`),o&&(n.preventDefault(),r||(e.focus(),e.click()))};return globalThis.addEventListener(`keydown`,n,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,t),()=>{globalThis.removeEventListener(`keydown`,n,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)}}:()=>()=>{}}}));function lI(e,t){G(e,Qoe);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=Zoe();Ao(F(i),()=>r()??D),O(i),R(()=>ms(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var Zoe,Qoe,uI=s((()=>{Z(),J(),Zoe=B(`<span role="none" class="sui truncated-text svelte-18nok2o"><!></span>`),Qoe={hash:`svelte-18nok2o`,code:`.truncated-text.svelte-18nok2o {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),dI,fI,pI,$oe,ese,tse,mI,hI=s((()=>{Ap(),pI=(e=`e`,t=7)=>[e,Dp(t)].join(`-`),$oe=()=>{if(`IntersectionObserver`in globalThis)return fI||(dI=new Map,fI=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=dI?.get(t);n&&(dI?.delete(t),fI?.unobserve(t),n())})}),fI)},ese=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},tse=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},mI=e=>{if(!e)return;let t=$oe();if(t)return ese(e)?Promise.resolve(void 0):new Promise(n=>{dI?.set(e,n),tse(()=>{t.observe(e)})})}})),nse,rse,ise=s((()=>{J(),hI(),rT(),Mh(),nse=class{#e=N(!1);get open(){return z(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&window.requestAnimationFrame(()=>{this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)}),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Nr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=pI(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),Ca(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),Ca(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)}),Ca(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),Ca(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),Ca(this.popupElement,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)}),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement)}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement)}async hideImmediately(){this.popupElement.hidden=!0,this.open=!1,await nT(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},rse=(...e)=>new nse(...e)}));function ase(e,t){var n=V();Ao(I(n),()=>t.children??D),H(e,n)}var ose=s((()=>{Z(),J()}));function gI(e,t){k(t,!0),G(e,lse);let n=e=>{var n=cse(),d=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},f=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};Cs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Es]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-kmi1ey`);var g=F(n);Ao(g,()=>t.extraContent??D);var _=L(g,2),v=e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)};W(_,e=>{(z(h)||l())&&e(v)}),O(n),qs(n,e=>i(e),()=>i()),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`dialog`,15),a=q(t,`role`,3,`dialog`),o=q(t,`showBackdrop`,3,!1),s=q(t,`lightDismiss`,3,!1),c=q(t,`escapeDismiss`,3,!0),l=q(t,`keepContent`,3,!1),u=ec(t,sse),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=0,_=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),v=async()=>{if(!i()||i()?.open)return;g+=1;let e=g;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await nT(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return ri(()=>{r()?v():y()}),lc(()=>{let e=Ha(ase,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Wa(e)}}),A({focus:d,close:f})}var sse,cse,lse,_I=s((()=>{Z(),J(),rT(),dc(),ose(),sse=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),cse=B(`<dialog><!> <!></dialog>`),lse={hash:`svelte-kmi1ey`,code:`dialog.svelte-kmi1ey {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-kmi1ey::backdrop {background:transparent;}dialog.backdrop.svelte-kmi1ey {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-kmi1ey {transition-duration:50ms;opacity:1;}dialog.svelte-kmi1ey:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-kmi1ey {transition-duration:1ms !important;}dialog.svelte-kmi1ey:not(.active) {pointer-events:none !important;}dialog.svelte-kmi1ey:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function vI(e,t){k(t,!0),G(e,fse);let n=e=>{var n=dse();let o,s;Ao(F(n),()=>t.children??D),O(n),qs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=ds(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-1bqj2xr`,o,{touch:z(y)}),s=ms(n,``,s,{inset:z(g)?.style.inset,"z-index":z(g)?.style.zIndex,"min-width":z(g)?.style.minWidth,"max-width":z(g)?.style.maxWidth,"max-height":z(g)?.style.height,visibility:z(g)?.style.inset?void 0:`hidden`})}),wa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),wa(`mouseleave`,n,()=>{i(!1),l()&&(_=window.setTimeout(()=>{r(!1)},200))}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`hovered`,15,!1),a=q(t,`content`,15,void 0),o=q(t,`showBackdrop`,3,void 0),s=q(t,`position`,3,`bottom-left`),c=q(t,`positionBaseElement`,3,void 0),l=q(t,`parentDialogElement`,3,void 0),u=q(t,`touchOptimized`,3,!1),d=ec(t,use),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,rse(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ri(()=>{z(g)&&r(z(g).open)}),ri(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ri(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ri(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));lc(()=>(P(m,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(g)?.destroy?.(),globalThis.clearTimeout(_)}));var b=V(),x=I(b),S=e=>{n(e)},C=e=>{{let i=M(()=>o()??z(y));gI(e,tc(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await nT(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(p)},set dialog(e){P(p,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};W(x,e=>{l()?e(S):e(C,-1)}),H(e,b),A()}var use,dse,fse,yI=s((()=>{Z(),J(),rT(),dc(),ise(),_I(),use=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),dse=B(`<div role="none"><!></div>`),fse={hash:`svelte-1bqj2xr`,code:`.content.svelte-1bqj2xr {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-1bqj2xr {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-1bqj2xr .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-1bqj2xr {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-1bqj2xr .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-1bqj2xr {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-1bqj2xr {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-1bqj2xr {transform:scale(90%);}.content.touch.combobox.svelte-1bqj2xr .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-1bqj2xr {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-1bqj2xr {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function bI(e,t){k(t,!0),G(e,gse);let n=q(t,`element`,15),r=q(t,`class`,3,``),i=q(t,`type`,3,`button`),a=q(t,`role`,3,`button`),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,19,()=>typeof s()),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`pressed`,3,void 0),p=q(t,`keyShortcuts`,3,void 0),m=q(t,`label`,3,``),h=q(t,`lines`,3,1),g=q(t,`variant`,3,void 0),_=q(t,`size`,3,`medium`),v=q(t,`iconic`,3,!1),y=q(t,`pill`,3,!1),b=q(t,`flex`,3,!1),x=q(t,`popupPosition`,3,`bottom-left`),S=q(t,`showPopupBackdrop`,3,!1),C=ec(t,pse);var w=hse(),T=I(w);Cs(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(),[Es]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-z1py3x`);var E=F(T);Ao(E,()=>t.startIcon??D);var ee=L(E,2),te=e=>{var n=V(),r=I(n),i=e=>{var t=xI();lI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Ra();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),O(t),H(e,t)},a=e=>{var n=xI();Ao(F(n),()=>t.children??D),O(n),H(e,n)};W(r,e=>{m()?e(i):e(a,-1)}),H(e,n)},ne=e=>{var n=mse(),r=I(n),i=e=>{var t=xI();lI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Ra();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),O(t),H(e,t)};W(r,e=>{m()&&e(i)}),Ao(L(r,2),()=>t.children??D),H(e,n)};W(ee,e=>{g()===`link`?e(te):e(ne,-1)}),Ao(L(ee,2),()=>t.endIcon??D),O(T),qs(T,e=>n(e),()=>n()),$o(T,()=>sI(p()));var re=L(T,2),ie=e=>{vI(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();Ao(I(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(re,e=>{t.popup&&e(ie)}),H(e,w),A()}var pse,xI,mse,hse,gse,SI=s((()=>{Z(),J(),cI(),uI(),yI(),pse=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(`.`)),xI=B(`<span role="none" class="label svelte-z1py3x"><!></span>`),mse=B(`<!> <!>`,1),hse=B(`<button><!> <!> <!></button> <!>`,1),gse={hash:`svelte-z1py3x`,code:`button.svelte-z1py3x {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-z1py3x {display:none !important;}button.svelte-z1py3x:not(:disabled):focus-visible {z-index:1;}button.svelte-z1py3x:is(.primary:where(.svelte-z1py3x), .secondary:where(.svelte-z1py3x), .tertiary:where(.svelte-z1py3x), .ghost:where(.svelte-z1py3x)) {justify-content:center;border-width:1px;}button.svelte-z1py3x:is(.primary:where(.svelte-z1py3x), .secondary:where(.svelte-z1py3x), .tertiary:where(.svelte-z1py3x), .ghost:where(.svelte-z1py3x)) .label:where(.svelte-z1py3x):only-child {padding:0 4px;}button.primary.svelte-z1py3x {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-z1py3x:is(:where(.svelte-z1py3x):hover, :where(.svelte-z1py3x):focus-visible, [aria-expanded=true]:where(.svelte-z1py3x)) {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-z1py3x: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-z1py3x {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-z1py3x:is(:where(.svelte-z1py3x):hover, :where(.svelte-z1py3x):focus-visible, [aria-expanded=true]:where(.svelte-z1py3x)) {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-z1py3x: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-z1py3x {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-z1py3x {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-z1py3x:is(:where(.svelte-z1py3x):hover, :where(.svelte-z1py3x):focus-visible, [aria-expanded=true]:where(.svelte-z1py3x)) {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-z1py3x: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-z1py3x {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-z1py3x {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-z1py3x:is(:where(.svelte-z1py3x):hover, :where(.svelte-z1py3x):focus-visible, [aria-expanded=true]:where(.svelte-z1py3x)) {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-z1py3x: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-z1py3x {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-z1py3x {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-z1py3x .label:where(.svelte-z1py3x) {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-z1py3x .label:where(.svelte-z1py3x) {text-decoration:underline;}button.link.svelte-z1py3x:is(:where(.svelte-z1py3x):hover, :where(.svelte-z1py3x):focus, :where(.svelte-z1py3x):active) .label:where(.svelte-z1py3x) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-z1py3x {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-z1py3x .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-z1py3x {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-z1py3x {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-z1py3x {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-z1py3x:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-z1py3x {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-z1py3x {background-color:var(--sui-error-background-color);}button.svelte-z1py3x .label:where(.svelte-z1py3x) {padding:0 4px;}button.svelte-z1py3x > * {pointer-events:none;}button.svelte-z1py3x :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function CI(e,t){k(t,!0),G(e,yse);let n=q(t,`show`,15,!0),r=q(t,`dismissible`,3,!0),i=q(t,`status`,3,`info`),a=q(t,`ariaLive`,3,`polite`),o=q(t,`children`,3,void 0),s=q(t,`icon`,3,void 0);var c=V(),l=I(c),u=e=>{var t=vse(),c=F(t),l=F(c),u=e=>{var t=V();Ao(I(t),s),H(e,t)},d=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());tI(e,{get name(){return z(t)}})}};W(l,e=>{s()?e(u):e(d,-1)}),Ao(L(l,2),()=>o()??D),O(c);var f=L(c,2),p=e=>{var t=_se(),r=F(t);{let e=M(()=>Y(`_sui.dismiss`));bI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{tI(e,{name:`close`})},$$slots:{default:!0}})}O(t),H(e,t)};W(f,e=>{r()&&e(p)}),O(t),R(()=>{ds(t,1,`infobar ${i()??``}`,`svelte-30jtxs`),K(c,`aria-live`,a())}),H(e,t)};W(l,e=>{n()&&e(u)}),H(e,c),A()}var _se,vse,yse,bse=s((()=>{Z(),J(),X(),SI(),nI(),_se=B(`<div role="none"><!></div>`),vse=B(`<div role="none"><div role="alert" class="message svelte-30jtxs"><!> <!></div> <!></div>`),yse={hash:`svelte-30jtxs`,code:`.infobar.svelte-30jtxs {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-30jtxs {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-30jtxs {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-30jtxs {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-30jtxs {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-30jtxs {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-30jtxs button {font-size:inherit !important;}.message.svelte-30jtxs .icon {font-size:16px; /* !hardcoded */}`}}));function xse(e,t){G(e,wse);let n=ec(t,Sse);var r=Cse();Cs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-x9dfuj`),Ao(F(r),()=>t.children??D),O(r),H(e,r)}var Sse,Cse,wse,Tse=s((()=>{Z(),J(),Sse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Cse=B(`<div><!></div>`),wse={hash:`svelte-x9dfuj`,code:`.bottom-navigation.svelte-x9dfuj {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-x9dfuj:is([inert]:where(.svelte-x9dfuj), [hidden]:where(.svelte-x9dfuj)) {display:none;}.bottom-navigation.svelte-x9dfuj .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function Ese(e,t){G(e,kse);let n=q(t,`ariaLabel`,3,void 0),r=ec(t,Dse);var i=Ose();Cs(i,()=>({...r,role:`group`,class:`sui button-group ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1dswz7j`),Ao(F(i),()=>t.children??D),O(i),H(e,i)}var Dse,Ose,kse,Ase=s((()=>{Z(),J(),Dse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),Ose=B(`<div><!></div>`),kse={hash:`svelte-1dswz7j`,code:`.button-group.svelte-1dswz7j {flex:none;display:inline-flex;align-items:center;}`}}));function jse(e,t){G(e,Nse);let n=q(t,`children`,3,void 0);var r=Mse();Ao(F(r),()=>n()??D),O(r),H(e,r)}var Mse,Nse,Pse=s((()=>{Z(),J(),Mse=B(`<div role="none" class="sui floating-action-button-wrapper svelte-32d6pp"><!></div>`),Nse={hash:`svelte-32d6pp`,code:`.floating-action-button-wrapper.svelte-32d6pp {display:contents;}
@media (width < 768px) {.floating-action-button-wrapper.svelte-32d6pp {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-32d6pp button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-32d6pp button .icon {font-size:32px;}
}`}})),wI,Fse=s((()=>{J(),wI=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}}})),Ise,TI,Lse,Rse,EI,DI=s((()=>{J(),X(),hI(),rT(),Fse(),Ise=/\p{Diacritic}/gu,TI=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(Ise,``).toLocaleLowerCase():``),Lse={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0}},Rse=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=pI(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}=Lse[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.parent.tabIndex=a?-1:0,(async()=>{await nT(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=document.querySelector(`#${e.getAttribute(`aria-controls`)}`);e.id||=`${this.id}-item-${t+1}`,e.tabIndex=r?0:-1,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get allMembers(){return[...this.parent.querySelectorAll(this.selector)]}get activeMembers(){return this.allMembers.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}get selected(){return this.activeMembers.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `;this.activeMembers.forEach(o=>{let s=o.matches(`[role="menuitemcheckbox"]`),c=o.matches(`[role="menuitemradio"]`);if((s||c)&&(o.getAttribute(`role`)!==n||o.closest(this.parentGroupSelector)!==r))return;let l=s||this.multi,u=c||!l,d=o===t,f=o.matches(`[${this.childSelectedAttr}="true"]`),p=o.getAttribute(`aria-controls`),m=p?document.getElementById(p):null;l&&d&&(i||a)&&(o.setAttribute(this.childSelectedAttr,String(!f)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!f}})),f||o.dispatchEvent(new CustomEvent(`Select`))),u&&f!==d&&(!c||a||i)&&(o.setAttribute(this.childSelectedAttr,String(d)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:d}})),d&&(e.type===`keydown`&&o.matches(`[role="radio"]`)&&o.click(),o.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild?globalThis.requestAnimationFrame(()=>{o.tabIndex=d?0:-1,d&&(o.focus(),o.dispatchEvent(new CustomEvent(`Focus`)))}):(o.classList.toggle(`focused`,d),d&&o.dispatchEvent(new CustomEvent(`Focus`))),m&&(m.inert=!d,m.setAttribute(`aria-hidden`,String(!d)),d&&globalThis.setTimeout(()=>{try{m.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{m.scrollIntoView(!0)}},300)),d&&(this.parent.setAttribute(`aria-activedescendant`,o.id),globalThis.setTimeout(()=>{try{o.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{o.scrollIntoView(!0)}},300))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:wI(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;if(i||a||n||r)return;let o=e.target,{allMembers:s,activeMembers:c}=this,l=(()=>{if(!this.focusChild)return c.find(e=>e.matches(`.focused`));if(o.matches(this.selector))return o})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){l?.click();return}if(t===` `){l&&this.selectTarget(e,l);return}let u,d;if(this.grid){let e=Math.floor(this.parent.clientWidth/c[0].clientWidth),n=Hh();u=l?s.indexOf(l):-1,t===`ArrowUp`&&u>0&&(d=s[u-e]),t===`ArrowDown`&&u<s.length-1&&(d=s[u+e]),t===`ArrowLeft`&&u>0&&(d=s[u+(n?1:-1)]),t===`ArrowRight`&&u<s.length-1&&(d=s[u+(n?-1:1)]),d?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(d=void 0)}else{u=l?c.indexOf(l):-1;let e=Hh(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(u>0&&(d=c[u-1]),u<=0&&(d=c[c.length-1])),t===r&&(u<c.length-1&&(d=c[u+1]),u===c.length-1&&([d]=c))}d&&d!==l&&this.selectTarget(e,d)}destroy(){this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=TI(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=TI(e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent),r=!n.every(e=>t.includes(e));return e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}})),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},EI=e=>t=>{let n=typeof e==`function`,r=n?e():e,i=new Rse(t,r);return n&&ri(()=>{i.onUpdate(e())}),()=>{i.destroy()}}}));function OI(e,t){k(t,!0),G(e,Vse);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`ariaLabel`,3,void 0),c=ec(t,zse);var l=Bse();Cs(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-zblio6`);var u=F(l);Ao(F(u),()=>t.children??D),O(u),O(l),$o(l,EI),R(()=>u.inert=r()),H(e,l),A()}var zse,Bse,Vse,Hse=s((()=>{Z(),J(),DI(),zse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`]),Bse=B(`<div><div role="none" class="inner svelte-zblio6"><!></div></div>`),Vse={hash:`svelte-zblio6`,code:`.select-button-group.svelte-zblio6 {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-zblio6:focus-visible {outline-width:0 !important;}.select-button-group.svelte-zblio6 button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-zblio6 button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-zblio6 button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-zblio6 button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-zblio6 button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-zblio6 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-zblio6 [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-zblio6 [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-zblio6 {display:contents;}`}}));function kI(e,t){k(t,!0);let n=q(t,`selected`,15,!1),r=ec(t,Use);bI(e,tc(()=>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)}})),A()}var Use,Wse=s((()=>{Z(),J(),SI(),Use=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`])}));function AI(e,t){k(t,!0);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`popupPosition`,3,`bottom-left`),a=q(t,`popupPositionBaseElement`,3,void 0),o=q(t,`showPopupBackdrop`,3,!1),s=q(t,`label`,3,``),c=q(t,`variant`,3,void 0),l=q(t,`size`,3,`medium`),u=q(t,`iconic`,3,!1),d=ec(t,Gse),f=N(void 0);var p={focus:()=>{z(f)?.focus()}},m=Kse(),h=I(m);return bI(h,tc(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return z(f)},set element(e){P(f,e,!0)},startIcon:e=>{var n=V();Ao(I(n),()=>t.startIcon??D),H(e,n)},children:e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)},endIcon:e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.endIcon),H(e,n)},a=e=>{tI(e,{name:`more_vert`})},o=e=>{tI(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),vI(L(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=V();Ao(I(r),()=>t.popup??D),H(e,r)},$$slots:{default:!0}}),H(e,m),A(p)}var Gse,Kse,jI=s((()=>{Z(),J(),SI(),nI(),yI(),Gse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),Kse=B(`<!> <!>`,1)}));function qse(e,t){k(t,!0),G(e,Xse);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`label`,3,``),a=q(t,`variant`,3,void 0),o=q(t,`size`,3,`medium`),s=q(t,`popupPosition`,3,`bottom-left`),c=q(t,`showPopupBackdrop`,3,!1),l=ec(t,Jse),u=N(void 0);var d=Yse(),f=F(d);bI(f,tc(()=>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=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{tI(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},i=e=>{var n=V();Ao(I(n),()=>t.popup??D),H(e,n)},l=M(()=>Y(`_sui.split_button.more_options`));AI(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}O(d),qs(d,e=>P(u,e),()=>z(u)),R(e=>{K(d,`hidden`,n()),K(d,`aria-hidden`,n()),K(d,`aria-disabled`,r()),K(d,`aria-label`,e)},[()=>Y(`_sui.split_button.x_options`,{values:{name:i()}})]),H(e,d),A()}var Jse,Yse,Xse,Zse=s((()=>{Z(),J(),X(),nI(),jI(),SI(),Jse=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),Yse=B(`<div role="group" class="sui split-button svelte-1ie5p7e"><!> <!></div>`),Xse={hash:`svelte-1ie5p7e`,code:`.split-button.svelte-1ie5p7e {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-1ie5p7e button {margin:0;}.split-button.svelte-1ie5p7e 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-1ie5p7e button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}}));function MI(e,t){G(e,ece);let n=q(t,`hidden`,3,!1),r=q(t,`orientation`,3,`horizontal`),i=q(t,`ariaLabel`,3,void 0),a=ec(t,Qse);var o=$se();Cs(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-1kwn38f`),H(e,o)}var Qse,$se,ece,NI=s((()=>{Z(),J(),Qse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`,`ariaLabel`]),$se=B(`<div></div>`),ece={hash:`svelte-1kwn38f`,code:`.divider.svelte-1kwn38f {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-1kwn38f {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-1kwn38f {margin:0 8px;width:1px;height:100%;}`}}));function PI(e,t){G(e,LI);let n=q(t,`flex`,3,!1),r=ec(t,FI);var i=II();Cs(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Es]:{flex:n()}}),void 0,void 0,void 0,`svelte-iuauyq`),H(e,i)}var FI,II,LI,RI=s((()=>{Z(),J(),FI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),II=B(`<div></div>`),LI={hash:`svelte-iuauyq`,code:`.spacer.flex.svelte-iuauyq:not([hidden]) {display:block;flex:auto;}.spacer.svelte-iuauyq:not(.flex) {width:8px;height:8px;}`}}));function tce(e,t){G(e,VI);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`ariaLabel`,3,void 0),o=ec(t,zI);var s=BI();Cs(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-vfek2h`);var c=F(s);Ao(F(c),()=>t.children??D),O(c),O(s),R(()=>c.inert=r()),H(e,s)}var zI,BI,VI,nce=s((()=>{Z(),J(),zI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`ariaLabel`,`children`]),BI=B(`<div><div role="none" class="inner svelte-vfek2h"><!></div></div>`),VI={hash:`svelte-vfek2h`,code:`.checkbox-group.svelte-vfek2h {display:inline-flex;}.checkbox-group.horizontal.svelte-vfek2h {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-vfek2h {gap:4px;flex-direction:column;}
@media (pointer: coarse) {.checkbox-group.vertical.svelte-vfek2h {gap:8px;}
}.inner.svelte-vfek2h {display:contents;}`}}));function HI(e,t){let n=za();k(t,!0),G(e,KI);let r=q(t,`checked`,15),i=q(t,`name`,3,void 0),a=q(t,`value`,3,void 0),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=q(t,`label`,3,void 0),f=q(t,`ariaLabel`,3,void 0),p=q(t,`group`,15),m=ec(t,UI),h=N(void 0),g=M(()=>r()===`mixed`);ri(()=>{Array.isArray(p())&&(p().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var _=GI();let v;var y=F(_),b=F(y);{let e=e=>{var n=V(),i=I(n),a=e=>{var n=V();Ao(I(n),()=>t.checkIcon),H(e,n)},o=e=>{tI(e,{name:`remove`})},s=e=>{tI(e,{name:`check`})};W(i,e=>{t.checkIcon?e(a):z(g)?e(o,1):r()&&e(s,2)}),H(e,n)},d=M(()=>f()||void 0),_=M(()=>f()?void 0:`${n}-label`);bI(b,tc(()=>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 z(d)},get"aria-labelledby"(){return z(_)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(z(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 z(h)},set element(e){P(h,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var x=L(b,2),S=e=>{var r=WI(),i=F(r),a=e=>{var n=V();Ao(I(n),()=>t.children),H(e,n)},o=e=>{var t=Ra();R(()=>U(t,d())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),O(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(x,e=>{(t.children||d())&&e(S)}),O(y),O(_),R(()=>{v=ds(_,1,`sui checkbox ${t.class??``}`,`svelte-5ilvxj`,v,{checked:r(),indeterminate:z(g),disabled:s(),readonly:c()}),K(_,`hidden`,o()),y.inert=s()}),Ta(`click`,_,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||z(h)?.click()}),H(e,_),A()}var UI,WI,GI,KI,rce=s((()=>{Z(),J(),SI(),nI(),UI=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`ariaLabel`,`group`,`onChange`,`children`,`checkIcon`]),WI=B(`<label class="svelte-5ilvxj"><!></label>`),GI=B(`<div role="none"><div role="none" class="inner svelte-5ilvxj"><!> <!></div></div>`),KI={hash:`svelte-5ilvxj`,code:`.checkbox.svelte-5ilvxj {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-5ilvxj:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-5ilvxj:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-5ilvxj:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-5ilvxj:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-5ilvxj 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-5ilvxj 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-5ilvxj button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-5ilvxj button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-5ilvxj button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-5ilvxj label:where(.svelte-5ilvxj) {cursor:inherit;}.inner.svelte-5ilvxj {display:contents;}`},Ea([`click`])}));function qI(e,t){let n=za();k(t,!0),G(e,eL);let r=q(t,`open`,15,!1);q(t,`value`,11,``);let i=q(t,`role`,3,`dialog`),a=q(t,`size`,3,`medium`),o=q(t,`showClose`,3,!1),s=q(t,`showOk`,3,!0),c=q(t,`showCancel`,3,!0),l=q(t,`okLabel`,3,``),u=q(t,`okShortcuts`,3,void 0),d=q(t,`okDisabled`,3,!1),f=q(t,`cancelLabel`,3,``),p=q(t,`cancelShortcuts`,3,void 0),m=q(t,`cancelDisabled`,3,!1),h=q(t,`focusInput`,3,!0),g=ec(t,JI),_=N(void 0),v=N(void 0);ri(()=>{if(r()&&z(v)){let e=!1;return(async()=>{await nT(50),!e&&(h()?((z(v)?.querySelector(`input, button.primary`))?.focus(),(z(v)?.querySelector(`input`))?.select()):z(_)?.focus())})(),()=>{e=!0}}});{let h=M(()=>t.header?void 0:t.title),y=M(()=>t.header?t.title:`${n}-title`);qs(gI(e,tc(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return z(h)},get"aria-labelledby"(){return z(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=$I(),h=F(i),g=e=>{var r=XI(),i=F(r),a=e=>{var n=V();Ao(I(n),()=>t.header),H(e,n)},s=e=>{var r=YI(),i=I(r),a=F(i,!0);O(i);var s=L(i,2);PI(s,{flex:!0});var c=L(s,2);Ao(c,()=>t.headerExtra??D);var l=L(c,2),u=e=>{{let r=e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.closeIcon),H(e,n)},a=e=>{tI(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},i=M(()=>Y(`_sui.close`));bI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{z(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};W(l,e=>{o()&&e(u)}),R(()=>{K(i,`id`,`${n}-title`),U(a,t.title)}),H(e,r)};W(i,e=>{t.header?e(a):e(s,-1)}),O(r),H(e,r)};W(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=L(h,2);Ao(F(y),()=>t.children??D),O(y);var b=L(y,2),x=e=>{var n=QI(),r=F(n),i=e=>{var n=V();Ao(I(n),()=>t.footer??D),H(e,n)},a=e=>{var n=ZI(),r=I(n);Ao(r,()=>t.footerExtra??D);var i=L(r,2);PI(i,{flex:!0});var a=L(i,2),o=e=>{{let t=M(()=>l()||Y(`_sui.ok`));bI(e,{variant:`primary`,get label(){return z(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{z(_)?.close(`ok`)}})}};W(a,e=>{s()&&e(o)});var h=L(a,2),g=e=>{{let t=M(()=>f()||Y(`_sui.cancel`));bI(e,{variant:`secondary`,get label(){return z(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{z(_)?.close(`cancel`)}})}};W(h,e=>{c()&&e(g)}),H(e,n)};W(r,e=>{t.footer?e(i):e(a,-1)}),O(n),H(e,n)};W(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),O(i),qs(i,e=>P(v,e),()=>z(v)),R(()=>{ds(i,1,`content ${t.class??``} ${a()??``}`,`svelte-10s31h1`),K(y,`id`,`${n}-body`)}),H(e,i)},$$slots:{default:!0}})),e=>P(_,e,!0),()=>z(_))}A()}var JI,YI,XI,ZI,QI,$I,eL,tL=s((()=>{Z(),J(),X(),rT(),SI(),RI(),nI(),_I(),JI=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(`.`)),YI=B(`<div role="none" class="title svelte-10s31h1"> </div> <!> <!> <!>`,1),XI=B(`<div role="none" class="header svelte-10s31h1"><!></div>`),ZI=B(`<!> <!> <!> <!>`,1),QI=B(`<div role="none" class="footer svelte-10s31h1"><!></div>`),$I=B(`<div role="none"><!> <div role="none" class="body svelte-10s31h1"><!></div> <!></div>`),eL={hash:`svelte-10s31h1`,code:`.content.svelte-10s31h1 {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-10s31h1 {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-10s31h1 {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-10s31h1 {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));}
@media (max-height: 400px) {.content.small.svelte-10s31h1 {max-height:calc(100dvh - 32px);}
}.content.medium.svelte-10s31h1 {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));}
@media (max-height: 600px) {.content.medium.svelte-10s31h1 {max-height:calc(100dvh - 32px);}
}.content.large.svelte-10s31h1 {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));}
@media (max-height: 800px) {.content.large.svelte-10s31h1 {max-height:calc(100dvh - 32px);}
}.content.x-large.svelte-10s31h1 {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));}
@media (max-height: 1000px) {.content.x-large.svelte-10s31h1 {max-height:calc(100dvh - 32px);}
}:is(.header.svelte-10s31h1, .footer.svelte-10s31h1) {display:flex;align-items:center;gap:4px;}.header.svelte-10s31h1 {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-10s31h1 .title:where(.svelte-10s31h1) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-10s31h1 {margin:var(--sui-dialog-footer-margin, 0 24px 24px);}
@media (width < 768px) {.footer.svelte-10s31h1 {margin:var(--sui-dialog-footer-margin, 0 16px 16px);}
}.body.svelte-10s31h1 {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);}
@media (width < 768px) {.body.svelte-10s31h1 {margin:var(--sui-dialog-body-margin, 16px 16px);}
}`}}));function nL(e,t){k(t,!0);let n=q(t,`open`,15,!1),r=ec(t,rL);qI(e,tc(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),A()}var rL,ice=s((()=>{Z(),J(),tL(),rL=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])}));function iL(e,t){k(t,!0);let n=q(t,`open`,15,!1),r=ec(t,aL);qI(e,tc(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),A()}var aL,ace=s((()=>{Z(),J(),tL(),aL=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])}));function oL(e,t){let n=za();k(t,!0),G(e,uL);let r=q(t,`value`,15),i=q(t,`element`,15),a=q(t,`role`,3,`textbox`),o=q(t,`keyShortcuts`,3,void 0),s=q(t,`dir`,3,void 0),c=q(t,`name`,3,void 0),l=q(t,`showInlineLabel`,3,!1),u=q(t,`inputmode`,3,`text`),d=q(t,`flex`,3,!1),f=q(t,`monospace`,3,!1),p=q(t,`debounce`,3,!1),m=q(t,`hidden`,3,!1),h=q(t,`disabled`,3,!1),g=q(t,`readonly`,3,!1),_=q(t,`required`,3,!1),v=q(t,`invalid`,3,!1),y=q(t,`ariaLabel`,3,void 0),b=ec(t,sL),x=M(()=>typeof p()==`number`?p():300),S=0;ri(()=>()=>{clearTimeout(S)});let C=e=>{r(i()?.value),t.oninput?.(e)},w=e=>{let t=e;p()?(clearTimeout(S),S=setTimeout(()=>{C(t)},z(x))):C(t)};var T=lL();let E;var ee=F(T);Cs(ee,()=>({...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-m5c6pt`,!0),qs(ee,e=>i(e),()=>i()),$o(ee,()=>sI(o()));var te=L(ee,2),ne=e=>{var t=cL();let i;lI(F(t),{children:(e,t)=>{gt();var n=Ra();R(()=>U(n,y())),H(e,n)},$$slots:{default:!0}}),O(t),R(()=>{K(t,`id`,`${n}-label`),i=ds(t,1,`label svelte-m5c6pt`,null,i,{hidden:!!r()})}),H(e,t)};W(te,e=>{y()&&l()&&e(ne)}),O(T),R(()=>{E=ds(T,1,`sui text-input ${t.class??``}`,`svelte-m5c6pt`,E,{flex:d(),monospace:f(),disabled:h(),readonly:g()}),K(T,`hidden`,m()),ee.dir=ee.dir}),H(e,T),A()}var sL,cL,lL,uL,dL=s((()=>{Z(),J(),cI(),uI(),sL=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`]),cL=B(`<span aria-hidden="true"><!></span>`),lL=B(`<div role="none"><input/> <!></div>`),uL={hash:`svelte-m5c6pt`,code:`.text-input.svelte-m5c6pt {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-m5c6pt:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-m5c6pt {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-m5c6pt:is(:where(.svelte-m5c6pt):-webkit-autofill, :where(.svelte-m5c6pt):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-m5c6pt {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-m5c6pt: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-m5c6pt:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-m5c6pt:is(:where(.svelte-m5c6pt):disabled, :where(.svelte-m5c6pt):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-m5c6pt {border-color:var(--sui-error-border-color);}input.svelte-m5c6pt ~ 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-m5c6pt ~ 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-m5c6pt ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-m5c6pt {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-m5c6pt {opacity:0;}input.svelte-m5c6pt:focus + .label:where(.svelte-m5c6pt) {opacity:0;}input.svelte-m5c6pt::placeholder,
.label.svelte-m5c6pt {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 fL(e,t){k(t,!0),G(e,hL);let n=q(t,`open`,15,!1),r=q(t,`value`,15,``),i=q(t,`textboxAttrs`,19,()=>({})),a=ec(t,pL);qI(e,tc(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=mL(),o=I(a);Ao(o,()=>t.children??D);var s=L(o,2),c=F(s),l=e=>{var n=V();Ao(I(n),()=>t.input),H(e,n)},u=e=>{oL(e,tc({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)}}))};W(c,e=>{t.input?e(l):e(u,-1)}),O(s),H(e,a)},$$slots:{default:!0}})),A()}var pL,mL,hL,oce=s((()=>{Z(),J(),dL(),tL(),pL=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]),mL=B(`<!> <div class="input-outer svelte-1isgibu"><!></div>`,1),hL={hash:`svelte-1isgibu`,code:`.input-outer.svelte-1isgibu {margin:12px 0 0;}`}}));function gL(e,t){k(t,!0);let n=q(t,`accept`,3,void 0),r=q(t,`multiple`,3,!1),i=q(t,`onSelect`,3,void 0),a=q(t,`onCancel`,3,void 0),o=N(void 0);var s={open:()=>{z(o)?.click()}},c=_L();return qs(c,e=>P(o,e),()=>z(o)),R(()=>{K(c,`accept`,n()),c.multiple=r()}),Ta(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),wa(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),H(e,c),A(s)}var _L,sce=s((()=>{Z(),J(),_L=B(`<input class="sui file-picker" type="file" hidden=""/>`),Ea([`change`])}));function vL(e,t){let n=za();G(e,SL);let r=q(t,`label`,3,``),i=ec(t,yL);var a=xL();Cs(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-15bsuzk`);var o=F(a),s=e=>{var t=bL();Jo(F(t),()=>`th`,!1,(e,t)=>{Cs(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-15bsuzk`);var i=Ra();R(()=>U(i,r())),H(t,i)}),O(t),H(e,t)};W(o,e=>{r()&&e(s)}),Ao(L(o,2),()=>t.children??D),O(a),H(e,a)}var yL,bL,xL,SL,cce=s((()=>{Z(),J(),yL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]),bL=B(`<div role="row" class="row-group-caption svelte-15bsuzk"><!></div>`),xL=B(`<div><!> <!></div>`),SL={hash:`svelte-15bsuzk`,code:`[role=rowgroup].svelte-15bsuzk {display:table-row-group;}[role=row].svelte-15bsuzk {display:table-row;}[role=columnheader].svelte-15bsuzk {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 CL(e,t){G(e,EL);let n=ec(t,wL);var r=TL();Cs(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1v9fjpw`),Ao(F(r),()=>t.children??D),O(r),H(e,r)}var wL,TL,EL,lce=s((()=>{Z(),J(),wL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),TL=B(`<div><!></div>`),EL={hash:`svelte-1v9fjpw`,code:`.grid-cell.svelte-1v9fjpw {display:table-cell;}`}}));function DL(e,t){G(e,AL);let n=q(t,`selected`,3,!1),r=ec(t,OL);var i=kL();Cs(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-jfudh8`),Ao(F(i),()=>t.children??D),O(i),H(e,i)}var OL,kL,AL,uce=s((()=>{Z(),J(),OL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]),kL=B(`<div><!></div>`),AL={hash:`svelte-jfudh8`,code:`.grid-row.svelte-jfudh8 {display:table-row;height:var(--sui-primary-row-height);}`}}));function dce(e,t){k(t,!0),G(e,NL);let n=q(t,`element`,15),r=q(t,`multiple`,3,!1),i=q(t,`clickToSelect`,3,!0),a=q(t,`ariaLabel`,3,void 0),o=ec(t,jL);var s=ML(),c=e=>{t.onChange?.(e)};Cs(s,()=>({...o,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),"aria-label":a(),onChange:c}),void 0,void 0,void 0,`svelte-167hbb1`),Ao(F(s),()=>t.children??D),O(s),qs(s,e=>n(e),()=>n()),$o(s,()=>EI({clickToSelect:i()})),H(e,s),A()}var jL,ML,NL,fce=s((()=>{Z(),J(),DI(),jL=new Set([`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`ariaLabel`,`children`,`onChange`]),ML=B(`<div><!></div>`),NL={hash:`svelte-167hbb1`,code:`.grid.svelte-167hbb1 {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-167hbb1 {border-collapse:collapse;}.grid.data.svelte-167hbb1 :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function PL(e,t){k(t,!0),G(e,LL);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`multiple`,3,!1),c=q(t,`searchTerms`,3,``),l=q(t,`ariaLabel`,3,void 0),u=ec(t,FL),d=N(!1);var f=IL(),p=e=>{let{detail:{matched:n,total:r}}=e;P(d,n!==r),t.onFilter?.(e)};Cs(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,[Es]:{filtered:z(d)}}),void 0,void 0,void 0,`svelte-1d8hf3v`);var m=F(f);Ao(F(m),()=>t.children??D),O(m),O(f),$o(f,()=>EI(()=>({searchTerms:c()}))),R(()=>m.inert=r()),H(e,f),A()}var FL,IL,LL,RL=s((()=>{Z(),J(),DI(),FL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`ariaLabel`,`children`,`onFilter`]),IL=B(`<div><div role="none" class="inner svelte-1d8hf3v"><!></div></div>`),LL={hash:`svelte-1d8hf3v`,code:`[role=listbox].svelte-1d8hf3v {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);}
@media (pointer: coarse) {[role=listbox].svelte-1d8hf3v {gap:8px 0;}
}[role=listbox].svelte-1d8hf3v [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-1d8hf3v {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-1d8hf3v {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-1d8hf3v .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-1d8hf3v .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-1d8hf3v .option button .icon {display:none;}[role=listbox].in-combobox.svelte-1d8hf3v:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-1d8hf3v [role=separator] {display:none;}.inner.svelte-1d8hf3v {display:contents;}`}}));function zL(e,t){let n=za();G(e,HL);let r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=ec(t,BL);var s=VL();Cs(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-60ar1f`);var c=F(s);lI(F(c),{children:(e,t)=>{gt();var n=Ra();R(()=>U(n,a())),H(e,n)},$$slots:{default:!0}}),O(c);var l=L(c,2);Ao(F(l),()=>t.children??D),O(l),O(s),R(()=>{K(c,`id`,`${n}-label`),l.inert=i()}),H(e,s)}var BL,VL,HL,pce=s((()=>{Z(),J(),uI(),BL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]),VL=B(`<div><div role="none" class="label svelte-60ar1f"><!></div> <div role="none" class="inner svelte-60ar1f"><!></div></div>`),HL={hash:`svelte-60ar1f`,code:`.option-group.svelte-60ar1f:not(:first-child) {margin:12px 0 0;}.label.svelte-60ar1f {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-60ar1f {display:contents;}`}}));function UL(e,t){k(t,!0),G(e,qL);let n=q(t,`selected`,15,!1),r=q(t,`hidden`,15,!1),i=q(t,`disabled`,3,!1),a=q(t,`value`,19,()=>t.label),o=q(t,`searchValue`,19,()=>t.label),s=q(t,`wrap`,3,!1),c=ec(t,WL);var l=KL();let u;bI(F(l),tc(()=>c,{role:`option`,tabindex:`-1`,get"aria-selected"(){return n()},get label(){return t.label},get value(){return a()},get hidden(){return r()},get disabled(){return i()},get"data-search-value"(){return o()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)},onToggle:e=>{r(e.detail.hidden),r()&&n(!1),t.onToggle?.(e)},startIcon:e=>{var n=V();Ao(I(n),()=>t.startIcon??D),H(e,n)},children:(e,r)=>{var i=GL(),a=I(i),o=e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.checkIcon),H(e,n)},a=e=>{tI(e,{class:`check`,name:`check`})};W(r,e=>{t.checkIcon?e(i):e(a,-1)}),H(e,n)};W(a,e=>{n()&&e(o)}),Ao(L(a,2),()=>t.children??D),H(e,i)},$$slots:{startIcon:!0,default:!0}})),O(l),R(()=>{u=ds(l,1,`sui option ${t.class??``}`,`svelte-1l45hmt`,u,{wrap:s()}),K(l,`hidden`,r())}),H(e,l),A()}var WL,GL,KL,qL,JL=s((()=>{Z(),J(),SI(),nI(),WL=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]),GL=B(`<!> <!>`,1),KL=B(`<div role="none"><!></div>`),qL={hash:`svelte-1l45hmt`,code:`.option.svelte-1l45hmt {display:contents;}.option.svelte-1l45hmt:focus-visible {outline-width:0 !important;}.option.svelte-1l45hmt .wrap button {white-space:normal;}.option.svelte-1l45hmt 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-1l45hmt button:active {background-color:var(--sui-active-background-color);}.option.svelte-1l45hmt button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-1l45hmt button * {flex:none;}.option.svelte-1l45hmt button .label {flex:auto;}.option.svelte-1l45hmt :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-1l45hmt .icon.check {margin:-2px;}`}}));function YL(e,t){k(t,!0),G(e,QL);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=ec(t,XL);var o=ZL(),s=e=>{t.onChange?.(e)};Cs(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-t819e7`),Ao(F(o),()=>t.children??D),O(o),$o(o,EI),H(e,o),A()}var XL,ZL,QL,$L=s((()=>{Z(),J(),DI(),XL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`,`onChange`]),ZL=B(`<div><!></div>`),QL={hash:`svelte-t819e7`,code:`.menu.svelte-t819e7 {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);}
@media (pointer: coarse) {.menu.svelte-t819e7 {gap:8px 0;}
}.menu.svelte-t819e7 [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`}}));function eR(e,t){k(t,!0),G(e,aR);let n=q(t,`role`,3,`menuitem`),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=q(t,`popupPosition`,3,`right-top`),s=ec(t,tR),c=N(!1),l=N(!1),u=N(void 0),d=N(void 0),f=M(()=>n()===`menuitem`&&!!t.items);lc(()=>{P(d,z(u)?.closest(`dialog`)??void 0,!0)});var p=iR(),m=F(p);{let e=e=>{var n=V();Ao(I(n),()=>t.startIcon??D),H(e,n)},o=e=>{var n=rR(),r=I(n);let i;var o=F(r),s=e=>{var t=Ra();R(()=>U(t,a())),H(e,t)},c=e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)};W(o,e=>{a()?e(s):e(c,-1)}),O(r);var l=L(r,2),u=e=>{var n=nR(),r=F(n),i=e=>{var n=V();Ao(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{{let t=M(()=>Hh()?`chevron_left`:`chevron_right`);tI(e,{get name(){return z(t)}})}};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),O(n),H(e,n)};W(l,e=>{z(f)&&e(u)}),R(()=>i=ds(r,1,`content svelte-1a8vvkn`,null,i,{label:!!a()})),H(e,n)},d=e=>{var n=V();Ao(I(n),()=>t.endIcon??D),H(e,n)},p=M(()=>z(f)?`menu`:void 0),h=M(()=>z(f)?z(c):void 0);bI(m,tc(()=>s,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return z(p)},get"aria-expanded"(){return z(h)},onmouseenter:e=>{z(f)&&window.setTimeout(()=>{P(c,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{z(f)&&window.setTimeout(()=>{z(l)||P(c,!1)},200),t.onmouseleave?.(e)},onclick:e=>{z(f)&&(e.preventDefault(),e.stopPropagation(),P(c,!z(c))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(u)},set element(e){P(u,e,!0)},startIcon:e,children:o,endIcon:d,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var h=L(m,2),g=e=>{vI(e,{get anchor(){return z(u)},get parentDialogElement(){return z(d)},get position(){return o()},get open(){return z(c)},set open(e){P(c,e,!0)},get hovered(){return z(l)},set hovered(e){P(l,e,!0)},children:(e,n)=>{YL(e,{children:(e,n)=>{var r=V();Ao(I(r),()=>t.items??D),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(h,e=>{z(f)&&z(u)&&z(d)&&e(g)}),O(p),R(()=>{ds(p,1,`sui menuitem ${t.class??``}`,`svelte-1a8vvkn`),K(p,`hidden`,r())}),H(e,p),A()}var tR,nR,rR,iR,aR,oR=s((()=>{Z(),J(),X(),dc(),SI(),nI(),yI(),$L(),tR=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),nR=B(`<span role="none" class="icon-outer svelte-1a8vvkn"><!></span>`),rR=B(`<div role="none"><!></div> <!>`,1),iR=B(`<div role="none"><!> <!></div>`),aR={hash:`svelte-1a8vvkn`,code:`.menuitem.svelte-1a8vvkn {position:relative;}.menuitem.svelte-1a8vvkn 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-1a8vvkn button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1a8vvkn button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1a8vvkn button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1a8vvkn :hover > [role=menu] {opacity:1;}.menuitem.svelte-1a8vvkn > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-1a8vvkn > [role=menu]:hover {opacity:1;}.content.svelte-1a8vvkn {flex:auto;}.icon-outer.svelte-1a8vvkn {flex:none;width:24px;height:24px;}`}}));function sR(e,t){k(t,!0);let n=q(t,`checked`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=ec(t,cR);eR(e,tc(()=>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=V();Ao(I(n),()=>t.startIcon??D),H(e,n)},children:e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)},endIcon:e=>{var t=V(),r=I(t),i=e=>{tI(e,{name:`check`})};W(r,e=>{n()&&e(i)}),H(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),A()}var cR,lR=s((()=>{Z(),J(),nI(),oR(),cR=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`])}));function uR(e,t){k(t,!0);let n=q(t,`checked`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=ec(t,dR);eR(e,tc(()=>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=V();Ao(I(n),()=>t.startIcon??D),H(e,n)},children:e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)},endIcon:e=>{var t=V(),r=I(t),i=e=>{tI(e,{name:`check`})};W(r,e=>{n()&&e(i)}),H(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),A()}var dR,mce=s((()=>{Z(),J(),nI(),oR(),dR=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`])}));function hce(e,t){G(e,mR);let n=q(t,`now`,3,0),r=q(t,`min`,3,0),i=q(t,`max`,3,100),a=q(t,`ariaLabel`,3,void 0),o=ec(t,fR);var s=pR();Cs(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-1gkteyj`);var c=F(s);let l;O(s),R(()=>l=ms(c,``,l,{width:`${n()??``}%`})),H(e,s)}var fR,pR,mR,gce=s((()=>{Z(),J(),fR=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`,`ariaLabel`]),pR=B(`<div><div role="none" class="svelte-1gkteyj"></div></div>`),mR={hash:`svelte-1gkteyj`,code:`.progressbar.svelte-1gkteyj {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-1gkteyj div:where(.svelte-1gkteyj) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`}}));function hR(e,t){k(t,!0),G(e,vR);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`orientation`,3,`horizontal`),c=q(t,`ariaLabel`,3,void 0),l=ec(t,gR);var u=_R(),d=e=>{t.onChange?.(e)};Cs(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-1ru4d75`);var f=F(u);Ao(F(f),()=>t.children??D),O(f),O(u),$o(u,EI),R(()=>f.inert=r()),H(e,u),A()}var gR,_R,vR,_ce=s((()=>{Z(),J(),DI(),gR=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`ariaLabel`,`children`,`onChange`]),_R=B(`<div><div role="none" class="inner svelte-1ru4d75"><!></div></div>`),vR={hash:`svelte-1ru4d75`,code:`.radio-group.svelte-1ru4d75 {display:inline-flex;}.radio-group.svelte-1ru4d75:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-1ru4d75 {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-1ru4d75 {gap:4px;flex-direction:column;}
@media (pointer: coarse) {.radio-group.vertical.svelte-1ru4d75 {gap:8px;}
}.radio-group.svelte-1ru4d75 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-1ru4d75 [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-1ru4d75 [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-1ru4d75 {display:contents;}`}}));function yR(e,t){let n=za();k(t,!0),G(e,CR);let r=q(t,`checked`,7,!1),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,3,void 0),l=q(t,`label`,3,void 0),u=q(t,`group`,15),d=ec(t,bR),f=N(void 0);ri(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=SR(),m=e=>{e.target.matches(`button`)||z(f)?.click()};Cs(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[Es]:{disabled:a()}}),void 0,void 0,void 0,`svelte-17w6laf`);var h=F(p);bI(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=xR(),i=F(r),a=e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)},o=e=>{var t=Ra();R(()=>U(t,l())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),O(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(g,e=>{(t.children||l())&&e(_)}),O(p),H(e,p),A()}var bR,xR,SR,CR,vce=s((()=>{Z(),J(),SI(),bR=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),xR=B(`<label class="svelte-17w6laf"><!></label>`),SR=B(`<span><!> <!></span>`),CR={hash:`svelte-17w6laf`,code:`.radio.svelte-17w6laf {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-17w6laf :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-17w6laf :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-17w6laf :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-17w6laf :active button {background-color:var(--sui-active-background-color);}.radio.svelte-17w6laf :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-17w6laf 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-17w6laf 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-17w6laf button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-17w6laf button[aria-checked=true]::before {opacity:1;}.radio.svelte-17w6laf label:where(.svelte-17w6laf) {cursor:inherit;}`}}));function wR(e,t){k(t,!0),G(e,OR);let n=q(t,`disabled`,3,!1),r=q(t,`showHandleBar`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=ec(t,TR),o=Lt(`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(()=>z(l)[s]??0),d=M(()=>o.getPaneConstraints(s)),f=M(()=>Math.max(z(d).minSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).maxSize),0))),p=M(()=>Math.min(z(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=()=>{let e=z(m)?.closest(`.resizable-pane-group`);return e?z(c)?e.clientWidth:e.clientHeight:0},b=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!z(h)||i!==z(_))return;e.preventDefault(),e.stopPropagation();let a=z(c)?t:r,l=a-z(g),u=y();if(!u)return;let d=l/u*100;z(c)&&Hh()&&(d=-d),P(g,a,!0),o.resize(s,d)},x=e=>{!z(h)||e.pointerId!==z(_)||(P(h,!1),P(g,0),P(_,0),document.removeEventListener(`pointermove`,b),document.removeEventListener(`pointerup`,x),document.removeEventListener(`pointercancel`,x),t.onResizeEnd?.())},S=e=>{n()||(e.preventDefault(),e.stopPropagation(),P(h,!0),P(g,z(c)?e.screenX:e.screenY,!0),P(_,e.pointerId,!0),t.onResizeStart?.(),document.addEventListener(`pointermove`,b),document.addEventListener(`pointerup`,x),document.addEventListener(`pointercancel`,x))},C=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(z(c)){let e=Hh();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(),z(v)||(P(v,!0),t.onResizeStart?.()),o.resize(s,l)},w=()=>{z(v)&&(P(v,!1),t.onResizeEnd?.())};var T=DR();Cs(T,e=>({...a,role:`separator`,tabindex:n()?-1:0,"aria-orientation":z(c)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":z(f),"aria-valuemax":z(p),"aria-controls":o.paneDefs[s]?.id,"aria-disabled":n()||void 0,"aria-label":i(),class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:S,onkeydown:C,onblur:w,[Es]:{horizontal:z(c),vertical:!z(c),disabled:n(),dragging:z(h)}}),[()=>Math.round(z(u))],void 0,void 0,`svelte-xhndz9`);var E=F(T),ee=e=>{var n=V();Ao(I(n),()=>t.children),H(e,n)},te=e=>{H(e,ER())};W(E,e=>{t.children?e(ee):r()&&e(te,1)}),O(T),qs(T,e=>P(m,e),()=>z(m)),H(e,T),A()}var TR,ER,DR,OR,yce=s((()=>{Z(),J(),X(),dc(),TR=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`ariaLabel`,`children`,`onResizeStart`,`onResizeEnd`]),ER=B(`<div role="none" class="handle-bar svelte-xhndz9"></div>`),DR=B(`<div><!></div>`),OR={hash:`svelte-xhndz9`,code:`.resizable-handle.svelte-xhndz9 {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-xhndz9:focus-visible, .resizable-handle.svelte-xhndz9:hover, .resizable-handle.dragging.svelte-xhndz9 {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent-light);}.resizable-handle.svelte-xhndz9:focus-visible .handle-bar:where(.svelte-xhndz9), .resizable-handle.svelte-xhndz9:hover .handle-bar:where(.svelte-xhndz9), .resizable-handle.dragging.svelte-xhndz9 .handle-bar:where(.svelte-xhndz9) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-xhndz9 {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-xhndz9 {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-xhndz9 .handle-bar:where(.svelte-xhndz9) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-xhndz9 {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-xhndz9 .handle-bar:where(.svelte-xhndz9) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-xhndz9 .handle-bar:where(.svelte-xhndz9) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}}));function kR(e,t){k(t,!0),G(e,MR);let n=q(t,`direction`,3,`horizontal`),r=ec(t,AR),i=Nr([]),a=N(void 0),o=Nr([]),s=Nr([]),c=0,l=()=>z(a)?n()===`horizontal`?z(a).clientWidth:z(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)))})};Rt(`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}),ri(()=>{i.length&&!o.length&&f()});var m=jR();Cs(m,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-1hhub0v`),Ao(F(m),()=>t.children??D),O(m),qs(m,e=>P(a,e),()=>z(a)),H(e,m),A()}var AR,jR,MR,bce=s((()=>{Z(),J(),dc(),AR=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),jR=B(`<div><!></div>`),MR={hash:`svelte-1hhub0v`,code:`.resizable-pane-group.svelte-1hhub0v {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-1hhub0v {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-1hhub0v {flex-direction:column;width:100%;height:100%;}`}}));function NR(e,t){let n=za();k(t,!0);let r=q(t,`defaultSize`,3,void 0),i=q(t,`minSize`,3,0),a=q(t,`maxSize`,3,100),o=ec(t,PR),s=Lt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=M(()=>s.direction),u=M(()=>s.sizes[c]),d=M(()=>z(u)===void 0?typeof r()==`number`?`${r()}%`:r()??`0%`:`${z(u)}%`);ri(()=>{z(u)!==void 0&&Gi(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=FR();Cs(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[Ds]:{"flex-basis":z(d),"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":z(l)===`horizontal`?`auto`:void 0,"overflow-y":z(l)===`vertical`?`auto`:void 0}})),Ao(F(f),()=>t.children??D),O(f),H(e,f),A()}var PR,FR,xce=s((()=>{Z(),J(),dc(),PR=new Set([`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),FR=B(`<div><!></div>`)}));function IR(e,t){k(t,!0),G(e,zR);let n=q(t,`itemChunkSize`,3,25),r=N(Nr(n())),i=N(void 0),a=M(()=>t.items.length>z(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(z(a)?P(r,z(r)+n()):o.disconnect())});ri(()=>{z(i)&&o.observe(z(i))});var s=RR(),c=I(s);vo(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=V();Ao(I(i),()=>t.renderItem,()=>z(n),()=>z(r)),H(e,i)});var l=L(c,2),u=e=>{var t=LR();qs(t,e=>P(i,e),()=>z(i)),H(e,t)};W(l,e=>{z(a)&&e(u)}),H(e,s),A()}var LR,RR,zR,Sce=s((()=>{Z(),J(),LR=B(`<div role="none" class="spinner svelte-1ruyj64"></div>`),RR=B(`<!> <!>`,1),zR={hash:`svelte-1ruyj64`,code:`.spinner.svelte-1ruyj64 {height:1px;}`}}));function BR(e,t){let n=za();k(t,!0),G(e,UR);let r=q(t,`value`,15),i=q(t,`flex`,3,!1),a=q(t,`hidden`,3,!1),o=q(t,`disabled`,3,!1),s=q(t,`readonly`,3,!1),c=q(t,`required`,3,!1),l=q(t,`invalid`,3,!1),u=ec(t,VR),d=N(void 0);var f={focus:()=>{z(d)?.focus()}},p=HR();let m;var h=F(p),g=F(h),_=e=>{var n=V();Ao(I(n),()=>t.searchIcon),H(e,n)},v=e=>{tI(e,{name:`search`})};W(g,e=>{t.searchIcon?e(_):e(v,-1)}),O(h);var y=L(h,2);oL(y,tc({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return z(d)},set element(e){P(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=L(y,2),x=e=>{{let i=e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.closeIcon),H(e,n)},a=e=>{tI(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},a=M(()=>Y(`_sui.clear`));bI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{r(``),z(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return W(b,e=>{r()&&e(x)}),O(p),R(()=>{K(p,`role`,a()?void 0:`none`),m=ds(p,1,`sui search-bar ${t.class??``}`,`svelte-ki0b73`,m,{flex:i(),disabled:o(),readonly:s()}),K(p,`hidden`,a()),K(p,`aria-hidden`,a())}),H(e,p),A(f)}var VR,HR,UR,WR=s((()=>{Z(),J(),X(),SI(),nI(),dL(),VR=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),HR=B(`<div><span role="none" class="svelte-ki0b73"><!></span> <!> <!></div>`),UR={hash:`svelte-ki0b73`,code:`.search-bar.svelte-ki0b73 {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-ki0b73:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-ki0b73 > span:where(.svelte-ki0b73) {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-ki0b73 .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-ki0b73 > 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-ki0b73 .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-ki0b73 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-ki0b73 input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}}));function Cce(e,t){let n=za();k(t,!0),G(e,XR);let r=`[role="option"][aria-selected="true"]`,i=q(t,`value`,15),a=q(t,`hidden`,3,!1),o=q(t,`disabled`,3,!1),s=q(t,`readonly`,3,!1),c=q(t,`required`,3,!1),l=q(t,`invalid`,3,!1),u=q(t,`editable`,3,!0),d=q(t,`position`,3,`bottom-left`),f=q(t,`filterThreshold`,3,5),p=q(t,`ariaLabel`,3,void 0),m=ec(t,GR),h=N(!1),g=N(void 0),_=N(void 0),v=N(void 0),y=N(``),b=N(!1),x=N(``),S=N(!0),C=M(()=>z(g)??z(_)),w=()=>{let e=z(v)?.querySelector(`[role="option"][data-value="${i()}"]`);e&&(P(y,e.dataset.label||e.dataset.value||e.textContent||``,!0),e.getAttribute(`aria-selected`)!==`true`&&(z(v)?.querySelector(r)?.setAttribute(`aria-selected`,`false`),e.setAttribute(`aria-selected`,`true`)))},T=e=>{let n=wI(e);i(n.value),w(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))};ri(()=>{z(v)&&globalThis.requestAnimationFrame(()=>{let e=z(v)?.querySelector(r);e&&T(e)})}),ri(()=>{i(),w()});var E=YR(),ee=I(E);Cs(ee,()=>({...m,role:`none`,class:`sui combobox ${t.class??``}`,hidden:a(),[Es]:{editable:u()}}),void 0,void 0,void 0,`svelte-ua4fsq`);var te=F(ee),ne=e=>{var t=KR();Cs(t,()=>({...m,role:`combobox`,id:n,tabindex:o()?-1:0,"aria-controls":`${n}-popup`,"aria-expanded":z(h),"aria-hidden":a(),"aria-disabled":o(),"aria-readonly":s(),"aria-required":c(),"aria-invalid":l(),"aria-haspopup":`listbox`,"aria-label":p(),[Es]:{selected:i()!==void 0}}),void 0,void 0,void 0,`svelte-ua4fsq`);var r=F(t);lI(F(r),{children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>i()===void 0?Y(`_sui.combobox.select_an_option`):z(y)]),H(e,n)},$$slots:{default:!0}}),O(r),O(t),qs(t,e=>P(g,e),()=>z(g)),H(e,t)},re=e=>{{let t=M(()=>i()===void 0?``:String(i()));oL(e,tc(()=>m,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(h)},"aria-haspopup":`listbox`,get"aria-label"(){return p()},get element(){return z(_)},set element(e){P(_,e,!0)}}))}};W(te,e=>{u()?e(re,-1):e(ne)});var ie=L(te,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{tI(e,{name:`expand_more`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},r=M(()=>!u()||s()||o()?-1:0),i=M(()=>z(h)?Y(`_sui.collapse`):Y(`_sui.expand`));bI(ie,{variant:`ghost`,iconic:!0,get hidden(){return a()},get disabled(){return o()},get tabindex(){return z(r)},get"aria-label"(){return z(i)},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(h)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!o()&&!s()&&P(h,!z(h))},startIcon:e,$$slots:{startIcon:!0}})}O(ee),vI(L(ee,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(C)},get position(){return d()},touchOptimized:!0,onOpen:()=>{P(b,f()!==-1&&(z(v)?.querySelectorAll(`[role="option"]`)?.length??0)>f(),!0),P(x,``)},get content(){return z(v)},set content(e){P(v,e,!0)},get open(){return z(h)},set open(e){P(h,e,!0)},children:(e,r)=>{var i=JR(),a=F(i),o=e=>{{let t=M(()=>Y(`_sui.combobox.filter_options`));BR(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(v)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(x)},set value(e){P(x,e,!0)}})}};W(a,e=>{z(b)&&e(o)});var s=L(a,2);PL(s,{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(x)},onclick:e=>{e.target.matches(`[role="option"]`)&&T(e.target)},onFilter:e=>{P(S,!!e.detail.matched)},children:(e,n)=>{var r=V();Ao(I(r),()=>t.children??D),H(e,r)},$$slots:{default:!0}});var c=L(s,2),l=e=>{var t=qR(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`_sui.combobox.no_matching_options`)]),H(e,t)};W(c,e=>{z(S)||e(l)}),O(i),H(e,i)},$$slots:{default:!0}}),H(e,E),A()}var GR,KR,qR,JR,YR,XR,ZR=s((()=>{Z(),J(),X(),Fse(),SI(),nI(),RL(),WR(),dL(),uI(),yI(),GR=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`ariaLabel`,`children`,`chevronIcon`,`onChange`]),KR=B(`<div><div role="none" class="label svelte-ua4fsq"><!></div></div>`),qR=B(`<div role="alert" class="no-options svelte-ua4fsq" aria-live="assertive"> </div>`),JR=B(`<div role="none" class="combobox-inner svelte-ua4fsq"><!> <!> <!></div>`),YR=B(`<div><!> <!></div> <!>`,1),XR={hash:`svelte-ua4fsq`,code:`.combobox.svelte-ua4fsq {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-ua4fsq div[role=combobox]:where(.svelte-ua4fsq) {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-ua4fsq div[role=combobox]:where(.svelte-ua4fsq):not(.selected) {font-style:italic;}.combobox.svelte-ua4fsq div[role=combobox]:where(.svelte-ua4fsq):is(:where(.svelte-ua4fsq):hover, :where(.svelte-ua4fsq):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-ua4fsq div[role=combobox][aria-invalid=true]:where(.svelte-ua4fsq) {border-color:var(--sui-error-border-color);}.combobox.svelte-ua4fsq div[role=combobox]:where(.svelte-ua4fsq) .label:where(.svelte-ua4fsq) {width:100%;}.combobox.svelte-ua4fsq .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-ua4fsq > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-ua4fsq > 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-ua4fsq > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-ua4fsq :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-ua4fsq .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-ua4fsq input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-ua4fsq + [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);
  /* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-ua4fsq + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-ua4fsq {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-ua4fsq .sui.search-bar {flex:none;}.combobox-inner.svelte-ua4fsq .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-ua4fsq .no-options:where(.svelte-ua4fsq) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}}));function wce(e){let t=e-1;return t*t*t+1}var Tce=s((()=>{}));function Ece(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=wce}=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=Dce(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 Dce(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 Oce=s((()=>{Tce()}));function QR(e,t){k(t,!0);let n=q(t,`value`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`readonly`,3,!1),o=q(t,`required`,3,!1),s=q(t,`invalid`,3,!1),c=ec(t,$R);Cce(e,tc(()=>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=V();Ao(I(r),()=>t.children??D),H(e,r)},$$slots:{default:!0}})),A()}var $R,ez=s((()=>{Z(),J(),ZR(),$R=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`])}));function kce(e,t){k(t,!0),G(e,iz);let n=q(t,`values`,31,()=>Nr([])),r=q(t,`max`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=ec(t,tz),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>Hh()?`ArrowRight`:`ArrowLeft`),f=M(()=>Hh()?`ArrowLeft`:`ArrowRight`),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},v=async(e,t)=>{_(e,t),await Hi(),(z(p)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var y=rz();let b;var x=F(y);vo(x,30,n,e=>e,(e,r,i)=>{let s=M(()=>z(u).get(r)),c=M(()=>z(s)?.label||z(s)?.value||r);var l=nz();let p;var m=F(l),_=F(m,!0);O(m);var y=L(m,2),b=e=>{{let i=e=>{tI(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>Y(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));bI(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};W(y,e=>{z(s)&&e(b)}),O(l),R(()=>{K(l,`draggable`,!a()&&!o()),p=ds(l,1,`svelte-1lh48yr`,null,p,{"drag-source":z(h)===z(i),"drop-before":z(g)===z(i)&&z(h)!==z(i)&&z(h)!==z(i)-1,"drop-after":z(g)===n().length&&z(i)===n().length-1&&z(h)!==n().length-1}),K(m,`tabindex`,a()||o()?void 0:0),U(_,z(c))}),wa(`dragstart`,l,e=>{P(h,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),wa(`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(g,n===Hh()?z(i)+1:z(i),!0)}),wa(`drop`,l,async e=>{e.preventDefault();let t=z(h),n=z(g);P(h,void 0),P(g,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await v(t,n>t?n-1:n)}),wa(`dragend`,l,()=>{P(h,void 0),P(g,void 0)}),Ta(`keydown`,m,async e=>{let{key:t}=e,r=t===z(d)&&z(i)>0?z(i)-1:t===z(f)&&z(i)<n().length-1?z(i)+1:t===`Home`&&z(i)>0?0:t===`End`&&z(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await v(z(i),r))}),Uo(l,()=>Ece,()=>({duration:200})),H(e,l)}),O(x);var S=L(x,2),C=e=>{{let r=M(()=>a()||o());QR(e,tc(()=>l,{get disabled(){return z(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{z(m)&&(n([...n(),z(m)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:z(m)}})),P(m,void 0))},get value(){return z(m)},set value(e){P(m,e,!0)},children:(e,r)=>{var i=V();vo(I(i),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;var o=V(),s=I(o),c=e=>{UL(e,{get label(){return r()},get value(){return i()},get searchValue(){return a()}})},l=M(()=>!n().includes(i()));W(s,e=>{z(l)&&e(c)}),H(e,o)}),H(e,i)},$$slots:{default:!0}}))}};W(S,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(C)}),O(y),qs(y,e=>P(p,e),()=>z(p)),R(e=>{b=ds(y,1,`sui select-tags ${t.class??``}`,`svelte-1lh48yr`,b,{disabled:a()||o()}),K(y,`hidden`,i()),K(x,`aria-label`,e)},[()=>Y(`_sui.select_tags.selected_options`)]),H(e,y),A()}var tz,nz,rz,iz,Ace=s((()=>{Z(),J(),X(),dc(),Oce(),SI(),nI(),JL(),ez(),tz=new Set([`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),nz=B(`<span role="none"><span class="label svelte-1lh48yr" role="option" aria-selected="true"> </span> <!></span>`),rz=B(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-1lh48yr"></span> <!></div>`),iz={hash:`svelte-1lh48yr`,code:`.select-tags.svelte-1lh48yr {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1lh48yr {pointer-events:none;}.select-tags.disabled.svelte-1lh48yr > :where(.svelte-1lh48yr) {opacity:0.5;}.select-tags.svelte-1lh48yr span[role=listbox]:where(.svelte-1lh48yr) {display:contents;}.select-tags.svelte-1lh48yr span[draggable]:where(.svelte-1lh48yr) {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-1lh48yr span[draggable]:where(.svelte-1lh48yr):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.select-tags.svelte-1lh48yr span[draggable].drag-source:where(.svelte-1lh48yr) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1lh48yr span[draggable].drop-before:where(.svelte-1lh48yr)::before, .select-tags.svelte-1lh48yr span[draggable].drop-after:where(.svelte-1lh48yr)::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-1lh48yr span[draggable].drop-before:where(.svelte-1lh48yr)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1lh48yr span[draggable].drop-after:where(.svelte-1lh48yr)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1lh48yr span[draggable]:where(.svelte-1lh48yr) .label:where(.svelte-1lh48yr) {outline:none;}.select-tags.svelte-1lh48yr span[draggable]:where(.svelte-1lh48yr) button {outline-offset:-2px;}.select-tags.svelte-1lh48yr span[draggable]:where(.svelte-1lh48yr) .icon {font-size:var(--sui-font-size-large);}`},Ea([`keydown`])}));function jce(e,t){k(t,!0),G(e,lz);let n=q(t,`value`,15,0),r=q(t,`min`,3,0),i=q(t,`max`,3,100),a=q(t,`sliderLabel`,3,``),o=q(t,`values`,15,void 0),s=q(t,`sliderLabels`,3,void 0),c=q(t,`step`,3,1),l=q(t,`optionLabels`,19,()=>[]),u=q(t,`hidden`,3,!1),d=q(t,`disabled`,3,!1),f=q(t,`readonly`,3,!1),p=q(t,`invalid`,3,!1),m=ec(t,az),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Nr([])),y=N(Nr([])),b=N(0),x=N(0),S=Nr([0,0]),C=N(!1),w=N(0),T=N(0),E=e=>{let t=Hh()?z(_)-e:e;if(t<0||t>z(_))return;let r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a=Math.abs(z(v)[r]-t)<Math.abs(z(v)[i]-t)?r:i;S[z(T)]===z(v)[a]||z(h)&&(z(T)===0&&S[1]<=z(v)[a]||z(T)===1&&S[0]>=z(v)[a])||(z(h)?(o(o()[z(T)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},ee=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=Hh(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=z(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},te=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.stopPropagation();let r=t-z(x),i=z(b)+r;E(i)},ne=e=>{let{pointerId:t}=e;if(!(d()||f()||!z(C)||t!==z(w))){if(e.stopPropagation(),e.target.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect(),n=e.clientX-t.left;E(n)}P(C,!1),P(b,0),P(x,0),P(w,0),P(T,0),document.removeEventListener(`pointermove`,te),document.removeEventListener(`pointerup`,ne),document.removeEventListener(`pointercancel`,ne)}},re=(e,t=0)=>{let{clientX:n,screenX:r,pointerId:i}=e;if(d()||f())return;e.stopPropagation(),P(C,!0);let a=z(g).getBoundingClientRect();P(b,n-a.left),P(x,r,!0),P(w,i,!0),P(T,t,!0),document.addEventListener(`pointermove`,te),document.addEventListener(`pointerup`,ne),document.addEventListener(`pointercancel`,ne)},ie=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},ae=()=>{if(!z(g))return;P(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),ie()};lc(()=>{let e=new ResizeObserver(()=>ae()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,ae),ae(),()=>{e.disconnect(),t.removeEventListener(`change`,ae)}}),ri(()=>{n(),o(),ie()});var oe=cz();wa(`click`,qr.body,()=>{P(C,!1)}),Cs(oe,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[Es]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-qze92v`);var se=F(oe),ce=L(F(se),2);let le;var ue=L(ce,2);let de;var D=L(ue,2),fe=e=>{var t=oz();let n;R(()=>{K(t,`tabindex`,d()?-1:0),K(t,`aria-label`,s()?.[1]),K(t,`aria-hidden`,u()),K(t,`aria-disabled`,d()),K(t,`aria-readonly`,f()),K(t,`aria-invalid`,p()),K(t,`aria-valuemin`,r()),K(t,`aria-valuemax`,i()),K(t,`aria-valuenow`,o()?.[1]),n=ms(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),Ta(`pointerdown`,t,e=>re(e,1)),Ta(`keydown`,t,e=>ee(e,1)),H(e,t)};W(D,e=>{z(h)&&e(fe)});var pe=L(D,2),me=e=>{var t=V();vo(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=sz();let i;var a=F(r,!0);O(r),R(()=>{i=ms(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),U(a,z(t))}),H(e,r)}),H(e,t)};W(pe,e=>{l().length&&e(me)}),O(se),qs(se,e=>P(g,e),()=>z(g)),O(oe),R(()=>{le=ms(ce,``,le,{"inset-inline-start":`${(z(h)?S[0]:0)??``}px`,width:`${(z(h)?S[1]-S[0]:S[0])??``}px`}),K(ue,`tabindex`,d()?-1:0),K(ue,`aria-label`,z(h)?s()?.[0]:a()),K(ue,`aria-hidden`,u()),K(ue,`aria-disabled`,d()),K(ue,`aria-readonly`,f()),K(ue,`aria-invalid`,p()),K(ue,`aria-valuemin`,r()),K(ue,`aria-valuemax`,i()),K(ue,`aria-valuenow`,z(h)?o()?.[0]:n()),de=ms(ue,``,de,{"inset-inline-start":`${S[0]??``}px`})}),Ta(`pointerdown`,se,e=>re(e)),Ta(`pointerdown`,ue,e=>re(e,0)),Ta(`keydown`,ue,e=>ee(e,0)),H(e,oe),A()}var az,oz,sz,cz,lz,Mce=s((()=>{Z(),J(),X(),dc(),az=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),oz=B(`<div role="slider" class="svelte-qze92v"></div>`),sz=B(`<span role="none" class="label svelte-qze92v"> </span>`),cz=B(`<div><div role="none" class="base svelte-qze92v"><div role="none" class="base-bar svelte-qze92v"></div> <div class="slider-bar svelte-qze92v"></div> <div role="slider" class="svelte-qze92v"></div> <!> <!></div></div>`),lz={hash:`svelte-qze92v`,code:`.slider.svelte-qze92v {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-qze92v:hover .base-bar:where(.svelte-qze92v) {background-color:var(--sui-hover-background-color);}.slider.svelte-qze92v:active .base-bar:where(.svelte-qze92v) {background-color:var(--sui-active-background-color);}.base.svelte-qze92v {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-qze92v {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-qze92v {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-qze92v .slider-bar:where(.svelte-qze92v) {background-color:var(--sui-error-border-color);}[role=slider].svelte-qze92v {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-qze92v:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-qze92v:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-qze92v [role=slider]:where(.svelte-qze92v) {border-color:var(--sui-error-border-color);}.label.svelte-qze92v {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-qze92v:dir(ltr) {transform:translateX(-50%);}.label.svelte-qze92v:dir(rtl) {transform:translateX(50%);}`},Ea([`pointerdown`,`keydown`])}));function uz(e,t){k(t,!0),G(e,pz);let n=q(t,`checked`,15),r=q(t,`label`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=q(t,`ariaLabel`,3,void 0),u=ec(t,dz);var d=fz(),f=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};Cs(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-403h9x`);var p=L(F(d),2),m=e=>{var t=Ra();R(()=>U(t,r())),H(e,t)},h=e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)};W(p,e=>{r()?e(m):e(h,-1)}),O(d),H(e,d),A()}var dz,fz,pz,Nce=s((()=>{Z(),J(),dz=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`onChange`]),fz=B(`<button><span role="none" class="svelte-403h9x"></span> <!></button>`),pz={hash:`svelte-403h9x`,code:`button.svelte-403h9x {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-403h9x span:where(.svelte-403h9x) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-403h9x span:where(.svelte-403h9x) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-403h9x span:where(.svelte-403h9x) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-403h9x span:where(.svelte-403h9x) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-403h9x span:where(.svelte-403h9x) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-403h9x:focus-visible {outline:0;}button.svelte-403h9x:focus-visible span:where(.svelte-403h9x) {outline-color:var(--sui-focus-ring-color);}button[aria-checked=true].svelte-403h9x span:where(.svelte-403h9x) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-403h9x span:where(.svelte-403h9x)::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-403h9x span:where(.svelte-403h9x):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-403h9x span:where(.svelte-403h9x):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-403h9x {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-403h9x::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 mz(e,t){G(e,_z);let n=ec(t,hz);var r=gz();Cs(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-ga8hgi`),Ao(F(r),()=>t.children??D),O(r),H(e,r)}var hz,gz,_z,Pce=s((()=>{Z(),J(),hz=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),gz=B(`<div><!></div>`),_z={hash:`svelte-ga8hgi`,code:`.table-cell.svelte-ga8hgi {display:table-cell;}`}}));function Fce(e,t){G(e,bz);let n=ec(t,vz);var r=yz();Cs(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-16tlz1m`),Ao(F(r),()=>t.children??D),O(r),H(e,r)}var vz,yz,bz,Ice=s((()=>{Z(),J(),vz=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),yz=B(`<div><!></div>`),bz={hash:`svelte-16tlz1m`,code:`.table-row.svelte-16tlz1m {display:table-row;height:var(--sui-primary-row-height);}`}}));function Lce(e,t){G(e,Cz);let n=q(t,`ariaLabel`,3,void 0),r=ec(t,xz);var i=Sz();Cs(i,()=>({...r,role:`table`,class:`sui table ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1iqtjzn`),Ao(F(i),()=>t.children??D),O(i),H(e,i)}var xz,Sz,Cz,Rce=s((()=>{Z(),J(),xz=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),Sz=B(`<div><!></div>`),Cz={hash:`svelte-1iqtjzn`,code:`.table.svelte-1iqtjzn {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-1iqtjzn {border-collapse:collapse;}.table.data.svelte-1iqtjzn :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function zce(e,t){k(t,!0),G(e,Ez);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`name`,3,void 0),o=q(t,`ariaLabel`,3,void 0),s=ec(t,wz),c=N(void 0),l=N(void 0),u=()=>{globalThis.requestAnimationFrame(()=>{let e=z(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)})};lc(()=>{let e=new ResizeObserver(()=>{u()});return e.observe(z(c)),()=>{e.disconnect()}});var d=Tz(),f=()=>{u()},p=e=>{u(),t.onChange?.(e)};Cs(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-icmnin`);var m=F(d);Ao(F(m),()=>t.children??D),O(m);var h=L(m,2);O(d),qs(d,e=>P(c,e),()=>z(c)),$o(d,EI),R(()=>{m.inert=r(),ms(h,z(l))}),H(e,d),A()}var wz,Tz,Ez,Bce=s((()=>{Z(),J(),dc(),DI(),wz=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`ariaLabel`,`children`,`onChange`]),Tz=B(`<div><div role="none" class="inner svelte-icmnin"><!></div> <div role="none" class="indicator svelte-icmnin"></div></div>`),Ez={hash:`svelte-icmnin`,code:`.tab-list.svelte-icmnin {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-icmnin {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-icmnin 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-icmnin .indicator:where(.svelte-icmnin) {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-icmnin {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-icmnin 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-icmnin .indicator:where(.svelte-icmnin) {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-icmnin 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-icmnin {display:contents;}.indicator.svelte-icmnin {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 Vce(e,t){G(e,kz);let n=ec(t,Dz);var r=Oz();Cs(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-1kwdwol`),Ao(F(r),()=>t.children??D),O(r),H(e,r)}var Dz,Oz,kz,Hce=s((()=>{Z(),J(),Dz=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Oz=B(`<div><!></div>`),kz={hash:`svelte-1kwdwol`,code:`.tab-panel.svelte-1kwdwol {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1kwdwol, .tab-panel.svelte-1kwdwol:not([aria-hidden]) {display:none;}`}}));function Uce(e,t){let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`selected`,3,!1),a=ec(t,Az);bI(e,tc(()=>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=V();Ao(I(n),()=>t.startIcon??D),H(e,n)},children:e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)},endIcon:e=>{var n=V();Ao(I(n),()=>t.endIcon??D),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var Az,Wce=s((()=>{Z(),J(),SI(),Az=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`])}));function jz(e,t){k(t,!0),G(e,Pz);let n=q(t,`show`,15,!1),r=q(t,`id`,3,void 0),i=q(t,`duration`,3,5e3),a=q(t,`position`,7,`auto`),o=ec(t,Mz),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);lc(()=>(P(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),z(c)?z(s)?.remove():(P(c,z(s),!0),z(c)&&(z(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(z(c)),z(c).showPopover&&(z(c).popover=`manual`,z(c).showPopover()))),()=>{z(l)?.remove()})),lc(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-${document.dir===`rtl`?`left`:`right`}`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),ri(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),ri(()=>{r(),n(),i(),Gi(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=Nz(),f=I(d);qs(f,e=>P(s,e),()=>z(s));var p=L(f,2);Cs(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-g8vpof`),Ao(F(p),()=>t.children??D),O(p),qs(p,e=>P(l,e),()=>z(l)),H(e,d),A()}var Mz,Nz,Pz,Fz=s((()=>{Z(),J(),dc(),Mz=new Set([`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),Nz=B(`<div role="none" class="sui toast-base svelte-g8vpof"></div> <div><!></div>`,1),Pz={hash:`svelte-g8vpof`,code:`.toast-base.svelte-g8vpof {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-g8vpof {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-g8vpof {display:block;opacity:0;}.toast.top-left.svelte-g8vpof {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-g8vpof {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-g8vpof:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-g8vpof:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-g8vpof {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-g8vpof {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-g8vpof {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-g8vpof:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-g8vpof:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-g8vpof {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})),Iz=c(((e,t)=>{
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/
var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){n||={};var r,a;switch(i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return`none`},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,`gi`),``),e.classList.add(`language-`+n)},currentScript:function(){if(typeof document>`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`&quot;`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var ee=E.index,te=E.index+E[0].length,ne=C;for(ne+=S.value.length;ee>=ne;)S=S.next,ne+=S.value.length;if(ne-=S.value.length,C=ne,S.value instanceof a)continue;for(var re=S;re!==t.tail&&(ne<te||typeof re.value==`string`);re=re.next)T++,ne+=re.value.length;T--,w=e.slice(C,ne),E.index-=C}else if(E=o(x,0,w,_),!E)continue;var ee=E.index,ie=E[0],ae=w.slice(0,ee),oe=w.slice(ee+ie.length),se=C+w.length;d&&se>d.reach&&(d.reach=se);var ce=S.prev;ae&&(ce=l(t,ce,ae),C+=ae.length),u(t,ce,T);var le=new a(f,g?i.tokenize(ie,g):ie,y,ie);if(S=l(t,ce,le),oe&&l(t,S,oe),T>1){var ue={cause:f+`,`+m,reach:se};s(e,t,n,S.prev,C,ue),d&&ue.reach>d.reach&&(d.reach=ue.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function d(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1)),i;var f=i.util.currentScript();f&&(i.filename=f.src,f.hasAttribute(`data-manual`)&&(i.manual=!0));function p(){i.manual||i.highlightAll()}if(!i.manual){var m=document.readyState;m===`loading`||m===`interactive`&&f&&f.defer?document.addEventListener(`DOMContentLoaded`,p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});t!==void 0&&t.exports&&(t.exports=n),typeof global<`u`&&(global.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(`
`),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}));function Lz(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 Rz(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.`)}function zz(){return fW()._blockCursorElement}function Gce(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}function Bz(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}function Vz(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&&Lz(225),n.reverse()}function Hz(e,t=1e3){return e instanceof hK?e.clone():e.size<t?new Map(e):new hK().init(new Map(e),void 0,e.size)}function Uz(e,t,n,r,i,a){if(Q(e)){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&((Q(o)||AW(o)&&o.__slots!==null)&&Uz(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}for(let o of AW(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&jW(e)&&e.__slotHost===t&&((Q(e)||AW(e)&&e.__slots!==null)&&Uz(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}function Kce(e){_K=e.timeStamp}function Wz(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&cU(e,n)!==void 0}function qce(e,t,n){let r=JU(RU(n)),i=r&&tW(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&xU(t,s,a,o,!1)}function Jce(e,t,n){if(SV(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return ZH(t)&&n.isAttached()}function Yce(e,t,n){for(let r=e;r&&!SW(r);r=MU(r)){let e=cU(r,t);if(e!==void 0){let t=aU(e,n);if(t)return OH(t)||!oW(r)?void 0:[r,t]}}}function Gz(e,t,n){gK=!0;let r=performance.now()-_K>100;try{EH(e,()=>{let i=KV()||function(e){return e.read(`latest`,()=>{let e=KV();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=Yce(f,e,o);if(!p)continue;let[m,h]=p;if(d===`characterData`)r&&mV(h)&&ZH(f)&&Jce(i,f,h)&&qce(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=oU(r),a=r.parentNode;if(!(a==null||r===s||i!==null||Wz(r,a,e)||e._slotsUsed&&oW(r)&&r.hasAttribute(`data-lexical-slot`)||SW(r))){if(PG){let e=(oW(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];(Wz(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`||Wz(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(c&&pU(i),PG&&kU(e)&&i.insertRawText(l))})}finally{gK=!1}}function Kz(e){let t=e._observer;t!==null&&Gz(e,t.takeRecords(),t)}function qz(e){(function(e){_K===0&&RU(e).addEventListener(`textInput`,Kce,!0)})(e),e._observer=new MutationObserver((t,n)=>{Gz(e,t,n)})}function Jz(e,t){return new yK(e,t)}function Yz(e,t,n=vK){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function Xz(e,t,n){let r;if(lH(),typeof n==`function`){let i=e.getLatest(),a=Yz(i,t);if(r=n(a),t.isEqual(a,r))return i}else r=n;let i=e.getWritable();return Zz(i).updateFromKnown(t,r),i}function Xce(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of EW(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}}function Zz(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new xK(t,Qz(t));return t.__state=n,n}function Qz(e){return e.__state?e.__state.sharedNodeState:HH(fW(),e.getType()).sharedNodeState}function $z(e){if(e)for(let t in e)return e}function Zce(e){return e}function eB(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 tB(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 nB(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function rB(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&&eB(n,e,t)||t&&eB(n,t,e)||e&&tB(n,e,t)||t&&tB(n,t,e))}(c,l))}function iB(e,t){let n=e.mergeWithSibling(t),r=fH()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function aB(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&mV(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(rB(t,r)){r=iB(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&mV(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(rB(r,n)){r=iB(r,n);break}break}n.remove()}}else r.remove()}function oB(e){return sB(e.anchor),sB(e.focus),e}function sB(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),mV(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!Q(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}function cB(e,t){return FK.read(()=>{let n=0,r=e;for(let e=0;e<t&&r!==null;e++){let i=PK.get(r);if(i===void 0&&Lz(345,r),Q(i)){let a=IK.get(r);if(a!==void 0&&Q(a)&&a.__parent!==i.__parent)n+=i.getTextContentSize();else{let e=LK.get(r),t=e&&e.__lexicalTextContent;typeof t!=`string`&&Lz(346,i.getType()),n+=t.length}e<t-1&&!i.isInline()&&(n+=2)}else{let e=i[SK];e===void 0&&Lz(347,i.getType(),r),n+=e}r=i.__next}return n},{editor:TK})}function lB(e){Q(e)||e[SK]===void 0&&(e[SK]=mV(e)?e.__text.length:e.getTextContentSize())}function uB(){return{firstTextKey:AK,format:OK,style:kK}}function dB(e){e.firstTextKey!==null&&(OK=e.format,kK=e.style,AK=e.firstTextKey)}function fB(e){if(AK!==null)return;let t=e.__lexicalFirstTextKey;if(t===void 0&&Lz(348),t===null)return;let n=IK.get(t);mV(n)&&(OK=n.getFormat(),kK=n.getStyle(),AK=t)}function pB(e,t){let n=PK.get(e),r=IK.has(e);if(t!==null){let n=PB(e);n.parentNode===t&&t.removeChild(n)}if(!r){if(TK._keyToDOMMap.delete(e),Q(n)){let e=OW(n,PK);mB(e,0,e.length-1,null)}if(n!==void 0){for(let e of SB(n).values()){let t=wB(e);pB(e,null),t!==null&&t.remove()}DU(zK,EK,jK,n,`destroyed`)}}}function mB(e,t,n,r){for(let i=t;i<=n;++i){let t=e[i];t!==void 0&&pB(t,r)}}function hB(e,t){e.setProperty(`text-align`,t)}function gB(e,t){let n=wK.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, ${UK}))`)}function _B(e,t){let n=e.style;t===0?hB(n,``):t===1?hB(n,`left`):t===2?hB(n,`center`):t===3?hB(n,`right`):t===4?hB(n,`justify`):t===5?hB(n,`start`):t===6&&hB(n,`end`)}function vB(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(kH(e))return null;let n=e.getParent();return n===null||HU(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function yB(e){let t=$U().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function bB(e,t,n){t||e.contentEditable===`false`?Ule(n,TK):n.removeAttribute(`contenteditable`)}function xB(e,t,n){let r=DK,i=uB();DK=``;let a=``,o=OH(e);for(let[r,i]of n){let n=yB(r);bB(t,o,n),t.appendChild(n),DK=``;let s=uB();EB(i,mW(e,n,TK)),dB(s),CB(e,r,t,n),a+=DK}return dB(i),DK=r,a}function SB(e){return AW(e)&&e.__slots!==null?e.__slots:LJ}function CB(e,t,n,r){let i=BK.$getSlotTargetElement(e,t,n,TK);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function wB(e){let t=LK.get(e);return t===void 0?null:t.parentElement}function TB(e,t,n){let r=SB(e),i=SB(t);for(let[e,t]of r)if(!i.has(e)){let e=wB(t);pB(t,null),e!==null&&e.remove()}let a=DK,o=uB(),s=``,c=null,l=OH(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:wB(i);DK=``;let u=uB();if(o===null){o=yB(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),EB(a,mW(t,o,TK))}else i===a?AB(a,o):(i!==void 0&&pB(i,o),EB(a,mW(t,o,TK)));if(dB(u),bB(n,l,o),CB(t,e,n,o),s+=DK,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return dB(o),DK=a,s}function EB(e,t){let n=IK.get(e);if(n===void 0&&Lz(60),t!==null){let r=PK.get(e);if(r!==void 0){let i=LK.get(e);if(i!==void 0){let a=jW(r)?r.__slotHost:null,o=jW(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),AB(e,t.element)}}}let r=BK.$createDOM(n,TK);if(function(e,t,n){let r=n._keyToDOMMap;sU(t,n,e),r.set(e,t)}(e,r,TK),mV(n)?r.setAttribute(`data-lexical-text`,`true`):OH(n)&&(r.setAttribute(`data-lexical-decorator`,`true`),xW(r,{captureSelection:!0})),Q(n)){let e=n.__indent,t=n.__size;vB(r,n),e!==0&&gB(r,e);let i=SB(n),a=i.size>0?xB(n,r,i):``;if(t===0)r.__lexicalTextContent=a,r.__lexicalFirstTextKey=null,DK+=a,i.size>0&&(r.__lexicalSlotTextLength=a.length);else{let e=DK,o=t-1;if(DB(OW(n,IK),n,0,o,mW(n,r,TK)),a!==``){let t=r.__lexicalTextContent||``;r.__lexicalTextContent=a+t,DK=e+a+t}i.size>0&&(r.__lexicalSlotTextLength=a.length)}let o=n.__format;o!==0&&_B(r,o),n.isInline()||OB(null,n,r)}else{let t=n.getTextContent();if(OH(n)){let t=n.decorate(TK,wK);t!==null&&jB(e,t),r.contentEditable=`false`;let i=SB(n);i.size>0&&xB(n,r,i)}DK+=t}return t!==null&&t.insertChild(r),BK.$decorateDOM(n,null,r,TK),lB(n),DU(zK,EK,jK,n,`created`),r}function DB(e,t,n,r,i){let a=DK,o=uB();DK=``,OK=null,kK=null,AK=null;let s=n;for(;s<=r;++s){let t=uB();EB(e[s],i);let n=IK.get(e[s]);n!==null&&mV(n)?OK===null&&(OK=n.getFormat(),kK=n.getStyle(),AK=n.__key):Q(n)&&s<r&&!n.isInline()&&(DK+=QG),dB(t)}let c=TK._keyToDOMMap.get(t.__key);c===void 0&&Lz(349,t.__key),c.__lexicalTextContent=DK,c.__lexicalFirstTextKey=AK,DK=a+DK,dB(o)}function OB(e,t,n){let r=mW(t,n,TK),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 PH(e)?`line-break`:OH(e)&&e.isInline()?`decorator`:null}return SB(e).size>0?null:`empty`}return null}(t,IK);i!==a&&r.setManagedLineBreak(a)}function Qce(e,t,n){var r;OK=null,kK=null,AK=null,function(e,t,n){let r=DK,i=e.__size,a=t.__size;DK=``;let o=n.element,s=TK._keyToDOMMap.get(t.__key);s===void 0&&Lz(351,t.__key);let c=a-i;if(!VK&&Math.abs(c)<=1&&i>=CK&&e.__first===t.__first&&(c!==0||!TK._cloneNotNeeded.has(e.__key))){let i=s.__lexicalTextContent,l=RK.get(e.__key);if(!VK&&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=IK.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=cB(a,u),n=a,c=0;for(;n!==null&&c<u;){let e=IK.get(n);if(e===void 0)break;let t=uB();AB(n,o),mV(e)&&OK===null&&(OK=e.getFormat(),kK=e.getStyle(),AK=e.__key),dB(t),n=e.__next,c++}let d=``;for(n=a,c=0;n!==null&&c<u;){let e=IK.get(n);if(e===void 0)break;let t;if(Q(e)){let r=TK._keyToDOMMap.get(n),i=r&&r.__lexicalTextContent;typeof i!=`string`&&Lz(352,e.getType()),t=i}else t=e.getTextContent();d+=t,c<u-1&&Q(e)&&!e.isInline()&&(d+=QG),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,DK=r+m,kB(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=PK.get(l);if(e===void 0)return!1;l=e.__prev}if(l===null)return!1;let u=IK.get(a),d=PK.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=IK.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=PK.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=cB(l,c);for(let e of _){let t=uB();if(e.kind===`reconcile`)AB(e.key,n.element);else if(e.kind===`destroy`)pB(e.key,n.element);else{let t=null;for(let n=e.nextIndex+1;n<o;n++){let e=TK._keyToDOMMap.get(f[n]);if(e!==void 0){t=e;break}}EB(e.key,n.withBefore(t??n.before))}if(e.kind!==`destroy`){let t=IK.get(e.key);t&&mV(t)&&OK===null&&(OK=t.getFormat(),kK=t.getStyle(),AK=t.__key)}dB(t)}let x=``;for(let e=0;e<o;e++){let t=IK.get(f[e]);if(t===void 0)return!1;let n;if(Q(t)){let r=TK._keyToDOMMap.get(f[e]),i=r&&r.__lexicalTextContent;typeof i!=`string`&&Lz(350,t.getType()),n=i}else n=t.getTextContent();x+=n,e<o-1&&Q(t)&&!t.isInline()&&(x+=QG)}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`&&Lz(353),DK=r+e,kB(t,s,l);return}}}if(c===0){let t=e.__first,n=0;for(;t!==null;){let e=IK.get(t);if(e===void 0)break;let r=VK||NK.has(t)||MK.has(t),i=uB();if(r)AB(t,o);else{let n,r;if(Q(e)){r=LK.get(t);let i=r&&r.__lexicalTextContent;typeof i!=`string`&&Lz(354,e.getType()),n=i}else n=e.getTextContent();DK+=n,r!==void 0&&fB(r)}mV(e)?OK===null&&(OK=e.getFormat(),kK=e.getStyle(),AK=e.__key):Q(e)&&n<a-1&&!e.isInline()&&(DK+=QG),dB(i),t=e.__next,n++}s.__lexicalTextContent=DK,s.__lexicalFirstTextKey=AK,DK=r+DK;return}}if(i===1&&a===1){let r=e.__first,i=t.__first;if(r===i)AB(r,o);else{let e=PB(r),t=EB(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}pB(r,null)}let a=IK.get(i);mV(a)&&OK===null&&(OK=a.getFormat(),kK=a.getStyle(),AK=a.__key)}else{let r=OW(e,PK),s=OW(t,IK);if(r.length!==i&&Lz(227),s.length!==a&&Lz(228),i===0)a!==0&&DB(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&SB(t).size===0&&n.element.__lexicalLineBreak==null;mB(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=uB();if(e===r)u=MB(AB(r,a.element)),d++,f++;else{if(l===void 0&&(l=NB(n,f)),c===void 0)c=NB(t,d);else if(!c.has(e)){d++,dB(i);continue}if(!l.has(e)){u=MB(PB(e)),pB(e,a.element),d++,c.delete(e),dB(i);continue}if(c.has(r)){let e=jU(TK,r);e!==u&&a.withBefore(u??a.before).insertChild(e),u=MB(AB(r,a.element)),d++,f++}else EB(r,a.withBefore(u??a.before)),f++}let o=IK.get(r);o!==null&&mV(o)?OK===null&&(OK=o.getFormat(),kK=o.getStyle(),AK=o.__key):Q(o)&&f<=s&&!o.isInline()&&(DK+=QG),dB(i)}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:TK.getElementByKey(t);DB(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&mB(t,d,o,a.element)})(t,r,s,i,a,n)}s.__lexicalTextContent=DK,s.__lexicalFirstTextKey=AK,DK=r+DK}(e,t,mW(t,n,TK)),HU(t)||(r=t,OK==null||OK===r.__textFormat||HK||r.setTextFormat(OK),function(e){kK==null||kK===e.__textStyle||HK||e.setTextStyle(kK)}(t))}function kB(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=IK.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=IK.get(r);if(mV(e))return OK=e.getFormat(),void(kK=e.getStyle())}}t.__lexicalFirstTextKey=AK}function AB(e,t){let n=PK.get(e),r=IK.get(e);n!==void 0&&r!==void 0||Lz(61);let i=VK||NK.has(e)||MK.has(e),a=jU(TK,e);if(n===r&&!i){let e;if(Q(n)){let t=a.__lexicalTextContent;typeof t!=`string`&&Lz(355,n.getType()),e=t,fB(a)}else e=n.getTextContent();return DK+=e,a}if(n!==r&&i&&DU(zK,EK,jK,r,`updated`),BK.$updateDOM(r,n,a,TK)){let n=EB(e,null);return t===null&&Lz(62),t.replaceChild(n,a),pB(e,null),n}if(Q(n)){Q(r)||Lz(334,e);let t=r.__indent;(VK||t!==n.__indent)&&gB(a,t);let o=r.__format;(VK||o!==n.__format)&&_B(a,o);let s=i&&(SB(r).size>0||SB(n).size>0)?TB(n,r,a):``;if(i){let e=DK;if(Qce(n,r,a),kH(r)||r.isInline()||OB(0,r,a),s!==``){let t=a.__lexicalTextContent||``;a.__lexicalTextContent=s+t,DK=e+s+t,a.__lexicalSlotTextLength=s.length}else(SB(r).size>0||SB(n).size>0)&&(a.__lexicalSlotTextLength=0)}else{let e=a.__lexicalTextContent;typeof e!=`string`&&Lz(356,n.getType()),DK+=e,fB(a)}if((VK||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(vB(a,r),kH(r)&&!VK))for(let e of r.getChildren())Q(e)&&vB(jU(TK,e.getKey()),e)}else{let t=r.getTextContent();if(OH(r)){let t=r.decorate(TK,wK);t!==null&&jB(e,t),i&&(SB(r).size>0||SB(n).size>0)&&TB(n,r,a)}DK+=t}if(!HK&&kH(r)){let e=r.getLatest();if(e.__cachedText!==DK){let t=e.getWritable();t.__cachedText=DK,r=t}}return BK.$decorateDOM(r,n,a,TK),lB(r),a}function jB(e,t){let n=TK._pendingDecorators,r=TK._decorators;if(n===null){if(r[e]===t)return;n=uU(TK)}n[e]=t}function MB(e){let t=e.nextSibling;return t!==null&&t===TK._blockCursorElement&&(t=t.nextSibling),t}function NB(e,t){let n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function $ce(e,t,n,r,i,a){DK=``,OK=null,kK=null,AK=null,VK=r===2,TK=n,wK=n._config,BK=n._config.dom||CJ,EK=n._nodes,jK=TK._listeners.mutation,MK=i,NK=a,PK=e._nodeMap,FK=e,IK=t._nodeMap,HK=t._readOnly,LK=Hz(n._keyToDOMMap),RK=function(){let e=new Map,t=t=>{for(let n of t){let t=IK.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(MK.keys()),t(NK),e}();let o=new Map;return zK=o,AB(`root`,null),TK=void 0,EK=void 0,MK=void 0,NK=void 0,PK=void 0,FK=void 0,IK=void 0,wK=void 0,LK=void 0,RK=void 0,zK=void 0,BK=CJ,o}function PB(e){let t=LK.get(e);return t===void 0&&Lz(75,e),t}function FB(e){return{type:e}}function ele(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 tle(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}function IB(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=fH(),u;if(a!==void 0)u=a;else{let e=JU(RU(l));u=e===null?null:tW(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!mV(c)||(!i&&(!FG||l._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||c.isDirty()&&m<2||gU(n))&&o.offset!==s.offset&&!c.isComposing()||XH(c)||c.isDirty()&&m>1||(i||!FG)&&p!==null&&!c.isComposing()&&d!==hW(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=YH(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(mV(t)||Q(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function LB(e,t){return ZH(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function RB(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=tW(e,t._rootElement),s=t._inputState;s.isSelectionChangeFromDOMUpdate&&(s.isSelectionChangeFromDOMUpdate=!1,LB(r,i)&&LB(a,o)&&!s.postDeleteSelectionToRestore)||EH(t,()=>{if(!n)return void pU(null);if(!GH(t,r,a))return;let c=KV();if(s.postDeleteSelectionToRestore&&SV(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(),pU(c))}if(s.postDeleteSelectionToRestore=null,SV(c)){let n=c.anchor,l=n.getNode();if(c.isCollapsed()){e.type===`Range`&&r===a&&(c.dirty=!0);let i=RU(t).event,o=i?i.timeStamp:performance.now(),{format:u,style:d,offset:f,key:p,timeStamp:m}=s.collapsedSelectionFormat,h=fU(),g=!1===t.isComposing()&&h.getTextContent()===``;if(o<m+200&&n.offset===f&&n.key===p)zB(c,u,d);else if(n.type===`text`)mV(l)||Lz(141),BB(c,l);else if(n.type===`element`&&!g){Q(l)||Lz(259);let e=n.getNode();e.isEmpty()?function(e,t){zB(e,t.getTextFormat(),t.getTextStyle())}(c,e):zB(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(mV(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}}AU(t,WK,void 0)})}function zB(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function BB(e,t){zB(e,t.getFormat(),t.getStyle())}function VB(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function HB(e){let{lastKeyCode:t}=fH()._inputState;if(e==null||e.length<=1||t==null)return;let n=t.length===1?t:t===`Enter`?`
`:t===`Tab`?`	`:null;if(!n)return;let r=KV();if(!SV(r)||!r.isCollapsed())return;let i=r.anchor.getNode();if(!mV(i))return;let{offset:a}=r.anchor;if(i.getTextContentSize()===a){let e=i.getNextSibling();if(n===`
`){if(PH(e))e.selectEnd();else if(!e){let e=IJ(i,VV),t=e&&e.getNextSibling();Q(t)&&t.selectStart()}}else n===`	`?_V(e)&&e.selectEnd():mV(e)&&e.getTextContent()[0]===n&&e.select(1,1)}else i.getTextContent()[a]===n&&i.select(a+1,a+1)}function UB(e){e.isInsertTextAfterHandledSelectionCommand=!1,e.handledSelectionCommandTimeoutId!==null&&(clearTimeout(e.handledSelectionCommandTimeoutId),e.handledSelectionCommandTimeoutId=null)}function WB(e){UB(e),e.isInsertTextAfterHandledSelectionCommand=!0,e.handledSelectionCommandTimeoutId=setTimeout(()=>UB(e),0)}function GB(e,t){let n=iW(e);if(oW(n)&&CW(n,t))return!0;let r=t.getRootElement();if(r===null)return!1;let i=rW(r.ownerDocument);return i!==null&&r.contains(i)&&CW(i,t)}function nle(e){let t=e.inputType,n=VB(e),r=fH(),i=r._inputState,a=KV();if(t===`insertText`&&e.data&&i.isInsertTextAfterHandledSelectionCommand){if(UB(i),e.preventDefault(),SV(a)&&!a.isCollapsed()){let e=a.isBackward()?a.anchor:a.focus;a.anchor.set(e.key,e.offset,e.type),a.focus.set(e.key,e.offset,e.type)}return!0}if(t===`deleteContentBackward`){if(a===null){let e=qV();if(!SV(e))return!0;pU(e.clone())}if(SV(a)){let t=a.anchor.key===a.focus.key;if(function(e,t){return e.lastKeyCode===`MediaLast`&&t<e.lastKeyDownTimeStamp+30}(i,e.timeStamp)&&r.isComposing()&&t){if(rU(null),i.lastKeyDownTimeStamp=0,setTimeout(()=>{EH(r,()=>{rU(null)})},30),SV(a)){let e=a.anchor.getNode();e.markDirty(),mV(e)||Lz(142),BB(a,e)}}else{if(rU(null),IG&&n!==null&&!n.collapsed&&(a.applyDOMRange(n),!a.isCollapsed()))return e.preventDefault(),a.removeText(),!0;e.preventDefault();let o=a.anchor.getNode(),s=o.getTextContent(),c=o.canInsertTextAfter(),l=a.anchor.offset===0&&a.focus.offset===s.length,u=BG&&t&&!l&&c;if(u&&a.isCollapsed()&&(u=!OH(Ple(a.anchor,!0))),!u){AU(r,ZK,!0);let e=KV();BG&&SV(e)&&e.isCollapsed()&&(i.postDeleteSelectionToRestore=e,setTimeout(()=>i.postDeleteSelectionToRestore=null))}}return!0}}if(!SV(a))return!0;let o=e.data;i.unprocessedBeforeInputData!==null&&bU(!1,r,i.unprocessedBeforeInputData),a.dirty&&i.unprocessedBeforeInputData===null||!a.isCollapsed()||kH(a.anchor.getNode())||n===null||a.applyDOMRange(n),i.unprocessedBeforeInputData=null;let s=a.anchor,c=a.focus,l=s.getNode(),u=c.getNode();if(t===`insertText`||t===`insertTranspose`){if(o===`
`)e.preventDefault(),AU(r,QK,!1);else if(o===QG)e.preventDefault(),AU(r,$K,void 0);else if(o==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),a.insertRawText(t)}else o!=null&&IB(a,n,o,e.timeStamp,!0)?(e.preventDefault(),AU(r,eq,o),HB(o)):i.unprocessedBeforeInputData=o;return i.lastBeforeInputInsertTextTimeStamp=e.timeStamp,!0}switch(e.preventDefault(),t){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:AU(r,eq,e),HB((e.dataTransfer?e.dataTransfer.getData(`text/plain`):null)??e.data);break;case`insertFromComposition`:{let t=i.hadOrphanedCompositionEvents;i.hadOrphanedCompositionEvents=!1;let n=r._compositionKey;rU(null),t||AU(r,eq,e),KB(n);break}case`insertLineBreak`:rU(null),AU(r,QK,!1);break;case`insertParagraph`:rU(null),i.isInsertLineBreak&&!IG?(i.isInsertLineBreak=!1,AU(r,QK,!1)):AU(r,$K,void 0);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:AU(r,tq,e);break;case`deleteByComposition`:(function(e,t){return e!==t||Q(e)||Q(t)||!YH(e)||!YH(t)})(l,u)&&AU(r,nq,e);break;case`deleteByDrag`:PU(Zq),AU(r,nq,e);break;case`deleteByCut`:AU(r,nq,e);break;case`deleteContent`:AU(r,ZK,!1);break;case`deleteWordBackward`:AU(r,rq,!0);break;case`deleteWordForward`:AU(r,rq,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:AU(r,iq,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:AU(r,iq,!1);break;case`formatStrikeThrough`:AU(r,aq,`strikethrough`);break;case`formatBold`:AU(r,aq,`bold`);break;case`formatItalic`:AU(r,aq,`italic`);break;case`formatUnderline`:AU(r,aq,`underline`);break;case`historyUndo`:AU(r,sq,void 0);break;case`historyRedo`:AU(r,cq,void 0)}return!0}function rle(e){let t=fH(),n=t._inputState,r=KV(),i=e.data,a=VB(e),o=!1;if(i!=null&&SV(r)){let s=JU(RU(t)),c=s===null?null:tW(s,t._rootElement),l=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&!t.isComposing();l&&(n.hadOrphanedCompositionEvents=!0);let u=r.anchor.getNode(),d=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&t.isComposing()&&mV(u)&&XH(u);if(!l&&!d&&IB(r,a,i,e.timeStamp,!1,c)){if(o=!0,n.compositionPhase===`ending-firefox`){let e=qB(t,i);if(n.compositionPhase=`idle`,e)return PU(Qq),mU(),!0}let a=r.anchor.getNode();if(s===null||c===null)return!0;let l=r.isBackward(),u=l?r.anchor.offset:r.focus.offset,d=l?r.focus.offset:r.anchor.offset;FG&&!r.isCollapsed()&&mV(a)&&c.anchorNode!==null&&a.getTextContent().slice(0,u)+i+a.getTextContent().slice(u+d)===yU(c.anchorNode)||AU(t,eq,i);let f=i.length;PG&&f>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(r.anchor.offset-=f,r._cachedNodes=null,r._cachedIsBackward=null),BG&&t.isComposing()&&(n.lastKeyDownTimeStamp=0,rU(null))}}return o||(bU(!1,t,i===null?void 0:i),n.compositionPhase===`ending-firefox`&&(qB(t,i||void 0),PU(`composition-end`),n.compositionPhase=`idle`)),mU(),!0}function ile(e){let t=fH(),n=t._inputState,r=KV();if(SV(r)&&!t.isComposing()){n.compositionPhase=`composing`,n.hadOrphanedCompositionEvents=!1;let i=r.anchor,a=r.anchor.getNode();if(rU(i.key),PU(`composition-start`),e.timeStamp<n.lastKeyDownTimeStamp+30||i.type===`element`||!r.isCollapsed()||!BG&&(a.getFormat()!==r.format||mV(a)&&a.getStyle()!==r.style)||mV(a)&&(XH(a)||i.offset===0&&!a.canInsertTextBefore()||i.offset===a.getTextContentSize()&&!a.canInsertTextAfter())){AU(t,eq,$G);let e=KV();SV(e)&&rU(e.anchor.key)}}return!0}function ale(e){let t=fH();return t._inputState.compositionPhase=`idle`,qB(t,e.data),PU(Qq),!0}function KB(e){if(e===null)return;let t=aU(e);if(!mV(t)||t.getType()===`text`||XH(t)||!t.isAttached())return;let n=KV(),r=SV(n)&&n.anchor.key===e?n.anchor.offset:null,i=pV(t.getTextContent());if(i.setFormat(t.getFormat()),i.setStyle(t.getStyle()),t.replace(i),r!==null){let e=Math.min(r,i.getTextContentSize());i.select(e,e)}}function qB(e,t){let n=e._compositionKey;if(rU(null),n!==null&&t!=null){if(t===``){let t=aU(n),r=e.getElementByKey(n),i=r!==null&&mV(t)?hW(t,r,e):null;if(i!==null&&i.nodeValue!==null&&mV(t)){let n=JU(RU(e)),r=n&&tW(n,e._rootElement),a=null,o=null;r!==null&&r.anchorNode===i&&(a=r.anchorOffset,o=r.focusOffset),xU(t,i.nodeValue,a,o,!0)}return KB(n),!1}if(t[t.length-1]===`
`){let t=KV();if(SV(t)||CV(t)){if(SV(t)){let e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return AU(e,gq,null),KB(n),!1}}let r=aU(n);if(r!==null&&mV(r)&&XH(r)){r.markDirty();let e=KV(),i=r.getTextContentSize(),a=SV(e)&&e.anchor.key===n?e.anchor.offset:i;return r.select(a,a).insertText(t),!0}}return bU(!0,e,t),KB(n),!1}function ole(e){let t=fH(),n=t._inputState;if(e.key==null)return!0;if(n.compositionPhase===`ending-safari`){let r=TU(e);if(r&&EH(t,()=>{qB(t,n.compositionEndData)}),n.compositionPhase=`idle`,n.compositionEndData=``,r)return!0}if(function(e){return wU(e,`ArrowRight`,{shiftKey:`any`})}(e))AU(t,uq,e);else if(function(e){return wU(e,`ArrowRight`,{...OJ,shiftKey:`any`})}(e))AU(t,dq,e);else if(function(e){return wU(e,`ArrowLeft`,{shiftKey:`any`})}(e))AU(t,fq,e);else if(function(e){return wU(e,`ArrowLeft`,{...OJ,shiftKey:`any`})}(e))AU(t,pq,e);else if(function(e){return wU(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}(e))AU(t,mq,e);else if(function(e){return wU(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}(e))AU(t,hq,e);else if(function(e){return wU(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}(e))n.isInsertLineBreak=!0,AU(t,gq,e);else if(function(e){return e.key===` `}(e))AU(t,_q,e);else if(function(e){return NG&&wU(e,`o`,{ctrlKey:!0})}(e))e.preventDefault(),n.isInsertLineBreak=!0,AU(t,QK,!0);else if(function(e){return wU(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}(e))n.isInsertLineBreak=!1,AU(t,gq,e);else if(function(e){return wU(e,`Backspace`,{shiftKey:`any`})||NG&&wU(e,`h`,{ctrlKey:!0})}(e))TU(e)?AU(t,vq,e)&&WB(n):(e.preventDefault(),AU(t,ZK,!0));else if(function(e){return e.key===`Escape`}(e))AU(t,yq,e);else if(function(e){return wU(e,`Delete`,{})||NG&&wU(e,`d`,{ctrlKey:!0})}(e))(function(e){return e.key===`Delete`})(e)?AU(t,bq,e):(e.preventDefault(),AU(t,ZK,!1));else if(function(e){return wU(e,`Backspace`,kJ)}(e))e.preventDefault(),AU(t,rq,!0);else if(function(e){return wU(e,`Delete`,kJ)}(e))e.preventDefault(),AU(t,rq,!1);else if(function(e){return NG&&wU(e,`Backspace`,{metaKey:!0})}(e))e.preventDefault(),AU(t,iq,!0);else if(function(e){return NG&&(wU(e,`Delete`,{metaKey:!0})||wU(e,`k`,{ctrlKey:!0}))}(e))e.preventDefault(),AU(t,iq,!1);else if(function(e){return wU(e,`b`,OJ)}(e))e.preventDefault(),AU(t,aq,`bold`);else if(function(e){return wU(e,`u`,OJ)}(e))e.preventDefault(),AU(t,aq,`underline`);else if(function(e){return wU(e,`i`,OJ)}(e))e.preventDefault(),AU(t,aq,`italic`);else if(function(e){return wU(e,`Tab`,{shiftKey:`any`})}(e))AU(t,xq,e);else if(function(e){return wU(e,`z`,OJ)}(e))e.preventDefault(),AU(t,sq,void 0);else if(function(e){return NG?wU(e,`z`,{metaKey:!0,shiftKey:!0}):wU(e,`y`,{ctrlKey:!0})||wU(e,`z`,{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),AU(t,cq,void 0);else{let r=t._editorState._selection;(function(e){return wU(e,`a`,OJ)})(e)?(e.preventDefault(),AU(t,Mq,e)&&WB(n)):r===null||SV(r)||(function(e){return wU(e,`c`,OJ)}(e)?(e.preventDefault(),AU(t,Aq,e)):function(e){return wU(e,`x`,OJ)}(e)&&(e.preventDefault(),AU(t,jq,e)))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(zq,e),!0}function JB(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}function YB(e){let t=Ile(e.target);if(t===null)return;let n=NU(e.target),r=null,i=null,a=n===null?void 0:Uq.get(n);if(n!==null){if(a!==void 0){let e=a.editors,n=a.hasShadowEditor;if(n===void 0){n=!1;for(let t of e)if(t._rootElement!==null&&YU(t._rootElement.getRootNode())){n=!0;break}a.hasShadowEditor=n}if(n){let n=null,a=null;for(let o of e){let e=o._rootElement;if(e===null)continue;let s=tW(t,e).anchorNode;if(s!==null&&qH(s)===o){if(YU(e.getRootNode())){r=o,i=s;break}n===null&&(n=o,a=s)}}r===null&&n!==null&&(r=n,i=a)}else{let e=t.anchorNode;e===null||oW(e)&&e.shadowRoot!==null||(r=qH(e),r!==null&&(i=e))}}if(r===null){let e=rW(n);r=e===null?null:qH(e)}}if(r===null)return;if(r._inputState.isSelectionChangeFromMouseDown){if(a!==void 0)for(let e of a.editors)e._inputState.isSelectionChangeFromMouseDown=!1;EH(r,()=>{let n=qV(),a=i??tW(t,r._rootElement).anchorNode;(oW(a)||ZH(a))&&pU(GV(n,t,r,e))})}let o=_U(r),s=o[o.length-1],c=s._key,l=Gq.get(c),u=l||s;u!==r&&RB(t,u,!1),RB(t,r,!0),r===s?l&&Gq.delete(c):Gq.set(c,r)}function XB(e){e._lexicalHandled=!0}function ZB(e){return!0===e._lexicalHandled}function sle(e){let t=Hq.get(e);if(t===void 0)return;let n=Uq.get(t);if(n===void 0)return;Hq.delete(e);let r=JH(e);KH(r)?(function(e){if(e._parentEditor!==null){let t=_U(e),n=t[t.length-1]._key;Gq.get(n)===e&&Gq.delete(n)}else Gq.delete(e._key)}(r),n.editors.delete(r),n.hasShadowEditor=void 0,e.__lexicalEditor=null):r&&Lz(198);let i=JB(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function QB(e,t,n){lH();let r=e.__key,i=e.getParent();if(i===null)return void(MW(e)!==null&&Lz(367,r,String(MW(e))));let a=function(e){let t=KV();if(!SV(t)||!Q(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),a=r.getNode();return IU(i,e)&&n.set(e.__key,0,`element`),IU(a,e)&&r.set(e.__key,0,`element`),t}(e),o=!1;if(SV(a)&&t){let t=a.anchor,n=a.focus;t.key===r&&(XV(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(XV(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else CV(a)&&t&&e.isSelected()&&e.selectPrevious();if(SV(a)&&t&&!o){let t=e.getIndexWithinParent();tU(e),JV(a,i,t,-1)}else tU(e);n||HU(i)||i.canBeEmpty()||!i.isEmpty()||QB(i,t),t&&a&&kH(i)&&i.isEmpty()&&i.selectEnd()}function $B(e){return e}function eV(e){return e[Kq]||!1}function tV(e){return e instanceof Jq}function nV(e){let t={};if(!e)return t;let n=``,r=``,i=null,a=!1,o=!1,s=!1,c=0,l=e.length,u=-1;for(let d=0;d<l;d++){let l=e[d];if(a)l===`*`&&e[d+1]===`/`&&(a=!1,d++);else if(o)u===-1&&(u=d),o=!1;else if(i===null)if(l!==`/`||e[d+1]!==`*`)if(l!==`"`&&l!==`'`)if(l!==`(`)if(l!==`)`)if(s||l!==`:`||c!==0){if(l===`;`&&c===0){u!==-1&&(s?r+=e.slice(u,d):n+=e.slice(u,d),u=-1);let i=n.trim(),a=r.trim();i!==``&&a!==``&&(t[i]=a),n=``,r=``,s=!1;continue}u===-1&&(u=d)}else u!==-1&&(n+=e.slice(u,d),u=-1),s=!0;else u===-1&&(u=d),c=Math.max(0,c-1);else u===-1&&(u=d),c++;else u===-1&&(u=d),i=l;else u!==-1&&(s?r+=e.slice(u,d):n+=e.slice(u,d),u=-1),a=!0,d++;else u===-1&&(u=d),l===`\\`?o=!0:l===i&&(i=null)}u!==-1&&(s?r+=e.slice(u,l):n+=e.slice(u,l));let d=n.trim(),f=r.trim();return d!==``&&f!==``&&(t[d]=f),t}function cle(e,t,n){let r=n.trimEnd(),i=r.length-10;i>=0&&r.slice(i).toLowerCase()===$q?e.setProperty(t,r.slice(0,i).trim(),`important`):e.setProperty(t,n,``)}function rV(e,t,n=``){if(t===n)return;let r=nV(n),i=nV(t);for(let t in i)delete r[t],cle(e,t,i[t]);for(let t in r)e.removeProperty(t)}function iV(e,t){return 16&t?`code`:t&128?`mark`:32&t?`sub`:64&t?`sup`:null}function aV(e,t){return 1&t?`strong`:2&t?`em`:`span`}function oV(e,t,n,r,i){let a=r.classList,o=EU(i,`base`);o!==void 0&&a.add(...o),o=EU(i,`underlineStrikethrough`);let s=!1,c=8&t&&4&t;o!==void 0&&(8&n&&4&n?(s=!0,c||a.add(...o)):c&&a.remove(...o));for(let e in nK){let r=nK[e];if(o=EU(i,e),o!==void 0)if(n&r){if(s&&(e===`underline`||e===`strikethrough`)){t&r&&a.remove(...o);continue}((t&r)===0||c&&e===`underline`||e===`strikethrough`)&&a.add(...o)}else t&r&&a.remove(...o)}}function sV(e,t,n){let r=n.isComposing(),i=e+(r?ZG:``),a=fW(),o=pW(a).$getDOMSlot(n,t,a),s=o.getFirstChild();if(s===null||s.nodeType!==Node.TEXT_NODE)return void o.insertChild($U().createTextNode(i));let c=s,l=c.nodeValue;if(l!==i)if(r||PG){let[e,t,n]=function(e,t){let n=e.length,r=t.length,i=0,a=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;a+i<n&&a+i<r&&e[n-a-1]===t[r-a-1];)a++;return[i,n-i-a,t.slice(i,r-a)]}(l,i);t!==0&&c.deleteData(e,t),c.insertData(e,n)}else c.nodeValue=i}function cV(e,t,n,r,i,a){sV(i,e,t);let o=a.theme.text;o!==void 0&&oV(0,0,r,e,o)}function lV(e,t){let n=$U().createElement(t);return n.appendChild(e),n}function uV(e){return e!=null&&!0===e.__isInlineFormattable}function lle(e){return{forChild:hV(e.style),node:null}}function ule(e){let t=e,n=t.style.fontWeight===`normal`;return{forChild:hV(t.style,n?void 0:`bold`),node:null}}function dle(e){if(!oW(e))return!1;if(e.nodeName===`PRE`)return!0;let t=e.style.whiteSpace;return typeof t==`string`&&t.startsWith(`pre`)}function fle(e){let t=e;e.parentElement===null&&Lz(129);let n=t.textContent||``;if(function(e){let t,n=e.parentNode,r=[e];for(;n!==null&&(t=tJ.get(n))===void 0&&!dle(n);)r.push(n),n=n.parentNode;let i=t===void 0?n:t;for(let e=0;e<r.length;e++)tJ.set(r[e],i);return i}(t)!==null)return{node:nH(n)};if(n=n.replace(/\r/g,``).replace(/[ \t\n]+/g,` `),n===``)return{node:null};if(n[0]===` `){let e=t,r=!0;for(;e!==null&&(e=dV(e,!1))!==null;){let t=e.textContent||``;if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===` `){let e=t,r=!0;for(;e!==null&&(e=dV(e,!0))!==null;)if((e.textContent||``).replace(/^( |\t|\r?\n)+/,``).length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===``?{node:null}:{node:pV(n)}}function dV(e,t){let n=e;for(;;){let e;for(;(e=t?n.nextSibling:n.previousSibling)===null;){let e=n.parentElement;if(e===null)return null;n=e}if(n=e,oW(n)){let e=n.style.display;if(e===``&&!lW(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(ZH(n))return n;if(n.nodeName===`BR`)return null}}function fV(e){let t=nJ[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:hV(e.style,t),node:null}}function pV(e=``){return WU(new eJ(e))}function mV(e){return e instanceof eJ}function hV(e,t){let n=e.fontWeight,r=e.textDecoration.split(` `),i=n===`700`||n===`bold`,a=r.includes(`line-through`),o=e.fontStyle===`italic`,s=r.includes(`underline`),c=e.verticalAlign;return e=>mV(e)||uV(e)?(i&&!e.hasFormat(`bold`)&&e.toggleFormat(`bold`),a&&!e.hasFormat(`strikethrough`)&&e.toggleFormat(`strikethrough`),o&&!e.hasFormat(`italic`)&&e.toggleFormat(`italic`),s&&!e.hasFormat(`underline`)&&e.toggleFormat(`underline`),c!==`sub`||e.hasFormat(`subscript`)||e.toggleFormat(`subscript`),c!==`super`||e.hasFormat(`superscript`)||e.toggleFormat(`superscript`),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}function gV(){return WU(new rJ)}function _V(e){return e instanceof rJ}function vV(e,t,n){return new iJ(e,t,n)}function yV(e,t){let n=t.__key,r=e.offset,i=`element`;if(mV(t)){i=`text`;let e=t.getTextContentSize();r>e&&(r=e)}else if(!Q(t)){let e=t.getNextSibling();if(mV(e))n=e.__key,r=0,i=`text`;else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function bV(e,t){if(Q(t)){let n=t.getLastDescendant();Q(n)||mV(n)?yV(e,n):yV(e,t)}else yV(e,t)}function xV(){let e=fU();if(e.isEmpty()){let t=IH();e.append(t),t.select()}}function SV(e){return e instanceof oJ}function CV(e){return e instanceof aJ}function wV(e,t){if(CV(e)){for(let n of e.getNodes())uV(n)&&n.setFormat(t(n.getFormat()));return}if(e.isCollapsed())return e.setFormat(t(e.format)),void rU(null);let n=[];for(let r of e.getNodes())mV(r)?n.push(r):Q(r)?r.setTextFormat(t(r.getTextFormat())):uV(r)&&r.setFormat(t(r.getFormat()));let r=n.length;if(r===0)return e.setFormat(t(e.format)),void rU(null);let i=e.anchor,a=e.focus,o=e.isBackward(),s=o?a:i,c=o?i:a,l=0,u=n[0],d=s.type===`element`?0:s.offset;if(s.type===`text`&&d===u.getTextContentSize()&&(l=1,u=n[1],d=0),u==null)return;let f=r-1,p=n[f],m=c.type===`text`?c.offset:p.getTextContentSize();if(u.is(p)){if(d===m)return;let n=t(u.getFormat());if(XH(u)||d===0&&m===u.getTextContentSize())u.setFormat(n);else{let e=u.splitText(d,m),t=d===0?e[0]:e[1];t.setFormat(n),s.type===`text`&&s.set(t.__key,0,`text`),c.type===`text`&&c.set(t.__key,m-d,`text`)}e.format=n;return}d===0||XH(u)||([,u]=u.splitText(d),d=0);let h=t(u.getFormat());u.setFormat(h);let g=t(p.getFormat());m>0&&(m===p.getTextContentSize()||XH(p)||([p]=p.splitText(m)),p.setFormat(g));for(let e=l+1;e<f;e++){let r=n[e];r.setFormat(t(r.getFormat()))}s.type===`text`&&s.set(u.__key,d,`text`),c.type===`text`&&c.set(p.__key,m,`text`),e.format=h|g}function ple(e,t){let n=[];for(let[e,r]of Object.entries(t))typeof r==`boolean`&&n.push([e,r]);n.length!==0&&wV(e,e=>{for(let[t,r]of n)e=$H(e,t,r?nK[t]:0);return e})}function TV(e,t,n=null){let r=n===null&&SV(e)?$H(e.format,t,null):n;wV(e,e=>$H(e,t,r))}function EV(e){let t=e.offset;if(e.type===`text`)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function DV(e){let t=e.getStartEndPoints();if(t===null)return[0,0];let[n,r]=t;return n.type===`element`&&r.type===`element`&&n.key===r.key&&n.offset===r.offset?[0,0]:[EV(n),EV(r)]}function OV(e,t){for(let n=t;n;n=n.getParent()){if(Q(n)){if(n.collapseAtStart(e))return!0;if(HU(n))break}if(n.getPreviousSibling())break}return!1}function kV(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,a=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,a,!0)}function AV(e,t,n,r){e.modify(t,n,r)}function jV(e,t,n){let r=e.getNodes(),i=r.filter(e=>IU(e,n));if(i.length===0||i.length===r.length)return!1;let a=t?i[0]:i[i.length-1],o=Q(a)?a:a.getParentOrThrow();return t?o.selectStart():o.selectEnd(),!0}function MV(e,t,n){if(sH(e,`extend`,t,n))return;let r=fH(),i=JU(RU(r));if(!i||typeof i.modify!=`function`)return;let a=r._blockCursorElement,o=r._rootElement,s=e.anchor,c=e.focus.getNode();o===null||a===null||!Q(c)||c.isInline()||c.canBeEmpty()||qU(a,r,o);let l=e=>{let t=e.getNode(),n=r.getElementByKey(e.key);return n!==null&&e.type===`text`&&mV(t)?hW(t,n,r):n},u=s.getNode(),d=l(s);if(d===null)return;let f=s.offset,p=e.isCollapsed(),m=e.focus,h=p?d:l(m);if(h===null)return;let g=m.offset;if(QV(i,h,g,h,g),AV(i,`move`,t?`backward`:`forward`,n),i.rangeCount===0)return;let _=eW(i,o)||i.getRangeAt(0),v=_.startContainer,y=_.startOffset;if(p&&n===`character`&&s.type===`text`&&mV(u)&&u.isUnmergeable()&&f===(t?0:u.getTextContentSize())){let n=JW(u,t?`previous`:`next`).getNodeAtCaret();if(mV(n)){let r=t?n.getTextContentSize()-1:1;e.focus.set(n.__key,r,`text`),e.dirty=!0;return}}if(p&&n===`character`&&s.type===`text`){let n=t?0:u.getTextContentSize(),r=v===d?y:f===n?-1:n;if(r>=0)return void(r!==f&&(e.focus.set(s.key,r,`text`),e.dirty=!0))}let[b,x,S,C]=t?[v,y,d,f]:[d,f,v,y],w=kH(u)?u:BU(u);e.applyDOMRange({collapsed:!1,endContainer:S,endOffset:C,startContainer:b,startOffset:x}),e.dirty=!0,!jV(e,t,w)&&t&&kV(e),n===`lineboundary`&&sH(e,`extend`,t,n,`decorators`)}function NV(e,t,n){let r=e,i=r.getTextContent().split(/(?=\s)/g),a=i.length,o=0,s=0;for(let e=0;e<a;e++){let r=e===a-1;if(s=o,o+=i[e].length,t&&o===n||o>n||r){i.splice(e,1),r&&(s=void 0);break}}let c=i.join(``).trim();c===``?r.remove():(r.setTextContent(c),r.select(s,s))}function PV(e,t,n,r){let i,a=t,o=!1;if(oW(e)){let s=!1,c=e.childNodes,l=c.length,u=r._blockCursorElement;a===l&&l>0&&(s=!0,a=l-1),cU(e,r)!==void 0||CW(e,r)||(o=!0);let d=c[a],f=!1;if(d===u)d=c[a+1],f=!0;else if(u!==null){let n=u.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,u)&&a--}if(i=hU(d),mV(i))a=XW(i,s?`next`:`previous`);else{let c=hU(e);if(c===null)return null;if(Q(c)){let o=r.getElementByKey(c.getKey());o===null&&Lz(214);let l=mW(c,o,r);[c,a]=l.resolveChildIndex(c,o,e,t),Q(c)||Lz(215),s&&a>=c.getChildrenSize()&&(a=Math.max(0,c.getChildrenSize()-1));let u=c.getChildAtIndex(a);if(Q(u)&&function(e,t,n){let r=e.getParent();return n===null||r===null||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){let e=s?u.getLastDescendant():u.getFirstDescendant();e===null?c=u:(u=e,c=Q(u)?u:u.getParentOrThrow()),a=0}mV(u)?(i=u,c=null,a=XW(u,s?`next`:`previous`)):u!==c&&s&&!f&&(Q(c)||Lz(216),a=Math.min(c.getChildrenSize(),a+1))}else{let n=NW(c),i=n===null?c:n,o=i.getIndexWithinParent(),s=r.getElementByKey(c.getKey()),l=`after`;if(s!==null&&hU(e)===c){let n=mW(c,s,r);n.element===s?t===0&&OH(c)&&(l=`before`):l=n.resolveLeafPosition(s,e,t)}a=l===`before`?o:o+1,c=i.getParentOrThrow()}if(Q(c))return[vV(c.__key,a,`element`),o]}}else i=hU(e);return mV(i)?[vV(i.__key,XW(i,a,`clamp`),`text`),o]:null}function FV(e,t,n){let r=e.offset,i=e.getNode();if(r===0){let r=i.getPreviousSibling(),a=i.getParent();if(t){if((n||!t)&&r===null&&Q(a)&&a.isInline()){let t=a.getPreviousSibling();mV(t)&&e.set(t.__key,t.getTextContent().length,`text`)}}else Q(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),`element`):mV(r)&&!i.isUnmergeable()&&e.set(r.__key,r.getTextContent().length,`text`)}else if(r===i.getTextContent().length){let r=i.getNextSibling(),a=i.getParent();if(t&&Q(r)&&r.isInline())e.set(r.__key,0,`element`);else if((n||t)&&r===null&&Q(a)&&a.isInline()&&!a.canInsertTextAfter()&&a.getTextContentSize()>1){let t=a.getNextSibling();mV(t)&&e.set(t.__key,0,`text`)}}}function IV(e,t,n){if(e.type===`text`&&t.type===`text`){let n=e.isBefore(t),r=e.is(t);FV(e,n,r),FV(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function LV(e){let t=aU(e.key);return t===null?null:PW(t)}function RV(e,t,n){let r=LV(e),i=LV(t);if(r===i||r!==null&&i!==null&&r.is(i))return!1;let a=n(r,i);if(r!==null)return Q(r)?t.set(r.getKey(),a?r.getChildrenSize():0,`element`):t.set(r.getKey(),a?r.getTextContentSize():0,`text`),!0;let o=NW(i);if(o===null)return!1;let s=o.getParent();if(s===null)return!1;let c=o.getIndexWithinParent();return t.set(s.getKey(),a?c+1:c,`element`),!0}function zV(e){let t=RV(e.anchor,e.focus,(t,n)=>function(e,t,n,r){if(n!==null&&r!==null){let e=NW(n),t=NW(r);if(e!==null&&e.is(t)){for(let t of FW(e).values()){if(t===n.getKey())return!0;if(t===r.getKey())return!1}return!0}return e===null||t===null||e.isBefore(t)}if(n!==null){let e=NW(n),r=aU(t.key);return e===null||r===null||!(!e.is(r)&&!e.isParentOf(r))||e.isBefore(r)}let i=NW(r),a=aU(e.key);return i!==null&&a!==null&&!i.is(a)&&!i.isParentOf(a)&&a.isBefore(i)}(e.anchor,e.focus,t,n));return t&&(e.dirty=!0),t}function BV(e,t,n,r,i,a){if(e===null||n===null||!GH(i,e,n))return null;let o=PV(e,t,SV(a)?a.anchor:null,i);if(o===null)return null;let s=PV(n,r,SV(a)?a.focus:null,i);if(s===null)return null;let[c,l]=o,[u,d]=s;if(c.type===`element`&&u.type===`element`){let t=hU(e),r=hU(n);if(OH(t)&&OH(r))return null}let f=i._slotsUsed&&RV(c,u,()=>(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)!==0);return IV(c,u),[c,u,l||d||f]}function VV(e){return Q(e)&&!e.isInline()}function HV(e,t,n,r,i,a){let o=dH(),s=new oJ(vV(e,t,i),vV(n,r,a),0,``);return s.dirty=!0,o._selection=s,s}function UV(){let e=vV(`root`,0,`element`),t=vV(`root`,0,`element`);return new oJ(e,t,0,``)}function WV(){return new aJ(new Set)}function GV(e,t,n,r){let i=n._window;if(i===null)return null;let a=r||i.event,o=a?a.type:void 0,s=o===`selectionchange`,c=!gK&&(s||o===`beforeinput`||o===`compositionstart`||o===`compositionend`||o===`click`&&a&&a.detail===3||o===`drop`||o===void 0),l,u,d,f;if(SV(e)&&!c)return e.clone();{if(t===null)return null;let r=tW(t,n._rootElement);if(l=r.anchorNode,u=r.focusNode,d=r.anchorOffset,f=r.focusOffset,(s||o===void 0)&&SV(e)&&!GH(n,l,u))return e.clone()}let p=BV(l,d,u,f,n,e);if(p===null)return null;let[m,h,g]=p,_=0,v=``;if(SV(e)){let t=e.anchor;if(m.key===t.key)_=e.format,v=e.style;else{let e=m.getNode();mV(e)?(_=e.getFormat(),v=e.getStyle()):Q(e)&&(_=e.getTextFormat(),v=e.getTextStyle())}}let y=new oJ(m,h,_,v);return g&&(y.dirty=!0),y}function KV(){return dH()._selection}function qV(){return fH()._editorState._selection}function JV(e,t,n,r=1){let i=e.anchor,a=e.focus,o=i.getNode(),s=a.getNode();if(!t.is(o)&&!t.is(s))return;let c=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(c,n,`element`),a.set(c,n,`element`),YV(e)}}else{let o=e.isBackward(),s=o?a:i,l=s.getNode(),u=o?i:a,d=u.getNode();if(t.is(l)){let e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(c,Math.max(0,e+r),`element`)}if(t.is(d)){let e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(c,Math.max(0,e+r),`element`)}}YV(e)}function YV(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,a=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!Q(a))return;let e=a.getChildrenSize(),i=n>=e,o=i?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(mV(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,`text`),r.set(o.__key,e,`text`)}return}if(Q(a)){let e=a.getChildrenSize(),r=n>=e,i=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(mV(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,`text`)}}if(Q(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(mV(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,`text`)}}}function XV(e,t,n,r,i){let a=null,o=0,s=null;r===null?i!==null&&(a=i.__key,mV(i)?s=`text`:Q(i)&&(s=`element`)):(a=r.__key,mV(r)?(o=r.getTextContentSize(),s=`text`):Q(r)&&(o=r.getChildrenSize(),s=`element`)),a!==null&&s!==null?e.set(a,o,s):(o=t.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),e.set(n.__key,o,`element`))}function ZV(e,t,n,r,i){e.type===`text`?e.set(n,e.offset+(t?0:i),`text`):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,`element`)}function QV(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch{}}function $V(e,t,n){let r=jU(e,t.getKey());if(Q(t)){let i=mW(t,r,e);return[i.element,n+i.getFirstChildOffset()]}return[r,n]}function mle(e,t,n,r,i,a){let o=a.getRootNode(),s=QH(o)||YU(o)?rW(o):null;if(i.has(`collaboration`)&&s!==a||s!==null&&WH(s,s))return;let c=tW(r,a),l;if(!SV(t))return void(e!==null&&GH(n,c.anchorNode,c.focusNode)&&r.removeAllRanges());let u=t.anchor,d=t.focus,f=u.getNode(),p=d.getNode(),[m,h]=$V(n,f,u.offset),[g,_]=$V(n,p,d.offset),v=t.format,y=t.style,b=t.isCollapsed(),x=m,S=g,C=!1;if(u.type===`text`?(x=mV(f)?hW(f,m,n):null,C=f.getFormat()!==v||f.getStyle()!==y):SV(e)&&e.anchor.type===`text`&&(C=!0),d.type===`text`&&(S=mV(p)?hW(p,g,n):null),x!==null&&S!==null){if(b&&(e===null||C||SV(e)&&(e.format!==v||e.style!==y))&&function(e,t,n,r,i,a){e._inputState.collapsedSelectionFormat={format:t,key:i,offset:r,style:n,timeStamp:a}}(n,v,y,h,u.key,performance.now()),(r.type!==`Range`||!b)&&c.anchorOffset===h&&c.focusOffset===_&&c.anchorNode===x&&c.focusNode===S){if(s===null||!a.contains(s)){let e=s===null?null:qH(s);e!==null&&e!==n||i.has(`skip-selection-focus`)||a.focus({preventScroll:!0})}if(u.type!==`element`)return}if(QV(r,x,h,S,_),PG&&t.isCollapsed()&&a!==null&&!i.has(`skip-selection-focus`)){let e=nW(a);if(e===null||!a.contains(e)){let e=rW(a.ownerDocument),t=e===null?null:qH(e);t!==null&&t!==n||a.focus({preventScroll:!0})}}if(!i.has(`skip-scroll-into-view`)&&t.isCollapsed()&&a!==null&&a===nW(a)){let e=SV(t)&&t.anchor.type===`element`?x.childNodes[h]||null:(l===void 0&&(l=Lle(r,a)),l);if(e!==null){let t;if(ZH(e)){let n=e.ownerDocument.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();(function(e,t,n){let r=NU(n),i=LU(r);if(r===null||i===null)return;let a=n.getBoundingClientRect();if(t.bottom<a.top)return;let{top:o,bottom:s}=t,c=0,l=0,u=n;for(;u!==null;){let t=u===r.body;if(t){let t=i.visualViewport;if(t){let e=t.offsetTop;c=e,l=e+t.height}else c=0,l=RU(e).innerHeight;let n=i.getComputedStyle(r.documentElement),a=parseFloat(n.scrollPaddingTop),o=parseFloat(n.scrollPaddingBottom);isFinite(a)&&(c+=a),isFinite(o)&&(l-=o)}else{let e=u===n?a:u.getBoundingClientRect();c=e.top,l=e.bottom}let d=0;if(o<c?d=-(c-o):s>l&&(d=s-l),d!==0)if(t)i.scrollBy(0,d);else{let e=u.scrollTop;u.scrollTop+=d;let t=u.scrollTop-e;o-=t,s-=t}if(t)break;u=MU(u)}})(n,t,a)}}(function(e){e._inputState.isSelectionChangeFromDOMUpdate=!0})(n)}}function eH(e){let t=KV()||qV();t===null&&(t=fU().selectEnd()),t.insertNodes(e)}function tH(e,t){for(let n of e.split(/(\r?\n|\t)/))n===`
`||n===`\r
`?t.linebreak():n===`	`?t.tab():n!==``&&t.text(n)}function nH(e){let t=[];return tH(e,{linebreak:()=>t.push(NH()),tab:()=>t.push(gV()),text:e=>t.push(pV(e))}),t}function hle(){let e=KV();return e===null?``:e.getTextContent()}function rH(e){let t=[];for(let n of e)PH(n)||(!Q(n)&&!OH(n)||n.isInline()?t.push(n):Q(n)&&t.push(...rH(n.getChildren())));return t}function iH(e){let t=e;e.isCollapsed()||t.removeText();let n=KV();SV(n)&&(t=n),SV(t)||Lz(161);let r=t.anchor,i=r.getNode(),a=r.offset;for(;!dW(i)&&MW(i)===null;){let e=i;if([i,a]=gle(i,a),e.is(i))break}return a}function gle(e,t){let n=e.getParent();if(!n){let e=IH();return fU().append(e),e.select(),[fU(),0]}if(mV(e)){let r=e.splitText(t);if(r.length===0)return[n,e.getIndexWithinParent()];let i=t===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!Q(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new oJ(vV(e.__key,t,`element`),vV(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function aH(e){return PH(e)||zU(e)||mV(e)||e.isParentRequired()}function oH(e){let t=IH(),n=null;for(let r=0;r<e.length;r++){let i=e[r];if(aH(i)){if(n===null){n=i.createParentElementNode(),t.append(n);let a=e[r+1];if(PH(i)&&(a===void 0||!aH(a)))continue}n.append(i)}else t.append(i),n=null}return t}function sH(e,t,n,r,i=`decorators-and-blocks`){if(t===`move`&&r===`character`&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let a=lG(e.focus,n?`previous`:`next`),o=r===`lineboundary`,s=t===`move`,c=a,l=i===`decorators-and-blocks`;if(!vG(c)){for(let e of c){l=!1;let{origin:t}=e;if(!OH(t)||t.isIsolated()||(c=e,!o||!t.isInline()))break}if(l)for(let e of eG(a).iterNodeCarets(t===`extend`?`shadowRoot`:`root`)){if(qW(e))e.origin.isInline()||(c=e);else{if(Q(e.origin))continue;OH(e.origin)&&!e.origin.isInline()&&(c=e)}break}}if(c===a)return!1;if(s&&!o&&OH(c.origin)&&c.origin.isKeyboardSelectable()){let e=WV();return e.add(c.origin.getKey()),pU(e),!0}return c=_G(c),s&&uG(e.anchor,c),uG(e.focus,c),l||!o}function cH(){return uJ||cJ!==null&&cJ._readOnly}function lH(){uJ&&Lz(13)}function uH(){mJ>99&&Lz(14)}function dH(){return cJ===null&&Lz(195,pH()),cJ}function _le(e){dH()!==null&&lJ===null&&(lJ=e),lJ!==e&&Rz(378)}function fH(){return lJ===null&&Lz(337,pH()),lJ}function vle(){fH()._dirtyType=2}function pH(){let e=0,t=new Set,n=wJ.version;if(typeof window<`u`)for(let r of ZU(document)){let i=JH(r);if(KH(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function mH(){return lJ}function hH(e,t,n){let r=t.__type,i=HH(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e<o&&(a[e](t),t.isAttached());e++);}function gH(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function _H(e,t){if(!t)return;let n=e._updateTags,r=t;Array.isArray(t)||(r=[t]);for(let e of r)n.add(e)}function yle(e){return vH(e,fH()._nodes)}function vH(e,t){let n=e.type,r=t.get(n);r===void 0&&Lz(17,n);let i=r.klass;e.type!==i.getType()&&Lz(18,i.name);let a=i.importJSON(e),o=e.children;if(Q(a)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=vH(o[e],t);a.append(n)}let s=e.$slots;if(s){AW(a)||Lz(379,i.name);for(let e in s)VW(a,e,vH(s[e],t))}return a}function yH(e,t,n){let r=cJ,i=uJ,a=lJ;cJ=t,uJ=!0,lJ=e;try{return n()}finally{cJ=r,uJ=i,lJ=a}}function bH(e,t){let n=fJ;fJ=!0;try{(function(e,t){let n=e._pendingEditorState,r=e._rootElement,i=e._headless||r===null;if(n===null)return void(!e._updating&&e._deferred.length>0&&CH(e,e._deferred));let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==0,l=cJ,u=uJ,d=lJ,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){lJ=e,cJ=n,uJ=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=$ce(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),dJ)throw t;RH(e,null,r,n),qz(e),e._dirtyType=2,dJ=!0,bH(e,a),dJ=!1;return}finally{p.observe(r,hJ),e._updating=f,cJ=l,uJ=u,lJ=d}}n._readOnly||=!0;let h=e._dirtyLeaves,g=e._dirtyElements,_=e._normalizedNodes,v=e._updateTags;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set),e._updateTags=new Set,function(e,t){let n=e._decorators,r=e._pendingDecorators||n,i=t._nodeMap,a;for(a in r)i.has(a)||(r===n&&(r=uU(e)),delete r[a])}(e,n);let y=i?null:JU(RU(e));if(e._editable&&y!==null&&(c||s===null||s.dirty||!s.is(o))&&r!==null&&!v.has(`skip-dom-selection`)){lJ=e,cJ=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&qU(t,e,r),mle(o,s,e,y,v,r)}(function(e,t,n){let r=e._blockCursorElement;if(SV(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(nW(t))){let i=n.anchor,a=i.getNode(),o=i.offset,s=!1,c=null;if(o===a.getChildrenSize())KU(a.getChildAtIndex(o-1))&&(s=!0);else{let t=a.getChildAtIndex(o);if(t!==null&&KU(t)){let n=t.getPreviousSibling();(n===null||KU(n))&&(s=!0,c=e.getElementByKey(t.__key))}}if(s){let n=mW(a,e.getElementByKey(a.__key),e).element;r===null&&(e._blockCursorElement=r=function(e){let t=e.theme,n=$U().createElement(`div`);n.contentEditable=`false`,n.setAttribute(`data-lexical-cursor`,`true`);let r=t.blockCursor;return r!==void 0&&(typeof r==`string`&&(r=t.blockCursor=DG(r)),r!==void 0&&n.classList.add(...r)),n}(e._config)),t.style.caretColor=`transparent`,c===null?n.appendChild(r):n.insertBefore(r,c);return}}r!==null&&qU(r,e,t)})(e,r,s)}finally{p!==null&&p.observe(r,hJ),lJ=d,cJ=l}}m!==null&&function(e,t,n,r,i){let a=Array.from(e._listeners.mutation),o=a.length;for(let e=0;e<o;e++){let[o,s]=a[e];for(let e of s){let a=t.get(e);a!==void 0&&o(a,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,m,v,h,a),SV(s)||s===null||o!==null&&o.is(s)||e.dispatchCommand(WK,void 0);let b=e._pendingDecorators;b!==null&&(e._decorators=b,e._pendingDecorators=null,xH(`decorator`,e,!0,b)),function(e,t,n){let r=dU(t),i=dU(n);r!==i&&xH(`textcontent`,e,!0,i)}(e,t||a,n),xH(`update`,e,!0,{dirtyElements:g,dirtyLeaves:h,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:t||a,tags:v}),!f&&CH(e,e._deferred),(function(e){let t=e._updates;if(t.length===0)return void(e._cascadeCount=0);if(function(e){pJ.has(e)||(pJ.add(e),setTimeout(()=>{pJ.delete(e),e._cascadeCount=0},0))}(e),e._cascadeCount++>99)return e._updates=[],e._cascadeCount=0,void e._onWarn(Error(`One or more update listeners are endlessly enqueueing more updates. May have encountered infinite recursion caused by update listeners that trigger additional updates without a stop condition. Editor namespace: ${e._config.namespace}`));let n=t.shift();if(n){let[t,r]=n;TH(e,t,r)}})(e)})(e,t)}finally{fJ=n}}function xH(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=t._listeners[e],i=Array.from(n);for(let[e,t]of i){t&&t();let i=e(...r);n.has(e)?n.set(e,i):i&&i()}}finally{t._updating=i}}function SH(e,t,n,r){let i=_U(e),a;if(!fJ)for(let e=0;e<i.length;e++)i[e]._updating||(i[e]._cascadeCount=0);for(let e=4;e>=0;e--)for(let o=0;o<i.length;o++){let s=i[o];if(o>0&&s._updating){a=s;break}let c=s._commands.get(t);if(c!==void 0){let t=c[e];if(t.size>0){let e=!1;if(EH(s,()=>{for(let i of t)if(i(n,r))return void(e=!0)}),e)return e}}}return a&&a.update(()=>{SH(a,t,n,r)}),!1}function CH(e,t){if(e._deferred=[],t.length!==0){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}function wH(e,t){let n=e._updates,r=t||!1;for(;n.length!==0;){let t=n.shift();if(t){let[n,i]=t,a=e._pendingEditorState,o;i!==void 0&&(o=i.onUpdate,i.skipTransforms&&(r=!0),i.discrete&&(a===null&&Lz(191),a._flushSync=!0),o&&e._deferred.push(o),_H(e,i.tag)),a==null?TH(e,n,i):n()}}return r}function TH(e,t,n){let r=e._updateTags,i,a=!1,o=!1;n!==void 0&&(i=n.onUpdate,_H(e,n.tag),a=n.skipTransforms||!1,o=n.discrete||!1),i&&e._deferred.push(i);let s=e._editorState,c=e._pendingEditorState,l=!1;(c===null||c._readOnly)&&(c=e._pendingEditorState=AH(c||s),l=!0),c._flushSync=o;let u=cJ,d=uJ,f=lJ,p=e._updating;cJ=c,uJ=!1,e._updating=!0,lJ=e;let m=e._headless||e.getRootElement()===null;VH(null);try{l&&(m?s._selection!==null&&(c._selection=s._selection.clone()):c._selection=function(e,t){let n=e.getEditorState()._selection,r=JU(RU(e));return SV(n)||n==null?GV(n,r,e,t):n.clone()}(e,n&&n.event||null));let r=e._compositionKey;t(),a=wH(e,a),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(SV(r)){let e=r.anchor,t=r.focus,i;if(e.type===`text`&&(i=e.getNode(),i.selectionTransform(n,r)),t.type===`text`){let e=t.getNode();i!==e&&e.selectionTransform(n,r)}}}(c,e),e._dirtyType!==0&&(a?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);mV(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&aB(t)}}(c,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,a=iU(),o=new Map,s=n,c=s.size,l=r,u=l.size;for(;c>0||u>0;){if(c>0){t._dirtyLeaves=new Set;for(let e of s){let r=i.get(e);mV(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&aB(r),r!==void 0&&gH(r,a)&&hH(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){mJ++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,l.delete(`root`)&&l.set(`root`,!0);for(let e of l){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let c=i.get(n);c!==void 0&&gH(c,a)&&hH(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,mJ++}t._dirtyLeaves=n,t._dirtyElements=r}(c,e),wH(e),function(e,t,n,r){let i=e._nodeMap,a=t._nodeMap,o=[];for(let[e]of r){let t=a.get(e);t!==void 0&&(t.isAttached()||(Q(t)&&Uz(t,e,i,a,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of n){let t=a.get(e);t===void 0||t.isAttached()||(AW(t)&&t.__slots!==null&&Uz(t,e,i,a,o,n),i.has(e)||n.delete(e),o.push(e))}for(let e of o)a.delete(e);let s=fH(),c=s._compositionKey;c===null||a.has(c)||(s._compositionKey=null)}(s,c,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(c._flushSync=!0);let i=c._selection;if(SV(i)){e._slotsUsed&&zV(i);let t=c._nodeMap,n=i.anchor.key,r=i.focus.key;t.get(n)!==void 0&&t.get(r)!==void 0||Lz(19)}else CV(i)&&i._nodes.size===0&&(c._selection=null)}catch(t){t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),bH(e);return}finally{cJ=u,uJ=d,lJ=f,e._updating=p,mJ=0}e._dirtyType!==0||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(r!==null){if(r.dirty||!r.is(n))return!0}else if(n!==null)return!0;return!1}(c,e)?c._flushSync?(c._flushSync=!1,bH(e)):l&&DJ(()=>{bH(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function EH(e,t,n){lJ===e&&n===void 0?t():TH(e,t,n)}function ble(e){if(HU(e)){let t=null;for(let n of e.getChildren())t=n.isInline()?(t||n.replace(n.createParentElementNode())).append(n):null}}function Q(e){return e instanceof gJ}function DH(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}function OH(e){return e instanceof _J}function kH(e){return e instanceof vJ}function AH(e){return new yJ(Hz(e._nodeMap),null,e._slotsUsed)}function jH(){return new yJ(new Map([[`root`,new vJ]]),null,!1)}function MH(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Lz(130,n.name),Q(e)){let r=t.children;Array.isArray(r)||Lz(59,n.name);let i=e.getChildren();for(let e=0;e<i.length;e++){let t=MH(i[e]);r.push(t)}}let r=IW(e);if(r.length>0){let i={};for(let t of r){let r=LW(e,t);r===null&&Lz(366,n.name,t),i[t]=MH(r)}t.$slots=i}return t}function xle(e){return e instanceof yJ}function Sle(e){return{node:NH()}}function NH(){return WU(new xJ)}function PH(e){return e instanceof xJ}function Cle(e){let t=e.parentElement;if(t!==null&&uW(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&FH(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&FH(n))return!0}}return!1}function wle(e){let t=e.parentElement;if(t!==null&&uW(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&FH(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&FH(r))return!0}return!1}function FH(e){return ZH(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}function Tle(e){let t=IH();if(bW(t,e),vW(e,t),t.getFormatType()===``){let n=e.getAttribute(`align`);n&&n&&n in iK&&t.setFormat(n)}return yW(t,e),{node:t}}function IH(){return WU(new SJ)}function LH(e){return e instanceof SJ}function Ele(e){console.warn(e)}function RH(e,t,n,r,i){let a=e._keyToDOMMap;a.clear(),e._editorState=jH(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,i&&i.preserveUpdateQueue||(e._updateTags=new Set,e._updates=[],e._cascadeCount=0),e._blockCursorElement=null,e._inputState.handledSelectionCommandTimeoutId!==null&&clearTimeout(e._inputState.handledSelectionCommandTimeoutId),e._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null};let o=e._observer;o!==null&&(o.disconnect(),e._observer=null),t!==null&&(t.textContent=``,function(e,t){let n=`__lexicalKey_${t._key}`;delete e[n]}(t,e)),n!==null&&(n.textContent=``,a.set(`root`,n),sU(n,e,`root`))}function Dle(e){let t=new Set,n=new Set;for(let{klass:r,ownNodeConfig:i}of EW(e)){let e=r.transform;if(!n.has(e)){n.add(e);let i=r.transform();i&&t.add(i)}if(i){let e=i.$transform;e&&t.add(e)}}return t}function zH(e){let t=e||{},n=mH(),r=t.theme||{},i=e===void 0?n:t.parentEditor||null,a=t.disableEvents||!1,o=jH(),s=t.namespace||(i===null?vU():i._config.namespace),c=t.editorState,l=[vJ,eJ,xJ,rJ,SJ,bJ,...t.nodes||[]],{onError:u,onWarn:d,html:f}=t,p=t.editable===void 0||t.editable,m;if(e===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let e=0;e<l.length;e++){let n=l[e],r=null,i=null;if(n&&typeof n==`object`){let e=n;n=e.replace,r=e.with,i=e.withKlass||null}if(typeof n!=`function`||!n.prototype||!(n===Jq||n.prototype instanceof Jq)){let r=`<unknown>`;try{r=JSON.parse(fK)}catch{}Lz(365,String(e-l.length+(t.nodes?t.nodes.length:0)),typeof n==`function`?`${n.name}${typeof n.getType==`function`?` (type ${String(n.getType())})`:``}`:String(n),String(r))}TW(n);let a=n.getType(),o=Dle(n);m.set(a,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,sharedNodeState:Xce(l[e]),transforms:o})}}let h=new wJ(o,i,m,{disableEvents:a,dom:{...CJ,...e&&e.dom},namespace:s,theme:r},u||console.error,d||Ele,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);r===void 0&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{let t=e.klass.importDOM;if(t==null||r.has(t))return;r.add(t);let n=t.call(e.klass);n!==null&&i(n)}),t&&i(t),n}(m,f?f.import:void 0),p,e);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),function(e){e.registerCommand(qK,nle,0),e.registerCommand(JK,rle,0),e.registerCommand(YK,ile,0),e.registerCommand(XK,ale,0),e.registerCommand(lq,ole,0)}(h),h}function Ole(e,t){let n=e.get(t);e.delete(t),n&&n()}function BH(e,t,n){return e.set(t,n),Ole.bind(null,e,t)}function VH(e){TJ=e}function HH(e,t){let n=UH(e,t);return n===void 0&&Lz(30,t),n}function UH(e,t){return e._nodes.get(t)}function WH(e,t){let n=t===void 0?(()=>{let t=e.getRootNode();return QH(t)||YU(t)?rW(t):null})():t;if(!oW(n)||n.hasAttribute(`data-lexical-slot`))return!1;let r=lU(n),i=n.nodeName;return tV(r)&&(i===`INPUT`||i===`TEXTAREA`||n.contentEditable===`true`&&JH(n)==null)}function GH(e,t,n){let r=e.getRootElement();if(!r)return!1;try{if(!t||!r.contains(t)||!r.contains(n))return!1}catch{return!1}return qH(t)===e&&e.read(`latest`,()=>!WH(t))}function KH(e){return e instanceof wJ}function qH(e){let t=e;for(;t!=null;){let e=JH(t);if(KH(e))return e;t=MU(t)}return null}function JH(e){return e?e.__lexicalEditor:null}function kle(e){return eK.test(e)?`rtl`:tK.test(e)?`ltr`:null}function YH(e){return _V(e)||e.isToken()}function XH(e){return YH(e)||e.isSegmented()}function ZH(e){return sW(e)&&e.nodeType===3}function QH(e){return sW(e)&&e.nodeType===9}function Ale(e){let t=e;for(;t!=null;){if(ZH(t))return t;t=t.firstChild}return null}function $H(e,t,n){let r=nK[t];if(n!==null&&(e&r)===(n&r))return e;let i=e^r;return t===`subscript`?i&=~nK.superscript:t===`superscript`?i&=~nK.subscript:t===`lowercase`?(i&=~nK.uppercase,i&=~nK.capitalize):t===`uppercase`?(i&=~nK.lowercase,i&=~nK.capitalize):t===`capitalize`&&(i&=~nK.lowercase,i&=~nK.uppercase),i}function jle(e){return mV(e)||PH(e)||OH(e)}function eU(e,t){let n=function(){let e=TJ;return TJ=null,e}();if((t||=n&&n.__key)!=null)return void(e.__key=t);lH(),uH();let r=fH(),i=dH(),a=``+EJ++;i._nodeMap.set(a,e),Q(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.add(a),r._dirtyType===0&&(r._dirtyType=1),e.__key=a}function tU(e){MW(e)!==null&&Lz(380,e.__key,String(MW(e)));let t=e.getParent();if(t!==null){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),a=e.getNextSibling(),o=a===null?null:a.__key,s=i===null?null:i.__key,c=i===null?null:i.getWritable(),l=a===null?null:a.getWritable();i===null&&(r.__first=o),a===null&&(r.__last=s),c!==null&&(c.__next=o),l!==null&&(l.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function nU(e){uH(),eV(e)&&Lz(323,e.__key,e.__type);let t=e.getLatest(),n=t.__parent===null?jW(t)?t.__slotHost:null:t.__parent,r=dH(),i=fH(),a=r._nodeMap,o=i._dirtyElements;n!==null&&function(e,t,n){let r=e;for(;r!==null;){if(n.has(r))return;let e=t.get(r);if(e===void 0)break;n.set(r,!1),r=e.__parent===null?jW(e)?e.__slotHost:null:e.__parent}}(n,a,o);let s=t.__key;i._dirtyType===0&&(i._dirtyType=1),Q(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function rU(e){lH();let t=fH(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=aU(n);e!==null&&e.getWritable()}if(e!==null){let t=aU(e);t!==null&&t.getWritable()}}}function iU(){return cH()?null:fH()._compositionKey}function aU(e,t){let n=(t||dH())._nodeMap.get(e);return n===void 0?null:n}function oU(e,t){let n=cU(e,fH());return n===void 0?null:aU(n,t)}function sU(e,t,n){e[`__lexicalKey_${t._key}`]=n}function cU(e,t){return e[`__lexicalKey_${t._key}`]}function lU(e,t){let n=e;for(;n!=null;){let e=oU(n,t);if(e!==null)return e;n=MU(n)}return null}function uU(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function dU(e){return e.read(()=>fU().getTextContent())}function fU(){return dH()._nodeMap.get(`root`)}function pU(e){lH();let t=dH();e!==null&&(e.dirty=!0,e.setCachedNodes(null),SV(e)&&fH()._slotsUsed&&zV(e)),t._selection=e}function mU(){lH(),Kz(fH())}function hU(e){let t=function(e,t){let n=e;for(;n!=null;){let e=cU(n,t);if(e!==void 0)return e;n=MU(n)}return null}(e,fH());return t===null?null:aU(t)}function gU(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function _U(e){let t=[];for(let n=e;n!==null;n=n._parentEditor)t.push(n);return t}function vU(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function yU(e){return ZH(e)?e.nodeValue:null}function bU(e,t,n){let r=JU(RU(t));if(r===null)return;let i=tW(r,t._rootElement),a=i.anchorNode,{anchorOffset:o,focusOffset:s}=i;if(a!==null){let t=yU(a),r=lU(a);if(t!==null&&mV(r)){if((t===ZG||t===$G)&&n){let e=n.length;t=n,o=e,s=e}t!==null&&xU(r,t,o,s,e)}}}function xU(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let o=a.isComposing();if(a.isToken()&&o)return;let s=t;if((o||i)&&(t.endsWith(ZG)&&(s=t.slice(0,-ZG.length)),i)){let e=$G,t;for(;(t=s.indexOf(e))!==-1;)s=s.slice(0,t)+s.slice(t+e.length),n!==null&&n>t&&(n=Math.max(t,n-e.length)),r!==null&&r>t&&(r=Math.max(t,r-e.length))}let c=a.getTextContent();if(i||s!==c){let t=KV();if(s===``){if(rU(null),RG||IG||VG)a.remove();else{let e=fH();SU(a,``,t),setTimeout(()=>{e.update(()=>{a.isAttached()&&a.getTextContent()===``&&a.remove()})},20)}return}let i=a.getParent(),c=qV(),l=a.getTextContentSize(),u=iU(),d=a.getKey();if(a.isToken()&&!o||u!==null&&d===u&&!o||SV(c)&&(i!==null&&!i.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===e.__key&&c.anchor.offset===0&&!a.canInsertTextBefore()&&!o||c.focus.key===e.__key&&c.focus.offset===l&&!a.canInsertTextAfter()&&!o))return void a.markDirty();if(!SV(t)||n===null||r===null)return void SU(a,s,t);if(t.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=pV(a.getTextContent());a.replace(e),a=e}SU(a,s,t)}}}function SU(e,t,n){if(e.setTextContent(t),SV(n)){let t=e.getKey(),r=!1;for(let i of[`anchor`,`focus`]){let a=n[i];a.type===`text`&&a.key===t&&(a.offset=XW(e,a.offset,`clamp`),r=!0)}r&&(n._cachedNodes=null,n._cachedIsBackward=null)}}function CU(e,t,n){let r=t[n]||!1;return r===`any`||r===e[n]}function Mle(e,t){return CU(e,t,`altKey`)&&CU(e,t,`ctrlKey`)&&CU(e,t,`shiftKey`)&&CU(e,t,`metaKey`)}function wU(e,t,n){if(!Mle(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1||e.key.length===1&&e.key.charCodeAt(0)<=127)return!1;if(e.code.startsWith(`Digit`)&&/^\d$/.test(t))return e.code===`Digit${t}`;let r=`Key`+t.toUpperCase();return e.code===r}function TU(e){return e.key===`Backspace`}function Nle(e){let t=fU();if(SV(e)){let t=e.anchor,n=e.focus,r=t.getNode();if(kH(r))return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),oB(e),e;let i=r.getTopLevelElementOrThrow(),a=i.getParent();if(a===null)return Q(i)&&(t.set(i.getKey(),0,`element`),n.set(i.getKey(),i.getChildrenSize(),`element`),oB(e)),e;let o=a;return t.set(o.getKey(),0,`element`),n.set(o.getKey(),o.getChildrenSize(),`element`),oB(e),e}{let e=t.select(0,t.getChildrenSize());return pU(oB(e)),e}}function EU(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;let i=e[t];if(typeof i==`string`){let e=DG(i);return n[t]=e,e}return i}function DU(e,t,n,r,i){if(n.size===0)return;let a=r.__type,o=r.__key,s=t.get(a);s===void 0&&Lz(33,a);let c=s.klass,l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));let u=l.get(o),d=u===`destroyed`&&i===`created`;(u===void 0||d)&&l.set(o,d?`updated`:i)}function OU(e,t,n){let r=e.getParent(),i=n,a=e;return r!==null&&(t&&n===0?(i=a.getIndexWithinParent(),a=r):t||n!==a.getChildrenSize()||(i=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?i-1:i)}function Ple(e,t){let n=e.offset;if(e.type===`element`)return OU(e.getNode(),t,n);{let r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return e===null?OU(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function kU(e){let t=RU(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function AU(e,t,n){return SH(e,t,n,e)}function jU(e,t){let n=e._keyToDOMMap.get(t);return n===void 0&&Lz(75,t),n}function MU(e){let t=e.assignedSlot||e.parentElement;if(t!==null)return t;let n=e.parentNode;return YU(n)?n.host:null}function NU(e){return QH(e)?e:oW(e)?e.ownerDocument:null}function PU(e){lH(),fH()._updateTags.add(e)}function FU(e){lH(),fH()._deferred.push(e)}function IU(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function LU(e){let t=NU(e);return t?t.defaultView:null}function RU(e){let t=e._window;return t===null&&Lz(78),t}function zU(e){return Q(e)&&e.isInline()||OH(e)&&e.isInline()}function BU(e){let t=e.getLatest();for(;t!==null;){if(MW(t)!==null&&Q(t))return t;let e=t.getParentOrThrow();if(HU(e))return e;t=e}return t}function VU(e){return Q(e)&&e.isShadowRoot()}function HU(e){return kH(e)||VU(e)}function UU(e,t=!1){let n=e.constructor.clone(e);return eU(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function WU(e){let t=fH(),n=e.getType(),r=UH(t,n);r===void 0&&Lz(200,e.constructor.name,n);let{replace:i,replaceWithKlass:a}=r;if(i!==null){let t=i(e),r=t.constructor;return a===null?t instanceof e.constructor&&r!==e.constructor||Lz(202,r.name,r.getType(),e.constructor.name,n):t instanceof a||Lz(201,a.name,a.getType(),r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&Lz(203,e.constructor.name,n,r.name,r.getType()),t}return e}function GU(e,t){!kH(e.getParent())||Q(t)||OH(t)||Lz(99)}function Fle(e){let t=aU(e);return t===null&&Lz(63,e),t}function KU(e){if(!e||e.isInline())return!1;if(OH(e))return!0;if(Q(e)){if(e.isShadowRoot()){let t=e.getParent();return!(Q(t)&&t.isShadowRoot())}return!e.canBeEmpty()}return!1}function qU(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function JU(e){return jG?(e||window).getSelection():null}function Ile(e){let t=LU(e);return t?t.getSelection():null}function YU(e){return cW(e)&&`host`in e}function XU(e){let t=e.getRootNode();if(t===e||!YU(t))return AJ;let n=[t],r=t.host;for(;;){let e=r.getRootNode();if(e===r||!YU(e))break;n.push(e),r=e.host}return n}function*ZU(e){let t=[e],n;for(;n=t.pop();){yield*n.querySelectorAll(`[data-lexical-editor="true"]`);let e=(QH(n)?n:n.ownerDocument).createTreeWalker(n,NodeFilter.SHOW_ELEMENT),r;for(;r=e.nextNode();)r.shadowRoot&&t.push(r.shadowRoot)}}function QU(e){return e===null?document:e.ownerDocument}function $U(){let e=mH();return QU(e===null?null:e._rootElement)}function eW(e,t){if(t===null||typeof e.getComposedRanges!=`function`)return null;let n=XU(t);if(n.length===0)return null;let r=e.getComposedRanges;try{let t=r.call(e,{shadowRoots:n})[0];if(t!==void 0)return t}catch{}try{let t=r.apply(e,n)[0];if(t!==void 0)return t}catch{}return null}function Lle(e,t){let n=eW(e,t);if(n!==null){let e=Rle(n);if(e!==null)return e}return e.rangeCount>0?e.getRangeAt(0):null}function tW(e,t){let n=eW(e,t);return n===null?e:zle(n,Ble(e))}function Rle(e){let t=e.startContainer.ownerDocument;if(t===null)return null;let n=t.createRange();try{return n.setStart(e.startContainer,e.startOffset),n.setEnd(e.endContainer,e.endOffset),n}catch{return null}}function zle(e,t){let{startContainer:n,startOffset:r,endContainer:i,endOffset:a}=e;return t===`backward`?{anchorNode:i,anchorOffset:a,direction:t,focusNode:n,focusOffset:r}:{anchorNode:n,anchorOffset:r,direction:t,focusNode:i,focusOffset:a}}function Ble(e){return e.direction}function nW(e){let t=e.getRootNode();return QH(t)||YU(t)?t.activeElement:null}function rW(e){let t=e.activeElement;for(;t!==null&&t.shadowRoot!==null;){let e=t.shadowRoot.activeElement;if(e===null)break;t=e}return t}function iW(e){let t=e.target;if(t!==null&&oW(t)&&t.shadowRoot!==null&&typeof e.composedPath==`function`){let t=e.composedPath();if(t.length>0)return t[0]}return t}function aW(e){return oW(e)&&e.tagName===`A`}function oW(e){return sW(e)&&e.nodeType===1}function sW(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function cW(e){return sW(e)&&e.nodeType===11}function lW(e){return!(!oW(e)||!e.style.display.startsWith(`inline`))||jJ.test(e.nodeName)}function uW(e){return(!oW(e)||!e.style.display.startsWith(`inline`))&&MJ.test(e.nodeName)}function dW(e){if(OH(e)&&!e.isInline())return!0;if(!Q(e)||HU(e))return!1;let t=e.getFirstChild(),n=t===null||PH(t)||mV(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function fW(){return fH()}function pW(e=fW()){return e._config.dom||CJ}function mW(e,t,n=fW()){let r=pW(n).$getDOMSlot(e,t,n);return Q(e)&&(Vle(r)||Lz(344,e.getKey(),e.getType())),r}function Vle(e){return e instanceof uK}function hW(e,t,n=fW()){return Ale(mW(e,t,n).element)}function gW(e){if(!e._readOnly&&e.isEmpty())return PJ;e._readOnly||Lz(192);let t=NJ.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),NJ.set(e,t)),t}function _W(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function Hle(e){return(t=_W(e))[Kq]=!0,t;var t}function vW(e,t){let n=e.getAttribute(`data-lexical-indent`);if(n!==null){let e=parseInt(n,10);if(Number.isFinite(e)&&e>=0)return void t.setIndent(e)}let r=parseInt(e.style.paddingInlineStart,10)||0,i=Math.round(r/40);t.setIndent(i)}function yW(e,t){let n=t.getAttribute(`dir`);return n===`ltr`||n===`rtl`?e.setDirection(n):e}function bW(e,t){let n=t.style.textAlign;return n&&n in iK?e.setFormat(n):e}function xW(e,t){e.__lexicalUnmanaged=!0,t&&t.captureSelection!==void 0&&(e.__lexicalCapturedSelection=t.captureSelection)}function SW(e){return!0===e.__lexicalUnmanaged}function Ule(e,t=fW()){let n=t.isEditable();e.contentEditable=n?`true`:`false`,n?e.__lexicalEditor=t:delete e.__lexicalEditor}function CW(e,t){let n=e;for(;n!=null;){if(!0===n.__lexicalCapturedSelection)return!0;if(oW(n)&&n.hasAttribute(`data-lexical-slot`)||cU(n,t)!==void 0)return!1;n=MU(n)}return!1}function wW(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Jq[t]}function TW(e){let t=FJ.get(e);if(t)return t;let n=e.prototype!=null&&cK in e.prototype?e.prototype[cK]():void 0,r=function(e){if(!(e===Jq||e.prototype instanceof Jq)){let t=`<unknown>`,n=`<unknown>`;try{t=e.getType()}catch{}try{wJ.version&&(n=JSON.parse(wJ.version))}catch{}Lz(290,e.name,t,n)}return e===_J||e===gJ||e===Jq}(e),i=!r&&wW(e,`getType`)?e.getType():void 0,a,o=i;if(n)if(i)a=n[i];else{for(let[e,t]of Object.entries(n))o=e,a=t;if(!a)for(let e of Object.getOwnPropertySymbols(n)){let t=n[e];if(t){a=t;break}}}if(!r&&o&&(wW(e,`getType`)||(e.getType=()=>o),wW(e,`clone`)||(e.clone=t=>(VH(t),new e)),wW(e,`importJSON`)||(e.importJSON=a&&a.$importJSON||(t=>new e().updateFromJSON(t))),!wW(e,`importDOM`)&&a)){let{importDOM:t}=a;t&&(e.importDOM=()=>t)}let s={klass:e,ownNodeConfig:a,ownNodeType:o};return FJ.set(e,s),s}function*EW(e){for(let t=e;t&&(t===Jq||tV(t.prototype));){let e=TW(t);yield e,t=e.ownNodeConfig&&e.ownNodeConfig.extends||kW(t)}}function DW(e){let t=fW();return lH(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}function OW(e,t){let n=[],r=e.__first;for(;r!==null;){let e=t===null?aU(r):t.get(r);e??Lz(174),n.push(r),r=e.__next}return n}function kW(e){let t=Object.getPrototypeOf(e);if(typeof t==`function`&&t!==Function.prototype)return t;let n=e.prototype&&Object.getPrototypeOf(e.prototype);return n?n.constructor:null}function AW(e){return Q(e)||OH(e)}function jW(e){return Q(e)||OH(e)}function MW(e){let t=e.getLatest();return jW(t)?t.__slotHost:null}function NW(e){let t=MW(e);if(t===null)return null;let n=aU(t);return Q(n)||OH(n)||Lz(370),n}function Wle(e){let t=NW(e);if(t===null)return null;let n=e.getLatest().__key;for(let[e,r]of FW(t))if(r===n)return e;return null}function PW(e){let t=e.getLatest();for(;t!==null;){if(MW(t)!==null)return t;t=t.getParent()}return null}function FW(e){let t=e.getLatest();return AW(t)&&t.__slots!==null?t.__slots:LJ}function IW(e){return Array.from(FW(e).keys())}function LW(e,t){let n=FW(e).get(t);return n===void 0?null:aU(n)}function RW(e){let t=e.__slots;return t!==null&&t[zJ]===e||(t=new Map(t),t[zJ]=e,e.__slots=t),t}function Gle(e){for(let{ownNodeConfig:t}of EW(e)){let e=t&&t.slots;if(e)return e}return VJ}function zW(e){let t=``;for(let n of IW(e)){let r=LW(e,n);r!==null&&(t+=r.getTextContent())}return t}function BW(e,t,n){let r=n.get(e),i=n.get(t);return r===void 0?i===void 0?e<t?-1:+(e>t):1:i===void 0?-1:r-i}function Kle(e){let t=e.__slots;if(t===null||t.size<2)return;let n=function(e){let t=BJ.get(e);if(t===void 0){let n=Gle(e),r=new Map;for(let t of n)RJ.includes(t)&&Lz(371,e.name,t),r.has(t)&&Lz(372,e.name,t),r.set(t,r.size);t=r,BJ.set(e,t)}return t}(e.constructor),r=null,i=!0;for(let e of t.keys()){if(r!==null&&BW(r,e,n)>0){i=!1;break}r=e}if(i)return;let a=Array.from(t).sort(([e],[t])=>BW(e,t,n));t.clear();for(let[e,n]of a)t.set(e,n)}function VW(e,t,n){t!==`__proto__`&&t!==`constructor`&&t!==`prototype`||Lz(373,t);let r=e.getLatest();if(r.__slots!==null&&r.__slots.get(t)===n.getLatest().__key)return r;(!Q(n)&&!OH(n)||n.isInline())&&Lz(374,n.__key);let i=e.getWritable(),a=RW(i),o=a.get(t);o!==void 0&&HW(o);let s=n.getWritable(),c=NW(s);if(c!==null){let e=Wle(s);e!==null&&RW(c.getWritable()).delete(e),s.__slotHost=null}return tU(s),s.__slotHost=i.__key,a.set(t,s.__key),Kle(i),function(){let e=fW();e._slotsUsed=!0,e._pendingEditorState&&(e._pendingEditorState._slotsUsed=!0)}(),i}function qle(e,t){let n=e.getWritable();if(n.__slots===null)return n;let r=n.__slots.get(t);return r!==void 0&&(HW(r),RW(n).delete(t)),n}function HW(e){let t=aU(e);if(t===null)return;let n=t.getWritable();jW(n)||Lz(377,e),n.__slotHost=null,n.remove()}function UW(e){return HJ[e]}function WW(e,t=`root`){return e===null||GJ[t](e)?null:MW(e)===null?e:null}function GW(e){return e instanceof qJ}function KW(e){return e instanceof KJ}function qW(e){return e instanceof WJ}function JW(e,t){return e?new YJ[t](e):null}function YW(e,t,n){return e?new JJ[t](e,XW(e,n)):null}function XW(e,t,n=`error`){let r=e.getTextContentSize(),i=t===`next`?r:t===`previous`?0:t;return(i<0||i>r)&&(n!==`clamp`&&Rz(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function ZW(e,t){return new QJ(e,t)}function QW(e,t){return Q(e)?new XJ[t](e):null}function Jle(e){return e&&e.getChildCaret()||e}function $W(e){return e&&Jle(e.getAdjacentCaret())}function eG(e){return nG(e,JW(fU(),e.direction))}function tG(e){return nG(e,e)}function nG(e,t){return e.direction!==t.direction&&Lz(265),new ZJ(e,t,e.direction)}function rG(e){let{initial:t,hasNext:n,step:r,map:i}=e,a=t;return{[Symbol.iterator](){return this},next(){if(!n(a))return{done:!0,value:void 0};let e={done:!1,value:i(a)};return a=r(a),e}}}function iG(e,t){let n=cG(e.origin,t.origin);switch(n===null&&Lz(275,e.origin.getKey(),t.origin.getKey()),n.type){case`same`:{let n=e.type===`text`,r=t.type===`text`;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:e.type===`child`?-1:1}case`ancestor`:return e.type===`child`?-1:1;case`descendant`:return t.type===`child`?1:-1;case`branch`:return aG(n)}}function aG(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,a=t,o=n;for(;a&&o;a=a.getNextSibling(),o=o.getNextSibling()){if(a.__key===i)return-1;if(o.__key===r)return 1}return a===null?1:-1}function oG(e,t){return t.is(e)}function sG(e){return Q(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function cG(e,t){if(e.is(t))return{commonAncestor:e,type:`same`};let n=new Map;for(let[t,r]=sG(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,i]=sG(t);r;i=r,r=r.getParent()){let a=n.get(r);if(a!==void 0)return a===null?(oG(e,r)||Lz(276),{commonAncestor:r,type:`ancestor`}):i===null?(oG(t,r)||Lz(277),{commonAncestor:r,type:`descendant`}):((Q(a)||oG(e,a))&&(Q(i)||oG(t,i))&&r.is(a.getParent())&&r.is(i.getParent())||Lz(278),{a,b:i,commonAncestor:r,type:`branch`})}return null}function lG(e,t){let{type:n,key:r,offset:i}=e,a=Fle(e.key);return n===`text`?(mV(a)||Lz(266,a.getType(),r),YW(a,t,i)):(Q(a)||Lz(267,a.getType(),r),xG(a,e.offset,t))}function uG(e,t){let{origin:n,direction:r}=t,i=r===`next`;GW(t)?e.set(n.getKey(),t.offset,`text`):KW(t)?mV(n)?e.set(n.getKey(),XW(n,r),`text`):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!i,`element`):(qW(t)&&Q(n)||Lz(268),e.set(n.getKey(),i?0:n.getChildrenSize(),`element`))}function dG(e){let t=KV(),n=SV(t)?t:UV();return fG(n,e),pU(n),n}function fG(e,t){uG(e.anchor,t.anchor),uG(e.focus,t.focus)}function pG(e){let{anchor:t,focus:n}=e,r=lG(t,`next`),i=lG(n,`next`),a=iG(r,i)<=0?`next`:`previous`;return nG(yG(r,a),yG(i,a))}function mG(e){let{direction:t,origin:n}=e,r=JW(n,UW(t)).getNodeAtCaret();return r?JW(r,t):QW(n.getParentOrThrow(),t)}function hG(e,t=`root`){let n=[e];for(let r=qW(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(mG(r));return n}function gG(e){return!!e&&e.origin.isAttached()}function Yle(e,t=`removeEmptySlices`){if(e.isCollapsed())return e;let n=`root`,r=`next`,i=t,a=bG(e,r),o=hG(a.anchor,n),s=hG(a.focus.getFlipped(),n),c=new Set,l=[];for(let e of a.iterNodeCarets(n))if(qW(e))c.add(e.origin.getKey());else if(KW(e)){let{origin:t}=e;Q(t)&&!c.has(t.getKey())||l.push(t)}for(let e of l)e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),a=mG(JW(t,r)),c=t.getMode();if(Math.abs(e.distance)===n&&i===`removeEmptySlices`||c===`token`&&e.distance!==0)a.remove();else if(e.distance!==0){i=`removeEmptySlices`;let t=e.removeTextSlice(),n=e.caret.origin;if(c===`segmented`){let e=t.origin,n=pV(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());a.replaceOrInsert(n),t=YW(n,r,t.offset)}n.is(o[0].origin)&&(o[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let u,d;for(let e of o)if(gG(e)){u=_G(e);break}for(let e of s)if(gG(e)){d=_G(e);break}let f=function(e,t,n){if(!e||!t)return null;let r=e.getParentAtCaret(),i=t.getParentAtCaret();if(!r||!i)return null;let a=r.getParents().reverse();a.push(r);let o=i.getParents().reverse();o.push(i);let s=Math.min(a.length,o.length),c;for(c=0;c<s&&a[c]===o[c];c++);let l=(e,t)=>{let n;for(let r=c;r<e.length;r++){let i=e[r];if(HU(i))return;!n&&t(i)&&(n=i)}return n},u=l(a,dW),d=u&&l(o,e=>n.has(e.getKey())&&dW(e));return d&&IW(d).length>0?null:u&&d?[u,d]:null}(u,d,c);if(f){let[e,t]=f;QW(e,`previous`).splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){let e=n;n=n.getParent(),e.remove(!0)}}else if(d){let e=function(e){if(qW(e)){let t=e.origin;if(dW(t))return t}else{let t=e.getParentAtCaret();if(t&&dW(t))return t}return null}(d),t=e&&e.getParent(),n=e&&e.getParents().findLast(VU);if(e&&t&&!kH(t)&&e.isEmpty()&&c.has(e.getKey())&&IW(e).length===0&&(!n||c.has(n.getKey()))){e.remove(!0);let n=t;for(;n&&!kH(n)&&n.isEmpty();){let e=n.getParent();if(e&&kH(e)&&e.getChildrenSize()<=1)break;let t=n;n=e,t.remove(!0)}}}let p=[u,d,...o,...s].find(gG);if(p)return tG(yG(_G(p),e.direction));Lz(269,JSON.stringify(o.map(e=>e.origin.__key)))}function _G(e){let t=function(e){let t=e;for(;qW(t);){let e=$W(t);if(!qW(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(mV(t.origin))return GW(t)?t:YW(t.origin,n,n);let r=t.getAdjacentCaret();return KW(r)&&mV(r.origin)?YW(r.origin,n,UW(n)):t}function vG(e){return GW(e)&&e.offset!==XW(e.origin,e.direction)}function yG(e,t){return e.direction===t?e:e.getFlipped()}function bG(e,t){return e.direction===t?e:nG(yG(e.focus,t),yG(e.anchor,t))}function xG(e,t,n){let r=QW(e,`next`);for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(e===null)break;r=e}return yG(r,n)}function Xle(e){let{origin:t,offset:n,direction:r}=e;if(n===XW(t,r))return e.getSiblingCaret();if(n===XW(t,UW(r)))return mG(e.getSiblingCaret());let[i]=t.splitText(n);return mV(i)||Lz(281),yG(JW(i,`next`),r)}function Zle(e,t){return!0}function SG(e,{$copyElementNode:t=UU,$splitTextPointCaretNext:n=Xle,rootMode:r=`shadowRoot`,$shouldSplit:i=Zle,removeEmptyDestination:a=!1}={}){if(GW(e))return n(e);let o=e.getParentCaret(r);if(o){let{origin:n}=o;if(qW(e)){let e=mG(o);if(a&&n.isEmpty())return n.remove(),e;if(!n.canBeEmpty()||!i(n,`first`))return e}let r=function(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||!a&&n.canBeEmpty()&&i(n,`last`))&&o.insert(t(n).splice(0,0,r))}return o}function CG(e,t,n){let r=yG(t,`next`);GW(r)&&(r.offset===0?r=JW(r.origin,`previous`).getFlipped():r.offset===r.origin.getTextContentSize()&&(r=JW(r.origin,`next`))),r.origin.is(e)&&(KW(r)||Lz(342,e.getKey(),e.getType()),r=mG(r)),(e.is(r.getNodeAtCaret())||e.is(r.getFlipped().getNodeAtCaret()))&&e.remove(!0);for(let e=r;e;e=SG(e,n))r=e;return GW(r)&&Lz(283),r.insert(e.isInline()?IH().append(e):e),yG(JW(e.getLatest(),`next`),t.direction)}function wG(e){return e}function TG(e){return e}function EG(e,t){if(!t||e===t)return e;for(let n in t)if(e[n]!==t[n])return{...e,...t};return e}function DG(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function OG(e,...t){let n=DG(...t);n.length>0&&e.classList.add(...n)}function kG(e,...t){let n=DG(...t);n.length>0&&e.classList.remove(...n)}function AG(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}var jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK,SK,CK,wK,TK,EK,DK,OK,kK,AK,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,HK,UK,WK,GK,KK,qK,JK,YK,XK,ZK,QK,$K,eq,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ,RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J=s((()=>{jG=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,MG=jG&&`documentMode`in document?document.documentMode:null,NG=jG&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),PG=jG&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),FG=!(!jG||!(`InputEvent`in window)||MG)&&`getTargetRanges`in new window.InputEvent(`input`),IG=jG&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,LG=jG&&/Android/.test(navigator.userAgent),RG=jG&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!LG,zG=jG&&/^(?=.*Chrome).*/i.test(navigator.userAgent),BG=jG&&LG&&zG,VG=jG&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&NG&&!zG,HG=0,UG=1,WG=2,GG=1,KG=2,qG=3,JG=4,YG=5,XG=6,ZG=RG||IG||VG?`\xA0`:`​`,QG=`

`,$G=PG?`\xA0`:ZG,eK=RegExp(`^[^A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-]*[֑-߿יִ-﷽ﹰ-ﻼ]`),tK=RegExp(`^[^֑-߿יִ-﷽ﹰ-ﻼ]*[A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-]`),nK={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},rK={directionless:1,unmergeable:2},iK={center:2,end:6,justify:4,left:1,right:3,start:5},aK={[KG]:`center`,[XG]:`end`,[JG]:`justify`,[GG]:`left`,[qG]:`right`,[YG]:`start`},oK={normal:0,segmented:2,token:1},sK={[HG]:`normal`,[WG]:`segmented`,[UG]:`token`},cK=`$config`,lK=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&&Lz(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&Lz(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&Lz(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=Bz(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=Bz(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}},uK=class e extends lK{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(;Gce(t);)e=t,t=t.nextSibling;let n=e?e.nextSibling:this.element.firstChild;return n!==null&&n===zz()?n:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(this.element.__lexicalLastChildKind=e,e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(VG||IG||RG);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=$U().createElement(`br`);if(i.setAttribute(`data-lexical-managed-linebreak`,`true`),n.insertBefore(i,r),e){let e=$U().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=zz(),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=Vz(t,n);i.push(r);let a=Vz(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]}};try{dK=`0.48.0+prod.esm`}catch{}fK=dK??`"<unknown>+source"`,pK=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]()}},mK=null,hK=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===mK?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===mK?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!==mK&&n!==void 0||(this._size++,n===mK&&r.delete(e)),r.set(e,t),this}delete(e){let t=this.has(e);return t&&(this.getNursery().set(e,mK),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!==mK&&(r!==void 0&&(n[1]=r),yield n)}if(e)for(let n of e)n[1]===mK||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()}},gK=!1,_K=0,vK=`latest`,yK=class{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||Zce).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}},bK=new Set([`__proto__`,`constructor`,`prototype`]),xK=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 $z(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(bK.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=$z(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){if(bK.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)}},SK=Symbol.for(`@lexical/CachedTextSize`),CK=4,DK=``,OK=null,kK=null,AK=null,VK=!1,HK=!1,UK=`40px`,WK=FB(`SELECTION_CHANGE_COMMAND`),GK=FB(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),KK=FB(`CLICK_COMMAND`),qK=FB(`BEFORE_INPUT_COMMAND`),JK=FB(`INPUT_COMMAND`),YK=FB(`COMPOSITION_START_COMMAND`),XK=FB(`COMPOSITION_END_COMMAND`),ZK=FB(`DELETE_CHARACTER_COMMAND`),QK=FB(`INSERT_LINE_BREAK_COMMAND`),$K=FB(`INSERT_PARAGRAPH_COMMAND`),eq=FB(`CONTROLLED_TEXT_INSERTION_COMMAND`),tq=FB(`PASTE_COMMAND`),nq=FB(`REMOVE_TEXT_COMMAND`),rq=FB(`DELETE_WORD_COMMAND`),iq=FB(`DELETE_LINE_COMMAND`),aq=FB(`FORMAT_TEXT_COMMAND`),oq=FB(`SET_TEXT_FORMAT_COMMAND`),sq=FB(`UNDO_COMMAND`),cq=FB(`REDO_COMMAND`),lq=FB(`KEYDOWN_COMMAND`),uq=FB(`KEY_ARROW_RIGHT_COMMAND`),dq=FB(`MOVE_TO_END`),fq=FB(`KEY_ARROW_LEFT_COMMAND`),pq=FB(`MOVE_TO_START`),mq=FB(`KEY_ARROW_UP_COMMAND`),hq=FB(`KEY_ARROW_DOWN_COMMAND`),gq=FB(`KEY_ENTER_COMMAND`),_q=FB(`KEY_SPACE_COMMAND`),vq=FB(`KEY_BACKSPACE_COMMAND`),yq=FB(`KEY_ESCAPE_COMMAND`),bq=FB(`KEY_DELETE_COMMAND`),xq=FB(`KEY_TAB_COMMAND`),Sq=FB(`INSERT_TAB_COMMAND`),Cq=FB(`INDENT_CONTENT_COMMAND`),wq=FB(`OUTDENT_CONTENT_COMMAND`),Tq=FB(`DROP_COMMAND`),Eq=FB(`FORMAT_ELEMENT_COMMAND`),Dq=FB(`DRAGSTART_COMMAND`),Oq=FB(`DRAGOVER_COMMAND`),kq=FB(`DRAGEND_COMMAND`),Aq=FB(`COPY_COMMAND`),jq=FB(`CUT_COMMAND`),Mq=FB(`SELECT_ALL_COMMAND`),Nq=FB(`CLEAR_EDITOR_COMMAND`),Pq=FB(`CLEAR_HISTORY_COMMAND`),Fq=FB(`CAN_REDO_COMMAND`),Iq=FB(`CAN_UNDO_COMMAND`),Lq=FB(`FOCUS_COMMAND`),Rq=FB(`BLUR_COMMAND`),zq=FB(`KEY_MODIFIER_COMMAND`),Bq=Object.freeze({}),Vq=[[`keydown`,function(e,t){let n=t._inputState;n.lastKeyDownTimeStamp=e.timeStamp,n.lastKeyCode=e.key,e.key!==`Backspace`&&UB(n),!t.isComposing()&&AU(t,lq,e)}],[`pointerdown`,function(e,t){let n=iW(e),r=e.pointerType;sW(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&EH(t,()=>{CW(n,t)||(t._inputState.isSelectionChangeFromMouseDown=!0)})}],[`compositionstart`,function(e,t){AU(t,YK,e)}],[`compositionend`,function(e,t){let n=t._inputState;PG?n.compositionPhase=`ending-firefox`:IG||!RG&&!VG?AU(t,XK,e):(n.compositionPhase=`ending-safari`,n.compositionEndData=e.data)}],[`input`,function(e,t){e.stopPropagation();let n=t._inputState;UB(n),EH(t,()=>{GB(e,t)||t.dispatchCommand(JK,e)},{event:e}),n.unprocessedBeforeInputData=null}],[`click`,function(e,t){EH(t,()=>{let n=KV(),r=JU(RU(t)),i=qV();if(r){if(SV(n)){let e=n.anchor,t=e.getNode();e.type===`element`&&e.offset===0&&n.isCollapsed()&&!kH(t)&&fU().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=tW(r,t._rootElement).anchorNode;(oW(n)||ZH(n))&&pU(GV(i,r,t,e))}}AU(t,KK,e)})}],[`cut`,Bq],[`copy`,Bq],[`dragstart`,Bq],[`dragover`,Bq],[`dragend`,Bq],[`paste`,Bq],[`focus`,Bq],[`blur`,Bq],[`drop`,Bq]],FG&&Vq.push([`beforeinput`,(e,t)=>function(e,t){let n=e.inputType;n===`deleteCompositionText`||PG&&kU(t)||n!==`insertCompositionText`&&EH(t,()=>{GB(e,t)||AU(t,qK,e)},{event:e})}(e,t)]),Hq=new WeakMap,Uq=new WeakMap,Wq=ele(e=>(e.addEventListener(`selectionchange`,YB),()=>e.removeEventListener(`selectionchange`,YB))),Gq=new Map,Kq=Symbol.for(`ephemeral`),qq={configurable:!0,enumerable:!1,value:void 0,writable:!0},Jq=class{__type;__key;__parent;__prev;__next;__state;[SK];static getType(){let{ownNodeType:e}=TW(this);return e===void 0&&Lz(64,this.name),e}static clone(e){Lz(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||kW(this.constructor);return Object.assign(t,{extends:n}),typeof e==`string`&&Object.assign(t,{type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&=this.__state.getWritable(this).resetOnCopyNode()}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",qq),Object.defineProperty(this,SK,qq),eU(this,e)}getType(){return this.__type}isInline(){Lz(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e===`root`)return!0;let t=aU(e);if(t===null)break;e=t.__parent===null?MW(t):t.__parent}return!1}isSelected(e){let t=e||KV();if(t==null)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(mV(this))return n;if(SV(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(OH(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),n=0;for(;t!==null;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:aU(e)}getParentOrThrow(){let e=this.getParent();return e===null&&Lz(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let t=e.getParent();if(HU(t)||MW(e)!==null)return Q(e)||e===this&&OH(e)||Lz(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&Lz(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:aU(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(t===null)return e;let n=t.getFirstChild();for(;n!==null&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return e===null?null:aU(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=Q(this)?this:this.getParent(),n=Q(e)?e:e.getParent(),r=t&&n?cG(t,n):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){let t=cG(this,e);return t!==null&&(t.type===`descendant`||(t.type===`branch`?aG(t)===-1:(t.type!==`same`&&t.type!==`ancestor`&&Lz(279),!1)))}isParentOf(e){return IU(e,this)}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set,i=this;for(;i!==null;){let a=i.__key;if(r.has(a)||(r.add(a),n.push(i)),i===e)break;let o=Q(i)?t?i.getFirstChild():i.getLastChild():null;if(o!==null){i=o;continue}let s=t?i.getNextSibling():i.getPreviousSibling();if(s!==null){i=s;continue}let c=i.getParentOrThrow();if(r.has(c.__key)||n.push(c),c===e)break;let l=null,u=c;do{if(u===null&&Lz(68),l=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;l!==null||r.has(u.__key)||n.push(u)}while(l===null);i=l}return t||n.reverse(),n}isDirty(){let e=fH()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(eV(this))return this;let e=aU(this.__key);return e===null&&Lz(113),e}getWritable(){if(eV(this))return this;lH();let e=dH(),t=fH(),n=e._nodeMap,r=this.__key,i=this.getLatest(),a=t._cloneNotNeeded,o=KV();if(o!==null&&o.setCachedNodes(null),a.has(r))return nU(i),i;let s=_W(i);return a.add(r),nU(s),n.set(r,s),s}getTextContent(){return zW(this)}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){Lz(70)}updateDOM(e,t,n){Lz(71)}getDOMSlot(e){return new lK(e)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Lz(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of Qz(n).flatKeys)e in t&&(i!==void 0&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&Zz(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){QB(this,!0,e)}replace(e,t){lH();let n=KV();n!==null&&(n=n.clone()),GU(this,e);let r=this.getLatest(),i=this.__key,a=e.__key,o=e.getWritable(),s=this.getParentOrThrow().getWritable(),c=s.__size,l=o.getParent(),u=l===null?-1:o.getIndexWithinParent();tU(o),l!==null&&SV(n)&&JV(n,l,u,-1);let d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;QB(r,!1,!0),d===null?s.__first=a:d.getWritable().__next=a,o.__prev=p,f===null?s.__last=a:f.getWritable().__prev=a,o.__next=m,o.__parent=h,s.__size=c;let g=0;t&&(Q(this)&&Q(o)||Lz(139),g=o.getChildrenSize(),o.splice(g,0,this.getChildren()));let _=IW(this);if(_.length>0){AW(this)&&AW(o)||Lz(368,this.__key,o.__key);for(let e of _){let t=LW(this,e);t!==null&&(qle(this,e),VW(o,e,t))}}if(SV(n)){pU(n);let e=n.anchor,r=n.focus;e.key===i&&(t&&e.type===`element`?e.set(o.__key,g+e.offset,`element`):bV(e,o)),r.key===i&&(t&&r.type===`element`?r.set(o.__key,g+r.offset,`element`):bV(r,o))}return iU()===i&&rU(a),o}insertAfter(e,t=!0){lH(),GU(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.getParent(),a=KV(),o=!1,s=!1;if(i!==null){let n=e.getIndexWithinParent();if(SV(a)){let e=i.__key,t=a.anchor,r=a.focus;o=t.type===`element`&&t.key===e&&t.offset===n+1,s=r.type===`element`&&r.key===e&&r.offset===n+1}tU(r),t&&SV(a)&&JV(a,i,n,-1)}else tU(r);let c=this.getNextSibling(),l=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(c===null?l.__last=u:c.getWritable().__prev=u,l.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&SV(a)){let e=this.getIndexWithinParent();JV(a,l,e+1);let t=l.__key;o&&a.anchor.set(t,e+2,`element`),s&&a.focus.set(t,e+2,`element`)}return e}insertBefore(e,t=!0){lH(),GU(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.__key,a=KV(),o=r.getParent(),s=o===null?-1:r.getIndexWithinParent();tU(r),o!==null&&t&&SV(a)&&JV(a,o,s,-1);let c=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),u=n.__prev,d=this.getIndexWithinParent();return c===null?l.__first=i:c.getWritable().__next=i,l.__size++,n.__prev=i,r.__prev=u,r.__next=n.__key,r.__parent=n.__parent,t&&SV(a)&&JV(a,this.getParentOrThrow(),d),e}isParentRequired(){return!1}createParentElementNode(){return IH()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){lH();let n=NW(this);if(n!==null)return n.selectPrevious(e,t);let r=this.getPreviousSibling(),i=this.getParentOrThrow();if(r===null)return i.select(0,0);if(Q(r))return r.select();if(!mV(r)){let e=r.getIndexWithinParent()+1;return i.select(e,e)}return r.select(e,t)}selectNext(e,t){lH();let n=NW(this);if(n!==null)return n.selectNext(e,t);let r=this.getNextSibling(),i=this.getParentOrThrow();if(r===null)return i.select();if(Q(r))return r.select(0,0);if(!mV(r)){let e=r.getIndexWithinParent();return i.select(e,e)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},Yq=`history-push`,Xq=`history-merge`,Zq=`skip-selection-focus`,Qq=`composition-end`,$q=`!important`,eJ=class e extends Jq{__text;__format;__style;__mode;__detail;get __isInlineFormattable(){return!0}static getType(){return`text`}static clone(t){return new e(t.__text,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e=``,t){super(t),this.__text=e,this.__format=0,this.__style=``,this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return sK[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===iU()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=nK[e];return(this.getFormat()&t)!==0}isSimpleText(){return this.__type===`text`&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return $H(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=iV(0,n),i=aV(0,n),a=r===null?i:r,o=$U().createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=$U().createElement(i),o.appendChild(s)),cV(s,this,0,n,this.__text,e);let c=this.__style;return c!==``&&rV(o.style,c),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,a=this.__format,o=iV(0,i),s=iV(0,a),c=aV(0,i),l=aV(0,a);if((o===null?c:o)!==(s===null?l:s))return!0;if(o===s&&c!==l){let e=t.firstChild;e??Lz(48);let i=$U().createElement(l);return cV(i,this,0,a,r,n),t.replaceChild(i,e),!1}let u=t;s!==null&&o!==null&&(u=t.firstChild,u??Lz(49)),sV(r,u,this);let d=n.theme.text;d!==void 0&&i!==a&&oV(0,i,a,u,d);let f=e.__style,p=this.__style;return f!==p&&rV(t.style,p,f),!1}static importDOM(){return{"#text":()=>({conversion:fle,priority:0}),b:()=>({conversion:ule,priority:0}),code:()=>({conversion:fV,priority:0}),em:()=>({conversion:fV,priority:0}),i:()=>({conversion:fV,priority:0}),mark:()=>({conversion:fV,priority:0}),s:()=>({conversion:fV,priority:0}),span:()=>({conversion:lle,priority:0}),strong:()=>({conversion:fV,priority:0}),sub:()=>({conversion:fV,priority:0}),sup:()=>({conversion:fV,priority:0}),u:()=>({conversion:fV,priority:0})}}static importJSON(e){return pV().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return oW(t)||Lz(132),t.style.whiteSpace=`pre-wrap`,this.hasFormat(`lowercase`)?t.style.textTransform=`lowercase`:this.hasFormat(`uppercase`)?t.style.textTransform=`uppercase`:this.hasFormat(`capitalize`)&&(t.style.textTransform=`capitalize`),this.hasFormat(`bold`)&&(t=lV(t,`b`)),this.hasFormat(`italic`)&&(t=lV(t,`i`)),this.hasFormat(`strikethrough`)&&(t=lV(t,`s`)),this.hasFormat(`underline`)&&(t=lV(t,`u`)),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format=typeof e==`string`?nK[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?rK[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=$H(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=oK[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){lH();let n=e,r=t,i=KV(),a=this.getTextContent(),o=this.__key;if(typeof a==`string`){let e=a.length;n===void 0&&(n=e),r===void 0&&(r=e)}else n=0,r=0;if(!SV(i))return HV(o,n,o,r,`text`,`text`);{let e=iU();e!==i.anchor.key&&e!==i.focus.key||rU(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,o=n.length,s=e;s<0&&(s=o+s,s<0&&(s=0));let c=KV();if(r&&SV(c)){let t=e+o;c.setTextNodeRange(i,t,i,t)}return i.__text=a.slice(0,s)+n+a.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){lH();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=iU(),a=n.length;e.sort((e,t)=>e-t),e.push(a);let o=[],s=e.length;for(let t=0,r=0;t<a&&r<=s;r++){let i=e[r];i>t&&(o.push(n.slice(t,i)),t=i)}let c=o.length;if(c===1)return[t];let l=o[0],u=t.getParent(),d,f=t.getFormat(),p=t.getStyle(),m=t.__detail,h=!1,g=null,_=null,v=KV();if(SV(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];e.type===`text`&&e.key===r&&(g=e),t.type===`text`&&t.key===r&&(_=t)}t.isSegmented()?(d=pV(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=nB(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e<c;e++){let n=pV(o[e]);n.__format=f,n.__style=p,n.__detail=m,n.__state=nB(t,n);let a=n.__key;i===r&&rU(a),y.push(n)}let b=g?g.offset:null,x=_?_.offset:null,S=0;for(let e of y){if(!g&&!_)break;let t=S+e.getTextContentSize();if(g!==null&&b!==null&&b<=t&&b>=S&&(g.set(e.getKey(),b-S,`text`),b<t&&(g=null)),_!==null&&x!==null&&x<=t&&x>=S){_.set(e.getKey(),x-S,`text`);break}S=t}if(u!==null){(function(e){let t=e.getPreviousSibling(),n=e.getNextSibling();t!==null&&nU(t),n!==null&&nU(n)})(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),SV(v)&&JV(v,u,t,c-1)}return y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||Lz(50);let n=this.__key,r=e.__key,i=this.__text,a=i.length;iU()===r&&rU(n);let o=KV();if(SV(o)){let i=o.anchor,s=o.focus;i!==null&&i.key===r&&ZV(i,t,n,e,a),s!==null&&s.key===r&&ZV(s,t,n,e,a)}let s=e.__text,c=t?s+i:i+s;this.setTextContent(c);let l=this.getWritable();return e.remove(),l}isTextEntity(){return!1}},tJ=new WeakMap,nJ={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`},rJ=class e extends eJ{static getType(){return`tab`}static clone(t){return new e(t.__key)}constructor(e){super(`	`,e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=EU(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}static importJSON(e){return gV().updateFromJSON(e)}setTextContent(e){return super.setTextContent(`	`)}spliceText(e,t,n,r){return n===``&&t===0||n===`	`&&t===1||Lz(286),this}setDetail(e){return e!==2&&Lz(127),this}setMode(e){return e!==`normal`&&Lz(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}},iJ=class{key;offset;type;_selection;constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:iG(_G(lG(this,`next`)),_G(lG(e,`next`)))<0}getNode(){let e=aU(this.key);return e===null&&Lz(20),e}set(e,t,n,r){let i=this._selection,a=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,cH()||(iU()===a&&rU(e),i!==null&&(i.setCachedNodes(null),SV(i)&&(i._cachedIsBackward=null),i.dirty=!0)))}},aJ=class e{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!CV(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new e(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t=this.getNodes().filter(e=>MW(e)===null),n=t.length;if(n===0)return;let r=t[n-1],i;if(mV(r))i=r.select();else{let e=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(e,e)}i.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=this._nodes,n=[];for(let e of t){let t=aU(e);t!==null&&n.push(t)}return cH()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t=``;for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes().filter(e=>MW(e)===null);if((KV()||qV())===this&&e[0]){let t=JW(e[0],`next`);dG(nG(t,t))}for(let t of e)t.remove();xV()}},oJ=class e{format;style;anchor;focus;_cachedNodes;_cachedIsBackward;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this._cachedIsBackward=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!SV(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);let i=new Set,a=new Set;for(let n of e)if(qW(n)){let{origin:e}=n;t.length===0?i.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;Q(e)&&a.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),KW(e.focus)&&Q(e.focus.origin)&&e.focus.getNodeAtCaret()===null)for(let n=QW(e.focus.origin,`previous`);qW(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=$W(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!Q(e)||a.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(t.length===0&&e.isCollapsed()){let n=_G(e.anchor),r=_G(e.anchor.getFlipped()),i=e=>GW(e)?e.origin:e.getNodeAtCaret(),a=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}(bG(pG(this),`next`));return cH()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){return this.anchor.set(e.__key,t,`text`),this.focus.set(n.__key,r,`text`),this}getTextContent(){let e=this.getNodes();if(e.length===0)return``;let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,a=r.isBefore(i),[o,s]=DV(this),c=``,l=!0;for(let u=0;u<e.length;u++){let d=e[u];if(Q(d)&&!d.isInline()){l||(c+=`
`);let e=``;for(let t of IW(d)){let n=LW(d,t);n!==null&&(e+=n.getTextContent())}e===``?l=!d.isEmpty():(c+=e,l=!1)}else if(l=!1,mV(d)){let e=d.getTextContent();d===t?d===n?r.type===`element`&&i.type===`element`&&i.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=a?e.slice(o):e.slice(s):d===n&&(e=a?e.slice(0,s):e.slice(0,o)),c+=e}else!OH(d)&&!PH(d)||d===n&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(e){let t=fH(),n=t.getEditorState()._selection,r=BV(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(r===null)return;let[i,a,o]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(a.key,a.offset,a.type,!0),o&&(this.dirty=!0),oB(this)}clone(){let t=this.anchor,n=this.focus;return new e(vV(t.key,t.offset,t.type),vV(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=$H(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=nK[e];return(this.format&t)!==0}insertRawText(e){this.insertNodes(nH(e))}insertText(e){let t=this.anchor,n=this.focus,r=this.format,i=this.style,a=t,o=n;!this.isCollapsed()&&n.isBefore(t)&&(a=n,o=t),a.type===`element`&&function(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=pV();if(o.setFormat(n),o.setStyle(r),LH(a))a.splice(0,0,[o]);else if(a!==null){let e=HU(i)?IH().append(o):o;a.insertBefore(e)}else if(HU(i)){let e=i.getLastChild();Q(e)&&!e.isInline()&&e.isEmpty()?e.append(o):i.append(IH().append(o))}else i.append(o);e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}(a,o,r,i),o.type===`element`&&uG(o,_G(lG(o,`next`)));let s=a.offset,c=o.offset,l=this.getNodes(),u=l.length,d=l[0];mV(d)||Lz(26);let f=d.getTextContent().length,p=d.getParentOrThrow(),m=l[u-1];if(u===1&&o.type===`element`&&(c=f,o.set(a.key,c,`text`)),this.isCollapsed()&&s===f&&(XH(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&d.getNextSibling()===null)){let t=d.getNextSibling(),n;if(mV(t)&&t.canInsertTextBefore()&&!XH(t)?n=t:(n=pV(),n.setFormat(r),n.setStyle(i),p.canInsertTextAfter()?d.insertAfter(n):p.insertAfter(n)),n.select(0,0),d=n,e!==``)return void this.insertText(e)}else if(this.isCollapsed()&&s===0&&(XH(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&d.getPreviousSibling()===null)){let t=d.getPreviousSibling(),n;if(!mV(t)||XH(t)?(n=pV(),n.setFormat(r),p.canInsertTextBefore()?d.insertBefore(n):p.insertBefore(n)):n=t,n.select(),d=n,e!==``)return void this.insertText(e)}else if(d.isSegmented()&&s!==f)if(iU()!==null)d=d.setMode(`normal`).setFormat(r).setStyle(i);else{let e=pV(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&e!==``){let t=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||Q(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(``),IV(this.anchor,this.focus),void this.insertText(e)}if(u===1){if(YH(d)){let t=pV(e);t.select(),d.replace(t);return}let t=d.getFormat(),n=d.getStyle();if(s!==c||t===r&&n===i){if(_V(d)){let t=pV(e);t.setFormat(r),t.setStyle(i),t.select(),d.replace(t);return}}else{if(d.getTextContent()!==``){let t=pV(e);if(t.setFormat(r),t.setStyle(i),t.select(),s===0)d.insertBefore(t,!1);else{let[e]=d.splitText(s);e.insertAfter(t,!1)}t.isComposing()&&this.anchor.type===`text`&&(this.anchor.offset-=e.length,this._cachedNodes=null,this._cachedIsBackward=null);return}d.setFormat(r),d.setStyle(i)}let a=c-s;d=d.spliceText(s,a,e,!0),d.getTextContent()===``?d.remove():this.anchor.type===`text`&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length,this._cachedNodes=null,this._cachedIsBackward=null))}else{let t=new Set([...d.getParentKeys(),...m.getParentKeys()]),n=Q(d)?d:d.getParentOrThrow(),r=Q(m)?m:m.getParentOrThrow(),i=m;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if(o.type===`text`&&(c!==0||m.getTextContent()===``)||o.type===`element`&&m.getIndexWithinParent()<c)if(mV(m)&&!YH(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){let e=pV(m.getTextContent());m.replace(e),m=e}kH(o.getNode())||o.type!==`text`||(mV(m)||Lz(395),m=m.spliceText(0,c,``)),t.add(m.__key)}else{let e=m.getParentOrThrow();e.canBeEmpty()||e.getChildrenSize()!==1?m.remove():e.remove()}else t.add(m.__key);let a=r.getChildren(),p=new Set(l),h=n.is(r),g=n.isInline()&&d.getNextSibling()===null?n:d;for(let e=a.length-1;e>=0;e--){let t=a[e];if(t.is(d)||Q(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(i)?h||g.insertAfter(t,!1):t.remove())}if(!h){let e=r,n=null;for(;e!==null;){let r=e.getChildren(),i=r.length;(i===0||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(YH(d))if(s===f)d.select();else{let t=pV(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),d.getTextContent()===``?d.remove():this.anchor.type===`text`&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length,this._cachedNodes=null,this._cachedIsBackward=null));for(let e=1;e<u;e++){let n=l[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=KV()===this;fG(this,Yle(pG(this))),e&&KV()!==this&&pU(this)}formatText(e,t=null){TV(this,e,t)}insertNodes(e){if(e.length===0)return;this.isCollapsed()||this.removeText();let t=this.anchor.getNode();if(this.anchor.type===`element`&&Q(t)&&MW(t)!==null){let n=t.isShadowRoot()?t.getFirstChild()??t.append(IH()).getFirstChild():t.getFirstChild();if(t.isShadowRoot()&&n!==null&&!Q(n)){let e=IH();n.insertBefore(e),n=e}if(n!==null){n.selectStart();let t=KV();return SV(t)||Lz(369),t.insertNodes(e)}}if(this.anchor.type===`element`&&HU(t)){let n=oH(e),r=n.getLastDescendant();t.splice(this.anchor.offset,0,n.getChildren()),r!==null&&r.selectEnd();return}let n=(this.isBackward()?this.focus:this.anchor).getNode(),r=IJ(n,dW),i=e[e.length-1];if(Q(r)&&`__language`in r){if(`__language`in e[0])this.insertText(e[0].getTextContent());else{let t=iH(this);r.splice(t,0,e),i.selectEnd()}return}if(!e.some(e=>(Q(e)||OH(e))&&!e.isInline())){Q(r)||Lz(211,n.constructor.name,n.getType());let t=iH(this);r.splice(t,0,e),i.selectEnd();return}if(Q(r)&&MW(r)!==null){let t=iH(this),n=rH(e);r.splice(t,0,n);let i=n[n.length-1];i===void 0?r.select(t,t):i.selectEnd();return}if(r===null){let t=oH(e),n=t.getLastDescendant(),r=lG(this.anchor,`next`);for(let e of t.getChildren())r=CG(e,r);n!==null&&n.selectEnd();return}if(Q(r)&&!r.isParentRequired()&&!HU(r.getParentOrThrow())){let t=iH(this),n=rH(e);r.splice(t,0,n);let i=n[n.length-1];i===void 0?r.select(t,t):i.selectEnd();return}let a=oH(e),o=a.getLastDescendant(),s=a.getChildren(),c=!Q(r)||!r.isEmpty()?this.insertParagraph():null;c&&!r.isAttached()&&(n=this.anchor.getNode(),r=IJ(n,dW));let l=s[s.length-1],u=s[0];var d;Q(d=u)&&dW(d)&&!d.isEmpty()&&Q(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(Q(r)||Lz(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=s[1]),u&&(r===null&&Lz(212,n.constructor.name,n.getType()),function(e,t){let n=t.getParentOrThrow().getLastChild(),r=t,i=[t];for(;r!==n;)r.getNextSibling()||Lz(140),r=r.getNextSibling(),i.push(r);let a=e;for(let e of i)a=a.insertAfter(e)}(r,u));let f=IJ(o,dW);c&&Q(f)&&(c.canMergeWhenEmpty()||dW(l))&&(f.append(...c.getChildren()),c.remove()),Q(r)&&r.isEmpty()&&r.remove(),o.selectEnd();let p=Q(r)?r.getLastChild():null;PH(p)&&f!==r&&p.remove()}insertParagraph(){let e=this.anchor.getNode();if(this.anchor.type===`element`&&HU(e)){let t=IH();return e.splice(this.anchor.offset,0,[t]),t.select(),t}let t=iH(this),n=IJ(this.anchor.getNode(),dW);if(n!==null&&MW(n)!==null)return null;Q(n)||Lz(213);let r=n.getChildAtIndex(t),i=r?[r,...r.getNextSiblings()]:[],a=n.insertNewAfter(this,!1);return a?(a.append(...i),a.selectStart(),a):null}insertLineBreak(e){let t=NH();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=[...this.getNodes()],t=e.length,n=e[0],r=e[t-1],[i,a]=DV(this),o=this.isBackward(),[s,c]=o?[this.focus,this.anchor]:[this.anchor,this.focus],[l,u]=o?[a,i]:[i,a];if(t===0)return[];if(t===1){if(mV(n)&&!this.isCollapsed()){let e=n.splitText(l,u),t=l===0?e[0]:e[1];return t?(s.set(t.getKey(),0,`text`),c.set(t.getKey(),t.getTextContentSize(),`text`),[t]):[]}return[n]}if(mV(n)&&(l===n.getTextContentSize()?e.shift():l!==0&&([,n]=n.splitText(l),e[0]=n,s.set(n.getKey(),0,`text`))),mV(r)){let t=r.getTextContent().length;u===0?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,c.set(r.getKey(),r.getTextContentSize(),`text`))}return e}modify(e,t,n){if(sH(this,e,t,n))return;let r=e===`move`,i=fH(),a=JU(RU(i));if(!a)return;let o=i._blockCursorElement,s=i._rootElement,c=this.focus.getNode();s===null||o===null||!Q(c)||c.isInline()||c.canBeEmpty()||qU(o,i,s);let l=jU(i,this.focus.key),u=l;if(this.focus.type===`text`&&(u=mV(c)?hW(c,l,i):null),this.dirty){let e=jU(i,this.anchor.key),t=e;if(this.anchor.type===`text`){let n=this.anchor.getNode();t=mV(n)?hW(n,e,i):null}t&&u&&QV(a,t,this.anchor.offset,u,this.focus.offset)}if(n===`character`&&mV(c)&&c.isUnmergeable()&&(t?this.focus.offset===0:this.focus.offset===c.getTextContentSize())){let e=JW(c,t?`previous`:`next`).getNodeAtCaret();if(mV(e)){if(!r){let n=e.getTextContentSize();t?this.focus.set(e.__key,n-1,`text`):this.focus.set(e.__key,1,`text`),this.dirty=!0;return}{let n=i.getElementByKey(e.getKey()),r=n?hW(e,n,i):null;if(r){let e=t?r.length:0;QV(a,r,e,r,e)}}}}if(AV(a,e,t?`backward`:`forward`,n),a.rangeCount>0){let e=eW(a,i._rootElement),n=e||a.getRangeAt(0),o=this.anchor.getNode(),s=kH(o)?o:BU(o);this.applyDOMRange(n),this.dirty=!0,!r&&(jV(this,t,s),(e?a.direction!==`backward`:a.anchorNode===n.startContainer&&a.anchorOffset===n.startOffset)||kV(this))}n===`lineboundary`&&sH(this,e,t,n,`decorators`)}forwardDeletion(e,t,n){if(!n&&(e.type===`element`&&Q(t)&&e.offset===t.getChildrenSize()||e.type===`text`&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(e===null?null:e.getNextSibling());if(Q(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=eG(lG(t,e?`previous`:`next`));if(r.getTextSlices().every(e=>e===null||e.distance===0)){let e={type:`initial`};for(let t of r.iterNodeCarets(`shadowRoot`))if(qW(t)){if(!t.origin.isInline()){if(t.origin.isShadowRoot()){if(e.type===`merge-block`)break;if(Q(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=_G(t);fG(this,nG(e,e)),r.anchor.origin.remove()}return}e.type!==`merge-next-block`&&e.type!==`merge-block`||(e={block:e.block,caret:t,type:`merge-block`})}}else{if(e.type===`merge-block`)break;if(KW(t)){if(Q(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:`merge-next-block`};continue}if(OH(t.origin)){if(!t.origin.isIsolated())if(IW(t.origin).length>0){if(Q(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=WV();e.add(t.origin.getKey()),pU(e)}}else if(e.type===`merge-next-block`&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&Q(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=WV();e.add(t.origin.getKey()),pU(e)}else t.origin.remove();return}break}}if(e.type===`merge-block`){let{caret:t,block:n}=e;return IW(n).length>0?void 0:t.origin.isEmpty()&&!n.isEmpty()&&t.origin.getParent()===n.getParent()?void t.origin.remove(!0):(fG(this,nG(!t.origin.isEmpty()&&n.isEmpty()?mG(JW(n,t.direction)):r.anchor,t)),this.removeText())}for(let e=t.getNode();e!==null;){if(MW(e)!==null)return;if(Q(e)&&e.isShadowRoot())break;e=e.getParent()}}let i=this.focus;if(MV(this,e,`character`),this.isCollapsed()){if(e&&t.offset===0&&OV(this,t.getNode()))return}else{let r=i.type===`text`?i.getNode():null;if(n=t.type===`text`?t.getNode():null,r!==null&&r.isSegmented()){let t=i.offset,a=r.getTextContentSize();if(r.is(n)||e&&t!==a||!e&&t!==0)return void NV(r,e,t)}else if(n!==null&&n.isSegmented()){let i=t.offset,a=n.getTextContentSize();if(n.is(r)||e&&i!==0||!e&&i!==a)return void NV(n,e,i)}(function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&n.type===`text`&&r.type===`text`){let e=n.offset,a=r.offset,o=e<a,s=o?e:a,c=o?a:e,l=c-1;s!==l&&(function(e){return!(gU(e)||sJ(e))})(i.getTextContent().slice(s,c))&&(t?r.set(r.key,l,r.type):n.set(n.key,l,n.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type===`element`&&this.anchor.offset===0){let e=this.anchor.getNode();e.isEmpty()&&kH(e.getParent())&&e.getPreviousSibling()===null&&OV(this,e),xV()}}deleteLine(e){let t=LV(this.anchor);if(t!==null&&OH(NW(t)))return this.isCollapsed()||this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),void this.deleteCharacter(e);this.isCollapsed()&&MV(this,e,`lineboundary`),this.isCollapsed()?this.deleteCharacter(e):IJ(this.anchor.getNode(),dW)===IJ(this.focus.getNode(),dW)?this.removeText():(this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),this.deleteCharacter(e))}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;MV(this,e,`word`)}this.isCollapsed()?this.deleteCharacter(e):this.removeText()}isBackward(){let e=this._cachedIsBackward;if(e!==null)return e;let t=this.focus.isBefore(this.anchor);return cH()||(this._cachedIsBackward=t),t}getStartEndPoints(){return[this.anchor,this.focus]}},sJ=(()=>{try{let e=RegExp(`\\p{Emoji}`,`u`),t=e.test.bind(e);if(t(`❤️`)&&t(`#️⃣`)&&t(`👍`))return t}catch{}return()=>!1})(),cJ=null,lJ=null,uJ=!1,dJ=!1,fJ=!1,pJ=new Set,mJ=0,hJ={characterData:!0,childList:!0,subtree:!0},gJ=class extends Jq{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;__slotHost;__slots;$config(){return this.config(Symbol.for(`ElementNode`),{$transform:ble,extends:Jq})}constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style=``,this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=``,this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&Lz(384,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return aK[e]||``}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0&&IW(this).length===0}isDirty(){let e=fH()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){let e=[];for(let t of IW(this)){let n=LW(this,t);Q(n)&&e.push(...n.getAllTextNodes())}let t=this.getFirstChild();for(;t!==null;){if(mV(t)&&e.push(t),Q(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;Q(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;Q(e);){let t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return Q(e)&&e.getLastDescendant()||e||null}let r=t[e];return Q(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return e===null?null:aU(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&Lz(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:aU(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&Lz(96,this.__key),e}getChildAtIndex(e){let t=this.getChildrenSize(),n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;n!==null&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;n!==null&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e=zW(this),t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),Q(i)&&r!==n-1&&!i.isInline()&&(e+=QG)}return e}getTextContentSize(){let e=function(e){let t=0;for(let n of IW(e)){let r=LW(e,n);r!==null&&(t+=r.getTextContentSize())}return t}(this),t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),Q(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==``){let t=iK[e];return(this.getFormat()&t)!==0}return!1}hasTextFormat(e){let t=nK[e];return(this.getTextFormat()&t)!==0}getFormatFlags(e,t){return $H(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){lH();let n=KV(),r=e,i=t,a=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){let e=this.getFirstChild();if(mV(e)||Q(e))return e.select(0,0)}else if(!(e!==void 0&&e!==a||t!==void 0&&t!==a)){let e=this.getLastChild();if(mV(e)||Q(e))return e.select()}}r===void 0&&(r=a),i===void 0&&(i=a);let o=this.__key;return SV(n)?(n.anchor.set(o,r,`element`),n.focus.set(o,i,`element`),n.dirty=!0,n):HV(o,r,o,i,`element`,`element`)}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e!==``&&iK[e]||0,this}setStyle(e){return this.getWritable().__style=e||``,this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){eV(this)&&Lz(324,this.__key,this.__type);let r=this.getChildrenSize(),i=this.getWritable();e+t<=r||Lz(226,String(e),String(t),String(r));for(let e of n);let a=i.__key,o=[],s=[],c=this.getChildAtIndex(e+t),l=null,u=r-t+n.length;if(e!==0)if(e===r)l=this.getLastChild();else{let t=this.getChildAtIndex(e);t!==null&&(l=t.getPreviousSibling())}if(t>0){let e=l===null?this.getFirstChild():l.getNextSibling();for(let n=0;n<t;n++){e===null&&Lz(100);let t=e.getNextSibling(),n=e.__key;tU(e.getWritable()),s.push(n),e=t}}let d=l;for(let e of n){d!==null&&e.is(d)&&(l=d=d.getPreviousSibling());let t=e.getWritable();t.__parent===a&&u--,tU(t);let n=e.__key;if(d===null)i.__first=n,t.__prev=null;else{let e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===a&&Lz(76),t.__parent=a,o.push(n),d=e}if(e+t===r)d!==null&&(d.getWritable().__next=null,i.__last=d.__key);else if(c!==null){let e=c.getWritable();if(d!==null){let t=d.getWritable();e.__prev=d.__key,t.__next=c.__key}else e.__prev=null}if(i.__size=u,s.length){let e=KV();if(SV(e)){let t=new Set(s),n=new Set(o),{anchor:r,focus:i}=e;DH(r,t,n)&&XV(r,r.getNode(),this,l,c),DH(i,t,n)&&XV(i,i.getNode(),this,l,c),u!==0||this.canBeEmpty()||HU(this)||this.remove()}}return i}getDOMSlot(e){return new uK(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(oW(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+`px`,t.setAttribute(`data-lexical-indent`,String(e)));let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return t===0&&n===``||HU(this)||this.getChildren().some(mV)||(t!==0&&(e.textFormat=t),n!==``&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||``)}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=mW(this,e,t),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());i!==null&&(r==null?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}},_J=class extends Jq{__slotHost;__slots;constructor(e){super(e),this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&Lz(383,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots)}decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}},vJ=class e extends gJ{__cachedText;static getType(){return`root`}static clone(){return new e}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){Lz(51)}getTextContent(){let e=this.__cachedText;return e===null||!cH()&&fH()._dirtyType!==0?super.getTextContent():e}remove(){Lz(52)}replace(e){Lz(53)}insertBefore(e){Lz(54)}insertAfter(e){Lz(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)Q(e)||OH(e)||Lz(282);return super.splice(e,t,n)}static importJSON(e){return fU().updateFromJSON(e)}collapseAtStart(){return!0}},yJ=class e{_nodeMap;_selection;_flushSync;_readOnly;_parsed;_slotsUsed;constructor(e,t=null,n=!1){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1,this._parsed=!1,this._slotsUsed=n}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return yH(t&&t.editor||null,this,e)}clone(t){let n=new e(this._nodeMap,t===void 0?this._selection:t,this._slotsUsed);return n._readOnly=!0,n}toJSON(){return yH(null,this,()=>({root:MH(fU())}))}},bJ=class extends gJ{static getType(){return`artificial`}createDOM(e){return $U().createElement(`div`)}},xJ=class e extends Jq{static getType(){return`linebreak`}static clone(t){return new e(t.__key)}constructor(e){super(e)}getTextContent(){return`
`}createDOM(){return $U().createElement(`br`)}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>Cle(e)||wle(e)?null:{conversion:Sle,priority:0}}}static importJSON(e){return NH().updateFromJSON(e)}},SJ=class e extends gJ{static getType(){return`paragraph`}static clone(t){return new e(t.__key)}createDOM(e){let t=$U().createElement(`p`),n=EU(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Tle,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(oW(t)){this.isEmpty()&&t.append($U().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return IH().updateFromJSON(e)}exportJSON(){let e=super.exportJSON();if(e.textFormat===void 0||e.textStyle===void 0){let t=this.getChildren().find(mV);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let n=IH();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(e.length===0||mV(e[0])&&e[0].getTextContent().trim()===``){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}},CJ={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{let n=UH(t,e.getType());return n&&n.exportDOM!==void 0?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,i)=>Q(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>e.getDOMSlot(t),$getSlotTargetElement:(e,t,n,r)=>null,$shouldExclude:(e,t,n)=>Q(e)&&e.excludeFromCopy(`html`),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)},wJ=class{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_cascadeCount;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_onWarn;_htmlConversions;_window;_editable;_blockCursorElement;_slotsUsed;_inputState;_createEditorArgs;constructor(e,t,n,r,i,a,o,s,c){this._createEditorArgs=c,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new hK,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=vU(),this._onError=i,this._onWarn=a,this._htmlConversions=o,this._editable=s,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null}}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){return BH(this._listeners.update,e)}registerEditableListener(e){return BH(this._listeners.editable,e)}registerDecoratorListener(e){return BH(this._listeners.decorator,e)}registerTextContentListener(e){return BH(this._listeners.textcontent,e)}registerRootListener(e){let t=this._listeners.root;return AG(BH(t,e,e(this._rootElement,null)||void 0),()=>function(e,t,n){let r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,n){n===void 0&&Lz(35);let r=this._commands;r.has(e)||r.set(e,[new pK,new pK,new pK,new pK,new pK]);let i=r.get(e);i===void 0&&Lz(36,String(e));let a=function(e){return 7&e}(n),o=i[a];return a===n?o.addBack(t):o.addFront(t),()=>{o.delete(t),i.every(e=>e.size===0)&&r.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,a=i.get(t);a===void 0&&(a=new Set,i.set(t,a)),a.add(r);let o=n&&n.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(t,r),()=>{a.delete(r),a.size===0&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return t===void 0&&Lz(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=gW(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,`created`);i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set([`registerMutationListener`])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(i!=null){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=gW(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}r.length!==0&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=aU(t);e&&e.markDirty()}},e._pendingEditorState===null?{tag:Xq}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return AU(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=EU(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,RH(this,t,e,r,{preserveUpdateQueue:!0}),t!==null&&(this._config.disableEvents||sle(t),n!=null&&t.classList.remove(...n)),e!==null){let t=LU(e),r=e.style;r.userSelect=`text`,r.whiteSpace=`pre-wrap`,r.wordBreak=`break-word`,e.setAttribute(`data-lexical-editor`,`true`),this._window=t,this._dirtyType=2,qz(this),this._updateTags.add(Xq),bH(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument;Hq.set(e,n);let r=Uq.get(n);r===void 0&&(r={editors:new Set,hasShadowEditor:void 0},Uq.set(n,r)),r.editors.add(t),r.hasShadowEditor=void 0,e.__lexicalEditor=t;let i=JB(e);i.push(Wq.register(n));for(let n=0;n<Vq.length;n++){let[r,a]=Vq[n],o=typeof a==`function`?e=>{ZB(e)||(XB(e),(t.isEditable()||r===`click`)&&a(e,t))}:e=>{if(ZB(e))return;XB(e);let n=t.isEditable();switch(r){case`cut`:return n&&AU(t,jq,e);case`copy`:return AU(t,Aq,e);case`paste`:return n&&AU(t,tq,e);case`dragstart`:return n&&AU(t,Dq,e);case`dragover`:return n&&AU(t,Oq,e);case`dragend`:return n&&AU(t,kq,e);case`focus`:return n&&AU(t,Lq,e);case`blur`:return n&&AU(t,Rq,e);case`drop`:return n&&AU(t,Tq,e)}};i.push(tle(e,r,o))}}(e,this),n!=null&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Xq),bH(this);xH(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&Lz(38);let n=e;n._readOnly&&(n=AH(e),n._selection=e._selection?e._selection.clone():null),Kz(this);let r=this._pendingEditorState,i=t===void 0?null:t.tag;r===null||r.isEmpty()||(i!=null&&this._updateTags.add(i),bH(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set(`root`,!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||e._slotsUsed,EH(this,()=>{if(i&&this._updateTags.add(i),e._parsed)for(let[e,t]of n._nodeMap.entries())Q(t)?this._dirtyElements.set(e,!0):this._dirtyLeaves.add(e)},{discrete:!this._updating||void 0})}parseEditorState(e,t){return function(e,t,n){let r=jH(),i=cJ,a=uJ,o=lJ,s=t._dirtyElements,c=t._dirtyLeaves,l=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,cJ=r,uJ=!1,lJ=t,VH(null);try{let i=t._nodes;vH(e.root,i),n&&n(),r._readOnly=!0,r._parsed=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=c,t._cloneNotNeeded=l,t._dirtyType=u,cJ=i,uJ=a,lJ=o}return r}(typeof e==`string`?JSON.parse(e):e,this,t)}read(...e){let[t,n]=e.length===1?[`force-commit`,e[0]]:e;return t===`force-commit`&&bH(this),(t===`pending`?this._pendingEditorState||this._editorState:this.getEditorState()).read(n,{editor:this})}update(e,t){(function(e,t,n){e._updating?e._updates.push([t,n]):TH(e,t,n)})(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),EH(this,()=>{let r=KV(),i=fU();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||pU(r.clone()),PU(`focus`),FU(()=>{n.removeAttribute(`autocapitalize`),e&&e()})}),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=JU(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,xH(`editable`,this,!0,e),this._slotsUsed&&this.update(()=>vle()))}toJSON(){return{editorState:this._editorState.toJSON()}}},wJ.version=fK,TJ=null,EJ=1,DJ=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)},OJ={ctrlKey:!NG,metaKey:NG},kJ={altKey:NG,ctrlKey:!NG},AJ=[],jJ=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/i,MJ=/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/i,NJ=new WeakMap,PJ=new Map,FJ=new WeakMap,IJ=(e,t)=>{let n=e;for(;n!=null&&!kH(n);){if(t(n))return n;n=n.getParent()}return null},LJ=new Map,RJ=[`__proto__`,`constructor`,`prototype`],zJ=Symbol(`slotMapOwner`),BJ=new WeakMap,VJ=[],HJ={next:`previous`,previous:`next`},UJ=class{origin;constructor(e){this.origin=e}[Symbol.iterator](){return rG({hasNext:KW,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return JW(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return JW(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(n===null?this.insert(e):n.replace(e,t)),this}splice(e,t,n=`next`){let r=n===this.direction?t:Array.from(t).reverse(),i=this,a=this.getParentAtCaret(),o=new Map;for(let t=i.getAdjacentCaret();t!==null&&o.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();o.set(e.getKey(),e)}for(let e of r){if(o.size>0){let t=i.getNodeAtCaret();if(t){if(o.delete(t.getKey()),o.delete(e.getKey()),!(t.is(e)||i.origin.is(e))){let n=e.getParent();n&&n.is(a)&&e.remove(),t.replace(e)}}else t===null&&Lz(263,Array.from(o).join(` `))}else i.insert(e);i=JW(e,this.direction)}for(let e of o.values())e.remove();return this}},WJ=class e extends UJ{type=`child`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:QW(e,this.direction)}getParentCaret(e=`root`){return JW(WW(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=UW(this.direction);return JW(this.getNodeAtCaret(),e)||QW(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}},GJ={root:kH,shadowRoot:HU},KJ=class e extends UJ{type=`sibling`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:JW(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Q(this.origin)?QW(this.origin,this.direction):null}getParentCaret(e=`root`){return JW(WW(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=UW(this.direction);return JW(this.getNodeAtCaret(),e)||QW(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof qJ)&&this.direction===t.direction&&this.origin.is(t.origin)}},qJ=class e extends UJ{type=`text`;offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:YW(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e=`root`){return JW(WW(this.getParentAtCaret(),e),this.direction)}getFlipped(){return YW(this.origin,UW(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof KJ||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return JW(this.origin,this.direction)}},JJ={next:class extends qJ{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends qJ{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},YJ={next:class extends KJ{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends KJ{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},XJ={next:class extends WJ{direction=`next`;getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends WJ{direction=`previous`;getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}},ZJ=class e{type=`node-caret-range`;direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new e(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return GW(t)?function(e,t){let{direction:n,origin:r}=e;return ZW(e,XW(r,t===`focus`?UW(n):n)-e.offset)}(t,e):null},t=e(`anchor`),n=e(`focus`);if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[ZW(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e=`root`){let t=GW(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=GW(n),i=t=>t.isSameNodeCaret(n)?null:$W(t)||t.getParentCaret(e);return rG({hasNext:e=>e!==null&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets(`root`)}},QJ=class{type=`slice`;caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return YW(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}}}));function eY(e){let t=fW().getElementByKey(e.getKey());if(t===null)return null;let n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function tY(e){return eY(kH(e)?e:e.getParentOrThrow())}function nY(e){let t=tY(e);return t!==null&&t.direction===`rtl`}function rY(e,t,n=`self`){let r=e.getStartEndPoints();if(t.isSelected(e)&&!XH(t)&&r!==null){let[i,a]=r,o=e.isBackward(),s=i.getNode(),c=a.getNode(),l=t.is(s),u=t.is(c);if(l||u){let[r,i]=DV(e),a=s.is(c),l=t.is(o?c:s),u=t.is(o?s:c),d,f=0;a?(f=r>i?i:r,d=r>i?r:i):l?(f=o?i:r,d=void 0):u&&(f=0,d=o?r:i);let p=t.__text.slice(f,d);p!==t.__text&&(n===`clone`&&(t=Hle(t)),t.__text=p)}}return t}function Qle(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function iY(e,t,n){let r=lG(e,n);if(vG(r))return!1;for(;r;r=r.getParentCaret()){let e=r.getParentAtCaret();if(!e||r.getNodeAtCaret())return!1;if(t.is(e))return!0}return!1}function aY(e,t,n=Qle){if(!e)return;let r=e.getStartEndPoints(),i=!1,a=null,o=new Map;if(r){let[t,n]=r,s=IJ(t.getNode(),dW);a=IJ(n.getNode(),dW);let c=e.isBackward()?`previous`:`next`;i=Q(a)&&!a.is(s)&&function(e,t,n){let r=e.getNode();return(!Q(r)||!r.isEmpty())&&iY(e,t,n)}(n,a,UW(c)),Q(s)&&o.set(s.getKey(),s),Q(a)&&!i&&o.set(a.getKey(),a)}for(let t of e.getNodes())if(Q(t)&&dW(t)){if(i&&t.is(a))continue;o.set(t.getKey(),t)}else if(!r){let e=IJ(t,dW);Q(e)&&o.set(e.getKey(),e)}for(let e of o.values()){let r=t();n(e,r),e.replace(r,!0)}}function oY(e){let t=sY(e);return t!==null&&t.writingMode===`vertical-rl`}function sY(e){let t=e.anchor.getNode();return Q(t)?eY(t):tY(t)}function cY(e,t){let n=oY(e)?!t:t;lY(e)&&(n=!n);let r=lG(e.focus,n?`previous`:`next`);if(vG(r))return!1;if(GW(r)&&!_V(r.origin)&&r.origin.isUnmergeable()){let e=r.getNodeAtCaret();if(mV(e)&&!_V(e))return!0}for(let e of eG(r)){if(qW(e))return!e.origin.isInline();if(!Q(e.origin)){if(OH(e.origin))return!0;break}}return!1}function $le(e,t,n,r){e.modify(t?`extend`:`move`,n,r)}function lY(e){let t=sY(e);return t!==null&&t.direction===`rtl`}function uY(e,t,n){let r=lY(e),i;i=oY(e)||r?!n:n,$le(e,t,i,`character`)}var dY=s((()=>{$J()}));function eue(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 fY(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function tue(e){let t=IJ(e,e=>Q(e)&&!e.isInline());return Q(t)||eue(4,e.__key),t}function pY(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function mY(e){let t=null;if(pY(e,DragEvent)?t=e.dataTransfer:pY(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];let n=t.types,r=n.includes(`Files`),i=n.includes(`text/html`)||n.includes(`text/plain`);return[r,Array.from(t.files),i]}function hY(e){let t=KV();if(!SV(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let i=r[t],a=i.getKey();if(n.has(a))continue;let o=IJ(i,e=>Q(e)&&!e.isInline());if(o===null)continue;let s=o.getKey();o.canIndent()&&!n.has(s)&&(n.add(s),e(o))}return n.size>0}function gY(e,t){let n=[],r=Array.from(e).reverse();for(let e=r.pop();e!==void 0;e=r.pop())if(t(e))n.push(e);else if(Q(e))for(let t of nue(e))r.push(t);return n}function nue(e){return rue(QW(e,`previous`))}function rue(e){return rG({hasNext:KW,initial:e.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}function _Y(e,t){let n=KV();if(SV(n)&&n.isCollapsed()){let r=IJ(n.anchor.getNode(),e);if(r){let e=r.getParent();if(e!==null&&e.getFirstChild()===r&&iue(n.anchor,r))return r.insertBefore(IH()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function vY(e,t){let n=KV();if(SV(n)&&n.isCollapsed()){let r=IJ(n.anchor.getNode(),e);if(r){let e=r.getParent();if(e!==null&&e.getLastChild()===r&&aue(n.anchor,r))return r.insertAfter(IH()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function iue(e,t){return iY(e,t,`previous`)}function aue(e,t){return iY(e,t,`next`)}var yY=s((()=>{dY(),$J()}));function bY(){if(GY>1)return void GY--;let e,t=!1;for(function(){let e=WY;for(WY=void 0;e!==void 0;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();UY!==void 0;){let n=UY;for(UY=void 0,KY++;n!==void 0;){let r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&TY(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(KY=0,GY--,t)throw e}function xY(e){let t=HY;HY=void 0;try{return e()}finally{HY=t}}function SY(e){if(HY===void 0)return;let t=e.n;return t===void 0||t.t!==HY?(t={i:0,S:e,p:HY.s,n:void 0,t:HY,e:void 0,x:void 0,r:t},HY.s!==void 0&&(HY.s.n=t),HY.s=t,e.n=t,32&HY.f&&e.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=HY.s,t.n=void 0,HY.s.n=t,HY.s=t),t):void 0}function CY(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function wY(e,t){return new CY(e,t)}function TY(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function EY(e){for(let t=e.s;t!==void 0;t=t.n){let n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function DY(e){let t,n=e.s;for(;n!==void 0;){let e=n.p;n.i===-1?(n.S.U(n),e!==void 0&&(e.n=n.n),n.n!==void 0&&(n.n.p=e)):t=n,n.S.n=n.r,n.r!==void 0&&(n.r=void 0),n=e}e.s=t}function OY(e,t){CY.call(this,void 0),this.x=e,this.s=void 0,this.g=JY-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function kY(e){let t=e.m;if(e.m=void 0,typeof t==`function`){GY++;let n=HY;HY=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,AY(e),t}finally{HY=n,bY()}}}function AY(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,kY(e)}function oue(e){if(HY!==this)throw Error(`Out-of-order effect`);DY(this),HY=e,this.f&=-2,8&this.f&&AY(this),bY()}function jY(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name}function MY(e,t){let n=new jY(e,t);try{n.c()}catch(e){throw n.d(),e}let r=n.d.bind(n);return r[Symbol.dispose]=r,r}function sue(e){return(typeof e.nodes==`function`?e.nodes():e.nodes)||[]}function cue(e,t){let n;return wY(e(),{unwatched(){n&&=(n(),void 0)},watched(){this.value=e(),n=t(this)}})}function NY(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 PY(e,t){if(e&&t&&!Array.isArray(t)&&typeof e==`object`&&typeof t==`object`){let n=e,r=t;for(let e in r)!ZY.has(e)&&Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=PY(n[e],r[e]));return e}return t}function FY(e){return e.id===QY}function IY(e){return e.id===eX}function lue(e){return function(e){return e.id===$Y}(e)||NY(305,String(e.id),String($Y)),Object.assign(e,{id:eX})}function uue(){let e=fU();e.isEmpty()&&e.append(IH())}function LY(){}function due(e){throw e}function RY(e){return Array.isArray(e)?e:[e]}function zY(e,t){let n=fX.maybeFromEditor(e);if(!n)return;let r=n.extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}function fue(e){return zY(fW(),e)}function pue(){return{node:BY()}}function BY(){return DW(pX)}function mue(e){return e instanceof pX}var VY,HY,UY,WY,GY,KY,qY,JY,YY,XY,ZY,QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX,uX,dX,fX,pX,mX=s((()=>{$J(),VY=Symbol.for(`preact-signals`),GY=0,KY=0,qY=0,JY=0,CY.prototype.brand=VY,CY.prototype.h=function(){return!0},CY.prototype.S=function(e){let t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t===void 0?xY(()=>{var e;(e=this.W)==null||e.call(this)}):t.e=e)},CY.prototype.U=function(e){if(this.t!==void 0){let t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&xY(()=>{var e;(e=this.Z)==null||e.call(this)}))}},CY.prototype.subscribe=function(e){return MY(()=>{let t=this.value,n=HY;HY=void 0;try{e(t)}finally{HY=n}},{name:`sub`})},CY.prototype.valueOf=function(){return this.value},CY.prototype.toString=function(){return this.value+``},CY.prototype.toJSON=function(){return this.value},CY.prototype.peek=function(){let e=HY;HY=void 0;try{return this.value}finally{HY=e}},Object.defineProperty(CY.prototype,"value",{get(){let e=SY(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(KY>100)throw Error(`Cycle detected`);(function(e){GY!==0&&KY===0&&e.l!==qY&&(e.l=qY,WY={S:e,v:e.v,i:e.i,o:WY})})(this),this.v=e,this.i++,JY++,GY++;try{for(let e=this.t;e!==void 0;e=e.x)e.t.N()}finally{bY()}}}}),OY.prototype=new CY,OY.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===JY))return!0;if(this.g=JY,this.f|=1,this.i>0&&!TY(this))return this.f&=-2,!0;let e=HY;try{EY(this),HY=this;let e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return HY=e,DY(this),this.f&=-2,!0},OY.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let e=this.s;e!==void 0;e=e.n)e.S.S(e)}CY.prototype.S.call(this,e)},OY.prototype.U=function(e){if(this.t!==void 0&&(CY.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let e=this.s;e!==void 0;e=e.n)e.S.U(e)}},OY.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(OY.prototype,"value",{get(){if(1&this.f)throw Error(`Cycle detected`);let e=SY(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),jY.prototype.c=function(){let e=this.S();try{if(8&this.f||this.x===void 0)return;let e=this.x();typeof e==`function`&&(this.m=e)}finally{e()}},jY.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,kY(this),EY(this),GY++;let e=HY;return HY=this,oue.bind(this,e)},jY.prototype.N=function(){2&this.f||(this.f|=2,this.u=UY,UY=this)},jY.prototype.d=function(){this.f|=8,1&this.f||AY(this)},jY.prototype.dispose=function(){this.d()};try{YY=`0.48.0+prod.esm`}catch{}XY=YY??`"<unknown>+source"`,ZY=new Set([`__proto__`,`constructor`,`prototype`]),QY=0,$Y=1,eX=2,tX=3,nX=4,rX=5,iX=6,aX=7,oX=new Set,sX=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:QY}}mergeConfigs(){let e=this.extension.config||{},t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):EG;for(let n of this.configs)e=t(e,n);return e}init(e){let t=this.state;IY(t)||NY(306,String(t.id));let n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=function(e,t,n){return Object.assign(e,{config:t,id:tX,registerState:n})}(t,this.mergeConfigs(),n),a;this.state=i,this.extension.init&&(a=this.extension.init(e,i.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:nX,initResult:t,registerState:n})}(i,a,r)}build(e){let t=this.state,n;t.id!==nX&&NY(307,String(t.id),String(rX)),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));let r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:rX,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;let n=this.state;n.id!==rX&&NY(308,String(n.id),String(rX));let r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:iX})}(n),()=>{let e=this.state;e.id!==aX&&NY(309,String(n.id),String(aX)),this.state=function(e){return Object.assign(e,{id:rX})}(e),r&&r()}}afterRegistration(e){let t=this.state,n;return t.id!==iX&&NY(310,String(t.id),String(iX)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:aX})}(t),n}getSignal(){return this._signal===void 0&&NY(311),this._signal}getInitResult(){this.extension.init===void 0&&NY(312,this.extension.name);let e=this.state;return function(e){return e.id>=nX}(e)||NY(313,String(e.id),String(nX)),e.initResult}getInitPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){let e=this.state;return function(e){return e.id>=tX}(e)||NY(314,String(e.id),String(tX)),{config:e.config}}getPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){let t=this.builder.getExtensionRep(e);return t===void 0&&NY(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){let t=this.builder.getExtensionRep(e);return t===void 0&&NY(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){let e=this.state;return function(e){return e.id>=aX}(e)||NY(316,String(e.id),String(aX)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||oX}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){let e=this.state;(function(e){return e.id>=rX})(e)||NY(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}},cX={tag:Xq},lX=wG({config:TG({setOptions:cX,updateOptions:cX}),init:({$initialEditorState:e=uue})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){let i=r.getInitResult();if(!i.initialized){i.initialized=!0;let{$initialEditorState:r}=i;if(xle(r))e.setEditorState(r,n);else if(typeof r==`function`)e.update(()=>{r(e)},t);else if(r&&(typeof r==`string`||typeof r==`object`)){let t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:`@lexical/extension/InitialState`,nodes:[vJ,eJ,xJ,rJ,SJ]}),uX=Symbol.for(`@lexical/extension/LexicalBuilder`),dX=XY,fX=class e{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=dX,this.roots=e;for(let t of e)this.addExtension(t)}static fromExtensions(t){let n=[RY(lX)];for(let e of t)n.push(RY(e));return new e(n)}static maybeFromEditor(t){let n=t[uX];return n&&(n.PACKAGE_VERSION!==dX&&NY(292,n.PACKAGE_VERSION,dX),n instanceof e||NY(293)),n}static fromEditor(t){let n=e.maybeFromEditor(t);return n===void 0&&NY(294),n}constructEditor(){let{$initialEditorState:e,onError:t,onWarn:n,...r}=this.buildCreateEditorArgs(),i=Object.assign(zH({...r,...t?{onError:e=>{t(e,i)}}:{},...n?{onWarn:e=>{n(e,i)}}:{}}),{[uX]:this});for(let e of this.sortedExtensionReps())e.build(i);return i}buildEditor(){let e=LY;function t(){try{e()}finally{e=LY}}let n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=AG(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){let t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&NY(295,e.name),t}addEdge(e,t,n){let r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));let i=this.incomingEdges.get(t);i?i.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){this._sortedExtensionReps!==void 0&&NY(296);let[t]=RY(e);typeof t.name!=`string`&&NY(297,typeof t.name);let n=this.extensionNameMap.get(t.name);if(n!==void 0&&n.extension!==t&&NY(298,t.name),!n){n=new sX(this,t),this.extensionNameMap.set(t.name,n);let e=this.conflicts.get(t.name);typeof e==`string`&&NY(299,t.name,e);for(let e of t.conflictsWith||[])this.extensionNameMap.has(e)&&NY(299,t.name,e),this.conflicts.set(e,t.name);for(let e of t.dependencies||[]){let n=RY(e);this.addEdge(t.name,n[0].name,n.slice(1)),this.addExtension(n)}for(let[e,n]of t.peerDependencies||[])this.addEdge(t.name,e,n?[n]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;let e=[],t=(n,r)=>{let i=n.state;if(IY(i))return;let a=n.extension.name;var o;FY(i)||NY(300,a,r||`[unknown]`),FY(o=i)||NY(304,String(o.id),String(QY)),i=Object.assign(o,{id:$Y}),n.state=i;let s=this.outgoingConfigEdges.get(a);if(s)for(let e of s.keys()){let n=this.extensionNameMap.get(e);n&&t(n,a)}i=lue(i),n.state=i,e.push(n)};for(let e of this.extensionNameMap.values())FY(e.state)&&t(e);for(let t of e)for(let[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){let t=this.extensionNameMap.get(e);if(t)for(let e of n)t.configs.add(e)}for(let[e,...t]of this.roots)if(t.length>0){let n=this.extensionNameMap.get(e.name);n===void 0&&NY(301,e.name);for(let e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){let t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],i=n.signal;for(let n of t){let t=n.register(e,i);t&&r.push(t)}for(let n of t){let t=n.afterRegistration(e);t&&r.push(t)}return AG(...r)}buildCreateEditorArgs(){let e={},t=new Set,n=new Map,r=new Map,i={},a={},o=this.sortedExtensionReps();for(let s of o){let{extension:o}=s;if(o.onError!==void 0&&(e.onError=o.onError),o.onWarn!==void 0&&(e.onWarn=o.onWarn),o.disableEvents!==void 0&&(e.disableEvents=o.disableEvents),o.parentEditor!==void 0&&(e.parentEditor=o.parentEditor),o.editable!==void 0&&(e.editable=o.editable),o.namespace!==void 0&&(e.namespace=o.namespace),o.$initialEditorState!==void 0&&(e.$initialEditorState=o.$initialEditorState),o.nodes)for(let e of sue(o)){if(typeof e!=`function`){let t=n.get(e.replace);t&&NY(302,o.name,e.replace.name,t.extension.name),n.set(e.replace,s)}t.add(e)}if(o.html){if(o.html.export)for(let[e,t]of o.html.export.entries())r.set(e,t);o.html.import&&Object.assign(i,o.html.import)}o.theme&&PY(a,o.theme)}Object.keys(a).length>0&&(e.theme=a),t.size&&(e.nodes=[...t]);let s=Object.keys(i).length>0,c=r.size>0;(s||c)&&(e.html={},s&&(e.html.import=i),c&&(e.html.export=r));for(let t of o)t.init(e);return e.onError||=due,e}},pX=class e extends _J{static getType(){return`horizontalrule`}static clone(t){return new e(t.__key)}static importJSON(e){return BY().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:pue,priority:0})}}exportDOM(){return{element:$U().createElement(`hr`)}}createDOM(e){let t=$U().createElement(`hr`);return OG(t,e.theme.hr),t}getTextContent(){return`
`}isInline(){return!1}updateDOM(){return!1}},Date.now}));function hX(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 gX(e,t){let{key:n}=t;return e&&n in e?e[n]:t.defaultValue}function _X(e){return wX&&wX.editor===e?wX:void 0}function hue(e,t){if(`cfg`in t){let{cfg:n,updater:r}=t;return[n,r(gX(e,n))]}return t}function gue(e,t){let n=t;for(let r of e){let[e,i]=hue(n,r),a=e.key;if(n===t&&gX(n,e)===i)continue;let o=n===t||n===void 0?_ue(t):n;o[a]=i,n=o}return n}function _ue(e){return Object.create(e||null)}function vue(e,t){return[e,t]}function yue(e,t,n,r=fW()){let i=wX,a=_X(r);try{return wX={...a,editor:r,[e]:t},n()}finally{wX=i}}function bue(e,t=()=>{}){return(n,r=fW())=>i=>{let a=_X(r),o=a&&a[e],s=gue(n,o||t(r));return s&&s!==o?yue(e,s,i,r):i()}}function xue(e,t,n,r){return Object.assign(Jz(Symbol(t),{isEqual:r,parse:n}),{[e]:!0})}function Sue(e){if(!QH(e))return;let t=e;if(t.querySelector(`style`)===null)return;let n=new Map;function r(e){let t=n.get(e);if(t===void 0){t=new Set;for(let n=0;n<e.style.length;n++)t.add(e.style[n]);n.set(e,t)}return t}try{for(let e of Array.from(t.styleSheets)){let n;try{n=e.cssRules}catch{continue}for(let e of Array.from(n)){if(!pY(e,CSSStyleRule))continue;let n;try{n=t.querySelectorAll(e.selectorText)}catch{continue}for(let t of Array.from(n)){if(!oW(t))continue;let n=r(t);for(let r=0;r<e.style.length;r++){let i=e.style[r];n.has(i)||t.style.setProperty(i,e.style.getPropertyValue(i),e.style.getPropertyPriority(i))}}}}}catch{}}function Cue(e,t,n){return xue(EX,e,t,n)}function wue(e){let t=zY(e,TX);return t?t.output.defaults:void 0}function Tue(e){let t=zY(e,TX);return t?t.output.runtime:void 0}function Eue(e=fW()){let t=Tue(e);return t?t.getSessionConfig():pW(e)}function vX(e,t){let n={kind:`element`,predicate:(r=t,r.length===0?oW:r.length===1?r[0]:(e,t)=>{for(let n of r)if(!n(e,t))return!1;return!0}),tags:e};var r;let i=n=>vX(e,[...t,n]);return{[kX]:n,attr:(e,t,n)=>i(xX(e,t,n)),classAll:(...e)=>i(bX(e)),classAny:(...e)=>i(function(e){let t=yX(e);return t.length===0?()=>!1:e=>{if(!oW(e))return!1;let n=e.classList;for(let e of t)if(n.contains(e))return!0;return!1}}(e)),styleAny:(e,t,n)=>i(function(e,t,n){if(typeof t==`string`)return n=>oW(n)&&n.style.getPropertyValue(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!oW(t))return!1;let a=t.style.getPropertyValue(e);if(!a)return!1;let o=a.match(i);return o!==null&&(r!==void 0&&(n[r]=o),!0)}}hX(362,JSON.stringify(e))}(e,t,n))}}function yX(e){let t=[];for(let n of e)n&&t.push(n);return t}function bX(e){let t=yX(e);return t.length===0?()=>!0:e=>{if(!oW(e))return!1;let n=e.classList;for(let e of t)if(!n.contains(e))return!1;return!0}}function xX(e,t,n){if(!0===t)return t=>oW(t)&&t.hasAttribute(e);if(typeof t==`string`)return n=>oW(n)&&n.getAttribute(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!oW(t))return!1;let a=t.getAttribute(e);if(a==null)return!1;let o=a.match(i);return o!==null&&(r!==void 0&&(n[r]=o),!0)}}hX(361,JSON.stringify(e))}function Due(e){let t=new Set,n=[],r=[];if(e.skipWhitespace(),e.peek()===`*`)e.consume();else if(FX.test(e.peek())){let n=e.readIdent();n&&t.add(n.toUpperCase())}for(;!e.eof();){let t=e.peek();if(t===`.`){e.consume();let t=e.readIdent();e.assert(t!==``,`expected class name after "."`),r.push(t)}else if(t===`#`){e.consume();let t=e.readIdent();e.assert(t!==``,`expected id after "#"`),n.push(xX(`id`,t))}else{if(t!==`[`)break;{e.consume(),e.skipWhitespace();let t=e.readIdent();e.assert(t!==``,`expected attribute name after "["`),e.skipWhitespace();let r=!0;if(e.peek()===`=`){e.consume(),e.skipWhitespace();let t=e.peek();t===`"`||t===`'`?r=e.readQuoted():(r=e.readIdent(),e.assert(r!==``,`expected attribute value`)),e.skipWhitespace()}e.assert(e.peek()===`]`,`expected "]"`),e.consume(),n.push(xX(t,r))}}}return r.length>0&&n.push(bX(r)),{predicates:n,tags:t}}function Oue(e){let t=new IX(e,0),n=[];for(;;){let e=Due(t);if(n.push(e),t.skipWhitespace(),t.eof())break;t.assert(t.peek()===`,`,`expected "," (selector lists are the only supported combinator)`),t.consume(),t.skipWhitespace()}if(n.length===1)return vX(n[0].tags,n[0].predicates);let r=new Set;for(let e of n)for(let t of e.tags)r.add(t);return vX(r,[(e,t)=>{for(let r of n){let n=e.nodeName;if(r.tags.size>0&&!r.tags.has(n))continue;let i=!0;for(let n of r.predicates)if(!n(e,t)){i=!1;break}if(i)return!0}return!1}])}function kue(e){return VV(e)||OH(e)&&!e.isInline()}function Aue(e,t){let n=[],r=[],i=()=>{r.length!==0&&(n.push(t().splice(0,0,r)),r=[])};for(let a of e)if(kue(a)){if(i(),Q(a)){let e=Aue(a.getChildren(),t);a.splice(0,a.getChildrenSize(),e)}n.push(a)}else r.push(a);return i(),n}function jue(e,t){Sue(t);let n=QH(t)?t.body.childNodes:t.childNodes,r=[],i=[];for(let t of n)if(!zX.has(t.nodeName)){let n=CX(t,e,i,!1);if(n!==null)for(let e of n)r.push(e)}return function(e){for(let t of e)t.getParent()&&t.getNextSibling()instanceof bJ&&t.insertAfter(NH());for(let t of e){let e=t.getParent();e&&e.splice(t.getIndexWithinParent(),1,t.getChildren())}}(i),r}function Mue(e,t=null,n=fW()){return OX([vue(DX,!0)],n)(()=>{let r=fU(),i=Eue(n),a=SV(t)?PW(t.anchor.getNode()):null,o=e.append.bind(e);for(let e of(Q(a)?a:r).getChildren())SX(n,e,o,t,i);return e})}function Nue(e,t=null){return(typeof document>`u`||typeof window>`u`&&global.window===void 0)&&hX(338),_le(e),Mue($U().createElement(`div`),t,e).innerHTML}function SX(e,t,n,r=null,i=pW(e)){let a=i.$shouldInclude(t,r,e),o=i.$shouldExclude(t,r,e),s=t;r!==null&&mV(t)&&(s=rY(r,t,`clone`));let{element:c,after:l,append:u,$getChildNodes:d}=i.$exportDOM(s,e);if(!c)return!1;let f=$U().createDocumentFragment(),p=d?d():Q(s)?s.getChildren():[],m=a&&CV(r)&&Q(t)?null:r,h=f.append.bind(f);for(let n of p){let o=SX(e,n,h,m,i);!a&&o&&i.$extractWithChild(t,n,r,`html`,e)&&(a=!0)}if(a&&!o){if((oW(c)||cW(c))&&(u?u(f):c.append(f)),n(c),l){let e=l.call(s,c);e&&(cW(c)?c.replaceChildren(e):c.replaceWith(e))}}else n(f);return a}function CX(e,t,n,r,i=new Map,a){let o=[];if(zX.has(e.nodeName))return o;let s=null,c=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(r!==void 0)for(let t of r){let n=t(e);n!==null&&(i===null||(i.priority||0)<=(n.priority||0))&&(i=n)}return i===null?null:i.conversion}(e,t),l=c?c(e):null,u=null;if(l!==null){u=l.after;let t=l.node;if(s=Array.isArray(t)?t[t.length-1]:t,s!==null){for(let[,e]of i)if(s=e(s,a),!s)break;s&&o.push(...Array.isArray(t)?t:[s])}l.forChild!=null&&i.set(e.nodeName,l.forChild)}let d=e.childNodes,f=[],p=(s==null||!HU(s))&&(s!=null&&VV(s)||r);for(let e=0;e<d.length;e++)f.push(...CX(d[e],t,n,p,new Map(i),s));if(u!=null&&(f=u(f)),uW(e)&&(f=Pue(e,f,p?()=>{let e=new bJ;return n.push(e),e}:IH)),s==null)if(f.length>0)for(let e of f)o.push(e);else uW(e)&&function(e){return e.nextSibling==null||e.previousSibling==null?!1:lW(e.nextSibling)&&lW(e.previousSibling)}(e)&&o.push(NH());else Q(s)&&s.append(...f);return o}function Pue(e,t,n){let r=e.style.textAlign,i=[],a=[];for(let e=0;e<t.length;e++){let o=t[e];if(VV(o))r&&!o.getFormat()&&o.setFormat(r),i.push(o);else if(a.push(o),e===t.length-1||e<t.length-1&&VV(t[e+1])){let e=n();e.setFormat(r),e.append(...a),i.push(e),a=[]}}return i}var wX,TX,EX,DX,OX,kX,AX,jX,MX,NX,PX,FX,IX,LX,RX,zX,BX=s((()=>{dY(),$J(),yY(),mX(),TX=`@lexical/html/DOM`,EX=Symbol.for(`@lexical/html/DOMExportContext`),DX=Cue(`isExport`,Boolean),OX=bue(EX,wue),kX=Symbol.for(`@lexical/html/SelectorImpl`),AX={kind:`text`,predicate:ZH,tags:new Set},jX={[kX]:AX},MX={kind:`comment`,predicate:e=>e.nodeType===8,tags:new Set},NX={[kX]:MX},PX={any:()=>vX(new Set,[]),comment:()=>NX,tag(...e){e.length>0||hX(363);let t=new Set;for(let n of e)t.add(n.toUpperCase());return vX(t,[])},text:()=>jX},FX=/[A-Za-z0-9_-]/,IX=class{constructor(e,t){this.source=e,this.pos=t}peek(e=0){return this.source[this.pos+e]||``}consume(){return this.source[this.pos++]||``}eof(){return this.pos>=this.source.length}skipWhitespace(){for(;!this.eof()&&/\s/.test(this.peek());)this.pos++}readIdent(){let e=this.pos;for(;!this.eof()&&FX.test(this.peek());)this.pos++;return this.source.slice(e,this.pos)}readQuoted(){let e=this.consume();this.assert(e===`"`||e===`'`,`expected quote`);let t=this.pos;for(;!this.eof()&&this.peek()!==e;)this.peek()===`\\`?this.pos+=2:this.pos++;this.assert(!this.eof(),`unterminated string`);let n=this.source.slice(t,this.pos);return this.pos++,n.replace(/\\(.)/g,`$1`)}assert(e,t){e||hX(364,String(this.pos+1),t,this.source)}},LX=PX,LX.tag(`b`,`strong`,`em`,`i`,`code`,`mark`,`s`,`sub`,`sup`,`u`,`span`),LX.text(),LX.tag(`script`,`style`),LX.tag(`br`),LX.tag(`p`),LX.tag(`hr`),LX.any(),Object.freeze([]),Object.freeze({}),PX.any(),RX={any:PX.any,comment:PX.comment,css:Oue,tag:PX.tag,text:PX.text},zX=new Set([`STYLE`,`SCRIPT`])}));function VX(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 HX(e,t){let n=e;for(let r=JW(e,t);r&&(eZ(r.origin)||_V(r.origin));r=r.getAdjacentCaret())n=r.origin;return n}function UX(e){return HX(e,`previous`)}function WX(e){return HX(e,`next`)}function Fue(e){let t=UX(e),n=WX(e),r=t;for(;r!==null;){if(eZ(r)){let e=kle(r.getTextContent());if(e!==null)return e}if(r===n)break;r=r.getNextSibling()}let i=t.getParent();if(Q(i)){let e=i.getDirection();if(e===`ltr`||e===`rtl`)return e}return null}function Iue(e,t){let n=null,r=null,i=e,a=t,o=e.getTextContent();for(;;){if(a===0){let e=i.getPreviousSibling();if(e===null){i=null;break}if(eZ(e)||_V(e)||PH(e)||VX(167),i=e,PH(i)){n={node:i,offset:1};break}a=Math.max(0,i.getTextContentSize()-1),o=i.getTextContent()}else a--;let e=o[a];eZ(i)&&e!==` `&&(r={node:i,offset:a})}if(r!==null)return r;let s=null;if(t<e.getTextContentSize())eZ(e)&&(s=e.getTextContent()[t]);else{let t=e.getNextSibling();eZ(t)&&(s=t.getTextContent()[0])}if(s!==null&&s!==` `)return n;{let r=function(e,t){let n=e,r=t,i=e.getTextContent(),a=e.getTextContentSize();for(;;){if(!eZ(n)||r===a){if(n=n.getNextSibling(),n===null||PH(n))return null;eZ(n)&&(r=0,i=n.getTextContent(),a=n.getTextContentSize())}if(eZ(n)){if(i[r]!==` `)return{node:n,offset:r};r++}}}(e,t);return r===null?n:r}}function Lue(e){let t=WX(e);return PH(t)&&VX(168),t}function Rue(e){let t=[];return tH(e,{linebreak:()=>t.push(NH()),tab:()=>t.push(gV()),text:e=>t.push($X(e))}),t}function zue(e,t,n){if(!Number.isInteger(t)||t<=0)return!1;let r=e.getTextContent(),i=/^ +/.exec(r);if(!i)return!1;let a=Math.min(t,i[0].length),o=e.getKey(),s=n.anchor.key===o&&n.anchor.type===`text`?n.anchor.offset:null,c=n.focus.key===o&&n.focus.type===`text`?n.focus.offset:null;return e.spliceText(0,a,``),s!==null&&n.anchor.set(o,Math.max(0,s-a),`text`),c!==null&&n.focus.set(o,Math.max(0,c-a),`text`),!0}function GX(e,t){for(let n of e.childNodes)if(oW(n)&&n.tagName===t||GX(n,t))return!0;return!1}function KX(e,t){return DW(uZ).setLanguage(e).setTheme(t)}function qX(e){return e instanceof uZ}function JX(e){return{node:KX(e.getAttribute(sZ))}}function Bue(e){let t=e,n=XX(t);return n||function(e){let t=e.parentElement;for(;t!==null;){if(XX(t))return!0;t=t.parentElement}return!1}(t)?{node:n?KX():null}:{node:null}}function Vue(){return{node:KX()}}function YX(){return{node:null}}function XX(e){return e.style.fontFamily.match(`monospace`)!==null}function ZX(e){return e.classList.contains(`js-file-line-container`)}function Hue(e){let{anchor:t}=e;if(e.isCollapsed()&&t.type===`element`){let e=t.getNode();if(qX(e)){let n=e.getChildrenSize();if(n>=2&&t.offset===n){let t=e.getLastChild();if(PH(t)&&PH(t.getPreviousSibling())){let t=IH();return e.splice(n-2,2,[]).insertAfter(t,!1),t.select(),t}}}}return null}function QX(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function $X(e=``,t){return WU(new dZ(e,t))}function eZ(e){return e instanceof dZ}function tZ(e){if(!SV(e))return!1;let t=e.anchor.getNode(),n=qX(t)?t:t.getParent(),r=e.focus.getNode(),i=qX(r)?r:r.getParent();return qX(n)&&n.is(i)}function nZ(e){let t=e.getNodes(),n=[];if(t.length===1&&qX(t[0]))return n;let r=[];for(let e=0;e<t.length;e++){let i=t[e];eZ(i)||_V(i)||PH(i)||VX(169),PH(i)?r.length>0&&(n.push(r),r=[]):r.push(i)}if(r.length>0){let t=e.isBackward()?e.anchor:e.focus,i=vV(r[0].getKey(),0,`text`);t.is(i)||n.push(r)}return n}function rZ(e,t){let n=KV();if(!SV(n)||!tZ(n))return!1;let r=nZ(n),i=r.length;if(i===0&&n.isCollapsed())return e===Cq&&n.insertNodes([gV()]),!0;if(i===0&&e===Cq&&n.getTextContent()===`
`){let e=gV(),t=NH(),r=n.isBackward()?`previous`:`next`;return n.insertNodes([e,t]),dG(bG(nG(YW(e,`next`,0),_G(JW(t,`next`))),r)),!0}for(let a=0;a<i;a++){let i=r[a];if(i.length>0){let r=i[0];if(a===0&&(r=UX(r)),e===Cq){let e=gV();if(r.insertBefore(e),a===0){let t=n.isBackward()?`focus`:`anchor`,i=vV(r.getKey(),0,`text`);n[t].is(i)&&n[t].set(e.getKey(),0,`text`)}}else _V(r)?r.remove():t!==void 0&&eZ(r)&&zue(r,t,n)}}return!0}function iZ(e,t){let n=KV();if(!SV(n))return!1;let{anchor:r,focus:i}=n,a=r.offset,o=i.offset,s=r.getNode(),c=i.getNode(),l=e===mq;if(!tZ(n)||!eZ(s)&&!_V(s)||!eZ(c)&&!_V(c))return!1;if(!t.altKey){if(n.isCollapsed()){let e=s.getParentOrThrow();if(l&&a===0&&s.getPreviousSibling()===null){if(e.getPreviousSibling()===null)return e.selectPrevious(),t.preventDefault(),!1}else if(!l&&a===s.getTextContentSize()&&s.getNextSibling()===null&&e.getNextSibling()===null)return e.selectNext(),t.preventDefault(),!1}return!1}let u,d;if(s.isBefore(c)?(u=UX(s),d=WX(c)):(u=UX(c),d=WX(s)),u==null||d==null)return!1;let f=u.getNodesBetween(d);for(let e=0;e<f.length;e++){let t=f[e];if(!eZ(t)&&!_V(t)&&!PH(t))return!1}t.preventDefault(),t.stopPropagation();let p=l?u.getPreviousSibling():d.getNextSibling();if(!PH(p))return!0;let m=l?p.getPreviousSibling():p.getNextSibling();if(m==null)return!0;let h=(eZ(m)||_V(m)||PH(m)?l?UX(m):WX(m):null)??m;return p.remove(),f.forEach(e=>e.remove()),e===mq?(f.forEach(e=>h.insertBefore(e)),h.insertBefore(p)):(h.insertAfter(p),h=p,f.forEach(e=>{h.insertAfter(e),h=e})),n.setTextNodeRange(s,a,c,o),!0}function aZ(e,t){let n=KV();if(!SV(n))return!1;let{anchor:r,focus:i}=n,a=r.getNode(),o=i.getNode(),s=e===pq;if(!tZ(n)||!eZ(a)&&!_V(a)||!eZ(o)&&!_V(o))return!1;let c=o,l=Fue(c)===`rtl`?!s:s,u=r.key,d=r.offset,f=r.type;if(l){let e=Iue(c,i.offset);if(e!==null){let{node:t,offset:r}=e;PH(t)?t.selectNext(0,0):n.setTextNodeRange(t,r,t,r)}else c.getParentOrThrow().selectStart()}else Lue(c).select();return t.shiftKey&&n.anchor.set(u,d,f),t.preventDefault(),t.stopPropagation(),!0}function Uue(e,t,n){return AG(...n?[e.registerCommand(hq,e=>!e.altKey&&vY(qX,e),1),e.registerCommand(uq,e=>vY(qX,e),1),e.registerCommand(mq,e=>!e.altKey&&_Y(qX,e),1),e.registerCommand(fq,e=>_Y(qX,e),1)]:[],e.registerCommand(xq,t=>{let n=function(e){let t=KV();if(!SV(t)||!tZ(t))return null;let n=e?wq:Cq,r=e?wq:Sq,i=t.anchor,a=t.focus;if(i.is(a))return r;let o=nZ(t);if(o.length!==1)return n;let s=o[0],c,l;s.length===0&&VX(285),t.isBackward()?(c=a,l=i):(c=i,l=a);let u=UX(s[0]),d=WX(s[0]),f=vV(u.getKey(),0,`text`),p=vV(d.getKey(),d.getTextContentSize(),`text`);return c.isBefore(f)||p.isBefore(l)?n:f.isBefore(c)||l.isBefore(p)?r:n}(t.shiftKey);return n!==null&&(t.preventDefault(),e.dispatchCommand(n,void 0),!0)},1),e.registerCommand(Sq,()=>!!tZ(KV())&&(eH([gV()]),!0),1),e.registerCommand(Cq,()=>rZ(Cq),1),e.registerCommand(wq,()=>rZ(wq,t),1),e.registerCommand(mq,e=>{let t=KV();if(!SV(t))return!1;let{anchor:n}=t,r=n.getNode();if(!tZ(t))return!1;let i=r.getParent();return t.isCollapsed()&&n.offset===0&&r.getPreviousSibling()===null&&qX(i)&&i.getPreviousSibling()===null?(e.preventDefault(),!0):iZ(mq,e)},1),e.registerCommand(hq,e=>{let t=KV();if(!SV(t))return!1;let{anchor:n}=t,r=n.getNode();return!!tZ(t)&&(t.isCollapsed()&&n.offset===r.getTextContentSize()&&r.getNextSibling()===null&&qX(r.getParentOrThrow())&&r.getParentOrThrow().getNextSibling()===null?(e.preventDefault(),!0):iZ(hq,e))},1),e.registerCommand(pq,e=>aZ(pq,e),1),e.registerCommand(dq,e=>aZ(dq,e),1))}var oZ,sZ,cZ,lZ,uZ,dZ,fZ=s((()=>{BX(),$J(),mX(),yY(),oZ=`javascript`,sZ=`data-language`,cZ=`data-highlight-language`,lZ=`data-theme`,uZ=class e extends gJ{__language;__theme;__isSyntaxHighlightSupported;static getType(){return`code`}static clone(t){return new e(t.__language,t.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=$U().createElement(`code`);OG(t,e.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(sZ,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(cZ,n));let r=this.getTheme();r&&t.setAttribute(lZ,r);let i=this.getStyle();return i&&rV(t.style,i),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(sZ,r):i&&t.removeAttribute(sZ);let a=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?a&&r?r!==i&&t.setAttribute(cZ,r):t.removeAttribute(cZ):a&&r&&t.setAttribute(cZ,r);let o=this.__theme,s=e.__theme;o?o!==s&&t.setAttribute(lZ,o):s&&t.removeAttribute(lZ);let c=this.__style,l=e.__style;return c!==l&&rV(t.style,c,l),!1}exportDOM(e){let t=$U().createElement(`pre`);OG(t,e._config.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(sZ,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(cZ,n));let r=this.getTheme();r&&t.setAttribute(lZ,r);let i=this.getStyle();return i&&rV(t.style,i),{element:t}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||GX(e,`BR`))?{conversion:JX,priority:1}:null,div:()=>({conversion:Bue,priority:1}),pre:()=>({conversion:JX,priority:0}),table:e=>ZX(e)?{conversion:Vue,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return t.classList.contains(`js-file-line`)||n&&ZX(n)?{conversion:YX,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&ZX(t)?{conversion:YX,priority:3}:null}}}static importJSON(e){return KX().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){if(!zY(fW(),`@lexical/code`)){let t=Hue(e);if(t)return t}let{anchor:n,focus:r}=e,i=(n.isBefore(r)?n:r).getNode();if(mV(i)){let e=UX(i),t=[];for(;;)if(_V(e))t.push(gV()),e=e.getNextSibling();else{if(!eZ(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&r[n]===` `;)n++;if(n!==0&&t.push($X(` `.repeat(n))),n!==i)break;e=e.getNextSibling()}}let r=i.splitText(n.offset)[0],a=n.offset===0?0:1,o=r.getIndexWithinParent()+a,s=i.getParentOrThrow(),c=[NH(),...t];s.splice(o,0,c);let l=t[t.length-1];l?l.select():n.offset===0?r.selectPrevious():r.getNextSibling().selectNext(0,0)}if(qX(i)){let{offset:t}=e.anchor;i.splice(t,0,[NH()]),i.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=IH();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}},dZ=class e extends eJ{__highlightType;constructor(e=``,t,n){super(e,n),this.__highlightType=t}static getType(){return`code-highlight`}static clone(t){return new e(t.__text,t.__highlightType||void 0,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__highlightType=e.__highlightType}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e);return OG(t,QX(e.theme,this.__highlightType)),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=QX(n.theme,e.__highlightType),a=QX(n.theme,this.__highlightType);return i!==a&&(i&&kG(t,i),a&&OG(t,a)),r}static importJSON(e){return $X().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return KX()}},RX.tag(`tr`,`td`),RX.tag(`pre`),RX.tag(`code`),RX.tag(`div`),RX.tag(`div`,`br`),RX.tag(`div`),RX.tag(`table`).classAll(`js-file-line-container`),RX.tag(`td`).classAll(`js-file-line`)})),Wue=s((()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}})),Gue=s((()=>{Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript})),Kue=s((()=>{Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml})),que=s((()=>{(function(e){function t(e){return e=e.replace(/<inner>/g,function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var n="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",r=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return n}),i=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+r+i+`(?:`+r+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+r+i+`)(?:`+r+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+r+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+r+`$`),inside:{"table-header":{pattern:RegExp(n),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:t(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:t(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(c(t.content),s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var l=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,`gi`),o={amp:`&`,lt:`<`,gt:`>`,quot:`"`},s=String.fromCodePoint||String.fromCharCode;function c(e){var t=e.replace(a,``);return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return t=t.toLowerCase(),t[0]===`#`?s(t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1))):o[t]||e}),t}e.languages.md=e.languages.markdown})(Prism)})),Jue=s((()=>{Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean})),Yue=s((()=>{(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism)})),Xue=s((()=>{Prism.languages.objectivec=Prism.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec[`class-name`],Prism.languages.objc=Prism.languages.objectivec})),Zue=s((()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}})),Que=s((()=>{(function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}})(Prism)})),$ue=s((()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python})),ede=s((()=>{(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(Prism)})),tde=s((()=>{Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ 	]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift})})),nde=s((()=>{(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism)})),rde=s((()=>{(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:r.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism)})),ide=s((()=>{(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(Prism)}));function ade(e){let t=function(e){let t=/^diff-([\w-]+)/i.exec(e);return t?t[1]:null}(e)||e;try{return!!t&&vZ.languages.hasOwnProperty(t)}catch{return!1}}async function ode(e,t,n){}function pZ(e){return typeof e==`string`?e:Array.isArray(e)?e.map(pZ).join(``):pZ(e.content)}function sde(e,t){let n=/^diff-([\w-]+)/i.exec(t),r=e.getTextContent(),i=vZ.tokenize(r,vZ.languages[n?`diff`:t]);return n&&(i=function(e,t){let n=t,r=vZ.languages[n],i={tokens:e},a=vZ.languages.diff.PREFIXES;for(let e of i.tokens){if(typeof e==`string`||!(e.type in a)||!Array.isArray(e.content))continue;let t=e.type,n=0,i=()=>(n++,new vZ.Token(`prefix`,a[t],t.replace(/^(\w+).*/,`$1`))),o=e.content.filter(e=>typeof e==`string`||e.type!==`prefix`),s=e.content.length-o.length,c=vZ.tokenize(pZ(o),r);c.unshift(i());let l=/\r\n|\n/g,u=e=>{let t=[];l.lastIndex=0;let r,a=0;for(;n<s&&(r=l.exec(e));){let n=r.index+r[0].length;t.push(e.slice(a,n)),a=n,t.push(i())}if(t.length!==0)return a<e.length&&t.push(e.slice(a)),t},d=e=>{for(let t=0;t<e.length&&n<s;t++){let n=e[t];if(typeof n==`string`){let r=u(n);r&&(e.splice(t,1,...r),t+=r.length-1)}else if(typeof n.content==`string`){let e=u(n.content);e&&(n.content=e)}else Array.isArray(n.content)?d(n.content):d([n.content])}};d(c),n<s&&c.push(i()),e.content=c}return i.tokens}(i,n[1])),mZ(i)}function mZ(e,t){let n=[];for(let r of e)if(typeof r==`string`)tH(r,{linebreak:()=>n.push(NH()),tab:()=>n.push(gV()),text:e=>n.push($X(e,t))});else{let{content:e,alias:t}=r;typeof e==`string`?n.push(...mZ([e],r.type===`prefix`&&typeof t==`string`?t:r.type)):Array.isArray(e)&&n.push(...mZ(e,r.type===`unchanged`?void 0:r.type))}return n}function hZ(e,t,n,r){let i=r.getParent();qX(i)?gZ(e,t,n,i):eZ(r)&&r.replace(pV(r.__text))}function cde(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++)PH(r[e])&&(a+=`
`+ ++o);n.setAttribute(`data-gutter`,a)}function gZ(e,t,n,r){let{nodesCurrentlyHighlighting:i}=n,a=r.getKey();r.getLanguage()===void 0&&t.defaultLanguage!==null&&r.setLanguage(t.defaultLanguage);let o=r.getLanguage()||t.defaultLanguage;if(o){if(!ade(o))return r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),void ode();r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0)}else r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1);i.has(a)||(i.add(a),n.didTransform||(n.didTransform=!0,FU(()=>{n.didTransform=!1,i.clear()})),function(e,t){let n=aU(e);if(!qX(n)||!n.isAttached())return;let r=KV();if(!SV(r))return void t();let i=r.anchor,a=i.offset,o=i.type===`element`&&PH(n.getChildAtIndex(i.offset-1)),s=0;if(o||(s=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o)return void i.getNode().select(a,a);n.getChildren().some(e=>{let t=mV(e);if(t||PH(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}}(a,()=>{let e=aU(a);if(!qX(e)||!e.isAttached())return!1;let n=e.getLanguage()||t.defaultLanguage,i=t.$tokenize(e,n??void 0),{from:o,to:s,nodesForReplacement:c}=function(e,t){let n=0;for(;n<e.length&&_Z(e[n],t[n]);)n++;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o++,!_Z(e[r-o],t[i-o])){o--;break}let s=n,c=r-o;return{from:s,nodesForReplacement:t.slice(n,i-o),to:c}}(e.getChildren(),i);return!(o===s&&!c.length)&&(r.splice(o,s-o,c),!0)}))}function _Z(e,t){return eZ(e)&&eZ(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||_V(e)&&_V(t)||PH(e)&&PH(t)}function lde(e,t){let n=[];!0!==e._headless&&n.push(e.registerMutationListener(uZ,t=>{e.read(`latest`,()=>{for(let[n,r]of t)if(r!==`destroyed`){let t=aU(n);t!==null&&cde(t,e)}})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set};return n.push(e.registerNodeTransform(uZ,gZ.bind(null,e,t,r)),e.registerNodeTransform(eJ,hZ.bind(null,e,t,r)),e.registerNodeTransform(dZ,hZ.bind(null,e,t,r))),AG(...n)}function ude(e,t=yZ){if(!e.hasNodes([uZ,dZ]))throw Error(`CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor`);return AG(lde(e,t),Uue(e))}var vZ,yZ,bZ=s((()=>{fZ(),$J(),Iz(),Wue(),Gue(),Kue(),que(),Jue(),Yue(),Xue(),Zue(),Que(),$ue(),ede(),tde(),nde(),rde(),ide(),(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r
?|
|(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})})(Prism),Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore(`go`,`string`,{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go[`class-name`],vZ=globalThis.Prism||window.Prism,yZ={$tokenize(e,t){let n=t||this.defaultLanguage;return n===null?Rue(e.getTextContent()):sde(e,n)},defaultLanguage:oZ,tokenize(e,t){let n=this.defaultLanguage;return vZ.tokenize(e,vZ.languages[t||``]||(n===null?void 0:vZ.languages[n]))}}})),xZ=s((()=>{bZ(),fZ()}));function dde(e,t,n){let r=function(e){let t=e[wZ];return t===void 0&&(t={dispose:()=>{},editors:new Map,installs:new Set},e[wZ]=t),t}(e);if(r.installs.size===0){let t=mde.bind(e);e.addEventListener(`message`,t,!0),r.dispose=()=>{e.removeEventListener(`message`,t,!0)}}if(r.installs.add(t),n){let e=r.editors.get(n)||new Set;e.add(t),r.editors.set(n,e)}return fde.bind(null,e,r,t,n)}function fde(e,t,n,r){if(r){let e=t.editors.get(r);e&&e.delete(n)&&e.size===0&&t.editors.delete(r)}t.installs.delete(n)&&t.installs.size===0&&(t.dispose(),delete e[wZ])}function SZ(e){return e&&e.ownerDocument.defaultView}function pde(e){let t=cue(()=>SZ(e.getRootElement()),t=>e.registerRootListener(e=>{t.value=SZ(e)}));return MY(()=>{let n=t.value;if(n)return dde(n,Symbol(`@lexical/dragon/editorInstall`),e)})}function mde(e){if(e.origin!==this.location.origin)return;let t=function(e){let t=e[wZ];if(t===void 0)return null;let n=JH(rW(e.document));return KH(n)&&t.editors.has(n)?n:null}(this);if(t===null)return;let n=e.data;if(typeof n==`string`){let r;try{r=JSON.parse(n)}catch{return}if(r&&r.protocol===`nuanria_messaging`&&r.type===`request`){let n=r.payload;if(n&&n.functionId===`makeChanges`){let r=n.args;if(Array.isArray(r)){let[n,i,a,o,s,c]=r;if(![n,i,o,s].every(Number.isFinite)||typeof a!=`string`&&a!==-1)return;t.update(()=>{let t=KV();if(SV(t)){let r=t.anchor,l=r.getNode(),u=0,d=0;if(mV(l)&&n>=0&&i>=0&&(u=n,d=n+i,t.setTextNodeRange(l,u,l,d)),typeof a!=`string`||u===d&&a===``||(t.insertRawText(a),l=r.getNode()),mV(l)){let e=l.getTextContentSize();u=Math.min(Math.max(o,0),e),d=o<0||s<0?u:Math.min(o+s,e),t.setTextNodeRange(l,u,l,d)}if(typeof c==`string`&&s>0&&!t.isCollapsed()){let e=CZ[c];e!==void 0&&t.formatText(e)}e.stopImmediatePropagation()}})}}}}}var CZ,wZ,hde=s((()=>{mX(),$J(),CZ={bold:`bold`,italic:`italic`,strikeThrough:`strikethrough`,subscript:`subscript`,superscript:`superscript`,underline:`underline`},wZ=Symbol.for(`@lexical/dragon/WindowState`)}));function gde(e,t,n,r,i){if(e===null||n.size===0&&r.size===0&&!i)return 0;let a=t._selection,o=e._selection;if(i)return 1;if(!(SV(a)&&SV(o)&&o.isCollapsed()&&a.isCollapsed()))return 0;let s=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);t!==void 0&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);n===void 0||kH(n)||i.push(n)}return i}(t,n,r);if(s.length===0)return 0;if(s.length>1){let n=t._nodeMap,r=n.get(a.anchor.key),i=n.get(o.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&mV(r)&&r.__text.length===1&&a.anchor.offset===1?2:0}let c=s[0],l=e._nodeMap.get(c.__key);if(!mV(l)||!mV(c)||l.__mode!==c.__mode)return 0;let u=l.__text,d=c.__text;if(u===d)return 0;let f=a.anchor,p=o.anchor;if(f.key!==p.key||f.type!==`text`)return 0;let m=f.offset,h=p.offset,g=d.length-u.length;return g===1&&h===m-1?2:g===-1&&h===m+1?3:g===-1&&h===m?4:0}function _de(e,t,n){let r=n(),i=0,a=r,o=0,s=null;return(c,l,u,d,f,p)=>{let m=n();if(p.has(`composition-start`)&&(a=r,o=i,s=c),p.has(`historic`))return i=0,r=m,2;p.has(`composition-end`)&&s&&(r=a,i=o,c=s);let h=p.has(`paste`)||p.has(`cut`)?0:gde(c,l,d,f,e.isComposing()),g=(()=>{let n=u===null||u.editor===e,a=p.has(Yq);if(!a&&n&&p.has(`history-merge`))return 0;if(h===1)return 2;if(c===null)return 1;let o=l._selection;if(!(d.size>0||f.size>0))return o===null?2:0;let s=typeof t==`number`?t:t.peek();return!1===a&&h!==0&&h===i&&m<r+s&&n||d.size===1&&function(e,t,n){let r=t._nodeMap.get(e),i=n._nodeMap.get(e),a=t._selection,o=n._selection;return!(SV(a)&&SV(o)&&a.anchor.type===`element`&&a.focus.type===`element`&&o.anchor.type===`text`&&o.focus.type===`text`||!mV(r)||!mV(i)||r.__parent!==i.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>i.exportJSON()))}(Array.from(d)[0],c,l)?0:1})();return r=m,i=h,g}}function TZ(e,t){e.undoStack=[],e.redoStack=[],e.current=null,t&&t(e)}function vde(e,t,n,r=Date.now,i,a=null){let o=_de(e,n,r),s=()=>{i&&i(t)};return s(),AG(e.registerCommand(sq,()=>(function(e,t,n){let r=t.redoStack,i=t.undoStack;if(i.length!==0){let a=t.current,o=i.pop();a!==null&&(r.push(a),e.dispatchCommand(Fq,!0)),i.length===0&&e.dispatchCommand(Iq,!1),t.current=o||null,n&&n(t),o&&o.editor.setEditorState(o.editorState,{tag:`historic`})}}(e,t,i),!0),0),e.registerCommand(cq,()=>(function(e,t,n){let r=t.redoStack,i=t.undoStack;if(r.length!==0){let a=t.current;a!==null&&(i.push(a),e.dispatchCommand(Iq,!0));let o=r.pop();r.length===0&&e.dispatchCommand(Fq,!1),t.current=o||null,n&&n(t),o&&o.editor.setEditorState(o.editorState,{tag:`historic`})}}(e,t,i),!0),0),e.registerCommand(Nq,()=>(TZ(t,i),!1),0),e.registerCommand(Pq,()=>(TZ(t,i),e.dispatchCommand(Fq,!1),e.dispatchCommand(Iq,!1),!0),0),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:i,dirtyElements:c,tags:l})=>{let u=t.current,d=t.redoStack,f=t.undoStack,p=u===null?null:u.editorState;if(u!==null&&n===p)return;let m=o(r,n,u,i,c,l);if(m===1){if(d.length!==0&&(t.redoStack=[],e.dispatchCommand(Fq,!1)),u!==null){f.push({...u});let t=typeof a==`number`||a===null?a:a.peek();t!==null&&f.length>t&&f.splice(0,f.length-t),e.dispatchCommand(Iq,!0)}}else if(m===2)return;t.current={editor:e,editorState:n},s()}))}function yde(){return{current:null,redoStack:[],undoStack:[]}}var bde=s((()=>{mX(),$J(),Date.now}));function xde(e){let t=null;if(aW(e)){let n=e.textContent;(n!==null&&n!==``||e.children.length>0)&&(t=EZ(e.getAttribute(`href`)||``,{rel:e.getAttribute(`rel`),target:e.getAttribute(`target`),title:e.getAttribute(`title`)}))}return{node:t}}function EZ(e=``,t){return WU(new NZ(e,t))}function DZ(e){return e instanceof NZ}function OZ(e=``,t){return WU(new PZ(e,t))}function kZ(e){return e instanceof PZ}function AZ(e,t){if(e.type===`element`){let n=e.getNode();return Q(n)||function(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.`)}(252),n.getChildren()[e.offset+t]||null}return null}function Sde(e,t={}){let n;if(e&&typeof e==`object`){let{url:r,...i}=e;n=r,t={...i,...t}}else n=e;let{target:r,title:i}=t,a=t.rel===void 0?`noreferrer`:t.rel,o=KV();if(o===null||!SV(o)&&!CV(o))return;if(CV(o)){let e=o.getNodes();if(e.length===0)return;e.forEach(e=>{if(n===null){let t=IJ(e,e=>!kZ(e)&&DZ(e));t&&(t.insertBefore(e),t.getChildren().length===0&&t.remove())}else{let t=IJ(e,e=>!kZ(e)&&DZ(e));if(t)t.setURL(n),r!==void 0&&t.setTarget(r),a!==void 0&&t.setRel(a);else{let t=EZ(n,{rel:a,target:r});e.insertBefore(t),t.append(e)}}});return}if(o.isCollapsed()&&n===null)for(let e of o.getNodes()){let t=IJ(e,e=>!kZ(e)&&DZ(e));t!==null&&(t.getParentOrThrow().splice(t.getIndexWithinParent(),0,t.getChildren()),t.remove());return}let s=o.extract();if(n===null){let e=new Set;s.forEach(t=>{let n=IJ(t,e=>!kZ(e)&&DZ(e));if(n!==null){let t=n.getKey();if(e.has(t))return;(function(e,t){let n=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),r=e.getChildren(),i=r=>n.has(r.getKey())||Q(r)&&t.some(t=>e.isParentOf(t)&&r.isParentOf(t)),a=r.filter(i);if(a.length===r.length)return r.forEach(t=>e.insertBefore(t)),void e.remove();let o=r.findIndex(i),s=r.findLastIndex(i),c=o===0,l=s===r.length-1;if(c)a.forEach(t=>e.insertBefore(t));else if(l)for(let t=a.length-1;t>=0;t--)e.insertAfter(a[t]);else{for(let t=a.length-1;t>=0;t--)e.insertAfter(a[t]);let t=r.slice(s+1);if(t.length>0){let n=UU(e);a[a.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}})(n,s),e.add(t)}});return}let c=new Set,l=e=>{c.has(e.getKey())||(c.add(e.getKey()),e.setURL(n),r!==void 0&&e.setTarget(r),a!==void 0&&e.setRel(a),i!==void 0&&e.setTitle(i))};if(s.length===1){let e=s[0],t=IJ(e,DZ);if(t!==null)return l(t)}(function(e){let t=KV();if(!SV(t))return e();let n=oB(t),r=n.isBackward(),i=AZ(n.anchor,r?-1:0),a=AZ(n.focus,r?0:-1);if(e(),i||a){let e=KV();if(SV(e)){let t=e.clone();if(i){let e=i.getParent();e&&t.anchor.set(e.getKey(),i.getIndexWithinParent()+ +!!r,`element`)}if(a){let e=a.getParent();e&&t.focus.set(e.getKey(),a.getIndexWithinParent()+ +!r,`element`)}pU(oB(t))}}})(()=>{let e=null;for(let t of s){if(!t.isAttached())continue;let o=IJ(t,DZ);if(o){l(o);continue}if(Q(t)){if(!t.isInline())continue;if(DZ(t)){if(!(kZ(t)||e!==null&&e.getParentOrThrow().isParentOf(t))){l(t),e=t;continue}for(let e of t.getChildren())t.insertBefore(e);t.remove();continue}}let s=t.getPreviousSibling();DZ(s)&&s.is(e)?s.append(t):(e=EZ(n,{rel:a,target:r,title:i}),t.insertAfter(e),e.append(t))}})}function jZ(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes(`@`)?`mailto:${e}`:IZ.test(e)?`tel:${e}`:`https://${e}`}var MZ,NZ,PZ,FZ,IZ,LZ=s((()=>{$J(),BX(),MZ=new Set([`http:`,`https:`,`mailto:`,`sms:`,`tel:`]),NZ=class e extends gJ{__url;__target;__rel;__title;static getType(){return`link`}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}constructor(e=``,t={},n){super(n);let{target:r=null,rel:i=null,title:a=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=a}afterCloneFrom(e){super.afterCloneFrom(e),this.__url=e.__url,this.__rel=e.__rel,this.__target=e.__target,this.__title=e.__title}createDOM(e){let t=$U().createElement(`a`);return this.updateLinkDOM(null,t,e),OG(t,e.theme.link),t}updateLinkDOM(e,t,n){if(aW(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(let n of[`target`,`rel`,`title`]){let r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:xde,priority:1})}}static importJSON(e){return EZ().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){let t=e;e=jZ(e);try{let t=new URL(jZ(e));if(!MZ.has(t.protocol))return`about:blank`}catch{let e=t.replace(/[\u0000-\u001F\u007F\s]/g,``).match(/^([a-z][a-z0-9+.-]*):/i);if(e!=null&&!MZ.has(`${e[1].toLowerCase()}:`))return`about:blank`}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let n=UU(this);return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!SV(t))return!1;let r=t.anchor.getNode(),i=t.focus.getNode();return(this.is(r)||this.isParentOf(r))&&(this.is(i)||this.isParentOf(i))&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith(`mailto:`)}isWebSiteURI(){return this.__url.startsWith(`https://`)||this.__url.startsWith(`http://`)}shouldMergeAdjacentLink(e){return this.getType()===e.getType()&&this.__url===e.__url&&this.__target===e.__target&&this.__rel===e.__rel&&this.__title===e.__title}},PZ=class e extends NZ{__isUnlinked;constructor(e=``,t={},n){super(e,t,n),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}afterCloneFrom(e){super.afterCloneFrom(e),this.__isUnlinked=e.__isUnlinked}static getType(){return`autolink`}static clone(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__key)}shouldMergeAdjacentLink(e){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?$U().createElement(`span`):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return OZ().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=OZ(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}},FZ=FB(`TOGGLE_LINK_COMMAND`),IZ=/^\+?[0-9\s()-]{5,}$/,RX.tag(`a`)}));function RZ(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 Cde(e){let t=1,n=e.getParent();for(;n!=null;){if(JZ(n)){let e=n.getParent();if(QZ(e)){t++,n=e.getParent();continue}RZ(40)}return t}return t}function wde(e){let t=e.getParent();QZ(t)||RZ(40);let n=t,r=t;for(;r!==null;)r=r.getParent(),QZ(r)&&(n=r);return n}function zZ(e){return JZ(e)&&QZ(e.getFirstChild())}function Tde(e,t){return JZ(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function BZ(e){let t=KV();if(t!==null){let n=t.getNodes();if(SV(t)){let[r]=t.getStartEndPoints(),i=r.getNode(),a=i.getParent();if(HU(i)){let e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=IH();i.append(e),n=e.select().getNodes()}}else if(Tde(i,n)){let t=ZZ(e);if(HU(a)){i.replace(t);let e=qZ();Q(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(JZ(i)){let e=i.getParentOrThrow();VZ(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t<n.length;t++){let i=n[t];if(Q(i)&&i.isEmpty()&&!JZ(i)&&!r.has(i.getKey())){HZ(i,e);continue}let a=jle(i)?i.getParent():JZ(i)&&i.isEmpty()?i:null;for(;a!=null;){let t=a.getKey();if(QZ(a)){if(!r.has(t)){let n=ZZ(e);VZ(n,a.getChildren()),a.replace(n),r.add(t)}break}{let n=a.getParent();if(HU(n)&&!r.has(t)){r.add(t),HZ(a,e);break}a=n}}}}}function VZ(e,t){e.splice(e.getChildrenSize(),0,t)}function HZ(e,t){if(QZ(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),i=qZ(),a;if(VZ(i,e.getChildren()),QZ(n)&&t===n.getListType())n.append(i),QZ(r)&&t===r.getListType()&&(VZ(n,r.getChildren()),r.remove()),a=n;else if(QZ(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(i),a=r;else{let n=ZZ(t);n.append(i),e.replace(n),a=n}i.setFormat(e.getFormatType()),i.setIndent(e.getIndent());let o=KV();return SV(o)&&(a.getKey()===o.anchor.key&&o.anchor.set(i.getKey(),o.anchor.offset,`element`),a.getKey()===o.focus.key&&o.focus.set(i.getKey(),o.focus.offset,`element`)),e.remove(),a}function UZ(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&zZ(n)&&zZ(r)&&(UZ(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function Ede(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())JZ(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),QZ(r.getFirstChild())||n++)}function Dde(e){let t=new Set;if(zZ(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(zZ(r)&&zZ(i)){let n=i.getFirstChild();if(QZ(n)){n.append(e);let i=r.getFirstChild();QZ(i)&&(VZ(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(zZ(r)){let t=r.getFirstChild();if(QZ(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(zZ(i)){let t=i.getFirstChild();QZ(t)&&t.append(e)}else if(QZ(n)){let t=UU(e),a=UU(n);t.append(a),a.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function WZ(e){if(zZ(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(QZ(n?n.getParent():void 0)&&JZ(n)&&QZ(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=UU(e),i=UU(t);r.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));let a=UU(e),o=UU(t);a.append(o),VZ(o,e.getNextSiblings()),n.insertBefore(r),n.insertAfter(a),n.replace(e)}}}function Ode(e=!1){let t=KV();if(!SV(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode(),r=null;if(JZ(n)&&n.getChildrenSize()===0)r=n;else if(mV(n)){let e=n.getParent();JZ(e)&&e.getChildren().every(e=>mV(e)&&e.getTextContent().trim()===``)&&(r=e)}if(r===null)return!1;let i=wde(r),a=r.getParent();QZ(a)||RZ(40);let o=a.getParent(),s;if(HU(o))s=IH(),i.insertAfter(s);else{if(!JZ(o))return!1;s=UU(o),o.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();let c=r.getNextSiblings();if(c.length>0){let t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(a,r):1,n=UU(a).setStart(t);if(JZ(s)){let e=UU(s);e.append(n),s.insertAfter(e)}else s.insertAfter(n);n.append(...c)}return function(e){let t=e;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!JZ(e)&&!QZ(e))break;t=e}t.remove()}(r),!0}function kde(e){if(e.classList.contains(`task-list-item`)){for(let t of e.children)if(t.tagName===`INPUT`)return GZ(t)}if(e.classList.contains(`joplin-checkbox`)){for(let t of e.children)if(t.classList.contains(`checkbox-wrapper`)&&t.children.length>0&&t.children[0].tagName===`INPUT`)return GZ(t.children[0])}let t=e.getAttribute(`aria-checked`),n=qZ(t===`true`||t!==`false`&&void 0);return bW(n,e),{after:KZ.bind(null,n),node:yW(n,e)}}function GZ(e){if(e.getAttribute(`type`)!==`checkbox`)return{node:null};let t=qZ(e.hasAttribute(`checked`));return{after:KZ.bind(null,t),node:t}}function KZ(e,t){let n=t[0];return t.length===1&&LH(n)&&!e.getFormatType()&&n.getFormatType()?(e.setFormat(n.getFormatType()),n.getChildren()):t}function qZ(e){return WU(new $Z(void 0,e))}function JZ(e){return e instanceof $Z}function YZ(e,t,n){let r=[],i=[],a=t.list;if(a!==void 0){let e=a[`${n.__tag}Depth`]||[],t=Cde(n)-1,o=t%e.length,s=e[o],c=a[n.__tag],l,u=a.nested,d=a.checklist;if(u!==void 0&&u.list&&(l=u.list),c!==void 0&&r.push(c),d!==void 0&&n.__listType===`check`&&r.push(d),s!==void 0){r.push(...DG(s));for(let t=0;t<e.length;t++)t!==o&&i.push(n.__tag+t)}if(l!==void 0){let e=DG(l);t>1?r.push(...e):i.push(...e)}}i.length>0&&kG(e,...i),r.length>0&&OG(e,...r)}function XZ(e){let t;if(function(e){return oW(e)&&e.nodeName.toLowerCase()===`ol`}(e)){let n=e.start;t=ZZ(`number`,n)}else t=function(e){if(e.getAttribute(`__lexicallisttype`)===`check`||e.classList.contains(`contains-task-list`)||e.getAttribute(`data-is-checklist`)===`1`)return!0;for(let t of e.childNodes)if(oW(t)&&t.hasAttribute(`aria-checked`))return!0;return!1}(e)?ZZ(`check`):ZZ(`bullet`);return yW(t,e),{after:e=>function(e,t){let n=t.createListItemNode.bind(t),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(JZ(i)){r.push(i);let e=i.getChildren();e.length>1&&e.forEach(e=>{QZ(e)&&r.push(n().append(e))})}else r.push(n().append(i))}return r}(e,t),node:t}}function ZZ(e=`number`,t=1){return WU(new eQ(e,t))}function QZ(e){return e instanceof eQ}var $Z,eQ,tQ,nQ,rQ,iQ=s((()=>{$J(),BX(),$Z=class extends gJ{__value;__checked;$config(){return this.config(`listitem`,{$transform:e=>{let t=e.getParent();if(QZ(t))t.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0);else if(t){let n=e.createParentElementNode();QZ(n)||RZ(340);let r=[e];for(let t of[`previous`,`next`]){r.reverse();for(let{origin:n}of JW(e,t)){if(!JZ(n))break;r.push(n)}}e.insertBefore(n),n.splice(0,0,r),HU(t)||(CG(n,mG(JW(n,`next`)),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),t.isEmpty()&&t.isAttached()&&t.remove())}},extends:gJ,importDOM:$B({li:()=>({conversion:kde,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=$U().createElement(`li`);return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){(function(e,t){let n=t.getParent();!QZ(n)||n.getListType()!==`check`||QZ(t.getFirstChild())?(e.removeAttribute(`role`),e.removeAttribute(`tabIndex`),e.removeAttribute(`aria-checked`)):(e.setAttribute(`role`,`checkbox`),e.setAttribute(`tabIndex`,`-1`),e.setAttribute(`aria-checked`,t.getChecked()?`true`:`false`))})(t,this),t.value=this.__value,function(e,t,n){let r=t.list;if(!r)return;let i=r.listitem,a=r.nested&&r.nested.listitem,o=n.getParent(),s=QZ(o)&&o.getListType()===`check`,c=n.getChecked(),l=n.getChildren().some(e=>QZ(e)),u=[];r.listitemChecked!==void 0&&u.push(r.listitemChecked),r.listitemUnchecked!==void 0&&u.push(r.listitemUnchecked),a!==void 0&&u.push(...DG(a)),u.length>0&&kG(e,...u);let d=[];if(i!==void 0&&d.push(...DG(i)),s){let e=c?r.listitemChecked:r.listitemUnchecked;e!==void 0&&d.push(e)}a!==void 0&&l&&d.push(...DG(a)),d.length>0&&OG(e,...d)}(t,n.theme,this);let r=e?e.__style:``,i=this.__style;r!==i&&rV(t.style,i,r),function(e,t,n){let r=t.__textStyle,i=n?n.__textStyle:``;if(n!==null&&i===r)return;let a=nV(r);for(let t in a)e.style.setProperty(`--listitem-marker-${t}`,a[t]);if(i!==``)for(let t in nV(i))t in a||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){let r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),zZ(this)?{after(e){if(oW(e)){let t=e.previousElementSibling;if(oW(t)&&t.nodeName===`LI`){for(;e.firstChild;)t.append(e.firstChild);e.remove()}}return e},element:t}:{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(Q(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(JZ(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!QZ(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=UU(n),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}let r=this.__key,i=0;if(t&&(Q(e)||RZ(139),i=e.getChildrenSize(),e.splice(i,0,this.getChildren())),t&&Q(e)){let t=KV();if(SV(t))for(let n of t.getStartEndPoints())n.key===r&&n.type===`element`&&n.set(e.getKey(),i+n.offset,`element`)}return this.remove(),n.getChildrenSize()===0&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(QZ(n)||RZ(39),JZ(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),r.length!==0){let i=UU(n);r.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&zZ(t)&&zZ(n)&&(UZ(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){let n=UU(this);return this.insertAfter(n,t),n}collapseAtStart(e){if(zZ(this))return!1;let t=this.getParentOrThrow();if(JZ(t.getParentOrThrow()))return WZ(this),!0;let n=IH().append(...this.getChildren()),r=this.getNextSiblings();if(r.length>0){let e=UU(t);e.append(...r),t.insertAfter(e)}return t.insertAfter(n),this.remove(),t.getChildrenSize()===0&&t.remove(),n.selectStart(),!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return QZ(n)&&(t=n.getListType()),t===`check`?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;JZ(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&RZ(117),(e=Math.floor(e))>=0||RZ(199);let t=this.getIndent();for(;t!==e;)t<e?(Dde(this),t++):(WZ(this),t--);return this}canInsertAfter(e){return JZ(e)}canReplaceWith(e){return JZ(e)}canMergeWith(e){return JZ(e)||LH(e)}extractWithChild(e,t){if(!SV(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return ZZ(`bullet`)}canMergeWhenEmpty(){return!0}},eQ=class extends gJ{__tag;__start;__listType;$config(){return this.config(`list`,{$transform:e=>{(function(e){let t=e.getNextSibling();QZ(t)&&e.getListType()===t.getListType()&&UZ(e,t)})(e),Ede(e)},extends:gJ,importDOM:$B({ol:()=>({conversion:XZ,priority:0}),ul:()=>({conversion:XZ,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=tQ[e]||e;this.__listType=r,this.__tag=r===`number`?`ol`:`ul`,this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e===`number`?`ol`:`ul`,t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,r=$U().createElement(n);return this.__start!==1&&r.setAttribute(`start`,String(this.__start)),r.__lexicalListType=this.__listType,YZ(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(YZ(t,n.theme,this),e.__start!==this.__start&&t.setAttribute(`start`,String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return oW(t)&&(this.__start!==1&&t.setAttribute(`start`,String(this.__start)),this.__listType===`check`&&t.setAttribute(`__lexicalListType`,`check`)),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){let t=n[e];JZ(t)||(r===n&&(r=[...n]),r[e]=this.createListItemNode().append(!Q(t)||QZ(t)||t.isInline()?t:pV(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return JZ(e)}createListItemNode(){return qZ()}},tQ={ol:`number`,ul:`bullet`},RX.tag(`ol`,`ul`),RX.tag(`li`),RX.tag(`li`).classAll(`task-list-item`),RX.tag(`li`).classAll(`joplin-checkbox`),nQ=FB(`INSERT_UNORDERED_LIST_COMMAND`),rQ=FB(`INSERT_ORDERED_LIST_COMMAND`)}));function aQ(e,t,n=null){let r=QU(n),i=n?XU(n):[],a=n!==null&&i.length>0;if(a&&typeof r.caretPositionFromPoint==`function`){let a=r.caretPositionFromPoint(e,t,{shadowRoots:i});if(a!==null&&function(e,t){for(let n=e;n!==null;){if(n===t)return!0;n=MU(n)}return!1}(a.offsetNode,n))return{node:a.offsetNode,offset:a.offset}}if(a){let i=n.getRootNode();if(YU(i)){let a=i.elementFromPoint(e,t);if(a!==null&&n.contains(a)){let n=function(e,t,n,r){let i=r.createRange(),a=e=>t<e.top?e.top-t:t>e.bottom?t-e.bottom:0,o=t=>e<t.left?t.left-e:e>t.right?e-t.right:0,s=r.createTreeWalker(n,NodeFilter.SHOW_TEXT),c=null,l=1/0,u=1/0;for(let e=s.nextNode();e;e=s.nextNode()){i.selectNodeContents(e);for(let t of i.getClientRects()){let n=a(t),r=o(t);(n<l||n===l&&r<u)&&(l=n,u=r,c=e)}}if(c===null)return null;let d=0,f=1/0,p=1/0;for(let t=0;t<=c.length;t++){i.setStart(c,t),i.collapse(!0);let n=i.getBoundingClientRect(),r=a(n),o=Math.abs(e-n.left);(r<f||r===f&&o<p)&&(f=r,p=o,d=t)}return{node:c,offset:d}}(e,t,a,r);if(n!==null)return n}}}if(typeof r.caretRangeFromPoint==`function`){let n=r.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(typeof r.caretPositionFromPoint==`function`){let n=r.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}function oQ(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 Ade(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy(`lexical`,{createHTML:e=>e}).createHTML(e):e}function jde(e,t,n,r){if(!e)return!1;let i=a=>!!e[a]&&e[a](t,n,i.bind(null,a-1),r);return i(e.length-1)}function sQ(e,t,n){let r=t.getData(`text/plain`);for(let i of function(e){return Object.keys(e.$importMimeType).filter(t=>e.$importMimeType[t]!==void 0).sort((t,n)=>{let r=e.priority[t],i=e.priority[n];return r===void 0&&i===void 0?t<n?-1:+(t>n):r===void 0?1:i===void 0?-1:r-i})}(e)){let a=t.getData(i);if(a&&(i!==`text/html`||a!==r)&&jde(e.$importMimeType[i],a,n,t))return!0}return!1}function cQ(e,t=KV()){return t??oQ(166),SV(t)&&t.isCollapsed()||t.getNodes().length===0?``:Nue(e,t)}function lQ(e,t=KV()){return t??oQ(166),SV(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(Fde(e,t))}function uQ(e,t,n){(function(){let e=fue(xQ.name);return e?e.output:bQ})().$insertDataTransfer(e,t)}function Mde(e,t){let n={editorKey:t.getKey()};e.setData(SQ,JSON.stringify(n))}function Nde(e,t,n){let r=e.dataTransfer;if(r===null)return!1;let i=function(e){let t=e.getData(SQ);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}return(r=n)!==null&&typeof r==`object`&&`editorKey`in r&&typeof r.editorKey==`string`?n:null;var r}(r);if(i===null)return!1;let a=function(e,t){let n=aQ(e.clientX,e.clientY,t.getRootElement());if(n===null)return null;let r=lU(n.node);if(r===null)return null;if(mV(r))return YW(r,`next`,n.offset);if(Q(r))return xG(r,n.offset,`next`);let i=r.getParent();return i===null?null:xG(i,r.getIndexWithinParent()+1,`next`)}(e,t);if(a===null)return!1;let o=SG(a);if(o===null)return!1;let s=i.editorKey===t.getKey(),c=KV();if(s){if(!SV(c)||c.isCollapsed())return!1;if(function(e,t){let{anchor:n,focus:r}=bG(pG(t),`next`);return iG(n,e)<0&&iG(e,r)<0}(a,c))return e.preventDefault(),!0;c.removeText()}if(!o.origin.isAttached())return e.preventDefault(),!0;if(n(r,dG(tG(o)),t),!s){let e=t.getRootElement(),n=e?e.ownerDocument:null,r=n?function(e,t){for(let n of ZU(t)){let t=JH(n);if(KH(t)&&t.getKey()===e&&oW(n))return n}return null}(i.editorKey,n):null;r!==null&&r.dispatchEvent(new InputEvent(`beforeinput`,{bubbles:!0,cancelable:!0,inputType:`deleteByDrag`}))}return e.preventDefault(),!0}function Pde(e,t){return Nde(e,t,uQ)}function dQ(e,t,n){e.dispatchCommand(GK,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(SV(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=lG(t,`previous`);if(r)if(GW(r))n=r.origin;else{let e=nG(r,QW(fU(),`next`).getFlipped());for(let t of e){if(mV(t.origin)){n=t.origin;break}if(Q(t.origin)&&!t.origin.isInline())break}}if(n&&mV(n)){let t=n.getFormat(),r=n.getStyle();e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}}}(n))}function fQ(e,t,n,r=[]){let i=t===null||n.isSelected(t),a=Q(n)&&n.excludeFromCopy(`html`),o=n;t!==null&&mV(o)&&(o=rY(t,o,`clone`));let s=Q(o)?o.getChildren():[],c=function(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&oQ(58,n.name),Q(e)){let e=t.children;Array.isArray(e)||oQ(59,n.name)}return t}(o);mV(o)&&o.getTextContentSize()===0&&(i=!1);let l=i&&CV(t)&&Q(n)?null:t;for(let r=0;r<s.length;r++){let a=s[r],o=fQ(e,l,a,c.children);!i&&Q(n)&&o&&n.extractWithChild(a,t,`clone`)&&(i=!0)}if(i&&!a){let t=IW(o);if(t.length>0){let n={};for(let r of t){let t=LW(o,r);t===null&&oQ(366,o.constructor.name,r);let i=[];fQ(e,null,t,i),i.length===1&&i[0].type===t.getType()||oQ(385,r,o.constructor.name,String(i.length),String(i.length>0?i[0].type:`none`)),n[r]=i[0]}c.$slots=n}}if(i&&!a)r.push(c);else if(Array.isArray(c.children))for(let e=0;e<c.children.length;e++){let t=c.children[e];r.push(t)}return i}function Fde(e,t){let n=[],r=fU(),i=SV(t)?t.anchor.getNode():CV(t)?t.getNodes()[0]??null:null,a=i===null?null:PW(i),o=(Q(a)?a:r).getChildren();for(let r=0;r<o.length;r++)fQ(e,t,o[r],n);return{namespace:e._config.namespace,nodes:n}}function Ide(e){let t=[];for(let n of e)t.push(yle(n));return t}async function pQ(e,t,n){if(CQ!==null)return!1;if(t!==null)return new Promise((r,i)=>{e.update(()=>{r(mQ(e,t,n))})});let r=e.getRootElement(),i=e._window||window,a=i.document,o=JU(i);if(r===null||o===null)return!1;let s=a.createElement(`span`);s.style.position=`fixed`,s.style.top=`-1000px`,s.append(a.createTextNode(`#`)),r.append(s);let c=a.createRange();return c.setStart(s,0),c.setEnd(s,1),o.removeAllRanges(),o.addRange(c),new Promise((t,r)=>{let o=e.registerCommand(Aq,r=>(pY(r,ClipboardEvent)&&(o(),CQ!==null&&(i.clearTimeout(CQ),CQ=null),t(mQ(e,r,n))),!0),4);CQ=i.setTimeout(()=>{o(),CQ=null,t(!1)},50),a.execCommand(`copy`),s.remove()})}function mQ(e,t,n){if(n===void 0){let t=JU(e._window),r=KV();if(!r||r.isCollapsed()||!t)return!1;let i=tW(t,e.getRootElement()),a=i.anchorNode,o=i.focusNode;if(a!==null&&o!==null&&!GH(e,a,o))return!1;n=hQ(r)}t.preventDefault();let r=t.clipboardData;return r!==null&&(gQ(r,n),!0)}function hQ(e=KV()){return function(e,t){let n={"text/plain":``};for(let[r,i]of Object.entries(e))if(i){let e=Rde(i,t);e!==null&&(n[r]=e)}return n}(Lde(),e)}function gQ(e,t){for(let[n]of wQ)t[n]===void 0&&e.setData(n,``);for(let n in t){let r=t[n];r!==void 0&&e.setData(n,r)}}function Lde(e=fW()){let t=zY(e,EQ.name);return t?t.output:TQ}function Rde(e,t){let n=r=>e[r]?e[r](t,n.bind(null,r-1)):null;return n(e.length-1)}var _Q,vQ,yQ,bQ,xQ,SQ,CQ,wQ,TQ,EQ,zde=s((()=>{$J(),mX(),BX(),dY(),yY(),_Q={"application/x-lexical-editor":0,"text/html":10,"text/plain":20,"text/uri-list":30},vQ=(e,t)=>{if(!SV(t))return t.insertRawText(e),!0;let n=e=>{let t=KV();SV(t)&&e(t)};return tH(e,{linebreak:()=>n(e=>e.insertParagraph()),tab:()=>n(e=>e.insertNodes([gV()])),text:e=>n(t=>t.insertText(e))}),!0},yQ={"application/x-lexical-editor":[(e,t,n)=>{try{let n=fW(),r=JSON.parse(e);if(r&&r.namespace===n._config.namespace&&Array.isArray(r.nodes))return dQ(n,Ide(r.nodes),t),!0}catch(e){console.error(e)}return n()}],"text/html":[(e,t,n)=>{try{let n=fW();return dQ(n,jue(n,new DOMParser().parseFromString(Ade(e),`text/html`)),t),!0}catch(e){return console.error(e),n()}}],"text/plain":[vQ],"text/uri-list":[vQ]},bQ={$importMimeType:yQ,$insertDataTransfer:(e,t)=>sQ({$importMimeType:yQ,priority:_Q},e,t),priority:_Q},xQ=wG({build:(e,t)=>({$importMimeType:t.$importMimeType,$insertDataTransfer:(e,n)=>sQ(t,e,n),priority:t.priority}),config:TG({$importMimeType:yQ,priority:_Q}),mergeConfig(e,t){let n=EG(e,t);if(t.$importMimeType){let r={...e.$importMimeType};for(let[e,n]of Object.entries(t.$importMimeType))if(n){let t=r[e];r[e]=t?[...t,...n]:n}n.$importMimeType=r}return t.priority&&(n.priority={...e.priority,...t.priority}),n},name:`@lexical/clipboard/Import`}),SQ=`application/x-lexical-drag`,CQ=null,wQ=[[`text/html`,cQ],[`application/x-lexical-editor`,lQ]],TQ={"application/x-lexical-editor":[(e,t)=>e?lQ(fW(),e):t()],"text/html":[(e,t)=>e?cQ(fW(),e):t()],"text/plain":[(e,t)=>e?e.getTextContent():t()]},EQ=wG({build:(e,t,n)=>t.$exportMimeType,config:TG({$exportMimeType:TQ}),mergeConfig(e,t){let n=EG(e,t);if(t.$exportMimeType){let r={...e.$exportMimeType};for(let[e,n]of Object.entries(t.$exportMimeType))if(n){let t=r[e];r[e]=t?[...t,...n]:n}n.$exportMimeType=r}return n},name:`@lexical/clipboard/GetClipboardData`})}));function DQ(e){let t=WU(new GQ);return e&&e.shadowRoot?t.setIsShadowRoot(!0):t}function OQ(e){return e instanceof GQ}function kQ(e){return e.nodeName.toLowerCase()===`span`&&e.style.fontSize===`26pt`}function AQ(e){let t=e.nodeName.toLowerCase(),n=null;return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`||(n=jQ(t),vW(e,n),bW(n,e),yW(n,e)),{node:n}}function Bde(e){let t=DQ();return bW(t,e),vW(e,t),yW(t,e),{node:t}}function jQ(e=`h1`){return WU(new KQ(e))}function MQ(e){return e instanceof KQ}function NQ(e){return OH(lU(e))}function PQ(e,t,n,r){let i=!1,a=null;if(e.isCollapsed()&&e.anchor.type===`text`){let t=e.anchor.getNode();if(mV(t)){a=t;let r=e.anchor.offset,o=r===t.getTextContentSize()&&t.getNextSibling()===null,s=r===0&&t.getPreviousSibling()===null;i=n===`end`&&o||n===`start`&&s||n===`both`&&(o||s)}}let o=!1;for(let[n,s]of Object.entries(r)){if(s==null||!s[t])continue;let r=n;if(s.onlyAtBoundary){if(!(i&&a&&mV(a)&&a.hasFormat(r)))continue;o=!0}e.hasFormat(r)&&e.toggleFormat(r)}o&&e.setStyle(``)}function FQ(e,t){return function(e,t){if(!e.isCollapsed())return!1;let n=lG(e.focus,t),r=IJ(n.origin,VU);if(!r)return!1;let i=e.focus.getNode();if(!r.is(i)&&!IU(i,r))return!1;let a=nG(n,JW(r,t));if(a.getTextSlices().some(e=>e&&e.getTextContentSize()>0))return!1;let o=nG(a.anchor.getSiblingCaret(),a.focus),s=o.anchor.origin;for(let e of o){if(!KW(e)||!e.origin.is(s.getParent()))return!1;s=e.origin}let c=r;for(let e of eG(JW(r,t))){if(!e.origin.is(c.getParent())){if(KU(e.origin)){let e=JW(c,t);return dG(nG(e,e)),!0}break}if(!VU(e.origin))break;c=e.origin}return!1}(e,t)||function(e,t){if(!e.isCollapsed()||e.anchor.type!==`element`)return!1;let n=lG(e.anchor,t).getNodeAtCaret();return!(!VU(n)||n.isInline()||(dG(tG(_G(QW(n,t)))),0))}(e,t)}function IQ(e){return OH(e)&&!e.isInline()&&!e.isIsolated()&&e.isKeyboardSelectable()}function LQ(e){let t=WV();t.add(e),pU(t)}function RQ(e,t){if(!e.isCollapsed())return!1;let n=e.focus,r=n.getNode(),i=t?`previous`:`next`,a=lG(n,i);if(n.type===`element`&&Q(r)&&(kH(r)||VU(r))){let e=a.getNodeAtCaret();return!(e===null||!IQ(e))&&(LQ(e.__key),!0)}let o=IJ(Q(r)?r:r.getParentOrThrow(),e=>Q(e)&&!e.isInline()&&HU(e.getParent()));if(o===null)return!1;let s=JW(o,i).getNodeAtCaret();if(s===null||!IQ(s))return!1;if(o.getTextContentSize()===0)return LQ(s.__key),!0;let c=fW().getRootElement();if(c===null)return!1;let l=JU(c.ownerDocument.defaultView);if(l===null||l.rangeCount===0)return!1;let u=l.anchorNode,d=l.anchorOffset,f=l.focusNode,p=l.focusOffset;l.modify(`move`,t?`backward`:`forward`,`line`);let m=l.anchorNode,h=l.anchorOffset;if(m===null)return zQ(l,u,d,f,p),!1;let g=lU(m);return zQ(l,u,d,f,p),g!==null&&(m===u&&h===d||!g.is(o)&&!IU(g,o))&&(LQ(s.__key),!0)}function zQ(e,t,n,r,i){t!==null&&r!==null&&e.setBaseAndExtent(t,n,r,i)}function BQ(e,t){if(!e.isCollapsed())return!1;let n=e.focus.getNode(),r=IJ(Q(n)?n:n.getParentOrThrow(),e=>Q(e)&&!e.isInline());if(r===null)return!1;let i=fW(),a=i.getRootElement();if(a===null)return!1;let o=a.ownerDocument.defaultView;if(o===null)return!1;let s=!1;for(let e of r.getChildren())if(Q(e)&&e.isInline()){let t=i.getElementByKey(e.getKey());if(t!==null){let e=o.getComputedStyle(t).display;if(e===`inline-grid`||e===`inline-flex`){s=!0;break}}}if(!s)return!1;let c=JW(r,t?`previous`:`next`).getNodeAtCaret();if(c===null||!Q(c)){if(t){let e=r.getFirstDescendant();mV(e)?e.select(0,0):r.select(0,0)}else{let e=r.getLastDescendant();if(mV(e)){let t=e.getTextContentSize();e.select(t,t)}else{let e=r.getChildrenSize();r.select(e,e)}}return!0}let l=i.getElementByKey(c.getKey());if(l===null)return!1;let u=JU(o);if(u===null||u.rangeCount===0)return!1;let d=u.getRangeAt(0).cloneRange();d.collapse(!0);let f=d.getBoundingClientRect(),p=l.getBoundingClientRect(),m=p.top+p.height/2;if(f.height>0){let t=aQ(f.left,m,a);if(t!==null&&l.contains(t.node)){let n=a.ownerDocument.createRange();return n.setStart(t.node,t.offset),n.collapse(!0),e.applyDOMRange(n),e.dirty=!0,!0}}let h=t?c.getLastDescendant():c.getFirstDescendant();if(mV(h)){let e=t?h.getTextContentSize():0;h.select(e,e)}else{let e=c.getChildrenSize();c.select(t?e:0,t?e:0)}return!0}function VQ(e,t){let n=JW(e,t),r=n.getAdjacentCaret();r!==null&&Q(r.origin)&&!r.origin.isInline()&&r.origin.isShadowRoot()?dG(tG(n)):t===`next`?e.selectNext(0,0):e.selectPrevious()}function HQ(e,t,n){n.preventDefault(),n.stopPropagation();let r=e.getNodes();if(r.length===0)return!0;let i=r.map(e=>JW(e,`next`)).sort(iG),a=(t?i[0]:i[i.length-1]).origin,o=IJ(a,e=>e!==a&&Q(e)&&!e.isInline())??fU(),s=t?0:o.getChildrenSize();return o.select(s,s),!0}function Vde(e,t=wY(qQ)){return AG(e.registerCommand(KK,()=>{let e=KV();return CV(e)?(e.clear(),!0):(SV(e)&&PQ(e,`click`,`both`,t.peek()),!1)},0),e.registerCommand(ZK,e=>{let t=KV();return SV(t)?(t.deleteCharacter(e),!0):!!CV(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(rq,e=>{let t=KV();return!!SV(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(iq,e=>{let t=KV();return!!SV(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(eq,t=>{let n=KV();if(typeof t==`string`)n!==null&&n.insertText(t);else{if(n===null)return!1;let r=t.dataTransfer;if(r!=null)uQ(r,n,e);else if(SV(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(nq,()=>{let e=KV();return!!SV(e)&&(e.removeText(),!0)},0),e.registerCommand(aq,e=>{let t=KV();return!(!SV(t)&&!CV(t))&&(TV(t,e),!0)},0),e.registerCommand(oq,e=>{let t=KV();return!(!SV(t)&&!CV(t))&&(ple(t,e),!0)},0),e.registerCommand(Eq,e=>{let t=KV();if(!SV(t)&&!CV(t))return!1;let n=t.getNodes();for(let t of n){let n=IJ(t,e=>Q(e)&&!e.isInline());n!==null&&n.setFormat(e)}return!0},0),e.registerCommand(QK,e=>{let t=KV();return!!SV(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand($K,()=>{let e=KV();return!!SV(e)&&(e.insertParagraph(),!0)},0),e.registerCommand(Sq,()=>{let e=gV(),t=KV();return SV(t)&&(e.setFormat(t.format),e.setStyle(t.style)),eH([e]),!0},0),e.registerCommand(Cq,()=>hY(e=>{let t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(wq,()=>hY(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(mq,e=>{let t=KV();if(CV(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),VQ(n[0],`previous`),!0}else if(SV(t)&&(!e.shiftKey&&FQ(t,`previous`)||!e.shiftKey&&RQ(t,!0)||!e.shiftKey&&BQ(t,!0)))return e.preventDefault(),!0;return!1},0),e.registerCommand(hq,e=>{let t=KV();if(CV(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),VQ(n[0],`next`),!0}else if(SV(t)&&(function(e){let t=e.focus;return t.key===`root`&&t.offset===fU().getChildrenSize()}(t)||!e.shiftKey&&FQ(t,`next`)||!e.shiftKey&&RQ(t,!1)||!e.shiftKey&&BQ(t,!1)))return e.preventDefault(),!0;return!1},0),e.registerCommand(fq,e=>{let n=KV();if(CV(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),VQ(t[0],nY(t[0])?`next`:`previous`),!0}if(!SV(n))return!1;if(!e.shiftKey&&FQ(n,nY(n.anchor.getNode())?`next`:`previous`))return e.preventDefault(),!0;if(e.shiftKey||PQ(n,`arrow`,`start`,t.peek()),cY(n,!0)){let t=e.shiftKey;return e.preventDefault(),uY(n,t,!0),!0}return!1},0),e.registerCommand(uq,e=>{let n=KV();if(CV(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),VQ(t[0],nY(t[0])?`previous`:`next`),!0}if(!SV(n))return!1;if(!e.shiftKey&&FQ(n,nY(n.anchor.getNode())?`previous`:`next`))return e.preventDefault(),!0;if(e.shiftKey||PQ(n,`arrow`,`end`,t.peek()),cY(n,!1)){let t=e.shiftKey;return e.preventDefault(),uY(n,t,!1),!0}return!1},0),e.registerCommand(vq,t=>{let n=KV();if(!CV(n)&&NQ(t.target))return!1;if(SV(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(t.offset!==0)return!1;let n=t.getNode();if(kH(n))return!1;let r=tue(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(wq,void 0);if(IG&&FG)return!1}else if(!CV(n))return!1;return t.preventDefault(),e.dispatchCommand(ZK,!0)},0),e.registerCommand(bq,t=>{let n=KV();return!(!CV(n)&&NQ(t.target))&&!(!SV(n)&&!CV(n))&&(t.preventDefault(),e.dispatchCommand(ZK,!1))},0),e.registerCommand(gq,n=>{let r=KV();if(CV(r)){let e=r.getNodes();e.length===1&&OH(e[0])&&!e[0].isInline()&&(r=e[0].selectNext())}if(!SV(r))return!1;if(PQ(r,`enter`,`both`,t.peek()),n!==null){if((IG||RG||VG)&&FG)return!1;if(n.preventDefault(),n.shiftKey)return e.dispatchCommand(QK,!1)}return e.dispatchCommand($K,void 0)},0),e.registerCommand(yq,()=>!!SV(KV())&&(e.blur(),!0),0),e.registerCommand(Tq,t=>{let[,n]=mY(t);if(n.length>0){let r=t.clientX,i=t.clientY,a=aQ(r,i,e.getRootElement());if(a!==null){let{offset:t,node:r}=a,i=lU(r);if(i!==null){let e=UV();if(mV(i))e.anchor.set(i.getKey(),t,`text`),e.focus.set(i.getKey(),t,`text`);else{let t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,`element`),e.focus.set(t,n,`element`)}pU(oB(e))}e.dispatchCommand(UQ,n)}return t.preventDefault(),!0}return Pde(t,e)},0),e.registerCommand(Dq,t=>{let[n]=mY(t),r=KV();return!(n&&!SV(r))&&(SV(r)&&!r.isCollapsed()&&t.dataTransfer!==null&&(gQ(t.dataTransfer,hQ(r)),Mde(t.dataTransfer,e)),!0)},0),e.registerCommand(Oq,t=>{let[n]=mY(t),r=KV();if(n&&!SV(r))return!1;let i=t.clientX,a=t.clientY,o=aQ(i,a,e.getRootElement());return o!==null&&OH(lU(o.node))&&t.preventDefault(),!0},0),e.registerCommand(Mq,()=>{let e=KV();return Nle(SV(e)&&PW(e.anchor.getNode())!==null?e:null),!0},0),e.registerCommand(Aq,t=>(pQ(e,pY(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(jq,t=>(async function(e,t){await pQ(t,pY(e,ClipboardEvent)?e:null),t.update(()=>{let e=KV();SV(e)?e.removeText():CV(e)&&e.getNodes().forEach(e=>e.remove())},{tag:`cut`})}(t,e),!0),0),e.registerCommand(tq,t=>{let[,n,r]=mY(t);return n.length>0&&!r?(e.dispatchCommand(UQ,n),!0):sW(t.target)&&WH(t.target)?!1:KV()!==null&&(function(e,t){e.preventDefault(),t.update(()=>{let n=KV(),r=pY(e,InputEvent)||pY(e,KeyboardEvent)?null:e.clipboardData;r!=null&&n!==null&&uQ(r,n,t)},{tag:`paste`})}(t,e),!0)},0),e.registerCommand(_q,()=>{let e=KV();return SV(e)&&PQ(e,`space`,`both`,t.peek()),!1},0),e.registerCommand(xq,()=>{let e=KV();return SV(e)&&PQ(e,`tab`,`both`,t.peek()),!1},0),e.registerCommand(dq,e=>{let t=KV();if(CV(t))return HQ(t,!1,e);if(!SV(t))return!1;let{anchor:n}=t;if(n.type!==`element`||n.offset!==0)return!1;let r=n.getNode();if(!Q(r))return!1;let i=r.getFirstChild();if(!OH(i)||!i.isInline())return!1;let a=r.getKey(),o=r.selectEnd();return e.shiftKey&&o.anchor.set(a,0,`element`),e.preventDefault(),e.stopPropagation(),!0},0),e.registerCommand(pq,e=>{let t=KV();if(CV(t))return HQ(t,!0,e);if(!SV(t))return!1;let{anchor:n,focus:r}=t,i=IJ(r.getNode(),e=>Q(e)&&!e.isInline());if(i===null)return!1;let a=i.getFirstChild();if(!OH(a)||!a.isInline()||IJ(n.getNode(),e=>Q(e)&&!e.isInline())!==i)return!1;let o=i.getKey();return(r.type!==`element`||r.key!==o||r.offset!==0)&&(t.focus.set(o,0,`element`),e.shiftKey||t.anchor.set(o,0,`element`),e.preventDefault(),e.stopPropagation(),!0)},0))}var UQ,WQ,GQ,KQ,qQ,JQ=s((()=>{zde(),mX(),dY(),yY(),$J(),BX(),RX.tag(`h1`,`h2`,`h3`,`h4`,`h5`,`h6`),RX.tag(`blockquote`),RX.tag(`blockquote`),RX.tag(`p`),RX.tag(`span`),UQ=FB(`DRAG_DROP_PASTE_FILE`),WQ=Jz(`shadowRoot`,{parse:Boolean}),GQ=class e extends gJ{static getType(){return`quote`}static clone(t){return new e(t.__key)}$config(){return this.config(`quote`,{extends:gJ,stateConfigs:[{flat:!0,stateConfig:WQ}]})}isShadowRoot(){return Yz(this,WQ)}setIsShadowRoot(e){return Xz(this,WQ,e)}createDOM(e){let t=$U().createElement(`blockquote`);return OG(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:Bde,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(oW(t)){this.isEmpty()&&t.append($U().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return DQ().updateFromJSON(e)}exportJSON(){return super.exportJSON()}insertNewAfter(e,t){let n=IH(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){if(this.isShadowRoot()){for(let e of this.getChildren())this.insertBefore(e);return this.remove(),!0}let e=IH();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}},KQ=class e extends gJ{__tag;static getType(){return`heading`}static clone(t){return new e(t.__tag,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e=`h1`,t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){let t=this.getWritable();return t.__tag=e,t}createDOM(e){let t=this.__tag,n=$U().createElement(t),r=e.theme.heading;if(r!==void 0){let e=r[t];OG(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:AQ,priority:0}),h2:e=>({conversion:AQ,priority:0}),h3:e=>({conversion:AQ,priority:0}),h4:e=>({conversion:AQ,priority:0}),h5:e=>({conversion:AQ,priority:0}),h6:e=>({conversion:AQ,priority:0}),p:e=>{let t=e.firstChild;return t!==null&&kQ(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>kQ(e)?{conversion:e=>({node:jQ(`h1`)}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if(oW(t)){this.isEmpty()&&t.append($U().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return jQ(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),i=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?IH():jQ(this.getTag()),a=this.getDirection();if(i.setDirection(a),this.insertAfter(i,t),n===0&&!this.isEmpty()&&e){let e=IH();e.select(),this.replace(e,!0)}return i}collapseAtStart(){if(this.isEmpty()){let e=IH();this.getChildren().forEach(t=>e.append(t)),this.replace(e)}return!0}extractWithChild(){return!0}},qQ={capitalize:{enter:!0,space:!0,tab:!0},lowercase:{enter:!0,space:!0,tab:!0},uppercase:{enter:!0,space:!0,tab:!0}}}));function YQ(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function XQ(e){let t=YQ(e,e=>e.type);return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}function ZQ(e){if(!LH(e))return!1;let t=e.getFirstChild();return t==null||e.getChildrenSize()===1&&mV(t)&&y$.test(t.getTextContent())}function QQ(e){return e.replace(/\\([!-/:-@[-`{-~])/g,`$1`).replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t)))}function Hde(e){if(e[0]!==`|`)return!1;let{length:t}=e,n=1,r=0;for(;n<t;){let t=n;for(e[t]===` `&&t++,e[t]===`:`&&t++;e[t]===`-`;)t++;if(e[t]===`:`&&t++,e[t]===` `&&t++,e[t]!==`|`)break;r++,n=t+1}return r>0&&(n===t||n===t-1&&/\s/.test(e[n]))}function $Q(e){if(e.endsWith(`\\`))return[e.slice(0,-1),`\\`];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}function Ude(e){let t=e.getChildren(),n=t.length-1,r=t[n];if(!mV(r))return null;let i=r.getTextContent(),a=$Q(i);if(a!==null){let[e,t]=a;return r.setTextContent(e),t}return/^ {2,}$/.test(i)&&function(e,t){for(let n=t-1;n>=0;n--){if(PH(e[n]))return!1;if(/\S/.test(e[n].getTextContent()))return!0}return!1}(t,n)?(r.setTextContent(``),i):null}function e$(e){let t=NH(),n=Ude(e);return n!==null&&Xz(t,P$,n),t}function Wde(e,t=!1){let n=e.split(`
`),r=0,i=[];for(let e=0;e<n.length;e++){let a=n[e],o=a.trimEnd(),s=i[i.length-1],c=e<n.length-1?$Q(a):null,l=s!==void 0&&$Q(s)!==null;if(D$.test(o))i.push(o);else if(r===0){{let e=o.match(T$);if(e){r=e[1].trim().length,i.push(o);continue}}o===``||s===``||!s||C$.test(s)||C$.test(o)||w$.test(o)||b$.test(o)||x$.test(o)||S$.test(o)||O$.test(o)||Hde(o)||l||!t||k$.test(o)||A$.test(o)||j$(A$).test(s)||j$(k$).test(s)||E$.test(s)?i.push(!t&&o!==``||c!==null?a:o):i[i.length-1]=s+` `+(c===null?o:a).trimStart()}else{if(E$.test(o)&&o.trim().length>=r){r=0,i.push(o);continue}i.push(a)}}return i.join(`
`)}function Gde(e,t,n,r,i){for(let a of t){if(!a.export)continue;let t=a.export(e,e=>t$(e,n,r,void 0,void 0,i));if(t!=null)return t}return Q(e)?t$(e,n,r,void 0,void 0,i):OH(e)?e.getTextContent():null}function t$(e,t,n,r,i,a=!1){let o=[],s=e.getChildren();r||=[],i||=[];t:for(let e of s){for(let s of n){if(!s.export)continue;let c=s.export(e,e=>t$(e,t,n,r,[...i,...r],a),(e,n)=>n$(e,n,t,r,i,a));if(c!=null){o.push(c);continue t}}PH(e)?o.push(Kde(e)):mV(e)?o.push(n$(e,e.getTextContent(),t,r,i,a)):Q(e)?o.push(t$(e,t,n,r,i,a)):OH(e)&&o.push(e.getTextContent())}return o.join(``)}function Kde(e){return Yz(e,P$)+`
`}function n$(e,t,n,r,i,a=!1){let o=e.hasFormat(`code`),s,c,l,u,d=t;if(o||(d=a?d.replace(/([*_`~])/g,`\\$1`):d.replace(/([*_`~\\])/g,`\\$1`)),o){let{fence:e,padded:n}=function(e){let t=e.match(/`+/g),n=t?Math.max(...t.map(e=>e.length)):0;return{fence:"`".repeat(n+1),padded:e.length===0||e.includes("`")||/^\s/.test(e)&&/\s$/.test(e)?` ${e} `:e}}(t);s=``,l=``,c=e+n+e,u=!1}else{let e=d.match(/^(\s*)(.*?)(\s*)$/s)||[``,``,d,``];s=e[1],c=e[2],l=e[3],u=c===``}let f=``,p=``,m=``,h=r$(e,!0),g=r$(e,!1),_=new Set;for(let t of n){let n=t.format[0],i=t.tag;n!==`code`&&a$(e,n)&&!_.has(n)&&(_.add(n),a$(h,n)&&r.find(e=>e.tag===i)||(r.push({format:n,tag:i}),f+=i))}for(let t=0;t<r.length;t++){let n=i$(e,r[t].format),a=i$(g,r[t].format);if(n&&a)continue;let o=[...r];for(;o.length>t;){let e=o.pop();i&&e&&i.find(t=>t.tag===e.tag)||(e&&typeof e.tag==`string`&&(n?a||(m+=e.tag):p+=e.tag),r.pop())}break}return u&&!e.hasFormat(`code`)?p+d:p+s+f+c+m+l}function r$(e,t){let n=t?e.getPreviousSibling():e.getNextSibling();return mV(n)?n:null}function i$(e,t){return mV(e)&&e.hasFormat(t)}function a$(e,t){return!!i$(e,t)&&(t===`code`||!e||!/^\s*$/.test(e.getTextContent()))}function qde(e,t){let n=e.getTextContent(),r=t.transformersByTag["`"],i=[],a=null;if(r){let e=function(e){let t=t=>{let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;return n%2==1},n=[],r=0;for(;r<e.length;)if(e[r]==="`"){let t=1;for(;r+t<e.length&&e[r+t]==="`";)t++;n.push({index:r,length:t}),r+=t}else r++;let i=[],a=0;for(;a<n.length;){let r=n[a];if(t(r.index)){a++;continue}let o=-1;for(let e=a+1;e<n.length;e++)if(n[e].length===r.length){o=e;break}if(o===-1){a++;continue}let s=n[o],c=e.slice(r.index+r.length,s.index);c.length>=2&&c.startsWith(` `)&&c.endsWith(` `)&&/[^ ]/.test(c)&&(c=c.slice(1,-1)),i.push({content:c,endIndex:s.index+s.length,startIndex:r.index}),a=o+1}return i}(n);for(let t of e)a||={content:t.content,endIndex:t.endIndex,startIndex:t.startIndex,tag:"`"},i.push({end:t.endIndex,start:t.startIndex})}let o=function(e,t,n=[]){let r=[],i=new Set(Object.keys(t.transformersByTag).filter(e=>e[0]!=="`").map(e=>e[0])),a=t=>{let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;return n%2==1},o=e=>n.some(t=>e>=t.start&&e<t.end),s=0;for(;s<e.length;){let t=e[s];if(!i.has(t)||a(s)||o(s)){s++;continue}let n=1;for(;s+n<e.length&&e[s+n]===t;)n++;let c=o$(t,e,s,n,!0),l=o$(t,e,s,n,!1);(c||l)&&r.push({active:!0,canClose:l,canOpen:c,char:t,index:s,length:n}),s+=n}return r}(n,t,i),s=o.length>0?function(e,t,n){let r={},i=0,a=null;for(;i<t.length;){let o=t[i];if(!o.active||!o.canClose||o.length===0){i++;continue}let s=`${o.char}${o.canOpen}${o.length%3}`,c=r[s]??-1,l=!1;for(let r=i-1;r>c;r--){let s=t[r];if(!s.active||!s.canOpen||s.length===0||s.char!==o.char||(s.canClose||o.canOpen)&&(s.length+o.length)%3==0&&s.length%3!=0&&o.length%3!=0)continue;let c=Math.min(s.length,o.length),u=Object.keys(n.transformersByTag).filter(e=>e[0]===s.char&&e.length<=c).sort((e,t)=>t.length-e.length)[0];if(!u)continue;l=!0;let d=u.length,f={content:e.slice(s.index+s.length,o.index),endIndex:o.index+d,startIndex:s.index+(s.length-d),tag:u};(!a||f.startIndex<a.startIndex||f.startIndex===a.startIndex&&f.endIndex>a.endIndex)&&(a=f);for(let e=r+1;e<i;e++)t[e].active=!1;s.length-=d,o.length-=d,s.active=s.length>0,o.length>0?o.index+=d:(o.active=!1,i++);break}l||(r[s]=i-1,o.canOpen||(o.active=!1),i++)}return a}(n,o,t):null,c=null,l=null;if(a&&s?s.startIndex<=a.startIndex&&s.endIndex>=a.endIndex?(c=s,l=t.transformersByTag[s.tag]):(c=a,l=r):a?(c=a,l=r):s&&(c=s,l=t.transformersByTag[s.tag]),!c||!l)return null;let u=[n.slice(c.startIndex,c.endIndex),c.tag,c.content];return u.index=c.startIndex,u.input=n,{endIndex:c.endIndex,isCodeSpan:l===r,match:u,startIndex:c.startIndex,transformer:l}}function o$(e,t,n,r,i){if(!s$(t,n,r,i))return!1;if(e===`*`)return!0;if(e===`_`){if(!s$(t,n,r,!i))return!0;let e=i?t[n-1]:t[n+r];return e!==void 0&&v$.test(e)}return!0}function s$(e,t,n,r){let i=e[t-1],a=e[t+n],[o,s]=r?[a,i]:[i,a];return o!==void 0&&!_$.test(o)&&(!v$.test(o)||s===void 0||_$.test(s)||v$.test(s))}function c$(e){return mV(e)&&!e.hasFormat(`code`)}function l$(e,t,n){let r=qde(e,t),i=function(e,t){let n=e,r,i,a,o;for(let e of t){if(!e.replace||!e.importRegExp)continue;let t=n.getTextContent().match(e.importRegExp);if(!t)continue;let s=t.index||0,c=e.getEndIndex?e.getEndIndex(n,t):s+t[0].length;!1!==c&&(r===void 0||i===void 0||s<r&&(c>i||c<=r))&&(r=s,i=c,a=e,o=t)}return r===void 0||i===void 0||a===void 0||o===void 0?null:{endIndex:i,match:o,startIndex:r,transformer:a}}(e,n);if(r&&i&&(r.isCodeSpan?i.startIndex<=r.startIndex&&i.endIndex>=r.endIndex?r=null:i=null:r.startIndex<=i.startIndex&&r.endIndex>=i.endIndex||i.startIndex>r.endIndex?i=null:r=null),r){let i=function(e,t,n,r,i){let a=e.getTextContent(),o,s,c;if(i[0]===a?o=e:t===0?[o,s]=e.splitText(n):[c,o,s]=e.splitText(t,n),o.setTextContent(i[2]),r)for(let e of r.format)o.hasFormat(e)||o.toggleFormat(e);return{nodeAfter:s,nodeBefore:c,transformedNode:o}}(e,r.startIndex,r.endIndex,r.transformer,r.match);c$(i.nodeAfter)&&l$(i.nodeAfter,t,n),c$(i.nodeBefore)&&l$(i.nodeBefore,t,n),c$(i.transformedNode)&&l$(i.transformedNode,t,n)}else if(i){let r=function(e,t,n,r,i){let a,o,s;return t===0?[a,o]=e.splitText(n):[s,a,o]=e.splitText(t,n),r.replace?{nodeAfter:o,nodeBefore:s,transformedNode:r.replace(a,i)||void 0}:null}(e,i.startIndex,i.endIndex,i.transformer,i.match);if(!r)return;c$(r.nodeAfter)&&l$(r.nodeAfter,t,n),c$(r.nodeBefore)&&l$(r.nodeBefore,t,n),c$(r.transformedNode)&&l$(r.transformedNode,t,n)}let a=QQ(e.getTextContent());e.setTextContent(a)}function Jde(e,t,n,r=!1){let i=XQ(n),a=function(e){let t={},n={},r=[];for(let i of e){let{tag:e}=i;t[e]=i;let a=e.replace(/(\*|\^|\+)/g,`\\$1`);r.push(a),e.length===1?n[e]=RegExp(e==="`"?"(^|[^\\\\`])(`)((?:\\\\`|[^`])+?)(`)(?!`)":`(^|[^\\\\${a}])(${a})((\\\\${a})?.*?[^${a}\\s](\\\\${a})?)(${a})(?![\\\\${a}])`):n[e]=RegExp(`(^|[^\\\\])(${a})((\\\\${a})?.*?[^\\s](\\\\${a})?)(${a})(?!\\\\)`)}return{fullMatchRegExpByTag:n,openTagsRegExp:RegExp(`(${r.join(`|`)})`,`g`),transformersByTag:t}}(i.textFormat),o=e.split(`
`),s=o.length;for(let e=0;e<s;e++){let n=o[e],[s,c]=Yde(o,e,i.multilineElement,t);s?e=c:Xde(n,t,i.element,a,i.textMatch,r)}let c=t.getChildren();for(let e of c)if(!r&&ZQ(e)&&t.getChildrenSize()>1)e.remove();else if(Q(e))for(let t of e.getAllTextNodes())Zde(t)}function Yde(e,t,n,r){for(let i of n){let{handleImportAfterStartMatch:n,regExpEnd:a,regExpStart:o,replace:s}=i,c=e[t].match(o);if(!c)continue;if(n){let a=n({lines:e,rootNode:r,startLineIndex:t,startMatch:c,transformer:i});if(a===null)continue;if(a)return a}let l=typeof a==`object`&&`regExp`in a?a.regExp:a,u=a&&typeof a==`object`&&`optional`in a?a.optional:!a,d=t,f=e.length;for(;d<f;){let n=l?e[d].match(l):null;if(!n&&(!u||u&&d<f-1)){d++;continue}if(n&&t===d&&n.index===c.index){d++;continue}let i=[];if(n&&t===d)i.push(e[t].slice(c[0].length,-n[0].length));else for(let r=t;r<=d;r++)if(r===t){let t=e[r].slice(c[0].length);i.push(t)}else if(r===d&&n){let t=e[r].slice(0,-n[0].length);i.push(t)}else i.push(e[r]);if(!1!==s(r,null,c,n,i,!0))return[!0,d];break}}return[!1,t]}function Xde(e,t,n,r,i,a){let o=pV(e),s=IH();s.append(o),t.append(s);for(let{regExp:t,replace:r}of n){let n=e.match(t);if(n&&(o.setTextContent(e.slice(n[0].length)),!1!==r(s,[o],n,!0)))break}if(l$(o,r,i),s.getParent()!==null&&e.length>0){let e=s.getPreviousSibling();if(!a&&(LH(e)||OQ(e)||QZ(e))){let t=e;if(QZ(e)){let n=e.getLastDescendant();t=n==null?null:IJ(n,JZ)}t!=null&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[e$(t),...s.getChildren()]),s.remove())}}}function Zde(e){let t=new Set,n=e.getTextContent(),r=n.indexOf(`	`);for(;r!==-1;)t.add(r),t.add(r+1),r=n.indexOf(`	`,r+1);e.splitText(...t).forEach(e=>{e.getTextContent()===`	`&&e.replace(gV())})}function Qde(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 u$(e,t,n,r,i){if(!HU(e.getParent())||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!i&&a[n-1]!==` `)return!1;for(let{regExp:o,replace:s}of r){let r=a.match(o),c=i||r&&r[0].endsWith(` `)?n:n-1;if(r&&r[0].length===c){let i=t.getNextSiblings(),[a,o]=t.splitText(n);if(!1!==s(e,o?[o,...i]:i,r,!1))return a.remove(),!0}}return!1}function d$(e,t,n,r,i){if(!HU(e.getParent())||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!i&&a[n-1]!==` `)return!1;for(let{regExpStart:o,replace:s,regExpEnd:c}of r){if(c&&!(`optional`in c)||c&&`optional`in c&&!c.optional)continue;let r=a.match(o);if(r){let a=i||r[0].endsWith(` `)?n:n-1;if(r[0].length!==a)continue;let o=t.getNextSiblings(),[c,l]=t.splitText(n);if(!1!==s(e,l?[l,...o]:o,r,null,null,!1))return c.remove(),!0}}return!1}function $de(e,t){let n=0,r=e.getTextContent();for(let e=0;e<t;e++)r[e]==="`"&&n++;return n%2!=0}function f$(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if(p$(e,t,n,0,r)&&e[t+r]!==` `)return t}return-1}function p$(e,t,n,r,i){for(let a=0;a<i;a++)if(e[t+a]!==n[r+a])return!1;return!0}function efe(e,t=r1){let n=XQ(t),r=n.element.filter(e=>e.triggerOnEnter),i=YQ(n.textFormat,({tag:e})=>e[e.length-1]),a=YQ(n.textMatch,({trigger:e})=>e),o=new Set([` `]);for(let e of n.textFormat)o.add(e.tag.slice(-1));for(let e of n.textMatch)e.trigger!==void 0&&o.add(e.trigger);for(let n of t){let t=n.type;if(t===`element`||t===`text-match`||t===`multiline-element`){let t=n.dependencies;for(let n of t)e.hasNode(n)||Qde(173,n.getType())}}let s=(e,t,r)=>!!u$(e,t,r,n.element)||!!d$(e,t,r,n.multilineElement)||!!function(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(i==null)return!1;t<r.length&&(r=r.slice(0,t));for(let t of i){if(!t.replace||!t.regExp)continue;let n=r.match(t.regExp);if(n===null)continue;let i=n.index||0,a=i+n[0].length,o;return i===0?[o]=e.splitText(a):[,o]=e.splitText(i,a),o.selectNext(0,0),t.replace(o,n),!0}return!1}(t,r,a)||!!function(e,t,n){let r=e.getTextContent(),i=t-1,a=r[i],o=n[a];if(!o)return!1;for(let t of o){let{tag:n}=t,o=n.length,s=i-o+1;if(o>1&&!p$(r,s,n,0,o)||r[s-1]===` `)continue;let c=r[i+1];if(!1===t.intraword&&c&&!g$.test(c))continue;let l=e,u=l,d=f$(r,s,n),f=u;for(;d<0&&(f=f.getPreviousSibling())&&!PH(f);)if(mV(f)){if(f.hasFormat(`code`))continue;let e=f.getTextContent();u=f,d=f$(e,e.length,n)}if(d<0||u===l&&d+o===s)continue;let p=u.getTextContent();if(d>0&&p[d-1]===a)continue;let m=p[d-1];if(!1===t.intraword&&m&&!g$.test(m)||!t.format.includes(`code`)&&$de(u,d))continue;let h=l.getTextContent(),g=h.slice(0,s)+h.slice(i+1);l.setTextContent(g);let _=u===l?g:p;u.setTextContent(_.slice(0,d)+_.slice(d+o));let v=KV(),y=UV();pU(y);let b=i-o*(u===l?2:1)+1;y.anchor.set(u.__key,d,`text`),y.focus.set(l.__key,b,`text`);for(let e of t.format)y.formatText(e,nK[e]);y.anchor.set(y.focus.key,y.focus.offset,y.focus.type);for(let e of t.format)y.hasFormat(e)&&y.toggleFormat(e);return SV(v)&&(y.format=v.format),!0}return!1}(t,r,i);return AG(e.registerUpdateListener(({tags:t,dirtyLeaves:n,editorState:r,prevEditorState:i})=>{if(t.has(`collaboration`)||t.has(`historic`)||e.isComposing())return;let a=t.has(Qq),c=r.read(KV),l=i.read(KV);if(!SV(l)||!SV(c)||!c.isCollapsed()||c.is(l)&&!a)return;let u=c.anchor.key,d=c.anchor.offset,f=r._nodeMap.get(u);if(mV(f)&&n.has(u)&&(a||d===1||!(d>l.anchor.offset+1))){if(a){let e=r.read(()=>f.getTextContent())[d-1];if(!o.has(e))return}e.update(()=>{if(!c$(f))return;let e=f.getParent();e===null||qX(e)||s(e,f,c.anchor.offset)&&PU(`history-push`)})}}),e.registerCommand(gq,e=>{if(e!==null&&e.shiftKey)return!1;let t=KV();if(!SV(t)||!t.isCollapsed())return!1;let i=t.anchor.offset,a=t.anchor.getNode();if(!mV(a)||!c$(a))return!1;let o=a.getParent();return o===null||qX(o)?!1:i===a.getTextContent().length&&!(!d$(o,a,i,n.multilineElement,!0)&&!u$(o,a,i,r,!0))&&(e!==null&&e.preventDefault(),!0)},1))}function m$(e,t=r1,n,r=!1,i=!1){let a=r?e:Wde(e,i),o=n||fU();o.clear(),Jde(a,o,t,r),KV()!==null&&o.selectStart()}function h$(e=r1,t,n=!1){return function(e,t=!1){let n=XQ(e),r=[...n.multilineElement,...n.element],i=!t,a=n.textFormat.filter(e=>e.format.length===1).sort((e,t)=>Number(e.format.includes(`code`))-Number(t.format.includes(`code`)));return e=>{let o=[],s=(e||fU()).getChildren();for(let e=0;e<s.length;e++){let c=s[e],l=Gde(c,r,a,n.textMatch,t);l!=null&&o.push(i&&e>0&&!ZQ(c)&&!ZQ(s[e-1])?`
${l}`:l)}return o.join(`
`)}}(e,n)(t)}var g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1=s((()=>{$J(),fZ(),LZ(),iQ(),JQ(),g$=/[!-/:-@[-`{-~\s]/,_$=/\s/,v$=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/,y$=/^\s{0,3}$/,b$=/^(\s*)(\d{1,})\.\s/,x$=/^(\s*)[-*+]\s/,S$=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,C$=/^(#{1,6})\s/,w$=/^>\s/,T$=/^([ \t]*`{3,})([\w-]+)?[ \t]?/,E$=/^[ \t]*`{3,}$/,D$=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,O$=/^(?:\|)(.+)(?:\|)\s?$/,k$=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,A$=/^<\/[a-z_][\w-]*\s*>/i,j$=e=>RegExp(`(?:${e.source})$`,e.flags),M$=Jz(`mdListMarker`,{parse:e=>typeof e==`string`&&/^[-*+]$/.test(e)?e:`-`,resetOnCopyNode:!0}),N$=Jz(`mdCodeFence`,{parse:e=>typeof e==`string`&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),P$=Jz(`mdHardLineBreak`,{parse:e=>typeof e==`string`&&/^(\\| {2,})$/.test(e)?e:``,resetOnCopyNode:!0}),F$=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},I$=e=>(t,n,r,i)=>{let a=t.getPreviousSibling(),o=t.getNextSibling(),s=qZ(e===`check`?r[3]===`x`:void 0),c=r[0].trim()[0],l=e!==`bullet`&&e!==`check`||c!==M$.parse(c)?void 0:c;if(QZ(o)&&o.getListType()===e){l&&Xz(o,M$,l);let n=o.getFirstChild();n===null?o.append(s):n.insertBefore(s),e===`number`&&o.setStart(Number(r[2])),t.remove()}else if(QZ(a)&&a.getListType()===e)l&&Xz(a,M$,l),a.append(s),t.remove();else{let n=ZZ(e,e===`number`?Number(r[2]):void 0);l&&Xz(n,M$,l),n.append(s),t.replace(n)}s.append(...n),i||s.select(0,0);let u=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);u&&s.setIndent(u)},L$=(e,t,n,r)=>{let i=[],a=e.getChildren(),o=0;for(let s of a)if(JZ(s)){if(s.getChildrenSize()===1){let e=s.getFirstChild();if(QZ(e)){let a=L$(e,t,n+1,r);a&&i.push(a);continue}}if(r&&!s.getChildren().some(e=>e.isSelected(r)))continue;let a=` `.repeat(4*n),c=e.getListType(),l=Yz(e,M$),u=c===`number`?`${e.getStart()+o}. `:c===`check`?`${l} [${s.getChecked()?`x`:` `}] `:l+` `,d=t(s);c!==`number`&&(d=d.replace(/^(\s{0,3}\d+)(\.\s)/,`$1\\$2`)),i.push(a+u+d),o++}return i.join(`
`)},R$={dependencies:[KQ],export:(e,t)=>{if(!MQ(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:C$,replace:F$(e=>jQ(`h`+e[1].length)),triggerOnEnter:!0,type:`element`},z$={dependencies:[GQ],export:(e,t)=>{if(!OQ(e))return null;let n=t(e).split(`
`),r=[];for(let e of n)r.push(`> `+e);return r.join(`
`)},regExp:w$,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if(OQ(n))return n.splice(n.getChildrenSize(),0,[e$(n),...t]),void e.remove()}let i=DQ();i.append(...t),e.replace(i),r||i.select(0,0)},triggerOnEnter:!0,type:`element`},B$={dependencies:[uZ],export:e=>{if(!qX(e))return null;let t=e.getTextContent(),n=Yz(e,N$);if(t.indexOf(n)>-1){let e=t.match(/`{3,}/g);if(e){let t=Math.max(...e.map(e=>e.length));n="`".repeat(t+1)}}return n+(e.getLanguage()||``)+(t?`
`+t:``)+`
`+n},handleImportAfterStartMatch:({lines:e,rootNode:t,startLineIndex:n,startMatch:r})=>{let i=r[1],a=i.trim().length,o=e[n],s=r.index+i.length,c=o.slice(s),l=RegExp(`\`{${a},}$`);if(l.test(c)){let e=c.match(l),i=c.slice(0,c.lastIndexOf(e[0])),a=[...r];return a[2]=``,B$.replace(t,null,a,e,[i],!0),[!0,n]}let u=RegExp(`^[ \\t]*\`{${a},}$`);for(let i=n+1;i<e.length;i++){let a=e[i];if(u.test(a)){let s=a.match(u),c=e.slice(n+1,i),l=o.slice(r[0].length);return l.length>0&&c.unshift(l),B$.replace(t,null,r,s,c,!0),[!0,i]}}let d=e.slice(n+1),f=o.slice(r[0].length);return f.length>0&&d.unshift(f),B$.replace(t,null,r,null,d,!0),[!0,e.length-1]},regExpEnd:{optional:!0,regExp:E$},regExpStart:T$,replace:(e,t,n,r,i,a)=>{let o,s,c=n[1]?n[1].trim():"```",l=n[2]||void 0;if(!t&&i){if(i.length===1)r?(o=KX(l),s=i[0]):(o=KX(l),s=i[0].startsWith(` `)?i[0].slice(1):i[0]);else{for(o=KX(l),i.length>0&&(i[0].trim().length===0?i.shift():i[0].startsWith(` `)&&(i[0]=i[0].slice(1)));i.length>0&&!i[i.length-1].length;)i.pop();s=i.join(`
`)}Xz(o,N$,c);let t=pV(s);o.append(t),e.append(o)}else t&&F$(e=>KX(e?e[2]:void 0))(e,t,n,a)},type:`multiline-element`},V$={dependencies:[eQ,$Z],export:(e,t,n)=>QZ(e)?L$(e,t,0,n):null,regExp:x$,replace:I$(`bullet`),triggerOnEnter:!0,type:`element`},I$(`check`),H$={dependencies:[eQ,$Z],export:(e,t,n)=>QZ(e)?L$(e,t,0,n):null,regExp:b$,replace:I$(`number`),triggerOnEnter:!0,type:`element`},U$={format:[`code`],tag:"`",type:`text-format`},W$={format:[`highlight`],tag:`==`,type:`text-format`},G$={format:[`bold`,`italic`],tag:`***`,type:`text-format`},K$={format:[`bold`,`italic`],intraword:!1,tag:`___`,type:`text-format`},q$={format:[`bold`],tag:`**`,type:`text-format`},J$={format:[`bold`],intraword:!1,tag:`__`,type:`text-format`},Y$={format:[`strikethrough`],tag:`~~`,type:`text-format`},X$={format:[`italic`],tag:`*`,type:`text-format`},Z$={format:[`italic`],intraword:!1,tag:`_`,type:`text-format`},Q$={dependencies:[NZ],export:(e,t,n)=>{if(!DZ(e)||kZ(e))return null;let r=t(e),i=e.getTitle();return i!=null&&(i=i.replace(/([\\"])/g,`\\$1`)),i?`[${r}](${e.getURL()} "${i}")`:`[${r}](${e.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[\]]*(?:\[[^[\]]*\][^[\]]*)*)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{if(IJ(e,DZ))return;let[,n,r,i]=t,a=EZ(r==null?void 0:QQ(r),{title:i==null?void 0:QQ(i)}),o=n.split(`[`).length-1,s=n.split(`]`).length-1,c=n,l=``;if(o<s)return;if(o>s){let e=n.split(`[`);l=`[`+e[0],c=e.slice(1).join(`[`)}let u=pV(c);return u.setFormat(e.getFormat()),a.append(u),e.replace(a),l&&a.insertBefore(pV(l)),u},trigger:`)`,type:`text-match`},$$=[R$,z$,V$,H$],e1=[B$],t1=[U$,G$,K$,q$,J$,W$,X$,Z$,Y$],n1=[Q$],r1=[...$$,...e1,...t1,...n1]}));function a1(e){return e===`middle`||e===`bottom`}function o1(e){let t=e,n=e.nodeName.toLowerCase(),r;y1.test(t.style.width)&&(r=parseFloat(t.style.width));let i=b1.NO_STATUS;if(n===`th`){let e=t.getAttribute(`scope`);if(e===`col`)i=b1.COLUMN;else if(e===`row`)i=b1.ROW;else{let e=t.parentElement,n=oW(e)&&e.nodeName.toLowerCase()===`tr`&&oW(e.parentElement)&&(e.parentElement.nodeName.toLowerCase()===`thead`||e.rowIndex===0),r=t.cellIndex===0;n&&(i|=b1.ROW),r&&(i|=b1.COLUMN),i===b1.NO_STATUS&&(i=b1.ROW)}}let a=s1(i,t.colSpan,r);a.__rowSpan=t.rowSpan;let o=t.style.backgroundColor;o!==``&&(a.__backgroundColor=o);let s=t.style.verticalAlign;a1(s)&&(a.__verticalAlign=s);let c=t.style,l=(c&&c.textDecoration||``).split(` `),u=c.fontWeight===`700`||c.fontWeight===`bold`,d=l.includes(`line-through`),f=c.fontStyle===`italic`,p=l.includes(`underline`),m=c.color;return{after:e=>{let t=[],n=null,r=()=>{if(n){let e=n.getFirstChild();PH(e)&&n.getChildrenSize()===1&&e.remove()}};for(let i of e)if(zU(i)||mV(i)||PH(i)){if(mV(i)&&(u&&i.toggleFormat(`bold`),d&&i.toggleFormat(`strikethrough`),f&&i.toggleFormat(`italic`),p&&i.toggleFormat(`underline`),m)){let e=i.getStyle();e.includes(`color:`)||i.setStyle(e+`color: ${m};`)}n?n.append(i):(n=IH().append(i),t.push(n))}else t.push(i),r(),n=null;return r(),t.length===0&&t.push(IH()),t},node:a}}function s1(e=b1.NO_STATUS,t=1,n){return WU(new x1(e,t,n))}function c1(e){return e instanceof x1}function l1(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 tfe(e){let t=e,n;return y1.test(t.style.height)&&(n=parseFloat(t.style.height)),{after:e=>gY(e,c1),node:u1(n)}}function u1(e){return WU(new S1(e))}function d1(e){return e instanceof S1}function nfe(e,t,n){let r=[],i=null,a=null;function o(e){let t=r[e];return t===void 0&&(r[e]=t=[]),t}let s=e.getChildren();for(let e=0;e<s.length;e++){let r=s[e];d1(r)||l1(209);let c=o(e);for(let l=r.getFirstChild(),u=0;l!=null;l=l.getNextSibling()){for(c1(l)||l1(147);c[u]!==void 0;)u++;let r={cell:l,startColumn:u,startRow:e},{__rowSpan:d,__colSpan:f}=l;for(let t=0;t<d&&!(e+t>=s.length);t++){let n=o(e+t);for(let e=0;e<f;e++)n[u+e]=r}t!==null&&i===null&&t.is(l)&&(i=r),n!==null&&a===null&&n.is(l)&&(a=r)}}return[r,i,a]}function f1(e){return oW(e)&&e.nodeName===`TABLE`}function p1(e,t){if(!t)return t;let n=f1(t)?t:t.querySelector(`table`);return f1(n)||l1(341,e.constructor.name,e.getType(),e.getKey(),t.nodeName),n}function rfe(e,t){for(let n=t,r=null;n!==null;n=n.getParent()){if(e.is(n))return r;c1(n)&&(r=n)}return null}function ife(e,t,n){return rfe(e,lU(t,n))}function m1(e,t,n){let r=e.querySelector(`colgroup`);if(!r)return;let i=[];for(let e=0;e<t;e++){let t=$U().createElement(`col`),r=n&&n[e];r&&(t.style.width=`${r}px`),i.push(t)}r.replaceChildren(...i)}function h1(e,t,n){if(!t.theme.tableAlignment)return;let r=[],i=[];for(let e of[`center`,`right`]){let a=t.theme.tableAlignment[e];a&&(e===n?i:r).push(a)}kG(e,...r),OG(e,...i)}function g1(e=fW()){return C1.has(e)}function afe(e){let t=_1();e.hasAttribute(`data-lexical-row-striping`)&&t.setRowStriping(!0),e.hasAttribute(`data-lexical-frozen-column`)&&t.setFrozenColumns(1),e.hasAttribute(`data-lexical-frozen-row`)&&t.setFrozenRows(1);let n=e.querySelector(`:scope > colgroup`);if(n){let e=[];for(let t of n.querySelectorAll(`:scope > col`)){let n=t.style.width||``;if(!y1.test(n)&&(n=t.getAttribute(`width`)||``,!/^\d+$/.test(n))){e=void 0;break}e.push(parseFloat(n))}e&&t.setColWidths(e)}return{after:e=>gY(e,d1),node:t}}function _1(){return WU(new w1)}function v1(e){return e instanceof w1}var y1,b1,x1,S1,C1,w1,T1=s((()=>{$J(),BX(),yY(),y1=/^(\d+(?:\.\d+)?)px$/,b1={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1},x1=class e extends gJ{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return`tablecell`}static clone(t){return new e(t.__headerState,t.__colSpan,t.__width,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign,this.__colSpan=e.__colSpan,this.__headerState=e.__headerState,this.__width=e.__width}static importDOM(){return{td:e=>({conversion:o1,priority:0}),th:e=>({conversion:o1,priority:0})}}static importJSON(e){return s1().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=b1.NO_STATUS,t=1,n,r){super(r),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let t=$U().createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(t.style.backgroundColor=this.__backgroundColor),a1(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),OG(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if(oW(t.element)){let e=t.element;e.setAttribute(`data-temporary-table-cell-lexical-key`,this.getKey()),e.style.border=`1px solid black`,this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign=this.getVerticalAlign()||`top`,e.style.textAlign=`start`,this.__backgroundColor===null&&this.hasHeader()&&(e.style.backgroundColor=`#f2f3f5`)}return t}exportJSON(){return{...super.exportJSON(),...a1(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?`th`:`td`}setHeaderStyles(e,t=b1.BOTH){let n=this.getWritable();return n.__headerState=e&t|n.__headerState&~t,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==b1.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}},S1=class e extends gJ{__height;static getType(){return`tablerow`}static clone(t){return new e(t.__height,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__height=e.__height}static importDOM(){return{tr:e=>({conversion:tfe,priority:0})}}static importJSON(e){return u1().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...e===void 0?void 0:{height:e}}}createDOM(e){let t=$U().createElement(`tr`);return this.__height&&(t.style.height=`${this.__height}px`),OG(t,e.theme.tableRow),t}extractWithChild(e,t,n){return n===`html`}isShadowRoot(){return!0}setHeight(e){let t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}},C1=new WeakSet,w1=class e extends gJ{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return`table`}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}static clone(t){return new e(t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:afe,priority:1})}}static importJSON(e){return _1().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,n){return n===`html`}getDOMSlot(e){let t=f1(e)?e:e.querySelector(`table`);return f1(t)||l1(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector(`colgroup`))}createDOM(e,t){let n=$U().createElement(`table`);this.__style&&rV(n.style,this.__style);let r=$U().createElement(`colgroup`);if(n.appendChild(r),xW(r),OG(n,e.theme.table),this.updateTableElement(null,n,e),g1(t)){let t=$U().createElement(`div`),r=e.theme.tableScrollableWrapper;return r?OG(t,r):t.style.overflowX=`auto`,t.appendChild(n),this.updateTableWrapper(null,t,n,e),t}return n}updateTableWrapper(e,t,n,r){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&function(e,t,n,r){r>0?(OG(e,n.theme.tableFrozenColumn),t.setAttribute(`data-lexical-frozen-column`,`true`)):(kG(e,n.theme.tableFrozenColumn),t.removeAttribute(`data-lexical-frozen-column`))}(t,n,r,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&function(e,t,n,r){r>0?(OG(e,n.theme.tableFrozenRow),t.setAttribute(`data-lexical-frozen-row`,`true`)):(kG(e,n.theme.tableFrozenRow),t.removeAttribute(`data-lexical-frozen-row`))}(t,n,r,this.__frozenRowCount)}updateTableElement(e,t,n){this.__style!==(e?e.__style:``)&&rV(t.style,this.__style,e?e.__style:``),this.__rowStriping!==(!!e&&e.__rowStriping)&&function(e,t,n){n?(OG(e,t.theme.tableRowStriping),e.setAttribute(`data-lexical-row-striping`,`true`)):(kG(e,t.theme.tableRowStriping),e.removeAttribute(`data-lexical-row-striping`))}(t,n,this.__rowStriping);let r=e?e.getColumnCount():0,i=e?e.__colWidths:void 0;this.getColumnCount()===r&&this.getColWidths()===i||m1(t,this.getColumnCount(),this.getColWidths()),h1(t,n,this.getFormatType())}updateDOM(e,t,n){let r=p1(this,t);return t===r===g1()||(oW(i=t)&&i.nodeName===`DIV`&&this.updateTableWrapper(e,t,r,n),this.updateTableElement(e,r,n),!1);var i}scaleDOMColWidths(e,t){let n=this.getColWidths();n&&m1(p1(this,e),this.getColumnCount(),n.map(e=>e*t))}exportDOM(e){let t=super.exportDOM(e),{element:n}=t;return{after:n=>{if(t.after&&(n=t.after(n)),!f1(n)&&oW(n)&&(n=n.querySelector(`table`)),!f1(n))return null;h1(n,e._config,this.getFormatType());let[r]=nfe(this,null,null),i=new Map;for(let e of r)for(let t of e){let e=t.cell.getKey();i.has(e)||i.set(e,{colSpan:t.cell.getColSpan(),startColumn:t.startColumn})}let a=new Set;for(let e of n.querySelectorAll(`:scope > tr > [data-temporary-table-cell-lexical-key]`)){let t=e.getAttribute(`data-temporary-table-cell-lexical-key`);if(t){let n=i.get(t);if(e.removeAttribute(`data-temporary-table-cell-lexical-key`),n){i.delete(t);for(let e=0;e<n.colSpan;e++)a.add(e+n.startColumn)}}}let o=n.querySelector(`:scope > colgroup`);if(o){let e=Array.from(n.querySelectorAll(`:scope > colgroup > col`)).filter((e,t)=>a.has(t));o.replaceChildren(...e)}let s=n.querySelectorAll(`:scope > tr`);if(s.length>0){let e=$U().createElement(`tbody`);for(let t of s)e.appendChild(t);n.append(e)}return n},element:!f1(n)&&oW(n)?n.querySelector(`table`):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:n,domRows:r}=t;for(let t=0;t<n;t++){let n=r[t];if(n!=null)for(let r=0;r<n.length;r++){let i=n[r];if(i==null)continue;let{elem:a}=i,o=ife(this,a);if(o!==null&&e.is(o))return{x:r,y:t}}}throw Error(`Cell not found in table.`)}getDOMCellFromCords(e,t,n){let{domRows:r}=n,i=r[t];return i==null?null:i[e<i.length?e:i.length-1]??null}getDOMCellFromCordsOrThrow(e,t,n){let r=this.getDOMCellFromCords(e,t,n);if(!r)throw Error(`Cell not found at cords.`);return r}getCellNodeFromCords(e,t,n){let r=this.getDOMCellFromCords(e,t,n);if(r==null)return null;let i=lU(r.elem);return c1(i)?i:null}getCellNodeFromCordsOrThrow(e,t,n){let r=this.getCellNodeFromCords(e,t,n);if(!r)throw Error(`Node at cords not TableCellNode.`);return r}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let t=this.getWritable();return t.__rowStriping=e,t}setFrozenColumns(e){let t=this.getWritable();return t.__frozenColumnCount=e,t}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let t=this.getWritable();return t.__frozenRowCount=e,t}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!d1(e))return 0;let t=0;return e.getChildren().forEach(e=>{c1(e)&&(t+=e.getColSpan())}),t}},RX.tag(`table`),RX.tag(`tr`),RX.tag(`td`,`th`)})),E1=c(((e,t)=>{t!==void 0&&t.exports&&(t.exports={core:{meta:{path:`components/prism-core.js`,option:`mandatory`},core:`Core`},themes:{meta:{path:`themes/{id}.css`,link:`index.html?theme={id}`,exclusive:!0},prism:{title:`Default`,option:`default`},"prism-dark":`Dark`,"prism-funky":`Funky`,"prism-okaidia":{title:`Okaidia`,owner:`ocodia`},"prism-twilight":{title:`Twilight`,owner:`remybach`},"prism-coy":{title:`Coy`,owner:`tshedor`},"prism-solarizedlight":{title:`Solarized Light`,owner:`hectormatos2011 `},"prism-tomorrow":{title:`Tomorrow Night`,owner:`Rosey`}},languages:{meta:{path:`components/prism-{id}`,noCSS:!0,examplesPath:`examples/prism-{id}`,addCheckAll:!0},markup:{title:`Markup`,alias:[`html`,`xml`,`svg`,`mathml`,`ssml`,`atom`,`rss`],aliasTitles:{html:`HTML`,xml:`XML`,svg:`SVG`,mathml:`MathML`,ssml:`SSML`,atom:`Atom`,rss:`RSS`},option:`default`},css:{title:`CSS`,option:`default`,modify:`markup`},clike:{title:`C-like`,option:`default`},javascript:{title:`JavaScript`,require:`clike`,modify:`markup`,optional:`regex`,alias:`js`,option:`default`},abap:{title:`ABAP`,owner:`dellagustin`},abnf:{title:`ABNF`,owner:`RunDevelopment`},actionscript:{title:`ActionScript`,require:`javascript`,modify:`markup`,owner:`Golmote`},ada:{title:`Ada`,owner:`Lucretia`},agda:{title:`Agda`,owner:`xy-ren`},al:{title:`AL`,owner:`RunDevelopment`},antlr4:{title:`ANTLR4`,alias:`g4`,owner:`RunDevelopment`},apacheconf:{title:`Apache Configuration`,owner:`GuiTeK`},apex:{title:`Apex`,require:[`clike`,`sql`],owner:`RunDevelopment`},apl:{title:`APL`,owner:`ngn`},applescript:{title:`AppleScript`,owner:`Golmote`},aql:{title:`AQL`,owner:`RunDevelopment`},arduino:{title:`Arduino`,require:`cpp`,alias:`ino`,owner:`dkern`},arff:{title:`ARFF`,owner:`Golmote`},armasm:{title:`ARM Assembly`,alias:`arm-asm`,owner:`RunDevelopment`},arturo:{title:`Arturo`,alias:`art`,optional:[`bash`,`css`,`javascript`,`markup`,`markdown`,`sql`],owner:`drkameleon`},asciidoc:{alias:`adoc`,title:`AsciiDoc`,owner:`Golmote`},aspnet:{title:`ASP.NET (C#)`,require:[`markup`,`csharp`],owner:`nauzilus`},asm6502:{title:`6502 Assembly`,owner:`kzurawel`},asmatmel:{title:`Atmel AVR Assembly`,owner:`cerkit`},autohotkey:{title:`AutoHotkey`,owner:`aviaryan`},autoit:{title:`AutoIt`,owner:`Golmote`},avisynth:{title:`AviSynth`,alias:`avs`,owner:`Zinfidel`},"avro-idl":{title:`Avro IDL`,alias:`avdl`,owner:`RunDevelopment`},awk:{title:`AWK`,alias:`gawk`,aliasTitles:{gawk:`GAWK`},owner:`RunDevelopment`},bash:{title:`Bash`,alias:[`sh`,`shell`],aliasTitles:{sh:`Shell`,shell:`Shell`},owner:`zeitgeist87`},basic:{title:`BASIC`,owner:`Golmote`},batch:{title:`Batch`,owner:`Golmote`},bbcode:{title:`BBcode`,alias:`shortcode`,aliasTitles:{shortcode:`Shortcode`},owner:`RunDevelopment`},bbj:{title:`BBj`,owner:`hyyan`},bicep:{title:`Bicep`,owner:`johnnyreilly`},birb:{title:`Birb`,require:`clike`,owner:`Calamity210`},bison:{title:`Bison`,require:`c`,owner:`Golmote`},bnf:{title:`BNF`,alias:`rbnf`,aliasTitles:{rbnf:`RBNF`},owner:`RunDevelopment`},bqn:{title:`BQN`,owner:`yewscion`},brainfuck:{title:`Brainfuck`,owner:`Golmote`},brightscript:{title:`BrightScript`,owner:`RunDevelopment`},bro:{title:`Bro`,owner:`wayward710`},bsl:{title:`BSL (1C:Enterprise)`,alias:`oscript`,aliasTitles:{oscript:`OneScript`},owner:`Diversus23`},c:{title:`C`,require:`clike`,owner:`zeitgeist87`},csharp:{title:`C#`,require:`clike`,alias:[`cs`,`dotnet`],owner:`mvalipour`},cpp:{title:`C++`,require:`c`,owner:`zeitgeist87`},cfscript:{title:`CFScript`,require:`clike`,alias:`cfc`,owner:`mjclemente`},chaiscript:{title:`ChaiScript`,require:[`clike`,`cpp`],owner:`RunDevelopment`},cil:{title:`CIL`,owner:`sbrl`},cilkc:{title:`Cilk/C`,require:`c`,alias:`cilk-c`,owner:`OpenCilk`},cilkcpp:{title:`Cilk/C++`,require:`cpp`,alias:[`cilk-cpp`,`cilk`],owner:`OpenCilk`},clojure:{title:`Clojure`,owner:`troglotit`},cmake:{title:`CMake`,owner:`mjrogozinski`},cobol:{title:`COBOL`,owner:`RunDevelopment`},coffeescript:{title:`CoffeeScript`,require:`javascript`,alias:`coffee`,owner:`R-osey`},concurnas:{title:`Concurnas`,alias:`conc`,owner:`jasontatton`},csp:{title:`Content-Security-Policy`,owner:`ScottHelme`},cooklang:{title:`Cooklang`,owner:`ahue`},coq:{title:`Coq`,owner:`RunDevelopment`},crystal:{title:`Crystal`,require:`ruby`,owner:`MakeNowJust`},"css-extras":{title:`CSS Extras`,require:`css`,modify:`css`,owner:`milesj`},csv:{title:`CSV`,owner:`RunDevelopment`},cue:{title:`CUE`,owner:`RunDevelopment`},cypher:{title:`Cypher`,owner:`RunDevelopment`},d:{title:`D`,require:`clike`,owner:`Golmote`},dart:{title:`Dart`,require:`clike`,owner:`Golmote`},dataweave:{title:`DataWeave`,owner:`machaval`},dax:{title:`DAX`,owner:`peterbud`},dhall:{title:`Dhall`,owner:`RunDevelopment`},diff:{title:`Diff`,owner:`uranusjr`},django:{title:`Django/Jinja2`,require:`markup-templating`,alias:`jinja2`,owner:`romanvm`},"dns-zone-file":{title:`DNS zone file`,owner:`RunDevelopment`,alias:`dns-zone`},docker:{title:`Docker`,alias:`dockerfile`,owner:`JustinBeckwith`},dot:{title:`DOT (Graphviz)`,alias:`gv`,optional:`markup`,owner:`RunDevelopment`},ebnf:{title:`EBNF`,owner:`RunDevelopment`},editorconfig:{title:`EditorConfig`,owner:`osipxd`},eiffel:{title:`Eiffel`,owner:`Conaclos`},ejs:{title:`EJS`,require:[`javascript`,`markup-templating`],owner:`RunDevelopment`,alias:`eta`,aliasTitles:{eta:`Eta`}},elixir:{title:`Elixir`,owner:`Golmote`},elm:{title:`Elm`,owner:`zwilias`},etlua:{title:`Embedded Lua templating`,require:[`lua`,`markup-templating`],owner:`RunDevelopment`},erb:{title:`ERB`,require:[`ruby`,`markup-templating`],owner:`Golmote`},erlang:{title:`Erlang`,owner:`Golmote`},"excel-formula":{title:`Excel Formula`,alias:[`xlsx`,`xls`],owner:`RunDevelopment`},fsharp:{title:`F#`,require:`clike`,owner:`simonreynolds7`},factor:{title:`Factor`,owner:`catb0t`},false:{title:`False`,owner:`edukisto`},"firestore-security-rules":{title:`Firestore security rules`,require:`clike`,owner:`RunDevelopment`},flow:{title:`Flow`,require:`javascript`,owner:`Golmote`},fortran:{title:`Fortran`,owner:`Golmote`},ftl:{title:`FreeMarker Template Language`,require:`markup-templating`,owner:`RunDevelopment`},gml:{title:`GameMaker Language`,alias:`gamemakerlanguage`,require:`clike`,owner:`LiarOnce`},gap:{title:`GAP (CAS)`,owner:`RunDevelopment`},gcode:{title:`G-code`,owner:`RunDevelopment`},gdscript:{title:`GDScript`,owner:`RunDevelopment`},gedcom:{title:`GEDCOM`,owner:`Golmote`},gettext:{title:`gettext`,alias:`po`,owner:`RunDevelopment`},gherkin:{title:`Gherkin`,owner:`hason`},git:{title:`Git`,owner:`lgiraudel`},glsl:{title:`GLSL`,require:`c`,owner:`Golmote`},gn:{title:`GN`,alias:`gni`,owner:`RunDevelopment`},"linker-script":{title:`GNU Linker Script`,alias:`ld`,owner:`RunDevelopment`},go:{title:`Go`,require:`clike`,owner:`arnehormann`},"go-module":{title:`Go module`,alias:`go-mod`,owner:`RunDevelopment`},gradle:{title:`Gradle`,require:`clike`,owner:`zeabdelkhalek-badido18`},graphql:{title:`GraphQL`,optional:`markdown`,owner:`Golmote`},groovy:{title:`Groovy`,require:`clike`,owner:`robfletcher`},haml:{title:`Haml`,require:`ruby`,optional:[`css`,`css-extras`,`coffeescript`,`erb`,`javascript`,`less`,`markdown`,`scss`,`textile`],owner:`Golmote`},handlebars:{title:`Handlebars`,require:`markup-templating`,alias:[`hbs`,`mustache`],aliasTitles:{mustache:`Mustache`},owner:`Golmote`},haskell:{title:`Haskell`,alias:`hs`,owner:`bholst`},haxe:{title:`Haxe`,require:`clike`,optional:`regex`,owner:`Golmote`},hcl:{title:`HCL`,owner:`outsideris`},hlsl:{title:`HLSL`,require:`c`,owner:`RunDevelopment`},hoon:{title:`Hoon`,owner:`matildepark`},http:{title:`HTTP`,optional:[`csp`,`css`,`hpkp`,`hsts`,`javascript`,`json`,`markup`,`uri`],owner:`danielgtaylor`},hpkp:{title:`HTTP Public-Key-Pins`,owner:`ScottHelme`},hsts:{title:`HTTP Strict-Transport-Security`,owner:`ScottHelme`},ichigojam:{title:`IchigoJam`,owner:`BlueCocoa`},icon:{title:`Icon`,owner:`Golmote`},"icu-message-format":{title:`ICU Message Format`,owner:`RunDevelopment`},idris:{title:`Idris`,alias:`idr`,owner:`KeenS`,require:`haskell`},ignore:{title:`.ignore`,owner:`osipxd`,alias:[`gitignore`,`hgignore`,`npmignore`],aliasTitles:{gitignore:`.gitignore`,hgignore:`.hgignore`,npmignore:`.npmignore`}},inform7:{title:`Inform 7`,owner:`Golmote`},ini:{title:`Ini`,owner:`aviaryan`},io:{title:`Io`,owner:`AlesTsurko`},j:{title:`J`,owner:`Golmote`},java:{title:`Java`,require:`clike`,owner:`sherblot`},javadoc:{title:`JavaDoc`,require:[`markup`,`java`,`javadoclike`],modify:`java`,optional:`scala`,owner:`RunDevelopment`},javadoclike:{title:`JavaDoc-like`,modify:[`java`,`javascript`,`php`],owner:`RunDevelopment`},javastacktrace:{title:`Java stack trace`,owner:`RunDevelopment`},jexl:{title:`Jexl`,owner:`czosel`},jolie:{title:`Jolie`,require:`clike`,owner:`thesave`},jq:{title:`JQ`,owner:`RunDevelopment`},jsdoc:{title:`JSDoc`,require:[`javascript`,`javadoclike`,`typescript`],modify:`javascript`,optional:[`actionscript`,`coffeescript`],owner:`RunDevelopment`},"js-extras":{title:`JS Extras`,require:`javascript`,modify:`javascript`,optional:[`actionscript`,`coffeescript`,`flow`,`n4js`,`typescript`],owner:`RunDevelopment`},json:{title:`JSON`,alias:`webmanifest`,aliasTitles:{webmanifest:`Web App Manifest`},owner:`CupOfTea696`},json5:{title:`JSON5`,require:`json`,owner:`RunDevelopment`},jsonp:{title:`JSONP`,require:`json`,owner:`RunDevelopment`},jsstacktrace:{title:`JS stack trace`,owner:`sbrl`},"js-templates":{title:`JS Templates`,require:`javascript`,modify:`javascript`,optional:[`css`,`css-extras`,`graphql`,`markdown`,`markup`,`sql`],owner:`RunDevelopment`},julia:{title:`Julia`,owner:`cdagnino`},keepalived:{title:`Keepalived Configure`,owner:`dev-itsheng`},keyman:{title:`Keyman`,owner:`mcdurdin`},kotlin:{title:`Kotlin`,alias:[`kt`,`kts`],aliasTitles:{kts:`Kotlin Script`},require:`clike`,owner:`Golmote`},kumir:{title:`KuMir (КуМир)`,alias:`kum`,owner:`edukisto`},kusto:{title:`Kusto`,owner:`RunDevelopment`},latex:{title:`LaTeX`,alias:[`tex`,`context`],aliasTitles:{tex:`TeX`,context:`ConTeXt`},owner:`japborst`},latte:{title:`Latte`,require:[`clike`,`markup-templating`,`php`],owner:`nette`},less:{title:`Less`,require:`css`,optional:`css-extras`,owner:`Golmote`},lilypond:{title:`LilyPond`,require:`scheme`,alias:`ly`,owner:`RunDevelopment`},liquid:{title:`Liquid`,require:`markup-templating`,owner:`cinhtau`},lisp:{title:`Lisp`,alias:[`emacs`,`elisp`,`emacs-lisp`],owner:`JuanCaicedo`},livescript:{title:`LiveScript`,owner:`Golmote`},llvm:{title:`LLVM IR`,owner:`porglezomp`},log:{title:`Log file`,optional:`javastacktrace`,owner:`RunDevelopment`},lolcode:{title:`LOLCODE`,owner:`Golmote`},lua:{title:`Lua`,owner:`Golmote`},magma:{title:`Magma (CAS)`,owner:`RunDevelopment`},makefile:{title:`Makefile`,owner:`Golmote`},markdown:{title:`Markdown`,require:`markup`,optional:`yaml`,alias:`md`,owner:`Golmote`},"markup-templating":{title:`Markup templating`,require:`markup`,owner:`Golmote`},mata:{title:`Mata`,owner:`RunDevelopment`},matlab:{title:`MATLAB`,owner:`Golmote`},maxscript:{title:`MAXScript`,owner:`RunDevelopment`},mel:{title:`MEL`,owner:`Golmote`},mermaid:{title:`Mermaid`,owner:`RunDevelopment`},metafont:{title:`METAFONT`,owner:`LaeriExNihilo`},mizar:{title:`Mizar`,owner:`Golmote`},mongodb:{title:`MongoDB`,owner:`airs0urce`,require:`javascript`},monkey:{title:`Monkey`,owner:`Golmote`},moonscript:{title:`MoonScript`,alias:`moon`,owner:`RunDevelopment`},n1ql:{title:`N1QL`,owner:`TMWilds`},n4js:{title:`N4JS`,require:`javascript`,optional:`jsdoc`,alias:`n4jsd`,owner:`bsmith-n4`},"nand2tetris-hdl":{title:`Nand To Tetris HDL`,owner:`stephanmax`},naniscript:{title:`Naninovel Script`,owner:`Elringus`,alias:`nani`},nasm:{title:`NASM`,owner:`rbmj`},neon:{title:`NEON`,owner:`nette`},nevod:{title:`Nevod`,owner:`nezaboodka`},nginx:{title:`nginx`,owner:`volado`},nim:{title:`Nim`,owner:`Golmote`},nix:{title:`Nix`,owner:`Golmote`},nsis:{title:`NSIS`,owner:`idleberg`},objectivec:{title:`Objective-C`,require:`c`,alias:`objc`,owner:`uranusjr`},ocaml:{title:`OCaml`,owner:`Golmote`},odin:{title:`Odin`,owner:`edukisto`},opencl:{title:`OpenCL`,require:`c`,modify:[`c`,`cpp`],owner:`Milania1`},openqasm:{title:`OpenQasm`,alias:`qasm`,owner:`RunDevelopment`},oz:{title:`Oz`,owner:`Golmote`},parigp:{title:`PARI/GP`,owner:`Golmote`},parser:{title:`Parser`,require:`markup`,owner:`Golmote`},pascal:{title:`Pascal`,alias:`objectpascal`,aliasTitles:{objectpascal:`Object Pascal`},owner:`Golmote`},pascaligo:{title:`Pascaligo`,owner:`DefinitelyNotAGoat`},psl:{title:`PATROL Scripting Language`,owner:`bertysentry`},pcaxis:{title:`PC-Axis`,alias:`px`,owner:`RunDevelopment`},peoplecode:{title:`PeopleCode`,alias:`pcode`,owner:`RunDevelopment`},perl:{title:`Perl`,owner:`Golmote`},php:{title:`PHP`,require:`markup-templating`,owner:`milesj`},phpdoc:{title:`PHPDoc`,require:[`php`,`javadoclike`],modify:`php`,owner:`RunDevelopment`},"php-extras":{title:`PHP Extras`,require:`php`,modify:`php`,owner:`milesj`},"plant-uml":{title:`PlantUML`,alias:`plantuml`,owner:`RunDevelopment`},plsql:{title:`PL/SQL`,require:`sql`,owner:`Golmote`},powerquery:{title:`PowerQuery`,alias:[`pq`,`mscript`],owner:`peterbud`},powershell:{title:`PowerShell`,owner:`nauzilus`},processing:{title:`Processing`,require:`clike`,owner:`Golmote`},prolog:{title:`Prolog`,owner:`Golmote`},promql:{title:`PromQL`,owner:`arendjr`},properties:{title:`.properties`,owner:`Golmote`},protobuf:{title:`Protocol Buffers`,require:`clike`,owner:`just-boris`},pug:{title:`Pug`,require:[`markup`,`javascript`],optional:[`coffeescript`,`ejs`,`handlebars`,`less`,`livescript`,`markdown`,`scss`,`stylus`,`twig`],owner:`Golmote`},puppet:{title:`Puppet`,owner:`Golmote`},pure:{title:`Pure`,optional:[`c`,`cpp`,`fortran`],owner:`Golmote`},purebasic:{title:`PureBasic`,require:`clike`,alias:`pbfasm`,owner:`HeX0R101`},purescript:{title:`PureScript`,require:`haskell`,alias:`purs`,owner:`sriharshachilakapati`},python:{title:`Python`,alias:`py`,owner:`multipetros`},qsharp:{title:`Q#`,require:`clike`,alias:`qs`,owner:`fedonman`},q:{title:`Q (kdb+ database)`,owner:`Golmote`},qml:{title:`QML`,require:`javascript`,owner:`RunDevelopment`},qore:{title:`Qore`,require:`clike`,owner:`temnroegg`},r:{title:`R`,owner:`Golmote`},racket:{title:`Racket`,require:`scheme`,alias:`rkt`,owner:`RunDevelopment`},cshtml:{title:`Razor C#`,alias:`razor`,require:[`markup`,`csharp`],optional:[`css`,`css-extras`,`javascript`,`js-extras`],owner:`RunDevelopment`},jsx:{title:`React JSX`,require:[`markup`,`javascript`],optional:[`jsdoc`,`js-extras`,`js-templates`],owner:`vkbansal`},tsx:{title:`React TSX`,require:[`jsx`,`typescript`]},reason:{title:`Reason`,require:`clike`,owner:`Golmote`},regex:{title:`Regex`,owner:`RunDevelopment`},rego:{title:`Rego`,owner:`JordanSh`},renpy:{title:`Ren'py`,alias:`rpy`,owner:`HyuchiaDiego`},rescript:{title:`ReScript`,alias:`res`,owner:`vmarcosp`},rest:{title:`reST (reStructuredText)`,owner:`Golmote`},rip:{title:`Rip`,owner:`ravinggenius`},roboconf:{title:`Roboconf`,owner:`Golmote`},robotframework:{title:`Robot Framework`,alias:`robot`,owner:`RunDevelopment`},ruby:{title:`Ruby`,require:`clike`,alias:`rb`,owner:`samflores`},rust:{title:`Rust`,owner:`Golmote`},sas:{title:`SAS`,optional:[`groovy`,`lua`,`sql`],owner:`Golmote`},sass:{title:`Sass (Sass)`,require:`css`,optional:`css-extras`,owner:`Golmote`},scss:{title:`Sass (SCSS)`,require:`css`,optional:`css-extras`,owner:`MoOx`},scala:{title:`Scala`,require:`java`,owner:`jozic`},scheme:{title:`Scheme`,owner:`bacchus123`},"shell-session":{title:`Shell session`,require:`bash`,alias:[`sh-session`,`shellsession`],owner:`RunDevelopment`},smali:{title:`Smali`,owner:`RunDevelopment`},smalltalk:{title:`Smalltalk`,owner:`Golmote`},smarty:{title:`Smarty`,require:`markup-templating`,optional:`php`,owner:`Golmote`},sml:{title:`SML`,alias:`smlnj`,aliasTitles:{smlnj:`SML/NJ`},owner:`RunDevelopment`},solidity:{title:`Solidity (Ethereum)`,alias:`sol`,require:`clike`,owner:`glachaud`},"solution-file":{title:`Solution file`,alias:`sln`,owner:`RunDevelopment`},soy:{title:`Soy (Closure Template)`,require:`markup-templating`,owner:`Golmote`},sparql:{title:`SPARQL`,require:`turtle`,owner:`Triply-Dev`,alias:`rq`},"splunk-spl":{title:`Splunk SPL`,owner:`RunDevelopment`},sqf:{title:`SQF: Status Quo Function (Arma 3)`,require:`clike`,owner:`RunDevelopment`},sql:{title:`SQL`,owner:`multipetros`},squirrel:{title:`Squirrel`,require:`clike`,owner:`RunDevelopment`},stan:{title:`Stan`,owner:`RunDevelopment`},stata:{title:`Stata Ado`,require:[`mata`,`java`,`python`],owner:`RunDevelopment`},iecst:{title:`Structured Text (IEC 61131-3)`,owner:`serhioromano`},stylus:{title:`Stylus`,owner:`vkbansal`},supercollider:{title:`SuperCollider`,alias:`sclang`,owner:`RunDevelopment`},swift:{title:`Swift`,owner:`chrischares`},systemd:{title:`Systemd configuration file`,owner:`RunDevelopment`},"t4-templating":{title:`T4 templating`,owner:`RunDevelopment`},"t4-cs":{title:`T4 Text Templates (C#)`,require:[`t4-templating`,`csharp`],alias:`t4`,owner:`RunDevelopment`},"t4-vb":{title:`T4 Text Templates (VB)`,require:[`t4-templating`,`vbnet`],owner:`RunDevelopment`},tap:{title:`TAP`,owner:`isaacs`,require:`yaml`},tcl:{title:`Tcl`,owner:`PeterChaplin`},tt2:{title:`Template Toolkit 2`,require:[`clike`,`markup-templating`],owner:`gflohr`},textile:{title:`Textile`,require:`markup`,optional:`css`,owner:`Golmote`},toml:{title:`TOML`,owner:`RunDevelopment`},tremor:{title:`Tremor`,alias:[`trickle`,`troy`],owner:`darach`,aliasTitles:{trickle:`trickle`,troy:`troy`}},turtle:{title:`Turtle`,alias:`trig`,aliasTitles:{trig:`TriG`},owner:`jakubklimek`},twig:{title:`Twig`,require:`markup-templating`,owner:`brandonkelly`},typescript:{title:`TypeScript`,require:`javascript`,optional:`js-templates`,alias:`ts`,owner:`vkbansal`},typoscript:{title:`TypoScript`,alias:`tsconfig`,aliasTitles:{tsconfig:`TSConfig`},owner:`dkern`},unrealscript:{title:`UnrealScript`,alias:[`uscript`,`uc`],owner:`RunDevelopment`},uorazor:{title:`UO Razor Script`,owner:`jaseowns`},uri:{title:`URI`,alias:`url`,aliasTitles:{url:`URL`},owner:`RunDevelopment`},v:{title:`V`,require:`clike`,owner:`taggon`},vala:{title:`Vala`,require:`clike`,optional:`regex`,owner:`TemplarVolk`},vbnet:{title:`VB.Net`,require:`basic`,owner:`Bigsby`},velocity:{title:`Velocity`,require:`markup`,owner:`Golmote`},verilog:{title:`Verilog`,owner:`a-rey`},vhdl:{title:`VHDL`,owner:`a-rey`},vim:{title:`vim`,owner:`westonganger`},"visual-basic":{title:`Visual Basic`,alias:[`vb`,`vba`],aliasTitles:{vba:`VBA`},owner:`Golmote`},warpscript:{title:`WarpScript`,owner:`RunDevelopment`},wasm:{title:`WebAssembly`,owner:`Golmote`},"web-idl":{title:`Web IDL`,alias:`webidl`,owner:`RunDevelopment`},wgsl:{title:`WGSL`,owner:`Dr4gonthree`},wiki:{title:`Wiki markup`,require:`markup`,owner:`Golmote`},wolfram:{title:`Wolfram language`,alias:[`mathematica`,`nb`,`wl`],aliasTitles:{mathematica:`Mathematica`,nb:`Mathematica Notebook`},owner:`msollami`},wren:{title:`Wren`,owner:`clsource`},xeora:{title:`Xeora`,require:`markup`,alias:`xeoracube`,aliasTitles:{xeoracube:`XeoraCube`},owner:`freakmaxi`},"xml-doc":{title:`XML doc (.net)`,require:`markup`,modify:[`csharp`,`fsharp`,`vbnet`],owner:`RunDevelopment`},xojo:{title:`Xojo (REALbasic)`,owner:`Golmote`},xquery:{title:`XQuery`,require:`markup`,owner:`Golmote`},yaml:{title:`YAML`,alias:`yml`,owner:`hason`},yang:{title:`YANG`,owner:`RunDevelopment`},zig:{title:`Zig`,owner:`RunDevelopment`}},plugins:{meta:{path:`plugins/{id}/prism-{id}`,link:`plugins/{id}/`},"line-highlight":{title:`Line Highlight`,description:`Highlights specific lines and/or line ranges.`},"line-numbers":{title:`Line Numbers`,description:`Line number at the beginning of code lines.`,owner:`kuba-kubula`},"show-invisibles":{title:`Show Invisibles`,description:`Show hidden characters such as tabs and line breaks.`,optional:[`autolinker`,`data-uri-highlight`]},autolinker:{title:`Autolinker`,description:`Converts URLs and emails in code to clickable links. Parses Markdown links in comments.`},wpd:{title:`WebPlatform Docs`,description:`Makes tokens link to <a href="https://webplatform.github.io/docs/">WebPlatform.org documentation</a>. The links open in a new tab.`},"custom-class":{title:`Custom Class`,description:`This plugin allows you to prefix Prism's default classes (<code>.comment</code> can become <code>.namespace--comment</code>) or replace them with your defined ones (like <code>.editor__comment</code>). You can even add new classes.`,owner:`dvkndn`,noCSS:!0},"file-highlight":{title:`File Highlight`,description:`Fetch external files and highlight them with Prism. Used on the Prism website itself.`,noCSS:!0},"show-language":{title:`Show Language`,description:`Display the highlighted language in code blocks (inline code does not show the label).`,owner:`nauzilus`,noCSS:!0,require:`toolbar`},"jsonp-highlight":{title:`JSONP Highlight`,description:`Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).`,noCSS:!0,owner:`nauzilus`},"highlight-keywords":{title:`Highlight Keywords`,description:`Adds special CSS classes for each keyword for fine-grained highlighting.`,owner:`vkbansal`,noCSS:!0},"remove-initial-line-feed":{title:`Remove initial line feed`,description:`Removes the initial line feed in code blocks.`,owner:`Golmote`,noCSS:!0},"inline-color":{title:`Inline color`,description:`Adds a small inline preview for colors in style sheets.`,require:`css-extras`,owner:`RunDevelopment`},previewers:{title:`Previewers`,description:`Previewers for angles, colors, gradients, easing and time.`,require:`css-extras`,owner:`Golmote`},autoloader:{title:`Autoloader`,description:`Automatically loads the needed languages to highlight the code blocks.`,owner:`Golmote`,noCSS:!0},"keep-markup":{title:`Keep Markup`,description:`Prevents custom markup from being dropped out during highlighting.`,owner:`Golmote`,optional:`normalize-whitespace`,noCSS:!0},"command-line":{title:`Command Line`,description:`Display a command line with a prompt and, optionally, the output/response from the commands.`,owner:`chriswells0`},"unescaped-markup":{title:`Unescaped Markup`,description:`Write markup without having to escape anything.`},"normalize-whitespace":{title:`Normalize Whitespace`,description:`Supports multiple operations to normalize whitespace in code blocks.`,owner:`zeitgeist87`,optional:`unescaped-markup`,noCSS:!0},"data-uri-highlight":{title:`Data-URI Highlight`,description:`Highlights data-URI contents.`,owner:`Golmote`,noCSS:!0},toolbar:{title:`Toolbar`,description:`Attach a toolbar for plugins to easily register buttons on the top of a code block.`,owner:`mAAdhaTTah`},"copy-to-clipboard":{title:`Copy to Clipboard Button`,description:`Add a button that copies the code block to the clipboard when clicked.`,owner:`mAAdhaTTah`,require:`toolbar`,noCSS:!0},"download-button":{title:`Download Button`,description:`A button in the toolbar of a code block adding a convenient way to download a code file.`,owner:`Golmote`,require:`toolbar`,noCSS:!0},"match-braces":{title:`Match braces`,description:`Highlights matching braces.`,owner:`RunDevelopment`},"diff-highlight":{title:`Diff Highlight`,description:`Highlights the code inside diff blocks.`,owner:`RunDevelopment`,require:`diff`},"filter-highlight-all":{title:`Filter highlightAll`,description:`Filters the elements the <code>highlightAll</code> and <code>highlightAllUnder</code> methods actually highlight.`,owner:`RunDevelopment`,noCSS:!0},treeview:{title:`Treeview`,description:`A language with special styles to highlight file system tree structures.`,owner:`Golmote`}}})})),D1,O1,k1,A1,j1,M1,N1,P1,F1,I1,L1=s((()=>{xZ(),LZ(),iQ(),i1(),JQ(),D1=`https://unpkg.com/prismjs@1.30.0`,O1={text:{italic:`italic`,strikethrough:`strikethrough`},list:{nested:{listitem:`nested`}},code:`code-block`,codeHighlight:{atrule:`token atrule`,attr:`token attr`,boolean:`token boolean`,builtin:`token builtin`,cdata:`token cdata`,char:`token char`,class:`token class`,"class-name":`token class-name`,comment:`token comment`,constant:`token constant`,deleted:`token deleted`,doctype:`token doctype`,entity:`token entity`,function:`token function`,important:`token important`,inserted:`token inserted`,keyword:`token keyword`,namespace:`token namespace`,number:`token number`,operator:`token operator`,prolog:`token prolog`,property:`token property`,punctuation:`token punctuation`,regex:`token regex`,selector:`token selector`,string:`token string`,symbol:`token symbol`,tag:`token tag`,url:`token url`,variable:`token variable`}},k1={bold:{labelKey:`bold`,icon:`format_bold`,inline:!0},italic:{labelKey:`italic`,icon:`format_italic`,inline:!0},strikethrough:{labelKey:`strikethrough`,icon:`strikethrough_s`,inline:!0},code:{labelKey:`code`,icon:`code`,inline:!0},link:{labelKey:`link`,icon:`link`,inline:!0},paragraph:{labelKey:`paragraph`,icon:`format_paragraph`,inline:!1},"heading-1":{labelKey:`heading_1`,icon:`format_h1`,inline:!1},"heading-2":{labelKey:`heading_2`,icon:`format_h2`,inline:!1},"heading-3":{labelKey:`heading_3`,icon:`format_h3`,inline:!1},"heading-4":{labelKey:`heading_4`,icon:`format_h4`,inline:!1},"heading-5":{labelKey:`heading_5`,icon:`format_h5`,inline:!1},"heading-6":{labelKey:`heading_6`,icon:`format_h6`,inline:!1},"bulleted-list":{labelKey:`bulleted_list`,icon:`format_list_bulleted`,inline:!1},"numbered-list":{labelKey:`numbered_list`,icon:`format_list_numbered`,inline:!1},blockquote:{labelKey:`blockquote`,icon:`format_quote`,inline:!1},"code-block":{labelKey:`code_block`,icon:`code_blocks`,inline:!1}},A1=[`bold`,`italic`,`strikethrough`,`code`],j1=[...A1,`link`],M1=[`paragraph`,`heading-1`,`heading-2`,`heading-3`,`heading-4`,`heading-5`,`heading-6`,`bulleted-list`,`numbered-list`,`blockquote`,`code-block`],N1=[`image`,`linked-image`],P1={"heading-1":[KQ],"heading-2":[KQ],"heading-3":[KQ],"heading-4":[KQ],"heading-5":[KQ],"heading-6":[KQ],"bulleted-list":[eQ,$Z],"numbered-list":[eQ,$Z],blockquote:[GQ],"code-block":[uZ,dZ],link:[NZ]},F1={"heading-1":[R$],"heading-2":[R$],"heading-3":[R$],"heading-4":[R$],"heading-5":[R$],"heading-6":[R$],"bulleted-list":[V$],"numbered-list":[H$],blockquote:[z$],"code-block":[B$],code:[U$],bold:[q$,J$,G$,K$],italic:[Z$,X$,G$,K$],strikethrough:[Y$],link:[Q$]},I1=[`*`,`__`,`***`,`___`]})),R1,z1,ofe=s((()=>{R1=e=>e.replace(/(\s+)_([^_\n]+?)\n([^_\n]+?)_(\s+)/gm,`$1_$2_
_$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
**$3**$4`).replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm,`$1~~$2~~
~~$3~~$4`).replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm,"$1`$2`\n`$3`$4"),z1=e=>{if(!e.match(/^\s{2}(?:-|\+|\*|\d+\.)\s/m))return e;let t=!1;return e.split(`
`).map(e=>/^(`{3,}|~{3,})/.test(e)?(t=!t,e):t?e:e.replace(/^(\s+)(-|\+|\*|\d+\.)/,(e,t,n)=>`${` `.repeat(t.length*2)}${n}`)).join(`
`)}})),B1,sfe=s((()=>{mX(),B1={dependencies:[pX],export:e=>mue(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=BY();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`}})),V1,H1,U1,W1,G1,K1,cfe=s((()=>{i1(),T1(),$J(),V1=/^(?:\|)(.+)(?:\|)\s?$/,H1=/^(\| ?:?-*:? ?)+\|\s?$/,U1=e=>{let t=e.getFirstChild();return d1(t)?t.getChildrenSize():0},W1=e=>{e=e.replace(/\\n/g,`
`);let t=s1(b1.NO_STATUS);return m$(e,r1,t),t},G1=e=>{let[,t]=e.match(V1)??[];return t?t.split(`|`).map(e=>W1(e)):null},K1={dependencies:[w1,S1,x1],export:e=>{if(!v1(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!d1(e))return;let r=!1;e.getChildren().forEach(e=>{c1(e)&&(n.push(h$(r1,e).replace(/\n/g,`\\n`).trim()),e.__headerState===b1.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(`
`)},regExp:V1,replace:(e,t,[n])=>{if(H1.test(n)){let t=e.getPreviousSibling();if(!t||!v1(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!d1(r))return;r.getChildren().forEach(e=>{c1(e)&&e.setHeaderStyles(b1.ROW,b1.ROW)}),e.remove();return}let r=G1(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!LH(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!mV(e))break;let t=G1(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=_1();i.forEach(e=>{let t=u1();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:W1(``))});let c=e.getPreviousSibling();v1(c)&&U1(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})),q1,J1,Y1,X1,Z1,Q1,$1,e0=s((()=>{Iz(),xZ(),bZ(),hde(),mX(),bde(),LZ(),iQ(),i1(),JQ(),T1(),yY(),rT(),$J(),q1=u(E1(),1),L1(),ofe(),sfe(),cfe(),$j(),J1=()=>{let e=KV();if(!SV(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=A1.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof gJ?t:fY(t,gJ),DZ(n)&&(r.push(`link`),n=fY(n,gJ)),JZ(n)&&(n=fY(n,eQ)));let i=(()=>{if(!n)return`paragraph`;if(MQ(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(QZ(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(OQ(n))return`blockquote`;if(qX(n)||eZ(n))return`code-block`;let e=n.getType();return M1.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},Y1=(e,t)=>{let n=t.filter(({tag:e})=>!I1.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:h$(n).replace(/\\([_\\])/g,`$1`).replace(/&#32;/g,` `),selection:J1()}}))},X1=({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(P1).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[uZ,dZ]:[pX,w1,x1,S1]],theme:O1},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(F1).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[B$]:[B1,K1]],s=zH(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(Vde(s)),l(pde(s)),l(vde(s,yde(),1e3)),n&&l(efe(s,o)),(e.includes(`code-block`)||r)&&l(ude(s,{defaultLanguage:i,tokenize:(e,t=`plain`)=>window.Prism.tokenize(e,window.Prism.languages[t]??window.Prism.languages.plain),$tokenize:yZ.$tokenize})),e.includes(`link`)&&l(s.registerCommand(FZ,e=>(Sde(typeof e==`string`?e:null),!0),2)),e.includes(`bulleted-list`)&&l(s.registerCommand(nQ,()=>(BZ(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(rQ,()=>(BZ(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand($K,()=>Ode(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await nT(100),s.update(()=>{if(r){let e=fU(),t=e.getChildren();if(t.length===1&&!qX(t[0])&&t[0].remove(),t.length===0){let t=KX();t.setLanguage(i),e.append(t)}}Y1(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=KV();if(!SV(t))return;let n=t.anchor.getNode(),r=n instanceof gJ?n:fY(n,gJ);JZ(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(wq,void 0)):(e.preventDefault(),s.dispatchCommand(Cq,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},Z1=async e=>{if(e in window.Prism.languages)return;let t=Object.entries(q1.default.languages).find(([t,{alias:n}])=>t===e||(Array.isArray(n)?n.includes(e):n===e))?.[0];if(t)try{await Qj(()=>import(`${D1}/components/prism-${t}.min.js`),void 0)}catch{}},Q1=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>Z1(e))),t=R1(t),t=z1(t),new Promise((r,i)=>{e.update(()=>{try{m$(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),$1=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})}));function t0(e,t){k(t,!0),G(e,i0);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=ec(t,n0),c=Lt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));ri(()=>{c.editor?.setEditable(z(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};lc(()=>{let{editor:e,enabledTransformers:t,dispose:n}=X1(c.config);return c.editor=e,c.enabledTransformers=t,z(l)?.addEventListener(`Update`,d),z(l)?.addEventListener(`click`,f),()=>{z(l)?.removeEventListener(`Update`,d),z(l)?.removeEventListener(`click`,f),n(),e.setRootElement(null),c.initialized=!1,c.editor=void 0}}),ri(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=r0();Cs(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:z(u),hidden:n(),[Es]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-pbuznp`),qs(p,e=>P(l,e),()=>z(l)),H(e,p),A()}var n0,r0,i0,a0=s((()=>{Z(),J(),dc(),e0(),n0=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),r0=B(`<div></div>`),i0={hash:`svelte-pbuznp`,code:`.lexical-root.svelte-pbuznp {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:8em;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-pbuznp:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-pbuznp {padding:0;}.lexical-root.code.svelte-pbuznp .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-pbuznp:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-pbuznp {border-color:var(--sui-error-border-color);}.lexical-root.svelte-pbuznp [dir]:first-child {margin-top:0;}.lexical-root.svelte-pbuznp [dir]:last-child {margin-bottom:0;}.lexical-root.svelte-pbuznp strong.italic {font-style:italic;}.lexical-root.svelte-pbuznp .strikethrough {text-decoration:line-through;}.lexical-root.svelte-pbuznp li.nested {list-style-type:none;}.lexical-root.svelte-pbuznp .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-pbuznp .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-pbuznp .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-pbuznp .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-pbuznp [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-pbuznp :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-pbuznp hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-pbuznp hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}:root[data-theme=light] .lexical-root.svelte-pbuznp .token:is(.comment, .prolog, .doctype, .cdata) {color:slategray;}:root[data-theme=light] .lexical-root.svelte-pbuznp .token.punctuation {color:#999;}:root[data-theme=light] .lexical-root.svelte-pbuznp .token.namespace {opacity:0.7;}:root[data-theme=light] .lexical-root.svelte-pbuznp .token:is(.property, .tag, .boolean, .number, .constant, .symbol, .deleted) {color:#905;}:root[data-theme=light] .lexical-root.svelte-pbuznp .token:is(.selector, .attr-name, .string, .char, .builtin, .inserted) {color:#690;}:root[data-theme=light] .lexical-root.svelte-pbuznp .token:is(.operator, .entity, .url), :root[data-theme=light] .lexical-root.svelte-pbuznp .language-css .token.string, :root[data-theme=light] .lexical-root.svelte-pbuznp .style .token.string {color:#9a6e3a;}:root[data-theme=light] .lexical-root.svelte-pbuznp .token:is(.atrule, .attr-value, .keyword) {color:#07a;}:root[data-theme=light] .lexical-root.svelte-pbuznp .token:is(.function, .class-name) {color:#dd4a68;}:root[data-theme=light] .lexical-root.svelte-pbuznp .token:is(.regex, .important, .variable) {color:#e90;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token:is(.comment, .block-comment, .prolog, .doctype, .cdata) {color:#999;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token.punctuation {color:#ccc;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token:is(.tag, .attr-name, .namespace, .deleted) {color:#e2777a;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token.function-name {color:#6196cc;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token:is(.boolean, .number, .function) {color:#f08d49;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token:is(.property, .class-name, .constant, .symbol) {color:#f8c555;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token:is(.selector, .important, .atrule, .keyword, .builtin) {color:#cc99cd;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token:is(.string, .char, .attr-value, .regex, .variable) {color:#7ec699;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token:is(.operator, .entity, .url) {color:#67cdcc;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token:is(.important, .bold) {font-weight:bold;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token.italic {font-style:italic;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token.entity {cursor:help;}:root[data-theme=dark] .lexical-root.svelte-pbuznp .token.inserted {color:green;}`}})),o0,s0=s((()=>{J(),hI(),e0(),o0=()=>{let e=pI(`editor`),t=N(!1),n=N(void 0),r=N(Nr([])),i=N(Nr({modes:[],enabledButtons:[],components:[],useMarkdownShortcuts:!0,isCodeEditor:!1})),a=N(``),o=N(Nr({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),s=N(!0),c=N(!1),l=N(!1),u=async()=>{if(!z(n)||!z(t))return;let e=z(a);try{await Q1(z(n),z(a)||``,z(r))}catch(t){P(c,!0),P(a,e,!0),console.error(t)}};return{get editor(){return z(n)},set editor(e){P(n,e,!0)},set enabledTransformers(e){P(r,e,!0)},get enabledTransformers(){return z(r)},get initialized(){return z(t)},set initialized(e){P(t,e,!0)},get config(){return z(i)},set config(e){P(i,e,!0),P(s,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return z(a)},set inputValue(e){let t=z(a)!==e;t&&P(a,e,!0),z(s)&&(t||z(n)?.getEditorState().isEmpty())&&u()},get selection(){return z(o)},set selection(e){P(o,e,!0)},get useRichText(){return z(s)},set useRichText(e){P(s,e,!0)},get hasConverterError(){return z(c)},set hasConverterError(e){P(c,e,!0),z(c)&&(P(s,!1),P(l,!0))},get showConverterError(){return z(l)},set showConverterError(e){P(l,e,!0)},editorId:e,convertMarkdown:u}}}));function c0(e,t){k(t,!0);let n=q(t,`disabled`,3,!1),r=Object.entries(l0.default.languages).filter(([,e])=>`title`in e).map(([e,t])=>{let{title:n,aliasTitles:r,alias:i}=t,a=[];return i&&!r&&(a=Array.isArray(i)?i:[i]),[{key:e,label:n,aliases:a},...Object.entries(r??{}).map(([e,t])=>({key:e,label:t,aliases:[]}))]}).flat(1).sort((e,t)=>e.label.localeCompare(t.label)),i=Lt(`editorStore`),a=N(`plain`);ri(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?fU().getChildren()[0]:aU(i.selection.blockNodeKey);qX(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>Y(`_sui.text_editor.language`));QR(e,{get disabled(){return n()},get"aria-label"(){return z(t)},get value(){return z(a)},onChange:async({detail:{value:e}})=>{!i.editor||z(a)===e||(await $1(i.editor),i.selection?.blockNodeKey&&(await Z1(e),i.editor.update(()=>{let t=aU(i.selection.blockNodeKey);qX(t)&&(t.setLanguage(e),P(a,e,!0))})))},children:(e,t)=>{var n=u0(),i=I(n);{let e=M(()=>Y(`_sui.text_editor.plain_text`));UL(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}vo(L(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).aliases;{let t=M(()=>n()===z(a)||i().includes(z(a)));UL(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),H(e,n)},$$slots:{default:!0}})}A()}var l0,u0,d0=s((()=>{Z(),J(),Iz(),xZ(),X(),$J(),l0=u(E1()),dc(),JL(),ez(),e0(),u0=B(`<!> <!>`,1)}));function f0(e,t){G(e,h0);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`variant`,3,void 0),o=q(t,`ariaLabel`,3,void 0),s=ec(t,p0);var c=m0();Cs(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-1ne7xjb`);var l=F(c);Ao(F(l),()=>t.children??D),O(l),O(c),R(()=>l.inert=r()),H(e,c)}var p0,m0,h0,g0=s((()=>{Z(),J(),p0=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`ariaLabel`,`children`]),m0=B(`<div><div role="none" class="inner svelte-1ne7xjb"><!></div></div>`),h0={hash:`svelte-1ne7xjb`,code:`[role=toolbar].svelte-1ne7xjb {--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-1ne7xjb {--toolbar-size: var(--sui-primary-toolbar-size);}
@media (width < 768px) {[role=toolbar].secondary.svelte-1ne7xjb {padding-inline:0;}
}[role=toolbar][aria-orientation=horizontal].svelte-1ne7xjb {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-1ne7xjb {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-1ne7xjb button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-1ne7xjb 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-1ne7xjb h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-1ne7xjb 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-1ne7xjb .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-1ne7xjb .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-1ne7xjb {display:contents;}`}}));function _0(e,t){k(t,!0),G(e,b0),q(t,`code`,11,``),q(t,`lang`,11,`plain`);let n=q(t,`disabled`,3,!1),r=ec(t,v0);var i=y0();f0(F(i),tc(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=V();Ao(I(r),()=>t.children??D),H(e,r)},$$slots:{default:!0}})),O(i),H(e,i),A()}var v0,y0,b0,x0=s((()=>{Z(),J(),g0(),v0=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]),y0=B(`<div role="none" class="wrapper svelte-s4gm2d"><!></div>`),b0={hash:`svelte-s4gm2d`,code:`.wrapper.svelte-s4gm2d {display:contents;}.wrapper.svelte-s4gm2d [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);}
@media (width < 768px) {.wrapper.svelte-s4gm2d [role=toolbar] {flex-wrap:wrap;height:auto;}
}.wrapper.svelte-s4gm2d .sui.menu-button {padding:0 4px;}.wrapper.svelte-s4gm2d .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-s4gm2d .sui.button-group {gap:4px;}`}}));function lfe(e,t){k(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1);{let t=M(()=>n()||r()),i=M(()=>Y(`_sui.text_editor.code_editor`));_0(e,{get disabled(){return z(t)},get"aria-label"(){return z(i)},children:(e,t)=>{{let t=M(()=>n()||r());c0(e,{get disabled(){return z(t)}})}},$$slots:{default:!0}})}A()}var ufe=s((()=>{Z(),J(),X(),d0(),x0()}));function dfe(e,t){k(t,!0),G(e,w0);let n=q(t,`code`,15,``),r=q(t,`lang`,15,`plain`),i=q(t,`showLanguageSwitcher`,3,!1),a=q(t,`flex`,3,!1),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=ec(t,S0),f=o0();f.config={...f.config,useMarkdownShortcuts:!1,isCodeEditor:!0,defaultLanguage:r()},Rt(`editorStore`,f),ri(()=>{f.initialized&&(n(),r(),Gi(()=>{let e=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``;f.inputValue=e}))}),ri(()=>{f.initialized&&(f.inputValue,Gi(()=>{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=C0(),m=I(p);Cs(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[Es]:{flex:a()}}),void 0,void 0,void 0,`svelte-1bd1cbx`);var h=F(m),g=e=>{lfe(e,{get disabled(){return s()},get readonly(){return c()}})};W(h,e=>{i()&&e(g)}),t0(L(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),O(m);var _=L(m,2),v=e=>{jz(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{rI(e,{status:`error`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(_,e=>{f.showConverterError&&e(v)}),H(e,p),A()}var S0,C0,w0,ffe=s((()=>{Z(),J(),X(),dc(),iI(),Fz(),a0(),s0(),ufe(),S0=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),C0=B(`<div><!> <!></div> <!>`,1),w0={hash:`svelte-1bd1cbx`,code:`.code-editor.svelte-1bd1cbx {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-1bd1cbx:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.code-editor.flex.svelte-1bd1cbx:not([hidden]) {display:block;}`}}));function T0(e,t){k(t,!0),G(e,k0);let n=q(t,`value`,15,``),r=q(t,`flex`,3,!1),i=q(t,`dir`,3,void 0),a=q(t,`name`,3,void 0),o=q(t,`autoResize`,3,!1),s=q(t,`hidden`,3,!1),c=q(t,`disabled`,3,!1),l=q(t,`readonly`,3,!1),u=q(t,`required`,3,!1),d=q(t,`invalid`,3,!1),f=ec(t,E0);var p=O0();let m;var h=F(p);En(h),Cs(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(),[Es]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-kbfpfu`);var g=L(h,2),_=e=>{var t=D0(),r=F(t,!0);O(t),R(()=>{K(t,`dir`,i()),U(r,n()),t.dir=t.dir}),H(e,t)};W(g,e=>{o()&&e(_)}),O(p),R(()=>{m=ds(p,1,`sui text-area ${t.class??``}`,`svelte-kbfpfu`,m,{flex:r(),disabled:c(),readonly:l()}),K(p,`hidden`,s()),h.dir=h.dir}),Rs(h,n),H(e,p),A()}var E0,D0,O0,k0,A0=s((()=>{Z(),J(),E0=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`name`,`autoResize`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),D0=B(`<div class="clone svelte-kbfpfu" aria-hidden="true"> </div>`),O0=B(`<div role="none"><textarea></textarea> <!></div>`),k0={hash:`svelte-kbfpfu`,code:`.text-area.svelte-kbfpfu {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-kbfpfu {display:none;}.text-area.flex.svelte-kbfpfu:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-kbfpfu, .clone.svelte-kbfpfu) {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-kbfpfu), .clone:where(.svelte-kbfpfu)).resizing.svelte-kbfpfu {transition-duration:0ms;}.svelte-kbfpfu:is(textarea:where(.svelte-kbfpfu), .clone:where(.svelte-kbfpfu)):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-kbfpfu:is(textarea:where(.svelte-kbfpfu), .clone:where(.svelte-kbfpfu)):is(:where(.svelte-kbfpfu):disabled, :where(.svelte-kbfpfu):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-kbfpfu {resize:vertical;}textarea.auto-resize.svelte-kbfpfu {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-kbfpfu {border-color:var(--sui-error-border-color);}.clone.svelte-kbfpfu {overflow:hidden;visibility:hidden;}textarea.svelte-kbfpfu,
.clone.svelte-kbfpfu {white-space:pre-wrap;word-break:break-all;}`}}));function pfe(e,t){k(t,!0);let n=Lt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{tI(e,{get name(){return k1[t.type].icon}})},a=M(()=>Y(`_sui.text_editor.${k1[t.type].labelKey}`)),o=M(()=>!n.useRichText);bI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await $1(n.editor),n.editor.dispatchCommand(aq,t.type))},startIcon:i,$$slots:{startIcon:!0}})}A()}var mfe=s((()=>{Z(),J(),X(),$J(),dc(),SI(),nI(),L1(),e0()}));function hfe(e,t){k(t,!0);let n=Lt(`editorStore`);{let r=e=>{tI(e,{get name(){return t.component.icon}})},i=M(()=>!n.useRichText);bI(e,{iconic:!0,get"aria-label"(){return t.component.label},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(i)},onclick:()=>{n.editor?.update(()=>{eH([t.component.createNode(),IH()])})},startIcon:r,$$slots:{startIcon:!0}})}A()}var gfe=s((()=>{Z(),J(),$J(),dc(),SI(),nI()}));function _fe(e,t){let n=za();k(t,!0);let r=`link`,i=Lt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=hle().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(FZ,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=KV();if(SV(e)){let t=e.anchor.getNode(),n=(t instanceof NZ?t:fY(t,NZ))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{oI(e,`Enter`)&&z(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=KV()??qV()?.clone();if(SV(t)||(t=UV()),!z(c)){P(u,z(u).trim(),!0),P(u,z(u)||z(l),!0);let{anchor:e,focus:n}=t,r=pV(z(u)),i=r.getKey();eH([r]),e.set(i,z(u).length,`text`),n.set(i,0,`text`)}pU(t),e(void 0)})}),await $1(i.editor),i.editor.dispatchCommand(FZ,z(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand(lq,e=>(oI(e,aI()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};ri(()=>{i.editor&&_()});var v=N0(),y=I(v);{let e=e=>{tI(e,{get name(){return k1[r].icon}})},t=M(()=>Y(`_sui.text_editor.${k1[r].labelKey}`)),n=M(()=>!i.useRichText);bI(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=V(),n=I(t),r=e=>{{let t=M(()=>Y(`_sui.remove`));bI(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};W(n,e=>{z(s)!==`create`&&e(r)}),H(e,t)},t=M(()=>z(s)===`create`?Y(`_sui.text_editor.insert_link`):Y(`_sui.text_editor.update_link`)),r=M(()=>!z(l)),i=M(()=>z(s)===`create`?Y(`_sui.insert`):Y(`_sui.update`));qI(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){P(o,e,!0)},get value(){return z(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=M0(),i=I(r),a=F(i),o=F(a,!0);O(a);var s=L(a,2);{let e=M(()=>Y(`_sui.text_editor.url`));oL(s,{dir:`ltr`,get id(){return`${n}-url`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){P(l,e,!0)}})}O(i);var d=L(i,2),f=e=>{var t=j0(),r=F(t),i=F(r,!0);O(r);var a=L(r,2);{let e=M(()=>Y(`_sui.text_editor.text`));oL(a,{dir:`auto`,get id(){return`${n}-text`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){P(u,e,!0)}})}O(t),R(e=>{K(r,`for`,`${n}-text`),U(i,e)},[()=>Y(`_sui.text_editor.text`)]),H(e,t)};W(d,e=>{z(c)||e(f)}),R(e=>{K(a,`for`,`${n}-url`),U(o,e)},[()=>Y(`_sui.text_editor.url`)]),H(e,r)},$$slots:{footerExtra:!0,default:!0}})}H(e,v),A()}var j0,M0,N0,vfe=s((()=>{Z(),J(),LZ(),yY(),X(),cI(),$J(),dc(),SI(),tL(),nI(),dL(),L1(),e0(),j0=B(`<div role="none"><label> </label> <!></div>`),M0=B(`<div role="none"><label> </label> <!></div> <!>`,1),N0=B(`<!> <!>`,1)}));function yfe(e,t){k(t,!0);let n=Lt(`editorStore`);{let r=e=>{tI(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{YL(e,{children:(e,r)=>{var i=V();vo(I(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).createNode;eR(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{eH([a()()])})},startIcon:e=>{var t=V(),n=I(t),r=e=>{tI(e,{get name(){return i()}})};W(n,e=>{i()&&e(r)}),H(e,t)},$$slots:{startIcon:!0}})}),H(e,i)},$$slots:{default:!0}})},a=M(()=>!n.useRichText),o=M(()=>Y(`_sui.insert`));AI(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}A()}var bfe=s((()=>{Z(),J(),X(),$J(),dc(),nI(),jI(),oR(),$L()}));function xfe(e,t){k(t,!0);let n=Lt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await $1(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{aY(KV(),()=>jQ(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{aY(KV(),()=>IH())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(nQ,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(rQ,void 0),t.type===`blockquote`&&n.editor.update(()=>{aY(KV(),()=>DQ())}),t.type===`code-block`&&n.editor.update(()=>{aY(KV(),()=>KX())})};var a=V();lo(I(a),()=>z(r),e=>{{let n=e=>{tI(e,{get name(){return k1[t.type].icon}})},a=M(()=>Y(`_sui.text_editor.${k1[t.type].labelKey}`));sR(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),H(e,a),A()}var Sfe=s((()=>{Z(),J(),Iz(),xZ(),iQ(),JQ(),dY(),X(),$J(),dc(),nI(),lR(),L1(),e0()}));function Cfe(e,t){k(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1),i=Lt(`editorStore`),a=M(()=>i.config.components.find(({id:e})=>N1.includes(e))),o=M(()=>i.config.components.filter(({id:e})=>!N1.includes(e))),s=M(()=>vT([`paragraph`,...i.config.enabledButtons.filter(e=>M1.includes(e))])),c=M(()=>vT(i.config.enabledButtons.filter(e=>j1.includes(e))));{let t=M(()=>n()||r()),l=M(()=>Y(`_sui.text_editor.text_editor`));_0(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=I0(),r=I(n),l=e=>{{let t=e=>{{let t=M(()=>k1[i.selection.blockType??``]?.icon??`format_paragraph`);tI(e,{get name(){return z(t)}})}},n=e=>{{let t=M(()=>Y(`_sui.text_editor.text_style_options`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),16,()=>z(s),e=>e,(e,t)=>{xfe(e,{get type(){return t}})}),H(e,n)},$$slots:{default:!0}})}},r=M(()=>!i.useRichText),a=M(()=>Y(`_sui.text_editor.show_text_style_options`));AI(e,{get disabled(){return z(r)},get"aria-label"(){return z(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:t,popup:n,$$slots:{startIcon:!0,popup:!0}})}};W(r,e=>{z(s).length>1&&e(l)});var u=L(r,2),d=e=>{var t=P0(),n=I(t);MI(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);c0(r,{get disabled(){return z(e)}})}H(e,t)},f=e=>{var t=P0(),n=I(t),r=e=>{var t=P0(),n=I(t);MI(n,{orientation:`vertical`}),Ese(L(n,2),{children:(e,t)=>{var n=V();vo(I(n),16,()=>z(c),e=>e,(e,t)=>{var n=V(),r=I(n),i=e=>{_fe(e,{})},a=e=>{pfe(e,{get type(){return t}})};W(r,e=>{t===`link`?e(i):e(a,-1)}),H(e,n)}),H(e,n)},$$slots:{default:!0}}),H(e,t)};W(n,e=>{z(c).length&&e(r)});var s=L(n,2),l=e=>{var t=F0(),n=I(t);MI(n,{orientation:`vertical`});var r=L(n,2),i=e=>{hfe(e,{get component(){return z(a)}})};W(r,e=>{z(a)&&e(i)});var s=L(r,2),c=e=>{yfe(e,{get components(){return z(o)}})};W(s,e=>{z(o).length&&e(c)}),H(e,t)};W(s,e=>{i.config.components.length&&e(l)}),H(e,t)};W(u,e=>{i.selection.blockType===`code-block`?e(d):e(f,-1)});var p=L(u,2);PI(p,{flex:!0});var m=L(p,2),h=e=>{{let t=e=>{tI(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>Y(`_sui.text_editor.edit_in_markdown`));bI(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};W(m,e=>{i.config.modes.length>1&&e(h)}),H(e,n)},$$slots:{default:!0}})}A()}var P0,F0,I0,wfe=s((()=>{Z(),J(),X(),yT(),dc(),Ase(),SI(),NI(),RI(),nI(),jI(),$L(),L1(),d0(),mfe(),gfe(),vfe(),bfe(),Sfe(),x0(),P0=B(`<!> <!>`,1),F0=B(`<!> <!> <!>`,1),I0=B(`<!> <!> <!> <!>`,1)}));function Tfe(e,t){k(t,!0),G(e,z0);let n=q(t,`value`,15,``),r=q(t,`flex`,3,!1),i=q(t,`dir`,3,void 0),a=q(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=q(t,`buttons`,19,()=>[...j1,...M1]),s=q(t,`components`,19,()=>[]),c=q(t,`useMarkdownShortcuts`,3,!0),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`required`,3,!1),p=q(t,`invalid`,3,!1),m=ec(t,L0),h=o0();h.config={...h.config,modes:a(),enabledButtons:o(),components:s(),useMarkdownShortcuts:c()},Rt(`editorStore`,h),ri(()=>{if(!h.initialized)return;let e=n();Gi(()=>{h.inputValue=e})}),ri(()=>{if(!h.initialized)return;let e=h.inputValue;Gi(()=>{n()!==e&&n(e)})});var g=R0(),_=I(g);Cs(_,()=>({...m,role:`none`,class:`sui text-editor`,hidden:l(),[Es]:{flex:r()}}),void 0,void 0,void 0,`svelte-a9tslj`);var v=F(_);Cfe(v,{get disabled(){return u()},get readonly(){return d()}});var y=L(v,2);{let e=M(()=>!h.useRichText||l());t0(y,{get hidden(){return z(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());T0(b,{autoResize:!0,get flex(){return r()},get dir(){return i()},get hidden(){return z(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}})}O(_);var x=L(_,2),S=e=>{jz(e,{get show(){return h.showConverterError},set show(e){h.showConverterError=e},children:(e,t)=>{rI(e,{status:`error`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(x,e=>{h.showConverterError&&e(S)}),H(e,g),A()}var L0,R0,z0,Efe=s((()=>{Z(),J(),X(),dc(),iI(),A0(),Fz(),L1(),a0(),s0(),wfe(),L0=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`useMarkdownShortcuts`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),R0=B(`<div><!> <!> <!></div> <!>`,1),z0={hash:`svelte-a9tslj`,code:`.text-editor.svelte-a9tslj {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-a9tslj:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.text-editor.flex.svelte-a9tslj:not([hidden]) {display:block;}.text-editor.svelte-a9tslj .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-a9tslj .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 Dfe(e,t){let n=za();k(t,!0),G(e,H0);let r=q(t,`value`,15),i=q(t,`invalid`,15,!1),a=q(t,`flex`,3,!1),o=q(t,`min`,3,void 0),s=q(t,`max`,3,void 0),c=q(t,`step`,3,1),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`required`,3,!1),p=ec(t,B0),m=N(!1),h=N(``),g=M(()=>String(c()).split(`.`)[1]?.length||0),_=M(()=>typeof o()==`number`&&Number(z(h)||0)<=o()),v=M(()=>typeof s()==`number`&&Number(z(h)||0)>=s());ri(()=>{let e=String(r()??``);Gi(()=>{z(h)!==e&&P(h,e,!0)})}),ri(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),ri(()=>{z(m)&&i(f()&&(r()===void 0||z(h)===``)||z(h)!==void 0&&z(h)!==``&&(Number.isNaN(Number(z(h)))||typeof o()==`number`&&Number(z(h)||0)<o()||typeof s()==`number`&&Number(z(h)||0)>s()))});let y=()=>{z(_)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)-c()).toFixed(z(g)),!0)},b=()=>{z(v)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)+c()).toFixed(z(g)),!0)};var x=V0();let S;var C=F(x),w=F(C);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.increaseIcon),H(e,n)},a=e=>{tI(e,{name:`expand_less`})};W(r,e=>{t.increaseIcon?e(i):e(a,-1)}),H(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(v)),a=M(()=>Y(`_sui.number_input.increase`));bI(w,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var T=L(w,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.decreaseIcon),H(e,n)},a=e=>{tI(e,{name:`expand_more`})};W(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),H(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(_)),a=M(()=>Y(`_sui.number_input.decrease`));bI(T,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}O(C);var E=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>z(g)>0?`decimal`:`numeric`);oL(E,tc({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||P(m,!0)},oninput:()=>{z(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){P(h,e,!0)}}))}O(x),R(()=>{S=ds(x,1,`sui number-input ${t.class??``}`,`svelte-1c23wlz`,S,{flex:a(),disabled:u(),readonly:d()}),K(x,`hidden`,l())}),H(e,x),A()}var B0,V0,H0,Ofe=s((()=>{Z(),J(),X(),dc(),SI(),nI(),dL(),B0=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),V0=B(`<div role="none"><div role="none" class="buttons svelte-1c23wlz"><!> <!></div> <!></div>`),H0={hash:`svelte-1c23wlz`,code:`.number-input.svelte-1c23wlz {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-1c23wlz:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-1c23wlz :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-1c23wlz :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-1c23wlz :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-1c23wlz :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-1c23wlz .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-1c23wlz {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-1c23wlz button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-1c23wlz 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-1c23wlz 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-1c23wlz button .icon {font-size:20px;}`}}));function U0(e,t){let n=za();k(t,!0),G(e,K0);let r=q(t,`value`,15),i=q(t,`flex`,3,!1),a=q(t,`monospace`,3,!0),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=ec(t,W0),f=N(void 0),p=N(!1);var m=G0();let h;var g=F(m);oL(g,tc({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return z(f)},set element(e){P(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=L(g,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.visibilityIcon),H(e,n)},a=e=>{{let t=M(()=>z(p)?`visibility_off`:`visibility`);tI(e,{get name(){return z(t)}})}};W(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),H(e,n)},r=M(()=>s()||c()),i=M(()=>Y(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));bI(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}O(m),R(()=>{h=ds(m,1,`sui secret-input ${t.class??``}`,`svelte-t0iuxy`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),K(m,`hidden`,o())}),H(e,m),A()}var W0,G0,K0,kfe=s((()=>{Z(),J(),X(),SI(),nI(),dL(),W0=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),G0=B(`<div role="none"><!> <!></div>`),K0={hash:`svelte-t0iuxy`,code:`.secret-input.svelte-t0iuxy {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-t0iuxy:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-t0iuxy input {-webkit-text-security:none;}.secret-input.svelte-t0iuxy .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-t0iuxy input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-t0iuxy 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-t0iuxy 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-t0iuxy button .icon {font-size:var(--sui-font-size-xx-large);}`}}));function Afe(e,t){k(t,!0),G(e,Q0);let n=q(t,`orientation`,3,`horizontal`),r=ec(t,q0),i=[`https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap`,`https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block`],a=N(!1);lc(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{P(a,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var o=Z0();Xo(`sl7gn1`,e=>{var t=Y0(),n=I(t);vo(L(n,8),16,()=>i,e=>e,(e,t)=>{var n=J0(),r=I(n),i=L(r,2);R(()=>{K(r,`href`,t),K(i,`href`,t)}),H(e,n)}),R(e=>K(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),H(e,t)});var s=I(o),c=e=>{var t=X0();ms(t,``,{},{opacity:`0`}),H(e,t)};W(s,e=>{z(a)||e(c)});var l=L(s,2),u=e=>e.preventDefault(),d=e=>e.preventDefault(),f=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};Cs(l,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:u,ondrop:d,oncontextmenu:f}),void 0,void 0,void 0,`svelte-sl7gn1`),Ao(F(l),()=>t.children??D),O(l),H(e,o),A()}var q0,J0,Y0,X0,Z0,Q0,jfe=s((()=>{Z(),J(),dc(),q0=new Set([`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),J0=B(`<link rel="preload" as="style"/> <link rel="stylesheet"/>`,1),Y0=B(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <link rel="preconnect" href="https://fonts.googleapis.com"/> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/> <!>`,1),X0=B(`<div class="font-loader svelte-sl7gn1" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div>`),Z0=B(`<!> <div><!></div>`,1),Q0={hash:`svelte-sl7gn1`,code:`:root,
: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(
    var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation)
      var(--sui-alert-foreground-color-lightness)
  );--sui-warning-foreground-color: hsl(
    var(--sui-warning-color-hue) var(--sui-alert-foreground-color-saturation)
      var(--sui-alert-foreground-color-lightness)
  );--sui-info-foreground-color: hsl(
    var(--sui-info-color-hue) var(--sui-alert-foreground-color-saturation)
      var(--sui-alert-foreground-color-lightness)
  );--sui-success-foreground-color: hsl(
    var(--sui-success-color-hue) var(--sui-alert-foreground-color-saturation)
      var(--sui-alert-foreground-color-lightness)
  );--sui-hover-background-color: hsl(var(--sui-background-color-5-hsl) / 35%);--sui-selected-background-color: hsl(var(--sui-background-color-5-hsl) / 75%);--sui-active-background-color: hsl(var(--sui-background-color-5-hsl) / 100%);--sui-content-background-color: hsl(var(--sui-background-color-1-hsl));--sui-code-background-color: hsl(var(--sui-background-color-3-hsl));--sui-primary-background-color: hsl(var(--sui-background-color-2-hsl));--sui-primary-background-color-translucent: hsl(var(--sui-background-color-2-hsl) / 80%);--sui-secondary-background-color: hsl(var(--sui-background-color-3-hsl));--sui-secondary-background-color-translucent: hsl(var(--sui-background-color-3-hsl) / 80%);--sui-tertiary-background-color: hsl(var(--sui-background-color-4-hsl));--sui-tertiary-background-color-translucent: hsl(var(--sui-background-color-4-hsl) / 80%);--sui-disabled-background-color: hsl(var(--sui-background-color-4-hsl));--sui-error-background-color: hsl(
    var(--sui-error-color-hue) var(--sui-alert-background-color-saturation)
      var(--sui-alert-background-color-lightness)
  );--sui-warning-background-color: hsl(
    var(--sui-warning-color-hue) var(--sui-alert-background-color-saturation)
      var(--sui-alert-background-color-lightness)
  );--sui-info-background-color: hsl(
    var(--sui-info-color-hue) var(--sui-alert-background-color-saturation)
      var(--sui-alert-background-color-lightness)
  );--sui-success-background-color: hsl(
    var(--sui-success-color-hue) var(--sui-alert-background-color-saturation)
      var(--sui-alert-background-color-lightness)
  );--sui-focus-ring-width: 2px;--sui-focus-ring-color: var(--sui-primary-accent-color-translucent);--sui-primary-border-color: hsl(var(--sui-border-color-2-hsl));--sui-secondary-border-color: hsl(var(--sui-border-color-3-hsl));--sui-error-border-color: hsl(
    var(--sui-error-color-hue) var(--sui-alert-border-color-saturation)
      var(--sui-alert-border-color-lightness)
  );--sui-warning-border-color: hsl(
    var(--sui-warning-color-hue) var(--sui-alert-border-color-saturation)
      var(--sui-alert-border-color-lightness)
  );--sui-info-border-color: hsl(
    var(--sui-info-color-hue) var(--sui-alert-border-color-saturation)
      var(--sui-alert-border-color-lightness)
  );--sui-success-border-color: hsl(
    var(--sui-success-color-hue) var(--sui-alert-border-color-saturation)
      var(--sui-alert-border-color-lightness)
  );--sui-popup-shadow-color: hsl(var(--sui-shadow-color) / 40%);--sui-popup-backdrop-color: hsl(var(--sui-shadow-color) / 40%);--sui-font-family-default: "Merriweather Sans", sans-serif;--sui-font-size-xxx-large: 24px;--sui-font-size-xx-large: 20px;--sui-font-size-x-large: 18px;--sui-font-size-large: 16px;--sui-font-size-default: 14px;--sui-font-size-small: 12px;--sui-font-size-x-small: 10px;--sui-font-weight-normal: 300;--sui-font-weight-bold: 600;--sui-font-family-monospace: "Noto Sans Mono", monospace;--sui-font-size-monospace: 0.95em;--sui-line-height-default: 1.25;--sui-line-height-compact: 1.5;--sui-line-height-comfortable: 1.75;--sui-word-spacing-normal: 1px;--sui-heading-margin: 0;--sui-heading-font-family: var(--sui-font-family-default);--sui-heading-font-weight: var(--sui-font-weight-bold);--sui-heading-line-height: var(--sui-line-height-default);--sui-paragraph-margin: 1.75em;--sui-control-small-border-width: 1px;--sui-control-small-border-radius: calc(var(--sui-control-small-height) / 8);--sui-control-small-padding: 0 calc((var(--sui-control-small-height) / 5));--sui-control-small-height: 24px;--sui-control-medium-border-width: 1px;--sui-control-medium-border-radius: calc(var(--sui-control-medium-height) / 8);--sui-control-medium-padding: 0 calc((var(--sui-control-medium-height) / 4));--sui-control-medium-height: 32px;--sui-control-large-border-width: 1px;--sui-control-large-border-radius: calc(var(--sui-control-large-height) / 8);--sui-control-large-padding: 0 calc((var(--sui-control-large-height) / 3));--sui-control-large-height: 40px;--sui-control-border-color: hsl(var(--sui-border-color-2-hsl));--sui-control-foreground-color: var(--sui-primary-foreground-color);--sui-control-background-color: hsl(var(--sui-background-color-4-hsl));--sui-control-font-family: var(--sui-font-family-default);--sui-control-font-size: var(--sui-font-size-default);--sui-control-line-height: var(--sui-line-height-compact);--sui-button-small-border-radius: var(--sui-control-small-border-radius);--sui-button-small-padding: var(--sui-control-small-padding);--sui-button-small-height: var(--sui-control-small-height);--sui-button-medium-border-radius: var(--sui-control-medium-border-radius);--sui-button-medium-padding: var(--sui-control-medium-padding);--sui-button-medium-height: var(--sui-control-medium-height);--sui-button-large-border-radius: var(--sui-control-large-border-radius);--sui-button-large-padding: var(--sui-control-large-padding);--sui-button-large-height: var(--sui-control-large-height);--sui-button-border-color: var(--sui-control-border-color);--sui-button-background-color: var(--sui-control-background-color);--sui-checkbox-border-radius: var(--sui-control-medium-border-radius);--sui-checkbox-height: 20px;--sui-checkbox-border-color: hsl(var(--sui-border-color-1-hsl));--sui-checkbox-background-color: var(--sui-control-background-color);--sui-option-border-radius: var(--sui-control-medium-border-radius);--sui-option-padding: calc((var(--sui-control-medium-height) / 6))
    calc((var(--sui-control-medium-height) / 5));--sui-option-height: var(--sui-control-medium-height);--sui-listbox-border-radius: var(--sui-control-medium-border-radius);--sui-listbox-border-color: var(--sui-control-border-color);--sui-listbox-foreground-color: var(--sui-control-foreground-color);--sui-listbox-background-color: hsl(var(--sui-background-color-1-hsl));--sui-textbox-border-radius: var(--sui-control-medium-border-radius);--sui-textbox-height: var(--sui-control-medium-height);--sui-textbox-border-color: var(--sui-control-border-color);--sui-textbox-foreground-color: var(--sui-control-foreground-color);--sui-textbox-background-color: hsl(var(--sui-background-color-1-hsl));--sui-textbox-font-family: var(--sui-font-family-default);--sui-textbox-font-size: var(--sui-font-size-default);--sui-textbox-singleline-padding: 0 8px;--sui-textbox-singleline-min-width: 240px;--sui-textbox-singleline-line-height: var(--sui-line-height-compact);--sui-textbox-multiline-padding: 16px;--sui-textbox-multiline-min-width: 480px;--sui-textbox-multiline-line-height: var(--sui-line-height-comfortable);--sui-tab-height: var(--sui-control-medium-height);--sui-tab-small-height: var(--sui-control-small-height);--sui-tab-medium-height: var(--sui-control-medium-height);--sui-tab-large-height: var(--sui-control-large-height);--sui-primary-toolbar-size: 56px;--sui-secondary-toolbar-size: 48px;--sui-bottom-navigation-height: var(--sui-primary-toolbar-size);--sui-primary-row-height: 56px;--sui-secondary-row-height: 40px;}
@media (pointer: coarse) {:root,
  :host {--sui-control-small-height: 32px;--sui-control-medium-height: 40px;--sui-control-large-height: 48px;--sui-checkbox-height: 24px;--sui-secondary-row-height: 48px;}
}
@media (prefers-reduced-transparency) {:root,
  :host {--sui-primary-background-color-translucent: hsl(var(--sui-background-color-2-hsl));--sui-secondary-background-color-translucent: hsl(var(--sui-background-color-3-hsl));--sui-tertiary-background-color-translucent: hsl(var(--sui-background-color-4-hsl));}
}:root[data-theme=light],
:host[data-theme=light] {color-scheme:light;--sui-foreground-color-1-hsl: var(--sui-base-hue) 5% 5%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 5% 25%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 5% 35%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 5% 45%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 5% 65%;--sui-background-color-1-hsl: var(--sui-base-hue) 5% 100%;--sui-background-color-2-hsl: var(--sui-base-hue) 5% 98%;--sui-background-color-3-hsl: var(--sui-base-hue) 5% 95%;--sui-background-color-4-hsl: var(--sui-base-hue) 5% 92%;--sui-background-color-5-hsl: var(--sui-base-hue) 5% 84%;--sui-border-color-1-hsl: var(--sui-base-hue) 5% 60%;--sui-border-color-2-hsl: var(--sui-base-hue) 5% 86%;--sui-border-color-3-hsl: var(--sui-base-hue) 5% 90%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 80% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 80% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 25%;--sui-alert-background-color-saturation: 65%;--sui-alert-background-color-lightness: 90%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 68%;}:root[data-theme=dark],
:host[data-theme=dark] {color-scheme:dark;--sui-foreground-color-1-hsl: var(--sui-base-hue) 10% 95%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 10% 75%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 10% 65%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 10% 55%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 10% 35%;--sui-background-color-1-hsl: var(--sui-base-hue) 10% 8%;--sui-background-color-2-hsl: var(--sui-base-hue) 10% 10%;--sui-background-color-3-hsl: var(--sui-base-hue) 10% 13%;--sui-background-color-4-hsl: var(--sui-base-hue) 10% 16%;--sui-background-color-5-hsl: var(--sui-base-hue) 10% 26%;--sui-border-color-1-hsl: var(--sui-base-hue) 10% 40%;--sui-border-color-2-hsl: var(--sui-base-hue) 10% 24%;--sui-border-color-3-hsl: var(--sui-base-hue) 10% 20%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 100% 60%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 100% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 100% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 100% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 75%;--sui-alert-background-color-saturation: 40%;--sui-alert-background-color-lightness: 10%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 38%;}
@media (prefers-color-scheme: light) {:root:not([data-theme]),
  :host:not([data-theme]) {color-scheme:light;--sui-foreground-color-1-hsl: var(--sui-base-hue) 5% 5%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 5% 25%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 5% 35%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 5% 45%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 5% 65%;--sui-background-color-1-hsl: var(--sui-base-hue) 5% 100%;--sui-background-color-2-hsl: var(--sui-base-hue) 5% 98%;--sui-background-color-3-hsl: var(--sui-base-hue) 5% 95%;--sui-background-color-4-hsl: var(--sui-base-hue) 5% 92%;--sui-background-color-5-hsl: var(--sui-base-hue) 5% 84%;--sui-border-color-1-hsl: var(--sui-base-hue) 5% 60%;--sui-border-color-2-hsl: var(--sui-base-hue) 5% 86%;--sui-border-color-3-hsl: var(--sui-base-hue) 5% 90%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 80% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 80% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 25%;--sui-alert-background-color-saturation: 65%;--sui-alert-background-color-lightness: 90%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 68%;}
}
@media (prefers-color-scheme: dark) {:root:not([data-theme]),
  :host:not([data-theme]) {color-scheme:dark;--sui-foreground-color-1-hsl: var(--sui-base-hue) 10% 95%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 10% 75%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 10% 65%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 10% 55%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 10% 35%;--sui-background-color-1-hsl: var(--sui-base-hue) 10% 8%;--sui-background-color-2-hsl: var(--sui-base-hue) 10% 10%;--sui-background-color-3-hsl: var(--sui-base-hue) 10% 13%;--sui-background-color-4-hsl: var(--sui-base-hue) 10% 16%;--sui-background-color-5-hsl: var(--sui-base-hue) 10% 26%;--sui-border-color-1-hsl: var(--sui-base-hue) 10% 40%;--sui-border-color-2-hsl: var(--sui-base-hue) 10% 24%;--sui-border-color-3-hsl: var(--sui-base-hue) 10% 20%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 100% 60%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 100% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 100% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 100% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 75%;--sui-alert-background-color-saturation: 40%;--sui-alert-background-color-lightness: 10%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 38%;}
}.material-symbols-outlined {font-variation-settings:"FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;}*,
::before,
::after {overflow-anchor:none;scroll-behavior:smooth;box-sizing:border-box;outline-offset:0px;outline-width:var(--sui-focus-ring-width) !important;outline-style:solid;outline-color:transparent;border-width:0;border-style:solid;vertical-align:top;}
@media (prefers-reduced-motion) {*,
  ::before,
  ::after {scroll-behavior:auto;transition-duration:1ms !important;}
}::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, 32px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 28px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 24px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 20px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 16px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 12px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-sl7gn1 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-sl7gn1 {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-sl7gn1 {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-sl7gn1 {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-sl7gn1 {display:flex;flex-direction:column;overflow:hidden;}`}}));function $0(e,t){G(e,t2);let n=q(t,`children`,3,void 0);var r=e2();Ao(F(r),()=>n()??D),O(r),H(e,r)}var e2,t2,Mfe=s((()=>{Z(),J(),e2=B(`<div role="none" class="sui empty-state svelte-jy9f3a"><!></div>`),t2={hash:`svelte-jy9f3a`,code:`.empty-state.svelte-jy9f3a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}}));function n2(e,t){G(e,a2);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=ec(t,r2);var o=i2();Cs(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-9cu6ec`);var s=F(o);Ao(F(s),()=>t.children??D),O(s),O(o),R(()=>s.inert=r()),H(e,o)}var r2,i2,a2,Nfe=s((()=>{Z(),J(),r2=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`]),i2=B(`<div><div role="none" class="inner svelte-9cu6ec"><!></div></div>`),a2={hash:`svelte-9cu6ec`,code:`.inner.svelte-9cu6ec {display:contents;}`}})),o2,Pfe=s((()=>{o2={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`}}})),s2,Ffe=s((()=>{s2={ok:`OK`,cancel:`キャンセル`,close:`閉じる`,clear:`クリア`,insert:`挿入`,update:`更新`,remove:`削除`,collapse:`折り畳む`,expand:`広げる`,dismiss:`閉じる`,calendar:{year:`年`,previous_decade:`前の 10 年`,next_decade:`次の 10 年`,month:`月`,previous_month:`前月`,next_month:`翌月`,today:`今日`},split_button:{x_options:`{$name} オプション`,more_options:`その他のオプション`},combobox:{select_an_option:`オプションを選択…`,filter_options:`オプションを絞り込み`,no_matching_options:`一致するオプションは見つかりませんでした`},number_input:{increase:`増やす`,decrease:`減らす`},password_input:{show_password:`パスワードを表示`,hide_password:`パスワードを隠す`},secret_input:{show_secret:`シークレットを表示`,hide_secret:`シークレットを隠す`},select_tags:{selected_options:`選択済みのオプション`,remove_x:`{$name} を削除`},text_editor:{text_editor:`テキストエディター`,code_editor:`コードエディター`,text_style_options:`テキストスタイルオプション`,show_text_style_options:`テキストスタイルオプションを表示`,paragraph:`段落`,heading_1:`見出し 1`,heading_2:`見出し 2`,heading_3:`見出し 3`,heading_4:`見出し 4`,heading_5:`見出し 5`,heading_6:`見出し 6`,bulleted_list:`番号なしリスト`,numbered_list:`番号付きリスト`,blockquote:`ブロック引用`,code_block:`コードブロック`,bold:`太字`,italic:`斜体`,strikethrough:`取り消し線`,code:`コード`,link:`リンク`,insert_link:`リンクを挿入`,update_link:`リンクを更新`,text:`テキスト`,url:`URL`,edit_in_markdown:`マークダウンで編集`,converter_error:`リッチテキストモードを有効にできませんでした。プレーンテキストエディターを使用してください。`,language:`言語`,plain_text:`プレーンテキスト`}}})),c2,l2,Ife=s((()=>{Pfe(),Ffe(),c2=Object.assign({"../locales/en.yaml":o2,"../locales/ja.yaml":s2}),l2=Object.fromEntries(Object.entries(c2).map(([e,t])=>[e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,t]))})),Lfe=s((()=>{})),$=s((()=>{iI(),bse(),Tse(),Ase(),SI(),Pse(),Hse(),Wse(),Zse(),Z(),J(),X(),Nh(),NI(),RI(),nI(),nce(),rce(),ice(),ace(),tL(),oce(),_I(),sce(),cce(),lce(),uce(),fce(),RL(),pce(),JL(),jI(),lR(),mce(),oR(),$L(),gce(),_ce(),vce(),yce(),bce(),xce(),Sce(),ZR(),Ace(),ez(),Mce(),Nce(),Pce(),Ice(),Rce(),Bce(),Hce(),Wce(),ffe(),Efe(),Ofe(),dL(),WR(),kfe(),A0(),Fz(),g0(),uI(),jfe(),Mfe(),Nfe(),Ife(),Lfe()})),u2,d2,f2,p2,m2,h2=s((()=>{sT(),Ip(),u2=u(CO(),1),eN(),d2=(e,t,n,r)=>{let i=$M(t),a={};return e.forEach(e=>{let t=n(e),o=t==null?r:i?String(t).match(i)?.[0]??r:String(t);o in a||(a[o]=[]),a[o].push(e)}),Object.entries(a).sort(([e],[t])=>Fp(e,t))},f2=(e,t,n)=>n?n.test(String(e??``)):e===t,p2=(e,t,n,r)=>{let i=e.map(e=>({item:e,key:t(e)}));return i.sort(({key:e},{key:t})=>n?Fp(e,t):e-t),r===`descending`&&i.reverse(),e.splice(0,e.length,...i.map(({item:e})=>e)),e},m2=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new iT(r,`ui-settings`):null,a=await i?.get(t)??{};n.set(a);let o=a;n.subscribe(e=>{(0,u2.default)(e,o)||(o=e,(async()=>{try{await i?.set(t,e)}catch{}})())})}})),g2,Rfe=s((()=>{AT(),h2(),eN(),g2=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>kT(e)===n);let r=$M(n);return e.filter(e=>{let i=e[t];return f2(i,n,r)})}})),_2,zfe=s((()=>{X(),h2(),_2=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=Y(`other`);return Object.fromEntries(d2(e,n,e=>e[t],r))}})),v2,y2,b2,Bfe=s((()=>{v2=u(CO(),1),Zp(),fm(),M2(),h2(),y2=ln(),b2=async({repository:e})=>{await m2(e,`assets-view`,y2),om.subscribe(e=>{let t=dn(y2)?.[e?.internalPath??`*`]??structuredClone(O2);(0,v2.default)(t,dn(k2))||k2.set(t)}),k2.subscribe(e=>{let t=dn(om)?.internalPath??`*`;(0,v2.default)(e,dn(y2)?.[t]??{})||y2.update(n=>({...n,[t]:e}))})}})),x2,S2,Vfe=s((()=>{h2(),x2=(e,t)=>{let{commitAuthor:{name:n,login:r,email:i}={},commitDate:a}=e;return t===`commit_author`?n||r||i:t===`commit_date`?a:t===`name`?e.name.split(`.`)[0]:e[t]??``},S2=(e,{key:t,order:n}={})=>{if(!t||!n)return e;let r=[...e],i={commit_author:String,commit_date:Date}[t]||r[0]?.[t]?.constructor||String;return p2(r,e=>{let n=x2(e,t);return i===String?n??``:Number(n??0)},i===String,n),r}})),C2,w2,T2,E2,D2,O2,k2,A2,j2,M2=s((()=>{X(),C2=u(CO(),1),Zp(),JF(),fm(),Rfe(),zfe(),Bfe(),Vfe(),iA(),Sw(),DC(),OO(),w2=ln(!1),T2=ln(!1),E2=un([zF],([e],t)=>{t(!!e.files.length)}),D2=({label:e,collectionName:t,fileName:n,internalPath:r})=>{if(e)return e;if(t===void 0)return Y(r===void 0?`all_assets`:`global_assets`);let i=yw(t),a=i?bw(i):t;if(!n)return a;let o=i?SC(i,n):void 0;return`${a} › ${o?CC(o):n}`},O2={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},k2=ln({type:`grid`,showInfo:!0}),A2=un([MF,om],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,C2.default)(e,t))):n(e?[...e]:[])}),j2=un([A2,k2],([e,t],n)=>{let r=[...e];r=S2(r,t.sort),r=g2(r,t.filter);let i=_2(r,t.group);(0,C2.default)(dn(j2),i)||n(i)}),nA.subscribe(e=>{e&&!dn(y2)&&b2(e)}),A2.subscribe(e=>{IF.set([]),DO.devModeEnabled&&console.info(`listedAssets`,e)})})),N2,P2,F2,I2,L2,R2,z2,B2=s((()=>{Zp(),N2=ln(!1),P2=ln(!1),F2=ln({show:!1,multiple:!1}),I2=ln({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),L2=ln(null),R2=ln(null),z2=ln()})),V2,H2=s((()=>{V2=(e,{noopener:t=!0}={})=>{if(!e)return null;let n=t?`noopener,noreferrer`:``;return window.open(e,`_blank`,n)}})),U2,W2,G2,K2,q2,J2,Y2,X2,Z2,Q2,$2=s((()=>{rT(),dc(),Zp(),M2(),TF(),B2(),H2(),U2=un([N2,w2],([e,t])=>e||t),W2=ln(``),G2=ln(``),K2=(e=window.location.href)=>{let{origin:t,hash:n}=new URL(e),{pathname:r,searchParams:i}=new URL(`${t}${n.substring(1)}`);return{path:decodeURIComponent(r),params:Object.fromEntries([...new Set(i.keys())].map(e=>[e,i.getAll(e).join(`,`)]))}},q2=null,J2=(e,t)=>{if(!document.startViewTransition||q2){t();return}let n={types:[e],update:async()=>{t(),await nT(50),await new Promise(e=>{er(()=>{e(void 0)})})}};try{q2=document.startViewTransition(n),q2.finished.finally(()=>{q2=null})}catch{t()}},Y2=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=K2(i).path,s=K2(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;J2(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},X2=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=K2();if(a===e&&!Object.keys(t).length&&!n)return;let{origin:o,pathname:s,hash:c}=window.location,l=`${o}${s}${c}`,u=`${o}${s}#${e}`,d=[{...t,from:l},``,u];n?window.history.replaceState(...d):window.history.pushState(...d),r&&J2(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},Z2=(e,t={})=>{let n=`backwards`;if(window.navigation?.currentEntry){let{index:r}=window.navigation.currentEntry,{sameDocument:i,url:a}=window.navigation.entries()[r-1]??{};i&&a&&K2(a).path===e?J2(n,()=>{window.navigation.back()}):X2(e,{...t,transitionType:n});return}window.history.state?.from?J2(n,()=>{window.history.back()}):X2(e,{...t,transitionType:n})},Q2=()=>{let{display_url:e,_siteURL:t}=dn(bF);V2(e||t||`/`)}})),e4,t4,n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4=s((()=>{J(),X(),p(),sT(),Zp(),$2(),iA(),TF(),yC(),gD(),OO(),e4=/^\/signin\/(?<encodedData>.+)/,t4=Nr({signInError:{message:``,context:`authentication`},unauthenticated:!0,signingIn:!1}),n4=async()=>{await oT.set(`sveltia-cms.user`,{}),hD.account=void 0,t4.unauthenticated=!0},r4=async e=>{(typeof e?.cause?.status==`number`||e?.message===`Not a collaborator of the repository`)&&await n4()},i4=()=>{t4.signInError={message:``,context:`authentication`}},a4=(e,t=`authentication`)=>{let n=e.cause?.message||Y(`unexpected_error`);e.name===`NotFoundError`&&(n=Y(`sign_in_error.not_project_root`)),e.name===`AbortError`&&(n=Y(dn(tA)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),t4.signInError={message:n,context:t},console.error(e.name,e.message,e.cause)},o4=()=>{let{path:e}=K2(),{encodedData:t}=e.match(e4)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};X2(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));d(e)&&typeof e.token==`string`&&(n={token:e.token},d(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},s4=async()=>{let e=await oT.get(`sveltia-cms.user`)||await oT.get(`decap-cms-user`)||await oT.get(`netlify-cms-user`);return d(e)&&typeof e.backendName==`string`?e:void 0},c4=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:dn(bF).backend.name;return tA.set(t),dn(nA)},l4=async()=>{i4();let e,t;if({_user:e,copiedPrefs:t}=o4(),e??=await s4(),!e)return;let n=c4(e);if(e&&n){hD.account=e;let{token:t,refreshToken:r}=e;t4.signingIn=!0;try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,hD.account=void 0}}if(t4.signingIn=!1,t4.unauthenticated=!e,!(!e||!n)){hD.account=e,t&&Object.assign(DO,t);try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?t4.unauthenticated=!0:a4(e,`dataFetch`),await r4(e)}}},u4=async(e,t)=>{i4(),tA.set(e);let n=dn(nA);if(!n)return;let r;t4.signingIn=!0;try{r=await n.signIn({token:t,auto:!1})}catch(e){t4.signingIn=!1,t4.unauthenticated=!0,t&&e.cause?.status===401?a4(Error(`Invalid token`,{cause:{message:Y(`sign_in_error.invalid_token`)}})):a4(e);return}if(t4.signingIn=!1,t4.unauthenticated=!r,r){hD.account=r;try{await n.fetchFiles()}catch(e){a4(e,`dataFetch`),await r4(e)}}},d4=async()=>{await dn(nA)?.signOut(),await n4(),tA.set(void 0),dC.set(!1);let e=dn(bF)?.logout_redirect_url;e&&(window.location.href=e)}}));function p4(e,t){k(t,!0),G(e,x4);let n=()=>j(bF,`$cmsConfig`,r),[r,i]=hn(),a=N(!1),o=N(``),s=M(()=>n()?.backend),c=M(()=>z(s).name),l=M(()=>z(c)?Zk[z(c)]:null),u=M(()=>z(c)===`test-repo`),d=M(()=>z(u)?void 0:z(s)?.repo?.split(`/`).pop()),f=M(()=>AE.isLocalHost&&!z(u)),p=M(()=>z(o).trim()),m=M(()=>z(c)===`gitea`&&z(s).base_url===`https://codeberg.org`?`Codeberg`:z(l)?.label),h=M(()=>!z(u)&&z(s).auth_methods?.includes(`token`)===!1),g=M(()=>!z(u)&&z(s).auth_methods?.includes(`oauth`)===!1),_=M(()=>z(c)===`gitea`&&!z(s).app_id);lc(()=>{t4.signInError.message||l4()});var v=b4(),y=I(v),b=F(y),x=e=>{var t=m4(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`signing_in`)]),H(e,t)},S=e=>{var t=_4(),n=I(t),r=e=>{var t=_4(),n=I(t);{let e=M(()=>Y(`work_with_local_repo`)),t=M(()=>!AE.isLocalBackendSupported);bI(n,{variant:`primary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{await u4(`local`)}})}var r=L(n,2),i=e=>{var t=h4(),n=F(t),r=e=>{var t=V();Eo(I(t),()=>QN(Y(`local_workflow.disabled`),`https://sveltiacms.app/en/docs/workflows/local#enabling-file-system-access-api-in-brave`)),H(e,t)},i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`local_workflow.unsupported_browser`)]),H(e,t)};W(n,e=>{AE.isBrave?e(r):e(i,-1)}),O(t),H(e,t)},a=e=>{var t=g4(),n=F(t),r=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`work_with_local_repo_description`,{values:{repo:z(d)}})]),H(e,t)},i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`work_with_local_repo_description_no_repo`)]),H(e,t)};W(n,e=>{z(d)?e(r):e(i,-1)}),O(t),H(e,t)};W(r,e=>{AE.isLocalBackendSupported?t4.signInError.message||e(a,1):e(i)}),PI(L(r,2),{}),H(e,t)};W(n,e=>{z(f)&&e(r)});var i=L(n,2),o=e=>{{let t=M(()=>z(f)?`secondary`:`primary`),n=M(()=>z(u)?Y(`work_with_test_repo`):Y(`sign_in_with_x`,{values:{service:z(m)}}));bI(e,{get variant(){return z(t)},get label(){return z(n)},get disabled(){return z(_)},onclick:async()=>{await u4(z(c))}})}};W(i,e=>{z(g)||e(o)});var s=L(i,2),l=e=>{{let t=M(()=>Y(`sign_in_using_access_token`,{values:{service:z(m)}}));bI(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{P(a,!0)}})}};W(s,e=>{!z(u)&&!z(h)&&e(l)}),H(e,t)};W(b,e=>{t4.signingIn?e(x):z(l)&&e(S,1)});var C=L(b,2),w=e=>{var t=v4(),n=F(t);tI(n,{name:`error`});var r=L(n);O(t),R(()=>U(r,` ${t4.signInError.message??``}`)),H(e,t)};W(C,e=>{t4.signInError.message&&t4.signInError.context===`authentication`&&e(w)}),O(y);var T=L(y,2);{let e=M(()=>Y(`sign_in_using_access_token`)),t=M(()=>({spellcheck:!1,"aria-label":Y(`personal_access_token`)})),n=M(()=>Y(`sign_in`)),r=M(()=>!z(p));fL(T,{get title(){return z(e)},get textboxAttrs(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:()=>{u4(z(c),z(p))},onkeydown:e=>{!e.isComposing&&e.key===`Enter`&&z(p)&&(e.preventDefault(),P(a,!1),u4(z(c),z(p)))},get open(){return z(a)},set open(e){P(a,e,!0)},get value(){return z(o)},set value(e){P(o,e,!0)},children:(e,t)=>{gt();var n=y4(),r=I(n),i=L(r),a=e=>{var t=V();Eo(I(t),()=>QN(Y(`sign_in_using_access_token_link`,{values:{service:z(m)}}),z(l).repository.tokenPageURL)),H(e,t)};W(i,e=>{z(l)?.repository?.tokenPageURL&&e(a)}),R(e=>U(r,`${e??``} `),[()=>Y(`sign_in_using_access_token_description`)]),H(e,n)},$$slots:{default:!0}})}H(e,v),A(),i()}var m4,h4,g4,_4,v4,y4,b4,x4,Hfe=s((()=>{Z(),J(),X(),$(),dc(),iA(),TF(),f4(),jE(),$N(),m4=B(`<div role="alert" class="message svelte-1ff54ya"> </div>`),h4=B(`<div role="alert" class="svelte-1ff54ya"><!></div>`),g4=B(`<div role="none"><!></div>`),_4=B(`<!> <!> <!>`,1),v4=B(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),y4=B(` <!>`,1),b4=B(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),x4={hash:`svelte-1ff54ya`,code:`.buttons.svelte-1ff54ya {display:flex;flex-direction:column;align-items:center;gap:12px;.button {width:320px;}}[role='alert'].svelte-1ff54ya {&.iconic {display:flex;align-items:center;gap:8px;}&.error {color:var(--sui-error-foreground-color);}}`}})),S4,Ufe=s((()=>{S4=`<svg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="400" x2="400" y1="0" y2="800"><stop offset="0" stop-color="#f0980b"/><stop offset="1" stop-color="#ff1d00"/></linearGradient><clipPath id="b"><rect height="800" rx="80" width="800"/></clipPath><rect fill="url(#a)" height="800" rx="80" width="800"/><g style="clip-path:url(#b);fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:180"><path d="m320-80-200 320 200 320-200 320"/><path d="m400 240 200 320 200-320"/></g></svg>`})),C4,w4,T4,E4,D4,O4,k4,A4,j4,M4=s((()=>{Yp(),gT(),Zp(),Ufe(),TF(),TM(),C4=/^data:(image\/[a-zA-Z0-9.+-]+);base64,/,w4=`Sveltia CMS`,T4=`data:image/svg+xml;base64,${btoa(S4)}`,E4=un([bF],([e])=>e?.app_title||`Sveltia CMS`),D4=un([bF],([e])=>e?.logo?.src||e?.logo_url||T4),O4=un(D4,e=>{let t=e.match(C4);return t?t[1]:hT.getType(e)??void 0}),k4=async(e,t)=>`data:image/webp;base64,${await Kp(await CM(e,t))}`,A4=un([D4],([e],t)=>{(async()=>{try{let n=await fetch(e);if(!n.ok)throw Error(`Failed to fetch logo`);let r=await n.blob(),[i,a]=await Promise.all([k4(r,{...yM,width:192,height:192}),k4(r,yM)]);t({small:i,large:a})}catch{t(void 0)}})()}),j4=un([E4,A4],([e,t])=>{if(!t)return;let{origin:n,pathname:r}=window.location,i={name:e,short_name:e,start_url:`${n}${r}`,display:`standalone`,icons:[{src:t.small,sizes:`192x192`,type:`image/webp`},{src:t.large,sizes:`512x512`,type:`image/webp`}]},a=new Blob([JSON.stringify(i)],{type:`application/manifest+json`});return URL.createObjectURL(a)})}));function Wfe(e,t){k(t,!0),G(e,H4);let n=()=>j(CF,`$cmsConfigLoaded`,u),r=()=>j(E4,`$appTitle`,u),i=()=>j(D4,`$appLogoURL`,u),a=()=>j(SF,`$cmsConfigErrors`,u),o=()=>j(bF,`$cmsConfig`,u),s=()=>j(AD,`$inAuthPopup`,u),c=()=>j(dC,`$dataLoaded`,u),l=()=>j(fC,`$dataLoadedProgress`,u),[u,d]=hn();ri(()=>{n()&&mn(G2,Y(`welcome_message`,{values:{name:r()}}))});var f=V4(),p=I(f),m=F(p),h=F(m),g=e=>{var t=P4(),n=I(t),a=L(n,2),o=F(a,!0);O(a),R(()=>{K(n,`src`,i()),U(o,r())}),H(e,t)};W(h,e=>{n()&&e(g)});var _=L(h,2),v=e=>{var t=I4(),n=F(t),r=F(n,!0);O(n);var i=L(n,2);vo(i,5,a,e=>e,(e,t)=>{var n=F4(),r=F(n);N4(r,()=>z(t)),O(n),H(e,n)}),O(i),O(t),R(e=>U(r,e),[()=>Y(`config.errors`,{values:{count:a().length}})]),H(e,t)},y=e=>{var t=L4(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`prefs.error.${EO.current.type}`)]),H(e,t)},b=e=>{var t=L4(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`loading_cms_config`)]),H(e,t)},x=M(()=>!o()||!Object.keys(DO).length),S=e=>{var t=R4(),n=I(t),r=F(n),i=F(r,!0);O(r);var a=L(r,2),o=F(a);N4(o,()=>t4.signInError.message),O(a),O(n),p4(L(n,2),{}),R(e=>U(i,e),[()=>Y(`loading_site_data_error`)]),H(e,t)},C=e=>{var t=L4(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`authorizing`)]),H(e,t)},w=e=>{p4(e,{})},T=e=>{var t=z4(),n=I(t),r=F(n,!0);O(n);var i=L(n,2),a=e=>{hce(e,{get now(){return l()}})};W(i,e=>{l()!==void 0&&e(a)}),R(e=>U(r,e),[()=>Y(`loading_site_data`)]),H(e,t)};W(_,e=>{a().length?e(v):EO.current?e(y,1):z(x)?e(b,2):t4.signInError.message&&t4.signInError.context===`dataFetch`?e(S,3):s()?e(C,4):!hD.account||t4.unauthenticated?e(w,5):c()||e(T,6)}),O(m),O(p);var E=L(p,2),ee=e=>{var t=B4(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`powered_by`,{values:{name:w4}})]),H(e,t)};W(E,e=>{n()&&r()!==`Sveltia CMS`&&e(ee)}),H(e,f),A(),d()}var N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,Gfe=s((()=>{Z(),J(),X(),$(),wx(),TS(),Hfe(),M4(),$2(),VD(),TF(),yC(),gD(),f4(),OO(),N4=(e,t=D)=>{var n=V();Eo(I(n),()=>Cx(Ax.parseInline(t()),{ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]})),H(e,n)},P4=B(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),F4=B(`<li><!></li>`),I4=B(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),L4=B(`<div role="alert" class="message"> </div>`),R4=B(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),z4=B(`<div role="alert" class="message"> </div> <!>`,1),B4=B(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),V4=B(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),H4={hash:`svelte-7ua6x9`,code:`.container.svelte-7ua6x9 {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;.inner:where(.svelte-7ua6x9) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.logo:where(.svelte-7ua6x9) {width:auto;height:160px;

      @media (width < 768px) {height:120px;
      }}h1:where(.svelte-7ua6x9) {font-size:48px;}.logo:where(.svelte-7ua6x9) ~ h1:where(.svelte-7ua6x9) {font-size:var(--sui-font-size-xxx-large);}.error:where(.svelte-7ua6x9) {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-default);text-align:center;-webkit-user-select:text;user-select:text;cursor:text;}
      /* \`<SignIn>\` also has \`.message\` */.message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;ul {margin:12px 0 0;padding:0;max-height:160px;overflow-y:auto;list-style:none;}li {margin:12px;padding:0;}}}.powered-by.svelte-7ua6x9 {position:absolute;inset:auto 24px 24px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);text-align:center;}`}}));function Kfe(e,t){k(t,!0);let n=()=>j(nA,`$backend`,i),r=()=>j(bF,`$cmsConfig`,i),[i,a]=hn(),o=0,s=N(!1),c=N(`none`),l=async()=>{n()?.checkStatus&&P(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),P(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};lc(()=>(P(s,!0),()=>{d()})),ri(()=>{z(s),n(),r(),f()});var p=V(),m=I(p),h=e=>{var t=W4(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);po(r,()=>({"--sui-infobar-message-justify-content":`center`})),CI(r.lastChild,{get status(){return z(e)},children:(e,t)=>{gt();var r=U4(),i=I(r),a=L(i);{let e=M(()=>Y(`details`));bI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{V2(n()?.statusDashboardURL)}})}R(e=>U(i,`${e??``} `),[()=>Y(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),H(e,r)},$$slots:{default:!0}}),O(r)}H(e,t)},g=M(()=>[`minor`,`major`].includes(z(c)));W(m,e=>{z(g)&&e(h)}),H(e,p),A(),a()}var U4,W4,qfe=s((()=>{Z(),J(),X(),$(),dc(),iA(),TF(),H2(),U4=B(` <!>`,1),W4=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function Jfe(e,t){k(t,!0);let n=0,r=0,i=N(!1),a=async()=>{try{let e=await fetch(`https://unpkg.com/@sveltia/cms/package.json`);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===Xj)return;document.querySelector(`script[src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"]`)?r=window.setTimeout(()=>{P(i,!0)},6e5):console.warn(`[Sveltia CMS] A new version (${t}) is available. Update the pinned version in your script tag or package.json to upgrade.`)}catch{}};lc(()=>(a(),n=window.setInterval(()=>{a()},36e5),()=>{window.clearInterval(n),window.clearTimeout(r)}));var o=V(),s=I(o),c=e=>{var t=K4(),n=I(t);po(n,()=>({"--sui-infobar-message-justify-content":`center`})),CI(n.lastChild,{children:(e,t)=>{gt();var n=G4(),r=I(n),i=L(r);{let e=M(()=>Y(`update_now`));bI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>U(r,`${e??``} `),[()=>Y(`update_available`)]),H(e,n)},$$slots:{default:!0}}),O(n),H(e,t)};W(s,e=>{z(i)&&e(c)}),H(e,o),A()}var G4,K4,Yfe=s((()=>{Z(),J(),X(),$(),dc(),Zj(),G4=B(` <!>`,1),K4=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})),q4,Xfe=s((()=>{nM(),VM(),sP(),q4=async(e,t)=>{let n=t===`image`?await PM(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await tM(`exifr`,`dist/lite.esm.mjs`),{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=await r(n).catch(()=>{})??{};return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:oP(i,7),longitude:oP(a,7)}:void 0}}})),J4,Y4,X4,Z4,Zfe=s((()=>{Xfe(),J4=e=>{let t=new Image;return new Promise(n=>{t.addEventListener(`load`,()=>{n({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})},{once:!0}),t.src=e})},Y4=async(e,t)=>{let n=document.createElement(t);return new Promise(r=>{n.addEventListener(`loadedmetadata`,()=>{let{duration:e}=n;t===`audio`&&r({duration:e});let{videoWidth:i,videoHeight:a}=n;r({dimensions:{width:i,height:a},duration:e})},{once:!0}),n.src=e})},X4=async(e,t)=>t===`image`?J4(e):Y4(e,t),Z4=async(e,t,n)=>{let{dimensions:r,duration:i}=await X4(t,n),{createdDate:a,coordinates:o}=await q4(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})),Q4,$4,e3,t3=s((()=>{Zp(),VM(),iA(),cN(),Zfe(),Q4={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},$4=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=dn(nA)?.repository??{},i=await FM(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await Z4(e,i,t)),{...a,publicURL:RM(e),repoBlobURL:r?`${r}/${n}`:void 0}},e3=async e=>{let t=RM(e,{allowSpecial:!0,pathOnly:!0})??await FM(e);return t?oN(t):[]}}));function n3(e,t){k(t,!0);let n=e=>{var t=r3(),n=I(t);{let e=M(()=>Y(`public_urls`,{values:{count:r().length}})),t=M(()=>!z(c).length);eR(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(d,`asset_urls_copied`)}})}var i=L(n,2);{let e=M(()=>Y(`file_paths`,{values:{count:r().length}}));eR(i,{get label(){return z(e)},onclick:()=>{m(f,`asset_paths_copied`)}})}var a=L(i,2);{let e=M(()=>Y(`file_data`)),t=M(()=>!z(o));eR(a,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(p,`asset_data_copied`)}})}H(e,t)},r=q(t,`assets`,19,()=>[]),i=q(t,`useButton`,3,!0),a=N(Nr([])),o=N(!1),s=Nr({show:!1,text:``,status:`success`}),c=M(()=>z(a).filter(({publicURL:e})=>!!e).map(({publicURL:e})=>e)),l,u=async()=>{if(l=void 0,r().length!==1)return!1;let e=await PM(r()[0]),{type:t}=e;return l=e,Bp(t)?!0:lM.includes(t)?typeof navigator.clipboard.write==`function`:!1},d=async()=>{await navigator.clipboard.writeText(z(c).join(`
`))},f=async()=>{await navigator.clipboard.writeText(r().map(({path:e})=>`/${e}`).join(`
`))},p=async()=>{let e=l,{type:t}=e;if(Bp(t)){await navigator.clipboard.writeText(await e.text());return}if(!lM.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await CM(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},m=async(e,t)=>{try{await e(),s.status=`success`,s.text=Y(t,{values:{count:r().length}})}catch{s.status=`error`,s.text=Y(`clipboard_error`)}finally{s.show=!0}};ri(()=>{(async()=>{P(a,await Promise.all(r().map($4)),!0),P(o,await u(),!0)})()});var h=i3(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>Y(`copy_options`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>Y(`copy`));AI(e,{variant:`ghost`,get disabled(){return z(i)},get label(){return z(a)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},v=e=>{{let t=e=>{n(e)},i=M(()=>!r().length),a=M(()=>Y(`copy`));eR(e,{get disabled(){return z(i)},get label(){return z(a)},popupPosition:`left-top`,items:t,$$slots:{items:!0}})}};W(g,e=>{i()?e(_):e(v,-1)}),jz(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{rI(e,{get status(){return s.status},children:(e,t)=>{gt();var n=Ra();R(()=>U(n,s.text)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,h),A()}var r3,i3,a3=s((()=>{Z(),J(),X(),$(),Yp(),t3(),VM(),dM(),TM(),r3=B(`<!> <!> <!>`,1),i3=B(`<!> <!>`,1)})),o3,s3,c3=s((()=>{Zp(),o3={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},s3=ln({...o3})})),l3,u3=s((()=>{Zp(),c3(),l3=ln({...o3})})),d3,f3,p3,m3,h3=s((()=>{sT(),Zp(),JF(),iA(),yC(),gD(),OO(),HE(),d3=()=>{let e=hD.account;if(!e)return;let{name:t,email:n,id:r,login:i}=e;if(!(!t||!n))return{name:t,email:n,id:r,login:i}},f3=async({changes:e,commit:t})=>{let{databaseName:n}=dn(nA)?.repository??{};if(!n)return;let r=new iT(n,`file-cache`),{files:i,author:a,date:o}=t,s={commitAuthor:a,commitDate:o};await Promise.all(e.map(async e=>{let{action:t,slug:n,path:a,previousPath:o,data:c}=e;if(typeof c!=`string`||!n)return;if(t===`delete`){await r.delete(a);return}t===`move`&&await r.delete(o);let l={sha:i[a]?.sha,size:BE(c).size,text:c,meta:s};await r.set(a,l)}))},p3=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));mC.update(e=>[...e.filter(e=>!r.has(e.id)),...t]);let i=new Set(n.map(e=>e.path));e.forEach(e=>{e.action===`move`&&e.previousPath?i.add(e.previousPath):e.action===`delete`&&i.add(e.path)}),MF.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},m3=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=dn(nA),a={...await i(e,r),author:d3()};DO.devModeEnabled&&(console.debug(`Commit changes:`,e),console.debug(`Commit results:`,a));let{files:o,author:s,date:c}=a,l=t.map(e=>({...e,commitAuthor:s,commitDate:c})),u=n.map(e=>{let{sha:t,file:n}=o[e.path]??{},r=n?URL.createObjectURL(n):void 0;return{...e,sha:t,blobURL:r,commitAuthor:s,commitDate:c}});return await f3({changes:e,commit:a}),p3({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})),g3,_3,Qfe=s((()=>{JF(),u3(),h3(),c3(),g3=({assets:e})=>{LF.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),l3.set({...o3,deleted:!0,count:e.length})},_3=async e=>{await m3({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),g3({assets:e})}}));function v3(e,t){k(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`buttonDescription`,3,``),i=q(t,`dialogDescription`,3,``),a=q(t,`onDelete`,3,void 0),o=q(t,`useButton`,3,!0),s=N(!1),c=M(()=>o()?bI:eR);var l=y3(),u=I(l);{let e=M(()=>!n().length),t=M(()=>Y(`delete`));Mo(u,()=>z(c),(n,i)=>{i(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},get"aria-label"(){return r()},onclick:()=>{P(s,!0)}})})}var d=L(u,2);{let e=M(()=>Y(`delete_assets`,{values:{count:n().length}})),t=M(()=>Y(`delete`));iL(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{_3(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{gt();var n=Ra();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}H(e,l),A()}var y3,b3=s((()=>{Z(),J(),X(),$(),Qfe(),y3=B(`<!> <!>`,1)}));function x3(e,t){k(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`useButton`,3,!0),i=N(!1),a=M(()=>r()?bI:eR),o=async()=>{for(let e of n())Jp(await PM(e),e.name),await nT(300);P(i,!0)};var s=S3(),c=I(s);{let e=M(()=>!n().length),t=M(()=>Y(`download`));Mo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}jz(L(c,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var r=Ra();R(e=>U(r,e),[()=>Y(`assets_downloaded`,{values:{count:n().length}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,s),A()}var S3,C3=s((()=>{Z(),J(),X(),$(),Yp(),rT(),VM(),S3=B(`<!> <!>`,1)}));function w3(e,t){k(t,!0);let n=()=>j(nA,`$backend`,r),[r,i]=hn(),a=q(t,`extraItems`,3,void 0),o=N(Nr({...Q4})),s=M(()=>z(o).publicURL),c=M(()=>z(o).repoBlobURL),l=async()=>{P(o,t.asset?await $4(t.asset):{...Q4},!0)};ri(()=>{t.asset,l()});{let r=e=>{{let r=M(()=>Y(`edit_options`));YL(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=T3(),o=I(i);Ao(o,()=>a()??D);var l=L(o,2);{let e=M(()=>Y(`edit`)),n=M(()=>Y(`edit_asset`)),r=M(()=>!t.asset||!OT(t.asset));eR(l,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(BF,t.asset)}})}var u=L(l,2);{let e=M(()=>Y(`rename`)),n=M(()=>Y(`rename_asset`)),r=M(()=>!t.asset);eR(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(VF,t.asset)}})}var d=L(u,2);{let e=M(()=>Y(`replace`)),n=M(()=>Y(`replace_asset`)),r=M(()=>!t.asset);eR(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(zF,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),mn(T2,!0)}})}var f=L(d,2);MI(f,{});var p=L(f,2);{let e=M(()=>Y(`view_on_live_site`)),t=M(()=>!z(s));eR(p,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{V2(z(s))}})}var m=L(p,2),h=e=>{{let t=M(()=>!n()?.repository||!z(c)),r=M(()=>Y(`view_on_x`,{values:{service:n()?.repository?.label},default:Y(`view_in_repository`)}));eR(e,{get disabled(){return z(t)},get label(){return z(r)},onclick:()=>{V2(`${z(c)}?plain=1`)}})}};W(m,e=>{DO.devModeEnabled&&e(h)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>Y(`show_edit_options`));AI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:r,$$slots:{popup:!0}})}A(),i()}var T3,E3=s((()=>{Z(),J(),X(),$(),JF(),t3(),AT(),M2(),iA(),OO(),H2(),T3=B(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function D3(e,t){k(t,!0);let n=q(t,`useShortcut`,3,!1),r=q(t,`onclick`,3,void 0);{let i=e=>{{let t=M(()=>Hh()?`arrow_forward`:`arrow_back`);tI(e,{get name(){return z(t)}})}},a=M(()=>t[`aria-label`]??Y(`back`)),o=M(()=>n()?`Escape`:void 0);bI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(a)},get keyShortcuts(){return z(o)},class:`back`,get onclick(){return r()},startIcon:i,$$slots:{startIcon:!0}})}A()}var O3=s((()=>{Z(),J(),X(),$()}));function $fe(e,t){k(t,!0);let n=()=>j(RF,`$overlaidAsset`,i),r=()=>j(om,`$selectedAssetFolder`,i),[i,a]=hn(),o=e=>{var t=k3(),n=I(t);n3(n,{get assets(){return z(s)},get useButton(){return z(c)}});var i=L(n,2);x3(i,{get assets(){return z(s)},get useButton(){return z(c)}});var a=L(i,2);{let e=M(()=>Y(`delete_asset`)),t=M(()=>Y(`confirm_deleting_this_asset`));v3(a,{get assets(){return z(s)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{Z2(`/assets/${r()?.internalPath??`-/all`}`)},get useButton(){return z(c)}})}H(e,t)},s=M(()=>n()?[n()]:[]),c=M(()=>!AE.isSmallScreen);{let t=M(()=>Y(`primary`));f0(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var i=A3(),a=I(i);{let e=M(()=>Y(`cancel_editing`));D3(a,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{Z2(`/assets/${r()?.internalPath??`-/all`}`)}})}var s=L(a,2);lI(F(s),{children:(e,t)=>{gt();var r=Ra();R(()=>U(r,n()?.name)),H(e,r)},$$slots:{default:!0}}),O(s);var c=L(s,2),l=e=>{o(e)};W(c,e=>{AE.isSmallScreen||e(l)}),w3(L(c,2),{get asset(){return n()},extraItems:e=>{var t=V(),n=I(t),r=e=>{o(e)};W(n,e=>{AE.isSmallScreen&&e(r)}),H(e,t)},$$slots:{extraItems:!0}}),H(e,i)},$$slots:{default:!0}})}A(),a()}var k3,A3,epe=s((()=>{Z(),J(),X(),$(),a3(),b3(),C3(),E3(),O3(),$2(),JF(),fm(),jE(),k3=B(`<!> <!> <!>`,1),A3=B(`<!> <h2 role="none"><!></h2> <!> <!>`,1)}));function j3(e,t){k(t,!0),G(e,R3);let n=q(t,`loading`,3,`lazy`),r=q(t,`asset`,3,void 0),i=q(t,`src`,15,void 0),a=q(t,`variant`,3,void 0),o=q(t,`blurBackground`,3,!1),s=q(t,`cover`,3,!1),c=q(t,`checkerboard`,3,!1),l=q(t,`dissolve`,3,!0),u=q(t,`alt`,3,``),d=q(t,`controls`,3,!1),f=ec(t,M3),p=N(void 0),m=N(!1),h=N(!1),g=N(void 0),_=N(void 0),v=M(()=>!!r()&&!!a()&&!d()),y=M(()=>t.kind===`image`||r()?.name.endsWith(`.pdf`)||z(v)&&xT.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,P(m,!1),n()===`lazy`&&await mI(z(p));try{i(z(v)?await LM(r()):await FM(r()))}catch{P(m,!0)}o()&&!z(g)&&i()&&P(g,i(),!0),b=!1,er()}},S=async()=>{!z(p)||!z(_)||((z(y)?!z(p).complete:!z(p).readyState)&&await new Promise(e=>{z(p)?.addEventListener(z(y)?`load`:`loadedmetadata`,()=>{e(void 0)},{once:!0})}),l()&&await mI(z(p)),P(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&(await nT(500),URL.revokeObjectURL(i())))};ri(()=>{r()&&!z(g)&&(async()=>{P(g,await LM(r(),{cacheOnly:!0}),!0)})()}),ri(()=>{z(p)&&r()&&x()}),ri(()=>{if(r())P(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){P(_,void 0);let e=i();(async()=>{await mI(z(p)),P(_,e,!0)})()}else P(_,i(),!0)}),ri(()=>{z(p)&&z(_)&&S()});var C=L3();let w;var T=F(C),E=e=>{tI(e,{name:`draft`})},ee=e=>{var t=N3();Cs(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),qs(t,e=>P(p,e),()=>z(p)),xa(t),H(e,t)},te=e=>{var t=P3();Cs(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),qs(t,e=>P(p,e),()=>z(p)),H(e,t)},ne=e=>{var t=V(),n=I(t),r=e=>{var t=F3();Cs(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),qs(t,e=>P(p,e),()=>z(p)),H(e,t)},i=e=>{tI(e,{name:`audio_file`})};W(n,e=>{d()?e(r):e(i,-1)}),H(e,t)},re=e=>{tI(e,{name:`draft`})};W(T,e=>{z(m)?e(E):z(y)?e(ee,1):t.kind===`video`?e(te,2):t.kind===`audio`?e(ne,3):e(re,-1)});var ie=L(T,2),ae=e=>{var t=I3(),n=F(t),r=F(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`loading`)]),H(e,t)};W(r,e=>{!z(v)&&!z(h)&&e(i)}),O(n);var a=L(n,2);let o;O(t),R(()=>{K(a,`src`,z(g)),o=ds(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),H(e,t)};W(ie,e=>{o()&&e(ae)}),O(C),R(()=>w=ds(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),H(e,C),A()}var M3,N3,P3,F3,I3,L3,R3,z3=s((()=>{Z(),J(),X(),$(),hI(),rT(),dc(),VM(),AT(),M3=new Set([`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),N3=B(`<img/>`),P3=B(`<video></video>`,2),F3=B(`<audio></audio>`),I3=B(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),L3=B(`<div role="none"><!> <!></div>`),R3={hash:`svelte-1yaifwd`,code:`.preview.svelte-1yaifwd {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;&.tile {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);.sui.icon {font-size:48px;}}&.icon {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}&:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) {overflow:hidden;aspect-ratio:1 / 1;img:where(.svelte-1yaifwd) {
        /* Prevent the image from being dragged */pointer-events:none;}}.blur:where(.svelte-1yaifwd) {display:contents;& > :where(.svelte-1yaifwd) {position:absolute;inset:0;pointer-events:none;}.overlay:where(.svelte-1yaifwd) {display:flex;justify-content:center;align-items:center;z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}img:where(.svelte-1yaifwd) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);&.loaded {opacity:1;}}}&.cover {padding:0;& > :is(img, video) {flex:auto;}}& > :is(img, video) {flex:0;max-width:100%;max-height:100%;}&.dissolve {:is(img, video) {opacity:0;transition:opacity 250ms;}&.loaded {:is(img, video) {opacity:1;}}}}

  /* prettier-ignore */.checkerboard.svelte-1yaifwd img:where(.svelte-1yaifwd) {
    /* hardcoded, the same color as the checkerboard in Photoshop */background-image:linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
      linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);background-size:8px 8px;background-position:0 0, 4px 4px;}.svelte-1yaifwd:not(.checkerboard) img:where(.svelte-1yaifwd) {
    /* hardcoded, the same color as the transparent image preview in Chrome and Firefox */background-color:#e5e5e5;}:is(img, video) {object-fit:contain;&:not([src]) {visibility:hidden;}}.cover.svelte-1yaifwd :is(img, video) {object-fit:cover;aspect-ratio:1 / 1;}`}}));function B3(e,t){k(t,!0),G(e,U3);let n=q(t,`class`,3,``),r=q(t,`mapElement`,15),i=q(t,`onReady`,3,void 0),a=ec(t,V3),o,s=async()=>{if(!r())return;let e=await tM(`leaflet`,`dist/leaflet-src.esm.js`),n=`${eM(`leaflet`)}/dist/images/marker-icon-2x.png`,a=e.map(r(),{center:[0,0],zoom:2});if(e.tileLayer(`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`,{attribution:`&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors`,referrerPolicy:`strict-origin`}).addTo(a),t.coordinates){let{latitude:r,longitude:i}=t.coordinates,o=e.icon({iconUrl:n,iconSize:[25,41]});e.marker([r,i],{icon:o}).addTo(a),a.setView([r,i],12)}r().querySelectorAll(`a[href^="https:"]`).forEach(e=>{e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`)}),o=new ResizeObserver(()=>{a?.invalidateSize()}),o.observe(r()),i()?.({leaflet:e,map:a})};lc(()=>(s(),()=>{o?.disconnect()}));var c=H3();Cs(c,e=>({role:`application`,class:`map ${n()??``}`,"aria-label":e,...a}),[()=>t.coordinates?Y(`map_lat_lng`,{values:t.coordinates}):void 0],void 0,void 0,`svelte-1c5gj1k`),qs(c,e=>r(e),()=>r()),H(e,c),A()}var V3,H3,U3,W3=s((()=>{Z(),J(),X(),dc(),nM(),V3=new Set([`$$slots`,`$$events`,`$$legacy`,`coordinates`,`class`,`mapElement`,`onReady`]),H3=B(`<div></div>`),U3={hash:`svelte-1c5gj1k`,code:`
  /* Leaflet default styles copied from \`node_modules/leaflet/dist/leaflet.css\`. Somehow we can’t */
  /* import it directly here; Vite emits it as a separate CSS file, which we want to avoid. */
  /* @todo Remove unused rules. */.leaflet-pane,
    .leaflet-tile,
    .leaflet-marker-icon,
    .leaflet-marker-shadow,
    .leaflet-tile-container,
    .leaflet-pane > svg,
    .leaflet-pane > canvas,
    .leaflet-zoom-box,
    .leaflet-image-layer,
    .leaflet-layer {position:absolute;left:0;top:0;}.leaflet-container {overflow:hidden;-webkit-tap-highlight-color:transparent;background:#ddd;outline-offset:1px;font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5;}.leaflet-tile,
    .leaflet-marker-icon,
    .leaflet-marker-shadow {-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;}.leaflet-tile::selection {background:transparent;}.leaflet-safari .leaflet-tile {image-rendering:-webkit-optimize-contrast;}.leaflet-safari .leaflet-tile-container {width:1600px;height:1600px;-webkit-transform-origin:0 0;transform-origin:0 0;}.leaflet-marker-icon,
    .leaflet-marker-shadow {display:block;}.leaflet-container .leaflet-overlay-pane svg {max-width:none !important;max-height:none !important;}.leaflet-container .leaflet-marker-pane img,
    .leaflet-container .leaflet-shadow-pane img,
    .leaflet-container .leaflet-tile-pane img,
    .leaflet-container img.leaflet-image-layer,
    .leaflet-container .leaflet-tile {max-width:none !important;max-height:none !important;width:auto;padding:0;}.leaflet-container img.leaflet-tile {mix-blend-mode:plus-lighter;}.leaflet-container.leaflet-touch-zoom {-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y;}.leaflet-container.leaflet-touch-drag {-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom;}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {-ms-touch-action:none;touch-action:none;}.leaflet-container a {-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4);color:#0078a8;}.leaflet-tile {filter:inherit;visibility:hidden;}.leaflet-tile-loaded {visibility:inherit;}.leaflet-zoom-box {width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800;border:2px dotted #38f;background:rgba(255, 255, 255, 0.5);}.leaflet-overlay-pane svg {-moz-user-select:none;user-select:none;}.leaflet-pane {z-index:400;}.leaflet-tile-pane {z-index:200;}.leaflet-overlay-pane {z-index:400;}.leaflet-shadow-pane {z-index:500;}.leaflet-marker-pane {z-index:600;}.leaflet-tooltip-pane {z-index:650;}.leaflet-popup-pane {z-index:700;}.leaflet-map-pane canvas {z-index:100;}.leaflet-map-pane svg {z-index:200;}.leaflet-vml-shape {width:1px;height:1px;}.lvml {behavior:url(#default#VML);display:inline-block;position:absolute;}.leaflet-control {position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto;float:left;clear:both;}.leaflet-top,
    .leaflet-bottom {position:absolute;z-index:1000;pointer-events:none;}.leaflet-top {top:0;}.leaflet-right {right:0;}.leaflet-bottom {bottom:0;}.leaflet-left {left:0;}.leaflet-right .leaflet-control {float:right;margin-right:10px;}.leaflet-top .leaflet-control {margin-top:10px;}.leaflet-bottom .leaflet-control {margin-bottom:10px;}.leaflet-left .leaflet-control {margin-left:10px;}.leaflet-fade-anim .leaflet-popup {opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear;}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {opacity:1;}.leaflet-zoom-animated {-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;}svg.leaflet-zoom-animated {will-change:transform;}.leaflet-zoom-anim .leaflet-zoom-animated {-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);}.leaflet-zoom-anim .leaflet-tile,
    .leaflet-pan-anim .leaflet-tile {-webkit-transition:none;-moz-transition:none;transition:none;}.leaflet-zoom-anim .leaflet-zoom-hide {visibility:hidden;}.leaflet-interactive {cursor:pointer;}.leaflet-grab {
      /* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-webkit-grab;
      /* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-moz-grab;cursor:grab;}.leaflet-crosshair,
    .leaflet-crosshair .leaflet-interactive {cursor:crosshair;}.leaflet-popup-pane,
    .leaflet-control {cursor:auto;}.leaflet-dragging .leaflet-grab,
    .leaflet-dragging .leaflet-grab .leaflet-interactive,
    .leaflet-dragging .leaflet-marker-draggable {cursor:move;
      /* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-webkit-grabbing;
      /* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-moz-grabbing;cursor:grabbing;}.leaflet-marker-icon,
    .leaflet-marker-shadow,
    .leaflet-image-layer,
    .leaflet-pane > svg path,
    .leaflet-tile-container {pointer-events:none;}.leaflet-marker-icon.leaflet-interactive,
    .leaflet-image-layer.leaflet-interactive,
    .leaflet-pane > svg path.leaflet-interactive,
    svg.leaflet-image-layer.leaflet-interactive path {pointer-events:visiblePainted;pointer-events:auto;}.leaflet-bar {box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px;}.leaflet-bar a {background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black;}.leaflet-bar a,
    .leaflet-control-layers-toggle {background-position:50% 50%;background-repeat:no-repeat;display:block;}.leaflet-bar a:hover,
    .leaflet-bar a:focus {background-color:#f4f4f4;}.leaflet-bar a:first-child {border-top-left-radius:4px;border-top-right-radius:4px;}.leaflet-bar a:last-child {border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none;}.leaflet-bar a.leaflet-disabled {cursor:default;background-color:#f4f4f4;color:#bbb;}.leaflet-touch .leaflet-bar a {width:30px;height:30px;line-height:30px;}.leaflet-touch .leaflet-bar a:first-child {border-top-left-radius:2px;border-top-right-radius:2px;}.leaflet-touch .leaflet-bar a:last-child {border-bottom-left-radius:2px;border-bottom-right-radius:2px;}.leaflet-control-zoom-in,
    .leaflet-control-zoom-out {font:bold 18px 'Lucida Console',
        Monaco,
        monospace;text-indent:1px;}.leaflet-touch .leaflet-control-zoom-in,
    .leaflet-touch .leaflet-control-zoom-out {font-size:22px;}.leaflet-control-layers {box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px;}.leaflet-control-layers-toggle {background-image:url(images/layers.png);width:36px;height:36px;}.leaflet-retina .leaflet-control-layers-toggle {background-image:url(images/layers-2x.png);background-size:26px 26px;}.leaflet-touch .leaflet-control-layers-toggle {width:44px;height:44px;}.leaflet-control-layers .leaflet-control-layers-list,
    .leaflet-control-layers-expanded .leaflet-control-layers-toggle {display:none;}.leaflet-control-layers-expanded .leaflet-control-layers-list {display:block;position:relative;}.leaflet-control-layers-expanded {padding:6px 10px 6px 6px;color:#333;background:#fff;}.leaflet-control-layers-scrollbar {overflow-y:scroll;overflow-x:hidden;padding-right:5px;}.leaflet-control-layers-selector {margin-top:2px;position:relative;top:1px;}.leaflet-control-layers label {display:block;font-size:13px;font-size:1.08333em;}.leaflet-control-layers-separator {height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px;}.leaflet-default-icon-path {background-image:url(images/marker-icon.png);}.leaflet-container .leaflet-control-attribution {background:#fff;background:rgba(255, 255, 255, 0.8);margin:0;}.leaflet-control-attribution,
    .leaflet-control-scale-line {padding:0 5px;color:#333;line-height:1.4;}.leaflet-control-attribution a {text-decoration:none;}.leaflet-control-attribution a:hover,
    .leaflet-control-attribution a:focus {text-decoration:underline;}.leaflet-attribution-flag {display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em;}.leaflet-left .leaflet-control-scale {margin-left:5px;}.leaflet-bottom .leaflet-control-scale {margin-bottom:5px;}.leaflet-control-scale-line {border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff;}.leaflet-control-scale-line:not(:first-child) {border-top:2px solid #777;border-bottom:none;margin-top:-2px;}.leaflet-control-scale-line:not(:first-child):not(:last-child) {border-bottom:2px solid #777;}.leaflet-touch .leaflet-control-attribution,
    .leaflet-touch .leaflet-control-layers,
    .leaflet-touch .leaflet-bar {box-shadow:none;}.leaflet-touch .leaflet-control-layers,
    .leaflet-touch .leaflet-bar {border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box;}.leaflet-popup {position:absolute;text-align:center;margin-bottom:20px;}.leaflet-popup-content-wrapper {padding:1px;text-align:left;border-radius:12px;}.leaflet-popup-content {margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px;}.leaflet-popup-content p {margin:17px 0;margin:1.3em 0;}.leaflet-popup-tip-container {width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none;}.leaflet-popup-tip {width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}.leaflet-popup-content-wrapper,
    .leaflet-popup-tip {background:white;color:#333;box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);}.leaflet-container a.leaflet-popup-close-button {position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,
        Verdana,
        sans-serif;color:#757575;text-decoration:none;background:transparent;}.leaflet-container a.leaflet-popup-close-button:hover,
    .leaflet-container a.leaflet-popup-close-button:focus {color:#585858;}.leaflet-popup-scrolled {overflow:auto;}.leaflet-oldie .leaflet-popup-content-wrapper {-ms-zoom:1;zoom:1;}.leaflet-oldie .leaflet-popup-tip {width:24px;margin:0 auto;}.leaflet-oldie .leaflet-control-zoom,
    .leaflet-oldie .leaflet-control-layers,
    .leaflet-oldie .leaflet-popup-content-wrapper,
    .leaflet-oldie .leaflet-popup-tip {border:1px solid #999;}.leaflet-div-icon {background:#fff;border:1px solid #666;}.leaflet-tooltip {position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);}.leaflet-tooltip.leaflet-interactive {cursor:pointer;pointer-events:auto;}.leaflet-tooltip-top:before,
    .leaflet-tooltip-bottom:before,
    .leaflet-tooltip-left:before,
    .leaflet-tooltip-right:before {position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:'';}.leaflet-tooltip-bottom {margin-top:6px;}.leaflet-tooltip-top {margin-top:-6px;}.leaflet-tooltip-bottom:before,
    .leaflet-tooltip-top:before {left:50%;margin-left:-6px;}.leaflet-tooltip-top:before {bottom:0;margin-bottom:-12px;border-top-color:#fff;}.leaflet-tooltip-bottom:before {top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff;}.leaflet-tooltip-left {margin-left:-6px;}.leaflet-tooltip-right {margin-left:6px;}.leaflet-tooltip-left:before,
    .leaflet-tooltip-right:before {top:50%;margin-top:-6px;}.leaflet-tooltip-left:before {right:0;margin-right:-12px;border-left-color:#fff;}.leaflet-tooltip-right:before {left:0;margin-left:-12px;border-right-color:#fff;}.map.svelte-1c5gj1k {margin:var(--sui-focus-ring-width);border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);overflow:hidden;aspect-ratio:1 / 1;background-clip:text;}.leaflet-container {font-family:inherit !important;font-size:var(--sui-font-size-small) !important;}.leaflet-container a {color:var(--sui-primary-accent-color-text) !important;text-decoration:none !important;}.leaflet-bar a {border-color:var(--sui-button-border-color) !important;color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-button-background-color) !important;}.leaflet-control {color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-secondary-background-color-translucent) !important;}.leaflet-control-attribution {padding:4px 8px;}

  /* Dark theme: https://stackoverflow.com/q/59819792 */:root[data-theme='dark'] .leaflet-layer {filter:invert(100%) hue-rotate(180deg);}`}})),G3,tpe=s((()=>{G3=e=>new Date(e*1e3).toISOString().substr(11,8)}));function K3(e,t){k(t,!0),G(e,i6);let n=q(t,`showPreview`,3,!1),r=N(Nr({...Q4})),i=M(()=>t.asset.path),a=M(()=>t.asset.size),o=M(()=>t.asset.kind),s=M(()=>t.asset.commitAuthor),c=M(()=>t.asset.commitDate),l=M(()=>z(r).publicURL),u=M(()=>z(r).repoBlobURL),d=M(()=>z(r).dimensions),f=M(()=>z(r).duration),p=M(()=>z(r).createdDate),m=M(()=>z(r).coordinates),h=M(()=>z(r).usedEntries),g=M(()=>Vp(z(i))),_=M(()=>E(z(g).extension,``)),v=M(()=>TT(z(o))||z(i).endsWith(`.pdf`)),y=async()=>{P(r,t.asset?await $4(t.asset):{...Q4},!0),z(r).usedEntries=t.asset?await e3(t.asset):[]};ri(()=>{t.asset,y()});var b=r6(),x=F(b),S=e=>{var n=X3(),r=F(n);{let e=M(()=>z(o)===`image`),n=M(()=>[`audio`,`video`].includes(z(o)));j3(r,{get kind(){return z(o)},get asset(){return t.asset},variant:`tile`,get checkerboard(){return z(e)},get controls(){return z(n)}})}O(n),H(e,n)};W(x,e=>{n()&&z(v)&&e(S)});var C=L(x,2),w=F(C),T=F(w,!0);O(w);var ee=L(w,2),te=F(ee,!0);O(ee),O(C);var ne=L(C,2),re=e=>{var t=Z3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2);lo(F(i),()=>Xh.current,e=>{var t=Ra();R(e=>U(t,e),[()=>FE(z(a))]),H(e,t)}),O(i),O(t),R(e=>U(r,e),[()=>Y(`size`)]),H(e,t)};W(ne,e=>{z(a)&&e(re)});var ie=L(ne,2),ae=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R(e=>{U(r,e),U(a,z(d)?`${z(d).width}×${z(d).height}`:`–`)},[()=>Y(`dimensions`)]),H(e,t)};W(ie,e=>{z(v)&&e(ae)});var oe=L(ie,2),se=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R((e,t)=>{U(r,e),U(a,t)},[()=>Y(`duration`),()=>z(f)?G3(z(f)):`–`]),H(e,t)},ce=M(()=>[`audio`,`video`].includes(z(o)));W(oe,e=>{z(ce)&&e(se)});var le=L(oe,2),ue=F(le),de=F(ue,!0);O(ue);var D=L(ue,2),fe=F(D),pe=e=>{var t=$3(),n=F(t,!0);O(t),R(()=>{K(t,`href`,z(l)),U(n,z(l))}),H(e,t)},me=e=>{H(e,Ra(`–`))};W(fe,e=>{z(l)?e(pe):e(me,-1)}),O(D),O(le);var he=L(le,2),ge=F(he),_e=F(ge,!0);O(ge);var ve=L(ge,2),ye=F(ve),be=e=>{var t=e6(),n=F(t);O(t),R(()=>{K(t,`href`,z(u)),U(n,`/${z(i)??``}`)}),H(e,t)},xe=e=>{var t=Ra();R(()=>U(t,`/${z(i)??``}`)),H(e,t)};W(ye,e=>{z(u)?e(be):e(xe,-1)}),O(ve),O(he);var Se=L(he,2),Ce=F(Se),we=F(Ce,!0);O(Ce);var Te=L(Ce,2),Ee=e=>{var t=t6(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`loading`)]),H(e,t)},De=e=>{var t=V();vo(I(t),17,()=>z(h),e=>e.id,(e,t)=>{var n=V();vo(I(n),17,()=>qM(z(t)),e=>e.name,(e,n)=>{var r=V();lo(I(r),()=>Xh.current,e=>{let r=M(()=>bw(z(n)));var i=V();vo(I(i),17,()=>wC(z(n),z(t)),e=>e.name,(e,t)=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).name}`,collectionLabel:z(r),entryLabel:CC(z(t))}));q3(e,()=>z(i))}},e=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).subPath}`,collectionLabel:z(r),entryLabel:LP(z(n),z(t),{useTemplate:!0})}));q3(e,()=>z(i))}}),H(e,i)}),H(e,r)}),H(e,n)},e=>{var t=t6(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`sort_keys.none`)]),H(e,t)}),H(e,t)};W(Te,e=>{z(h)?e(De,-1):e(Ee)}),O(Se);var Oe=L(Se,2),ke=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R(e=>{U(r,e),U(a,z(s).name||z(s).login||z(s).email)},[()=>Y(`sort_keys.commit_author`)]),H(e,t)};W(Oe,e=>{z(s)&&e(ke)});var Ae=L(Oe,2),je=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R((e,t)=>{U(r,e),U(a,t)},[()=>Y(`sort_keys.commit_date`),()=>jw(z(c),Xh.current)]),H(e,t)};W(Ae,e=>{z(c)&&e(je)});var Me=L(Ae,2),Ne=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R((e,t)=>{U(r,e),U(a,t)},[()=>Y(`created_date`),()=>jw(z(p),Xh.current)]),H(e,t)};W(Me,e=>{z(p)&&e(Ne)});var Pe=L(Me,2),Fe=e=>{var t=n6(),n=F(t),r=F(n,!0);O(n),B3(L(n,2),{get coordinates(){return z(m)}}),O(t),R(e=>U(r,e),[()=>Y(`location`)]),H(e,t)};W(Pe,e=>{z(m)&&e(Fe)}),O(b),R((e,t,n,r,i)=>{U(T,e),U(te,t),U(de,n),U(_e,r),U(we,i)},[()=>Y(`kind`),()=>Y(`file_type_labels.${z(_)}`,{default:hT.getType(z(i))??z(_).toUpperCase()}),()=>Y(`public_url`),()=>Y(`file_path`),()=>Y(`used_in`)]),H(e,b),A()}var q3,J3,Y3,X3,Z3,Q3,$3,e6,t6,n6,r6,i6,npe=s((()=>{Z(),J(),X(),$(),Yp(),gT(),z3(),W3(),$2(),t3(),AT(),Sw(),DC(),ZM(),RP(),Mw(),HE(),tpe(),q3=(e,t)=>{let n=()=>(t?.()).link,r=()=>(t?.()).collectionLabel,i=()=>(t?.()).entryLabel;var a=Y3();bI(F(a),{role:`link`,variant:`link`,onclick:()=>X2(n(),{transitionType:`forwards`}),children:(e,t)=>{var n=J3(),a=F(n);O(n),R(()=>U(a,`${r()??``} › ${i()??``}`)),H(e,n)},$$slots:{default:!0}}),O(a),H(e,a)},J3=B(`<span role="none"> </span>`),Y3=B(`<p><!></p>`),X3=B(`<div role="none" class="preview svelte-6mkk55"><!></div>`),Z3=B(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section>`),Q3=B(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),$3=B(`<a target="_blank" rel="noopener noreferrer"> </a>`),e6=B(`<a> </a>`),t6=B(`<p> </p>`),n6=B(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <!></section>`),r6=B(`<div role="none" class="detail svelte-6mkk55"><!> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section> <!> <!> <!> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <!></section> <!> <!> <!> <!></div>`),i6={hash:`svelte-6mkk55`,code:`.detail.svelte-6mkk55 {flex:none;overflow-x:hidden;overflow-y:auto;padding:16px;width:320px;.preview:where(.svelte-6mkk55) {overflow:hidden;margin:0 0 16px;border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-content-background-color);aspect-ratio:1 / 1;}section:where(.svelte-6mkk55) {&:not(:last-child) {margin:0 0 16px;}& > * {margin:0 0 4px;word-break:break-all;}}h4:where(.svelte-6mkk55) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}}`}}));function rpe(e,t){k(t,!0),G(e,lpe);let n=()=>j(RF,`$overlaidAsset`,i),r=()=>j(w2,`$showAssetOverlay`,i),[i,a]=hn(),o=N(void 0),s=N(void 0),c=M(()=>n()?.kind),l=M(()=>n()?.blobURL),u=M(()=>n()?.name),d=async()=>{await Hi(),z(o)&&(z(o).tabIndex=0,z(o).focus())};ri(()=>{n()&&(async()=>{P(s,await PM(n()),!0)})()}),ri(()=>{z(o)&&r()&&d()});var f=cpe();lo(F(f),()=>n()?.sha,e=>{var t=spe(),r=I(t);$fe(r,{});var i=L(r,2),a=F(i),o=F(a),d=e=>{{let t=M(()=>[`image`,`video`].includes(z(c))),r=M(()=>z(c)===`image`),i=M(()=>z(c)===`image`?z(u):void 0),a=M(()=>[`audio`,`video`].includes(z(c)));j3(e,{get kind(){return z(c)},get asset(){return n()},get blurBackground(){return z(t)},get checkerboard(){return z(r)},get alt(){return z(i)},get controls(){return z(a)}})}},f=M(()=>z(c)&&TT(z(c))),p=e=>{var t=ipe();R(()=>{K(t,`src`,z(l)),K(t,`title`,z(u))}),H(e,t)},m=e=>{var t=V();ro(I(t),()=>n()?.text??z(s).text(),null,(e,t)=>{var n=V(),r=I(n),i=e=>{var n=V();ro(I(n),()=>wS(z(t),{breaks:!0,async:!0}),null,(e,t)=>{var n=ape();Eo(n,()=>Cx(z(t)),!0),O(n),H(e,n)},e=>{var n=a6(),r=F(n,!0);O(n),R(()=>U(r,z(t))),H(e,n)}),H(e,n)},a=M(()=>z(u)?.endsWith(`.md`)),o=e=>{var n=a6(),r=F(n,!0);O(n),R(()=>U(r,z(t))),H(e,n)};W(r,e=>{z(a)?e(i):e(o,-1)}),H(e,n)}),H(e,t)},h=M(()=>z(s)?.type&&Bp(z(s).type)),g=e=>{$0(e,{children:(e,t)=>{var n=ope(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`preview_unavailable`)]),H(e,n)},$$slots:{default:!0}})};W(o,e=>{z(f)?e(d):z(s)?.type===`application/pdf`?e(p,1):z(h)?e(m,2):e(g,-1)}),O(a);var _=L(a,2),v=e=>{K3(e,{get asset(){return n()}})};W(_,e=>{n()&&e(v)}),O(i),H(e,t)}),O(f),qs(f,e=>P(o,e),()=>z(o)),R(e=>K(f,`aria-label`,e),[()=>Y(`asset_editor`)]),H(e,f),A(),a()}var ipe,ape,a6,ope,spe,cpe,lpe,upe=s((()=>{Z(),J(),X(),$(),Yp(),wx(),TS(),dc(),epe(),z3(),npe(),JF(),VM(),AT(),M2(),ipe=B(`<iframe sandbox="allow-scripts" class="svelte-9guikv"></iframe>`),ape=B(`<div role="figure" class="markdown svelte-9guikv"></div>`),a6=B(`<pre role="figure" class="svelte-9guikv"> </pre>`),ope=B(`<span role="alert"> </span>`),spe=B(`<!> <div role="none" class="row svelte-9guikv"><div role="none" class="preview svelte-9guikv"><!></div> <!></div>`,1),cpe=B(`<div role="group" class="wrapper svelte-9guikv"><!></div>`),lpe={hash:`svelte-9guikv`,code:`.wrapper.svelte-9guikv {position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);.row:where(.svelte-9guikv) {flex:auto;display:flex;overflow:hidden;

      @media (width < 768px) {flex-direction:column;.preview:where(.svelte-9guikv) {flex:none !important;aspect-ratio:1 / 1;}.detail {flex:auto;width:auto;}
      }.preview:where(.svelte-9guikv) {flex:auto;overflow:hidden;iframe:where(.svelte-9guikv),
        pre:where(.svelte-9guikv),
        .markdown:where(.svelte-9guikv) {display:block;width:100%;height:100%;}pre:where(.svelte-9guikv),
        .markdown:where(.svelte-9guikv) {margin:0;padding:16px;overflow:auto;}pre:where(.svelte-9guikv) {white-space:pre-wrap;}}.detail {background-color:var(--sui-primary-background-color);}}}`}})),o6,s6,c6=s((()=>{Zp(),iA(),TF(),o6=un([bF,nA],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return typeof n==`boolean`||typeof r==`boolean`}),s6=un([bF,nA],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return n===!0||r===!1})})),dpe,fpe,l6,ppe=s((()=>{Zp(),JF(),u3(),AT(),c6(),h3(),c3(),kF(),HE(),dpe=e=>{let{files:t,folder:n,originalAssets:r}=e,{slugify_filename:i=!1}=OF().config,a=n?.internalPath===void 0?[]:KF(n.internalPath).map(e=>e.name.normalize());return t.map(e=>{let t=r?.find(t=>t.name.normalize().toLowerCase()===e.name.normalize().toLowerCase()),o=t?.name??LE(e.name,{slugificationEnabled:i,assetNamesInSameFolder:a});return a.includes(o)||a.push(o),{action:t?`update`:`create`,name:o,path:t?.path??[n?.internalPath,o].join(`/`),file:e}})},fpe=({count:e})=>{let t=dn(LF),n=dn(RF);t&&LF.set(FF(t.path)),n&&RF.set(FF(n.path)),l3.set({...o3,saved:!0,published:dn(o6)&&!dn(s6),count:e})},l6=async(e,t)=>{let{files:n,folder:r}=e,i=dpe(e),a=i.map(({name:e,path:t,file:n})=>({name:e,path:t,size:n.size,kind:kT(e),folder:r}));await m3({changes:i.map(({action:e,path:t,file:n})=>({action:e,path:t,data:n})),savingAssets:a,options:t}),fpe({count:n.length})}}));function mpe(e,t){k(t,!0),G(e,gpe);let n=()=>j(BF,`$editingAsset`,i),r=()=>j(w2,`$showAssetOverlay`,i),[i,a]=hn(),o=M(n),s=N(!1),c=N(void 0),l=N(void 0),u=N(void 0),d=N(!1),f=async()=>{P(c,await PM(z(o)),!0),P(l,await z(c).text(),!0),P(u,z(l),!0),P(s,!0)},p=()=>{mn(BF,void 0),P(c,void 0),P(l,void 0),P(u,void 0)},m=async()=>{z(o)&&z(c)&&typeof z(u)==`string`&&await l6({folder:z(o).folder,files:[new File([z(u)],z(o).name,{type:z(c).type})],originalAssets:[z(o)]},{commitType:`uploadMedia`})};ri(()=>{z(o)&&z(c)===void 0&&f()}),ri(()=>{r()||P(s,!1)});{let t=e=>{{let t=M(()=>Y(`wrap_long_lines`));uz(e,{get label(){return z(t)},get checked(){return z(d)},set checked(e){P(d,e,!0)}})}},n=M(()=>Y(`edit_x`,{values:{name:z(o)?.name??``}})),r=M(()=>Y(`save`)),i=M(()=>z(u)===z(l));qI(e,{size:`x-large`,get title(){return z(n)},get okLabel(){return z(r)},get okDisabled(){return z(i)},okShortcuts:`Accel+S`,onOk:()=>{m()},onClose:()=>{p()},get open(){return z(s)},set open(e){P(s,e,!0)},footerExtra:t,children:(e,t)=>{var n=hpe();let r;T0(F(n),{dir:`auto`,flex:!0,get value(){return z(u)},set value(e){P(u,e,!0)}}),O(n),R(()=>r=ds(n,1,`wrapper svelte-1lnkfih`,null,r,{wrap:z(d)})),H(e,n)},$$slots:{footerExtra:!0,default:!0}})}A(),a()}var hpe,gpe,_pe=s((()=>{Z(),J(),X(),$(),JF(),ppe(),VM(),M2(),hpe=B(`<div role="none"><!></div>`),gpe={hash:`svelte-1lnkfih`,code:`.wrapper.svelte-1lnkfih {display:contents;textarea {min-height:40dvh;max-height:80dvh;font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);text-wrap:nowrap;resize:vertical;}&.wrap textarea {text-wrap:wrap;}}`}})),vpe,u6,ype=s((()=>{Ip(),YP(),Tw(),QC(),HE(),vpe=({basePath:e,path:t,extension:n,locale:r,omitLocale:i,structure:a})=>{switch(a){case`multiple_folders`:return i?`${e}/${t}.${n}`:`${e}/${r}/${t}.${n}`;case`multiple_folders_i18n_root`:case`multiple_root_folders`:return i?`${e}/${t}.${n}`:`${r}/${e}/${t}.${n}`;case`multiple_files`:return i?`${e}/${t}.${n}`:`${e}/${t}.${r}.${n}`;default:return`${e}/${t}.${n}`}},u6=({draft:e,locale:t,slug:n})=>{let{collection:r,collectionFile:i,originalEntry:a,currentValues:o,isIndexFile:s}=e,{_i18n:{defaultLocale:c,structure:l,omitDefaultLocaleFromFilePath:u}}=i??r;if(i){let{_i18n:e,file:n}=i;return ZC({_i18n:e,locale:t,path:Np(n)})}if(a?.locales[t]?.slug===n)return a.locales[t].path;let d=r,{_file:{basePath:f,subPath:p,extension:m}}=d,h=s?Cw(d)?.name:p?JP(p,{collection:d,locale:t,content:o[c],currentSlug:n}):n;return s&&h?.endsWith(`.${m}`)&&(h=h.slice(0,-m.length-1)),RE(vpe({basePath:f,path:h,extension:m,locale:t,omitLocale:u&&t===c,structure:l}).split(`/`))}})),d6,f6,bpe,xpe,Spe,p6,m6=s((()=>{YP(),Tw(),d6=(e,t)=>{let n={...e};return Object.entries(n).forEach(([e,r])=>{typeof r==`string`&&r.startsWith(`blob:`)&&t[r]&&(n[e]=t[r].file.name.replace(/\.[^.]+$/,``))}),n},f6=({draft:e})=>{let{collection:t,collectionFile:n,currentSlugs:r,currentValues:i,files:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=n??t;return{collection:t,content:{...d6(i[s],a),_slug:r?.[s]??r?._},locale:s,isIndexFile:o}},bpe=({draft:e,locale:t,localizingKeyPaths:n})=>{let{isNew:r,collection:i,collectionFile:a,originalLocales:o,currentSlugs:s,currentValues:c,files:l,isIndexFile:u}=e,{_type:d}=i,{identifier_field:f=`title`,slug:p=`{{${f}}}`}=d===`entry`?i:{},{_i18n:{defaultLocale:m}}=a??i,h=s?.[t]??s?._;return r||!o[t]?JP(p,{collection:i,locale:t,content:{...d6(c[m],l),...d6(Object.fromEntries(n.map(e=>[e,c[t]?.[e]])),l),_slug:h},isIndexFile:u}):h},xpe=({draft:e,defaultLocaleSlug:t})=>{let{collection:n,collectionFile:r,currentLocales:i}=e,{_type:a}=n,{identifier_field:o=`title`,slug:s=`{{${o}}}`}=a===`entry`?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:l,i18nSingleFileDefaultRoot:u}}}=r??n,d=[...s.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,e])=>!!e).map(([,e])=>e.replace(/^fields\./,``));if(!(l||u||!d.length))return Object.fromEntries(Object.entries(i).map(([n])=>[n,n===c?t:bpe({draft:e,locale:n,localizingKeyPaths:d})]))},Spe=({draft:e,defaultLocaleSlug:t,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;let{collection:i,collectionFile:a}=e,{_i18n:{canonicalSlug:{value:o}}}=a??i;return o===`{{slug}}`?t:JP(o,{...r,currentSlug:t})},p6=({draft:e})=>{let{isNew:t,collection:n,collectionFile:r,fileName:i,currentSlugs:a,isIndexFile:o}=e,{_type:s}=n,{identifier_field:c=`title`,slug:l=`{{${c}}}`}=s===`entry`?n:{};if(o)return{defaultLocaleSlug:Cw(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};let{_i18n:{defaultLocale:u}}=r??n,d=f6({draft:e}),f=i??(t?JP(l,d):a?.[u]??a?._),p=xpe({draft:e,defaultLocaleSlug:f});return{defaultLocaleSlug:f,localizedSlugs:p,canonicalSlug:Spe({draft:e,defaultLocaleSlug:f,localizedSlugs:p,fillSlugOptions:d})}}})),Cpe,wpe,h6,g6,Tpe,Epe,Dpe,Ope,kpe,Ape,jpe=s((()=>{Cpe=u(CO(),1),JF(),AT(),YP(),ype(),m6(),HE(),wpe=[`multiple_folders`,`multiple_folders_i18n_root`,`multiple_root_folders`],h6=/(?<path>.+?)(?:\/[^/]+)?$/,g6=(e,t)=>e.includes(`{{`)?JP(e,t):e,Tpe=(e,t)=>{let n=e.lastIndexOf(`.`),r=e.substring(0,n),i=t?.includes(`/`)?t.split(`/`).at(-1):void 0;return i&&!i.includes(`{{`)&&(r=r.match(h6)?.groups?.path),r},Epe=({internalPath:e,internalSubPath:t,entryFolderPath:n,isMultiFolders:r,isNestedEntry:i,fillSlugOptions:a})=>{let o=RE([r||i?n:e,t]);return zE(g6(o,a))},Dpe=({publicPath:e,subPathFolderPath:t,subPath:n,isMultiFolders:r,fillSlugOptions:i})=>{if(!r&&/^\.?$/.test(e))return e;let a=r?RE([...Array((n?.match(/\//g)??[]).length+1).fill(`..`),e,t]):e;return zE(g6(a,i))},Ope=({folder:e,fillSlugOptions:t})=>{let{entryRelative:n,internalPath:r,internalSubPath:i,publicPath:a}=e;if(r===void 0||a===void 0)return{resolvedInternalPath:``,resolvedPublicPath:``};if(!n)return{resolvedInternalPath:JP(r,t),resolvedPublicPath:JP(a,t)};let{collection:o,entryFilePath:s}=t,c=wpe.includes(o._i18n.structure),l=o._type===`entry`?o._file.subPath:void 0,u=l?.match(h6)?.groups?.path??``,d=Tpe(s??``,l),f=l?.includes(`/`)??!1;return{resolvedInternalPath:Epe({internalPath:r,internalSubPath:i,entryFolderPath:d,isMultiFolders:c,isNestedEntry:f,fillSlugOptions:t}),resolvedPublicPath:Dpe({publicPath:a,subPathFolderPath:u,subPath:l,isMultiFolders:c,fillSlugOptions:t})}},kpe=({draft:e,defaultLocaleSlug:t,folder:n})=>{let{collection:r,collectionName:i,collectionFile:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=a??r,c=Ope({folder:n,fillSlugOptions:{...f6({draft:e}),type:`media_folder`,currentSlug:t,entryFilePath:u6({draft:e,locale:s,slug:t}),isIndexFile:o}}),{resolvedInternalPath:l}=c;return{assetFolderPaths:c,assetNamesInSameFolder:KF(l).map(e=>e.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},Ape=async({file:e,folder:t,replace:n,blobURL:r,draft:i,defaultLocaleSlug:a,keyPath:o,content:s,changes:c,savingAssets:l,encodingEnabled:u})=>{let d=await VE(e),f=l.find(e=>e.sha===d&&(!t.entryRelative||(0,Cpe.default)(e.folder,t))),{savingAssetProps:p,assetNamesInSameFolder:m,assetFolderPaths:{resolvedInternalPath:h,resolvedPublicPath:g}}=kpe({draft:i,defaultLocaleSlug:a,folder:t}),_=``;if(f)_=f.name;else{_=LE(e.name,n?{}:{assetNamesInSameFolder:m});let t=n&&m.includes(_),i=h?`${h}/${_}`:_;t||m.push(_),c.push({action:t?`update`:`create`,path:i,data:e}),l.push({...p,blobURL:r,name:_,path:i,sha:d,size:e.size,kind:kT(_)})}let v=g?`${g===`/`?``:g}/${_}`:_;u&&(v=NE(v)),s[o]=s[o].replaceAll(r,v)}})),_6,v6,y6,Mpe,b6,Npe=s((()=>{aE(),Zp(),eb(),TF(),yp(),WC(),_6=(e,t=dn(bF)?.output?.json??{})=>{let{indent_style:n=`space`,indent_size:r=n===`tab`?1:2}=t;return JSON.stringify(e,null,n===`tab`?`	`.repeat(r):r).trim()},v6=e=>oie(e).trim(),y6=(e,t=dn(bF)?.output?.yaml??{},n={})=>{let{indent_size:r=2,indent_sequences:i=!0,quote:a=`none`}=t,{quote:o=!1}=n;return Qy(e,null,{indent:r,indentSeq:i,lineWidth:0,defaultKeyType:`PLAIN`,defaultStringType:o||a===`double`?`QUOTE_DOUBLE`:a===`single`?`QUOTE_SINGLE`:`PLAIN`,singleQuote:!(o||a===`double`)}).trim()},Mpe=({content:e,_file:t})=>{let{format:n,fmDelimiters:r,bodyField:{key:i=`body`,inline:a=!1}={},yamlQuote:o=!1}=t,[s,c]=r??[`---`,`---`],l=``;if(!a&&i in e&&(l=typeof e[i]==`string`?e[i]:``,delete e[i]),!Object.keys(e).length)return`${l}\n`;try{let t=``;if(n===`frontmatter`||n===`yaml-frontmatter`)t=y6(e,void 0,{quote:o});else if(n===`toml-frontmatter`)t=v6(e);else if(n===`json-frontmatter`)t=_6(e);else return``;return`${s}\n${t}\n${c}\n${!a&&l?`\n${l}\n`:``}`}catch(e){console.error(e)}return``},b6=async({content:e,_file:t})=>{let{format:n,yamlQuote:r=!1}=t,i=hp.get(n)?.formatter;if(i)return`${(await i(e)).trim()}\n`;if(n===`raw`)return typeof e.body==`string`?`${e.body}\n`:``;try{if(/^ya?ml$/.test(n))return`${y6(e,void 0,{quote:r})}\n`;if(n===`toml`)return`${v6(e)}\n`;if(n===`json`)return`${_6(e)}\n`}catch(e){return console.error(e),``}return n===`frontmatter`||HC.includes(n)?Mpe({content:e,_file:t}):``}})),Ppe,x6,S6,Fpe,Ipe,Lpe,Rpe,zpe,Bpe,C6,Vpe,Hpe,Upe,w6=s((()=>{p(),sT(),Zp(),iA(),h3(),c3(),cN(),Tw(),z6(),Jpe(),Npe(),Ppe=`order`,x6=e=>{let t=e?.reorder;if(t)return d(t)&&typeof t.key==`string`&&t.key?t.key:Ppe},S6=(e,t)=>{let n=x6(t);if(!n)return[...e];let{defaultLocale:r}=t._i18n,i=e.map(e=>{let t=Number(e.locales[r]?.content?.[n]);return{entry:e,v:t,has:Number.isFinite(t)}});return i.sort((e,t)=>e.has&&t.has?e.v-t.v:e.has?-1:+!!t.has),i.map(({entry:e})=>e)},Fpe=e=>({collection:e,collectionName:e.name,collectionFile:void 0,fields:e.fields,isIndexFile:!1}),Ipe=({collection:e,entry:t,draft:n})=>{let{_i18n:{i18nEnabled:r,defaultLocale:i,structureMap:{i18nSingleFileDefaultRoot:a}={}}}=e;if(!r)return I6({draft:n,locale:`_default`,valueMap:t.locales[i].content});let o=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([e,t])=>[e,I6({draft:n,locale:e,valueMap:t.content})]));if(a){let{lang:e,...t}=o[i]??{},n=Object.fromEntries(Object.entries(o).filter(([e])=>e!==i));return{lang:[i,...Object.keys(n)],...t,...n}}return o},Lpe=(e,t,n)=>{let r=Object.fromEntries(Object.entries(e.locales).map(([e,r])=>[e,r.content?{...r,content:{...r.content,[t]:n}}:{...r}]));return{...e,locales:r}},Rpe=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{defaultLocale:a}}=e,{slug:o,path:s}=t.locales[a],[c,l]=await Promise.all([L6({cacheDB:r,previousPath:s}),b6({content:Ipe({collection:e,entry:t,draft:n}),_file:i})]);return{action:`update`,slug:o,path:s,previousSha:c,data:l}},zpe=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{allLocales:a}}=e;return(await Promise.all(a.map(async e=>{let a=t.locales[e];if(!a?.content)return;let[o,s]=await Promise.all([L6({cacheDB:r,previousPath:a.path}),b6({content:I6({draft:n,locale:e,valueMap:a.content}),_file:i})]);return{action:`update`,slug:a.slug,path:a.path,previousSha:o,data:s}}))).filter(Boolean)},Bpe=e=>{if(e)return e;let t=dn(nA)?.repository?.databaseName;return t?new iT(t,`file-cache`):void 0},C6=async(e,t,{cacheDB:n}={})=>{let r=x6(e);if(!r)return{changes:[],savingEntries:[]};let{_i18n:{i18nEnabled:i,defaultLocale:a,structureMap:{i18nSingleFile:o,i18nSingleFileDefaultRoot:s}={}}}=e,c=!i||o||s,l=Bpe(n),u=[];for(let[e,n]of t.entries()){let t=e+1;Number(n.locales[a]?.content?.[r])!==t&&u.push(Lpe(n,r,t))}let d=Fpe(e);return{changes:(await Promise.all(u.map(t=>c?Rpe({collection:e,entry:t,draft:d,cacheDB:l}).then(e=>[e]):zpe({collection:e,entry:t,draft:d,cacheDB:l})))).flat(),savingEntries:u}},Vpe=async(e,t,{silent:n=!1}={})=>{let{changes:r,savingEntries:i}=await C6(e,t);return r.length?(await m3({changes:r,savingEntries:i,options:{commitType:`update`,collection:e}}),n||s3.set({...o3,saved:!0,count:i.length}),i.length):0},Hpe=(e,{excludeIds:t}={})=>{let n=Cw(e)?.name,r=iN(e.name).filter(e=>e.slug!==n&&!(t&&t.has(e.id)));return S6(r,e)},Upe=async(e,{excludeIds:t,cacheDB:n}={})=>!e||e._type!==`entry`||!x6(e)?{changes:[],savingEntries:[]}:C6(e,Hpe(e,{excludeIds:t}),{cacheDB:n})})),T6,E6,D6,O6,k6,A6,j6,M6=s((()=>{T6=u(CO(),1),Zp(),OO(),E6=/\.__sc_\w+$/,D6=ln(),O6=ln(!0),k6=ln(!1),A6=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!E6.test(e))),j6=un([D6],([e])=>{if(!e)return!1;let{originalLocales:t,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:a,currentValues:o}=e,s=Object.fromEntries(Object.entries(o).map(([e,t])=>[e,A6(t)]));return!(0,T6.default)(t,n)||!(0,T6.default)(r,i)||!(0,T6.default)(a,s)}),D6.subscribe(e=>{DO.devModeEnabled&&console.info(`entryDraft`,e)})})),N6,Wpe,Gpe=s((()=>{jP(),jC(),N6=({field:e,keyPath:t,keyPathList:n})=>{let{widget:r}=e,i=r===`list`;if(n.push(t),i||r===`object`){let{fields:r}=e,{types:a,typeKey:o=`type`}=e;if(r)r.forEach(e=>{N6({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})});else if(a)n.push(i?`${t}.*.${o}`:`${t}.${o}`),a.forEach(e=>{e.fields?.forEach(e=>{N6({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})})});else if(i){let{field:r}=e;r?N6({field:r,keyPath:`${t}.*`,keyPathList:n}):n.push(`${t}.*`)}}else r&&kC.includes(r)&&xP(e)&&n.push(`${t}.*`)},Wpe=e=>{let t=[];return e.forEach(e=>{N6({field:e,keyPath:e.name,keyPathList:t})}),t}})),Kpe,P6,F6,qpe,I6,Jpe=s((()=>{p(),Ip(),gc(),aE(),Zp(),TF(),w6(),M6(),Gpe(),jP(),GS(),WC(),fb(),Kpe=new Map,P6=e=>e==null||e===``||Array.isArray(e)&&!e.length||d(e)&&!Object.keys(e).length,F6=({key:e,field:t,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:a,omitEmptyOptionalFields:o})=>{if(E6.test(e)){delete r[e];return}let s=r[e];if(a&&t?.widget===`datetime`&&!WS(t).format){let e=new FT(s);s=e.isValid()?e:void 0}if(o&&t&&!TP({fieldConfig:t,locale:n})&&P6(s)){let t=Object.keys(r).filter(t=>t.startsWith(`${e}.`));t.some(e=>!E6.test(e)&&!P6(r[e]))?i[e]=s:t.forEach(e=>{delete r[e]})}else i[e]=s;delete r[e]},qpe=({collectionName:e,fileName:t,fields:n,locale:r,valueMap:i,canonicalSlugKey:a,orderKey:o,isIndexFile:s=!1,isTomlOutput:c=!1})=>{let l=f(i),u={},{omit_empty_optional_fields:d=!1}=dn(bF)?.output??{},p={collectionName:e,fileName:t,valueMap:i,isIndexFile:s},m={locale:r,unsortedMap:l,sortedMap:u,isTomlOutput:c,omitEmptyOptionalFields:d};return a&&a in l&&F6({...m,key:a}),o&&o in l&&F6({...m,key:o}),Wpe(n).forEach(e=>{let t=wP({...p,keyPath:e});if(e in l)F6({...m,key:e,field:t});else if(t?.widget===`keyvalue`)u[e]={},Object.entries(l).filter(([t])=>t.startsWith(`${e}.`)).forEach(([e])=>{F6({...m,key:e,field:t})});else{let n=db(Kpe,e,()=>RegExp(`^${jp(e.replaceAll(`*`,`\\d+`)).replaceAll(`\\\\d\\+`,`\\d+`)}$`));Object.keys(l).filter(e=>n.test(e)).sort(([e,t])=>Fp(e,t)).forEach(e=>{let n=t??wP({...p,keyPath:e});F6({...m,key:e,field:n})})}}),Object.keys(l).sort(([e,t])=>Fp(e,t)).forEach(e=>{F6({...m,key:e})}),hc(u)},I6=({draft:e,locale:t,valueMap:n})=>{let{collection:r,collectionName:i,collectionFile:a,fields:o,isIndexFile:s}=e,{_file:c,_i18n:{canonicalSlug:{key:l}}}=a??r,u=UC.includes(c.format),d=qpe({collectionName:i,fileName:a?.name,fields:o,locale:t,valueMap:n,canonicalSlugKey:l,orderKey:x6(r),isIndexFile:s,isTomlOutput:u});return!u&&bP(o,`list`)?d[o[0].name]??[]:bP(o,`keyvalue`)?d[o[0].name]??{}:d}})),Ype,L6,Xpe,Zpe,R6,z6=s((()=>{Yp(),p(),sT(),Zp(),fm(),iA(),TF(),eI(),jpe(),ype(),Jpe(),jP(),Npe(),Ype=async({draft:e,slugs:{defaultLocaleSlug:t,canonicalSlug:n,localizedSlugs:r}})=>{let i=dn(am),{collection:a,collectionName:o,collectionFile:s,fileName:c,isIndexFile:l,currentLocales:u,currentValues:d,files:p}=e,{_i18n:{canonicalSlug:{key:m}}}=s??a,h=[],g=[],{encode_file_path:_=!1}=dn(bF)?.output??{},v={collectionName:o,fileName:c,keyPath:``,valueMap:{},isIndexFile:l},y={draft:e,defaultLocaleSlug:t,changes:h,savingAssets:g};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(d).map(async([a,o])=>{let s=r?.[a]??t,c=u6({draft:e,locale:a,slug:s});return u[a]?(n!==void 0&&(o[m]=n),await Promise.all(Object.entries(o).map(async([e,t])=>{if(t===void 0){delete o[e];return}if(typeof t!=`string`)return;o[e]=t.trim();let n=[...t.matchAll(Lp(`g`))];if(!n.length)return;let r=wP({...v,valueMap:o,keyPath:e}),a={...y,keyPath:e,content:o,encodingEnabled:r?.widget===`richtext`||r?.widget===`markdown`||_};await Promise.all(n.map(async([e])=>{let{file:t,folder:n=i,replace:r}=p[e]??{};t&&await Ape({...a,file:t,folder:n,replace:r,blobURL:e})}))})),[a,{slug:s,path:c,content:f(o)}]):[a,{path:c}]}))),changes:h,savingAssets:g}},L6=async({previousPath:e,cacheDB:t})=>{if(e)return(await t?.get(e))?.sha},Xpe=async({draft:e,savingEntry:t,cacheDB:n})=>{let{collection:r,isNew:i,originalSlugs:a,originalEntry:o,collectionFile:s}=e,{_file:c,_i18n:{i18nEnabled:l,defaultLocale:u,structureMap:{i18nSingleFileDefaultRoot:d}={}}}=s??r,{slug:f,path:p,content:m}=t.locales[u],h=!i&&(a?.[u]??a?._)!==f,g=o?.locales[u]?.path;return{action:i?`create`:h?`move`:`update`,slug:f,path:p,previousPath:h?g:void 0,previousSha:await L6({cacheDB:n,previousPath:g}),data:await b6({content:(()=>{if(!l)return I6({draft:e,locale:`_default`,valueMap:m});let n=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([t,n])=>[t,I6({draft:e,locale:t,valueMap:n.content})]));if(d){let{lang:e,...t}=n[u]??{},r=Object.fromEntries(Object.entries(n).filter(([e])=>e!==u));return{lang:[u,...Object.keys(r)],...t,...r}}return n})(),_file:c})}},Zpe=async({draft:e,savingEntry:t,cacheDB:n,locale:r})=>{let{collection:i,isNew:a,originalLocales:o,currentLocales:s,originalSlugs:c,originalEntry:l,collectionFile:u}=e,{_file:d}=u??i,{slug:f,path:p,content:m}=t.locales[r]??{},h=l?.locales[r]?.path,g=await L6({cacheDB:n,previousPath:h});if(s[r]){let t=!a&&o[r]&&(c?.[r]??c?._)!==f;return{action:a||!o[r]?`create`:t?`move`:`update`,slug:f,path:p,previousPath:t?h:void 0,previousSha:g,data:await b6({content:I6({draft:e,locale:r,valueMap:m}),_file:d})}}if(!a&&o[r])return{action:`delete`,slug:f,path:p,previousSha:g}},R6=async({draft:e,slugs:t})=>{let{id:n,collection:r,collectionFile:i}=e,{defaultLocaleSlug:a}=t,{_file:o,_i18n:{i18nEnabled:s,allLocales:c,defaultLocale:l,structureMap:{i18nSingleFile:u,i18nSingleFileDefaultRoot:d}}}=i??r,{localizedEntryMap:f,changes:p,savingAssets:m}=await Ype({draft:e,slugs:t}),h={id:n,slug:a,subPath:o.fullPathRegEx?f[l].path.match(o.fullPathRegEx)?.groups?.subPath??a:a,locales:Object.fromEntries(Object.entries(f))};await $F({type:`preSave`,draft:e,savingEntry:h});let g=dn(nA)?.repository?.databaseName,_={draft:e,savingEntry:h,cacheDB:g?new iT(g,`file-cache`):void 0};return!s||u||d?p.push(await Xpe({..._})):await Promise.all(c.map(async e=>{let t=await Zpe({..._,locale:e});t&&p.push(t)})),{savingEntry:h,savingAssets:m,changes:p}}})),Qpe,B6,$pe,eme,tme,nme,rme=s((()=>{Yp(),Zp(),JF(),u3(),fm(),VM(),h3(),c3(),cN(),Tw(),DC(),z6(),m6(),ZM(),Qpe=({entry:e})=>{let{locales:t}=e,n=Object.entries(t),r=Object.fromEntries(n.map(([e])=>[e,!0])),i=Object.fromEntries(n.map(([e,{slug:t}])=>[e,t])),a=Object.fromEntries(n.map(([e,{content:t}])=>[e,t]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:e,originalLocales:r,currentLocales:structuredClone(r),originalSlugs:i,currentSlugs:structuredClone(i),originalValues:a,currentValues:structuredClone(a),files:{},validities:{},validationMessages:{},expanderStates:{}}},B6=async({draftProps:e,indexFile:t,savingEntries:n,changes:r})=>{let{collection:i,collectionFile:a}=e,{fields:o=[]}=a??i,s={...e,fields:t?.fields??o},{savingEntry:c,changes:l}=await R6({draft:s,slugs:p6({draft:s})});n.push(c),r.push(...l)},$pe=async({entry:e,savingEntries:t,changes:n})=>{let r=Qpe({entry:e});await Promise.all(qM(e).map(async i=>{let a=i.name,o=ww(i,e),s=o?Cw(i):void 0,c=wC(i,e),l={indexFile:s,savingEntries:t,changes:n},u={...r,collection:i,collectionName:a,isIndexFile:o};c.length?await Promise.all(c.map(e=>B6({...l,draftProps:{...u,collectionFile:e,fileName:e.name}}))):await B6({...l,draftProps:u})}))},eme=async({_globalAssetFolder:e,newPath:t,asset:n,savingEntries:r,changes:i})=>{let a=RM(n)??n.blobURL,o=a?await oN(a):[];if(!a||!o.length)return;let{publicPath:s}=um(n.path).find(({collectionName:e})=>e!==void 0)??e,c=await oN(a,{entries:structuredClone(o),newURL:t.replace(n.folder.internalPath??``,s??``)});c.length&&await Promise.all(c.map(async e=>$pe({entry:e,savingEntries:r,changes:i})))},tme=({action:e,movedAssets:t})=>{let n=dn(LF)?.path,r=t.find(e=>e.asset.path===n),i=dn(RF)?.path,a=t.find(e=>e.asset.path===i);r&&LF.set(FF(r.path)),a&&RF.set(FF(a.path)),l3.set({...o3,moved:e===`move`,renamed:e===`rename`,count:t.length})},nme=async(e,t)=>{let n=dn(am),r=[],i=[],a=[];await Promise.all(t.map(async({asset:e,path:t})=>{let o=t,s=Vp(o).basename;a.push({...e,path:o,name:s}),r.push({action:`move`,path:o,previousPath:e.path,previousSha:e.sha,data:new File([e.file??await PM(e)],s)}),await eme({_globalAssetFolder:n,newPath:o,asset:e,savingEntries:i,changes:r})})),await m3({changes:r,savingEntries:i,savingAssets:a,options:{commitType:`uploadMedia`}}),tme({action:e,movedAssets:t})}}));function ime(e,t){let n=za();k(t,!0),G(e,sme);let r=()=>j(VF,`$renamingAsset`,a),i=()=>j(w2,`$showAssetOverlay`,a),[a,o]=hn(),s=N(!1),c=N(Nr({filename:``})),l=N(``),u=N(Nr([])),d=N(Nr([])),f=M(r),p=M(()=>z(c).dirname),m=M(()=>z(c).filename),h=M(()=>z(c).extension),g=M(()=>{if(!z(l).trim())return`empty`;if(z(l).includes(`/`))return`character`;if(z(u).includes(`${z(l)}${z(h)?`.${z(h)}`:``}`))return`duplicate`}),_=M(()=>!!z(g)),v=async()=>{z(f)&&(P(c,Vp(z(f).path),!0),P(l,z(m),!0),P(u,KF(z(p)).map(e=>e.name).filter(e=>e!==z(f).name),!0),P(d,await e3(z(f)),!0),P(s,!0))},y=async()=>{if(!z(f))return;let e=z(f).path,t=`${z(p)}/${z(l)}${z(h)?`.${z(h)}`:``}`;await nme(`rename`,[{asset:z(f),path:t}]),K2().path===`/assets/${e}`&&await X2(`/assets/${t}`,{replaceState:!0,notifyChange:!1})};ri(()=>{z(f)&&v()}),ri(()=>{i()||(P(s,!1),mn(VF,void 0))});{let t=M(()=>Y(`rename_x`,{values:{name:z(f)?.name??``}})),r=M(()=>Y(`rename`)),i=M(()=>z(l)===z(m)||z(_));qI(e,{get title(){return z(t)},get okLabel(){return z(r)},get okDisabled(){return z(i)},onOk:()=>{y()},onClose:()=>{mn(VF,void 0)},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{var r=ome(),i=I(r),a=F(i,!0);O(i);var o=L(i,2),s=F(o);oL(s,{dir:`auto`,flex:!0,get invalid(){return z(_)},get"aria-errormessage"(){return`${n}-error`},get value(){return z(l)},set value(e){P(l,e,!0)}});var c=L(s,2),u=e=>{var t=ame(),n=F(t);O(t),R(()=>U(n,`.${z(h)??``}`)),H(e,t)};W(c,e=>{z(h)&&e(u)}),O(o);var f=L(o,2),p=F(f),m=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`enter_new_name_for_asset_error.${z(g)}`)]),H(e,t)};W(p,e=>{z(_)&&e(m)}),O(f),R(e=>{U(a,e),K(f,`id`,`${n}-error`)},[()=>Y(`enter_new_name_for_asset`,{values:{count:z(d).length}})]),H(e,r)},$$slots:{default:!0}})}A(),o()}var ame,ome,sme,cme=s((()=>{Z(),J(),X(),$(),Yp(),$2(),JF(),rme(),t3(),M2(),ame=B(`<span role="none"> </span>`),ome=B(`<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!> <!></div> <div role="none" class="error svelte-22gadf"><!></div>`,1),sme={hash:`svelte-22gadf`,code:`p.svelte-22gadf {margin:0 0 8px;}div.svelte-22gadf {display:flex;align-items:center;gap:4px;}.error.svelte-22gadf {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}`}}));function lme(e,t){k(t,!0),G(e,fme);let n=()=>j(A2,`$listedAssets`,a),r=()=>j(LF,`$focusedAsset`,a),i=()=>j(Poe,`$selectedAssetPathSet`,a),[a,o]=hn(),s=M(()=>t.asset.name),c=M(()=>t.asset.kind),l=e=>{IF.update(n=>{let r=n.indexOf(t.asset);return e&&r===-1&&n.push(t.asset),!e&&r>-1&&n.splice(r,1),n})};{let a=M(()=>n().indexOf(t.asset));DL(e,{get"aria-rowindex"(){return z(a)},onChange:e=>{l(e.detail.selected)},onfocus:()=>{mn(LF,t.asset)},onclick:()=>{(AE.isSmallScreen||AE.isMediumScreen)&&r()&&ET(r())&&X2(`/assets/${r().path}`,{transitionType:`forwards`})},ondblclick:()=>{r()&&ET(r())&&X2(`/assets/${r().path}`,{transitionType:`forwards`})},children:(e,n)=>{var r=dme(),a=I(r),o=e=>{CL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>i().has(t.asset.path));HI(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{l(e)}})}},$$slots:{default:!0}})};W(a,e=>{AE.isSmallScreen||AE.isMediumScreen||e(o)});var u=L(a,2);CL(u,{class:`image`,children:(e,n)=>{{let n=M(()=>t.viewType===`list`?`icon`:`tile`),r=M(()=>z(c)===`image`);j3(e,{get kind(){return z(c)},get asset(){return t.asset},get variant(){return z(n)},get cover(){return AE.isSmallScreen},get checkerboard(){return z(r)}})}},$$slots:{default:!0}});var d=L(u,2),f=e=>{CL(e,{class:`title`,children:(e,t)=>{var n=ume();lI(F(n),{lines:2,children:(e,t)=>{gt();var n=Ra();R(()=>U(n,z(s))),H(e,n)},$$slots:{default:!0}}),O(n),H(e,n)},$$slots:{default:!0}})};W(d,e=>{(!AE.isSmallScreen||t.viewType===`list`)&&e(f)}),H(e,r)},$$slots:{default:!0}})}A(),o()}var ume,dme,fme,pme=s((()=>{Z(),J(),$(),z3(),$2(),JF(),AT(),M2(),jE(),ume=B(`<div role="none" class="label svelte-17zk54k"><!></div>`),dme=B(`<!> <!> <!>`,1),fme={hash:`svelte-17zk54k`,code:`.label.svelte-17zk54k {word-break:break-all;}`}}));function V6(e,t){let n=q(t,`loading`,3,`lazy`),r=q(t,`asset`,3,void 0),i=q(t,`src`,3,void 0),a=q(t,`variant`,3,void 0),o=q(t,`blurBackground`,3,!1),s=q(t,`cover`,3,!1),c=q(t,`checkerboard`,3,!1),l=q(t,`alt`,3,``),u=ec(t,mme);j3(e,tc({kind:`image`,get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return a()},get blurBackground(){return o()},get cover(){return s()},get checkerboard(){return c()},get alt(){return l()}},()=>u))}var mme,H6=s((()=>{Z(),J(),z3(),mme=new Set([`$$slots`,`$$events`,`$$legacy`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`alt`])}));function U6(e,t){k(t,!0),G(e,vme);let n=q(t,`files`,27,()=>Nr([])),r=q(t,`transformedFileMap`,3,void 0),i=q(t,`removable`,3,!0);var a=_me();vo(a,23,n,(e,t)=>`${e.name}-${t}`,(e,t,a)=>{var o=V();ro(I(o),nT,null,e=>{let o=M(()=>{let{name:e,type:n,size:r}=z(t);return{name:e,type:n,size:r}}),s=M(()=>r()?.get(z(t)));var c=gme(),l=F(c),u=e=>{{let n=M(()=>URL.createObjectURL(z(t)));V6(e,{get src(){return z(n)},variant:`icon`,checkerboard:!0})}},d=M(()=>lM.includes(z(o).type)),f=e=>{var t=hme();tI(F(t),{name:`draft`}),O(t),H(e,t)};W(l,e=>{z(d)?e(u):e(f,-1)});var p=L(l,2),m=F(p);lI(F(m),{children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>z(o).name.normalize()]),H(e,n)},$$slots:{default:!0}}),O(m);var h=L(m,2),g=F(h);lo(g,()=>Xh.current,e=>{var n=Ra();R(e=>U(n,e),[()=>Y(`file_meta`,{values:{type:Y(`file_type_labels.${z(t).type.split(`/`)[1]}`,{default:Vp(z(o).name).extension?.toUpperCase()}),size:FE(z(o).size)}})]),H(e,n)});var _=L(g,2),v=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`file_meta_converted_from_x`,{values:{type:Y(`file_type_labels.${z(s).type.split(`/`)[1]}`,{default:Vp(z(s).name).extension?.toUpperCase()})}})]),H(e,t)};W(_,e=>{z(s)&&z(s).type!==z(t).type&&e(v)}),O(h),O(p);var y=L(p,2);{let e=M(()=>Y(`remove`)),t=M(()=>!i()||n().length===1);bI(y,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(e)},get hidden(){return z(t)},onclick:e=>{e.stopPropagation(),n().splice(z(a),1)},children:(e,t)=>{tI(e,{name:`close`})},$$slots:{default:!0}})}O(c),H(e,c)}),H(e,o)}),O(a),H(e,a),A()}var hme,gme,_me,vme,yme=s((()=>{Z(),J(),X(),$(),Yp(),rT(),H6(),HE(),dM(),hme=B(`<span role="none" class="image svelte-lbhi1w"><!></span>`),gme=B(`<div role="listitem" class="file svelte-lbhi1w"><!> <div role="none" class="info svelte-lbhi1w"><div role="none" class="name"><!></div> <div role="none" class="meta svelte-lbhi1w"><!> <!></div></div> <!></div>`),_me=B(`<div role="list" class="files svelte-lbhi1w"></div>`),vme={hash:`svelte-lbhi1w`,code:`.files.svelte-lbhi1w {display:flex;flex-direction:column;gap:16px;margin:0 8px;}.file.svelte-lbhi1w {display:flex;align-items:center;gap:16px;overflow:hidden;.preview {flex:none;}.image:where(.svelte-lbhi1w) {flex:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1 / 1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.info:where(.svelte-lbhi1w) {flex:auto;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:start;.meta:where(.svelte-lbhi1w) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}}}`}}));function W6(e,t){k(t,!0),G(e,Tme);let n=e=>{var t=V(),n=I(t),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`dropped_image_type_mismatch`)]),H(e,t)},a=M(()=>r()===lM.join(`,`)),o=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`dropped_file_type_mismatch`,{values:{type:XC(Xh.current,{type:`disjunction`}).format(r().split(/,\s*/))}})]),H(e,t)};W(n,e=>{z(a)?e(i):e(o,-1)}),H(e,t)},r=q(t,`accept`,3,void 0),i=q(t,`disabled`,3,!1),a=q(t,`multiple`,3,!1),o=q(t,`showUploadButton`,3,!1),s=q(t,`showFilePreview`,3,!1),c=q(t,`onDrop`,3,void 0),l=q(t,`children`,3,void 0),u=N(void 0),d=N(!1),f=N(!1),p=N(!1),m=N(void 0),h=N(Nr([])),g=M(()=>o()||s()&&z(h).length),_=()=>{z(m)?.open()},v=()=>{z(h).length&&(P(h,[],!0),c()?.({files:z(h)}))},y=e=>{P(h,a()?e:e.slice(0,1),!0),c()?.({files:z(h)})},b=e=>{c()?.({files:e.detail.files})};lc(()=>(z(u)?.addEventListener(`Select`,b),()=>{z(u)?.removeEventListener(`Select`,b)})),ri(()=>{!z(g)&&z(f)&&P(p,!0)});var x={openFilePicker:_,reset:v},S=wme(),C=I(S),w=F(C),T=e=>{var t=Sme(),r=F(t),c=e=>{var t=xme(),r=I(t),o=F(r),s=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`drop_files_or_click_to_browse`,{values:{count:a()?2:1}})]),H(e,t)},c=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`tap_to_browse`)]),H(e,t)};W(o,e=>{AE.hasMouse?e(s):e(c,-1)}),O(r);var l=L(r,2),u=F(l);{let e=e=>{tI(e,{name:`cloud_upload`})},t=M(()=>Y(`choose_files`,{values:{count:a()?2:1}}));bI(u,{variant:`primary`,get label(){return z(t)},get disabled(){return i()},onclick:()=>{_()},startIcon:e,$$slots:{startIcon:!0}})}O(l);var d=L(l,2),p=e=>{var t=bme(),r=F(t);n(r),O(t),H(e,t)};W(d,e=>{z(f)&&e(p)}),H(e,t)};W(r,e=>{o()&&e(c)});var l=L(r,2),u=e=>{U6(e,{get files(){return z(h)},set files(e){P(h,e,!0)}})};W(l,e=>{s()&&z(h).length&&e(u)}),O(t),H(e,t)},E=e=>{var t=V();Ao(I(t),()=>l()??D),H(e,t)};W(w,e=>{z(g)?e(T):e(E,-1)});var ee=L(w,2),te=e=>{var t=Cme(),n=F(t),r=F(n);tI(r,{name:`download`});var i=L(r,2),o=F(i,!0);O(i),O(n),O(t),R(e=>U(o,e),[()=>Y(`drop_files_here`,{values:{count:a()?2:1}})]),H(e,t)};W(ee,e=>{z(d)&&e(te)}),O(C),qs(C,e=>P(u,e),()=>z(u));var ne=L(C,2);qs(gL(ne,{get accept(){return r()},get multiple(){return a()},onSelect:({files:e})=>{y(e)}}),e=>P(m,e,!0),()=>z(m));var re=L(ne,2),ie=e=>{{let t=M(()=>Y(`unsupported_file_type`));nL(e,{get title(){return z(t)},get open(){return z(p)},set open(e){P(p,e,!0)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}};return W(re,e=>{z(g)||e(ie)}),wa(`dragover`,C,e=>{e.preventDefault(),!(i()||!e.dataTransfer)&&(e.dataTransfer.dropEffect=`copy`,P(d,!0),P(f,!1))}),wa(`dragleave`,C,e=>{e.preventDefault(),!i()&&P(d,!1)}),wa(`dragend`,C,e=>{e.preventDefault(),!i()&&P(d,!1)}),wa(`drop`,C,async e=>{if(e.preventDefault(),i()||!e.dataTransfer)return;P(d,!1);let t=await Up(e.dataTransfer,{accept:r()});t.length?y(t):P(f,!0)}),H(e,S),A(x)}var bme,xme,Sme,Cme,wme,Tme,G6=s((()=>{Z(),J(),X(),$(),Yp(),dc(),yme(),QC(),jE(),dM(),bme=B(`<div role="alert"><!></div>`),xme=B(`<div role="none"><!></div> <div role="none"><!></div> <!>`,1),Sme=B(`<div role="none" class="content svelte-1hhq62q"><!> <!></div>`),Cme=B(`<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>`),wme=B(`<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>`,1),Tme={hash:`svelte-1hhq62q`,code:`.drop-target.svelte-1hhq62q {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;& > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}button:not(:disabled) {pointer-events:auto;}}.drop-indicator.svelte-1hhq62q {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl) / 80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;div:where(.svelte-1hhq62q) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);.icon {color:var(--sui-secondary-foreground-color);font-size:48px;}}}.content.svelte-1hhq62q {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}`}}));function Eme(e,t){k(t,!0);let n=()=>j(sm,`$targetAssetFolder`,r),[r,i]=hn(),a=q(t,`label`,3,void 0),o=M(()=>!dm(n()));{let t=e=>{tI(e,{name:`cloud_upload`})},n=M(()=>!a()),r=M(()=>Y(`upload_assets`));bI(e,{variant:`primary`,get iconic(){return z(n)},get disabled(){return z(o)},get label(){return a()},get"aria-label"(){return z(r)},onclick:()=>{mn(T2,!0)},startIcon:t,$$slots:{startIcon:!0}})}A(),i()}var Dme=s((()=>{Z(),J(),X(),$(),fm(),M2()}));function K6(e,t){G(e,Ame);let n=q(t,`children`,3,void 0),r=ec(t,Ome);var i=kme();Cs(i,()=>({role:`group`,class:`list-container`,...r}),void 0,void 0,void 0,`svelte-1sdsl2g`),Ao(F(i),()=>n()??D),O(i),H(e,i)}var Ome,kme,Ame,q6=s((()=>{Z(),J(),Ome=new Set([`$$slots`,`$$events`,`$$legacy`,`children`]),kme=B(`<div><!></div>`),Ame={hash:`svelte-1sdsl2g`,code:`.list-container.svelte-1sdsl2g {--icon-size: 36px;flex:auto;position:relative;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;}`}}));function J6(e,t){k(t,!0),G(e,Nme);let n=q(t,`children`,3,void 0),r=ec(t,jme);var i=Mme();ro(F(i),nT,null,e=>{dce(e,tc({multiple:!0,clickToSelect:!1},()=>r,{children:(e,t)=>{var r=V();Ao(I(r),()=>n()??D),H(e,r)},$$slots:{default:!0}}))}),O(i),R(()=>ds(i,1,`${t.viewType??``}-view`,`svelte-1sfbolp`)),H(e,i),A()}var jme,Mme,Nme,Y6=s((()=>{Z(),J(),$(),rT(),jme=new Set([`$$slots`,`$$events`,`$$legacy`,`viewType`,`children`]),Mme=B(`<div role="none"><!></div>`),Nme={hash:`svelte-1sfbolp`,code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}.grid-view.svelte-1sfbolp {
    @media (width < 768px) {padding:4px;
    }.row-group-caption {display:block;grid-column:1 / -1; /* span the entire row */th {display:block;}}.row-group:not(:first-child) .row-group-caption {margin-top:16px;}.grid-body {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 200px), 1fr));gap:16px;border-width:0;

        @media (width < 768px) {grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 160px), 1fr));gap:8px;
        }}.grid-row {display:block;position:relative;overflow:hidden;height:auto;text-align:start;.grid-cell {display:block;&.image:empty {aspect-ratio:1 / 1;}}.checkbox {position:absolute;inset-block-start:4px;inset-inline-start:4px;z-index:2;}.title {.label {overflow:hidden;margin:12px;height:40px;line-height:1.5;}}&[tabindex] {border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-secondary-background-color);cursor:pointer;transition:background-color 200ms;&:is(:hover, :focus, :active) {background-color:var(--sui-hover-background-color);}}}}.list-view.svelte-1sfbolp {
    @media (width < 768px) {padding:0;
    }[role='grid'] {
        @media (width < 768px) {width:100%;--sui-focus-ring-width: 0;
        }.row-group {.row-group-caption + .grid-row {.grid-cell {border-top-width:0 !important;}}.row-group-caption ~ .grid-row:last-child {.grid-cell {border-bottom-width:0 !important;}}}.grid-row {transition-property:background-color, outline-color;transition-duration:200ms;&[tabindex] {cursor:pointer;}&:hover {background-color:var(--sui-hover-background-color);}&:last-child .grid-cell {border-width:1px 0;}}.grid-cell {overflow:hidden;border-width:1px 0 0;border-color:var(--sui-secondary-border-color);padding:0 16px 0 0;height:40px;max-width:100%;color:var(--sui-secondary-foreground-color);white-space:nowrap;vertical-align:middle;

          @media (width < 768px) {border-width:0 !important;height:64px;
          }&.checkbox {padding-inline-start:8px !important;width:44px;}&.title {width:100%; /* flex: auto */color:var(--sui-primary-foreground-color);}&:first-child {padding-inline-start:16px;}.label {overflow:hidden;

            @media (width < 768px) {white-space:normal;line-height:var(--sui-line-height-compact);
            }}&.image {width:48px;&:empty::before {display:block;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);content:'';}}}}}`}}));function Pme(e,t){k(t,!0);let n=()=>j(k2,`$currentView`,o),r=()=>j(sm,`$targetAssetFolder`,o),i=()=>j(j2,`$assetGroups`,o),a=()=>j(A2,`$listedAssets`,o),[o,s]=hn(),c=M(()=>n().type),l=M(r),u=M(()=>!dm(z(l)));{let t=M(()=>Y(`asset_list`));K6(e,{get"aria-label"(){return z(t)},children:(e,t)=>{W6(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{mn(zF,{folder:z(l),files:e})},children:(e,t)=>{var n=V(),r=I(n),o=e=>{{let t=M(()=>Y(`assets`));J6(e,{id:`asset-list`,get viewType(){return z(c)},get"aria-label"(){return z(t)},get"aria-rowcount"(){return a().length},children:(e,t)=>{var n=V();vo(I(n),1,()=>Object.entries(i()),([e,t])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=V();ro(I(a),nT,null,e=>{{let t=M(()=>r()===`*`?void 0:r());vL(e,{get label(){return z(t)},children:(e,t)=>{IR(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=D)=>{var n=V();lo(I(n),()=>t().sha,e=>{var n=V();ro(I(n),nT,null,e=>{lme(e,{get asset(){return t()},get viewType(){return z(c)}})}),H(e,n)}),H(e,n)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),H(e,a)}),H(e,n)},$$slots:{default:!0}})}},s=M(()=>Object.values(i()).flat(1).length),l=e=>{$0(e,{children:(e,t)=>{var n=Fme(),r=I(n),i=F(r,!0);O(r);var a=L(r,2),o=e=>{{let t=M(()=>Y(`upload_assets`));Eme(e,{get label(){return z(t)}})}};W(a,e=>{z(u)||e(o)}),R(e=>U(i,e),[()=>Y(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})};W(r,e=>{z(s)?e(o):e(l,-1)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}A(),s()}var Fme,Ime=s((()=>{Z(),J(),X(),$(),rT(),pme(),G6(),Dme(),q6(),Y6(),JF(),fm(),M2(),Fme=B(`<span role="none"> </span> <!>`,1)})),X6,Z6,Q6=s((()=>{Zp(),X6=ln(null),Z6=ln(``)}));function $6(e,t){k(t,!0),G(e,zme);let n=()=>j(Z6,`$searchTerms`,i),r=()=>j(X6,`$searchMode`,i),[i,a]=hn(),o=q(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=K2(),i=r.startsWith(`/search/`);mn(Z6,e),e?X2(`/search/${e}`,{replaceState:i}):t&&i&&Z2(`/collections`)},c=N(void 0);ri(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=Rme(),u=F(l),d=e=>{var t=Lme(),n=I(t);{let e=M(()=>Y(`search_placeholder_${r()}`));po(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),qs(BR(n.lastChild,{debounce:!0,keyShortcuts:`Accel+F`,get placeholder(){return z(e)},get onclick(){return o()},oninput:({target:e})=>{s(e.value.trim())},onClear:()=>{s(``)}}),e=>P(c,e,!0),()=>z(c)),O(n)}H(e,t)};W(u,e=>{r()&&e(d)}),O(l),H(e,l),A(),a()}var Lme,Rme,zme,e8=s((()=>{Z(),J(),X(),$(),$2(),Q6(),Lme=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),Rme=B(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),zme={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}}));function Bme(e,t){k(t,!0);let n=()=>j(im,`$allAssetFolders`,a),r=()=>j(om,`$selectedAssetFolder`,a),i=()=>j(MF,`$allAssets`,a),[a,o]=hn(),s=q(t,`isSearchPage`,3,!1),c=M(()=>Intl.NumberFormat(Xh.current)),l=M(()=>[...n().filter(({typedKeyPath:e,isAssetCollection:t})=>!t&&e===void 0).sort((e,t)=>EC(e.collectionName,e.fileName)-EC(t.collectionName,t.fileName)).sort((e,t)=>xw(e.collectionName)-xw(t.collectionName)),...n().filter(({isAssetCollection:e})=>e)]),u=e=>z(l)[e].collectionName===void 0&&z(l)[e+1]?.collectionName!==void 0||!z(l)[e].isAssetCollection&&!!z(l)[e+1]?.isAssetCollection;var d=Gme(),f=F(d),p=e=>{var t=Hme(),n=I(t),r=F(n),i=F(r,!0);O(r),O(n),$6(L(n,2),{onclick:e=>{e.preventDefault(),X2(`/search`)}}),R(e=>U(i,e),[()=>Y(`assets`)]),H(e,t)};W(f,e=>{AE.isSmallScreen&&e(p)});var m=L(f,2);{let e=M(()=>Y(`asset_folder_list`));PL(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>Y(`asset_location.repository`));zL(e,{get label(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),19,()=>z(l),e=>[e.collectionName,e.fileName,e.internalPath].join(`:`),(e,t,n)=>{var a=Wme(),o=I(a);ro(o,nT,null,e=>{let n=M(()=>{let{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}=z(t);return{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}}),a=M(()=>z(n).collectionName?yw(z(n).collectionName):void 0),o=M(()=>z(a)&&z(n).fileName?SC(z(a),z(n).fileName):void 0),l=M(()=>z(n).entryRelative||z(n).hasTemplateTags),u=M(()=>(0,Vme.default)(r(),z(t)));{let r=e=>{{let n=M(()=>z(t).icon||z(o)?.icon||z(a)?.icon||`folder`);tI(e,{get name(){return z(n)}})}},d=e=>{var r=V();lo(I(r),i,e=>{var r=V();ro(I(r),nT,null,e=>{let r=M(()=>(z(n).internalPath===void 0?i():Roe(z(t))).length);var a=Ume(),o=F(a,!0);O(a),R((e,t)=>{K(a,`aria-label`,`(${e??``})`),U(o,t)},[()=>Y(`x_assets`,{values:{count:z(r)}}),()=>z(c).format(z(r))]),H(e,a)}),H(e,r)}),H(e,r)},f=M(()=>AE.isSmallScreen||s()?!1:z(u)),p=M(()=>Xh.current?D2(z(t)):``);UL(e,{get selected(){return z(f)},get label(){return z(p)},onSelect:()=>{X2(`/assets/${z(n).internalPath??`-/all`}`,{transitionType:`forwards`,state:{folder:z(t)}})},ondragover:e=>{e.preventDefault(),!z(l)&&(z(n).internalPath===void 0||z(u)?e.dataTransfer.dropEffect=`none`:(e.dataTransfer.dropEffect=`move`,e.target.classList.add(`dragover`)))},ondragleave:e=>{e.preventDefault(),!z(l)&&e.target.classList.remove(`dragover`)},ondragend:e=>{e.preventDefault(),!z(l)&&e.target.classList.remove(`dragover`)},ondrop:e=>{e.preventDefault(),!z(l)&&e.target.classList.remove(`dragover`)},startIcon:r,endIcon:d,$$slots:{startIcon:!0,endIcon:!0}})}});var l=L(o,2),d=e=>{MI(e,{})},f=M(()=>u(z(n)));W(l,e=>{z(f)&&e(d)}),H(e,a)}),H(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}})}O(d),H(e,d),A(),o()}var Vme,Hme,Ume,Wme,Gme,Kme=s((()=>{Z(),J(),X(),$(),rT(),Vme=u(CO()),e8(),$2(),JF(),fm(),M2(),Sw(),DC(),jE(),Hme=B(`<header><h2> </h2></header> <!>`,1),Ume=B(`<span class="count"> </span>`),Wme=B(`<!> <!>`,1),Gme=B(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function qme(e,t){k(t,!0);{let n=M(()=>!t.asset||!ET(t.asset)),r=M(()=>Y(`preview`)),i=M(()=>Y(`show_preview`));bI(e,{variant:`ghost`,get disabled(){return z(n)},get label(){return z(r)},get"aria-label"(){return z(i)},onclick:()=>{X2(`/assets/${t.asset?.path}`,{transitionType:`forwards`})}})}A()}var Jme=s((()=>{Z(),J(),X(),$(),$2(),AT()}));function Yme(e,t){k(t,!0);let n=()=>j(IF,`$selectedAssets`,s),r=()=>j(LF,`$focusedAsset`,s),i=()=>j(sm,`$targetAssetFolder`,s),a=()=>j(om,`$selectedAssetFolder`,s),o=()=>j(A2,`$listedAssets`,s),[s,c]=hn(),l=M(()=>n().length?[...n()]:r()?[r()]:[]),u=M(()=>!dm(i()));{let t=M(()=>Y(`folder`));f0(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=Qme(),i=I(n),s=e=>{{let t=M(()=>Y(`back_to_asset_folder_list`));D3(e,{get"aria-label"(){return z(t)},onclick:()=>{Z2(`/assets`)}})}};W(i,e=>{AE.isSmallScreen&&e(s)});var c=L(i,2),d=F(c);lo(d,()=>Xh.current,e=>{var t=Ra();R(e=>U(t,e),[()=>a()?D2(a()):``]),H(e,t)});var f=L(d,2),p=e=>{var t=Xme(),n=F(t);O(t),R(()=>U(n,`/${a().internalPath??``}`)),H(e,t)};W(f,e=>{!AE.isSmallScreen&&a()?.internalPath!==void 0&&e(p)}),O(c);var m=L(c,2),h=e=>{var t=Zme(),n=I(t);qme(n,{get asset(){return r()}});var i=L(n,2);{let e=M(()=>r()?[r()]:[]);n3(i,{get assets(){return z(e)}})}var a=L(i,2);x3(a,{get assets(){return z(l)}});var s=L(a,2);{let e=M(()=>Y(`delete_selected_assets`,{values:{count:z(l).length}})),t=M(()=>Y(z(l).length>1&&z(l).length===o().length?`confirm_deleting_all_assets`:`confirm_deleting_selected_assets`,{values:{count:z(l).length}}));v3(s,{get assets(){return z(l)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)}})}w3(L(s,2),{get asset(){return r()}}),H(e,t)};W(m,e=>{AE.isSmallScreen||AE.isMediumScreen||e(h)}),jse(L(m,2),{children:(e,t)=>{var n=V(),r=I(n),i=e=>{{let t=M(()=>AE.isSmallScreen?void 0:Y(`upload`));Eme(e,{get label(){return z(t)}})}};W(r,e=>{(!AE.isSmallScreen||o().length&&!z(u))&&e(i)}),H(e,n)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})}A(),c()}var Xme,Zme,Qme,$me=s((()=>{Z(),J(),X(),$(),a3(),b3(),C3(),E3(),Jme(),Dme(),O3(),$2(),JF(),fm(),M2(),jE(),Xme=B(`<span role="none"> </span>`),Zme=B(`<!> <!> <!> <!> <!>`,1),Qme=B(`<!> <h2 role="none"><!> <!></h2> <!> <!>`,1)}));function ehe(e,t){k(t,!0);let n=()=>j(k2,`$currentView`,i),r=()=>j(LF,`$focusedAsset`,i),[i,a]=hn();var o=V(),s=I(o),c=e=>{{let t=M(()=>Y(`asset_info`));n2(e,{id:`asset-info`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=V(),i=I(n),a=e=>{K3(e,{get asset(){return r()},showPreview:!0})},o=e=>{$0(e,{children:(e,t)=>{var n=the(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`select_asset_show_info`)]),H(e,n)},$$slots:{default:!0}})};W(i,e=>{r()?e(a):e(o,-1)}),H(e,n)},$$slots:{default:!0}})}};W(s,e=>{AE.isLargeScreen&&n().showInfo&&e(c)}),H(e,o),A(),a()}var the,nhe=s((()=>{Z(),J(),X(),$(),npe(),JF(),M2(),jE(),the=B(`<span role="none"> </span>`)}));function rhe(e,t){k(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=q(t,`label`,3,``),o=q(t,`disabled`,3,!1),s=q(t,`multiple`,3,!1),c=q(t,`noneLabel`,3,``),l=q(t,`filters`,19,()=>[]);{let r=e=>{{let r=M(()=>Y(`filtering_options`));YL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=V(),a=I(i),o=e=>{var r=V();vo(I(r),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}}),a=M(()=>(n().filters||[]).findIndex(e=>e.field===z(i).field&&String(e.pattern)===String(z(i).pattern)));{let n=M(()=>z(a)>-1);sR(e,{get label(){return z(i)._label},get checked(){return z(n)},onChange:()=>{t.currentView.update(e=>{let t=e.filters?[...e.filters]:[];return z(a)>-1?t.splice(z(a),1):t.push({field:z(i).field,pattern:z(i).pattern}),{...e,filters:t}})}})}}),H(e,r)},u=e=>{var r=ihe(),i=I(r);{let e=M(()=>c()||Y(`sort_keys.none`)),r=M(()=>!n().filter);uR(i,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:void 0}))}})}vo(L(i,2),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().filter?.field===z(i).field&&String(n().filter.pattern)===String(z(i).pattern));uR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:{field:z(i).field,pattern:z(i).pattern}}))}})}}),H(e,r)};W(a,e=>{s()?e(o):e(u,-1)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||Y(`filter`));AI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}A(),i()}var ihe,ahe=s((()=>{Z(),J(),X(),$(),ihe=B(`<!> <!>`,1)}));function ohe(e,t){k(t,!0),G(e,lhe);let n=()=>j(t.selectedItems,`$selectedItems`,r),[r,i]=hn(),a=M(()=>t.allItems.length),o=M(()=>n().length),s=M(()=>!!z(o)),c=M(()=>z(s)&&z(o)===z(a));var l=che(),u=F(l);{let e=M(()=>!z(a)),n=M(()=>Y(`select_all`)),r=M(()=>z(s)&&!z(c)?`mixed`:z(s));HI(u,{get disabled(){return z(e)},get"aria-label"(){return z(n)},get checked(){return z(r)},onChange:()=>{t.selectedItems.set(z(c)?[]:[...t.allItems])}})}var d=L(u,2),f=e=>{var t=she(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`x_of_x_selected`,{values:{total:z(a),selected:z(o)}})]),H(e,t)};W(d,e=>{z(s)&&e(f)}),O(l),H(e,l),A(),i()}var she,che,lhe,uhe=s((()=>{Z(),J(),X(),$(),she=B(`<span role="none" class="svelte-1sd2xgz"> </span>`),che=B(`<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>`),lhe={hash:`svelte-1sd2xgz`,code:`.wrapper.svelte-1sd2xgz {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1sd2xgz {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}`}})),dhe,fhe=s((()=>{dhe={collections:`Collections`,contents:`Contents`,entries:`Entries`,files:`Files`,assets:`Assets`,media:`Media`,workflow:`Workflow`,editorial_workflow:`Editorial Workflow`,menu:`Menu`,user_name:`User Name`,password:`Password`,sign_in:`Sign In`,sign_in_with_mobile:`Sign In with Mobile`,sign_in_with_mobile_instruction:`Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.`,signed_in_as_x:`Signed In as {$name}`,working_with_local_repo:`Working with Local Repository`,working_with_test_repo:`Working with Test Repository`,sign_out:`Sign Out`,install_as_app:`Install as App`,create:`New`,select:`Select`,select_all:`Select All`,upload:`Upload`,copy:`Copy`,download:`Download`,duplicate:`Duplicate`,delete:`Delete`,reorder:`Reorder`,cancel:`Cancel`,done:`Done`,save:`Save`,saving:`Saving…`,publish:`Publish`,publishing:`Publishing…`,rename:`Rename`,update:`Update`,replace:`Replace`,add:`Add`,remove:`Remove`,remove_x:`Remove {$name}`,clear:`Clear`,expand:`Expand`,expand_all:`Expand All`,collapse:`Collapse`,collapse_all:`Collapse All`,insert:`Insert`,restore:`Restore`,discard:`Discard`,searching:`Searching…`,no_results:`No results found.`,global:`Global`,primary:`Primary`,secondary:`Secondary`,collection:`Collection`,folder:`Folder`,api_key:`API Key`,details:`Details`,back:`Back`,loading:`Loading…`,later:`Later`,slug:`Slug`,singleton:`Singleton`,singletons:`Singletons`,clipboard_error:`There was an error while copying data.`,welcome_message:`Welcome to {$name}`,powered_by:`Powered by {$name}`,loading_cms_config:`Loading CMS Configuration…`,loading_site_data:`Loading Site Data…`,loading_site_data_error:`There was an error while loading site data.`,sign_in_with_x:`Sign In with {$service}`,sign_in_using_access_token:`Sign In Using Access Token`,sign_in_using_access_token_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_access_token_link:`You can generate a token on the <a>{$service} user settings page</a>.`,personal_access_token:`Personal Access Token`,authorizing:`Authorizing…`,signing_in:`Signing in…`,work_with_local_repo:`Work with Local Repository`,work_with_local_repo_description:`Once prompted, select the root directory of the “{$repo}” repository.`,work_with_local_repo_description_no_repo:`Once prompted, select the root directory of your Git repository.`,work_with_test_repo:`Work with Test Repository`,sign_in_error:{not_project_root:`The folder you have selected is not a repository root directory. Please try again.`,picker_dismissed:`A repository root directory could not be selected. Please try again.`,authentication_aborted:`Authentication aborted. Please try again.`,invalid_token:`The provided token is invalid. Please check and try again.`,UNSUPPORTED_BACKEND:`Your Git backend is not supported by the authenticator.`,UNSUPPORTED_DOMAIN:`Your domain is not allowed to use the authenticator.`,MISCONFIGURED_CLIENT:`OAuth app client ID or secret is not configured.`,AUTH_CODE_REQUEST_FAILED:`Failed to receive an authorization code. Please try again later.`,CSRF_DETECTED:`Potential CSRF attack detected. Authentication flow aborted.`,TOKEN_REQUEST_FAILED:`Failed to request an access token. Please try again later.`,TOKEN_REFRESH_FAILED:`Failed to refresh the access token. Please try again later.`,MALFORMED_RESPONSE:`Server responded with malformed data. Please try again later.`},backend_unsupported_version:`The {$name} backend requires {$name} {$version} or later.`,repository_no_access:`You don’t have access to the “{$repo}” repository.`,repository_not_found:`The “{$repo}” repository doesn’t exist.`,repository_empty:`The “{$repo}” repository has no branches.`,branch_not_found:`The “{$repo}” repository doesn’t have the “{$branch}” branch.`,unexpected_error:`Unexpected Error`,entry_parse_errors:`.input {$count :integer} .match $count one {{There was an error while parsing an entry file. Check the browser console for details.}} * {{There were errors while parsing entry files. Check the browser console for details.}}`,mobile_promo_title:`Sveltia CMS is now available on mobile!`,mobile_promo_button:`Give it a try`,visit_live_site:`Visit Live Site`,switch_page:`Switch Page`,search_placeholder_contents:`Search for contents…`,search_placeholder_assets:`Search for assets…`,search_placeholder_all:`Search for contents and assets…`,create_entry_or_assets:`Create Entry or Assets`,publish_changes:`Publish Changes`,publishing_changes:`Publishing Changes…`,publishing_changes_failed:`Changes could not be published. Please try again later.`,show_notifications:`Show Notifications`,notifications:`Notifications`,show_account_menu:`Show Account Menu`,account:`Account`,live_site:`Live Site`,git_repository:`Git Repository`,settings:`Settings`,cms_config:`CMS Configuration`,show_help_menu:`Show Help Menu`,help:`Help`,keyboard_shortcuts:`Keyboard Shortcuts`,documentation:`Documentation`,release_notes:`Release Notes`,announcements:`Announcements`,version_x:`Version {$version}`,report_issue:`Report Issue`,share_feedback:`Share Feedback`,get_help:`Get Help`,donate:`Donate`,join_discord:`Join Us on Discord`,bluesky:`Follow Us on Bluesky`,update_available:`The latest version of Sveltia CMS is available.`,update_now:`Update Now`,backend_status:{minor_incident:`{$service} is experiencing a minor incident. Your workflow may be potentially affected.`,major_incident:`{$service} is experiencing a major incident. You may want to wait until the situation has improved.`},content_library:`Content Library`,asset_library:`Asset Library`,asset_location:{repository:`Your Site`,external:`External Locations`,stock_photos:`Stock Photos`},collection_assets:`Collection Assets`,entry_list:`Entry List`,file_list:`File List`,asset_list:`Asset List`,x_collection:`“{$collection}” Collection`,x_asset_folder:`“{$folder}” Asset Folder`,viewing_collection_list:`You’re now viewing the collection list.`,viewing_asset_folder_list:`You’re now viewing the asset folder list.`,viewing_x_collection:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$collection}” collection, which has no entries yet.}} one {{You’re now viewing the “{$collection}” collection, which has one entry.}} * {{You’re now viewing the “{$collection}” collection, which has {$count} entries.}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$folder}” asset folder, which has no assets yet.}} one {{You’re now viewing the “{$folder}” asset folder, which has one asset.}} * {{You’re now viewing the “{$folder}” asset folder, which has {$count} assets.}}`,singleton_selected_announcement:`Press Enter to edit the “{$file}” file.`,collection_not_found:`Collection not found`,file_not_found:`File not found.`,x_of_x_selected:`{$selected} of {$total} selected`,switch_view:`Switch View`,list_view:`List View`,grid_view:`Grid View`,switch_to_list_view:`Switch to List View`,switch_to_grid_view:`Switch to Grid View`,sort:`Sort`,sorting_options:`Sorting Options`,sort_keys:{none:`None`,name:`Name`,slug:`Slug`,commit_author:`Updated by`,commit_date:`Updated on`,_summary:`Summary`,_manual:`Manual`},ascending:`{$label}, A to Z`,ascending_date:`{$label}, old to new`,descending:`{$label}, Z to A`,descending_date:`{$label}, new to old`,filter:`Filter`,filtering_options:`Filtering Options`,group:`Group`,grouping_options:`Grouping Options`,type:`Type`,all:`All`,image:`Image`,video:`Video`,audio:`Audio`,document:`Document`,other:`Other`,show_assets:`Show Assets`,hide_assets:`Hide Assets`,show_info:`Show Info`,hide_info:`Hide Info`,all_assets:`All Assets`,global_assets:`Global Assets`,entry_not_found:`Entry not found.`,creating_entries_disabled_by_admin:`Creating new entries in this collection is disabled by the administrator.`,creating_entries_disabled_by_quota:`You cannot add new entries to this collection because it has reached its limit of {$quota} entries.`,creating_entries_nearing_quota:`.input {$remaining :integer} .match $remaining one {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entry.}} * {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entries.}}`,back_to_collection:`Back to Collection`,collection_list:`Collection List`,back_to_collection_list:`Back to Collection List`,asset_folder_list:`Asset Folder List`,back_to_asset_folder_list:`Back to Asset Folder List`,search_results:`Search Results`,search_results_for_x:`Search Results for “{$terms}”`,viewing_entry_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any entries.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one entry.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} entries.}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any assets.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one asset.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} assets.}}`,x_entries:`.input {$count :integer} .match $count 0 {{No entries}} one {{{$count} entry}} * {{{$count} entries}}`,x_assets:`.input {$count :integer} .match $count 0 {{No assets}} one {{{$count} asset}} * {{{$count} assets}}`,no_files_found:`No files found.`,no_entries_found:`No entries found.`,upload_assets:`Upload New Assets`,edit_options:`Edit Options`,show_edit_options:`Show Edit Options`,edit_asset:`Edit Asset`,edit_x:`Edit {$name}`,wrap_long_lines:`Wrap Long Lines`,rename_asset:`Rename Asset`,rename_x:`Rename {$name}`,enter_new_name_for_asset:`.input {$count :integer} .match $count 0 {{Enter a new name below.}} one {{Enter a new name below. An entry using the asset will also be updated.}} * {{Enter a new name below. {$count} entries using the asset will also be updated.}}`,enter_new_name_for_asset_error:{empty:`File name cannot be empty.`,character:`File name cannot contain special characters.`,duplicate:`This file name is used for another asset.`},replace_asset:`Replace Asset`,replace_x:`Replace {$name}`,click_to_browse:`Click to browse…`,tap_to_browse:`Tap to browse…`,drop_files_or_click_to_browse:`.input {$count :integer} .match $count one {{Drop a file here or click to browse…}} * {{Drop files here or click to browse…}}`,drop_files_or:`.input {$count :integer} .match $count one {{Drop a file here or}} * {{Drop files here or}}`,drop_image_files_or:`.input {$count :integer} .match $count one {{Drop an image file here or}} * {{Drop image files here or}}`,browse:`Browse`,paste:`Paste`,paste_image:`Paste Image`,no_image_in_clipboard:`No image found in clipboard.`,clipboard_access_denied:`Clipboard access denied.`,drop_files_here:`.input {$count :integer} .match $count one {{Drop a file here}} * {{Drop files here}}`,unsupported_file_type:`Unsupported File Type`,dropped_file_type_mismatch:`The dropped file is not the {$type} type. Please try again.`,dropped_image_type_mismatch:`The dropped file is not supported. Only an AVIF, GIF, JPEG, PNG, WebP or SVG image is accepted. Please try again.`,choose_files:`.input {$count :integer} .match $count one {{Choose File}} * {{Choose Files}}`,delete_assets:`.input {$count :integer} .match $count one {{Delete Asset}} * {{Delete Assets}}`,delete_selected_assets:`.input {$count :integer} .match $count one {{Delete Selected Asset}} * {{Delete Selected Assets}}`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected asset?}} * {{Are you sure you want to delete the selected {$count} assets?}}`,confirm_deleting_all_assets:`Are you sure you want to delete all the assets?`,delete_entries:`.input {$count :integer} .match $count one {{Delete Entry}} * {{Delete Entries}}`,delete_selected_entries:`.input {$count :integer} .match $count one {{Delete Selected Entry}} * {{Delete Selected Entries}}`,confirm_deleting_this_entry:`Are you sure you want to delete this entry?`,confirm_deleting_this_entry_with_assets:`Are you sure you want to delete this entry and associated assets?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry?}} * {{Are you sure you want to delete the selected {$count} entries?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry and associated assets?}} * {{Are you sure you want to delete the selected {$count} entries and associated assets?}}`,confirm_deleting_all_entries:`Are you sure you want to delete all the entries?`,confirm_deleting_all_entries_with_assets:`Are you sure you want to delete all the entries and associated assets?`,reorder_entries:`Reorder Entries`,done_reordering_entries:`Done Reordering Entries`,cancel_reordering_entries:`Cancel Reordering Entries`,saving_reorder_failed:`Failed to save the new entry order. Please try again.`,processing_files:`.input {$count :integer} .match $count one {{Processing a file. This may take a while.}} * {{Processing files. This may take a while.}}`,uploading_files:`Uploading Files`,confirm_replacing_file:`“{$name}” will be replaced with this file:`,confirm_uploading_files:`.input {$count :integer} .match $count one {{This file will be saved to the “{$folder}” folder:}} * {{These {$count} files will be saved to the “{$folder}” folder:}}`,oversized_files:`Oversized Files`,warning_oversized_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it exceeds the maximum size of {$size}. Please reduce the size or select a different file.}} * {{These files cannot be uploaded because they exceed the maximum size of {$size}. Please reduce the sizes or select different files.}}`,file_name_conflict_confirmation:`.input {$count :integer} .match $count one {{A file with the same name already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_confirmation_with_name:`.input {$count :integer} .input {$name :string} .match $count one {{A file named “{$name}” already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_resolution:`File Name Conflict Resolution`,keep_both:`Keep Both`,uploading_files_progress:`.input {$count :integer} .match $count one {{Uploading file…}} * {{Uploading files…}}`,uploading_files_failed:`.input {$count :integer} .match $count one {{File could not be uploaded}} * {{Files could not be uploaded}}`,file_meta:`{$type} · {$size}`,file_meta_converted_from_x:`(converted from {$type})`,no_entries_created:`This collection has no entries yet.`,create_new_entry:`Create New Entry`,entry:`Entry`,index_file:`Index File`,no_files_in_collection:`No files available in this collection.`,asset_info:`Asset Info`,select_asset_show_info:`Select an asset to show the info.`,duplicate_entry:`Duplicate Entry`,entry_duplicated:`Entry has been duplicated. It’s now a new draft.`,entry_validation_errors:`.input {$count :integer} .match $count one {{One field has an error. Please correct it to save the entry.}} * {{{$count} fields have an error. Please correct them to save the entry.}}`,entry_saved:`.input {$count :integer} .match $count one {{Entry has been saved.}} * {{{$count} entries have been saved.}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{Entry has been saved and published.}} * {{{$count} entries have been saved and published.}}`,entries_deleted:`.input {$count :integer} .match $count one {{Entry has been deleted.}} * {{{$count} entries have been deleted.}}`,assets_saved:`.input {$count :integer} .match $count one {{Asset has been saved.}} * {{{$count} assets have been saved.}}`,assets_saved_and_published:`.input {$count :integer} .match $count one {{Asset has been saved and published.}} * {{{$count} assets have been saved and published.}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{Asset URL has been copied to clipboard.}} * {{{$count} asset URLs have been copied to clipboard.}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{Asset file path has been copied to clipboard.}} * {{{$count} asset file paths have been copied to clipboard.}}`,asset_data_copied:`.input {$count :integer} .match $count one {{Asset file has been copied to clipboard.}} * {{{$count} asset files have been copied to clipboard.}}`,assets_downloaded:`.input {$count :integer} .match $count one {{Asset file has been downloaded.}} * {{{$count} asset files have been downloaded.}}`,assets_moved:`.input {$count :integer} .match $count one {{Asset has been moved.}} * {{{$count} assets have been moved.}}`,assets_renamed:`.input {$count :integer} .match $count one {{Asset has been renamed.}} * {{{$count} assets have been renamed.}}`,assets_deleted:`.input {$count :integer} .match $count one {{Asset has been deleted.}} * {{{$count} assets have been deleted.}}`,content_editor:`Content Editor`,restore_backup_title:`Restore Draft`,restore_backup_description:`This entry has a backup from {$datetime}. Do you want to restore the edited draft?`,draft_backup_saved:`Draft backup has been saved.`,draft_backup_restored:`Draft backup has been restored.`,draft_backup_deleted:`Draft backup has been deleted.`,cancel_editing:`Cancel Editing`,create_entry_title:`Creating {$name}`,create_entry_announcement:`You’re now creating a new entry in the “{$collection}” collection.`,edit_entry_title:`{$collection} › {$entry}`,edit_entry_announcement:`You’re now editing the “{$entry}” entry in the “{$collection}” collection.`,edit_file_announcement:`You’re now editing the “{$file}” file in the “{$collection}” collection.`,edit_singleton_announcement:`You’re now editing the “{$file}” file.`,save_and_publish:`Save and Publish`,save_without_publishing:`Save without Publishing`,show_editor_options:`Show Editor Options`,editor_options:`Editor Options`,show_preview:`Show Preview`,sync_scrolling:`Sync Scrolling`,switch_locale:`Switch Locale`,locale_content_disabled_short:`(disabled)`,locale_content_error_short:`(error)`,edit:`Edit`,preview:`Preview`,swap_panes:`Swap Panes`,edit_x_locale:`Edit {$locale} Content`,preview_x_locale:`Preview {$locale} Content`,content_preview:`Content Preview`,show_content_options_x_locale:`Show {$locale} Content Options`,content_options_x_locale:`{$locale} Content Options`,x_field:`“{$field}” Field`,show_field_options:`Show Field Options`,field_options:`Field Options`,unsupported_field_type_x:`Unsupported field type: {$name}`,enable_x_locale:`Enable {$locale}`,reenable_x_locale:`Reenable {$locale}`,disable_x_locale:`Disable {$locale}`,locale_x_has_been_disabled:`The {$locale} content has been disabled.`,locale_x_now_disabled:`The {$locale} content is now disabled. It will be deleted when you save the entry.`,view_in_repository:`View in Repository`,view_on_x:`View on {$service}`,view_on_live_site:`View on Live Site`,copy_from:`Copy from…`,copy_from_x:`Copy from {$locale}`,translation_options:`Translation Options`,translate:`Translate`,translate_fields:`.input {$count :integer} .match $count one {{Translate Field}} * {{Translate Fields}}`,translate_from:`Translate from…`,translate_from_x:`Translate from {$locale}`,revert_changes:`Revert Changes`,revert_all_changes:`Revert All Changes`,edit_slug:`Edit Slug`,edit_slug_warning:`Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with Relation fields, so you’ll need to manually update such references along with other links.`,edit_slug_error:{empty:`The slug cannot be empty.`,invalid:`The slug cannot contain special characters, including slashes and whitespaces.`,duplicate:`This slug is used for another entry.`},required:`Required`,editor:{translation:{none:`Nothing has been translated.`,started:`Translating…`,error:`There was an error while translating.`,complete:`.input {$count :integer} .match $count 0 {{No field has been translated from {$source}.}} one {{Translated a field from {$source}.}} * {{Translated {$count} fields from {$source}.}}`},copy:{none:`Nothing has been copied.`,complete:`.input {$count :integer} .match $count 0 {{No field has been copied from {$source}.}} one {{Copied a field from {$source}.}} * {{Copied {$count} fields from {$source}.}}`}},validation:{value_missing:`This field is required.`,range_underflow:{"datetime-local":`The date/time must be at or after {$min}.`,date:`The date must be on or after {$min}.`,time:`The time must be at or after {$min}.`,number:`The value must be greater than or equal to {$min}.`,select:`.input {$min :integer} .match $min one {{You have to select at least {$min} option.}} * {{You have to select at least {$min} options.}}`,add:`.input {$min :integer} .match $min one {{You have to add at least {$min} item.}} * {{You have to add at least {$min} items.}}`},range_overflow:{"datetime-local":`The date/time must be at or before {$max}.`,date:`The date must be on or before {$max}.`,time:`The time must be at or before {$max}.`,number:`The value must be less than or equal to {$max}.`,select:`.input {$max :integer} .match $max one {{You cannot select more than {$max} option.}} * {{You cannot select more than {$max} options.}}`,add:`.input {$max :integer} .match $max one {{You cannot add more than {$max} item.}} * {{You cannot add more than {$max} items.}}`},too_short:`.input {$min :integer} .match $min one {{You must enter at least {$min} character.}} * {{You must enter at least {$min} characters.}}`,too_long:`.input {$max :integer} .match $max one {{You cannot enter more than {$max} character.}} * {{You cannot enter more than {$max} characters.}}`,type_mismatch:{number:`Please enter a number.`,email:`Please enter a valid email.`,url:`Please enter a valid URL.`}},entry_sidebar:{sidebar_panels:`Sidebar Panels`,validation:{title:`Validation`,placeholder:`Validation results will be shown here.`,no_errors_found:`No errors found.`},history:{title:`History`,fetch_failed:`Failed to load history.`,no_history:`No history found.`},backlinks:{title:`Backlinks`,no_entries:`No entries are referencing this entry.`}},saving_entry:{error:{title:`Error`,description:`There was an error while saving the entry. Please try again later.`}},viewing_x_asset_details:`You’re viewing the details of the “{$name}” asset.`,asset_editor:`Asset Editor`,preview_unavailable:`Preview Unavailable.`,public_urls:`.input {$count :integer} .match $count one {{Public URL}} * {{Public URLs}}`,file_paths:`.input {$count :integer} .match $count one {{File Path}} * {{File Paths}}`,file_data:`File Data`,kind:`Kind`,size:`Size`,dimensions:`Dimensions`,duration:`Duration`,used_in:`Used in`,created_date:`Created Date`,location:`Location`,map_lat_lng:`Map showing latitude {$latitude}, longitude {$longitude}`,remove_this_item:`Remove This Item`,move_up:`Move Up`,move_down:`Move Down`,add_x:`Add {$name}`,add_item_above:`Add Item Above`,add_item_below:`Add Item Below`,select_list_type:`Select List Type`,opacity:`Opacity`,unselected_option:`(None)`,assets_dialog:{title:{file:`Select File`,image:`Select Image`},search_for_file:`Search for Files`,search_for_image:`Search for Images`,locations:`Locations`,folder:{field:`Field Assets`,entry:`Entry Assets`,file:`File Assets`,collection:`Collection Assets`,global:`Global Assets`},error:{invalid_key:`Your API Key is invalid or expired. Please double check and try again.`,search_fetch_failed:`There was an error while searching assets. Please try again later.`,image_fetch_failed:`There was an error while downloading the selected asset. Please try again later.`},available_images:`Available Images`,enter_url:`Enter URL`,enter_file_url:`Enter URL of the file:`,enter_image_url:`Enter URL of the image:`,large_file:{title:`Large File`},photo_credit:{title:`Photo Credit`,description:`Use the following credit if possible:`},unsaved:`Unsaved`},character_counter:{min_max:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}. Maximum: {$max}.}} one {{{$count} character entered. Minimum: {$min}. Maximum: {$max}.}} * {{{$count} characters entered. Minimum: {$min}. Maximum: {$max}.}}`,min:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}.}} one {{{$count} character entered. Minimum: {$min}.}} * {{{$count} characters entered. Minimum: {$min}.}}`,max:`.input {$count :integer} .match $count 0 {{No character entered. Maximum: {$max}.}} one {{{$count} character entered. Maximum: {$max}.}} * {{{$count} characters entered. Maximum: {$max}.}}`},youtube_video_player:`YouTube video player`,today:`Today`,now:`Now`,editor_components:{image:`Image`,src:`Source`,alt:`Alt Text`,title:`Title`,link:`Link`},key_value:{key:`Key`,value:`Value`,action:`Action`,empty_key:`Key is required.`,duplicate_key:`Key must be unique.`},find_place:`Find a Place`,use_your_location:`Use Your Location`,geolocation_error_title:`Geolocation Error`,geolocation_error_body:`There was an error while retrieving your location.`,geolocation_unsupported:`Geolocation API is not supported by this browser.`,boolean:{true:`Yes`,false:`No`},cloud_storage:{invalid:`The service is not configured properly.`,auth:{api_key:{key_label:`API Key`,initial:`Enter your {$key} for {$service}.`,requested:`Validating…`,error:`The provided {$key} is invalid. Please double check and try again.`},password:{initial:`Enter your password for {$service}.`,requested:`Signing in…`,error:`User name or password is incorrect. Please double check and try again.`}},cloudinary:{iframe_title:`Cloudinary media library`,activate:{button_label:`Activate Cloudinary`,description:`After signing in, click the Sign In button again to continue.`},auth_key_label:`API Secret`,open_library:`Open Cloudinary`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`Secret Access Key`},cloudflare_r2:{auth_key_label:`Secret Access Key`},digitalocean_spaces:{auth_key_label:`Secret Access Key`}},config:{errors:`.input {$count :integer} .match $count one {{There is an error in the CMS configuration. Please solve the issue and try again.}} * {{There are errors in the CMS configuration. Please solve the issues and try again.}}`,error_locator:{collection:`{$collection} collection`,file:`{$file} file`,component:`{$component} component`,field:"`{$field}` field"},error:{no_secure_context:`Sveltia CMS only works with HTTPS or localhost URLs.`,insecure_url:`The configuration file URL must use HTTPS protocol or a localhost address.`,insecure_urls:`.input {$count :integer} .match $count one {{The configuration file URL must use HTTPS protocol or a localhost address.}} * {{The configuration file URLs must use HTTPS protocol or localhost addresses.}}`,fetch_failed:`The configuration file could not be retrieved.`,fetch_failed_not_ok:`HTTP response returned with status {$status}.`,fetch_failed_with_manual_init:"The configuration file could not be retrieved. To prevent the `config.yml` file from loading, add [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) to the configuration object passed to `CMS.init()`.",parse_failed:`The configuration file could not be parsed.`,parse_failed_invalid_object:`The configuration file is not a valid JavaScript object.`,parse_failed_unsupported_type:`The configuration file is not a valid file type. Only YAML, TOML and JSON are supported.`,no_collection:`Collections are not defined.`,missing_backend:`The backend is not defined.`,missing_backend_name:`The backend name is not defined.`,unsupported_known_backend:`The {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_deprecated_backend:`The deprecated {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_custom_backend:`Custom backends are [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_backend_suggestion:`Use one of the [supported backends](https://sveltiacms.app/en/docs/backends#supported-backends) instead.`,missing_repository:`The repository is not defined.`,invalid_repository:`The configured repository is invalid. It must be in “owner/repo” format.`,oauth_implicit_flow:`The configured authentication method (implicit flow) is not supported in Sveltia CMS. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHub’s limitations. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/github#authentication) instead.`,oauth_no_app_id:`OAuth application ID is not defined.`,no_auth_methods:"The `auth_methods` option must contain at least one method.",missing_media_folder:`The media folder is not defined.`,invalid_media_folder:`The configured media folder is invalid. It must be a string.`,invalid_public_folder:`The configured public folder is invalid. It must be a string.`,public_folder_relative_path:`The configured public folder is invalid. It must be an absolute path starting with “/”.`,public_folder_absolute_url:`An absolute URL for the public folder option is not supported in Sveltia CMS.`,invalid_asset_collections:"The `asset_collections` option is invalid. It must be an array.",missing_asset_collection_name:"The asset collection {$count} must have the `name` option defined as a non-empty string.",invalid_asset_collection_name:"The asset collection name `{$name}` is invalid. It must not contain special characters.",duplicate_asset_collection_name:"Asset collection names must be unique, but `{$name}` is used more than once.",asset_collection_invalid_media_folder:"The `{$name}` asset collection must have the `media_folder` option defined as a string.",invalid_collection_no_options:"The collection must have either the `folder`, `files` or `divider` option defined.",invalid_collection_multiple_options:"The collection cannot have the `folder`, `files` and `divider` options together.",file_format_mismatch:"The `{$extension}` extension doesn’t match the `{$format}` format.",invalid_slug_slash:"The slug template `{$slug}` is invalid as it cannot contain slashes. To organize entries in subfolders, use the `path` option instead of `slug`.",missing_collection_name:"The collection {$count} must have the `name` option defined as a non-empty string.",invalid_collection_name:"The collection name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_name:"Collection names must be unique, but `{$name}` is used more than once.",missing_collection_file_name:"The collection file {$count} must have the `name` option defined as a non-empty string.",invalid_collection_file_name:"The collection file name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_file_name:"Collection file names must be unique, but `{$name}` is used more than once.",collection_no_fields:"The collection must have the `fields` option defined with at least one field.",collection_file_no_fields:"The collection file must have the `fields` option defined with at least one field.",collection_file_i18n_required:"The collection file must have the `i18n` option defined if the `locale` placeholder is used in the `file` path.",missing_field_name:"The field {$count} must have the `name` option defined as a non-empty string.",invalid_field_name:"The field name `{$name}` is invalid. It must not contain special characters. If you want to nest fields, [use Object fields instead of dot notation](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions).",duplicate_field_name:"Field names must be unique, but `{$name}` is used more than once.",missing_variable_type:"The variable type {$count} must have the `name` option defined as a non-empty string.",invalid_variable_type:"The variable type name `{$name}` is invalid. It must not contain special characters.",duplicate_variable_type:"Variable type names must be unique, but `{$name}` is used more than once.",date_field_type:"The deprecated Date field type is not supported in Sveltia CMS. Use the DateTime field type with the `type: date` option instead.",invalid_timezone:"Invalid timezone: {$timeZone}. Must be a valid IANA timezone identifier like `America/New_York` or `Asia/Tokyo`.",unsupported_deprecated_option:"The deprecated `{$prop}` option is not supported in Sveltia CMS. Use the `{$newProp}` option instead.",allow_multiple:"The `allow_multiple` option is not supported in Sveltia CMS. Use the `multiple` option instead, which defaults to `false`.",invalid_list_field:"The List field cannot have the `field`, `fields` and `types` options together.",invalid_list_variable_type:"The List field’s variable type is invalid. The `widget` option is set to `{$widget}` but it must be `object`.",invalid_object_field:"The Object field cannot have the `fields` and `types` options together.",object_field_missing_fields:"The Object field must have either the `fields` or `types` option defined.",relation_field_invalid_collection:"The referenced `{$collection}` collection is invalid or not defined.",relation_field_invalid_collection_file:"The referenced `{$file}` file is invalid or not defined.",relation_field_missing_file_name:"The `file` option must be defined for a relation to a file collection.",relation_field_invalid_value_field:"The referenced value field `{$field}` is invalid or not defined.",unexpected:`Unexpected error`},warning:{oauth_no_app_id:`OAuth application ID is not defined. Users are required to provide an access token to sign in.`,editorial_workflow_unsupported:`Editorial workflow is not yet supported in Sveltia CMS.`,open_authoring_unsupported:`Open authoring is not yet supported in Sveltia CMS.`,nested_collections_unsupported:`Nested collections are not yet supported in Sveltia CMS.`,unsupported_ignored_option:"The `{$prop}` option is not supported in Sveltia CMS. It will be ignored.",conflicting_timezone_options:"Both `picker_utc` and newer timezone options (`input_timezone` or `output_utc`) are set. The new options take precedence. Consider removing `picker_utc` from your configuration."},compatibility_link:`See the compatibility notes for details: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,schema_tip:`For a better developer experience, you can validate your configuration file against the JSON schema of Sveltia CMS. See https://sveltiacms.app/en/docs/config-basics#validation-and-autocomplete for details.`},local_workflow:{indicator:`Local`,unsupported_browser:`Local Workflow is not supported in your browser. Please use Chrome or Edge instead.`,disabled:`Local Workflow is disabled in your browser. <a>Here’s how to enable it</a>.`},status:{drafts:`Drafts`,in_review:`In Review`,ready:`Ready`},categories:`Categories`,prefs:{changes:{api_key_saved:`API key has been saved.`,api_key_removed:`API key has been removed.`,api_key_invalid:`The provided API key is invalid. Please double check and try again.`},error:{permission_denied:`Browser storage (Cookie) access has been denied. Please check the permission and try again.`},appearance:{title:`Appearance`,theme:`Theme`,select_theme:`Select Theme`},theme:{auto:`Auto`,dark:`Dark`,light:`Light`},language:{title:`Language`,ui_language:{title:`User Interface Language`,select_language:`Select Language`}},contents:{title:`Contents`,editor:{title:`Editor`,use_draft_backup:{switch_label:`Automatically back up entry drafts`},close_on_save:{switch_label:`Close the editor after saving a draft`},close_with_escape:{switch_label:`Close the editor with the Escape key`}}},i18n:{title:`Internationalization`,translators:{default:{title:`Default Translation Service`,select_service:`Select Service`},api_keys:{title:`Translation Service API Keys`,description:`Manage API keys for <a>translation services</a>.`},field_label:`{$service} Key`,description:`Sign up for <a {$homeHref}>{$service}</a> and enter <a {$apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields.`}},media:{title:`Media`,stock_photos:{api_keys:{title:`Stock Photo Service API Keys`,description:`Manage API keys for <a>stock photo services</a>.`},field_label:`{$service} API Key`,description:`Sign up for <a {$homeHref}>{$service} API</a> and enter <a {$apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.`,credit:`Photos provided by {$service}`,no_services:`No <a>stock photo services</a> are configured.`},cloud_storage:{api_keys:{title:`Cloud Storage Service API Keys`,description:`Manage API keys for <a>cloud storage services</a>.`},field_label:`{$service} API Key`,no_services:`No <a>cloud storage services</a> are configured.`}},accessibility:{title:`Accessibility`,underline_links:{title:`Underline Links`,description:`Show underline for links in the entry preview and user interface labels.`,switch_label:`Always Underline Links`}},advanced:{title:`Advanced`,beta:{title:`Beta Features`,description:`Enable some beta features that may be unstable or unlocalized.`,switch_label:`Join Beta Program`},developer_mode:{title:`Developer Mode`,description:`Enable some developer-oriented features, including detailed console logs and native context menus.`,switch_label:`Enable Developer Mode`},deploy_hook:{title:`Deploy Hook`,description:`Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.`,url:{field_label:`Hook URL`,saved:`Hook URL has been saved.`,removed:`Hook URL has been removed.`},auth:{field_label:`Authorization header (e.g. Bearer <token>) (optional)`,saved:`Authorization header has been saved.`,removed:`Authorization header has been removed.`}}}},keyboard_shortcuts_:{view_content_library:`View Content Library`,view_asset_library:`View Asset Library`,search:`Search for entries and assets`,create_entry:`Create a new entry`,save_entry:`Save an entry`,cancel_editing:`Cancel entry editing`},file_type_labels:{avif:`AVIF image`,bmp:`Bitmap image`,gif:`GIF image`,ico:`Icon`,jpeg:`JPEG image`,jpg:`JPEG image`,png:`PNG image`,svg:`SVG image`,tif:`TIFF image`,tiff:`TIFF image`,webp:`WebP image`,avi:`AVI video`,m4v:`MP4 video`,mov:`QuickTime video`,mp4:`MP4 video`,mpeg:`MPEG video`,mpg:`MPEG video`,ogg:`Ogg video`,ogv:`Ogg video`,ts:`MPEG video`,webm:`WebM video`,"3gp":`3GPP video`,"3g2":`3GPP2 video`,aac:`AAC audio`,mid:`MIDI`,midi:`MIDI`,m4a:`MP4 audio`,mp3:`MP3 audio`,oga:`Ogg audio`,opus:`OPUS audio`,wav:`WAV audio`,weba:`WebM audio`,csv:`CSV spreadsheet`,doc:`Word document`,docx:`Word document`,odp:`OpenDocument presentation`,ods:`OpenDocument spreadsheet`,odt:`OpenDocument text`,pdf:`PDF document`,ppt:`PowerPoint presentation`,pptx:`PowerPoint presentation`,rtf:`Rich text document`,xls:`Excel spreadsheet`,xlsx:`Excel spreadsheet`,html:`HTML text`,js:`JavaScript`,json:`JSON text`,md:`Markdown text`,toml:`TOML text`,yaml:`YAML text`,yml:`YAML text`},file_size_units:{b:`{$size} bytes`,kb:`{$size} KB`,mb:`{$size} MB`,gb:`{$size} GB`,tb:`{$size} TB`}}})),phe,mhe=s((()=>{phe={collections:`コレクション`,contents:`コンテンツ`,entries:`エントリー`,files:`ファイル`,assets:`アセット`,media:`メディア`,workflow:`ワークフロー`,editorial_workflow:`編集ワークフロー`,menu:`メニュー`,user_name:`ユーザー名`,password:`パスワード`,sign_in:`ログイン`,sign_in_with_mobile:`モバイルでログイン`,sign_in_with_mobile_instruction:`以下の QR コードを携帯電話かタブレットでスキャンすると、パスワードなしでログインできます。ユーザー設定は自動的にコピーされます。`,signed_in_as_x:`{$name} としてログイン中`,working_with_local_repo:`ローカルレポジトリで作業中`,working_with_test_repo:`テストレポジトリで作業中`,sign_out:`ログアウト`,install_as_app:`アプリとしてインストール`,create:`新規作成`,select:`選択`,select_all:`すべて選択`,upload:`アップロード`,copy:`コピー`,download:`ダウンロード`,duplicate:`複製`,delete:`削除`,reorder:`並び替え`,cancel:`キャンセル`,done:`完了`,save:`保存`,saving:`保存中…`,publish:`公開`,publishing:`公開中…`,rename:`名前を変更`,update:`更新`,replace:`差し替え`,add:`追加`,remove:`削除`,remove_x:`{$name} を削除`,clear:`クリア`,expand:`広げる`,expand_all:`すべて広げる`,collapse:`折り畳む`,collapse_all:`すべて折り畳む`,insert:`挿入`,restore:`復元`,discard:`破棄`,searching:`検索中…`,no_results:`結果が見つかりませんでした。`,global:`グローバル`,primary:`プライマリー`,secondary:`セカンダリー`,collection:`コレクション`,folder:`フォルダー`,api_key:`API キー`,details:`詳細`,back:`戻る`,loading:`読み込み中…`,later:`後で`,slug:`スラッグ`,singleton:`シングルトン`,singletons:`シングルトン`,clipboard_error:`データのコピー中に問題が発生しました。`,welcome_message:`{$name} へようこそ`,powered_by:`Powered by {$name}`,loading_cms_config:`CMS 設定を読み込んでいます…`,loading_site_data:`サイトデータを読み込んでいます…`,loading_site_data_error:`サイトデータの読み込み中にエラーが発生しました。`,sign_in_with_x:`{$service} にログイン`,sign_in_using_access_token:`アクセストークンを使用してログイン`,sign_in_using_access_token_description:`以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。`,sign_in_using_access_token_link:`<a>{$service} ユーザー設定ページ</a> でトークンを生成できます。`,personal_access_token:`個人用アクセストークン`,authorizing:`認証中…`,signing_in:`ログイン中…`,work_with_local_repo:`ローカルレポジトリで作業`,work_with_local_repo_description:`ダイアログが表示されたら、「{$repo}」レポジトリのルートディレクトリを選択してください。`,work_with_local_repo_description_no_repo:`ダイアログが表示されたら、Git レポジトリのルートディレクトリを選択してください。`,work_with_test_repo:`テストレポジトリで作業`,sign_in_error:{not_project_root:`選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。`,picker_dismissed:`レポジトリのルートディレクトリを選択できませんでした。再度お試しください。`,authentication_aborted:`認証が中断されました。再度お試しください。`,invalid_token:`入力されたトークンが無効です。確認して再度お試しください。`,UNSUPPORTED_BACKEND:`この認証アプリはお使いの Git バックエンドに対応していません。`,UNSUPPORTED_DOMAIN:`この認証アプリではお使いのドメインの使用は許可されていません。`,MISCONFIGURED_CLIENT:`OAuth アプリのクライアント ID またはシークレットが設定されていません。`,AUTH_CODE_REQUEST_FAILED:`認証コードを取得できませんでした。後で再度お試しください。`,CSRF_DETECTED:`CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。`,TOKEN_REQUEST_FAILED:`アクセストークンを要求できませんでした。後で再度お試しください。`,TOKEN_REFRESH_FAILED:`アクセストークンの更新に失敗しました。後で再度お試しください。`,MALFORMED_RESPONSE:`サーバーから不正なデータが返されました。後で再度お試しください。`},backend_unsupported_version:`{$name} バックエンドには {$name} {$version} 以降のバージョンが必要です。`,repository_no_access:`あなたには「{$repo}」レポジトリへのアクセス権がありません。`,repository_not_found:`「{$repo}」レポジトリは存在しません。`,repository_empty:`「{$repo}」レポジトリにはブランチがありません。`,branch_not_found:`「{$repo}」レポジトリに「{$branch}」ブランチは存在しません。`,unexpected_error:`予期せぬエラー`,entry_parse_errors:`エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。`,visit_live_site:`管理対象サイトを開く`,switch_page:`ページを切り替え`,search_placeholder_contents:`コンテンツを検索…`,search_placeholder_assets:`アセットを検索…`,search_placeholder_all:`コンテンツとアセットを検索…`,create_entry_or_assets:`エントリーまたはアセットを作成`,publish_changes:`変更を公開`,publishing_changes:`変更を公開しています…`,publishing_changes_failed:`変更を公開できませんでした。後で再度お試しください。`,show_notifications:`通知を表示`,notifications:`通知`,show_account_menu:`アカウントメニューを表示`,account:`アカウント`,live_site:`管理対象サイト`,git_repository:`Git レポジトリ`,settings:`設定`,cms_config:`CMS 設定`,show_help_menu:`ヘルプメニューを表示`,help:`ヘルプ`,keyboard_shortcuts:`キーボードショートカット`,documentation:`ドキュメンテーション`,release_notes:`リリースノート`,announcements:`お知らせ`,version_x:`バージョン {$version}`,report_issue:`問題を報告`,share_feedback:`フィードバックを共有`,get_help:`サポート`,donate:`寄付`,join_discord:`Discord チャンネルに参加`,bluesky:`Bluesky でフォロー`,mobile_promo_title:`Sveltia CMS がモバイルに対応しました！`,mobile_promo_button:`試してみる`,update_available:`Sveltia CMS の最新版が利用可能です。`,update_now:`今すぐ更新`,backend_status:{minor_incident:`{$service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。`,major_incident:`{$service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。`},content_library:`コンテンツライブラリ`,asset_library:`アセットライブラリ`,asset_location:{repository:`あなたのサイト`,external:`外部の場所`,stock_photos:`ストックフォト`},collection_assets:`コレクションアセット`,entry_list:`エントリーリスト`,file_list:`ファイルリスト`,asset_list:`アセットリスト`,x_collection:`「{$collection}」コレクション`,x_asset_folder:`「{$folder}」アセットフォルダー`,viewing_collection_list:`コレクションリストを表示しています。`,viewing_asset_folder_list:`アセットフォルダーリストを表示しています。`,viewing_x_collection:`.input {$count :integer} .match $count 0 {{「{$collection}」コレクションを表示しています。ここにはまだエントリーがありません。}} one {{「{$collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。}} * {{「{$collection}」コレクションを表示しています。ここには {$count} 個のエントリーがあります。}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{「{$folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。}} one {{「{$folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。}} * {{「{$folder}」アセットフォルダーを表示しています。ここには {$count} 個のアセットがあります。}}`,singleton_selected_announcement:`「{$file}」ファイルを編集するには Enter キーを押してください。`,collection_not_found:`コレクションが見つかりませんでした`,file_not_found:`ファイルが見つかりませんでした`,x_of_x_selected:`{$total} 個のうち {$selected} 個を選択中`,switch_view:`ビューを切り替え`,list_view:`リストビュー`,grid_view:`グリッドビュー`,switch_to_list_view:`リストビューに切り替え`,switch_to_grid_view:`グリッドビューに切り替え`,sort:`表示順`,sorting_options:`表示順オプション`,sort_keys:{none:`なし`,name:`名前`,slug:`スラッグ`,commit_author:`更新者`,commit_date:`更新日時`,_summary:`サマリー`,_manual:`手動`},ascending:`{$label} (A–Z)`,ascending_date:`{$label} (古い順)`,descending:`{$label} (Z–A)`,descending_date:`{$label} (新しい順)`,filter:`絞り込み`,filtering_options:`絞り込みオプション`,group:`グループ化`,grouping_options:`グループ化オプション`,type:`種類`,all:`すべて`,image:`画像`,video:`動画`,audio:`音声`,document:`書類`,other:`その他`,show_assets:`アセットを表示`,hide_assets:`アセットを隠す`,show_info:`情報を表示`,hide_info:`情報を隠す`,all_assets:`すべてのアセット`,global_assets:`グローバルアセット`,entry_not_found:`エントリーが見つかりませんでした。`,creating_entries_disabled_by_admin:`このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。`,creating_entries_disabled_by_quota:`このコレクションは最大の {$quota} エントリーに達したため、新しいエントリーを作成することはできません。`,creating_entries_nearing_quota:`このコレクションは {$quota} エントリーの上限に近づいています。あと {$remaining} 件のエントリーしか作成できません。`,back_to_collection:`コレクションへ戻る`,collection_list:`コレクションリスト`,back_to_collection_list:`コレクションリストへ戻る`,asset_folder_list:`アセットフォルダーリスト`,back_to_asset_folder_list:`アセットフォルダーリストへ戻る`,search_results:`検索結果`,search_results_for_x:`「{$terms}」の検索結果`,viewing_entry_search_results:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。エントリーは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のエントリーが見つかりました。}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。アセットは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のアセットが見つかりました。}}`,x_entries:`{$count} 個のエントリー`,x_assets:`{$count} 個のアセット`,no_files_found:`ファイルは見つかりませんでした。`,no_entries_found:`エントリーは見つかりませんでした。`,upload_assets:`新しいアセットをアップロード`,edit_options:`編集オプション`,show_edit_options:`編集オプションを表示`,edit_asset:`アセットを編集`,edit_x:`{$name} を編集`,wrap_long_lines:`長い行を折り返す`,rename_asset:`アセットの名前を変更`,rename_x:`{$name} の名前を変更`,enter_new_name_for_asset:`.input {$count :integer} .match $count 0 {{新しい名前を以下に入力してください。}} one {{新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。}} * {{新しい名前を以下に入力してください。このアセットを使用している {$count} 個のエントリーも更新されます。}}`,enter_new_name_for_asset_error:{empty:`ファイル名を空白にすることはできません。`,character:`ファイル名に特別な文字を含めることはできません。`,duplicate:`このファイル名は他のアセットに使われています。`},replace_asset:`アセットを差し替え`,replace_x:`{$name} を差し替え`,click_to_browse:`クリックして参照…`,tap_to_browse:`タップして参照…`,drop_files_or_click_to_browse:`ここにファイルをドロップするかクリックして参照…`,drop_files_or:`ここにファイルをドロップするか`,drop_image_files_or:`ここに画像ファイルをドロップするか`,browse:`参照`,paste:`貼り付け`,paste_image:`画像を貼り付け`,no_image_in_clipboard:`クリップボードに画像が見つかりません。`,clipboard_access_denied:`クリップボードへのアクセスが拒否されました。`,drop_files_here:`ここにファイルをドロップ`,unsupported_file_type:`非対応ファイル形式`,dropped_file_type_mismatch:`ドロップされたファイルは {$type} 形式ではありません。再度お試しください。`,dropped_image_type_mismatch:`ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。`,choose_files:`ファイルを選択`,delete_assets:`アセットを削除`,delete_selected_assets:`選択されたアセットを削除`,confirm_deleting_this_asset:`このアセットを削除してもよろしいですか？`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{選択されたアセットを削除してもよろしいですか？}} * {{選択された {$count} 個のアセットを削除してもよろしいですか？}}`,confirm_deleting_all_assets:`すべてのアセットを削除してもよろしいですか？`,delete_entries:`エントリーを削除`,delete_selected_entries:`選択されたエントリーを削除`,confirm_deleting_this_entry:`このエントリーを削除してもよろしいですか？`,confirm_deleting_this_entry_with_assets:`このエントリーと関連アセットを削除してもよろしいですか？`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{選択されたエントリーを削除してもよろしいですか？}} * {{選択された {$count} 個のエントリーを削除してもよろしいですか？}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{選択されたエントリーと関連アセットを削除してもよろしいですか？}} * {{選択された {$count} 個のエントリーと関連アセットを削除してもよろしいですか？}}`,confirm_deleting_all_entries:`すべてのエントリーを削除してもよろしいですか？`,confirm_deleting_all_entries_with_assets:`すべてのエントリーと関連アセットを削除してもよろしいですか？`,reorder_entries:`エントリーを並び替え`,done_reordering_entries:`エントリーの並び替えを完了`,cancel_reordering_entries:`エントリーの並び替えをキャンセル`,saving_reorder_failed:`エントリーの並び替えを保存できませんでした。再度お試しください。`,processing_files:`ファイルを処理しています。これには時間がかかる場合があります。`,uploading_files:`アップロード対象ファイル`,confirm_replacing_file:`「{$name}」がこのファイルと置き換えられます:`,confirm_uploading_files:`.input {$count :integer} .match $count one {{このファイルを「{$folder}」フォルダーに保存します:}} * {{これら {$count} 個のファイルを「{$folder}」フォルダーに保存します:}}`,oversized_files:`サイズ超過ファイル`,warning_oversized_files:`.input {$count :integer} .match $count one {{このファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}} * {{これらのファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}}`,file_name_conflict_confirmation:`.input {$count :integer} .match $count one {{同じ名前のファイルがこのフォルダーに既に存在します。置き換えますか？}} * {{{$count} 個のファイルが同じ名前でこのフォルダーに既に存在します。置き換えますか？}}`,file_name_conflict_confirmation_with_name:`.input {$count :integer} .input {$name :string} .match $count one {{"{$name}" という名前のファイルはこのフォルダーに既に存在します。置き換えますか？}} * {{{$count} 個のファイルが同じ名前でこのフォルダーに既に存在します。置き換えますか？}}`,file_name_conflict_resolution:`ファイル名の競合解決`,keep_both:`両方とも残す`,uploading_files_progress:`ファイルをアップロード中…`,uploading_files_failed:`ファイルをアップロードできませんでした`,file_meta:`{$type} · {$size}`,file_meta_converted_from_x:`({$type} から変換)`,no_entries_created:`このコレクションにはまだエントリーがありません。`,create_new_entry:`新しいエントリーを作成`,entry:`エントリー`,index_file:`インデックスファイル`,no_files_in_collection:`このコレクションにはファイルがありません。`,asset_info:`アセット情報`,select_asset_show_info:`アセットを選択すると情報が表示されます。`,duplicate_entry:`エントリーを複製`,entry_duplicated:`エントリーが複製され、新しい下書きとなりました。`,entry_validation_errors:`.input {$count :integer} .match $count one {{ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}} * {{{$count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}}`,entry_saved:`.input {$count :integer} .match $count one {{エントリーが保存されました。}} * {{{$count} 件のエントリーが保存されました。}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{エントリーが保存、公開されました。}} * {{{$count} 件のエントリーが保存、公開されました。}}`,entries_deleted:`.input {$count :integer} .match $count one {{エントリーが削除されました。}} * {{{$count} 個のエントリーが削除されました。}}`,assets_saved:`.input {$count :integer} .match $count one {{アセットが保存されました。}} * {{{$count} 個のアセットが保存されました。}}`,asset_saved_and_published:`アセットが保存、公開されました。`,assets_saved_and_published:`.input {$count :integer} .match $count one {{アセットが保存、公開されました。}} * {{{$count} 個のアセットが保存、公開されました。}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{アセット URL がクリップボードにコピーされました。}} * {{{$count} 個のアセット URL がクリップボードにコピーされました。}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{アセットファイルパスがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルパスがクリップボードにコピーされました。}}`,asset_data_copied:`.input {$count :integer} .match $count one {{アセットファイルがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルがクリップボードにコピーされました。}}`,assets_downloaded:`.input {$count :integer} .match $count one {{アセットファイルがダウンロードされました。}} * {{{$count} 個のアセットファイルがダウンロードされました。}}`,assets_moved:`.input {$count :integer} .match $count one {{アセットが移動されました。}} * {{{$count} 個のアセットが移動されました。}}`,assets_renamed:`.input {$count :integer} .match $count one {{アセットの名前が変更されました。}} * {{{$count} 個のアセットの名前が変更されました。}}`,assets_deleted:`.input {$count :integer} .match $count one {{アセットが削除されました。}} * {{{$count} 個のアセットが削除されました。}}`,content_editor:`コンテンツエディター`,restore_backup_title:`下書きを復元`,restore_backup_description:`このエントリーには {$datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか？`,draft_backup_saved:`下書きのバックアップが保存されました。`,draft_backup_restored:`下書きのバックアップが復元されました。`,draft_backup_deleted:`下書きのバックアップが削除されました。`,cancel_editing:`編集をキャンセル`,create_entry_title:`{$name} を作成`,create_entry_announcement:`「{$collection}」コレクションの新しいエントリーを作成しています。`,edit_entry_title:`{$collection} › {$entry}`,edit_entry_announcement:`「{$collection}」コレクションの「{$entry}」エントリーを編集しています。`,edit_file_announcement:`「{$collection}」コレクションの「{$file}」ファイルを編集しています。`,edit_singleton_announcement:`「{$file}」ファイルを編集しています。`,save_and_publish:`保存して公開`,save_without_publishing:`公開せずに保存`,show_editor_options:`エディターオプションを表示`,editor_options:`エディターオプション`,show_preview:`プレビューを表示`,sync_scrolling:`スクロールを同期`,switch_locale:`ロケールを切り替え`,locale_content_disabled_short:`(無効)`,locale_content_error_short:`(エラー)`,edit:`編集`,preview:`プレビュー`,swap_panes:`ペインを入れ替える`,edit_x_locale:`{$locale} コンテンツを編集`,preview_x_locale:`{$locale} コンテンツをプレビュー`,content_preview:`コンテンツプレビュー`,show_content_options_x_locale:`{$locale} コンテンツのオプションを表示`,content_options_x_locale:`{$locale} コンテンツのオプション`,x_field:`「{$field}」フィールド`,show_field_options:`フィールドオプションを表示`,field_options:`フィールドオプション`,unsupported_field_type_x:`非対応フィールドタイプ: {$name}`,enable_x_locale:`{$locale} を有効化`,reenable_x_locale:`{$locale} を再度有効化`,disable_x_locale:`{$locale} を無効化`,locale_x_has_been_disabled:`{$locale} コンテンツは無効化されています。`,locale_x_now_disabled:`{$locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。`,view_in_repository:`レポジトリ内で見る`,view_on_x:`{$service} で見る`,view_on_live_site:`管理対象サイトで見る`,copy_from:`他の言語からコピー…`,copy_from_x:`{$locale} からコピー`,translation_options:`翻訳オプション`,translate:`翻訳`,translate_fields:`フィールドを翻訳`,translate_from:`他の言語から翻訳…`,translate_from_x:`{$locale} から翻訳`,revert_changes:`変更を取り消す`,revert_all_changes:`すべての変更を取り消す`,edit_slug:`スラッグを編集`,edit_slug_warning:`スラッグを変更すると、エントリーへの内部・外部リンクが壊れる可能性があります。現在のところ、Sveltia CMS は Relation フィールドで作成された参照を更新しないため、そのような参照は他のリンクとともに手動で更新する必要があります。`,edit_slug_error:{empty:`スラッグは空白にはできません。`,invalid:`スラッグにはスラッシュや空白を含む特殊文字を使用できません。`,duplicate:`このスラッグは他のエントリーに使われています。`},required:`必須`,editor:{translation:{none:`翻訳されたフィールドはありません。`,started:`翻訳中…`,error:`翻訳中に問題が発生しました。`,complete:`.input {$count :integer} .match $count 0 {{{$source} から翻訳されたフィールドはありません。}} one {{{$source} からフィールドを翻訳しました。}} * {{{$source} から {$count} 個のフィールドを翻訳しました。}}`},copy:{none:`コピーされたフィールドはありません。`,complete:`.input {$count :integer} .match $count 0 {{{$source} からコピーされたフィールドはありません。}} one {{{$source} からフィールドをコピーしました。}} * {{{$source} から {$count} 個のフィールドをコピーしました。}}`}},validation:{value_missing:`この項目は必須です。`,range_underflow:{"datetime-local":`日時は {$min} かそれ以降でなければなりません。`,date:`日付は {$min} かそれ以降でなければなりません。`,time:`時刻は {$min} かそれ以降でなければなりません。`,number:`値は {$min} 以上でなければなりません。`,select:`少なくとも {$min} 個の項目を選択してください。`,add:`少なくとも {$min} 個の項目を追加してください。`},range_overflow:{"datetime-local":`日時は {$max} かそれ以前でなければなりません。`,date:`日付は {$max} かそれ以前でなければなりません。`,time:`時刻は {$max} かそれ以前でなければなりません。`,number:`値は {$max} 以下でなければなりません。`,select:`これ以上選択できる項目はありません。最大は {$max} 個です。`,add:`これ以上追加できる項目はありません。最大は {$max} 個です。`},too_short:`少なくとも {$min} 文字は入力してください。`,too_long:`{$max} 文字を超える入力はできません。`,type_mismatch:{number:`数値を入力してください。`,email:`正しいメールアドレスを入力してください。`,url:`正しい URL を入力してください。`}},entry_sidebar:{sidebar_panels:`サイドバーパネル`,validation:{title:`バリデーション`,placeholder:`検証結果がここに表示されます。`,no_errors_found:`エラーは見つかりませんでした。`},history:{title:`履歴`,fetch_failed:`履歴を読み込めませんでした。`,no_history:`履歴が見つかりませんでした。`},backlinks:{title:`バックリンク`,no_entries:`このエントリーを参照しているエントリーはありません。`}},saving_entry:{error:{title:`エラー`,description:`エントリーを保存中に問題が発生しました。後で再度お試しください。`}},find_place:`場所を検索`,use_your_location:`現在地を使用`,geolocation_error_title:`位置情報エラー`,geolocation_error_body:`あなたの現在地を取得できませんでした。`,geolocation_unsupported:`お使いのブラウザーは位置情報 API をサポートしていません。`,viewing_x_asset_details:`「{$name}」アセットの詳細を表示しています。`,asset_editor:`アセットエディター`,preview_unavailable:`プレビューは表示できません`,public_urls:`公開 URL`,file_paths:`ファイルパス`,file_data:`ファイルデータ`,kind:`種類`,size:`サイズ`,dimensions:`大きさ`,duration:`再生時間`,used_in:`使われているエントリー`,created_date:`作成日時`,location:`場所`,map_lat_lng:`緯度 {$latitude}、経度 {$longitude} の地図`,remove_this_item:`このアイテムを削除`,move_up:`上へ移動`,move_down:`下へ移動`,add_x:`{$name} を追加`,add_item_above:`上にアイテムを追加`,add_item_below:`下にアイテムを追加`,select_list_type:`リストタイプを選択`,opacity:`透明度`,unselected_option:`(なし)`,assets_dialog:{title:{file:`ファイルを選択`,image:`画像を選択`},search_for_file:`ファイルを検索`,search_for_image:`画像を検索`,locations:`場所`,folder:{field:`フィールドアセット`,entry:`エントリーアセット`,file:`ファイルアセット`,collection:`コレクションアセット`,global:`グローバルアセット`},error:{invalid_key:`あなたの API キーは正しくないか期限切れです。確認の上、再度お試しください。`,search_fetch_failed:`アセットを検索中に問題が発生しました。後で再度お試しください。`,image_fetch_failed:`選択されたアセットをダウンロード中に問題が発生しました。後で再度お試しください。`},available_images:`利用可能な画像`,enter_url:`URL を入力`,enter_file_url:`ファイルの URL を入力:`,enter_image_url:`画像の URL を入力:`,large_file:{title:`大きなファイル`},photo_credit:{title:`写真クレジット`,description:`可能であれば以下のクレジットを使ってください:`},unsaved:`未保存`},character_counter:{min_max:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}。最大 {$max}。}} * {{{$count} 文字入力されています。最小: {$min}。最大 {$max}。}}`,min:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}}} * {{{$count} 文字入力されています。最小: {$min}。}}`,max:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最大: {$max}。}} * {{{$count} 文字入力されています。最大: {$max}。}}`},youtube_video_player:`YouTube 動画プレーヤー`,today:`今日`,now:`現在時刻`,editor_components:{image:`画像`,src:`ソース`,alt:`代替テキスト`,title:`タイトル`,link:`リンク`},key_value:{key:`キー`,value:`値`,action:`アクション`,empty_key:`キーは必須です。`,duplicate_key:`キーが重複しています。`},boolean:{true:`はい`,false:`いいえ`},cloud_storage:{invalid:`このサービスは正しく設定されていません。`,auth:{api_key:{key_label:`API キー`,initial:`{$service} の {$key} を入力してください。`,requested:`検証中…`,error:`入力された {$key} が無効です。確認の上、再度お試しください。`},password:{initial:`{$service} のパスワードを入力してください。`,requested:`ログイン中…`,error:`ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。`}},cloudinary:{iframe_title:`Cloudinary メディアライブラリ`,activate:{button_label:`Cloudinary を有効化`,description:`ログイン後、再度 Sign In ボタンをクリックして続行してください。`},auth_key_label:`API Secret`,open_library:`Cloudinary を開く`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`シークレットアクセスキー`},cloudflare_r2:{auth_key_label:`シークレットアクセスキー`},digitalocean_spaces:{auth_key_label:`シークレットアクセスキー`}},config:{errors:`CMS 設定に問題が見つかりました。問題を解決してから再度お試しください。`,error_locator:{collection:`{$collection} コレクション`,file:`{$file} ファイル`,component:`{$component} コンポーネント`,field:"`{$field}` フィールド"},error:{no_secure_context:`Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。`,insecure_urls:`設定ファイルの URL は HTTPS プロトコルまたはローカルホストアドレスを使用する必要があります。`,fetch_failed:`設定ファイルを読み込めませんでした。`,fetch_failed_not_ok:`HTTP レスポンスがステータス {$status} で返されました。`,fetch_failed_with_manual_init:"設定ファイルを取得できませんでした。`config.yml` ファイルの読み込みを防ぐには、`CMS.init()` に渡される設定オブジェクトに [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) を追加してください。",parse_failed:`設定ファイルを解析できませんでした。`,parse_failed_invalid_object:`設定ファイルが有効な JavaScript オブジェクトではありません。`,parse_failed_unsupported_type:`設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML、TOML と JSON のみです。`,no_collection:`コレクションが定義されていません。`,missing_backend:`バックエンドが定義されていません。`,missing_backend_name:`バックエンド名が定義されていません。`,unsupported_known_backend:`{$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_deprecated_backend:`廃止予定の {$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_custom_backend:`カスタムバックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_backend_suggestion:`[サポートされているバックエンド](https://sveltiacms.app/en/docs/backends#supported-backends) のいずれかを使用してください。`,missing_repository:`レポジトリが定義されていません。`,invalid_repository:`設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。`,oauth_implicit_flow:`設定されている認証方式 (暗黙的フロー) は Sveltia CMS では非対応です。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) を使用してください。`,github_pkce_unsupported:`GitHub の制約により PKCE 認証はまだサポートされていません。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/github#authentication) を使用してください。`,oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。`,no_auth_methods:"`auth_methods` オプションには少なくとも 1 つの認証方法を含める必要があります。",missing_media_folder:`メディアフォルダーが定義されていません。`,invalid_media_folder:`設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。`,invalid_public_folder:`設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。`,public_folder_relative_path:`設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。`,public_folder_absolute_url:`パブリックフォルダーオプションの絶対 URL は Sveltia CMS では非対応です。`,invalid_asset_collections:"`asset_collections` オプションが正しくありません。配列である必要があります。",missing_asset_collection_name:"アセットコレクション {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_asset_collection_name:"アセットコレクション名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_asset_collection_name:"アセットコレクション名は一意でなければなりませんが、`{$name}` が複数回使用されています。",asset_collection_invalid_media_folder:"`{$name}` アセットコレクションには、`media_folder` オプションを文字列として定義する必要があります。",invalid_collection_no_options:"コレクションは `folder`、`files`、`divider` オプションのいずれかを定義する必要があります。",invalid_collection_multiple_options:"コレクションは `folder`、`files`、`divider` オプションを同時に持つことはできません。",file_format_mismatch:"拡張子 `{$extension}` は `{$format}` 形式と一致しません。",invalid_slug_slash:"スラッグテンプレート `{$slug}` は無効です。スラッシュを含めることはできません。エントリーをサブフォルダーに整理するには、`slug` の代わりに `path` オプションを使用してください。",missing_collection_name:"コレクション {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_name:"コレクション名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_name:"コレクション名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_collection_file_name:"コレクションファイル {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_file_name:"コレクションファイル名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_file_name:"コレクションファイル名は一意でなければなりませんが、`{$name}` が複数回使用されています。",collection_no_fields:`コレクションには少なくとも 1 つのフィールドを定義する必要があります。`,collection_file_no_fields:`コレクションファイルには少なくとも 1 つのフィールドを定義する必要があります。`,collection_file_i18n_required:"コレクションファイルには、`file` パスで `locale` プレースホルダーを使用する場合、`i18n` オプションを定義する必要があります。",missing_field_name:"フィールド {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_field_name:"フィールド名 `{$name}` は無効です。特殊文字を含めることはできません。ネストされたフィールドを作成したい場合は、[ドット表記ではなくオブジェクトフィールドを使用してください](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions)。",duplicate_field_name:"フィールド名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_variable_type:"変数タイプ {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_variable_type:"変数タイプ名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_variable_type:"変数タイプ名は一意でなければなりませんが、`{$name}` が複数回使用されています。",date_field_type:"Sveltia CMS では非推奨の Date フィールドタイプはサポートされていません。代わりに `type: date` オプション付きの DateTime フィールドタイプを使用してください。",invalid_timezone:"無効なタイムゾーン: {$timeZone}。有効な IANA タイムゾーン識別子を使用してください。例: `America/New_York` または `Asia/Tokyo`。",unsupported_deprecated_option:"Sveltia CMS では非推奨の `{$prop}` オプションはサポートされていません。代わりに `{$newProp}` オプションを使用してください。",allow_multiple:"Sveltia CMS では `allow_multiple` オプションはサポートされていません。代わりにデフォルトで `false` の `multiple` オプションを使用してください。",invalid_list_field:"List フィールドは `field`、`fields`、`types` オプションを同時に持つことはできません。",invalid_list_variable_type:"List フィールドの変数タイプが無効です。`widget` オプションは `{$widget}` に設定されていますが、`object` でなければなりません。",invalid_object_field:"Object フィールドは `fields` と `types` オプションを同時に持つことはできません。",object_field_missing_fields:"Object フィールドは `fields` または `types` オプションのいずれかを定義する必要があります。",relation_field_invalid_collection:"参照されている `{$collection}` コレクションは無効であるか定義されていません。",relation_field_invalid_collection_file:"参照されている `{$file}` ファイルは無効であるか定義されていません。",relation_field_missing_file_name:"ファイルコレクションへの参照には `file` オプションを定義する必要があります。",relation_field_invalid_value_field:"参照されている値フィールド `{$field}` は無効であるか定義されていません。",unexpected:`予期せぬ問題`},warning:{oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。ユーザーがログインするにはアクセストークンを入力する必要があります。`,editorial_workflow_unsupported:`Sveltia CMS ではまだエディトリアルワークフローはサポートされていません。`,open_authoring_unsupported:`Sveltia CMS ではまだオープンオーサリングはサポートされていません。`,nested_collections_unsupported:`Sveltia CMS ではネストされたコレクションはまだサポートされていません。`,unsupported_ignored_option:"`{$prop}` オプションは Sveltia CMS ではサポートされていません。このオプションは無視されます。",conflicting_timezone_options:"`picker_utc` と新しいタイムゾーンオプション (`input_timezone` または `output_utc`) の両方が設定されています。新しいオプションが優先されます。設定から `picker_utc` を削除することを検討してください。"},compatibility_link:`詳しくは互換性情報をご覧ください: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,schema_tip:`より良い開発者体験のために、設定ファイルを Sveltia CMS の JSON スキーマに対して検証できます。詳細は https://sveltiacms.app/en/docs/config-basics#validation-and-autocomplete をご覧ください。`},local_workflow:{indicator:`ローカル`,unsupported_browser:`お使いのブラウザーはローカルワークフローに対応していません。代わりに Chrome か Edge を使ってください。`,disabled:`お使いのブラウザーではローカルワークフローが無効化されています。<a>有効化する方法はこちら</a>。`},status:{drafts:`下書き`,in_review:`レビュー中`,ready:`公開可`},categories:`カテゴリ`,prefs:{changes:{api_key_saved:`API キーが保存されました。`,api_key_removed:`API キーが削除されました。`,api_key_invalid:`入力された API キーは無効です。再度確認してお試しください。`},error:{permission_denied:`ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。`},appearance:{title:`アピアランス`,theme:`テーマ`,select_theme:`テーマを選択`},theme:{auto:`自動`,dark:`ダーク`,light:`ライト`},language:{title:`言語`,ui_language:{title:`ユーザーインターフェース言語`,select_language:`言語を選択`}},contents:{title:`コンテンツ`,editor:{title:`エディター`,use_draft_backup:{switch_label:`エントリーの下書きを自動的にバックアップする`},close_on_save:{switch_label:`下書き保存後にエディターを閉じる`},close_with_escape:{switch_label:`Escape キーでエディターを閉じる`}}},i18n:{title:`国際化`,translators:{default:{title:`デフォルト翻訳サービス`,select_service:`サービスを選択`},api_keys:{title:`翻訳サービス API キー`,description:`<a>翻訳サービス</a> の API キーを管理します。`},field_label:`{$service} キー`,description:`<a {$homeHref}>{$service}</a> にユーザー登録して、<a {$apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。`}},media:{title:`メディア`,stock_photos:{api_keys:{title:`無料画像素材サービス API キー`,description:`<a>無料画像素材サービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,description:`<a {$homeHref}>{$service} API</a> にユーザー登録して、<a {$apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。`,credit:`写真提供: {$service}`,no_services:`利用可能な <a>無料画像素材サービス</a> はありません。`},cloud_storage:{api_keys:{title:`クラウドストレージサービス API キー`,description:`<a>クラウドストレージサービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,no_services:`利用可能な <a>クラウドストレージサービス</a> はありません。`}},accessibility:{title:`アクセシビリティ`,underline_links:{title:`リンクに下線を付ける`,description:`エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。`,switch_label:`常に下線を付ける`}},advanced:{title:`詳細`,beta:{title:`ベータ機能`,description:`不安定あるいは未ローカライズの可能性がある、いくつかのベータ機能を有効化します。`,switch_label:`ベータプログラムに参加する`},developer_mode:{title:`開発者モード`,description:`詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの開発者向け機能を有効化します。`,switch_label:`開発者モードを有効にする`},deploy_hook:{title:`デプロイフック`,description:`「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。`,url:{field_label:`フック URL`,saved:`フック URL が保存されました。`,removed:`フック URL が削除されました。`},auth:{field_label:`認証ヘッダー (例: Bearer <token>) (オプション)`,saved:`認証ヘッダーが保存されました。`,removed:`認証ヘッダーが削除されました。`}}}},keyboard_shortcuts_:{view_content_library:`コンテンツライブラリを表示`,view_asset_library:`アセットライブラリを表示`,search:`エントリーとアセットを検索`,create_entry:`新しいエントリーを作成`,save_entry:`エントリーを保存`,cancel_editing:`エントリーの編集をキャンセル`},file_type_labels:{avif:`AVIF 画像`,bmp:`Bitmap 画像`,gif:`GIF 画像`,ico:`アイコン`,jpeg:`JPEG 画像`,jpg:`JPEG 画像`,png:`PNG 画像`,svg:`SVG 画像`,tif:`TIFF 画像`,tiff:`TIFF 画像`,webp:`WebP 画像`,avi:`AVI 動画`,m4v:`MP4 動画`,mov:`QuickTime 動画`,mp4:`MP4 動画`,mpeg:`MPEG 動画`,mpg:`MPEG 動画`,ogg:`Ogg 動画`,ogv:`Ogg 動画`,ts:`MPEG 動画`,webm:`WebM 動画`,"3gp":`3GPP 動画`,"3g2":`3GPP2 動画`,aac:`AAC 音声`,mid:`MIDI`,midi:`MIDI`,m4a:`MP4 音声`,mp3:`MP3 音声`,oga:`Ogg 音声`,opus:`OPUS 音声`,wav:`WAV 音声`,weba:`WebM 音声`,csv:`CSV スプレッドシート`,doc:`Word ドキュメント`,docx:`Word ドキュメント`,odp:`OpenDocument プレゼンテーション`,ods:`OpenDocument スプレッドシート`,odt:`OpenDocument テキスト`,pdf:`PDF ドキュメント`,ppt:`PowerPoint プレゼンテーション`,pptx:`PowerPoint プレゼンテーション`,rtf:`リッチテキストドキュメント`,xls:`Excel スプレッドシート`,xlsx:`Excel スプレッドシート`,html:`HTML テキスト`,js:`JavaScript`,json:`JSON テキスト`,md:`Markdown テキスト`,toml:`TOML テキスト`,yaml:`YAML テキスト`,yml:`YAML テキスト`},file_size_units:{b:`{$size} バイト`,kb:`{$size} KB`,mb:`{$size} MB`,gb:`{$size} GB`,tb:`{$size} TB`}}})),t8,hhe,n8=s((()=>{fhe(),mhe(),X(),$(),Yp(),Zp(),OO(),t8=Xp(()=>Xh.current),hhe=()=>{Object.entries(Object.assign({"/src/lib/locales/en.yaml":dhe,"/src/lib/locales/ja.yaml":phe})).forEach(([e,t])=>{let n=Vp(e).filename;Kh(n,{...t,_sui:l2[n]??{}})}),ete({fallbackLocale:`en`,initialLocale:DO.locale||(Zh()??``).split(`-`)[0]||`en`})}})),r8,ghe=s((()=>{p(),r8=(e,t)=>{if(Array.isArray(e))return{options:e};if(d(e)){let n=e[t],r=e.default;if(Array.isArray(n)){let e=r?n.find(({name:e})=>e===r):void 0;return{options:n,default:e?{field:e.field,pattern:e.pattern}:void 0}}}return{options:[]}}})),i8,_he,vhe,yhe,bhe=s((()=>{Zp(),h2(),Sw(),g8(),ghe(),jP(),eN(),i8=e=>r8(e,`filters`),_he=(e,t,n)=>{let{name:r,view_filters:i=[],_i18n:{defaultLocale:a}}=t,{options:o}=i8(i),s=n.filter(({field:e,pattern:t})=>e!==void 0&&t!==void 0&&o.some(n=>n.field===e&&String(n.pattern)===String(t))).map(({field:e,pattern:t})=>({field:e,pattern:t,regex:$M(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=AP({...o,resolveRef:!1}),c=AP({...o});return s===void 0||c===void 0?!1:f2(s,n,i)||f2(c,n,i)}))},vhe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=i8(e.view_filters);t(n),o8.update(e=>({...e,filters:e.filters??(r?[r]:void 0)}))},yhe=un([cw],([e],t)=>{vhe(e,t)})})),xhe,She,Che,whe,The=s((()=>{X(),Zp(),h2(),Sw(),g8(),ghe(),jP(),xhe=e=>r8(e,`groups`),She=(e,t,n)=>{let{field:r,pattern:i}=n??{field:``,pattern:void 0};if(!r)return e.length?[{name:`*`,entries:e}]:[];let{name:a,_i18n:{defaultLocale:o}}=t,s=dn(o8).sort,c=d2(e,i,e=>AP({entry:e,locale:o,collectionName:a,key:r}),Y(`other`)).map(([e,t])=>({name:e,entries:t}));return s?.key===r&&s.order===`descending`&&c.reverse(),c},Che=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=xhe(e.view_groups);t(n),o8.update(e=>({...e,group:e.group===void 0?r:e.group}))},whe=un([cw],([e],t)=>{Che(e,t)})})),Ehe,a8,Dhe,Ohe=s((()=>{Ehe=u(CO(),1),Zp(),h2(),Sw(),g8(),a8=ln(),Dhe=async({repository:e})=>{await m2(e,`contents-view`,a8),o8.subscribe(e=>{let{name:t}=dn(cw)??{},n=dn(a8)?.[t??``]??{};t&&!(0,Ehe.default)(e,n)&&a8.update(n=>({...n,[t]:e}))})}})),khe,Ahe=s((()=>{khe=e=>{let t=e,n=!0;for(;n;){let e=t;t=t.replaceAll(/([_*`~])([^_*`~]+)\1/g,`$2`),t=t.replaceAll(/([_*`~]{2,})(.+?)\1/g,`$2`),n=t!==e}return t}})),jhe,Mhe,Nhe,Phe=s((()=>{h2(),Tw(),w6(),x8(),jP(),RP(),tT(),Ahe(),jhe=[`title`,`summary`,`description`],Mhe=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>LP(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=AP({entry:t,locale:r,collectionName:i,key:e});return n?Number(Xw(n,a)??0):0}:t===String?t=>{let n=AP({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?khe(a):a}:t=>{let n=AP({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},Nhe=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=x6(t),c=n===`_manual`?s??n:n,l=wP({collectionName:a,keyPath:c}),u=n===`_manual`||c===s?Number:Hhe({key:n,fieldConfig:l}),d=l?.widget===`datetime`?l:void 0,f=l?.widget===`richtext`||l?.widget===`markdown`||jhe.includes(n),p=Mhe({key:c,type:u,collection:t,locale:o,collectionName:a,dateFieldConfig:d,isMarkdownField:f}),m=Object.fromEntries(i.map(e=>[e.slug,p(e)]));p2(i,e=>m[e.slug],!d&&u===String,r);let h=Cw(t)?.name;if(h){let e=i.findIndex(e=>e.slug===h);e>-1&&i.unshift(i.splice(e,1)[0])}return i}})),o8,s8,c8,l8,u8,d8,Fhe,f8,p8,m8,h8,g8=s((()=>{Zp(),n8(),iA(),yC(),Sw(),cN(),DC(),bhe(),The(),Ohe(),Phe(),OO(),o8=ln({type:`list`}),s8=ln(!1),c8=ln([]),l8=ln(!1),d8=un([mC,cw],([e,t],n)=>{n(e&&t?iN(t.name):[])}),Fhe=5,f8=un([d8,cw],([e,t])=>{if(t?._type===`entry`){let n=t.create??!0,r=t.delete??!0,i=!!t.reorder,a=t?.limit??1/0,o=a<1/0?a-e.length:1/0;return{isEntryCollection:!0,canCreate:n,canDelete:r,canReorder:i,quota:a,remaining:o,nearingQuota:o>0&&o<=Fhe,creationDisabled:!n||o<=0}}return{isEntryCollection:!1,canCreate:!1,canDelete:!1,canReorder:!1,quota:1/0,remaining:1/0,nearingQuota:!1,creationDisabled:!1}}),p8=void 0,m8=void 0,h8=un([d8,o8,t8],([e,t],n)=>{if(e===p8&&t===m8)return;p8=e,m8=t;let r=dn(cw),i=[...e];if(!i.length||wC(r,i[0]).length){n([]);return}t.sort&&(i=Nhe(i,r,t.sort)),t.filters&&(i=_he(i,r,t.filters)),n(She(i,r,t.group))}),s8.subscribe(e=>{if(!e){c8.set([]),l8.set(!1),u8&&=(o8.set(u8),void 0);return}let t=dn(o8);u8=t;let n={};t.sort?.key!==`_manual`&&(n.sort={key:`_manual`,order:`ascending`}),t.filters?.length&&(n.filters=[]),t.group&&(n.group=null),Object.keys(n).length&&o8.set({...t,...n})}),nA.subscribe(e=>{e&&!dn(a8)&&Dhe(e)}),d8.subscribe(e=>{nN.set([]),DO.devModeEnabled&&console.info(`listedEntries`,e)}),cw.subscribe(e=>{u8=void 0,s8.set(!1),e&&DO.devModeEnabled&&console.info(`selectedCollection`,e)})})),Ihe,_8,Lhe,Rhe,v8,y8,b8,zhe,Bhe,Vhe,Hhe,Uhe,Whe,x8=s((()=>{X(),yT(),p(),Ihe=u(CO(),1),Zp(),n8(),yC(),Sw(),w6(),g8(),Ohe(),jP(),sP(),_8=[`title`,`name`,`date`,`author`,`description`],Lhe=[`ascending`,`descending`],Rhe=[`date`,`commit_date`],v8={slug:String,commit_author:String,commit_date:Date,_summary:String,_manual:String},y8=Object.keys(v8),b8=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),zhe=e=>{if(b8(e))return{keys:e};if(d(e)){let{fields:t,default:n}=e;return b8(t)?d(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},Bhe=e=>e?{keys:[e,..._8.filter(t=>t!==e)],defaultKey:e}:{keys:[..._8]},Vhe=({collection:e,isCommitAuthorAvailable:t,isCommitDateAvailable:n})=>{let{name:r,identifier_field:i,sortable_fields:a,summary:o}=e,{keys:s,defaultKey:c,defaultOrder:l}=a?zhe(a):Bhe(i);o&&s.unshift(`_summary`);let u=s.includes(`commit_author`),d=s.includes(`commit_date`);t?!s.includes(`author`)&&!u&&s.push(`commit_author`):u&&(s=s.filter(e=>e!==`commit_author`)),n?!s.includes(`date`)&&!d&&s.push(`commit_date`):d&&(s=s.filter(e=>e!==`commit_date`)),s=vT(s).filter(e=>!!e&&(y8.includes(e)||!!wP({collectionName:r,keyPath:e})));let f=x6(e);return f&&(s=s.filter(e=>e!==f),s.includes(`_manual`)||s.unshift(`_manual`),c=`_manual`,l=`ascending`),c=c&&s.includes(c)?c:s[0],l??=c?`ascending`:void 0,{keys:s,default:{key:c,order:l}}},Hhe=({key:e,fieldConfig:t})=>{if(e in v8)return v8[e];if(t?.widget===`boolean`)return Boolean;if(t?.widget===`number`){let{value_type:e=`int`}=t;if(e===`int`||e===`float`)return Number}return String},Uhe=({collection:e,key:t})=>[...y8,`name`].includes(t)?Y(`sort_keys.${t}`):t.includes(`.`)?t.split(`.`).map((t,n,r)=>{if(aP(t))return;let i=r.slice(0,n+1).join(`.`);return wP({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` – `):e.fields?.find(({name:e})=>e===t)?.label||t,Whe=un([cw,mC,t8],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=dn(a8)?.[e.name]??{type:`list`},{keys:i,default:a}=Vhe({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:Uhe({collection:e,key:t})}))),(0,Ihe.default)(r,dn(o8))||o8.set(r)})}));function Ghe(e,t){k(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=q(t,`label`,3,``),o=q(t,`disabled`,3,!1),s=q(t,`sortKeys`,19,()=>[]),c=q(t,`collectionName`,3,void 0);{let r=e=>{{let r=M(()=>Y(`sorting_options`));YL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=V();vo(I(i),17,s,({key:e,label:t})=>e,(e,r)=>{let i=()=>z(r).key,a=()=>z(r).label;var o=Khe(),l=I(o);vo(l,16,()=>Lhe,e=>e,(e,r)=>{{let o=M(()=>Y(Rhe.includes(i())||c()&&wP({collectionName:c(),keyPath:i()})?.widget===`datetime`?`${r}_date`:r,{values:{label:a()}})),s=M(()=>n().sort?.key===i()&&n().sort.order===r);uR(e,{get label(){return z(o)},get checked(){return z(s)},onSelect:()=>{t.currentView.update(e=>({...e,sort:{key:i(),order:r}}))}})}});var u=L(l,2),d=e=>{MI(e,{})};W(u,e=>{i()===`_summary`&&s().length>1&&e(d)}),H(e,o)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||Y(`sort`));AI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}A(),i()}var Khe,qhe=s((()=>{Z(),J(),X(),$(),x8(),jP(),Khe=B(`<!> <!>`,1)}));function S8(e,t){k(t,!0),G(e,Zhe);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=q(t,`disabled`,3,!1),o=ec(t,Jhe),s=M(()=>n().type===`grid`);var c=Xhe(),l=F(c),u=e=>{{let n=M(()=>Y(`switch_view`));OI(e,tc({get disabled(){return a()},get"aria-label"(){return z(n)}},()=>o,{children:(e,n)=>{var r=Yhe(),i=I(r);{let e=e=>{tI(e,{name:`format_list_bulleted`})},n=M(()=>!z(s)),r=M(()=>Y(`list_view`));kI(i,{get disabled(){return a()},get selected(){return z(n)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,type:`list`}))},startIcon:e,$$slots:{startIcon:!0}})}var o=L(i,2);{let e=e=>{tI(e,{name:`grid_view`})},n=M(()=>Y(`grid_view`));kI(o,{get disabled(){return a()},get selected(){return z(s)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(n)},onSelect:()=>{t.currentView.update(e=>({...e,type:`grid`}))},startIcon:e,$$slots:{startIcon:!0}})}H(e,r)},$$slots:{default:!0}}))}},d=e=>{{let n=e=>{{let t=M(()=>z(s)?`format_list_bulleted`:`grid_view`);tI(e,{get name(){return z(t)}})}},r=M(()=>Y(z(s)?`switch_to_list_view`:`switch_to_grid_view`));bI(e,{get disabled(){return a()},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onclick:()=>{t.currentView.update(e=>({...e,type:z(s)?`list`:`grid`}))},startIcon:n,$$slots:{startIcon:!0}})}};W(l,e=>{AE.isLargeScreen?e(u):e(d,-1)}),O(c),H(e,c),A(),i()}var Jhe,Yhe,Xhe,Zhe,C8=s((()=>{Z(),J(),X(),$(),jE(),Jhe=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`currentView`]),Yhe=B(`<!> <!>`,1),Xhe=B(`<div role="none" class="wrapper svelte-8v3idr"><!></div>`),Zhe={hash:`svelte-8v3idr`,code:`.wrapper.svelte-8v3idr {display:contents;.select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}}`}})),Qhe,$he=s((()=>{X(),Zp(),n8(),JF(),Qhe=un([MF,t8],([e],t)=>{let n=[`name`];e.every(e=>!!e.commitAuthor)&&n.push(`commit_author`),e.every(e=>!!e.commitDate)&&n.push(`commit_date`),t(n.map(e=>({key:e,label:Y(`sort_keys.${e}`)})))})}));function ege(e,t){k(t,!0);let n=()=>j(A2,`$listedAssets`,o),r=()=>j(j2,`$assetGroups`,o),i=()=>j(Qhe,`$sortKeys`,o),a=()=>j(k2,`$currentView`,o),[o,s]=hn(),c=M(()=>!!n().length),l=M(()=>n().length>1);{let t=M(()=>Y(`asset_list`));f0(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=nge(),o=I(n),s=e=>{{let t=M(()=>Object.values(r()).flat(1));ohe(e,{get allItems(){return z(t)},get selectedItems(){return IF}})}};W(o,e=>{AE.isSmallScreen||AE.isMediumScreen||e(s)});var u=L(o,2);PI(u,{flex:!0});var d=L(u,2);{let e=M(()=>!z(l));Ghe(d,{get disabled(){return z(e)},get currentView(){return k2},get sortKeys(){return i()},"aria-controls":`asset-list`})}var f=L(d,2);{let e=M(()=>Y(`type`)),t=M(()=>!z(l)),n=M(()=>Y(`all`)),r=M(()=>ST.map(e=>({label:Y(e),field:`fileType`,pattern:e})));rhe(f,{get label(){return z(e)},get disabled(){return z(t)},get currentView(){return k2},get noneLabel(){return z(n)},get filters(){return z(r)},"aria-controls":`asset-list`})}var p=L(f,2);{let e=M(()=>!z(c));S8(p,{get disabled(){return z(e)},get currentView(){return k2},"aria-controls":`asset-list`})}var m=L(p,2),h=e=>{var t=tge(),n=I(t);MI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{tI(e,{name:`info`})},t=M(()=>!z(c)),n=M(()=>!!a().showInfo),i=M(()=>!!a().showInfo),o=M(()=>Y(a().showInfo?`hide_info`:`show_info`));bI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`asset-info`,get"aria-expanded"(){return z(i)},get"aria-label"(){return z(o)},onclick:()=>{k2.update(e=>({...e,showInfo:!a().showInfo}))},startIcon:e,$$slots:{startIcon:!0}})}H(e,t)};W(m,e=>{AE.isSmallScreen||AE.isMediumScreen||e(h)}),H(e,n)},$$slots:{default:!0}})}A(),s()}var tge,nge,rge=s((()=>{Z(),J(),X(),$(),ahe(),uhe(),qhe(),C8(),JF(),AT(),M2(),$he(),jE(),tge=B(`<!> <!>`,1),nge=B(`<!> <!> <!> <!> <!> <!>`,1)}));function w8(e,t){G(e,oge);let n=q(t,`primaryToolbar`,3,void 0),r=q(t,`secondaryToolbar`,3,void 0),i=q(t,`mainContent`,3,void 0),a=q(t,`secondarySidebar`,3,void 0),o=ec(t,ige);var s=age();Cs(s,()=>({role:`group`,class:`wrapper`,...o}),void 0,void 0,void 0,`svelte-1x2ldab`);var c=F(s);Ao(c,()=>n()??D);var l=L(c,2),u=F(l),d=F(u);Ao(d,()=>r()??D),Ao(L(d,2),()=>i()??D),O(u),Ao(L(u,2),()=>a()??D),O(l),O(s),H(e,s)}var ige,age,oge,T8=s((()=>{Z(),J(),ige=new Set([`$$slots`,`$$events`,`$$legacy`,`primaryToolbar`,`secondaryToolbar`,`mainContent`,`secondarySidebar`]),age=B(`<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>`),oge={hash:`svelte-1x2ldab`,code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;height:100%;background-color:var(--sui-primary-background-color);

    @media (768px <= width) {view-transition-name:page-main;
    }.sui.toolbar.primary {justify-content:center;

        @media (width < 768px) {background-color:var(--sui-secondary-background-color);
        }}}.resizable-pane > .wrapper.svelte-1x2ldab {border-start-start-radius:16px;}.main-inner.svelte-1x2ldab {flex:auto;display:flex;overflow:hidden;.main-inner-main:where(.svelte-1x2ldab) {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.secondary-sidebar {flex:none;overflow:auto;box-sizing:content-box;width:320px;background-color:var(--sui-secondary-background-color);

        @media (768px <= width) {border-start-start-radius:16px;
        }[role='listbox'] {padding:12px;}}}`}}));function E8(e,t){k(t,!0),G(e,dge);let n=()=>j(U2,`$hasOverlay`,r),[r,i]=hn(),a=q(t,`class`,3,``),o=q(t,`uiSettingsKey`,3,void 0),s=q(t,`primarySidebar`,3,void 0),c=q(t,`main`,3,void 0),l=ec(t,sge),u=N(void 0),d=N(void 0),f=null,p=async()=>{if(!o())return;let{databaseName:e}=dn(nA)?.repository??{};f=e?new iT(e,`ui-settings`):null,P(d,(await f?.get(o()))?.sidebarWidth??240,!0)},m=async e=>{!f||!o()||!z(u)||await f.set(o(),{...await f.get(o()),sidebarWidth:Math.round(z(u).clientWidth*(e/100))})};ai(()=>{n(),window.requestAnimationFrame(()=>{n()||p()})});var h=uge();Cs(h,()=>({role:`group`,id:`page-container`,class:`outer ${a()??``}`,inert:n(),...l}),void 0,void 0,void 0,`svelte-1kkfo1f`);var g=F(h),_=e=>{var t=cge(),n=I(t);Ao(n,()=>s()??D),Ao(L(n,2),()=>c()??D),H(e,t)},v=e=>{kR(e,{onResize:({sizes:e})=>{m(e[0])},children:(e,t)=>{var n=lge(),r=I(n);NR(r,{get defaultSize(){return`${z(d)??``}px`},minSize:`160px`,maxSize:`480px`,children:(e,t)=>{var n=V();Ao(I(n),s),H(e,n)},$$slots:{default:!0}});var i=L(r,2);wR(i,{}),NR(L(i,2),{children:(e,t)=>{var n=V();Ao(I(n),c),H(e,n)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})};W(g,e=>{AE.isSmallScreen||!s()||!c()?e(_):z(d)!==void 0&&e(v,1)}),O(h),qs(h,e=>P(u,e),()=>z(u)),H(e,h),A(),i()}var sge,cge,lge,uge,dge,D8=s((()=>{Z(),J(),$(),sT(),Zp(),$2(),iA(),jE(),sge=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`uiSettingsKey`,`primarySidebar`,`main`]),cge=B(`<!> <!>`,1),lge=B(`<!> <!> <!>`,1),uge=B(`<div><!></div>`),dge={hash:`svelte-1kkfo1f`,code:`.outer.svelte-1kkfo1f {flex:auto;display:flex;overflow:hidden;&[inert] {display:none;}.primary-sidebar {display:flex;flex-direction:column;flex:none;overflow-y:auto;height:100%;

        @media (width < 768px) {flex:auto;width:auto;background-color:var(--sui-primary-background-color);
        }

        /* Mobile header */header {display:flex;align-items:center;justify-content:space-between;padding:0 10px;height:var(--sui-primary-toolbar-size);h2 {padding:0 10px;font-size:var(--sui-font-size-x-large);}}.sui.search-bar {margin-inline:12px;--sui-textbox-background-color: var(--sui-tertiary-background-color);}[role='radiogroup'] {width:100%;}[role='listbox'] {margin:8px;border-width:0;background-color:transparent;button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:start;

            @media (pointer: coarse) {height:48px;
            }&:not(:first-child) {margin-top:4px;}&:not(:focus) {border-color:transparent;}span {flex:none;}.label {flex:auto;overflow:hidden;}.icon {transition:color 200ms;}.icon.check {display:none;}.count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}}[role='option'][aria-selected='true'] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);.count {color:var(--sui-highlighted-foreground-color);}}[role='option'].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}}.sui.divider {margin:8px 0;}}}`}}));function fge(e,t){k(t,!0);let n=M(()=>t.asset.path),r=M(()=>t.asset.name),i=M(()=>t.asset.folder),a=M(()=>t.asset.kind);DL(e,{onclick:()=>{X2(`/assets/${z(n)}`,{transitionType:`forwards`})},children:(e,n)=>{var o=mge(),s=I(o);CL(s,{class:`image`,children:(e,n)=>{j3(e,{get kind(){return z(a)},get asset(){return t.asset},variant:`icon`,cover:!0})},$$slots:{default:!0}});var c=L(s,2);CL(c,{class:`collection`,children:(e,t)=>{var n=V();lo(I(n),()=>Xh.current,e=>{var t=Ra();R(e=>U(t,e),[()=>D2(z(i))]),H(e,t)}),H(e,n)},$$slots:{default:!0}}),CL(L(c,2),{class:`title`,children:(e,t)=>{var n=pge();lI(F(n),{lines:2,children:(e,t)=>{gt();var n=Ra();R(()=>U(n,z(r))),H(e,n)},$$slots:{default:!0}}),O(n),H(e,n)},$$slots:{default:!0}}),H(e,o)},$$slots:{default:!0}}),A()}var pge,mge,hge=s((()=>{Z(),J(),X(),$(),z3(),$2(),M2(),pge=B(`<div role="none" class="label"><!></div>`),mge=B(`<!> <!> <!>`,1)})),O8,gge,k8,A8=s((()=>{O8=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLocaleLowerCase():``),gge=(e,t=void 0)=>{if(!t)return O8(e);let n=t.get(e);if(n!==void 0)return n;let r=O8(e);return t.set(e,r),r},k8=({value:e,terms:t,normalizedValueCache:n=void 0})=>gge(e,n).includes(t)})),_ge,vge,yge=s((()=>{Zp(),JF(),Q6(),A8(),_ge=({assets:e,terms:t})=>{if(t=O8(t),!e.length||!t)return[];let n=new Map;return e.filter(e=>k8({value:e.name,terms:t,normalizedValueCache:n}))},vge=un([MF,Z6],([e,t])=>_ge({assets:e,terms:t}))}));function bge(e,t){k(t,!0);let n=()=>j(Z6,`$searchTerms`,i),r=()=>j(vge,`$assetSearchResults`,i),[i,a]=hn();ri(()=>{mn(G2,Y(`viewing_asset_search_results`,{values:{terms:n(),count:r().length}}))}),n2(e,{"aria-labelledby":`search-results-assets`,children:(e,t)=>{var i=Sge(),a=F(i),o=e=>{{let t=M(()=>Y(`assets`));J6(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=V();lo(I(i),n,e=>{IR(e,{get items(){return r()},itemKey:`path`,renderItem:(e,t=D)=>{var n=V();ro(I(n),nT,null,e=>{fge(e,{get asset(){return t()}})}),H(e,n)},$$slots:{renderItem:!0}})}),H(e,i)},$$slots:{default:!0}})}},s=e=>{$0(e,{children:(e,t)=>{var n=xge(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})};W(a,e=>{r().length?e(o):n()&&e(s,1)}),O(i),H(e,i)},$$slots:{default:!0}}),A(),a()}var xge,Sge,Cge=s((()=>{Z(),J(),X(),$(),rT(),Y6(),hge(),$2(),Q6(),yge(),xge=B(`<span role="none"> </span>`),Sge=B(`<div role="none"><!></div>`)}));function wge(e,t){k(t,!0);let n=(e,t)=>{let n=()=>(t?.()).collection,c=()=>(t?.()).collectionFile,l=M(()=>{let{defaultLocale:e}=(c()??n())._i18n??aw;return{defaultLocale:e}}),u=M(()=>{let{content:e}=z(o)[z(l).defaultLocale]??Object.values(z(o))[0]??{};return{content:e}});var d=V(),f=I(d),p=e=>{DL(e,{onclick:()=>{X2(`/collections/${n().name}/entries/${c()?.name||z(s)}`,{state:{highlight:{locale:z(i),keyPath:z(a)}},transitionType:`forwards`})},children:(e,t)=>{var i=Ege(),a=I(i);CL(a,{class:`image`,children:(e,t)=>{var i=V(),a=I(i),o=e=>{var t=V();ro(I(t),()=>YF(n(),z(r)),null,(e,t)=>{var n=V(),r=I(n),i=e=>{V6(e,{get src(){return z(t)},variant:`icon`,cover:!0})};W(r,e=>{z(t)&&e(i)}),H(e,n)}),H(e,t)};W(a,e=>{n()._type===`entry`&&e(o)}),H(e,i)},$$slots:{default:!0}});var o=L(a,2);CL(o,{class:`collection`,children:(e,t)=>{var r=V();lo(I(r),()=>Xh.current,e=>{var t=Ra();R(e=>U(t,e),[()=>bw(n())]),H(e,t)}),H(e,r)},$$slots:{default:!0}}),CL(L(o,2),{class:`title`,children:(e,t)=>{var i=Tge();lI(F(i),{lines:2,children:(e,t)=>{var i=V(),a=I(i),o=e=>{var t=Ra();R(e=>U(t,e),[()=>CC(c())]),H(e,t)},s=e=>{var t=V();lo(I(t),()=>Xh.current,e=>{var t=V();Eo(I(t),()=>LP(n(),z(r),{useTemplate:!0,allowMarkdown:!0})),H(e,t)}),H(e,t)};W(a,e=>{c()?e(o):e(s,-1)}),H(e,i)},$$slots:{default:!0}}),O(i),H(e,i)},$$slots:{default:!0}}),H(e,i)},$$slots:{default:!0}})};W(f,e=>{z(u).content&&e(p)}),H(e,d)},r=M(()=>t.result.entry),i=M(()=>t.result.locale),a=M(()=>t.result.keyPath),o=M(()=>z(r).locales),s=M(()=>z(r).subPath);var c=V();vo(I(c),17,()=>qM(z(r)),e=>e.name,(e,t)=>{var i=V();ro(I(i),nT,null,e=>{var i=V();vo(I(i),17,()=>wC(z(t),z(r)),e=>e.name,(e,r)=>{var i=V();ro(I(i),nT,null,e=>{n(e,()=>({collection:z(t),collectionFile:z(r)}))}),H(e,i)},e=>{n(e,()=>({collection:z(t)}))}),H(e,i)}),H(e,i)}),H(e,c),A()}var Tge,Ege,Dge=s((()=>{Z(),J(),X(),$(),rT(),H6(),$2(),Sw(),DC(),ZM(),ZF(),RP(),sw(),Tge=B(`<div role="none" class="label"><!></div>`),Ege=B(`<!> <!> <!>`,1)})),Oge,kge,Age,jge=s((()=>{Zp(),n8(),yC(),DC(),ZM(),RP(),Q6(),A8(),Oge=({entry:e,terms:t,normalizedValueCache:n=void 0})=>{let r=0,i,a,o=qM(e);if(o.length){o.forEach(i=>{k8({value:i.label||i.name,terms:t,normalizedValueCache:n})&&(r+=10),r+=wC(i,e).filter(e=>k8({value:e.label||e.name,terms:t,normalizedValueCache:n})).length});let[i]=o;k8({value:LP(i,e,{useTemplate:!0,allowMarkdown:!0}),terms:t,normalizedValueCache:n})&&(r+=10)}return Object.entries(e.locales).forEach(([e,{content:o}])=>{r+=Object.entries(o).filter(([r,o])=>{let s=typeof o==`string`&&!!o&&k8({value:o,terms:t,normalizedValueCache:n})||typeof o==`number`&&k8({value:String(o),terms:t,normalizedValueCache:n});return s&&!i&&!a&&(i=e,a=r),s}).length}),{entry:e,points:r,locale:i,keyPath:a}},kge=({entries:e,terms:t})=>{if(t=O8(t),!e.length||!t)return[];let n=new Map;return e.map(e=>Oge({entry:e,terms:t,normalizedValueCache:n})).filter(({points:e})=>e>0).sort((e,t)=>t.points-e.points)},Age=un([mC,Z6,t8],([e,t])=>kge({entries:e,terms:t}))}));function Mge(e,t){k(t,!0);let n=()=>j(Z6,`$searchTerms`,i),r=()=>j(Age,`$entrySearchResults`,i),[i,a]=hn();ri(()=>{mn(G2,Y(`viewing_entry_search_results`,{values:{terms:n(),count:r().length}}))}),n2(e,{"aria-labelledby":`search-results-entries`,children:(e,t)=>{var i=Pge(),a=F(i),o=e=>{{let t=M(()=>Y(`entries`));J6(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=V();lo(I(i),n,e=>{IR(e,{get items(){return r()},itemKey:`id`,renderItem:(e,t=D)=>{var n=V();ro(I(n),nT,null,e=>{wge(e,{get result(){return t()}})}),H(e,n)},$$slots:{renderItem:!0}})}),H(e,i)},$$slots:{default:!0}})}},s=e=>{$0(e,{children:(e,t)=>{var n=Nge(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`no_entries_found`)]),H(e,n)},$$slots:{default:!0}})};W(a,e=>{r().length?e(o):n()&&e(s,1)}),O(i),H(e,i)},$$slots:{default:!0}}),A(),a()}var Nge,Pge,Fge=s((()=>{Z(),J(),X(),$(),rT(),Y6(),Dge(),$2(),Q6(),jge(),Nge=B(`<span role="none"> </span>`),Pge=B(`<div role="none"><!></div>`)}));function Ige(e,t){k(t,!0),G(e,zge);let n=()=>j(X6,`$searchMode`,r),[r,i]=hn();var a=Rge(),o=F(a),s=e=>{f0(e,{variant:`primary`,children:(e,t)=>{var n=Lge(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`search_results`)]),H(e,n)},$$slots:{default:!0}})};W(o,e=>{AE.isSmallScreen||e(s)});var c=L(o,2),l=F(c),u=e=>{Mge(e,{})};W(l,e=>{n()===`contents`&&e(u)});var d=L(l,2),f=e=>{bge(e,{})};W(d,e=>{n()===`assets`&&e(f)}),O(c),O(a),H(e,a),A(),i()}var Lge,Rge,zge,Bge=s((()=>{Z(),J(),X(),$(),Cge(),Fge(),Q6(),jE(),Lge=B(`<h2 role="none"> </h2>`),Rge=B(`<div role="none" class="wrapper svelte-1p7vfqa"><!> <div role="none" class="results svelte-1p7vfqa"><!> <!></div></div>`),zge={hash:`svelte-1p7vfqa`,code:`.wrapper.svelte-1p7vfqa {flex:auto;display:flex;flex-direction:column;overflow:hidden;width:100%;background-color:var(--sui-primary-background-color);}.results.svelte-1p7vfqa {flex:auto;overflow:auto;& > .sui.group {display:contents;& > .inner > div {display:contents;}}h3 {flex:none;margin:16px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-large);& + div {overflow:auto;flex:auto;}

        @media (width < 768px) {display:none;
        }}}`}}));function j8(e,t){k(t,!0),G(e,Hge);let n=()=>j(X6,`$searchMode`,r),[r,i]=hn();w8(e,{primaryToolbar:e=>{var t=V(),r=I(t),i=e=>{f0(e,{variant:`primary`,children:(e,t)=>{var r=Vge(),i=I(r);{let e=M(()=>Y(n()===`assets`?`back_to_asset_folder_list`:`back_to_collection_list`));D3(i,{get"aria-label"(){return z(e)},onclick:()=>{mn(Z6,``),X2(n()===`assets`?`/assets`:`/collections`,{transitionType:`backwards`})}})}var a=L(i,2);$6(F(a),{}),O(a),H(e,r)},$$slots:{default:!0}})};W(r,e=>{AE.isSmallScreen&&e(i)}),H(e,t)},mainContent:e=>{Ige(e,{})},$$slots:{primaryToolbar:!0,mainContent:!0}}),A(),i()}var Vge,Hge,M8=s((()=>{Z(),J(),X(),$(),T8(),O3(),e8(),Bge(),$2(),Q6(),jE(),Vge=B(`<!> <div role="search" class="svelte-1476at1"><!></div>`,1),Hge={hash:`svelte-1476at1`,code:`[role='search'].svelte-1476at1 {display:contents;.sui.search-bar {flex:auto;}}`}})),Uge,N8,Wge=s((()=>{Zp(),Q6(),Uge=/^\/search\/(?<terms>.+)$/,N8=e=>{let{groups:t}=e.match(Uge)??{};if(!t)return!1;let{terms:n}=t;return n&&n!==dn(Z6)&&Z6.set(n),dn(X6)||X6.set(`contents`),!0}}));function Gge(e,t){k(t,!0);let n=()=>j(om,`$selectedAssetFolder`,l),r=()=>j(w2,`$showAssetOverlay`,l),i=()=>j(im,`$allAssetFolders`,l),a=()=>j(A2,`$listedAssets`,l),o=()=>j(RF,`$overlaidAsset`,l),s=()=>j(MF,`$allAssets`,l),c=()=>j(l3,`$assetUpdatesToast`,l),[l,u]=hn(),d=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/,f=N(!1),p=N(!1),m=M(()=>Xh.current&&n()?D2(n()):``),h=async()=>{let{path:e}=K2(),t=e.match(d);if(P(f,!1),P(p,!1),!t?.groups){mn(w2,!1),P(p,N8(e),!0);return}let{folderPath:r,fileName:c}=t.groups;if(!r){AE.isSmallScreen?(mn(om,void 0),mn(w2,!1),mn(G2,Y(`viewing_asset_folder_list`)),P(f,!0)):X2(`/assets/-/all`);return}let l=window.history.state?.folder??i().find(({internalPath:e,collectionName:t})=>r===`-/all`?e===void 0&&t===void 0:e===r);if(l?(0,Kge.default)(n(),l)||mn(om,l):mn(om,void 0),!c){await nT(100),mn(w2,!1),mn(G2,Y(`viewing_x_asset_folder`,{values:{folder:z(m),count:a().length}}));return}mn(RF,c?s().find(e=>e.path===`${r}/${c}`):void 0),mn(G2,o()?Y(`viewing_x_asset_details`,{values:{name:o().name}}):Y(`file_not_found`)),mn(w2,!0)};lc(()=>(h(),()=>{mn(w2,!1)}));var g=qge();wa(`hashchange`,Kr,e=>{Y2(e,h,d)});var _=I(g);{let e=e=>{var t=V(),n=I(t),r=e=>{Bme(e,{get isSearchPage(){return z(p)}})};W(n,e=>{(!AE.isSmallScreen||z(f))&&e(r)}),H(e,t)},t=e=>{var t=V(),n=I(t),r=e=>{j8(e,{})},i=e=>{{let t=e=>{Yme(e,{})},n=e=>{var t=V(),n=I(t),r=e=>{ege(e,{})};W(n,e=>{a().length&&e(r)}),H(e,t)},r=e=>{Pme(e,{})},i=e=>{ehe(e,{})},o=M(()=>Y(`x_asset_folder`,{values:{folder:z(m)}}));w8(e,{id:`assets-container`,get"aria-label"(){return z(o)},primaryToolbar:t,secondaryToolbar:n,mainContent:r,secondarySidebar:i,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};W(n,e=>{z(p)?e(r):(!AE.isSmallScreen||!z(f))&&e(i,1)}),H(e,t)},n=M(()=>Y(`asset_library`));E8(_,{uiSettingsKey:`assets-page`,get"aria-label"(){return z(n)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var v=L(_,2),y=e=>{rpe(e,{})};W(v,e=>{r()&&e(y)});var b=L(v,2);mpe(b,{});var x=L(b,2);ime(x,{});var S=L(x,2);jz(S,{get show(){return c().saved},set show(e){_n(l3,Gi(c).saved=e,Gi(c))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(c().published?`assets_saved_and_published`:`assets_saved`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=L(S,2);jz(C,{get show(){return c().moved},set show(e){_n(l3,Gi(c).moved=e,Gi(c))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`assets_moved`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=L(C,2);jz(w,{get show(){return c().renamed},set show(e){_n(l3,Gi(c).renamed=e,Gi(c))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`assets_renamed`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),jz(L(w,2),{get show(){return c().deleted},set show(e){_n(l3,Gi(c).deleted=e,Gi(c))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`assets_deleted`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,g),A(),u()}var Kge,qge,Jge=s((()=>{Z(),J(),X(),$(),rT(),Kge=u(CO()),dc(),upe(),_pe(),cme(),Ime(),Kme(),$me(),nhe(),rge(),T8(),D8(),M8(),$2(),JF(),u3(),fm(),M2(),Wge(),jE(),qge=B(`<!> <!> <!> <!> <!> <!> <!> <!>`,1)}));function Yge(e,t){k(t,!0),G(e,Zge);let n=()=>j(sA,`$dialogOpen`,r),[r,i]=hn(),a=N(``),o=N(``);lc(()=>{let e=fA(),{cloud_name:t,api_key:n}=(e?e.config:void 0)??{};if(!e||!t||!n)return;P(o,window.crypto.randomUUID(),!0);let r=new URLSearchParams({...Object.fromEntries(Object.entries(e.config??{}).filter(([e])=>uA.includes(e))),ml_id:z(o),pmHost:window.location.origin,new_cms:`true`});P(a,`${cA}/cms?${r}`)});var s=V(),c=I(s),l=e=>{gI(e,{keepContent:!0,get open(){return vn(),n()},set open(e){mn(sA,e)},children:(e,t)=>{var n=Xge();R(e=>{K(n,`src`,z(a)),K(n,`title`,e),K(n,`data-ml-id`,z(o))},[()=>Y(`cloud_storage.cloudinary.iframe_title`)]),H(e,n)},$$slots:{default:!0}})};W(c,e=>{z(a)&&e(l)}),H(e,s),A(),i()}var Xge,Zge,Qge=s((()=>{Z(),J(),X(),$(),dc(),_A(),Xge=B(`<iframe id="cloudinary-iframe" allow="camera; storage-access" sandbox="allow-same-origin allow-scripts allow-popups allow-forms
        allow-storage-access-by-user-activation" class="svelte-1y1y5aq"></iframe>`),Zge={hash:`svelte-1y1y5aq`,code:`iframe.svelte-1y1y5aq {display:block;width:calc(100% - 32px);height:calc(100% - 32px);border:none;}

  /* Avoid scrolling issue https://github.com/sveltia/sveltia-cms/issues/824 */dialog[inert] > iframe.svelte-1y1y5aq {display:none;}`}}));function $ge(e,t){k(t,!0),G(e,o_e);let n=()=>j(zF,`$uploadingAssets`,o),r=()=>j(Foe,`$processedAssets`,o),i=()=>j(w2,`$showAssetOverlay`,o),a=()=>j(E2,`$showUploadAssetsConfirmDialog`,o),[o,s]=hn(),c=N(Nr([])),l=N(!0),u=M(()=>n().files),d=M(()=>n().folder),f=M(()=>n().originalAssets),p=M(()=>z(f)?.[0]),m=M(()=>r().processing),h=M(()=>r().undersizedFiles),g=M(()=>r().oversizedFiles),_=M(()=>r().transformedFileMap),v=M(()=>OF().config),y=M(()=>z(v).max_file_size),b=M(()=>z(p)||z(d)?.internalPath===void 0?[]:KF(z(d).internalPath)),x=M(()=>qF(z(c),z(b))),S=M(()=>z(x).length);ri(()=>{P(c,[...z(h)],!0),P(l,!0)}),ri(()=>{i()||mn(zF,{folder:void 0,files:[]})});{let t=M(()=>Y(z(p)?`replace_asset`:`upload_assets`)),n=M(()=>Y(z(p)?`replace`:`upload`)),r=M(()=>!z(c).length);iL(e,{get open(){return a()},get title(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{let e=z(p)?z(f):z(l)?z(b):[];await l6({files:z(c),folder:z(d),originalAssets:e},{commitType:`uploadMedia`}),mn(zF,{folder:void 0,files:[]})},onCancel:()=>{mn(zF,{folder:void 0,files:[]})},children:(e,t)=>{var n=a_e(),r=I(n),i=e=>{var t=e_e(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`processing_files`,{values:{count:z(u).length}})]),H(e,t)};W(r,e=>{z(m)&&e(i)});var a=L(r,2),o=e=>{var t=t_e(),n=F(t),r=F(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`confirm_replacing_file`,{values:{name:z(p).name}})]),H(e,t)},a=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`confirm_uploading_files`,{values:{count:z(c).length,folder:`/${z(d)?.internalPath}`}})]),H(e,t)};W(r,e=>{z(p)?e(i):e(a,-1)}),O(n),U6(L(n,2),{get transformedFileMap(){return z(_)},get files(){return z(c)},set files(e){P(c,e,!0)}}),O(t),R(e=>K(t,`aria-label`,e),[()=>Y(`uploading_files`)]),H(e,t)};W(a,e=>{z(c).length&&e(o)});var s=L(a,2),f=e=>{var t=n_e(),n=F(t);rI(n,{status:`warning`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`warning_oversized_files`,{values:{count:z(g).length,size:FE(z(y))}})]),H(e,n)},$$slots:{default:!0}}),U6(L(n,2),{get files(){return z(g)},get transformedFileMap(){return z(_)},removable:!1}),O(t),R(e=>K(t,`aria-label`,e),[()=>Y(`oversized_files`)]),H(e,t)};W(s,e=>{z(g).length&&e(f)});var h=L(s,2),v=e=>{var t=i_e(),n=F(t),r=L(n);{let e=M(()=>Y(`file_name_conflict_resolution`));hR(r,{get"aria-label"(){return z(e)},onChange:({detail:e})=>{P(l,e.value===`replace`)},children:(e,t)=>{var n=r_e(),r=I(n);yR(r,{value:`replace`,get checked(){return z(l)},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`replace`)]),H(e,n)},$$slots:{default:!0}});var i=L(r,2);{let e=M(()=>!z(l));yR(i,{value:`keep`,get checked(){return z(e)},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`keep_both`)]),H(e,n)},$$slots:{default:!0}})}H(e,n)},$$slots:{default:!0}})}O(t),R(e=>U(n,`${e??``} `),[()=>Y(`file_name_conflict_confirmation`,{values:{count:z(S)}})]),H(e,t)};W(h,e=>{z(S)&&e(v)}),H(e,n)},$$slots:{default:!0}})}A(),s()}var e_e,t_e,n_e,r_e,i_e,a_e,o_e,s_e=s((()=>{Z(),J(),X(),$(),yme(),JF(),ppe(),M2(),kF(),HE(),e_e=B(`<div role="status"> </div>`),t_e=B(`<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>`),n_e=B(`<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>`),r_e=B(`<!> <!>`,1),i_e=B(`<div role="group" class="section svelte-96nj3d"> <!></div>`),a_e=B(`<!> <!> <!> <!>`,1),o_e={hash:`svelte-96nj3d`,code:`.section.svelte-96nj3d {display:flex;flex-direction:column;gap:12px;&:not(:first-child) {margin-top:16px;}& > * {flex:none;}&.oversized .files {opacity:0.5;}}`}}));function c_e(e,t){k(t,!0);let n=()=>j(zF,`$uploadingAssets`,o),r=()=>j(sm,`$targetAssetFolder`,o),i=()=>j(T2,`$showUploadAssetsDialog`,o),a=()=>j(w2,`$showAssetOverlay`,o),[o,s]=hn(),c=N(void 0),l=M(()=>n().originalAssets),u=M(()=>z(l)?.[0]),d=M(()=>!z(u)),f=M(()=>z(u)?hT.getType(z(u).name)??void 0:void 0),p=e=>{e.length&&(mn(zF,{folder:z(u)?z(u).folder:r(),files:e,originalAssets:z(l)}),mn(T2,!1))};ri(()=>{!AE.hasMouse&&i()&&z(c)?.open()}),ri(()=>{a()||mn(T2,!1)});var m=V(),h=I(m),g=e=>{{let t=M(()=>z(u)?Y(`replace_x`,{values:{name:z(u).name}}):Y(`upload_assets`));qI(e,{get title(){return z(t)},showOk:!1,get open(){return vn(),i()},set open(e){mn(T2,e)},children:(e,t)=>{W6(e,{showUploadButton:!0,get accept(){return z(f)},get multiple(){return z(d)},onDrop:({files:e})=>{p(e)}})},$$slots:{default:!0}})}},_=e=>{qs(gL(e,{get accept(){return z(f)},get multiple(){return z(d)},onSelect:({files:e})=>{p(e)},onCancel:()=>{mn(T2,!1)}}),e=>P(c,e,!0),()=>z(c))};W(h,e=>{AE.hasMouse?e(g):e(_,-1)}),H(e,m),A(),s()}var l_e=s((()=>{Z(),J(),X(),$(),gT(),G6(),JF(),fm(),M2(),jE()}));function u_e(e,t){k(t,!0),G(e,f_e);{let t=e=>{var t=d_e(),n=F(t),r=F(n,!0);O(n),O(t),R((e,n)=>{K(t,`aria-label`,e),U(r,n)},[()=>Y(`cms_config`),()=>Qy(yF)]),H(e,t)},n=M(()=>Y(`site_configuration_editor`));E8(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}A()}var d_e,f_e,p_e=s((()=>{Z(),J(),X(),eb(),D8(),TF(),d_e=B(`<div role="blockquote" class="svelte-2picl5"><pre class="svelte-2picl5"> </pre></div>`),f_e={hash:`svelte-2picl5`,code:`div.svelte-2picl5 {flex:auto;overflow:auto;}pre.svelte-2picl5 {margin:0;padding:16px;width:100%;min-width:fit-content;min-height:-moz-available;min-height:-webkit-fill-available;min-height:stretch;background-color:var(--sui-primary-background-color);}`}})),m_e,h_e,P8,F8=s((()=>{Zp(),Sw(),DC(),M6(),jP(),m_e=/(?<path>.+?)\.[^.]*$/,h_e=({getFieldArgs:e,fieldConfig:t,sourceLanguage:n,value:r})=>{let{keyPath:i}=e;Object.entries(dn(D6).currentValues).forEach(([a,o])=>{if(i.includes(`.`)){let t=i.match(m_e)?.groups?.path;if(!Object.keys(o).some(e=>e.startsWith(`${t}.`))&&!wP({...e,keyPath:t}))return}if(t.widget===`relation`){let{value_field:e=`{{slug}}`}=t;e.startsWith(`{{locale}}/`)&&r.startsWith(`${n}/`)&&(r=`${a}/${r.slice(n.length+1)}`)}a!==n&&o[i]!==r&&(o[i]=r)})},P8=({draft:{collectionName:e,fileName:t,isIndexFile:n},locale:r,target:i={},getValueMap:a=void 0})=>{let o=yw(e),s=o&&t?SC(o,t):void 0;if(!o||t&&!s)return;let{defaultLocale:c,canonicalSlug:{key:l}}=(s??o)._i18n,u=e=>dn(O6)&&e.i18n===`duplicate`&&r===c,d=(r,i)=>{let o=typeof a==`function`?a():r,s={collectionName:e,fileName:t,keyPath:i,valueMap:o,isIndexFile:n};return{valueMap:o,getFieldArgs:s,fieldConfig:wP({...s})}};return new Proxy(i,{set:(e,t,n)=>{if(e[t]!==n&&(e[t]=n),[l].includes(t))return!0;let{fieldConfig:i,getFieldArgs:a}=d(e,t);if(!i)return!0;let o=dn(D6)?.validities?.[r]?.[t];return o&&typeof n==`string`&&TP({fieldConfig:i,locale:r})&&(o.valueMissing=!n),u(i)&&h_e({getFieldArgs:a,fieldConfig:i,sourceLanguage:r,value:n}),!0},deleteProperty:(e,t)=>{delete e[t];let{fieldConfig:n}=d(e,t);return n&&u(n)&&Object.entries(dn(D6).currentValues).forEach(([e,n])=>{e!==r&&t in n&&delete n[t]}),!0}})}})),I8,L8,R8,z8,B8,V8,H8,g_e,__e,v_e,y_e,b_e,x_e,U8=s((()=>{Yp(),p(),sT(),Zp(),iA(),TF(),w6(),M6(),F8(),OO(),I8=0,L8=void 0,R8={saved:!1,restored:!1,deleted:!1},z8=ln({show:!1}),B8=ln({...R8}),V8=async(e,t=``)=>{await L8?.delete([e,t])},H8=async(e,t=``)=>{let n=await L8?.get([e,t]);return n?n.cmsConfigVersion===dn(xF)?n:(await V8(e,t),null):null},g_e=async e=>{if(!(DO.useDraftBackup??!0)||!dn(k6))return;let{collectionName:t,fileName:n,originalEntry:r,currentLocales:i={},currentSlugs:a={},currentValues:o={},files:s}=e,c=n??r?.slug??``;if(dn(j6)){let e={timestamp:new Date,cmsConfigVersion:dn(xF),collectionName:t,slug:c,currentLocales:i,currentSlugs:f(a),currentValues:f(o),files:s};await L8?.put(e)}else await H8(t,c)&&await V8(t,c)},__e=({backup:e,collectionName:t,fileName:n})=>{let{currentLocales:r,currentSlugs:i,currentValues:a,files:o}=e,s=new Map;O6.set(!1),D6.update(e=>{if(e){e.currentLocales=r,e.currentSlugs=i;let c=x6(e.collection);Object.entries(a).forEach(([r,i])=>{if(c&&c in i){let t=e.originalEntry?.locales[r]?.content?.[c];t===void 0?delete i[c]:i[c]=t}Object.entries(i).forEach(([t,n])=>{typeof n==`string`&&([...n.matchAll(Lp(`g`))].forEach(([t])=>{let r=o[t],{file:i}=r??{};if(!r||!i)return;let a=``;s.has(i)?a=s.get(i):(a=URL.createObjectURL(i),e.files[a]=r,s.set(i,a)),n=n.replaceAll(t,a)}),i[t]=n)}),e.currentValues[r]?Object.assign(e.currentValues[r],i):e.currentValues[r]=P8({draft:{collectionName:t,fileName:n},locale:r,target:structuredClone(i)});let a=e.currentValues[r],l=Object.keys(a);l.forEach(e=>{a[e]===null&&l.some(t=>t.startsWith(`${e}.`))&&(a[e]={})}),e.originalValues[r]||(e.originalValues[r]={})})}return e}),O6.set(!0)},v_e=async({collectionName:e,fileName:t,slug:n=``})=>{if(!(DO.useDraftBackup??!0))return;let r=await H8(e,n);if(!r)return;let{timestamp:i}=r,{promise:a,resolve:o}=Promise.withResolvers();z8.set({show:!0,timestamp:i,resolve:o});let s=await a;s!==void 0&&(s?(__e({backup:r,collectionName:e,fileName:t}),k6.set(!0)):await V8(e,n),B8.set({restored:s,deleted:!s,saved:!1}))},y_e=async()=>{if(!(DO.useDraftBackup??!0))return;let e=dn(D6);if(!e||dn(B8).saved)return;let{collectionName:t,originalEntry:n}=e;await H8(t,n?.slug)&&B8.set({restored:!1,deleted:!1,saved:!0})},b_e=()=>{B8.set({...R8})},nA.subscribe(e=>{if(e&&!L8){let{databaseName:t}=e.repository??{};if(t){L8=new iT(t,`draft-backups`,{keyPath:[`collectionName`,`slug`]});return}}L8=null}),D6.subscribe(e=>{globalThis.clearTimeout(I8),e?.id!==x_e&&(x_e=e?.id,k6.set(!1)),e&&L8&&(I8=globalThis.setTimeout(()=>{g_e(e)},500))})}));function S_e(e,t){k(t,!0);let n=()=>j(z8,`$restoreDialogState`,a),r=()=>j(N2,`$showContentOverlay`,a),i=()=>j(B8,`$backupToastState`,a),[a,o]=hn(),s=M(()=>new Date),c=M(()=>n().resolve),l=M(()=>n().timestamp),u=M(()=>z(s).getUTCFullYear()===z(l)?.getUTCFullYear()),d=M(()=>z(u)&&z(s).getUTCMonth()===z(l)?.getUTCMonth()),f=M(()=>z(d)&&z(s).getUTCDate()===z(l)?.getUTCDate()),p=M(()=>z(l)?.toLocaleString(Xh.current,{year:z(u)?void 0:`numeric`,month:z(f)?void 0:`short`,day:z(f)?void 0:`numeric`,hour:`numeric`,minute:`numeric`}));ri(()=>{!r()&&n().show&&(_n(z8,Gi(n).show=!1,Gi(n)),z(c)?.())});var m=C_e(),h=I(m);{let e=M(()=>Y(`restore_backup_title`)),t=M(()=>Y(`restore`)),r=M(()=>Y(`discard`));iL(h,{get title(){return z(e)},get okLabel(){return z(t)},get cancelLabel(){return z(r)},onOk:()=>{z(c)?.(!0)},onCancel:()=>{z(c)?.(!1)},get open(){return n().show},set open(e){_n(z8,Gi(n).show=e,Gi(n))},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`restore_backup_description`,{values:{datetime:z(p)}})]),H(e,n)},$$slots:{default:!0}})}var g=L(h,2);jz(g,{get show(){return i().saved},set show(e){_n(B8,Gi(i).saved=e,Gi(i))},children:(e,t)=>{rI(e,{status:`info`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`draft_backup_saved`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var _=L(g,2);jz(_,{get show(){return i().restored},set show(e){_n(B8,Gi(i).restored=e,Gi(i))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`draft_backup_restored`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),jz(L(_,2),{get show(){return i().deleted},set show(e){_n(B8,Gi(i).deleted=e,Gi(i))},children:(e,t)=>{rI(e,{status:`info`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`draft_backup_deleted`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,m),A(),o()}var C_e,w_e=s((()=>{Z(),J(),X(),$(),U8(),B2(),C_e=B(`<!> <!> <!> <!>`,1)}));function W8(e,t){k(t,!0),G(e,E_e);let n=N(null),r=N(!1);ri(()=>{z(n)&&(async()=>{await mI(z(n)),P(r,!0)})()});var i=V(),a=I(i),o=e=>{var n=V();Ao(I(n),()=>t.children),H(e,n)},s=e=>{var t=T_e();qs(t,e=>P(n,e),()=>z(n)),H(e,t)};W(a,e=>{z(r)?e(o):e(s,-1)}),H(e,i),A()}var T_e,E_e,G8=s((()=>{Z(),J(),hI(),T_e=B(`<div class="placeholder svelte-ow4el9"></div>`),E_e={hash:`svelte-ow4el9`,code:`.placeholder.svelte-ow4el9 {height:64px;}`}}));function D_e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}function K8(e,t){return Array(t+1).join(e)}function O_e(e){return e.replace(/^\n*/,``)}function k_e(e){for(var t=e.length;t>0&&e[t-1]===`
`;)t--;return e.substring(0,t)}function A_e(e){return k_e(O_e(e))}function q8(e){return J8(e,rve)}function j_e(e){return J8(e,t5)}function M_e(e){return F_e(e,t5)}function N_e(e){return J8(e,n5)}function P_e(e){return F_e(e,n5)}function J8(e,t){return t.indexOf(e.nodeName)>=0}function F_e(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}function I_e(e){return ive.reduce(function(e,t){return e.replace(t[0],t[1])},e)}function Y8(e){return e?e.replace(/(\n+\s*)+/g,`
`):``}function X8(e){var t=e.replace(/([<>()])/g,`\\$1`);return t.indexOf(` `)>=0?`<`+t+`>`:t}function Z8(e){return e.replace(/"/g,`\\"`)}function L_e(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function Q8(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(R_e(i,t,n))return i}}function R_e(e,t,n){var r=e.filter;if(typeof r==`string`){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof r==`function`){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}function z_e(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return e.nodeName===`PRE`};if(!(!t.firstChild||i(t))){for(var a=null,o=!1,s=null,c=B_e(s,t,i);c!==t;){if(c.nodeType===3||c.nodeType===4){var l=c.data.replace(/[ \r\n\t]+/g,` `);if((!a||/ $/.test(a.data))&&!o&&l[0]===` `&&(l=l.substr(1)),!l){c=$8(c);continue}c.data=l,a=c}else if(c.nodeType===1)n(c)||c.nodeName===`BR`?(a&&(a.data=a.data.replace(/ $/,``)),a=null,o=!1):r(c)||i(c)?(a=null,o=!0):a&&(o=!1);else{c=$8(c);continue}var u=B_e(s,c,i);s=c,c=u}a&&(a.data=a.data.replace(/ $/,``),a.data||$8(a))}}function $8(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function B_e(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}function V_e(){var e=i5.DOMParser,t=!1;try{new e().parseFromString(``,`text/html`)&&(t=!0)}catch{}return t}function H_e(){var e=function(){};return U_e()?e.prototype.parseFromString=function(e){var t=new window.ActiveXObject(`htmlfile`);return t.designMode=`on`,t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument(``);return t.open(),t.write(e),t.close(),t},e}function U_e(){var e=!1;try{document.implementation.createHTMLDocument(``).open()}catch{i5.ActiveXObject&&(e=!0)}return e}function W_e(e,t){var n=typeof e==`string`?G_e().parseFromString(`<x-turndown id="turndown-root">`+e+`</x-turndown>`,`text/html`).getElementById(`turndown-root`):e.cloneNode(!0);return z_e({element:n,isBlock:q8,isVoid:j_e,isPre:t.preformattedCode?K_e:null}),n}function G_e(){return ove||=new ave,ove}function K_e(e){return e.nodeName===`PRE`||e.nodeName===`CODE`}function q_e(e,t){return e.isBlock=q8(e),e.isCode=e.nodeName===`CODE`||e.parentNode.isCode,e.isBlank=J_e(e),e.flankingWhitespace=Y_e(e,t),e}function J_e(e){return!j_e(e)&&!N_e(e)&&/^\s*$/i.test(e.textContent)&&!M_e(e)&&!P_e(e)}function Y_e(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:``,trailing:``};var n=X_e(e.textContent);return n.leadingAscii&&Z_e(`left`,e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&Z_e(`right`,e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function X_e(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function Z_e(e,t,n){var r,i,a;return e===`left`?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(r.nodeType===3?a=i.test(r.nodeValue):n.preformattedCode&&r.nodeName===`CODE`?a=!1:r.nodeType===1&&!q8(r)&&(a=i.test(r.textContent))),a}function e5(e){if(!(this instanceof e5))return new e5(e);var t={rules:r5,headingStyle:`setext`,hr:`* * *`,bulletListMarker:`*`,codeBlockStyle:`indented`,fence:"```",emDelimiter:`_`,strongDelimiter:`**`,linkStyle:`inlined`,linkReferenceStyle:`full`,br:`  `,preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?`

`:``},keepReplacement:function(e,t){return t.isBlock?`

`+t.outerHTML+`

`:t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?`

`+e+`

`:e}};this.options=D_e({},t,e),this.rules=new L_e(this.options)}function Q_e(e){var t=this;return sve.call(e.childNodes,function(e,n){n=new q_e(n,t.options);var r=``;return n.nodeType===3?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(r=eve.call(t,n)),tve(e,r)},``)}function $_e(e){var t=this;return this.rules.forEach(function(n){typeof n.append==`function`&&(e=tve(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,``).replace(/[\t\r\n\s]+$/,``)}function eve(e){var t=this.rules.forNode(e),n=Q_e.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function tve(e,t){var n=k_e(e),r=O_e(t),i=Math.max(e.length-n.length,t.length-r.length);return n+`

`.substring(0,i)+r}function nve(e){return e!=null&&(typeof e==`string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var rve,t5,n5,ive,r5,i5,ave,ove,sve,cve=s((()=>{rve=`ADDRESS.ARTICLE.ASIDE.AUDIO.BLOCKQUOTE.BODY.CANVAS.CENTER.DD.DIR.DIV.DL.DT.FIELDSET.FIGCAPTION.FIGURE.FOOTER.FORM.FRAMESET.H1.H2.H3.H4.H5.H6.HEADER.HGROUP.HR.HTML.ISINDEX.LI.MAIN.MENU.NAV.NOFRAMES.NOSCRIPT.OL.OUTPUT.P.PRE.SECTION.TABLE.TBODY.TD.TFOOT.TH.THEAD.TR.UL`.split(`.`),t5=[`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`],n5=[`A`,`TABLE`,`THEAD`,`TBODY`,`TFOOT`,`TH`,`TD`,`IFRAME`,`SCRIPT`,`AUDIO`,`VIDEO`],ive=[[/\\/g,`\\\\`],[/\*/g,`\\*`],[/^-/g,`\\-`],[/^\+ /g,`\\+ `],[/^(=+)/g,`\\$1`],[/^(#{1,6}) /g,`\\$1 `],[/`/g,"\\`"],[/^~~~/g,`\\~~~`],[/\[/g,`\\[`],[/\]/g,`\\]`],[/^>/g,`\\>`],[/_/g,`\\_`],[/^(\d+)\. /g,`$1\\. `]],r5={},r5.paragraph={filter:`p`,replacement:function(e){return`

`+e+`

`}},r5.lineBreak={filter:`br`,replacement:function(e,t,n){return n.br+`
`}},r5.heading={filter:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));if(n.headingStyle===`setext`&&r<3){var i=K8(r===1?`=`:`-`,e.length);return`

`+e+`
`+i+`

`}else return`

`+K8(`#`,r)+` `+e+`

`}},r5.blockquote={filter:`blockquote`,replacement:function(e){return e=A_e(e).replace(/^/gm,`> `),`

`+e+`

`}},r5.list={filter:[`ul`,`ol`],replacement:function(e,t){var n=t.parentNode;return n.nodeName===`LI`&&n.lastElementChild===t?`
`+e:`

`+e+`

`}},r5.listItem={filter:`li`,replacement:function(e,t,n){var r=n.bulletListMarker+`   `,i=t.parentNode;if(i.nodeName===`OL`){var a=i.getAttribute(`start`),o=Array.prototype.indexOf.call(i.children,t);r=(a?Number(a)+o:o+1)+`.  `}var s=/\n$/.test(e);return e=A_e(e)+(s?`
`:``),e=e.replace(/\n/gm,`
`+` `.repeat(r.length)),r+e+(t.nextSibling?`
`:``)}},r5.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`indented`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){return`

    `+t.firstChild.textContent.replace(/\n/g,`
    `)+`

`}},r5.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`fenced`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){for(var r=((t.firstChild.getAttribute(`class`)||``).match(/language-(\S+)/)||[null,``])[1],i=t.firstChild.textContent,a=n.fence.charAt(0),o=3,s=RegExp(`^`+a+`{3,}`,`gm`),c;c=s.exec(i);)c[0].length>=o&&(o=c[0].length+1);var l=K8(a,o);return`

`+l+r+`
`+i.replace(/\n$/,``)+`
`+l+`

`}},r5.horizontalRule={filter:`hr`,replacement:function(e,t,n){return`

`+n.hr+`

`}},r5.inlineLink={filter:function(e,t){return t.linkStyle===`inlined`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t){var n=X8(t.getAttribute(`href`)),r=Z8(Y8(t.getAttribute(`title`))),i=r?` "`+r+`"`:``;return`[`+e+`](`+n+i+`)`}},r5.referenceLink={filter:function(e,t){return t.linkStyle===`referenced`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t,n){var r=X8(t.getAttribute(`href`)),i=Y8(t.getAttribute(`title`));i&&=` "`+Z8(i)+`"`;var a,o;switch(n.linkReferenceStyle){case`collapsed`:a=`[`+e+`][]`,o=`[`+e+`]: `+r+i;break;case`shortcut`:a=`[`+e+`]`,o=`[`+e+`]: `+r+i;break;default:var s=this.references.length+1;a=`[`+e+`][`+s+`]`,o=`[`+s+`]: `+r+i}return this.references.push(o),a},references:[],append:function(e){var t=``;return this.references.length&&(t=`

`+this.references.join(`
`)+`

`,this.references=[]),t}},r5.emphasis={filter:[`em`,`i`],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:``}},r5.strong={filter:[`strong`,`b`],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:``}},r5.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n=e.parentNode.nodeName===`PRE`&&!t;return e.nodeName===`CODE`&&!n},replacement:function(e){if(!e)return``;e=e.replace(/\r?\n|\r/g,` `);for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?` `:``,n="`",r=e.match(/`+/gm)||[];r.indexOf(n)!==-1;)n+="`";return n+t+e+t+n}},r5.image={filter:`img`,replacement:function(e,t){var n=I_e(Y8(t.getAttribute(`alt`))),r=X8(t.getAttribute(`src`)||``),i=Y8(t.getAttribute(`title`)),a=i?` "`+Z8(i)+`"`:``;return r?`![`+n+`](`+r+a+`)`:``}},L_e.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return``}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Q8(this.array,e,this.options))||(t=Q8(this._keep,e,this.options))||(t=Q8(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}},i5=typeof window<`u`?window:{},ave=V_e()?i5.DOMParser:H_e(),sve=Array.prototype.reduce,e5.prototype={turndown:function(e){if(!nve(e))throw TypeError(e+` is not a string, or an element/document/fragment node.`);if(e===``)return``;var t=Q_e.call(this,new W_e(e,this.options));return $_e.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e==`function`)e(this);else throw TypeError(`plugin must be a Function or an Array of Functions`);return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return I_e(e)}}})),a5,lve,uve,o5=s((()=>{Ip(),YP(),LS(),uC(),jP(),fb(),a5=e=>{let t=`field`in e,n=`fields`in e,r=`types`in e;return{hasSingleSubField:t,hasMultiSubFields:n,hasVariableTypes:r,hasSubFields:t||n||r}},lve=new Map,uve=({collectionName:e,fileName:t,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:a,summaryTemplate:o,hasSingleSubField:s,index:c})=>{let l={collectionName:e,fileName:t,keyPath:``,valueMap:r,isIndexFile:i},u=`${n}.${c}`;if(!o){if(s)return r[u];let e=`${n}:${c}`;return kP({valueMap:r,locale:a,keyPath:u,keyPathRegex:db(lve,e,()=>RegExp(`^${jp(n)}\\.${c}[\\b\\.]`)),getFieldArgs:l})}let d=e=>{let{value:t}=tC(e),r=t.replace(/^fields\./,``),i=`${u}.${r}`;if(s){let e=wP({...l,keyPath:n});if(!(`field`in e)||e.field.name!==r)return``}return OP({...l,keyPath:s?u:i,locale:a})};return GP(o,(e,t)=>{let{value:r,transformations:i}=tC(t),o=r.replace(/^fields\./,``),c=`${u}.${o}`;if(s){let e=wP({...l,keyPath:n});if(!(`field`in e)||e.field.name!==o)return``}return OP({...l,keyPath:s?u:c,locale:a,transformations:IS(i,d)})})}})),dve,s5,fve,pve,mve,hve,gve=s((()=>{dve=`https://api.anthropic.com/v1/messages`,s5=`Anthropic API`,fve=`https://docs.claude.com/en/api/overview`,pve=`https://platform.claude.com/settings/keys`,mve=/sk-ant-api03-[a-zA-Z0-9-_]{80,}/,hve=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3})=>{let o=await fetch(dve,{method:`POST`,headers:{"Content-Type":`application/json`,"x-api-key":e,"anthropic-version":`2023-06-01`,"anthropic-dangerous-direct-browser-access":`true`},body:JSON.stringify({model:t,max_tokens:a,temperature:i,system:n,messages:[{role:`user`,content:r}]})});if(!o.ok){let e=await o.json().catch(()=>({}));throw Error(`Anthropic API error: ${o.status} ${o.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let s=await o.json();if(!s.content||!Array.isArray(s.content)||!s.content[0])throw Error(`Invalid response format from Anthropic API.`);return s.content[0].text.trim()}})),c5,_ve,vve,yve,l5,bve,u5,d5=s((()=>{QC(),c5=e=>JC(e,{displayLocale:`en`}),_ve=(e,t)=>{let n=[`- CRITICAL: Leave content EXACTLY unchanged within HTML elements that have translate="no"`,`- CRITICAL: Leave content EXACTLY unchanged within HTML elements that have class="notranslate"`,`- CRITICAL: Leave content EXACTLY unchanged between "notranslate" and "/notranslate" comments`,`- Preserve all markdown formatting (headers, links, bold, italic, code blocks, lists, etc.)`,`- Preserve all HTML tags and attributes exactly as they are`,`- Maintain the original structure and formatting`,`- Do not translate code content within code blocks or inline code`,`- Do not translate URLs, email addresses, or technical identifiers`,`- If you see translate="no", class="notranslate", or notranslate comments, copy that content verbatim without any changes`],r=[`- Do not split translations into separate paragraphs or add extra line breaks`,`- Keep each translation as a single continuous text string in the array`],i=[`- Return your response as a valid JSON array containing the translated texts`,`- The array should contain the translated texts in the same order as provided`,`- VALIDATION: Before responding, double-check that any translate="no", class="notranslate", or notranslate comment content remains EXACTLY the same`];return`You are a professional translator. Translate the given texts from ${e} to ${t}. Your response must be valid JSON that can be parsed directly.

IMPORTANT INSTRUCTIONS:\n${[...n,...r,...i].join(`
`)}\n\nOUTPUT FORMAT:
- Output ONLY valid JSON, nothing else
- Do NOT use markdown code blocks or formatting
- Do NOT add any explanation or commentary
- Your entire response should be parseable by JSON.parse()
- Start your response with [ and end with ]

Required JSON structure:
["translation 1", "translation 2", ...]`},vve=e=>`Translate these texts and return ONLY valid JSON (no markdown, no code blocks):
${JSON.stringify(e)}\n\nRespond with JSON only:`,yve=(e,t,n)=>{let r;try{r=JSON.parse(e)}catch{throw Error(`Failed to parse JSON response from ${n}.`)}if(!Array.isArray(r))throw Error(`Invalid JSON structure in ${n} response.`);if(r.length!==t)throw Error(`Translation count mismatch: expected ${t}, got ${r.length}`);return r},l5=async({sourceLanguage:e,targetLanguage:t})=>!!c5(e)&&!!c5(t),bve=(e,t)=>{let n=c5(e),r=c5(t);if(!n)throw Error(`Source locale is not supported.`);if(!r)throw Error(`Target locale is not supported.`);return[n,r]},u5=(e,t,n,r={})=>async(i,{sourceLanguage:a,targetLanguage:o,apiKey:s})=>{let[c,l]=bve(a,o);try{let a=await e({apiKey:s,model:t,systemPrompt:_ve(c,l),userMessage:vve(i),...r});return yve(a,i.length,n)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with ${n}.`)}}})),xve,Sve,Cve,wve,Tve=s((()=>{gve(),d5(),xve=`anthropic`,Sve=`Anthropic Claude`,Cve=`claude-haiku-4-5`,wve={serviceId:xve,serviceLabel:Sve,apiLabel:s5,developerURL:fve,apiKeyURL:pve,apiKeyPattern:mve,markdownSupported:!0,availability:l5,translate:u5(hve,Cve,s5)}})),Eve,f5,Dve,Ove,kve,Ave,jve=s((()=>{Eve=`https://api.deepseek.com/chat/completions`,f5=`DeepSeek API`,Dve=`https://api-docs.deepseek.com/`,Ove=`https://platform.deepseek.com/api_keys`,kve=/sk-[a-zA-Z0-9]{32,}/,Ave=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,reasoning:o=!0})=>{let s=await fetch(Eve,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,messages:[{role:`system`,content:n},{role:`user`,content:r}],temperature:i,max_tokens:a,thinking:{type:o?`enabled`:`disabled`},stream:!1})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(`DeepSeek API error: ${s.status} ${s.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let c=await s.json();if(!c.choices||!Array.isArray(c.choices)||!c.choices[0]?.message?.content)throw Error(`Invalid response format from DeepSeek API.`);return c.choices[0].message.content.trim()}})),Mve,Nve,Pve,Fve,Ive=s((()=>{jve(),d5(),Mve=`deepseek`,Nve=`DeepSeek`,Pve=`deepseek-v4-flash`,Fve={serviceId:Mve,serviceLabel:Nve,apiLabel:f5,developerURL:Dve,apiKeyURL:Ove,apiKeyPattern:kve,markdownSupported:!0,availability:l5,translate:u5(Ave,Pve,f5,{reasoning:!1})}})),Lve,Rve,zve,Bve,Vve,Hve,p5,m5,Uve,Wve,h5,Gve=s((()=>{Lve=`google`,Rve=`Google Cloud Translation`,zve=`Cloud Translation API`,Bve=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,Vve=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,Hve=/AIza[0-9A-Za-z-_]{35}/,p5=[`ab,ace,ach,af,ak,alz,am,ar,as,awa,ay,az`,`ba,ban,bbc,be,bem,bew,bg,bho,bik,bm,bn,br,bs,bts,btx,bua`,`ca,ceb,cgg,chm,ckb,cnh,co,crh,crs,cs,cv,cy`,`da,de,din,doi,dov,dv,dz`,`ee,el,en,eo,es,et,eu`,`fa,ff,fi,fil,fj,fr,fr-CA,fr-FR,fy`,`ga,gaa,gd,gl,gn,gom,gu`,`ha,haw,he,hi,hil,hmn,hr,hrx,ht,hu,hy`,`id,ig,ilo,is,it,iw`,`ja,jv,jw`,`ka,kk,km,kn,ko,kri,ktu,ku,ky`,`la,lb,lg,li,lij,lmo,ln,lo,lt,ltg,luo,lus,lv`,`mai,mak,mg,mi,min,mk,ml,mn,mni-Mtei,mr,ms,ms-Arab,mt,my`,`ne,new,nl,no,nr,nso,nus,ny`,`oc,om,or`,`pa,pa-Arab,pag,pam,pap,pl,ps,pt,pt-BR,pt-PT`,`qu`,`rn,ro,rom,ru,rw`,`sa,scn,sd,sg,shn,si,sk,sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,szl`,`ta,te,tet,tg,th,ti,tk,tl,tn,tr,ts,tt`,`ug,uk,ur,uz`,`vi`,`xh`,`yi,yo,yua,yue`,`zh,zh-CN,zh-TW,zu`].join(`,`).split(`,`),m5=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(p5.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(p5.includes(n))return n},Uve=async({sourceLanguage:e,targetLanguage:t})=>!!m5(e)&&!!m5(t),Wve=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=m5(t)??``,n=m5(n)??``,!t)throw Error(`Source locale is not supported.`);if(!n)throw Error(`Target locale is not supported.`);let i={q:e,source:t,target:n,format:`html`};try{let e=await fetch(`https://translation.googleapis.com/language/translate/v2`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-goog-api-key":r},body:JSON.stringify(i)});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(`Google Translate API error: ${e.status} ${e.statusText}${t.error?.message?` - ${t.error.message}`:``}`)}let{data:t}=await e.json();return t.translations.map(e=>e.translatedText.replace(/&#39;/g,`'`))}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Google Translate API.`)}},h5={serviceId:Lve,serviceLabel:Rve,apiLabel:zve,developerURL:Bve,apiKeyURL:Vve,apiKeyPattern:Hve,markdownSupported:!1,availability:Uve,translate:Wve}})),g5,Kve,qve,Jve,Yve,Xve=s((()=>{g5=`Gemini API`,Kve=`https://ai.google.dev/gemini-api/docs`,qve=`https://aistudio.google.com/api-keys`,Jve=/AIza[a-zA-Z0-9_-]{35}/,Yve=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,responseFormat:o})=>{let s=`https://generativelanguage.googleapis.com/v1beta/models/${t}:generateContent?key=${e}`,c=await fetch(s,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({system_instruction:{parts:[{text:n}]},contents:[{parts:[{text:r}]}],generationConfig:{temperature:i,maxOutputTokens:a,...o?{responseMimeType:o}:{}}})});if(!c.ok){let e=await c.json().catch(()=>({}));throw Error(`Gemini API error: ${c.status} ${c.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let l=await c.json();if(!Array.isArray(l.candidates)||!l.candidates[0]?.content?.parts?.[0])throw Error(`Invalid response format from Gemini API.`);return l.candidates[0].content.parts[0].text.trim()}})),Zve,Qve,$ve,eye,tye=s((()=>{Xve(),d5(),Zve=`google-ai`,Qve=`Google Gemini`,$ve=`gemini-3.5-flash-lite`,eye={serviceId:Zve,serviceLabel:Qve,apiLabel:g5,developerURL:Kve,apiKeyURL:qve,apiKeyPattern:Jve,markdownSupported:!0,availability:l5,translate:u5(Yve,$ve,g5,{responseFormat:`application/json`})}})),nye,_5,rye,iye,aye,oye,sye=s((()=>{nye=`https://api.mistral.ai/v1/chat/completions`,_5=`Mistral AI API`,rye=`https://docs.mistral.ai/`,iye=`https://console.mistral.ai/home?profile_dialog=api-keys`,aye=/[a-zA-Z0-9]{32,}/,oye=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,reasoning:o=!0})=>{let s=await fetch(nye,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,messages:[{role:`system`,content:n},{role:`user`,content:r}],temperature:i,max_tokens:a,reasoning_effort:o?`high`:`none`,stream:!1})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(`Mistral AI API error: ${s.status} ${s.statusText}${e.message?` - ${e.message}`:``}`)}let c=await s.json();if(!c.choices||!Array.isArray(c.choices)||!c.choices[0]?.message?.content)throw Error(`Invalid response format from Mistral AI API.`);return c.choices[0].message.content.trim()}})),cye,lye,uye,dye,fye=s((()=>{sye(),d5(),cye=`mistral`,lye=`Mistral`,uye=`mistral-small-latest`,dye={serviceId:cye,serviceLabel:lye,apiLabel:_5,developerURL:rye,apiKeyURL:iye,apiKeyPattern:aye,markdownSupported:!0,availability:l5,translate:u5(oye,uye,_5,{reasoning:!1})}})),pye,v5,mye,hye,gye,_ye,vye,yye,bye=s((()=>{pye=`https://api.openai.com/v1/responses`,v5=`OpenAI API`,mye=`https://platform.openai.com/docs/overview`,hye=`https://platform.openai.com/api-keys`,gye=/sk-[a-zA-Z0-9-_]{40,}/,_ye=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`message`&&`content`in e&&Array.isArray(e.content),vye=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`output_text`&&`text`in e&&typeof e.text==`string`,yye=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,maxTokens:i=4e3})=>{let a=await fetch(pye,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,instructions:n,input:r,store:!1,max_output_tokens:i})});if(!a.ok){let e=await a.json().catch(()=>({}));throw Error(`OpenAI API error: ${a.status} ${a.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let o=await a.json();if(typeof o.output_text==`string`)return o.output_text.trim();let s=(Array.isArray(o.output)?o.output:[]).find(_ye),c=(Array.isArray(s?.content)?s.content:[]).find(vye);if(typeof c?.text==`string`)return c.text.trim();throw Error(`Invalid response format from OpenAI API.`)}})),xye,Sye,Cye,wye,Tye=s((()=>{bye(),d5(),xye=`openai`,Sye=`OpenAI GPT`,Cye=`gpt-5.6-luna`,wye={serviceId:xye,serviceLabel:Sye,apiLabel:v5,developerURL:mye,apiKeyURL:hye,apiKeyPattern:gye,markdownSupported:!0,availability:l5,translate:u5(yye,Cye,v5)}})),y5,b5,x5=s((()=>{Zp(),OO(),Tve(),Ive(),Gve(),tye(),fye(),Tye(),y5={anthropic:wve,deepseek:Fve,google:h5,"google-ai":eye,mistral:dye,openai:wye},b5=Xp(()=>{let{defaultTranslationService:e=`google`}=DO;return y5[e]??h5})})),S5,Eye,C5,Dye,Oye,w5,kye=s((()=>{TS(),Zp(),cve(),M6(),B2(),jP(),o5(),x5(),OO(),S5=new e5({headingStyle:`atx`,bulletListMarker:`-`,codeBlockStyle:`fenced`}),S5.keep([`span`,`div`]),Eye=({draft:e,options:t})=>{let{collectionName:n,fileName:r,currentValues:i,isIndexFile:a}=e,{sourceLanguage:o,targetLanguage:s,keyPath:c=``,translate:l=!1}=t,u=i[o],d={collectionName:n,fileName:r,valueMap:u,isIndexFile:a};return Object.fromEntries(Object.entries(u).map(([e,t])=>{let n=i[s][e],r=wP({...d,keyPath:e}),a=r?.widget??`string`;return c&&!e.startsWith(c)||typeof t!=`string`||!t||![`richtext`,`markdown`,`text`,`string`,`list`].includes(a)||a===`list`&&a5(r).hasSubFields||!l&&t===n||!c&&l&&n?null:[e,{value:t,isMarkdown:a===`richtext`||a===`markdown`}]}).filter(e=>!!e))},C5=(e,t,{count:n,sourceLanguage:r})=>{I2.set({id:Date.now(),show:!0,status:e,message:t,count:n,sourceLanguage:r})},Dye=async({currentValues:e,options:t,copingFieldMap:n})=>{let{serviceId:r}=dn(b5),{sourceLanguage:i,targetLanguage:a}=t,o=Object.keys(n).length,s=DO.apiKeys?.[r];if(!s){let{promise:e,resolve:t}=Promise.withResolvers();F2.set({show:!0,multiple:o>1,resolve:t}),s=await e}if(!s)return;let{markdownSupported:c,translate:l}=dn(b5);C5(`info`,`translation.started`,{count:o,sourceLanguage:i});try{let t=await l(Object.entries(n).map(([,{value:e,isMarkdown:t}])=>t&&!c?wS(e):e),{apiKey:s,sourceLanguage:i,targetLanguage:a});Object.entries(n).forEach(([n,{isMarkdown:r}],i)=>{let o=t[i];e[a][n]=r&&!c?S5.turndown(o):o}),C5(`success`,`translation.complete`,{count:o,sourceLanguage:i})}catch(e){C5(`error`,`translation.error`,{count:o,sourceLanguage:i}),console.error(e)}},Oye=({currentValues:e,options:t,copingFieldMap:n})=>{let{sourceLanguage:r,targetLanguage:i}=t,a=Object.keys(n).length;Object.entries(n).forEach(([t,{value:n}])=>{e[i][t]=n}),C5(`success`,`copy.complete`,{count:a,sourceLanguage:r})},w5=async e=>{let{sourceLanguage:t,translate:n=!1}=e,r=dn(D6),{currentValues:i}=r,a=Eye({draft:r,options:e}),o=Object.keys(a).length;if(!o){C5(`info`,`${n?`translation`:`copy`}.none`,{count:o,sourceLanguage:t});return}n?await Dye({currentValues:i,options:e,copingFieldMap:a}):Oye({currentValues:i,options:e,copingFieldMap:a}),D6.update(e=>({...e,currentValues:i}))}}));function T5(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,i),r=()=>j(b5,`$translator`,i),[i,a]=hn(),o=q(t,`keyPath`,3,``),s=q(t,`translate`,3,!1),c=async({sourceLanguage:e,targetLanguage:t})=>!n()?.currentLocales[t]||!n().currentLocales[e]||!!o()&&!At(n().currentValues[e])[o()]||!s()&&!!o()&&At(n().currentValues[e])[o()]===At(n().currentValues[t])[o()]||s()&&!await r()?.availability({sourceLanguage:e,targetLanguage:t});var l=V();vo(I(l),16,()=>t.otherLocales,e=>e,(e,n)=>{let r=M(()=>({sourceLanguage:n,targetLanguage:t.locale}));var i=V();ro(I(i),()=>c(z(r)),null,(e,t)=>{{let i=M(()=>Y(s()?`translate_from_x`:`copy_from_x`,{values:{locale:JC(n)}}));eR(e,{get label(){return z(i)},get disabled(){return z(t)},onclick:()=>{w5({...z(r),keyPath:o(),translate:s()})}})}}),H(e,i)}),H(e,l),A(),a()}var E5=s((()=>{Z(),J(),X(),$(),M6(),kye(),QC(),x5()}));function Aye(e,t){k(t,!0),G(e,Nye);let n=q(t,`children`,3,void 0),r=ec(t,jye),i=N(void 0);lc(()=>()=>{z(i)?.dispatchEvent(new CustomEvent(`Unmount`))});var a=Mye();Cs(a,()=>({role:`group`,class:`field`,...r}),void 0,void 0,void 0,`svelte-wzztxu`),Ao(F(a),()=>n()??D),O(a),qs(a,e=>P(i,e),()=>z(i)),H(e,a),A()}var jye,Mye,Nye,Pye=s((()=>{Z(),J(),dc(),jye=new Set([`$$slots`,`$$events`,`$$legacy`,`children`]),Mye=B(`<section><!></section>`),Nye={hash:`svelte-wzztxu`,code:`section.svelte-wzztxu {padding:var(--field-editor-padding);&:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}& > * {margin-inline:auto !important;max-width:768px;}& > header {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);h4 {margin-inline:var(--sui-focus-ring-width) 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}.required {margin-block:2px 0;margin-inline:2px 0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}}}`}}));function Fye(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,i),r=()=>j(b5,`$translator`,i),[i,a]=hn(),o=q(t,`size`,3,`medium`),s=q(t,`keyPath`,3,``),c=M(()=>!n()?.currentLocales[t.locale]),l=async({sourceLanguage:e,targetLanguage:t})=>z(c)||!n()?.currentLocales[e]||!await r()?.availability({sourceLanguage:e,targetLanguage:t});var u=V(),d=I(u),f=e=>{let n=M(()=>{let[e]=t.otherLocales;return{otherLocale:e}}),r=M(()=>Y(`translate_from_x`,{values:{locale:JC(z(n).otherLocale)??z(n).otherLocale}})),i=M(()=>({sourceLanguage:z(n).otherLocale,targetLanguage:t.locale}));var a=V();ro(I(a),()=>l(z(i)),null,(e,t)=>{bI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},get title(){return z(r)},get disabled(){return z(t)},onclick:()=>{w5({...z(i),keyPath:s(),translate:!0})},startIcon:e=>{tI(e,{name:`translate`})},$$slots:{startIcon:!0}})}),H(e,a)},p=e=>{{let n=e=>{tI(e,{name:`translate`})},r=e=>{{let n=M(()=>Y(`translation_options`));YL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{T5(e,{get locale(){return t.locale},get otherLocales(){return t.otherLocales},get keyPath(){return s()},translate:!0})},$$slots:{default:!0}})}},i=M(()=>Y(`translate`));AI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},get disabled(){return z(c)},endIcon:n,popup:r,$$slots:{endIcon:!0,popup:!0}})}};W(d,e=>{t.otherLocales.length===1?e(f):e(p,-1)}),H(e,u),A(),a()}var Iye=s((()=>{Z(),J(),X(),$(),E5(),M6(),kye(),QC(),x5()}));function D5(e,t){G(e,Rye);let n=q(t,`id`,3,void 0),r=q(t,`live`,3,`polite`);var i=Lye(),a=F(i),o=F(a);tI(o,{name:`error`}),Ao(L(o,2),()=>t.children),O(a),O(i),R(()=>{K(i,`id`,n()),K(i,`aria-live`,r())}),H(e,i)}var Lye,Rye,O5=s((()=>{Z(),J(),$(),Lye=B(`<div role="alert" class="validation svelte-6wra4i"><div role="none" class="svelte-6wra4i"><!> <!></div></div>`),Rye={hash:`svelte-6wra4i`,code:`.validation.svelte-6wra4i {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);div:where(.svelte-6wra4i) {display:flex;align-items:center;gap:4px;margin:4px 0 0;.icon {flex:none;font-size:16px; /* !hardcoded */}}}`}}));function zye(e,t){k(t,!0);let n=q(t,`currentValue`,15),r=q(t,`required`,3,!0),i=q(t,`readonly`,3,!1),a=q(t,`invalid`,3,!1);uz(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get checked(){return n()},set checked(e){n(e)}}),A()}var Bye=s((()=>{Z(),J(),$()}));function Vye(e,t){k(t,!0);let n=q(t,`currentValue`,3,!1);var r=V(),i=I(r),a=e=>{var t=Hye(),r=F(t,!0);O(t),R(e=>U(r,e),[()=>Y(`boolean.${n()}`)]),H(e,t)};W(i,e=>{typeof n()==`boolean`&&e(a)}),H(e,r),A()}var Hye,Uye=s((()=>{Z(),J(),X(),Hye=B(`<p> </p>`)}));function Wye(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Lt(`field-editor`)??{},o=q(t,`currentValue`,15),s=q(t,`required`,3,!0),c=q(t,`readonly`,3,!1),l=q(t,`invalid`,3,!1),u=N(``),d=N(``),f=M(()=>E(t.fieldConfig.default_language,`plain`)),p=M(()=>E(t.fieldConfig.allow_language_selection,!0)),m=M(()=>E(t.fieldConfig.output_code_only,!1)),h=M(()=>E(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),g=M(()=>At(n()?.[a][t.locale])??{}),_=M(()=>`${t.keyPath}.${z(h).code}`),v=M(()=>`${t.keyPath}.${z(h).lang}`),y=()=>{if(z(m))typeof o()==`string`?z(u)!==o()&&P(u,o(),!0):P(u,``),P(d,z(f),!0);else{let e=z(g)[z(_)],t=z(g)[z(v)]||z(f);typeof e==`string`?z(u)!==e&&P(u,e,!0):P(u,``),typeof t==`string`?z(d)!==t&&P(d,t,!0):P(d,``)}},b=()=>{z(m)?o()!==z(u)&&o(z(u)):n()&&(o({}),z(g)[z(_)]!==z(u)&&_n(D6,Gi(n)[a][t.locale][z(_)]=z(u),Gi(n)),z(g)[z(v)]!==z(d)&&_n(D6,Gi(n)[a][t.locale][z(v)]=z(d),Gi(n)))};ri(()=>{z(g),Gi(()=>{y()})}),ri(()=>{z(u),z(d),Gi(()=>{b()})});var x=V();ro(I(x),nT,null,e=>{var n=V();lo(I(n),()=>JSON.stringify(t.fieldConfig),e=>{dfe(e,{get showLanguageSwitcher(){return z(p)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get code(){return z(u)},set code(e){P(u,e,!0)},get lang(){return z(d)},set lang(e){P(d,e,!0)}})}),H(e,n)}),H(e,x),A(),i()}var Gye=s((()=>{Z(),J(),$(),rT(),dc(),M6()}));function Kye(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>E(t.fieldConfig.default_language,``)),o=M(()=>E(t.fieldConfig.output_code_only,!1)),s=M(()=>E(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),c=M(()=>At(n()?.currentValues[t.locale])??{}),l=M(()=>`${t.keyPath}.${z(s).code}`),u=M(()=>`${t.keyPath}.${z(s).lang}`),d=M(()=>z(o)?t.currentValue:z(c)[z(l)]),f=M(()=>z(o)?z(a):z(c)[z(u)]);var p=V(),m=I(p),h=e=>{var t=qye(),n=F(t,!0);O(t),R(()=>{ds(t,1,is(z(f)?`language-${z(f)}`:void 0)),U(n,z(d))}),H(e,t)};W(m,e=>{z(d)&&e(h)}),H(e,p),A(),i()}var qye,Jye=s((()=>{Z(),J(),M6(),qye=B(`<pre> </pre>`)}));function Yye(e,t){let n=za();k(t,!0),G(e,$ye);let r=q(t,`currentValue`,15),i=q(t,`required`,3,!0),a=q(t,`readonly`,3,!1),o=q(t,`invalid`,3,!1),s=N(``),c=N(255),l=M(()=>E(t.fieldConfig.allowInput,!1)),u=M(()=>E(t.fieldConfig.enableAlpha,!1)),d=/^#[0-9a-f]{6}$/i,f=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/i,p=()=>{if(typeof r()!=`string`)return;let{rgb:e,a:t=`ff`}=r().match(f)?.groups??{};if(e&&z(s)!==e&&P(s,e,!0),e&&z(u)){let e=Number.parseInt(`0x${t}`,16);z(c)!==e&&P(c,e,!0)}},m=()=>{let e=d.test(z(s))?z(s):``;e&&z(u)&&(e+=z(c).toString(16).padStart(2,`0`)),r()!==e&&r(e)};ri(()=>{r(),Gi(()=>{p()})}),ri(()=>{z(s),z(c),Gi(()=>{m()})});var h=Qye(),g=F(h);bs(g);var _=L(g,2),v=e=>{var r=Zye(),d=F(r),f=e=>{oL(e,{dir:`ltr`,get id(){return`${n}-input`},get invalid(){return o()},get readonly(){return a()},get required(){return i()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(s)},set value(e){P(s,e,!0)}})};W(d,e=>{z(l)&&e(f)});var p=L(d,2),m=e=>{var t=Xye(),n=I(t),r=L(n);{let e=M(()=>!z(s)),t=M(()=>Y(`opacity`));jce(r,{min:0,max:255,get disabled(){return z(e)},get"aria-label"(){return z(t)},get value(){return z(c)},set value(e){P(c,e,!0)}})}R(e=>U(n,`${e??``} `),[()=>Y(`opacity`)]),H(e,t)};W(p,e=>{z(u)&&e(m)}),O(r),H(e,r)};W(_,e=>{(z(l)||z(u))&&e(v)});var y=L(_,2),b=e=>{{let t=M(()=>Y(`clear`)),r=M(()=>!z(s)),i=M(()=>`${n}-picker ${z(l)?`${n}-input`:``}`);bI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},get"aria-controls"(){return z(i)},onclick:()=>{P(s,``),P(c,255)}})}};W(y,e=>{!a()&&!i()&&e(b)}),O(h),R(()=>{K(g,`id`,`${n}-picker`),g.readOnly=a(),K(g,`aria-invalid`,o()),K(g,`aria-readonly`,a()),K(g,`aria-required`,i()),K(g,`aria-labelledby`,`${t.fieldId??``}-label`),K(g,`aria-errormessage`,`${t.fieldId??``}-error`)}),Rs(g,()=>z(s),e=>P(s,e)),H(e,h),A()}var Xye,Zye,Qye,$ye,ebe=s((()=>{Z(),J(),X(),$(),dc(),Xye=B(` <!>`,1),Zye=B(`<span role="none" class="value svelte-udhsyb"><!> <!></span>`),Qye=B(`<div role="none" class="svelte-udhsyb"><input type="color" class="svelte-udhsyb"/> <!> <!></div>`),$ye={hash:`svelte-udhsyb`,code:`div.svelte-udhsyb {display:flex;align-items:center;gap:8px;.value:where(.svelte-udhsyb) {display:flex;align-items:center;gap:8px;.sui.text-input {width:88px;min-width:0;}.sui.slider {padding:8px;--sui-slider-base-width: 80px;}}}input.svelte-udhsyb {font-family:var(--sui-textbox-font-family);}`}}));function tbe(e,t){k(t,!0),G(e,rbe);let n=M(()=>E(t.fieldConfig.enableAlpha,!1)),r=e=>Number.parseInt(`0x${e}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/i,a=M(()=>{let{r:e,g:a,b:o,a:s}=t.currentValue?.match(i)?.groups??{};return e?`rgb(${r(e)} ${r(a)} ${r(o)}${z(n)&&s?` / ${Math.round(r(s)/255*100)}%`:``})`:``});var o=V(),s=I(o),c=e=>{var n=nbe(),r=F(n),i=F(r);let o;var s=L(i,2),c=F(s,!0);O(s);var l=L(s,2),u=F(l,!0);O(l),O(r),O(n),R(()=>{o=ms(i,``,o,{"background-color":t.currentValue}),U(c,t.currentValue),U(u,z(a))}),H(e,n)},l=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());W(s,e=>{z(l)&&e(c)}),H(e,o),A()}var nbe,rbe,ibe=s((()=>{Z(),J(),nbe=B(`<p><span role="none" class="preview svelte-1m6xsa0"><span role="none" class="color svelte-1m6xsa0"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>`),rbe={hash:`svelte-1m6xsa0`,code:`.preview.svelte-1m6xsa0 {display:inline-flex;align-items:center;gap:8px;.color:where(.svelte-1m6xsa0) {display:block;width:24px;height:24px;border-radius:24px;}}`}}));function abe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Lt(`field-editor`)??{},o=q(t,`currentValue`,15),s=q(t,`required`,3,!0),c=q(t,`readonly`,3,!1),l=q(t,`invalid`,3,!1),u=M(()=>E(t.fieldConfig.value,``)),d=M(()=>n()?.isIndexFile??!1),f=M(()=>n()?.collectionName??``),p=M(()=>n()?.fileName),m=M(()=>At(n()?.[a][t.locale])??{}),h=M(()=>XC(t.locale)),g=()=>{let[e]=t.keyPath.split(`.`).splice(-2,1);return e&&aP(e)?Number(e):void 0},_=()=>{if(t.keyPath.includes(`.`)&&!(t.keyPath in z(m)))return;let e=z(u)===`{{index}}`?g()??``:GP(z(u),(e,n)=>{let{value:r,transformations:i}=tC(n);if(r===`index`)return String(g()??``);if(!r.startsWith(`fields.`))return``;let a=OP({collectionName:z(f),fileName:z(p),valueMap:z(m),keyPath:r.replace(/^fields\./,``),locale:t.locale,isIndexFile:z(d)});return a=Array.isArray(a)?z(h).format(a):String(a),i.length?lC({value:a,transformations:i,locale:t.locale}):a});o()!==e&&o(e)};ri(()=>{z(m),Gi(()=>{_()})});{let n=M(()=>String(o()));oL(e,{dir:`auto`,get value(){return z(n)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`}})}A(),i()}var obe=s((()=>{Z(),J(),$(),dc(),YP(),uC(),M6(),jP(),QC(),sP()}));function sbe(e,t){k(t,!0);var n=cbe(),r=F(n,!0);O(n),R((e,i)=>{K(n,`lang`,e),K(n,`dir`,i),U(r,t.currentValue),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale)]),H(e,n),A()}var cbe,lbe=s((()=>{Z(),J(),QC(),cbe=B(`<p> </p>`)}));function ube(e,t){k(t,!0),G(e,mbe);let n=q(t,`currentValue`,15),r=q(t,`required`,3,!0),i=q(t,`readonly`,3,!1),a=q(t,`invalid`,3,!1),o=N(``),s=N(!1),c=M(()=>WS(t.fieldConfig)),l=M(()=>z(c).type),u=M(()=>z(c).min),d=M(()=>z(c).max),f=M(()=>z(c).step),p=M(()=>z(c).dateOnly),m=M(()=>z(c).utc),h=M(()=>z(c).singleCustomTimeZone),g=M(()=>Iw(n(),t.fieldConfig)),_=()=>{if(z(s))return;let e=$w({currentValue:n(),fieldConfig:t.fieldConfig,timeZone:z(g)});e!==void 0&&e!==z(o)&&P(o,e,!0)},v=()=>{let e=Qw({inputValue:z(o),currentValue:n(),fieldConfig:t.fieldConfig,timeZone:z(g)});e!==void 0&&e!==n()&&Number(Xw(e,t.fieldConfig))!==Number(Xw(n(),t.fieldConfig))&&n(e)};ri(()=>{n(),Gi(()=>{_()})}),ri(()=>{z(o),Gi(()=>{v()})});let y=()=>{P(s,!0)},b=()=>{P(s,!1),_()};var x=pbe(),S=I(x),C=F(S);Cs(C,()=>({type:z(l),min:z(u),max:z(d),step:z(f),readonly:i(),"aria-readonly":i(),"aria-required":r(),"aria-invalid":a(),"aria-labelledby":`${t.fieldId??``}-label`,"aria-errormessage":`${t.fieldId??``}-error`,onfocus:y,onblur:b}),void 0,void 0,void 0,`svelte-1dnhck7`,!0);var w=L(C,2),T=e=>{{let n=M(()=>Y(z(p)?`today`:`now`));bI(e,{variant:`tertiary`,get label(){return z(n)},onclick:()=>{P(o,Zw(t.fieldConfig,z(g)),!0)}})}};W(w,e=>{i()||e(T)});var E=L(w,2),ee=e=>{{let t=M(()=>Y(`clear`)),r=M(()=>!n());bI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{n(``)}})}};W(E,e=>{!i()&&!r()&&e(ee)}),O(S);var te=L(S,2),ne=e=>{var r=dbe(),i=F(r,!0);O(r),R(e=>U(i,e),[()=>Lw(z(h),Xw(n(),t.fieldConfig))]),H(e,r)},re=e=>{H(e,fbe())};W(te,e=>{z(h)?e(ne):z(m)&&e(re,1)}),Rs(C,()=>z(o),e=>P(o,e)),H(e,x),A()}var dbe,fbe,pbe,mbe,hbe=s((()=>{Z(),J(),X(),$(),dc(),GS(),tT(),Rw(),dbe=B(`<div role="none" class="timezone svelte-1dnhck7"> </div>`),fbe=B(`<div role="none" class="timezone svelte-1dnhck7">UTC</div>`),pbe=B(`<div role="none" class="svelte-1dnhck7"><input/> <!> <!></div> <!>`,1),mbe={hash:`svelte-1dnhck7`,code:`div.svelte-1dnhck7 {display:flex;align-items:center;}.timezone.svelte-1dnhck7 {margin:4px 8px 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);white-space:nowrap;}`}}));function gbe(e,t){k(t,!0);let n=M(()=>WS(t.fieldConfig)),r=M(()=>z(n).utc),i=M(()=>z(n).singleCustomTimeZone),a=M(()=>eT({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue}));var o=V(),s=I(o),c=e=>{var n=_be(),o=F(n),s=L(o),c=e=>{var n=Ra();R(e=>U(n,`— ${e??``}`),[()=>Lw(z(i),Xw(t.currentValue,t.fieldConfig))]),H(e,n)},l=e=>{H(e,Ra(`— UTC`))};W(s,e=>{z(i)?e(c):z(r)&&e(l,1)}),O(n),R((e,t)=>{K(n,`lang`,e),K(n,`dir`,t),U(o,`${z(a)??``} `),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale)]),H(e,n)};W(s,e=>{z(a)&&e(c)}),H(e,o),A()}var _be,vbe=s((()=>{Z(),J(),GS(),tT(),Rw(),QC(),_be=B(`<p> <!></p>`)}));function ybe(e,t){k(t,!0);let n=()=>j(aA,`$activated`,i),r=()=>j(oA,`$consoleLoaded`,i),[i,a]=hn(),o=q(t,`multiple`,3,!1),s=q(t,`hidden`,3,!1),c=M(()=>mA(t.fieldConfig)??{}),l=null,u=()=>{let e={...Object.fromEntries(Object.entries(z(c).config??{}).filter(([e])=>dA.includes(e))),multiple:o(),max_files:t.fieldConfig?.max??z(c).config?.max_files??20,folder:{path:z(c).config?.folder?.path??``,resource_type:t.kind??`raw`}},n={type:`ML_WIDGET_SHOW`,data:{mlId:l?.dataset?.mlId,config:e}};console.debug(`Cloudinary Panel sending message:`,n),l?.contentWindow?.postMessage(JSON.stringify(n),lA)},f=({assets:e})=>{let{output_filename_only:n=!1,use_transformations:r=!0}=z(c),i=e.map(e=>{let t=e.secure_url;return n?{url:t.split(`/`).pop()}:r?{url:e.derived?.[0]?.secure_url??t}:{url:t}});t.onSelect(i)},p=({origin:e,data:t})=>{if(e===lA){if(typeof t==`string`)try{t=JSON.parse(t)}catch{return}d(t)&&(console.debug(`Cloudinary Panel received message:`,t),t.type===`login`&&t.consoleDomain&&(mn(aA,!0),mn(sA,!0)),t.type===`consoleLoaded`&&mn(oA,!0),t.type===`ML_WIDGET_INSERT_DATA`&&(mn(sA,!1),f(t.data)),t.type===`ML_WIDGET_HIDE`&&mn(sA,!1))}};lc(()=>(l=document.querySelector(`iframe#cloudinary-iframe`),window.addEventListener(`message`,p),()=>{window.removeEventListener(`message`,p)})),ri(()=>{z(c)&&r()&&u()});var m=V(),h=I(m),g=e=>{$0(e,{children:(e,t)=>{var r=V(),i=I(r),a=e=>{{let t=M(()=>Y(`cloud_storage.cloudinary.open_library`));bI(e,{variant:`primary`,get label(){return z(t)},onclick:()=>{mn(sA,!0)}})}},o=e=>{var t=bbe(),n=I(t);{let e=M(()=>Y(`cloud_storage.cloudinary.activate.button_label`));bI(n,{variant:`primary`,get label(){return z(e)},onclick:()=>{V2(`${cA}/cms_login?cms=true`,{noopener:!1})}})}var r=L(n,2),i=F(r,!0);O(r),R(e=>U(i,e),[()=>Y(`cloud_storage.cloudinary.activate.description`)]),H(e,t)};W(i,e=>{n()?e(a):e(o,-1)}),H(e,r)},$$slots:{default:!0}})};W(h,e=>{s()||e(g)}),H(e,m),A(),a()}var bbe,xbe=s((()=>{Z(),J(),X(),$(),p(),dc(),_A(),H2(),bbe=B(`<!> <div role="none"> </div>`,1)}));function Sbe(e,t){k(t,!0),G(e,Ebe);let n=q(t,`children`,3,void 0),r=M(()=>t.path?Np(t.path).split(`/`):t.caption?[t.caption]:[]),i={ALLOWED_TAGS:[`wbr`]},a=e=>Cx(e.replace(/([-_.])/g,`$1<wbr>`),i);var o=V(),s=I(o),c=e=>{var t=Tbe(),i=F(t);lI(i,{lines:2,children:(e,t)=>{var n=V();vo(I(n),19,()=>z(r),(e,t)=>`${e}-${t}`,(e,t,n)=>{var i=V(),o=I(i),s=e=>{var n=Cbe();Eo(n,()=>a(z(t)),!0),O(n),H(e,n)},c=e=>{var n=wbe();Eo(I(n),()=>a(z(t))),gt(),H(e,n)};W(o,e=>{z(n)===z(r).length-1?e(s):e(c,-1)}),H(e,i)}),H(e,n)},$$slots:{default:!0}}),Ao(L(i,2),()=>n()??D),O(t),H(e,t)};W(s,e=>{z(r).length&&e(c)}),H(e,o),A()}var Cbe,wbe,Tbe,Ebe,Dbe=s((()=>{Z(),J(),$(),Ip(),wx(),Cbe=B(`<strong></strong>`),wbe=B(`<!>/`,1),Tbe=B(`<span class="name svelte-1ngvthn" aria-hidden="true"><!> <!></span>`),Ebe={hash:`svelte-1ngvthn`,code:`.name.svelte-1ngvthn {color:var(--sui-tertiary-foreground-color);strong {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}}`}}));function Obe(e,t){G(e,jbe);let n=q(t,`viewType`,3,`grid`);var r=Abe();UL(F(r),{label:``,get value(){return t.value},get selected(){return t.selected},get onChange(){return t.onChange},startIcon:e=>{var n=V(),r=I(n),i=e=>{var t=kbe();tI(F(t),{name:`check`,class:`icon check`}),O(t),H(e,t)};W(r,e=>{t.multiple&&e(i)}),H(e,n)},children:(e,n)=>{var r=V();Ao(I(r),()=>t.children??D),H(e,r)},$$slots:{startIcon:!0,default:!0}}),O(r),R(()=>ds(r,1,`wrapper ${n()??``}`,`svelte-1fitgoo`)),H(e,r)}var kbe,Abe,jbe,Mbe=s((()=>{Z(),J(),$(),kbe=B(`<span role="none" class="icon check-background"><!></span>`),Abe=B(`<div role="none"><!></div>`),jbe={hash:`svelte-1fitgoo`,code:`.wrapper.svelte-1fitgoo {display:contents;[role='option'] {position:relative;& > .icon.check {display:none;}&[aria-selected='false'] {.check-background {border-color:var(--sui-checkbox-border-color);background-color:var(--sui-checkbox-background-color);.icon {display:none;}}}&[aria-selected='true'] {.check-background {border-color:var(--sui-primary-accent-color);color:var(--sui-primary-accent-color-inverted);background-color:var(--sui-primary-accent-color);}}.check-background {display:flex;justify-content:center;align-items:center;border-width:1px;border-radius:var(--sui-checkbox-border-radius);width:20px;height:20px;pointer-events:none;.icon {color:inherit !important;font-size:20px;}}}&.grid {.check-background {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}}&.list {.check-background {margin-inline-start:16px;}}}`}}));function Nbe(e,t){k(t,!0),G(e,Fbe);let n=q(t,`viewType`,3,`grid`),r=q(t,`gridId`,3,void 0),i=q(t,`multiple`,3,!1),a=q(t,`onChange`,3,void 0),o=q(t,`children`,3,void 0);var s=Pbe(),c=F(s);{let e=M(()=>Y(`assets_dialog.available_images`));PL(c,{get id(){return r()},get class(){return n()},get multiple(){return i()},get"aria-label"(){return z(e)},onChange:e=>{a()?.(e.detail)},children:(e,t)=>{var n=V();Ao(I(n),()=>o()??D),H(e,n)},$$slots:{default:!0}})}O(s),H(e,s),A()}var Pbe,Fbe,Ibe=s((()=>{Z(),J(),X(),$(),Pbe=B(`<div role="none" class="wrapper svelte-umbokg"><!></div>`),Fbe={hash:`svelte-umbokg`,code:`.wrapper.svelte-umbokg {display:contents;.listbox {gap:4px;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);.option {button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;&:focus-visible {outline-color:transparent;}.preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1 / 1;object-fit:contain;}}}.name {min-height:calc(var(--sui-font-size-default) * 2);white-space:normal;line-height:var(--sui-line-height-compact);}}.listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;.option {button {flex-direction:column;justify-content:flex-start;.preview {width:100%;height:auto;}.name {flex:none;margin:4px 0 12px;padding:0 8px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);&:empty {display:none;}}}}button[aria-selected='true'] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}}.listbox.list {.option {button {gap:16px;.preview {width:64px;}.name {flex:auto;padding-inline:0 8px;}}button[aria-selected='true'] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}}}}`}}));function Lbe(e,t){k(t,!0);let n=q(t,`open`,15,!1);{let r=M(()=>Y(`assets_dialog.large_file.title`));nL(e,{get title(){return z(r)},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var r=Rbe(),i=I(r),a=F(i,!0);O(i);var o=L(i,2),s=F(o,!0);O(o),R((e,t)=>{U(a,e),U(s,t)},[()=>Y(`warning_oversized_files`,{values:{count:t.oversizedFileNames.length,size:FE(t.maxSize)}}),()=>XC(Xh.current).format(t.oversizedFileNames)]),H(e,r)},$$slots:{default:!0}})}A()}var Rbe,zbe=s((()=>{Z(),J(),X(),$(),QC(),HE(),Rbe=B(`<div> </div> <div> </div>`,1)}));function Bbe(e,t){k(t,!0),G(e,Kbe);let n=()=>j(z2,`$selectAssetsView`,i),r=()=>j(bF,`$cmsConfig`,i),[i,a]=hn(),o=e=>{var t=V(),n=I(t),r=e=>{$0(e,{children:(e,t)=>{var n=k5(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(l()?`searching`:`loading`)]),H(e,n)},$$slots:{default:!0}})},i=e=>{$0(e,{children:(e,t)=>{var n=k5(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})},a=e=>{var t=Vbe();Nbe(F(t),{get viewType(){return z(T)},get gridId(){return u()},get multiple(){return c()},children:(e,t)=>{{let t=(e,t=D)=>{var n=V();ro(I(n),nT,null,e=>{let n=M(()=>{let{id:e,previewURL:n,description:r,kind:i}=t();return{id:e,previewURL:n,description:r,_kind:i}});{let r=M(()=>be(t()));Obe(e,{get value(){return z(n).id},get viewType(){return z(T)},get multiple(){return c()},get selected(){return z(r)},onChange:({detail:{selected:e}})=>{xe(t(),e)},children:(e,t)=>{var r=A5(),i=I(r);j3(i,{get kind(){return z(n)._kind},get src(){return z(n).previewURL},get alt(){return z(n).description},variant:`tile`,crossorigin:`anonymous`});var a=L(i,2),o=e=>{{let t=M(()=>z(te)?void 0:z(n).description),r=M(()=>z(te)?z(n).description:void 0);Sbe(e,{get path(){return z(t)},get caption(){return z(r)}})}};W(a,e=>{(z(T)===`list`||!AE.isSmallScreen&&!z(te))&&e(o)}),H(e,r)},$$slots:{default:!0}})}}),H(e,n)},n=M(()=>z(de)??[]);IR(e,{get items(){return z(n)},itemKey:`id`,renderItem:t,$$slots:{renderItem:!0}})}},$$slots:{default:!0}}),O(t),H(e,t)};W(n,e=>{z(de)?z(de).length?e(a,-1):e(i,1):e(r)}),H(e,t)},s=q(t,`fieldConfig`,3,void 0),c=q(t,`multiple`,3,!1),l=q(t,`searchTerms`,3,``),u=q(t,`gridId`,3,void 0),d=q(t,`selectedResources`,31,()=>Nr([])),f=M(()=>E(t.serviceProps.serviceType,`stock_assets`)),p=M(()=>E(t.serviceProps.serviceId,``)),m=M(()=>E(t.serviceProps.serviceLabel,``)),h=M(()=>E(t.serviceProps.hotlinking,!1)),g=M(()=>E(t.serviceProps.authType,`api_key`)),_=M(()=>E(t.serviceProps.developerURL,``)),v=M(()=>E(t.serviceProps.apiKeyURL,``)),y=M(()=>t.serviceProps.apiKeyPattern),b=M(()=>t.serviceProps.init),x=M(()=>t.serviceProps.signIn),S=M(()=>t.serviceProps.list),C=M(()=>t.serviceProps.search),w=M(()=>t.serviceProps.upload),T=M(()=>z(p)===`picsum`?`grid`:n()?.type),te=M(()=>z(f)===`stock_assets`),ne=M(()=>s()?.media_libraries?.all??r()?.media_libraries?.all??{}),re=M(()=>z(ne).max_file_size??1/0),ie=Nr({userName:``,password:``}),ae=N(!0),oe=N(!1),se=N(``),ce=N(``),le=N(``),ue=N(`initial`),de=N(null),fe=N(void 0),pe=N(Nr({show:!1,status:`info`,length:0})),me=N(Nr([])),he=N(!1),ge=M(()=>({kind:t.kind,fieldConfig:s(),apiKey:z(se),userName:z(ce),password:z(le)})),_e=async(e=``)=>{P(de,null),e=e.trim();try{P(de,await(e?z(C)?.(e,z(ge)):z(S)?.(z(ge)))??[],!0)}catch(e){P(fe,`search_fetch_failed`),console.error(e)}},ve=async e=>{let{downloadURL:t,fileName:n,credit:r}=e;if(z(h))return{url:t,credit:r};try{let e=await fetch(t),{ok:i,status:a}=e;if(!i)throw Error(`The response returned with HTTP status ${a}.`);let o=await e.blob();return{url:t,credit:r,file:new File([o],n,{type:o.type})}}catch(e){P(fe,`image_fetch_failed`),console.error(e)}},ye=async e=>{if(!z(w))return;let t=await Promise.all(e.map(e=>AF(e,z(ne))));if(e=t.filter(({oversized:e})=>!e).map(({file:e})=>e),P(me,t.filter(({oversized:e})=>e).map(({file:e})=>e.name),!0),z(me).length&&P(he,!0),e.length){P(pe,{show:!0,status:`info`,length:e.length},!0);try{let t=await z(w)(e,z(ge)),n=await Promise.all(t.map(e=>ve(e)));d(n.filter(e=>!!e).slice(0,c()?void 0:1)),P(de,[...t,...z(de)??[]],!0)}catch{P(pe,{show:!0,status:`error`,length:e.length},!0)}}},be=e=>d().some(t=>t.url===e.downloadURL),xe=async(e,t)=>{let n=d().filter(t=>t.url!==e.downloadURL);if(t){let t=await ve(e);t&&d([...n,t])}else d(n)};lc(()=>{(async()=>{typeof z(b)==`function`&&(P(ae,!1),P(ae,await z(b)(),!0)),z(ae)&&(P(se,DO.apiKeys?.[z(p)]??``,!0),(e=>{var t=ee(e,2);P(ce,t[0],!0),P(le,t[1],!0)})((DO.logins?.[z(p)]??``).split(` `)),P(oe,z(g)===`none`||!!z(se)||!!z(le),!0),P(de,null))})()}),ri(()=>{l(),z(oe),Gi(()=>{z(oe)&&_e(l())})});var Se={uploadFiles:ye},Ce=Gbe(),we=I(Ce),Te=e=>{var t=V(),n=I(t),r=e=>{$0(e,{children:(e,t)=>{var n=k5(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`assets_dialog.error.${z(fe)}`)]),H(e,n)},$$slots:{default:!0}})},i=e=>{{let t=M(()=>s()?.accept);W6(e,{get accept(){return z(t)},multiple:!0,onDrop:({files:e})=>ye(e),children:(e,t)=>{o(e)},$$slots:{default:!0}})}},a=e=>{o(e)};W(n,e=>{z(fe)?e(r):z(w)?e(i,1):e(a,-1)}),H(e,t)},Ee=e=>{$0(e,{children:(e,t)=>{var n=Wbe(),r=I(n),i=F(r),a=e=>{var t=V();Eo(I(t),()=>Cx(Y(`prefs.media.stock_photos.description`,{values:{service:z(m),homeHref:`href="${z(_)}"`,apiKeyHref:`href="${z(v)}"`}}).replace(/[\u2068\u2069]/g,``),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),H(e,t)};W(i,e=>{z(te)&&e(a)});var o=L(i,2),s=e=>{var t=V();Eo(I(t),()=>Cx(Y(`cloud_storage.${z(p)}.auth.${z(ue)}`,{default:Y(`cloud_storage.auth.${z(g)}.${z(ue)}`,{values:{service:z(m),key:Y(`cloud_storage.${z(p)}.auth_key_label`,{default:Y(`cloud_storage.auth.${z(g)}.key_label`)})}})}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),H(e,t)};W(o,e=>{z(f)===`cloud_storage`&&e(s)}),O(r);var c=L(r,2),l=e=>{var t=Hbe(),n=F(t);{let e=M(()=>Y(`prefs.media.stock_photos.field_label`,{values:{service:z(m)}}));oL(n,{dir:`ltr`,flex:!0,monospace:!0,spellcheck:`false`,get"aria-label"(){return z(e)},oninput:e=>{let t=e.target.value.trim();z(y)?.test(t)&&(P(se,t,!0),P(oe,!0),DO.apiKeys??={},DO.apiKeys[z(p)]=z(se),_e())}})}O(t),H(e,t)};W(c,e=>{z(g)===`api_key`&&e(l)});var u=L(c,2),d=e=>{var t=Ube(),n=I(t),r=F(n);{let e=M(()=>Y(`user_name`)),t=M(()=>z(ue)===`requested`);oL(r,{dir:`ltr`,flex:!0,spellcheck:`false`,get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return ie.userName},set value(e){ie.userName=e}})}O(n);var i=L(n,2),a=F(i);{let e=M(()=>Y(`password`)),t=M(()=>z(ue)===`requested`);U0(a,{get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return ie.password},set value(e){ie.password=e}})}O(i);var o=L(i,2),s=F(o);{let e=M(()=>Y(`sign_in`)),t=M(()=>!ie.userName||!ie.password||z(ue)===`requested`);bI(s,{variant:`secondary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{P(ue,`requested`),ie.userName=ie.userName.trim(),ie.password=ie.password.trim(),await z(x)?.(ie.userName,ie.password)?(P(ue,`success`),P(ce,ie.userName,!0),P(le,ie.password,!0),P(oe,!0),DO.logins??={},DO.logins[z(p)]=[z(ce),z(le)].join(` `),_e()):P(ue,`error`)}})}O(o),H(e,t)};W(u,e=>{z(g)===`password`&&e(d)}),H(e,n)},$$slots:{default:!0}})},De=e=>{$0(e,{children:(e,t)=>{var n=k5(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`cloud_storage.invalid`)]),H(e,n)},$$slots:{default:!0}})};W(we,e=>{z(oe)?e(Te):z(ae)?e(Ee,1):e(De,-1)});var Oe=L(we,2);jz(Oe,{get show(){return z(pe).show},set show(e){z(pe).show=e},children:(e,t)=>{rI(e,{get status(){return z(pe).status},children:(e,t)=>{var n=A5(),r=I(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`uploading_files_progress`,{values:{count:z(pe).length}})]),H(e,t)};W(r,e=>{z(pe).status===`info`&&e(i)});var a=L(r,2),o=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`uploading_files_failed`,{values:{count:z(pe).length}})]),H(e,t)};W(a,e=>{z(pe).status===`error`&&e(o)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),Lbe(L(Oe,2),{get oversizedFileNames(){return z(me)},get maxSize(){return z(re)},get open(){return z(he)},set open(e){P(he,e,!0)}}),H(e,Ce);var ke=A(Se);return a(),ke}var k5,A5,Vbe,Hbe,Ube,Wbe,Gbe,Kbe,qbe=s((()=>{Z(),J(),X(),$(),rT(),wx(),dc(),Dbe(),Mbe(),Ibe(),z3(),G6(),zbe(),jF(),TF(),B2(),jE(),OO(),k5=B(`<span role="alert"> </span>`),A5=B(`<!> <!>`,1),Vbe=B(`<div role="none" class="grid-wrapper svelte-mqll9n"><!></div>`),Hbe=B(`<div role="none" class="input-outer svelte-mqll9n"><!></div>`),Ube=B(`<div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div>`,1),Wbe=B(`<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>`,1),Gbe=B(`<!> <!> <!>`,1),Kbe={hash:`svelte-mqll9n`,code:`.grid-wrapper.svelte-mqll9n {overflow-y:auto;height:100%;}p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}`}}));function Jbe(e,t){k(t,!0),G(e,Qbe);let n=q(t,`multiple`,3,!1),r=q(t,`assets`,19,()=>[]),i=q(t,`viewType`,3,`grid`),a=q(t,`searchTerms`,3,``),o=q(t,`basePath`,3,void 0),s=q(t,`gridId`,3,void 0),c=q(t,`checkerboard`,3,!1),l=q(t,`selectedResources`,31,()=>Nr([])),u=q(t,`onSelect`,3,void 0),d=M(()=>a()?a().split(/\s+/).filter(Boolean):[]),f=M(()=>{let e=r().map(e=>{let{folder:t,name:n,path:r}=e,i=o()&&!t.entryRelative?Np(r.replace(o(),``)):n;return{...e,relPath:i}});return z(d).length&&(e=e.filter(({relPath:e})=>z(d).every(t=>O8(e).includes(t)))),e.filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t)}),p=e=>l().some(t=>t.asset?.path===e.path),m=(e,t)=>{let n=l().filter(t=>t.asset?.path!==e.path);t?(l([...n,{asset:e}]),u()?.({asset:e})):l(n)};var h=V(),g=I(h),_=e=>{var t=Xbe();Nbe(F(t),{get multiple(){return n()},get gridId(){return s()},get viewType(){return i()},children:(e,t)=>{IR(e,{get items(){return z(f)},itemKey:`path`,renderItem:(e,t=D)=>{var r=V();ro(I(r),nT,null,e=>{let r=M(()=>{let{kind:e,unsaved:n,path:r,relPath:i}=t();return{kind:e,unsaved:n,path:r,relPath:i}});{let a=M(()=>p(t()));Obe(e,{get value(){return z(r).path},get viewType(){return i()},get multiple(){return n()},get selected(){return z(a)},onChange:({detail:{selected:e}})=>{m(t(),e)},children:(e,n)=>{var a=Ybe(),o=I(a),s=e=>{var t=j5(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`assets_dialog.unsaved`)]),H(e,t)};W(o,e=>{i()===`grid`&&z(r).unsaved&&e(s)});var l=L(o,2);j3(l,{get kind(){return z(r).kind},get asset(){return t()},get alt(){return z(r).relPath},variant:`tile`,get checkerboard(){return c()}});var u=L(l,2),d=e=>{Sbe(e,{get path(){return z(r).relPath},children:(e,t)=>{var n=V(),a=I(n),o=e=>{var t=j5(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`assets_dialog.unsaved`)]),H(e,t)};W(a,e=>{i()===`list`&&z(r).unsaved&&e(o)}),H(e,n)},$$slots:{default:!0}})};W(u,e=>{(!AE.isSmallScreen||i()===`list`)&&e(d)}),H(e,a)},$$slots:{default:!0}})}}),H(e,r)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),O(t),H(e,t)},v=e=>{$0(e,{children:(e,t)=>{var n=Zbe(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})};W(g,e=>{z(f).length?e(_):e(v,-1)}),H(e,h),A()}var j5,Ybe,Xbe,Zbe,Qbe,$be=s((()=>{Z(),J(),X(),$(),rT(),Ip(),Dbe(),Mbe(),Ibe(),z3(),A8(),jE(),j5=B(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Ybe=B(`<!> <!> <!>`,1),Xbe=B(`<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>`),Zbe=B(`<span role="none"> </span>`),Qbe={hash:`svelte-1ong0f1`,code:`.grid-wrapper.svelte-1ong0f1 {overflow-y:auto;height:100%;[role='listbox'] {background-color:transparent;&.grid {.unsaved {position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1;}}&.list {.name {display:flex;gap:8px;align-items:center;justify-content:space-between;}}}}.unsaved.svelte-1ong0f1 {display:flex;justify-content:center;align-items:center;border-color:var(--sui-info-border-color);border-radius:4px;padding:2px 6px;color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}`}}));function exe(e,t){k(t,!0);let n=()=>j(z2,`$selectAssetsView`,r),[r,i]=hn(),a=q(t,`multiple`,3,!1),o=q(t,`accept`,3,void 0),s=q(t,`assets`,19,()=>[]),c=q(t,`searchTerms`,3,``),l=q(t,`basePath`,3,void 0),u=q(t,`selectedResources`,31,()=>Nr([])),d=N(void 0);ri(()=>{u().length||Gi(()=>{z(d)?.reset()})}),qs(W6(e,{get multiple(){return a()},get accept(){return o()},get onDrop(){return t.onDrop},children:(e,t)=>{{let t=M(()=>n()?.type);Jbe(e,{get multiple(){return a()},get assets(){return s()},get viewType(){return z(t)},get searchTerms(){return c()},get basePath(){return l()},gridId:`select-assets-grid`,checkerboard:!0,get selectedResources(){return u()},set selectedResources(e){u(e)}})}},$$slots:{default:!0}}),e=>P(d,e,!0),()=>z(d)),A(),i()}var txe=s((()=>{Z(),J(),dc(),$be(),G6(),B2()})),M5,N5,P5,F5=s((()=>{J(),JF(),M5={count:0,name:``,showDialog:!1,resolve:()=>{}},N5=Nr({...M5}),P5=async({files:e,listedAssets:t})=>{let n=qF(e,t),r=n.length;if(!r)return!1;let{promise:i,resolve:a}=Promise.withResolvers();Object.assign(N5,{count:r,name:n[0].name,showDialog:!0,resolve:a});let o=await i;return Object.assign(N5,{...M5}),o}})),nxe,I5,L5,R5,z5,rxe,B5,ixe,V5=s((()=>{Ap(),Yp(),nxe=u(CO(),1),Zp(),JF(),fm(),I5=({collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i})=>{let a=cm({collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i}),o=t?cm({collectionName:e,fileName:t}):void 0,s=cm({collectionName:e}),c=o??s,l=dn(am),u={field:{folder:a,enabled:a!==void 0},entry:{folder:c,enabled:!!c&&(c.entryRelative||c.hasTemplateTags)},file:{folder:o,enabled:!!o&&!o.entryRelative&&!o.hasTemplateTags},collection:{folder:s,enabled:!!s&&!s.entryRelative&&!s.hasTemplateTags},global:{folder:l,enabled:l!==void 0}};return dn(im).forEach(e=>{e.isAssetCollection&&e.collectionName&&(u[e.collectionName]={folder:e,enabled:!0})}),u},L5=e=>Object.values(e).find(({enabled:e})=>e)?.folder,R5=({entry:e,folder:t})=>{let{entryRelative:n,internalPath:r,internalSubPath:i}=t??{};if(!n)return r?.replace(`{{slug}}`,e?.slug??`-`);let a=i||void 0;if(e){let t=Vp(Object.values(e.locales)[0].path).dirname;return a?`${t}/${a}`:t}return a?`${r}/${a}/-`:`${r}/-`},z5=({path:e,folderPath:t})=>t!==void 0&&(e===t||`${e}/-`===t||e.startsWith(`${t}/`)),rxe=({asset:e,folder:t,folderPath:n})=>{if(t===void 0||e.folder?.internalPath!==t.internalPath||e.folder?.entryRelative!==t.entryRelative)return!1;if(!t.entryRelative)return z5({path:e.path,folderPath:n});let{dirname:r}=Vp(e.path);return r!==void 0&&z5({path:r,folderPath:n})},B5=({kind:e,folder:t,folderPath:n,unsavedAssets:r})=>[...dn(MF),...r].filter(t=>!e||e===t.kind).sort((e,t)=>e.name.localeCompare(t.name)).sort((e,t)=>Number(!!t.unsaved)-Number(!!e.unsaved)).filter(e=>rxe({asset:e,folder:t,folderPath:n})),ixe=async({hash:e,folder:t,unsavedAssets:n})=>(await Promise.all(n.map(async n=>!!n.file&&(0,nxe.default)(n.folder,t)&&await kp(n.file)===e))).includes(!0)})),H5,axe,U5,W5,G5,oxe,K5,q5=s((()=>{Ap(),H5=u(CO(),1),wx(),Zp(),JF(),VM(),AT(),jF(),HE(),axe=/(?<path>.+?)(?:\/[^/]+)?$/,U5=async({draft:e,file:t,folder:n})=>{let r=await kp(t),i;return await Promise.all(Object.entries(e.files??{}).map(async([e,t])=>{!i&&await kp(t.file)===r&&(!n?.entryRelative||(0,H5.default)(t.folder,n))&&(i=e)})),i},W5=async({file:e,blobURL:t,folder:n,targetFolderPath:r})=>{let{name:i,size:a}=e;return{unsaved:!0,file:e,blobURL:t??URL.createObjectURL(e),name:i,path:r?`${r}/${i}`:i,sha:await VE(e),size:a,kind:kT(i),folder:n}},G5=async({draft:e,targetFolderPath:t})=>Promise.all(Object.entries(e.files).map(async([e,{file:n,folder:r}])=>W5({file:n,blobURL:e,folder:r,targetFolderPath:t}))),oxe=(e,t)=>{let n=dn(MF);if(!t?.entryRelative)return n;let{originalEntry:r,defaultLocale:i,collection:a}=e,o=r?.locales[i]?.path;if(!o)return[];let s=a._type===`entry`?a._file.subPath:void 0,c=s?.includes(`/`)?s.split(`/`).at(-1):void 0,l=o.substring(0,o.lastIndexOf(`.`));c&&!c.includes(`{{`)&&(l=l.match(axe)?.groups?.path??l);let u=[l,t.internalSubPath].filter(Boolean).join(`/`);return n.filter(e=>e.path.startsWith(`${u}/`))},K5=async({draft:e,resource:t,libraryConfig:n})=>{let{url:r,credit:i,replace:a=!1}=t,{asset:o,file:s}=t,c=``,l;if(s){let{folder:r}=t,i=await U5({draft:e,file:s,folder:r});if(i)c=i;else{let{file:t,oversized:i}=await AF(s,n??{});s=t;let u=await VE(s),d=[...oxe(e,r),...await G5({draft:e})].find(e=>e.sha===u&&(0,H5.default)(e.folder,r));d?(o=d,s=void 0):i?(l=s.name,s=void 0):(c=URL.createObjectURL(s),e.files[c]={file:s,folder:r,replace:a})}}return o&&(o.unsaved?o.file&&(c=await U5({draft:e,file:o.file,folder:o.folder})):c=RM(o,{pathOnly:!0,allowSpecial:!0,entry:e.originalEntry})),r&&!s&&!o&&(c=r),{value:c,credit:i?Cx(i,{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`]}):``,oversizedFileName:l}}})),J5,Y5,X5,sxe,cxe,Z5,lxe,uxe,dxe,fxe=s((()=>{X(),rT(),J5=[`en-US,pt-BR,es-ES,ca-ES,de-DE,it-IT,fr-FR,sv-SE,id-ID,pl-PL,ja-JP,zh-TW,zh-CN,ko-KR,th-TH,nl-NL`,`hu-HU,vi-VN,cs-CZ,da-DK,fi-FI,uk-UA,el-GR,ro-RO,nb-NO,sk-SK,tr-TR,ru-RU`].join(`,`).split(`,`),Y5=`https://api.pexels.com/v1`,X5={per_page:80},sxe=/\/photo\/(?<alt>.+?)-\d+\/$/,cxe=()=>{let e=Xh.current.toLowerCase(),[t]=e.split(`-`);return J5.find(t=>t.toLowerCase()===e)??J5.find(e=>e.split(`-`)[0]===t)??`en-US`},Z5=e=>e.map(({id:e,url:t,alt:n,src:{large2x:r,medium:i},photographer:a})=>({id:String(e),description:t.match(sxe)?.groups?.alt.replace(/-/g,` `)??n,previewURL:i,downloadURL:r,fileName:`pexels-${a.split(/\s+/).join(`-`).toLowerCase()}-${e}.jpg`,kind:`image`,credit:`<a href="${t}">Photo by ${a} on Pexels</a>`})),lxe=async({apiKey:e})=>{let t={Authorization:e},n=new URLSearchParams(X5),r=await fetch(`${Y5}/curated?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=(await r.json()).photos;return Z5(i)},uxe=async(e,{apiKey:t})=>{let n={Authorization:t},r=new URLSearchParams({...X5,query:e,locale:cxe()}),i=[];for(let e=1;e<=2;e+=1){r.set(`page`,String(e));let t=await fetch(`${Y5}/search?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{photos:a,next_page:o}=await t.json();if(i.push(...a),!o)break;await nT(50)}return Z5(i)},dxe={serviceType:`stock_assets`,serviceId:`pexels`,serviceLabel:`Pexels`,serviceURL:`https://www.pexels.com/`,showServiceLink:!0,hotlinking:!1,authType:`api_key`,developerURL:`https://www.pexels.com/api/`,apiKeyURL:`https://www.pexels.com/api/new/`,apiKeyPattern:/^[a-zA-Z\d]{56}$/,list:lxe,search:uxe}})),pxe,mxe,hxe,gxe,_xe,vxe,yxe,bxe=s((()=>{pxe=`https://picsum.photos/v2/list`,mxe=100,hxe=10,gxe=3,_xe=e=>e.map(({id:e,width:t,height:n})=>{let r=t>=n,[i,a]=r?[1920,1280]:[1280,1920],[o,s]=r?[480,320]:[320,480];return{id:e,description:``,previewURL:`https://picsum.photos/id/${e}/${o}/${s}.webp`,downloadURL:`https://picsum.photos/id/${e}/${i}/${a}.webp`,fileName:`picsum-${e}.webp`,kind:`image`}}),vxe=async()=>{let e=Array.from({length:hxe},(e,t)=>t+1).sort(()=>Math.random()-.5).slice(0,gxe),t=await Promise.all(e.map(e=>fetch(`${pxe}?page=${e}&limit=${mxe}`)));if(t.some(e=>!e.ok))return Promise.reject();let n=await Promise.all(t.map(e=>e.json()));return _xe(n.flat().sort(()=>Math.random()-.5))},yxe={serviceType:`stock_assets`,serviceId:`picsum`,serviceLabel:`Lorem Picsum`,serviceURL:`https://picsum.photos/`,showServiceLink:!0,hotlinking:!0,authType:`none`,list:vxe}})),xxe,Q5,$5,e7,t7,Sxe,Cxe,wxe,Txe=s((()=>{X(),xxe=`cs,da,de,en,es,fr,id,it,hu,nl,no,pl,pt,ro,sk,fi,sv,tr,vi,th,bg,ru,el,ja,ko,zh`.split(`,`),Q5=`https://pixabay.com/api`,$5={image_type:`photo`,min_width:1280,safesearch:!0,per_page:150},e7=e=>e.map(({id:e,webformatURL:t,previewURL:n,largeImageURL:r,imageWidth:i,imageHeight:a,pageURL:o,tags:s,user:c})=>({id:String(e),description:s,previewURL:t.replace(`_640.`,i>a?`_180.`:`_340.`),downloadURL:r,fileName:n.split(`/`).pop().replace(`_150.`,`_1280.`),kind:`image`,credit:`<a href="${o}">Photo by ${c} on Pixabay`})),t7=()=>{let[e]=Xh.current.toLowerCase().split(`-`);return xxe.includes(e)?e:`en`},Sxe=async({apiKey:e})=>{let t=new URLSearchParams({...$5,key:e,lang:t7(),editors_choice:`true`}),n=await fetch(`${Q5}/?${t}`);if(!n.ok)return Promise.reject();let r=(await n.json()).hits;return e7(r)},Cxe=async(e,{apiKey:t})=>{let n=new URLSearchParams({...$5,key:t,lang:t7(),q:e}),r=await fetch(`${Q5}/?${n}`);if(!r.ok)return Promise.reject();let i=(await r.json()).hits;return e7(i)},wxe={serviceType:`stock_assets`,serviceId:`pixabay`,serviceLabel:`Pixabay`,serviceURL:`https://pixabay.com/`,showServiceLink:!0,hotlinking:!1,authType:`api_key`,developerURL:`https://pixabay.com/service/about/api/`,apiKeyURL:`https://pixabay.com/api/docs/#api_key`,apiKeyPattern:/^\d+-[a-f\d]{25}$/,list:Sxe,search:Cxe}})),n7,r7,i7,a7,Exe,o7,Dxe,Oxe,kxe,Axe=s((()=>{X(),rT(),n7=[`af,sq,am,ar,hy,as,az,bn,ba,eu,bs,bg,yue,ca,lzh,zh-Hans,zh-Hant,hr,cs,da,prs,dv,nl,en,et,fo,fj`,`fil,fi,fr,fr-ca,gl,ka,de,el,gu,ht,he,hi,mww,hu,is,id,ikt,iu,iu-Latn,ga,it,ja,kn,kk,km,ko,ku,kmr`,`ky,lo,lv,lt,mk,mg,ms,ml,mt,mi,mr,mn-Cyrl,mn-Mong,my,ne,nb,or,ps,fa,pl,pt,pt-pt,pa,otq,ro,ru,sm`,`sr-Cyrl,sr-Latn,sk,sl,so,es,sw,sv,ty,ta,tt,te,th,bo,ti,to,tr,tk,uk,hsb,ur,ug,uz,vi,cy,yua,zu`].join(`,`).split(`,`),r7=`https://api.unsplash.com`,i7=`utm_source=sveltia-cms&utm_medium=referral`,a7={per_page:30},Exe=()=>{let e=Xh.current.toLowerCase(),[t]=e.split(`-`);return n7.find(t=>t.toLowerCase()===e)??n7.find(e=>e.split(`-`)[0]===t)??`en`},o7=e=>e.map(({id:e,description:t,alt_description:n,urls:{regular:r,thumb:i},user:{username:a,name:o}})=>({id:String(e),description:[t,n].filter(Boolean).join(` — `),previewURL:i,downloadURL:r,fileName:`${o.split(/\s+/).join(`-`).toLowerCase()}-${e}-unsplash.jpg`,kind:`image`,credit:`Photo by <a href="https://unsplash.com/@${a}?${i7}">${o}</a> on <a href="https://unsplash.com/?${i7}">Unsplash</a>`})),Dxe=async({apiKey:e})=>{let t={Authorization:`Client-ID ${e}`},n=new URLSearchParams(a7),r=await fetch(`${r7}/photos?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=await r.json();return o7(i)},Oxe=async(e,{apiKey:t})=>{let n={Authorization:`Client-ID ${t}`},r=new URLSearchParams({...a7,query:e,lang:Exe()}),i=[];for(let e=1;e<=5;e+=1){r.set(`page`,String(e));let t=await fetch(`${r7}/search/photos?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{results:a,total_pages:o}=await t.json();if(i.push(...a),o===e)break;await nT(50)}return o7(i)},kxe={serviceType:`stock_assets`,serviceId:`unsplash`,serviceLabel:`Unsplash`,serviceURL:`https://unsplash.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://unsplash.com/developers`,apiKeyURL:`https://unsplash.com/oauth/applications`,apiKeyPattern:/^[a-zA-Z\d_-]{40,}$/,list:Dxe,search:Oxe}})),s7,c7,jxe=s((()=>{DF(),fxe(),bxe(),Txe(),Axe(),s7={pexels:dxe,picsum:yxe,pixabay:wxe,unsplash:kxe},c7=({fieldConfig:e}={})=>{let t=EF({libraryName:`stock_assets`,fieldConfig:e});if(t===!1)return{providers:[]};let n=Object.keys(s7),{providers:r}=t;return{providers:Array.isArray(r)?r:n}}}));function Mxe(e,t){let n=za();k(t,!0),G(e,Rxe);let r=()=>j(t.entryDraft,`$entryDraft`,s),i=()=>j(N2,`$showContentOverlay`,s),a=()=>j(z2,`$selectAssetsView`,s),o=()=>j(aA,`$cloudinaryActivated`,s),[s,c]=hn(),l=e=>{var n=l7(),r=I(n),i=e=>{var n=l7(),r=I(n),i=e=>{{let t=M(()=>z2);S8(e,{get currentView(){return z(t)},"aria-controls":`select-assets-grid`})}};W(r,e=>{a()&&e(i)});var o=L(r,2);{let e=M(()=>!z(ne)),n=M(()=>z(S).some(e=>e.file)),r=M(()=>Y(`assets_dialog.search_for_${t.kind??`file`}`));BR(o,{dir:`auto`,get flex(){return AE.isSmallScreen},get debounce(){return z(e)},get disabled(){return z(n)},get"aria-label"(){return z(r)},get value(){return z(_)},set value(e){P(_,e,!0)}})}H(e,n)};W(r,e=>{(z(ne)||z(le)&&z(v)!==`cloudinary`||z(ue)&&z(v)!==`picsum`)&&e(i)});var o=L(r,2),s=e=>{{let t=e=>{tI(e,{name:`cloud_upload`})},n=M(()=>Y(`upload`));bI(e,{variant:`primary`,get label(){return z(n)},onclick:()=>{z(x)?.open()},startIcon:t,$$slots:{startIcon:!0}})}};W(o,e=>{(z(ne)||z(le)&&z(v)!==`cloudinary`)&&e(s)}),H(e,n)},u=q(t,`open`,15,!1),d=q(t,`multiple`,3,!1),f=q(t,`accept`,19,()=>t.kind===`image`?lM.join(`,`):void 0),p=q(t,`canEnterURL`,3,!0),m=q(t,`onSelect`,3,void 0),h=q(t,`pendingFiles`,31,()=>Nr([])),g=N(``),_=N(``),v=N(`default-global`),y=N(Nr([])),b=N(Nr([])),x=N(void 0),S=N(Nr([])),C=N(void 0),w=(e,t)=>{let n=e[1].serviceLabel.toLowerCase(),r=t[1].serviceLabel.toLowerCase();return n.localeCompare(r)},T=M(()=>t.kind===`image`?Y(`assets_dialog.title.image`):Y(`assets_dialog.title.file`)),E=M(()=>O8(z(_))),te=M(()=>EF({fieldConfig:t.fieldConfig})!==!1&&Object.values(t.assetLibraryFolderMap).some(({enabled:e})=>e)),ne=M(()=>z(v).startsWith(`default-`)),re=M(()=>{if(!z(ne))return;let e=z(v).replace(`default-`,``),{folder:n}=t.assetLibraryFolderMap[e];return n}),ie=M(()=>R5({entry:r()?.originalEntry,folder:z(re)})),ae=M(()=>B5({kind:t.kind,folder:z(re),folderPath:z(ie),unsavedAssets:z(b)})),oe=M(()=>{let{providers:e=[]}=c7({fieldConfig:t.fieldConfig});return Object.entries(s7).filter(([t,{hotlinking:n}])=>e.includes(t)&&(n||z(te))).sort(w)}),se=M(()=>z(oe).some(([e,{authType:t}])=>e===z(v)&&(t===`none`||!!DO.apiKeys?.[z(v)]))),ce=M(()=>[...t.enabledCloudServiceEntries,...z(oe)].sort(w)),le=M(()=>t.enabledCloudServiceEntries.map(([e])=>e).includes(z(v))),ue=M(()=>z(oe).map(([e])=>e).includes(z(v))),de=M(()=>AE.isSmallScreen?QR:PL),D=async e=>{let t=await kp(e),n=z(re);if(await ixe({hash:t,folder:n,unsavedAssets:z(b)}))return;let r=await W5({file:e,folder:n,targetFolderPath:z(ie)});return z(y).push(r),r},fe=async e=>{let t=await P5({files:e,listedAssets:z(ae)});t!==void 0&&P(S,(await Promise.all(e.map(e=>D(e)))).filter(e=>!!e).map(e=>({asset:e,replace:t})),!0)},pe=()=>{P(g,``),P(_,``),P(y,[],!0),P(b,[],!0),P(S,[],!0)},me=()=>{if(!z(S).length)return;let e=At(z(S)).map(e=>{let{asset:{unsaved:t,file:n,folder:r}={},replace:i}=e;return t?{file:n,folder:r,replace:i}:e});m()?.(e)};ai(()=>{let e=z(te)?Object.entries(t.assetLibraryFolderMap).find(([,{enabled:e}])=>e)?.[0]:void 0;e?P(v,`default-${e}`):P(v,z(ce)[0]?.[0],!0)}),ri(()=>{r()?.files,At(z(y)),(async()=>{P(b,[...r()?.files?await G5({draft:r(),targetFolderPath:z(ie)}):[],...Object.values(z(y))],!0)})()}),ri(()=>{i()||u(!1)}),ri(()=>{z(C)&&h().length&&(z(C).uploadFiles(h()),h([]))});var he=l7(),ge=I(he);{let e=e=>{var t=V(),n=I(t),r=e=>{l(e)};W(n,e=>{AE.isSmallScreen||e(r)}),H(e,t)},r=e=>{var t=V(),n=I(t),r=e=>{let t=M(()=>{let{showServiceLink:e,serviceLabel:t,serviceURL:n}=s7[z(v)]??{};return{showServiceLink:e,serviceLabel:t,serviceURL:n}});var n=V(),r=I(n),i=e=>{var n=Nxe(),r=F(n,!0);O(n),R(e=>{K(n,`href`,z(t).serviceURL),U(r,e)},[()=>Y(`prefs.media.stock_photos.credit`,{values:{service:z(t).serviceLabel}})]),H(e,n)};W(r,e=>{z(t).showServiceLink&&e(i)}),H(e,n)};W(n,e=>{z(se)&&e(r)}),H(e,t)},i=M(()=>Y(`insert`)),a=M(()=>!z(S).length);qI(ge,{get title(){return z(T)},size:`x-large`,get okLabel(){return z(i)},get okDisabled(){return z(a)},focusInput:!1,onOk:me,onClose:()=>{pe()},get open(){return u()},set open(e){u(e)},headerExtra:e,footerExtra:r,children:(e,r)=>{var i=Lxe(),a=F(i),s=F(a);{let e=M(()=>Y(`assets_dialog.locations`));Mo(s,()=>z(de),(r,i)=>{i(r,{class:`tabs`,get"aria-label"(){return z(e)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:e=>{P(v,e.detail.name,!0),P(S,[],!0)},children:(e,n)=>{var r=Pxe(),i=I(r),a=e=>{{let n=M(()=>Y(`asset_location.repository`));zL(e,{get label(){return z(n)},children:(e,n)=>{var r=V();vo(I(r),17,()=>Object.entries(t.assetLibraryFolderMap),([e,{folder:t,enabled:n}])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].folder,a=()=>z(n)[1].enabled;var o=V(),s=I(o),c=e=>{let t=M(()=>`default-${r()}`);{let n=M(()=>i()?.label??Y(`assets_dialog.folder.${r()}`)),a=M(()=>z(v)===z(t));UL(e,{get name(){return z(t)},get label(){return z(n)},get selected(){return z(a)}})}};W(s,e=>{a()&&e(c)}),H(e,o)}),H(e,r)},$$slots:{default:!0}})}};W(i,e=>{z(te)&&e(a)});var s=L(i,2),c=e=>{{let n=M(()=>Y(`asset_location.external`));zL(e,{get label(){return z(n)},children:(e,n)=>{var r=l7(),i=I(r);vo(i,17,()=>t.enabledCloudServiceEntries,([,{serviceId:e,serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[1].serviceId,i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(v)===r());UL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)},onclick:()=>{r()===`cloudinary`&&o()&&mn(sA,!0)}})}});var a=L(i,2),s=e=>{{let t=M(()=>Y(`assets_dialog.enter_url`)),n=M(()=>z(v)===`enter-url`);UL(e,{name:`enter-url`,get label(){return z(t)},get selected(){return z(n)}})}};W(a,e=>{p()&&e(s)}),H(e,r)},$$slots:{default:!0}})}},l=M(()=>p()||!!Object.keys(t.enabledCloudServiceEntries).length);W(s,e=>{z(l)&&e(c)});var u=L(s,2),d=e=>{{let t=M(()=>Y(`asset_location.stock_photos`));zL(e,{get label(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),17,()=>z(oe),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(v)===r());UL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}}),H(e,n)},$$slots:{default:!0}})}};W(u,e=>{z(oe).length&&e(d)}),H(e,r)},$$slots:{default:!0}})})}var c=L(s,2),m=e=>{var t=Fxe(),n=F(t);l(n),O(t),H(e,t)};W(c,e=>{AE.isSmallScreen&&e(m)}),O(a);var h=L(a,2),_=F(h),y=e=>{exe(e,{get accept(){return f()},get multiple(){return d()},get assets(){return z(ae)},get searchTerms(){return z(E)},get basePath(){return z(re).internalPath},onDrop:({files:e})=>{fe(e)},get selectedResources(){return z(S)},set selectedResources(e){P(S,e,!0)}})};W(_,e=>{z(ne)&&z(re)&&e(y)});var b=L(_,2),x=e=>{$0(e,{children:(e,n)=>{var r=Ixe(),i=I(r),a=F(i,!0);O(i),oL(L(i,2),{dir:`ltr`,flex:!0,oninput:()=>{let e=z(g).trim();P(S,e?[{url:e}]:[],!0)},get value(){return z(g)},set value(e){P(g,e,!0)}}),R(e=>U(a,e),[()=>t.kind===`image`?Y(`assets_dialog.enter_image_url`):Y(`assets_dialog.enter_file_url`)]),H(e,r)},$$slots:{default:!0}})};W(b,e=>{p()&&z(v)===`enter-url`&&e(x)}),vo(L(b,2),17,()=>z(ce),([e,t])=>e,(e,n)=>{var r=M(()=>ee(z(n),2));let i=()=>z(r)[0],a=()=>z(r)[1];var o=V(),s=I(o),c=e=>{{let n=M(()=>z(v)!==`cloudinary`);ybe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return d()},get hidden(){return z(n)},onSelect:e=>{P(S,e,!0),me(),u(!1)}})}},l=e=>{qs(Bbe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return d()},get searchTerms(){return z(E)},get serviceProps(){return a()},gridId:`select-assets-grid`,get selectedResources(){return z(S)},set selectedResources(e){P(S,e,!0)}}),e=>P(C,e,!0),()=>z(C))};W(s,e=>{i()===`cloudinary`?e(c):z(v)===i()&&e(l,1)}),H(e,o)}),O(h),O(i),R(()=>K(h,`id`,`${n}-content-pane`)),H(e,i)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}qs(gL(L(ge,2),{get accept(){return f()},get multiple(){return d()},onSelect:({files:e})=>{z(le)?z(C)?.uploadFiles(e):fe(e)}}),e=>P(x,e,!0),()=>z(x)),H(e,he),A(),c()}var l7,Nxe,Pxe,Fxe,Ixe,Lxe,Rxe,zxe=s((()=>{Z(),J(),X(),$(),Ap(),xbe(),qbe(),txe(),C8(),B2(),F5(),V5(),q5(),DF(),_A(),jxe(),A8(),jE(),OO(),dM(),l7=B(`<!> <!>`,1),Nxe=B(`<a class="service-link svelte-5b1zbe"> </a>`),Pxe=B(`<!> <!> <!>`,1),Fxe=B(`<div role="none" class="filter-tools svelte-5b1zbe"><!></div>`),Ixe=B(`<div role="none"> </div> <!>`,1),Lxe=B(`<div role="none" class="wrapper svelte-5b1zbe"><div role="none" class="nav svelte-5b1zbe"><!> <!></div> <div role="none" class="content-pane svelte-5b1zbe"><!> <!> <!></div></div>`),Rxe={hash:`svelte-5b1zbe`,code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;max-height:800px;--tile-padding: 4px;

    @media (width < 768px) {flex-direction:column;overflow:hidden;height:72dvh;
    }.nav:where(.svelte-5b1zbe) {flex:none;display:flex;gap:4px;

      @media (width < 768px) {flex-direction:column;
      }}.listbox {flex:none;background-color:transparent;}.content-pane:where(.svelte-5b1zbe) {overflow:auto;flex:auto;}}.service-link.svelte-5b1zbe {font-size:var(--sui-font-size-small);}.filter-tools.svelte-5b1zbe {display:flex;gap:8px;}`}}));function Bxe(e,t){k(t,!0);{let t=e=>{var t=Vxe(),n=I(t);PI(n,{flex:!0});var r=L(n,2);bI(r,{variant:`primary`,onclick:()=>N5.resolve(!0),children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`replace`)]),H(e,n)},$$slots:{default:!0}});var i=L(r,2);bI(i,{variant:`primary`,onclick:()=>N5.resolve(!1),children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`keep_both`)]),H(e,n)},$$slots:{default:!0}}),bI(L(i,2),{variant:`secondary`,onclick:()=>N5.resolve(void 0),children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`cancel`)]),H(e,n)},$$slots:{default:!0}}),H(e,t)},n=M(()=>Y(`file_name_conflict_resolution`));iL(e,{get title(){return z(n)},onCancel:()=>N5.resolve(void 0),get open(){return N5.showDialog},set open(e){N5.showDialog=e},footer:t,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`file_name_conflict_confirmation_with_name`,{values:{count:N5.count,name:N5.name}})]),H(e,n)},$$slots:{footer:!0,default:!0}})}A()}var Vxe,Hxe=s((()=>{Z(),J(),X(),$(),F5(),Vxe=B(`<!> <!> <!> <!>`,1)}));function Uxe(e,t){k(t,!0),G(e,Jxe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=q(t,`readonly`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`required`,3,!1),c=q(t,`collectionName`,3,``),l=q(t,`fileName`,3,void 0),u=q(t,`typedKeyPath`,3,void 0),d=q(t,`componentName`,3,void 0),f=q(t,`entry`,3,void 0),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=M(()=>t.fieldConfig.widget),v=M(()=>z(_)===`image`),y=M(()=>({value:t.value,entry:f(),collectionName:c(),fileName:l(),componentName:d(),typedKeyPath:u(),fieldConfig:t.fieldConfig})),b=M(()=>{if(!t.value)return``;if(z(m)){let{publicPath:e,entryRelative:r,hasTemplateTags:i}=n()?.files[t.value]?.folder??{};return RE([r||i?``:e||``,decodeURI(z(m).name.normalize())])}if(!t.value.startsWith(`blob:`)){let e=decodeURI(t.value);if(Pp(e)){let t=new URL(e);if(t.search)return t.search=``,`${t}…`}return e}return``}),x=async()=>{t.value?.startsWith(`blob:`)&&n()&&P(m,n().files[t.value]?.file,!0),t.value?(z(v)&&/^https?:/.test(t.value)?(P(p,void 0),P(h,`image`),P(g,t.value,!0)):t.value.startsWith(`blob:`)||(P(p,WF({...z(y)}),!0),P(h,void 0),P(g,void 0)),!z(p)&&!z(g)&&(P(h,await DT(t.value),!0),P(g,z(h)?await BM({...z(y),thumbnail:!0}):void 0,!0))):(P(p,void 0),P(m,void 0),P(h,void 0),P(g,void 0))};ri(()=>{t.value,Gi(()=>{x()})});var S=qxe(),C=F(S),w=e=>{var n=Wxe(),r=F(n);{let e=e=>{tI(e,{name:`arrow_upward`})},n=M(()=>!t.onMoveUp),i=M(()=>Y(`move_up`));bI(r,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(i)},onclick:()=>{t.onMoveUp?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{tI(e,{name:`arrow_downward`})},n=M(()=>!t.onMoveDown),r=M(()=>Y(`move_down`));bI(i,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{t.onMoveDown?.()},startIcon:e,$$slots:{startIcon:!0}})}O(n),H(e,n)};W(C,e=>{(t.onMoveUp||t.onMoveDown)&&!a()&&e(w)});var T=L(C,2),E=e=>{j3(e,{get kind(){return z(h)},get src(){return z(g)},variant:`tile`,checkerboard:!0})},ee=e=>{j3(e,{get kind(){return z(p).kind},get asset(){return z(p)},variant:`tile`,checkerboard:!0})},te=e=>{var t=Gxe();tI(F(t),{name:`draft`}),O(t),H(e,t)};W(T,e=>{z(h)&&z(g)?e(E):z(p)?e(ee,1):e(te,-1)});var ne=L(T,2),re=F(ne),ie=e=>{var n=Kxe(),r=F(n,!0);O(n),R(()=>{K(n,`id`,`${t.fieldId??``}-value`),K(n,`aria-readonly`,a()),K(n,`aria-invalid`,o()),K(n,`aria-required`,s()),K(n,`aria-labelledby`,`${t.fieldId??``}-label`),K(n,`aria-errormessage`,`${t.fieldId??``}-error`),U(r,z(b))}),H(e,n)};W(re,e=>{typeof t.value==`string`&&e(ie)});var ae=L(re,2),oe=F(ae),se=e=>{{let n=M(()=>Y(`replace`)),r=M(()=>Y(`replace_${z(_)}`));bI(e,{get disabled(){return a()},variant:`tertiary`,size:`small`,get label(){return z(n)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{t.onReplace()}})}};W(oe,e=>{t.onReplace&&e(se)});var ce=L(oe,2),le=e=>{{let n=M(()=>Y(`remove`)),r=M(()=>Y(`remove_${z(_)}`));bI(e,{get disabled(){return a()},variant:`tertiary`,size:`small`,get label(){return z(n)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{t.onRemove()}})}};W(ce,e=>{t.onRemove&&e(le)}),O(ae),O(ne),O(S),H(e,S),A(),i()}var Wxe,Gxe,Kxe,qxe,Jxe,Yxe=s((()=>{Z(),J(),X(),$(),Ip(),dc(),z3(),JF(),VM(),AT(),M6(),HE(),Wxe=B(`<div role="toolbar" class="reorder-controls svelte-1yfgkx5"><!> <!></div>`),Gxe=B(`<span role="none" class="preview no-thumbnail"><!></span>`),Kxe=B(`<div role="textbox" tabindex="0" class="filename svelte-1yfgkx5"> </div>`),qxe=B(`<div role="none" class="filled svelte-1yfgkx5"><!> <!> <div role="none" class="svelte-1yfgkx5"><!> <div role="none"><!> <!></div></div></div>`),Jxe={hash:`svelte-1yfgkx5`,code:`.filled.svelte-1yfgkx5 {display:flex !important;align-items:center;gap:12px;margin:var(--sui-focus-ring-width);.preview {flex:none;width:120px !important;height:120px !important;border-color:var(--sui-control-border-color) !important;border-radius:var(--sui-control-medium-border-radius);padding:8px !important;&.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);.icon {font-size:64px;}}}.sui.button.tertiary.small {margin:var(--sui-focus-ring-width);}& > div:where(.svelte-1yfgkx5) {flex:auto;overflow:hidden;.filename:where(.svelte-1yfgkx5) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;&:empty {margin:0;padding:0;}}}}.reorder-controls.svelte-1yfgkx5 {flex:none !important;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:4px;border:1px solid var(--sui-control-border-color);border-radius:var(--sui-control-medium-border-radius);height:-moz-available;height:-webkit-fill-available;height:stretch;background-color:var(--sui-secondary-border-color);button {padding:0;height:16px;}}`}}));function Xxe(e,t){k(t,!0),G(e,tSe);let n=e=>{var n=Zxe(),o=F(n);{let e=M(()=>Y(`browse`));bI(o,{get label(){return z(e)},variant:`tertiary`,size:`small`,get disabled(){return z(s)},onclick:e=>{e.stopPropagation(),i(!1),r(!0)}})}var l=L(o,2),u=e=>{{let n=M(()=>Y(t.isImageField?`paste`:`paste_image`));bI(e,{get label(){return z(n)},variant:`tertiary`,size:`small`,get disabled(){return z(s)},onclick:e=>{e.stopPropagation(),c()}})}};W(l,e=>{a()&&e(u)}),O(n),H(e,n)},r=q(t,`showSelectAssetsDialog`,15,!1),i=q(t,`replaceMode`,15,!1),a=q(t,`onFilePaste`,3,void 0),o=Nr({show:!1,message:``}),s=M(()=>t.readonly||t.processing),c=async()=>{if(!(z(s)||!a()))try{let e=await navigator.clipboard.read(),t,n=e.find(e=>e.types.some(e=>{let n=e.startsWith(`image/`);return n&&(t=e),n}));if(n&&t){let e=await n.getType(t),r=t.split(`/`)[1].replace(`+xml`,``),i=new File([e],`pasted-image-${Date.now()}.${r}`,{type:t});a()(i);return}Object.assign(o,{message:Y(`no_image_in_clipboard`),show:!0})}catch{Object.assign(o,{message:Y(`clipboard_access_denied`),show:!0})}};var l=eSe(),u=I(l);let d;var f=F(u);tI(f,{name:`cloud_upload`});var p=L(f,2),m=F(p),h=e=>{var n=Qxe(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`processing_files`,{values:{count:t.multiple?2:1}})]),H(e,n)},g=e=>{var r=$xe(),i=I(r),a=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`click_to_browse`)]),H(e,t)},o=e=>{var n=Ra();R(e=>U(n,e),[()=>Y(`drop_image_files_or`,{values:{count:t.multiple?2:1}})]),H(e,n)},s=e=>{var n=Ra();R(e=>U(n,e),[()=>Y(`drop_files_or`,{values:{count:t.multiple?2:1}})]),H(e,n)};W(i,e=>{t.allowDrop?t.isImageField?e(o,1):e(s,-1):e(a)});var c=L(i,2);n(c),H(e,r)},_=e=>{n(e)};W(m,e=>{t.processing?e(h):AE.hasMouse?e(g,1):e(_,-1)}),O(p),O(u),jz(L(u,2),{get show(){return o.show},set show(e){o.show=e},children:(e,t)=>{rI(e,{status:`error`,children:(e,t)=>{gt();var n=Ra();R(()=>U(n,o.message)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(()=>{d=ds(u,1,`empty svelte-1jvz1op`,null,d,{invalid:t.invalid,processing:t.processing}),K(u,`aria-disabled`,z(s)||void 0),K(u,`tabindex`,z(s)?-1:0)}),Ta(`click`,u,()=>{AE.hasMouse&&!z(s)&&(i(!1),r(!0))}),Ta(`keydown`,u,e=>{!z(s)&&oI(e,`Accel+V`)&&(e.preventDefault(),c())}),H(e,l),A()}var Zxe,Qxe,$xe,eSe,tSe,nSe=s((()=>{Z(),J(),X(),$(),cI(),jE(),Zxe=B(`<div role="none" class="buttons"><!> <!></div>`),Qxe=B(`<div role="status"> </div>`),$xe=B(`<!> <!>`,1),eSe=B(`<div role="button"><!> <div role="none" class="label svelte-1jvz1op"><!></div></div> <!>`,1),tSe={hash:`svelte-1jvz1op`,code:`.empty.svelte-1jvz1op {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:120px;margin:var(--sui-focus-ring-width);border-width:1px;border-style:solid;border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));border-radius:var(--sui-button-medium-border-radius);color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(
      --sui-button-tertiary-background-color,
      var(--sui-button-background-color)
    );font-family:var(--sui-control-font-family);font-size:var(--sui-font-size-small);cursor:pointer;transition:all 200ms;&:focus-visible {z-index:1;outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);outline-offset:var(--sui-focus-ring-offset);}&:not([aria-disabled='true']):is(:where(.svelte-1jvz1op):hover, :where(.svelte-1jvz1op):focus-visible) {background-color:var(
        --sui-button-tertiary-background-color-focus,
        var(--sui-hover-background-color)
      );}&:not([aria-disabled='true']):active {background-color:var(
        --sui-button-tertiary-background-color-active,
        var(--sui-active-background-color)
      );}.icon {color:var(--sui-secondary-foreground-color);font-size:48px;}&[aria-disabled='true'] {pointer-events:none !important;* {opacity:0.5;}}

    @media (pointer: coarse) {cursor:default;&:active,
      &:focus {
        /* Reset the style because the element is non-interactive on touch devices */background-color:var(--sui-button-background-color) !important;}
    }&.invalid {border-color:var(--sui-error-border-color);}}.label.svelte-1jvz1op {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 4px;white-space:nowrap;.button {margin-block:0;}}`},Ea([`click`,`keydown`])}));function rSe(e,t){k(t,!0),G(e,sSe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=e=>{Xxe(e,{get allowDrop(){return z(we)},get invalid(){return h()},get readonly(){return m()},get processing(){return z(C)},get isImageField(){return z(ue)},get multiple(){return z(_e)},onFilePaste:e=>{Ee([{file:e,folder:z(me)}])},get showSelectAssetsDialog(){return z(g)},set showSelectAssetsDialog(e){P(g,e,!0)},get replaceMode(){return z(_)},set replaceMode(e){P(_,e,!0)}})},o=e=>{var n=V(),r=I(n),i=e=>{var n=V(),r=I(n),i=e=>{var n=V(),r=I(n),i=e=>{var n=iSe(),r=I(n);vo(r,23,f,(e,t)=>`${e}|${t}`,(e,n,r)=>{{let i=M(()=>z(r)>0?()=>ke(z(r)-1):void 0),a=M(()=>z(r)<f().length-1?()=>ke(z(r)):void 0);Uxe(e,tc(()=>z(be),{get value(){return z(n)},get fieldId(){return`${t.fieldId??``}-${z(r)??``}`},onReplace:()=>{P(_,!0),P(v,z(r),!0),P(g,!0)},onRemove:()=>Oe(z(r)),get onMoveUp(){return z(i)},get onMoveDown(){return z(a)}}))}}),O(r);var i=L(r,2),o=e=>{a(e)};W(i,e=>{f().length<z(re)&&e(o)}),H(e,n)},o=M(()=>Array.isArray(f()));W(r,e=>{z(o)&&e(i)}),H(e,n)},o=e=>{Uxe(e,tc(()=>z(be),{get value(){return f()},get fieldId(){return t.fieldId},onReplace:()=>{P(_,!0),P(g,!0)},onRemove:Te}))};W(r,e=>{z(_e)?e(i):typeof f()==`string`&&f()&&e(o,1)}),H(e,n)},o=e=>{a(e)};W(r,e=>{f()?.length&&!z(C)?e(i):e(o,-1)}),H(e,n)},{valueStoreKey:s=`currentValues`,fieldContext:c=void 0,parentComponentNames:l=[]}=Lt(`field-editor`)??{},u=c===`rich-text-editor-component`,d=l.at(-1),f=q(t,`currentValue`,15),p=q(t,`required`,3,!0),m=q(t,`readonly`,3,!1),h=q(t,`invalid`,3,!1),g=N(!1),_=N(!1),v=N(-1),y=N(!1),b=N(!1),x=N(``),S=N(void 0),C=N(!1),w=N(Nr([])),T=N(Nr([])),te=N(Nr([])),ne=M(()=>t.fieldConfig.widget),re=M(()=>E(t.fieldConfig.max,1/0)),ie=M(()=>t.fieldConfig.accept),ae=M(()=>E(t.fieldConfig.choose_url,!0)),oe=M(()=>n()?.originalEntry),se=M(()=>n()?.collectionName??``),ce=M(()=>n()?.fileName),le=M(()=>n()?.isIndexFile??!1),ue=M(()=>z(ne)===`image`),de=M(()=>z(ue)?`image`:void 0),D=M(()=>OF({fieldConfig:t.fieldConfig})),fe=M(()=>z(D).config),pe=M(()=>I5({collectionName:z(se),fileName:z(ce),componentName:d,typedKeyPath:t.typedKeyPath,isIndexFile:z(le)})),me=M(()=>L5(z(pe))),he=M(()=>R5({entry:n()?.originalEntry,folder:z(me)})),ge=M(()=>B5({kind:z(de),folder:z(me),folderPath:z(he),unsavedAssets:z(te)})),_e=M(()=>mP(t.fieldConfig)),ve=M(()=>z(fe).max_file_size),ye=M(()=>!p()&&(!c||![`rich-text-editor-component`,`single-subfield-list-field`].includes(c))),be=M(()=>({fieldConfig:t.fieldConfig,readonly:m(),invalid:h(),required:p(),showRemoveButton:z(ye),collectionName:z(se),fileName:z(ce),componentName:d,typedKeyPath:t.typedKeyPath,entry:z(oe)})),xe=M(()=>Object.entries(Mj).filter(([,{isEnabled:e}])=>e?.(t.fieldConfig)??!0)),Se=M(()=>z(D).enabled&&!!z(me)),Ce=M(()=>+!!z(Se)+z(xe).length),we=M(()=>z(Ce)===1),Te=()=>{z(S)?.reset(),z(_e)||(f(``),er())},Ee=async e=>{if(!n())return;let r=z(_e)?void 0:f();Te(),P(C,!0),P(w,[],!0);let i=await Promise.all(e.map(e=>K5({draft:n(),resource:e,libraryConfig:z(fe)}))),a=[],o=!1,c=z(_e)?Object.keys(n()[s][t.locale]).filter(e=>e.startsWith(`${t.keyPath}.`)).map(e=>Number(e.replace(`${t.keyPath}.`,``))).pop()??-1:-1;i.forEach(({value:e,credit:r,oversizedFileName:i},l)=>{if(e)if(o=!0,z(_e)){let r=z(_)?z(v):c+1+l;_n(D6,Gi(n)[s][t.locale][`${t.keyPath}.${r}`]=e,Gi(n))}else f(u?e.replaceAll(` `,`%20`):e);r&&a.push(r),i&&z(w).push(i)}),!o&&!z(_e)&&r!==void 0&&f(r),a.length?(P(x,a.join(`
`),!0),P(b,!0)):P(x,``),z(w).length&&P(y,!0),P(C,!1)},De=async({files:e})=>{if(e.length)if(z(Se)){let t=await P5({files:e,listedAssets:z(ge)});if(t===void 0)return;Ee(e.map(e=>({file:e,folder:z(me),replace:t})))}else P(T,e,!0),P(g,!0)},Oe=e=>{if(!n())return;let r=At(n()[s][t.locale]),i=[];for(let a=0;;a+=1){let o=`${t.keyPath}.${a}`,c=`${t.keyPath}.${a+1}`;if(a<e)i.push(r[o]);else if(c in r)i.push(r[c]),_n(D6,Gi(n)[s][t.locale][o]=r[c],Gi(n));else{_n(D6,Gi(n)[s][t.locale][o]=null,Gi(n)),delete n()[s][t.locale][o];break}}f(Object.values(i))},ke=e=>{n()&&(r=>{var i=ee(r,2);_n(D6,Gi(n)[s][t.locale][`${t.keyPath}.${e}`]=i[0],Gi(n)),_n(D6,Gi(n)[s][t.locale][`${t.keyPath}.${e+1}`]=i[1],Gi(n))})([n()[s][t.locale][`${t.keyPath}.${e+1}`],n()[s][t.locale][`${t.keyPath}.${e}`]])};ri(()=>{(async()=>{n()?.files?P(te,await G5({draft:n(),targetFolderPath:z(he)}),!0):P(te,[],!0)})()});var Ae=oSe(),je=I(Ae),Me=e=>{{let t=M(()=>z(ie)??(z(ue)?lM.join(`,`):void 0));qs(W6(e,{get multiple(){return z(_e)},get disabled(){return m()},get accept(){return z(t)},onDrop:De,children:(e,t)=>{o(e)},$$slots:{default:!0}}),e=>P(S,e,!0),()=>z(S))}},Ne=e=>{o(e)};W(je,e=>{z(we)?e(Me):e(Ne,-1)});var Pe=L(je,2);{let e=M(()=>!z(_)&&z(_e));Mxe(Pe,{get kind(){return z(de)},get multiple(){return z(e)},get accept(){return z(ie)},get canEnterURL(){return z(ae)},get entryDraft(){return D6},get fieldConfig(){return t.fieldConfig},get assetLibraryFolderMap(){return z(pe)},get enabledCloudServiceEntries(){return z(xe)},onSelect:Ee,get open(){return z(g)},set open(e){P(g,e,!0)},get pendingFiles(){return z(T)},set pendingFiles(e){P(T,e,!0)}})}var Fe=L(Pe,2);Bxe(Fe,{});var Ie=L(Fe,2);Lbe(Ie,{get oversizedFileNames(){return z(w)},get maxSize(){return z(ve)},get open(){return z(y)},set open(e){P(y,e,!0)}});var Le=L(Ie,2);{let e=M(()=>Y(`assets_dialog.photo_credit.title`)),t=M(()=>Y(`copy`));iL(Le,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{navigator.clipboard.writeText(z(x))},get open(){return z(b)},set open(e){P(b,e,!0)},children:(e,t)=>{var n=aSe(),r=I(n),i=F(r,!0);O(r);var a=L(r,2);T0(F(a),{dir:`auto`,flex:!0,readonly:!0,get value(){return z(x)},onclick:e=>{e.target.focus(),e.target.select()}}),O(a),R(e=>U(i,e),[()=>Y(`assets_dialog.photo_credit.description`)]),H(e,n)},$$slots:{default:!0}})}H(e,Ae),A(),i()}var iSe,aSe,oSe,sSe,cSe=s((()=>{Z(),J(),X(),$(),dc(),zxe(),Hxe(),G6(),zbe(),Yxe(),nSe(),M6(),F5(),V5(),q5(),Pj(),kF(),hP(),dM(),iSe=B(`<div role="none" class="item-list svelte-17jic1t"></div> <!>`,1),aSe=B(`<div role="none"> </div> <div role="none"><!></div>`,1),oSe=B(`<!> <!> <!> <!> <!>`,1),sSe={hash:`svelte-17jic1t`,code:`.item-list.svelte-17jic1t {display:flex;flex-direction:column;gap:4px;}`}}));function lSe(e,t){k(t,!0),G(e,fSe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=q(t,`typedKeyPath`,3,void 0),o=N(void 0),s=N(void 0),c=M(()=>t.fieldConfig.widget),l=M(()=>z(c)===`image`),u=M(()=>n()?.originalEntry),d=M(()=>n()?.collectionName??``),f=M(()=>n()?.fileName);ri(()=>{t.value,Gi(async()=>{P(o,t.value?z(l)?`image`:await DT(t.value):void 0,!0),P(s,z(o)?await BM({value:t.value,entry:z(u),collectionName:z(d),fileName:z(f),fieldConfig:t.fieldConfig,typedKeyPath:a()}):void 0,!0)})});var p=V(),m=I(p),h=e=>{var t=uSe(),n=F(t);{let e=M(()=>[`audio`,`video`].includes(z(o)));j3(n,{get kind(){return z(o)},get src(){return z(s)},get controls(){return z(e)}})}O(t),H(e,t)},g=e=>{var n=dSe(),r=F(n,!0);O(n),R(()=>U(r,t.value)),H(e,n)},_=M(()=>t.value.trim()&&!t.value.startsWith(`blob:`));W(m,e=>{z(o)&&z(s)?e(h):z(_)&&e(g,1)}),H(e,p),A(),i()}var uSe,dSe,fSe,pSe=s((()=>{Z(),J(),dc(),z3(),VM(),AT(),M6(),uSe=B(`<p class="svelte-28vcoi"><!></p>`),dSe=B(`<p class="svelte-28vcoi"> </p>`),fSe={hash:`svelte-28vcoi`,code:`
  /* Remove the padding to make the image full-width on small screens */
  @media (width < 768px) {[role='document'] section > p.svelte-28vcoi:has(img) {margin-inline:calc(var(--entry-preview-padding-inline) * -1);}
  }`}}));function mSe(e,t){k(t,!0);var n=V(),r=I(n),i=e=>{var n=V(),r=I(n),i=e=>{var n=V();vo(I(n),19,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,n)=>{lSe(e,{get value(){return z(n)},get fieldConfig(){return t.fieldConfig},get typedKeyPath(){return t.typedKeyPath}})}),H(e,n)},a=M(()=>Array.isArray(t.currentValue));W(r,e=>{z(a)&&e(i)}),H(e,n)},a=M(()=>mP(t.fieldConfig)),o=e=>{lSe(e,{get value(){return t.currentValue},get fieldConfig(){return t.fieldConfig},get typedKeyPath(){return t.typedKeyPath}})};W(r,e=>{z(a)?e(i):typeof t.currentValue==`string`&&t.currentValue&&e(o,1)}),H(e,n),A()}var hSe=s((()=>{Z(),J(),pSe(),hP()})),u7,gSe,_Se,d7=s((()=>{Zp(),M6(),u7=({entryDraft:e,valueStoreKey:t=`currentValues`,keyPath:n,locale:r})=>Object.entries(dn(e)[t][r]??{}).filter(([e])=>e.startsWith(`${n}.`)).map(([e,t])=>[e.replace(`${n}.`,``),t]),gSe=({pairs:e,edited:t})=>e.map(([e],n,r)=>{if(!e.trim()&&t[n])return`empty`;if(e.trim()&&r.findIndex(t=>t[0]===e)!==n)return`duplicate`}),_Se=({entryDraft:e,keyPath:t,locale:n,fieldConfig:r,pairs:i})=>{let{i18n:a}=r;O6.set(!1),e.update(e=>(e&&Object.entries(e.currentValues).forEach(([e,r])=>{(e===n||a===`duplicate`)&&(Object.entries(r).forEach(([e])=>{e.startsWith(`${t}.`)&&delete r[e]}),i.forEach(([e,n])=>{r[`${t}.${e}`]=n}))}),e)),O6.set(!0)}}));function vSe(e,t){k(t,!0),G(e,ESe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Lt(`field-editor`)??{},o=q(t,`readonly`,3,!1),s=M(()=>E(t.fieldConfig.i18n,!1)),c=M(()=>t.fieldConfig.key_label),l=M(()=>t.fieldConfig.value_label),u=M(()=>E(t.fieldConfig.max,1/0)),d=M(()=>z(c)||Y(`key_value.key`)),f=M(()=>z(l)||Y(`key_value.value`)),p=N(Nr([])),m=N(Nr([])),h=0,g=Nr([]),_=N(Nr([])),v=N(Nr([])),y=()=>{if(!n())return;let e=u7({entryDraft:D6,valueStoreKey:a,keyPath:t.keyPath,locale:t.locale});(0,ySe.default)(z(p),e)||(P(p,[...e],!0),P(m,e.map((e,t)=>t<z(m).length?z(m)[t]:(h+=1,h-1)),!0),P(_,e.map(()=>!1),!0)),!z(p).length&&n()[a][t.locale][t.keyPath]!==null&&_n(D6,Gi(n)[a][t.locale][t.keyPath]=null,Gi(n))},b=()=>{n()&&(Object.entries(n()[a]).forEach(([e,n])=>{(e===t.locale||z(s)===`duplicate`)&&delete n[t.keyPath]}),z(p).push([``,``]),z(m).push(h),h+=1,z(_).push(!1),window.requestAnimationFrame(()=>{g[z(p).length-1].querySelector(`input`).focus()}))},x=e=>{z(p).splice(e,1),z(m).splice(e,1),z(_).splice(e,1)},S=()=>{P(v,gSe({pairs:z(p),edited:z(_)}),!0),!(!n()||z(v).some(Boolean)||z(p).some(([e])=>!e.trim()))&&_Se({entryDraft:D6,fieldConfig:t.fieldConfig,keyPath:t.keyPath,locale:t.locale,pairs:z(p)})};ri(()=>{At(n()?.[a][t.locale]),Gi(()=>{y()})}),ri(()=>{At(z(p)),Gi(()=>{S()})});var C=TSe(),w=I(C),T=e=>{var n=CSe(),r=F(n),i=F(r),a=F(i),s=F(a,!0);O(a);var c=L(a),l=F(c,!0);O(c);var h=L(c),y=e=>{var t=bSe();R(e=>K(t,`aria-label`,e),[()=>Y(`key_value.action`)]),H(e,t)};W(h,e=>{o()||e(y)}),O(i),O(r);var S=L(r);vo(S,23,()=>z(p),(e,t)=>z(m)[t],(e,n,r)=>{var i=SSe(),a=F(i),s=F(a);{let e=M(()=>!!z(v)[z(r)]),i=M(()=>z(v)[z(r)]?`${t.fieldId}-kv-error`:void 0);oL(s,{dir:`ltr`,get readonly(){return o()},flex:!0,get invalid(){return z(e)},get"aria-label"(){return z(d)},get"aria-errormessage"(){return z(i)},oninput:()=>{z(_)[z(r)]=!0},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&g[z(r)].querySelector(`td.value input`).focus()},get value(){return z(n)[0]},set value(e){z(n)[0]=e}})}O(a);var c=L(a),l=F(c);{let e=M(()=>KC(t.locale));oL(l,{get dir(){return z(e)},get readonly(){return o()},flex:!0,get"aria-label"(){return z(f)},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&(z(r)<z(p).length-1?g[z(r)+1].querySelector(`input`).focus():z(p).length<z(u)&&b())},get value(){return z(n)[1]},set value(e){z(n)[1]=e}})}O(c);var m=L(c),h=e=>{var t=xSe(),n=F(t);{let e=e=>{tI(e,{name:`close`})},t=M(()=>Y(`remove`));bI(n,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{x(z(r))},startIcon:e,$$slots:{startIcon:!0}})}O(t),H(e,t)};W(m,e=>{o()||e(h)}),O(i),qs(i,(e,t)=>g[t]=e,e=>g?.[e],()=>[z(r)]),H(e,i)}),O(S),O(n),R(()=>{U(s,z(d)),U(l,z(f))}),H(e,n)};W(w,e=>{z(p).length&&e(T)});var ee=L(w,2),te=e=>{D5(e,{get id(){return`${t.fieldId??``}-kv-error`},children:(e,t)=>{var n=wSe(),r=I(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`key_value.empty_key`)]),H(e,t)},a=M(()=>z(v).includes(`empty`));W(r,e=>{z(a)&&e(i)});var o=L(r,2),s=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`key_value.duplicate_key`)]),H(e,t)},c=M(()=>z(v).includes(`duplicate`));W(o,e=>{z(c)&&e(s)}),H(e,n)},$$slots:{default:!0}})},ne=M(()=>z(v).some(Boolean));W(ee,e=>{z(ne)&&e(te)});var re=L(ee,2),ie=F(re);{let e=M(()=>Y(`add`)),t=M(()=>o()||z(p).length>=z(u));bI(ie,{get label(){return z(e)},variant:`tertiary`,get disabled(){return z(t)},onclick:()=>{b()}})}O(re),H(e,C),A(),i()}var ySe,bSe,xSe,SSe,CSe,wSe,TSe,ESe,DSe=s((()=>{Z(),J(),X(),$(),ySe=u(CO()),dc(),O5(),M6(),d7(),QC(),bSe=B(`<th scope="col" class="action svelte-u0prcz"></th>`),xSe=B(`<td class="action svelte-u0prcz"><!></td>`),SSe=B(`<tr><td class="key svelte-u0prcz"><!></td><td class="value svelte-u0prcz"><!></td><!></tr>`),CSe=B(`<table class="svelte-u0prcz"><thead><tr><th scope="col" class="key svelte-u0prcz"> </th><th scope="col" class="value svelte-u0prcz"> </th><!></tr></thead><tbody></tbody></table>`),wSe=B(`<!> <!>`,1),TSe=B(`<!> <!> <div role="none"><!></div>`,1),ESe={hash:`svelte-u0prcz`,code:`table.svelte-u0prcz {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-u0prcz,
  td.svelte-u0prcz {border-width:0;}th.svelte-u0prcz {padding-block:4px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;&.key,
    &.value {width:50%;}}td.svelte-u0prcz {padding:0;vertical-align:middle;}`}}));function OSe(e,t){k(t,!0),G(e,MSe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.key_label),o=M(()=>t.fieldConfig.value_label),s=M(()=>z(a)||Y(`key_value.key`)),c=M(()=>z(o)||Y(`key_value.value`)),l=N(Nr([])),u=()=>{let e=u7({entryDraft:D6,keyPath:t.keyPath,locale:t.locale});(0,kSe.default)(z(l),e)||P(l,e,!0)};ri(()=>{n()&&(At(n().currentValues[t.locale]),Gi(()=>{u()}))});var d=V(),f=I(d),p=e=>{var t=jSe(),n=F(t),r=F(n),i=F(r),a=F(i,!0);O(i);var o=L(i),u=F(o,!0);O(o),O(r),O(n);var d=L(n);vo(d,23,()=>z(l),([e,t],n)=>`${e}-${n}`,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=ASe(),o=F(a),s=F(o,!0);O(o);var c=L(o),l=F(c,!0);O(c),O(a),R(()=>{U(s,r()),U(l,i())}),H(e,a)}),O(d),O(t),R(()=>{U(a,z(s)),U(u,z(c))}),H(e,t)};W(f,e=>{z(l).length&&e(p)}),H(e,d),A(),i()}var kSe,ASe,jSe,MSe,NSe=s((()=>{Z(),J(),X(),kSe=u(CO()),dc(),M6(),d7(),ASe=B(`<tr><td class="svelte-11sa460"> </td><td class="svelte-11sa460"> </td></tr>`),jSe=B(`<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>`),MSe={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 PSe(e,t){k(t,!0);let n=q(t,`expanded`,3,!1);{let t=M(()=>n()?`expand_more`:Hh()?`chevron_left`:`chevron_right`);tI(e,{get name(){return z(t)}})}A()}var FSe=s((()=>{Z(),J(),X(),$()}));function f7(e,t){k(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`items`,19,()=>[]),i=q(t,`addItem`,3,()=>void 0),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.label),s=M(()=>t.fieldConfig.types),c=M(()=>t.fieldConfig.widget===`list`?t.fieldConfig:void 0),l=M(()=>z(c)?.label_singular??``),u=M(()=>z(c)?.max??void 0),d=M(()=>Y(`add_x`,{values:{name:z(l)||z(o)||z(a)}})),f=M(()=>n()||typeof z(u)==`number`&&r().length===z(u));var p=V(),m=I(p),h=e=>{AI(e,{variant:`tertiary`,get label(){return z(d)},get disabled(){return z(f)},startIcon:e=>{tI(e,{name:`add`})},endIcon:e=>{},popup:e=>{{let t=M(()=>Y(`select_list_type`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),17,()=>z(s),({name:e,label:t})=>e,(e,t)=>{let n=()=>z(t).name,r=()=>z(t).label;{let t=M(()=>r()||n());eR(e,{get label(){return z(t)},onclick:()=>i()({type:n()})})}}),H(e,n)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},g=M(()=>Array.isArray(z(s))),_=e=>{bI(e,{variant:`tertiary`,get label(){return z(d)},get disabled(){return z(f)},onclick:()=>i()(),startIcon:e=>{tI(e,{name:`add`})},$$slots:{startIcon:!0}})};W(m,e=>{z(g)?e(h):e(_,-1)}),H(e,p),A()}var ISe=s((()=>{Z(),J(),X(),$()}));function p7(e,t){k(t,!0),G(e,zSe);let n=q(t,`label`,3,``),r=q(t,`expanded`,15),i=q(t,`centerContent`,3,void 0),a=q(t,`endContent`,3,void 0);var o=RSe(),s=F(o),c=F(s);{let e=e=>{PSe(e,{get expanded(){return r()}})},i=M(()=>r()?Y(`collapse`):Y(`expand`));bI(c,{size:`small`,get"aria-label"(){return z(i)},get"aria-expanded"(){return r()},get"aria-controls"(){return t.controlId},onclick:()=>{r(!r()),t.toggleExpanded?.()},startIcon:e,children:(e,t)=>{var r=V(),i=I(r),a=e=>{var t=LSe(),r=F(t,!0);O(t),R(()=>U(r,n())),H(e,t)};W(i,e=>{n()&&e(a)}),H(e,r)},$$slots:{startIcon:!0,default:!0}})}O(s);var l=L(s,2);Ao(F(l),()=>i()??D),O(l);var u=L(l,2);Ao(F(u),()=>a()??D),O(u),O(o),H(e,o),A()}var LSe,RSe,zSe,m7=s((()=>{Z(),J(),X(),$(),FSe(),LSe=B(`<span role="none" class="type svelte-57h597"> </span>`),RSe=B(`<div role="none" class="header svelte-57h597"><div role="none" class="svelte-57h597"><!></div> <div role="none" class="svelte-57h597"><!></div> <div role="none" class="svelte-57h597"><!></div></div>`),zSe={hash:`svelte-57h597`,code:`.header.svelte-57h597 {display:flex;align-items:center;gap:8px;height:24px;background-color:var(--sui-secondary-border-color);& > div:where(.svelte-57h597) {display:flex;align-items:center;&:first-child {justify-content:flex-start;width:40%;}&:nth-child(2) {width:20%;justify-content:center;}&:last-child {width:40%;justify-content:flex-end;}}button {padding:0;height:16px;}.type:where(.svelte-57h597) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}}`}})),BSe,VSe,HSe=s((()=>{BSe=({fieldConfig:e,dynamicValue:t})=>{if(t!==void 0)return t===`true`;let{default:n}=e;return typeof n==`boolean`&&n},VSe=e=>({[e.keyPath]:BSe(e)})})),USe,WSe=s((()=>{p(),USe=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,output_code_only:i=!1,keys:a={code:`code`,lang:`lang`}}=e,o=n===void 0?r:n;if(i)return{[t]:typeof o==`string`?o:``};let s=d(o)?o:void 0,c=s?.[a.code]??o,l=s?.[a.lang]??``;return{[t]:{},[`${t}.${a.code}`]:typeof c==`string`?c:``,[`${t}.${a.lang}`]:typeof l==`string`?l:``}}})),GSe,KSe,qSe=s((()=>{GS(),tT(),GSe=({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}=WS(n);return Qw({inputValue:Zw(n,e),currentValue:``,fieldConfig:n,timeZone:e,outputUTC:t})}return i},KSe=e=>({[e.keyPath]:GSe(e)})})),h7,JSe=s((()=>{hP(),h7=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let r=e,i=r.default,a=mP(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}})),YSe,XSe,g7,ZSe=s((()=>{Ap(),YP(),uC(),gD(),YSe=(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`?Dp():e===`uuid_short`?Dp(`short`):e===`uuid_shorter`?Dp(`shorter`):e===`author-email`?n:e===`author-login`?r:e===`author-name`?i:``,XSe=({fieldConfig:e,locale:t,dynamicValue:n})=>{let{default:r}=e,i=n??r;if(typeof i!=`string`)return i;let a={locale:t,account:hD.account};return GP(i,(e,n)=>{let{value:r,transformations:i}=tC(n),o=YSe(r,a);return i.length?lC({value:o,transformations:i,locale:t}):o})},g7=e=>({[e.keyPath]:XSe(e)})})),QSe,$Se,eCe=s((()=>{p(),jP(),QSe=({fieldConfig:e,locale:t})=>{let{default:n}=e,r=TP({fieldConfig:e,locale:t});return d(n)?n:r?{"":``}:{}},$Se=e=>{let{keyPath:t,dynamicValue:n}=e,r;if(n!==void 0)try{let e=JSON.parse(n);d(e)&&(r=e)}catch{}return r??=QSe(e),Object.fromEntries(Object.entries(r).filter(([,e])=>typeof e==`string`).map(([e,n])=>[`${t}.${e}`,n]))}})),tCe,nCe=s((()=>{p(),gc(),tCe=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r}=e,{fields:i}=e,{types:a}=e,o;if(o=n===void 0?Array.isArray(r)?r:[]:n.split(/,\s*/).map(e=>e.trim()).filter(e=>e!==``),!(Array.isArray(o)&&o.length))return{[t]:[]};let s={[t]:o};return i||a?o.forEach((e,n)=>{d(e)?Object.entries(mc(e)).forEach(([e,r])=>{s[`${t}.${n}.${e}`]=r}):s[`${t}.${n}`]=e}):o.forEach((e,n)=>{d(e)||(s[`${t}.${n}`]=e)}),s}})),rCe,iCe=s((()=>{rCe=({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{}}})),aCe,oCe=s((()=>{p(),gc(),jP(),aCe=({fieldConfig:e,keyPath:t,locale:n,defaultLocale:r,populateDefault:i})=>{let{default:a}=e,{fields:o}=e,{types:s}=e,c=TP({fieldConfig:e,locale:n}),l={};return d(a)?(Object.entries(mc(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)}})),_7,sCe=s((()=>{Ip(),Zp(),TF(),_7=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r=dn(bF)?.field_defaults?.richtext?.default}=e,i=``;if(n!==void 0)try{i=lee(n)}catch{i=n.replace(/<[^>]*>/g,``)}else i=r||``;return{[t]:i}}})),v7,cCe=s((()=>{v7=({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]:[]}}})),lCe,uCe=s((()=>{HSe(),WSe(),qSe(),JSe(),ZSe(),eCe(),nCe(),iCe(),oCe(),sCe(),cCe(),lCe={boolean:VSe,code:USe,datetime:KSe,file:h7,hidden:g7,image:h7,keyvalue:$Se,list:tCe,markdown:_7,number:rCe,object:aCe,relation:v7,richtext:_7,select:v7}})),y7,b7,x7=s((()=>{uCe(),y7=({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=lCe[o];if(u){Object.assign(e,u({fieldConfig:n,keyPath:t,locale:r,defaultLocale:i,dynamicValue:l,populateDefault:y7}));return}e[t]=l||s||``},b7=({fields:e,locale:t,defaultLocale:n,dynamicValues:r={}})=>{let i={};return e.forEach(e=>{y7({content:i,keyPath:e.name,fieldConfig:e,locale:t,defaultLocale:n,dynamicValues:r})}),i}})),S7,dCe,C7,w7,fCe=s((()=>{Ip(),gc(),Zp(),M6(),fb(),S7=(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]})},dCe=new Map,C7=(e,t)=>{let n=db(dCe,t,()=>RegExp(`^${jp(t)}\\b(?!#)`)),r=Object.entries(e).filter(([e])=>n.test(e)).map(([e,t])=>[e.replace(n,`_`),t]).sort();return[hc(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(e).filter(([e])=>!n.test(e)))]},w7=({locale:e,valueStoreKey:t=`currentValues`,keyPath:n,manipulate:r})=>{let i=dn(D6),{collection:a,collectionFile:o}=i,{defaultLocale:s}=(o??a)._i18n,[c,l]=C7(i[t][e],n),[u,d]=e===s?C7(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:u}),O6.set(!1),D6.update(r=>(S7(r[t][e],{...mc({[n]:c}),...l}),e===s&&S7(r.expanderStates._,{...mc({[n]:u}),...d}),r)),O6.set(!0)}})),pCe,T7,E7,D7,mCe,O7,k7=s((()=>{Ip(),Zp(),M6(),jP(),fb(),pCe=new Map,T7=({key:e,locale:t,collapsed:n=!1})=>{let r=dn(D6),i=r?.expanderStates?._[e];if(i!==void 0)return i;if(n===`auto`){let n=r?.currentValues?.[t]??{},i=e.replace(/#$/,``),a=db(pCe,i,()=>RegExp(`^${jp(i)}\\.[^\\.]+$`));return!Object.entries(n).some(([e,t])=>a.test(e)&&!!t)}return!n},E7=e=>{D6.update(t=>(t&&Object.entries(e).forEach(([e,n])=>{t.expanderStates._[e]!==n&&(t.expanderStates._[e]=n)}),t))},D7=({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=wP({...o,keyPath:r}),s=vP.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=wP({...o,keyPath:e});i?.widget===`object`&&`fields`in i&&a.add(`${e}.${i.name}#`),i?.widget===`list`&&`field`in i&&a.add(r)}}),[...a]},mCe=({collectionName:e,fileName:t,currentValues:n})=>{let{validities:r,isIndexFile:i}=dn(D6),a={};Object.entries(r??{}).forEach(([r,o])=>{Object.entries(o).forEach(([o,{valid:s}])=>{s||D7({collectionName:e,fileName:t,valueMap:n[r],keyPath:o,isIndexFile:i}).forEach(e=>{a[e]=!0})})}),E7(a)},O7=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}},window.location.origin)}}));function hCe(e,t){let n=za();k(t,!0),G(e,xCe);let r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),o=(e,t=D,n=D)=>{var r=V(),i=I(r),a=e=>{{let r=e=>{var n=V();vo(I(n),17,()=>z(te)??[],({name:e,label:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).label;{let n=M(()=>i()||r());eR(e,{get label(){return z(n)},onclick:()=>Ee({index:t(),type:r()})})}}),H(e,n)},i=M(()=>Y(`add_item_${n()}`));eR(e,{get label(){return z(i)},get disabled(){return z(be)},items:r,$$slots:{items:!0}})}},o=e=>{{let r=M(()=>Y(`add_item_${n()}`));eR(e,{get label(){return z(r)},get disabled(){return z(be)},onclick:()=>Ee({index:t()})})}};W(i,e=>{z(ae)?e(a):e(o,-1)}),H(e,r)},{valueStoreKey:s=`currentValues`,parentComponentNames:c=[]}=Lt(`field-editor`)??{},l=c.at(-1),u=M(()=>t.fieldConfig.name),f=M(()=>t.fieldConfig.label),p=M(()=>t.fieldConfig.i18n),m=M(()=>E(t.fieldConfig.allow_add,!0)),h=M(()=>E(t.fieldConfig.allow_remove,!0)),g=M(()=>E(t.fieldConfig.allow_duplicate,!0)),_=M(()=>E(t.fieldConfig.allow_reorder,!0)),v=M(()=>t.fieldConfig.collapsed),y=M(()=>t.fieldConfig.summary),b=M(()=>t.fieldConfig.thumbnail),x=M(()=>E(t.fieldConfig.minimize_collapsed,!1)),S=M(()=>t.fieldConfig.label_singular),C=M(()=>E(t.fieldConfig.max,1/0)),w=M(()=>E(t.fieldConfig.add_to_top,!1)),T=M(()=>t.fieldConfig.field),ee=M(()=>t.fieldConfig.fields),te=M(()=>t.fieldConfig.types),ne=M(()=>E(t.fieldConfig.typeKey,`type`)),re=M(()=>a5(t.fieldConfig)),ie=M(()=>z(re).hasSingleSubField),ae=M(()=>z(re).hasVariableTypes),oe=M(()=>RegExp(`^${jp(t.keyPath)}\\.(\\d+)(.*)?`)),se=M(()=>r()?.isIndexFile??!1),ce=M(()=>r()?.collection),le=M(()=>r()?.collectionName??``),ue=M(()=>r()?.collectionFile),de=M(()=>r()?.fileName),fe=M(()=>(z(ue)??z(ce))?._i18n??aw),pe=M(()=>z(fe).defaultLocale),me=M(()=>t.locale!==z(pe)&&z(p)===`duplicate`),he=M(()=>At(r()?.[s][t.locale])??{}),ge=M(()=>`${t.keyPath}#`),_e=M(()=>r()?.expanderStates?._[z(ge)]??!0),ve=M(()=>hc(Object.fromEntries(Object.entries(z(he)).filter(([e])=>z(oe).test(e)).map(([e,n])=>[`${z(u)}${e.slice(t.keyPath.length)}`,n])))[z(u)]??[]),ye=M(()=>z(ve).map((e,n)=>{let i=`${t.keyPath}.${n}`;return[i,r()?.expanderStates?._[i]??!0]})),be=M(()=>z(ve).length>=z(C)),xe=M(()=>t.locale===z(pe)||(z(ae)?z(te)?.flatMap(({fields:e=[]})=>e)??[]:z(ee)??(z(T)?[z(T)]:[])).some(({i18n:e=!1})=>e===!0||e===`translate`)),Se=M(()=>z(me)||!z(xe)),Ce=Nr([]),we=()=>{E7({[z(ge)]:z(x)===`auto`?!z(ve).length:!z(x),...Object.fromEntries(z(ve).map((e,n)=>{let r=`${t.keyPath}.${n}`;return[r,T7({key:r,locale:t.locale,collapsed:z(v)})]}))})},Te=e=>{Object.keys(r()?.[s]??{}).forEach(n=>{z(p)!==`duplicate`&&n!==t.locale||w7({locale:n,valueStoreKey:s,keyPath:t.keyPath,manipulate:e})})},Ee=({index:e=z(w)?0:z(ve).length,dupIndex:n,type:r}={})=>{Te(({valueList:i,expanderStateList:a})=>{let o=r?z(te)?.find(({name:e})=>e===r)?.fields??[]:z(ee)??(z(T)?[z(T)]:[]),s=(()=>{if(typeof n==`number`)return structuredClone(i[n]);let e=hc(b7({fields:o,locale:t.locale,defaultLocale:z(pe)}));return z(ie)&&z(T)?e[z(T).name]:e})();r&&(s[z(ne)]=r),z(ie)||(s.__sc_item_id=crypto.randomUUID(),i.forEach((e,n)=>{d(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)})),i.splice(e,0,s),a.splice(e,0,!0)}),E7({[z(ge)]:!0})},De=e=>{Te(({valueList:n,expanderStateList:r})=>{z(ie)||n.forEach((e,n)=>{d(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)}),n.splice(e,1),r.splice(e,1)})},Oe=e=>{Te(({valueList:n,expanderStateList:r})=>{z(ie)||(n[e].__sc_item_id??=crypto.randomUUID(),n[e+1].__sc_item_id??=crypto.randomUUID(),n[e].__sc_item_original_key_path??=`${t.keyPath}.${e}`,n[e+1].__sc_item_original_key_path??=`${t.keyPath}.${e+1}`),[n[e],n[e+1]]=[n[e+1],n[e]],[r[e],r[e+1]]=[r[e+1],r[e]]})},ke=(e,n)=>uve({collectionName:z(le),fileName:z(de),keyPath:t.keyPath,valueMap:z(he),locale:t.locale,summaryTemplate:n,hasSingleSubField:z(ie),index:e,isIndexFile:z(se)}),Ae=async e=>{if(!z(b))return;let n=z(b).replace(/^fields\./,``),i=`${t.keyPath}.${e}`,a=z(ie)?i:`${i}.${n}`,o=z(he)[a];if(!o)return;let s=wP({collectionName:z(le),fileName:z(de),valueMap:z(he),keyPath:a,isIndexFile:z(se)});if(!(s?.widget!==`image`||z(ie)&&s.name!==n))return BM({value:o,entry:r()?.originalEntry,collectionName:z(le),fileName:z(de),componentName:l,typedKeyPath:z(ie)?`${t.typedKeyPath}.*`:`${t.typedKeyPath}.*.${n}`})},je=async()=>{z(b)&&(Ce.length=z(ve).length,z(ve).forEach(async(e,t)=>{let n=await Ae(t);Ce[t]!==n&&(Ce[t]=n)}))};ri(()=>{z(ve),Gi(()=>{je()})}),lc(()=>{we()});var Me=bCe(),Ne=I(Me),Pe=F(Ne);{let e=e=>{PSe(e,{get expanded(){return z(_e)}})},t=M(()=>!z(ve).length),r=M(()=>z(_e)?Y(`collapse`):Y(`expand`));bI(Pe,{iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(r)},get"aria-expanded"(){return z(_e)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{E7({[z(ge)]:!z(_e)})},startIcon:e,$$slots:{startIcon:!0}})}var Fe=L(Pe,2),Ie=F(Fe);O(Fe);var Le=L(Fe,2);PI(Le,{flex:!0});var Re=L(Le,2),ze=e=>{var t=A7(),n=I(t);{let e=M(()=>Y(`expand_all`)),t=M(()=>z(ye).every(([,e])=>e));bI(n,{variant:`tertiary`,size:`small`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{E7(Object.fromEntries(z(ye).map(([e])=>[e,!0])))}})}var r=L(n,2);{let e=M(()=>Y(`collapse_all`)),t=M(()=>z(ye).every(([,e])=>!e));bI(r,{variant:`tertiary`,size:`small`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{E7(Object.fromEntries(z(ye).map(([e])=>[e,!1])))}})}H(e,t)};W(Re,e=>{z(_e)&&z(ve).length>1&&e(ze)}),O(Ne);var Be=L(Ne,2),Ve=e=>{var n=gCe();f7(F(n),{get disabled(){return z(Se)},get fieldConfig(){return t.fieldConfig},get items(){return z(ve)},addItem:Ee}),O(n),H(e,n)};W(Be,e=>{z(m)&&(z(w)||!z(ve).length)&&e(Ve)});var He=L(Be,2);let Ue;vo(He,23,()=>z(ve),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,i,a)=>{W8(e,{children:(e,s)=>{let c=M(()=>`${t.keyPath}.${z(a)}`),l=M(()=>r()?.expanderStates?._[z(c)]??!0),u=M(()=>z(ae)?z(te)?.find(({name:e})=>e===z(i)[z(ne)]):void 0),d=M(()=>z(ae)?z(u)?.fields??[]:z(ee)??(z(T)?[z(T)]:[])),f=M(()=>z(ae)&&z(u)?.summary||z(y));var p=vCe(),v=F(p);{let e=e=>{var t=V(),n=I(t),r=e=>{var t=j7(),n=I(t);{let e=e=>{tI(e,{name:`arrow_upward`})},t=M(()=>z(me)||z(a)===0),r=M(()=>Y(`move_up`));bI(n,{size:`small`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(r)},onclick:()=>Oe(z(a)-1),startIcon:e,$$slots:{startIcon:!0}})}var r=L(n,2);PI(r,{});var i=L(r,2);{let e=e=>{tI(e,{name:`arrow_downward`})},t=M(()=>z(me)||z(a)===z(ve).length-1),n=M(()=>Y(`move_down`));bI(i,{iconic:!0,size:`small`,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:()=>Oe(z(a)),startIcon:e,$$slots:{startIcon:!0}})}H(e,t)};W(n,e=>{z(_)&&e(r)}),H(e,t)},t=e=>{var t=A7(),n=I(t),r=e=>{{let t=e=>{{let t=M(()=>Y(`list_item_options`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=j7(),r=I(n),i=e=>{{let t=M(()=>Y(`duplicate`));eR(e,{get label(){return z(t)},get disabled(){return z(be)},onclick:()=>Ee({index:z(a)+1,dupIndex:z(a)})})}};W(r,e=>{z(g)&&e(i)});var s=L(r,2);o(s,()=>z(a),()=>`above`);var c=L(s,2);o(c,()=>z(a)+1,()=>`below`),H(e,n)},$$slots:{default:!0}})}},n=M(()=>Y(`list_item_options`));AI(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(n)},get disabled(){return z(Se)},popup:t,$$slots:{popup:!0}})}};W(n,e=>{z(m)&&e(r)});var i=L(n,2),s=e=>{{let t=e=>{tI(e,{name:`close`})},n=M(()=>Y(`remove`));bI(e,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>De(z(a)),startIcon:t,$$slots:{startIcon:!0}})}};W(i,e=>{z(h)&&e(s)}),H(e,t)},r=M(()=>z(ae)?z(u)?.label||z(u)?.name:``),i=M(()=>z(d).length?()=>E7({[z(c)]:!z(l)}):void 0);p7(v,{get label(){return z(r)},get controlId(){return`list-${n}-item-${z(a)??``}-body`},get expanded(){return z(l)},get toggleExpanded(){return z(i)},centerContent:e,endContent:t,$$slots:{centerContent:!0,endContent:!0}})}var b=L(v,2),x=F(b),S=e=>{var n=V();vo(I(n),17,()=>z(d),e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{{let r=M(()=>z(ie)?z(c):`${z(c)}.${z(n).name}`),a=M(()=>z(ae)?`${t.typedKeyPath}.*<${z(i)[z(ne)]}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`),o=M(()=>z(ie)?`single-subfield-list-field`:void 0);o9(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(a)},get locale(){return t.locale},get fieldConfig(){return z(n)},get context(){return z(o)}})}},$$slots:{default:!0}})}),H(e,n)},C=e=>{var t=_Ce(),n=F(t),r=e=>{V6(e,{get src(){return Ce[z(a)]},variant:`icon`,cover:!0})};W(n,e=>{Ce[z(a)]&&e(r)});var i=L(n,2);{let e=M(()=>AE.isSmallScreen?2:1);lI(i,{get lines(){return z(e)},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>ke(z(a),z(f))]),H(e,n)},$$slots:{default:!0}})}O(t),H(e,t)};W(x,e=>{z(l)?e(S):e(C,-1)}),O(b),O(p),R(()=>K(b,`id`,`list-${n}-item-${z(a)??``}-body`)),H(e,p)},$$slots:{default:!0}})}),O(He);var We=L(He,2),Ge=e=>{var n=yCe(),r=F(n);f7(r,{get disabled(){return z(Se)},get fieldConfig(){return t.fieldConfig},get items(){return z(ve)},addItem:Ee}),PI(L(r,2),{flex:!0}),O(n),H(e,n)};W(We,e=>{z(m)&&!z(w)&&z(ve).length&&e(Ge)}),R(()=>{K(Fe,`id`,`object-${n}-summary`),U(Ie,`${z(ve).length??``}
    ${((z(ve).length===1?z(S):void 0)||z(f)||z(u))??``}`),K(He,`id`,`list-${n}-item-list`),Ue=ds(He,1,`item-list svelte-n5zzp2`,null,Ue,{collapsed:!z(_e)})}),H(e,Me),A(),a()}var A7,gCe,j7,_Ce,vCe,yCe,bCe,xCe,SCe=s((()=>{Z(),J(),X(),$(),p(),Ip(),gc(),dc(),H6(),FSe(),G8(),c9(),ISe(),m7(),VM(),M6(),x7(),fCe(),k7(),jP(),o5(),sw(),jE(),A7=B(`<!> <!>`,1),gCe=B(`<div role="none" class="toolbar top add svelte-n5zzp2"><!></div>`),j7=B(`<!> <!> <!>`,1),_Ce=B(`<div role="none" class="summary svelte-n5zzp2"><!> <!></div>`),vCe=B(`<div role="none" class="item svelte-n5zzp2"><!> <div role="none" class="item-body"><!></div></div>`),yCe=B(`<div role="none" class="toolbar bottom add svelte-n5zzp2"><!> <!></div>`),bCe=B(`<div role="none" class="toolbar top svelte-n5zzp2"><!> <div role="none" class="summary"> </div> <!> <!></div> <!> <div role="none"></div> <!>`,1),xCe={hash:`svelte-n5zzp2`,code:`.toolbar.svelte-n5zzp2 {display:flex;align-items:center;&.top.add {margin-block:8px 16px !important;}&.bottom.add {margin-block:16px 0 !important;}}.item-list.svelte-n5zzp2 {&.collapsed {display:none;}}.item.svelte-n5zzp2 {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.summary:where(.svelte-n5zzp2) {display:flex;align-items:center;gap:8px;padding:8px;&:empty {display:none;}}}`}}));function CCe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Lt(`field-editor`)??{},o=q(t,`currentValue`,7),s=q(t,`required`,3,!0),c=q(t,`readonly`,3,!1),l=q(t,`invalid`,3,!1),u=N(!1),d=N(``),f=M(()=>t.fieldConfig.i18n),p=()=>{P(d,o()?.join(`
`)??``,!0)},m=(e=z(d).split(/\n/g))=>{Object.keys(n()?.[a]??{}).forEach(r=>{z(f)!==`duplicate`&&r!==t.locale||(Object.keys(n()?.[a][r]??{}).forEach(e=>{e.match(`^${jp(t.keyPath)}\\.\\d+$`)&&delete n()?.[a][r][e]}),e.forEach((e,i)=>{_n(D6,Gi(n)[a][r][`${t.keyPath}.${i}`]=e,Gi(n))}))})},h=()=>{o(z(d).split(/\n/g).map(e=>e.trim()).filter(e=>!!e)),m(o())};lc(()=>{P(u,!0)}),ri(()=>{z(u)&&(o(),Gi(()=>{p()}))});{let n=M(()=>KC(t.locale));T0(e,{get dir(){return z(n)},autoResize:!0,flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-errormessage"(){return`${t.fieldId??``}-error`},oninput:()=>{m()},onblur:()=>{h()},get value(){return z(d)},set value(e){P(d,e,!0)}})}A(),i()}var wCe=s((()=>{Z(),J(),$(),Ip(),dc(),M6(),QC()}));function TCe(e,t){let n=za();k(t,!0);let r=ec(t,ECe);n2(e,{get"aria-labelledby"(){return`list-${n}-summary`},children:(e,n)=>{var i=V(),a=I(i),o=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));hCe(e,tc(()=>z(n)))}},s=M(()=>a5(t.fieldConfig).hasSubFields),c=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));CCe(e,tc(()=>z(n)))}};W(a,e=>{z(s)?e(o):e(c,-1)}),H(e,i)},$$slots:{default:!0}}),A()}var ECe,DCe=s((()=>{Z(),J(),$(),SCe(),wCe(),o5(),ECe=new Set([`$$slots`,`$$events`,`$$legacy`,`fieldConfig`])}));function OCe(e,t){let n=za();G(e,jCe);let r=`${n}-header`;var i=ACe(),a=F(i),o=e=>{var n=kCe(),i=F(n,!0);O(n),R(()=>{K(n,`id`,r),U(i,t.label)}),H(e,n)};W(a,e=>{t.label&&e(o)});var s=L(a,2);Ao(F(s),()=>t.children??D),O(s),O(i),R(()=>K(i,`aria-labelledby`,t.label?r:void 0)),H(e,i)}var kCe,ACe,jCe,MCe=s((()=>{Z(),J(),kCe=B(`<div role="none" class="header svelte-ygwzbn"> </div>`),ACe=B(`<div role="group" class="subsection svelte-ygwzbn"><!> <div role="none" class="items svelte-ygwzbn"><!></div></div>`),jCe={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 M7(e,t){k(t,!0),G(e,FCe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=q(t,`showLabel`,3,!0),o=M(()=>t.fieldConfig.name),s=M(()=>E(t.fieldConfig.widget,`string`)),c=M(()=>E(t.fieldConfig.i18n,!1)),l=M(()=>E(t.fieldConfig.label,``)),u=M(()=>E(t.fieldConfig.preview,!0)),d=M(()=>xP(t.fieldConfig)),f=M(()=>z(s)===`list`||z(d)),p=M(()=>n()?.collection),m=M(()=>n()?.collectionFile),h=M(()=>At(n()?.currentValues[t.locale]??{})),g=M(()=>(z(m)??z(p))?._i18n??aw),_=M(()=>z(g).i18nEnabled),v=M(()=>z(g).defaultLocale),y=M(()=>z(_)&&(z(c)===!0||z(c)===`translate`)),b=M(()=>z(_)&&z(c)===`duplicate`),x=M(()=>RegExp(`^${jp(t.keyPath)}\\.\\d+$`)),S=M(()=>z(f)?Object.entries(z(h)).filter(([e])=>z(x).test(e)).map(([,e])=>e).filter(e=>e!==void 0):z(h)[t.keyPath]);var C=V(),w=I(C),T=e=>{var n=PCe(),r=F(n),i=e=>{var t=NCe(),n=F(t,!0);O(t),R(()=>U(n,z(l)||z(o))),H(e,t)};W(r,e=>{a()&&e(i)});var c=L(r,2),u=e=>{let n=M(()=>t9[z(s)]);var r=V();Mo(I(r),()=>z(n),(e,n)=>{n(e,{get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get locale(){return t.locale},get fieldConfig(){return t.fieldConfig},get currentValue(){return z(S)}})}),H(e,r)};W(c,e=>{z(s)in t9&&e(u)}),O(n),R(()=>{K(n,`data-field-type`,z(s)),K(n,`data-key-path`,t.keyPath),K(n,`data-typed-key-path`,t.typedKeyPath)}),Ta(`keydown`,n,e=>{e.key===`Enter`&&(e.stopPropagation(),O7({locale:t.locale,keyPath:t.keyPath}))}),Ta(`click`,n,e=>{e.stopPropagation(),O7({locale:t.locale,keyPath:t.keyPath})}),H(e,n)};W(w,e=>{z(s)!==`hidden`&&z(u)&&(t.locale===z(v)||z(y)||z(b))&&e(T)}),H(e,C),A(),i()}var NCe,PCe,FCe,N7=s((()=>{Z(),J(),Ip(),jEe(),M6(),k7(),jP(),sw(),NCe=B(`<h4 class="svelte-s650n2"> </h4>`),PCe=B(`<section role="group" tabindex="0" class="svelte-s650n2"><!> <!></section>`),FCe={hash:`svelte-s650n2`,code:`[role='document'] section.svelte-s650n2 {overflow:hidden;margin:8px 0;padding:8px 0;h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);&:not(:last-child) {margin-bottom:8px;}}& > * {margin-inline:auto;max-width:768px;}p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}img {max-height:800px !important;}}

  @media (width < 768px) {[role='document'] {& > section.svelte-s650n2:is([data-field-type='file']:where(.svelte-s650n2), [data-field-type='image']:where(.svelte-s650n2)):has(img),
      & > section.svelte-s650n2:is([data-field-type='string']:where(.svelte-s650n2)):has(iframe) {overflow:visible;}& > section.svelte-s650n2:is([data-field-type='file']:where(.svelte-s650n2), [data-field-type='image']:where(.svelte-s650n2)) img {width:100%;max-height:none !important;}}
  }`},Ea([`keydown`,`click`])}));function ICe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.field),s=M(()=>t.fieldConfig.fields),c=M(()=>t.fieldConfig.types),l=M(()=>E(t.fieldConfig.typeKey,`type`)),u=M(()=>a5(t.fieldConfig)),f=M(()=>z(u).hasSingleSubField),p=M(()=>z(u).hasVariableTypes),m=M(()=>RegExp(`^${jp(t.keyPath)}\\.\\d+`)),h=M(()=>hc(Object.fromEntries(Object.entries(At(n()?.currentValues[t.locale])??{}).filter(([e])=>z(m).test(e)).map(([e,n])=>[`${z(a)}${e.slice(t.keyPath.length)}`,n])))[z(a)]??[]);var g=V();vo(I(g),19,()=>z(h),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,r,i)=>{W8(e,{children:(e,r)=>{let a=M(()=>`${t.keyPath}.${z(i)}`),u=M(()=>Array.isArray(z(c))?n()?.currentValues[t.locale][`${z(a)}.${z(l)}`]:void 0),d=M(()=>z(c)?.find(({name:e})=>e===z(u))),m=M(()=>z(d)?z(d).label||z(d).name:void 0),h=M(()=>z(u)?z(d)?.fields??[]:z(s)??(z(o)?[z(o)]:[]));OCe(e,{get label(){return z(m)},children:(e,n)=>{var r=V();vo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{{let r=M(()=>z(f)?z(a):`${z(a)}.${z(n).name}`),i=M(()=>z(p)?`${t.typedKeyPath}.*<${z(u)}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`);M7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})}),H(e,g),A(),i()}var LCe=s((()=>{Z(),J(),p(),Ip(),gc(),G8(),MCe(),N7(),M6(),o5()}));function RCe(e,t){k(t,!0);var n=V(),r=I(n),i=e=>{var n=BCe();vo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=zCe(),r=F(n,!0);O(n),R(()=>U(r,z(t))),H(e,n)}),O(n),R((e,t)=>{K(n,`lang`,e),K(n,`dir`,t),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale)]),H(e,n)},a=M(()=>Array.isArray(t.currentValue)&&t.currentValue.length);W(r,e=>{z(a)&&e(i)}),H(e,n),A()}var zCe,BCe,VCe=s((()=>{Z(),J(),QC(),zCe=B(`<li> </li>`),BCe=B(`<ul></ul>`)}));function HCe(e,t){k(t,!0);let n=ec(t,UCe);var r=V(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));ICe(e,tc(()=>z(r)))}},o=M(()=>a5(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));RCe(e,tc(()=>z(r)))}};W(i,e=>{z(o)?e(a):e(s,-1)}),H(e,r),A()}var UCe,WCe=s((()=>{Z(),J(),LCe(),VCe(),o5(),UCe=new Set([`$$slots`,`$$events`,`$$legacy`,`fieldConfig`])})),GCe,KCe,qCe,JCe=s((()=>{p(),sP(),GCe=(e,t=`Point`)=>{try{let n=JSON.parse(e);return d(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},KCe=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>oP(e,t)):oP(e,t)):oP(e,t)),qCe=e=>{if(e.type===`Point`)return null;let t=e.type===`Polygon`?e.coordinates.flat(1):e.coordinates;if(!t.every(e=>typeof e[0]==`number`&&typeof e[1]==`number`))return null;let n=t.map(e=>e[1]),r=t.map(e=>e[0]);return[[Math.min(...n),Math.min(...r)],[Math.max(...n),Math.max(...r)]]}}));function YCe(e,t){k(t,!0),G(e,$Ce);let n=q(t,`currentValue`,15),r=q(t,`readonly`,3,!1),i=q(t,`invalid`,3,!1),a=M(()=>E(t.fieldConfig.decimals,7)),o=M(()=>E(t.fieldConfig.type,`Point`)),s=M(()=>t.fieldConfig.center),c=M(()=>t.fieldConfig.zoom),l=M(()=>z(o).toLowerCase()),u=N(void 0),f=N(void 0),p=N(``),m=N(``),h=N(void 0),g=N(!1),_=N(!1),v=N(``),y,b=async({leaflet:e,map:t})=>{y=t;let{TerraDraw:r,TerraDrawLineStringMode:i,TerraDrawPointMode:a,TerraDrawPolygonMode:u}=await tM(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:d}=await tM(`terra-draw-leaflet-adapter`,`dist/terra-draw-leaflet-adapter.module.js?module`),p={Point:a,LineString:i,Polygon:u},m=new r({adapter:new d({lib:e,map:y}),modes:[new p[z(o)]]});m.start(),m.setMode(z(l)),m.on(`change`,(e,t)=>{x(t)}),P(f,m,!0),(!n()||!GCe(n(),z(o)))&&y.setView(z(s)?[z(s)[1],z(s)[0]]:[0,0],z(c)??2)},x=e=>{if(!z(f))return;let t=z(f).getSnapshot(),n=t[t.length-1];!n||e!==(z(o)===`Point`?`create`:`delete`)||(P(p,JSON.stringify({type:z(o),coordinates:KCe(n.geometry.coordinates,z(a))}),!0),t.length>1&&z(f).removeFeatures(t.filter(e=>e.id!==n.id).map(e=>e.id)))},S=e=>{if(e.type===`Point`){let[t,n]=e.coordinates;typeof t==`number`&&typeof n==`number`&&y?.setView([n,t],15)}else{let t=qCe(e);t&&y?.fitBounds(t)}},C=()=>{if(!z(f))return;let e=n()??``,t;try{if(t=JSON.parse(e),!d(t)||t.type!==z(o)||!Array.isArray(t.coordinates))throw Error(`Invalid object`)}catch{e=``,t=void 0}z(p)!==e&&(P(p,e,!0),z(f).clear(),t&&(z(f).addFeatures([{type:`Feature`,geometry:t,properties:{mode:z(l)}}]),S(t)))},w=()=>{if(!z(f))return;let e=z(p);n()!==e&&n(e)},T=async()=>{let e=z(m).trim();if(!e)return;P(g,!0);let t=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:e,format:`jsonv2`})}`;try{P(h,await vD(t),!0)}catch{P(h,[],!0)}P(g,!1)},ee=({latitude:e,longitude:t})=>{if(!z(f)||(e=oP(e,z(a)),t=oP(t,z(a)),y?.setView([e,t],15),z(o)!==`Point`))return;let n={type:`Point`,coordinates:[t,e]};z(f).clear(),z(f).addFeatures([{type:`Feature`,geometry:n,properties:{mode:`point`}}]),P(p,JSON.stringify(n),!0)},te=({lat:e,lon:t})=>{ee({latitude:parseFloat(e),longitude:parseFloat(t)})},ne=()=>{if(!navigator.geolocation){P(_,!0),P(v,Y(`geolocation_unsupported`),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:e,longitude:t}})=>{ee({latitude:e,longitude:t})},e=>{P(_,!0),P(v,Y(`geolocation_error_body`),!0),console.error(`Error getting current location:`,e)})},re=()=>{n(``)};ri(()=>{z(f),n(),Gi(()=>{C()})}),ri(()=>{z(p),Gi(()=>{w()})}),ri(()=>{z(m),Gi(()=>{T()})});var ie=QCe(),ae=I(ie),oe=F(ae);{let e=M(()=>Y(`find_place`));BR(oe,{debounce:!0,get readonly(){return r()},flex:!0,get placeholder(){return z(e)},get value(){return z(m)},set value(e){P(m,e,!0)}})}var se=L(oe,2);{let e=e=>{tI(e,{name:`near_me`})},t=M(()=>Y(`use_your_location`)),n=M(()=>Y(`use_your_location`));bI(se,{variant:`tertiary`,iconic:!0,get title(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return r()},onclick:()=>{ne()},startIcon:e,$$slots:{startIcon:!0}})}var ce=L(se,2);{let e=M(()=>Y(`clear`)),t=M(()=>r()||!n());bI(ce,{variant:`tertiary`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{re()}})}O(ae);var le=L(ae,2),ue=e=>{var t=XCe(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`searching`)]),H(e,t)},de=e=>{var t=V(),n=I(t),r=e=>{var t=V(),n=I(t),r=e=>{{let t=M(()=>Y(`search_results`));PL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),17,()=>z(h),e=>e.place_id,(e,t)=>{UL(e,{get label(){return z(t).display_name},onSelect:()=>{te(z(t))}})}),H(e,n)},$$slots:{default:!0}})}},i=e=>{var t=ZCe(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`no_results`)]),H(e,t)};W(n,e=>{z(h).length?e(r):e(i,-1)}),H(e,t)};W(n,e=>{z(h)&&e(r)}),H(e,t)};W(le,e=>{z(g)?e(ue):z(m)&&e(de,1)});var D=L(le,2),fe=F(D);{let e=M(()=>i()?`invalid`:void 0);B3(fe,{get inert(){return r()},get class(){return z(e)},onReady:b,get mapElement(){return z(u)},set mapElement(e){P(u,e,!0)}})}O(D);var pe=L(D,2);{let e=M(()=>Y(`geolocation_error_title`));nL(pe,{get title(){return z(e)},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{gt();var n=Ra();R(()=>U(n,z(v))),H(e,n)},$$slots:{default:!0}})}H(e,ie),A()}var XCe,ZCe,QCe,$Ce,ewe=s((()=>{Z(),J(),X(),$(),p(),dc(),W3(),nM(),JCe(),yD(),sP(),XCe=B(`<div role="alert" class="search-result searching svelte-ktr5k7"> </div>`),ZCe=B(`<div role="alert" class="search-result no-result svelte-ktr5k7"> </div>`),QCe=B(`<div role="none" class="toolbar svelte-ktr5k7"><!> <!> <!></div> <!> <div class="map-wrapper svelte-ktr5k7"><!></div> <!>`,1),$Ce={hash:`svelte-ktr5k7`,code:`.toolbar.svelte-ktr5k7 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-ktr5k7 {padding:12px;color:var(--sui-secondary-foreground-color);}.map-wrapper.svelte-ktr5k7 {display:contents;.map {aspect-ratio:auto;height:400px;&.invalid {border-color:var(--sui-error-border-color);}}}`}}));function twe(e,t){G(e,rwe);var n=V(),r=I(n),i=e=>{var n=nwe(),r=F(n,!0);O(n),R(()=>U(r,t.currentValue)),H(e,n)};W(r,e=>{t.currentValue&&e(i)}),H(e,n)}var nwe,rwe,iwe=s((()=>{Z(),J(),nwe=B(`<pre class="svelte-1ox6w30"> </pre>`),rwe={hash:`svelte-1ox6w30`,code:`pre.svelte-1ox6w30 {white-space:pre-wrap;}`}}));function awe(e,t){k(t,!0);let n=q(t,`currentValue`,15),r=q(t,`required`,3,!0),i=q(t,`readonly`,3,!1),a=q(t,`invalid`,3,!1),o=N(void 0),s=M(()=>E(t.fieldConfig.value_type,`int`)),c=M(()=>t.fieldConfig.min),l=M(()=>t.fieldConfig.max),u=M(()=>E(t.fieldConfig.step,1)),d=M(()=>![`int`,`float`].includes(z(s))),f=M(()=>[`float`,`float/string`].includes(z(s))),p=()=>{let e;n()!==void 0&&(typeof n()==`number`?e=n():typeof n()==`string`&&(e=n().trim()?z(f)?Number.parseFloat(n()):Number.parseInt(n(),10):NaN,e=Number.isNaN(e)?void 0:e)),z(o)!==e&&P(o,e,!0)},m=()=>{let e;e=z(o)===void 0?NaN:z(f)?Number.parseFloat(String(z(o))):Number.parseInt(String(z(o)),10),z(d)?e=Number.isNaN(e)?``:String(e):Number.isNaN(e)&&(e=null),n()!==e&&n(e)};ri(()=>{n(),Gi(()=>{p()})}),ri(()=>{z(o),Gi(()=>{m()})}),Dfe(e,{get min(){return z(c)},get max(){return z(l)},get step(){return z(u)},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onblur:()=>{p()},get value(){return z(o)},set value(e){P(o,e,!0)}}),A()}var owe=s((()=>{Z(),J(),$(),dc()}));function swe(e,t){k(t,!0);let n=M(()=>GC(t.locale)),r=M(()=>Intl.NumberFormat(z(n)));var i=V(),a=I(i),o=e=>{var i=cwe(),a=F(i,!0);O(i),R((e,t)=>{K(i,`lang`,z(n)),K(i,`dir`,e),U(a,t),i.dir=i.dir},[()=>KC(t.locale),()=>z(r).format(Number(t.currentValue))]),H(e,i)};W(a,e=>{t.currentValue!==void 0&&t.currentValue!==null&&t.currentValue!==``&&e(o)}),H(e,i),A()}var cwe,lwe=s((()=>{Z(),J(),QC(),cwe=B(`<p> </p>`)})),P7,F7,I7=s((()=>{p(),Zp(),M6(),F8(),x7(),jP(),P7=(e,t)=>{let{collectionName:n,fileName:r,collection:i,collectionFile:a,currentValues:o,isIndexFile:s}=dn(D6),{defaultLocale:c}=(a??i)._i18n,l=f(o[c]),u={...f(e),...l},d={collectionName:n,fileName:r,valueMap:u,isIndexFile:s},p=[];return Object.keys(u).forEach(n=>{let r=wP({...d,keyPath:n});if(!r)return;let{widget:i=`text`,i18n:a=!1}=r;if([`text`,`string`,`richtext`,`markdown`].includes(i)&&[!0,`translate`].includes(a)&&(u[n]=e[n]??``),i===`hidden`&&[!0,`translate`].includes(a)){let{default:e}=r;e===`{{locale}}`&&(u[n]=t)}i===`object`&&[!0,`translate`,`duplicate`].includes(a)&&l[n]!==null&&delete u[n],([!1,`none`].includes(a)||p.some(e=>n===e||n.startsWith(`${e}.`)))&&(delete u[n],p.push(n))}),u},F7=e=>{D6.update(t=>{let{fields:n,defaultLocale:r,currentLocales:i,currentValues:a,validities:o,validationMessages:s}=t,c=!i[e];if(c&&!a[e]){let{collectionName:o,fileName:s,originalValues:l}=t,u=b7({fields:n,locale:e,defaultLocale:r});return{...t,currentLocales:{...i,[e]:c},originalValues:{...l,[e]:u},currentValues:{...a,[e]:P8({draft:{collectionName:o,fileName:s},locale:e,target:P7(u,e)})}}}return{...t,currentLocales:{...i,[e]:c},validities:{...o,[e]:{}},validationMessages:{...s,[e]:{}}}})}})),uwe,dwe,fwe=s((()=>{Ip(),YP(),LS(),uC(),jP(),fb(),uwe=new Map,dwe=({collectionName:e,fileName:t,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:a,summaryTemplate:o})=>{let s={collectionName:e,fileName:t,keyPath:``,valueMap:r,isIndexFile:i};if(!o)return kP({valueMap:r,locale:a,keyPath:n,keyPathRegex:db(uwe,n,()=>RegExp(`^${jp(n)}\\.`)),getFieldArgs:s});let c=e=>{let{value:t}=tC(e);return OP({...s,keyPath:`${n}.${t.replace(/^fields\./,``)}`,locale:a})};return GP(o,(e,t)=>{let{value:r,transformations:i}=tC(t);return OP({...s,keyPath:`${n}.${r.replace(/^fields\./,``)}`,locale:a,transformations:IS(i,c)})})}}));function pwe(e,t){let n=za();k(t,!0),G(e,_we);let r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),{fieldContext:o,valueStoreKey:s=`currentValues`}=Lt(`field-editor`)??{},c=o===`single-subfield-list-field`,l=q(t,`required`,3,!0),u=M(()=>t.fieldConfig.name),d=M(()=>E(t.fieldConfig.i18n,!1)),p=M(()=>t.fieldConfig.collapsed),m=M(()=>t.fieldConfig.summary),h=M(()=>t.fieldConfig.fields),g=M(()=>t.fieldConfig.types),_=M(()=>E(t.fieldConfig.typeKey,`type`)),v=M(()=>r()?.isIndexFile??!1),y=M(()=>r()?.collection),b=M(()=>r()?.collectionName??``),x=M(()=>r()?.collectionFile),S=M(()=>r()?.fileName),C=M(()=>(z(x)??z(y))?._i18n??aw),w=M(()=>z(C).defaultLocale),T=M(()=>At(r()?.[s][t.locale])??{}),ee=M(()=>({collectionName:z(b),fileName:z(S),valueMap:z(T),isIndexFile:z(v)})),te=M(()=>Object.entries(z(T)).some(([e,n])=>e.startsWith(`${t.keyPath}.`)&&n!==void 0)),ne=M(()=>o===`rich-text-editor-component`||t.locale===z(w)||z(d)!==!1),re=M(()=>`${t.keyPath}#`),ie=M(()=>r()?.expanderStates?._[z(re)]??!0),ae=M(()=>Array.isArray(z(g))),oe=M(()=>`${t.keyPath}.${z(_)}`),se=M(()=>z(ae)?z(g)?.find(({name:e})=>e===z(T)[z(oe)]):void 0),ce=M(()=>(z(ae)?z(se)?.fields:z(h))??[]),le=M(()=>z(ae)&&z(se)?.summary||z(m)),ue=M(()=>t.locale!==z(w)&&z(d)===`duplicate`),de=()=>{if(c)return;let e=z(re);E7({[e]:T7({key:e,locale:t.locale,collapsed:z(p)})})},D=async({type:e}={})=>{mn(O6,!1),e&&(Object.keys(r()?.[s]??{}).forEach(n=>{(n===t.locale||z(d)===`duplicate`)&&_n(D6,Gi(r)[s][n][z(oe)]=e,Gi(r))}),await Hi());let n=Object.fromEntries(Object.entries(b7({fields:z(ce),locale:t.locale,defaultLocale:z(w)})).map(([e,n])=>[`${t.keyPath}.${e}`,n])),i=t.locale===z(w)?n:P7(n,t.locale);Object.entries(r()?.[s]??{}).forEach(([e,n])=>{(e===t.locale||z(d)===`duplicate`)&&(_n(D6,Gi(r)[s][e]=Object.assign(n,f({...i,...n})),Gi(r)),delete r()[s][e][t.keyPath])}),mn(O6,!0)},fe=()=>{mn(O6,!1),Object.entries(r()?.[s]??{}).forEach(([e,n])=>{(e===t.locale||z(d)===`duplicate`)&&(Object.keys(n).forEach(n=>{n.startsWith(`${t.keyPath}.`)&&(_n(D6,Gi(r)[s][e][n]=null,Gi(r)),delete r()?.[s][e][n])}),_n(D6,Gi(r)[s][e][t.keyPath]=null,Gi(r)))}),mn(O6,!0)},pe=()=>dwe({...z(ee),keyPath:t.keyPath,locale:t.locale,summaryTemplate:z(le)});lc(()=>{de()});var me=gwe(),he=I(me),ge=e=>{{let n=M(()=>Y(`add_x`,{values:{name:t.fieldLabel||z(u)}}));HI(e,{get label(){return z(n)},get checked(){return z(te)},get disabled(){return z(ue)},onChange:({detail:{checked:e}})=>{e?D():fe()}})}};W(he,e=>{!z(ae)&&!l()&&e(ge)});var _e=L(he,2),ve=e=>{f7(e,{get disabled(){return z(ue)},get fieldConfig(){return t.fieldConfig},addItem:D})};W(_e,e=>{z(ae)&&!z(te)&&e(ve)});var ye=L(_e,2),be=e=>{var r=hwe(),i=F(r),a=e=>{{let t=e=>{var t=V(),n=I(t),r=e=>{{let t=e=>{tI(e,{name:`close`})},n=M(()=>Y(`remove`));bI(e,{size:`small`,iconic:!0,get disabled(){return z(ue)},get"aria-label"(){return z(n)},onclick:()=>{fe()},startIcon:t,$$slots:{startIcon:!0}})}};W(n,e=>{z(ae)&&e(r)}),H(e,t)},r=M(()=>z(ae)?z(se)?.label||z(se)?.name:``),i=M(()=>z(ce).length?()=>E7({[z(re)]:!z(ie)}):void 0);p7(e,{get label(){return z(r)},get controlId(){return`object-${n}-item-list`},get expanded(){return z(ie)},get toggleExpanded(){return z(i)},endContent:t,$$slots:{endContent:!0}})}};W(i,e=>{c||e(a)});var o=L(i,2),s=F(o),l=e=>{var n=V();vo(I(n),17,()=>z(ce),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);W8(e,{children:(e,i)=>{{let i=M(()=>z(ae)&&z(se)?.name?`${t.typedKeyPath}<${z(se).name}>.${z(n).name}`:z(r));o9(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),H(e,n)},u=e=>{let t=M(pe);var r=V(),i=I(r),a=e=>{var r=mwe(),i=F(r);{let e=M(()=>AE.isSmallScreen?2:1);lI(i,{get lines(){return z(e)},children:(e,n)=>{gt();var r=Ra();R(()=>U(r,z(t))),H(e,r)},$$slots:{default:!0}})}O(r),R(()=>K(r,`id`,`object-${n}-summary`)),H(e,r)};W(i,e=>{z(t)&&e(a)}),H(e,r)};W(s,e=>{z(ie)?e(l):e(u,-1)}),O(o),O(r),R(()=>{K(r,`aria-labelledby`,z(ie)?void 0:`object-${n}-summary`),K(o,`id`,`object-${n}-item-list`)}),H(e,r)};W(ye,e=>{(!(!l()||z(ae))||z(te))&&z(ne)&&e(be)}),H(e,me),A(),a()}var mwe,hwe,gwe,_we,vwe=s((()=>{Z(),J(),X(),$(),p(),dc(),G8(),c9(),ISe(),m7(),M6(),x7(),I7(),k7(),fwe(),sw(),jE(),mwe=B(`<div role="none" class="summary svelte-pauyt3"><!></div>`),hwe=B(`<div role="group" class="wrapper svelte-pauyt3"><!> <div role="none" class="item-list"><!></div></div>`),gwe=B(`<!> <!> <!>`,1),_we={hash:`svelte-pauyt3`,code:`.wrapper.svelte-pauyt3 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-pauyt3 {& > .group {margin-top:8px;}}.summary.svelte-pauyt3 {padding:8px;}`}}));function ywe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.fields),o=M(()=>t.fieldConfig.types),s=M(()=>E(t.fieldConfig.typeKey,`type`)),c=M(()=>At(n()?.currentValues[t.locale])??{}),l=M(()=>Object.entries(z(c)).some(([e,n])=>!!e.startsWith(`${t.keyPath}.`)&&!!n)),u=M(()=>Array.isArray(z(o))),d=M(()=>`${t.keyPath}.${z(s)}`),f=M(()=>z(u)?z(o)?.find(({name:e})=>e===z(c)[z(d)]):void 0),p=M(()=>z(f)?z(f).label||z(f).name:void 0),m=M(()=>(z(u)?z(f)?.fields:z(a))??[]);var h=V(),g=I(h),_=e=>{OCe(e,{get label(){return z(p)},children:(e,n)=>{var r=V();vo(I(r),17,()=>z(m),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);W8(e,{children:(e,i)=>{{let i=M(()=>z(u)&&z(f)?.name?`${t.typedKeyPath}<${z(f).name}>.${z(n).name}`:z(r));M7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),H(e,r)},$$slots:{default:!0}})};W(g,e=>{z(l)&&e(_)}),H(e,h),A(),i()}var bwe=s((()=>{Z(),J(),G8(),MCe(),N7(),M6()}));function xwe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Lt(`field-editor`)??{},o=q(t,`required`,3,!0),s=q(t,`readonly`,3,!1),c=q(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.i18n),u=M(()=>t.fieldConfig.max),d=M(()=>E(t.fieldConfig.dropdown_threshold,5)),f=e=>{n()&&Object.keys(At(n()[a])??{}).forEach(n=>{z(l)!==`duplicate`&&n!==t.locale||w7({locale:n,valueStoreKey:a,keyPath:t.keyPath,manipulate:e})})},p=e=>{f(({valueList:t})=>{t.push(e)})},m=e=>{f(({valueList:t})=>{t.splice(t.indexOf(e),1)})};var h=V(),g=I(h),_=e=>{kce(e,tc({get disabled(){return s()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get options(){return t.options}},()=>({values:t.currentValue}),{get max(){return z(u)},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onAddValue:({detail:{value:e}})=>{p(e)},onRemoveValue:({detail:{value:e}})=>{m(e)},onReorder:({detail:{values:e}})=>{f(({valueList:t})=>{t.splice(0,t.length,...e)})}}))},v=e=>{tce(e,{get"aria-labelledby"(){return`${t.fieldId??``}-label`},children:(e,n)=>{var r=V();vo(I(r),19,()=>t.options,({label:e,value:t},n)=>`${n}-${t}`,(e,n)=>{let r=()=>z(n).label,i=()=>z(n).value;{let n=M(()=>t.currentValue?.includes(i())??!1);HI(e,{get label(){return r()},get value(){return i()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get checked(){return z(n)},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{checked:e}})=>{e?p(i()):m(i())}})}}),H(e,r)},$$slots:{default:!0}})};W(g,e=>{t.options.length>z(d)?e(_):e(v,-1)}),H(e,h),A(),i()}var Swe=s((()=>{Z(),J(),$(),dc(),M6(),fCe()}));function Cwe(e,t){k(t,!0);let n=q(t,`currentValue`,15),r=q(t,`required`,3,!0),i=q(t,`readonly`,3,!1),a=q(t,`invalid`,3,!1),o=q(t,`options`,7),s=M(()=>E(t.fieldConfig.dropdown_threshold,5)),c=N(void 0);ri(()=>{z(c)||P(c,o()[0]?.value===void 0?`string`:typeof o()[0]?.value,!0)}),ri(()=>{!r()&&!o().some(({value:e})=>!e)&&o([{label:Y(`unselected_option`),value:z(c)===`number`?null:``,searchValue:``},...o()])});var l=V(),u=I(l),d=e=>{QR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return n()},set value(e){n(e)},children:(e,t)=>{var r=V();vo(I(r),19,o,({label:e,value:t,searchValue:n},r)=>`${r}-${t}`,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;{let t=M(()=>i()===n());UL(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get searchValue(){return a()},get selected(){return z(t)},wrap:!0})}}),H(e,r)},$$slots:{default:!0}})},f=e=>{hR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{value:e}})=>{n(e)},children:(e,t)=>{var r=V();vo(I(r),19,o,({label:e,value:t},n)=>`${n}-${t}`,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value;{let t=M(()=>i()===n());yR(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get checked(){return z(t)}})}}),H(e,r)},$$slots:{default:!0}})};W(u,e=>{o().length>z(s)?e(d):e(f,-1)}),H(e,l),A()}var wwe=s((()=>{Z(),J(),X(),$()}));function Twe(e,t){k(t,!0);let n=q(t,`currentValue`,15),r=q(t,`required`,3,!0),i=q(t,`readonly`,3,!1),a=q(t,`invalid`,3,!1),o=q(t,`sortOptions`,3,!1),s=M(()=>t.fieldConfig.options),c=M(()=>t.fieldConfig.multiple),l=M(()=>z(c)?xwe:Cwe),u=M(()=>{let e=z(s).map(e=>d(e)?e:{label:e,value:e});return o()&&e.sort((e,t)=>Fp(e.label,t.label)),e});var f=V();lo(I(f),()=>JSON.stringify(z(u)),e=>{var o=V();Mo(I(o),()=>z(l),(e,o)=>{o(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get fieldId(){return t.fieldId},get fieldConfig(){return t.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get options(){return z(u)},get currentValue(){return n()},set currentValue(e){n(e)}})}),H(e,o)}),H(e,f),A()}var Ewe=s((()=>{Z(),J(),p(),Ip(),Swe(),wwe()}));function Dwe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Lt(`field-editor`)??{},o=q(t,`currentValue`,15),s=q(t,`required`,3,!0),c=q(t,`readonly`,3,!1),l=q(t,`invalid`,3,!1),u=M(()=>t.fieldConfig.collection),d=M(()=>t.fieldConfig.file),f=M(()=>z(d)?[TC(z(u),z(d))].filter(e=>!!e):iN(z(u))),p=M(()=>n()?.[a]?.[t.locale]),m=M(()=>n()?.currentSlugs[t.locale]??n()?.currentSlugs._),h=M(()=>({...t.fieldConfig,widget:`select`,options:LN({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(f),currentLocaleValues:z(p),currentSlug:z(m)})}));var g=Owe();Twe(F(g),{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return t.fieldId},get fieldLabel(){return t.fieldLabel},get fieldConfig(){return z(h)},get readonly(){return c()},get required(){return s()},get invalid(){return l()},sortOptions:!0,get currentValue(){return o()},set currentValue(e){o(e)}}),O(g),H(e,g),A(),i()}var Owe,kwe=s((()=>{Z(),J(),dc(),Ewe(),cN(),DC(),M6(),zN(),Owe=B(`<div role="none" class="wrapper"><!></div>`)}));function Awe(e,t){k(t,!0);let n=M(()=>t.fieldConfig.collection),r=M(()=>t.fieldConfig.file),i=M(()=>E(t.fieldConfig.multiple,!1)),a=M(()=>E(t.fieldConfig.value_field,`{{slug}}`)),o=M(()=>XC(t.locale)),s=M(()=>z(r)?[TC(z(n),z(r))].filter(e=>!!e):iN(z(n))),c=M(()=>LN({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(s)})),l=M(()=>(z(i)?t.currentValue:[t.currentValue]).filter(e=>e!==void 0).map(e=>{let t=z(c).find(t=>t.value===e)?.label;return t&&t!==e?[`slug`,`{{slug}}`,`{{fields.slug}}`].includes(z(a))?t:`${t} (${e})`:e}));var u=V(),d=I(u),f=e=>{var n=jwe(),r=F(n,!0);O(n),R((e,t,i)=>{K(n,`lang`,e),K(n,`dir`,t),U(r,i),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale),()=>z(o).format(z(l))]),H(e,n)};W(d,e=>{z(l).length&&e(f)}),H(e,u),A()}var jwe,Mwe=s((()=>{Z(),J(),cN(),DC(),zN(),QC(),jwe=B(`<p> </p>`)})),L7,Nwe,Pwe,Fwe,Iwe,R7,z7=s((()=>{L7=/^.+?:\w+:/,Nwe=[`rich_text`,`raw`],Pwe={rich_text:`rich-text`,raw:`plain-text`},Fwe=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading-one`,`heading-two`,`heading-three`,`heading-four`,`heading-five`,`heading-six`,`bulleted-list`,`numbered-list`,`quote`],Iwe={bold:`bold`,italic:`italic`,strikethrough:`strikethrough`,code:`code`,link:`link`,"heading-one":`heading-1`,"heading-two":`heading-2`,"heading-three":`heading-3`,"heading-four":`heading-4`,"heading-five":`heading-5`,"heading-six":`heading-6`,"bulleted-list":`bulleted-list`,"numbered-list":`numbered-list`,quote:`blockquote`,"code-block":`code-block`},R7=[`code-block`,`image`]})),Lwe,Rwe,B7,zwe,Bwe=s((()=>{GS(),tT(),Lwe=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a,singleCustomTimeZone:o}=WS(n),s=typeof i==`string`&&!!i,c=typeof a==`string`&&!!a,l=!1,u=!1;if(t&&(s||c)){let e=$w({currentValue:t,fieldConfig:n,timeZone:o});if(e){let t=document.createElement(`input`);t.type=r,s&&(t.min=i),c&&(t.max=a),t.value=e,{rangeUnderflow:l,rangeOverflow:u}=t.validity}}return{validity:{rangeUnderflow:l,rangeOverflow:u},detail:{hasMin:s,hasMax:c,invalid:l||u}}},Rwe=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),B7=e=>Rwe.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),zwe=(e,t)=>{if(e===`date`)return t;if(e===`time`)return B7(t);let[n,r]=t.split(`T`);return`${n}, ${B7(r)}`}})),V7,H7,Vwe=s((()=>{X(),jP(),GS(),Bwe(),V7=({direction:e,limitKey:t,limitValue:n,fieldType:r,type:i,canAddMultiValue:a})=>r===`datetime`&&typeof n==`string`?Y(`validation.range_${e}.${i}`,{values:{[t]:zwe(i,n)}}):Y(r===`number`?`validation.range_${e}.number`:a?`validation.range_${e}.add`:`validation.range_${e}.select`,{values:{[t]:n}}),H7=({validity:e,fieldConfig:t})=>{let n=[],{widget:r=`string`}=t,{pattern:i=[]}=t,a=r===`datetime`,o=a?WS(t):{},s=r===`string`?t.type??`text`:a?o.type:r===`number`?`number`:void 0,{min:c,max:l}=a?o:t,u=r===`list`||r===`keyvalue`||xP(t);if(e.valueMissing&&n.push(Y(`validation.value_missing`)),e.tooShort){let{minlength:e}=t;n.push(Y(`validation.too_short`,{values:{min:e}}))}if(e.tooLong){let{maxlength:e}=t;n.push(Y(`validation.too_long`,{values:{max:e}}))}return e.rangeUnderflow&&n.push(V7({direction:`underflow`,limitKey:`min`,limitValue:c,fieldType:r,type:s,canAddMultiValue:u})),e.rangeOverflow&&n.push(V7({direction:`overflow`,limitKey:`max`,limitValue:l,fieldType:r,type:s,canAddMultiValue:u})),e.patternMismatch&&n.push(i[1]),e.typeMismatch&&n.push(Y(`validation.type_mismatch.${s}`)),n}})),Hwe,Uwe=s((()=>{Hwe=({keyPath:e,value:t,valueMap:n,fieldConfig:r,validities:i,locale:a})=>{let{output_code_only:o=!1,keys:s={code:`code`,lang:`lang`}}=r,c=(e.match(`(.+)\\.(?:${s.code}|${s.lang})$`)?.[1]??``)||e;return c in i[a]?{skip:!0,keyPath:c,value:t}:{skip:!1,keyPath:c,value:o?t:n[`${c}.${s.code}`]}}})),Wwe,Gwe,Kwe=s((()=>{M6(),jP(),d7(),z7(),Wwe=/(.+?)(?:\.[^.]*)?$/,Gwe=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(Wwe)?.[1],l=wP({...t,keyPath:c.replace(L7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=u7({entryDraft:D6,keyPath:c,locale:i});return a&&!u.length?n.valueMissing=!0:typeof o==`number`&&u.length<o?n.rangeUnderflow=!0:typeof s==`number`&&u.length>s&&(n.rangeOverflow=!0),{skip:!1,keyPath:c}}})),qwe,Jwe,Ywe=s((()=>{Ip(),fb(),qwe=new Map,Jwe=({keyPath:e,value:t,valueEntries:n,validity:r,validities:i,locale:a,required:o,min:s,max:c})=>{if(e in i[a])return{skip:!0};let l=db(qwe,e,()=>RegExp(`^${jp(e)}\\.\\d+`)),u=Array.isArray(t)&&t.length?t.length:new Set(n.map(([e])=>e.match(l)?.[0]).filter(Boolean)).size;return o&&!u?r.valueMissing=!0:typeof s==`number`&&u<s?r.rangeUnderflow=!0:typeof c==`number`&&u>c&&(r.rangeOverflow=!0),{skip:!1}}})),Xwe,Zwe=s((()=>{jP(),Xwe=({fieldConfig:e,locale:t,value:n})=>{let{value_type:r=`int`,min:i,max:a}=e,o=typeof i==`number`&&n!==null&&Number(n)<i;return{validity:{rangeUnderflow:o,rangeOverflow:!o&&typeof a==`number`&&n!==null&&Number(n)>a,typeMismatch:(r===`int`||r===`float`)&&TP({fieldConfig:e,locale:t})&&n===null}}}})),U7,Qwe=s((()=>{U7=({fieldConfig:e,value:t})=>{let n=e,{widget:r=`string`,minlength:i,maxlength:a}=n,o=Number.isInteger(i)&&i<=(a??1/0),s=Number.isInteger(a)&&(i??0)<=a,c=t?[...t.trim()].length:0,l=o&&c<i,u=s&&c>a,d=!1;if(r===`string`&&t){let{type:e=`text`,prefix:r,suffix:i}=n,a=t;if(r&&a.startsWith(r)&&(a=a.slice(r.length)),i&&a.endsWith(i)&&(a=a.slice(0,-i.length)),e!==`text`){let t=document.createElement(`input`);t.type=e,t.value=a,{typeMismatch:d}=t.validity}e===`email`&&!d&&!a.split(`@`)[1]?.includes(`.`)&&(d=!0)}return{validity:{tooShort:l,tooLong:u,typeMismatch:d},detail:{count:c,hasMin:o,hasMax:s,invalid:l||u||d}}}})),$we,eTe,tTe,nTe,rTe,W7,iTe,G7,aTe=s((()=>{Zp(),M6(),Vwe(),jP(),jC(),Uwe(),Bwe(),Kwe(),o5(),Ywe(),Zwe(),z7(),Qwe(),eN(),$we={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},eTe={datetime:Lwe,number:Xwe,string:U7,text:U7},tTe={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},nTe=({value:e,required:t,validation:n,validity:r})=>{let i=typeof e==`string`?e.trim():e;if(t&&(i==null||i===``)&&(r.valueMissing=!0),Array.isArray(n)){let e=$M(n[0]);e&&!e.test(String(i))&&(r.patternMismatch=!0)}},rTe=e=>{let{draft:t,locale:n,valueMap:r,componentName:i,validities:a}=e,{collection:o,collectionName:s,fileName:c,collectionFile:l,files:u,isIndexFile:d}=t,{keyPath:f,value:p}=e,m={collectionName:s,fileName:c,componentName:i,valueMap:r,keyPath:f.replace(L7,``),isIndexFile:d},h=wP({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=xP(h),{min:b=0,max:x=1/0}=AC.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),T=TP({fieldConfig:h,locale:n}),E={...$we};if(g===`list`||y){let{skip:e}=Jwe({keyPath:f,value:p,valueEntries:w,validity:E,validities:a,locale:n,required:T,min:b,max:x});if(e)return}if(g===`object`&&T&&!p&&(E.valueMissing=!0),g===`keyvalue`){let e=Gwe({keyPath:f,getFieldArgs:m,validity:E,validities:a,locale:n,required:T,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=Hwe({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}OC.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||nTe({value:p,required:T,validation:v,validity:E});let ee=eTe[g];return ee&&Object.assign(E,ee({fieldConfig:h,locale:n,value:p}).validity),new Proxy(E,tTe)},W7=e=>{let{validities:t,locale:n,keyPath:r}=e,i=rTe(e),a=!0;return i&&(t[n][r]=i,i.valid||(a=!1)),a},iTe=({fieldConfig:e,validateArgs:t})=>{let{validities:n,locale:r,keyPath:i}=t,a=n[r][i]?.valid??W7(t),{widget:o=`string`}=e;return o===`list`&&!a5(e).hasSubFields||xP(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},G7=e=>{let t=dn(D6),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:a}=t,o={},s={},c={collectionName:n,fileName:r,isIndexFile:i,keyPath:``,valueMap:{}},l=!0;return Object.entries(t[e]).forEach(([e,n])=>{let r=Object.entries(n);if(!a[e]){o[e]=Object.fromEntries(r.map(([e])=>[e,{valid:!0}])),s[e]=Object.fromEntries(r.map(([e])=>[e,[]]));return}let i={draft:t,locale:e,valueMap:n,validities:o};o[e]={},s[e]={},r.forEach(([t,r])=>{let[a]=t.match(L7)??[],u=a?n[`${a}__sc_component_name`]:void 0,d=wP({...c,keyPath:t.replace(L7,``),valueMap:n,componentName:u});if(!d)return;if(vP.test(t)){let n=t.replace(vP,``),{valid:r,validateItems:a}=iTe({fieldConfig:d,validateArgs:{...i,keyPath:n,value:``,componentName:u}});if(r||(l=!1),!(n in s[e])){let t=o[e][n];t&&(s[e][n]=H7({validity:t,fieldConfig:d}))}if(!a)return}W7({...i,keyPath:t,value:r,componentName:u})||(l=!1);let f=o[e][t];f&&(s[e][t]=H7({validity:f,fieldConfig:d}))})}),{valid:l,validities:o,validationMessages:s}}}));function oTe(e,t){let n=za();k(t,!0),G(e,dTe);let r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),o=q(t,`mode`,3,`block`),s=q(t,`inline`,3,!1),c=q(t,`collapsed`,3,!1),l=q(t,`values`,7),u=q(t,`onChange`,3,()=>void 0),d=N(void 0),f=N(``),p=N(``),m=N(``),h=N(!c()),g=N(!1),_=N(void 0),v=N(!1),y=M(()=>z(p)?`${z(p)}:${n}:`:``),b=M(()=>z(m)?`${z(m)}:${n}:`:``),x=M(()=>t.fields.find(e=>e.widget===`string`||e.widget===`text`||!e.widget)),S=()=>z(d),C=`extraValues`,w,T=M(()=>{if(r()&&z(f)&&z(p))return hc(Object.fromEntries(Object.entries(At(r()[C][z(f)]??{})).filter(([e])=>e.startsWith(z(y))).map(([e,t])=>[e.replace(z(y),``),t])))}),E=()=>{P(_,z(T)?{...z(T)}:void 0,!0),P(g,!0)},ee=()=>{r()&&z(f)&&z(p)&&z(_)&&(Object.keys(r()[C][z(f)]??{}).forEach(e=>{e.startsWith(z(y))&&delete r()[C][z(f)][e]}),Object.assign(r()[C][z(f)],Object.fromEntries(Object.entries(mc(z(_))).map(([e,t])=>[`${z(y)}${e}`,t]))))},te=()=>{P(g,!1),u()(new CustomEvent(`remove`))},ne=()=>{let{validities:e}=G7(`extraValues`);D6.update(t=>t&&{...t,validities:Object.fromEntries(Object.keys(t.validities).map(n=>[n,{...t.validities[n],...e[n]}]))});let t=e[z(f)]??{};Object.entries(t).some(([e,t])=>e.startsWith(z(y))&&!t.valid)||(P(v,!1),P(g,!1),u()(new CustomEvent(`update`,{detail:z(T)})),P(_,void 0))},re=()=>{z(v)?(P(g,!1),u()(new CustomEvent(`remove`))):(ee(),P(g,!1),P(_,void 0))},ie=(e,n)=>{if(!e||!n)return null;let r=mc(n),i=GP(e,(e,n)=>{let{value:i,transformations:a}=tC(n),o=i.replace(/^fields\./,``),s=r[o];return s==null?``:(a.length&&(s=lC({fieldConfig:t.fields.find(e=>e.name===o),value:s,transformations:a,locale:z(f)})),String(s))});return i!==GP(e,()=>``)&&i.trim()?i.trim():null},ae=M(()=>{let e=t.fields.some(e=>z(T)?.[e.name]!==void 0)?z(T):l();if(t.summary&&e){let n=ie(t.summary,e);if(n)return n}if(z(x)&&e){let t=e[z(x).name];if(typeof t==`string`&&t.trim())return t.trim()}return t.label});lc(()=>(window.requestAnimationFrame(()=>{let e=z(d)?.closest(`[data-locale]`),t=z(d)?.closest(`[data-key-path]`);P(f,e?.dataset.locale,!0),P(p,t?.dataset.keyPath,!0),o()!==`dialog`&&P(m,t?.dataset.typedKeyPath,!0),P(v,!l()),o()===`dialog`&&z(v)&&E()}),()=>{r()&&(Object.keys(r()[C][z(f)]??{}).forEach(e=>{e.startsWith(z(y))&&delete r()[C][z(f)][e]}),Object.keys(r().validities[z(f)]??{}).forEach(e=>{e.startsWith(z(y))&&delete r().validities[z(f)][e]}))})),ri(()=>{l(),z(f),z(p),Gi(()=>{if(r()&&z(f)&&z(p)){let{defaultLocale:e}=r();if(l(l()??hc(b7({fields:t.fields,locale:z(f),defaultLocale:e}))??{}),l().__sc_component_name=t.componentName,!(0,K7.default)(l(),z(T))){let e=Object.fromEntries(Object.entries(mc(l())).map(([e,t])=>[`${z(y)}${e}`,t]));D6.update(t=>t&&(Object.assign(t[C][z(f)],e),t))}}})}),ri(()=>{o()!==`dialog`&&(z(T),Gi(()=>{(0,K7.default)(w,z(T))||(u()(new CustomEvent(`update`,{detail:z(T)})),w=z(T))}))});var oe={getElement:S},se=V(),ce=I(se),le=e=>{var n=lTe(),r=I(n),i=F(r,!0);O(r),qs(r,e=>P(d,e),()=>z(d)),qI(L(r,2),{get title(){return t.label},size:`large`,showOk:!1,showCancel:!1,get open(){return z(g)},set open(e){P(g,e,!0)},footer:e=>{var t=sTe(),n=I(t);{let e=M(()=>Y(`remove`));bI(n,{variant:`secondary`,get label(){return z(e)},onclick:()=>{te()}})}var r=L(n,2);PI(r,{flex:!0});var i=L(r,2);{let e=M(()=>Y(z(v)?`insert`:`update`));bI(i,{variant:`primary`,get label(){return z(e)},onclick:()=>{ne()}})}var a=L(i,2);{let e=M(()=>Y(`cancel`));bI(a,{variant:`secondary`,get label(){return z(e)},onclick:()=>{re()}})}H(e,t)},children:(e,n)=>{var r=cTe(),i=F(r),a=e=>{var n=V();vo(I(n),17,()=>t.fields,e=>e.name,(e,n)=>{o9(e,{get locale(){return z(f)},get keyPath(){return`${z(y)??``}${z(n).name??``}`},get typedKeyPath(){return`${z(y)??``}${z(n).name??``}`},get fieldConfig(){return z(n)},context:`rich-text-editor-component`,get componentName(){return t.componentName},valueStoreKey:C})}),H(e,n)};W(i,e=>{z(f)&&z(p)&&e(a)}),O(r),H(e,r)},$$slots:{footer:!0,default:!0}}),R(()=>{ds(r,1,`component ${s()?`inline`:`block`} placeholder`,`svelte-1l1n28m`),K(r,`aria-label`,t.label),K(r,`title`,t.label),K(r,`data-key-path-prefix`,z(y)),K(r,`data-component-name`,t.componentName),U(i,z(ae))}),Ta(`click`,r,()=>{E()}),Ta(`keydown`,r,e=>{e.key===`Enter`&&(e.preventDefault(),E()),e.key===`Backspace`&&(e.preventDefault(),u()(new CustomEvent(`remove`)))}),H(e,n)},ue=e=>{var r=uTe(),i=F(r);p7(i,{get label(){return t.label},get controlId(){return`object-${n}-item-list`},get expanded(){return z(h)},set expanded(e){P(h,e,!0)},endContent:e=>{{let t=e=>{tI(e,{name:`close`})},n=M(()=>Y(`remove`));bI(e,{size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>{u()(new CustomEvent(`remove`))},startIcon:t,$$slots:{startIcon:!0}})}},$$slots:{endContent:!0}});var a=L(i,2),o=F(a),c=e=>{var n=V();vo(I(n),17,()=>t.fields,e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{o9(e,{get locale(){return z(f)},get keyPath(){return`${z(y)??``}${z(n).name??``}`},get typedKeyPath(){return`${z(b)??``}${z(n).name??``}`},get fieldConfig(){return z(n)},context:`rich-text-editor-component`,get componentName(){return t.componentName},valueStoreKey:C})},$$slots:{default:!0}})}),H(e,n)};W(o,e=>{z(f)&&z(p)&&z(h)&&e(c)}),O(a),O(r),qs(r,e=>P(d,e),()=>z(d)),R(()=>{ds(r,1,`component ${s()?`inline`:`block`} wrapper`,`svelte-1l1n28m`),K(r,`aria-label`,t.label),K(r,`data-key-path-prefix`,z(y)),K(r,`data-component-name`,t.componentName),K(a,`id`,`object-${n}-item-list`)}),wa(`keydown`,r,e=>{e.stopPropagation()},!0),Ta(`keydown`,r,e=>{!e.target.matches(`button, input, textarea`)&&e.key!==`Tab`&&e.preventDefault(),e.target===z(d)&&e.key===`Backspace`&&u()(new CustomEvent(`remove`))}),H(e,r)};W(ce,e=>{o()===`dialog`?e(le):e(ue,-1)}),H(e,se);var de=A(oe);return a(),de}var K7,sTe,cTe,lTe,uTe,dTe,fTe=s((()=>{Z(),J(),X(),$(),K7=u(CO()),gc(),dc(),G8(),c9(),m7(),YP(),uC(),M6(),x7(),aTe(),sTe=B(`<!> <!> <!> <!>`,1),cTe=B(`<div role="none" class="fields svelte-1l1n28m"><!></div>`),lTe=B(`<span role="button" contenteditable="false" tabindex="0"> </span> <!>`,1),uTe=B(`<div role="group" contenteditable="false" tabindex="0"><!> <div role="none" class="item-list"><!></div></div>`),dTe={hash:`svelte-1l1n28m`,code:`.component.svelte-1l1n28m {&.block {display:block;&:not(:first-child) {margin-top:var(--sui-paragraph-margin);}&:not(:last-child) {margin-bottom:var(--sui-paragraph-margin);}}&.inline {display:inline-block;}}.wrapper.svelte-1l1n28m {border:1px solid var(--sui-secondary-border-color);border-radius:4px;width:100%;color:var(--sui-secondary-foreground-color); /* Reset color within a link */background-color:var(--sui-primary-background-color);white-space:normal;-webkit-user-select:none;user-select:none;&:focus {outline-color:var(--sui-primary-accent-color-translucent);}

    /* Make the input fields compact within the built-in image component */&:is([data-component-name='image']:where(.svelte-1l1n28m), [data-component-name='linked-image']:where(.svelte-1l1n28m)) {
        @media (768px <= width) {[data-field-type] {border-width:0;}[data-field-type='string'] {display:flex;align-items:center;gap:8px;padding-block:0 16px;h4 {margin-bottom:0 !important;}.field-wrapper {flex:auto;}}
        }button {margin:var(--sui-focus-ring-width);}}}.placeholder.svelte-1l1n28m {border:dashed 1px currentColor;border-color:hsl(from currentColor h s l / 0.5);border-radius:2px;padding-inline:0.4em;cursor:pointer;-webkit-user-select:none;user-select:none;&:hover {border-color:currentColor;}&:focus {outline:2px solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}&.block {width:fit-content;}&.inline:not(:first-child) {margin-inline-start:var(--sui-paragraph-margin);}}.fields.svelte-1l1n28m {display:flex;flex-direction:column;gap:16px;}`},Ea([`click`,`keydown`])})),q7,pTe,mTe=s((()=>{$J(),dc(),fTe(),UN(),q7=/^<(?<tagName>[a-z]+)/i,pTe=e=>{let{id:t,label:n,collapsed:r,mode:i,summary:a,fields:o,pattern:s,toBlock:c,toPreview:l}=e,u=!BN(s),d=l?.({}),f=c({}),p=typeof d==`string`?d.trim().match(q7)?.groups?.tagName??(typeof f==`string`?f.trim().match(q7)?.groups?.tagName:void 0):void 0;class m extends _J{__props;constructor(e,t){super(t),this.__props=e}static getType(){return t}isInline(){return u}static clone(e){return new m(e.__props,e.__key)}static importJSON(e){return new m().updateFromJSON(e)}exportJSON(){return{...VN(this.__props??{}),type:t,version:1}}createDOM(){let e,s=null,c,l=!1,d=()=>{l||(l=!0,Wa(c))};return c=Ha(oTe,{target:document.createElement(`div`),props:{componentName:t,label:n,collapsed:r,mode:i,inline:u,summary:a,fields:o,values:this.__props,onChange:async({type:t,detail:n})=>{await Hi(),s??=qH(e);let{activeElement:r}=document,i=r,a=i?.matches(`[contenteditable="true"]`)?window.getSelection():null,o=a&&a.rangeCount>0?a.getRangeAt(0).cloneRange():null;s?.update(()=>{if(t===`update`)try{this.getWritable().__props=n}catch{}t===`remove`&&(d(),this.remove())},{discrete:!0,onUpdate:()=>{i&&document.body.contains(i)&&(i.focus(),o&&a&&(a.removeAllRanges(),a.addRange(o)))}})}}}),er(),e=c.getElement(),window.requestAnimationFrame(()=>{e.focus(),e.closest(`.field`)?.addEventListener(`Unmount`,d,{once:!0});let{parentElement:t}=e;if(t){let n=new MutationObserver(()=>{e.isConnected||(d(),n.disconnect())});n.observe(t,{childList:!0})}}),e}exportDOM(){return{element:this.createDOM()}}static importDOM(){let e={};return p&&(e[p]=()=>({conversion:e=>({node:new m(Object.fromEntries(o.map(({name:t})=>[t,e[t]??``])))}),priority:3})),t===`linked-image`&&Object.assign(e,{a:e=>{if(e.firstChild?.nodeName.toLowerCase()===`img`){let{href:t}=e,{src:n,alt:r,title:i}=e.firstChild;return{conversion:()=>({node:new m({src:n,alt:r,title:i,link:t}),after:()=>[]}),priority:4}}return null}}),e}updateDOM(){return!1}}return m}})),hTe,gTe=s((()=>{UN(),hTe=({componentDef:e,CustomNode:t})=>{let{id:n,pattern:r,fromBlock:i,toBlock:a}=e,o=new RegExp(r.source,r.flags.replace(`g`,``)),s=e=>i?.(e)??e.groups??{},c=e=>e instanceof t&&e.getType()===n,l=e=>c(e)?a(VN(e.__props??{})):null;return BN(r)?{type:`multiline-element`,dependencies:[t],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:e,rootNode:n,startLineIndex:r})=>{let i=e.slice(r).join(`
`),[a]=i.match(o)??[];if(!a||!i.startsWith(a))return null;let c=a.match(o),l=r+a.split(`
`).length-1;return c?(n.append(new t(s(c))),[!0,l]):[!1,l]},replace:()=>void 0,export:l}:{type:`text-match`,dependencies:[t],importRegExp:o,regExp:o,replace:(e,n)=>{e.replace(new t(s(n)))},export:l}}})),J7,_Te,vTe,yTe=s((()=>{mTe(),gTe(),J7=new Map,_Te=e=>{let t=pTe(e);return{node:t,createNode:e=>new t(e),transformer:hTe({componentDef:e,CustomNode:t})}},vTe=class{constructor(e){let{id:t}=e,n=J7.get(t),r=n??_Te(e);n||J7.set(t,r),Object.assign(this,{...e,...r})}}}));function bTe(e,t){k(t,!0),G(e,STe);let n=()=>j(bF,`$cmsConfig`,i),r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),o=/^data:(?<type>image\/.+?);base64,.+/,s=n()?.field_defaults?.richtext??{},{fieldContext:c,parentComponentNames:l,valueStoreKey:u}=Lt(`field-editor`)??{},d=c===`rich-text-editor-component`,f=l.at(-1),p=q(t,`currentValue`,15),m=q(t,`required`,3,!0),h=q(t,`readonly`,3,!1),g=q(t,`invalid`,3,!1),_=N(void 0),v=N(``),y=0,b=M(()=>E(t.fieldConfig.modes,()=>s.modes??[...Nwe],!0)),x=M(()=>E(t.fieldConfig.buttons,()=>s.buttons??[...Fwe],!0)),S=M(()=>E(t.fieldConfig.editor_components,()=>s.editor_components??[...R7,...pp.keys()],!0)),C=M(()=>t.fieldConfig.allow_nested_components),w=M(()=>E(t.fieldConfig.linked_images,()=>s.linked_images??!0,!0)),T=M(()=>E(t.fieldConfig.use_markdown_shortcuts,()=>s.use_markdown_shortcuts??!0,!0)),ee=M(()=>E(t.fieldConfig.minimal,()=>s.minimal??!1,!0)),te=M(()=>z(b).map(e=>Pwe[e]).filter(Boolean)),ne=M(()=>r()?.isIndexFile??!1),re=M(()=>r()?.collectionName??``),ie=M(()=>r()?.fileName),ae=M(()=>At(r()?.[u][t.locale])??{}),oe=M(()=>[...z(x),...z(S).includes(`code-block`)?[`code-block`]:[]].map(e=>Iwe[e]).filter(Boolean)),se=M(()=>{let e=z(C);return d&&(e=wP({collectionName:z(re),fileName:z(ie),isIndexFile:z(ne),valueMap:z(ae),keyPath:t.keyPath.match(/^[^:]+/)?.[0]})?.allow_nested_components),e??s.allow_nested_components??!0}),ce=M(()=>d&&!z(se)?[]:z(S).filter(e=>z(se)!==`exclude_self`||!l.includes(e)).map(e=>nP(e===`image`&&z(w)?`linked-image`:e)).filter(e=>!!e).map(e=>new vTe(e))),le=M(()=>z(ce).find(({id:e})=>e===`image`||e===`linked-image`)),ue=M(()=>L5(I5({collectionName:z(re),fileName:z(ie),componentName:f,typedKeyPath:t.typedKeyPath,isIndexFile:z(ne)}))),de=async({target:e,images:t})=>{let n=e?.closest(`div`),i=qH(n);if(!r()||!z(le)||!n?.matches(`.lexical-root`)||!i)return;let a=z(le).fields?.find(({name:e})=>e===`src`),{config:o}=OF({fieldConfig:a}),s=r(),c=z(ue);for(let{file:e,src:n,alt:r=``}of t){let t=n;if(e){let{value:n}=await K5({draft:s,resource:{file:e,folder:c},libraryConfig:o});t=n}if(!t)continue;let a=t;i.update(()=>{eH([z(le).createNode({src:a,alt:r}),IH()])})}},D=async e=>{let{target:t,clipboardData:n}=e,r=n?.items;if(!r)return;let i=[],a=[...r].findIndex(({kind:e,type:t})=>e===`file`&&lM.includes(t)),o=[...r].findIndex(({kind:e,type:t})=>e===`string`&&t===`text/html`);if(a>-1&&o>-1){let t=a>-1?r[a].getAsFile():void 0;if(!t)return;r.clear(),e.stopPropagation();let n=``,s=t.name,c=await new Promise(e=>{r[o].getAsString(t=>{e(new DOMParser().parseFromString(t,`text/html`).querySelector(`img`))})});if(c&&(n=c.alt,/^https?:/.test(c.src))){let e=new URL(c.src).pathname.split(`/`).pop()??``;(aM.test(e)||cM.test(e))&&(s=e)}i=[{file:new File([t],s,{type:t.type}),alt:n}]}else i=[...n.files].filter(({type:e})=>lM.includes(e)).map(e=>({file:e}));i.length&&(i=i.map(({file:e,alt:t},n)=>{if(e?.name===`image.png`){let{year:t,month:r,day:a,hour:o,minute:s,second:c}=tb(),l=`${t}${r}${a}-${o}${s}${c}${i.length>1?`-${n+1}`:``}.png`;e=new File([e],l,{type:e.type})}return{file:e,alt:t}}),await de({target:t,images:i}))},fe=async e=>{let{target:t,dataTransfer:n}=e,r=n?.files,i=[];if(r?.length)i=[...r].filter(({type:e})=>lM.includes(e)).map(e=>({file:e}));else{let t=e.dataTransfer?.getData(`text/html`);if(t){let e=new DOMParser().parseFromString(t,`text/html`).querySelector(`img`);if(e){let{src:t,alt:n}=e,r=t.match(o),a;if(r){let e=r.groups?.type??``;if(lM.includes(e))try{let n=await(await fetch(t)).blob(),{year:r,month:i,day:o,hour:s,minute:c,second:l}=tb(),u=`${r}${i}${o}-${s}${c}${l}.${e.split(`/`)[1]}`;a=new File([n],u,{type:e})}catch{return}}i=[{file:a,src:t,alt:n}]}}}i.length&&await de({target:t,images:i})},pe=()=>{let e=typeof p()==`string`?p():``;z(v)!==e&&P(v,e,!0),!(!r()||d)&&(window.clearTimeout(y),y=window.setTimeout(()=>{Object.keys(r()?.extraValues[t.locale]??{}).forEach(e=>{let[n]=e.match(L7)??[];n?.startsWith(`${t.keyPath}:`)&&!z(_)?.querySelector(`[data-key-path-prefix="${n}"]`)&&delete r().extraValues[t.locale][e]})},500))},me=()=>{let e=z(v);p()!==e&&p(e)};ri(()=>{p(),Gi(()=>{pe()})}),ri(()=>{z(v),Gi(()=>{me()})});var he=xTe();let ge;ro(F(he),nT,null,e=>{var n=V();lo(I(n),()=>JSON.stringify(t.fieldConfig),e=>{{let n=M(()=>GC(t.locale)),r=M(()=>KC(t.locale));Tfe(e,{get lang(){return z(n)},get dir(){return z(r)},get modes(){return z(te)},get buttons(){return z(oe)},get components(){return z(ce)},get useMarkdownShortcuts(){return z(T)},flex:!0,get readonly(){return h()},get required(){return m()},get invalid(){return g()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,onpastecapture:e=>{D(e)},ondrop:e=>{fe(e)},get value(){return z(v)},set value(e){P(v,e,!0)}})}}),H(e,n)}),O(he),qs(he,e=>P(_,e),()=>z(_)),R(()=>ge=ds(he,1,`wrapper svelte-duifo7`,null,ge,{minimal:z(ee)})),H(e,he),A(),a()}var xTe,STe,CTe=s((()=>{Z(),J(),$(),nb(),rT(),$J(),dc(),TF(),yp(),M6(),jP(),V5(),q5(),z7(),yTe(),rP(),QC(),kF(),dM(),xTe=B(`<div role="none"><!></div>`),STe={hash:`svelte-duifo7`,code:`.wrapper.svelte-duifo7 {--sui-paragraph-margin: 20px;display:contents;&.minimal {:is([role='textbox'], textarea) {overflow:auto;max-height:240px;}}
      @media (width < 768px) {.sui.text-editor {
          /* Remove the section padding */margin:0 calc(var(--field-editor-padding) * -1) calc(var(--field-editor-padding) * -1);width:100dvw;}:is(.sui.toolbar, .lexical-root, textarea) {border:0;border-radius:0;}
      }}`}}));function wTe(){return{useNewRenderer:!0,renderer:{heading(...e){return Ax.Renderer.prototype.heading.call(this,...e).replace(/^<(h\d)/,`<$1 dir="auto"`)},list(...e){return Ax.Renderer.prototype.list.call(this,...e).replace(/^<(ol|ul)/,`<$1 dir="auto"`)},paragraph(...e){return Ax.Renderer.prototype.paragraph.call(this,...e).replace(/^<p/,`<p dir="auto"`)}}}}var TTe=s((()=>{TS()})),ETe=c((e=>{
/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,te());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?te():S=!1}}}var te;if(typeof y==`function`)te=function(){y(ee)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=ee,te=function(){re.postMessage(null)}}else te=function(){_(ee,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,te()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),DTe=c(((e,t)=>{t.exports=ETe()})),OTe=c((e=>{
/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var t=h();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),kTe=c(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=OTe()})),ATe=c((e=>{
/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var t=DTe(),n=h(),r=kTe();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var oe=Array.isArray,se=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ue=[],de=-1;function D(e){return{current:e}}function fe(e){0>de||(e.current=ue[de],ue[de]=null,de--)}function pe(e,t){de++,ue[de]=e.current,e.current=t}var me=D(null),he=D(null),ge=D(null),_e=D(null);function ve(e,t){switch(pe(ge,t),pe(he,e),pe(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Id(t),e=Ld(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}fe(me),pe(me,e)}function ye(){fe(me),fe(he),fe(ge)}function be(e){e.memoizedState!==null&&pe(_e,e);var t=me.current,n=Ld(t,e.type);t!==n&&(pe(he,e),pe(me,n))}function xe(e){he.current===e&&(fe(me),fe(he)),_e.current===e&&(fe(_e),qf._currentValue=le)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1<e.stack.indexOf(`
    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+Se+e+Ce}var Te=!1;function Ee(e,t){if(!e||Te)return``;Te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,Pe=t.unstable_now,Fe=t.unstable_getCurrentPriorityLevel,Ie=t.unstable_ImmediatePriority,Le=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rt(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ke(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&st(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function st(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ke(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function lt(e,t){var n=t&-t;return n=n&42?1:ut(n),(n&(e.suspendedLanes|t))===0?n:0}function ut(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ft(){var e=ce.p;return e===0?(e=window.event,e===void 0?32:lp(e.type)):e}function pt(e,t){var n=ce.p;try{return ce.p=e,t()}finally{ce.p=n}}var mt=Math.random().toString(36).slice(2),ht=`__reactFiber$`+mt,O=`__reactProps$`+mt,gt=`__reactContainer$`+mt,_t=`__reactEvents$`+mt,vt=`__reactListeners$`+mt,yt=`__reactHandles$`+mt,bt=`__reactResources$`+mt,xt=`__reactMarker$`+mt;function St(e){delete e[ht],delete e[O],delete e[_t],delete e[vt],delete e[yt]}function Ct(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=of(e);e!==null;){if(n=e[ht])return n;e=of(e)}return t}e=n,n=e.parentNode}return null}function wt(e){if(e=e[ht]||e[gt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Et(e){var t=e[bt];return t||=e[bt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Dt(e){e[xt]=!0}var Ot=new Set,kt={};function At(e,t){jt(e,t),jt(e+`Capture`,t)}function jt(e,t){for(kt[e]=t,e=0;e<t.length;e++)Ot.add(t[e])}var Mt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Nt={},Pt={};function Ft(e){return ke.call(Pt,e)?!0:ke.call(Nt,e)?!1:Mt.test(e)?Pt[e]=!0:(Nt[e]=!0,!1)}function It(e,t,n){if(Ft(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Lt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Rt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function k(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function A(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function zt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bt(e){if(!e._valueTracker){var t=A(e)?`checked`:`value`;e._valueTracker=zt(e,t,``+e[t])}}function Vt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=A(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ht(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ut=/[\n"\\]/g;function Wt(e){return e.replace(Ut,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Gt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+k(t)):e.value!==``+k(t)&&(e.value=``+k(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):qt(e,o,k(n)):qt(e,o,k(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+k(s):e.removeAttribute(`name`)}function Kt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Bt(e);return}n=n==null?``:``+k(n),t=t==null?n:``+k(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Bt(e)}function qt(e,t,n){t===`number`&&Ht(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Jt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+k(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yt(e,t,n){if(t!=null&&(t=``+k(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+k(n)}function Xt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(oe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=k(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Bt(e)}function Zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function $t(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function en(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&$t(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&$t(e,o,t[o])}function tn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var nn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),rn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function an(e){return rn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function on(){}var sn=null;function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ln=null,un=null;function dn(e){var t=wt(e);if(t&&(e=t.stateNode)){var n=e[O]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Wt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[O]||null;if(!a)throw Error(i(90));Gt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Vt(r)}break a;case`textarea`:Yt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var fn=!1;function pn(e,t,n){if(fn)return e(t,n);fn=!0;try{return e(t)}finally{if(fn=!1,(ln!==null||un!==null)&&(gu(),ln&&(t=ln,e=un,un=ln=null,dn(t),e)))for(t=0;t<e.length;t++)dn(e[t])}}function j(e,t){var n=e.stateNode;if(n===null)return null;var r=n[O]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var mn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),hn=!1;if(mn)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){hn=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{hn=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return yn=i.slice(e,1<r?1-r:void 0)}function xn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Sn(){return!0}function Cn(){return!1}function wn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Sn:Cn,this.isPropagationStopped=Cn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Sn)},persist:function(){},isPersistent:Sn}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},En=wn(Tn),Dn=f({},Tn,{view:0,detail:0}),On=wn(Dn),kn,An,jn,Mn=f({},Dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Un,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==jn&&(jn&&e.type===`mousemove`?(kn=e.screenX-jn.screenX,An=e.screenY-jn.screenY):An=kn=0,jn=e),kn)},movementY:function(e){return`movementY`in e?e.movementY:An}}),Nn=wn(Mn),Pn=wn(f({},Mn,{dataTransfer:0})),Fn=wn(f({},Dn,{relatedTarget:0})),In=wn(f({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0})),Ln=wn(f({},Tn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Rn=wn(f({},Tn,{data:0})),zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Bn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Vn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vn[e])?!!t[e]:!1}function Un(){return Hn}var Wn=wn(f({},Dn,{key:function(e){if(e.key){var t=zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=xn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Bn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Un,charCode:function(e){return e.type===`keypress`?xn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?xn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Gn=wn(f({},Mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),M=wn(f({},Dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Un})),Kn=wn(f({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),qn=wn(f({},Mn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Jn=wn(f({},Tn,{newState:0,oldState:0})),Yn=[9,13,27,32],Xn=mn&&`CompositionEvent`in window,Zn=null;mn&&`documentMode`in document&&(Zn=document.documentMode);var Qn=mn&&`TextEvent`in window&&!Zn,$n=mn&&(!Xn||Zn&&8<Zn&&11>=Zn),er=` `,tr=!1;function nr(e,t){switch(e){case`keyup`:return Yn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function rr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ir=!1;function ar(e,t){switch(e){case`compositionend`:return rr(t);case`keypress`:return t.which===32?(tr=!0,er):null;case`textInput`:return e=t.data,e===er&&tr?null:e;default:return null}}function or(e,t){if(ir)return e===`compositionend`||!Xn&&nr(e,t)?(e=bn(),yn=vn=_n=null,ir=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return $n&&t.locale!==`ko`?null:t.data;default:return null}}var sr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!sr[e.type]:t===`textarea`}function lr(e,t,n,r){ln?un?un.push(r):un=[r]:ln=r,t=Sd(t,`onChange`),0<t.length&&(n=new En(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ur=null,dr=null;function fr(e){md(e,0)}function pr(e){if(Vt(Tt(e)))return e}function mr(e,t){if(e===`change`)return t}var hr=!1;if(mn){var gr;if(mn){var _r=`oninput`in document;if(!_r){var vr=document.createElement(`div`);vr.setAttribute(`oninput`,`return;`),_r=typeof vr.oninput==`function`}gr=_r}else gr=!1;hr=gr&&(!document.documentMode||9<document.documentMode)}function yr(){ur&&(ur.detachEvent(`onpropertychange`,br),dr=ur=null)}function br(e){if(e.propertyName===`value`&&pr(dr)){var t=[];lr(t,dr,e,cn(e)),pn(fr,t)}}function xr(e,t,n){e===`focusin`?(yr(),ur=t,dr=n,ur.attachEvent(`onpropertychange`,br)):e===`focusout`&&yr()}function Sr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return pr(dr)}function Cr(e,t){if(e===`click`)return pr(t)}function N(e,t){if(e===`input`||e===`change`)return pr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var P=typeof Object.is==`function`?Object.is:wr;function Tr(e,t){if(P(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ke.call(t,i)||!P(e[i],t[i]))return!1}return!0}function Er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dr(e,t){var n=Er(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Er(n)}}function Or(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Or(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ht(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ht(e.document)}return t}function Ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var jr=mn&&`documentMode`in document&&11>=document.documentMode,Mr=null,Nr=null,Pr=null,Fr=!1;function Ir(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fr||Mr==null||Mr!==Ht(r)||(r=Mr,`selectionStart`in r&&Ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pr&&Tr(Pr,r)||(Pr=r,r=Sd(Nr,`onSelect`),0<r.length&&(t=new En(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Mr)))}function Lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Rr={animationend:Lr(`Animation`,`AnimationEnd`),animationiteration:Lr(`Animation`,`AnimationIteration`),animationstart:Lr(`Animation`,`AnimationStart`),transitionrun:Lr(`Transition`,`TransitionRun`),transitionstart:Lr(`Transition`,`TransitionStart`),transitioncancel:Lr(`Transition`,`TransitionCancel`),transitionend:Lr(`Transition`,`TransitionEnd`)},zr={},Br={};mn&&(Br=document.createElement(`div`).style,`AnimationEvent`in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),`TransitionEvent`in window||delete Rr.transitionend.transition);function Vr(e){if(zr[e])return zr[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Br)return zr[e]=t[n];return e}var F=Vr(`animationend`),I=Vr(`animationiteration`),L=Vr(`animationstart`),Hr=Vr(`transitionrun`),Ur=Vr(`transitionstart`),Wr=Vr(`transitioncancel`),Gr=Vr(`transitionend`),Kr=new Map,qr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);qr.push(`scrollEnd`);function Jr(e,t){Kr.set(e,t),At(t,[e])}var Yr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Xr=[],Zr=0,Qr=0;function $r(){for(var e=Zr,t=Qr=Zr=0;t<e;){var n=Xr[t];Xr[t++]=null;var r=Xr[t];Xr[t++]=null;var i=Xr[t];Xr[t++]=null;var a=Xr[t];if(Xr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ri(n,i,a)}}function ei(e,t,n,r){Xr[Zr++]=e,Xr[Zr++]=t,Xr[Zr++]=n,Xr[Zr++]=r,Qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ti(e,t,n,r){return ei(e,t,n,r),ii(e)}function ni(e,t){return ei(e,null,null,t),ii(e)}function ri(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ke(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ii(e){if(50<cu)throw cu=0,lu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function oi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(e,t,n,r){return new oi(e,t,n,r)}function ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,t){var n=e.alternate;return n===null?(n=si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ui(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function R(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ci(e)&&(s=1);else if(typeof e==`string`)s=Rf(e,n,me.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=si(31,n,t,a),e.elementType=ee,e.lanes=o,e;case _:return di(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=si(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=si(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=si(19,n,t,a),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function di(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function fi(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function pi(e){var t=si(18,null,null,0);return t.stateNode=e,t}function mi(e,t,n){return t=si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hi=new WeakMap;function gi(e,t){if(typeof e==`object`&&e){var n=hi.get(e);return n===void 0?(t={value:e,source:t,stack:Oe(t)},hi.set(e,t),t):n}return{value:e,source:t,stack:Oe(t)}}var _i=[],vi=0,yi=null,bi=0,xi=[],Si=0,Ci=null,wi=1,Ti=``;function Ei(e,t){_i[vi++]=bi,_i[vi++]=yi,yi=e,bi=t}function Di(e,t,n){xi[Si++]=wi,xi[Si++]=Ti,xi[Si++]=Ci,Ci=e;var r=wi;e=Ti;var i=32-Ke(r)-1;r&=~(1<<i),n+=1;var a=32-Ke(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wi=1<<32-Ke(t)+i|n<<i|r,Ti=a+e}else wi=1<<a|n<<i|r,Ti=e}function Oi(e){e.return!==null&&(Ei(e,1),Di(e,1,0))}function ki(e){for(;e===yi;)yi=_i[--vi],_i[vi]=null,bi=_i[--vi],_i[vi]=null;for(;e===Ci;)Ci=xi[--Si],xi[Si]=null,Ti=xi[--Si],xi[Si]=null,wi=xi[--Si],xi[Si]=null}function Ai(e,t){xi[Si++]=wi,xi[Si++]=Ti,xi[Si++]=Ci,wi=t.id,Ti=t.overflow,Ci=e}var ji=null,Mi=null,Ni=!1,Pi=null,Fi=!1,Ii=Error(i(519));function Li(e){throw z(gi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ii}function Ri(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ht]=e,t[O]=r,n){case`dialog`:hd(`cancel`,t),hd(`close`,t);break;case`iframe`:case`object`:case`embed`:hd(`load`,t);break;case`video`:case`audio`:for(n=0;n<fd.length;n++)hd(fd[n],t);break;case`source`:hd(`error`,t);break;case`img`:case`image`:case`link`:hd(`error`,t),hd(`load`,t);break;case`details`:hd(`toggle`,t);break;case`input`:hd(`invalid`,t),Kt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:hd(`invalid`,t);break;case`textarea`:hd(`invalid`,t),Xt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Ed(t.textContent,n)?(r.popover!=null&&(hd(`beforetoggle`,t),hd(`toggle`,t)),r.onScroll!=null&&hd(`scroll`,t),r.onScrollEnd!=null&&hd(`scrollend`,t),r.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Li(e,!0)}function zi(e){for(ji=e.return;ji;)switch(ji.tag){case 5:case 31:case 13:Fi=!1;return;case 27:case 3:Fi=!0;return;default:ji=ji.return}}function Bi(e){if(e!==ji)return!1;if(!Ni)return zi(e),Ni=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Rd(e.type,e.memoizedProps)),n=!n),n&&Mi&&Li(e),zi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Mi=af(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Mi=af(e)}else t===27?(t=Mi,Kd(e.type)?(e=rf,rf=null,Mi=e):Mi=t):Mi=ji?nf(e.stateNode.nextSibling):null;return!0}function Vi(){Mi=ji=null,Ni=!1}function Hi(){var e=Pi;return e!==null&&(Jl===null?Jl=e:Jl.push.apply(Jl,e),Pi=null),e}function z(e){Pi===null?Pi=[e]:Pi.push(e)}var Ui=D(null),Wi=null,Gi=null;function Ki(e,t,n){pe(Ui,t._currentValue),t._currentValue=n}function qi(e){e._currentValue=Ui.current,fe(Ui)}function Ji(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Yi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ji(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ji(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Xi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;P(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===_e.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[qf]:e.push(qf))}a=a.return}e!==null&&Yi(t,e,n,r),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!P(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){Wi=e,Gi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $i(e){return ta(Wi,e)}function ea(e,t){return Wi===null&&Qi(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Gi===null){if(e===null)throw Error(i(308));Gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gi=Gi.next=t;return n}var na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=od(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ha=se.S;se.S=function(e,t){Zl=Pe(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=D(null);function _a(){var e=ga.current;return e===null?Ml.pooledCache:e}function va(e,t){t===null?pe(ga,ga.current):pe(ga,t.pool)}function ya(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ba=Error(i(460)),xa=Error(i(474)),Sa=Error(i(542)),Ca={then:function(){}};function wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ta(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e;default:if(typeof t.status==`string`)t.then(on,on);else{if(e=Ml,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e}throw Da=t,ba}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Da=e,ba):e}}var Da=null;function Oa(){if(Da===null)throw Error(i(459));var e=Da;return Da=null,e}function ka(e){if(e===ba||e===Sa)throw Error(i(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Ta(Aa,e,t)}function Na(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Pa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=li(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=fi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===E&&Ea(i)===t.type)?(t=a(t,n.props),Na(t,n),t.return=e,t):(t=R(n.type,n.key,n.props,null,e.mode,r),Na(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=di(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=fi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=R(t.type,t.key,t.props,null,e.mode,n),Na(n,t),n.return=e,n;case g:return t=mi(t,e.mode,n),t.return=e,t;case E:return t=Ea(t),f(e,t,n)}if(oe(t)||re(t))return t=di(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===x)return f(e,ea(e,t),n);Pa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case E:return n=Ea(n),p(e,t,n,r)}if(oe(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===x)return p(e,t,ea(e,n),r);Pa(e,n)}return null}function h(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=Ea(r),h(e,t,n,r,i)}if(oe(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return h(e,t,n,Ma(r),i);if(r.$$typeof===x)return h(e,t,n,ea(t,r),i);Pa(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,g=null;d!==null&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var _=p(i,d,s[m],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,m),u===null?l=_:u.sibling=_,u=_,d=g}if(m===s.length)return n(i,d),Ni&&Ei(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Ni&&Ei(i,m),l}for(d=r(d);m<s.length;m++)g=h(d,i,m,s[m],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?m:g.key),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Ni&&Ei(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,g=s=0,_=null,v=c.next();m!==null&&!v.done;g++,v=c.next()){m.index>g?(_=m,m=null):_=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=_);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,m=_}if(v.done)return n(a,m),Ni&&Ei(a,g),u;if(m===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ni&&Ei(a,g),u}for(m=r(m);!v.done;g++,v=c.next())v=h(m,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Ni&&Ei(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Ea(l)===r.type){n(e,r.sibling),c=a(r,o.props),Na(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=di(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=R(o.type,o.key,o.props,null,e.mode,c),Na(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=mi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Ea(o),b(e,r,o,c)}if(oe(o))return v(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ma(o),c);if(o.$$typeof===x)return b(e,r,ea(e,o),c);Pa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=fi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ja=0;var i=b(e,t,n,r);return Aa=null,i}catch(t){if(t===ba||t===Sa)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ia=Fa(!0),La=Fa(!1),B=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function V(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function H(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,jl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var U=!1;function Ha(){if(U){var e=da;if(e!==null)throw e}}function Ua(e,t,n,r){U=!1;var i=e.updateQueue;B=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Pl&p)===p:(r&p)===p){p!==0&&p===ua&&(U=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:B=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Hl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wa(n[e],t)}var Ka=D(null),qa=D(0);function Ja(e,t){e=Bl,pe(qa,e),pe(Ka,t),Bl=e|t.baseLanes}function Ya(){pe(qa,Bl),pe(Ka,Ka.current)}function Xa(){Bl=qa.current,fe(Ka),fe(qa)}var Za=D(null),Qa=null;function $a(e){var t=e.alternate;pe(io,io.current&1),pe(Za,e),Qa===null&&(t===null||Ka.current!==null||t.memoizedState!==null)&&(Qa=e)}function eo(e){pe(io,io.current),pe(Za,e),Qa===null&&(Qa=e)}function to(e){e.tag===22?(pe(io,io.current),pe(Za,e),Qa===null&&(Qa=e)):no(e)}function no(){pe(io,io.current),pe(Za,Za.current)}function ro(e){fe(Za),Qa===e&&(Qa=null),fe(io)}var io=D(0);function ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||$d(n)||ef(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oo=0,so=null,W=null,co=null,lo=!1,uo=!1,fo=!1,po=0,mo=0,ho=null,go=0;function _o(){throw Error(i(321))}function vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!P(e[n],t[n]))return!1;return!0}function yo(e,t,n,r,i,a){return oo=a,so=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,se.H=e===null||e.memoizedState===null?Ns:Ps,fo=!1,a=n(r,i),fo=!1,uo&&(a=xo(t,n,r,i)),bo(e),a}function bo(e){se.H=Ms;var t=W!==null&&W.next!==null;if(oo=0,co=W=so=null,lo=!1,mo=0,ho=null,t)throw Error(i(300));e===null||Zs||(e=e.dependencies,e!==null&&Zi(e)&&(Zs=!0))}function xo(e,t,n,r){so=e;var a=0;do{if(uo&&(ho=null),mo=0,uo=!1,25<=a)throw Error(i(301));if(a+=1,co=W=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}se.H=Fs,o=t(n,r)}while(uo);return o}function So(){var e=se.H,t=e.useState()[0];return t=typeof t.then==`function`?ko(t):t,e=e.useState()[0],(W===null?null:W.memoizedState)!==e&&(so.flags|=1024),t}function Co(){var e=po!==0;return po=0,e}function wo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function To(e){if(lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lo=!1}oo=0,co=W=so=null,uo=!1,mo=po=0,ho=null}function Eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return co===null?so.memoizedState=co=e:co=co.next=e,co}function Do(){if(W===null){var e=so.alternate;e=e===null?null:e.memoizedState}else e=W.next;var t=co===null?so.memoizedState:co.next;if(t!==null)co=t,W=e;else{if(e===null)throw so.alternate===null?Error(i(467)):Error(i(310));W=e,e={memoizedState:W.memoizedState,baseState:W.baseState,baseQueue:W.baseQueue,queue:W.queue,next:null},co===null?so.memoizedState=co=e:co=co.next=e}return co}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ko(e){var t=mo;return mo+=1,ho===null&&(ho=[]),e=Ta(ho,e,t),t=so,(co===null?t.memoizedState:co.next)===null&&(t=t.alternate,se.H=t===null||t.memoizedState===null?Ns:Ps),e}function Ao(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ko(e);if(e.$$typeof===x)return $i(e)}throw Error(i(438,String(e)))}function jo(e){var t=null,n=so.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=so.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Oo(),so.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=te;return t.index++,n}function Mo(e,t){return typeof t==`function`?t(e):t}function No(e){return Po(Do(),W,e)}function Po(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(oo&f)===f:(Pl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ua&&(d=!0);else if((oo&p)===p){u=u.next,p===ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,so.lanes|=p,Hl|=p;f=u.action,fo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,so.lanes|=f,Hl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!P(o,e.memoizedState)&&(Zs=!0,d&&(n=da,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Fo(e){var t=Do(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);P(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Io(e,t,n){var r=so,a=Do(),o=Ni;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!P((W||a).memoizedState,n);if(s&&(a.memoizedState=n,Zs=!0),a=a.queue,as(zo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||co!==null&&co.memoizedState.tag&1){if(r.flags|=2048,es(9,{destroy:void 0},Ro.bind(null,r,a,n,t),null),Ml===null)throw Error(i(349));o||oo&127||Lo(r,t,n)}return n}function Lo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=so.updateQueue,t===null?(t=Oo(),so.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ro(e,t,n,r){t.value=n,t.getSnapshot=r,Bo(t)&&Vo(e)}function zo(e,t,n){return n(function(){Bo(t)&&Vo(e)})}function Bo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!P(e,n)}catch{return!0}}function Vo(e){var t=ni(e,2);t!==null&&fu(t,e,2)}function Ho(e){var t=Eo();if(typeof e==`function`){var n=e;if(e=n(),fo){Ge(!0);try{n()}finally{Ge(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t}function Uo(e,t,n,r){return e.baseState=n,Po(e,W,typeof r==`function`?r:Mo)}function Wo(e,t,n,r,a){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};se.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Go(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Go(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=se.T,o={};se.T=o;try{var s=n(i,r),c=se.S;c!==null&&c(o,s),Ko(e,t,s)}catch(n){Jo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),se.T=a}}else try{a=n(i,r),Ko(e,t,a)}catch(n){Jo(e,t,n)}}function Ko(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){qo(e,t,n)},function(n){return Jo(e,t,n)}):qo(e,t,n)}function qo(e,t,n){t.status=`fulfilled`,t.value=n,Yo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Go(e,n)))}function Jo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Yo(t),t=t.next;while(t!==r)}e.action=null}function Yo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xo(e,t){return t}function Zo(e,t){if(Ni){var n=Ml.formState;if(n!==null){a:{var r=so;if(Ni){if(Mi){b:{for(var i=Mi,a=Fi;i.nodeType!==8;){if(!a){i=null;break b}if(i=nf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Mi=nf(i.nextSibling),r=i.data===`F!`;break a}}Li(r)}r=!1}r&&(t=n[0])}}return n=Eo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t},n.queue=r,n=Es.bind(null,so,r),r.dispatch=n,r=Ho(!1),a=Os.bind(null,so,!1,r.queue),r=Eo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Wo.bind(null,so,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function G(e){return Qo(Do(),W,e)}function Qo(e,t,n){if(t=Po(e,t,Xo)[0],e=No(Mo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ko(t)}catch(e){throw e===ba?Sa:e}else r=t;t=Do();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(so.flags|=2048,es(9,{destroy:void 0},eee.bind(null,i,n),null)),[r,a,e]}function eee(e,t){e.action=t}function $o(e){var t=Do(),n=W;if(n!==null)return Qo(t,n,e);Do(),t=t.memoizedState,n=Do();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function es(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=so.updateQueue,t===null&&(t=Oo(),so.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ts(){return Do().memoizedState}function ns(e,t,n,r){var i=Eo();so.flags|=e,i.memoizedState=es(1|t,{destroy:void 0},n,r===void 0?null:r)}function rs(e,t,n,r){var i=Do();r=r===void 0?null:r;var a=i.memoizedState.inst;W!==null&&r!==null&&vo(r,W.memoizedState.deps)?i.memoizedState=es(t,a,n,r):(so.flags|=e,i.memoizedState=es(1|t,a,n,r))}function is(e,t){ns(8390656,8,e,t)}function as(e,t){rs(2048,8,e,t)}function os(e){so.flags|=4;var t=so.updateQueue;if(t===null)t=Oo(),so.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ss(e){var t=Do().memoizedState;return os({ref:t,nextImpl:e}),function(){if(jl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function cs(e,t){return rs(4,2,e,t)}function ls(e,t){return rs(4,4,e,t)}function us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ds(e,t,n){n=n==null?null:n.concat([e]),rs(4,4,us.bind(null,t,e),n)}function fs(){}function ps(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&vo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ms(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&vo(t,r[1]))return r[0];if(r=e(),fo){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r}function hs(e,t,n){return n===void 0||oo&1073741824&&!(Pl&261930)?e.memoizedState=t:(e.memoizedState=n,e=du(),so.lanes|=e,Hl|=e,n)}function gs(e,t,n,r){return P(n,t)?n:Ka.current===null?!(oo&42)||oo&1073741824&&!(Pl&261930)?(Zs=!0,e.memoizedState=n):(e=du(),so.lanes|=e,Hl|=e,t):(e=hs(e,n,r),P(e,t)||(Zs=!0),e)}function _s(e,t,n,r,i){var a=ce.p;ce.p=a!==0&&8>a?a:8;var o=se.T,s={};se.T=s,Os(e,!1,t,n);try{var c=i(),l=se.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,ma(c,r),uu(e)):Ds(e,t,r,uu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},uu())}finally{ce.p=a,o!==null&&s.types!==null&&(o.types=s.types),se.T=o}}function vs(){}function ys(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=bs(e).queue;_s(e,a,t,le,n===null?vs:function(){return xs(e),n(r)})}function bs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xs(e){var t=bs(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},uu())}function K(){return $i(qf)}function Ss(){return Do().memoizedState}function Cs(){return Do().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=uu();e=H(n);var r=za(t,e,n);r!==null&&(fu(r,t,n),Ba(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=uu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=ti(e,t,n,r),n!==null&&(fu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,uu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,P(s,o))return ei(e,t,i,0),Ml===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return fu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:od(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=ti(e,n,r,2),t!==null&&fu(t,e,2)}function ks(e){var t=e.alternate;return e===so||t!==null&&t===so}function As(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var Ms={readContext:$i,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Ms.useEffectEvent=_o;var Ns={readContext:$i,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ns(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=Es.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return hs(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=_s.bind(null,so,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,a=Eo();if(Ni){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ml===null)throw Error(i(349));Pl&127||Lo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,is(zo.bind(null,r,o,e),[e]),r.flags|=2048,es(9,{destroy:void 0},Ro.bind(null,r,o,n,t),null),n},useId:function(){var e=Eo(),t=Ml.identifierPrefix;if(Ni){var n=Ti,r=wi;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:K,useFormState:Zo,useActionState:Zo,useOptimistic:function(e){var t=Eo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,so,!0,n),n.dispatch=t,[e,t]},useMemoCache:jo,useCacheRefresh:function(){return Eo().memoizedState=ws.bind(null,so)},useEffectEvent:function(e){var t=Eo(),n={impl:e};return t.memoizedState=n,function(){if(jl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:$i,use:Ao,useCallback:ps,useContext:$i,useEffect:as,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:No,useRef:ts,useState:function(){return No(Mo)},useDebugValue:fs,useDeferredValue:function(e,t){return gs(Do(),W.memoizedState,e,t)},useTransition:function(){var e=No(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Ss,useHostTransitionStatus:K,useFormState:G,useActionState:G,useOptimistic:function(e,t){return Uo(Do(),W,e,t)},useMemoCache:jo,useCacheRefresh:Cs};Ps.useEffectEvent=ss;var Fs={readContext:$i,use:Ao,useCallback:ps,useContext:$i,useEffect:as,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:Fo,useRef:ts,useState:function(){return Fo(Mo)},useDebugValue:fs,useDeferredValue:function(e,t){var n=Do();return W===null?hs(n,e,t):gs(n,W.memoizedState,e,t)},useTransition:function(){var e=Fo(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Ss,useHostTransitionStatus:K,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){var n=Do();return W===null?(n.baseState=e,[e,n.queue.dispatch]):Uo(n,W,e,t)},useMemoCache:jo,useCacheRefresh:Cs};Fs.useEffectEvent=ss;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uu(),i=H(r);i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(fu(t,e,r),Ba(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uu(),i=H(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(fu(t,e,r),Ba(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uu(),r=H(n);r.tag=2,t!=null&&(r.callback=t),t=za(e,r,n),t!==null&&(fu(t,e,n),Ba(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Tr(n,r)||!Tr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Yr(e)}function Hs(e){console.error(e)}function Us(e){Yr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=H(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=H(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(eu===null?eu=new Set([this]):eu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xi(t,n,a,!0),n=Za.current,n!==null){switch(n.tag){case 31:case 13:return Qa===null?Cu():n.alternate===null&&Vl===0&&(Vl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Bu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Bu(e,r,a)),!1}throw Error(i(435,n.tag))}return Bu(e,r,a),Cu(),!1}if(Ni)return t=Za.current,t===null?(r!==Ii&&(t=Error(i(423),{cause:r}),z(gi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=gi(r,n),a=Ks(e.stateNode,r,a),Va(e,a),Vl!==4&&(Vl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ii&&(e=Error(i(422),{cause:r}),z(gi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=gi(o,n),ql===null?ql=[o]:ql.push(o),Vl!==4&&(Vl=2),t===null)return!0;r=gi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ks(n.stateNode,r,e),Va(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(eu===null||!eu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qs(a),Js(a,e,n,r),Va(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(i(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qi(t),r=yo(e,t,n,o,a,i),s=Co(),e!==null&&!Zs?(wo(e,t,i),bc(e,t,i)):(Ni&&s&&Oi(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=R(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!xc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Tr:n,n(o,r)&&e.ref===t.ref)return bc(e,t,i)}return t.flags|=1,e=li(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Tr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,xc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,bc(e,t,i)}return sc(e,t,n,r,i)}function q(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return rc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?Ya():Ja(t,a),to(t);else return r=t.lanes=536870912,rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),Ya(),no(t)):(va(t,a.cachePool),Ja(t,a),no(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function nc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),Ya(),to(t),e!==null&&Xi(e,t,r,!0),t.childLanes=i,null}function ic(e,t){return t=hc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ac(e,t,n){return Ia(t,e.child,null,n),e=ic(t,t.pendingProps),e.flags|=2,ro(t),t.memoizedState=null,e}function tee(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ni){if(r.mode===`hidden`)return e=ic(t,r),t.lanes=536870912,nc(null,e);if(eo(t),(e=Mi)?(e=Qd(e,Fi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ci===null?null:{id:wi,overflow:Ti},retryLane:536870912,hydrationErrors:null},n=pi(e),n.return=t,t.child=n,ji=t,Mi=null)):e=null,e===null)throw Li(t);return t.lanes=536870912,null}return ic(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(eo(t),a)if(t.flags&256)t.flags&=-257,t=ac(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Zs||Xi(e,t,n,!1),a=(n&e.childLanes)!==0,Zs||a){if(r=Ml,r!==null&&(s=lt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ni(e,s),fu(r,e,s),Xs;Cu(),t=ac(e,t,n)}else e=o.treeContext,Mi=nf(s.nextSibling),ji=t,Ni=!0,Pi=null,Fi=!1,e!==null&&Ai(t,e),t=ic(t,r),t.flags|=4096;return t}return e=li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function oc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function sc(e,t,n,r,i){return Qi(t),n=yo(e,t,n,r,void 0,i),r=Co(),e!==null&&!Zs?(wo(e,t,i),bc(e,t,i)):(Ni&&r&&Oi(t),t.flags|=1,Qs(e,t,n,i),t.child)}function J(e,t,n,r,i,a){return Qi(t),t.updateQueue=null,n=xo(t,r,n,i),bo(e),r=Co(),e!==null&&!Zs?(wo(e,t,a),bc(e,t,a)):(Ni&&r&&Oi(t),t.flags|=1,Qs(e,t,n,a),t.child)}function cc(e,t,n,r,i){if(Qi(t),t.stateNode===null){var a=ai,o=n.contextType;typeof o==`object`&&o&&(a=$i(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ra(t),o=n.contextType,a.context=typeof o==`object`&&o?$i(o):ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),Ua(t,r,a,i),Ha(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ai,typeof u==`object`&&u&&(o=$i(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),B=!1;var f=t.memoizedState;a.state=f,Ua(t,r,a,i),Ha(),l=t.memoizedState,s||f!==l||B?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=B||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,V(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ai,typeof l==`object`&&l&&(c=$i(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),B=!1,f=t.memoizedState,a.state=f,Ua(t,r,a,i),Ha();var p=t.memoizedState;o!==d||f!==p||B||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=B||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Zi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,oc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ia(t,e.child,null,i),t.child=Ia(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=bc(e,t,i),e}function lc(e,t,n,r){return Vi(),t.flags|=256,Qs(e,t,n,r),t.child}var uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function dc(e){return{baseLanes:e,cachePool:ya()}}function fc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Gl),e}function pc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(io.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ni){if(a?$a(t):no(t),(e=Mi)?(e=Qd(e,Fi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ci===null?null:{id:wi,overflow:Ti},retryLane:536870912,hydrationErrors:null},n=pi(e),n.return=t,t.child=n,ji=t,Mi=null)):e=null,e===null)throw Li(t);return ef(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(no(t),a=t.mode,c=hc({mode:`hidden`,children:c},a),r=di(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=dc(n),r.childLanes=fc(e,s,n),t.memoizedState=uc,nc(null,r)):($a(t),mc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?($a(t),t.flags&=-257,t=gc(e,t,n)):t.memoizedState===null?(no(t),c=r.fallback,a=t.mode,r=hc({mode:`visible`,children:r.children},a),c=di(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ia(t,e.child,null,n),r=t.child,r.memoizedState=dc(n),r.childLanes=fc(e,s,n),t.memoizedState=uc,t=nc(null,r)):(no(t),t.child=e.child,t.flags|=128,t=null);else if($a(t),ef(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,z({value:r,source:null,stack:null}),t=gc(e,t,n)}else if(Zs||Xi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Ml,s!==null&&(r=lt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ni(e,r),fu(s,e,r),Xs;$d(c)||Cu(),t=gc(e,t,n)}else $d(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Mi=nf(c.nextSibling),ji=t,Ni=!0,Pi=null,Fi=!1,e!==null&&Ai(t,e),t=mc(t,r.children),t.flags|=4096);return t}return a?(no(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=li(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=di(c,a,n,null),c.flags|=2):c=li(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,nc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=dc(n):(a=c.cachePool,a===null?a=ya():(l=aa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=fc(e,s,n),t.memoizedState=uc,nc(e.child,r)):($a(t),n=e.child,e=n.sibling,n=li(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function mc(e,t){return t=hc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function hc(e,t){return e=si(22,e,null,t),e.lanes=0,e}function gc(e,t,n){return Ia(t,e.child,null,n),e=mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _c(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ji(e.return,t,n)}function vc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function yc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=io.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,pe(io,o),Qs(e,t,r,n),r=Ni?bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_c(e,n,t);else if(e.tag===19)_c(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ao(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ao(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vc(t,!0,n,null,a,r);break;case`together`:vc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function bc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Zi(e))):!0}function Sc(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),Ki(t,aa,e.memoizedState.cache),Vi();break;case 27:case 5:be(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:Ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?($a(t),e=bc(e,t,n),e===null?null:e.sibling):pc(e,t,n):($a(t),t.flags|=128,null);$a(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return yc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),pe(io,io.current),r)break;return null;case 22:return t.lanes=0,q(e,t,n,t.pendingProps);case 24:Ki(t,aa,e.memoizedState.cache)}return bc(e,t,n)}function Cc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!xc(e,n)&&!(t.flags&128))return Zs=!1,Sc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,Ni&&t.flags&1048576&&Di(t,bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e==`function`)ci(e)?(r=Bs(e,r),t.tag=1,t=cc(null,t,e,r,n)):(t.tag=0,t=sc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=$s(null,t,e,r,n);break a}else if(a===T){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=ae(e)||e,Error(i(306,t,``))}}return t;case 0:return sc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Bs(r,t.pendingProps),cc(e,t,r,a,n);case 3:a:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,V(e,t),Ua(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ki(t,aa,r),r!==o.cache&&Yi(t,[aa],n,!0),Ha(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=lc(e,t,r,n);break a}else if(r!==a){a=gi(Error(i(424)),t),z(a),t=lc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Mi=nf(e.firstChild),ji=t,Ni=!0,Pi=null,Fi=!0,n=La(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Vi(),r===a){t=bc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return oc(e,t),e===null?(n=wf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ni||(n=t.type,e=t.pendingProps,r=Fd(ge.current).createElement(n),r[ht]=t,r[O]=e,kd(r,n,e),Dt(r),t.stateNode=r):t.memoizedState=wf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&Ni&&(r=t.stateNode=sf(t.type,t.pendingProps,ge.current),ji=t,Fi=!0,a=Mi,Kd(t.type)?(rf=a,Mi=nf(r.firstChild)):Mi=a),Qs(e,t,t.pendingProps.children,n),oc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ni&&((a=r=Mi)&&(r=Xd(r,t.type,t.pendingProps,Fi),r===null?a=!1:(t.stateNode=r,ji=t,Mi=nf(r.firstChild),Fi=!1,a=!0)),a||Li(t)),be(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Rd(a,o)?r=null:s!==null&&Rd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=yo(e,t,So,null,null,n),qf._currentValue=a),oc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Ni&&((e=n=Mi)&&(n=Zd(n,t.pendingProps,Fi),n===null?e=!1:(t.stateNode=n,ji=t,Mi=null,e=!0)),e||Li(t)),null;case 13:return pc(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ia(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ki(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Qi(t),a=$i(a),r=r(a),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return yc(e,t,n);case 31:return tee(e,t,n);case 22:return q(e,t,n,t.pendingProps);case 24:return Qi(t),r=$i(aa),e===null?(a=_a(),a===null&&(a=Ml,o=oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ra(t),Ki(t,aa,a)):((e.lanes&n)!==0&&(V(e,t),Ua(t,null,null,n),Ha()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ki(t,aa,r),r!==a.cache&&Yi(t,[aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ki(t,aa,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function wc(e){e.flags|=4}function Tc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(bu())e.flags|=8192;else throw Da=Ca,xa}else e.flags&=-16777217}function Ec(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!zf(t))if(bu())e.flags|=8192;else throw Da=Ca,xa}function Dc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:rt(),e.lanes|=t,Kl|=t)}function Oc(e,t){if(!Ni)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function kc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ac(e,t,n){var r=t.pendingProps;switch(ki(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kc(t),null;case 1:return kc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qi(aa),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Bi(t)?wc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Hi())),kc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(wc(t),o===null?(kc(t),Tc(t,a,null,r,n)):(kc(t),Ec(t,o))):o?o===e.memoizedState?(kc(t),t.flags&=-16777217):(wc(t),kc(t),Ec(t,o)):(e=e.memoizedProps,e!==r&&wc(t),kc(t),Tc(t,a,e,r,n)),null;case 27:if(xe(t),n=ge.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return kc(t),null}e=me.current,Bi(t)?Ri(t,e):(e=sf(a,r,n),t.stateNode=e,wc(t))}return kc(t),null;case 5:if(xe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return kc(t),null}if(o=me.current,Bi(t))Ri(t,o);else{var s=Fd(ge.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ht]=t,o[O]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(kd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&wc(t)}}return kc(t),Tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,Bi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ji,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Ed(e.nodeValue,n)),e||Li(t,!0)}else e=Fd(e).createTextNode(r),e[ht]=t,t.stateNode=e}return kc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Bi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ht]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),e=!1}else n=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(i(558))}return kc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Bi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ht]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),a=!1}else a=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Dc(t,t.updateQueue),kc(t),null);case 4:return ye(),e===null&&vd(t.stateNode.containerInfo),kc(t),null;case 10:return qi(t.type),kc(t),null;case 19:if(fe(io),r=t.memoizedState,r===null)return kc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Oc(r,!1);else{if(Vl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Oc(r,!1),e=o.updateQueue,t.updateQueue=e,Dc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return pe(io,io.current&1|2),Ni&&Ei(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Pe()>Ql&&(t.flags|=128,a=!0,Oc(r,!1),t.lanes=4194304)}else{if(!a)if(e=ao(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Dc(t,e),Oc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ni)return kc(t),null}else 2*Pe()-r.renderingStartTime>Ql&&n!==536870912&&(t.flags|=128,a=!0,Oc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(kc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Pe(),e.sibling=null,n=io.current,pe(io,a?n&1|2:n&1),Ni&&Ei(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(kc(t),t.subtreeFlags&6&&(t.flags|=8192)):kc(t),n=t.updateQueue,n!==null&&Dc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&fe(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(aa),kc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function jc(e,t){switch(ki(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(aa),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(i(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(io),null;case 4:return ye(),null;case 10:return qi(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&fe(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(aa),null;case 25:return null;default:return null}}function Mc(e,t){switch(ki(t),t.tag){case 3:qi(aa),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:fe(io);break;case 10:qi(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&fe(ga);break;case 24:qi(aa)}}function Nc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){zu(t,t.return,e)}}function Pc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){zu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){zu(t,t.return,e)}}function Fc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){zu(e,e.return,t)}}}function Ic(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){zu(e,t,n)}}function Lc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){zu(e,t,n)}}function Rc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){zu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){zu(e,t,n)}else n.current=null}function zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){zu(e,e.return,t)}}function Bc(e,t,n){try{var r=e.stateNode;Ad(r,e.type,n,t),r[O]=t}catch(t){zu(e,e.return,t)}}function Vc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kd(e.type)||e.tag===4}function Hc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Vc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&Kd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function Wc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Kd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Wc(e,t,n),e=e.sibling;e!==null;)Wc(e,t,n),e=e.sibling}function Gc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);kd(t,r,n),t[ht]=e,t[O]=n}catch(t){zu(e,e.return,t)}}var Kc=!1,qc=!1,Jc=!1,Yc=typeof WeakSet==`function`?WeakSet:Set,Xc=null;function Zc(e,t){if(e=e.containerInfo,Nd=np,e=kr(e),Ar(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Pd={focusedElem:e,selectionRange:n},np=!1,Xc=t;Xc!==null;)if(t=Xc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Xc=e;else for(;Xc!==null;){switch(t=Xc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){zu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Yd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:Yd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Xc=e;break}Xc=t.return}}function Qc(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:fl(e,n),r&4&&Nc(5,n);break;case 1:if(fl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){zu(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){zu(n,n.return,e)}}r&64&&Fc(n),r&512&&Lc(n,n.return);break;case 3:if(fl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ga(e,t)}catch(e){zu(n,n.return,e)}}break;case 27:t===null&&r&4&&Gc(n);case 26:case 5:fl(e,n),t===null&&r&4&&zc(n),r&512&&Lc(n,n.return);break;case 12:fl(e,n);break;case 31:fl(e,n),r&4&&il(e,n);break;case 13:fl(e,n),r&4&&al(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Uu.bind(null,n),tf(e,n))));break;case 22:if(r=n.memoizedState!==null||Kc,!r){t=t!==null&&t.memoizedState!==null||qc,i=Kc;var a=qc;Kc=r,(qc=t)&&!a?ml(e,n,(n.subtreeFlags&8772)!=0):fl(e,n),Kc=i,qc=a}break;case 30:break;default:fl(e,n)}}function $c(e){var t=e.alternate;t!==null&&(e.alternate=null,$c(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&St(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var el=null,tl=!1;function nl(e,t,n){for(n=n.child;n!==null;)rl(e,t,n),n=n.sibling}function rl(e,t,n){if(We&&typeof We.onCommitFiberUnmount==`function`)try{We.onCommitFiberUnmount(Ue,n)}catch{}switch(n.tag){case 26:qc||Rc(n,t),nl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:qc||Rc(n,t);var r=el,i=tl;Kd(n.type)&&(el=n.stateNode,tl=!1),nl(e,t,n),cf(n.stateNode),el=r,tl=i;break;case 5:qc||Rc(n,t);case 6:if(r=el,i=tl,el=null,nl(e,t,n),el=r,tl=i,el!==null)if(tl)try{(el.nodeType===9?el.body:el.nodeName===`HTML`?el.ownerDocument.body:el).removeChild(n.stateNode)}catch(e){zu(n,t,e)}else try{el.removeChild(n.stateNode)}catch(e){zu(n,t,e)}break;case 18:el!==null&&(tl?(e=el,qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Dp(e)):qd(el,n.stateNode));break;case 4:r=el,i=tl,el=n.stateNode.containerInfo,tl=!0,nl(e,t,n),el=r,tl=i;break;case 0:case 11:case 14:case 15:Pc(2,n,t),qc||Pc(4,n,t),nl(e,t,n);break;case 1:qc||(Rc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Ic(n,t,r)),nl(e,t,n);break;case 21:nl(e,t,n);break;case 22:qc=(r=qc)||n.memoizedState!==null,nl(e,t,n),qc=r;break;default:nl(e,t,n)}}function il(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dp(e)}catch(e){zu(t,t.return,e)}}}function al(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dp(e)}catch(e){zu(t,t.return,e)}}function nee(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Yc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Yc),t;default:throw Error(i(435,e.tag))}}function ol(e,t){var n=nee(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Wu.bind(null,e,t);t.then(r,r)}})}function sl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Kd(c.type)){el=c.stateNode,tl=!1;break a}break;case 5:el=c.stateNode,tl=!1;break a;case 3:case 4:el=c.stateNode.containerInfo,tl=!0;break a}c=c.return}if(el===null)throw Error(i(160));rl(o,s,a),el=null,tl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ll(t,e),t=t.sibling}var cl=null;function ll(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sl(t,e),ul(e),r&4&&(Pc(3,e,e.return),Nc(3,e),Pc(5,e,e.return));break;case 1:sl(t,e),ul(e),r&512&&(qc||n===null||Rc(n,n.return)),r&64&&Kc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=cl;if(sl(t,e),ul(e),r&512&&(qc||n===null||Rc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[xt]||o[ht]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),kd(o,r,n),o[ht]=e,Dt(o),r=o;break a;case`link`:var s=If(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),kd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=If(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),kd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ht]=e,Dt(o),r=o}e.stateNode=r}else Lf(a,e.type,e.stateNode);else e.stateNode=jf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Bc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Lf(a,e.type,e.stateNode):jf(a,r,e.memoizedProps))}break;case 27:sl(t,e),ul(e),r&512&&(qc||n===null||Rc(n,n.return)),n!==null&&r&4&&Bc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(sl(t,e),ul(e),r&512&&(qc||n===null||Rc(n,n.return)),e.flags&32){a=e.stateNode;try{Zt(a,``)}catch(t){zu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Bc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Jc=!0);break;case 6:if(sl(t,e),ul(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){zu(e,e.return,t)}}break;case 3:if(Ff=null,a=cl,cl=df(t.containerInfo),sl(t,e),cl=a,ul(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Dp(t.containerInfo)}catch(t){zu(e,e.return,t)}Jc&&(Jc=!1,dl(e));break;case 4:r=cl,cl=df(e.stateNode.containerInfo),sl(t,e),ul(e),cl=r;break;case 12:sl(t,e),ul(e);break;case 31:sl(t,e),ul(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 13:sl(t,e),ul(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xl=Pe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Kc,d=qc;if(Kc=u||a,qc=d||l,sl(t,e),qc=d,Kc=u,ul(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Kc||qc||pl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){zu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){zu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?Jd(m,!0):Jd(l.stateNode,!1)}catch(e){zu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ol(e,n))));break;case 19:sl(t,e),ul(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 30:break;case 21:break;default:sl(t,e),ul(e)}}function ul(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Vc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Wc(e,Hc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Zt(o,``),n.flags&=-33),Wc(e,Hc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Uc(e,Hc(e),s);break;default:throw Error(i(161))}}catch(t){zu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Qc(e,t.alternate,t),t=t.sibling}function pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pc(4,t,t.return),pl(t);break;case 1:Rc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Ic(t,t.return,n),pl(t);break;case 27:cf(t.stateNode);case 26:case 5:Rc(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function ml(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:ml(i,a,n),Nc(4,a);break;case 1:if(ml(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){zu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Wa(c[i],s)}catch(e){zu(r,r.return,e)}}n&&o&64&&Fc(a),Lc(a,a.return);break;case 27:Gc(a);case 26:case 5:ml(i,a,n),n&&r===null&&o&4&&zc(a),Lc(a,a.return);break;case 12:ml(i,a,n);break;case 31:ml(i,a,n),n&&o&4&&il(i,a);break;case 13:ml(i,a,n),n&&o&4&&al(i,a);break;case 22:a.memoizedState===null&&ml(i,a,n),Lc(a,a.return);break;case 30:break;default:ml(i,a,n)}t=t.sibling}}function hl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function gl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function _l(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vl(e,t,n,r),t=t.sibling}function vl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:_l(e,t,n,r),i&2048&&Nc(9,t);break;case 1:_l(e,t,n,r);break;case 3:_l(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){_l(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){zu(t,t.return,e)}}else _l(e,t,n,r);break;case 31:_l(e,t,n,r);break;case 13:_l(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?_l(e,t,n,r):(a._visibility|=2,yl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?_l(e,t,n,r):bl(e,t),i&2048&&hl(o,t);break;case 24:_l(e,t,n,r),i&2048&&gl(t.alternate,t);break;default:_l(e,t,n,r)}}function yl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:yl(a,o,s,c,i),Nc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,yl(a,o,s,c,i)):u._visibility&2?yl(a,o,s,c,i):bl(a,o),i&&l&2048&&hl(o.alternate,o);break;case 24:yl(a,o,s,c,i),i&&l&2048&&gl(o.alternate,o);break;default:yl(a,o,s,c,i)}t=t.sibling}}function bl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:bl(n,r),i&2048&&hl(r.alternate,r);break;case 24:bl(n,r),i&2048&&gl(r.alternate,r);break;default:bl(n,r)}t=t.sibling}}var xl=8192;function Sl(e,t,n){if(e.subtreeFlags&xl)for(e=e.child;e!==null;)Cl(e,t,n),e=e.sibling}function Cl(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&xl&&e.memoizedState!==null&&Bf(n,cl,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var r=cl;cl=df(e.stateNode.containerInfo),Sl(e,t,n),cl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=xl,xl=16777216,Sl(e,t,n),xl=r):Sl(e,t,n));break;default:Sl(e,t,n)}}function wl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Tl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Xc=r,Ol(r,e)}wl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)El(e),e=e.sibling}function El(e){switch(e.tag){case 0:case 11:case 15:Tl(e),e.flags&2048&&Pc(9,e,e.return);break;case 3:Tl(e);break;case 12:Tl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Dl(e)):Tl(e);break;default:Tl(e)}}function Dl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Xc=r,Ol(r,e)}wl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pc(8,t,t.return),Dl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Dl(t));break;default:Dl(t)}e=e.sibling}}function Ol(e,t){for(;Xc!==null;){var n=Xc;switch(n.tag){case 0:case 11:case 15:Pc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Xc=r;else a:for(n=e;Xc!==null;){r=Xc;var i=r.sibling,a=r.return;if($c(r),r===n){Xc=null;break a}if(i!==null){i.return=a,Xc=i;break a}Xc=a}}}var kl={getCacheForType:function(e){var t=$i(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $i(aa).controller.signal}},Al=typeof WeakMap==`function`?WeakMap:Map,jl=0,Ml=null,Nl=null,Pl=0,Fl=0,Il=null,Ll=!1,Rl=!1,zl=!1,Bl=0,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=null,Jl=null,Yl=!1,Xl=0,Zl=0,Ql=1/0,$l=null,eu=null,tu=0,nu=null,ru=null,iu=0,au=0,ou=null,su=null,cu=0,lu=null;function uu(){return jl&2&&Pl!==0?Pl&-Pl:se.T===null?ft():od()}function du(){if(Gl===0)if(!(Pl&536870912)||Ni){var e=Ze;Ze<<=1,!(Ze&3932160)&&(Ze=262144),Gl=e}else Gl=536870912;return e=Za.current,e!==null&&(e.flags|=32),Gl}function fu(e,t,n){(e===Ml&&(Fl===2||Fl===9)||e.cancelPendingCommit!==null)&&(vu(e,0),hu(e,Pl,Gl,!1)),at(e,n),(!(jl&2)||e!==Ml)&&(e===Ml&&(!(jl&2)&&(Ul|=n),Vl===4&&hu(e,Pl,Gl,!1)),Qu(e))}function pu(e,t,n){if(jl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||tt(e,t),a=r?aee(e,t):wu(e,t,!0),o=r;do{if(a===0){Rl&&!r&&hu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ree(n)){a=wu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=ql;var l=c.current.memoizedState.isDehydrated;if(l&&(vu(c,s).flags|=256),s=wu(c,s,!1),s!==2){if(zl&&!l){c.errorRecoveryDisabledLanes|=o,Ul|=o,a=4;break a}o=Jl,Jl=a,o!==null&&(Jl===null?Jl=o:Jl.push.apply(Jl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){vu(e,0),hu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:hu(r,t,Gl,!Ll);break a;case 2:Jl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Xl+300-Pe(),10<a)){if(hu(r,t,Gl,!Ll),et(r,0,!0)!==0)break a;iu=t,r.timeoutHandle=Vd(mu.bind(null,r,n,Jl,$l,Yl,t,Gl,Ul,Kl,Ll,o,`Throttled`,-0,0),a);break a}mu(r,n,Jl,$l,Yl,t,Gl,Ul,Kl,Ll,o,null,-0,0)}}break}while(1);Qu(e)}function mu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Cl(t,a,d);var m=(a&62914560)===a?Xl-Pe():(a&4194048)===a?Zl-Pe():0;if(m=Hf(d,m),m!==null){iu=a,e.cancelPendingCommit=m(ju.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),hu(e,a,o,!l);return}}ju(e,t,a,n,r,i,o,s,c)}function ree(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!P(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hu(e,t,n,r){t&=~Wl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ke(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&st(e,n,t)}function gu(){return jl&6?!0:($u(0,!1),!1)}function _u(){if(Nl!==null){if(Fl===0)var e=Nl.return;else e=Nl,Gi=Wi=null,To(e),Aa=null,ja=0,e=Nl;for(;e!==null;)Mc(e.alternate,e),e=e.return;Nl=null}}function vu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Hd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),iu=0,_u(),Ml=e,Nl=n=li(e.current,null),Pl=t,Fl=0,Il=null,Ll=!1,Rl=tt(e,t),zl=!1,Kl=Gl=Wl=Ul=Hl=Vl=0,Jl=ql=null,Yl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ke(r),a=1<<i;t|=e[i],r&=~a}return Bl=t,$r(),n}function yu(e,t){so=null,se.H=Ms,t===ba||t===Sa?(t=Oa(),Fl=3):t===xa?(t=Oa(),Fl=4):Fl=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Il=t,Nl===null&&(Vl=1,Ws(e,gi(t,e.current)))}function bu(){var e=Za.current;return e===null?!0:(Pl&4194048)===Pl?Qa===null:(Pl&62914560)===Pl||Pl&536870912?e===Qa:!1}function xu(){var e=se.H;return se.H=Ms,e===null?Ms:e}function Su(){var e=se.A;return se.A=kl,e}function Cu(){Vl=4,Ll||(Pl&4194048)!==Pl&&Za.current!==null||(Rl=!0),!(Hl&134217727)&&!(Ul&134217727)||Ml===null||hu(Ml,Pl,Gl,!1)}function wu(e,t,n){var r=jl;jl|=2;var i=xu(),a=Su();(Ml!==e||Pl!==t)&&($l=null,vu(e,t)),t=!1;var o=Vl;a:do try{if(Fl!==0&&Nl!==null){var s=Nl,c=Il;switch(Fl){case 8:_u(),o=6;break a;case 3:case 2:case 9:case 6:Za.current===null&&(t=!0);var l=Fl;if(Fl=0,Il=null,Ou(e,s,c,l),n&&Rl){o=0;break a}break;default:l=Fl,Fl=0,Il=null,Ou(e,s,c,l)}}iee(),o=Vl;break}catch(t){yu(e,t)}while(1);return t&&e.shellSuspendCounter++,Gi=Wi=null,jl=r,se.H=i,se.A=a,Nl===null&&(Ml=null,Pl=0,$r()),o}function iee(){for(;Nl!==null;)Eu(Nl)}function aee(e,t){var n=jl;jl|=2;var r=xu(),a=Su();Ml!==e||Pl!==t?($l=null,Ql=Pe()+500,vu(e,t)):Rl=tt(e,t);a:do try{if(Fl!==0&&Nl!==null){t=Nl;var o=Il;b:switch(Fl){case 1:Fl=0,Il=null,Ou(e,t,o,1);break;case 2:case 9:if(wa(o)){Fl=0,Il=null,Du(t);break}t=function(){Fl!==2&&Fl!==9||Ml!==e||(Fl=7),Qu(e)},o.then(t,t);break a;case 3:Fl=7;break a;case 4:Fl=5;break a;case 7:wa(o)?(Fl=0,Il=null,Du(t)):(Fl=0,Il=null,Ou(e,t,o,7));break;case 5:var s=null;switch(Nl.tag){case 26:s=Nl.memoizedState;case 5:case 27:var c=Nl;if(s?zf(s):c.stateNode.complete){Fl=0,Il=null;var l=c.sibling;if(l!==null)Nl=l;else{var u=c.return;u===null?Nl=null:(Nl=u,ku(u))}break b}}Fl=0,Il=null,Ou(e,t,o,5);break;case 6:Fl=0,Il=null,Ou(e,t,o,6);break;case 8:_u(),Vl=6;break a;default:throw Error(i(462))}}Tu();break}catch(t){yu(e,t)}while(1);return Gi=Wi=null,se.H=r,se.A=a,jl=n,Nl===null?(Ml=null,Pl=0,$r(),Vl):0}function Tu(){for(;Nl!==null&&!Me();)Eu(Nl)}function Eu(e){var t=Cc(e.alternate,e,Bl);e.memoizedProps=e.pendingProps,t===null?ku(e):Nl=t}function Du(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=J(n,t,t.pendingProps,t.type,void 0,Pl);break;case 11:t=J(n,t,t.pendingProps,t.type.render,t.ref,Pl);break;case 5:To(t);default:Mc(n,t),t=Nl=ui(t,Bl),t=Cc(n,t,Bl)}e.memoizedProps=e.pendingProps,t===null?ku(e):Nl=t}function Ou(e,t,n,r){Gi=Wi=null,To(t),Aa=null,ja=0;var i=t.return;try{if(Ys(e,i,t,n,Pl)){Vl=1,Ws(e,gi(n,e.current)),Nl=null;return}}catch(t){if(i!==null)throw Nl=i,t;Vl=1,Ws(e,gi(n,e.current)),Nl=null;return}t.flags&32768?(Ni||r===1?e=!0:Rl||Pl&536870912?e=!1:(Ll=e=!0,(r===2||r===9||r===3||r===6)&&(r=Za.current,r!==null&&r.tag===13&&(r.flags|=16384))),Au(t,e)):ku(t)}function ku(e){var t=e;do{if(t.flags&32768){Au(t,Ll);return}e=t.return;var n=Ac(t.alternate,t,Bl);if(n!==null){Nl=n;return}if(t=t.sibling,t!==null){Nl=t;return}Nl=t=e}while(t!==null);Vl===0&&(Vl=5)}function Au(e,t){do{var n=jc(e.alternate,e);if(n!==null){n.flags&=32767,Nl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Nl=e;return}Nl=e=n}while(e!==null);Vl=6,Nl=null}function ju(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Iu();while(tu!==0);if(jl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Qr,ot(e,n,o,s,c,l),e===Ml&&(Nl=Ml=null,Pl=0),ru=t,nu=e,iu=n,au=o,ou=a,su=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Gu(Re,function(){return Lu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=se.T,se.T=null,a=ce.p,ce.p=2,s=jl,jl|=4;try{Zc(e,t,n)}finally{jl=s,ce.p=a,se.T=r}}tu=1,Mu(),Nu(),Pu()}}function Mu(){if(tu===1){tu=0;var e=nu,t=ru,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=se.T,se.T=null;var r=ce.p;ce.p=2;var i=jl;jl|=4;try{ll(t,e);var a=Pd,o=kr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Or(s.ownerDocument.documentElement,s)){if(c!==null&&Ar(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Dr(s,h),v=Dr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}np=!!Nd,Pd=Nd=null}finally{jl=i,ce.p=r,se.T=n}}e.current=t,tu=2}}function Nu(){if(tu===2){tu=0;var e=nu,t=ru,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=se.T,se.T=null;var r=ce.p;ce.p=2;var i=jl;jl|=4;try{Qc(e,t.alternate,t)}finally{jl=i,ce.p=r,se.T=n}}tu=3}}function Pu(){if(tu===4||tu===3){tu=0,Ne();var e=nu,t=ru,n=iu,r=su;t.subtreeFlags&10256||t.flags&10256?tu=5:(tu=0,ru=nu=null,Fu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(eu=null),dt(n),t=t.stateNode,We&&typeof We.onCommitFiberRoot==`function`)try{We.onCommitFiberRoot(Ue,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=se.T,i=ce.p,ce.p=2,se.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{se.T=t,ce.p=i}}iu&3&&Iu(),Qu(e),i=e.pendingLanes,n&261930&&i&42?e===lu?cu++:(cu=0,lu=e):cu=0,$u(0,!1)}}function Fu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Iu(){return Mu(),Nu(),Pu(),Lu()}function Lu(){if(tu!==5)return!1;var e=nu,t=au;au=0;var n=dt(iu),r=se.T,a=ce.p;try{ce.p=32>n?32:n,se.T=null,n=ou,ou=null;var o=nu,s=iu;if(tu=0,ru=nu=null,iu=0,jl&6)throw Error(i(331));var c=jl;if(jl|=4,El(o.current),vl(o,o.current,s,n),jl=c,$u(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,o)}catch{}return!0}finally{ce.p=a,se.T=r,Fu(e,t)}}function Ru(e,t,n){t=gi(n,t),t=Ks(e.stateNode,t,2),e=za(e,t,2),e!==null&&(at(e,2),Qu(e))}function zu(e,t,n){if(e.tag===3)Ru(e,e,n);else for(;t!==null;){if(t.tag===3){Ru(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(eu===null||!eu.has(r))){e=gi(n,e),n=qs(2),r=za(t,n,2),r!==null&&(Js(n,r,t,e),at(r,2),Qu(r));break}}t=t.return}}function Bu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Al;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(zl=!0,i.add(n),e=Vu.bind(null,e,t,n),t.then(e,e))}function Vu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ml===e&&(Pl&n)===n&&(Vl===4||Vl===3&&(Pl&62914560)===Pl&&300>Pe()-Xl?!(jl&2)&&vu(e,0):Wl|=n,Kl===Pl&&(Kl=0)),Qu(e)}function Hu(e,t){t===0&&(t=rt()),e=ni(e,t),e!==null&&(at(e,t),Qu(e))}function Uu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hu(e,n)}function Wu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Hu(e,n)}function Gu(e,t){return Ae(e,t)}var Ku=null,qu=null,Ju=!1,Yu=!1,Xu=!1,Zu=0;function Qu(e){e!==qu&&e.next===null&&(qu===null?Ku=qu=e:qu=qu.next=e),Yu=!0,Ju||(Ju=!0,ad())}function $u(e,t){if(!Xu&&Yu){Xu=!0;do for(var n=!1,r=Ku;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,id(r,a))}else a=Pl,a=et(r,r===Ml?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,id(r,a));r=r.next}while(n);Xu=!1}}function ed(){td()}function td(){Yu=Ju=!1;var e=0;Zu!==0&&Bd()&&(e=Zu);for(var t=Pe(),n=null,r=Ku;r!==null;){var i=r.next,a=nd(r,t);a===0?(r.next=null,n===null?Ku=i:n.next=i,i===null&&(qu=n)):(n=r,(e!==0||a&3)&&(Yu=!0)),r=i}tu!==0&&tu!==5||$u(e,!1),Zu!==0&&(Zu=0)}function nd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ke(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=nt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ml,n=Pl,n=et(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Fl===2||Fl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&je(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||tt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&je(r),dt(n)){case 2:case 8:n=Le;break;case 32:n=Re;break;case 268435456:n=Be;break;default:n=Re}return r=rd.bind(null,e),n=Ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&je(r),e.callbackPriority=2,e.callbackNode=null,2}function rd(e,t){if(tu!==0&&tu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Iu()&&e.callbackNode!==n)return null;var r=Pl;return r=et(e,e===Ml?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(pu(e,r,t),nd(e,Pe()),e.callbackNode!=null&&e.callbackNode===n?rd.bind(null,e):null)}function id(e,t){if(Iu())return null;pu(e,t,!0)}function ad(){Wd(function(){jl&6?Ae(Ie,ed):td()})}function od(){if(Zu===0){var e=ua;e===0&&(e=Xe,Xe<<=1,!(Xe&261888)&&(Xe=256)),Zu=e}return Zu}function sd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:an(``+e)}function cd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function ld(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=sd((i[O]||null).action),o=r.submitter;o&&(t=(t=o[O]||null)?sd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new En(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Zu!==0){var e=o?cd(i,o):new FormData(i);ys(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?cd(i,o):new FormData(i),ys(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var ud=0;ud<qr.length;ud++){var dd=qr[ud];Jr(dd.toLowerCase(),`on`+(dd[0].toUpperCase()+dd.slice(1)))}Jr(F,`onAnimationEnd`),Jr(I,`onAnimationIteration`),Jr(L,`onAnimationStart`),Jr(`dblclick`,`onDoubleClick`),Jr(`focusin`,`onFocus`),Jr(`focusout`,`onBlur`),Jr(Hr,`onTransitionRun`),Jr(Ur,`onTransitionStart`),Jr(Wr,`onTransitionCancel`),Jr(Gr,`onTransitionEnd`),jt(`onMouseEnter`,[`mouseout`,`mouseover`]),jt(`onMouseLeave`,[`mouseout`,`mouseover`]),jt(`onPointerEnter`,[`pointerout`,`pointerover`]),jt(`onPointerLeave`,[`pointerout`,`pointerover`]),At(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),At(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),At(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),At(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var fd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),pd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(fd));function md(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}}}}function hd(e,t){var n=t[_t];n===void 0&&(n=t[_t]=new Set);var r=e+`__bubble`;n.has(r)||(yd(t,e,2,!1),n.add(r))}function gd(e,t,n){var r=0;t&&(r|=4),yd(n,e,r,t)}var _d=`_reactListening`+Math.random().toString(36).slice(2);function vd(e){if(!e[_d]){e[_d]=!0,Ot.forEach(function(t){t!==`selectionchange`&&(pd.has(t)||gd(t,!1,e),gd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_d]||(t[_d]=!0,gd(`selectionchange`,!1,t))}}function yd(e,t,n,r){switch(lp(t)){case 2:var i=rp;break;case 8:i=ip;break;default:i=ap}n=i.bind(null,t,n,e),i=void 0,!hn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function bd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Ct(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}pn(function(){var r=a,i=cn(n),s=[];a:{var c=Kr.get(e);if(c!==void 0){var l=En,u=e;switch(e){case`keypress`:if(xn(n)===0)break a;case`keydown`:case`keyup`:l=Wn;break;case`focusin`:u=`focus`,l=Fn;break;case`focusout`:u=`blur`,l=Fn;break;case`beforeblur`:case`afterblur`:l=Fn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Nn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Pn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=M;break;case F:case I:case L:l=In;break;case Gr:l=Kn;break;case`scroll`:case`scrollend`:l=On;break;case`wheel`:l=qn;break;case`copy`:case`cut`:case`paste`:l=Ln;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Gn;break;case`toggle`:case`beforetoggle`:l=Jn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=j(m,p),g!=null&&d.push(xd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==sn&&(u=n.relatedTarget||n.fromElement)&&(Ct(u)||u[gt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Ct(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Nn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Gn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Tt(l),h=u==null?c:Tt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,Ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=oee,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Cd(s,c,l,d,!1),u!==null&&f!==null&&Cd(s,f,u,d,!0)}}a:{if(c=r?Tt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=mr;else if(cr(c))if(hr)v=N;else{v=Sr;var y=xr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&tn(r.elementType)&&(v=mr):v=Cr;if(v&&=v(e,r)){lr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&qt(c,`number`,c.value)}switch(y=r?Tt(r):window,e){case`focusin`:(cr(y)||y.contentEditable===`true`)&&(Mr=y,Nr=r,Pr=null);break;case`focusout`:Pr=Nr=Mr=null;break;case`mousedown`:Fr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Fr=!1,Ir(s,n,i);break;case`selectionchange`:if(jr)break;case`keydown`:case`keyup`:Ir(s,n,i)}var b;if(Xn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else ir?nr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&($n&&n.locale!==`ko`&&(ir||x!==`onCompositionStart`?x===`onCompositionEnd`&&ir&&(b=bn()):(_n=i,vn=`value`in _n?_n.value:_n.textContent,ir=!0)),y=Sd(r,x),0<y.length&&(x=new Rn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=rr(n),b!==null&&(x.data=b)))),(b=Qn?ar(e,n):or(e,n))&&(x=Sd(r,`onBeforeInput`),0<x.length&&(y=new Rn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),ld(s,e,r,n,i)}md(s,t)})}function xd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Sd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=j(e,n),i!=null&&r.unshift(xd(e,i,a)),i=j(e,t),i!=null&&r.push(xd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function oee(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=j(n,a),l!=null&&o.unshift(xd(n,l,c))):i||(l=j(n,a),l!=null&&o.push(xd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var wd=/\r\n?/g,see=/\u0000|\uFFFD/g;function Td(e){return(typeof e==`string`?e:``+e).replace(wd,`
`).replace(see,``)}function Ed(e,t){return t=Td(t),Td(e)===t}function Dd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Zt(e,``+r);break;case`className`:Lt(e,`class`,r);break;case`tabIndex`:Lt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Lt(e,n,r);break;case`style`:en(e,r,o);break;case`data`:if(t!==`object`){Lt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Dd(e,t,`name`,a.name,a,null),Dd(e,t,`formEncType`,a.formEncType,a,null),Dd(e,t,`formMethod`,a.formMethod,a,null),Dd(e,t,`formTarget`,a.formTarget,a,null)):(Dd(e,t,`encType`,a.encType,a,null),Dd(e,t,`method`,a.method,a,null),Dd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&hd(`scroll`,e);break;case`onScrollEnd`:r!=null&&hd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=an(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:hd(`beforetoggle`,e),hd(`toggle`,e),It(e,`popover`,r);break;case`xlinkActuate`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:It(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=nn.get(n)||n,It(e,n,r))}}function Od(e,t,n,r,a,o){switch(n){case`style`:en(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Zt(e,``+r);break;case`onScroll`:r!=null&&hd(`scroll`,e);break;case`onScrollEnd`:r!=null&&hd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=on);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[O]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):It(e,n,r)}}}function kd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:hd(`error`,e),hd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Dd(e,t,o,s,n,null)}}a&&Dd(e,t,`srcSet`,n.srcSet,n,null),r&&Dd(e,t,`src`,n.src,n,null);return;case`input`:hd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Dd(e,t,r,d,n,null)}}Kt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in hd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Dd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Jt(e,!!r,n,!0):Jt(e,!!r,t,!1);return;case`textarea`:for(s in hd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Dd(e,t,s,c,n,null)}Xt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Dd(e,t,l,r,n,null)}return;case`dialog`:hd(`beforetoggle`,e),hd(`toggle`,e),hd(`cancel`,e),hd(`close`,e);break;case`iframe`:case`object`:hd(`load`,e);break;case`video`:case`audio`:for(r=0;r<fd.length;r++)hd(fd[r],e);break;case`image`:hd(`error`,e),hd(`load`,e);break;case`details`:hd(`toggle`,e);break;case`embed`:case`source`:case`link`:hd(`error`,e),hd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Dd(e,t,u,r,n,null)}return;default:if(tn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Od(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Dd(e,t,c,r,n,null))}function Ad(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Dd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Dd(e,t,p,m,r,f)}}Gt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Dd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Dd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Jt(e,!!n,n?[]:``,!1):Jt(e,!!n,t,!0)):Jt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Dd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Dd(e,t,s,a,r,o)}Yt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Dd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Dd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Dd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Dd(e,t,u,p,r,m)}return;default:if(tn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Od(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Od(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Dd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Dd(e,t,f,p,r,m)}function jd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Md(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&jd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&jd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Nd=null,Pd=null;function Fd(e){return e.nodeType===9?e:e.ownerDocument}function Id(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ld(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Rd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zd=null;function Bd(){var e=window.event;return e&&e.type===`popstate`?e===zd?!1:(zd=e,!0):(zd=null,!1)}var Vd=typeof setTimeout==`function`?setTimeout:void 0,Hd=typeof clearTimeout==`function`?clearTimeout:void 0,Ud=typeof Promise==`function`?Promise:void 0,Wd=typeof queueMicrotask==`function`?queueMicrotask:Ud===void 0?Vd:function(e){return Ud.resolve(null).then(e).catch(Gd)};function Gd(e){setTimeout(function(){throw e})}function Kd(e){return e===`head`}function qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Dp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)cf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,cf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[xt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&cf(e.ownerDocument.body);n=i}while(n);Dp(t)}function Jd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function Yd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:Yd(n),St(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function Xd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[xt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=nf(e.nextSibling),e===null)break}return null}function Zd(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=nf(e.nextSibling),e===null))return null;return e}function Qd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=nf(e.nextSibling),e===null))return null;return e}function $d(e){return e.data===`$?`||e.data===`$~`}function ef(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function tf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function nf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var rf=null;function af(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return nf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function of(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function sf(e,t,n){switch(t=Fd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function cf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);St(e)}var lf=new Map,uf=new Set;function df(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ff=ce.d;ce.d={f:pf,r:mf,D:_f,C:vf,L:yf,m:bf,X:Sf,S:xf,M:Cf};function pf(){var e=ff.f(),t=gu();return e||t}function mf(e){var t=wt(e);t!==null&&t.tag===5&&t.type===`form`?xs(t):ff.r(e)}var hf=typeof document>`u`?null:document;function gf(e,t,n){var r=hf;if(r&&typeof t==`string`&&t){var i=Wt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),uf.has(i)||(uf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),kd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function _f(e){ff.D(e),gf(`dns-prefetch`,e,null)}function vf(e,t){ff.C(e,t),gf(`preconnect`,e,t)}function yf(e,t,n){ff.L(e,t,n);var r=hf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Wt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Wt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Wt(n.imageSizes)+`"]`)):i+=`[href="`+Wt(e)+`"]`;var a=i;switch(t){case`style`:a=Tf(e);break;case`script`:a=kf(e)}lf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),lf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ef(a))||t===`script`&&r.querySelector(Af(a))||(t=r.createElement(`link`),kd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function bf(e,t){ff.m(e,t);var n=hf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Wt(r)+`"][href="`+Wt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=kf(e)}if(!lf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),lf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Af(a)))return}r=n.createElement(`link`),kd(r,`link`,e),Dt(r),n.head.appendChild(r)}}}function xf(e,t,n){ff.S(e,t,n);var r=hf;if(r&&e){var i=Et(r).hoistableStyles,a=Tf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ef(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=lf.get(a))&&Nf(e,n);var c=o=r.createElement(`link`);Dt(c),kd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Mf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Sf(e,t){ff.X(e,t);var n=hf;if(n&&e){var r=Et(n).hoistableScripts,i=kf(e),a=r.get(i);a||(a=n.querySelector(Af(i)),a||(e=f({src:e,async:!0},t),(t=lf.get(i))&&Pf(e,t),a=n.createElement(`script`),Dt(a),kd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Cf(e,t){ff.M(e,t);var n=hf;if(n&&e){var r=Et(n).hoistableScripts,i=kf(e),a=r.get(i);a||(a=n.querySelector(Af(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=lf.get(i))&&Pf(e,t),a=n.createElement(`script`),Dt(a),kd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function wf(e,t,n,r){var a=(a=ge.current)?df(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Tf(n.href),n=Et(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Tf(n.href);var o=Et(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Ef(e)))&&!o._p&&(s.instance=o,s.state.loading=5),lf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},lf.set(e,n),o||Of(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=kf(n),n=Et(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Tf(e){return`href="`+Wt(e)+`"`}function Ef(e){return`link[rel="stylesheet"][`+e+`]`}function Df(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Of(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),kd(t,`link`,n),Dt(t),e.head.appendChild(t))}function kf(e){return`[src="`+Wt(e)+`"]`}function Af(e){return`script[async]`+e}function jf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Wt(n.href)+`"]`);if(r)return t.instance=r,Dt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Dt(r),kd(r,`style`,a),Mf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Tf(n.href);var o=e.querySelector(Ef(a));if(o)return t.state.loading|=4,t.instance=o,Dt(o),o;r=Df(n),(a=lf.get(a))&&Nf(r,a),o=(e.ownerDocument||e).createElement(`link`),Dt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),kd(o,`link`,r),t.state.loading|=4,Mf(o,n.precedence,e),t.instance=o;case`script`:return o=kf(n.src),(a=e.querySelector(Af(o)))?(t.instance=a,Dt(a),a):(r=n,(a=lf.get(o))&&(r=f({},n),Pf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Dt(a),kd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Mf(r,n.precedence,e));return t.instance}function Mf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Nf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Pf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Ff=null;function If(e,t,n){if(Ff===null){var r=new Map,i=Ff=new Map;i.set(n,r)}else i=Ff,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[xt]||a[ht]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Lf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Rf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Bf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Tf(r.href),a=t.querySelector(Ef(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Uf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Dt(a);return}a=t.ownerDocument||t,r=Df(r),(i=lf.get(i))&&Nf(r,i),a=a.createElement(`link`),Dt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),kd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Uf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Vf=0;function Hf(e,t){return e.stylesheets&&e.count===0&&Gf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Gf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Vf===0&&(Vf=62500*Md());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Vf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wf=null;function Gf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wf=new Map,t.forEach(Kf,e),Wf=null,Uf.call(e))}function Kf(e,t){if(!(t.state.loading&4)){var n=Wf.get(e);if(n)var r=n.get(null);else{n=new Map,Wf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Uf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var qf={$$typeof:x,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Jf(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Yf(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Jf(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=si(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ra(a),e}function Xf(e){return e?(e=ai,e):ai}function Zf(e,t,n,r,i,a){i=Xf(i),r.context===null?r.context=i:r.pendingContext=i,r=H(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=za(e,r,t),n!==null&&(fu(n,e,t),Ba(n,e,t))}function Qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $f(e,t){Qf(e,t),(e=e.alternate)&&Qf(e,t)}function ep(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&fu(t,e,67108864),$f(e,67108864)}}function tp(e){if(e.tag===13||e.tag===31){var t=uu();t=ut(t);var n=ni(e,t);n!==null&&fu(n,e,t),$f(e,t)}}var np=!0;function rp(e,t,n,r){var i=se.T;se.T=null;var a=ce.p;try{ce.p=2,ap(e,t,n,r)}finally{ce.p=a,se.T=i}}function ip(e,t,n,r){var i=se.T;se.T=null;var a=ce.p;try{ce.p=8,ap(e,t,n,r)}finally{ce.p=a,se.T=i}}function ap(e,t,n,r){if(np){var i=op(r);if(i===null)bd(e,t,r,sp,n),vp(e,r);else if(cee(i,e,t,n,r))r.stopPropagation();else if(vp(e,r),t&4&&-1<_p.indexOf(e)){for(;i!==null;){var a=wt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=$e(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ke(o);s.entanglements[1]|=c,o&=~c}Qu(a),!(jl&6)&&(Ql=Pe()+500,$u(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&fu(s,a,2),gu(),$f(a,2)}if(a=op(r),a===null&&bd(e,t,r,sp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else bd(e,t,r,null,n)}}function op(e){return e=cn(e),cp(e)}var sp=null;function cp(e){if(sp=null,e=Ct(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return sp=e,null}function lp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Fe()){case Ie:return 2;case Le:return 8;case Re:case ze:return 32;case Be:return 268435456;default:return 32}default:return 32}}var up=!1,dp=null,fp=null,pp=null,mp=new Map,hp=new Map,gp=[],_p=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function vp(e,t){switch(e){case`focusin`:case`focusout`:dp=null;break;case`dragenter`:case`dragleave`:fp=null;break;case`mouseover`:case`mouseout`:pp=null;break;case`pointerover`:case`pointerout`:mp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:hp.delete(t.pointerId)}}function yp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=wt(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function cee(e,t,n,r,i){switch(t){case`focusin`:return dp=yp(dp,e,t,n,r,i),!0;case`dragenter`:return fp=yp(fp,e,t,n,r,i),!0;case`mouseover`:return pp=yp(pp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return mp.set(a,yp(mp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,hp.set(a,yp(hp.get(a)||null,e,t,n,r,i)),!0}return!1}function bp(e){var t=Ct(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,pt(e.priority,function(){tp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,pt(e.priority,function(){tp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=op(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sn=r,n.target.dispatchEvent(r),sn=null}else return t=wt(n),t!==null&&ep(t),e.blockedOn=n,!1;t.shift()}return!0}function Sp(e,t,n){xp(e)&&n.delete(t)}function Cp(){up=!1,dp!==null&&xp(dp)&&(dp=null),fp!==null&&xp(fp)&&(fp=null),pp!==null&&xp(pp)&&(pp=null),mp.forEach(Sp),hp.forEach(Sp)}function wp(e,n){e.blockedOn===n&&(e.blockedOn=null,up||(up=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Cp)))}var Tp=null;function Ep(e){Tp!==e&&(Tp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Tp===e&&(Tp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(cp(r||n)===null)continue;break}var a=wt(n);a!==null&&(e.splice(t,3),t-=3,ys(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Dp(e){function t(t){return wp(t,e)}dp!==null&&wp(dp,e),fp!==null&&wp(fp,e),pp!==null&&wp(pp,e),mp.forEach(t),hp.forEach(t);for(var n=0;n<gp.length;n++){var r=gp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<gp.length&&(n=gp[0],n.blockedOn===null);)bp(n),n.blockedOn===null&&gp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[O]||null;if(typeof a==`function`)o||Ep(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[O]||null)s=o.formAction;else if(cp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Ep(n)}}}function Op(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function kp(e){this._internalRoot=e}Ap.prototype.render=kp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;Zf(n,uu(),e,t,null,null)},Ap.prototype.unmount=kp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zf(e.current,2,null,e,null,null),gu(),t[gt]=null}};function Ap(e){this._internalRoot=e}Ap.prototype.unstable_scheduleHydration=function(e){if(e){var t=ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gp.length&&t!==0&&t<gp[n].priority;n++);gp.splice(n,0,e),n===0&&bp(e)}};var jp=n.version;if(jp!==`19.2.8`)throw Error(i(527,jp,`19.2.8`));ce.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Mp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:se,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Np=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Np.isDisabled&&Np.supportsFiber)try{Ue=Np.inject(Mp),We=Np}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Yf(e,1,!1,null,null,n,r,null,o,s,c,Op),e[gt]=t.current,vd(e),new kp(t)}})),jTe=c(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ATe()})),MTe,NTe,PTe,Y7,FTe,ITe,LTe,RTe,zTe,BTe,VTe,HTe,X7,UTe,WTe=s((()=>{wx(),JN(),fb(),MTe={ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|blob):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i,ADD_TAGS:[`iframe`],ADD_ATTR:[`allow`,`allowfullscreen`,`referrerpolicy`,`sandbox`]},NTe=e=>{let t=e.getAttribute(`src`)?.trim()||``;if(!t.startsWith(`https://`))return!1;try{let e=new URL(t),n=typeof window<`u`&&window.location?window.location.origin:``;if(n&&e.origin===n)return!1}catch{return!1}let n=e.getAttribute(`sandbox`)||``,r=new Set(n.split(/\s+/).filter(Boolean));return r.add(`allow-scripts`),r.add(`allow-same-origin`),e.setAttribute(`sandbox`,Array.from(r).join(` `)),!0},PTe=(e,t={})=>{let n=Cx(e,{...MTe,...t,RETURN_DOM:!0});return Array.from(n.querySelectorAll(`iframe`)).forEach(e=>{NTe(e)||e.remove()}),n.innerHTML},Y7=`span[data-component-key]`,FTe=`img[src]:not([data-processed])`,ITe=e=>Array.from(e).reduce((e,t)=>((e^t.charCodeAt(0))>>>0)*16777619>>>0,2166136261).toString(16),LTe=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),RTe=/^[ ]{0,3}(`{3,}|~{3,})/,zTe=/^<([a-zA-Z][a-zA-Z0-9]*)(?:[\s>])/,BTe=new Map,VTe=e=>{if(!e)return[];let t=[],n=[],r=null,i=null;return e.split(`
`).forEach(e=>{if(r){n.push(e);let t=e.trimStart();e.length-t.length<=3&&t.startsWith(r.char.repeat(r.length))&&!/\S/.test(t.slice(r.length))&&(r=null)}else if(i){n.push(e);let{openRe:t,closeRe:r}=i;i.depth+=[...e.matchAll(t)].length-[...e.matchAll(r)].length,i.depth<=0&&(i=null)}else{let a=RTe.exec(e);if(a)n.push(e),r={char:a[1][0],length:a[1].length};else{let r=zTe.exec(e);if(r){let t=r[1].toLowerCase();if(n.push(e),!LTe.has(t)){let{openRe:n,closeRe:r}=db(BTe,t,()=>({openRe:RegExp(`<${t}(?:[\\s>])`,`gi`),closeRe:RegExp(`<\\/${t}>`,`gi`)})),a=[...e.matchAll(n)].length-[...e.matchAll(r)].length;a>0&&(i={tag:t,depth:a,openRe:n,closeRe:r})}}else e===``?n.length&&t.push(n.splice(0).join(`
`)):n.push(e)}}}),n.length&&t.push(n.join(`
`)),t},HTe=(...e)=>{let{alt:t,src:n,title:r}=e.at(-1),i=n.replaceAll(` `,`%20`);return r?`![${t}](${i} "${r}")`:`![${t}](${i})`},X7=new Map,UTe=(e,t)=>{let n=new Map,r=(e??``).replace(GN,HTe);return t.forEach(({pattern:e,fromBlock:t,toPreview:i})=>{let a=`${e.source}|${e.flags}`,o=X7.get(a);o||(o=e.global?e:new RegExp(e.source,`${e.flags}g`),X7.set(a,o));let s=[],c=new Map;r.matchAll(o).forEach(e=>{let r=ITe(e[0]),a=c.get(r)??0,o=a===0?r:`${r}-${a}`,l=t?.(e)??e.groups??{};s.push(o),c.set(r,a+1),n.set(o,i?.(l))}),r=r.replaceAll(o,()=>{let e=s.shift(),t=n.get(e);return typeof t==`string`?t:`<span data-component-key="${e}"></span>`})}),{markdown:r,previewMap:n}}}));function GTe(e,t){k(t,!0),G(e,YTe);let n=()=>j(bF,`$cmsConfig`,i),r=()=>j(D6,`$entryDraft`,i),[i,a]=hn();SS(wTe()),SS({renderer:{code({text:e,lang:t}){let{Prism:n}=window;return n&&t&&n.languages[t]?`<pre><code class="language-${t}">${n.highlight(e,n.languages[t],t)}</code></pre>\n`:!1}}});let o=n()?.field_defaults?.richtext??{},s=new kh,c=new kh,l=N(void 0),u=N(!1),d=M(()=>r()?.originalEntry),f=M(()=>r()?.collectionName??``),p=M(()=>r()?.fileName),m=M(()=>E(t.fieldConfig.sanitize_preview,()=>o.sanitize_preview??!0,!0)),h=M(()=>E(t.fieldConfig.editor_components,()=>o.editor_components??[...R7,...pp.keys()],!0)),g=M(()=>E(t.fieldConfig.linked_images,()=>o.linked_images??!0,!0)),_=M(()=>z(h).map(e=>nP(e===`image`&&z(g)?`linked-image`:e)).filter(e=>!!e)),v=M(()=>{if(typeof t.currentValue!=`string`||!t.currentValue.trim())return``;let{markdown:e,previewMap:n}=UTe(t.currentValue,z(_));return c=n,e}),y=e=>{let t=e.dataset.componentKey,n=t?c.get(t):void 0;if((0,KTe.isValidElement)(n)){let t=(0,qTe.createRoot)(e);s.set(e,t),t.render(n)}else e.remove()},b=e=>{[e,...e.querySelectorAll(Y7)].forEach(e=>{let t=s.get(e);t&&(t.unmount(),s.delete(e))})},x=async e=>{e.dataset.processed=`true`;let n=await BM({value:e.getAttribute(`src`),entry:z(d),collectionName:z(f),fileName:z(p),typedKeyPath:t.typedKeyPath});n&&(e.src=n)},S=e=>{e.forEach(({removedNodes:e,addedNodes:t})=>{e.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&b(e)}),t.forEach(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return;let t=e;t.matches(`span[data-component-key]`)?y(t):t.querySelectorAll(Y7).forEach(e=>{y(e)}),t.matches(`img[src]:not([data-processed])`)?x(t):t.querySelectorAll(FTe).forEach(e=>{x(e)})})})},C=e=>{let t=wS(e,{breaks:!0});return z(m)?PTe(t):t};lc(()=>{let e=new MutationObserver(S);return e.observe(z(l),{childList:!0,subtree:!0}),P(u,!0),()=>{e.disconnect(),s.forEach(e=>e.unmount()),s.clear()}});var w=JTe(),T=F(w),ee=e=>{var t=V();vo(I(t),19,()=>VTe(z(v)),(e,t)=>`${t}-${e}`,(e,t)=>{var n=V();Eo(I(n),()=>C(z(t))),H(e,n)}),H(e,t)};W(T,e=>{z(u)&&z(v)&&e(ee)}),O(w),qs(w,e=>P(l,e),()=>z(l)),H(e,w),A(),a()}var KTe,qTe,JTe,YTe,XTe=s((()=>{Z(),J(),TS(),TTe(),KTe=h(),qTe=jTe(),dc(),Nh(),VM(),TF(),yp(),M6(),z7(),rP(),WTe(),JTe=B(`<div role="none" class="svelte-14tuh7g"><!></div>`),YTe={hash:`svelte-14tuh7g`,code:`[role='document'] div.svelte-14tuh7g {:is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}:is(video, img) {max-width:100%;max-height:100%;}:is(a:has(img)) {display:inline-block;img {pointer-events:none;}}}div.svelte-14tuh7g {[data-component-key] {display:contents;}}`}}));function ZTe(e,t){k(t,!0);let n=M(()=>t.fieldConfig.options),r=M(()=>t.fieldConfig.multiple),i=M(()=>_T(z(n))),a=M(()=>XC(t.locale)),o=e=>z(i)&&z(n).find(t=>t.value===e)?.label||String(e);var s=V(),c=I(s),l=e=>{var n=Z7(),r=F(n,!0);O(n),R((e,t,i)=>{K(n,`lang`,e),K(n,`dir`,t),U(r,i),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale),()=>z(a).format(t.currentValue.map(o).sort())]),H(e,n)},u=M(()=>z(r)&&Array.isArray(t.currentValue)&&t.currentValue.length),d=e=>{var n=Z7(),r=F(n,!0);O(n),R((e,t,i)=>{K(n,`lang`,e),K(n,`dir`,t),U(r,i),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale),()=>o(t.currentValue)]),H(e,n)};W(c,e=>{z(u)?e(l):t.currentValue!==void 0&&e(d,1)}),H(e,s),A()}var Z7,QTe=s((()=>{Z(),J(),yT(),QC(),Z7=B(`<p> </p>`)}));function $Te(e,t){k(t,!0),G(e,tEe);let n=M(()=>t.fieldConfig.minlength),r=M(()=>t.fieldConfig.maxlength),i=M(()=>U7({fieldConfig:t.fieldConfig,locale:t.locale,value:t.currentValue}).detail),a=M(()=>z(i).count),o=M(()=>z(i).hasMin),s=M(()=>z(i).hasMax),c=M(()=>z(i).invalid);var l=V(),u=I(l),d=e=>{var t=eEe(),i=F(t),l=e=>{var t=Ra();R(()=>U(t,`${z(n)??``}  / `)),H(e,t)};W(i,e=>{z(o)&&e(l)});var u=L(i,2);let d;var f=F(u,!0);O(u);var p=L(u,2),m=e=>{var t=Ra();R(()=>U(t,` / 
      ${z(r)??``}`)),H(e,t)};W(p,e=>{z(s)&&e(m)}),O(t),R(e=>{K(t,`aria-label`,e),d=ds(u,1,`count svelte-19vklom`,null,d,{invalid:z(c)}),U(f,z(a))},[()=>Y(z(o)&&z(s)?`character_counter.min_max`:z(o)?`character_counter.min`:`character_counter.max`,{values:{count:z(a),min:z(n),max:z(r)}})]),H(e,t)};W(u,e=>{(z(o)||z(s))&&e(d)}),H(e,l),A()}var eEe,tEe,nEe=s((()=>{Z(),J(),X(),Qwe(),eEe=B(`<div class="wrapper svelte-19vklom"><!> <span role="none"> </span> <!></div>`),tEe={hash:`svelte-19vklom`,code:`.wrapper.svelte-19vklom {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:end;}.count.svelte-19vklom {&.invalid {color:var(--sui-error-foreground-color);}&:not(.invalid) {color:var(--sui-success-foreground-color);}}`}}));function rEe(e,t){k(t,!0);let[n,r]=hn(),i=q(t,`currentValue`,15),a=q(t,`required`,3,!0),o=q(t,`readonly`,3,!1),s=q(t,`invalid`,3,!1),{extraHint:c}=Lt(`field-editor`)??{},l=N(``),u=M(()=>E(t.fieldConfig.type,`text`)),d=M(()=>E(t.fieldConfig.prefix,``)),f=M(()=>E(t.fieldConfig.suffix,``)),p=()=>{let e=typeof i()==`string`?i():String(i()??``);z(d)&&e.startsWith(z(d))&&(e=e.slice(z(d).length)),z(f)&&e.endsWith(z(f))&&(e=e.slice(0,-z(f).length)),z(l)!==e&&P(l,e,!0)},m=()=>{let e=z(l);e.trim()&&(z(d)||z(f))&&(e=`${z(d)}${e}${z(f)}`),i()!==e&&i(e)};ri(()=>{i(),Gi(()=>{p()})}),ri(()=>{z(l),Gi(()=>{m()})}),ri(()=>{c&&mn(c,$Te)});{let n=M(()=>GC(t.locale)),r=M(()=>KC(t.locale));oL(e,{get lang(){return z(n)},get dir(){return z(r)},get type(){return z(u)},get inputmode(){return z(u)},flex:!0,get readonly(){return o()},get required(){return a()},get invalid(){return s()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(l)},set value(e){P(l,e,!0)}})}A(),r()}var iEe=s((()=>{Z(),J(),$(),dc(),nEe(),QC()})),aEe,oEe,sEe=s((()=>{Ip(),aEe=e=>{if(!Pp(e))return!1;let{origin:t,pathname:n,searchParams:r}=new URL(e);return!!((t===`https://www.youtube.com`||t===`https://www.youtube-nocookie.com`)&&(n===`/watch`&&r.has(`v`)||n===`/playlist`&&r.has(`list`)||n.startsWith(`/embed/`))||t===`https://youtu.be`&&n)},oEe=e=>{let t=`https://www.youtube-nocookie.com`,{pathname:n,search:r,searchParams:i}=new URL(e);if(n===`/watch`){let e=new URLSearchParams(i),n=`${t}/embed/${e.get(`v`)}`;return e.get(`list`)&&(e.delete(`v`),e.set(`listType`,`playlist`),n+=`?${e}`),n}return n===`/playlist`?`${t}/embed/videoseries${r}`:n.startsWith(`/embed/`)?`${t}${n}${r}`:`${t}/embed${n}${r}`}}));function cEe(e,t){k(t,!0),G(e,fEe);let n=N(!0),r=M(()=>oEe(t.url)),i=({blockedURI:e,violatedDirective:t})=>{e===new URL(z(r)).origin&&t===`frame-src`&&(P(n,!1),window.removeEventListener(`securitypolicyviolation`,i))};lc(()=>(window.addEventListener(`securitypolicyviolation`,i),()=>{window.removeEventListener(`securitypolicyviolation`,i)}));var a=dEe(),o=F(a),s=e=>{W8(e,{children:(e,t)=>{var n=lEe();R((e,t)=>{K(n,`src`,e),K(n,`title`,t)},[()=>encodeURI(z(r)),()=>Y(`youtube_video_player`)]),H(e,n)},$$slots:{default:!0}})},c=e=>{var n=uEe(),r=F(n,!0);O(n),R(e=>{K(n,`href`,e),U(r,t.url)},[()=>encodeURI(t.url)]),H(e,n)};W(o,e=>{z(n)?e(s):e(c,-1)}),O(a),H(e,a),A()}var lEe,uEe,dEe,fEe,pEe=s((()=>{Z(),J(),X(),dc(),G8(),sEe(),lEe=B(`<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture; clipboard-write" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" sandbox="allow-same-origin allow-scripts allow-popups" class="svelte-spbxln"></iframe>`),uEe=B(`<a> </a>`),dEe=B(`<div role="none"><!></div>`),fEe={hash:`svelte-spbxln`,code:`iframe.svelte-spbxln {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16 / 9;}`}}));function mEe(e,t){k(t,!0),G(e,gEe);let n=M(()=>t.fieldConfig.name),r=M(()=>E(t.fieldConfig.type,`text`)),i=/^(?:https|mailto|tel):/;var a=V(),o=I(a),s=e=>{var a=hEe();let o;var s=F(a),c=e=>{var n=V(),r=I(n),a=e=>{cEe(e,{get url(){return t.currentValue}})},o=M(()=>aEe(t.currentValue)),s=e=>{var n=Q7(),r=F(n,!0);O(n),R(e=>{K(n,`href`,e),U(r,t.currentValue)},[()=>encodeURI(t.currentValue)]),H(e,n)},c=M(()=>i.test(t.currentValue)),l=e=>{var n=Ra();R(()=>U(n,t.currentValue)),H(e,n)};W(r,e=>{z(o)?e(a):z(c)?e(s,1):e(l,-1)}),H(e,n)},l=M(()=>z(r)===`url`||Pp(t.currentValue)),u=e=>{var n=Q7(),r=F(n,!0);O(n),R(e=>{K(n,`href`,`mailto:${e??``}`),U(r,t.currentValue)},[()=>encodeURI(t.currentValue)]),H(e,n)},d=e=>{var n=Ra();R(()=>U(n,t.currentValue)),H(e,n)};W(s,e=>{z(l)?e(c):z(r)===`email`?e(u,1):e(d,-1)}),O(a),R((e,t)=>{K(a,`lang`,e),K(a,`dir`,t),o=ds(a,1,`svelte-euqs6c`,null,o,{title:z(n)===`title`}),a.dir=a.dir},[()=>GC(t.locale),()=>KC(t.locale)]),H(e,a)},c=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());W(o,e=>{z(c)&&e(s)}),H(e,a),A()}var Q7,hEe,gEe,_Ee=s((()=>{Z(),J(),Ip(),pEe(),QC(),sEe(),Q7=B(`<a> </a>`),hEe=B(`<p><!></p>`),gEe={hash:`svelte-euqs6c`,code:`.title.svelte-euqs6c {font-size:var(--sui-font-size-xxx-large);font-weight:var(--sui-font-weight-bold);}

  /* Remove the padding to make the iframe full-width on small screens */
  @media (width < 768px) {[role='document'] section > p.svelte-euqs6c:has(iframe) {margin-inline:calc(var(--entry-preview-padding-inline) * -1);}
  }`}}));function vEe(e,t){k(t,!0);let[n,r]=hn(),{extraHint:i}=Lt(`field-editor`)??{},a=q(t,`currentValue`,15),o=q(t,`required`,3,!0),s=q(t,`readonly`,3,!1),c=q(t,`invalid`,3,!1),l=N(``),u=()=>{let e=typeof a()==`string`?a():``;z(l)!==e&&P(l,e,!0)},d=()=>{let e=z(l);a()!==e&&a(e)};ri(()=>{a(),Gi(()=>{u()})}),ri(()=>{z(l),Gi(()=>{d()})}),ri(()=>{i&&mn(i,$Te)});{let n=M(()=>GC(t.locale)),r=M(()=>KC(t.locale));T0(e,{get lang(){return z(n)},get dir(){return z(r)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,get value(){return z(l)},set value(e){P(l,e,!0)}})}A(),r()}var yEe=s((()=>{Z(),J(),$(),dc(),nEe(),QC()}));function bEe(e,t){k(t,!0),G(e,SEe);var n=V(),r=I(n),i=e=>{var n=xEe(),r=F(n,!0);O(n),R((e,i)=>{K(n,`lang`,e),K(n,`dir`,i),U(r,t.currentValue),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale)]),H(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());W(r,e=>{z(a)&&e(i)}),H(e,n),A()}var xEe,SEe,CEe=s((()=>{Z(),J(),QC(),xEe=B(`<p class="svelte-q17c48"> </p>`),SEe={hash:`svelte-q17c48`,code:`p.svelte-q17c48 {white-space:pre-wrap;}`}})),$7,wEe=s((()=>{Ap(),$7=e=>{let{prefix:t,use_b32_encoding:n}=e,r=n?Op():Dp();return t?`${t}${r}`:r}}));function TEe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=q(t,`currentValue`,15),o=q(t,`required`,3,!0),s=q(t,`readonly`,3,!0),c=q(t,`invalid`,3,!1),l=M(()=>n()?.collection),u=M(()=>n()?.collectionFile),d=M(()=>(z(u)??z(l))?._i18n??aw),f=M(()=>z(d).defaultLocale);lc(()=>{a()||(t.locale===z(f)||[!0,`translate`].includes(t.fieldConfig?.i18n??!1))&&a($7(t.fieldConfig)),`read_only`in t.fieldConfig&&PC(`uuid_read_only`)});{let n=M(()=>s()&&t.fieldConfig.read_only!==!1);oL(e,{dir:`ltr`,flex:!0,get readonly(){return z(n)},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return a()},set value(e){a(e)}})}A(),i()}var EEe=s((()=>{Z(),J(),$(),dc(),FC(),M6(),wEe(),sw()}));function DEe(e,t){k(t,!0),G(e,kEe);var n=V(),r=I(n),i=e=>{var n=OEe(),r=F(n,!0);O(n),R(()=>U(r,t.currentValue)),H(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());W(r,e=>{z(a)&&e(i)}),H(e,n),A()}var OEe,kEe,AEe=s((()=>{Z(),J(),OEe=B(`<p class="svelte-1phz9g8"> </p>`),kEe={hash:`svelte-1phz9g8`,code:`p.svelte-1phz9g8 {font-family:var(--sui-font-family-monospace);}`}})),e9,t9,jEe=s((()=>{Bye(),Uye(),Gye(),Jye(),ebe(),ibe(),obe(),lbe(),hbe(),vbe(),cSe(),hSe(),DSe(),NSe(),DCe(),WCe(),ewe(),iwe(),owe(),lwe(),vwe(),bwe(),kwe(),Mwe(),CTe(),XTe(),Ewe(),QTe(),iEe(),_Ee(),yEe(),CEe(),EEe(),AEe(),e9={boolean:zye,code:Wye,color:Yye,compute:abe,datetime:ube,file:rSe,image:rSe,keyvalue:vSe,list:TCe,map:YCe,markdown:bTe,number:awe,object:pwe,relation:Dwe,richtext:bTe,select:Twe,string:rEe,text:vEe,uuid:TEe},t9={boolean:Vye,code:Kye,color:tbe,compute:sbe,datetime:gbe,file:mSe,image:mSe,keyvalue:OSe,list:HCe,map:twe,markdown:GTe,number:swe,object:ywe,relation:Awe,richtext:GTe,select:ZTe,string:mEe,text:bEe,uuid:DEe}})),n9,r9,MEe,i9,a9=s((()=>{Zp(),M6(),jP(),sP(),n9=(e,t)=>{let n=t.split(`.`);for(let t=n.length-1;t>=1;--t)if(aP(n[t])){let r=n.slice(0,t+1).join(`.`),i=e[`${r}.__sc_item_original_key_path`];if(i!==void 0){let e=n.slice(t+1).join(`.`);return{originalKeyPath:e?`${i}.${e}`:i,currentPrefix:r,originalPrefix:i}}}},r9=({locale:e,isDefaultLocale:t,keyPath:n,getFieldArgs:r,currentValues:i,reset:a=!1,remapPrefix:o})=>{let{valueMap:s={}}=r;Object.entries(s).forEach(([s,c])=>{if(!n||s.startsWith(n)){let n=wP({...r,keyPath:s});if(t||[!0,`translate`].includes(n?.i18n??!1))if(a)delete i[e][s];else{let t=o?`${o.to}${s.slice(o.from.length)}`:s;i[e][t]=c}}})},MEe=({draft:e,keyPath:t,locale:n})=>{let{collection:r,collectionName:i,collectionFile:a,fileName:o,currentValues:s,originalValues:c,isIndexFile:l}=e,{defaultLocale:u}=(a??r)._i18n,d=n===u,f={collectionName:i,fileName:o,keyPath:``,isIndexFile:l},p=t?n9(s[n],t):void 0,m=p?.originalKeyPath??t,h=p?{from:p.originalPrefix,to:p.currentPrefix}:void 0;r9({locale:n,isDefaultLocale:d,keyPath:t,getFieldArgs:{...f,valueMap:s[n]},currentValues:s,reset:!0}),r9({locale:n,isDefaultLocale:d,keyPath:m,getFieldArgs:{...f,valueMap:c[n]},currentValues:s,remapPrefix:h})},i9=({locale:e=``,keyPath:t=``}={})=>{let n=dn(D6),{collection:r,collectionFile:i,currentValues:a}=n,{allLocales:o}=(i??r)._i18n;(e?[e]:o).forEach(e=>{MEe({draft:n,keyPath:t,locale:e})}),D6.update(()=>({...n,currentValues:a}))}}));function o9(e,t){let n=za();k(t,!0),G(e,GEe);let r=()=>j(D6,`$entryDraft`,a),i=()=>j(d,`$extraHint`,a),[a,o]=hn(),s=Lt(`field-editor`)??{},c=q(t,`context`,19,()=>s.fieldContext??void 0),l=q(t,`valueStoreKey`,19,()=>s.valueStoreKey??`currentValues`),u=e=>Cx(CS(e.replaceAll(`\\n`,`<br>`)),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`,`br`],ALLOWED_ATTR:[`href`]}),d=ln();Rt(`field-editor`,{fieldContext:c(),parentComponentNames:[...s.parentComponentNames??[],t.componentName].filter(Boolean),extraHint:d,valueStoreKey:l()});let f=M(()=>c()===`rich-text-editor-component`),p=M(()=>t.fieldConfig.name),m=M(()=>E(t.fieldConfig.widget,`string`)),h=M(()=>E(t.fieldConfig.i18n,!1)),g=M(()=>E(t.fieldConfig.label,``)),_=M(()=>E(t.fieldConfig.comment,``)),v=M(()=>E(t.fieldConfig.hint,``)),y=M(()=>E(t.fieldConfig.readonly,!1)),b=M(()=>TP({fieldConfig:t.fieldConfig,locale:t.locale})),x=M(()=>xP(t.fieldConfig)),S=M(()=>[`string`].includes(z(m))),C=M(()=>z(S)?t.fieldConfig.prefix:void 0),w=M(()=>z(S)?t.fieldConfig.suffix:void 0),T=M(()=>[`boolean`,`number`,`string`].includes(z(m))),ee=M(()=>z(T)?t.fieldConfig.before_input:void 0),te=M(()=>z(T)?t.fieldConfig.after_input:void 0),ne=M(()=>!!(z(C)||z(w)||z(ee)||z(te))),re=M(()=>z(m)===`list`||z(x)),ie=M(()=>r()?.collection),ae=M(()=>r()?.collectionFile),oe=M(()=>r()?.originalValues),se=M(()=>(z(ae)??z(ie))?._i18n??aw),ce=M(()=>z(se).i18nEnabled),le=M(()=>z(se).allLocales),ue=M(()=>z(se).defaultLocale),de=M(()=>z(ce)?z(le).filter(e=>e!==t.locale):[]),D=M(()=>z(ce)&&(z(h)===!0||z(h)===`translate`)),fe=M(()=>z(ce)&&z(h)===`duplicate`),pe=M(()=>z(f)||t.locale===z(ue)||z(D)||z(fe)),me=M(()=>!z(f)&&z(D)&&z(de).length),he=M(()=>!z(f)&&!(z(fe)&&t.locale!==z(ue))),ge=M(()=>RegExp(`^${jp(t.keyPath)}\\.\\d+$`)),_e=M(()=>{let e=At(r()?.[l()][t.locale]??{}),n=e[t.keyPath];if(!z(re))return n;let i=Object.entries(e).filter(([e])=>z(ge).test(e));return i.length?i.map(([,e])=>e).filter(e=>e!==void 0):z(x)&&n!==void 0&&typeof n!=`object`?[n]:[]}),ve=M(()=>{if(z(re))return Object.entries(z(oe)?.[t.locale]??{}).filter(([e])=>z(ge).test(e)).map(([,e])=>e).filter(e=>e!==void 0);let e=n9(At(r()?.[l()][t.locale]??{}),t.keyPath);return e?z(oe)?.[t.locale]?.[e.originalKeyPath]:z(oe)?.[t.locale]?.[t.keyPath]}),ye=M(()=>{if(z(m)===`list`){let e=At(r()?.[l()][t.locale]??{}),n=z(oe)?.[t.locale]??{},i=`${t.keyPath}.`;return(0,s9.default)(Object.entries(e).filter(([e])=>e.startsWith(i)&&!E6.test(e)).sort(([e],[t])=>e.localeCompare(t)),Object.entries(n).filter(([e])=>e.startsWith(i)&&!E6.test(e)).sort(([e],[t])=>e.localeCompare(t)))}return(0,s9.default)(z(_e),z(ve))}),be=M(()=>r()?.validities[t.locale][t.keyPath]),xe=M(()=>z(g)||z(p)),Se=M(()=>z(y)||z(h)===`duplicate`&&t.locale!==z(ue)||z(m)===`compute`||z(m)===`uuid`),Ce=M(()=>z(be)?.valid===!1);ri(()=>{if(r()&&z(x)&&Array.isArray(z(_e))){let e=r()[l()][t.locale]?.[`${t.keyPath}.0`],[n]=z(_e);e===void 0&&n!==void 0&&(_n(D6,Gi(r)[l()][t.locale][`${t.keyPath}.0`]=n,Gi(r)),delete r()[l()][t.locale][t.keyPath])}}),ri(()=>{if(r()&&!z(x)&&z(_e)===void 0){let e=r()[l()][t.locale]?.[`${t.keyPath}.0`];e!==void 0&&(_n(D6,Gi(r)[l()][t.locale][t.keyPath]=e,Gi(r)),Object.keys(r()[l()][t.locale]).forEach(e=>{z(ge).test(e)&&delete r()[l()][t.locale][e]}))}});var we=V(),Te=I(we),Ee=e=>{{let a=M(()=>Y(`x_field`,{values:{field:z(xe)}})),o=M(()=>z(m)===`compute`);Aye(e,{get"aria-label"(){return z(a)},get"data-field-type"(){return z(m)},get"data-key-path"(){return t.keyPath},get"data-typed-key-path"(){return t.typedKeyPath},get hidden(){return z(o)},children:(e,a)=>{var o=WEe(),s=I(o),c=F(s),d=F(c,!0);O(c);var f=L(c,2),p=e=>{var t=NEe();R(e=>K(t,`aria-label`,e),[()=>Y(`required`)]),H(e,t)};W(f,e=>{!z(Se)&&z(b)&&e(p)});var h=L(f,2);PI(h,{flex:!0});var g=L(h,2),y=e=>{Fye(e,{size:`small`,get locale(){return t.locale},get otherLocales(){return z(de)},get keyPath(){return t.keyPath}})},x=M(()=>z(me)&&[`richtext`,`markdown`,`string`,`text`,`list`,`object`].includes(z(m)));W(g,e=>{z(x)&&e(y)});var S=L(g,2),T=e=>{{let n=e=>{{let n=M(()=>Y(`field_options`));YL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{var r=PEe(),i=I(r),a=e=>{T5(e,{get locale(){return t.locale},get otherLocales(){return z(de)},get keyPath(){return t.keyPath}})};W(i,e=>{z(me)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>Y(`revert_changes`));eR(e,{get label(){return z(n)},get disabled(){return z(ye)},onclick:()=>{i9({locale:t.locale,keyPath:t.keyPath})}})}};W(o,e=>{z(he)&&e(s)}),H(e,r)},$$slots:{default:!0}})}},r=M(()=>Y(`show_field_options`));AI(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},popup:n,$$slots:{popup:!0}})}};W(S,e=>{(z(me)||z(he))&&e(T)}),O(s);var E=L(s,2),ie=e=>{var t=FEe(),n=F(t);Eo(n,()=>u(z(_)),!0),O(n),O(t),H(e,t)};W(E,e=>{!z(Se)&&z(_)&&e(ie)});var ae=L(E,2),oe=e=>{D5(e,{get id(){return`${n}-error`},children:(e,n)=>{gt();var i=Ra();R(e=>U(i,e),[()=>r()?.validationMessages[t.locale][t.keyPath]?.join(` `)]),H(e,i)},$$slots:{default:!0}})};W(ae,e=>{z(be)?.valid===!1&&e(oe)});var se=L(ae,2);let ce;var le=F(se),ue=e=>{var t=IEe(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`unsupported_field_type_x`,{values:{name:z(m)}})]),H(e,t)},D=e=>{let r=M(()=>e9[z(m)]);var i=V();Mo(I(i),()=>z(r),(e,r)=>{r(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return z(xe)},get fieldConfig(){return t.fieldConfig},get currentValue(){return z(_e)},get readonly(){return z(Se)},get required(){return z(b)},get invalid(){return z(Ce)}})}),H(e,i)},fe=e=>{let i=M(()=>e9[z(m)]);var a=VEe(),o=I(a),s=e=>{var t=LEe();Eo(t,()=>u(z(ee)),!0),O(t),H(e,t)};W(o,e=>{z(ee)&&e(s)});var c=L(o,2),d=e=>{var t=REe(),n=F(t,!0);O(t),R(()=>U(n,z(C))),H(e,t)};W(c,e=>{z(C)&&e(d)});var f=L(c,2);Mo(f,()=>z(i),(e,i)=>{i(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return z(xe)},get fieldConfig(){return t.fieldConfig},get readonly(){return z(Se)},get required(){return z(b)},get invalid(){return z(Ce)},get currentValue(){return r()[l()][t.locale][t.keyPath]},set currentValue(e){_n(D6,Gi(r)[l()][t.locale][t.keyPath]=e,Gi(r))}})});var p=L(f,2),h=e=>{var t=zEe(),n=F(t,!0);O(t),R(()=>U(n,z(w))),H(e,t)};W(p,e=>{z(w)&&e(h)});var g=L(p,2),_=e=>{var t=BEe();Eo(t,()=>u(z(te)),!0),O(t),H(e,t)};W(g,e=>{z(te)&&e(_)}),H(e,a)};W(le,e=>{z(m)in e9?z(re)?e(D,1):e(fe,-1):e(ue)}),O(se);var pe=L(se,2),ge=e=>{let n=M(i);var r=UEe(),a=F(r),o=e=>{var t=HEe();Eo(t,()=>u(z(v)),!0),O(t),H(e,t)};W(a,e=>{z(v)&&e(o)}),Mo(L(a,2),()=>z(n),(e,n)=>{n(e,{get fieldConfig(){return t.fieldConfig},get locale(){return t.locale},get currentValue(){return z(_e)}})}),O(r),H(e,r)};W(pe,e=>{!z(Se)&&(z(v)||i())&&e(ge)}),R(()=>{K(c,`id`,`${n}-label`),U(d,z(xe)),ce=ds(se,1,`field-wrapper svelte-dkfcyc`,null,ce,{"has-extra-labels":z(ne)})}),H(e,o)},$$slots:{default:!0}})}};W(Te,e=>{r()&&z(pe)&&z(m)!==`hidden`&&e(Ee)}),H(e,we),A(),o()}var s9,NEe,PEe,FEe,IEe,LEe,REe,zEe,BEe,VEe,HEe,UEe,WEe,GEe,c9=s((()=>{Z(),J(),X(),$(),Ip(),s9=u(CO()),wx(),TS(),dc(),Zp(),E5(),Pye(),Iye(),O5(),jEe(),M6(),a9(),jP(),sw(),NEe=B(`<div class="required">*</div>`),PEe=B(`<!> <!>`,1),FEe=B(`<div role="none" class="comment-wrapper"><p class="comment svelte-dkfcyc"></p></div>`),IEe=B(`<div role="none"> </div>`),LEe=B(`<div role="none" class="before-input svelte-dkfcyc"></div>`),REe=B(`<div role="none" class="prefix svelte-dkfcyc"> </div>`),zEe=B(`<div role="none" class="suffix svelte-dkfcyc"> </div>`),BEe=B(`<div role="none" class="after-input svelte-dkfcyc"></div>`),VEe=B(`<!> <!> <!> <!> <!>`,1),HEe=B(`<p class="hint svelte-dkfcyc"></p>`),UEe=B(`<div role="none" class="footer svelte-dkfcyc"><!> <!></div>`),WEe=B(`<header role="none"><h4 role="none"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none"><!></div> <!>`,1),GEe={hash:`svelte-dkfcyc`,code:`.field-wrapper.svelte-dkfcyc {&.has-extra-labels {display:flex;align-items:center;justify-content:flex-start;gap:4px;}:is(input[type='text'], textarea) {width:100%;}input:is([type='color'], [type='number']) {outline:0;border-width:1px;border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);height:var(--sui-button-medium-height);color:inherit;background-color:var(--sui-textbox-background-color);}input:is([type='file'], [type='checkbox']) {color:inherit;}& > div {color:inherit;}input:is([type='date'], [type='datetime-local'], [type='time']) {outline:0;margin:var(--sui-focus-ring-width);border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);padding:var(--sui-textbox-singleline-padding);width:auto;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);text-transform:uppercase;&:disabled {opacity:0.4;}}input[aria-invalid='true']:is(
          [type='color'],
          [type='date'],
          [type='datetime-local'],
          [type='time']
        ) {border-color:var(--sui-error-border-color);}input:read-only {
        /* Make readonly inputs selectable */-webkit-user-select:text;user-select:text;pointer-events:auto;}}.before-input.svelte-dkfcyc,
  .after-input.svelte-dkfcyc,
  .prefix.svelte-dkfcyc,
  .suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc,
  .hint.svelte-dkfcyc {margin-inline:var(--sui-focus-ring-width) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);}.comment.svelte-dkfcyc {margin-block:var(--sui-focus-ring-width) !important;}.hint.svelte-dkfcyc {flex:auto;margin-block:var(--sui-focus-ring-width) 0 !important;color:var(--sui-tertiary-foreground-color);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}`}}));function KEe(e,t){let n=za();k(t,!0);let r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),o=M(()=>r()?.collection),s=M(()=>r()?.collectionFile),c=M(()=>(z(s)??z(o))?._i18n??aw),l=M(()=>z(c).defaultLocale),u=M(()=>r()?.slugEditor[t.locale]),d=M(()=>z(u)===!0),f=M(()=>z(u)===`readonly`),p=M(()=>r()?.validities[t.locale]._slug),m=M(()=>!z(f)&&z(p)?.valid===!1),h=N(``);ri(()=>{z(f)&&P(h,r()?.currentSlugs[t.locale]??``,!0)}),ri(()=>{z(h),Gi(()=>{r()&&Object.entries(r().slugEditor).forEach(([e,n])=>{(t.locale===e||t.locale===z(l)&&n===`readonly`)&&_n(D6,Gi(r).currentSlugs[e]=z(h),Gi(r))})})});var g=V(),_=I(g),v=e=>{Aye(e,{children:(e,t)=>{var r=YEe(),i=I(r),a=F(i),o=F(a,!0);O(a);var s=L(a,2),c=e=>{var t=qEe();R(e=>K(t,`aria-label`,e),[()=>Y(`required`)]),H(e,t)};W(s,e=>{z(d)&&e(c)}),O(i);var l=L(i,2),u=e=>{D5(e,{get id(){return`${n}-error`},children:(e,t)=>{var n=JEe(),r=I(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`edit_slug_error.empty`)]),H(e,t)};W(r,e=>{z(p)?.valueMissing&&e(i)});var a=L(r,2),o=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`edit_slug_error.invalid`)]),H(e,t)};W(a,e=>{z(p)?.patternMismatch&&e(o)}),H(e,n)},$$slots:{default:!0}})};W(l,e=>{z(m)&&e(u)});var g=L(l,2);oL(F(g),{dir:`auto`,flex:!0,get readonly(){return z(f)},get required(){return z(d)},get invalid(){return z(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return z(h)},set value(e){P(h,e,!0)}}),O(g),R(e=>{K(a,`id`,`${n}-label`),U(o,e)},[()=>Y(`slug`)]),H(e,r)},$$slots:{default:!0}})};W(_,e=>{r()&&e(v)}),H(e,g),A(),a()}var qEe,JEe,YEe,XEe=s((()=>{Z(),J(),X(),$(),dc(),Pye(),O5(),M6(),sw(),qEe=B(`<div class="required">*</div>`),JEe=B(`<!> <!>`,1),YEe=B(`<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="field-wrapper"><!></div>`,1)}));function ZEe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>n()?.fields??[]);W8(e,{children:(e,r)=>{var i=QEe(),o=I(i),s=e=>{KEe(e,{get locale(){return t.locale}})};W(o,e=>{n()?.slugEditor[t.locale]&&e(s)}),vo(L(o,2),17,()=>z(a),e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{o9(e,{get keyPath(){return z(n).name},get typedKeyPath(){return z(n).name},get locale(){return t.locale},get fieldConfig(){return z(n)}})},$$slots:{default:!0}})}),H(e,i)},$$slots:{default:!0}}),A(),i()}var QEe,$Ee=s((()=>{Z(),J(),G8(),c9(),XEe(),M6(),QEe=B(`<!> <!>`,1)}));function eDe(e,t){let n=q(t,`children`,3,void 0);var r=V();Ao(I(r),()=>n()??D),H(e,r)}var tDe=s((()=>{Z(),J()}));function nDe(e,t){k(t,!0),G(e,oDe);let n=N(!1),r=N(void 0),i=N(void 0),a=()=>`
    <!DOCTYPE html>
    <html lang="${XN(t.locale)}">
    <head>
      <meta charset="UTF-8">
      <base href="${XN(window.location.origin)}" target="_blank">
      ${t.styleURLs.map(e=>`<link rel="stylesheet" href="${XN(e)}">`).join(`
`)}
    </head>
    <body></body>
    </html>
  `,o=()=>{let e=z(r)?.contentDocument?.body;e&&Ha(eDe,{target:e,props:{children:t.children}})},s=()=>{let{contentDocument:e,contentWindow:n}=z(r)??{};if(z(i)&&t.reactComponent&&t.reactProps&&e&&n){let r={...t.reactProps,document:e,window:n};z(i).render((0,rDe.createElement)(t.reactComponent,r))}},c=()=>{let e=z(r)?.contentDocument?.body;e&&t.reactComponent&&P(i,(0,iDe.createRoot)(e),!0)},l=()=>{if(!z(r)||z(n))return;let e=t.reactComponent?c:o,i=URL.createObjectURL(new Blob([a()],{type:`text/html`}));z(r).addEventListener(`load`,()=>{e(),URL.revokeObjectURL(i),P(n,!0)},{once:!0}),z(r).src=i};ri(()=>{z(r)&&!z(n)&&l()}),ri(()=>{z(n)&&z(i)&&t.reactComponent&&t.reactProps&&s()}),ri(()=>()=>{z(i)?.unmount()});var u=aDe();qs(u,e=>P(r,e),()=>z(r)),R(e=>K(u,`title`,e),[()=>Y(`content_preview`)]),H(e,u),A()}var rDe,iDe,aDe,oDe,sDe=s((()=>{Z(),J(),X(),rDe=h(),iDe=jTe(),dc(),tDe(),$N(),aDe=B(`<iframe class="preview svelte-1k58u5t" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>`),oDe={hash:`svelte-1k58u5t`,code:`iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}`}})),cDe,lDe=s((()=>{Yp(),VM(),cDe=class{#e;constructor(e){this.#e=e,this.path=RM(e,{pathOnly:!0})??``,this.url=e.blobURL??this.path,this.field=void 0,this.fileObj=e.file,(async()=>{this.url=await FM(e)??this.url})()}toString(){return this.url}async toBase64(){try{return Kp(await PM(this.#e))}catch(e){throw Error(`Failed to encode asset as base64: ${e.message}`)}}}})),uDe,dDe,fDe,l9,pDe,u9,d9,mDe,hDe,gDe,_De,vDe=s((()=>{gc(),up(),uDe=h(),dc(),Zp(),N7(),JF(),fm(),lDe(),fp(),Sw(),cN(),DC(),jP(),dDe=({locale:e,getFieldArgs:t})=>(n,r)=>Ha(M7,{target:n,props:{keyPath:r,typedKeyPath:``,locale:e,fieldConfig:wP({...t,keyPath:r}),showLabel:!1}}),fDe=e=>t=>{let n;return(0,uDe.createElement)(`div`,{ref:r=>{r?n=e(r,t):n&&Wa(n)}})},l9=(e,t,n)=>wf(Object.fromEntries(Object.keys(e).map(e=>[e,n(`${t}.${e}`)]))),pDe=(e,t)=>n=>{let r=e[n];return r==null?r:Array.isArray(r)?r.map((e,r)=>{let i=typeof e==`object`&&!!e;return wf({data:Cd(e),widgets:i?l9(e,`${n}.${r}`,t):wf({})})}):typeof r==`object`?wf({data:Cd(r),widgets:l9(r,n,t)}):r},u9=({collectionName:e,fileName:t})=>{let n=cm({collectionName:e,fileName:t});return n?dn(MF).filter(e=>GF(e,n)):[]},d9=({entry:e,locale:t,collectionName:n,associatedAssets:r,content:i})=>dp({content:i??e?.locales?.[t]?.content??{},otherLocales:Object.keys(e?.locales??{}).filter(e=>e!==t),locales:e?.locales??{},slug:e?.slug??``,path:e?.locales?.[t]?.path??``,isNew:!1,collectionName:n,associatedAssets:r}),mDe=({entry:e,collectionName:t,fileName:n})=>r=>{let i=WF({value:r,entry:e,collectionName:t,fileName:n});if(i)return new cDe(i)},hDe=async(e,t)=>{let n=yw(e);if(!n)throw Error(`Collection "${e}" not found`);let{defaultLocale:r}=n._i18n,i=iN(e),a={locale:r,collectionName:e,associatedAssets:u9({collectionName:e})},o=e=>d9({...a,entry:e});return t?o(i.find(e=>e.slug===t)):i.map(o)},gDe=({locale:e,getFieldArgs:t})=>{let{valueMap:n={}}=t,r={},i=new Map;return Object.entries(n).forEach(([n,a])=>{let o=n.replace(/\.\d+$/,``),s=wP({...t,keyPath:o});if(s?.widget===`relation`){let{value_field:t=`{{slug}}`,collection:n,file:c}=s,l=(()=>{let e=`${n}:${c??``}`,t=i.get(e);if(t)return t;let r=(c?[TC(n,c)]:iN(n)).filter(e=>!!e);return i.set(e,r),r})();r[o]??={},r[o][n]??={},r[o][n][a]=l.find(n=>t===`{{slug}}`?n.slug===a:n.locales[e]?.content?.[t]===a)?.locales[e]?.content}}),Cd(r)},_De=({draft:e,locale:t})=>{let{collectionName:n,fileName:r,isIndexFile:i,originalEntry:a,currentValues:o}=e,s={...a,locales:Object.fromEntries(Object.entries(o).map(([e,t])=>[e,{slug:a?.locales[e]?.slug??a?.slug,path:a?.locales[e]?.path??a?.subPath,content:t}]))},c=s.locales[t].content??{},l=hc(c),u={collectionName:n,fileName:r,valueMap:c,isIndexFile:i},d=dDe({locale:t,getFieldArgs:u}),f=fDe(d);return{entry:d9({entry:s,locale:t,collectionName:n,associatedAssets:u9({collectionName:n,fileName:r}),content:c}),widgetFor:f,widgetsFor:pDe(l,f),getAsset:mDe({entry:s,collectionName:n,fileName:r}),getCollection:hDe,fieldsMetaData:gDe({locale:t,getFieldArgs:u})}}}));function yDe(e,t){k(t,!0),G(e,xDe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=e=>{var n=V();vo(I(n),17,()=>z(l),e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{M7(e,{get keyPath(){return z(n).name},get typedKeyPath(){return z(n).name},get locale(){return t.locale},get fieldConfig(){return z(n)}})},$$slots:{default:!0}})}),H(e,n)},o=M(()=>n()??{}),s=M(()=>z(o).collectionName),c=M(()=>z(o).fileName),l=M(()=>E(z(o).fields,()=>[],!0)),u=M(()=>[...gp]),d=M(()=>_p.get(z(c)??z(s))),f=M(()=>n()&&z(d)?_De({draft:At(n()),locale:t.locale}):void 0);W8(e,{children:(e,n)=>{var r=V(),i=I(r),o=e=>{nDe(e,{get locale(){return t.locale},get styleURLs(){return z(u)},get reactComponent(){return z(d)},get reactProps(){return z(f)}})},s=e=>{nDe(e,{get locale(){return t.locale},get styleURLs(){return z(u)},get children(){return a}})},c=e=>{var t=bDe(),n=F(t);a(n),O(t),R(e=>K(t,`aria-label`,e),[()=>Y(`content_preview`)]),H(e,t)};W(i,e=>{z(d)&&z(f)?e(o):z(u).length?e(s,1):e(c,-1)}),H(e,r)},$$slots:{default:!0}}),A(),i()}var bDe,xDe,SDe=s((()=>{Z(),J(),X(),G8(),sDe(),N7(),yp(),M6(),vDe(),bDe=B(`<div role="document" class="svelte-17akd4q"><!></div>`),xDe={hash:`svelte-17akd4q`,code:`div.svelte-17akd4q {--entry-preview-padding-block: 8px;--entry-preview-padding-inline: 16px;padding-block:var(--entry-preview-padding-block);padding-inline:var(--entry-preview-padding-inline);}`}})),f9,p9,m9,CDe,h9=s((()=>{sT(),f9=u(CO(),1),Zp(),iA(),B2(),p9=ln(),m9={},CDe=async({repository:e})=>{let{databaseName:t}=e??{},n=t?new iT(t,`ui-settings`):null,r=`entry-view`,i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:`grid`},...await n?.get(r)};p9.set(i),z2.set(i.selectAssetsView),m9.entryEditorSettingsUnsubscribe?.(),m9.selectAssetsViewUnsubscribe?.(),m9.entryEditorSettingsUnsubscribe=p9.subscribe(e=>{(async()=>{try{(0,f9.default)(e,await n?.get(r))||await n?.set(r,e)}catch{}})()}),m9.selectAssetsViewUnsubscribe=z2.subscribe(e=>{!e||!Object.keys(e).length||(0,f9.default)(e,dn(p9)?.selectAssetsView??{})||p9.update(t=>({...t,selectAssetsView:e}))})},nA.subscribe(e=>{e&&!dn(p9)&&CDe(e)})}));function wDe(e,t){k(t,!0),G(e,ODe);let n=()=>j(p9,`$entryEditorSettings`,a),r=()=>j(t.thisPane,`$thisPane`,a),i=()=>j(D6,`$entryDraft`,a),[a,o]=hn(),s=q(t,`thisPaneContentArea`,15),c=q(t,`thatPaneContentArea`,15),l=M(()=>n()??{}),u=M(()=>z(l).syncScrolling),d=M(()=>r()?.locale),f=M(()=>r()?.mode),p=M(()=>!!z(d)&&!!At(i()?.currentValues[z(d)])),m=M(()=>({values:{locale:z(d)?JC(z(d))??z(d):``}})),h=M(()=>z(f)===`preview`?yDe:ZEe),g=N(void 0),_=()=>{window.requestAnimationFrame(()=>{if(!z(u)||!z(g)||!s()||!c())return;let{x:e,y:t}=s()===z(g)?s().getBoundingClientRect():{x:0,y:0},{ownerDocument:n,scrollTop:r,scrollHeight:i,clientHeight:a}=s(),o=r/(i-a),l=n.elementsFromPoint(e+80,t).find(e=>e.matches(`[data-key-path]`));if(!l){c(c().scrollTop=c().scrollHeight*o,!0);return}let{keyPath:d}=l.dataset,{top:f,height:p}=l.getBoundingClientRect(),m=(t-f)/p,h=c().querySelector(`[data-key-path="${CSS.escape(d??``)}"]`);m<0||m>1||!h||c(c().scrollTop=h.offsetTop-t+h.clientHeight*m,!0)})},v={capture:!0,passive:!0},y=async()=>{if(!z(g))return;s()&&(s().removeEventListener(`wheel`,_,v),s().removeEventListener(`touchmove`,_,v));let e=z(g).querySelector(`iframe.preview`);e?(await nT(250),s(e?.contentDocument?.firstElementChild)):s(z(g)),s()&&(s(s().scrollTop=0,!0),s().addEventListener(`wheel`,_,v),s().addEventListener(`touchmove`,_,v))};ri(()=>{r()?.mode,z(g),y()});var b=DDe(),x=F(b),S=e=>{var t=TDe();Mo(F(t),()=>z(h),(e,t)=>{t(e,{get locale(){return z(d)}})}),O(t),qs(t,e=>P(g,e),()=>z(g)),H(e,t)},C=e=>{$0(e,{children:(e,t)=>{var n=EDe(),r=I(n),i=F(r,!0);O(r);var a=L(r,2);{let e=M(()=>Y(z(p)?`reenable_x_locale`:`enable_x_locale`,z(m)));bI(a,{variant:`tertiary`,get label(){return z(e)},onclick:()=>{z(d)&&F7(z(d))}})}R(e=>U(i,e),[()=>Y(z(p)?`locale_x_now_disabled`:`locale_x_has_been_disabled`,z(m))]),H(e,n)},$$slots:{default:!0}})};W(x,e=>{z(d)&&i()?.currentLocales[z(d)]?e(S):z(f)===`edit`&&e(C,1)}),O(b),R(()=>K(b,`id`,t.id)),H(e,b),A(),o()}var TDe,EDe,DDe,ODe,kDe=s((()=>{Z(),J(),X(),$(),rT(),$Ee(),SDe(),M6(),I7(),h9(),QC(),TDe=B(`<div role="none" class="content svelte-1vy4qxn"><!></div>`),EDe=B(`<span role="alert"> </span> <!>`,1),DDe=B(`<div role="none" class="wrapper svelte-1vy4qxn"><!></div>`),ODe={hash:`svelte-1vy4qxn`,code:`.wrapper.svelte-1vy4qxn {display:contents;}.content.svelte-1vy4qxn {--field-editor-padding: 16px;flex:auto;overflow-y:auto;scroll-behavior:auto; /* Don’t use smooth scroll for syncing */overscroll-behavior-y:contain;

    @media (width < 768px) {--field-editor-padding: 12px;
    }}`}}));function ADe(e,t){k(t,!0),G(e,PDe);let n=()=>j(D6,`$entryDraft`,o),r=()=>j(c(),`$thatPane`,o),i=()=>j(t.thisPane,`$thisPane`,o),a=()=>j(p9,`$entryEditorSettings`,o),[o,s]=hn(),c=q(t,`thatPane`,19,()=>ln(null)),l=M(()=>n()?.collection),u=M(()=>n()?.collectionFile),d=M(()=>(z(u)??z(l))?._i18n??aw),f=M(()=>z(d).allLocales),p=M(()=>AE.isSmallScreen||AE.isMediumScreen?[...z(f)]:z(f).filter(e=>!(r()?.mode===`edit`&&r().locale===e))),m=M(()=>Object.entries(n()?.validities??{}).some(([e,t])=>z(p).includes(e)&&Object.values(t??{}).some(({valid:e})=>!e))),h=M(()=>n()?.canPreview??!0),g=M(()=>AE.isSmallScreen||AE.isMediumScreen||z(f).length>=5),_=M(()=>z(g)?QR:OI),v=M(()=>z(g)?UL:kI),y=M(()=>z(g)?void 0:`tertiary`),b=M(()=>z(g)?void 0:`small`),x=M(()=>i()?.mode===`edit`?i().locale:i()?.mode===`preview`?`preview`:void 0);var S=NDe(),C=F(S);{let e=M(()=>z(m)&&z(g)?`error`:void 0),o=M(()=>Y(`switch_locale`)),s=M(()=>t.id.replace(`-header`,`-body`));Mo(C,()=>z(_),(l,u)=>{u(l,{get value(){return z(x)},get class(){return z(e)},get"aria-label"(){return z(o)},get"aria-controls"(){return z(s)},children:(e,o)=>{var s=MDe(),l=F(s);vo(l,16,()=>z(p),e=>e,(e,a)=>{let o=M(()=>JC(a)??a),s=M(()=>!n()?.currentLocales[a]),l=M(()=>Object.values(n()?.validities[a]??{}).some(({valid:e})=>!e));var u=V(),d=I(u);{let e=e=>{var t=V(),n=I(t),r=e=>{tI(e,{name:`edit_off`})},i=e=>{tI(e,{name:`error`})};W(n,e=>{z(s)?e(r):z(l)&&e(i,1)}),H(e,t)},n=M(()=>z(o)),u=M(()=>z(s)?Y(`locale_content_disabled_short`):z(l)?Y(`locale_content_error_short`):``),f=M(()=>i()?.mode===`edit`&&i().locale===a),p=M(()=>z(l)?`error`:``);Mo(d,()=>z(v),(i,s)=>{s(i,{get variant(){return z(y)},get size(){return z(b)},get label(){return z(o)},get value(){return a},get"aria-label"(){return`${z(n)??``} ${z(u)??``}`},get selected(){return z(f)},get class(){return z(p)},"data-mode":`edit`,onSelect:()=>{mn(t.thisPane,{mode:`edit`,locale:a}),r()?.mode===`preview`&&mn(c(),{mode:`preview`,locale:a})},startIcon:e,$$slots:{startIcon:!0}})})}H(e,u)});var u=L(l,2),d=e=>{var n=jDe(),a=I(n),o=e=>{MI(e,{})};W(a,e=>{z(g)&&e(o)});var s=L(a,2);{let e=M(()=>Y(`preview`)),n=M(()=>i()?.mode===`preview`);Mo(s,()=>z(v),(i,a)=>{a(i,{get variant(){return z(y)},get size(){return z(b)},get label(){return z(e)},value:`preview`,get selected(){return z(n)},"data-mode":`preview`,onSelect:()=>{mn(t.thisPane,{mode:`preview`,locale:r()?.locale??``})}})})}H(e,n)};W(u,e=>{r()?.mode===`edit`&&z(h)&&a()?.showPreview&&e(d)}),O(s),H(e,s)},$$slots:{default:!0}})})}O(S),H(e,S),A(),s()}var jDe,MDe,NDe,PDe,FDe=s((()=>{Z(),J(),X(),$(),Zp(),M6(),h9(),QC(),sw(),jE(),jDe=B(`<!> <!>`,1),MDe=B(`<div role="none" class="inner svelte-1ibgz0y"><!> <!></div>`),NDe=B(`<div role="none" class="wrapper svelte-1ibgz0y"><!></div>`),PDe={hash:`svelte-1ibgz0y`,code:`.wrapper.svelte-1ibgz0y {display:contents;.combobox {
        @media (width < 1024px) {min-width:128px;--sui-textbox-height: 32px;--sui-button-medium-height: 32px;
        }&.error [role='combobox'] {border-color:var(--sui-error-border-color);}}}.inner.svelte-1ibgz0y {display:contents;:is(.error, .error button[data-mode='edit']) {color:var(--sui-error-foreground-color) !important;}}`}}));function IDe(e,t){k(t,!0);let n=()=>j(t.thisPane,`$thisPane`,r),[r,i]=hn();{let r=e=>{tI(e,{name:`visibility`})},i=M(()=>Y(`preview`)),a=M(()=>n()?.mode===`preview`);bI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get pressed(){return z(a)},onclick:()=>{mn(t.thisPane,{mode:n()?.mode===`preview`?`edit`:`preview`,locale:n()?.locale??``})},startIcon:r,$$slots:{startIcon:!0}})}A(),i()}var LDe=s((()=>{Z(),J(),X(),$()}));function RDe(e,t){k(t,!0),G(e,UDe);let n=()=>j(D6,`$entryDraft`,a),r=()=>j(t.thisPane,`$thisPane`,a),i=()=>j(nA,`$backend`,a),[a,o]=hn(),s=q(t,`thatPane`,19,()=>ln(null)),c=M(()=>n()?.collection),l=M(()=>n()?.collectionFile),u=M(()=>n()?.originalEntry),d=M(()=>n()?.originalValues??{}),f=M(()=>(z(l)??z(c))?._i18n??aw),p=M(()=>z(f).i18nEnabled),m=M(()=>z(f).saveAllLocales),h=M(()=>z(f).allLocales),g=M(()=>z(f).defaultLocale),_=M(()=>n()?.currentLocales[r()?.locale??``]),v=M(()=>Object.values(n()?.currentLocales??{}).filter(e=>e).length===1),y=M(()=>z(p)?z(h).filter(e=>e!==r()?.locale):[]),b=M(()=>!!z(y).length),x=M(()=>r()?.locale&&!(0,zDe.default)(z(d)[r().locale],A6(At(n()?.currentValues[r().locale])??{}))),S=M(()=>n()?.canPreview??!0),C=M(()=>z(c)&&z(u)&&r()?.locale?YM(z(u),r().locale,z(c),z(l)):void 0);var w=HDe(),T=F(w);{let e=M(()=>Y(`secondary`));f0(T,{variant:`secondary`,get"aria-label"(){return z(e)},children:(e,a)=>{var o=_9(),c=I(o),l=e=>{var n=g9(),r=I(n);ADe(r,{get id(){return t.id},get thisPane(){return t.thisPane},get thatPane(){return s()}});var i=L(r,2),a=e=>{IDe(e,{get thisPane(){return t.thisPane}})};W(i,e=>{(AE.isSmallScreen||AE.isMediumScreen)&&z(S)&&e(a)}),H(e,n)},d=e=>{var t=BDe(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>r()?.mode===`preview`?Y(`preview`):Y(`edit`)]),H(e,t)},f=e=>{IDe(e,{get thisPane(){return t.thisPane}})};W(c,e=>{z(p)&&z(h).length>1?e(l):AE.isSmallScreen||AE.isMediumScreen?z(S)&&e(f,2):e(d,1)});var w=L(c,2);PI(w,{flex:!0});var T=L(w,2),E=e=>{let t=M(()=>JC(r().locale)??r().locale);var a=g9(),o=I(a),s=e=>{Fye(e,{get locale(){return r().locale},get otherLocales(){return z(y)}})};W(o,e=>{z(b)&&e(s)});var c=L(o,2);{let e=e=>{{let a=M(()=>Y(`content_options_x_locale`,{values:{locale:z(t)}}));YL(e,{get"aria-label"(){return z(a)},children:(e,a)=>{var o=VDe(),s=I(o),c=e=>{T5(e,{get locale(){return r().locale},get otherLocales(){return z(y)}})};W(s,e=>{z(b)&&r()?.locale&&e(c)});var l=L(s,2);{let e=M(()=>Y(`revert_changes`)),t=M(()=>!z(x));eR(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{i9({locale:r()?.locale})}})}var d=L(l,2),f=e=>{var i=g9(),a=I(i);MI(a,{});var o=L(a,2);{let e=M(()=>Y(z(_)?`disable_x_locale`:At(n()?.currentValues[r().locale])?`reenable_x_locale`:`enable_x_locale`,{values:{locale:z(t)}})),i=M(()=>r().locale===z(g)||z(_)&&z(v));eR(o,{get label(){return z(e)},get disabled(){return z(i)},onclick:()=>{F7(r()?.locale??``)}})}H(e,i)};W(d,e=>{!z(m)&&r()?.locale&&e(f)});var p=L(d,2),h=e=>{var t=_9(),n=I(t);MI(n,{});var a=L(n,2),o=e=>{{let t=M(()=>Y(`view_on_live_site`));eR(e,{get label(){return z(t)},onclick:()=>{V2(z(C))}})}};W(a,e=>{z(C)&&e(o)});var s=L(a,2),c=e=>{{let t=M(()=>!i()?.repository?.blobBaseURL),n=M(()=>Y(`view_on_x`,{values:{service:i()?.repository?.label},default:Y(`view_in_repository`)}));eR(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{z(u)&&r()&&V2(XM(z(u),r().locale))}})}};W(s,e=>{DO.devModeEnabled&&e(c)}),H(e,t)};W(p,e=>{z(u)&&(z(C)||DO.devModeEnabled)&&e(h)}),H(e,o)},$$slots:{default:!0}})}},a=M(()=>Y(`show_content_options_x_locale`,{values:{locale:z(t)}}));AI(c,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(a)},popup:e,$$slots:{popup:!0}})}H(e,a)};W(T,e=>{r()?.mode===`edit`&&e(E)}),H(e,o)},$$slots:{default:!0}})}O(w),R(()=>K(w,`id`,t.id)),H(e,w),A(),o()}var zDe,g9,BDe,_9,VDe,HDe,UDe,WDe=s((()=>{Z(),J(),X(),$(),zDe=u(CO()),Zp(),E5(),Iye(),FDe(),LDe(),iA(),M6(),I7(),a9(),ZM(),QC(),sw(),jE(),OO(),H2(),g9=B(`<!> <!>`,1),BDe=B(`<h3 role="none"> </h3>`),_9=B(`<!> <!> <!>`,1),VDe=B(`<!> <!> <!> <!>`,1),HDe=B(`<div role="none" class="header svelte-uj56is"><!></div>`),UDe={hash:`svelte-uj56is`,code:`.header.svelte-uj56is {flex:none !important;& > .sui.toolbar {margin-inline:auto;max-width:800px;

        @media (width < 768px) {padding:0;
        }h3 {margin:0 8px;font-size:var(--sui-font-size-default);}}}`}}));function v9(e,t){let n=za();G(e,KDe);let r=q(t,`children`,3,void 0);var i=GDe(),a=F(i),o=F(a),s=F(o,!0);O(o),O(a);var c=L(a,2);Ao(F(c),()=>r()??D),O(c),O(i),R(()=>{K(i,`aria-labelledby`,`panel-${n}-label`),K(o,`id`,`panel-${n}-label`),U(s,t.title)}),H(e,i)}var GDe,KDe,y9=s((()=>{Z(),J(),GDe=B(`<section role="group" class="panel svelte-1bq1or9"><header class="svelte-1bq1or9"><h3 class="svelte-1bq1or9"> </h3></header> <div class="svelte-1bq1or9"><!></div></section>`),KDe={hash:`svelte-1bq1or9`,code:`section.svelte-1bq1or9 {overflow:hidden;height:100%;display:flex;flex-direction:column;}header.svelte-1bq1or9 {flex:none;display:flex;align-items:center;border-bottom:1px solid var(--sui-secondary-border-color);padding:0 16px;height:var(--sui-primary-toolbar-size);}h3.svelte-1bq1or9 {font-size:var(--sui-font-size-x-large);}div.svelte-1bq1or9 {flex:auto;overflow:auto;h4 {display:flex;align-items:center;padding:12px 12px 8px;font-size:var(--sui-font-size-large);}& > .empty {padding:16px;}.empty {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.sui.button.ref {display:flex;justify-content:flex-start;gap:8px;padding:8px;width:-moz-available;width:-webkit-fill-available;width:stretch;height:auto;}}`}})),b9,qDe,JDe,YDe,XDe=s((()=>{Ip(),Zp(),TF(),yC(),Sw(),cN(),RP(),zN(),b9=(e,t,n)=>{if(n)return Object.entries(e).filter(([e])=>RegExp(`^${jp(t)}\\.\\d+$`).test(e)).map(([,e])=>e);let r=e[t];return r==null?[]:[r]},qDe=(e,t,n)=>{let{collection:r,file:i}=e;if(!yw(r))return new Set;let a=LN({locale:n,fieldConfig:e,refEntries:i?dn(mC).filter(e=>Object.values(e.locales).some(({path:e})=>e.includes(i))):iN(r)}),o=e.value_field;if(!o||o===`{{slug}}`||o===`slug`)return new Set([t.slug]);let s=t.locales[n]?.content??Object.values(t.locales)[0]?.content??{};if(!o.includes(`{{`)&&!o.includes(`*`)){let e=s[o];return e==null?new Set:new Set([e])}let c=t.slug,l=new Set(a.filter(e=>String(e.value).includes(c)).map(e=>e.value));if(l.size===0){let e=s[o.replace(/^{{|}}$/g,``)];e!=null&&l.add(e)}return l},JDe=(e,t,n,r,i)=>i?Object.keys(e).filter(e=>i.test(e)).some(t=>b9(e,t,n).some(e=>r.has(e))):b9(e,t,n).some(e=>r.has(e)),YDe=({collectionName:e,fileName:t,entry:n})=>{let r=yw(e);if(!r)return[];let{_i18n:{defaultLocale:i}}=r,a=[...wF.relationFields].filter(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t));if(a.length===0)return[];let o=new Map(a.map(({fieldConfig:e})=>[e,qDe(e,n,i)]));return a.flatMap(({fieldConfig:t,context:r})=>{let i=r.collection;if(!i||!(`name`in i))return[];let a=i.name,s=yw(a);if(!s)return[];let c=s._i18n.defaultLocale,l=o.get(t)??new Set;if(l.size===0)return[];let u=(r.typedKeyPath??``).replace(/<[^>]+>/g,``).replace(/\.\*\./g,`.*.`).replace(/\.\*$/,`.*`),d=t.name,f=u.replace(/\*\./g,``).replace(/\*$/g,``)||d,p=f.includes(`*`)?RegExp(`^${jp(f).replace(/\\\*/g,`\\d+`)}$`):void 0;return(a===e?iN(a).filter(e=>e.slug!==n.slug):iN(a)).map(e=>{let n=e.locales[c]?.content??Object.values(e.locales)[0]?.content;if(!(!n||!JDe(n,f,!!t.multiple,l,p)))return{collectionName:a,collectionLabel:s.label??a,fieldLabel:t.label??d,entry:e,summary:LP(s,e)}}).filter(e=>!!e)})}}));function ZDe(e,t){k(t,!0),G(e,tOe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>{let e=n();return e?.originalEntry?YDe({collectionName:e.collectionName,fileName:e.fileName,entry:e.originalEntry}):[]}),o=M(()=>{let e=[];return z(a).forEach(t=>{let n=e.find(e=>e.collectionLabel===t.collectionLabel);n?n.items.push(t):e.push({collectionLabel:t.collectionLabel,items:[t]})}),e});{let t=M(()=>Y(`entry_sidebar.backlinks.title`));v9(e,{get title(){return z(t)},children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=V();vo(I(t),17,()=>z(o),({collectionLabel:e,items:t})=>e,(e,t)=>{let n=()=>z(t).collectionLabel,r=()=>z(t).items;var i=$De(),a=F(i),o=F(a,!0);O(a),vo(L(a,2),17,r,e=>e.entry.id,(e,t)=>{bI(e,{class:`ref`,variant:`ghost`,onclick:()=>{X2(`/collections/${z(t).collectionName}/entries/${z(t).entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var r=QDe(),i=F(r,!0);O(r),R(()=>U(i,z(t).summary)),H(e,r)},$$slots:{default:!0}})}),O(i),R(()=>U(o,n())),H(e,i)}),H(e,t)},s=e=>{var t=eOe(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`entry_sidebar.backlinks.no_entries`)]),H(e,t)};W(r,e=>{z(a).length>0?e(i):e(s,-1)}),H(e,n)},$$slots:{default:!0}})}A(),i()}var QDe,$De,eOe,tOe,nOe=s((()=>{Z(),J(),X(),$(),y9(),$2(),M6(),XDe(),QDe=B(`<span class="summary"> </span>`),$De=B(`<section class="collection svelte-1lhuwki" role="group"><h4> </h4> <!></section>`),eOe=B(`<div class="empty"> </div>`),tOe={hash:`svelte-1lhuwki`,code:`.collection.svelte-1lhuwki {padding:4px;&:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}}`}})),x9,rOe,iOe,aOe=s((()=>{Zp(),iA(),x9=new Map,rOe=async e=>{let{id:t,locales:n}=e,r=x9.get(t);if(r)return r;let i=dn(nA);if(!i?.fetchFileCommits)return{commits:[],loading:!1,error:!1};let a=[...new Set(Object.values(n).map(e=>e.path))];try{let e={commits:await i.fetchFileCommits(a),loading:!1,error:!1};return x9.set(t,e),e}catch{let e={commits:[],loading:!1,error:!0};return x9.set(t,e),e}},iOe=e=>{x9.delete(e)}}));function oOe(e,t){k(t,!0),G(e,dOe);let n=()=>j(D6,`$entryDraft`,i),r=()=>j(nA,`$backend`,i),[i,a]=hn(),o=N(Nr([])),s=N(!1),c=N(!1),l=async()=>{let e=n()?.originalEntry;e&&(P(s,!0),await(async e=>{P(o,e.commits,!0),P(c,e.error,!0)})(await rOe(e)),P(s,!1))};lc(()=>{l()});{let t=M(()=>Y(`entry_sidebar.history.title`));v9(e,{get title(){return z(t)},children:(e,t)=>{var n=V(),i=I(n),a=e=>{var t=S9(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`loading`)]),H(e,t)},l=e=>{var t=S9(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`entry_sidebar.history.fetch_failed`)]),H(e,t)},u=e=>{var t=uOe();vo(t,21,()=>z(o),e=>e.sha,(e,t)=>{let n=M(()=>r()?.repository?.commitBaseURL?`${r().repository.commitBaseURL}/${z(t).sha}`:void 0);{let r=M(()=>!z(n));bI(e,{class:`ref`,variant:`ghost`,role:`link`,get disabled(){return z(r)},onclick:()=>{z(n)&&V2(z(n))},children:(e,n)=>{var r=lOe(),i=I(r),a=e=>{var n=sOe();R(()=>K(n,`src`,z(t).authorAvatarURL)),H(e,n)},o=e=>{H(e,cOe())};W(i,e=>{z(t).authorAvatarURL?e(a):e(o,-1)});var s=L(i,2),c=F(s),l=F(c,!0);O(c);var u=L(c,2),d=F(u,!0);O(u),O(s),R(e=>{U(l,z(t).authorName),U(d,e)},[()=>jw(z(t).date,Xh.current)]),H(e,r)},$$slots:{default:!0}})}}),O(t),H(e,t)},d=e=>{var t=S9(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`entry_sidebar.history.no_history`)]),H(e,t)};W(i,e=>{z(s)?e(a):z(c)?e(l,1):z(o).length>0?e(u,2):e(d,-1)}),H(e,n)},$$slots:{default:!0}})}A(),a()}var S9,sOe,cOe,lOe,uOe,dOe,fOe=s((()=>{Z(),J(),X(),$(),dc(),y9(),iA(),M6(),aOe(),Mw(),H2(),S9=B(`<div class="empty"> </div>`),sOe=B(`<img class="avatar svelte-14rpg2i" alt="" width="24" height="24" loading="lazy"/>`),cOe=B(`<span class="avatar placeholder svelte-14rpg2i" aria-hidden="true"></span>`),lOe=B(`<!> <span class="details svelte-14rpg2i"><span class="author svelte-14rpg2i"> </span> <span class="date svelte-14rpg2i"> </span></span>`,1),uOe=B(`<div role="list" class="commits svelte-14rpg2i"></div>`),dOe={hash:`svelte-14rpg2i`,code:`.commits.svelte-14rpg2i {padding:4px;}.avatar.svelte-14rpg2i {flex:none;width:24px;height:24px;border-radius:50%;background-color:var(--sui-secondary-background-color);}.details.svelte-14rpg2i {display:flex;flex-direction:column;gap:2px;overflow:hidden;font-size:var(--sui-font-size-small);}.author.svelte-14rpg2i {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.date.svelte-14rpg2i {color:var(--sui-tertiary-foreground-color);}`}}));function pOe(e,t){k(t,!0),G(e,yOe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>n()??{}),o=M(()=>z(a).validationMessages),s=M(()=>z(a).collectionName),c=M(()=>z(a).fileName),l=M(()=>z(a).currentValues),u=M(()=>z(a).isIndexFile),d=M(()=>z(a).validities),f=M(()=>Object.values(z(d)??{}).some(e=>!!Object.keys(e).length)),p=M(()=>({collectionName:z(s),fileName:z(c),currentValues:z(l),isIndexFile:z(u)}));{let t=M(()=>Y(`entry_sidebar.validation.title`));v9(e,{get title(){return z(t)},children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=V();vo(I(t),17,()=>Object.entries(z(o)),([e,t])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1],a=M(()=>z(l)?.[r()]),o=M(()=>JC(r()));var s=_Oe(),c=F(s),u=e=>{var t=mOe(),n=F(t,!0);O(t),R(()=>U(n,z(o))),H(e,t)};W(c,e=>{z(o)&&e(u)});var f=L(c,2),m=e=>{var t=V();vo(I(t),16,()=>Object.keys(z(a)),e=>e,(e,t)=>{let n=M(()=>wP({...z(p),valueMap:z(a),keyPath:t})),o=M(()=>i()[t]??[]);var s=V(),c=I(s),l=e=>{bI(e,{class:`ref`,variant:`ghost`,onclick:()=>{O7({locale:r(),keyPath:t})},children:(e,t)=>{var r=hOe(),i=I(r),a=F(i,!0);O(i),vo(L(i,2),17,()=>z(o),ho,(e,t)=>{D5(e,{live:`off`,children:(e,n)=>{gt();var r=Ra();R(()=>U(r,z(t))),H(e,r)},$$slots:{default:!0}})}),R(()=>U(a,z(n)?.label||z(n)?.name)),H(e,r)},$$slots:{default:!0}})};W(c,e=>{z(o).length&&e(l)}),H(e,s)}),H(e,t)},h=M(()=>Object.values(z(d)[r()]).some(e=>e.valid===!1)),g=e=>{var t=gOe(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`entry_sidebar.validation.no_errors_found`)]),H(e,t)};W(f,e=>{z(h)?e(m):e(g,-1)}),O(s),H(e,s)}),H(e,t)},a=e=>{var t=vOe(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`entry_sidebar.validation.placeholder`)]),H(e,t)};W(r,e=>{z(d)&&z(f)?e(i):e(a,-1)}),H(e,n)},$$slots:{default:!0}})}A(),i()}var mOe,hOe,gOe,_Oe,vOe,yOe,bOe=s((()=>{Z(),J(),X(),$(),O5(),y9(),M6(),k7(),jP(),QC(),mOe=B(`<h4 class="svelte-mwf2jd"> </h4>`),hOe=B(`<span class="summary svelte-mwf2jd"> </span> <!>`,1),gOe=B(`<div class="empty svelte-mwf2jd"> </div>`),_Oe=B(`<section class="locale svelte-mwf2jd" role="group"><!> <!></section>`),vOe=B(`<div class="empty"> </div>`),yOe={hash:`svelte-mwf2jd`,code:`.locale.svelte-mwf2jd {padding:4px;&:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}h4:where(.svelte-mwf2jd),
    .empty:where(.svelte-mwf2jd) {margin:0 !important;padding:12px;}.summary:where(.svelte-mwf2jd) {display:block;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-heading-font-weight);}.sui.button.ref {flex-direction:column;align-items:flex-start;gap:4px;}}`}}));function xOe(e,t){k(t,!0),G(e,wOe);let n=()=>j(D6,`$entryDraft`,a),r=()=>j(nA,`$backend`,a),i=()=>j(p9,`$entryEditorSettings`,a),[a,o]=hn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...wF.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),c=M(()=>[{key:`validation`,label:Y(`entry_sidebar.validation.title`),icon:`check_circle`,disabled:!1,panel:pOe},{key:`history`,label:Y(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:oOe},{key:`backlinks`,label:Y(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:ZDe}]),l=N(Nr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);ri(()=>{p9.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=COe(),f=F(d);{let e=M(()=>Y(`entry_sidebar.sidebar_panels`));OI(f,{class:`tabs`,get"aria-label"(){return z(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=V();vo(I(n),17,()=>z(c),({key:e,label:t,icon:n,disabled:r})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).disabled;{let t=M(()=>z(u)?.key===n());kI(e,{iconic:!0,get"aria-label"(){return r()},get selected(){return z(t)},get disabled(){return a()},onclick:()=>{P(l,z(l)===n()?null:n(),!0)},children:(e,t)=>{tI(e,{get name(){return i()}})},$$slots:{default:!0}})}}),H(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=SOe();Mo(F(t),()=>z(u).panel,(e,t)=>{t(e,{})}),O(t),H(e,t)};W(p,e=>{z(u)&&e(m)}),O(d),H(e,d),A(),o()}var SOe,COe,wOe,TOe=s((()=>{Z(),J(),X(),$(),nOe(),fOe(),bOe(),iA(),TF(),M6(),h9(),SOe=B(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),COe=B(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),wOe={hash:`svelte-19e8zut`,code:`.sidebar.svelte-19e8zut {flex:none;display:flex;flex-direction:row-reverse;.tabs {flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:8px 0;width:48px;button {border-radius:4px !important;}}}.content.svelte-19e8zut {flex:none;width:320px;margin-inline-start:8px;border-radius:16px 16px 0 0;background-color:var(--sui-primary-background-color);}`}}));function EOe(e,t){let n=za();k(t,!0),G(e,jOe);let r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),o=q(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Nr([])),u=Nr({}),d=Nr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,iN(z(s)).flatMap(e=>Object.values(e.locales).map(({slug:e})=>e)).filter(t=>!e.has(t)),!0),Object.assign(u,z(c)),Object.assign(d,Object.fromEntries(Object.keys(z(c)).map(e=>[e,!1])))},p=e=>u[e].trim()?/[/\s]/.test(u[e])?`invalid`:z(l).includes(u[e])?`duplicate`:!1:`empty`;ri(()=>{o()&&f()});{let t=M(()=>Y(`edit_slug`)),i=M(()=>Y(`update`)),a=M(()=>(0,DOe.default)(z(c),u)||Object.values(d).some(e=>e!==!1));qI(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{_n(D6,Gi(r).currentSlugs=Object.fromEntries(Object.entries(u).map(([e,t])=>[e,hb(t,{locale:e})])),Gi(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=AOe(),i=I(r);po(i,()=>({"--font-size":`var(--sui-font-size-small)`})),rI(i.lastChild,{status:`warning`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`edit_slug_warning`)]),H(e,n)},$$slots:{default:!0}}),O(i);var a=L(i,2);vo(a,20,()=>Object.keys(u),e=>e,(e,t)=>{var r=kOe(),i=F(r),a=e=>{var n=OOe(),r=F(n),i=F(r,!0);O(r),O(n),R(e=>U(i,e),[()=>JC(t)??t]),H(e,n)},o=M(()=>![`_`,`_default`].includes(t));W(i,e=>{z(o)&&e(a)});var s=L(i,2),c=F(s);{let e=M(()=>d[t]!==!1);oL(c,{dir:`auto`,flex:!0,oninput:()=>{d[t]=p(t)},get invalid(){return z(e)},get"aria-errormessage"(){return`${n}-${t??``}-error`},get value(){return u[t]},set value(e){u[t]=e}})}var l=L(c,2),f=F(l),m=e=>{var n=Ra();R(e=>U(n,e),[()=>Y(`edit_slug_error.${d[t]}`)]),H(e,n)};W(f,e=>{d[t]&&e(m)}),O(l),O(s),O(r),R(()=>K(l,`id`,`${n}-${t??``}-error`)),H(e,r)}),O(a),H(e,r)},$$slots:{default:!0}})}A(),a()}var DOe,OOe,kOe,AOe,jOe,MOe=s((()=>{Z(),J(),X(),$(),DOe=u(CO()),gb(),cN(),M6(),QC(),OOe=B(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),kOe=B(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!></p></div></section>`),AOe=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),jOe={hash:`svelte-wdavy7`,code:`p.svelte-wdavy7:not(:empty) {margin-top:0;}.locales.svelte-wdavy7 {display:table;margin:16px 0 0;width:100%;section:where(.svelte-wdavy7) {display:table-row;div:where(.svelte-wdavy7) {display:table-cell;vertical-align:middle;white-space:nowrap;&:last-child {width:90%;}}h3:where(.svelte-wdavy7) {margin-inline-end:8px;font-size:inherit;}p.error:where(.svelte-wdavy7) {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}}}`}})),NOe,C9,POe=s((()=>{yT(),sT(),Zp(),JF(),iA(),h3(),yC(),Sw(),c3(),w6(),z6(),NOe=({ids:e,assetPaths:t})=>{let n=dn(mC),r=new Set(e);if(mC.set(n.filter(e=>!r.has(e.id))),s3.set({...o3,deleted:!0,count:e.length}),t.length){let e=new Set(t);MF.update(t=>t.filter(t=>!e.has(t.path)))}},C9=async(e,t=[])=>{let n=dn(nA)?.repository?.databaseName,r=n?new iT(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=vT(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await L6({cacheDB:r,previousPath:e});i.push({action:a,slug:n,path:e,previousSha:t})})),e})),s=t.map(({path:e,sha:t})=>(i.push({action:a,path:e,previousSha:t}),e)),{changes:c,savingEntries:l}=await Upe(dn(cw),{excludeIds:new Set(e.map(({id:e})=>e)),cacheDB:r});i.push(...c),await m3({changes:i,savingEntries:l,options:{commitType:`delete`,collection:dn(cw)}}),NOe({ids:o,assetPaths:s})}})),FOe,w9,T9,E9=s((()=>{Zp(),TF(),Tw(),M6(),U8(),F8(),x7(),FOe=`{{fields._slug | localize}}`,w9=({collection:e,collectionFile:t,originalSlugs:n})=>{let r=e._type===`entry`,{allLocales:i,defaultLocale:a}=(t??e)._i18n;if(!r)return Object.fromEntries(i.map(e=>[e,!1]));let{identifier_field:o=`title`,slug:s=`{{${o}}}`}=e,c=s.includes(FOe),l=s.includes(`{{fields._slug}}`)||c;return Object.fromEntries(i.map(e=>!l||n._||n[e]?[e,!1]:[e,e===a||c||`readonly`]))},T9=({collection:e,collectionFile:t,originalEntry:n={},dynamicValues:r,extraValues:i,expanderStates:a,isIndexFile:o=ww(e,n)})=>{let s=e.name,c=t?.name,{id:l,slug:u,locales:d}=n,f=l===void 0,{fields:p=[],_i18n:m}=t??e,h=o?Cw(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??dn(bF)?.editor?.preview??!0,{allLocales:v,initialLocales:y,defaultLocale:b,canonicalSlug:{key:x}}=m,S=f?y:v.filter(e=>!!d?.[e]?.content),C=Object.fromEntries(v.map(e=>[e,S.includes(e)])),w=f?{}:x in(d?.[b]?.content??{})?Object.fromEntries(v.map(e=>[e,d?.[e]?.slug])):{_:d?.[b].slug},T=Object.fromEntries(S.map(e=>f?[e,b7({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));D6.set({id:f?crypto.randomUUID():l,createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:_,collectionName:s,collection:e,fileName:c,collectionFile:t,fields:g,originalEntry:f?void 0:n,defaultLocale:b,originalLocales:C,currentLocales:structuredClone(C),originalSlugs:w,currentSlugs:structuredClone(w),originalValues:T,currentValues:Object.fromEntries(S.map(e=>[e,P8({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(T[e])})])),files:{},extraValues:i??Object.fromEntries(v.map(e=>[e,{}])),validities:Object.fromEntries(v.map(e=>[e,{}])),validationMessages:Object.fromEntries(v.map(e=>[e,{}])),expanderStates:a??{_:{}},slugEditor:w9({collection:e,collectionFile:t,originalSlugs:w})}),v_e({collectionName:s,fileName:c,slug:u})}})),IOe,LOe=s((()=>{Zp(),w6(),M6(),E9(),B2(),jP(),ZSe(),wEe(),IOe=()=>{let e=dn(D6),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n,u=x6(r);Object.entries(a).forEach(([e,r])=>{delete r[l],u&&delete r[u];let i={collectionName:t,fileName:n,valueMap:r,isIndexFile:s};Object.keys(r).forEach(t=>{let n=wP({...i,keyPath:t});if(n?.widget===`uuid`&&(e===c||[!0,`translate`].includes(n?.i18n??!1))&&(r[t]=$7(n)),n?.widget===`hidden`){if(Array.isArray(n.default)&&vP.test(t)&&(delete r[t],t=t.replace(vP,``),t in r))return;(e===c||[!0,`translate`].includes(n?.i18n??!1))&&Object.assign(r,g7({fieldConfig:n,keyPath:t,locale:e,defaultLocale:c}))}})}),Object.keys(o).forEach(e=>{o[e]={}}),D6.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:w9({collection:r,collectionFile:i,originalSlugs:{}})}),P2.set(!0)}})),ROe,zOe=s((()=>{Zp(),M6(),ROe=()=>{let{currentLocales:e,currentSlugs:t,slugEditor:n}=dn(D6),r={},i=!0;return Object.entries(t).forEach(([t,a])=>{let o=!!e?.[t]&&!!n[t],s=o&&!a?.trim(),c=o&&/[/\s]/.test(a??``),l=s||c;l&&(i=!1),r[t]={_slug:{valueMissing:s,patternMismatch:c,valid:!l}}}),{valid:i,validities:r}}})),BOe,VOe=s((()=>{M6(),aTe(),zOe(),BOe=()=>{let{valid:e,validities:t,validationMessages:n}=G7(`currentValues`),{valid:r,validities:i,validationMessages:a}=G7(`extraValues`),{valid:o,validities:s}=ROe();return D6.update(e=>({...e,validities:Object.fromEntries(Object.keys(t).map(e=>[e,{...t[e],...i[e],...s[e]}])),validationMessages:Object.fromEntries(Object.keys(n).map(e=>[e,{...n[e],...a[e]}]))})),e&&r&&o}})),HOe,UOe,WOe,GOe=s((()=>{Zp(),iA(),c6(),h3(),eI(),c3(),cN(),w6(),M6(),U8(),z6(),m6(),VOe(),k7(),aOe(),HOe=({skipCI:e})=>{let t=dn(o6)&&!(e??dn(s6));s3.set({...o3,saved:!0,published:t,count:1}),rA.set(t)},UOe=e=>{let{collection:t,collectionFile:n,currentValues:r}=e,i=x6(t);if(!i)return;let{defaultLocale:a}=(n??t)._i18n,o=iN(t.name).reduce((e,t)=>{let n=Number(t.locales[a]?.content?.[i]);return Number.isFinite(n)&&n>e?n:e},0)+1;Object.values(r).forEach(e=>{e[i]=o})},WOe=async({skipCI:e=void 0}={})=>{let t=dn(D6),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!BOe())throw mCe({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);n&&r._type===`entry`&&UOe(t);let c=p6({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await R6({draft:t,slugs:c}),p;try{p=await m3({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:n?`create`:`update`,collection:r,skipCI:e}})}catch(e){throw console.error(e.cause??e),Error(`saving_failed`,{cause:e.cause??e})}return await $F({type:`postSave`,draft:t,savingEntry:u}),HOe({skipCI:e}),V8(i,n?``:l),s&&iOe(s.id),p.savedEntries[0]}}));function KOe(e,t){k(t,!0),G(e,eke);let n=()=>j(D6,`$entryDraft`,l),r=()=>j(j6,`$entryDraftModified`,l),i=()=>j(f8,`$collectionState`,l),a=()=>j(p9,`$entryEditorSettings`,l),o=()=>j(o6,`$skipCIConfigured`,l),s=()=>j(s6,`$skipCIEnabled`,l),c=()=>j(I2,`$copyFromLocaleToast`,l),[l,u]=hn(),d=e=>{let t=M(()=>AE.isSmallScreen?eR:bI),n=M(()=>!z(S)&&z(w)?.duplicate!==!1&&!i().creationDisabled&&!z(w)?.path),r=M(()=>z(w)?.delete!==!1);var a=qOe(),o=I(a),s=e=>{var n=V(),r=I(n);{let e=M(()=>Y(`duplicate`)),n=M(()=>Y(`duplicate_entry`));Mo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{X2(`/collections/${z(ne)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),IOe()}})})}H(e,n)};W(o,e=>{z(n)&&e(s)});var c=L(o,2),l=e=>{var n=V(),r=I(n);{let e=M(()=>Y(`delete`)),n=M(()=>Y(`delete_entry`));Mo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{P(h,!0)}})})}H(e,n)};W(c,e=>{z(r)&&e(l)}),H(e,a)},f=q(t,`disabled`,3,!1),p=N(!1),m=N(!1),h=N(!1),g=N(!1),_=N(``),v=N(!1),y=N(void 0),b=M(()=>n()===void 0),x=M(()=>n()?.isNew??!0),S=M(()=>n()?.isIndexFile??!1),C=M(()=>n()?.collection),w=M(()=>z(C)?._type===`entry`?z(C):void 0),T=M(()=>n()?.collectionFile),E=M(()=>n()?.originalEntry),ee=M(()=>(z(T)??z(C))?._i18n??aw),te=M(()=>z(ee).defaultLocale),ne=M(()=>z(C)?.name),re=M(()=>z(T)?.name),ie=M(()=>Xh.current&&z(C)?bw(z(C)):``),ae=M(()=>Xh.current&&z(C)?bw(z(C),{useSingular:!0}):``),oe=M(()=>n()?.canPreview??!0),se=M(()=>z(x)||r()),ce=M(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),le=M(()=>z(ne)&&z(E)&&cm({collectionName:z(ne),fileName:z(re)})?.entryRelative?XF({entry:z(E),collectionName:z(ne),fileName:z(re),relative:!0}):[]),ue=M(()=>z(C)&&z(E)?YM(z(E),z(te),z(C),z(T)):void 0),de=()=>{Z2(z(ne)===`_singletons`?`/collections`:`/collections/${z(ne)}`)},D=async({skipCI:e=void 0}={})=>{if(P(v,!0),z(C))try{let t=await WOe({skipCI:e});DO.closeOnSave??!0?(de(),mn(D6,null)):(z(x)&&X2(`/collections/${z(ne)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),T9({collection:z(C),collectionFile:z(T),originalEntry:t,extraValues:n()?.extraValues,expanderStates:n()?.expanderStates}))}catch(e){e.message===`validation_failed`?P(p,!0):e.message===`saving_failed`?(P(g,!0),P(_,e.cause?.message??e.message??Y(`unexpected_error`),!0)):(P(g,!0),P(_,``),console.error(e))}finally{P(v,!1)}};var fe=$Oe(),pe=I(fe);{let e=M(()=>Y(`primary`));f0(pe,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var r=XOe(),i=I(r);{let e=M(()=>Y(`cancel_editing`));D3(i,{get"aria-label"(){return z(e)},get useShortcut(){return DO.closeWithEscape},onclick:()=>{de()}})}var c=L(i,2),l=F(c),u=e=>{lI(e,{children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`create_entry_title`,{values:{name:z(ae)}})]),H(e,t)},a=e=>{let t=M(()=>z(T)?CC(z(T)):z(C)&&z(E)&&Xh.current?LP(z(C),z(E)):``);var n=V(),r=I(n),i=e=>{var n=Ra();R(()=>U(n,z(t))),H(e,n)},a=e=>{var n=Ra();R(e=>U(n,e),[()=>Y(`edit_entry_title`,{values:{collection:z(ie),entry:z(t)}})]),H(e,n)};W(r,e=>{AE.isSmallScreen?e(i):e(a,-1)}),H(e,n)};W(r,e=>{z(x)?e(i):e(a,-1)}),H(e,n)},$$slots:{default:!0}})};W(l,e=>{z(b)||e(u)}),O(c);var p=L(c,2),h=e=>{{let t=M(()=>Y(`view_on_live_site`));bI(e,{variant:`tertiary`,get label(){return z(t)},onclick:()=>{V2(z(ue))}})}};W(p,e=>{!f()&&z(ue)&&e(h)});var g=L(p,2),_=e=>{d(e)};W(g,e=>{!AE.isSmallScreen&&!f()&&!z(T)&&!z(x)&&e(_)});var ee=L(g,2);{let e=e=>{{let t=M(()=>Y(`editor_options`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=YOe(),i=I(r),o=e=>{d(e)};W(i,e=>{AE.isSmallScreen&&!f()&&!z(T)&&!z(x)&&e(o)});var s=L(i,2);{let e=M(()=>Y(`edit_slug`)),t=M(()=>!!z(T)||z(x)||z(S)||z(w)?.delete===!1);eR(s,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{P(m,!0)}})}var c=L(s,2);{let e=M(()=>Y(`revert_all_changes`)),t=M(()=>!z(se));eR(c,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{i9()}})}var l=L(c,2),u=e=>{var t=JOe(),r=I(t);MI(r,{});var i=L(r,2);{let e=M(()=>Y(`show_preview`)),t=M(()=>a()?.showPreview),n=M(()=>!z(oe));sR(i,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(n)},onChange:()=>{p9.update((e={})=>({...e,showPreview:!e.showPreview}))}})}var o=L(i,2);{let e=M(()=>Y(`sync_scrolling`)),t=M(()=>a()?.syncScrolling),r=M(()=>!z(oe)&&Object.keys(n()?.currentValues??{}).length===1);sR(o,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(r)},onChange:()=>{p9.update((e={})=>({...e,syncScrolling:!e.syncScrolling}))}})}H(e,t)};W(l,e=>{AE.isSmallScreen||AE.isMediumScreen||e(u)}),H(e,r)},$$slots:{default:!0}})}},t=M(()=>Y(`show_editor_options`));qs(AI(ee,{get disabled(){return f()},variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(t)},popup:e,$$slots:{popup:!0}}),e=>P(y,e,!0),()=>z(y))}var te=L(ee,2),ne=e=>{{let t=e=>{YL(e,{children:(e,t)=>{{let t=M(()=>Y(s()?`save_and_publish`:`save_without_publishing`));eR(e,{get label(){return z(t)},onclick:()=>{D({skipCI:!s()})}})}},$$slots:{default:!0}})},n=M(()=>Y(s()?z(v)?`saving`:`save`:z(v)?`publishing`:`publish`)),r=M(()=>f()||!z(se)||z(v));qse(e,{variant:`primary`,get label(){return z(n)},get disabled(){return z(r)},keyShortcuts:`Accel+S`,onclick:()=>{D()},popup:t,$$slots:{popup:!0}})}},re=e=>{{let t=M(()=>Y(z(v)?`saving`:`save`)),n=M(()=>f()||!z(se)||z(v));bI(e,{variant:`primary`,get label(){return z(t)},get disabled(){return z(n)},keyShortcuts:`Accel+S`,onclick:()=>{D()}})}};W(te,e=>{o()?e(ne):e(re,-1)}),H(e,r)},$$slots:{default:!0}})}var me=L(pe,2);jz(me,{get show(){return z(p)},set show(e){P(p,e,!0)},children:(e,t)=>{rI(e,{status:`error`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`entry_validation_errors`,{values:{count:z(ce)}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var he=L(me,2);jz(he,{get id(){return c().id},get show(){return c().show},set show(e){_n(I2,Gi(c).show=e,Gi(c))},children:(e,t)=>{let n=M(()=>{let{status:e,message:t,count:n,sourceLanguage:r}=c();return{status:e,message:t,count:n,sourceLanguage:r}});rI(e,{get status(){return z(n).status},children:(e,t)=>{gt();var r=Ra();R(e=>U(r,e),[()=>Y(`editor.${z(n).message}`,{values:{count:z(n).count,source:z(n).sourceLanguage?JC(z(n).sourceLanguage)??z(n).sourceLanguage:``}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var ge=L(he,2);EOe(ge,{get open(){return z(m)},set open(e){P(m,e,!0)}});var _e=L(ge,2);{let e=M(()=>Y(`delete_entry`)),t=M(()=>Y(`delete`));iL(_e,{get title(){return z(e)},get okLabel(){return z(t)},onOk:async()=>{z(E)&&await C9([z(E)],z(le)),de()},onClose:()=>{z(y)?.focus()},get open(){return z(h)},set open(e){P(h,e,!0)},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(z(le).length?`confirm_deleting_this_entry_with_assets`:`confirm_deleting_this_entry`)]),H(e,n)},$$slots:{default:!0}})}var ve=L(_e,2);{let e=M(()=>Y(`saving_entry.error.title`));nL(ve,{get title(){return z(e)},onClose:()=>{z(y)?.focus()},get open(){return z(g)},set open(e){P(g,e,!0)},children:(e,t)=>{gt();var n=QOe(),r=I(n),i=L(r),a=e=>{var t=ZOe(),n=F(t,!0);O(t),R(()=>U(n,z(_))),H(e,t)};W(i,e=>{z(_)&&e(a)}),R(e=>U(r,`${e??``} `),[()=>Y(`saving_entry.error.description`)]),H(e,n)},$$slots:{default:!0}})}H(e,fe),A(),u()}var qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke=s((()=>{Z(),J(),X(),$(),O3(),MOe(),$2(),fm(),c6(),Sw(),POe(),DC(),g8(),M6(),E9(),LOe(),GOe(),a9(),B2(),h9(),ZM(),ZF(),RP(),QC(),sw(),jE(),OO(),H2(),qOe=B(`<!> <!>`,1),JOe=B(`<!> <!> <!>`,1),YOe=B(`<!> <!> <!> <!>`,1),XOe=B(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),ZOe=B(`<div role="none" class="error svelte-zjrq31"> </div>`),QOe=B(` <!>`,1),$Oe=B(`<!> <!> <!> <!> <!> <!>`,1),eke={hash:`svelte-zjrq31`,code:`.error.svelte-zjrq31 {margin-top:8px;border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);line-height:1.5;}`}}));function nke(e,t){k(t,!0),G(e,cke);let n=()=>j(D6,`$entryDraft`,u),r=()=>j(p9,`$entryEditorSettings`,u),i=()=>j(f8,`$collectionState`,u),a=()=>j(L2,`$editorFirstPane`,u),o=()=>j(R2,`$editorSecondPane`,u),s=()=>j(k6,`$entryDraftInteracted`,u),c=()=>j(N2,`$showContentOverlay`,u),l=()=>j(P2,`$showDuplicateToast`,u),[u,d]=hn(),f=e=>{var t=V(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=a();return{locale:e,mode:t}});var n=O9(),r=F(n);{let e=M(()=>Y(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:JC(z(t).locale)??z(t).locale}}));n2(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=D9(),r=I(n);RDe(r,{id:`first-pane-header`,get thisPane(){return L2},get thatPane(){return R2}}),wDe(L(r,2),{id:`first-pane-body`,get thisPane(){return L2},get thisPaneContentArea(){return z(x)},set thisPaneContentArea(e){P(x,e,!0)},get thatPaneContentArea(){return z(S)},set thatPaneContentArea(e){P(S,e,!0)}}),H(e,n)},$$slots:{default:!0}})}O(n),H(e,n)};W(n,e=>{a()&&e(r)}),H(e,t)},p=e=>{var t=V(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=o();return{locale:e,mode:t}});var n=O9(),r=F(n);{let e=M(()=>Y(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:JC(z(t).locale)??z(t).locale}}));n2(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=D9(),r=I(n);RDe(r,{id:`second-pane-header`,get thisPane(){return R2},get thatPane(){return L2}}),wDe(L(r,2),{id:`second-pane-body`,get thisPane(){return R2},get thisPaneContentArea(){return z(S)},set thisPaneContentArea(e){P(S,e,!0)},get thatPaneContentArea(){return z(x)},set thatPaneContentArea(e){P(x,e,!0)}}),H(e,n)},$$slots:{default:!0}})}O(n),H(e,n)};W(n,e=>{o()&&e(r)}),H(e,t)},m=q(t,`editorLocale`,3,void 0),h=!1,g=!1,_=0,v=0,y=N(!0),b=N(void 0),x=N(void 0),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()??{}),T=M(()=>E(z(w).isNew,!0)),te=M(()=>E(z(w).canPreview,!0)),ne=M(()=>z(w).collection),re=M(()=>z(w).collectionName),ie=M(()=>z(w).collectionFile),ae=M(()=>z(w).fileName),oe=M(()=>z(w).isIndexFile),se=M(()=>z(w).currentValues),ce=M(()=>r()??{}),le=M(()=>z(ce).showPreview),ue=M(()=>(z(ie)??z(ne))?._i18n??aw),de=M(()=>z(ue).i18nEnabled),D=M(()=>z(ue).allLocales),fe=M(()=>z(ue).defaultLocale),pe=M(()=>z(ie)?.name?[z(ne)?.name,z(ie).name].join(`|`):z(ne)?.name),me=M(()=>i().canCreate),he=M(()=>i().quota),ge=M(()=>i().creationDisabled),_e=M(()=>!a()&&!o()?[0,0,0]:!a()||!o()?[a()?100:0,o()?100:0,0]:typeof a().width==`number`&&typeof o().width==`number`&&a().width>=30&&o().width>=30&&a().width+o().width===100?[a().width,o().width,30]:[50,50,30]),ve=M(()=>ee(z(_e),3)),ye=M(()=>z(ve)[0]),be=M(()=>z(ve)[1]),xe=M(()=>z(ve)[2]),Se=async()=>{let[e,t]=r()?.paneStates?.[z(pe)??``]??[];return m()&&(e={mode:`edit`,locale:m()},t={mode:`preview`,locale:m()}),h||!e||!t||e.locale&&!z(D).includes(e.locale)||t.locale&&!z(D).includes(t.locale)||(!z(le)||!z(te))&&(e.mode===`preview`||t.mode===`preview`)||z(D).length===2&&e.locale!==z(fe)?!1:(h=!0,await Hi(),mn(L2,e),mn(R2,AE.isSmallScreen||AE.isMediumScreen?null:t),await Hi(),h=!1,!0)},Ce=async()=>{if(!(!n()||g)){if(g=!0,await Se()){g=!1;return}if(mn(L2,{mode:`edit`,locale:a()?.locale??z(fe)}),AE.isSmallScreen||AE.isMediumScreen)mn(R2,null);else if(!z(le)||!z(te)){let e=z(de)?z(D).filter(e=>e!==a()?.locale):[];mn(R2,e.length?{mode:`edit`,locale:e[0]}:null)}else mn(R2,{mode:`preview`,locale:a().locale});g=!1}},we=()=>{!z(ne)||h||!a()||!o()||!z(pe)||p9.update((e={})=>({...e,paneStates:{...e.paneStates,[z(pe)]:[a(),o()]}}))},Te=e=>{e.isTrusted&&!s()&&mn(k6,!0)},Ee=async()=>{await Hi(),z(b)&&(z(b).tabIndex=0,z(b).focus())},De=async e=>{let t=a(),n=o();t?.mode===`edit`&&t.locale===e||n?.mode===`edit`&&n.locale===e||(n?.mode===`preview`?mn(R2,{mode:`edit`,locale:e}):t?.mode===`preview`?mn(L2,{mode:`edit`,locale:e}):mn(n?R2:L2,{mode:`edit`,locale:e}),await nT(100))},Oe=async({locale:e,keyPath:t})=>{await De(e);let n=z(se)?.[e]??{},r=D7({collectionName:z(re),fileName:z(ae),valueMap:n,keyPath:t,isIndexFile:z(oe)});E7(Object.fromEntries(r.map(e=>[e,!0]))),window.requestAnimationFrame(()=>{let n=document.querySelector(`.content-editor .pane[data-mode="edit"][data-locale="${CSS.escape(e)}"] .field[data-key-path="${CSS.escape(t)}"]`);if(n){typeof n.scrollIntoViewIfNeeded==`function`?n.scrollIntoViewIfNeeded():n.scrollIntoView();let e=n.querySelector(`.field-wrapper`);(e?.querySelector(`[contenteditable="true"], [tabindex="0"]`)??e?.querySelector(`input, textarea, button`))?.focus()}})},ke=async()=>{let{state:e}=window.history,{locale:t,keyPath:n}=e?.highlight??{};typeof t==`string`&&typeof n==`string`&&t&&n&&(await Oe({locale:t,keyPath:n}),window.history.replaceState({...e,highlight:null},``))},Ae=e=>{e.source===window&&e.data?.type===`highlight-editor-field`&&e.data.payload&&Oe(e.data.payload)};lc(()=>(c()||mn(D6,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),ri(()=>{z(pe)&&(mn(L2,null),mn(R2,null))}),ri(()=>{z(ne),z(le),z(te),AE.isSmallScreen,AE.isMediumScreen,Gi(()=>{Ce()})}),ri(()=>{a(),o(),we()}),ri(()=>{z(b)&&(async()=>{c()?z(y)&&(P(y,!1),await Ce(),await Ee(),await ke(),b_e()):await y_e()})()});var je=ske(),Me=I(je);lo(F(Me),()=>n()?.id,e=>{var t=D9(),r=I(t);{let e=M(()=>z(T)&&z(ge));KOe(r,{get disabled(){return z(e)}})}var i=L(r,2),s=e=>{},c=e=>{$0(e,{children:(e,t)=>{var n=rke(),r=I(n),i=F(r),a=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`entry_not_found`)]),H(e,t)},o=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`creating_entries_disabled_by_admin`)]),H(e,t)},s=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`creating_entries_disabled_by_quota`,{values:{quota:z(he)}})]),H(e,t)};W(i,e=>{z(C)?e(a):z(me)?e(s,-1):e(o,1)}),O(r);var c=L(r,2);bI(F(c),{variant:`primary`,onclick:()=>{X2(`/collection/${z(ne)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`back_to_collection`)]),H(e,n)},$$slots:{default:!0}}),O(c),H(e,n)},$$slots:{default:!0}})},l=e=>{var t=oke();lo(F(t),()=>`${z(re)}|${z(ae)}|${z(oe)}`,e=>{var t=ake(),n=I(t),r=F(n),i=e=>{var t=V(),n=I(t),r=e=>{kR(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=ee(e,2);_n(L2,Gi(a).width=t[0],Gi(a)),_n(R2,Gi(o).width=t[1],Gi(o))})(e)},children:(e,t)=>{var n=ike(),r=I(n);NR(r,{get defaultSize(){return z(ye)},get minSize(){return z(xe)},children:(e,t)=>{f(e)},$$slots:{default:!0}});var i=L(r,2);wR(i,{children:(e,t)=>{{let t=M(()=>Y(`swap_panes`));bI(e,{class:`swap-button`,iconic:!0,size:`small`,variant:`tertiary`,get"aria-label"(){return z(t)},onpointerdown:e=>{_=e.clientX,v=e.clientY},onclick:e=>{Math.abs(e.clientX-_)>5||Math.abs(e.clientY-v)>5||(e=>{var t=ee(e,2);mn(L2,t[0]),mn(R2,t[1])})([o(),a()])},children:(e,t)=>{tI(e,{name:`swap_horiz`})},$$slots:{default:!0}})}},$$slots:{default:!0}}),NR(L(i,2),{get defaultSize(){return z(be)},get minSize(){return z(xe)},children:(e,t)=>{p(e)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})};W(n,e=>{z(ye)&&z(be)&&e(r)}),H(e,t)},s=e=>{f(e)},c=e=>{p(e)},l=e=>{PI(e,{flex:!0})};W(r,e=>{a()&&o()?e(i):a()?e(s,1):o()?e(c,2):e(l,-1)}),O(n);var u=L(n,2),d=e=>{xOe(e,{})};W(u,e=>{AE.isSmallScreen||e(d)}),H(e,t)}),O(t),Ta(`pointerdown`,t,Te),Ta(`keydown`,t,Te),H(e,t)};W(i,e=>{n()===null?e(s):z(C)||z(T)&&z(ge)?e(c,1):e(l,-1)}),H(e,t)}),O(Me),qs(Me,e=>P(b,e),()=>z(b));var Ne=L(Me,2);S_e(Ne,{}),jz(L(Ne,2),{get show(){return vn(),l()},set show(e){mn(P2,e)},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`entry_duplicated`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(e=>K(Me,`aria-label`,e),[()=>Y(`content_editor`)]),H(e,je),A(),d()}var D9,O9,rke,ike,ake,oke,ske,cke,lke=s((()=>{Z(),J(),X(),$(),rT(),dc(),w_e(),kDe(),WDe(),TOe(),tke(),$2(),g8(),M6(),U8(),B2(),k7(),h9(),QC(),sw(),jE(),D9=B(`<!> <!>`,1),O9=B(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),rke=B(`<div role="none"><!></div> <div role="none"><!></div>`,1),ike=B(`<!> <!> <!>`,1),ake=B(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),oke=B(`<div role="none" class="body svelte-jrunrx"><!></div>`),ske=B(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),cke={hash:`svelte-jrunrx`,code:`.wrapper.svelte-jrunrx {position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);}.pane-wrapper.svelte-jrunrx {display:contents;& > .pane {flex:auto;height:100%;overflow:hidden;display:flex;flex-direction:column;}}.body.svelte-jrunrx {flex:auto;display:flex;overflow:hidden;}.content-area.svelte-jrunrx {flex:auto;background-color:var(--sui-primary-background-color);&:not(:only-child) {border-start-end-radius:16px; /* sidebar is present */}.sui.resizable-handle {background-color:var(--sui-secondary-background-color); /* same as toolbar */.swap-button {position:absolute;top:calc(50% - 12px);margin:0;border-radius:50%;opacity:0.5;&:hover,
          &:focus-visible {opacity:1;}}}}`},Ea([`pointerdown`,`keydown`])}));function uke(e,t){k(t,!0),G(e,mke);let n=()=>j(rN,`$selectedEntryIdSet`,r),[r,i]=hn(),a=q(t,`showCheckbox`,3,!1),o=q(t,`onSelect`,3,void 0);var s=pke(),c=I(s),l=e=>{CL(e,{class:`checkbox`,children:(e,r)=>{{let r=M(()=>n().has(t.entry.id));HI(e,{role:`none`,tabindex:`-1`,get checked(){return z(r)},onChange:({detail:{checked:e}})=>{o()?.(e)}})}},$$slots:{default:!0}})};W(c,e=>{a()&&!(AE.isSmallScreen||AE.isMediumScreen)&&e(l)});var u=L(c,2),d=e=>{CL(e,{class:`image`,children:(e,n)=>{var r=V();ro(I(r),()=>YF(t.collection,t.entry),null,(e,n)=>{var r=V(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);V6(e,{get src(){return z(n)},get variant(){return z(r)},cover:!0})}};W(i,e=>{z(n)&&e(a)}),H(e,r)}),H(e,r)},$$slots:{default:!0}})};W(u,e=>{t.collection._thumbnailFieldNames.length&&e(d)}),CL(L(u,2),{class:`title`,children:(e,n)=>{var r=fke();lI(F(r),{lines:2,children:(e,n)=>{var r=dke(),i=I(r);lo(i,()=>Xh.current,e=>{var n=V();Eo(I(n),()=>LP(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),H(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>Cw(t.collection)?.icon);tI(e,{get name(){return z(n)},class:`home`})}},s=M(()=>ww(t.collection,t.entry));W(a,e=>{z(s)&&e(o)}),H(e,r)},$$slots:{default:!0}}),O(r),H(e,r)},$$slots:{default:!0}}),H(e,s),A(),i()}var dke,fke,pke,mke,hke=s((()=>{Z(),J(),X(),$(),H6(),cN(),Tw(),ZF(),RP(),jE(),dke=B(`<!> <!>`,1),fke=B(`<div role="none" class="label svelte-b1f01"><!></div>`),pke=B(`<!> <!> <!>`,1),mke={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 {.icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}}`}}));function gke(e,t){k(t,!0);let n=()=>j(d8,`$listedEntries`,r),[r,i]=hn(),a=e=>{nN.update(n=>{let r=n.indexOf(t.entry);return e&&r===-1&&n.push(t.entry),!e&&r>-1&&n.splice(r,1),n})};{let r=M(()=>n().indexOf(t.entry));DL(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{X2(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{uke(e,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType},showCheckbox:!0,onSelect:a})},$$slots:{default:!0}})}A(),i()}var _ke=s((()=>{Z(),J(),$(),hke(),$2(),cN(),g8()}));function vke(e,t){k(t,!0);let n=()=>j(d8,`$listedEntries`,r),[r,i]=hn(),a=q(t,`dragging`,3,!1),o=q(t,`dropBefore`,3,!1),s=q(t,`dropAfter`,3,!1),c=q(t,`canMoveUp`,3,!1),l=q(t,`canMoveDown`,3,!1),u=q(t,`onDragStart`,3,void 0),d=q(t,`onDragOver`,3,void 0),f=q(t,`onDrop`,3,void 0),p=q(t,`onDragEnd`,3,void 0),m=q(t,`onMoveUp`,3,void 0),h=q(t,`onMoveDown`,3,void 0);{let r=M(()=>n().indexOf(t.entry)),i=M(()=>[a()&&`drag-source`,o()&&`drop-before`,s()&&`drop-after`].filter(Boolean).join(` `));DL(e,{get"aria-rowindex"(){return z(r)},get class(){return z(i)},draggable:!0,ondragstart:e=>{u()?.(),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)},ondragover:e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),d()?.(e.clientY,e.currentTarget.getBoundingClientRect())},ondrop:e=>{e.preventDefault(),f()?.()},ondragend:()=>{p()?.()},children:(e,n)=>{var r=k9(),i=I(r);uke(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),CL(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=k9(),r=I(n);{let e=e=>{tI(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>Y(`move_up`));bI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),m()?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{tI(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>Y(`move_down`));bI(i,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),h()?.()},startIcon:e,$$slots:{startIcon:!0}})}H(e,n)},$$slots:{default:!0}}),H(e,r)},$$slots:{default:!0}})}A(),i()}var k9,yke=s((()=>{Z(),J(),X(),$(),hke(),g8(),k9=B(`<!> <!>`,1)}));function bke(e,t){k(t,!0),G(e,Ske);let n=()=>j(h8,`$entryGroups`,r),[r,i]=hn(),a=N(Nr({})),o=N(``),s=N(void 0),c=N(void 0),l=(e=z(a))=>{c8.set(n().flatMap(({name:t,entries:n})=>e[t]??n))},u=(e,t,n)=>{if(t===n)return;let r=[...z(a)[e]??[]],[i]=r.splice(t,1);r.splice(n,0,i),z(a)[e]=r,l8.set(!0),l()};lc(()=>{let e=Cw(t.collection)?.name,r=Object.fromEntries(n().map(({name:n,entries:r})=>[n,S6(e?r.filter(t=>t.slug!==e):r,t.collection)]));P(a,r,!0),l(r)});var d=xke();vo(d,5,n,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var l=V();ro(I(l),nT,null,e=>{{let n=M(()=>r()===`*`?void 0:r());vL(e,{get label(){return z(n)},children:(e,n)=>{let l=M(()=>z(a)[r()]??i());var d=V();vo(I(d),19,()=>z(l),e=>e.id,(e,n,i)=>{{let a=M(()=>z(s)===z(i)&&z(o)===r()),d=M(()=>z(c)===z(i)&&z(o)===r()&&z(s)!==z(i)&&z(s)!==z(i)-1),f=M(()=>z(c)===z(l).length&&z(i)===z(l).length-1&&z(o)===r()&&z(s)!==z(l).length-1),p=M(()=>z(i)>0),m=M(()=>z(i)<z(l).length-1);vke(e,{get collection(){return t.collection},get entry(){return z(n)},get viewType(){return t.viewType},get dragging(){return z(a)},get dropBefore(){return z(d)},get dropAfter(){return z(f)},get canMoveUp(){return z(p)},get canMoveDown(){return z(m)},onDragStart:()=>{P(o,r(),!0),P(s,z(i),!0)},onDragOver:(e,t)=>{P(o,r(),!0),P(c,e<t.top+t.height/2?z(i):z(i)+1,!0)},onDrop:()=>{z(s)!==void 0&&z(c)!==void 0&&z(c)!==z(s)&&z(c)!==z(s)+1&&u(r(),z(s),z(c)>z(s)?z(c)-1:z(c)),P(s,void 0),P(c,void 0)},onDragEnd:()=>{P(s,void 0),P(c,void 0)},onMoveUp:()=>{z(i)>0&&u(r(),z(i),z(i)-1)},onMoveDown:()=>{z(i)<z(l).length-1&&u(r(),z(i),z(i)+1)}})}}),H(e,d)},$$slots:{default:!0}})}}),H(e,l)}),O(d),H(e,d),A(),i()}var xke,Ske,Cke=s((()=>{Z(),J(),$(),rT(),dc(),yke(),Tw(),w6(),g8(),xke=B(`<div role="none" class="wrapper svelte-1txp9gj"></div>`),Ske={hash:`svelte-1txp9gj`,code:`.wrapper.svelte-1txp9gj {.grid-row.drag-source {opacity:0.4;cursor:grabbing;}.grid-row[draggable='true']:not(.drag-source) {cursor:grab;}.grid-row.drop-before .grid-cell {border-top:3px solid var(--sui-primary-accent-color) !important;}.grid-row.drop-after .grid-cell {border-bottom:3px solid var(--sui-primary-accent-color) !important;}}`}}));function wke(e,t){k(t,!0);let n=()=>j(mC,`$allEntries`,a),r=()=>j(cw,`$selectedCollection`,a),i=()=>j(f8,`$collectionState`,a),[a,o]=hn(),s=q(t,`label`,3,void 0),c=q(t,`keyShortcuts`,3,void 0),l=M(()=>n()&&r()?sN(r()):!1),u=M(()=>Xh.current&&r()?Cw(r())?.label:``),d=M(()=>z(l)?qse:bI),f=(e=!1)=>{X2(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var p=V(),m=I(p);{let e=e=>{tI(e,{name:`edit`})},t=e=>{var t=V(),n=I(t),r=e=>{YL(e,{children:(e,t)=>{var n=Tke(),r=I(n);{let e=M(()=>Y(`entry`));eR(r,{get label(){return z(e)},onclick:()=>f()})}eR(L(r,2),{get label(){return z(u)},onclick:()=>f(!0)}),H(e,n)},$$slots:{default:!0}})};W(n,e=>{z(l)&&e(r)}),H(e,t)},n=M(()=>!s()),r=M(()=>Y(`create_new_entry`));Mo(m,()=>z(d),(a,o)=>{o(a,{variant:`primary`,get iconic(){return z(n)},get disabled(){return i().creationDisabled},get label(){return s()},get"aria-label"(){return z(r)},get keyShortcuts(){return c()},onclick:()=>f(),startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})})}H(e,p),A(),o()}var Tke,Eke=s((()=>{Z(),J(),X(),$(),$2(),yC(),Sw(),cN(),Tw(),g8(),Tke=B(`<!> <!>`,1)}));function Dke(e,t){k(t,!0);let n=()=>j(cw,`$selectedCollection`,s),r=()=>j(s8,`$reordering`,s),i=()=>j(o8,`$currentView`,s),a=()=>j(h8,`$entryGroups`,s),o=()=>j(d8,`$listedEntries`,s),[s,c]=hn(),l=M(n),u=M(()=>r()?`list`:i().type),d=M(()=>a().flatMap(({entries:e})=>e));{let t=M(()=>Y(`entry_list`));K6(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V(),i=I(n),s=e=>{var t=V(),n=I(t),i=e=>{let t=M(()=>{let{defaultLocale:e}=z(l)._i18n;return{defaultLocale:e}});{let n=M(()=>Y(`entries`));J6(e,{get viewType(){return z(u)},id:`entry-list`,get"aria-label"(){return z(n)},get"aria-rowcount"(){return o().length},children:(e,n)=>{var i=V(),o=I(i),s=e=>{bke(e,{get collection(){return z(l)},get viewType(){return z(u)}})},c=e=>{var n=V();vo(I(n),1,a,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var a=V();ro(I(a),nT,null,e=>{{let n=M(()=>r()===`*`?void 0:r());vL(e,{get label(){return z(n)},children:(e,n)=>{{let n=(e,t=D)=>{var n=V();ro(I(n),nT,null,e=>{gke(e,{get collection(){return z(l)},get entry(){return t()},get viewType(){return z(u)}})}),H(e,n)},r=M(()=>i().filter(({locales:e})=>!!(e[z(t).defaultLocale]??Object.values(e)[0])?.content));IR(e,{get items(){return z(r)},itemKey:`id`,renderItem:n,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),H(e,a)}),H(e,n)};W(o,e=>{r()?e(s):e(c,-1)}),H(e,i)},$$slots:{default:!0}})}},s=e=>{$0(e,{children:(e,t)=>{var n=A9(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`no_entries_found`)]),H(e,n)},$$slots:{default:!0}})},c=e=>{$0(e,{children:(e,t)=>{var n=Oke(),r=I(n),i=F(r,!0);O(r);var a=L(r,2);{let e=M(()=>Y(`create_new_entry`));wke(a,{get collectionName(){return z(l).name},get label(){return z(e)}})}R(e=>U(i,e),[()=>Y(`no_entries_created`)]),H(e,n)},$$slots:{default:!0}})};W(n,e=>{z(d).length?e(i):o().length?e(s,1):e(c,-1)}),H(e,t)},c=e=>{$0(e,{children:(e,t)=>{var n=A9(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`collection_not_found`)]),H(e,n)},$$slots:{default:!0}})};W(i,e=>{z(l)?e(s):e(c,-1)}),H(e,n)},$$slots:{default:!0}})}A(),c()}var A9,Oke,kke=s((()=>{Z(),J(),X(),$(),rT(),q6(),Y6(),_ke(),Cke(),Eke(),Sw(),g8(),A9=B(`<span role="none"> </span>`),Oke=B(`<span role="none"> </span> <!>`,1)}));function Ake(e,t){k(t,!0),G(e,Nke);let n=()=>j(cw,`$selectedCollection`,r),[r,i]=hn(),a=M(()=>n()?.files.filter(bC)??[]);{let t=M(()=>Y(`file_list`));K6(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=V(),i=I(r),o=e=>{{let t=M(()=>Y(`files`));J6(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return z(a).length},children:(e,t)=>{IR(e,{get items(){return z(a)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>(t?.()).name,i=()=>(t?.()).label,a=()=>(t?.()).icon;var o=V();ro(I(o),nT,null,e=>{DL(e,{onclick:()=>{X2(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{CL(e,{class:`title`,children:(e,t)=>{var n=jke(),o=F(n),s=e=>{tI(e,{get name(){return a()}})};W(o,e=>{a()&&e(s)}),lI(L(o,2),{lines:2,children:(e,t)=>{gt();var n=Ra();R(()=>U(n,i()||r())),H(e,n)},$$slots:{default:!0}}),O(n),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}),H(e,o)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},s=e=>{$0(e,{children:(e,t)=>{var n=Mke(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`no_files_in_collection`)]),H(e,n)},$$slots:{default:!0}})};W(i,e=>{z(a)?.length?e(o):e(s,-1)}),H(e,r)},$$slots:{default:!0}})}A(),i()}var jke,Mke,Nke,Pke=s((()=>{Z(),J(),X(),$(),rT(),q6(),Y6(),$2(),Sw(),DC(),jke=B(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),Mke=B(`<span role="none"> </span>`),Nke={hash:`svelte-1nfjp1`,code:`.label.svelte-1nfjp1 {display:flex;align-items:center;gap:16px;.icon {display:flex;align-items:center;justify-content:center;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);}}`}}));function Fke(e,t){k(t,!0),G(e,Lke);let[n,r]=hn(),i=M(()=>t.file.name),a=M(()=>t.file.label),o=M(()=>t.file.icon),s=N(!1),c=N(void 0);var l=Ike(),u=F(l);{let e=e=>{{let t=M(()=>z(o)||`edit_document`);tI(e,{get name(){return z(t)}})}},t=M(()=>z(a)||z(i));UL(u,{get label(){return z(t)},onSelect:()=>{mn(G2,Y(`singleton_selected_announcement`,{values:{file:z(a)||z(i)}}))},onclick:()=>{X2(`/collections/_singletons/entries/${z(i)}`,{transitionType:`forwards`}),P(s,!1),z(c)?.querySelector(`[role="option"]`)?.classList.remove(`focused`)},get selected(){return z(s)},set selected(e){P(s,e,!0)},startIcon:e,$$slots:{startIcon:!0}})}O(l),qs(l,e=>P(c,e),()=>z(c)),H(e,l),A(),r()}var Ike,Lke,Rke=s((()=>{Z(),J(),X(),$(),$2(),Ike=B(`<div class="wrapper svelte-w0jevb"><!></div>`),Lke={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`}}));function zke(e,t){k(t,!0);let n=()=>j(nA,`$backend`,a),r=()=>j(rA,`$isLastCommitPublished`,a),i=()=>j(o6,`$skipCIConfigured`,a),[a,o]=hn(),s=M(()=>DO.deployHookURL),c=M(()=>DO.deployHookAuthHeader),l=M(()=>n()?.triggerDeployment),u=M(()=>(!!z(s)||typeof z(l)==`function`)&&!r()),d=N(`info`),f=N(!1),p=async()=>{P(d,`info`),P(f,!0);try{if(z(s)&&!_D(z(s)))throw Error(`Deploy hook URL must use HTTPS or localhost`);let{ok:e,status:t}=z(s)?await fetch(z(s),{method:`POST`,mode:z(c)?`cors`:`no-cors`,headers:z(c)?{Authorization:z(c)}:{}}):await z(l)?.()??{};if(!e&&(z(c)||t!==0))throw Error(`Webhook returned ${t} error`);mn(rA,!0)}catch(e){P(d,`error`),P(f,!0),console.error(e)}};var m=V(),h=I(m),g=e=>{var t=Bke(),n=I(t);{let e=M(()=>AE.isSmallScreen?`small`:`medium`),t=M(()=>Y(`publish_changes`)),r=M(()=>!z(u));bI(n,{variant:`secondary`,get size(){return z(e)},get label(){return z(t)},get disabled(){return z(r)},onclick:()=>p()})}jz(L(n,2),{get show(){return z(f)},set show(e){P(f,e,!0)},children:(e,t)=>{rI(e,{get status(){return z(d)},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(z(d)===`error`?`publishing_changes_failed`:`publishing_changes`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,t)};W(h,e=>{i()&&e(g)}),H(e,m),A(),o()}var Bke,Vke=s((()=>{Z(),J(),X(),$(),iA(),c6(),jE(),OO(),yD(),Bke=B(`<!> <!>`,1)}));function Hke(e,t){k(t,!0);let n=()=>j(bF,`$cmsConfig`,a),r=()=>j(cw,`$selectedCollection`,a),i=()=>j(mC,`$allEntries`,a),[a,o]=hn(),s=q(t,`isSearchPage`,3,!1),c=M(()=>Intl.NumberFormat(Xh.current)),l=M(()=>n()?.collections?.filter(({hide:e})=>!e)??[]),u=M(()=>n()?.singletons??[]);var d=Gke(),f=F(d),p=e=>{var t=Uke(),n=I(t),r=F(n),i=F(r,!0);O(r),zke(L(r,2),{}),O(n),$6(L(n,2),{onclick:e=>{e.preventDefault(),X2(`/search`)}}),R(e=>U(i,e),[()=>Y(`contents`)]),H(e,t)};W(f,e=>{AE.isSmallScreen&&e(p)});var m=L(f,2);{let e=M(()=>Y(`collection_list`));PL(m,{get"aria-label"(){return z(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=Wke(),a=I(n),o=e=>{{let t=M(()=>Y(`collections`));zL(e,{get label(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),19,()=>z(l),(e,t)=>e.name??t,(e,t)=>{var n=V();ro(I(n),nT,null,e=>{var n=V(),a=I(n),o=e=>{let n=M(()=>{let{name:e,label:n,icon:r}=z(t);return{name:e,label:n,icon:r}});{let a=e=>{{let t=M(()=>z(n).icon||`bookmark_manager`);tI(e,{get name(){return z(t)}})}},o=e=>{var r=V();lo(I(r),i,e=>{let r=M(()=>(`files`in z(t)?z(t).files:iN(z(n).name)).length);var i=j9(),a=F(i,!0);O(i),R((e,t)=>{K(i,`aria-label`,`(${e??``})`),U(a,t)},[()=>Y(`x_entries`,{values:{count:z(r)}}),()=>z(c).format(z(r))]),H(e,i)}),H(e,r)},l=M(()=>z(n).label||z(n).name),u=M(()=>AE.isSmallScreen||s()?!1:r()?.name===z(n).name);UL(e,{get label(){return z(l)},get selected(){return z(u)},onSelect:()=>{X2(`/collections/${z(n).name}`,{transitionType:`forwards`})},startIcon:a,endIcon:o,$$slots:{startIcon:!0,endIcon:!0}})}},l=e=>{MI(e,{})};W(a,e=>{`divider`in z(t)?z(t).divider&&e(l,1):e(o)}),H(e,n)}),H(e,n)}),H(e,n)},$$slots:{default:!0}})}};W(a,e=>{z(l).length&&e(o)});var d=L(a,2),f=e=>{var t=V(),n=I(t),i=e=>{{let t=M(()=>Y(`files`));zL(e,{get label(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),19,()=>z(u),(e,t)=>e.name??t,(e,t)=>{var n=V();ro(I(n),nT,null,e=>{var n=V(),r=I(n),i=e=>{Fke(e,{get file(){return z(t)}})},a=e=>{MI(e,{})};W(r,e=>{`divider`in z(t)?z(t).divider&&e(a,1):e(i)}),H(e,n)}),H(e,n)}),H(e,n)},$$slots:{default:!0}})}},a=e=>{let t=M(()=>z(u).length);{let n=M(()=>Y(`collections`));zL(e,{get label(){return z(n)},children:(e,n)=>{{let n=e=>{tI(e,{name:`bookmark_manager`})},i=e=>{var n=j9(),r=F(n,!0);O(n),R((e,t)=>{K(n,`aria-label`,`(${e??``})`),U(r,t)},[()=>Y(`x_entries`,{values:{count:z(t)}}),()=>z(c).format(z(t))]),H(e,n)},a=M(()=>Y(`files`)),o=M(()=>r()?.name===`_singletons`);UL(e,{get label(){return z(a)},get selected(){return z(o)},onSelect:()=>{X2(`/collections/_singletons`,{transitionType:`forwards`})},startIcon:n,endIcon:i,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};W(n,e=>{AE.isSmallScreen||z(l).length?e(i):e(a,-1)}),H(e,t)};W(d,e=>{z(u).length&&e(f)}),H(e,n)},$$slots:{default:!0}})}O(d),H(e,d),A(),o()}var Uke,j9,Wke,Gke,Kke=s((()=>{Z(),J(),X(),$(),rT(),Rke(),Vke(),e8(),$2(),TF(),yC(),Sw(),cN(),jE(),Uke=B(`<header><h2> </h2> <!></header> <!>`,1),j9=B(`<span class="count"> </span>`),Wke=B(`<!> <!>`,1),Gke=B(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function qke(e,t){k(t,!0);let n=()=>j(l8,`$reorderDirty`,a),r=()=>j(cw,`$selectedCollection`,a),i=()=>j(c8,`$reorderedEntries`,a),[a,o]=hn(),s=N(!1),c=N(!1);var l=Jke(),u=I(l);{let e=M(()=>Y(`done`)),t=M(()=>Y(`done_reordering_entries`)),a=M(()=>z(s)||!n());bI(u,{variant:`primary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(a)},onclick:async()=>{let e=r();P(s,!0);try{await Vpe(e,i()),mn(s8,!1)}catch(e){console.error(e),P(c,!0)}P(s,!1)}})}var d=L(u,2);{let e=M(()=>Y(`cancel`)),t=M(()=>Y(`cancel_reordering_entries`));bI(d,{variant:`secondary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(s)},onclick:()=>{mn(s8,!1)}})}jz(L(d,2),{get show(){return z(c)},set show(e){P(c,e,!0)},children:(e,t)=>{rI(e,{status:`error`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`saving_reorder_failed`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,l),A(),o()}var Jke,Yke=s((()=>{Z(),J(),X(),$(),Sw(),w6(),g8(),Jke=B(`<!> <!> <!>`,1)}));function Xke(e,t){k(t,!0);let n=()=>j(cw,`$selectedCollection`,a),r=()=>j(nN,`$selectedEntries`,a),i=()=>j(d8,`$listedEntries`,a),[a,o]=hn(),s=q(t,`open`,15,!1),c=M(()=>{let e=n()?.name;return r().length&&e&&cm({collectionName:e})?.entryRelative?r().flatMap(t=>XF({entry:t,collectionName:e,relative:!0})):[]});{let t=M(()=>Y(`delete_entries`,{values:{count:r().length}})),n=M(()=>Y(`delete`));iL(e,{get title(){return z(t)},get okLabel(){return z(n)},onOk:()=>{C9(r(),z(c))},get open(){return s()},set open(e){s(e)},children:(e,t)=>{let n=M(()=>r().length>1&&r().length===i().length);gt();var a=Ra();R(e=>U(a,e),[()=>Y(z(c).length?z(n)?`confirm_deleting_all_entries_with_assets`:`confirm_deleting_selected_entries_with_assets`:z(n)?`confirm_deleting_all_entries`:`confirm_deleting_selected_entries`,{values:{count:r().length}})]),H(e,a)},$$slots:{default:!0}})}A(),o()}var Zke=s((()=>{Z(),J(),X(),$(),fm(),Sw(),POe(),cN(),g8(),ZF()}));function Qke(e,t){k(t,!0),G(e,rAe);let n=()=>j(cw,`$selectedCollection`,s),r=()=>j(f8,`$collectionState`,s),i=()=>j(s8,`$reordering`,s),a=()=>j(nN,`$selectedEntries`,s),o=()=>j(d8,`$listedEntries`,s),[s,c]=hn(),l=N(!1),u=e=>Cx(Ax.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),d=M(()=>n()?.name??``),f=M(()=>n()?.description),p=M(()=>Xh.current&&n()?bw(n()):z(d)),m=M(()=>r().isEntryCollection),h=M(()=>r().canCreate),g=M(()=>r().canDelete),_=M(()=>r().canReorder),v=M(()=>r().quota),y=M(()=>r().remaining),b=M(()=>r().nearingQuota),x=M(()=>r().creationDisabled);var S=M9(),C=I(S),w=e=>{var t=M9(),n=I(t);{let e=M(()=>Y(`collection`));f0(n,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=tAe(),r=I(n),s=e=>{{let t=M(()=>Y(`back_to_collection_list`));D3(e,{get"aria-label"(){return z(t)},onclick:()=>{Z2(`/collections`)}})}};W(r,e=>{AE.isSmallScreen&&e(s)});var c=L(r,2),h=F(c,!0);O(c);var v=L(c,2),y=e=>{PI(e,{flex:!0})},b=e=>{var t=$ke();lI(F(t),{children:(e,t)=>{var n=V();Eo(I(n),()=>u(z(f)||``)),H(e,n)},$$slots:{default:!0}}),O(t),H(e,t)};W(v,e=>{AE.isSmallScreen?e(y):e(b,-1)});var S=L(v,2),C=e=>{qke(e,{})},w=e=>{var t=eAe(),n=I(t),r=e=>{{let t=M(()=>Y(`delete`)),n=M(()=>Y(`delete_selected_entries`,{values:{count:a().length}})),r=M(()=>!a().length||!z(g));bI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{P(l,!0)}})}};W(n,e=>{AE.isSmallScreen||e(r)});var i=L(n,2),s=e=>{{let t=M(()=>Y(`reorder`)),n=M(()=>Y(`reorder_entries`)),r=M(()=>!o().length);bI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(s8,!0)}})}};W(i,e=>{z(_)&&e(s)}),jse(L(i,2),{children:(e,t)=>{var n=V(),r=I(n),i=e=>{{let t=M(()=>AE.isSmallScreen?void 0:Y(`create`));wke(e,{get collectionName(){return z(d)},get label(){return z(t)},keyShortcuts:`Accel+E`})}};W(r,e=>{(!AE.isSmallScreen||o().length&&!z(x))&&e(i)}),H(e,n)},$$slots:{default:!0}}),H(e,t)};W(S,e=>{z(m)&&i()?e(C):z(m)&&e(w,1)}),R(()=>U(h,z(p))),H(e,n)},$$slots:{default:!0}})}var r=L(n,2),s=e=>{var t=nAe(),n=I(t);po(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),CI(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`creating_entries_disabled_by_admin`)]),H(e,t)},a=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`creating_entries_disabled_by_quota`,{values:{quota:z(v)}})]),H(e,t)},o=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`creating_entries_nearing_quota`,{values:{quota:z(v),remaining:z(y)}})]),H(e,t)};W(r,e=>{z(h)?z(x)?e(a,1):z(b)&&e(o,2):e(i)}),H(e,n)},$$slots:{default:!0}}),O(n),H(e,t)};W(r,e=>{z(m)&&(z(x)||z(b))&&e(s)}),H(e,t)};W(C,e=>{n()&&e(w)}),Xke(L(C,2),{get open(){return z(l)},set open(e){P(l,e,!0)}}),H(e,S),A(),c()}var $ke,eAe,tAe,nAe,M9,rAe,iAe=s((()=>{Z(),J(),X(),$(),wx(),TS(),O3(),Yke(),Zke(),Eke(),$2(),Sw(),cN(),g8(),jE(),$ke=B(`<div role="none" class="description svelte-83jnuc"><!></div>`),eAe=B(`<!> <!> <!>`,1),tAe=B(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),nAe=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),M9=B(`<!> <!>`,1),rAe={hash:`svelte-83jnuc`,code:`h2.svelte-83jnuc {flex:none !important;}.description.svelte-83jnuc {flex:auto;font-size:var(--sui-font-size-small);opacity:0.8;}`}}));function aAe(e,t){k(t,!0);let n=()=>j(cw,`$selectedCollection`,a),r=()=>j(MF,`$allAssets`,a),i=()=>j(o8,`$currentView`,a),[a,o]=hn(),s=M(()=>cm({collectionName:n()?.name})),c=M(()=>z(s)?r().filter(e=>GF(e,z(s))):[]),l=M(()=>z(s)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),u=M(()=>z(l).internalPath),d=M(()=>z(l).entryRelative),f=M(()=>z(l).hasTemplateTags),p=M(()=>z(d)||z(f));var m=V(),h=I(m),g=e=>{{let t=M(()=>Y(`collection_assets`));n2(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{W6(e,{get disabled(){return z(p)},multiple:!0,onDrop:({files:e})=>{mn(zF,{folder:z(s),files:e})},children:(e,t)=>{Jbe(e,{get assets(){return z(c)},onSelect:({asset:e})=>{X2(`/assets/${e.path}`,{transitionType:`forwards`})}})},$$slots:{default:!0}})},$$slots:{default:!0}})}};W(h,e=>{z(u)!==void 0&&AE.isLargeScreen&&i().showMedia&&e(g)}),H(e,m),A(),o()}var oAe=s((()=>{Z(),J(),X(),$(),$be(),G6(),$2(),JF(),fm(),Sw(),g8(),jE()}));function sAe(e,t){k(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=q(t,`label`,3,``),o=q(t,`disabled`,3,!1),s=q(t,`noneLabel`,3,``),c=q(t,`groups`,19,()=>[]);{let r=e=>{{let r=M(()=>Y(`grouping_options`));YL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=cAe(),a=I(i);{let e=M(()=>s()||Y(`sort_keys.none`)),r=M(()=>!n().group);uR(a,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:null}))}})}vo(L(a,2),17,c,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().group?.field===z(i).field&&String(n().group.pattern)===String(z(i).pattern));uR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:{field:z(i).field,pattern:z(i).pattern}}))}})}}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||Y(`group`));AI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}A(),i()}var cAe,lAe=s((()=>{Z(),J(),X(),$(),cAe=B(`<!> <!>`,1)}));function uAe(e,t){k(t,!0);let n=()=>j(cw,`$selectedCollection`,u),r=()=>j(d8,`$listedEntries`,u),i=()=>j(s8,`$reordering`,u),a=()=>j(h8,`$entryGroups`,u),o=()=>j(Whe,`$sortKeys`,u),s=()=>j(yhe,`$viewFilters`,u),c=()=>j(whe,`$viewGroups`,u),l=()=>j(o8,`$currentView`,u),[u,d]=hn(),f=M(()=>n()?._type===`entry`?n():void 0),p=M(()=>z(f)?.name),m=M(()=>z(f)?._thumbnailFieldNames??[]),h=M(()=>!!r().length),g=M(()=>r().length>1);var _=V(),v=I(_),y=e=>{{let t=M(()=>Y(`entry_list`));f0(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=fAe(),r=I(n),i=e=>{{let t=M(()=>a().flatMap(({entries:e})=>e));ohe(e,{get allItems(){return z(t)},get selectedItems(){return nN}})}};W(r,e=>{AE.isSmallScreen||AE.isMediumScreen||e(i)});var u=L(r,2);PI(u,{flex:!0});var d=L(u,2);{let e=M(()=>!z(g)||!o().length);Ghe(d,{get disabled(){return z(e)},get currentView(){return o8},get sortKeys(){return o()},get collectionName(){return z(p)},"aria-controls":`entry-list`})}var f=L(d,2),_=e=>{{let t=M(()=>!z(g));rhe(e,{get disabled(){return z(t)},get currentView(){return o8},get filters(){return s()},multiple:!0,"aria-controls":`entry-list`})}};W(f,e=>{s()?.length&&e(_)});var v=L(f,2),y=e=>{{let t=M(()=>!z(g));sAe(e,{get disabled(){return z(t)},get currentView(){return o8},get groups(){return c()},"aria-controls":`entry-list`})}};W(v,e=>{c()?.length&&e(y)});var b=L(v,2),x=e=>{{let t=M(()=>!z(h));S8(e,{get disabled(){return z(t)},get currentView(){return o8},"aria-controls":`entry-list`})}};W(b,e=>{z(m).length&&e(x)});var S=L(b,2),C=e=>{var t=dAe(),n=I(t);MI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{tI(e,{name:`photo_library`})},t=M(()=>!z(h)||!cm({collectionName:z(p)})),n=M(()=>!!l().showMedia),i=M(()=>Y(l().showMedia?`hide_assets`:`show_assets`));bI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`collection-assets`,get"aria-expanded"(){return l().showMedia},get"aria-label"(){return z(i)},onclick:()=>{o8.update(e=>({...e,showMedia:!l().showMedia}))},startIcon:e,$$slots:{startIcon:!0}})}H(e,t)};W(S,e=>{AE.isSmallScreen||AE.isMediumScreen||e(C)}),H(e,n)},$$slots:{default:!0}})}};W(v,e=>{z(f)&&!i()&&e(y)}),H(e,_),A(),d()}var dAe,fAe,pAe=s((()=>{Z(),J(),X(),$(),ahe(),lAe(),uhe(),qhe(),C8(),fm(),Sw(),cN(),g8(),bhe(),The(),x8(),jE(),dAe=B(`<!> <!>`,1),fAe=B(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function mAe(e,t){k(t,!0);let n=()=>j(cw,`$selectedCollection`,o),r=()=>j(N2,`$showContentOverlay`,o),i=()=>j(d8,`$listedEntries`,o),a=()=>j(s3,`$contentUpdatesToast`,o),[o,s]=hn(),c=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,l=N(!1),u=N(!1),d=N(void 0),f=M(()=>`files`in(n()??{})?Ake:Dke),p=()=>{let{path:e,params:t}=K2(),r=e.match(c);if(P(l,!1),P(u,!1),P(d,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&pw().length&&mn(cw,void 0),!r?.groups){mn(N2,!1),P(u,N8(e),!0);return}let{_collectionName:a,routeType:o,subPath:s}=r.groups;if(!a){AE.isSmallScreen?(mn(cw,void 0),mn(N2,!1),mn(G2,Y(`viewing_collection_list`)),P(l,!0)):X2(`/collections/${(n()||mw()||vw())?.name}`,{replaceState:!0});return}let f=yw(a);if(!f||f.hide?mn(cw,void 0):n()?.name!==f.name&&mn(cw,f),!f||!n()){mn(N2,!1),mn(G2,Y(`collection_not_found`));return}let{name:p}=n(),m=bw(n()),h=`_fileMap`in n()?n()._fileMap:void 0;if(!o){mn(N2,!1),mn(G2,Y(`viewing_x_collection`,{values:{collection:m,count:i().length}}));return}if(mn(N2,!0),h){if(o===`entries`&&s){let e=TC(p,s),t=h[s];T9(e?{collection:f,collectionFile:t,originalEntry:e}:{collection:f,collectionFile:t,originalEntry:{slug:t.name,locales:Object.fromEntries(t._i18n.initialLocales.map(e=>[e,{}]))}}),mn(G2,Y(`edit_${f._type}_announcement`,{values:{collection:m,file:CC(t)}}))}}else if(o===`new`&&!s&&(T9({collection:f,dynamicValues:t,isIndexFile:!!window.history.state?.index}),mn(G2,Y(`create_entry_announcement`,{values:{collection:m}}))),o===`entries`&&s){let e=i().find(e=>e.subPath===s);e&&Xh.current&&(T9({collection:f,originalEntry:e}),mn(G2,Y(`edit_entry_announcement`,{values:{collection:m,entry:LP(n(),e)}})))}};lc(()=>(p(),()=>{mn(N2,!1)}));var m=hAe();wa(`hashchange`,Kr,e=>{Y2(e,p,c)});var h=I(m);{let e=e=>{var t=V(),n=I(t),r=e=>{Hke(e,{get isSearchPage(){return z(u)}})};W(n,e=>{(!AE.isSmallScreen||z(l))&&e(r)}),H(e,t)},t=e=>{var t=V(),r=I(t),a=e=>{j8(e,{})},o=e=>{{let t=e=>{Qke(e,{})},r=e=>{var t=V(),r=I(t),a=e=>{uAe(e,{})};W(r,e=>{n()?._type===`entry`&&i().length&&e(a)}),H(e,t)},a=e=>{var t=V();Mo(I(t),()=>z(f),(e,t)=>{t(e,{})}),H(e,t)},o=e=>{aAe(e,{})},s=M(()=>Y(`x_collection`,{values:{collection:Xh.current&&n()?bw(n()):``}})),c=M(()=>n()?.description);w8(e,{get"aria-label"(){return z(s)},get"aria-description"(){return z(c)},primaryToolbar:t,secondaryToolbar:r,mainContent:a,secondarySidebar:o,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};W(r,e=>{z(u)?e(a):(!AE.isSmallScreen||!z(l))&&e(o,1)}),H(e,t)},r=M(()=>Y(`content_library`));E8(h,{uiSettingsKey:`contents-page`,get"aria-label"(){return z(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var g=L(h,2),_=e=>{nke(e,{get editorLocale(){return z(d)}})};W(g,e=>{r()&&e(_)});var v=L(g,2);jz(v,{get show(){return a().saved},set show(e){_n(s3,Gi(a).saved=e,Gi(a))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(a().published?`entry_saved_and_published`:`entry_saved`,{values:{count:a().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),jz(L(v,2),{get show(){return a().deleted},set show(e){_n(s3,Gi(a).deleted=e,Gi(a))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`entries_deleted`,{values:{count:a().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,m),A(),s()}var hAe,gAe=s((()=>{Z(),J(),X(),$(),dc(),T8(),D8(),lke(),kke(),Pke(),Kke(),iAe(),oAe(),pAe(),M8(),$2(),Sw(),c3(),DC(),g8(),E9(),B2(),RP(),Wge(),jE(),hAe=B(`<!> <!> <!> <!>`,1)}));function _Ae(e,t){k(t,!0);{let t=M(()=>Y(`prefs.i18n.translators.default.select_service`));QR(e,{get"aria-label"(){return z(t)},get value(){return DO.defaultTranslationService},onChange:e=>{DO.defaultTranslationService=e.detail.value},children:(e,t)=>{var n=V();vo(I(n),17,()=>Object.entries(y5),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>r()===DO.defaultTranslationService);UL(e,{get label(){return i()},get value(){return r()},get selected(){return z(t)}})}}),H(e,n)},$$slots:{default:!0}})}A()}var vAe=s((()=>{Z(),J(),X(),$(),x5(),OO()}));function yAe(e,t){k(t,!0);let n=()=>j(b5,`$translator`,a),r=()=>j(N2,`$showContentOverlay`,a),i=()=>j(F2,`$translatorApiKeyDialogState`,a),[a,o]=hn(),s=M(()=>n().serviceId),c=M(()=>n().apiLabel),l=M(()=>n().developerURL),u=M(()=>n().apiKeyURL),d=M(()=>n().apiKeyPattern),f=N(``);ri(()=>{P(f,DO.apiKeys?.[z(s)]??``,!0)}),ri(()=>{!r()&&i().show&&(_n(F2,Gi(i).show=!1,Gi(i)),i().resolve?.())});let p=()=>{let e=z(f).trim();z(d)?.test(e)&&(DO.apiKeys??={},DO.apiKeys[z(s)]=e,_n(F2,Gi(i).show=!1,Gi(i)),i().resolve?.(e))};{let t=M(()=>Y(`translate_fields`,{values:{count:i().multiple?2:1}})),n=M(()=>({spellcheck:!1,monospace:!0,"aria-label":Y(`api_key`)}));fL(e,{get title(){return z(t)},get textboxAttrs(){return z(n)},oninput:()=>p(),onOk:()=>p(),onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){_n(F2,Gi(i).show=e,Gi(i))},get value(){return z(f)},set value(e){P(f,e,!0)},children:(e,t)=>{var n=bAe(),r=I(n);_Ae(r,{});var i=L(r,2);PI(i,{}),Eo(L(i,2),()=>Cx(Y(`prefs.i18n.translators.description`,{values:{service:z(c),homeHref:`href="${z(l)}"`,apiKeyHref:`href="${z(u)}"`}}).replace(/[\u2068\u2069]/g,``),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),H(e,n)},$$slots:{default:!0}})}A(),o()}var bAe,xAe=s((()=>{Z(),J(),X(),$(),wx(),vAe(),B2(),x5(),OO(),bAe=B(`<!> <!> <!>`,1)}));function SAe(e,t){k(t,!0);let n=()=>j(hC,`$entryParseErrors`,r),[r,i]=hn(),a=N(!!n().length);jz(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,t)=>{rI(e,{status:`error`,children:(e,t)=>{gt();var r=Ra();R(e=>U(r,e),[()=>Y(`entry_parse_errors`,{values:{count:n().length}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),A(),i()}var CAe=s((()=>{Z(),J(),X(),$(),yC()})),N9,P9,F9=s((()=>{Zp(),iA(),gD(),jE(),N9=un([Xp(()=>AE.isLargeScreen),Xp(()=>AE.hasMouse),Xp(()=>AE.isLocalHost),nA,Xp(()=>hD.account)],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),P9=ln(!1)}));function wAe(e,t){k(t,!0);let n=()=>j(nA,`$backend`,r),[r,i]=hn(),a,o=N(!1);ri(()=>{let{databaseName:e}=n()?.repository??{};e&&(a=new iT(e,`ui-settings`),(async()=>{let e=await a.get(`onboarding`)??{};e.mobileCta||P(o,!0),await a.set(`onboarding`,{...e,mobileCta:!0})})())});var s=EAe(),c=I(s);po(c,()=>({"--sui-infobar-message-justify-content":`center`})),CI(c.lastChild,{get show(){return z(o)},dismissible:!1,children:(e,t)=>{gt();var n=TAe(),r=I(n),i=L(r);{let e=M(()=>Y(`mobile_promo_button`));bI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1),mn(P9,!0)}})}var a=L(i,2);{let e=M(()=>Y(`later`));bI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1)}})}R(e=>U(r,`${e??``} `),[()=>Y(`mobile_promo_title`)]),H(e,n)},$$slots:{default:!0}}),O(c),H(e,s),A(),i()}var TAe,EAe,DAe=s((()=>{Z(),J(),X(),$(),sT(),F9(),iA(),TAe=B(` <!> <!>`,1),EAe=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function OAe(e,t){k(t,!0),G(e,AAe);let n=()=>j(im,`$allAssetFolders`,c),r=()=>j(om,`$selectedAssetFolder`,c),i=()=>j(bF,`$cmsConfig`,c),a=()=>j(tA,`$backendName`,c),o=()=>j(W2,`$selectedPageName`,c),s=()=>j(X6,`$searchMode`,c),[c,l]=hn(),u=M(()=>{let e=[{key:`collections`,label:Y(`contents`),icon:`article`,link:`/collections`,searchMode:`contents`}];return n().length&&e.push({key:`assets`,label:Y(`assets`),icon:`photo`,link:AE.isSmallScreen?`/assets`:`/assets/${r()?.internalPath??`-/all`}`,searchMode:`assets`}),i()?.publish_mode,a(),AE.isSmallScreen&&e.push({key:`menu`,label:Y(`menu`),icon:`menu`,link:`/menu`,searchMode:void 0}),e});var d=kAe(),f=F(d);{let e=M(()=>Y(`switch_page`));OI(f,{get"aria-label"(){return z(e)},"aria-controls":`page-container`,children:(e,t)=>{var n=V();vo(I(n),19,()=>z(u),({key:e,label:t,icon:n,link:r,searchMode:i})=>e,(e,t,n)=>{let r=()=>z(t).key,i=()=>z(t).label,a=()=>z(t).icon,c=()=>z(t).link,l=()=>z(t).searchMode;{let t=e=>{tI(e,{get name(){return a()}})},u=M(()=>o()===r()||s()===l()),d=M(()=>z(n)+1);kI(e,{variant:`ghost`,iconic:!0,get selected(){return z(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${z(d)??``}`},onclick:()=>{X2(c())},startIcon:t,$$slots:{startIcon:!0}})}}),H(e,n)},$$slots:{default:!0}})}O(d),H(e,d),A(),l()}var kAe,AAe,jAe=s((()=>{Z(),J(),X(),$(),$2(),fm(),iA(),TF(),Q6(),jE(),kAe=B(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),AAe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;.sui.select-button-group {gap:4px;

        @media (width < 768px) {justify-content:space-evenly;width:100%;
        }}.sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}}`}}));function MAe(e,t){k(t,!0);let n=()=>j(U2,`$hasOverlay`,r),[r,i]=hn();xse(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>Y(`global`));f0(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=NAe();OAe(F(n),{}),O(n),H(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),A(),i()}var NAe,PAe=s((()=>{Z(),J(),X(),$(),jAe(),$2(),NAe=B(`<div role="none" class="buttons"><!></div>`)}));function FAe(e,t){k(t,!0);let n=N(!1),r,i=e=>{e.preventDefault(),r=e,P(n,!0)},a=()=>{r=null,P(n,!1)};lc(()=>(window.addEventListener(`beforeinstallprompt`,i),window.addEventListener(`appinstalled`,a),()=>{window.removeEventListener(`beforeinstallprompt`,i),window.removeEventListener(`appinstalled`,a)}));var o=V(),s=I(o),c=e=>{{let t=M(()=>Y(`install_as_app`));eR(e,{get label(){return z(t)},onclick:async()=>{await r?.prompt()}})}};W(s,e=>{z(n)&&e(c)}),H(e,o),A()}var IAe=s((()=>{Z(),J(),X(),$(),dc()}));function LAe(e,t){k(t,!0),G(e,VAe);let n=q(t,`open`,15,!1),r=q(t,`onClose`,3,void 0),i=[{feature:`view_content_library`,keys:`Alt+1`},{feature:`view_asset_library`,keys:`Alt+2`},{feature:`search`,keys:`Accel+F`},{feature:`create_entry`,keys:`Accel+E`},{feature:`save_entry`,keys:`Accel+S`},{feature:`cancel_editing`,keys:`Escape`}];{let t=M(()=>Y(`keyboard_shortcuts`));qI(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,onClose:()=>{r()?.()},get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=BAe(),r=F(n);{let e=M(()=>Y(`keyboard_shortcuts`));Lce(r,{get"aria-label"(){return z(e)},children:(e,t)=>{var n=V();vo(I(n),17,()=>i,({feature:e,keys:t})=>t,(e,t)=>{let n=()=>z(t).feature,r=()=>z(t).keys;Fce(e,{children:(e,t)=>{var i=zAe(),a=I(i);mz(a,{class:`feature`,children:(e,t)=>{gt();var r=Ra();R(e=>U(r,e),[()=>Y(`keyboard_shortcuts_.${n()}`)]),H(e,r)},$$slots:{default:!0}}),mz(L(a,2),{class:`keys`,children:(e,t)=>{var n=V();vo(I(n),16,()=>r().split(`+`),e=>e,(e,t)=>{var n=RAe(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>t.replace(`Accel`,AE.isMacOS?`⌘`:`Ctrl`)]),H(e,n)}),H(e,n)},$$slots:{default:!0}}),H(e,i)},$$slots:{default:!0}})}),H(e,n)},$$slots:{default:!0}})}O(n),H(e,n)},$$slots:{default:!0}})}A()}var RAe,zAe,BAe,VAe,HAe=s((()=>{Z(),J(),X(),$(),jE(),RAe=B(`<kbd class="svelte-13q15u"> </kbd>`),zAe=B(`<!> <!>`,1),BAe=B(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),VAe={hash:`svelte-13q15u`,code:`.wrapper.svelte-13q15u {display:contents;.table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);&:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.feature {flex:auto;}.keys {display:flex;gap:8px;}}}kbd.svelte-13q15u {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-color:var(--sui-primary-accent-color);border-radius:4px;padding:0 8px;height:32px;min-width:32px;background-color:var(--sui-tertiary-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}`}}));function UAe(e,t){k(t,!0);let n=N(!1);var r=WAe(),i=I(r),a=e=>{{let t=M(()=>Y(`keyboard_shortcuts`));eR(e,{get label(){return z(t)},onclick:()=>{P(n,!0)}})}};W(i,e=>{AE.hasMouse&&e(a)}),LAe(L(i,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(n)},set open(e){P(n,e,!0)}}),H(e,r),A()}var WAe,GAe=s((()=>{Z(),J(),X(),$(),HAe(),jE(),WAe=B(`<!> <!>`,1)}));function I9(e,t){k(t,!0);let n=q(t,`defaultValue`,3,!0),r=N(!0);ri(()=>{P(r,!!(DO[t.key]??n()),!0)}),ri(()=>{DO[t.key]!==z(r)&&(DO[t.key]=z(r))}),uz(e,{get label(){return t.label},get checked(){return z(r)},set checked(e){P(r,e,!0)}}),A()}var L9=s((()=>{Z(),J(),$(),OO()}));function KAe(e,t){k(t,!0),q(t,`onChange`,3,void 0);var n=qAe(),r=F(n),i=F(r,!0);O(r);var a=L(r,2),o=F(a,!0);O(a);var s=L(a,2),c=F(s);{let e=M(()=>Y(`prefs.accessibility.underline_links.switch_label`));I9(c,{key:`underlineLinks`,get label(){return z(e)}})}O(s),O(n),R((e,t)=>{U(i,e),U(o,t)},[()=>Y(`prefs.accessibility.underline_links.title`),()=>Y(`prefs.accessibility.underline_links.description`)]),H(e,n),A()}var qAe,JAe=s((()=>{Z(),J(),X(),L9(),qAe=B(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`)}));function YAe(e,t){k(t,!0);let n=()=>j(o6,`$skipCIConfigured`,r),[r,i]=hn(),a=q(t,`onChange`,3,void 0);var o=ZAe(),s=I(o),c=F(s),l=F(c,!0);O(c);var u=L(c,2),d=F(u,!0);O(u);var f=L(u,2),p=F(f);{let e=M(()=>Y(`prefs.advanced.beta.switch_label`));I9(p,{key:`beta`,get label(){return z(e)},defaultValue:!1})}O(f),O(s);var m=L(s,2),h=F(m),g=F(h,!0);O(h);var _=L(h,2),v=F(_,!0);O(_);var y=L(_,2),b=F(y);{let e=M(()=>Y(`prefs.advanced.developer_mode.switch_label`));I9(b,{key:`devModeEnabled`,get label(){return z(e)},defaultValue:!1})}O(y),O(m);var x=L(m,2),S=e=>{var t=XAe(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),o=F(i,!0);O(i);var s=L(i,2),c=F(s);{let e=M(()=>Y(`prefs.advanced.deploy_hook.url.field_label`));oL(c,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{a()?.({message:Y(DO.deployHookURL?`prefs.advanced.deploy_hook.url.saved`:`prefs.advanced.deploy_hook.url.removed`)})},get value(){return DO.deployHookURL},set value(e){DO.deployHookURL=e}})}O(s);var l=L(s,2),u=F(l);{let e=M(()=>Y(`prefs.advanced.deploy_hook.auth.field_label`));oL(u,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{a()?.({message:Y(DO.deployHookAuthHeader?`prefs.advanced.deploy_hook.auth.saved`:`prefs.advanced.deploy_hook.auth.removed`)})},get value(){return DO.deployHookAuthHeader},set value(e){DO.deployHookAuthHeader=e}})}O(l),O(t),R((e,t)=>{U(r,e),U(o,t)},[()=>Y(`prefs.advanced.deploy_hook.title`),()=>Y(`prefs.advanced.deploy_hook.description`)]),H(e,t)};W(x,e=>{n()&&e(S)}),R((e,t,n,r)=>{U(l,e),U(d,t),U(g,n),U(v,r)},[()=>Y(`prefs.advanced.beta.title`),()=>Y(`prefs.advanced.beta.description`),()=>Y(`prefs.advanced.developer_mode.title`),()=>Y(`prefs.advanced.developer_mode.description`)]),H(e,o),A(),i()}var XAe,ZAe,QAe=s((()=>{Z(),J(),X(),$(),L9(),c6(),OO(),XAe=B(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),ZAe=B(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1)}));function $Ae(e,t){k(t,!0),q(t,`onChange`,3,void 0);var n=eje(),r=F(n),i=F(r,!0);O(r);var a=L(r,2),o=F(a);{let e=M(()=>Y(`prefs.appearance.select_theme`));OI(o,{get"aria-label"(){return z(e)},onChange:e=>{DO.theme=e.detail.value},children:(e,t)=>{var n=V();vo(I(n),16,()=>[`auto`,`dark`,`light`],e=>e,(e,t)=>{{let n=M(()=>Y(`prefs.theme.${t}`)),r=M(()=>!DO.theme&&t===`auto`||DO.theme===t);kI(e,{variant:`tertiary`,get label(){return z(n)},get value(){return t},get selected(){return z(r)}})}}),H(e,n)},$$slots:{default:!0}})}O(a),O(n),R(e=>U(i,e),[()=>Y(`prefs.appearance.theme`)]),H(e,n),A()}var eje,tje=s((()=>{Z(),J(),X(),$(),OO(),eje=B(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function nje(e,t){k(t,!0),q(t,`onChange`,3,void 0);var n=rje(),r=F(n),i=F(r,!0);O(r);var a=L(r,2),o=F(a);{let e=M(()=>Y(`prefs.contents.editor.use_draft_backup.switch_label`));I9(o,{key:`useDraftBackup`,get label(){return z(e)}})}O(a);var s=L(a,2),c=F(s);{let e=M(()=>Y(`prefs.contents.editor.close_on_save.switch_label`));I9(c,{key:`closeOnSave`,get label(){return z(e)}})}O(s);var l=L(s,2),u=F(l);{let e=M(()=>Y(`prefs.contents.editor.close_with_escape.switch_label`));I9(u,{key:`closeWithEscape`,get label(){return z(e)}})}O(l),O(n),R(e=>U(i,e),[()=>Y(`prefs.contents.editor.title`)]),H(e,n),A()}var rje,ije=s((()=>{Z(),J(),X(),L9(),rje=B(`<section><h3> </h3> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>`)}));function R9(e,t){k(t,!0);let n=q(t,`onChange`,3,void 0),r=M(()=>t.service.apiKeyPattern),i=N(``);lc(()=>{P(i,DO.apiKeys?.[t.serviceId]??``,!0)}),U0(e,{flex:!0,autocomplete:`off`,spellcheck:`false`,get"aria-label"(){return t.ariaLabel},onchange:()=>{let e=z(i).trim(),a=!!e&&!!z(r)&&!z(r).test(e);DO.apiKeys??={},DO.apiKeys[t.serviceId]=a?``:e,n()?.({message:Y(a?`prefs.changes.api_key_invalid`:e?`prefs.changes.api_key_saved`:`prefs.changes.api_key_removed`),status:a?`error`:`success`})},get value(){return z(i)},set value(e){P(i,e,!0)}}),A()}var aje=s((()=>{Z(),J(),X(),$(),dc(),OO()}));function oje(e,t){k(t,!0);let n=q(t,`onChange`,3,void 0);var r=cje(),i=I(r),a=F(i),o=F(a,!0);O(a);var s=L(a,2);_Ae(F(s),{}),O(s),O(i);var c=L(i,2),l=F(c),u=F(l,!0);O(l);var d=L(l,2);Eo(d,()=>QN(Y(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),O(d),vo(L(d,2),17,()=>Object.entries(y5),([e,t])=>e,(e,t)=>{var r=M(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=sje(),c=F(s),l=F(c,!0);O(c);var u=L(c,2),d=F(u);{let e=M(()=>Y(`prefs.i18n.translators.field_label`,{values:{service:z(o)}}));R9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}O(u),O(s),R(()=>U(l,z(o))),H(e,s)}),O(c),R((e,t)=>{U(o,e),U(u,t)},[()=>Y(`prefs.i18n.translators.default.title`),()=>Y(`prefs.i18n.translators.api_keys.title`)]),H(e,r),A()}var sje,cje,lje=s((()=>{Z(),J(),X(),aje(),vAe(),x5(),$N(),sje=B(`<section><h4> </h4> <div role="none"><!></div></section>`),cje=B(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1)}));function uje(e,t){k(t,!0),q(t,`onChange`,3,void 0);var n=dje(),r=F(n),i=F(r,!0);O(r);var a=L(r,2);lo(F(a),()=>Xh.current,e=>{{let t=M(()=>Y(`prefs.language.ui_language.select_language`));QR(e,{get"aria-label"(){return z(t)},get value(){return Xh.current},onChange:e=>{DO.locale=e.detail.value},children:(e,t)=>{var n=V();vo(I(n),16,()=>Fh,e=>e,(e,t)=>{{let n=M(()=>JC(t,{displayLocale:t})??t),r=M(()=>t===Xh.current);UL(e,{get label(){return z(n)},get value(){return t},get selected(){return z(r)},dir:`auto`})}}),H(e,n)},$$slots:{default:!0}})}}),O(a),O(n),R(e=>U(i,e),[()=>Y(`prefs.language.ui_language.title`)]),H(e,n),A()}var dje,fje=s((()=>{Z(),J(),X(),$(),QC(),OO(),dje=B(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function pje(e,t){k(t,!0);let n=q(t,`onChange`,3,void 0),r=M(()=>{let{providers:e=[]}=c7();return Object.entries(s7).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),i=M(()=>Object.entries(Mj).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var a=mje(),o=I(a),s=F(o),c=F(s,!0);O(s);var l=L(s,2);Eo(l,()=>QN(z(i).length?Y(`prefs.media.cloud_storage.api_keys.description`):Y(`prefs.media.cloud_storage.no_services`),`https://sveltiacms.app/en/docs/media`),!0),O(l),vo(L(l,2),17,()=>z(i),([e,t])=>e,(e,t)=>{var r=M(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=z9(),c=F(s),l=F(c,!0);O(c);var u=L(c,2),d=F(u);{let e=M(()=>Y(`prefs.media.cloud_storage.field_label`,{values:{service:z(o)}}));R9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}O(u),O(s),R(()=>U(l,z(o))),H(e,s)}),O(o);var u=L(o,2),d=F(u),f=F(d,!0);O(d);var p=L(d,2);Eo(p,()=>QN(z(r).length?Y(`prefs.media.stock_photos.api_keys.description`):Y(`prefs.media.stock_photos.no_services`),`https://sveltiacms.app/en/docs/integrations/stock-photos`),!0),O(p),vo(L(p,2),17,()=>z(r),([e,t])=>e,(e,t)=>{var r=M(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=z9(),c=F(s),l=F(c,!0);O(c);var u=L(c,2),d=F(u);{let e=M(()=>Y(`prefs.media.stock_photos.field_label`,{values:{service:z(o)}}));R9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}O(u),O(s),R(()=>U(l,z(o))),H(e,s)}),O(u),R((e,t)=>{U(c,e),U(f,t)},[()=>Y(`prefs.media.cloud_storage.api_keys.title`),()=>Y(`prefs.media.stock_photos.api_keys.title`)]),H(e,a),A()}var z9,mje,hje=s((()=>{Z(),J(),X(),aje(),Pj(),jxe(),$N(),z9=B(`<section><h4> </h4> <div role="none"><!></div></section>`),mje=B(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1)})),B9,gje=s((()=>{Zp(),JAe(),QAe(),tje(),ije(),lje(),fje(),hje(),TF(),B9=un([bF],([e])=>[{key:`appearance`,icon:`palette`,component:$Ae},{key:`language`,icon:`language`,component:uje},{key:`contents`,icon:`library_books`,component:nje},{key:`i18n`,icon:`translate`,component:oje,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:pje},{key:`accessibility`,icon:`accessibility_new`,component:KAe},{key:`advanced`,icon:`build`,component:YAe}])}));function _je(e,t){G(e,yje);let n=N(``),r=N(`success`),i=N(!1);var a=vje(),o=I(a);Mo(F(o),()=>t.Panel,(e,t)=>{t(e,{onChange:({message:e,status:t})=>{P(n,e,!0),P(r,t??`success`,!0),P(i,!0)}})}),O(o),jz(L(o,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{rI(e,{get status(){return z(r)},children:(e,t)=>{gt();var r=Ra();R(()=>U(r,z(n))),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,a)}var vje,yje,bje=s((()=>{Z(),J(),$(),vje=B(`<div class="container svelte-1attlke" role="none"><!></div> <!>`,1),yje={hash:`svelte-1attlke`,code:`.container.svelte-1attlke {display:contents;section:not(:first-child) {margin:16px 0 0;}p {margin-top:0;}h3 {font-size:inherit;& ~ div {margin:8px 0 0;}& ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}}h4 {margin-bottom:4px;font-size:var(--sui-font-size-small);}}`}}));function xje(e,t){k(t,!0),G(e,Cje);let n=q(t,`open`,15,!1),r=q(t,`onClose`,3,void 0),i=N(`appearance`);{let t=M(()=>Y(`settings`));qI(e,{get title(){return z(t)},size:`large`,showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{r()?.()},get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=Sje(),r=F(n);{let e=M(()=>Y(`categories`));zce(r,{orientation:`vertical`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=V();vo(I(n),17,()=>dn(B9),({key:e,icon:t,enabled:n=!0})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon,a=Kn(()=>E(z(t).enabled,!0));var o=V(),s=I(o),c=e=>{{let t=e=>{tI(e,{get name(){return r()}})},a=M(()=>Y(`prefs.${n()}.title`)),o=M(()=>n()===z(i));Uce(e,{get label(){return z(a)},get selected(){return z(o)},get"aria-controls"(){return`prefs-tab-${n()??``}`},onSelect:()=>{P(i,n(),!0)},startIcon:t,$$slots:{startIcon:!0}})}};W(s,e=>{z(a)&&e(c)}),H(e,o)}),H(e,n)},$$slots:{default:!0}})}vo(L(r,2),17,()=>dn(B9),({key:e,component:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).component;Vce(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{_je(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),O(n),H(e,n)},$$slots:{default:!0}})}A()}var Sje,Cje,wje=s((()=>{Z(),J(),X(),$(),Zp(),gje(),bje(),Sje=B(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),Cje={hash:`svelte-pwxwga`,code:`.wrapper.svelte-pwxwga {display:flex;.sui.tab-list {flex:none;}.sui.tab-panel {flex:auto;border-width:0;}}`}}));function Tje(e,t){k(t,!0);let n=()=>j(tA,`$backendName`,a),r=()=>j(nA,`$backend`,a),i=()=>j(N9,`$canShowMobileSignInDialog`,a),[a,o]=hn(),s=N(!1),c=M(()=>n()===`local`),l=M(()=>n()===`test-repo`);var u=V9(),d=I(u);{let e=M(()=>Y(`account`));YL(d,{get"aria-label"(){return z(e)},children:(e,n)=>{var a=Eje(),o=I(a);{let e=M(()=>z(c)?Y(`working_with_local_repo`):z(l)?Y(`working_with_test_repo`):Y(`signed_in_as_x`,{values:{name:hD.account?.login}})),t=M(()=>z(c)||z(l));eR(o,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{V2(hD.account?.profileURL)}})}var u=L(o,2);MI(u,{});var d=L(u,2);{let e=M(()=>Y(`live_site`));eR(d,{get label(){return z(e)},onclick:()=>{Q2()}})}var f=L(d,2),p=e=>{var t=V9(),n=I(t);{let e=M(()=>Y(`git_repository`)),t=M(()=>!r()?.repository?.treeBaseURL);eR(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{V2(r()?.repository?.treeBaseURL)}})}var i=L(n,2);{let e=M(()=>Y(`cms_config`));eR(i,{get label(){return z(e)},onclick:()=>{X2(`/config`,{transitionType:`forwards`})}})}H(e,t)};W(f,e=>{DO.devModeEnabled&&e(p)});var m=L(f,2);MI(m,{});var h=L(m,2);{let e=M(()=>Y(`settings`));eR(h,{get label(){return z(e)},onclick:()=>{AE.isSmallScreen?X2(`/settings`,{transitionType:`forwards`}):P(s,!0)}})}var g=L(h,2),_=e=>{UAe(e,{get menuButton(){return t.menuButton}})};W(g,e=>{DO.devModeEnabled||e(_)});var v=L(g,2),y=e=>{{let t=M(()=>Y(`sign_in_with_mobile`));eR(e,{get label(){return z(t)},onclick:()=>{mn(P9,!0)}})}};W(v,e=>{i()&&e(y)});var b=L(v,2);FAe(b,{});var x=L(b,2);MI(x,{});var S=L(x,2);{let e=M(()=>Y(`sign_out`));eR(S,{get label(){return z(e)},onclick:async()=>{window.requestAnimationFrame(()=>{d4()})}})}H(e,a)},$$slots:{default:!0}})}xje(L(d,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(s)},set open(e){P(s,e,!0)}}),H(e,u),A(),o()}var V9,Eje,Dje=s((()=>{Z(),J(),X(),$(),IAe(),GAe(),wje(),$2(),F9(),iA(),gD(),f4(),jE(),OO(),H2(),V9=B(`<!> <!>`,1),Eje=B(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1)}));function Oje(e,t){k(t,!0),G(e,jje);let n=()=>j(tA,`$backendName`,r),[r,i]=hn(),a=N(void 0),o=M(()=>n()===`local`),s=M(()=>!!hD.account?.avatarURL);var c=Aje(),l=F(c);{let e=e=>{var t=V(),n=I(t),r=e=>{tI(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{var t=kje();R(()=>K(t,`src`,hD.account?.avatarURL)),H(e,t)},a=e=>{tI(e,{name:`account_circle`})};W(n,e=>{z(o)?e(r):z(s)?e(i,1):e(a,-1)}),H(e,t)},t=e=>{Tje(e,{get menuButton(){return z(a)}})},n=M(()=>!z(o)),r=M(()=>z(o)?Y(`local_workflow.indicator`):void 0),i=M(()=>z(s)?`avatar`:``),c=M(()=>Y(`show_account_menu`));qs(AI(l,{variant:`ghost`,get iconic(){return z(n)},get label(){return z(r)},get class(){return z(i)},popupPosition:`bottom-right`,get"aria-label"(){return z(c)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(a,e,!0),()=>z(a))}O(c),H(e,c),A(),i()}var kje,Aje,jje,Mje=s((()=>{Z(),J(),X(),$(),Dje(),iA(),gD(),kje=B(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),Aje=B(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),jje={hash:`svelte-q0ng4j`,code:`.wrapper.svelte-q0ng4j {display:contents;button.avatar {border-width:0;background-color:transparent;}}.avatar.svelte-q0ng4j {width:32px;height:32px;border-radius:32px;object-fit:cover;}`}}));function Nje(e,t){k(t,!0);let[n,r]=hn(),i=M(()=>pw({visible:!0,type:`entry`}));{let t=e=>{tI(e,{name:`add`})},n=e=>{{let t=M(()=>Y(`create_entry_or_assets`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H9(),r=I(n),a=e=>{var t=H9(),n=I(t);vo(n,17,()=>z(i),e=>e.name,(e,t)=>{let n=M(()=>{let{name:e,label:n,label_singular:r,create:i=!0,limit:a=1/0}=z(t);return{name:e,label:n,labelSingular:r,create:i,limit:a}});{let t=M(()=>z(n).labelSingular||z(n).label||z(n).name),r=M(()=>!z(n).create||iN(z(n).name).length>=z(n).limit);eR(e,{get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{X2(`/collections/${z(n).name}/new`,{transitionType:`forwards`})}})}}),MI(L(n,2),{}),H(e,t)};W(r,e=>{z(i).length&&e(a)});var o=L(r,2);{let e=M(()=>Y(`assets`));eR(o,{get label(){return z(e)},onclick:async()=>{X2(`/assets`,{transitionType:`forwards`}),await nT(100),mn(T2,!0)}})}H(e,n)},$$slots:{default:!0}})}},r=M(()=>Y(`create_entry_or_assets`));AI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:t,popup:n,$$slots:{endIcon:!0,popup:!0}})}A(),r()}var H9,Pje=s((()=>{Z(),J(),X(),$(),rT(),$2(),M2(),Sw(),cN(),H9=B(`<!> <!>`,1)}));function Fje(e,t){k(t,!0),G(e,Lje);{let t=e=>{var t=V(),n=I(t),r=e=>{var t=Ije(),n=F(t);O(t),R(e=>{K(t,`aria-label`,`(${e??``})`),U(n,`v${Xj??``}`)},[()=>Y(`version_x`,{values:{version:Xj}})]),H(e,t)};W(n,e=>{DO.devModeEnabled&&e(r)}),H(e,t)},n=M(()=>Y(`release_notes`));eR(e,{get label(){return z(n)},onclick:()=>{V2(`https://github.com/sveltia/sveltia-cms/releases`)},endIcon:t,$$slots:{endIcon:!0}})}A()}var Ije,Lje,Rje=s((()=>{Z(),J(),X(),$(),Zj(),OO(),H2(),Ije=B(`<span class="version svelte-wmw2gz"> </span>`),Lje={hash:`svelte-wmw2gz`,code:`.version.svelte-wmw2gz {border-radius:4px;padding:0 6px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);font-size:var(--sui-font-size-small);}`}}));function zje(e,t){k(t,!0);{let n=M(()=>Y(`help`));YL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{var r=Vje(),i=I(r);UAe(i,{get menuButton(){return t.menuButton}});var a=L(i,2),o=e=>{var t=Bje(),n=I(t);U9(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=L(n,2);Fje(r,{});var i=L(r,2);U9(i,()=>`announcements`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/announcements`);var a=L(i,2);MI(a,{});var o=L(a,2);U9(o,()=>`report_issue`,()=>`https://github.com/sveltia/sveltia-cms/issues`);var s=L(o,2);U9(s,()=>`share_feedback`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/ideas`);var c=L(s,2);U9(c,()=>`get_help`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/q-a`);var l=L(c,2);U9(l,()=>`donate`,()=>`https://github.com/sponsors/kyoshino`);var u=L(l,2);MI(u,{});var d=L(u,2);U9(d,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`);var f=L(d,2);U9(f,()=>`join_discord`,()=>`https://discord.com/invite/5hwCGqup5b`),H(e,t)};W(a,e=>{DO.devModeEnabled&&e(o)}),H(e,r)},$$slots:{default:!0}})}A()}var U9,Bje,Vje,Hje=s((()=>{Z(),J(),X(),$(),Rje(),GAe(),OO(),H2(),U9=(e,t=D,n=D)=>{{let r=M(()=>Y(t()));eR(e,{get label(){return z(r)},onclick:()=>{V2(n())}})}},Bje=B(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),Vje=B(`<!> <!>`,1)}));function Uje(e,t){k(t,!0),G(e,Gje);let n=N(void 0),r=N(!1);var i=Wje(),a=I(i),o=F(a);{let e=e=>{tI(e,{name:`help`})},t=e=>{zje(e,{get menuButton(){return z(n)}})},r=M(()=>Y(`show_help_menu`));qs(AI(o,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(n,e,!0),()=>z(n))}O(a),LAe(L(a,2),{onClose:()=>{z(n)?.focus()},get open(){return z(r)},set open(e){P(r,e,!0)}}),H(e,i),A()}var Wje,Gje,Kje=s((()=>{Z(),J(),X(),$(),Hje(),HAe(),Wje=B(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),Gje={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`}}));function qje(e,t){k(t,!0);{let t=e=>{tI(e,{name:`notifications`})},n=M(()=>Y(`show_notifications`));bI(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return z(n)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}A()}var Jje=s((()=>{Z(),J(),X(),$()}));function Yje(e,t){k(t,!0),G(e,Zje);let n=()=>j(D4,`$appLogoURL`,i),r=()=>j(bF,`$cmsConfig`,i),[i,a]=hn();var o=V(),s=I(o),c=e=>{{let t=M(()=>Y(`visit_live_site`));bI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{Q2()},children:(e,t)=>{var r=Xje();R(()=>K(r,`src`,n())),H(e,r)},$$slots:{default:!0}})}};W(s,e=>{n()!==T4&&(r()?.logo?.show_in_header??!0)&&e(c)}),H(e,o),A(),a()}var Xje,Zje,Qje=s((()=>{Z(),J(),X(),$(),M4(),$2(),TF(),Xje=B(`<img alt="" class="logo svelte-15c9hhi"/>`),Zje={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`}}));function $je(e,t){k(t,!0),G(e,nMe);let n=()=>j(U2,`$hasOverlay`,r),[r,i]=hn();var a=tMe(),o=F(a);{let e=M(()=>Y(`global`));f0(o,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=eMe(),r=I(n),i=F(r);Yje(i,{}),OAe(L(i,2),{}),O(r);var a=L(r,2);$6(a,{});var o=L(a,2),s=F(o);zke(s,{});var c=L(s,2);Nje(c,{});var l=L(c,2);qje(l,{});var u=L(l,2),d=e=>{Uje(e,{})};W(u,e=>{DO.devModeEnabled&&e(d)}),Oje(L(u,2),{}),O(o),H(e,n)},$$slots:{default:!0}})}O(a),R(()=>a.inert=n()),H(e,a),A(),i()}var eMe,tMe,nMe,rMe=s((()=>{Z(),J(),X(),$(),Mje(),Pje(),Kje(),Jje(),jAe(),Vke(),e8(),Qje(),$2(),OO(),eMe=B(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),tMe=B(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),nMe={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;&[inert] {.sui.search-bar {
          /* Disable the keyboard shortcut for the search bar */display:none !important;}}& > .sui.toolbar {
        @media (width < 768px) {padding:0 4px;
        }.buttons {flex:auto;display:flex;align-items:center;width:50%;&:last-child {justify-content:flex-end;}}.sui.search-bar {flex:none;width:640px;max-width:50%;

          @media (width < 768px) {flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;max-width:none;
          }}}}`}}));function iMe(e,t){k(t,!0),G(e,cMe);{let t=e=>{w8(e,{primaryToolbar:e=>{f0(e,{variant:`primary`,children:(e,t)=>{var n=aMe(),r=I(n),i=F(r,!0);O(r),PI(L(r,2),{flex:!0}),R(e=>U(i,e),[()=>Y(`menu`)]),H(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=sMe(),n=F(t),r=F(n),i=F(r,!0);O(r),Tje(L(r,2),{}),O(n);var a=L(n,2),o=e=>{var t=oMe(),n=F(t),r=F(n,!0);O(n),zje(L(n,2),{}),O(t),R(e=>U(r,e),[()=>Y(`help`)]),H(e,t)};W(a,e=>{DO.devModeEnabled&&e(o)}),O(t),R(e=>U(i,e),[()=>Y(`account`)]),H(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},n=M(()=>Y(`menu`));E8(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}A()}var aMe,oMe,sMe,cMe,lMe=s((()=>{Z(),J(),X(),$(),T8(),D8(),Dje(),Hje(),OO(),aMe=B(`<h2 role="none"> </h2> <!>`,1),oMe=B(`<section><h3 class="svelte-16cq5v7"> </h3> <!></section>`),sMe=B(`<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>`),cMe={hash:`svelte-16cq5v7`,code:`.wrapper.svelte-16cq5v7 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--sui-menu-border-radius: 0;--sui-menu-padding: 8px 0;}h3.svelte-16cq5v7 {padding:8px 16px;background-color:var(--sui-tertiary-background-color);color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-normal);}`}})),uMe=c(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),W9=c((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),G9=c((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),dMe=c(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),fMe=c(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),pMe=c((e=>{var t=W9().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),mMe=c((e=>{var t=W9().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),hMe=c((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),gMe=c((e=>{var t=G9(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),_Me=c((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),vMe=c((e=>{var t=_Me();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),yMe=c(((e,t)=>{var n=vMe();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),bMe=c((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),xMe=c((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),K9=c((e=>{var t=bMe(),n=xMe();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),SMe=c((e=>{var t=W9(),n=gMe(),r=G9(),i=K9(),a=bMe(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),CMe=c((e=>{var t=W9(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),wMe=c(((e,t)=>{var n=K9();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),TMe=c(((e,t)=>{var n=K9(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),EMe=c(((e,t)=>{var n=K9();function r(e){this.mode=n.BYTE,typeof e==`string`?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),DMe=c(((e,t)=>{var n=K9(),r=W9();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),OMe=c(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),kMe=c((e=>{var t=K9(),n=wMe(),r=TMe(),i=EMe(),a=DMe(),o=xMe(),s=W9(),c=OMe();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
 Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),AMe=c((e=>{var t=W9(),n=G9(),r=dMe(),i=fMe(),a=pMe(),o=mMe(),s=hMe(),c=gMe(),l=yMe(),u=SMe(),d=CMe(),f=K9(),p=kMe();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+c+`.
`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),jMe=c((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||={};let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),MMe=c((e=>{var t=jMe();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),NMe=c((e=>{var t=jMe();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
`;return typeof a==`function`&&a(null,p),p}})),PMe=c((e=>{var t=uMe(),n=AMe(),r=MMe(),i=NMe();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}));function FMe(e,t){k(t,!0),G(e,RMe);let n=()=>j(P9,`$showMobileSignInDialog`,r),[r,i]=hn(),a=N(void 0);ri(()=>{if(z(a)&&n()){let{origin:e,pathname:t}=window.location,n=At(DO),r=`${e}${t}#/signin/${btoa(JSON.stringify({token:hD.account?.token,prefs:n}))}`;(0,IMe.toCanvas)(z(a),r),DO.devModeEnabled&&console.info(`Mobile sign-in URL:`,r)}});{let t=M(()=>Y(`sign_in_with_mobile`));qI(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,get open(){return vn(),n()},set open(e){mn(P9,e)},children:(e,t)=>{var n=LMe(),r=I(n),i=F(r,!0);O(r),qs(L(r,2),e=>P(a,e),()=>z(a)),R(e=>U(i,e),[()=>Y(`sign_in_with_mobile_instruction`)]),H(e,n)},$$slots:{default:!0}})}A(),i()}var IMe,LMe,RMe,zMe=s((()=>{Z(),J(),X(),$(),IMe=PMe(),F9(),gD(),OO(),LMe=B(`<div> </div> <canvas class="svelte-1eeac91"></canvas>`,1),RMe={hash:`svelte-1eeac91`,code:`canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}`}}));function BMe(e,t){k(t,!0);let n=()=>j(Z6,`$searchTerms`,i),r=()=>j(X6,`$searchMode`,i),[i,a]=hn(),o=/^\/search\/(?<terms>.+)$/,s=()=>{let{path:e}=K2(),{terms:t}=e.match(o)?.groups??{};t&&t!==n()&&mn(Z6,t),mn(X6,r()??`contents`)};lc(()=>{s(),document.querySelector(`.sui.search-bar input`)?.focus()}),wa(`hashchange`,Kr,()=>{s()});{let t=e=>{j8(e,{})},r=M(()=>Y(`search_results_for_x`,{values:{terms:n()}}));E8(e,{get"aria-label"(){return z(r)},main:t,$$slots:{main:!0}})}A(),a()}var VMe=s((()=>{Z(),J(),X(),dc(),D8(),M8(),$2(),Q6()}));function HMe(e,t){k(t,!0),G(e,GMe);let n=/^\/settings(?:\/(?<panelKey>.+))?$/,r=N(void 0),i=()=>{let{path:e}=K2(),t=e.match(n);if(!t?.groups)return;let{panelKey:i}=t.groups;P(r,i?dn(B9).find(e=>e.key===i):void 0,!0)};lc(()=>{i()}),wa(`hashchange`,Kr,e=>{Y2(e,i,n)});{let t=e=>{w8(e,{primaryToolbar:e=>{f0(e,{variant:`primary`,children:(e,t)=>{var n=UMe(),i=I(n),a=e=>{var t=q9(),n=I(t);D3(n,{onclick:()=>Z2(`/settings`)});var i=L(n,2),a=F(i,!0);O(i),R(e=>U(a,e),[()=>Y(`prefs.${z(r).key}.title`)]),H(e,t)},o=e=>{var t=q9(),n=I(t);D3(n,{onclick:()=>Z2(`/menu`)});var r=L(n,2),i=F(r,!0);O(r),R(e=>U(i,e),[()=>Y(`settings`)]),H(e,t)};W(i,e=>{z(r)?e(a):e(o,-1)}),PI(L(i,2),{flex:!0}),H(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=WMe(),n=F(t),i=e=>{_je(e,{get Panel(){return z(r).component}})},a=e=>{{let t=M(()=>Y(`settings`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),17,()=>dn(B9),({key:e,icon:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon;{let t=e=>{tI(e,{get name(){return r()}})},i=M(()=>Y(`prefs.${n()}.title`));eR(e,{get label(){return z(i)},onclick:()=>X2(`/settings/${n()}`,{transitionType:`forwards`}),startIcon:t,$$slots:{startIcon:!0}})}}),H(e,n)},$$slots:{default:!0}})}};W(n,e=>{z(r)?e(i):e(a,-1)}),O(t),H(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},n=M(()=>Y(`settings`));E8(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}A()}var q9,UMe,WMe,GMe,KMe=s((()=>{Z(),J(),X(),$(),dc(),Zp(),T8(),D8(),O3(),gje(),bje(),$2(),q9=B(`<!> <h2 role="none"> </h2>`,1),UMe=B(`<!> <!>`,1),WMe=B(`<div role="none" class="wrapper svelte-116bna3"><!></div>`),GMe={hash:`svelte-116bna3`,code:`.wrapper.svelte-116bna3 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--sui-menu-border-radius: 0;--sui-menu-padding: 8px 0;& > .container {display:block;padding:16px;}}`}}));function qMe(e,t){k(t,!0),G(e,QMe);{let t=e=>{var t=ZMe(),n=F(t);n2(n,{class:`column`,"aria-labelledby":`draft-column-title`,children:(e,t)=>{var n=JMe(),r=F(n),i=F(r,!0);O(r),O(n),R(e=>U(i,e),[()=>Y(`status.drafts`)]),H(e,n)},$$slots:{default:!0}});var r=L(n,2);n2(r,{class:`column`,"aria-labelledby":`review-column-title`,children:(e,t)=>{var n=YMe(),r=F(n),i=F(r,!0);O(r),O(n),R(e=>U(i,e),[()=>Y(`status.in_review`)]),H(e,n)},$$slots:{default:!0}}),n2(L(r,2),{class:`column`,"aria-labelledby":`ready-column-title`,children:(e,t)=>{var n=XMe(),r=F(n),i=F(r,!0);O(r),O(n),R(e=>U(i,e),[()=>Y(`status.ready`)]),H(e,n)},$$slots:{default:!0}}),O(t),H(e,t)},n=M(()=>Y(`editorial_workflow`));E8(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}A()}var JMe,YMe,XMe,ZMe,QMe,$Me=s((()=>{Z(),J(),X(),$(),D8(),JMe=B(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="draft-column-title" class="svelte-ljqw9n"> </h3></header>`),YMe=B(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="review-column-title" class="svelte-ljqw9n"> </h3></header>`),XMe=B(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="ready-column-title" class="svelte-ljqw9n"> </h3></header>`),ZMe=B(`<div role="none" class="columns svelte-ljqw9n"><!> <!> <!></div>`),QMe={hash:`svelte-ljqw9n`,code:`.columns.svelte-ljqw9n {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color); /* same as toolbar */

    @media (width < 768px) {flex-direction:column;gap:0;
    }.column {flex:auto;width:calc(100% / 3);background-color:var(--sui-primary-background-color);

        @media (width < 768px) {width:100%;height:calc(100% / 3);
        }}header:where(.svelte-ljqw9n) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);h3:where(.svelte-ljqw9n) {font-size:var(--sui-font-size-x-large);}}}`}}));function eNe(e,t){k(t,!0),G(e,rNe);let n=()=>j(X6,`$searchMode`,a),r=()=>j(W2,`$selectedPageName`,a),i=()=>j(N9,`$canShowMobileSignInDialog`,a),[a,o]=hn(),s=M(()=>({collections:mAe,assets:Gge,search:AE.isSmallScreen?BMe:n()?{contents:mAe,assets:Gge}[n()]:BMe,workflow:qMe,config:u_e,menu:iMe,settings:HMe})),c=M(()=>z(s)[r()]),l=()=>{let{path:e}=K2(),{pageName:t}=e.match(`^\\/(?<pageName>${Object.keys(z(s)).join(`|`)})\\b`)?.groups??{};t?r()!==t&&mn(W2,t):window.location.replace(`#/collections`),t===`collections`?mn(X6,`contents`):t===`assets`?mn(X6,`assets`):t!==`search`&&mn(X6,null)};lc(()=>{l()});var u={selectPage:l},d=nNe();wa(`hashchange`,Kr,()=>{l()});var f=I(d),p=e=>{var t=tNe(),n=I(t);wAe(n,{}),FMe(L(n,2),{}),H(e,t)};W(f,e=>{i()&&e(p)});var m=L(f,2),h=e=>{$je(e,{})};W(m,e=>{AE.isSmallScreen||e(h)});var g=L(m,2);Mo(F(g),()=>z(c),(e,t)=>{t(e,{})}),O(g);var _=L(g,2),v=e=>{MAe(e,{})};W(_,e=>{AE.isSmallScreen&&e(v)});var y=L(_,2);c_e(y,{});var b=L(y,2);$ge(b,{});var x=L(b,2);yAe(x,{});var S=L(x,2);SAe(S,{}),Yge(L(S,2),{}),H(e,d);var C=A(u);return o(),C}var tNe,nNe,rNe,iNe=s((()=>{Z(),J(),dc(),Jge(),Qge(),s_e(),l_e(),p_e(),gAe(),xAe(),CAe(),DAe(),PAe(),rMe(),lMe(),zMe(),VMe(),KMe(),$Me(),$2(),F9(),Q6(),jE(),tNe=B(`<!> <!>`,1),nNe=B(`<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!> <!>`,1),rNe={hash:`svelte-1a6c577`,code:`.page-root.svelte-1a6c577 {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;view-transition-name:page-root;}`}}));function aNe(e,t){k(t,!0),G(e,fNe);let n=()=>j(dC,`$dataLoaded`,d),r=()=>j(CF,`$cmsConfigLoaded`,d),i=()=>j(E4,`$appTitle`,d),a=()=>j(D4,`$appLogoURL`,d),o=()=>j(O4,`$appLogoType`,d),s=()=>j(A4,`$appIconURLs`,d),c=()=>j(j4,`$appManifestURL`,d),l=()=>j(nA,`$backend`,d),u=()=>j(G2,`$announcedPageStatus`,d),[d,f]=hn(),p=N(!1);ai(()=>{hhe(),P(p,!0)}),ai(()=>{lie()}),ri(()=>{joe(t.config)}),lc(()=>{let e=document.querySelector(`#nc-root`);e&&window.getComputedStyle(e).position===`static`&&window.requestAnimationFrame(()=>{let{top:t,height:n}=e.getBoundingClientRect();n?e.style.position=`relative`:(e.style.position=`fixed`,e.style.inset=`${t}px 0 0 0`)})});let m=N(!1);ri(()=>{n()&&hD.account?J2(`forwards`,()=>{P(m,!0)}):J2(`backwards`,()=>{P(m,!1)})}),Xo(`7y4msj`,e=>{var t=uNe(),n=L(I(t),4),l=e=>{var t=cNe(),n=I(t),r=L(n,2),l=e=>{var t=oNe();R(()=>K(t,`href`,s().large)),H(e,t)};W(r,e=>{s()&&e(l)});var u=L(r,2),d=e=>{var t=sNe();R(()=>K(t,`href`,c())),H(e,t)};W(u,e=>{c()&&e(d)}),R(()=>{K(n,`href`,a()),K(n,`type`,o())}),di(()=>{qr.title=i()??``}),H(e,t)};W(n,e=>{r()&&e(l)});var u=L(n,2),d=e=>{var t=lNe();R(()=>K(t,`href`,`${vF??``}/admin/config.yml`)),H(e,t)};W(u,e=>{vF&&e(d)}),H(e,t)}),wa(`mousedown`,qr.body,e=>{if(e.target?.matches(`a`)){let t=e.target,{origin:n,pathname:r}=t;(n!==window.location.origin||r!==window.location.pathname)&&(t.rel=`noopener noreferrer`,t.target=`_blank`)}}),Afe(e,{children:(e,t)=>{var r=V(),i=I(r),a=e=>{var t=dNe(),r=I(t),i=F(r);Jfe(i,{});var a=L(i,2),o=e=>{Kfe(e,{})};W(a,e=>{l()&&e(o)});var s=L(a,2),c=F(s),d=e=>{eNe(e,{})},f=e=>{Wfe(e,{})};W(c,e=>{hD.account&&n()&&z(m)?e(d):e(f,-1)}),O(s),O(r);var p=L(r,2),h=F(p,!0);O(p),R(()=>U(h,u())),H(e,t)};W(i,e=>{z(p)&&e(a)}),H(e,r)},$$slots:{default:!0}}),A(),f()}var oNe,sNe,cNe,lNe,uNe,dNe,fNe,pNe=s((()=>{Z(),J(),$(),dc(),Gfe(),qfe(),Yfe(),iNe(),M4(),n8(),$2(),iA(),TF(),yC(),gD(),jE(),oNe=B(`<link rel="apple-touch-icon"/>`),sNe=B(`<link rel="manifest"/>`),cNe=B(`<link rel="icon"/> <!> <!>`,1),lNe=B(`<link type="application/yaml" rel="cms-config-url"/>`),uNe=B(`<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>`,1),dNe=B(`<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!></div></div> <div role="status" class="svelte-7y4msj"> </div>`,1),fNe={hash:`svelte-7y4msj`,code:`
  @view-transition {navigation:auto;
  }

  @keyframes svelte-7y4msj-slide-out-to-left {
    from {
      transform: translateX(0);
      filter: brightness(1);
    }

    to {
      transform: translateX(-20%);
      filter: brightness(0.5);
    }
  }

  @keyframes svelte-7y4msj-slide-out-to-right {
    from {
      transform: translateX(0);
      opacity: 1;
    }

    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  @keyframes svelte-7y4msj-slide-in-from-right {
    from {
      transform: translateX(100%);
      opacity: 0;
    }

    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes svelte-7y4msj-slide-in-from-left {
    from {
      transform: translateX(-20%);
      filter: brightness(0.5);
    }

    to {
      transform: translateX(0);
      filter: brightness(1);
    }
  }

  /* RTL-specific keyframes that mirror the depth effect */
  @keyframes svelte-7y4msj-slide-out-to-left-rtl {
    from {
      transform: translateX(0);
      opacity: 1;
    }

    to {
      transform: translateX(-100%);
      opacity: 0;
    }
  }

  @keyframes svelte-7y4msj-slide-out-to-right-rtl {
    from {
      transform: translateX(0);
      filter: brightness(1);
    }

    to {
      transform: translateX(20%);
      filter: brightness(0.5);
    }
  }

  @keyframes svelte-7y4msj-slide-in-from-right-rtl {
    from {
      transform: translateX(20%);
      filter: brightness(0.5);
    }

    to {
      transform: translateX(0);
      filter: brightness(1);
    }
  }

  @keyframes svelte-7y4msj-slide-in-from-left-rtl {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }

    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes svelte-7y4msj-fade-out {
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }

  @keyframes svelte-7y4msj-fade-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }html:active-view-transition-type(forwards) {
      @media (width < 768px) {&::view-transition-old(page-root) {z-index:999;
          animation: 100ms ease-in both svelte-7y4msj-slide-out-to-left;

          @media (prefers-reduced-motion) {
            animation: none;
          }}&::view-transition-new(page-root) {
          @media (width < 768px) {z-index:1000;
            animation: 100ms ease-in both svelte-7y4msj-slide-in-from-right;
          }

          @media (prefers-reduced-motion) {
            animation: none;
          }}&:dir(rtl) {&::view-transition-old(page-root) {
            animation: 100ms ease-in both svelte-7y4msj-slide-out-to-right-rtl;}&::view-transition-new(page-root) {
            animation: 100ms ease-in both svelte-7y4msj-slide-in-from-left-rtl;}}
      }}html:active-view-transition-type(backwards) {
      @media (width < 768px) {&::view-transition-old(page-root) {z-index:1000;
          animation: 100ms ease-in both svelte-7y4msj-slide-out-to-right;

          @media (prefers-reduced-motion) {
            animation: none;
          }}&::view-transition-new(page-root) {z-index:999;
          animation: 100ms ease-in both svelte-7y4msj-slide-in-from-left;

          @media (prefers-reduced-motion) {
            animation: none;
          }}&:dir(rtl) {&::view-transition-old(page-root) {
            animation: 100ms ease-in both svelte-7y4msj-slide-out-to-left-rtl;}&::view-transition-new(page-root) {
            animation: 100ms ease-in both svelte-7y4msj-slide-in-from-right-rtl;}}
      }}html:active-view-transition-type(unknown) {&::view-transition-old(page-main) {
        animation: 100ms ease-in both svelte-7y4msj-fade-out;

        @media (prefers-reduced-motion) {
          animation: none;
        }}&::view-transition-new(page-main) {
        animation: 100ms ease-in both svelte-7y4msj-fade-in;

        @media (prefers-reduced-motion) {
          animation: none;
        }}}body:not(:has(#nc-root)) {overflow:hidden;}#nc-root > .sui.app-shell {position:absolute;}.outer.svelte-7y4msj {display:flex;flex-direction:column;position:absolute;inset:0;overflow:hidden;}.main.svelte-7y4msj {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-secondary-background-color);}[role='status'].svelte-7y4msj {position:absolute;z-index:-1;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;}`}})),mNe,J9,hNe,gNe,Y9,X9,_Ne,vNe,yNe,bNe,xNe,Z9,Q9,$9;return s((()=>{p(),mNe=u(v(),1),J9=h(),dc(),eI(),yp(),$N(),pNe(),hNe=[`getBackend`,`getCustomFormats`,`getCustomFormatsExtensions`,`getCustomFormatsFormatters`,`getEditorComponents`,`getEventListeners`,`getLocale`,`getMediaLibrary`,`getPreviewStyles`,`getPreviewTemplate`,`getRemarkPlugins`,`getWidget`,`getWidgetValueSerializer`,`getWidgets`,`invokeEvent`,`moment`,`registerBackend`,`registerMediaLibrary`,`registerWidgetValueSerializer`,`removeEventListener`,`resolveWidget`,`registerLocale`,`registerRemarkPlugin`],gNe=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,Y9=!1,X9=async({config:e}={})=>{if(e!==void 0&&!d(e))throw TypeError("The `config` option for `CMS.init()` must be an object");Y9||(Y9=!0,document.readyState===`loading`&&!document.querySelector(`#nc-root`)&&await new Promise(e=>{window.addEventListener(`DOMContentLoaded`,()=>e(void 0),{once:!0})}),Ha(aNe,{target:document.querySelector(`#nc-root`)??document.body,props:{config:e}}))},_Ne=(e,t,{fromFile:n,toFile:r}={})=>{if(!YN(e))throw TypeError("The `name` option for `CMS.registerCustomFormat()` must be a non-empty string");if(!YN(t))throw TypeError("The `extension` option for `CMS.registerCustomFormat()` must be a non-empty string");if(typeof n!=`function`&&typeof r!=`function`)throw Error("At least one of `fromFile` or `toFile` must be provided to `CMS.registerCustomFormat()`");if(n!==void 0&&typeof n!=`function`)throw TypeError("The `fromFile` option for `CMS.registerCustomFormat()` must be a function");if(r!==void 0&&typeof r!=`function`)throw TypeError("The `toFile` option for `CMS.registerCustomFormat()` must be a function");hp.set(e,{extension:t,parser:n,formatter:r})},vNe=e=>{if(!e||typeof e!=`object`)throw TypeError("The `definition` option for `CMS.registerEditorComponent()` must be an object");if(!YN(e.id))throw TypeError("The `definition.id` must be a non-empty string");if(!YN(e.label))throw TypeError("The `definition.label` must be a non-empty string");if(typeof e.pattern!=`object`||!(e.pattern instanceof RegExp))throw TypeError("The `definition.pattern` must be a RegExp");if(typeof e.toBlock!=`function`)throw TypeError("The `definition.toBlock` must be a function");if(typeof e.toPreview!=`function`)throw TypeError("The `definition.toPreview` must be a function");if(!Array.isArray(e.fields))throw TypeError("The `definition.fields` must be an array");pp.set(e.id,e)},yNe=e=>{if(!d(e))throw TypeError(`The event listener must be an object`);let{name:t,handler:n}=e;if(typeof t!=`string`||typeof n!=`function`)throw TypeError("The event listener must have a string `name` property and a function `handler` property");if(!QF.includes(t))throw RangeError(`Unsupported event listener name "${t}". Supported names are: ${QF.join(`, `)}`);vp.add(e)},bNe=(e,{raw:t=!1}={})=>{if(!YN(e))throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a non-empty string");if(typeof t!=`boolean`)throw TypeError("The `raw` option for `CMS.registerPreviewStyle()` must be a boolean");let n=window.location.href;if(!t&&!URL.canParse(e,n))throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a valid URL or file path when `raw` is false");let r=t?URL.createObjectURL(new Blob([e],{type:`text/css`})):new URL(e,n).href;gp.add(r)},xNe=(e,t)=>{if(!YN(e))throw TypeError("The `name` option for `CMS.registerPreviewTemplate()` must be a non-empty string");if(typeof t!=`function`)throw TypeError("The `component` option for `CMS.registerPreviewTemplate()` must be a React component");_p.set(e,t)},Z9=(e,t,n,r)=>{if(console.warn(`Custom field types (widgets) are not yet supported in Sveltia CMS.`),!YN(e))throw TypeError("The `name` option for `CMS.registerFieldType()` must be a non-empty string");if(typeof t!=`function`&&typeof t!=`string`)throw TypeError("The `control` option for `CMS.registerFieldType()` must be a React component or a string");if(n!==void 0&&typeof n!=`function`)throw TypeError("The `preview` option for `CMS.registerFieldType()` must be a React component");if(r!==void 0&&!d(r))throw TypeError("The `schema` option for `CMS.registerFieldType()` must be an object");mp.set(e,{control:t,preview:n,schema:r})},Q9=new Proxy({init:X9,registerCustomFormat:_Ne,registerEditorComponent:vNe,registerEventListener:yNe,registerFieldType:Z9,registerPreviewStyle:bNe,registerPreviewTemplate:xNe,registerWidget:Z9},{get:(e,t)=>{if(t in e)return e[t];let n=``;if(hNe.includes(t)&&(n=`CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it.`),n)return console.warn(`${n} See %s for compatibility information.`,t,gNe),()=>void 0}}),window.CMS=Q9,window.initCMS=X9,window.createClass=mNe.default,window.createElement=J9.createElement,window.h=J9.createElement,window.rf=J9.Fragment,document.querySelector(`link[rel="stylesheet"][href$="/sveltia-cms.css"]`)&&console.warn("Sveltia CMS does not require a stylesheet. Remove the invalid `<link>` tag referencing `sveltia-cms.css` to avoid unnecessary network requests."),$9=document.querySelector(`script[src$="/sveltia-cms.js"]`),$9?.type===`module`&&console.warn('The Sveltia CMS script is not an ES module. Remove the "type="module" attribute from the `<script>` tag to avoid unexpected behavior when using the JavaScript API.'),document.querySelector(`script[src="https://identity.netlify.com/v1/netlify-identity-widget.js"]`)&&console.warn(`Netlify Identity has been deprecated. The widget is not supported in Sveltia CMS.`),!window.CMS_MANUAL_INIT&&(document.currentScript||$9)&&X9()}))(),e.default=Q9,e.init=X9,e})({});
//# sourceMappingURL=sveltia-cms.js.map