1272 lines
1.9 MiB
Plaintext
1272 lines
1.9 MiB
Plaintext
(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||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),d=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 ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?re(``+e.key):t.toString(36)}function oe(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 se(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,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(ne(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+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+ae(a,u),c+=se(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+ae(a,u++),c+=se(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return se(oe(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 ce(e,t,n){if(e==null)return e;var r=[],i=0;return se(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function le(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 E=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:ce,forEach:function(e,t,n){ce(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ce(e,function(){t++}),t},toArray:function(e){return ce(e,function(e){return e})||[]},only:function(e){if(!ne(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 ee(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 ee(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ne,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:le}},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,E)}catch(e){E(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`})),f=c(((e,t)=>{t.exports=d()})),p=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}})),m=c(((e,t)=>{var n=p(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps=e.getDefaultProps?g(e.getDefaultProps,t):t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),h=c(((e,t)=>{var n=f(),r=m();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)})),g,_;function v(){return(v=s((()=>{g=e=>typeof e==`object`&&!!e&&!Array.isArray(e),_=e=>JSON.parse(JSON.stringify(e))})))()}function y(e){return typeof e==`function`}function b(e){return typeof e?.then==`function`}function x(e){for(var t=0;t<e.length;t++)e[t]()}function S(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function C(e,t,n=!1){return e===void 0?n?t():t:e}function w(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 T,ee,te,ne,re,ie,ae,oe,se,ce,le,E;function ue(){return(ue=s((()=>{T=Array.isArray,ee=Array.prototype.indexOf,te=Array.prototype.includes,ne=Array.from,re=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=Object.getOwnPropertyDescriptors,oe=Object.prototype,se=Array.prototype,ce=Object.getPrototypeOf,le=Object.isExtensible,E=()=>{}})))()}var de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le;function Re(){return(Re=s((()=>{de=1<<24,fe=1024,pe=2048,me=4096,he=8192,ge=16384,_e=32768,ve=1<<25,ye=65536,be=1<<18,xe=1<<19,Se=1<<20,Ce=1<<25,we=65536,Te=1<<21,Ee=1<<22,De=1<<23,Oe=Symbol(`$state`),ke=Symbol(`legacy props`),Ae=Symbol(``),je=Symbol(`attributes`),Me=Symbol(`class`),Ne=Symbol(`style`),Pe=Symbol(`text`),Fe=Symbol(`form reset`),Ie=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Le=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)})))()}function ze(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Be(){return(Be=s((()=>{})))()}function Ve(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function He(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ue(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function We(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ge(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ke(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function qe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Je(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ye(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Xe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ze(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Qe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function $e(){return($e=s((()=>{Be()})))()}var et,tt,nt,rt,it;function at(){return(at=s((()=>{et={},tt=Symbol(`uninitialized`),nt=`http://www.w3.org/1999/xhtml`,rt=`http://www.w3.org/2000/svg`,it=`http://www.w3.org/1998/Math/MathML`})))()}function ot(){console.warn(`https://svelte.dev/e/derived_inert`)}function st(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ct(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function lt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}function ut(){return(ut=s((()=>{})))()}function dt(e){_t=e}function ft(e){if(e===null)throw st(),et;return vt=e}function pt(){return ft(Fr(vt))}function D(e){if(_t){if(Fr(vt)!==null)throw st(),et;vt=e}}function mt(e=1){if(_t){for(var t=e,n=vt;t--;)n=Fr(n);vt=n}}function ht(e=!0){for(var t=0,n=vt;;){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=Fr(n);e&&n.remove(),n=i}}function gt(e){if(!e||e.nodeType!==8)throw st(),et;return e.data}var _t,vt;function yt(){return(yt=s((()=>{Re(),at(),ut(),Gr(),_t=!1})))()}function bt(e){return e===this.v}function xt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function St(e){return!xt(e,this.v)}var Ct,wt;function Tt(){return(Tt=s((()=>{Ct=!1,wt=!1})))()}function Et(){return(Et=s((()=>{})))()}function Dt(e,t=!1,n=!1){return Ot(e,new Map,``,kt,null,n)}function Ot(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(T(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]=Ot(l,t,n,r,null,a))}return s}if(ce(e)===oe){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=Ot(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return Ot(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var kt;function At(){return(At=s((()=>{Et(),ue(),kt=[]})))()}function jt(){return(jt=s((()=>{At(),Re(),yi(),Zi()})))()}function Mt(){return(Mt=s((()=>{ue(),Be()})))()}function Nt(e){Bt=e}function Pt(e){return Rt(`getContext`).get(e)}function Ft(e,t){let n=Rt(`setContext`);if(Ct){var r=Ui.f;!Vi&&r&32&&!Bt.i||Je()}return n.set(e,t),t}function It(){return Rt(`getAllContexts`)}function O(e,t=!1,n){Bt={p:Bt,i:!1,c:null,e:null,s:e,x:null,r:Ui,l:wt&&!t?{s:null,u:null,$:[]}:null}}function k(e){var t=Bt,n=t.e;if(n!==null){t.e=null;for(var r of n)Qr(r)}return e!==void 0&&(t.x=e),t.i=!0,Bt=t.p,e??{}}function Lt(){return!wt||Bt!==null&&Bt.l===null}function Rt(e){return Bt===null&&ze(e),Bt.c??=new Map(zt(Bt)||void 0)}function zt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Bt;function Vt(){return(Vt=s((()=>{$e(),Zi(),yi(),Tt(),Re(),Bt=null})))()}function Ht(){var e=Gt;Gt=[],x(e)}function Ut(e){if(Gt.length===0&&!lr){var t=Gt;queueMicrotask(()=>{t===Gt&&Ht()})}Gt.push(e)}function Wt(){for(;Gt.length>0;)Ht()}var Gt;function Kt(){return(Kt=s((()=>{ue(),_r(),Gt=[]})))()}function qt(e){var t=Ui;if(t===null)return Vi.f|=De,e;if(!(t.f&32768)&&!(t.f&4))throw e;Jt(e,t)}function Jt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function Yt(){return(Yt=s((()=>{at(),Gr(),Re(),ue(),Zi()})))()}function Xt(e,t){e.f=e.f&Qt|t}function Zt(e){e.f&512||e.deps===null?Xt(e,fe):Xt(e,me)}var Qt;function $t(){return($t=s((()=>{Re(),Qt=~(pe|me|fe)})))()}function en(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=we,en(t.deps))}function tn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),en(e.deps),Xt(e,fe)}function nn(){return(nn=s((()=>{Re(),$t()})))()}function rn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),E;let r=Ri(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}function an(){return(an=s((()=>{Zi(),ue()})))()}function on(e,t){return{subscribe:sn(e,t).subscribe}}function sn(e,t=E){let n=null,r=new Set;function i(t){if(xt(e,t)&&(e=t,n)){let t=!ln.length;for(let t of r)t[1](),ln.push(t,e);if(t){for(let e=0;e<ln.length;e+=2)ln[e][0](ln[e+1]);ln.length=0}}}function a(t){i(t(e))}function o(o,s=E){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||E),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function cn(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 on(n,(e,n)=>{let o=!1,s=[],c=0,l=E,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:E},d=i.map((e,t)=>rn(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){x(d),l(),o=!1}})}function A(e){let t;return rn(e,e=>t=e)(),t}var ln;function un(){return(un=s((()=>{ue(),an(),ln=[]})))()}function j(e,t,n){let r=n[t]??={store:null,source:yr(void 0),unsubscribe:E};if(r.store!==e&&!(yn in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=E;else{var i=!0;r.unsubscribe=rn(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}}return e&&yn in n?A(e):z(r.source)}function dn(e,t){return pn(e,t),t}function fn(){let e={};function t(){Xr(()=>{for(var t in e)e[t].unsubscribe();re(e,yn,{enumerable:!1,value:!0})})}return[e,t]}function pn(e,t){_n=!0;try{e.set(t)}finally{_n=!1}}function mn(e,t,n){return pn(e,n),t}function hn(){vn=!0}function gn(e){var t=vn;try{return vn=!1,[e(),vn]}finally{vn=t}}var _n,vn,yn;function bn(){return(bn=s((()=>{an(),un(),ue(),Zi(),yi(),Er(),_n=!1,vn=!1,yn=Symbol(`unmounted`)})))()}function xn(){return(xn=s((()=>{Re(),At(),Zi()})))()}function Sn(e,t){if(t){let t=document.body;e.autofocus=!0,Ut(()=>{document.activeElement===t&&e.focus()})}}function Cn(e){_t&&Pr(e)!==null&&Ir(e)}function wn(){Tn||(Tn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Fe]?.()})},{capture:!0}))}var Tn;function En(){return(En=s((()=>{yt(),Gr(),Kt(),Re(),Tn=!1})))()}function Dn(e){var t=Vi,n=Ui;Ci(null),wi(null);try{return e()}finally{Ci(t),wi(n)}}function On(e,t,n,r=n){e.addEventListener(t,()=>Dn(n));let i=e[Fe];i?e[Fe]=()=>{i(),r(!0)}:e[Fe]=()=>r(!0),wn()}function kn(){return(kn=s((()=>{yi(),Zi(),Re(),En()})))()}function An(e){let t=0,n=vr(0),r;return()=>{Yr()&&(z(n),ri(()=>(t===0&&(r=Ri(()=>e(()=>xr(n)))),t+=1,()=>{Ut(()=>{--t,t===0&&(r?.(),r=void 0,xr(n))})})))}}function jn(){return(jn=s((()=>{Zi(),yi(),Er(),jt(),Kt()})))()}function Mn(e,t,n,r){new Pn(e,t,n,r)}var Nn,Pn;function Fn(){return(Fn=s((()=>{Re(),at(),Vt(),Yt(),yi(),Zi(),yt(),Kt(),$e(),ut(),_r(),Er(),jt(),jn(),Gr(),nn(),Nn=ye|xe,Pn=class{parent;is_pending=!1;transform_error;#e;#t=_t?vt: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=An(()=>(this.#m=vr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Ui;t.b=this,t.f|=128,n(e)},this.parent=Ui.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=ai(()=>{if(_t){let e=this.#t;pt();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},Nn),_t&&(this.#e=vt)}#g(){try{this.#a=si(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Ut(r),t&&(this.#s=si(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){lt();return}t=!0,n&&Qe(),this.#s!==null&&mi(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Jt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=si(()=>e(this.#e)),Ut(()=>{var e=this.#c=document.createDocumentFragment(),t=Nr();e.append(t),this.#a=this.#S(()=>si(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,mi(this.#o,()=>{this.#o=null}),this.#x(ar))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=si(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();vi(this.#a,e);let t=this.#n.pending;this.#o=si(()=>t(this.#e))}else this.#x(ar)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){tn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=Ui,n=Vi,r=Bt;wi(this.#i),Ci(this.#i),Nt(this.#i.ctx);try{return hr.ensure(),e()}catch(e){return qt(e),null}finally{wi(t),Ci(n),Nt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&mi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ut(()=>{this.#d=!1,this.#m&&br(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;ar?.is_fork?(this.#a&&ar.skip_effect(this.#a),this.#o&&ar.skip_effect(this.#o),this.#s&&ar.skip_effect(this.#s),ar.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(di(this.#a),null),this.#o&&=(di(this.#o),null),this.#s&&=(di(this.#s),null),_t&&(ft(this.#t),mt(),ft(ht()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return si(()=>{var r=Ui;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Jt(e,this.#i.parent),null}}))};Ut(()=>{var t;try{t=this.transform_error(e)}catch(e){Jt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Jt(e,this.#i&&this.#i.parent)):n(t)})}}})))()}function In(e,t,n,r){let i=Lt()?Vn:Hn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=Ui,c=Ln(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Jt(e,s)}Rn()}}var d=zn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>eee(e))).then(u).catch(e=>Jt(e,s)).finally(d)}l?l.then(()=>{c(),f(),Rn()}):f()}function Ln(){var e=Ui,t=Vi,n=Bt,r=ar;return function(i=!0){wi(e),Ci(t),Nt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Rn(e=!0){wi(null),Ci(null),Nt(null),e&&ar?.deactivate()}function zn(){var e=Ui,t=e.b,n=ar,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Bn(){return(Bn=s((()=>{Re(),Vt(),Fn(),Yt(),Zi(),_r(),Yn(),yi(),Kt()})))()}function Vn(e){var t=2|pe;return Ui!==null&&(Ui.f|=xe),{ctx:Bt,deps:null,effects:null,equals:bt,f:t,fn:e,reactions:null,rv:0,v:tt,wv:0,parent:Ui,ac:null}}function eee(e,t,n){let r=Ui;r===null&&Ve();var i=void 0,a=vr(tt),o=!Vi,s=new Set;return ree(()=>{var t=Ui,n=S();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Ie&&n.reject(e)}).finally(Rn)}catch(e){n.reject(e),Rn()}var c=ar;if(o){if(t.f&32768)var l=zn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Jn);else for(let e of s.values())e.reject(Jn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Jn&&(c.activate(),t?(a.f|=De,br(a,t)):(a.f&8388608&&(a.f^=De),br(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Xr(()=>{for(let e of s)e.reject(Jn)}),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=Vn(e);return Ct||Ti(t),t}function Hn(e){let t=Vn(e);return t.equals=St,t}function Un(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)di(t[n])}}function Wn(e){var t,n=Ui,r=e.parent;if(!Bi&&r!==null&&e.v!==tt&&r.f&24576)return ot(),e.v;wi(r);try{e.f&=~we,Un(e),t=ji(e)}finally{wi(n)}return t}function Gn(e){var t=Wn(e);if(!e.equals(t)&&(e.wv=Oi(),(!ar?.is_fork||e.deps===null)&&(ar===null?e.v=t:(ar.capture(e,t,!0),or?.capture(e,t,!0)),e.deps===null))){Xt(e,fe);return}Bi||(sr===null?Zt(e):(Yr()||ar?.is_fork)&&sr.set(e,t))}function Kn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Dn(()=>{t.ac.abort(Ie),t.ac=null}),t.fn!==null&&(t.teardown=E),Ni(t,0),li(t))}function qn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Pi(t)}var Jn;function Yn(){return(Yn=s((()=>{Re(),Zi(),kn(),$e(),ut(),yi(),Er(),Mt(),Tt(),Vt(),at(),_r(),Bn(),ue(),$t(),Jn=Symbol(`obsolete`)})))()}function Xn(e){var t=lr;lr=!0;try{var n;for(e&&(ar!==null&&!ar.is_fork&&ar.flush(),n=e());;){if(Wt(),ar===null)return n;ar.flush()}}finally{lr=t}}function tee(){try{Ke()}catch(e){Jt(e,cr)}}function Zn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ki(r)&&(gr=new Set,Pi(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&pi(r),gr?.size>0)){wr.clear();for(let e of gr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)gr.has(n)&&(gr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Pi(n)}}gr.clear()}}gr=null}}function Qn(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?Qn(i,t,n,r):e&4194320&&!(e&2048)&&$n(i,t,r)&&(Xt(i,pe),er(i))}}function $n(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(te.call(t,r))return!0;if(r.f&2&&$n(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function er(e){ar.schedule(e)}function tr(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Xt(e,fe);for(var n=e.first;n!==null;)tr(n,t),n=n.next}}function nr(e){Xt(e,fe);for(var t=e.first;t!==null;)nr(t),t=t.next}var rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr;function _r(){return(_r=s((()=>{Re(),Tt(),ue(),Zi(),$e(),Kt(),Yt(),Er(),yi(),nn(),at(),$t(),bn(),Mt(),xn(),Yn(),rr=null,ir=null,ar=null,or=null,sr=null,cr=null,lr=!1,ur=!1,dr=null,fr=null,pr=0,mr=1,hr=class e{id=mr++;#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(){ir===null?rr=ir=this:(ir.#n=this,this.#t=ir),ir=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)Xt(r,pe),t(r);for(r of n.m)Xt(r,me),t(r)}this.#p.add(e)}#g(){this.#e=!0,pr++>1e3&&(this.#S(),tee());for(let e of this.#u)this.#d.delete(e),Xt(e,pe),this.schedule(e);for(let e of this.#d)Xt(e,me),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=dr=[],r=[],i=fr=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw nr(e),this.#h()||this.discard(),t}if(ar=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(dr=null,fr=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)tr(e,t);i.length>0&&ar.#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(),or=this,Zn(r),Zn(n),or=null,this.#s?.resolve();var s=ar;if(this.#a===0&&(this.#c.length===0||s!==null)&&(this.#S(),Ct&&(this.#x(),ar=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^=fe;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=fe:i&4?t.push(r):Ct&&i&16777224?n.push(r):ki(r)&&(i&16&&this.#d.add(r),Pi(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),Xt(i,pe),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),ar=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)tn(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==tt&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),sr?.set(e,t)),this.is_fork||(e.v=t)}activate(){ar=this}deactivate(){ar=null,sr=null}flush(){try{ur=!0,ar=this,this.#g()}finally{pr=0,cr=null,dr=null,fr=null,ur=!1,ar=null,sr=null,wr.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(Jn);this.#S(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}#x(){for(let u=rr;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)Qn(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)&&$n(e,c,o)&&(e.f&4194320?(Xt(e,pe),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,Ut(()=>{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??=S()).promise}static ensure(){if(ar===null){let t=ar=new e;!ur&&!lr&&Ut(()=>{t.#e||t.flush()})}return ar}apply(){if(!Ct||!this.is_fork&&this.#t===null&&this.#n===null){sr=null;return}sr=new Map;for(let[e,[t]]of this.current)sr.set(e,t);for(let t=rr;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)sr.has(e)||sr.set(e,n)}}schedule(e){if(cr=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(dr!==null&&t===Ui&&(Ct||(Vi===null||!(Vi.f&2))&&!_n))return;if(n&96){if(!(n&1024))return;t.f^=fe}}this.#c.push(t)}#S(){if(this.linked){var e=this.#t,t=this.#n;e===null?rr=t:e.#n=t,t===null?ir=e:t.#t=e,this.linked=!1}}},gr=null})))()}function vr(e,t){return{f:0,v:e,reactions:null,equals:bt,rv:0,wv:0}}function N(e,t){let n=vr(e,t);return Ti(n),n}function yr(e,t=!1,n=!0){let r=vr(e);return t||(r.equals=St),wt&&n&&Bt!==null&&Bt.l!==null&&(Bt.l.s??=[]).push(r),r}function P(e,t,n=!1){return Vi!==null&&(!Hi||Vi.f&131072)&&Lt()&&Vi.f&4325394&&(Wi===null||!Wi.has(e))&&Ze(),br(e,n?Dr(t):t,fr)}function br(e,t,n=null){if(!e.equals(t)){wr.set(e,Bi?t:e.v);var r=hr.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Wn(t),sr===null&&Zt(t)}e.wv=Oi(),Sr(e,pe,n),Lt()&&Ui!==null&&Ui.f&1024&&!(Ui.f&96)&&(qi===null?Ei([e]):qi.push(e)),!r.is_fork&&Cr.size>0&&!Tr&&nee()}return t}function nee(){Tr=!1;for(let e of Cr){e.f&1024&&Xt(e,me);let t;try{t=ki(e)}catch{t=!0}t&&Pi(e)}Cr.clear()}function xr(e){P(e,e.v+1)}function Sr(e,t,n){var r=e.reactions;if(r!==null)for(var i=Lt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Ui)){var l=(c&pe)===0;if(l&&Xt(s,t),c&131072)Cr.add(s);else if(c&2){var u=s;sr?.delete(u),c&65536||(c&512&&(Ui===null||!(Ui.f&2097152))&&(s.f|=we),Sr(u,me,n))}else if(l){var d=s;c&16&&gr!==null&&gr.add(d),n===null?er(d):n.push(d)}}}}var Cr,wr,Tr;function Er(){return(Er=s((()=>{Zi(),Re(),$e(),Tt(),jt(),Mt(),Vt(),_r(),Ar(),Yn(),$t(),Cr=new Set,wr=new Map,Tr=!1})))()}function Dr(e){if(typeof e!=`object`||!e||Oe in e)return e;let t=ce(e);if(t!==oe&&t!==se)return e;var n=new Map,r=T(e),i=N(0),a=null,o=Xi,s=e=>{if(Xi===o)return e();var t=Vi,n=Xi;Ci(null),Di(o);var r=e();return Ci(t),Di(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)&&Ye();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(tt,a));n.set(t,e),xr(i)}}else P(r,tt),xr(i);return!0},get(t,r,i){if(r===Oe)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||ie(t,r)?.writable)&&(o=s(()=>N(Dr(c?t[r]:tt),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===tt?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!==tt)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Oe)return!0;var r=n.get(t),i=r!==void 0&&r.v!==tt||Reflect.has(e,t);return(r!==void 0||Ui!==null&&(!i||ie(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Dr(e[t]):tt,a)),n.set(t,r)),z(r)===tt)?!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(tt,a)),n.set(d+``,f)):P(f,tt)}if(l===void 0)(!u||ie(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Dr(o)),n.set(t,l));else{u=l.v!==tt;var p=s(()=>Dr(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)}xr(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!==tt});for(var[r,a]of n)a.v!==tt&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Xe()}})}function Or(e){try{if(typeof e==`object`&&e&&Oe in e)return e[Oe]}catch{}return e}function kr(e,t){return Object.is(Or(e),Or(t))}function Ar(){return(Ar=s((()=>{Zi(),ue(),Er(),Re(),at(),$e(),jt(),Mt(),Tt()})))()}function jr(){return(jr=s((()=>{ut(),Ar()})))()}function Mr(){if(Br===void 0){Br=window,Vr=document,Hr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ur=ie(t,`firstChild`).get,Wr=ie(t,`nextSibling`).get,le(e)&&(e[Me]=void 0,e[je]=null,e[Ne]=void 0,e.__e=void 0),le(n)&&(n[Pe]=void 0)}}function Nr(e=``){return document.createTextNode(e)}function Pr(e){return Ur.call(e)}function Fr(e){return Wr.call(e)}function F(e,t){if(!_t)return Pr(e);var n=Pr(vt);if(n===null)n=vt.appendChild(Nr());else if(t&&n.nodeType!==3){var r=Nr();return n?.before(r),ft(r),r}return t&&zr(n),ft(n),n}function I(e,t=!1){if(!_t){var n=Pr(e);return n instanceof Comment&&n.data===``?Fr(n):n}if(t){if(vt?.nodeType!==3){var r=Nr();return vt?.before(r),ft(r),r}zr(vt)}return vt}function L(e,t=1,n=!1){let r=_t?vt:e;for(var i;t--;)i=r,r=Fr(r);if(!_t)return r;if(n){if(r?.nodeType!==3){var a=Nr();return r===null?i?.after(a):r.before(a),ft(a),a}zr(r)}return ft(r),r}function Ir(e){e.textContent=``}function Lr(){return!Ct||gr!==null?!1:(Ui.f&_e)!==0}function Rr(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 zr(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 Br,Vr,Hr,Ur,Wr;function Gr(){return(Gr=s((()=>{yt(),jr(),ue(),Zi(),Tt(),Re(),_r(),at()})))()}function Kr(e){Ui===null&&(Vi===null&&Ge(e),We()),Bi&&Ue(e)}function qr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Jr(e,t){var n=Ui;n!==null&&n.f&8192&&(e|=he);var r={ctx:Bt,deps:null,nodes:null,f:e|pe|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};ar?.register_created_effect(r);var i=r;if(e&4)dr===null?hr.ensure().schedule(r):dr.push(r);else if(t!==null){try{Pi(r)}catch(e){throw di(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|=ye))}if(i!==null&&(i.parent=n,n!==null&&qr(i,n),Vi!==null&&Vi.f&2&&!(e&64))){var a=Vi;(a.effects??=[]).push(i)}return r}function Yr(){return Vi!==null&&!Hi}function Xr(e){let t=Jr(8,null);return Xt(t,fe),t.teardown=e,t}function Zr(e){Kr(`$effect`);var t=Ui.f;if(!Vi&&t&32&&Bt!==null&&!Bt.i){var n=Bt;(n.e??=[]).push(e)}else return Qr(e)}function Qr(e){return Jr(4|Se,e)}function $r(e){return Kr(`$effect.pre`),Jr(8|Se,e)}function ei(e){hr.ensure();let t=Jr(64|xe,e);return()=>{di(t)}}function ti(e){hr.ensure();let t=Jr(64|xe,e);return(e={})=>new Promise(n=>{e.outro?mi(t,()=>{di(t),n(void 0)}):(di(t),n(void 0))})}function ni(e){return Jr(4,e)}function ree(e){return Jr(Ee|xe,e)}function ri(e,t=0){return Jr(8|t,e)}function R(e,t=[],n=[],r=[]){In(r,t,n,t=>{Jr(8,()=>{e(...t.map(z))})})}function ii(e,t=[],n=[],r=[]){In(r,t,n,t=>{Jr(4,()=>e(...t.map(z)))})}function ai(e,t=0){return Jr(16|t,e)}function oi(e,t=0){return Jr(de|t,e)}function si(e){return Jr(32|xe,e)}function ci(e){var t=e.teardown;if(t!==null){let e=Bi,n=Vi;Si(!0),Ci(null);try{t.call(null)}finally{Si(e),Ci(n)}}}function li(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Dn(()=>{e.abort(Ie)});var r=n.next;n.f&64?n.parent=null:di(n,t),n=r}}function ui(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||di(t),t=n}}function di(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(fi(e.nodes.start,e.nodes.end),n=!0),e.f|=ve,li(e,t&&!n),Ni(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();ci(e),e.f^=ve,e.f|=ge;var i=e.parent;i!==null&&i.first!==null&&pi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function fi(e,t){for(;e!==null;){var n=e===t?null:Fr(e);e.remove(),e=n}}function pi(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 mi(e,t,n=!0){var r=[];hi(e,r,!0);var i=()=>{n&&di(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function hi(e,t,n){if(!(e.f&8192)){e.f^=he;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);hi(i,t,o?n:!1)}i=a}}}function gi(e){_i(e,!0)}function _i(e,t){if(e.f&8192){e.f^=he,e.f&1024||(Xt(e,pe),hr.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);_i(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 vi(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Fr(n);t.append(n),n=i}}function yi(){return(yi=s((()=>{Zi(),Re(),$e(),ue(),Gr(),Vt(),_r(),Bn(),kn(),$t()})))()}var bi;function xi(){return(xi=s((()=>{Er(),Zi(),bi=null})))()}function Si(e){Bi=e}function Ci(e){Vi=e}function wi(e){Ui=e}function Ti(e){Vi!==null&&(!Ct||Vi.f&2)&&(Wi??=new Set).add(e)}function Ei(e){qi=e}function Di(e){Xi=e}function Oi(){return++Ji}function ki(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~we),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ki(a)&&Gn(a),a.wv>e.wv)return!0}t&512&&sr===null&&Xt(e,fe)}return!1}function Ai(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ct&&Wi!==null&&Wi.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ai(a,t,!1):t===a&&(n?Xt(a,pe):a.f&1024&&Xt(a,me),er(a))}}function ji(e){var t=Gi,n=Ki,r=qi,i=Vi,a=Wi,o=Bt,s=Hi,c=Xi,l=e.f;Gi=null,Ki=0,qi=null,Vi=l&96?null:e,Wi=null,Nt(e.ctx),Hi=!1,Xi=++Yi,e.ac!==null&&(Dn(()=>{e.ac.abort(Ie)}),e.ac=null);try{e.f|=Te;var u=e.fn,d=u();e.f|=_e;var f=e.deps,p=ar?.is_fork;if(Gi!==null){var m;if(p||Ni(e,Ki),f!==null&&Ki>0)for(f.length=Ki+Gi.length,m=0;m<Gi.length;m++)f[Ki+m]=Gi[m];else e.deps=f=Gi;if(Yr()&&e.f&512)for(m=Ki;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Ki<f.length&&(Ni(e,Ki),f.length=Ki);if(Lt()&&qi!==null&&!Hi&&f!==null&&!(e.f&6146))for(m=0;m<qi.length;m++)Ai(qi[m],e);if(i!==null&&i!==e){if(Yi++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Yi;if(t!==null)for(let e of t)e.rv=Yi;qi!==null&&(r===null?r=qi:r.push(...qi))}return e.f&8388608&&(e.f^=De),d}catch(e){return qt(e)}finally{e.f^=Te,Gi=t,Ki=n,qi=r,Vi=i,Wi=a,Nt(o),Hi=s,Xi=c}}function Mi(e,t){let n=t.reactions;if(n!==null){var r=ee.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&&(Gi===null||!te.call(Gi,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~we),a.v!==tt&&Zt(a),a.ac!==null&&Dn(()=>{a.ac.abort(Ie),a.ac=null,Xt(a,pe)}),Kn(a),Ni(a,0)}}function Ni(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Mi(e,n[r])}function Pi(e){var t=e.f;if(!(t&16384)){Xt(e,fe);var n=Ui,r=zi;Ui=e,zi=!(t&96);try{t&16777232?ui(e):li(e),ci(e);var i=ji(e);e.teardown=typeof i==`function`?i:null,e.wv=Ji}finally{zi=r,Ui=n}}}async function Fi(){if(Ct)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Xn()}function z(e){var t=!!(e.f&2);if(bi?.add(e),Vi!==null&&!Hi&&!(Ui!==null&&Ui.f&16384)&&(Wi===null||!Wi.has(e))){var n=Vi.deps;if(Vi.f&2097152)e.rv<Yi&&(e.rv=Yi,Gi===null&&n!==null&&n[Ki]===e?Ki++:Gi===null?Gi=[e]:Gi.push(e));else{Vi.deps??=[],te.call(Vi.deps,e)||Vi.deps.push(e);var r=e.reactions;r===null?e.reactions=[Vi]:te.call(r,Vi)||r.push(Vi)}}if(Bi&&wr.has(e))return wr.get(e);if(t){var i=e;if(Bi){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Li(i))&&(a=Wn(i)),wr.set(i,a),a}var o=!(i.f&512)&&!Hi&&Vi!==null&&(zi||!!(Vi.f&512)),s=(i.f&_e)===0;ki(i)&&(o&&(i.f|=512),Gn(i)),o&&!s&&(qn(i),Ii(i))}if(sr?.has(e))return sr.get(e);if(e.f&8388608)throw e.v;return e.v}function Ii(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(qn(t),Ii(t))}function Li(e){if(e.v===tt)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(wr.has(t)||t.f&2&&Li(t))return!0;return!1}function Ri(e){var t=Hi;try{return Hi=!0,e()}finally{Hi=t}}var zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi;function Zi(){return(Zi=s((()=>{ue(),yi(),Re(),Er(),Yn(),Tt(),jt(),Mt(),Vt(),_r(),Yt(),at(),xi(),kn(),$t(),ut(),zi=!1,Bi=!1,Vi=null,Hi=!1,Ui=null,Wi=null,Gi=null,Ki=0,qi=null,Ji=1,Yi=0,Xi=Yi})))()}function Qi(){return(Qi=s((()=>{J(),oc(),yi()})))()}function $i(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function ea(e){return ia.includes(e)}function ta(e){return e=e.toLowerCase(),oa[e]??e}function na(e){return sa.includes(e)}function ra(e){return la.includes(e)}var ia,aa,oa,sa,ca,la;function ua(){return(ua=s((()=>{ia=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],aa=`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(`.`),oa={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...aa],sa=[`touchstart`,`touchmove`],ca=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...ca],la=[`textarea`,`script`,`style`,`title`]})))()}function da(){return(da=s((()=>{Re(),ua(),Zi()})))()}function fa(){return(fa=s((()=>{})))()}function pa(){return(pa=s((()=>{Re(),yt(),Vt()})))()}function ma(e){if(!_t)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 ha(e,t,n,r={}){function i(e){if(r.capture||ba.call(t,e),!e.cancelBubble)return Dn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ut(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ga(e,t,n,r={}){var i=ha(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function _a(e,t,n,r,i){var a={capture:r,passive:i},o=ha(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xr(()=>{t.removeEventListener(e,o,a)})}function va(e,t,n){(t[xa]??={})[e]=n}function ya(e){for(var t=0;t<e.length;t++)Sa.add(e[t]);for(var n of Ca)n(e)}function ba(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;wa=e;var o=0,s=wa===e&&e[xa];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[xa]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){re(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Vi,d=Ui;Ci(null),wi(null);try{for(var f,p=[];a!==null&&a!==t;){try{var m=a[xa]?.[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[xa]=t,delete e.currentTarget,Ci(u),wi(d)}}}var xa,Sa,Ca,wa;function Ta(){return(Ta=s((()=>{yi(),ue(),yt(),Kt(),Zi(),kn(),xa=Symbol(`events`),Sa=new Set,Ca=new Set,wa=null})))()}function Ea(e){return Oa?.createHTML(e)??e}function Da(e){var t=Rr(`template`);return t.innerHTML=Ea(e.replaceAll(`<!>`,`<!---->`)),t.content}var Oa;function ka(){return(ka=s((()=>{Gr(),Oa=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e})})))()}function Aa(e,t){var n=Ui;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function B(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(_t)return Aa(vt,null),vt;i===void 0&&(i=Da(a?e:`<!>`+e),n||(i=Pr(i)));var t=r||Hr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Pr(t),s=t.lastChild;Aa(o,s)}else Aa(t,t);return t}}function ja(e=``){if(!_t){var t=Nr(e+``);return Aa(t,t),t}var n=vt;return n.nodeType===3?zr(n):(n.before(n=Nr()),ft(n)),Aa(n,n),n}function V(){if(_t)return Aa(vt,null),vt;var e=document.createDocumentFragment(),t=document.createComment(``),n=Nr();return e.append(t,n),Aa(t,n),e}function H(e,t){if(_t){var n=Ui;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=vt),pt();return}e!==null&&e.before(t)}function Ma(){if(_t&&vt&&vt.nodeType===8&&vt.textContent?.startsWith(`$`)){let e=vt.textContent.substring(1);return pt(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Na(){return(Na=s((()=>{yt(),Gr(),ka(),Zi(),at(),Re()})))()}function Pa(e){Ra=e}function U(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Pe]??=e.nodeValue)&&(e[Pe]=n,e.nodeValue=`${n}`)}function Fa(e,t){return Ia(e,t)}function Ia(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Mr();var c=void 0,l=ti(()=>{var l=n??t.appendChild(Nr());Mn(l,{pending:()=>{}},t=>{O({});var n=Bt;if(a&&(n.c=a),i&&(r.$$events=i),_t&&Aa(t,null),Ra=o,c=e(t,r)||{},Ra=!0,_t&&(Ui.nodes.end=vt,vt===null||vt.nodeType!==8||vt.data!==`]`))throw st(),et;k()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=na(r);for(let e of[t,document]){var a=za.get(e);a===void 0&&(a=new Map,za.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ba,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(ne(Sa)),Ca.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=za.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ba),r.delete(e),r.size===0&&za.delete(n)):r.set(e,i)}Ca.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Ba.set(c,l),c}function La(e,t){let n=Ba.get(e);return n?(Ba.delete(e),n(t)):Promise.resolve()}var Ra,za,Ba;function Va(){return(Va=s((()=>{Gr(),at(),Zi(),Vt(),yi(),yt(),ue(),Ta(),ut(),$e(),Na(),ua(),Re(),Fn(),za=new Map,Ba=new WeakMap})))()}function Ha(){return(Ha=s((()=>{Re(),yt(),yi(),Er(),Va(),Zi()})))()}function Ua(){return(Ua=s((()=>{ue(),Re(),Vt(),ua()})))()}function Wa(){return(Wa=s((()=>{Vt()})))()}function Ga(){return(Ga=s((()=>{At(),yi(),Zi(),Mt()})))()}function Ka(){return(Ka=s((()=>{Bn(),Zi(),yt(),Na()})))()}var qa;function Ja(){return(Ja=s((()=>{_r(),yi(),Re(),yt(),Gr(),qa=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)gi(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(gi(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&&(di(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();vi(r,t),t.append(Nr()),this.#n.set(e,{effect:r,fragment:t})}else di(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),mi(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)||(di(n.effect),this.#n.delete(e))};ensure(e,t){var n=ar,r=Lr();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=Nr();i.append(a),this.#n.set(e,{effect:si(()=>t(a)),fragment:i})}else this.#t.set(e,si(()=>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 _t&&(this.anchor=vt),this.#a(n)}}})))()}function Ya(e,t,n,r,i){_t&&pt();var a=Lt(),o=tt,s=a?vr(o):yr(o,!1,!1),c=a?vr(o):yr(o,!1,!1),l=new qa(e);ai(()=>{var a=ar,o=t(),u=!1;let d=_t&&b(o)===(e.data===`[!`);if(d&&(ft(ht()),dt(!1)),b(o)){var f=Ln(),p=!1;let e=e=>{if(!u){p=!0,f(!1),ar===a&&a.deactivate(),hr.ensure();try{e()}finally{Rn(!1),lr||Xn()}}};o.then(t=>{e(()=>{br(s,t),l.ensure(Za,r&&(e=>r(e,s)))})},t=>{e(()=>{if(br(c,t),l.ensure(Qa,i&&(e=>i(e,c))),!i)throw c.v})}),_t?l.ensure(Xa,n):Ut(()=>{p||e(()=>{l.ensure(Xa,n)})})}else br(s,o),l.ensure(Za,r&&(e=>r(e,s)));return d&&dt(!0),()=>{u=!0}})}var Xa,Za,Qa;function $a(){return($a=s((()=>{ue(),yi(),Er(),yt(),Kt(),at(),Vt(),_r(),Ja(),Bn(),Xa=0,Za=1,Qa=2})))()}function W(e,t,n=!1){var r;_t&&(r=vt,pt());var i=new qa(e),a=n?ye:0;function o(e,t){if(_t){var n=gt(r);if(e!==parseInt(n.substring(1))){var a=ht();ft(a),i.anchor=a,dt(!1),i.ensure(e,t),dt(!0);return}}i.ensure(e,t)}ai(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function eo(){return(eo=s((()=>{Re(),yt(),yi(),Ja()})))()}function to(e,t,n){_t&&pt();var r=new qa(e),i=!Lt();ai(()=>{var e=t();e!==e&&(e=no),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}var no;function ro(){return(ro=s((()=>{Vt(),yi(),yt(),Ja(),no=Symbol(`NaN`)})))()}function io(e,t){_t&&ft(Pr(e)),ri(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}function ao(){return(ao=s((()=>{yi(),yt(),Gr()})))()}function oo(e,t){return t}function so(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];mi(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;co(e,ne(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;Ir(u),u.append(l),e.items.clear()}co(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function co(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|=Ce,vi(a,document.createDocumentFragment())):di(t[i],n)}}function lo(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=_t?ft(Pr(c)):c.appendChild(Nr())}_t&&pt();var l=null,u=Hn(()=>{var e=n();return T(e)?e:e==null?[]:ne(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,fo(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Ce,mo(l,null,o)):gi(l):mi(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:ai(()=>{d=z(u);var e=d.length;let c=!1;_t&>(o)===`[!`!=(e===0)&&(o=ht(),ft(o),dt(!1),c=!0);for(var g=new Set,_=ar,v=Lr(),y=0;y<e;y+=1){_t&&vt.nodeType===8&&vt.data===`]`&&(o=vt,c=!0,dt(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&br(S.v,b),S.i&&br(S.i,y),v&&_.unskip_effect(S.e)):(S=po(s,p?o:go??=Nr(),b,x,y,i,t,n),p||(S.e.f|=Ce),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=si(()=>a(o)):(l=si(()=>a(go??=Nr())),l.f|=Ce)),e>g.size&&He(``,``,``),_t&&e>0&&ft(ht()),!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&&dt(!0),z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,_t&&(o=vt)}function uo(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function fo(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=uo(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&&(gi(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432){if(g.f^=Ce,g===c)mo(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),ho(e,u,g),ho(e,g,v),mo(g,v,n),u=g,f=[],p=[],c=uo(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)mo(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);ho(e,x.prev,S.next),ho(e,u,x),ho(e,S,y),c=y,u=S,--_,f=[],p=[]}else l.delete(g),mo(g,c,n),ho(e,g.prev,g.next),ho(e,g,u===null?e.effect.first:u.next),ho(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=uo(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=uo(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(co(e,ne(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=uo(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()}so(e,C,T)}}a&&Ut(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function po(e,t,n,r,i,a,o,s){var c=o&1?o&16?vr(n):yr(n,!1,!1):null,l=o&2?vr(i):null;return{v:c,i:l,e:si(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function mo(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=Fr(r);if(a.before(r),r===i)return;r=o}}function ho(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var go;function _o(){return(_o=s((()=>{at(),yt(),Gr(),yi(),Er(),ue(),Re(),Kt(),Zi(),Yn(),_r(),$e(),jt()})))()}function vo(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;_t&&(o=ft(Pr(c)))}R(()=>{var e=Ui;if(s===(s=t()??``)){_t&&pt();return}if(n&&!_t){e.nodes=null,c.innerHTML=s,s!==``&&Aa(Pr(c),c.lastChild);return}if(e.nodes!==null&&(fi(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(_t){for(var a=vt.data,l=pt(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=Fr(l);if(l===null)throw st(),et;Aa(vt,u),o=ft(l);return}var d=Rr(r?`svg`:i?`math`:`template`,r?rt:i?it:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Aa(Pr(f),f.lastChild),r||i)for(;Pr(f);)o.before(Pr(f));else o.before(f)}})}function yo(){return(yo=s((()=>{at(),yi(),yt(),Na(),ut(),ua(),Vt(),Gr(),Zi(),Re()})))()}function bo(){return(bo=s((()=>{yt()})))()}function xo(){return(xo=s((()=>{ua()})))()}function So(e,t,...n){var r=new qa(e);ai(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ye)}function Co(){return(Co=s((()=>{Re(),yi(),Vt(),yt(),ka(),Na(),$e(),Gr(),xo(),Ja()})))()}function wo(e,t,n){var r;_t&&(r=vt,pt());var i=new qa(e);ai(()=>{var e=t()??null;if(_t&>(r)===`[`!=(e!==null)){var a=ht();ft(a),i.anchor=a,dt(!1),i.ensure(e,e&&(t=>n(t,e))),dt(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ye)}function To(){return(To=s((()=>{Re(),yi(),yt(),Ja(),at()})))()}var Eo,Do;function Oo(){return(Oo=s((()=>{ue(),Eo=()=>performance.now(),Do={tick:e=>requestAnimationFrame(e),now:()=>Eo(),tasks:new Set}})))()}function ko(){let e=Do.now();Do.tasks.forEach(t=>{t.c(e)||(Do.tasks.delete(t),t.f())}),Do.tasks.size!==0&&Do.tick(ko)}function Ao(e){let t;return Do.tasks.size===0&&Do.tick(ko),{promise:new Promise(n=>{Do.tasks.add(t={c:e,f:n})}),abort(){Do.tasks.delete(t)}}}function jo(){return(jo=s((()=>{Oo()})))()}function Mo(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 No(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Mo(n.trim());t[i]=r.trim()}return t}function Po(e){Ro=e}function Fo(e,t,n){var r=(Ro??Ui).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=Io(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 Io(e,t,n,r,i,a){var o=r===1;if(y(t)){var s,c=!1;return Ut(()=>{c||(s=Io(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:E,deactivate:E,reset:E,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Lo}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=No(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=No(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&&Ao(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=E)},deactivate:()=>{a=E},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}var Lo,Ro;function zo(){return(zo=s((()=>{ue(),yi(),Zi(),jo(),Va(),Re(),Kt(),kn(),Lo=e=>e,Ro=null})))()}function Bo(e,t,n,r,i,a){let o=_t;_t&&pt();var s=null;_t&&vt.nodeType===1&&(s=vt,pt());var c=_t?vt:e,l=Ui,u=new qa(c,!1);ai(()=>{let e=t()||null;var a=i?i():n||e===`svg`?rt:void 0;if(e===null){u.ensure(null,null),Pa(!0);return}return u.ensure(e,t=>{if(e){if(s=_t?s:Rr(e,a),Aa(s,s),r){var n=null;_t&&ra(e)&&s.append(n=document.createComment(``));var i=_t?Pr(s):s.appendChild(Nr());_t&&(i===null?dt(!1):ft(i)),Po(l),r(s,i),n?.remove(),Po(null)}Ui.nodes.end=s,t.before(s)}_t&&ft(t)}),Pa(!0),()=>{e&&Pa(!1)}},ye),Xr(()=>{Pa(!0)}),o&&(dt(!0),ft(c))}function Vo(){return(Vo=s((()=>{at(),yt(),Gr(),yi(),Va(),Zi(),Vt(),Re(),Na(),ua(),Ja(),zo()})))()}function Ho(e,t){let n=null,r=_t;var i;if(_t){n=vt;for(var a=Pr(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=Fr(a);if(a===null)dt(!1);else{var o=Fr(a);a.remove(),ft(o)}}_t||(i=document.head.appendChild(Nr()));try{ai(()=>{var e=si(()=>t(i));e.f|=be})}finally{r&&(dt(!0),ft(n))}}function Uo(){return(Uo=s((()=>{yt(),Gr(),yi(),Re()})))()}function G(e,t){ni(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Rr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Wo(){return(Wo=s((()=>{fa(),yi(),Gr()})))()}function Go(){return(Go=s((()=>{yi(),Zi()})))()}function Ko(e,t){var n=void 0,r;oi(()=>{n!==(n=t())&&(r&&=(di(r),null),n&&(r=si(()=>{ni(()=>n(e))})))})}function qo(){return(qo=s((()=>{yi()})))()}function Jo(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=Jo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Yo(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jo(e))&&(r&&(r+=` `),r+=t);return r}function Xo(){return(Xo=s((()=>{})))()}function Zo(e){return typeof e==`object`?Yo(e):e??``}function Qo(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||ns.includes(r[o-1]))&&(s===r.length||ns.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function $o(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 es(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ts(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(es)),i&&c.push(...Object.keys(i).map(es));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=es(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+=$o(r)),i&&(n+=$o(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}var ns;function rs(){return(rs=s((()=>{Xo(),ue(),ns=[...`
|
||
\r\f\xA0\v`]})))()}function is(e,t,n,r,i,a){var o=e[Me];if(_t||o!==n||o===void 0){var s=Qo(n,r,a);(!_t||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Me]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function as(){return(as=s((()=>{rs(),Re(),yt()})))()}function os(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 ss(e,t,n,r){var i=e[Ne];if(_t||i!==t){var a=ts(t,r);(!_t||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ne]=t}else r&&(Array.isArray(r)?(os(e,n?.[0],r[0]),os(e,n?.[1],r[1],`important`)):os(e,n,r));return r}function cs(){return(cs=s((()=>{rs(),Re(),yt()})))()}function ls(e,t,n=!1){if(e.multiple){if(t==null)return;if(!T(t))return ct();for(var r of e.options)r.selected=t.includes(ds(r));return}for(r of e.options)if(kr(ds(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function us(e){var t=new MutationObserver(()=>{`__value`in e&&ls(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Xr(()=>{t.disconnect()})}function ds(e){return`__value`in e?e.__value:e.value}function fs(){return(fs=s((()=>{yi(),kn(),Ar(),ue(),ut(),_r()})))()}function ps(e){if(_t){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[Fe]=n,Ut(n),wn()}}function ms(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function K(e,t,n,r){var i=_s(e);_t&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Cs)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Ae]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&vs(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function hs(e,t,n,r,i=!1,a=!1){if(_t&&i&&e.nodeName===ws){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||ps(o)}var s=_s(e),c=s[xs],l=!s[Ss];let u=_t&&c;u&&dt(!1);var d=t||{},f=e.nodeName===Ts;for(var p in t)p in n||(n[p]=null);n.class?n.class=Zo(n.class):(r||n[ys])&&(n.class=null),n[bs]&&(n.style??=null);var m=vs(e);if(e.nodeName===ws&&`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`){is(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[ys],n[ys]),d[i]=o,d[ys]=n[ys];continue}if(i===`style`){ss(e,o,t?.[bs],n[bs]),d[i]=o,d[bs]=n[bs];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=ea(r);if($i(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)va(r,e,o),ya([r]);else if(o!=null){function y(e){d[i].call(this,e)}d[n]=ha(r,e,y,t)}}else if(i===`style`)K(e,i,o);else if(i===`autofocus`)Sn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)ms(e,o);else{var b=i;l||(b=ta(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]=tt)):typeof o!=`function`&&K(e,b,o,a)}}}}return u&&dt(!0),d}function gs(e,t,n=[],r=[],i=[],a,o=!1,s=!1){In(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Es,l=!1;if(oi(()=>{var u=t(...n.map(z)),d=hs(e,r,u,a,o,s);l&&c&&`value`in u&&ls(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||di(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&di(i[t]),i[t]=si(()=>Ko(e,()=>f))),d[t]=f}r=d}),c){var u=e;ni(()=>{ls(u,r.value,!0),us(u)})}l=!0})}function _s(e){return e[je]??={[xs]:e.nodeName.includes(`-`),[Ss]:e.namespaceURI===nt}}function vs(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ds.get(t);if(n)return n;Ds.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=ae(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=ce(i)}return n}var ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds;function Os(){return(Os=s((()=>{yt(),ue(),Ta(),En(),ut(),Re(),Kt(),ua(),Zi(),qo(),rs(),as(),cs(),at(),yi(),fs(),Bn(),ys=Symbol(`class`),bs=Symbol(`style`),xs=Symbol(`is custom element`),Ss=Symbol(`is html`),Cs=Le?`link`:`LINK`,ws=Le?`input`:`INPUT`,Ts=Le?`option`:`OPTION`,Es=Le?`select`:`SELECT`,Ds=new Map})))()}function ks(){return(ks=s((()=>{yt(),Gr(),ka(),qo()})))()}function As(){return(As=s((()=>{kn()})))()}function js(e,t,n=t){var r=new WeakSet;On(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ms(e)?Ns(a):a,n(a),ar!==null&&r.add(ar),await Fi(),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))}}}),(_t&&e.defaultValue!==e.value||Ri(t)==null&&e.value)&&(n(Ms(e)?Ns(e.value):e.value),ar!==null&&r.add(ar)),ri(()=>{var n=t();if(e===document.activeElement){var i=Ct?or:ar;if(r.has(i))return}Ms(e)&&n===Ns(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ms(e){var t=e.type;return t===`number`||t===`range`}function Ns(e){return e===``?null:+e}function Ps(){return(Ps=s((()=>{yi(),kn(),$e(),Ar(),Kt(),yt(),Zi(),_r(),Tt()})))()}function Fs(){return(Fs=s((()=>{yi(),kn()})))()}function Is(){return(Is=s((()=>{kn()})))()}function Ls(){return(Ls=s((()=>{yi(),ue()})))()}function Rs(){return(Rs=s((()=>{yi(),Zi()})))()}function zs(e,t){return e===t||e?.[Oe]===t}function Bs(e={},t,n,r){var i=Bt.r,a=Ui;return ni(()=>{var o,s;return ri(()=>{o=s,s=r?.()||[],Ri(()=>{zs(n(...s),e)||(t(e,...s),o&&zs(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&&zs(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Vs(){return(Vs=s((()=>{Re(),Vt(),yi(),Zi()})))()}function Hs(){return(Hs=s((()=>{yi(),kn()})))()}function Us(){return(Us=s((()=>{yi(),kn()})))()}function Ws(){return(Ws=s((()=>{ue(),yi(),Ta()})))()}function Gs(){return(Gs=s((()=>{ue(),Vt(),Yn(),yi(),Zi()})))()}function Ks(){return(Ks=s((()=>{Er(),Zi(),ue()})))()}function qs(e,t,n){return new Proxy({props:e,exclude:t},Ys)}function Js(...e){return new Proxy({props:e},Xs)}function q(e,t,n,r){var i=!wt||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Vn(r),z(l)):(c&&(c=!1,s=o?Ri(r):r),s);let d;if(a){var f=Oe in e||ke in e;d=ie(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=gn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&qe(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?Vn:Hn)(()=>(_=!1,h()));a&&z(v);var y=Ui;return(function(e,t){if(arguments.length>0){let n=t?z(v):i&&a?Dr(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Bi&&_||y.f&16384?v.v:z(v)})}var Ys,Xs;function Zs(){return(Zs=s((()=>{at(),ue(),Er(),Yn(),Zi(),$e(),Re(),Ar(),bn(),Tt(),yi(),Ys={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))}},Xs={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(y(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];y(i)&&(i=i());let a=ie(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(y(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=ie(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Oe||t===ke)return!1;for(let n of e.props)if(y(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(y(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}}})))()}function Qs(){return(Qs=s((()=>{Vt(),yi(),bn(),Bn()})))()}function $s(){return($s=s((()=>{Re(),yi(),Er(),Va(),Zi(),_r(),ue(),Vt(),Tt(),$t(),Ws()})))()}function ec(){return(ec=s((()=>{$s(),yi(),Na(),ue(),Gr()})))()}function tc(){return(tc=s((()=>{Re(),At(),Zi()})))()}function J(){return(J=s((()=>{Qi(),Vt(),da(),pa(),Ha(),Ua(),Wa(),jt(),Ga(),Ka(),$a(),eo(),ro(),ao(),_o(),yo(),bo(),Co(),To(),Vo(),Uo(),Wo(),Go(),qo(),Os(),as(),Ta(),En(),ks(),cs(),zo(),As(),Ps(),Fs(),Is(),Ls(),fs(),Rs(),Vs(),Hs(),Us(),yt(),Ws(),Gs(),Ks(),Na(),Bn(),_r(),Yn(),yi(),Er(),Zs(),bn(),Fn(),xi(),Va(),Zi(),Qs(),Oo(),Ar(),ec(),Gr(),rs(),At(),ue(),xo(),jr(),tc()})))()}function nc(){return(nc=s((()=>{yt()})))()}function rc(e){Bt===null&&ze(`onMount`),wt&&Bt.l!==null?ac(Bt).m.push(e):Zr(()=>{let t=Ri(e);if(typeof t==`function`)return t})}function ic(e){Bt===null&&ze(`onDestroy`),rc(()=>()=>Ri(e))}function ac(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function oc(){return(oc=s((()=>{Zi(),ue(),J(),$e(),Tt(),Vt(),_r(),nc(),Va(),Co()})))()}function Y(){return(Y=s((()=>{typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})))()}function sc(e,t){G(e,uc);let n=qs(t,cc);var r=lc();gs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-uq7u28`);var i=F(r,!0);D(r),R(()=>U(i,t.name)),H(e,r)}var cc,lc,uc;function dc(){return(dc=s((()=>{Y(),J(),cc=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),lc=B(`<span> </span>`),uc={hash:`svelte-uq7u28`,code:`.icon.small-arrow.svelte-uq7u28 {overflow:hidden;width:12px;text-indent:-6px;}`}})))()}function fc(e,t){G(e,hc);let n=q(t,`ariaLive`,3,`assertive`),r=qs(t,pc);var i=mc();gs(i,()=>({...r,role:`alert`,class:`sui alert ${t.status??``}`,"aria-live":n()}),void 0,void 0,void 0,`svelte-1pvgsts`);var a=F(i),o=e=>{var n=V();So(I(n),()=>t.icon),H(e,n)},s=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);sc(e,{get name(){return z(n)}})}};W(a,e=>{t.icon?e(o):e(s,-1)}),So(L(a,2),()=>t.children??E),D(i),H(e,i)}var pc,mc,hc;function gc(){return(gc=s((()=>{Y(),J(),dc(),pc=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`ariaLive`,`children`,`icon`]),mc=B(`<div><!> <!></div>`),hc={hash:`svelte-1pvgsts`,code:`.alert.svelte-1pvgsts {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-1pvgsts {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-1pvgsts {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-1pvgsts {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-1pvgsts {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})))()}function _c(e,t){let n=t,r=e.slice(n).match(vc);r&&(n+=r[0].length);let i=e.slice(n).match(yc);if(!i)return null;let a=i[0];if(bc.test(a))return null;n+=a.length;let o=e.slice(n).match(vc);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var vc,yc,bc,xc;function Sc(){return(Sc=s((()=>{vc=/^[\u061c\u200e\u200f\u2066-\u2069]+/,yc=/^[-.+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,bc=/^[-.0-9]/,xc=(e,t)=>e.slice(t).match(yc)?.[0]??``})))()}var Cc;function wc(){return(wc=s((()=>{Cc=Symbol.for(`CST`)})))()}var Tc,Ec,Dc,Oc,kc;function Ac(){return(Ac=s((()=>{wc(),Tc=class extends Error{type;constructor(e,t){super(t),this.type=e}},Ec=class extends Tc{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}},Dc=class extends Ec{constructor(e,t){let{start:n,end:r}=t[Cc]??{start:-1,end:-1};super(e,n,r)}},Oc=class extends Tc{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},kc=class extends Tc{source;cause;constructor(e,t){super(e,t),this.source=`�`}}})))()}function jc(e,t){if($c.startsWith(e,Qc))t&&(Qc+=e.length);else throw el(Qc,e)}function Mc(e){Qc=0,$c=e;let t=Ic();if($c.startsWith(`.match`,Qc))return Nc(t);let n=t.length>0||$c.startsWith(`{{`,Qc);!n&&Qc>0&&(Qc=0);let r=Fc(n);if(n&&(Yc(),Qc<$c.length))throw tl(`extra-content`,Qc,$c.length);return{type:`message`,declarations:t,pattern:r}}function Nc(e){Qc+=6,Yc(!0);let t=[];for(;$c[Qc]===`$`;)t.push(Wc()),Yc(!0);if(t.length===0)throw tl(`empty-token`,Qc);let n=[];for(;Qc<$c.length;)n.push(Pc()),Yc();return{type:`select`,declarations:e,selectors:t,variants:n}}function Pc(){let e=[];for(;Qc<$c.length;){Yc(e.length?`{`:!1);let t=$c[Qc];if(t===`{`)break;if(t===`*`)e.push({type:`*`}),Qc+=1;else{let t=Gc(!0);t.value=t.value.normalize(),e.push(t)}}return{keys:e,value:Fc(!0)}}function Fc(e){if(e){if($c.startsWith(`{{`,Qc))Qc+=2;else throw el(Qc,`{{`)}let t=[];loop:for(;Qc<$c.length;)switch($c[Qc]){case`{`:t.push(zc(!0));break;case`}`:if(!e)throw tl(`parse-error`,Qc);break loop;default:t.push(Hc())}if(e){if($c.startsWith(`}}`,Qc))Qc+=2;else throw el(Qc,`}}`)}return t}function Ic(){let e=[];Yc();loop:for(;$c[Qc]===`.`;){switch($c.substr(Qc,6)){case`.input`:e.push(Lc());break;case`.local`:e.push(Rc());break;case`.match`:break loop;default:throw tl(`parse-error`,Qc)}Yc()}return e}function Lc(){Qc+=6,Yc(),jc(`{`,!1);let e=Qc,t=zc(!1);if(t.type===`expression`&&t.arg?.type===`variable`)return{type:`input`,name:t.arg.name,value:t};throw tl(`bad-input-expression`,e,Qc)}function Rc(){Qc+=6,Yc(!0),jc(`$`,!0);let e=Jc();return Yc(),jc(`=`,!0),Yc(),jc(`{`,!1),{type:`local`,name:e,value:zc(!1)}}function zc(e){let t=Qc;Qc+=1,Yc();let n=Uc(!1);n&&Yc(`}`);let r=$c[Qc],i,a;switch(r){case`@`:case`}`:break;case`:`:{Qc+=1,i={type:`function`,name:qc()};let e=Bc();e&&(i.options=e);break}case`#`:case`/`:{if(n||!e)throw tl(`parse-error`,Qc);Qc+=1,a={type:`markup`,kind:r===`#`?`open`:`close`,name:qc()};let t=Bc();t&&(a.options=t);break}default:throw tl(`parse-error`,Qc)}let o=Vc();if(a?.kind===`open`&&$c[Qc]===`/`&&(a.kind=`standalone`,Qc+=1),jc(`}`,!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 tl(`empty-token`,t,Qc);return o?{type:`expression`,arg:n,attributes:o}:{type:`expression`,arg:n}}function Bc(){Yc(`/}`);let e={},t=!0;for(;Qc<$c.length;){let n=$c[Qc];if(n===`@`||n===`/`||n===`}`)break;let r=Qc,i=qc();if(Object.hasOwn(e,i))throw tl(`duplicate-option-name`,r,Qc);Yc(),jc(`=`,!0),Yc(),e[i]=Uc(!0),t=!1,Yc(`/}`)}return t?null:e}function Vc(){let e={},t=!0;for(;$c[Qc]===`@`;){let n=Qc;Qc+=1;let r=qc();if(Object.hasOwn(e,r))throw tl(`duplicate-attribute`,n,Qc);Yc(`=/}`),$c[Qc]===`=`?(Qc+=1,Yc(),e[r]=Gc(!0),Yc(`/}`)):e[r]=!0,t=!1}return t?null:e}function Hc(){let e=``,t=Qc;loop:for(;t<$c.length;++t)switch($c[t]){case`\\`:{let n=$c[t+1];if(!`\\{|}`.includes(n))throw tl(`bad-escape`,t,t+2);e+=$c.substring(Qc,t)+n,t+=1,Qc=t+1;break}case`{`:case`}`:break loop}return e+=$c.substring(Qc,t),Qc=t,e}function Uc(e){return $c[Qc]===`$`?Wc():Gc(e)}function Wc(){return Qc+=1,{type:`variable`,name:Jc()}}function Gc(e){if($c[Qc]===`|`)return Kc();let t=xc($c,Qc);if(!t){if(e)throw tl(`empty-token`,Qc);return}return Qc+=t.length,{type:`literal`,value:t}}function Kc(){Qc+=1;let e=``;for(let t=Qc;t<$c.length;++t)switch($c[t]){case`\\`:{let n=$c[t+1];if(!`\\{|}`.includes(n))throw tl(`bad-escape`,t,t+2);e+=$c.substring(Qc,t)+n,t+=1,Qc=t+1;break}case`|`:return e+=$c.substring(Qc,t),Qc=t+1,{type:`literal`,value:e}}throw el($c.length,`|`)}function qc(){let e=Jc();return $c[Qc]===`:`?(Qc+=1,e+`:`+Jc()):e}function Jc(){let e=_c($c,Qc);if(!e)throw tl(`empty-token`,Qc);return Qc=e.end,e.value}function Yc(e=!1){let t=$c[Qc],n=!1;if(e){for(;Xc.has(t);)t=$c[++Qc];for(;Zc.has(t);)t=$c[++Qc],n=!0}for(;Xc.has(t)||Zc.has(t);)t=$c[++Qc];if(e&&!n&&(e===!0||!e.includes($c[Qc])))throw el(Qc,`' '`)}var Xc,Zc,Qc,$c,el,tl;function nl(){return(nl=s((()=>{Sc(),Ac(),Xc=new Set(``),Zc=new Set(`
|
||
\r `),el=(e,t)=>new Ec(`missing-syntax`,e,e+t.length,t),tl=(...e)=>new Ec(...e)})))()}function rl(e,t){let{node:n,pattern:r}=t,{functionRef:i=n,attributes:a=null,declaration:o=n,expression:s=n,key:c=n,markup:l=n,options:u=null,value:d=n,variant:f=n}=t,p=(e,t)=>{if(e){let n=u?.(e,t);if(d)for(let n of Object.values(e))d(n,t,`option`);n?.()}},m=(e,t)=>{if(e){let n=a?.(e,t);if(d)for(let n of Object.values(e))n!==!0&&d(n,t,`attribute`);n?.()}},h=(e,t)=>{if(typeof e==`object`){let n;switch(e.type){case`expression`:if(n=s?.(e,t),e.arg&&d?.(e.arg,t,`arg`),e.functionRef){let n=i?.(e.functionRef,t,e.arg);p(e.functionRef.options,t),n?.()}m(e.attributes,t);break;case`markup`:n=l?.(e,t),p(e.options,t),m(e.attributes,t)}n?.()}},g=e=>{let t=r?.(e);for(let t of e)h(t,`placeholder`);t?.()};for(let t of e.declarations){let e=o?.(t);t.value&&h(t.value,`declaration`),e?.()}if(e.type===`message`)g(e.pattern);else{if(d)for(let t of e.selectors)d(t,`selector`,`arg`);for(let t of e.variants){let e=f?.(t);c&&t.keys.forEach(c),g(t.value),e?.()}}}function il(e,t=(e,t)=>{throw new Dc(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;rl(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}}function al(){return(al=s((()=>{Ac()})))()}function ol(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 sl.includes(n)?`rtl`:`ltr`}catch{}return`auto`}var sl;function cl(){return(cl=s((()=>{sl=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`})))()}function ll(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 ul(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 dl(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`string`)return e;if(e&&typeof e==`object`)return String(e);throw RangeError(`Not a string`)}function fl(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 kc(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function pl(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],ol(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(r*=typeof r==`bigint`?100n:100);let i=String(r);if(e.has(i))return i;if(n.select===`exact`)return null;let o=n.select?{...n,select:void 0,type:n.select}:n;return c??=new Intl.PluralRules(a,o).select(Number(r)),e.has(c)?c:null}:void 0,toParts(){s??=new Intl.NumberFormat(a,n);let e=s.formatToParts(t);return o??=s.resolvedOptions().locale,i??=ol(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 ml(e,t,n){let r=fl(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]=ul(r);break;case`roundingMode`:case`roundingPriority`:case`select`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:a[n]=dl(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :number option ${n}`)}return pl(e,i,a,!0)}function hl(e,t,n){let r=fl(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]=ul(r);break;case`select`:case`signDisplay`:case`useGrouping`:a[n]=dl(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :integer option ${n}`)}return pl(e,i,a,!0)}function gl(){return(gl=s((()=>{cl(),Ac()})))()}function _l(e,t,n){let r=fl(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]=dl(r);break;case`minimumIntegerDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=ul(r);break;case`currencyDisplay`:{let t=dl(r);t===`never`?e.onError(`unsupported-operation`,`Currency display "never" is not yet supported`):i[n]=t;break}case`fractionDigits`:{let e=dl(r);if(e===`auto`)i.minimumFractionDigits=void 0,i.maximumFractionDigits=void 0;else{let t=ul(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 kc(`bad-operand`,`A currency code is required for :currency`);return pl(e,r.value,i,!1)}function vl(){return(vl=s((()=>{Ac(),gl()})))()}function yl(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 kc(`bad-operand`,`Input is not a valid date`);if(n.calendar!==void 0)try{i.calendar=dl(n.calendar)}catch{t.onError(`bad-option`,`Invalid :${e} calendar option value`)}if(n.hour12!==void 0&&e!==`date`)try{i.hour12=ll(n.hour12)}catch{t.onError(`bad-option`,`Invalid :${e} hour12 option value`)}if(n.timeZone!==void 0){let r;try{r=dl(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 kc(`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=bl(t,n,r,xl)??`year-month-day`,s=bl(t,n,a,Sl),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(bl(t,n,e===`time`?`precision`:`timePrecision`,Cl)){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=bl(t,n,`timeZoneStyle`,wl)}let o=new Intl.DateTimeFormat(t.locales,i),s=t.dir,c,l;return{type:`datetime`,get dir(){return s??=(c??=o.resolvedOptions().locale,ol(c)),s},get options(){return{...i}},toParts(){let e=o.formatToParts(a);return c??=o.resolvedOptions().locale,s??=ol(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 bl(e,t,n,r){let i=t[n];if(i!==void 0)try{let e=dl(i);if(r&&!r.has(e))throw Error();return e}catch{e.onError(`bad-option`,`Invalid value for ${n} option`)}}var xl,Sl,Cl,wl,Tl,El,Dl;function Ol(){return(Ol=s((()=>{cl(),Ac(),xl=new Set([`weekday`,`day-weekday`,`month-day`,`month-day-weekday`,`year-month-day`,`year-month-day-weekday`]),Sl=new Set([`long`,`medium`,`short`]),Cl=new Set([`hour`,`minute`,`second`]),wl=new Set([`long`,`short`]),Tl=(e,t,n)=>yl(`datetime`,e,t,n),El=(e,t,n)=>yl(`date`,e,t,n),Dl=(e,t,n)=>yl(`time`,e,t,n)})))()}function kl(e,t,n){let{value:r,options:i}=fl(n),a;try{a=`add`in t?ul(t.add):-1}catch{throw new kc(`bad-option`,`Value ${t.add} is not valid for :offset option add`)}let o;try{o=`subtract`in t?ul(t.subtract):-1}catch{throw new kc(`bad-option`,`Value ${t.subtract} is not valid for :offset option subtract`)}if(a<0==o<0)throw new kc(`bad-option`,`Exactly one of "add" or "subtract" is required as an :offset option`);let s=a<0?-o:a;return r+=typeof r==`number`?s:BigInt(s),ml(e,{},{valueOf:()=>r,options:i})}function Al(){return(Al=s((()=>{Ac(),gl()})))()}function jl(e,t,n){let r=fl(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]=dl(r);break;case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:i[n]=ul(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :percent option ${n}`)}return pl(e,r.value,i,!0)}function Ml(){return(Ml=s((()=>{gl()})))()}function Nl(e,t,n){let r=n===void 0?``:String(n),i=r.normalize();return{type:`string`,dir:e.dir??`auto`,selectKey:e=>e.has(i)?i:null,toParts(){let{dir:t}=e,n=e.locales[0];return t===`ltr`||t===`rtl`?[{type:`string`,dir:t,locale:n,value:r}]:[{type:`string`,locale:n,value:r}]},toString:()=>r,valueOf:()=>r}}function Pl(e,t,n){let r=fl(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]=dl(r);break;case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=ul(r)}}catch(t){t instanceof Tc?e.onError(t):e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.unit)throw new kc(`bad-operand`,`A unit identifier is required for :unit`);return pl(e,r.value,i,!1)}function Fl(){return(Fl=s((()=>{Ac(),gl()})))()}var Il,Ll;function Rl(){return(Rl=s((()=>{vl(),Ol(),gl(),Al(),Ml(),Fl(),Il={integer:hl,number:ml,offset:kl,string:Nl},Il=Object.freeze(Object.assign(Object.create(null),Il)),Ll={currency:_l,date:El,datetime:Tl,percent:jl,time:Dl,unit:Pl},Ll=Object.freeze(Object.assign(Object.create(null),Ll))})))()}var zl;function Bl(){return(Bl=s((()=>{zl=Symbol(`bidi-isolate`)})))()}var Vl;function Hl(){return(Hl=s((()=>{Vl=(e=`�`)=>({type:`fallback`,source:e,toParts:()=>[{type:`fallback`,source:e}],toString:()=>`{${e}}`})})))()}var Ul;function Wl(){return(Wl=s((()=>{Ul=(e,t)=>({type:`unknown`,source:e,dir:`auto`,toParts:()=>[{type:`unknown`,value:t}],toString:()=>String(t),valueOf:()=>t})})))()}var Gl;function Kl(){return(Kl=s((()=>{Ac(),ou(),Gl=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(iu(e,r));if(t===`ltr`||t===`rtl`||t===`auto`)this.dir=t;else if(t!==`inherit`){let t=new kc(`bad-option`,`Unsupported value for u:dir option`);t.source=au(r),e.onError(t)}}let i=n&&Object.hasOwn(n,`u:id`)?n[`u:id`]:void 0;if(this.id=i?String(iu(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 kc?n=e:typeof e==`string`&&typeof t==`string`?n=new kc(e,t):(n=new kc(`function-error`,String(e)),n.cause=e),n.source=this.#n,this.#e.onError(n)}}})))()}function ql(e,t,{name:n,options:r}){let i=`:${n}`,a=au(t)??i;try{let o=t?[iu(e,t)]:[],s=e.functions[n];if(!s)throw new Oc(`unknown-function`,`Unknown function ${i}`,a);let c=new Gl(e,a,r),l=s(c,Jl(e,r),...o);if(typeof l!=`object`||!l||typeof l.type!=`string`)throw new Oc(`bad-function-result`,`Function ${i} did not return a MessageValue`,a);let u={source:a};return c.dir&&(u.dir=c.dir,u[zl]=!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 Tc?t:new Oc(`bad-function-result`,String(t),a,t)),Vl(a)}}function Jl(e,t){let n=Object.create(null);if(t)for(let[r,i]of Object.entries(t))r.startsWith(`u:`)||(n[r]=iu(e,i));return n}function Yl(){return(Yl=s((()=>{Ac(),Hl(),Bl(),Kl(),ou()})))()}function Xl(e,{arg:t,functionRef:n}){if(n)return ql(e,t,n);switch(t?.type){case`literal`:{let n=`|${t.value}|`,r=Nl(new Gl(e,n),{},t.value);return r.source=n,r}case`variable`:return eu(e,t);default:throw Error(`Unsupported expression: ${t?.type}`)}}function Zl(){return(Zl=s((()=>{Kl(),Yl(),ru()})))()}function Ql(e,t){if(nu(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 Ql(e[r],i)}}for(let[n,r]of Object.entries(e))if(n.normalize()===t)return r}}function $l(e,{name:t}){let n=Ql(e.scope,t);if(n===void 0){let n=`$`+t,r=`Variable not available: ${n}`;e.onError(new Oc(`unresolved-variable`,r,n))}else if(n instanceof tu){let r=Xl(n.scope?{...e,scope:n.scope}:e,n.expression);return e.scope[t]=r,e.localVars.add(r),r}return n}function eu(e,t){let n=`$`+t.name,r=$l(e,t);if(r===void 0)return Vl(n);let i=typeof r;if(i===`object`){let t=r;if(t.type===`fallback`)return Vl(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 Ul(n,r)}let o=new Gl(e,n),s=a(o,{},r);return s.source=n,s}var tu,nu;function ru(){return(ru=s((()=>{Ac(),Hl(),Wl(),Kl(),Zl(),tu=class{expression;scope;constructor(e,t){this.expression=e,this.scope=t}},nu=e=>e!==null&&(typeof e==`object`||typeof e==`function`)})))()}function iu(e,t){switch(t.type){case`literal`:return t.value;case`variable`:return $l(e,t);default:throw Error(`Unsupported value: ${t.type}`)}}function au(e){switch(e?.type){case`literal`:return`|`+e.value.replaceAll(`\\`,`\\\\`).replaceAll(`|`,`\\|`)+`|`;case`variable`:return`$`+e.name;default:return}}function ou(){return(ou=s((()=>{ru()})))()}function su(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 kc(`bad-option`,`The option ${t} is not valid for markup`);r.source=au(n),e.onError(r)}else{let r=iu(e,n);typeof r==`object`&&typeof r?.valueOf==`function`&&(r=r.valueOf()),t===`u:id`?i.id=String(r):i.options[t]=r}}return i}function cu(){return(cu=s((()=>{Ac(),ou()})))()}function lu(e,t){if(t.type===`message`)return t.pattern;let n=t.selectors.map(t=>{let n=eu(e,t),r;return typeof n.selectKey==`function`?r=n.selectKey.bind(n):(e.onError(new Oc(`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 Oc(`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 Oc(`no-match`,`No variant was selected!?`,`.match`)),[])}function uu(){return(uu=s((()=>{Ac(),ru()})))()}var du;function fu(){return(fu=s((()=>{nl(),al(),cl(),Ac(),Rl(),Bl(),cu(),Zl(),ru(),uu(),du=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??ol(this.#r[0]),this.#i=typeof t==`string`?Mc(t):t,il(this.#i),this.#a=n?.functions?Object.assign(Object.create(null),Il,n.functions):Il}format(e,t){let n=this.#o(e,t),r=``;for(let e of lu(n,this.#i))if(typeof e==`string`)r+=e;else if(e.type===`markup`)su(n,e);else{let t;try{if(t=Xl(n,e),typeof t.toString==`function`){if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[zl])){let e=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r+=e+t.toString()+``}else r+=t.toString()}else{let e=new kc(`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 lu(n,this.#i))if(typeof e==`string`)r.push({type:`text`,value:e});else if(e.type===`markup`)r.push(su(n,e));else{let t;try{if(t=Xl(n,e),typeof t.toParts==`function`){let e=t.toParts();if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[zl])){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 kc(`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 tu(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}}}})))()}function pu(){return(pu=s((()=>{fu()})))()}function mu(){return(mu=s((()=>{J(),Er(),jt(),Zi()})))()}function hu(){return(hu=s((()=>{Er(),jt(),Zi()})))()}var gu;function _u(){return(_u=s((()=>{Er(),jt(),Zi(),gu=class extends Map{#e=new Map;#t=N(0);#n=N(0);#r=Xi||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return Xi===this.#r?N(e):vr(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),xr(o);else if(i!==t){xr(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&xr(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),xr(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);xr(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}}})))()}function vu(){return(vu=s((()=>{Er(),jt(),Zi(),yu()})))()}function yu(){return(yu=s((()=>{Er(),jt(),Zi(),vu()})))()}function bu(){return(bu=s((()=>{Ta()})))()}function xu(){return(xu=s((()=>{jn()})))()}function Su(){return(Su=s((()=>{bu(),xu()})))()}function Cu(){return(Cu=s((()=>{mu(),hu(),_u(),yu(),vu(),Su(),jn()})))()}var wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,X;function Z(){return(Z=s((()=>{J(),pu(),Rl(),Cu(),Intl.MessageFormat??=du,wu=N(``),Tu=Dr([]),Eu=Dr({}),Du=``,Ou=``,Au=new Set([`ar`,`arc`,`ckb`,`dv`,`fa`,`ha`,`he`,`khw`,`ks`,`ku`,`nqo`,`ps`,`sd`,`ug`,`ur`,`yi`]),ju=e=>e.textInfo?.direction??(Au.has(e.language)?`rtl`:`ltr`),Mu=(e=z(wu))=>{if(!e)return!1;try{return ju(new Intl.Locale(e))===`rtl`}catch{return!1}},Nu=(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}},Pu=(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,Pu(r,i)):e[i]=r,e},Object.create(null)),Fu=e=>{Tu.includes(e)||(Tu.push(e),Ou=Nu(Du,Tu))},Iu=(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})`)}),Fu(e),Eu[e]??={},t.forEach(t=>{Object.entries(Pu(t)).forEach(([t,n])=>{Eu[e][t]=new Intl.MessageFormat(e,String(n),{functions:Ll})})}),z(wu)&&!Tu.includes(z(wu))&&Bu.set(z(wu))},Lu=new gu,Ru=new gu,zu=(e=z(wu))=>{if(typeof e!=`string`)throw TypeError(`waitLocale: localeCode must be a string (got ${typeof e})`);if(!e)return Promise.resolve();if(!Ru.has(e)){let t=Lu.get(e);if(t){let n=Promise.resolve(t()).then(t=>{Iu(e,t)},()=>{Ru.delete(e),z(wu)===e&&!Eu[e]&&Ou&&P(wu,Ou,!0)});Ru.set(e,n)}else Ru.set(e,Promise.resolve())}return Ru.get(e)??Promise.resolve()},Bu={get current(){return z(wu)},set(e){if(typeof e!=`string`)throw TypeError(`locale.set: value must be a string (got ${typeof e})`);let t=Tu.length?Nu(e,Tu):e;if(e&&Tu.length&&!Tu.includes(t)&&Ou&&Tu.includes(Ou)&&(t=Ou),P(wu,t,!0),typeof document<`u`&&t){document.documentElement.lang=t;try{let e=new Intl.Locale(t);document.documentElement.dir=ju(e)}catch{}}return zu(t)}},Vu=(e,t)=>{if(typeof e!=`string`||!e)throw TypeError(`register: localeCode must be a non-empty string (got ${JSON.stringify(e)})`);if(typeof t!=`function`)throw TypeError(`register: loader must be a function (got ${typeof t})`);Lu.set(e,t),Ru.delete(e),Fu(e),z(wu)&&!Tu.includes(z(wu))&&Bu.set(z(wu))},Hu=()=>typeof navigator>`u`?void 0:navigator.languages?.[0]??navigator.language,Uu=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})`);Du=e.fallbackLocale,Ou=Nu(Du,Tu),ku=e.handleMissingMessage,e.formats,e.initialLocale&&Bu.set(e.initialLocale)},X=(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 X(t,{values:n,locale:r,default:i})}let i=n??z(wu),a=Ou,o=Eu[i]?.[e]?.format(t)??(i===a?void 0:Eu[a]?.[e]?.format(t));if(o!==void 0)return o;if(ku){let t=ku(e,i,r);if(t!==void 0)return t}return r??e}})))()}var Wu,Gu,Ku,qu,Ju,Yu,Xu;function Zu(){return(Zu=s((()=>{Gu=()=>(Wu??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Wu),Ku=[`Ctrl`,`Meta`,`Alt`,`Shift`],qu=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}`)]),Ju=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:qu.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),Yu=(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,Gu()?`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=>!Ku.includes(e)).every(t=>Ju(t,e))})},Xu=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,Gu()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!Yu(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 Qu(e,t){G(e,ed);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=$u();So(F(i),()=>r()??E),D(i),R(()=>ss(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var $u,ed;function td(){return(td=s((()=>{Y(),J(),$u=B(`<span role="none" class="sui truncated-text svelte-1aaxcpn"><!></span>`),ed={hash:`svelte-1aaxcpn`,code:`.truncated-text.svelte-1aaxcpn {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})))()}var nd;function rd(){return(rd=s((()=>{nd=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)})})))()}function id(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")}function ad(e,t,n){n||={};let r,i;switch(t){case`RFC3548`:case`RFC4648`:r=od,i=!0;break;case`RFC4648-HEX`:r=sd,i=!0;break;case`Crockford`:r=cd,i=!1;break;default:throw Error(`Unknown base32 variant: `+t)}let a=n.padding===void 0?i:n.padding,o=id(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 od,sd,cd;function ld(){return(ld=s((()=>{od=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,sd=`0123456789ABCDEFGHIJKLMNOPQRSTUV`,cd=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`})))()}var ud,dd,fd,pd;function md(){return(md=s((()=>{ld(),ud=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,dd=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},fd=()=>{let e=dd().replaceAll(`-`,``),{buffer:t}=new Uint8Array(e.match(/../g).map(e=>parseInt(e,16)));return ad(t,`RFC4648`,{padding:!1}).toLowerCase()},pd=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(``)}})))()}var hd,gd,_d,vd,yd,bd,xd,Sd;function Cd(){return(Cd=s((()=>{md(),_d=(e=`e`,t=7)=>[e,dd(t)].join(`-`),vd=e=>{hd?.delete(e),gd?.unobserve(e)},yd=()=>{if(`IntersectionObserver`in globalThis)return gd||(hd=new WeakMap,gd=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=hd?.get(t);n&&(n(),vd(t))})}),gd)},bd=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},xd=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},Sd=e=>{let t=yd();if(t)return bd(e)?Promise.resolve(void 0):new Promise(n=>{hd?.set(e,n),xd(()=>{t.observe(e)})})}})))()}var wd,Td;function Ed(){return(Ed=s((()=>{J(),Cd(),rd(),bu(),wd=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(()=>{let{activeElement:e}=document;(!e||e===document.body||this.popupElement?.contains(e))&&this.anchorElement.focus()}),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Dr({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 n=this.contentElement??this.popupElement?.querySelector(`.content`)??null;if(!n)return;let{scrollHeight:r,scrollWidth:i}=n,a=e.top-8,o=t.height-e.bottom-8,{position:s}=this,c;document.dir===`rtl`&&(s.endsWith(`-left`)?s=s.replace(`-left`,`-right`):s.endsWith(`-right`)&&(s=s.replace(`-right`,`-left`)),s.startsWith(`left-`)?s=s.replace(`left-`,`right-`):s.startsWith(`right-`)&&(s=s.replace(`right-`,`left-`))),s.startsWith(`bottom-`)&&r>o&&(a>o?(s=s.replace(`bottom-`,`top-`),c=a):c=o),s.endsWith(`-left`)&&e.left+i>t.width-8&&(s=s.replace(`-left`,`-right`)),s.endsWith(`-right`)&&e.right-i<8&&(s=s.replace(`-right`,`-left`));let l={inset:[s.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:s.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,s.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:s.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,s.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:s.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,s.startsWith(`right-`)?`${Math.round(e.right)}px`:s.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:s.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:c?`${Math.round(c)}px`:`auto`};(l.inset!==this.style.inset||l.zIndex!==this.style.zIndex||l.minWidth!==this.style.minWidth||l.maxWidth!==this.style.maxWidth||l.height!==this.style.height)&&(this.style=l)})});popupElement=void 0;contentElement=void 0;#n=void 0;constructor(e,t,n,r){this.anchorElement=e,this.position=n,this.positionBaseElement=r??e,this.id=_d(`popup`),this.anchorElement.setAttribute(`aria-expanded`,`false`),ga(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ga(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)}),ga(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement),t&&this.attachPopupElement(t)}attachPopupElement(e,t){if(this.popupElement===e&&this.contentElement===t)return;this.detachPopupElement(),this.popupElement=e,this.contentElement=t;let n=t??e;n.id=this.id,this.anchorElement.setAttribute(`aria-controls`,this.id);let r=ga(e,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),i=ga(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)});this.#n=()=>{r(),i()}}detachPopupElement(){this.#n?.(),this.#n=void 0,this.anchorElement.getAttribute(`aria-controls`)===this.id&&this.anchorElement.removeAttribute(`aria-controls`),this.popupElement=void 0,this.contentElement=void 0}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.popupElement&&(this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement))}async hideImmediately(){this.popupElement&&(this.popupElement.hidden=!0),this.open=!1,await nd(50),this.popupElement&&(this.popupElement.hidden=!1)}destroy(){this.detachPopupElement(),this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Td=(...e)=>new wd(...e)})))()}function Dd(e,t){var n=V();So(I(n),()=>t.children??E),H(e,n)}function Od(){return(Od=s((()=>{Y(),J()})))()}function kd(e,t){O(t,!0),G(e,Nd);let n=e=>{var n=V(),l=I(n),d=e=>{var n=Md(),l=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},d=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};gs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:l,oncancel:d,[ys]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-1n531w9`);var f=F(n);So(f,()=>t.extraContent??E),So(L(f,2),()=>t.children??E),D(n),Bs(n,e=>i(e),()=>i()),H(e,n)};W(l,e=>{z(v)&&e(d)}),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=qs(t,jd),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=N(0),_=Pt(Ad);Ft(Ad,{retain:()=>{Ri(()=>{P(g,z(g)+1)})},release:()=>{Ri(()=>{P(g,z(g)-1)})}});let v=M(()=>l()||z(h)||z(g)>0),y=!1,b=0,x=e=>Math.max(0,...e.split(`,`).map(e=>Number.parseFloat(e)||0))*1e3,S=async()=>{if(await Fi(),!i())return;let{transitionDuration:e,transitionDelay:t}=getComputedStyle(i()),n=x(e)+x(t)+100,r=new AbortController,{signal:a}=r;i().addEventListener(`transitionend`,e=>{e.target===i()&&r.abort()},{signal:a});let o=window.setTimeout(()=>r.abort(),n);await new Promise(e=>{a.addEventListener(`abort`,()=>e(void 0))}),window.clearTimeout(o)},C=async()=>{if(y)return;y=!0,b+=1;let e=b;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),await Fi(),!(e!==b||!i()||i().open)&&(i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),i().getBoundingClientRect(),P(p,!0),await S(),e===b&&P(m,!0))},w=async()=>{if(!y)return;y=!1,b+=1;let e=b,n=z(p),r=i()?.returnValue??``;t.onClosing?.(new CustomEvent(`Closing`)),i()?.open&&(document.body.inert=!0,i().close(),document.body.inert=!1),P(m,!1),P(p,!1),n&&await S(),e===b&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i()&&i(i().returnValue=``,!0))},T=It();return rc(()=>{let e=Fa(Dd,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n},context:T});return()=>{i()?.close(),La(e)}}),Zr(()=>{r()?C():w()}),Zr(()=>{if(z(h))return _?.retain(),()=>{_?.release()}}),k({focus:d,close:f})}var Ad,jd,Md,Nd;function Pd(){return(Pd=s((()=>{Y(),J(),oc(),Od(),Ad=Symbol(`sui-modal-retainer`),jd=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Md=B(`<dialog><!> <!></dialog>`),Nd={hash:`svelte-1n531w9`,code:`dialog.svelte-1n531w9 {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-1n531w9::backdrop {background:transparent;}dialog.backdrop.svelte-1n531w9 {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-1n531w9 {transition-duration:50ms;opacity:1;}dialog.svelte-1n531w9:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-1n531w9 {transition-duration:1ms !important;}dialog.svelte-1n531w9:not(.active) {pointer-events:none !important;}dialog.svelte-1n531w9:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}})))()}function Fd(e,t){O(t,!0),G(e,Rd);let n=e=>{var n=Ld();let o,s;So(F(n),()=>t.children??E),D(n),Bs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=is(n,1,`content ${t.class??``} ${z(m)??``}`,`svelte-1wlkzzs`,o,{touch:z(_)}),s=ss(n,``,s,{inset:z(h)?.style.inset,"z-index":z(h)?.style.zIndex,"min-width":z(h)?.style.minWidth,"max-width":z(h)?.style.maxWidth,"max-height":z(h)?.style.height,visibility:z(h)?.style.inset?void 0:`hidden`})}),_a(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(g)}),_a(`mouseleave`,n,()=>{i(!1),l()&&(g=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=qs(t,Id),f=N(void 0),p=N(!1),m=N(void 0),h=N(void 0),g=0;Zr(()=>{z(h)&&r(z(h).open)}),Zr(()=>{l()&&!z(f)&&a()&&(P(f,l()),z(f).append(a()))}),Zr(()=>{t.anchor&&!z(h)&&(P(h,Td(t.anchor,void 0,s(),c()),!0),P(m,t.anchor.getAttribute(`aria-haspopup`)??void 0,!0))}),Zr(()=>{if(z(h)&&z(f)&&a())return z(h).attachPopupElement(z(f),a()),()=>{z(h)?.detachPopupElement()}}),Zr(()=>{r()&&z(f)&&z(h)?.checkPosition()});let _=M(()=>u()&&z(p));rc(()=>(P(p,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(h)?.destroy?.(),globalThis.clearTimeout(g)}));var v=V(),y=I(v),b=e=>{n(e)},x=e=>{{let i=M(()=>o()??z(_));kd(e,Js(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,onOpen:async e=>{if(t.onOpen?.(e),await nd(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(f)},set dialog(e){P(f,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};W(y,e=>{l()?e(b):e(x,-1)}),H(e,v),k()}var Id,Ld,Rd;function zd(){return(zd=s((()=>{Y(),J(),rd(),oc(),Ed(),Pd(),Id=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Ld=B(`<div role="none"><!></div>`),Rd={hash:`svelte-1wlkzzs`,code:`.content.svelte-1wlkzzs {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-1wlkzzs {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-1wlkzzs .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-1wlkzzs {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-1wlkzzs .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-1wlkzzs {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-1wlkzzs {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-1wlkzzs {transform:scale(90%);}.content.touch.combobox.svelte-1wlkzzs .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-1wlkzzs {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-1wlkzzs {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}})))()}function Bd(e,t){O(t,!0),G(e,Gd);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=qs(t,Vd);var w=Wd(),T=I(w);gs(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(),[ys]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-887riy`);var ee=F(T);So(ee,()=>t.startIcon??E);var te=L(ee,2),ne=e=>{var n=V(),r=I(n),i=e=>{var t=Hd();Qu(F(t),{get lines(){return h()},children:(e,t)=>{mt();var n=ja();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)},a=e=>{var n=Hd();So(F(n),()=>t.children??E),D(n),H(e,n)};W(r,e=>{m()?e(i):e(a,-1)}),H(e,n)},re=e=>{var n=Ud(),r=I(n),i=e=>{var t=Hd();Qu(F(t),{get lines(){return h()},children:(e,t)=>{mt();var n=ja();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)};W(r,e=>{m()&&e(i)}),So(L(r,2),()=>t.children??E),H(e,n)};W(te,e=>{g()===`link`?e(ne):e(re,-1)}),So(L(te,2),()=>t.endIcon??E),D(T),Bs(T,e=>n(e),()=>n()),Ko(T,()=>Xu(p()));var ie=L(T,2),ae=e=>{Fd(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();So(I(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(ie,e=>{t.popup&&e(ae)}),H(e,w),k()}var Vd,Hd,Ud,Wd,Gd;function Kd(){return(Kd=s((()=>{Y(),J(),Zu(),td(),zd(),Vd=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(`.`)),Hd=B(`<span role="none" class="label svelte-887riy"><!></span>`),Ud=B(`<!> <!>`,1),Wd=B(`<button><!> <!> <!></button> <!>`,1),Gd={hash:`svelte-887riy`,code:`button.svelte-887riy {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-887riy {display:none !important;}button.svelte-887riy:not(:disabled):focus-visible {z-index:1;}button.svelte-887riy:is(.primary:where(.svelte-887riy), .secondary:where(.svelte-887riy), .tertiary:where(.svelte-887riy), .ghost:where(.svelte-887riy)) {justify-content:center;border-width:1px;}button.svelte-887riy:is(.primary:where(.svelte-887riy), .secondary:where(.svelte-887riy), .tertiary:where(.svelte-887riy), .ghost:where(.svelte-887riy)) .label:where(.svelte-887riy):only-child {padding:0 4px;}button.primary.svelte-887riy {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-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus-visible, [aria-expanded=true]:where(.svelte-887riy)) {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-887riy: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-887riy {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-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus-visible, [aria-expanded=true]:where(.svelte-887riy)) {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-887riy: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-887riy {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-887riy {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-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus-visible, [aria-expanded=true]:where(.svelte-887riy)) {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-887riy: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-887riy {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-887riy {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus-visible, [aria-expanded=true]:where(.svelte-887riy)) {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-887riy: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-887riy {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-887riy {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-887riy .label:where(.svelte-887riy) {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-887riy .label:where(.svelte-887riy) {text-decoration:underline;}button.link.svelte-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus, :where(.svelte-887riy):active) .label:where(.svelte-887riy) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-887riy {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-887riy .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-887riy {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-887riy {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-887riy {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-887riy:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-887riy {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-887riy {background-color:var(--sui-error-background-color);}button.svelte-887riy .label:where(.svelte-887riy) {padding:0 4px;}button.svelte-887riy > * {pointer-events:none;}button.svelte-887riy :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}})))()}function qd(e,t){O(t,!0),G(e,Xd);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=Yd(),c=F(t),l=F(c),u=e=>{var t=V();So(I(t),s),H(e,t)},d=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());sc(e,{get name(){return z(t)}})}};W(l,e=>{s()?e(u):e(d,-1)}),So(L(l,2),()=>o()??E),D(c);var f=L(c,2),p=e=>{var t=Jd(),r=F(t);{let e=M(()=>X(`_sui.dismiss`));Bd(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{sc(e,{name:`close`})},$$slots:{default:!0}})}D(t),H(e,t)};W(f,e=>{r()&&e(p)}),D(t),R(()=>{is(t,1,`infobar ${i()??``}`,`svelte-dkgtu3`),K(c,`aria-live`,a())}),H(e,t)};W(l,e=>{n()&&e(u)}),H(e,c),k()}var Jd,Yd,Xd;function Zd(){return(Zd=s((()=>{Y(),J(),Z(),Kd(),dc(),Jd=B(`<div role="none"><!></div>`),Yd=B(`<div role="none"><div role="alert" class="message svelte-dkgtu3"><!> <!></div> <!></div>`),Xd={hash:`svelte-dkgtu3`,code:`.infobar.svelte-dkgtu3 {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-dkgtu3 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-dkgtu3 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-dkgtu3 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-dkgtu3 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-dkgtu3 {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-dkgtu3 button {font-size:inherit !important;}.message.svelte-dkgtu3 .icon {font-size:16px; /* !hardcoded */}`}})))()}function iee(e,t){G(e,ef);let n=qs(t,Qd);var r=$d();gs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-5x0z2s`),So(F(r),()=>t.children??E),D(r),H(e,r)}var Qd,$d,ef;function tf(){return(tf=s((()=>{Y(),J(),Qd=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),$d=B(`<div><!></div>`),ef={hash:`svelte-5x0z2s`,code:`.bottom-navigation.svelte-5x0z2s {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-5x0z2s:is([inert]:where(.svelte-5x0z2s), [hidden]:where(.svelte-5x0z2s)) {display:none;}.bottom-navigation.svelte-5x0z2s .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}})))()}function nf(e,t){G(e,of);let n=q(t,`ariaLabel`,3,void 0),r=qs(t,rf);var i=af();gs(i,()=>({...r,role:`group`,class:`sui button-group ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-np9zrs`),So(F(i),()=>t.children??E),D(i),H(e,i)}var rf,af,of;function sf(){return(sf=s((()=>{Y(),J(),rf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),af=B(`<div><!></div>`),of={hash:`svelte-np9zrs`,code:`.button-group.svelte-np9zrs {flex:none;display:inline-flex;align-items:center;}`}})))()}function cf(e,t){G(e,uf);let n=q(t,`children`,3,void 0);var r=lf();So(F(r),()=>n()??E),D(r),H(e,r)}var lf,uf;function df(){return(df=s((()=>{Y(),J(),lf=B(`<div role="none" class="sui floating-action-button-wrapper svelte-fx2tre"><!></div>`),uf={hash:`svelte-fx2tre`,code:`.floating-action-button-wrapper.svelte-fx2tre {display:contents;}
|
||
@media (width < 768px) {.floating-action-button-wrapper.svelte-fx2tre {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-fx2tre button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-fx2tre button .icon {font-size:32px;}
|
||
}`}})))()}var ff,pf,mf,hf,gf;function _f(){return(_f=s((()=>{J(),oc(),ff=Symbol(`sui-option-registry`),pf=class{#e=N(!1);get expanded(){return z(this.#e)}set expanded(e){P(this.#e,e,!0)}#t=N([]);get count(){return z(this.#t).length}get selectedEntry(){return z(this.#t).find(e=>e.selected)}register(e){return P(this.#t,[...z(this.#t),e]),()=>{P(this.#t,z(this.#t).filter(t=>t!==e))}}find(e){return z(this.#t).find(t=>t.value===e)}selectOnly(e){z(this.#t).forEach(t=>{let n=t.value===e;t.selected!==n&&(t.selected=n)})}},mf=()=>Ft(ff,new pf),hf=()=>Pt(ff),gf=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}}})))()}var vf,yf,bf,xf,Sf,Cf,wf,Tf;function Ef(){return(Ef=s((()=>{J(),Z(),Cd(),rd(),_f(),vf=/\p{Diacritic}/gu,yf=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(vf,``).toLocaleLowerCase():``),bf={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!1,rovingTabStop:`selected`},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!0,rovingTabStop:`selected`}},xf=`a[href], button, input, select, textarea, summary, [tabindex]`,Sf=()=>[...document.querySelectorAll(xf)].filter(e=>e.tabIndex>=0&&!e.matches(`:disabled, [aria-disabled="true"], [hidden], [inert], [inert] *`)&&!!e.getClientRects().length),Cf=e=>{let t=e;for(;t;){if(t.id){let e=document.querySelector(`[aria-haspopup="menu"][aria-controls="${CSS.escape(t.id)}"]`);if(e)return e}t=t.parentElement}return null},wf=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=_d(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o,controlsPanel:s,rovingTabStop:c}=bf[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.controlsPanel=s,this.rovingTabStop=c,this.parent.tabIndex=a?-1:0,(async()=>{await nd(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=this.controlsPanel?document.querySelector(`#${e.getAttribute(`aria-controls`)}`):null;e.id||=`${this.id}-item-${t+1}`,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),this.updateTabStop(),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}updateTabStop(){let{allMembers:e,activeMembers:t}=this;if(!this.focusChild){e.forEach(e=>{e.tabIndex=-1});return}let n=this.rovingTabStop===`selected`?t.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))??t[0]:t[0];e.forEach(e=>{e.tabIndex=e===n?0:-1})}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get allMembers(){return[...this.parent.querySelectorAll(this.selector)]}get activeMembers(){return this.allMembers.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}get opener(){return Cf(this.parent)}get parentMenuItem(){let{opener:e}=this;return e?.matches(`[role^="menuitem"]`)?e:null}closeMenuChain(){let{opener:e}=this,t=e,n=null;for(let e=0;e<10&&t;e+=1){n=t,t.getAttribute(`aria-expanded`)===`true`&&t.click();let e=t.closest(`[role="menu"], [role="menubar"]`);t=e?Cf(e):null}return n}async leaveMenu(e){let t=this.closeMenuChain();if(!t)return;t.focus(),await nd(50);let n=Sf(),r=n.indexOf(t);r>-1&&n[r+(e?-1:1)]?.focus()}async enterSubmenu(e){let t=e.getAttribute(`aria-controls`);if(!t)return;e.getAttribute(`aria-expanded`)!==`true`&&e.click();let n=document.getElementById(t);for(let e=0;e<20;e+=1){let e=[...n?.querySelectorAll(this.selector)??[]].find(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`));if(e?.focus(),e&&document.activeElement===e)return;await nd(20)}}leaveSubmenu(e){e.getAttribute(`aria-expanded`)===`true`&&e.click(),e.focus()}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=this.controlsPanel?o.getAttribute(`aria-controls`):null,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:gf(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r,s=this.childRoles.includes(`menuitem`);if(t===`Tab`&&s&&!n&&!r&&!a){e.preventDefault(),this.leaveMenu(i);return}if(o)return;let c=e.target,{allMembers:l,activeMembers:u}=this,d=(()=>{if(!this.focusChild)return u.find(e=>e.matches(`.focused`));if(c.matches(this.selector))return c})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){d?.click();return}if(t===` `){d&&this.selectTarget(e,d);return}if(t===`Escape`&&s){let{parentMenuItem:t}=this;if(t){e.preventDefault(),e.stopPropagation(),this.leaveSubmenu(t);return}}if(this.orientation===`vertical`&&s){let e=Mu()?`ArrowLeft`:`ArrowRight`,n=Mu()?`ArrowRight`:`ArrowLeft`;if(t===e&&d?.getAttribute(`aria-haspopup`)===`menu`){this.enterSubmenu(d);return}if(t===n){let{parentMenuItem:e}=this;if(e){this.leaveSubmenu(e);return}}}let f,p;if(this.grid){let e=Math.floor(this.parent.clientWidth/u[0].clientWidth),n=Mu();f=d?l.indexOf(d):-1,t===`ArrowUp`&&f>0&&(p=l[f-e]),t===`ArrowDown`&&f<l.length-1&&(p=l[f+e]),t===`ArrowLeft`&&f>0&&(p=l[f+(n?1:-1)]),t===`ArrowRight`&&f<l.length-1&&(p=l[f+(n?-1:1)]),p?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(p=void 0)}else{f=d?u.indexOf(d):-1;let e=Mu(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(f>0&&(p=u[f-1]),f<=0&&(p=u[u.length-1])),t===r&&(f<u.length-1&&(p=u[f+1]),f===u.length-1&&([p]=u))}p&&p!==d&&this.selectTarget(e,p)}destroy(){this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=yf(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=yf(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}}))}},Tf=e=>t=>{let n=typeof e==`function`,r=n?e():e,i=new wf(t,r);return n&&Zr(()=>{i.onUpdate(e())}),()=>{i.destroy()}}})))()}function Df(e,t){O(t,!0),G(e,Af);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=qs(t,Of);var l=kf();gs(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-1lvdjdx`);var u=F(l);So(F(u),()=>t.children??E),D(u),D(l),Ko(l,Tf),R(()=>u.inert=r()),H(e,l),k()}var Of,kf,Af;function jf(){return(jf=s((()=>{Y(),J(),Ef(),Of=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`]),kf=B(`<div><div role="none" class="inner svelte-1lvdjdx"><!></div></div>`),Af={hash:`svelte-1lvdjdx`,code:`.select-button-group.svelte-1lvdjdx {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1lvdjdx:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1lvdjdx button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1lvdjdx button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1lvdjdx button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1lvdjdx button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1lvdjdx button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1lvdjdx [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1lvdjdx [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1lvdjdx [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1lvdjdx {display:contents;}`}})))()}function Mf(e,t){O(t,!0);let n=q(t,`selected`,15,!1),r=qs(t,Nf);Bd(e,Js(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var Nf;function Pf(){return(Pf=s((()=>{Y(),J(),Kd(),Nf=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`])})))()}function Ff(e,t){O(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=qs(t,If),f=N(void 0);var p={focus:()=>{z(f)?.focus()}},m=Lf(),h=I(m);return Bd(h,Js(()=>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();So(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.endIcon),H(e,n)},a=e=>{sc(e,{name:`more_vert`})},o=e=>{sc(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}})),Fd(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();So(I(r),()=>t.popup??E),H(e,r)},$$slots:{default:!0}}),H(e,m),k(p)}var If,Lf;function Rf(){return(Rf=s((()=>{Y(),J(),Kd(),dc(),zd(),If=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),Lf=B(`<!> <!>`,1)})))()}function zf(e,t){O(t,!0),G(e,Hf);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=qs(t,Bf),u=N(void 0);var d=Vf(),f=F(d);Bd(f,Js(()=>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();So(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{sc(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();So(I(n),()=>t.popup??E),H(e,n)},l=M(()=>X(`_sui.split_button.more_options`));Ff(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),Bs(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)},[()=>X(`_sui.split_button.x_options`,{values:{name:i()}})]),H(e,d),k()}var Bf,Vf,Hf;function Uf(){return(Uf=s((()=>{Y(),J(),Z(),dc(),Rf(),Kd(),Bf=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),Vf=B(`<div role="group" class="sui split-button svelte-laxirt"><!> <!></div>`),Hf={hash:`svelte-laxirt`,code:`.split-button.svelte-laxirt {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-laxirt button {margin:0;}.split-button.svelte-laxirt 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-laxirt button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}})))()}function Wf(e,t){G(e,qf);let n=q(t,`hidden`,3,!1),r=q(t,`orientation`,3,`horizontal`),i=q(t,`ariaLabel`,3,void 0),a=qs(t,Gf);var o=Kf();gs(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-6qkybc`),H(e,o)}var Gf,Kf,qf;function Jf(){return(Jf=s((()=>{Y(),J(),Gf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`,`ariaLabel`]),Kf=B(`<div></div>`),qf={hash:`svelte-6qkybc`,code:`.divider.svelte-6qkybc {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-6qkybc {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-6qkybc {margin:0 8px;width:1px;height:100%;}`}})))()}function Yf(e,t){G(e,Qf);let n=q(t,`flex`,3,!1),r=qs(t,Xf);var i=Zf();gs(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[ys]:{flex:n()}}),void 0,void 0,void 0,`svelte-i6cjz5`),H(e,i)}var Xf,Zf,Qf;function $f(){return($f=s((()=>{Y(),J(),Xf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),Zf=B(`<div></div>`),Qf={hash:`svelte-i6cjz5`,code:`.spacer.flex.svelte-i6cjz5:not([hidden]) {display:block;flex:auto;}.spacer.svelte-i6cjz5:not(.flex) {width:8px;height:8px;}`}})))()}function ep(e,t){G(e,rp);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=qs(t,tp);var s=np();gs(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-jwklx2`);var c=F(s);So(F(c),()=>t.children??E),D(c),D(s),R(()=>c.inert=r()),H(e,s)}var tp,np,rp;function ip(){return(ip=s((()=>{Y(),J(),tp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`ariaLabel`,`children`]),np=B(`<div><div role="none" class="inner svelte-jwklx2"><!></div></div>`),rp={hash:`svelte-jwklx2`,code:`.checkbox-group.svelte-jwklx2 {display:inline-flex;}.checkbox-group.horizontal.svelte-jwklx2 {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-jwklx2 {gap:4px;flex-direction:column;}
|
||
@media (pointer: coarse) {.checkbox-group.vertical.svelte-jwklx2 {gap:8px;}
|
||
}.inner.svelte-jwklx2 {display:contents;}`}})))()}function ap(e,t){let n=Ma();O(t,!0),G(e,lp);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=qs(t,op),h=N(void 0),g=M(()=>r()===`mixed`);Zr(()=>{Array.isArray(p())&&(p().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var _=cp();let v;var y=F(_),b=F(y);{let e=e=>{var n=V(),i=I(n),a=e=>{var n=V();So(I(n),()=>t.checkIcon),H(e,n)},o=e=>{sc(e,{name:`remove`})},s=e=>{sc(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`);Bd(b,Js(()=>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=sp(),i=F(r),a=e=>{var n=V();So(I(n),()=>t.children),H(e,n)},o=e=>{var t=ja();R(()=>U(t,d())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(x,e=>{(t.children||d())&&e(S)}),D(y),D(_),R(()=>{v=is(_,1,`sui checkbox ${t.class??``}`,`svelte-hphq4w`,v,{checked:r(),indeterminate:z(g),disabled:s(),readonly:c()}),K(_,`hidden`,o()),y.inert=s()}),va(`click`,_,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||z(h)?.click()}),H(e,_),k()}var op,sp,cp,lp;function up(){return(up=s((()=>{Y(),J(),Kd(),dc(),op=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`ariaLabel`,`group`,`onChange`,`children`,`checkIcon`]),sp=B(`<label class="svelte-hphq4w"><!></label>`),cp=B(`<div role="none"><div role="none" class="inner svelte-hphq4w"><!> <!></div></div>`),lp={hash:`svelte-hphq4w`,code:`.checkbox.svelte-hphq4w {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-hphq4w:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-hphq4w:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-hphq4w:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-hphq4w:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-hphq4w 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-hphq4w 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-hphq4w button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-hphq4w button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-hphq4w button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-hphq4w label:where(.svelte-hphq4w) {cursor:inherit;}.inner.svelte-hphq4w {display:contents;}`},ya([`click`])})))()}function dp(e,t){let n=Ma();O(t,!0),G(e,vp);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=qs(t,fp),_=N(void 0),v=N(void 0);Zr(()=>{if(r()&&z(v)){let e=!1;return(async()=>{await nd(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`);Bs(kd(e,Js(()=>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=_p(),h=F(i),g=e=>{var r=mp(),i=F(r),a=e=>{var n=V();So(I(n),()=>t.header),H(e,n)},s=e=>{var r=pp(),i=I(r),a=F(i,!0);D(i);var s=L(i,2);Yf(s,{flex:!0});var c=L(s,2);So(c,()=>t.headerExtra??E);var l=L(c,2),u=e=>{{let r=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.closeIcon),H(e,n)},a=e=>{sc(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},i=M(()=>X(`_sui.close`));Bd(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)}),D(r),H(e,r)};W(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=L(h,2);So(F(y),()=>t.children??E),D(y);var b=L(y,2),x=e=>{var n=gp(),r=F(n),i=e=>{var n=V();So(I(n),()=>t.footer??E),H(e,n)},a=e=>{var n=hp(),r=I(n);So(r,()=>t.footerExtra??E);var i=L(r,2);Yf(i,{flex:!0});var a=L(i,2),o=e=>{{let t=M(()=>l()||X(`_sui.ok`));Bd(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()||X(`_sui.cancel`));Bd(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)}),D(n),H(e,n)};W(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),D(i),Bs(i,e=>P(v,e),()=>z(v)),R(()=>{is(i,1,`content ${t.class??``} ${a()??``}`,`svelte-qfq09e`),K(y,`id`,`${n}-body`)}),H(e,i)},$$slots:{default:!0}})),e=>P(_,e,!0),()=>z(_))}k()}var fp,pp,mp,hp,gp,_p,vp;function yp(){return(yp=s((()=>{Y(),J(),Z(),rd(),Kd(),$f(),dc(),Pd(),fp=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(`.`)),pp=B(`<div role="none" class="title svelte-qfq09e"> </div> <!> <!> <!>`,1),mp=B(`<div role="none" class="header svelte-qfq09e"><!></div>`),hp=B(`<!> <!> <!> <!>`,1),gp=B(`<div role="none" class="footer svelte-qfq09e"><!></div>`),_p=B(`<div role="none"><!> <div role="none" class="body svelte-qfq09e"><!></div> <!></div>`),vp={hash:`svelte-qfq09e`,code:`.content.svelte-qfq09e {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-qfq09e {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-qfq09e {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-qfq09e {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-qfq09e {max-height:calc(100dvh - 32px);}
|
||
}.content.medium.svelte-qfq09e {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-qfq09e {max-height:calc(100dvh - 32px);}
|
||
}.content.large.svelte-qfq09e {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-qfq09e {max-height:calc(100dvh - 32px);}
|
||
}.content.x-large.svelte-qfq09e {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-qfq09e {max-height:calc(100dvh - 32px);}
|
||
}:is(.header.svelte-qfq09e, .footer.svelte-qfq09e) {display:flex;align-items:center;gap:4px;}.header.svelte-qfq09e {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-qfq09e .title:where(.svelte-qfq09e) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-qfq09e {margin:var(--sui-dialog-footer-margin, 0 24px 24px);}
|
||
@media (width < 768px) {.footer.svelte-qfq09e {margin:var(--sui-dialog-footer-margin, 0 16px 16px);}
|
||
}.body.svelte-qfq09e {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-qfq09e {margin:var(--sui-dialog-body-margin, 16px 16px);}
|
||
}`}})))()}function bp(e,t){O(t,!0);let n=q(t,`open`,15,!1),r=qs(t,xp);dp(e,Js(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),k()}var xp;function Sp(){return(Sp=s((()=>{Y(),J(),yp(),xp=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])})))()}function Cp(e,t){O(t,!0);let n=q(t,`open`,15,!1),r=qs(t,wp);dp(e,Js(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),k()}var wp;function Tp(){return(Tp=s((()=>{Y(),J(),yp(),wp=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])})))()}function Ep(e,t){let n=Ma();O(t,!0),G(e,Ap);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=qs(t,Dp),x=M(()=>typeof p()==`number`?p():300),S=0;Zr(()=>()=>{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=kp();let ee;var te=F(T);gs(te,()=>({...b,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:h()?-1:0,disabled:h()||void 0,readonly:g()||void 0,inputmode:u(),"aria-label":y(),"aria-hidden":m(),"aria-disabled":h(),"aria-readonly":g(),"aria-required":_(),"aria-invalid":v(),oninputcapture:w}),void 0,void 0,void 0,`svelte-1s77hta`,!0),Bs(te,e=>i(e),()=>i()),Ko(te,()=>Xu(o()));var ne=L(te,2),re=e=>{var t=Op();let i;Qu(F(t),{children:(e,t)=>{mt();var n=ja();R(()=>U(n,y())),H(e,n)},$$slots:{default:!0}}),D(t),R(()=>{K(t,`id`,`${n}-label`),i=is(t,1,`label svelte-1s77hta`,null,i,{hidden:!!r()})}),H(e,t)};W(ne,e=>{y()&&l()&&e(re)}),D(T),R(()=>{ee=is(T,1,`sui text-input ${t.class??``}`,`svelte-1s77hta`,ee,{flex:d(),monospace:f(),disabled:h(),readonly:g()}),K(T,`hidden`,m()),te.dir=te.dir}),H(e,T),k()}var Dp,Op,kp,Ap;function jp(){return(jp=s((()=>{Y(),J(),Zu(),td(),Dp=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`]),Op=B(`<span aria-hidden="true"><!></span>`),kp=B(`<div role="none"><input/> <!></div>`),Ap={hash:`svelte-1s77hta`,code:`.text-input.svelte-1s77hta {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-1s77hta:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-1s77hta {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-1s77hta:is(:where(.svelte-1s77hta):-webkit-autofill, :where(.svelte-1s77hta):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-1s77hta {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-1s77hta: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-1s77hta:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-1s77hta:is(:where(.svelte-1s77hta):disabled, :where(.svelte-1s77hta):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-1s77hta {border-color:var(--sui-error-border-color);}input.svelte-1s77hta ~ 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-1s77hta ~ 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-1s77hta ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-1s77hta {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-1s77hta {opacity:0;}input.svelte-1s77hta:focus + .label:where(.svelte-1s77hta) {opacity:0;}input.svelte-1s77hta::placeholder,
|
||
.label.svelte-1s77hta {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 Mp(e,t){O(t,!0),G(e,Fp);let n=q(t,`open`,15,!1),r=q(t,`value`,15,``),i=q(t,`textboxAttrs`,19,()=>({})),a=qs(t,Np);dp(e,Js(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=Pp(),o=I(a);So(o,()=>t.children??E);var s=L(o,2),c=F(s),l=e=>{var n=V();So(I(n),()=>t.input),H(e,n)},u=e=>{Ep(e,Js({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)}),D(s),H(e,a)},$$slots:{default:!0}})),k()}var Np,Pp,Fp;function Ip(){return(Ip=s((()=>{Y(),J(),jp(),yp(),Np=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]),Pp=B(`<!> <div class="input-outer svelte-ge1dkp"><!></div>`,1),Fp={hash:`svelte-ge1dkp`,code:`.input-outer.svelte-ge1dkp {margin:12px 0 0;}`}})))()}function Lp(e,t){O(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=Rp();return Bs(c,e=>P(o,e),()=>z(o)),R(()=>{K(c,`accept`,n()),c.multiple=r()}),va(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),_a(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),H(e,c),k(s)}var Rp;function zp(){return(zp=s((()=>{Y(),J(),Rp=B(`<input class="sui file-picker" type="file" hidden=""/>`),ya([`change`])})))()}function Bp(e,t){let n=Ma();G(e,aee);let r=q(t,`label`,3,``),i=qs(t,Vp);var a=Up();gs(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-13gdqzf`);var o=F(a),s=e=>{var t=Hp();Bo(F(t),()=>`th`,!1,(e,t)=>{gs(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-13gdqzf`);var i=ja();R(()=>U(i,r())),H(t,i)}),D(t),H(e,t)};W(o,e=>{r()&&e(s)}),So(L(o,2),()=>t.children??E),D(a),H(e,a)}var Vp,Hp,Up,aee;function Wp(){return(Wp=s((()=>{Y(),J(),Vp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]),Hp=B(`<div role="row" class="row-group-caption svelte-13gdqzf"><!></div>`),Up=B(`<div><!> <!></div>`),aee={hash:`svelte-13gdqzf`,code:`[role=rowgroup].svelte-13gdqzf {display:table-row-group;}[role=row].svelte-13gdqzf {display:table-row;}[role=columnheader].svelte-13gdqzf {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 Gp(e,t){G(e,cee);let n=qs(t,oee);var r=see();gs(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-hg9w8v`),So(F(r),()=>t.children??E),D(r),H(e,r)}var oee,see,cee;function Kp(){return(Kp=s((()=>{Y(),J(),oee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),see=B(`<div><!></div>`),cee={hash:`svelte-hg9w8v`,code:`.grid-cell.svelte-hg9w8v {display:table-cell;}`}})))()}function qp(e,t){G(e,dee);let n=q(t,`selected`,3,!1),r=qs(t,lee);var i=uee();gs(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-1a211rr`),So(F(i),()=>t.children??E),D(i),H(e,i)}var lee,uee,dee;function Jp(){return(Jp=s((()=>{Y(),J(),lee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]),uee=B(`<div><!></div>`),dee={hash:`svelte-1a211rr`,code:`.grid-row.svelte-1a211rr {display:table-row;height:var(--sui-primary-row-height);}`}})))()}function fee(e,t){O(t,!0),G(e,Yp);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=qs(t,pee);var s=mee(),c=e=>{t.onChange?.(e)};gs(s,()=>({...o,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),"aria-label":a(),onChange:c}),void 0,void 0,void 0,`svelte-18721re`),So(F(s),()=>t.children??E),D(s),Bs(s,e=>n(e),()=>n()),Ko(s,()=>Tf({clickToSelect:i()})),H(e,s),k()}var pee,mee,Yp;function Xp(){return(Xp=s((()=>{Y(),J(),Ef(),pee=new Set([`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`ariaLabel`,`children`,`onChange`]),mee=B(`<div><!></div>`),Yp={hash:`svelte-18721re`,code:`.grid.svelte-18721re {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-18721re {border-collapse:collapse;}.grid.data.svelte-18721re :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}})))()}function Zp(e,t){O(t,!0),G(e,em);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=qs(t,Qp),d=N(!1);var f=$p(),p=e=>{let{detail:{matched:n,total:r}}=e;P(d,n!==r),t.onFilter?.(e)};gs(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,[ys]:{filtered:z(d)}}),void 0,void 0,void 0,`svelte-1ris72s`);var m=F(f);So(F(m),()=>t.children??E),D(m),D(f),Ko(f,()=>Tf(()=>({searchTerms:c()}))),R(()=>m.inert=r()),H(e,f),k()}var Qp,$p,em;function tm(){return(tm=s((()=>{Y(),J(),Ef(),Qp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`ariaLabel`,`children`,`onFilter`]),$p=B(`<div><div role="none" class="inner svelte-1ris72s"><!></div></div>`),em={hash:`svelte-1ris72s`,code:`[role=listbox].svelte-1ris72s {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-1ris72s {gap:8px 0;}
|
||
}[role=listbox].svelte-1ris72s [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-1ris72s {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-1ris72s {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-1ris72s .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-1ris72s .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-1ris72s .option button .icon {display:none;}[role=listbox].in-combobox.svelte-1ris72s:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-1ris72s [role=separator] {display:none;}.inner.svelte-1ris72s {display:contents;}`}})))()}function nm(e,t){let n=Ma();G(e,am);let r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=qs(t,rm);var s=im();gs(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-1y82zsc`);var c=F(s);Qu(F(c),{children:(e,t)=>{mt();var n=ja();R(()=>U(n,a())),H(e,n)},$$slots:{default:!0}}),D(c);var l=L(c,2);So(F(l),()=>t.children??E),D(l),D(s),R(()=>{K(c,`id`,`${n}-label`),l.inert=i()}),H(e,s)}var rm,im,am;function om(){return(om=s((()=>{Y(),J(),td(),rm=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]),im=B(`<div><div role="none" class="label svelte-1y82zsc"><!></div> <div role="none" class="inner svelte-1y82zsc"><!></div></div>`),am={hash:`svelte-1y82zsc`,code:`.option-group.svelte-1y82zsc:not(:first-child) {margin:12px 0 0;}.label.svelte-1y82zsc {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-1y82zsc {display:contents;}`}})))()}function sm(e,t){O(t,!0),G(e,dm);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=qs(t,cm),l=hf();l&&ic(l.register({get value(){return a()},get label(){return t.label},get name(){return t.name},get type(){return t.valueType??typeof a()},get selected(){return n()},set selected(e){n(e)},get disabled(){return i()}}));let u=M(()=>!l||l.expanded);var d=V(),f=I(d),p=e=>{var l=um();let u;Bd(F(l),Js(()=>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();So(I(n),()=>t.startIcon??E),H(e,n)},children:(e,r)=>{var i=lm(),a=I(i),o=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.checkIcon),H(e,n)},a=e=>{sc(e,{class:`check`,name:`check`})};W(r,e=>{t.checkIcon?e(i):e(a,-1)}),H(e,n)};W(a,e=>{n()&&e(o)}),So(L(a,2),()=>t.children??E),H(e,i)},$$slots:{startIcon:!0,default:!0}})),D(l),R(()=>{u=is(l,1,`sui option ${t.class??``}`,`svelte-16216hu`,u,{wrap:s()}),K(l,`hidden`,r())}),H(e,l)};W(f,e=>{z(u)&&e(p)}),H(e,d),k()}var cm,lm,um,dm;function fm(){return(fm=s((()=>{Y(),J(),oc(),_f(),Kd(),dc(),cm=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]),lm=B(`<!> <!>`,1),um=B(`<div role="none"><!></div>`),dm={hash:`svelte-16216hu`,code:`.option.svelte-16216hu {display:contents;}.option.svelte-16216hu:focus-visible {outline-width:0 !important;}.option.svelte-16216hu .wrap button {white-space:normal;}.option.svelte-16216hu 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-16216hu button:active {background-color:var(--sui-active-background-color);}.option.svelte-16216hu button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-16216hu button * {flex:none;}.option.svelte-16216hu button .label {flex:auto;}.option.svelte-16216hu :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-16216hu .icon.check {margin:-2px;}`}})))()}function pm(e,t){O(t,!0),G(e,gm);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=qs(t,mm);var o=hm(),s=e=>{t.onChange?.(e)};gs(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-12tisvc`),So(F(o),()=>t.children??E),D(o),Ko(o,Tf),H(e,o),k()}var mm,hm,gm;function _m(){return(_m=s((()=>{Y(),J(),Ef(),mm=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`,`onChange`]),hm=B(`<div><!></div>`),gm={hash:`svelte-12tisvc`,code:`.menu.svelte-12tisvc {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-12tisvc {gap:8px 0;}
|
||
}.menu.svelte-12tisvc [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`}})))()}function vm(e,t){O(t,!0),G(e,Cm);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=qs(t,ym),c=N(!1),l=N(!1),u=N(void 0),d=N(void 0),f=M(()=>n()===`menuitem`&&!!t.items);rc(()=>{P(d,z(u)?.closest(`dialog`)??void 0,!0)});var p=Sm(),m=F(p);{let e=e=>{var n=V();So(I(n),()=>t.startIcon??E),H(e,n)},o=e=>{var n=xm(),r=I(n);let i;var o=F(r),s=e=>{var t=ja();R(()=>U(t,a())),H(e,t)},c=e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)};W(o,e=>{a()?e(s):e(c,-1)}),D(r);var l=L(r,2),u=e=>{var n=bm(),r=F(n),i=e=>{var n=V();So(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{{let t=M(()=>Mu()?`chevron_left`:`chevron_right`);sc(e,{get name(){return z(t)}})}};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),D(n),H(e,n)};W(l,e=>{z(f)&&e(u)}),R(()=>i=is(r,1,`content svelte-1iz38cg`,null,i,{label:!!a()})),H(e,n)},d=e=>{var n=V();So(I(n),()=>t.endIcon??E),H(e,n)},p=M(()=>z(f)?`menu`:void 0),h=M(()=>z(f)?z(c):void 0);Bd(m,Js(()=>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=>{Fd(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)=>{pm(e,{children:(e,n)=>{var r=V();So(I(r),()=>t.items??E),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(h,e=>{z(f)&&z(u)&&z(d)&&e(g)}),D(p),R(()=>{is(p,1,`sui menuitem ${t.class??``}`,`svelte-1iz38cg`),K(p,`hidden`,r())}),H(e,p),k()}var ym,bm,xm,Sm,Cm;function wm(){return(wm=s((()=>{Y(),J(),Z(),oc(),Kd(),dc(),zd(),_m(),ym=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),bm=B(`<span role="none" class="icon-outer svelte-1iz38cg"><!></span>`),xm=B(`<div role="none"><!></div> <!>`,1),Sm=B(`<div role="none"><!> <!></div>`),Cm={hash:`svelte-1iz38cg`,code:`.menuitem.svelte-1iz38cg {position:relative;}.menuitem.svelte-1iz38cg 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-1iz38cg button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1iz38cg button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1iz38cg button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1iz38cg :hover > [role=menu] {opacity:1;}.menuitem.svelte-1iz38cg > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-1iz38cg > [role=menu]:hover {opacity:1;}.content.svelte-1iz38cg {flex:auto;}.icon-outer.svelte-1iz38cg {flex:none;width:24px;height:24px;}`}})))()}function Tm(e,t){O(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=qs(t,Em);vm(e,Js(()=>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();So(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var t=V(),r=I(t),i=e=>{sc(e,{name:`check`})};W(r,e=>{n()&&e(i)}),H(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var Em;function Dm(){return(Dm=s((()=>{Y(),J(),dc(),wm(),Em=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`])})))()}function Om(e,t){O(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=qs(t,km);vm(e,Js(()=>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();So(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var t=V(),r=I(t),i=e=>{sc(e,{name:`check`})};W(r,e=>{n()&&e(i)}),H(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var km;function Am(){return(Am=s((()=>{Y(),J(),dc(),wm(),km=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`])})))()}function hee(e,t){G(e,vee);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=qs(t,gee);var s=_ee();gs(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-p8gy6s`);var c=F(s);let l;D(s),R(()=>l=ss(c,``,l,{width:`${n()??``}%`})),H(e,s)}var gee,_ee,vee;function yee(){return(yee=s((()=>{Y(),J(),gee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`,`ariaLabel`]),_ee=B(`<div><div role="none" class="svelte-p8gy6s"></div></div>`),vee={hash:`svelte-p8gy6s`,code:`.progressbar.svelte-p8gy6s {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-p8gy6s div:where(.svelte-p8gy6s) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`}})))()}function bee(e,t){O(t,!0),G(e,Cee);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=qs(t,xee);var u=See(),d=e=>{t.onChange?.(e)};gs(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-w3bzlq`);var f=F(u);So(F(f),()=>t.children??E),D(f),D(u),Ko(u,Tf),R(()=>f.inert=r()),H(e,u),k()}var xee,See,Cee;function jm(){return(jm=s((()=>{Y(),J(),Ef(),xee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`ariaLabel`,`children`,`onChange`]),See=B(`<div><div role="none" class="inner svelte-w3bzlq"><!></div></div>`),Cee={hash:`svelte-w3bzlq`,code:`.radio-group.svelte-w3bzlq {display:inline-flex;}.radio-group.svelte-w3bzlq:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-w3bzlq {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-w3bzlq {gap:4px;flex-direction:column;}
|
||
@media (pointer: coarse) {.radio-group.vertical.svelte-w3bzlq {gap:8px;}
|
||
}.radio-group.svelte-w3bzlq [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-w3bzlq [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-w3bzlq [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-w3bzlq {display:contents;}`}})))()}function Mm(e,t){let n=Ma();O(t,!0),G(e,Dee);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=qs(t,wee),f=N(void 0);Zr(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=Eee(),m=e=>{e.target.matches(`button`)||z(f)?.click()};gs(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[ys]:{disabled:a()}}),void 0,void 0,void 0,`svelte-1xez94g`);var h=F(p);Bd(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=Tee(),i=F(r),a=e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},o=e=>{var t=ja();R(()=>U(t,l())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(g,e=>{(t.children||l())&&e(_)}),D(p),H(e,p),k()}var wee,Tee,Eee,Dee;function Nm(){return(Nm=s((()=>{Y(),J(),Kd(),wee=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),Tee=B(`<label class="svelte-1xez94g"><!></label>`),Eee=B(`<span><!> <!></span>`),Dee={hash:`svelte-1xez94g`,code:`.radio.svelte-1xez94g {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-1xez94g :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-1xez94g :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-1xez94g :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-1xez94g :active button {background-color:var(--sui-active-background-color);}.radio.svelte-1xez94g :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-1xez94g 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-1xez94g 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-1xez94g button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-1xez94g button[aria-checked=true]::before {opacity:1;}.radio.svelte-1xez94g label:where(.svelte-1xez94g) {cursor:inherit;}`}})))()}function Oee(e,t){O(t,!0),G(e,Mee);let n=q(t,`disabled`,3,!1),r=q(t,`showHandleBar`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=qs(t,kee),o=Pt(`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)&&Mu()&&(d=-d),P(g,a,!0),o.resize(s,d)},x=e=>{let{pointerId:n}=e;!z(h)||n!==z(_)||(z(m)?.releasePointerCapture(n),P(h,!1),P(g,0),P(_,0),t.onResizeEnd?.(),document.removeEventListener(`pointermove`,b),document.removeEventListener(`pointerup`,x),document.removeEventListener(`pointercancel`,x))},S=e=>{if(n())return;e.preventDefault(),e.stopPropagation();let{screenX:r,screenY:i,pointerId:a}=e;P(h,!0),P(g,z(c)?r:i,!0),P(_,a,!0),z(m)?.setPointerCapture(a),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=Mu();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=jee();gs(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,[ys]:{horizontal:z(c),vertical:!z(c),disabled:n(),dragging:z(h)}}),[()=>Math.round(z(u))],void 0,void 0,`svelte-ifj2ua`);var ee=F(T),te=e=>{var n=V();So(I(n),()=>t.children),H(e,n)},ne=e=>{H(e,Aee())};W(ee,e=>{t.children?e(te):r()&&e(ne,1)}),D(T),Bs(T,e=>P(m,e),()=>z(m)),H(e,T),k()}var kee,Aee,jee,Mee;function Pm(){return(Pm=s((()=>{Y(),J(),Z(),oc(),kee=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`ariaLabel`,`children`,`onResizeStart`,`onResizeEnd`]),Aee=B(`<div role="none" class="handle-bar svelte-ifj2ua"></div>`),jee=B(`<div><!></div>`),Mee={hash:`svelte-ifj2ua`,code:`.resizable-handle.svelte-ifj2ua {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-ifj2ua:focus-visible, .resizable-handle.svelte-ifj2ua:hover, .resizable-handle.dragging.svelte-ifj2ua {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent-light);}.resizable-handle.svelte-ifj2ua:focus-visible .handle-bar:where(.svelte-ifj2ua), .resizable-handle.svelte-ifj2ua:hover .handle-bar:where(.svelte-ifj2ua), .resizable-handle.dragging.svelte-ifj2ua .handle-bar:where(.svelte-ifj2ua) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-ifj2ua {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-ifj2ua {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-ifj2ua .handle-bar:where(.svelte-ifj2ua) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-ifj2ua {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-ifj2ua .handle-bar:where(.svelte-ifj2ua) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-ifj2ua .handle-bar:where(.svelte-ifj2ua) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}})))()}function Nee(e,t){O(t,!0),G(e,Iee);let n=q(t,`direction`,3,`horizontal`),r=qs(t,Pee),i=Dr([]),a=N(void 0),o=Dr([]),s=Dr([]),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)))})};Ft(`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}),Zr(()=>{i.length&&!o.length&&f()});var m=Fee();gs(m,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-1r3bui0`),So(F(m),()=>t.children??E),D(m),Bs(m,e=>P(a,e),()=>z(a)),H(e,m),k()}var Pee,Fee,Iee;function Fm(){return(Fm=s((()=>{Y(),J(),oc(),Pee=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),Fee=B(`<div><!></div>`),Iee={hash:`svelte-1r3bui0`,code:`.resizable-pane-group.svelte-1r3bui0 {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-1r3bui0 {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-1r3bui0 {flex-direction:column;width:100%;height:100%;}`}})))()}function Im(e,t){let n=Ma();O(t,!0);let r=q(t,`defaultSize`,3,void 0),i=q(t,`minSize`,3,0),a=q(t,`maxSize`,3,100),o=qs(t,Lee),s=Pt(`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)}%`);Zr(()=>{z(u)!==void 0&&Ri(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=Ree();gs(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[bs]:{"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}})),So(F(f),()=>t.children??E),D(f),H(e,f),k()}var Lee,Ree;function Lm(){return(Lm=s((()=>{Y(),J(),oc(),Lee=new Set([`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),Ree=B(`<div><!></div>`)})))()}function Rm(e,t){O(t,!0),G(e,Vee);let n=q(t,`itemChunkSize`,3,25),r=N(Dr(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())});Zr(()=>{z(i)&&o.observe(z(i))});var s=Bee(),c=I(s);lo(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=V();So(I(i),()=>t.renderItem,()=>z(n),()=>z(r)),H(e,i)});var l=L(c,2),u=e=>{var t=zee();Bs(t,e=>P(i,e),()=>z(i)),H(e,t)};W(l,e=>{z(a)&&e(u)}),H(e,s),k()}var zee,Bee,Vee;function zm(){return(zm=s((()=>{Y(),J(),zee=B(`<div role="none" class="spinner svelte-182vrt3"></div>`),Bee=B(`<!> <!>`,1),Vee={hash:`svelte-182vrt3`,code:`.spinner.svelte-182vrt3 {height:1px;}`}})))()}function Bm(e,t){let n=Ma();O(t,!0),G(e,Wee);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=qs(t,Hee),d=N(void 0);var f={focus:()=>{z(d)?.focus()}},p=Uee();let m;var h=F(p),g=F(h),_=e=>{var n=V();So(I(n),()=>t.searchIcon),H(e,n)},v=e=>{sc(e,{name:`search`})};W(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=L(h,2);Ep(y,Js({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();So(I(n),()=>t.closeIcon),H(e,n)},a=e=>{sc(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},a=M(()=>X(`_sui.clear`));Bd(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)}),D(p),R(()=>{K(p,`role`,a()?void 0:`none`),m=is(p,1,`sui search-bar ${t.class??``}`,`svelte-1j8qubs`,m,{flex:i(),disabled:o(),readonly:s()}),K(p,`hidden`,a()),K(p,`aria-hidden`,a())}),H(e,p),k(f)}var Hee,Uee,Wee;function Vm(){return(Vm=s((()=>{Y(),J(),Z(),Kd(),dc(),jp(),Hee=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),Uee=B(`<div><span role="none" class="svelte-1j8qubs"><!></span> <!> <!></div>`),Wee={hash:`svelte-1j8qubs`,code:`.search-bar.svelte-1j8qubs {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-1j8qubs:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-1j8qubs > span:where(.svelte-1j8qubs) {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-1j8qubs .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-1j8qubs > 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-1j8qubs .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-1j8qubs .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-1j8qubs input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}})))()}function Gee(e,t){let n=Ma();O(t,!0),G(e,Zee);let r=q(t,`value`,15),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,`editable`,3,!0),u=q(t,`position`,3,`bottom-left`),d=q(t,`filterThreshold`,3,5),f=q(t,`ariaLabel`,3,void 0),p=qs(t,Kee),m=N(!1),h=N(void 0),g=N(void 0),_=N(void 0),v=N(void 0),y=N(void 0),b=N(void 0),x=N(``),S=N(!1),C=N(``),w=N(0),T=M(()=>!z(C)||z(w)>0),ee=M(()=>z(h)??z(g)),te=mf(),ne=()=>{let e=te.find(r());e&&(P(x,e.label,!0),te.selectOnly(r()))},re=e=>{let n=gf(e);r(n.value),ne(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))};Zr(()=>{te.expanded=z(m)}),Zr(()=>{if(!z(y))return;let e=z(m)?z(b):z(v);e&&z(y).parentElement!==e&&e.append(z(y))}),rc(()=>{let e=te.selectedEntry;e&&(r(e.value),P(x,e.label,!0),t.onChange?.(new CustomEvent(`Change`,{detail:{target:void 0,type:e.type,name:e.name,label:e.label,value:e.value}})))}),Zr(()=>{r(),ne()});var ie=Xee(),ae=I(ie);gs(ae,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:i(),[ys]:{editable:l()}}),void 0,void 0,void 0,`svelte-13k5i3t`);var oe=F(ae),se=e=>{var t=qee();gs(t,()=>({...p,role:`combobox`,id:n,tabindex:a()?-1:0,"aria-expanded":z(m),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-haspopup":`listbox`,"aria-label":f(),[ys]:{selected:r()!==void 0}}),void 0,void 0,void 0,`svelte-13k5i3t`);var l=F(t);Qu(F(l),{children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>r()===void 0?X(`_sui.combobox.select_an_option`):z(x)]),H(e,n)},$$slots:{default:!0}}),D(l),D(t),Bs(t,e=>P(h,e),()=>z(h)),H(e,t)},ce=e=>{{let t=M(()=>r()===void 0?``:String(r()));Ep(e,Js(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return i()},get disabled(){return a()},get readonly(){return o()},get required(){return s()},get invalid(){return c()},get"aria-expanded"(){return z(m)},"aria-haspopup":`listbox`,get"aria-label"(){return f()},get element(){return z(g)},set element(e){P(g,e,!0)}}))}};W(oe,e=>{l()?e(ce,-1):e(se)});var le=L(oe,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{sc(e,{name:`expand_more`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},r=M(()=>!l()||o()||a()?-1:0),s=M(()=>z(m)?X(`_sui.collapse`):X(`_sui.expand`)),c=M(()=>z(m)?`${n}-popup`:void 0);Bd(le,{variant:`ghost`,iconic:!0,get hidden(){return i()},get disabled(){return a()},get tabindex(){return z(r)},get"aria-label"(){return z(s)},get"aria-controls"(){return z(c)},get"aria-expanded"(){return z(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!a()&&!o()&&P(m,!z(m))},startIcon:e,$$slots:{startIcon:!0}})}D(ae);var ue=L(ae,2),de=F(ue);Zp(F(de),{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(C)},onclick:e=>{e.target.matches(`[role="option"]`)&&re(e.target)},onFilter:e=>{P(w,e.detail.matched,!0)},children:(e,n)=>{var r=V();So(I(r),()=>t.children??E),H(e,r)},$$slots:{default:!0}}),D(de),Bs(de,e=>P(y,e),()=>z(y)),D(ue),Bs(ue,e=>P(v,e),()=>z(v)),Fd(L(ue,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(ee)},get position(){return u()},touchOptimized:!0,onOpen:()=>{P(S,d()!==-1&&te.count>d(),!0),P(C,``)},get content(){return z(_)},set content(e){P(_,e,!0)},get open(){return z(m)},set open(e){P(m,e,!0)},children:(e,t)=>{var r=Yee(),i=F(r),a=e=>{{let t=M(()=>X(`_sui.combobox.filter_options`));Bm(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(C)},set value(e){P(C,e,!0)}})}};W(i,e=>{z(S)&&e(a)});var o=L(i,2);Bs(o,e=>P(b,e),()=>z(b));var s=L(o,2),c=e=>{var t=Jee(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`_sui.combobox.no_matching_options`)]),H(e,t)};W(s,e=>{z(T)||e(c)}),D(r),H(e,r)},$$slots:{default:!0}}),H(e,ie),k()}var Kee,qee,Jee,Yee,Xee,Zee;function Qee(){return(Qee=s((()=>{Y(),J(),Z(),oc(),_f(),Kd(),dc(),tm(),Vm(),jp(),td(),zd(),Kee=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`ariaLabel`,`children`,`chevronIcon`,`onChange`]),qee=B(`<div><div role="none" class="label svelte-13k5i3t"><!></div></div>`),Jee=B(`<div role="alert" class="no-options svelte-13k5i3t" aria-live="assertive"> </div>`),Yee=B(`<div role="none" class="combobox-inner svelte-13k5i3t"><!> <div role="none" class="listbox-slot svelte-13k5i3t"></div> <!></div>`),Xee=B(`<div><!> <!></div> <div role="none" class="idle-host" hidden=""><div role="none" class="option-host svelte-13k5i3t"><!></div></div> <!>`,1),Zee={hash:`svelte-13k5i3t`,code:`:is(.option-host.svelte-13k5i3t, .listbox-slot.svelte-13k5i3t) {display:contents;}.combobox.svelte-13k5i3t {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-13k5i3t div[role=combobox]:where(.svelte-13k5i3t) {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-13k5i3t div[role=combobox]:where(.svelte-13k5i3t):not(.selected) {font-style:italic;}.combobox.svelte-13k5i3t div[role=combobox]:where(.svelte-13k5i3t):is(:where(.svelte-13k5i3t):hover, :where(.svelte-13k5i3t):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-13k5i3t div[role=combobox][aria-invalid=true]:where(.svelte-13k5i3t) {border-color:var(--sui-error-border-color);}.combobox.svelte-13k5i3t div[role=combobox]:where(.svelte-13k5i3t) .label:where(.svelte-13k5i3t) {width:100%;}.combobox.svelte-13k5i3t .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-13k5i3t > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-13k5i3t > 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-13k5i3t > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-13k5i3t :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-13k5i3t .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-13k5i3t input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-13k5i3t + [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-13k5i3t + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-13k5i3t {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-13k5i3t .sui.search-bar {flex:none;}.combobox-inner.svelte-13k5i3t .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-13k5i3t .no-options:where(.svelte-13k5i3t) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}})))()}function $ee(e){let t=e-1;return t*t*t+1}function ete(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=$ee}=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=tte(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 tte(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}function nte(){return(nte=s((()=>{})))()}function Hm(e,t){O(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=qs(t,rte);Gee(e,Js(()=>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();So(I(r),()=>t.children??E),H(e,r)},$$slots:{default:!0}})),k()}var rte;function Um(){return(Um=s((()=>{Y(),J(),Qee(),rte=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`])})))()}function ite(e,t){O(t,!0),G(e,cte);let n=q(t,`values`,31,()=>Dr([])),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=qs(t,ate),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>Mu()?`ArrowRight`:`ArrowLeft`),f=M(()=>Mu()?`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 Fi(),(z(p)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var y=ste();let b;var x=F(y);lo(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=ote();let p;var m=F(l),_=F(m,!0);D(m);var y=L(m,2),b=e=>{{let i=e=>{sc(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>X(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));Bd(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)}),D(l),R(()=>{K(l,`draggable`,!a()&&!o()),p=is(l,1,`svelte-1ensfqk`,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))}),_a(`dragstart`,l,e=>{P(h,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),_a(`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===Mu()?z(i)+1:z(i),!0)}),_a(`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)}),_a(`dragend`,l,()=>{P(h,void 0),P(g,void 0)}),va(`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))}),Fo(l,()=>ete,()=>({duration:200})),H(e,l)}),D(x);var S=L(x,2),C=e=>{{let r=M(()=>a()||o());Hm(e,Js(()=>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();lo(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=>{sm(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)}),D(y),Bs(y,e=>P(p,e),()=>z(p)),R(e=>{b=is(y,1,`sui select-tags ${t.class??``}`,`svelte-1ensfqk`,b,{disabled:a()||o()}),K(y,`hidden`,i()),K(x,`aria-label`,e)},[()=>X(`_sui.select_tags.selected_options`)]),H(e,y),k()}var ate,ote,ste,cte;function lte(){return(lte=s((()=>{Y(),J(),Z(),oc(),nte(),Kd(),dc(),fm(),Um(),ate=new Set([`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),ote=B(`<span role="none"><span class="label svelte-1ensfqk" role="option" aria-selected="true"> </span> <!></span>`),ste=B(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-1ensfqk"></span> <!></div>`),cte={hash:`svelte-1ensfqk`,code:`.select-tags.svelte-1ensfqk {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1ensfqk {pointer-events:none;}.select-tags.disabled.svelte-1ensfqk > :where(.svelte-1ensfqk) {opacity:0.5;}.select-tags.svelte-1ensfqk span[role=listbox]:where(.svelte-1ensfqk) {display:contents;}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk) {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-1ensfqk span[draggable]:where(.svelte-1ensfqk):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.select-tags.svelte-1ensfqk span[draggable].drag-source:where(.svelte-1ensfqk) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1ensfqk span[draggable].drop-before:where(.svelte-1ensfqk)::before, .select-tags.svelte-1ensfqk span[draggable].drop-after:where(.svelte-1ensfqk)::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-1ensfqk span[draggable].drop-before:where(.svelte-1ensfqk)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1ensfqk span[draggable].drop-after:where(.svelte-1ensfqk)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk) .label:where(.svelte-1ensfqk) {outline:none;}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk) button {outline-offset:-2px;}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk) .icon {font-size:var(--sui-font-size-large);}`},ya([`keydown`])})))()}function ute(e,t){O(t,!0),G(e,hte);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=qs(t,dte),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Dr([])),y=N(Dr([])),b=N(0),x=N(0),S=Dr([0,0]),C=N(!1),w=N(0),T=N(0),ee=e=>{let t=Math.min(z(_),Math.max(0,Mu()?z(_)-e:e)),r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a;a=r===-1?i:i===-1||Math.abs(z(v)[r]-t)<Math.abs(z(v)[i]-t)?r:i,!(S[z(T)]===z(v)[a]||z(h)&&(z(T)===0&&S[1]<=z(v)[a]||z(T)===1&&S[0]>=z(v)[a]))&&(z(h)?(o(o()[z(T)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},te=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=Mu(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=z(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},ne=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.preventDefault(),e.stopPropagation();let r=t-z(x),i=z(b)+r;ee(i)},re=e=>{let{pointerId:t,target:n}=e;if(d()||f()||!z(C)||t!==z(w))return;e.stopPropagation();let r=n;if(r.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect(),n=e.clientX-t.left;ee(n)}r.releasePointerCapture(t),P(C,!1),P(b,0),P(x,0),P(w,0),P(T,0),document.removeEventListener(`pointermove`,ne),document.removeEventListener(`pointerup`,re),document.removeEventListener(`pointercancel`,re)},ie=(e,t=0)=>{if(d()||f())return;e.preventDefault(),e.stopPropagation(),P(C,!0);let{clientX:n,screenX:r,pointerId:i,target:a}=e,o=a,s=z(g).getBoundingClientRect();P(b,n-s.left),P(x,r,!0),P(w,i,!0),P(T,t,!0),o.setPointerCapture(i),document.addEventListener(`pointermove`,ne),document.addEventListener(`pointerup`,re),document.addEventListener(`pointercancel`,re)},ae=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},oe=()=>{if(!z(g))return;P(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),ae()};rc(()=>{let e=new ResizeObserver(()=>oe()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,oe),oe(),()=>{e.disconnect(),t.removeEventListener(`change`,oe)}}),Zr(()=>{n(),o(),ae()});var se=mte();_a(`click`,Vr.body,()=>{P(C,!1)}),gs(se,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[ys]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-co5xeo`);var ce=F(se),le=L(F(ce),2);let E;var ue=L(le,2);let de;var fe=L(ue,2),pe=e=>{var t=fte();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=ss(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),va(`pointerdown`,t,e=>ie(e,1)),va(`keydown`,t,e=>te(e,1)),H(e,t)};W(fe,e=>{z(h)&&e(pe)});var me=L(fe,2),he=e=>{var t=V();lo(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=pte();let i;var a=F(r,!0);D(r),R(()=>{i=ss(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),U(a,z(t))}),H(e,r)}),H(e,t)};W(me,e=>{l().length&&e(he)}),D(ce),Bs(ce,e=>P(g,e),()=>z(g)),D(se),R(()=>{E=ss(le,``,E,{"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=ss(ue,``,de,{"inset-inline-start":`${S[0]??``}px`})}),va(`pointerdown`,ce,e=>ie(e)),va(`pointerdown`,ue,e=>ie(e,0)),va(`keydown`,ue,e=>te(e,0)),H(e,se),k()}var dte,fte,pte,mte,hte;function gte(){return(gte=s((()=>{Y(),J(),Z(),oc(),dte=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),fte=B(`<div role="slider" class="svelte-co5xeo"></div>`),pte=B(`<span role="none" class="label svelte-co5xeo"> </span>`),mte=B(`<div><div role="none" class="base svelte-co5xeo"><div role="none" class="base-bar svelte-co5xeo"></div> <div class="slider-bar svelte-co5xeo"></div> <div role="slider" class="svelte-co5xeo"></div> <!> <!></div></div>`),hte={hash:`svelte-co5xeo`,code:`.slider.svelte-co5xeo {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-co5xeo:hover .base-bar:where(.svelte-co5xeo) {background-color:var(--sui-hover-background-color);}.slider.svelte-co5xeo:active .base-bar:where(.svelte-co5xeo) {background-color:var(--sui-active-background-color);}.base.svelte-co5xeo {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-co5xeo {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-co5xeo {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-co5xeo .slider-bar:where(.svelte-co5xeo) {background-color:var(--sui-error-border-color);}[role=slider].svelte-co5xeo {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-co5xeo:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-co5xeo:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-co5xeo [role=slider]:where(.svelte-co5xeo) {border-color:var(--sui-error-border-color);}.label.svelte-co5xeo {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-co5xeo:dir(ltr) {transform:translateX(-50%);}.label.svelte-co5xeo:dir(rtl) {transform:translateX(50%);}`},ya([`pointerdown`,`keydown`])})))()}function Wm(e,t){O(t,!0),G(e,yte);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=qs(t,_te);var d=vte(),f=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};gs(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-1soui1e`);var p=L(F(d),2),m=e=>{var t=ja();R(()=>U(t,r())),H(e,t)},h=e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)};W(p,e=>{r()?e(m):e(h,-1)}),D(d),H(e,d),k()}var _te,vte,yte;function Gm(){return(Gm=s((()=>{Y(),J(),_te=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`onChange`]),vte=B(`<button><span role="none" class="svelte-1soui1e"></span> <!></button>`),yte={hash:`svelte-1soui1e`,code:`button.svelte-1soui1e {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-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-1soui1e:focus-visible {outline:0;}button.svelte-1soui1e:focus-visible span:where(.svelte-1soui1e) {outline-color:var(--sui-focus-ring-color);}button[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e)::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-1soui1e span:where(.svelte-1soui1e):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-1soui1e {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-1soui1e::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 bte(e,t){G(e,Cte);let n=qs(t,xte);var r=Ste();gs(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-601y9t`),So(F(r),()=>t.children??E),D(r),H(e,r)}var xte,Ste,Cte;function wte(){return(wte=s((()=>{Y(),J(),xte=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Ste=B(`<div><!></div>`),Cte={hash:`svelte-601y9t`,code:`.table-cell.svelte-601y9t {display:table-cell;}`}})))()}function Tte(e,t){G(e,Ote);let n=qs(t,Ete);var r=Dte();gs(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-ab2xjt`),So(F(r),()=>t.children??E),D(r),H(e,r)}var Ete,Dte,Ote;function kte(){return(kte=s((()=>{Y(),J(),Ete=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Dte=B(`<div><!></div>`),Ote={hash:`svelte-ab2xjt`,code:`.table-row.svelte-ab2xjt {display:table-row;height:var(--sui-primary-row-height);}`}})))()}function Ate(e,t){G(e,qm);let n=q(t,`ariaLabel`,3,void 0),r=qs(t,jte);var i=Km();gs(i,()=>({...r,role:`table`,class:`sui table ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1meuwqk`),So(F(i),()=>t.children??E),D(i),H(e,i)}var jte,Km,qm;function Jm(){return(Jm=s((()=>{Y(),J(),jte=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),Km=B(`<div><!></div>`),qm={hash:`svelte-1meuwqk`,code:`.table.svelte-1meuwqk {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-1meuwqk {border-collapse:collapse;}.table.data.svelte-1meuwqk :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}})))()}function Mte(e,t){O(t,!0),G(e,Zm);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=qs(t,Ym),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)})};rc(()=>{let e=new ResizeObserver(()=>{u()});return e.observe(z(c)),()=>{e.disconnect()}});var d=Xm(),f=()=>{u()},p=e=>{u(),t.onChange?.(e)};gs(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-1nmp560`);var m=F(d);So(F(m),()=>t.children??E),D(m);var h=L(m,2);D(d),Bs(d,e=>P(c,e),()=>z(c)),Ko(d,Tf),R(()=>{m.inert=r(),ss(h,z(l))}),H(e,d),k()}var Ym,Xm,Zm;function Qm(){return(Qm=s((()=>{Y(),J(),oc(),Ef(),Ym=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`ariaLabel`,`children`,`onChange`]),Xm=B(`<div><div role="none" class="inner svelte-1nmp560"><!></div> <div role="none" class="indicator svelte-1nmp560"></div></div>`),Zm={hash:`svelte-1nmp560`,code:`.tab-list.svelte-1nmp560 {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-1nmp560 {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-1nmp560 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-1nmp560 .indicator:where(.svelte-1nmp560) {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-1nmp560 {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-1nmp560 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-1nmp560 .indicator:where(.svelte-1nmp560) {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-1nmp560 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-1nmp560 {display:contents;}.indicator.svelte-1nmp560 {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 Nte(e,t){G(e,th);let n=qs(t,$m);var r=eh();gs(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-1ak0vgy`),So(F(r),()=>t.children??E),D(r),H(e,r)}var $m,eh,th;function nh(){return(nh=s((()=>{Y(),J(),$m=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),eh=B(`<div><!></div>`),th={hash:`svelte-1ak0vgy`,code:`.tab-panel.svelte-1ak0vgy {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1ak0vgy, .tab-panel.svelte-1ak0vgy:not([aria-hidden]) {display:none;}`}})))()}function Pte(e,t){let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`selected`,3,!1),a=qs(t,rh);Bd(e,Js(()=>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();So(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var n=V();So(I(n),()=>t.endIcon??E),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var rh;function ih(){return(ih=s((()=>{Y(),J(),Kd(),rh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`])})))()}function ah(e,t){O(t,!0),G(e,ch);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=qs(t,oh),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);rc(()=>(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()})),rc(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-right`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),Zr(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),Zr(()=>{r(),n(),i(),Ri(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=sh(),f=I(d);Bs(f,e=>P(s,e),()=>z(s));var p=L(f,2);gs(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-1p6cs7s`),So(F(p),()=>t.children??E),D(p),Bs(p,e=>P(l,e),()=>z(l)),H(e,d),k()}var oh,sh,ch;function lh(){return(lh=s((()=>{Y(),J(),oc(),oh=new Set([`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),sh=B(`<div role="none" class="sui toast-base svelte-1p6cs7s"></div> <div><!></div>`,1),ch={hash:`svelte-1p6cs7s`,code:`.toast-base.svelte-1p6cs7s {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-1p6cs7s {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-1p6cs7s {display:block;opacity:0;}.toast.top-left.svelte-1p6cs7s {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-1p6cs7s {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-1p6cs7s:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-1p6cs7s:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-1p6cs7s {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-1p6cs7s {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-1p6cs7s {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-1p6cs7s:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-1p6cs7s:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-1p6cs7s {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})))()}var uh=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,`&`).replace(/</g,`<`).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,`"`)+`"`;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,ee;if(v){if(ee=o(x,C,e,_),!ee||ee.index>=e.length)break;var te=ee.index,ne=ee.index+ee[0].length,re=C;for(re+=S.value.length;te>=re;)S=S.next,re+=S.value.length;if(re-=S.value.length,C=re,S.value instanceof a)continue;for(var ie=S;ie!==t.tail&&(re<ne||typeof ie.value==`string`);ie=ie.next)T++,re+=ie.value.length;T--,w=e.slice(C,re),ee.index-=C}else if(ee=o(x,0,w,_),!ee)continue;var te=ee.index,ae=ee[0],oe=w.slice(0,te),se=w.slice(te+ae.length),ce=C+w.length;d&&ce>d.reach&&(d.reach=ce);var le=S.prev;oe&&(le=l(t,le,oe),C+=oe.length),u(t,le,T);var E=new a(f,g?i.tokenize(ae,g):ae,y,ae);if(S=l(t,le,E),se&&l(t,S,se),T>1){var ue={cause:f+`,`+m,reach:ce};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(/&/,`&`))}),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 dh(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 fh(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 ph(){return Uv()._blockCursorElement}function Fte(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}function mh(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}function hh(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&&dh(225),n.reverse()}function gh(e,t=1e3){return e instanceof Kb?e.clone():e.size<t?new Map(e):new Kb().init(new Map(e),void 0,e.size)}function _h(e,t,n,r,i,a){if($(e)){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&(($(o)||sy(o)&&o.__slots!==null)&&_h(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}for(let o of sy(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&cy(e)&&e.__slotHost===t&&(($(e)||sy(e)&&e.__slots!==null)&&_h(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}function Ite(e){Jb=e.timeStamp}function vh(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&Y_(e,n)!==void 0}function Lte(e,t,n){let r=Tv(hv(n)),i=r&&Mv(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&nv(t,s,a,o,!1)}function Rte(e,t,n){if(Q(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return V_(t)&&n.isAttached()}function zte(e,t,n){for(let r=e;r&&!$v(r);r=uv(r)){let e=Y_(r,t);if(e!==void 0){let t=J_(e,n);if(t)return S_(t)||!Lv(r)?void 0:[r,t]}}}function yh(e,t,n){qb=!0;let r=performance.now()-Jb>100;try{x_(e,()=>{let i=n_()||function(e){return e.read(`latest`,()=>{let e=n_();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=zte(f,e,o);if(!p)continue;let[m,h]=p;if(d===`characterData`)r&&Hg(h)&&V_(f)&&Rte(i,f,h)&&Lte(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=sre(r),a=r.parentNode;if(!(a==null||r===s||i!==null||vh(r,a,e)||e._slotsUsed&&Lv(r)&&r.hasAttribute(`data-lexical-slot`)||$v(r))){if(db){let e=(Lv(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];(vh(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`||vh(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(c&&Q_(i),db&&bre(e)&&i.insertRawText(l))})}finally{qb=!1}}function bh(e){let t=e._observer;t!==null&&yh(e,t.takeRecords(),t)}function xh(e){(function(e){Jb===0&&hv(e).addEventListener(`textInput`,Ite,!0)})(e),e._observer=new MutationObserver((t,n)=>{yh(e,t,n)})}function Sh(e,t){return new Xb(e,t)}function Ch(e,t,n=Yb){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function wh(e,t,n){let r;if(m_(),typeof n==`function`){let i=e.getLatest(),a=Ch(i,t);if(r=n(a),t.isEqual(a,r))return i}else r=n;let i=e.getWritable();return Th(i).updateFromKnown(t,r),i}function Bte(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of ry(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 Th(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Qb(t,Eh(t));return t.__state=n,n}function Eh(e){return e.__state?e.__state.sharedNodeState:nre(Uv(),e.getType()).sharedNodeState}function Dh(e){if(e)for(let t in e)return e}function Vte(e){return e}function Oh(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 kh(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 Ah(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function jh(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&&Oh(n,e,t)||t&&Oh(n,t,e)||e&&kh(n,e,t)||t&&kh(n,t,e))}(c,l))}function Mh(e,t){let n=e.mergeWithSibling(t),r=g_()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Nh(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&Hg(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(jh(t,r)){r=Mh(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Hg(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(jh(r,n)){r=Mh(r,n);break}break}n.remove()}}else r.remove()}function Ph(e){return Fh(e.anchor),Fh(e.focus),e}function Fh(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),Hg(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!$(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}function Ih(e,t){return fx.read(()=>{let n=0,r=e;for(let e=0;e<t&&r!==null;e++){let i=dx.get(r);if(i===void 0&&dh(345,r),$(i)){let a=px.get(r);if(a!==void 0&&$(a)&&a.__parent!==i.__parent)n+=i.getTextContentSize();else{let e=mx.get(r),t=e&&e.__lexicalTextContent;typeof t!=`string`&&dh(346,i.getType()),n+=t.length}e<t-1&&!i.isInline()&&(n+=2)}else{let e=i[$b];e===void 0&&dh(347,i.getType(),r),n+=e}r=i.__next}return n},{editor:nx})}function Lh(e){$(e)||e[$b]===void 0&&(e[$b]=Hg(e)?e.__text.length:e.getTextContentSize())}function Rh(){return{firstTextKey:sx,format:ax,style:ox}}function zh(e){e.firstTextKey!==null&&(ax=e.format,ox=e.style,sx=e.firstTextKey)}function Bh(e){if(sx!==null)return;let t=e.__lexicalFirstTextKey;if(t===void 0&&dh(348),t===null)return;let n=px.get(t);Hg(n)&&(ax=n.getFormat(),ox=n.getStyle(),sx=t)}function Vh(e,t){let n=dx.get(e),r=px.has(e);if(t!==null){let n=cg(e);n.parentNode===t&&t.removeChild(n)}if(!r){if(nx._keyToDOMMap.delete(e),$(n)){let e=ay(n,dx);Hh(e,0,e.length-1,null)}if(n!==void 0){for(let e of Xh(n).values()){let t=Qh(e);Vh(e,null),t!==null&&t.remove()}sv(gx,rx,cx,n,`destroyed`)}}}function Hh(e,t,n,r){for(let i=t;i<=n;++i){let t=e[i];t!==void 0&&Vh(t,r)}}function Uh(e,t){e.setProperty(`text-align`,t)}function Wh(e,t){let n=tx.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, ${bx}))`)}function Gh(e,t){let n=e.style;t===0?Uh(n,``):t===1?Uh(n,`left`):t===2?Uh(n,`center`):t===3?Uh(n,`right`):t===4?Uh(n,`justify`):t===5?Uh(n,`start`):t===6&&Uh(n,`end`)}function Kh(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(C_(e))return null;let n=e.getParent();return n===null||yv(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function qh(e){let t=Av().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function Jh(e,t,n){t||e.contentEditable===`false`?Are(n,nx):n.removeAttribute(`contenteditable`)}function Yh(e,t,n){let r=ix,i=Rh();ix=``;let a=``,o=S_(e);for(let[r,i]of n){let n=qh(r);Jh(t,o,n),t.appendChild(n),ix=``;let s=Rh();eg(i,Gv(e,n,nx)),zh(s),Zh(e,r,t,n),a+=ix}return zh(i),ix=r,a}function Xh(e){return sy(e)&&e.__slots!==null?e.__slots:YS}function Zh(e,t,n,r){let i=_x.$getSlotTargetElement(e,t,n,nx);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function Qh(e){let t=mx.get(e);return t===void 0?null:t.parentElement}function $h(e,t,n){let r=Xh(e),i=Xh(t);for(let[e,t]of r)if(!i.has(e)){let e=Qh(t);Vh(t,null),e!==null&&e.remove()}let a=ix,o=Rh(),s=``,c=null,l=S_(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:Qh(i);ix=``;let u=Rh();if(o===null){o=qh(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),eg(a,Gv(t,o,nx))}else i===a?ig(a,o):(i!==void 0&&Vh(i,o),eg(a,Gv(t,o,nx)));if(zh(u),Jh(n,l,o),Zh(t,e,n,o),s+=ix,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return zh(o),ix=a,s}function eg(e,t){let n=px.get(e);if(n===void 0&&dh(60),t!==null){let r=dx.get(e);if(r!==void 0){let i=mx.get(e);if(i!==void 0){let a=cy(r)?r.__slotHost:null,o=cy(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),ig(e,t.element)}}}let r=_x.$createDOM(n,nx);if(function(e,t,n){let r=n._keyToDOMMap;cre(t,n,e),r.set(e,t)}(e,r,nx),Hg(n)?r.setAttribute(`data-lexical-text`,`true`):S_(n)&&(r.setAttribute(`data-lexical-decorator`,`true`),Qv(r,{captureSelection:!0})),$(n)){let e=n.__indent,t=n.__size;Kh(r,n),e!==0&&Wh(r,e);let i=Xh(n),a=i.size>0?Yh(n,r,i):``;if(t===0)r.__lexicalTextContent=a,r.__lexicalFirstTextKey=null,ix+=a,i.size>0&&(r.__lexicalSlotTextLength=a.length);else{let e=ix,o=t-1;if(tg(ay(n,px),n,0,o,Gv(n,r,nx)),a!==``){let t=r.__lexicalTextContent||``;r.__lexicalTextContent=a+t,ix=e+a+t}i.size>0&&(r.__lexicalSlotTextLength=a.length)}let o=n.__format;o!==0&&Gh(r,o),n.isInline()||ng(null,n,r)}else{let t=n.getTextContent();if(S_(n)){let t=n.decorate(nx,tx);t!==null&&ag(e,t),r.contentEditable=`false`;let i=Xh(n);i.size>0&&Yh(n,r,i)}ix+=t}return t!==null&&t.insertChild(r),_x.$decorateDOM(n,null,r,nx),Lh(n),sv(gx,rx,cx,n,`created`),r}function tg(e,t,n,r,i){let a=ix,o=Rh();ix=``,ax=null,ox=null,sx=null;let s=n;for(;s<=r;++s){let t=Rh();eg(e[s],i);let n=px.get(e[s]);n!==null&&Hg(n)?ax===null&&(ax=n.getFormat(),ox=n.getStyle(),sx=n.__key):$(n)&&s<r&&!n.isInline()&&(ix+=kb),zh(t)}let c=nx._keyToDOMMap.get(t.__key);c===void 0&&dh(349,t.__key),c.__lexicalTextContent=ix,c.__lexicalFirstTextKey=sx,ix=a+ix,zh(o)}function ng(e,t,n){let r=Gv(t,n,nx),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 D_(e)?`line-break`:S_(e)&&e.isInline()?`decorator`:null}return Xh(e).size>0?null:`empty`}return null}(t,px);i!==a&&r.setManagedLineBreak(a)}function Hte(e,t,n){var r;ax=null,ox=null,sx=null,function(e,t,n){let r=ix,i=e.__size,a=t.__size;ix=``;let o=n.element,s=nx._keyToDOMMap.get(t.__key);s===void 0&&dh(351,t.__key);let c=a-i;if(!vx&&Math.abs(c)<=1&&i>=ex&&e.__first===t.__first&&(c!==0||!nx._cloneNotNeeded.has(e.__key))){let i=s.__lexicalTextContent,l=hx.get(e.__key);if(!vx&&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=px.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=Ih(a,u),n=a,c=0;for(;n!==null&&c<u;){let e=px.get(n);if(e===void 0)break;let t=Rh();ig(n,o),Hg(e)&&ax===null&&(ax=e.getFormat(),ox=e.getStyle(),sx=e.__key),zh(t),n=e.__next,c++}let d=``;for(n=a,c=0;n!==null&&c<u;){let e=px.get(n);if(e===void 0)break;let t;if($(e)){let r=nx._keyToDOMMap.get(n),i=r&&r.__lexicalTextContent;typeof i!=`string`&&dh(352,e.getType()),t=i}else t=e.getTextContent();d+=t,c<u-1&&$(e)&&!e.isInline()&&(d+=kb),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,ix=r+m,rg(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=dx.get(l);if(e===void 0)return!1;l=e.__prev}if(l===null)return!1;let u=px.get(a),d=dx.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=px.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=dx.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=Ih(l,c);for(let e of _){let t=Rh();if(e.kind===`reconcile`)ig(e.key,n.element);else if(e.kind===`destroy`)Vh(e.key,n.element);else{let t=null;for(let n=e.nextIndex+1;n<o;n++){let e=nx._keyToDOMMap.get(f[n]);if(e!==void 0){t=e;break}}eg(e.key,n.withBefore(t??n.before))}if(e.kind!==`destroy`){let t=px.get(e.key);t&&Hg(t)&&ax===null&&(ax=t.getFormat(),ox=t.getStyle(),sx=t.__key)}zh(t)}let x=``;for(let e=0;e<o;e++){let t=px.get(f[e]);if(t===void 0)return!1;let n;if($(t)){let r=nx._keyToDOMMap.get(f[e]),i=r&&r.__lexicalTextContent;typeof i!=`string`&&dh(350,t.getType()),n=i}else n=t.getTextContent();x+=n,e<o-1&&$(t)&&!t.isInline()&&(x+=kb)}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`&&dh(353),ix=r+e,rg(t,s,l);return}}}if(c===0){let t=e.__first,n=0;for(;t!==null;){let e=px.get(t);if(e===void 0)break;let r=vx||ux.has(t)||lx.has(t),i=Rh();if(r)ig(t,o);else{let n,r;if($(e)){r=mx.get(t);let i=r&&r.__lexicalTextContent;typeof i!=`string`&&dh(354,e.getType()),n=i}else n=e.getTextContent();ix+=n,r!==void 0&&Bh(r)}Hg(e)?ax===null&&(ax=e.getFormat(),ox=e.getStyle(),sx=e.__key):$(e)&&n<a-1&&!e.isInline()&&(ix+=kb),zh(i),t=e.__next,n++}s.__lexicalTextContent=ix,s.__lexicalFirstTextKey=sx,ix=r+ix;return}}if(i===1&&a===1){let r=e.__first,i=t.__first;if(r===i)ig(r,o);else{let e=cg(r),t=eg(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}Vh(r,null)}let a=px.get(i);Hg(a)&&ax===null&&(ax=a.getFormat(),ox=a.getStyle(),sx=a.__key)}else{let r=ay(e,dx),s=ay(t,px);if(r.length!==i&&dh(227),s.length!==a&&dh(228),i===0)a!==0&&tg(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&Xh(t).size===0&&n.element.__lexicalLineBreak==null;Hh(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=Rh();if(e===r)u=og(ig(r,a.element)),d++,f++;else{if(l===void 0&&(l=sg(n,f)),c===void 0)c=sg(t,d);else if(!c.has(e)){d++,zh(i);continue}if(!l.has(e)){u=og(cg(e)),Vh(e,a.element),d++,c.delete(e),zh(i);continue}if(c.has(r)){let e=lv(nx,r);e!==u&&a.withBefore(u??a.before).insertChild(e),u=og(ig(r,a.element)),d++,f++}else eg(r,a.withBefore(u??a.before)),f++}let o=px.get(r);o!==null&&Hg(o)?ax===null&&(ax=o.getFormat(),ox=o.getStyle(),sx=o.__key):$(o)&&f<=s&&!o.isInline()&&(ix+=kb),zh(i)}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:nx.getElementByKey(t);tg(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&Hh(t,d,o,a.element)})(t,r,s,i,a,n)}s.__lexicalTextContent=ix,s.__lexicalFirstTextKey=sx,ix=r+ix}(e,t,Gv(t,n,nx)),yv(t)||(r=t,ax==null||ax===r.__textFormat||yx||r.setTextFormat(ax),function(e){ox==null||ox===e.__textStyle||yx||e.setTextStyle(ox)}(t))}function rg(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=px.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=px.get(r);if(Hg(e))return ax=e.getFormat(),void(ox=e.getStyle())}}t.__lexicalFirstTextKey=sx}function ig(e,t){let n=dx.get(e),r=px.get(e);n!==void 0&&r!==void 0||dh(61);let i=vx||ux.has(e)||lx.has(e),a=lv(nx,e);if(n===r&&!i){let e;if($(n)){let t=a.__lexicalTextContent;typeof t!=`string`&&dh(355,n.getType()),e=t,Bh(a)}else e=n.getTextContent();return ix+=e,a}if(n!==r&&i&&sv(gx,rx,cx,r,`updated`),_x.$updateDOM(r,n,a,nx)){let n=eg(e,null);return t===null&&dh(62),t.replaceChild(n,a),Vh(e,null),n}if($(n)){$(r)||dh(334,e);let t=r.__indent;(vx||t!==n.__indent)&&Wh(a,t);let o=r.__format;(vx||o!==n.__format)&&Gh(a,o);let s=i&&(Xh(r).size>0||Xh(n).size>0)?$h(n,r,a):``;if(i){let e=ix;if(Hte(n,r,a),C_(r)||r.isInline()||ng(0,r,a),s!==``){let t=a.__lexicalTextContent||``;a.__lexicalTextContent=s+t,ix=e+s+t,a.__lexicalSlotTextLength=s.length}else(Xh(r).size>0||Xh(n).size>0)&&(a.__lexicalSlotTextLength=0)}else{let e=a.__lexicalTextContent;typeof e!=`string`&&dh(356,n.getType()),ix+=e,Bh(a)}if((vx||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(Kh(a,r),C_(r)&&!vx))for(let e of r.getChildren())$(e)&&Kh(lv(nx,e.getKey()),e)}else{let t=r.getTextContent();if(S_(r)){let t=r.decorate(nx,tx);t!==null&&ag(e,t),i&&(Xh(r).size>0||Xh(n).size>0)&&$h(n,r,a)}ix+=t}if(!yx&&C_(r)){let e=r.getLatest();if(e.__cachedText!==ix){let t=e.getWritable();t.__cachedText=ix,r=t}}return _x.$decorateDOM(r,n,a,nx),Lh(r),a}function ag(e,t){let n=nx._pendingDecorators,r=nx._decorators;if(n===null){if(r[e]===t)return;n=lre(nx)}n[e]=t}function og(e){let t=e.nextSibling;return t!==null&&t===nx._blockCursorElement&&(t=t.nextSibling),t}function sg(e,t){let n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function Ute(e,t,n,r,i,a){ix=``,ax=null,ox=null,sx=null,vx=r===2,nx=n,tx=n._config,_x=n._config.dom||zS,rx=n._nodes,cx=nx._listeners.mutation,lx=i,ux=a,dx=e._nodeMap,fx=e,px=t._nodeMap,yx=t._readOnly,mx=gh(n._keyToDOMMap),hx=function(){let e=new Map,t=t=>{for(let n of t){let t=px.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(lx.keys()),t(ux),e}();let o=new Map;return gx=o,ig(`root`,null),nx=void 0,rx=void 0,lx=void 0,ux=void 0,dx=void 0,fx=void 0,px=void 0,tx=void 0,mx=void 0,hx=void 0,gx=void 0,_x=zS,o}function cg(e){let t=mx.get(e);return t===void 0&&dh(75,e),t}function lg(e){return{type:e}}function Wte(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 Gte(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}function ug(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=g_(),u;if(a!==void 0)u=a;else{let e=Tv(hv(l));u=e===null?null:Mv(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!Hg(c)||(!i&&(!fb||l._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||c.isDirty()&&m<2||fre(n))&&o.offset!==s.offset&&!c.isComposing()||B_(c)||c.isDirty()&&m>1||(i||!fb)&&p!==null&&!c.isComposing()&&d!==Kv(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=z_(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(Hg(t)||$(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function dg(e,t){return V_(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function fg(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=Mv(e,t._rootElement),s=t._inputState;s.isSelectionChangeFromDOMUpdate&&(s.isSelectionChangeFromDOMUpdate=!1,dg(r,i)&&dg(a,o)&&!s.postDeleteSelectionToRestore)||x_(t,()=>{if(!n)return void Q_(null);if(!F_(t,r,a))return;let c=n_();if(s.postDeleteSelectionToRestore&&Q(c)&&c.isCollapsed()){let e=c.anchor,t=s.postDeleteSelectionToRestore.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(c=s.postDeleteSelectionToRestore.clone(),Q_(c))}if(s.postDeleteSelectionToRestore=null,Q(c)){let n=c.anchor,l=n.getNode();if(c.isCollapsed()){e.type===`Range`&&r===a&&(c.dirty=!0);let i=hv(t).event,o=i?i.timeStamp:performance.now(),{format:u,style:d,offset:f,key:p,timeStamp:m}=s.collapsedSelectionFormat,h=Z_(),g=!1===t.isComposing()&&h.getTextContent()===``;if(o<m+200&&n.offset===f&&n.key===p)pg(c,u,d);else if(n.type===`text`)Hg(l)||dh(141),mg(c,l);else if(n.type===`element`&&!g){$(l)||dh(259);let e=n.getNode();e.isEmpty()?function(e,t){pg(e,t.getTextFormat(),t.getTextStyle())}(c,e):pg(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(Hg(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}}cv(t,xx)})}function pg(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function mg(e,t){pg(e,t.getFormat(),t.getStyle())}function hg(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function gg(e){let{lastKeyCode:t}=g_()._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=n_();if(!Q(r)||!r.isCollapsed())return;let i=r.anchor.getNode();if(!Hg(i))return;let{offset:a}=r.anchor;if(i.getTextContentSize()===a){let e=i.getNextSibling();if(n===`
|
||
`){if(D_(e))e.selectEnd();else if(!e){let e=JS(i,Qg),t=e&&e.getNextSibling();$(t)&&t.selectStart()}}else n===` `?Gg(e)&&e.selectEnd():Hg(e)&&e.getTextContent()[0]===n&&e.select(1,1)}else i.getTextContent()[a]===n&&i.select(a+1,a+1)}function _g(e){e.isInsertTextAfterHandledSelectionCommand=!1,e.handledSelectionCommandTimeoutId!==null&&(clearTimeout(e.handledSelectionCommandTimeoutId),e.handledSelectionCommandTimeoutId=null)}function vg(e){_g(e),e.isInsertTextAfterHandledSelectionCommand=!0,e.handledSelectionCommandTimeoutId=setTimeout(()=>_g(e),0)}function yg(e,t){let n=Fv(e);if(Lv(n)&&ey(n,t))return!0;let r=t.getRootElement();if(r===null)return!1;let i=Pv(r.ownerDocument);return i!==null&&r.contains(i)&&ey(i,t)}function Kte(e){let t=e.inputType,n=hg(e),r=g_(),i=r._inputState,a=n_();if(t===`insertText`&&e.data&&i.isInsertTextAfterHandledSelectionCommand){if(_g(i),e.preventDefault(),Q(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=r_();if(!Q(e))return!0;Q_(e.clone())}if(Q(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(K_(null),i.lastKeyDownTimeStamp=0,setTimeout(()=>{x_(r,()=>{K_(null)})},30),Q(a)){let e=a.anchor.getNode();e.markDirty(),Hg(e)||dh(142),mg(a,e)}}else{if(K_(null),pb&&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=_b&&t&&!l&&c;if(u&&a.isCollapsed()&&(u=!S_(yre(a.anchor,!0))),!u){cv(r,Ox,!0);let e=n_();_b&&Q(e)&&e.isCollapsed()&&(i.postDeleteSelectionToRestore=e,setTimeout(()=>i.postDeleteSelectionToRestore=null))}}return!0}}if(!Q(a))return!0;let o=e.data;i.unprocessedBeforeInputData!==null&&tv(!1,r,i.unprocessedBeforeInputData),a.dirty&&i.unprocessedBeforeInputData===null||!a.isCollapsed()||C_(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(),cv(r,kx,!1);else if(o===kb)e.preventDefault(),cv(r,Ax);else if(o==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),a.insertRawText(t)}else o!=null&&ug(a,n,o,e.timeStamp,!0)?(e.preventDefault(),cv(r,jx,o),gg(o)):i.unprocessedBeforeInputData=o;return i.lastBeforeInputInsertTextTimeStamp=e.timeStamp,!0}switch(e.preventDefault(),t){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:cv(r,jx,e),gg((e.dataTransfer?e.dataTransfer.getData(`text/plain`):null)??e.data);break;case`insertFromComposition`:{let t=i.hadOrphanedCompositionEvents;i.hadOrphanedCompositionEvents=!1;let n=r._compositionKey;K_(null),t||cv(r,jx,e),bg(n);break}case`insertLineBreak`:K_(null),cv(r,kx,!1);break;case`insertParagraph`:K_(null),i.isInsertLineBreak&&!pb?(i.isInsertLineBreak=!1,cv(r,kx,!1)):cv(r,Ax);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:cv(r,Mx,e);break;case`deleteByComposition`:(function(e,t){return e!==t||$(e)||$(t)||!z_(e)||!z_(t)})(l,u)&&cv(r,Nx,e);break;case`deleteByDrag`:fv(Yre),cv(r,Nx,e);break;case`deleteByCut`:cv(r,Nx,e);break;case`deleteContent`:cv(r,Ox,!1);break;case`deleteWordBackward`:cv(r,Px,!0);break;case`deleteWordForward`:cv(r,Px,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:cv(r,Fx,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:cv(r,Fx,!1);break;case`formatStrikeThrough`:cv(r,Ix,`strikethrough`);break;case`formatBold`:cv(r,Ix,`bold`);break;case`formatItalic`:cv(r,Ix,`italic`);break;case`formatUnderline`:cv(r,Ix,`underline`);break;case`historyUndo`:cv(r,Lx);break;case`historyRedo`:cv(r,Rx)}return!0}function qte(e){let t=g_(),n=t._inputState,r=n_(),i=e.data,a=hg(e),o=!1;if(i!=null&&Q(r)){let s=Tv(hv(t)),c=s===null?null:Mv(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()&&Hg(u)&&B_(u);if(!l&&!d&&ug(r,a,i,e.timeStamp,!1,c)){if(o=!0,n.compositionPhase===`ending-firefox`){let e=xg(t,i);if(n.compositionPhase=`idle`,e)return fv(vS),dre(),!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;fb&&!r.isCollapsed()&&Hg(a)&&c.anchorNode!==null&&a.getTextContent().slice(0,u)+i+a.getTextContent().slice(u+d)===mre(c.anchorNode)||cv(t,jx,i);let f=i.length;db&&f>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(r.anchor.offset-=f,r._cachedNodes=null,r._cachedIsBackward=null),_b&&t.isComposing()&&(n.lastKeyDownTimeStamp=0,K_(null))}}return o||(tv(!1,t,i===null?void 0:i),n.compositionPhase===`ending-firefox`&&(xg(t,i||void 0),fv(`composition-end`),n.compositionPhase=`idle`)),dre(),!0}function Jte(e){let t=g_(),n=t._inputState,r=n_();if(Q(r)&&!t.isComposing()){n.compositionPhase=`composing`,n.hadOrphanedCompositionEvents=!1;let i=r.anchor,a=r.anchor.getNode();if(K_(i.key),fv(`composition-start`),e.timeStamp<n.lastKeyDownTimeStamp+30||i.type===`element`||!r.isCollapsed()||!_b&&(a.getFormat()!==r.format||Hg(a)&&a.getStyle()!==r.style)||Hg(a)&&(B_(a)||i.offset===0&&!a.canInsertTextBefore()||i.offset===a.getTextContentSize()&&!a.canInsertTextAfter())){cv(t,jx,Ab);let e=n_();Q(e)&&K_(e.anchor.key)}}return!0}function Yte(e){let t=g_();return t._inputState.compositionPhase=`idle`,xg(t,e.data),fv(vS),!0}function bg(e){if(e===null)return;let t=J_(e);if(!Hg(t)||t.getType()===`text`||B_(t)||!t.isAttached())return;let n=n_(),r=Q(n)&&n.anchor.key===e?n.anchor.offset:null,i=Vg(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 xg(e,t){let n=e._compositionKey;if(K_(null),n!==null&&t!=null){if(t===``){let t=J_(n),r=e.getElementByKey(n),i=r!==null&&Hg(t)?Kv(t,r,e):null;if(i!==null&&i.nodeValue!==null&&Hg(t)){let n=Tv(hv(e)),r=n&&Mv(n,e._rootElement),a=null,o=null;r!==null&&r.anchorNode===i&&(a=r.anchorOffset,o=r.focusOffset),nv(t,i.nodeValue,a,o,!0)}return bg(n),!1}if(t[t.length-1]===`
|
||
`){let t=n_();if(Q(t)||Jg(t)){if(Q(t)){let e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return cv(e,Kx,null),bg(n),!1}}let r=J_(n);if(r!==null&&Hg(r)&&B_(r)){r.markDirty();let e=n_(),i=r.getTextContentSize(),a=Q(e)&&e.anchor.key===n?e.anchor.offset:i;return r.select(a,a).insertText(t),!0}}return tv(!0,e,t),bg(n),!1}function Xte(e){let t=g_(),n=t._inputState;if(e.key==null)return!0;if(n.compositionPhase===`ending-safari`){let r=gre(e);if(r&&x_(t,()=>{xg(t,n.compositionEndData)}),n.compositionPhase=`idle`,n.compositionEndData=``,r)return!0}if(function(e){return av(e,`ArrowRight`,{shiftKey:`any`})}(e))cv(t,Bx,e);else if(function(e){return av(e,`ArrowRight`,{...US,shiftKey:`any`})}(e))cv(t,Vx,e);else if(function(e){return av(e,`ArrowLeft`,{shiftKey:`any`})}(e))cv(t,Hx,e);else if(function(e){return av(e,`ArrowLeft`,{...US,shiftKey:`any`})}(e))cv(t,Ux,e);else if(function(e){return av(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}(e))cv(t,Wx,e);else if(function(e){return av(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}(e))cv(t,Gx,e);else if(function(e){return av(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}(e))n.isInsertLineBreak=!0,cv(t,Kx,e);else if(function(e){return e.key===` `}(e))cv(t,qx,e);else if(function(e){return ub&&av(e,`o`,{ctrlKey:!0})}(e))e.preventDefault(),n.isInsertLineBreak=!0,cv(t,kx,!0);else if(function(e){return av(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}(e))n.isInsertLineBreak=!1,cv(t,Kx,e);else if(function(e){return av(e,`Backspace`,{shiftKey:`any`})||ub&&av(e,`h`,{ctrlKey:!0})}(e))gre(e)?cv(t,Jx,e)&&vg(n):(e.preventDefault(),cv(t,Ox,!0));else if(function(e){return e.key===`Escape`}(e))cv(t,Yx,e);else if(function(e){return av(e,`Delete`,{})||ub&&av(e,`d`,{ctrlKey:!0})}(e))(function(e){return e.key===`Delete`})(e)?cv(t,Xx,e):(e.preventDefault(),cv(t,Ox,!1));else if(function(e){return av(e,`Backspace`,WS)}(e))e.preventDefault(),cv(t,Px,!0);else if(function(e){return av(e,`Delete`,WS)}(e))e.preventDefault(),cv(t,Px,!1);else if(function(e){return ub&&av(e,`Backspace`,{metaKey:!0})}(e))e.preventDefault(),cv(t,Fx,!0);else if(function(e){return ub&&(av(e,`Delete`,{metaKey:!0})||av(e,`k`,{ctrlKey:!0}))}(e))e.preventDefault(),cv(t,Fx,!1);else if(function(e){return av(e,`b`,US)}(e))e.preventDefault(),cv(t,Ix,`bold`);else if(function(e){return av(e,`u`,US)}(e))e.preventDefault(),cv(t,Ix,`underline`);else if(function(e){return av(e,`i`,US)}(e))e.preventDefault(),cv(t,Ix,`italic`);else if(function(e){return av(e,`Tab`,{shiftKey:`any`})}(e))cv(t,Zx,e);else if(function(e){return av(e,`z`,US)}(e))e.preventDefault(),cv(t,Lx);else if(function(e){return ub?av(e,`z`,{metaKey:!0,shiftKey:!0}):av(e,`y`,{ctrlKey:!0})||av(e,`z`,{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),cv(t,Rx);else{let r=t._editorState._selection;(function(e){return av(e,`a`,US)})(e)?(e.preventDefault(),cv(t,oS,e)&&vg(n)):r===null||Q(r)||(function(e){return av(e,`c`,US)}(e)?(e.preventDefault(),cv(t,iS,e)):function(e){return av(e,`x`,US)}(e)&&(e.preventDefault(),cv(t,aS,e)))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(Kre,e),!0}function Sg(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}function Cg(e){let t=Cre(e.target);if(t===null)return;let n=dv(e.target),r=null,i=null,a=n===null?void 0:fS.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&&Ev(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=Mv(t,e).anchorNode;if(s!==null&&L_(s)===o){if(Ev(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||Lv(e)&&e.shadowRoot!==null||(r=L_(e),r!==null&&(i=e))}}if(r===null){let e=Pv(n);r=e===null?null:L_(e)}}if(r===null)return;if(r._inputState.isSelectionChangeFromMouseDown){if(a!==void 0)for(let e of a.editors)e._inputState.isSelectionChangeFromMouseDown=!1;x_(r,()=>{let n=r_(),a=i??Mv(t,r._rootElement).anchorNode;(Lv(a)||V_(a))&&Q_(t_(n,t,r,e))})}let o=ev(r),s=o[o.length-1],c=s._key,l=pS.get(c),u=l||s;u!==r&&fg(t,u,!1),fg(t,r,!0),r===s?l&&pS.delete(c):pS.set(c,r)}function wg(e){e._lexicalHandled=!0}function Tg(e){return!0===e._lexicalHandled}function Zte(e){let t=dS.get(e);if(t===void 0)return;let n=fS.get(t);if(n===void 0)return;dS.delete(e);let r=R_(e);I_(r)?(function(e){if(e._parentEditor!==null){let t=ev(e),n=t[t.length-1]._key;pS.get(n)===e&&pS.delete(n)}else pS.delete(e._key)}(r),n.editors.delete(r),n.hasShadowEditor=void 0,e.__lexicalEditor=null):r&&dh(198);let i=Sg(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function Eg(e,t,n){m_();let r=e.__key,i=e.getParent();if(i===null)return void(ly(e)!==null&&dh(367,r,String(ly(e))));let a=function(e){let t=n_();if(!Q(t)||!$(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),a=r.getNode();return pv(i,e)&&n.set(e.__key,0,`element`),pv(a,e)&&r.set(e.__key,0,`element`),t}(e),o=!1;if(Q(a)&&t){let t=a.anchor,n=a.focus;t.key===r&&(a_(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(a_(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else Jg(a)&&t&&e.isSelected()&&e.selectPrevious();if(Q(a)&&t&&!o){let t=e.getIndexWithinParent();W_(e),i_(a,i,t,-1)}else W_(e);n||yv(i)||i.canBeEmpty()||!i.isEmpty()||Eg(i,t),t&&a&&C_(i)&&i.isEmpty()&&i.selectEnd()}function Dg(e){return e}function Og(e){return e[mS]||!1}function kg(e){return e instanceof gS}function Ag(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 Qte(e,t,n){let r=n.trimEnd(),i=r.length-10;i>=0&&r.slice(i).toLowerCase()===Xre?e.setProperty(t,r.slice(0,i).trim(),`important`):e.setProperty(t,n,``)}function jg(e,t,n=``){if(t===n)return;let r=Ag(n),i=Ag(t);for(let t in i)delete r[t],Qte(e,t,i[t]);for(let t in r)e.removeProperty(t)}function Mg(e,t){return 16&t?`code`:t&128?`mark`:32&t?`sub`:64&t?`sup`:null}function Ng(e,t){return 1&t?`strong`:2&t?`em`:`span`}function Pg(e,t,n,r,i){let a=r.classList,o=ov(i,`base`);o!==void 0&&a.add(...o),o=ov(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 Nb){let r=Nb[e];if(o=ov(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 Fg(e,t,n){let r=n.isComposing(),i=e+(r?Ob:``),a=Uv(),o=Wv(a).$getDOMSlot(n,t,a),s=o.getFirstChild();if(s===null||s.nodeType!==Node.TEXT_NODE)return void o.insertChild(Av().createTextNode(i));let c=s,l=c.nodeValue;if(l!==i){if(r||db){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 Ig(e,t,n,r,i,a){Fg(i,e,t);let o=a.theme.text;o!==void 0&&Pg(0,0,r,e,o)}function Lg(e,t){let n=Av().createElement(t);return n.appendChild(e),n}function Rg(e){return e!=null&&!0===e.__isInlineFormattable}function $te(e){return{forChild:Ug(e.style),node:null}}function ene(e){let t=e,n=t.style.fontWeight===`normal`;return{forChild:Ug(t.style,n?void 0:`bold`),node:null}}function tne(e){if(!Lv(e))return!1;if(e.nodeName===`PRE`)return!0;let t=e.style.whiteSpace;return typeof t==`string`&&t.startsWith(`pre`)}function nne(e){let t=e;e.parentElement===null&&dh(129);let n=t.textContent||``;if(function(e){let t,n=e.parentNode,r=[e];for(;n!==null&&(t=bS.get(n))===void 0&&!tne(n);)r.push(n),n=n.parentNode;let i=t===void 0?n:t;for(let e=0;e<r.length;e++)bS.set(r[e],i);return i}(t)!==null)return{node:Ene(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=zg(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=zg(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:Vg(n)}}function zg(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,Lv(n)){let e=n.style.display;if(e===``&&!Bv(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(V_(n))return n;if(n.nodeName===`BR`)return null}}function Bg(e){let t=Zre[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Ug(e.style,t),node:null}}function Vg(e=``){return xv(new yS(e))}function Hg(e){return e instanceof yS}function Ug(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=>Hg(e)||Rg(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 Wg(){return xv(new xS)}function Gg(e){return e instanceof xS}function Kg(e,t,n){return new Qre(e,t,n)}function qg(e,t){let n=t.__key,r=e.offset,i=`element`;if(Hg(t)){i=`text`;let e=t.getTextContentSize();r>e&&(r=e)}else if(!$(t)){let e=t.getNextSibling();if(Hg(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 rne(e,t){if($(t)){let n=t.getLastDescendant();$(n)||Hg(n)?qg(e,n):qg(e,t)}else qg(e,t)}function ine(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=Vg();if(o.setFormat(n),o.setStyle(r),A_(a))a.splice(0,0,[o]);else if(a!==null){let e=yv(i)?k_().append(o):o;a.insertBefore(e)}else if(yv(i)){let e=i.getLastChild();$(e)&&!e.isInline()&&e.isEmpty()?e.append(o):i.append(k_().append(o))}else i.append(o);e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}function ane(e,t,n,r){let i=e.anchor.getNode();Hg(i)||dh(398);let a=e.anchor.offset,o=Vg(t);o.setFormat(n),o.setStyle(r);let s=i.getParentOrThrow();if(a===0)s.isInline()&&!i.__prev?s.insertBefore(o):i.insertBefore(o,!1);else if(a===i.getTextContentSize())s.isInline()&&!i.__next?s.insertAfter(o):i.insertAfter(o,!1);else{let[e]=i.splitText(a);e.insertAfter(o,!1)}i.getTextContent()===``&&i.isAttached()&&i.remove(),o.selectEnd(),o.isComposing()&&e.anchor.type===`text`&&e.anchor.set(e.anchor.key,e.anchor.offset-t.length,e.anchor.type)}function one(){let e=Z_();if(e.isEmpty()){let t=k_();e.append(t),t.select()}}function Q(e){return e instanceof CS}function Jg(e){return e instanceof SS}function sne(e,t){if(Jg(e)){for(let n of e.getNodes())Rg(n)&&n.setFormat(t(n.getFormat()));return}if(e.isCollapsed())return e.setFormat(t(e.format)),void K_(null);let n=[];for(let r of e.getNodes())Hg(r)?n.push(r):$(r)?r.setTextFormat(t(r.getTextFormat())):Rg(r)&&r.setFormat(t(r.getFormat()));let r=n.length;if(r===0)return e.setFormat(t(e.format)),void K_(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(B_(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||B_(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()||B_(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 cne(e,t){let n=[];for(let[e,r]of Object.entries(t))typeof r==`boolean`&&n.push([e,r]);n.length!==0&&sne(e,e=>{for(let[t,r]of n)e=U_(e,t,r?Nb[t]:0);return e})}function lne(e,t,n=null){let r=n===null&&Q(e)?U_(e.format,t,null):n;sne(e,e=>U_(e,t,r))}function une(e){let t=e.offset;if(e.type===`text`)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Yg(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]:[une(n),une(r)]}function dne(e,t){for(let n=t;n;n=n.getParent()){if($(n)){if(n.collapseAtStart(e))return!0;if(yv(n))break}if(n.getPreviousSibling())break}return!1}function fne(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 pne(e,t,n,r){e.modify(t,n,r)}function mne(e,t,n){let r=e.getNodes(),i=r.filter(e=>pv(e,n));if(i.length===0||i.length===r.length)return!1;let a=t?i[0]:i[i.length-1],o=$(a)?a:a.getParentOrThrow();return t?o.selectStart():o.selectEnd(),!0}function Xg(e,t,n){if(f_(e,`extend`,t,n))return;let r=g_(),i=Tv(hv(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||!$(c)||c.isInline()||c.canBeEmpty()||wv(a,r,o);let l=e=>{let t=e.getNode(),n=r.getElementByKey(e.key);return n!==null&&e.type===`text`&&Hg(t)?Kv(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(o_(i,h,g,h,g),pne(i,`move`,t?`backward`:`forward`,n),i.rangeCount===0)return;let _=jv(i,o)||i.getRangeAt(0),v=_.startContainer,y=_.startOffset;if(p&&n===`character`&&s.type===`text`&&Hg(u)&&u.isUnmergeable()&&f===(t?0:u.getTextContentSize())){let n=Ty(u,t?`previous`:`next`).getNodeAtCaret();if(Hg(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=C_(u)?u:_v(u);e.applyDOMRange({collapsed:!1,endContainer:S,endOffset:C,startContainer:b,startOffset:x}),e.dirty=!0,!mne(e,t,w)&&t&&fne(e),n===`lineboundary`&&f_(e,`extend`,t,n,`decorators`)}function hne(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 gne(e,t,n,r){let i,a=t,o=!1;if(Lv(e)){let s=!1,c=e.childNodes,l=c.length,u=r._blockCursorElement;a===l&&l>0&&(s=!0,a=l-1),Y_(e,r)!==void 0||ey(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=$_(d),Hg(i))a=Dy(i,s?`next`:`previous`);else{let c=$_(e);if(c===null)return null;if($(c)){let o=r.getElementByKey(c.getKey());o===null&&dh(214);let l=Gv(c,o,r);[c,a]=l.resolveChildIndex(c,o,e,t),$(c)||dh(215),s&&a>=c.getChildrenSize()&&(a=Math.max(0,c.getChildrenSize()-1));let u=c.getChildAtIndex(a);if($(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=$(u)?u:u.getParentOrThrow()),a=0}Hg(u)?(i=u,c=null,a=Dy(u,s?`next`:`previous`)):u!==c&&s&&!f&&($(c)||dh(216),a=Math.min(c.getChildrenSize(),a+1))}else{let n=uy(c),i=n===null?c:n,o=i.getIndexWithinParent(),s=r.getElementByKey(c.getKey()),l=`after`;if(s!==null&&$_(e)===c){let n=Gv(c,s,r);n.element===s?t===0&&S_(c)&&(l=`before`):l=n.resolveLeafPosition(s,e,t)}a=l===`before`?o:o+1,c=i.getParentOrThrow()}if($(c))return[Kg(c.__key,a,`element`),o]}}else i=$_(e);return Hg(i)?[Kg(i.__key,Dy(i,a,`clamp`),`text`),o]:null}function _ne(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&&$(a)&&a.isInline()){let t=a.getPreviousSibling();Hg(t)&&e.set(t.__key,t.getTextContent().length,`text`)}}else $(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),`element`):Hg(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&&$(r)&&r.isInline())e.set(r.__key,0,`element`);else if((n||t)&&r===null&&$(a)&&a.isInline()&&!a.canInsertTextAfter()&&a.getTextContentSize()>1){let t=a.getNextSibling();Hg(t)&&e.set(t.__key,0,`text`)}}}function Zg(e){let t=J_(e.key);return t===null?null:dy(t)}function vne(e,t,n){let r=Zg(e),i=Zg(t);if(r===i||r!==null&&i!==null&&r.is(i))return!1;let a=n(r,i);if(r!==null)return $(r)?t.set(r.getKey(),a?r.getChildrenSize():0,`element`):t.set(r.getKey(),a?r.getTextContentSize():0,`text`),!0;let o=uy(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 yne(e){let t=vne(e.anchor,e.focus,(t,n)=>function(e,t,n,r){if(n!==null&&r!==null){let e=uy(n),t=uy(r);if(e!==null&&e.is(t)){for(let t of fy(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=uy(n),r=J_(t.key);return e===null||r===null||!(!e.is(r)&&!e.isParentOf(r))||e.isBefore(r)}let i=uy(r),a=J_(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 bne(e,t,n,r,i,a){if(e===null||n===null||!F_(i,e,n))return null;let o=gne(e,t,Q(a)?a.anchor:null,i);if(o===null)return null;let s=gne(n,r,Q(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=$_(e),r=$_(n);if(S_(t)&&S_(r))return null}let f=i._slotsUsed&&vne(c,u,()=>(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)!==0);return function(e,t){if(e.type===`text`&&t.type===`text`){let n=e.isBefore(t),r=e.is(t);_ne(e,n,r),_ne(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}(c,u),[c,u,l||d||f]}function Qg(e){return $(e)&&!e.isInline()}function xne(e,t,n,r,i,a){let o=h_(),s=new CS(Kg(e,t,i),Kg(n,r,a),0,``);return s.dirty=!0,o._selection=s,s}function $g(){let e=Kg(`root`,0,`element`),t=Kg(`root`,0,`element`);return new CS(e,t,0,``)}function e_(){return new SS(new Set)}function t_(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=!qb&&(s||o===`beforeinput`||o===`compositionstart`||o===`compositionend`||o===`click`&&a&&a.detail===3||o===`drop`||o===void 0),l,u,d,f;if(Q(e)&&!c)return e.clone();{if(t===null)return null;let r=Mv(t,n._rootElement);if(l=r.anchorNode,u=r.focusNode,d=r.anchorOffset,f=r.focusOffset,(s||o===void 0)&&Q(e)&&!F_(n,l,u))return e.clone()}let p=bne(l,d,u,f,n,e);if(p===null)return null;let[m,h,g]=p,_=0,v=``;if(Q(e)){let t=e.anchor;if(m.key===t.key)_=e.format,v=e.style;else{let e=m.getNode();Hg(e)?(_=e.getFormat(),v=e.getStyle()):$(e)&&(_=e.getTextFormat(),v=e.getTextStyle())}}let y=new CS(m,h,_,v);return g&&(y.dirty=!0),y}function n_(){return h_()._selection}function r_(){return g_()._editorState._selection}function i_(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`),Sne(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`)}}Sne(e)}function Sne(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,a=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!$(a))return;let e=a.getChildrenSize(),i=n>=e,o=i?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(Hg(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,`text`),r.set(o.__key,e,`text`)}return}if($(a)){let e=a.getChildrenSize(),r=n>=e,i=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(Hg(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,`text`)}}if($(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(Hg(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,`text`)}}}function a_(e,t,n,r,i){let a=null,o=0,s=null;r===null?i!==null&&(a=i.__key,Hg(i)?s=`text`:$(i)&&(s=`element`)):(a=r.__key,Hg(r)?(o=r.getTextContentSize(),s=`text`):$(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 Cne(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 o_(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch{}}function wne(e,t,n){let r=lv(e,t.getKey());if($(t)){let i=Gv(t,r,e);return[i.element,n+i.getFirstChildOffset()]}return[r,n]}function Tne(e,t,n,r,i,a){let o=a.getRootNode(),s=H_(o)||Ev(o)?Pv(o):null;if(i.has(`collaboration`)&&s!==a||s!==null&&P_(s,s))return;let c=Mv(r,a),l;if(!Q(t))return void(e!==null&&F_(n,c.anchorNode,c.focusNode)&&r.removeAllRanges());let u=t.anchor,d=t.focus,f=u.getNode(),p=d.getNode(),[m,h]=wne(n,f,u.offset),[g,_]=wne(n,p,d.offset),v=t.format,y=t.style,b=t.isCollapsed(),x=m,S=g,C=!1;if(u.type===`text`?(x=Hg(f)?Kv(f,m,n):null,C=f.getFormat()!==v||f.getStyle()!==y):Q(e)&&e.anchor.type===`text`&&(C=!0),d.type===`text`&&(S=Hg(p)?Kv(p,g,n):null),x!==null&&S!==null){if(b&&(e===null||C||Q(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:L_(s);e!==null&&e!==n||i.has(`skip-selection-focus`)||a.focus({preventScroll:!0})}if(u.type!==`element`)return}if(o_(r,x,h,S,_),db&&t.isCollapsed()&&a!==null&&!i.has(`skip-selection-focus`)){let e=Nv(a);if(e===null||!a.contains(e)){let e=Pv(a.ownerDocument),t=e===null?null:L_(e);t!==null&&t!==n||a.focus({preventScroll:!0})}}if(!i.has(`skip-scroll-into-view`)&&t.isCollapsed()&&a!==null&&a===Nv(a)){let e=Q(t)&&t.anchor.type===`element`?x.childNodes[h]||null:(l===void 0&&(l=wre(r,a)),l);if(e!==null){let t;if(V_(e)){let n=e.ownerDocument.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();(function(e,t,n){let r=dv(n),i=mv(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=hv(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=uv(u)}})(n,t,a)}}(function(e){e._inputState.isSelectionChangeFromDOMUpdate=!0})(n)}}function s_(e){let t=n_()||r_();t===null&&(t=Z_().selectEnd()),t.insertNodes(e)}function c_(e,t){for(let n of e.split(/(\r?\n|\t)/))n===`
|
||
`||n===`\r
|
||
`?t.linebreak():n===` `?t.tab():n!==``&&t.text(n)}function Ene(e){let t=[];return c_(e,{linebreak:()=>t.push(E_()),tab:()=>t.push(Wg()),text:e=>t.push(Vg(e))}),t}function Dne(){let e=n_();return e===null?``:e.getTextContent()}function l_(e){let t=[];for(let n of e)D_(n)||(!$(n)&&!S_(n)||n.isInline()?t.push(n):$(n)&&t.push(...l_(n.getChildren())));return t}function u_(e){let t=e;e.isCollapsed()||t.removeText();let n=n_();Q(n)&&(t=n),Q(t)||dh(161);let r=t.anchor,i=r.getNode(),a=r.offset;for(;!Hv(i)&&ly(i)===null;){let e=i;if([i,a]=One(i,a),e.is(i))break}return a}function One(e,t){let n=e.getParent();if(!n){let e=k_();return Z_().append(e),e.select(),[Z_(),0]}if(Hg(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(!$(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new CS(Kg(e.__key,t,`element`),Kg(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function kne(e){return D_(e)||gv(e)||Hg(e)||e.isParentRequired()}function d_(e){let t=k_(),n=null;for(let r=0;r<e.length;r++){let i=e[r];if(kne(i)){if(n===null){n=i.createParentElementNode(),t.append(n);let a=e[r+1];if(D_(i)&&(a===void 0||!kne(a)))continue}n.append(i)}else t.append(i),n=null}return t}function f_(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=By(e.focus,n?`previous`:`next`),o=r===`lineboundary`,s=t===`move`,c=a,l=i===`decorators-and-blocks`;if(!Yy(c)){for(let e of c){l=!1;let{origin:t}=e;if(!S_(t)||t.isIsolated()||(c=e,!o||!t.isInline()))break}if(l)for(let e of jy(a).iterNodeCarets(t===`extend`?`shadowRoot`:`root`)){if(wy(e))e.origin.isInline()||(c=e);else{if($(e.origin))continue;S_(e.origin)&&!e.origin.isInline()&&(c=e)}break}}if(c===a)return!1;if(s&&!o&&S_(c.origin)&&c.origin.isKeyboardSelectable()){let e=e_();return e.add(c.origin.getKey()),Q_(e),!0}return c=Jy(c),s&&Vy(e.anchor,c),Vy(e.focus,c),l||!o}function p_(){return ES||wS!==null&&wS._readOnly}function m_(){ES&&dh(13)}function Ane(){AS>99&&dh(14)}function h_(){return wS===null&&dh(195,Nne()),wS}function jne(e){h_()!==null&&TS===null&&(TS=e),TS!==e&&fh(378)}function g_(){return TS===null&&dh(337,Nne()),TS}function Mne(){g_()._dirtyType=2}function Nne(){let e=0,t=new Set,n=BS.version;if(typeof window<`u`)for(let r of Ov(document)){let i=R_(r);if(I_(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 Pne(){return TS}function Fne(e,t,n){let r=t.__type,i=nre(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 Ine(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function Lne(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 Rne(e){return __(e,g_()._nodes)}function __(e,t){let n=e.type,r=t.get(n);r===void 0&&dh(17,n);let i=r.klass;e.type!==i.getType()&&dh(18,i.name);let a=i.importJSON(e),o=e.children;if($(a)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=__(o[e],t);a.append(n)}let s=e.$slots;if(s){sy(a)||dh(379,i.name);for(let e in s)vy(a,e,__(s[e],t))}return a}function zne(e,t,n){let r=wS,i=ES,a=TS;wS=t,ES=!0,TS=e;try{return n()}finally{wS=r,ES=i,TS=a}}function v_(e,t){let n=OS;OS=!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&&Vne(e,e._deferred));let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==0,l=wS,u=ES,d=TS,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){TS=e,wS=n,ES=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=Ute(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),DS)throw t;Qne(e,null,r,n),xh(e),e._dirtyType=2,DS=!0,v_(e,a),DS=!1;return}finally{p.observe(r,jS),e._updating=f,wS=l,ES=u,TS=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=lre(e)),delete r[a])}(e,n);let y=i?null:Tv(hv(e));if(e._editable&&y!==null&&(c||s===null||s.dirty||!s.is(o))&&r!==null&&!v.has(`skip-dom-selection`)){TS=e,wS=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&wv(t,e,r),Tne(o,s,e,y,v,r)}(function(e,t,n){let r=e._blockCursorElement;if(Q(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(Nv(t))){let i=n.anchor,a=i.getNode(),o=i.offset,s=!1,c=null;if(o===a.getChildrenSize())Cv(a.getChildAtIndex(o-1))&&(s=!0);else{let t=a.getChildAtIndex(o);if(t!==null&&Cv(t)){let n=t.getPreviousSibling();(n===null||Cv(n))&&(s=!0,c=e.getElementByKey(t.__key))}}if(s){let n=Gv(a,e.getElementByKey(a.__key),e).element;r===null&&(e._blockCursorElement=r=function(e){let t=e.theme,n=Av().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=ib(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&&wv(r,e,t)})(e,r,s)}finally{p!==null&&p.observe(r,jS),TS=d,wS=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),Q(s)||s===null||o!==null&&o.is(s)||e.dispatchCommand(xx);let b=e._pendingDecorators;b!==null&&(e._decorators=b,e._pendingDecorators=null,y_(`decorator`,e,!0,b)),function(e,t,n){let r=ure(t),i=ure(n);r!==i&&y_(`textcontent`,e,!0,i)}(e,t||a,n),y_(`update`,e,!0,{dirtyElements:g,dirtyLeaves:h,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:t||a,tags:v}),!f&&Vne(e,e._deferred),(function(e){let t=e._updates;if(t.length===0)return void(e._cascadeCount=0);if(function(e){kS.has(e)||(kS.add(e),setTimeout(()=>{kS.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;b_(e,t,r)}})(e)})(e,t)}finally{OS=n}}function y_(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 Bne(e,t,n,r){let i=ev(e),a;if(!OS)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(x_(s,()=>{for(let i of t)if(i(n,r))return void(e=!0)}),e)return e}}}return a&&a.update(()=>{Bne(a,t,n,r)}),!1}function Vne(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 Hne(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&&dh(191),a._flushSync=!0),o&&e._deferred.push(o),Lne(e,i.tag)),a==null?b_(e,n,i):n()}}return r}function b_(e,t,n){let r=e._updateTags,i,a=!1,o=!1;n!==void 0&&(i=n.onUpdate,Lne(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=Gne(c||s),l=!0),c._flushSync=o;let u=wS,d=ES,f=TS,p=e._updating;wS=c,ES=!1,e._updating=!0,TS=e;let m=e._headless||e.getRootElement()===null;M_(null);try{l&&(m?s._selection!==null&&(c._selection=s._selection.clone()):c._selection=function(e,t){let n=e.getEditorState()._selection,r=Tv(hv(e));return Q(n)||n==null?t_(n,r,e,t):n.clone()}(e,n&&n.event||null));let r=e._compositionKey;t(),a=Hne(e,a),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(Q(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);Hg(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Nh(t)}}(c,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,a=q_(),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);Hg(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Nh(r),r!==void 0&&Ine(r,a)&&Fne(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){AS++;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&&Ine(c,a)&&Fne(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,AS++}t._dirtyLeaves=n,t._dirtyElements=r}(c,e),Hne(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()||($(t)&&_h(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()||(sy(t)&&t.__slots!==null&&_h(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=g_(),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(Q(i)){e._slotsUsed&&yne(i);let t=c._nodeMap,n=i.anchor.key,r=i.focus.key;t.get(n)!==void 0&&t.get(r)!==void 0||dh(19)}else Jg(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(),v_(e);return}finally{wS=u,ES=d,TS=f,e._updating=p,AS=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,v_(e)):l&&tie(()=>{v_(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function x_(e,t,n){TS===e&&n===void 0?p_()?b_(e,t,n):t():b_(e,t,n)}function Une(e){if(yv(e)){let t=null;for(let n of e.getChildren())t=n.isInline()?(t||n.replace(n.createParentElementNode())).append(n):null}}function $(e){return e instanceof MS}function Wne(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 S_(e){return e instanceof NS}function C_(e){return e instanceof PS}function Gne(e){return new FS(gh(e._nodeMap),null,e._slotsUsed)}function w_(){return new FS(new Map([[`root`,new PS]]),null,!1)}function T_(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&dh(130,n.name),$(e)){let r=t.children;Array.isArray(r)||dh(59,n.name);let i=e.getChildren();for(let e=0;e<i.length;e++){let t=T_(i[e]);r.push(t)}}let r=py(e);if(r.length>0){let i={};for(let t of r){let r=my(e,t);r===null&&dh(366,n.name,t),i[t]=T_(r)}t.$slots=i}return t}function Kne(e){return e instanceof FS}function qne(e){return{node:E_()}}function E_(){return xv(new LS)}function D_(e){return e instanceof LS}function Jne(e){let t=e.parentElement;if(t!==null&&Vv(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&O_(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&O_(n))return!0}}return!1}function Yne(e){let t=e.parentElement;if(t!==null&&Vv(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&O_(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&O_(r))return!0}return!1}function O_(e){return V_(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}function Xne(e){let t=k_();if(Zv(t,e),Yv(e,t),t.getFormatType()===``){let n=e.getAttribute(`align`);n&&n&&n in Fb&&t.setFormat(n)}return Xv(t,e),{node:t}}function k_(){return xv(new RS)}function A_(e){return e instanceof RS}function Zne(e){console.warn(e)}function Qne(e,t,n,r,i){let a=e._keyToDOMMap;a.clear(),e._editorState=w_(),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),cre(n,e,`root`))}function $ne(e){let t=new Set,n=new Set;for(let{klass:r,ownNodeConfig:i}of ry(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 ere(e){let t=e||{},n=Pne(),r=t.theme||{},i=e===void 0?n:t.parentEditor||null,a=t.disableEvents||!1,o=w_(),s=t.namespace||(i===null?pre():i._config.namespace),c=t.editorState,l=[PS,yS,LS,xS,RS,IS,...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===gS||n.prototype instanceof gS)){let r=`<unknown>`;try{r=JSON.parse(Ub)}catch{}dh(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))}ny(n);let a=n.getType(),o=$ne(n);m.set(a,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,sharedNodeState:Bte(l[e]),transforms:o})}}let h=new BS(o,i,m,{disableEvents:a,dom:{...zS,...e&&e.dom},namespace:s,theme:r},u||console.error,d||Zne,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(wx,Kte,0),e.registerCommand(Tx,qte,0),e.registerCommand(Ex,Jte,0),e.registerCommand(Dx,Yte,0),e.registerCommand(zx,Xte,0)}(h),h}function tre(e,t){let n=e.get(t);e.delete(t),n&&n()}function j_(e,t,n){return e.set(t,n),tre.bind(null,e,t)}function M_(e){VS=e}function nre(e,t){let n=N_(e,t);return n===void 0&&dh(30,t),n}function N_(e,t){return e._nodes.get(t)}function P_(e,t){let n=t===void 0?(()=>{let t=e.getRootNode();return H_(t)||Ev(t)?Pv(t):null})():t;if(!Lv(n)||n.hasAttribute(`data-lexical-slot`))return!1;let r=X_(n),i=n.nodeName;return kg(r)&&(i===`INPUT`||i===`TEXTAREA`||n.contentEditable===`true`&&R_(n)==null)}function F_(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 L_(t)===e&&e.read(`latest`,()=>!P_(t))}function I_(e){return e instanceof BS}function L_(e){let t=e;for(;t!=null;){let e=R_(t);if(I_(e))return e;t=uv(t)}return null}function R_(e){return e?e.__lexicalEditor:null}function rre(e){return jb.test(e)?`rtl`:Mb.test(e)?`ltr`:null}function z_(e){return Gg(e)||e.isToken()}function B_(e){return z_(e)||e.isSegmented()}function V_(e){return Rv(e)&&e.nodeType===3}function H_(e){return Rv(e)&&e.nodeType===9}function ire(e){let t=e;for(;t!=null;){if(V_(t))return t;t=t.firstChild}return null}function U_(e,t,n){let r=Nb[t];if(n!==null&&(e&r)===(n&r))return e;let i=e^r;return t===`subscript`?i&=~Nb.superscript:t===`superscript`?i&=~Nb.subscript:t===`lowercase`?(i&=~Nb.uppercase,i&=~Nb.capitalize):t===`uppercase`?(i&=~Nb.lowercase,i&=~Nb.capitalize):t===`capitalize`&&(i&=~Nb.lowercase,i&=~Nb.uppercase),i}function are(e){return Hg(e)||D_(e)||S_(e)}function ore(e,t){let n=function(){let e=VS;return VS=null,e}();if((t||=n&&n.__key)!=null)return void(e.__key=t);m_(),Ane();let r=g_(),i=h_(),a=``+eie++;i._nodeMap.set(a,e),$(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.add(a),r._dirtyType===0&&(r._dirtyType=1),e.__key=a}function W_(e){ly(e)!==null&&dh(380,e.__key,String(ly(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 G_(e){Ane(),Og(e)&&dh(323,e.__key,e.__type);let t=e.getLatest(),n=t.__parent===null?cy(t)?t.__slotHost:null:t.__parent,r=h_(),i=g_(),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?cy(e)?e.__slotHost:null:e.__parent}}(n,a,o);let s=t.__key;i._dirtyType===0&&(i._dirtyType=1),$(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function K_(e){m_();let t=g_(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=J_(n);e!==null&&e.getWritable()}if(e!==null){let t=J_(e);t!==null&&t.getWritable()}}}function q_(){return p_()?null:g_()._compositionKey}function J_(e,t){let n=(t||h_())._nodeMap.get(e);return n===void 0?null:n}function sre(e,t){let n=Y_(e,g_());return n===void 0?null:J_(n,t)}function cre(e,t,n){e[`__lexicalKey_${t._key}`]=n}function Y_(e,t){return e[`__lexicalKey_${t._key}`]}function X_(e,t){let n=e;for(;n!=null;){let e=sre(n,t);if(e!==null)return e;n=uv(n)}return null}function lre(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function ure(e){return e.read(()=>Z_().getTextContent())}function Z_(){return h_()._nodeMap.get(`root`)}function Q_(e){m_();let t=h_();e!==null&&(e.dirty=!0,e.setCachedNodes(null),Q(e)&&g_()._slotsUsed&&yne(e)),t._selection=e}function dre(){m_(),bh(g_())}function $_(e){let t=function(e,t){let n=e;for(;n!=null;){let e=Y_(n,t);if(e!==void 0)return e;n=uv(n)}return null}(e,g_());return t===null?null:J_(t)}function fre(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ev(e){let t=[];for(let n=e;n!==null;n=n._parentEditor)t.push(n);return t}function pre(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function mre(e){return V_(e)?e.nodeValue:null}function tv(e,t,n){let r=Tv(hv(t));if(r===null)return;let i=Mv(r,t._rootElement),a=i.anchorNode,{anchorOffset:o,focusOffset:s}=i;if(a!==null){let t=mre(a),r=X_(a);if(t!==null&&Hg(r)){if((t===Ob||t===Ab)&&n){let e=n.length;t=n,o=e,s=e}t!==null&&nv(r,t,o,s,e)}}}function nv(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(Ob)&&(s=t.slice(0,-Ob.length)),i)){let e=Ab,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=n_();if(s===``){if(K_(null),hb||pb||vb)a.remove();else{let e=g_();rv(a,``,t),setTimeout(()=>{e.update(()=>{a.isAttached()&&a.getTextContent()===``&&a.remove()})},20)}return}let i=a.getParent(),c=r_(),l=a.getTextContentSize(),u=q_(),d=a.getKey();if(a.isToken()&&!o||u!==null&&d===u&&!o||Q(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(!Q(t)||n===null||r===null)return void rv(a,s,t);if(t.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=Vg(a.getTextContent());a.replace(e),a=e}rv(a,s,t)}}}function rv(e,t,n){if(e.setTextContent(t),Q(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=Dy(e,a.offset,`clamp`),r=!0)}r&&(n._cachedNodes=null,n._cachedIsBackward=null)}}function iv(e,t,n){let r=t[n]||!1;return r===`any`||r===e[n]}function hre(e,t){return iv(e,t,`altKey`)&&iv(e,t,`ctrlKey`)&&iv(e,t,`shiftKey`)&&iv(e,t,`metaKey`)}function av(e,t,n){if(!hre(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 gre(e){return e.key===`Backspace`}function _re(e){let t=Z_();if(Q(e)){let t=e.anchor,n=e.focus,r=t.getNode();if(C_(r))return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),Ph(e),e;let i=r.getTopLevelElementOrThrow(),a=i.getParent();if(a===null)return $(i)&&(t.set(i.getKey(),0,`element`),n.set(i.getKey(),i.getChildrenSize(),`element`),Ph(e)),e;let o=a;return t.set(o.getKey(),0,`element`),n.set(o.getKey(),o.getChildrenSize(),`element`),Ph(e),e}{let e=t.select(0,t.getChildrenSize());return Q_(Ph(e)),e}}function ov(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=ib(i);return n[t]=e,e}return i}function sv(e,t,n,r,i){if(n.size===0)return;let a=r.__type,o=r.__key,s=t.get(a);s===void 0&&dh(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 vre(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 yre(e,t){let n=e.offset;if(e.type===`element`)return vre(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?vre(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function bre(e){let t=hv(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function cv(e,t,...n){return Bne(e,t,n[0],e)}function lv(e,t){let n=e._keyToDOMMap.get(t);return n===void 0&&dh(75,t),n}function uv(e){let t=e.assignedSlot||e.parentElement;if(t!==null)return t;let n=e.parentNode;return Ev(n)?n.host:null}function dv(e){return H_(e)?e:Lv(e)?e.ownerDocument:null}function fv(e){m_(),g_()._updateTags.add(e)}function xre(e){m_(),g_()._deferred.push(e)}function pv(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function mv(e){let t=dv(e);return t?t.defaultView:null}function hv(e){let t=e._window;return t===null&&dh(78),t}function gv(e){return $(e)&&e.isInline()||S_(e)&&e.isInline()}function _v(e){let t=e.getLatest();for(;t!==null;){if(ly(t)!==null&&$(t))return t;let e=t.getParentOrThrow();if(yv(e))return e;t=e}return t}function vv(e){return $(e)&&e.isShadowRoot()}function yv(e){return C_(e)||vv(e)}function bv(e,t=!1){let n=e.constructor.clone(e,HS);return ore(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function xv(e){let t=g_(),n=e.getType(),r=N_(t,n);r===void 0&&dh(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||dh(202,r.name,r.getType(),e.constructor.name,n):t instanceof a||dh(201,a.name,a.getType(),r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&dh(203,e.constructor.name,n,r.name,r.getType()),t}return e}function Sv(e,t){!C_(e.getParent())||$(t)||S_(t)||dh(99)}function Sre(e){let t=J_(e);return t===null&&dh(63,e),t}function Cv(e){if(!e||e.isInline())return!1;if(S_(e))return!0;if($(e)){if(e.isShadowRoot()){let t=e.getParent();return!($(t)&&t.isShadowRoot())}return!e.canBeEmpty()}return!1}function wv(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function Tv(e){return cb?(e||window).getSelection():null}function Cre(e){let t=mv(e);return t?t.getSelection():null}function Ev(e){return zv(e)&&`host`in e}function Dv(e){let t=e.getRootNode();if(t===e||!Ev(t))return nie;let n=[t],r=t.host;for(;;){let e=r.getRootNode();if(e===r||!Ev(e))break;n.push(e),r=e.host}return n}function*Ov(e){let t=[e],n;for(;n=t.pop();){yield*n.querySelectorAll(`[data-lexical-editor="true"]`);let e=(H_(n)?n:n.ownerDocument).createTreeWalker(n,NodeFilter.SHOW_ELEMENT),r;for(;r=e.nextNode();)r.shadowRoot&&t.push(r.shadowRoot)}}function kv(e){return e===null?document:e.ownerDocument}function Av(){let e=Pne();return kv(e===null?null:e._rootElement)}function jv(e,t){if(t===null||typeof e.getComposedRanges!=`function`)return null;let n=Dv(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 wre(e,t){let n=jv(e,t);if(n!==null){let e=Tre(n);if(e!==null)return e}return e.rangeCount>0?e.getRangeAt(0):null}function Mv(e,t){let n=jv(e,t);return n===null?e:Ere(n,Dre(e))}function Tre(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 Ere(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 Dre(e){return e.direction}function Nv(e){let t=e.getRootNode();return H_(t)||Ev(t)?t.activeElement:null}function Pv(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 Fv(e){let t=e.target;if(t!==null&&Lv(t)&&t.shadowRoot!==null&&typeof e.composedPath==`function`){let t=e.composedPath();if(t.length>0)return t[0]}return t}function Iv(e){return Lv(e)&&e.tagName===`A`}function Lv(e){return Rv(e)&&e.nodeType===1}function Rv(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function zv(e){return Rv(e)&&e.nodeType===11}function Bv(e){return!(!Lv(e)||!e.style.display.startsWith(`inline`))||rie.test(e.nodeName)}function Vv(e){return(!Lv(e)||!e.style.display.startsWith(`inline`))&&iie.test(e.nodeName)}function Hv(e){if(S_(e)&&!e.isInline())return!0;if(!$(e)||yv(e))return!1;let t=e.getFirstChild(),n=t===null||D_(t)||Hg(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Uv(){return g_()}function Wv(e=Uv()){return e._config.dom||zS}function Gv(e,t,n=Uv()){let r=Wv(n).$getDOMSlot(e,t,n);return $(e)&&(Ore(r)||dh(344,e.getKey(),e.getType())),r}function Ore(e){return e instanceof Vb}function Kv(e,t,n=Uv()){return ire(Gv(e,t,n).element)}function qv(e){if(!e._readOnly&&e.isEmpty())return aie;e._readOnly||dh(192);let t=GS.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),GS.set(e,t)),t}function Jv(e){let t=e.constructor.clone(e,HS);return t.afterCloneFrom(e),t}function kre(e){return(t=Jv(e))[mS]=!0,t;var t}function Yv(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 Xv(e,t){let n=t.getAttribute(`dir`);return n===`ltr`||n===`rtl`?e.setDirection(n):e}function Zv(e,t){let n=t.style.textAlign;return n&&n in Fb?e.setFormat(n):e}function Qv(e,t){e.__lexicalUnmanaged=!0,t&&t.captureSelection!==void 0&&(e.__lexicalCapturedSelection=t.captureSelection)}function $v(e){return!0===e.__lexicalUnmanaged}function Are(e,t=Uv()){let n=t.isEditable();e.contentEditable=n?`true`:`false`,n?e.__lexicalEditor=t:delete e.__lexicalEditor}function ey(e,t){let n=e;for(;n!=null;){if(!0===n.__lexicalCapturedSelection)return!0;if(Lv(n)&&n.hasAttribute(`data-lexical-slot`)||Y_(n,t)!==void 0)return!1;n=uv(n)}return!1}function ty(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==gS[t]}function ny(e){let t=KS.get(e);if(t)return t;let n=e.prototype!=null&&zb in e.prototype?e.prototype[zb]():void 0,r=function(e){if(!(e===gS||e.prototype instanceof gS)){let t=`<unknown>`,n=`<unknown>`;try{t=e.getType()}catch{}try{BS.version&&(n=JSON.parse(BS.version))}catch{}dh(290,e.name,t,n)}return e===NS||e===MS||e===gS}(e),i=!r&&ty(e,`getType`)?e.getType:void 0,a=i&&!(qS in i)?i.call(e):void 0,o,s=a;if(n){if(a)o=n[a];else{for(let[e,t]of Object.entries(n))s=e,o=t;if(!o)for(let e of Object.getOwnPropertySymbols(n)){let t=n[e];if(t){o=t;break}}}}if(!r&&s){if(!ty(e,`getType`)){let t=e,n=function(){return this===t?s:gS.getType.call(this)};n[qS]=!0,e.getType=n}if(ty(e,`clone`)||(e.clone=(t,n)=>{M_(t);let r=new e;return n!==HS&&r.afterCloneFrom(t),r}),ty(e,`importJSON`)||(e.importJSON=o&&o.$importJSON||(t=>new e().updateFromJSON(t))),!ty(e,`importDOM`)&&o){let{importDOM:t}=o;t&&(e.importDOM=()=>t)}}let c={klass:e,ownNodeConfig:o,ownNodeType:s};return KS.set(e,c),c}function*ry(e){for(let t=e;t&&(t===gS||kg(t.prototype));){let e=ny(t);yield e,t=e.ownNodeConfig&&e.ownNodeConfig.extends||oy(t)}}function iy(e){let t=Uv();return m_(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}function ay(e,t){let n=[],r=e.__first;for(;r!==null;){let e=t===null?J_(r):t.get(r);e??dh(174),n.push(r),r=e.__next}return n}function oy(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 sy(e){return $(e)||S_(e)}function cy(e){return $(e)||S_(e)}function ly(e){let t=e.getLatest();return cy(t)?t.__slotHost:null}function uy(e){let t=ly(e);if(t===null)return null;let n=J_(t);return $(n)||S_(n)||dh(370),n}function jre(e){let t=uy(e);if(t===null)return null;let n=e.getLatest().__key;for(let[e,r]of fy(t))if(r===n)return e;return null}function dy(e){let t=e.getLatest();for(;t!==null;){if(ly(t)!==null)return t;t=t.getParent()}return null}function fy(e){let t=e.getLatest();return sy(t)&&t.__slots!==null?t.__slots:YS}function py(e){return Array.from(fy(e).keys())}function my(e,t){let n=fy(e).get(t);return n===void 0?null:J_(n)}function hy(e){let t=e.__slots;return t!==null&&t[XS]===e||(t=new Map(t),t[XS]=e,e.__slots=t),t}function Mre(e){for(let{ownNodeConfig:t}of ry(e)){let e=t&&t.slots;if(e)return e}return sie}function gy(e){let t=``;for(let n of py(e)){let r=my(e,n);r!==null&&(t+=r.getTextContent())}return t}function _y(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 Nre(e){let t=e.__slots;if(t===null||t.size<2)return;let n=function(e){let t=ZS.get(e);if(t===void 0){let n=Mre(e),r=new Map;for(let t of n)oie.includes(t)&&dh(371,e.name,t),r.has(t)&&dh(372,e.name,t),r.set(t,r.size);t=r,ZS.set(e,t)}return t}(e.constructor),r=null,i=!0;for(let e of t.keys()){if(r!==null&&_y(r,e,n)>0){i=!1;break}r=e}if(i)return;let a=Array.from(t).sort(([e],[t])=>_y(e,t,n));t.clear();for(let[e,n]of a)t.set(e,n)}function vy(e,t,n){t!==`__proto__`&&t!==`constructor`&&t!==`prototype`||dh(373,t);let r=e.getLatest();if(r.__slots!==null&&r.__slots.get(t)===n.getLatest().__key)return r;(!$(n)&&!S_(n)||n.isInline())&&dh(374,n.__key);let i=e.getWritable(),a=hy(i),o=a.get(t);o!==void 0&&yy(o);let s=n.getWritable(),c=uy(s);if(c!==null){let e=jre(s);e!==null&&hy(c.getWritable()).delete(e),s.__slotHost=null}return W_(s),s.__slotHost=i.__key,a.set(t,s.__key),Nre(i),function(){let e=Uv();e._slotsUsed=!0,e._pendingEditorState&&(e._pendingEditorState._slotsUsed=!0)}(),i}function Pre(e,t){let n=e.getWritable();if(n.__slots===null)return n;let r=n.__slots.get(t);return r!==void 0&&(yy(r),hy(n).delete(t)),n}function yy(e){let t=J_(e);if(t===null)return;let n=t.getWritable();cy(n)||dh(377,e),n.__slotHost=null,n.remove()}function by(e){return cie[e]}function xy(e,t=`root`){return e===null||lie[t](e)?null:ly(e)===null?e:null}function Sy(e){return e instanceof tC}function Cy(e){return e instanceof eC}function wy(e){return e instanceof $S}function Ty(e,t){return e?new die[t](e):null}function Ey(e,t,n){return e?new uie[t](e,Dy(e,n)):null}function Dy(e,t,n=`error`){let r=e.getTextContentSize(),i=t===`next`?r:t===`previous`?0:t;return(i<0||i>r)&&(n!==`clamp`&&fh(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function Oy(e,t){return new mie(e,t)}function ky(e,t){return $(e)?new fie[t](e):null}function Fre(e){return e&&e.getChildCaret()||e}function Ay(e){return e&&Fre(e.getAdjacentCaret())}function jy(e){return Ny(e,Ty(Z_(),e.direction))}function My(e){return Ny(e,e)}function Ny(e,t){return e.direction!==t.direction&&dh(265),new pie(e,t,e.direction)}function Py(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 Fy(e,t){let n=zy(e.origin,t.origin);switch(n===null&&dh(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 Iy(n)}}function Iy(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 Ly(e,t){return t.is(e)}function Ry(e){return $(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function zy(e,t){if(e.is(t))return{commonAncestor:e,type:`same`};let n=new Map;for(let[t,r]=Ry(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,i]=Ry(t);r;i=r,r=r.getParent()){let a=n.get(r);if(a!==void 0)return a===null?(Ly(e,r)||dh(276),{commonAncestor:r,type:`ancestor`}):i===null?(Ly(t,r)||dh(277),{commonAncestor:r,type:`descendant`}):(($(a)||Ly(e,a))&&($(i)||Ly(t,i))&&r.is(a.getParent())&&r.is(i.getParent())||dh(278),{a,b:i,commonAncestor:r,type:`branch`})}return null}function By(e,t){let{type:n,key:r,offset:i}=e,a=Sre(e.key);return n===`text`?(Hg(a)||dh(266,a.getType(),r),Ey(a,t,i)):($(a)||dh(267,a.getType(),r),Qy(a,e.offset,t))}function Vy(e,t){let{origin:n,direction:r}=t,i=r===`next`;Sy(t)?e.set(n.getKey(),t.offset,`text`):Cy(t)?Hg(n)?e.set(n.getKey(),Dy(n,r),`text`):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!i,`element`):(wy(t)&&$(n)||dh(268),e.set(n.getKey(),i?0:n.getChildrenSize(),`element`))}function Hy(e){let t=n_(),n=Q(t)?t:$g();return Uy(n,e),Q_(n),n}function Uy(e,t){Vy(e.anchor,t.anchor),Vy(e.focus,t.focus)}function Wy(e){let{anchor:t,focus:n}=e,r=By(t,`next`),i=By(n,`next`),a=Fy(r,i)<=0?`next`:`previous`;return Ny(Xy(r,a),Xy(i,a))}function Gy(e){let{direction:t,origin:n}=e,r=Ty(n,by(t)).getNodeAtCaret();return r?Ty(r,t):ky(n.getParentOrThrow(),t)}function Ky(e,t=`root`){let n=[e];for(let r=wy(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(Gy(r));return n}function qy(e){return!!e&&e.origin.isAttached()}function Ire(e,t=`removeEmptySlices`){if(e.isCollapsed())return e;let n=`root`,r=`next`,i=t,a=Zy(e,r),o=Ky(a.anchor,n),s=Ky(a.focus.getFlipped(),n),c=new Set,l=[];for(let e of a.iterNodeCarets(n))if(wy(e))c.add(e.origin.getKey());else if(Cy(e)){let{origin:t}=e;$(t)&&!c.has(t.getKey())||l.push(t)}let u=new Set;for(let e of l){let t=e.getParent();t===null||c.has(t.getKey())||u.add(t),W_(e)}for(let e of u)!e.canBeEmpty()&&!yv(e)&&e.isEmpty()&&e.isAttached()&&e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),a=Gy(Ty(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=Vg(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());a.replaceOrInsert(n),t=Ey(n,r,t.offset)}n.is(o[0].origin)&&(o[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let d,f;for(let e of o)if(qy(e)){d=Jy(e);break}for(let e of s)if(qy(e)){f=Jy(e);break}let p=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(yv(i))return;!n&&t(i)&&(n=i)}return n},u=l(a,Hv),d=u&&l(o,e=>n.has(e.getKey())&&Hv(e));return d&&py(d).length>0?null:u&&d?[u,d]:null}(d,f,c);if(p){let[e,t]=p;ky(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(f){let e=function(e){if(wy(e)){let t=e.origin;if(Hv(t))return t}else{let t=e.getParentAtCaret();if(t&&Hv(t))return t}return null}(f),t=e&&e.getParent(),n=e&&e.getParents().findLast(vv);if(e&&t&&!C_(t)&&e.isEmpty()&&c.has(e.getKey())&&py(e).length===0&&(!n||c.has(n.getKey()))){e.remove(!0);let n=t;for(;n&&!C_(n)&&n.isEmpty();){let e=n.getParent();if(e&&C_(e)&&e.getChildrenSize()<=1)break;let t=n;n=e,t.remove(!0)}}}let m=[d,f,...o,...s].find(qy);if(m)return My(Xy(Jy(m),e.direction));dh(269,JSON.stringify(o.map(e=>e.origin.__key)))}function Jy(e){let t=function(e){let t=e;for(;wy(t);){let e=Ay(t);if(!wy(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Hg(t.origin))return Sy(t)?t:Ey(t.origin,n,n);let r=t.getAdjacentCaret();return Cy(r)&&Hg(r.origin)?Ey(r.origin,n,by(n)):t}function Yy(e){return Sy(e)&&e.offset!==Dy(e.origin,e.direction)}function Xy(e,t){return e.direction===t?e:e.getFlipped()}function Zy(e,t){return e.direction===t?e:Ny(Xy(e.focus,t),Xy(e.anchor,t))}function Qy(e,t,n){let r=ky(e,`next`);for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(e===null)break;r=e}return Xy(r,n)}function Lre(e){let{origin:t,offset:n,direction:r}=e;if(n===Dy(t,r))return e.getSiblingCaret();if(n===Dy(t,by(r)))return Gy(e.getSiblingCaret());let[i]=t.splitText(n);return Hg(i)||dh(281),Xy(Ty(i,`next`),r)}function Rre(e,t){return!0}function $y(e,{$copyElementNode:t=bv,$splitTextPointCaretNext:n=Lre,rootMode:r=`shadowRoot`,$shouldSplit:i=Rre,removeEmptyDestination:a=!1}={}){if(Sy(e))return n(e);let o=e.getParentCaret(r);if(o){let{origin:n}=o;if(wy(e)){let e=Gy(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 eb(e,t,n){let r=Xy(t,`next`);Sy(r)&&(r.offset===0?r=Ty(r.origin,`previous`).getFlipped():r.offset===r.origin.getTextContentSize()&&(r=Ty(r.origin,`next`))),r.origin.is(e)&&(Cy(r)||dh(342,e.getKey(),e.getType()),r=Gy(r)),(e.is(r.getNodeAtCaret())||e.is(r.getFlipped().getNodeAtCaret()))&&e.remove(!0);for(let e=r;e;e=$y(e,n))r=e;return Sy(r)&&dh(283),r.insert(e.isInline()?k_().append(e):e),Xy(Ty(e.getLatest(),`next`),t.direction)}function tb(e){return e}function nb(e){return e}function rb(e,t){if(!t||e===t)return e;for(let n in t)if(e[n]!==t[n])return{...e,...t};return e}function ib(...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 ab(e,...t){let n=ib(...t);n.length>0&&e.classList.add(...n)}function ob(e,...t){let n=ib(...t);n.length>0&&e.classList.remove(...n)}function sb(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}var cb,lb,ub,db,fb,pb,mb,hb,gb,_b,vb,yb,bb,xb,Sb,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,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,zre,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,Bre,nS,rS,Vre,iS,aS,oS,Hre,Ure,sS,cS,Wre,Gre,Kre,lS,uS,dS,fS,qre,pS,mS,hS,gS,Jre,_S,Yre,vS,Xre,yS,bS,Zre,xS,Qre,SS,CS,$re,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,eie,tie,US,WS,nie,rie,iie,GS,aie,KS,qS,JS,YS,oie,XS,ZS,sie,cie,QS,$S,lie,eC,tC,uie,die,fie,pie,mie;function nC(){return(nC=s((()=>{cb=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,lb=cb&&`documentMode`in document?document.documentMode:null,ub=cb&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),db=cb&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),fb=!(!cb||!(`InputEvent`in window)||lb)&&`getTargetRanges`in new window.InputEvent(`input`),pb=cb&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,mb=cb&&/Android/.test(navigator.userAgent),hb=cb&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!mb,gb=cb&&/^(?=.*Chrome).*/i.test(navigator.userAgent),_b=cb&&mb&&gb,vb=cb&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ub&&!gb,yb=0,bb=1,xb=2,Sb=1,Cb=2,wb=3,Tb=4,Eb=5,Db=6,Ob=hb||pb||vb?`\xA0`:``,kb=`
|
||
|
||
`,Ab=db?`\xA0`:Ob,jb=RegExp(`^[^A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--]*[֑-߿יִ-﷽ﹰ-ﻼ]`),Mb=RegExp(`^[^֑-߿יִ-﷽ﹰ-ﻼ]*[A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--]`),Nb={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Pb={directionless:1,unmergeable:2},Fb={center:2,end:6,justify:4,left:1,right:3,start:5},Ib={[Cb]:`center`,[Db]:`end`,[Tb]:`justify`,[Sb]:`left`,[wb]:`right`,[Eb]:`start`},Lb={normal:0,segmented:2,token:1},Rb={[yb]:`normal`,[xb]:`segmented`,[bb]:`token`},zb=`$config`,Bb=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&&dh(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&dh(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&dh(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=mh(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=mh(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}},Vb=class e extends Bb{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(;Fte(t);)e=t,t=t.nextSibling;let n=e?e.nextSibling:this.element.firstChild;return n!==null&&n===ph()?n:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(this.element.__lexicalLastChildKind=e,e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(vb||pb||hb);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=Av().createElement(`br`);if(i.setAttribute(`data-lexical-managed-linebreak`,`true`),n.insertBefore(i,r),e){let e=Av().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=ph(),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=hh(t,n);i.push(r);let a=hh(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{Hb=`0.49.0+prod.esm`}catch{}Ub=Hb??`"<unknown>+source"`,Wb=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]()}},Gb=null,Kb=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===Gb?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===Gb?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!==Gb&&n!==void 0||(this._size++,n===Gb&&r.delete(e)),r.set(e,t),this}delete(e){let t=this.has(e);return t&&(this.getNursery().set(e,Gb),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!==Gb&&(r!==void 0&&(n[1]=r),yield n)}if(e)for(let n of e)n[1]===Gb||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()}},qb=!1,Jb=0,Yb=`latest`,Xb=class{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||Vte).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}},Zb=new Set([`__proto__`,`constructor`,`prototype`]),Qb=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 Dh(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(Zb.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=Dh(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){if(Zb.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)}},$b=Symbol.for(`@lexical/CachedTextSize`),ex=4,ix=``,ax=null,ox=null,sx=null,vx=!1,yx=!1,bx=`40px`,xx=lg(`SELECTION_CHANGE_COMMAND`),Sx=lg(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),Cx=lg(`CLICK_COMMAND`),wx=lg(`BEFORE_INPUT_COMMAND`),Tx=lg(`INPUT_COMMAND`),Ex=lg(`COMPOSITION_START_COMMAND`),Dx=lg(`COMPOSITION_END_COMMAND`),Ox=lg(`DELETE_CHARACTER_COMMAND`),kx=lg(`INSERT_LINE_BREAK_COMMAND`),Ax=lg(`INSERT_PARAGRAPH_COMMAND`),jx=lg(`CONTROLLED_TEXT_INSERTION_COMMAND`),Mx=lg(`PASTE_COMMAND`),Nx=lg(`REMOVE_TEXT_COMMAND`),Px=lg(`DELETE_WORD_COMMAND`),Fx=lg(`DELETE_LINE_COMMAND`),Ix=lg(`FORMAT_TEXT_COMMAND`),zre=lg(`SET_TEXT_FORMAT_COMMAND`),Lx=lg(`UNDO_COMMAND`),Rx=lg(`REDO_COMMAND`),zx=lg(`KEYDOWN_COMMAND`),Bx=lg(`KEY_ARROW_RIGHT_COMMAND`),Vx=lg(`MOVE_TO_END`),Hx=lg(`KEY_ARROW_LEFT_COMMAND`),Ux=lg(`MOVE_TO_START`),Wx=lg(`KEY_ARROW_UP_COMMAND`),Gx=lg(`KEY_ARROW_DOWN_COMMAND`),Kx=lg(`KEY_ENTER_COMMAND`),qx=lg(`KEY_SPACE_COMMAND`),Jx=lg(`KEY_BACKSPACE_COMMAND`),Yx=lg(`KEY_ESCAPE_COMMAND`),Xx=lg(`KEY_DELETE_COMMAND`),Zx=lg(`KEY_TAB_COMMAND`),Qx=lg(`INSERT_TAB_COMMAND`),$x=lg(`INDENT_CONTENT_COMMAND`),eS=lg(`OUTDENT_CONTENT_COMMAND`),tS=lg(`DROP_COMMAND`),Bre=lg(`FORMAT_ELEMENT_COMMAND`),nS=lg(`DRAGSTART_COMMAND`),rS=lg(`DRAGOVER_COMMAND`),Vre=lg(`DRAGEND_COMMAND`),iS=lg(`COPY_COMMAND`),aS=lg(`CUT_COMMAND`),oS=lg(`SELECT_ALL_COMMAND`),Hre=lg(`CLEAR_EDITOR_COMMAND`),Ure=lg(`CLEAR_HISTORY_COMMAND`),sS=lg(`CAN_REDO_COMMAND`),cS=lg(`CAN_UNDO_COMMAND`),Wre=lg(`FOCUS_COMMAND`),Gre=lg(`BLUR_COMMAND`),Kre=lg(`KEY_MODIFIER_COMMAND`),lS=Object.freeze({}),uS=[[`keydown`,function(e,t){let n=t._inputState;n.lastKeyDownTimeStamp=e.timeStamp,n.lastKeyCode=e.key,e.key!==`Backspace`&&_g(n),!t.isComposing()&&cv(t,zx,e)}],[`pointerdown`,function(e,t){let n=Fv(e),r=e.pointerType;Rv(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&x_(t,()=>{ey(n,t)||(t._inputState.isSelectionChangeFromMouseDown=!0)})}],[`compositionstart`,function(e,t){cv(t,Ex,e)}],[`compositionend`,function(e,t){let n=t._inputState;db?n.compositionPhase=`ending-firefox`:pb||!hb&&!vb?cv(t,Dx,e):(n.compositionPhase=`ending-safari`,n.compositionEndData=e.data)}],[`input`,function(e,t){e.stopPropagation();let n=t._inputState;_g(n),x_(t,()=>{yg(e,t)||t.dispatchCommand(Tx,e)},{event:e}),n.unprocessedBeforeInputData=null}],[`click`,function(e,t){x_(t,()=>{let n=n_(),r=Tv(hv(t)),i=r_();if(r){if(Q(n)){let e=n.anchor,t=e.getNode();e.type===`element`&&e.offset===0&&n.isCollapsed()&&!C_(t)&&Z_().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=Mv(r,t._rootElement).anchorNode;(Lv(n)||V_(n))&&Q_(t_(i,r,t,e))}}if(db&&r!==null&&r.rangeCount===0){let n=t._rootElement;if(n!==null&&e.target===n){let a=e.clientY,o=n.childNodes.length;for(let e=0;e<n.childNodes.length;e++){let t=n.childNodes[e];if(Lv(t)){let n=t.getBoundingClientRect();if(a<=(n.top+n.bottom)/2){o=e;break}}}r.setBaseAndExtent(n,o,n,o);let s=t_(i,r,t,e);s===null?r.removeAllRanges():Q_(s)}}cv(t,Cx,e)})}],[`cut`,lS],[`copy`,lS],[`dragstart`,lS],[`dragover`,lS],[`dragend`,lS],[`paste`,lS],[`focus`,lS],[`blur`,lS],[`drop`,lS]],fb&&uS.push([`beforeinput`,(e,t)=>function(e,t){let n=e.inputType;n===`deleteCompositionText`||db&&bre(t)||n!==`insertCompositionText`&&x_(t,()=>{yg(e,t)||cv(t,wx,e)},{event:e})}(e,t)]),dS=new WeakMap,fS=new WeakMap,qre=Wte(e=>(e.addEventListener(`selectionchange`,Cg),()=>e.removeEventListener(`selectionchange`,Cg))),pS=new Map,mS=Symbol.for(`ephemeral`),hS={configurable:!0,enumerable:!1,value:void 0,writable:!0},gS=class{__type;__key;__parent;__prev;__next;__state;[$b];static getType(){let{ownNodeType:e}=ny(this);return e===void 0&&dh(64,this.name),e}static clone(e){dh(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||oy(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",hS),Object.defineProperty(this,$b,hS),ore(this,e)}getType(){return this.__type}isInline(){dh(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e===`root`)return!0;let t=J_(e);if(t===null)break;e=t.__parent===null?ly(t):t.__parent}return!1}isSelected(e){let t=e||n_();if(t==null)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(Hg(this))return n;if(Q(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(S_(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:J_(e)}getParentOrThrow(){let e=this.getParent();return e===null&&dh(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let t=e.getParent();if(yv(t)||ly(e)!==null)return $(e)||e===this&&S_(e)||dh(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&dh(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:J_(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:J_(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=$(this)?this:this.getParent(),n=$(e)?e:e.getParent(),r=t&&n?zy(t,n):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){let t=zy(this,e);return t!==null&&(t.type===`descendant`||(t.type===`branch`?Iy(t)===-1:(t.type!==`same`&&t.type!==`ancestor`&&dh(279),!1)))}isParentOf(e){return pv(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=$(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&&dh(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=g_()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(Og(this))return this;let e=J_(this.__key);return e===null&&dh(113),e}getWritable(){if(Og(this))return this;m_();let e=h_(),t=g_(),n=e._nodeMap,r=this.__key,i=this.getLatest(),a=t._cloneNotNeeded,o=n_();if(o!==null&&o.setCachedNodes(null),a.has(r))return G_(i),i;let s=Jv(i);return a.add(r),G_(s),n.set(r,s),s}getTextContent(){return gy(this)}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){dh(70)}updateDOM(e,t,n){dh(71)}getDOMSlot(e){return new Bb(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){dh(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of Eh(n).flatKeys)e in t&&(i!==void 0&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&Th(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){Eg(this,!0,e)}replace(e,t){m_();let n=n_();n!==null&&(n=n.clone()),Sv(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();W_(o),l!==null&&Q(n)&&i_(n,l,u,-1);let d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;Eg(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&&($(this)&&$(o)||dh(139),g=o.getChildrenSize(),o.splice(g,0,this.getChildren()));let _=py(this);if(_.length>0){sy(this)&&sy(o)||dh(368,this.__key,o.__key);for(let e of _){let t=my(this,e);t!==null&&(Pre(this,e),vy(o,e,t))}}if(Q(n)){Q_(n);let e=n.anchor,r=n.focus;e.key===i&&(t&&e.type===`element`?e.set(o.__key,g+e.offset,`element`):rne(e,o)),r.key===i&&(t&&r.type===`element`?r.set(o.__key,g+r.offset,`element`):rne(r,o))}return q_()===i&&K_(a),o}insertAfter(e,t=!0){m_(),Sv(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.getParent(),a=n_(),o=!1,s=!1;if(i!==null){let n=e.getIndexWithinParent();if(Q(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}W_(r),t&&Q(a)&&i_(a,i,n,-1)}else W_(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&&Q(a)){let e=this.getIndexWithinParent();i_(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){m_(),Sv(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.__key,a=n_(),o=r.getParent(),s=o===null?-1:r.getIndexWithinParent();W_(r),o!==null&&t&&Q(a)&&i_(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&&Q(a)&&i_(a,this.getParentOrThrow(),d),e}isParentRequired(){return!1}createParentElementNode(){return k_()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){m_();let n=uy(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($(r))return r.select();if(!Hg(r)){let e=r.getIndexWithinParent()+1;return i.select(e,e)}return r.select(e,t)}selectNext(e,t){m_();let n=uy(this);if(n!==null)return n.selectNext(e,t);let r=this.getNextSibling(),i=this.getParentOrThrow();if(r===null)return i.select();if($(r))return r.select(0,0);if(!Hg(r)){let e=r.getIndexWithinParent();return i.select(e,e)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},Jre=`history-push`,_S=`history-merge`,Yre=`skip-selection-focus`,vS=`composition-end`,Xre=`!important`,yS=class extends gS{__text;__format;__style;__mode;__detail;get __isInlineFormattable(){return!0}$config(){return this.config(`text`,{importDOM:{"#text":()=>({conversion:nne,priority:0}),b:()=>({conversion:ene,priority:0}),code:()=>({conversion:Bg,priority:0}),em:()=>({conversion:Bg,priority:0}),i:()=>({conversion:Bg,priority:0}),mark:()=>({conversion:Bg,priority:0}),s:()=>({conversion:Bg,priority:0}),span:()=>({conversion:$te,priority:0}),strong:()=>({conversion:Bg,priority:0}),sub:()=>({conversion:Bg,priority:0}),sup:()=>({conversion:Bg,priority:0}),u:()=>({conversion:Bg,priority:0})}})}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 Rb[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===q_()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=Nb[e];return(this.getFormat()&t)!==0}isSimpleText(){return this.__type===`text`&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return U_(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=Mg(0,n),i=Ng(0,n),a=r===null?i:r,o=Av().createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=Av().createElement(i),o.appendChild(s)),Ig(s,this,0,n,this.__text,e);let c=this.__style;return c!==``&&jg(o.style,c),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,a=this.__format,o=Mg(0,i),s=Mg(0,a),c=Ng(0,i),l=Ng(0,a);if((o===null?c:o)!==(s===null?l:s))return!0;if(o===s&&c!==l){let e=t.firstChild;e??dh(48);let i=Av().createElement(l);return Ig(i,this,0,a,r,n),t.replaceChild(i,e),!1}let u=t;s!==null&&o!==null&&(u=t.firstChild,u??dh(49)),Fg(r,u,this);let d=n.theme.text;d!==void 0&&i!==a&&Pg(0,i,a,u,d);let f=e.__style,p=this.__style;return f!==p&&jg(t.style,p,f),!1}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 Lv(t)||dh(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=Lg(t,`b`)),this.hasFormat(`italic`)&&(t=Lg(t,`i`)),this.hasFormat(`strikethrough`)&&(t=Lg(t,`s`)),this.hasFormat(`underline`)&&(t=Lg(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`?Nb[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?Pb[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=U_(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=Lb[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){m_();let n=e,r=t,i=n_(),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(!Q(i))return xne(o,n,o,r,`text`,`text`);{let e=q_();e!==i.anchor.key&&e!==i.focus.key||K_(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=n_();if(r&&Q(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){m_();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=q_(),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=n_();if(Q(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=Vg(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=Ah(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e<c;e++){let n=Vg(o[e]);n.__format=f,n.__style=p,n.__detail=m,n.__state=Ah(t,n);let a=n.__key;i===r&&K_(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&&G_(t),n!==null&&G_(n)})(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Q(v)&&i_(v,u,t,c-1)}return y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||dh(50);let n=this.__key,r=e.__key,i=this.__text,a=i.length;q_()===r&&K_(n);let o=n_();if(Q(o)){let i=o.anchor,s=o.focus;i!==null&&i.key===r&&Cne(i,t,n,e,a),s!==null&&s.key===r&&Cne(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}},bS=new WeakMap,Zre={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`},xS=class extends yS{$config(){return this.config(`tab`,{extends:yS})}constructor(e=void 0){super(` `,e),this.__detail=2}createDOM(e){let t=super.createDOM(e),n=ov(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}setTextContent(e){return super.setTextContent(` `)}spliceText(e,t,n,r){return n===``&&t===0||n===` `&&t===1||dh(286),this}setDetail(e){return e!==2&&dh(127),this}setMode(e){return e!==`normal`&&dh(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}},Qre=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:Fy(Jy(By(this,`next`)),Jy(By(e,`next`)))<0}getNode(){let e=J_(this.key);return e===null&&dh(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,p_()||(q_()===a&&K_(e),i!==null&&(i.setCachedNodes(null),Q(i)&&(i._cachedIsBackward=null),i.dirty=!0)))}},SS=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(!Jg(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=>ly(e)===null),n=t.length;if(n===0)return;let r=t[n-1],i;if(Hg(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=J_(e);t!==null&&n.push(t)}return p_()||(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=>ly(e)===null);if((n_()||r_())===this&&e[0]){let t=Ty(e[0],`next`);Hy(Ny(t,t))}for(let t of e)t.remove();one()}},CS=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!!Q(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(wy(n)){let{origin:e}=n;t.length===0?i.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;$(e)&&a.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Cy(e.focus)&&$(e.focus.origin)&&e.focus.getNodeAtCaret()===null)for(let n=ky(e.focus.origin,`previous`);wy(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Ay(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!$(e)||a.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(t.length===0&&e.isCollapsed()){let n=Jy(e.anchor),r=Jy(e.anchor.getFlipped()),i=e=>Sy(e)?e.origin:e.getNodeAtCaret(),a=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}(Zy(Wy(this),`next`));return p_()||(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]=Yg(this),c=``,l=!0;for(let u=0;u<e.length;u++){let d=e[u];if($(d)&&!d.isInline()){l||(c+=`
|
||
`);let e=``;for(let t of py(d)){let n=my(d,t);n!==null&&(e+=n.getTextContent())}e===``?l=!d.isEmpty():(c+=e,l=!1)}else if(l=!1,Hg(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!S_(d)&&!D_(d)||d===n&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(e){let t=g_(),n=t.getEditorState()._selection,r=bne(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),Ph(this)}clone(){let t=this.anchor,n=this.focus;return new e(Kg(t.key,t.offset,t.type),Kg(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=U_(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=Nb[e];return(this.format&t)!==0}insertRawText(e){this.insertNodes(Ene(e))}insertText(e){let t=this.format,n=this.style;if(!this.isCollapsed()){let r=(this.focus.isBefore(this.anchor)?this.focus:this.anchor).getNode();if(Hg(r)&&(t=r.getFormat(),n=r.getStyle()),this.removeText(),this.format=t,this.style=n,e===``)return;if(q_()===null)return this.anchor.type===`element`&&ine(this.anchor,this.focus,t,n),void ane(this,e,t,n)}this.anchor.type===`element`&&ine(this.anchor,this.focus,t,n);let r=this.anchor.getNode();Hg(r)||dh(398);let i=this.anchor.offset,a=r.getParentOrThrow(),o=r.getTextContentSize();if(B_(r)||i===0&&(!r.canInsertTextBefore()||!a.canInsertTextBefore()&&!r.__prev)||i===o&&(!r.canInsertTextAfter()||!a.canInsertTextAfter()&&!r.__next)){if(r.isSegmented()&&i!==0&&i!==o){if(q_()!==null)r.setMode(`normal`).setFormat(t).setStyle(n);else{let e=Vg(r.getTextContent());e.setFormat(t),e.setStyle(n),r.replace(e),e.select(i,i)}e!==``&&this.insertText(e);return}if(e===``)return;if(i===0){let i=r.getPreviousSibling();if(Hg(i)&&i.canInsertTextAfter()&&!B_(i))i.select();else{let e=Vg();e.setFormat(t),e.setStyle(n),a.canInsertTextBefore()?r.insertBefore(e):a.insertBefore(e),e.select()}this.insertText(e);return}if(i===o){let i=r.getNextSibling();if(Hg(i)&&i.canInsertTextBefore()&&!B_(i))i.select(0,0);else{let e=Vg();e.setFormat(t),e.setStyle(n),a.canInsertTextAfter()?r.insertAfter(e):a.insertAfter(e),e.select(0,0)}this.insertText(e);return}let s=Vg(e);s.setFormat(t),s.setStyle(n),r.replace(s),s.select();return}if(e===``)return;let s=a.isInline()&&i===0&&!r.__prev,c=a.isInline()&&i===o&&!r.__next,l=r.getFormat()!==t||r.getStyle()!==n;if(s||c||l){if(r.getTextContent()!==``||s||c)return void ane(this,e,t,n);r.setFormat(t),r.setStyle(n)}r.spliceText(i,0,e,!0),r.isComposing()&&this.anchor.type===`text`&&this.anchor.set(this.anchor.key,this.anchor.offset-e.length,this.anchor.type)}removeText(){let e=n_()===this;Uy(this,Ire(Wy(this))),e&&n_()!==this&&Q_(this)}formatText(e,t=null){lne(this,e,t)}insertNodes(e){if(e.length===0)return;this.isCollapsed()||this.removeText();let t=this.anchor.getNode();if(this.anchor.type===`element`&&$(t)&&ly(t)!==null){let n=t.isShadowRoot()?t.getFirstChild()??t.append(k_()).getFirstChild():t.getFirstChild();if(t.isShadowRoot()&&n!==null&&!$(n)){let e=k_();n.insertBefore(e),n=e}if(n!==null){n.selectStart();let t=n_();return Q(t)||dh(369),t.insertNodes(e)}}if(this.anchor.type===`element`&&yv(t)){let n=d_(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=JS(n,Hv),i=e[e.length-1];if($(r)&&`__language`in r){if(`__language`in e[0])this.insertText(e[0].getTextContent());else{let t=u_(this);r.splice(t,0,e),i.selectEnd()}return}if(!e.some(e=>($(e)||S_(e))&&!e.isInline())){$(r)||dh(211,n.constructor.name,n.getType());let t=u_(this);r.splice(t,0,e),i.selectEnd();return}if($(r)&&ly(r)!==null){let t=u_(this),n=l_(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=d_(e),n=t.getLastDescendant(),r=By(this.anchor,`next`);for(let e of t.getChildren())r=eb(e,r);n!==null&&n.selectEnd();return}if($(r)&&!r.isParentRequired()&&!yv(r.getParentOrThrow())){let t=u_(this),n=l_(e);r.splice(t,0,n);let i=n[n.length-1];i===void 0?r.select(t,t):i.selectEnd();return}let a=d_(e),o=a.getLastDescendant(),s=a.getChildren(),c=!$(r)||!r.isEmpty()?this.insertParagraph():null;c&&!r.isAttached()&&(n=this.anchor.getNode(),r=JS(n,Hv));let l=s[s.length-1],u=s[0];var d;$(d=u)&&Hv(d)&&!d.isEmpty()&&$(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&($(r)||dh(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=s[1]),u&&(r===null&&dh(212,n.constructor.name,n.getType()),function(e,t){let n=t.getParentOrThrow().getLastChild(),r=t,i=[t];for(;r!==n;)r.getNextSibling()||dh(140),r=r.getNextSibling(),i.push(r);let a=e;for(let e of i)a=a.insertAfter(e)}(r,u));let f=JS(o,Hv);c&&$(f)&&(c.canMergeWhenEmpty()||Hv(l))&&(f.append(...c.getChildren()),c.remove()),$(r)&&r.isEmpty()&&r.remove(),o.selectEnd();let p=$(r)?r.getLastChild():null;D_(p)&&f!==r&&p.remove()}insertParagraph(){let e=this.anchor.getNode();if(this.anchor.type===`element`&&yv(e)){let t=k_();return e.splice(this.anchor.offset,0,[t]),t.select(),t}let t=u_(this),n=JS(this.anchor.getNode(),Hv);if(n!==null&&ly(n)!==null)return null;$(n)||dh(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=E_();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]=Yg(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(Hg(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(Hg(n)&&(l===n.getTextContentSize()?e.shift():l!==0&&([,n]=n.splitText(l),e[0]=n,s.set(n.getKey(),0,`text`))),Hg(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(f_(this,e,t,n))return;let r=e===`move`,i=g_(),a=Tv(hv(i));if(!a)return;let o=i._blockCursorElement,s=i._rootElement,c=this.focus.getNode();s===null||o===null||!$(c)||c.isInline()||c.canBeEmpty()||wv(o,i,s);let l=lv(i,this.focus.key),u=l;if(this.focus.type===`text`&&(u=Hg(c)?Kv(c,l,i):null),this.dirty){let e=lv(i,this.anchor.key),t=e;if(this.anchor.type===`text`){let n=this.anchor.getNode();t=Hg(n)?Kv(n,e,i):null}t&&u&&o_(a,t,this.anchor.offset,u,this.focus.offset)}if(n===`character`&&Hg(c)&&c.isUnmergeable()&&(t?this.focus.offset===0:this.focus.offset===c.getTextContentSize())){let e=Ty(c,t?`previous`:`next`).getNodeAtCaret();if(Hg(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?Kv(e,n,i):null;if(r){let e=t?r.length:0;o_(a,r,e,r,e)}}}}if(pne(a,e,t?`backward`:`forward`,n),a.rangeCount>0){let e=jv(a,i._rootElement),n=e||a.getRangeAt(0),o=this.anchor.getNode(),s=C_(o)?o:_v(o);this.applyDOMRange(n),this.dirty=!0,!r&&(mne(this,t,s),(e?a.direction!==`backward`:a.anchorNode===n.startContainer&&a.anchorOffset===n.startOffset)||fne(this))}n===`lineboundary`&&f_(this,e,t,n,`decorators`)}forwardDeletion(e,t,n){if(!n&&(e.type===`element`&&$(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($(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=jy(By(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(wy(t)){if(!t.origin.isInline()){if(t.origin.isShadowRoot()){if(e.type===`merge-block`)break;if($(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=Jy(t);Uy(this,Ny(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(Cy(t)){if($(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(S_(t.origin)){if(!t.origin.isIsolated()){if(py(t.origin).length>0){if($(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=e_();e.add(t.origin.getKey()),Q_(e)}}else if(e.type===`merge-next-block`&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&$(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=e_();e.add(t.origin.getKey()),Q_(e)}else t.origin.remove()}return}break}}if(e.type===`merge-block`){let{caret:t,block:n}=e;return py(n).length>0?void 0:t.origin.isEmpty()&&!n.isEmpty()&&t.origin.getParent()===n.getParent()?void t.origin.remove(!0):(Uy(this,Ny(!t.origin.isEmpty()&&n.isEmpty()?Gy(Ty(n,t.direction)):r.anchor,t)),this.removeText())}for(let e=t.getNode();e!==null;){if(ly(e)!==null)return;if($(e)&&e.isShadowRoot())break;e=e.getParent()}}let i=this.focus;if(Xg(this,e,`character`),this.isCollapsed()){if(e&&t.offset===0&&dne(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 hne(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 hne(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!(fre(e)||$re(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()&&C_(e.getParent())&&e.getPreviousSibling()===null&&dne(this,e),one()}}deleteLine(e){let t=Zg(this.anchor);if(t!==null&&S_(uy(t)))return this.isCollapsed()||this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),void this.deleteCharacter(e);this.isCollapsed()&&Xg(this,e,`lineboundary`),this.isCollapsed()?this.deleteCharacter(e):JS(this.anchor.getNode(),Hv)===JS(this.focus.getNode(),Hv)?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;Xg(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 p_()||(this._cachedIsBackward=t),t}getStartEndPoints(){return[this.anchor,this.focus]}},$re=(()=>{try{let e=RegExp(`\\p{Emoji}`,`u`),t=e.test.bind(e);if(t(`❤️`)&&t(`#️⃣`)&&t(`👍`))return t}catch{}return()=>!1})(),wS=null,TS=null,ES=!1,DS=!1,OS=!1,kS=new Set,AS=0,jS={characterData:!0,childList:!0,subtree:!0},MS=class extends gS{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;__slotHost;__slots;$config(){return this.config(Symbol.for(`ElementNode`),{$transform:Une,extends:gS})}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&&dh(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 Ib[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&&py(this).length===0}isDirty(){let e=g_()._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 py(this)){let n=my(this,t);$(n)&&e.push(...n.getAllTextNodes())}let t=this.getFirstChild();for(;t!==null;){if(Hg(t)&&e.push(t),$(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;$(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;$(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 $(e)&&e.getLastDescendant()||e||null}let r=t[e];return $(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return e===null?null:J_(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&dh(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:J_(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&dh(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=gy(this),t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),$(i)&&r!==n-1&&!i.isInline()&&(e+=kb)}return e}getTextContentSize(){let e=function(e){let t=0;for(let n of py(e)){let r=my(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(),$(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=Fb[e];return(this.getFormat()&t)!==0}return!1}hasTextFormat(e){let t=Nb[e];return(this.getTextFormat()&t)!==0}getFormatFlags(e,t){return U_(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){m_();let n=n_(),r=e,i=t,a=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){let e=this.getFirstChild();if(Hg(e)||$(e))return e.select(0,0)}else if(!(e!==void 0&&e!==a||t!==void 0&&t!==a)){let e=this.getLastChild();if(Hg(e)||$(e))return e.select()}}r===void 0&&(r=a),i===void 0&&(i=a);let o=this.__key;return Q(n)?(n.anchor.set(o,r,`element`),n.focus.set(o,i,`element`),n.dirty=!0,n):xne(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!==``&&Fb[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){Og(this)&&dh(324,this.__key,this.__type);let r=this.getChildrenSize(),i=this.getWritable();e+t<=r||dh(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&&dh(100);let t=e.getNextSibling(),n=e.__key;W_(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--,W_(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&&dh(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=n_();if(Q(e)){let t=new Set(s),n=new Set(o),{anchor:r,focus:i}=e;Wne(r,t,n)&&a_(r,r.getNode(),this,l,c),Wne(i,t,n)&&a_(i,i.getNode(),this,l,c),u!==0||this.canBeEmpty()||yv(this)||this.remove()}}return i}getDOMSlot(e){return new Vb(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(Lv(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===``||yv(this)||this.getChildren().some(Hg)||(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=Gv(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)}}},NS=class extends gS{__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&&dh(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}},PS=class extends MS{__cachedText;$config(){return this.config(`root`,{extends:MS})}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){dh(51)}getTextContent(){let e=this.__cachedText;return e===null||!p_()&&g_()._dirtyType!==0?super.getTextContent():e}remove(){dh(52)}replace(e){dh(53)}insertBefore(e){dh(54)}insertAfter(e){dh(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)$(e)||S_(e)||dh(282);return super.splice(e,t,n)}static importJSON(e){return Z_().updateFromJSON(e)}collapseAtStart(){return!0}},FS=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 zne(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 zne(null,this,()=>({root:T_(Z_())}))}},IS=class extends MS{$config(){return this.config(`artificial`,{extends:MS})}createDOM(e){return Av().createElement(`div`)}},LS=class extends gS{$config(){return this.config(`linebreak`,{importDOM:{br:e=>Jne(e)||Yne(e)?null:{conversion:qne,priority:0}}})}getTextContent(){return`
|
||
`}createDOM(){return Av().createElement(`br`)}updateDOM(){return!1}isInline(){return!0}},RS=class extends MS{$config(){return this.config(`paragraph`,{extends:MS,importDOM:{p:()=>({conversion:Xne,priority:0})}})}createDOM(e){let t=Av().createElement(`p`),n=ov(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}exportDOM(e){let{element:t}=super.exportDOM(e);if(Lv(t)){this.isEmpty()&&t.append(Av().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}exportJSON(){let e=super.exportJSON();if(e.textFormat===void 0||e.textStyle===void 0){let t=this.getChildren().find(Hg);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let n=k_();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||Hg(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}},zS={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{let n=N_(t,e.getType());return n&&n.exportDOM!==void 0?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,i)=>$(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>e.getDOMSlot(t),$getSlotTargetElement:(e,t,n,r)=>null,$shouldExclude:(e,t,n)=>$(e)&&e.excludeFromCopy(`html`),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)},BS=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 Kb,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=pre(),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 j_(this._listeners.update,e)}registerEditableListener(e){return j_(this._listeners.editable,e)}registerDecoratorListener(e){return j_(this._listeners.decorator,e)}registerTextContentListener(e){return j_(this._listeners.textcontent,e)}registerRootListener(e){let t=this._listeners.root;return sb(j_(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&&dh(35);let r=this._commands;r.has(e)||r.set(e,[new Wb,new Wb,new Wb,new Wb,new Wb]);let i=r.get(e);i===void 0&&dh(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&&dh(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=qv(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=qv(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=J_(t);e&&e.markDirty()}},e._pendingEditorState===null?{tag:_S}: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 cv(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=ov(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Qne(this,t,e,r,{preserveUpdateQueue:!0}),t!==null&&(this._config.disableEvents||Zte(t),n!=null&&t.classList.remove(...n)),e!==null){let t=mv(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,xh(this),this._updateTags.add(_S),v_(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument;dS.set(e,n);let r=fS.get(n);r===void 0&&(r={editors:new Set,hasShadowEditor:void 0},fS.set(n,r)),r.editors.add(t),r.hasShadowEditor=void 0,e.__lexicalEditor=t;let i=Sg(e);i.push(qre.register(n));for(let n=0;n<uS.length;n++){let[r,a]=uS[n],o=typeof a==`function`?e=>{Tg(e)||(wg(e),(t.isEditable()||r===`click`)&&a(e,t))}:e=>{if(Tg(e))return;wg(e);let n=t.isEditable();switch(r){case`cut`:return n&&cv(t,aS,e);case`copy`:return cv(t,iS,e);case`paste`:return n&&cv(t,Mx,e);case`dragstart`:return n&&cv(t,nS,e);case`dragover`:return n&&cv(t,rS,e);case`dragend`:return n&&cv(t,Vre,e);case`focus`:return n&&cv(t,Wre,e);case`blur`:return n&&cv(t,Gre,e);case`drop`:return n&&cv(t,tS,e)}};i.push(Gte(e,r,o))}}(e,this),n!=null&&e.classList.add(...n)}else this._window=null,this._updateTags.add(_S),v_(this);y_(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&dh(38);let n=e;n._readOnly&&(n=Gne(e),n._selection=e._selection?e._selection.clone():null),bh(this);let r=this._pendingEditorState,i=t===void 0?null:t.tag;r===null||r.isEmpty()||(i!=null&&this._updateTags.add(i),v_(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set(`root`,!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||e._slotsUsed,x_(this,()=>{if(i&&this._updateTags.add(i),e._parsed)for(let[e,t]of n._nodeMap.entries())$(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=w_(),i=wS,a=ES,o=TS,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,wS=r,ES=!1,TS=t,M_(null);try{let i=t._nodes;__(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,wS=i,ES=a,TS=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`&&v_(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]):b_(e,t,n)})(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),x_(this,()=>{let r=n_(),i=Z_();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||Q_(r.clone()),fv(`focus`),xre(()=>{n.removeAttribute(`autocapitalize`),e&&e()})}),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=Tv(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,y_(`editable`,this,!0,e),this._slotsUsed&&this.update(()=>Mne()))}toJSON(){return{editorState:this._editorState.toJSON()}}},BS.version=Ub,VS=null,HS=Symbol(`INTERNAL_SKIP_AFTER_CLONE_FROM`),eie=1,tie=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)},US={ctrlKey:!ub,metaKey:ub},WS={altKey:ub,ctrlKey:!ub},nie=[],rie=/^(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,iie=/^(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,GS=new WeakMap,aie=new Map,KS=new WeakMap,qS=Symbol(`lexical.synthesizedGetType`),JS=(e,t)=>{let n=e;for(;n!=null&&!C_(n);){if(t(n))return n;n=n.getParent()}return null},YS=new Map,oie=[`__proto__`,`constructor`,`prototype`],XS=Symbol(`slotMapOwner`),ZS=new WeakMap,sie=[],cie={next:`previous`,previous:`next`},QS=class{origin;constructor(e){this.origin=e}[Symbol.iterator](){return Py({hasNext:Cy,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Ty(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ty(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&&dh(263,Array.from(o).join(` `))}else i.insert(e);i=Ty(e,this.direction)}for(let e of o.values())e.remove();return this}},$S=class e extends QS{type=`child`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:ky(e,this.direction)}getParentCaret(e=`root`){return Ty(xy(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=by(this.direction);return Ty(this.getNodeAtCaret(),e)||ky(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)}},lie={root:C_,shadowRoot:yv},eC=class e extends QS{type=`sibling`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Ty(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return $(this.origin)?ky(this.origin,this.direction):null}getParentCaret(e=`root`){return Ty(xy(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=by(this.direction);return Ty(this.getNodeAtCaret(),e)||ky(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 tC)&&this.direction===t.direction&&this.origin.is(t.origin)}},tC=class e extends QS{type=`text`;offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Ey(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e=`root`){return Ty(xy(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Ey(this.origin,by(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 eC||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Ty(this.origin,this.direction)}},uie={next:class extends tC{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends tC{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},die={next:class extends eC{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends eC{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},fie={next:class extends $S{direction=`next`;getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends $S{direction=`previous`;getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}},pie=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 Sy(t)?function(e,t){let{direction:n,origin:r}=e;return Oy(e,Dy(r,t===`focus`?by(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[Oy(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e=`root`){let t=Sy(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=Sy(n),i=t=>t.isSameNodeCaret(n)?null:Ay(t)||t.getParentCaret(e);return Py({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`)}},mie=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 Ey(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}}})))()}function hie(e){let t=Uv().getElementByKey(e.getKey());if(t===null)return null;let n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function gie(e){return hie(C_(e)?e:e.getParentOrThrow())}function rC(e){let t=gie(e);return t!==null&&t.direction===`rtl`}function _ie(e,t,n=`self`){let r=e.getStartEndPoints();if(t.isSelected(e)&&!B_(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]=Yg(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=kre(t)),t.__text=p)}}return t}function vie(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function iC(e,t,n){let r=By(e,n);if(Yy(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 aC(e,t,n=vie){if(!e)return;let r=e.getStartEndPoints(),i=!1,a=null,o=new Map;if(r){let[t,n]=r,s=JS(t.getNode(),Hv);a=JS(n.getNode(),Hv);let c=e.isBackward()?`previous`:`next`;i=$(a)&&!a.is(s)&&function(e,t,n){let r=e.getNode();return(!$(r)||!r.isEmpty())&&iC(e,t,n)}(n,a,by(c)),$(s)&&o.set(s.getKey(),s),$(a)&&!i&&o.set(a.getKey(),a)}for(let t of e.getNodes())if($(t)&&Hv(t)){if(i&&t.is(a))continue;o.set(t.getKey(),t)}else if(!r){let e=JS(t,Hv);$(e)&&o.set(e.getKey(),e)}for(let e of o.values()){let r=t();n(e,r),e.replace(r,!0)}}function yie(e){let t=bie(e);return t!==null&&t.writingMode===`vertical-rl`}function bie(e){let t=e.anchor.getNode();return $(t)?hie(t):gie(t)}function xie(e,t){let n=yie(e)?!t:t;Cie(e)&&(n=!n);let r=By(e.focus,n?`previous`:`next`);if(Yy(r))return!1;if(Sy(r)&&!Gg(r.origin)&&r.origin.isUnmergeable()){let e=r.getNodeAtCaret();if(Hg(e)&&!Gg(e))return!0}for(let e of jy(r)){if(wy(e))return!e.origin.isInline();if(!$(e.origin)){if(S_(e.origin))return!0;break}}return!1}function Sie(e,t,n,r){e.modify(t?`extend`:`move`,n,r)}function Cie(e){let t=bie(e);return t!==null&&t.direction===`rtl`}function wie(e,t,n){let r=Cie(e),i;i=yie(e)||r?!n:n,Sie(e,t,i,`character`)}function oC(){return(oC=s((()=>{nC()})))()}function Tie(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 sC(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function Eie(e){let t=JS(e,e=>$(e)&&!e.isInline());return $(t)||Tie(4,e.__key),t}function cC(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function lC(e){let t=null;if(cC(e,DragEvent)?t=e.dataTransfer:cC(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 Die(e){let t=n_();if(!Q(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=JS(i,e=>$(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 Oie(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($(e))for(let t of kie(e))r.push(t);return n}function kie(e){return Aie(ky(e,`previous`))}function Aie(e){return Py({hasNext:Cy,initial:e.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}function jie(e,t){let n=n_();if(Q(n)&&n.isCollapsed()){let r=JS(n.anchor.getNode(),e);if(r){let e=r.getParent();if(e!==null&&e.getFirstChild()===r&&Nie(n.anchor,r))return r.insertBefore(k_()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function Mie(e,t){let n=n_();if(Q(n)&&n.isCollapsed()){let r=JS(n.anchor.getNode(),e);if(r){let e=r.getParent();if(e!==null&&e.getLastChild()===r&&Pie(n.anchor,r))return r.insertAfter(k_()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function Nie(e,t){return iC(e,t,`previous`)}function Pie(e,t){return iC(e,t,`next`)}function uC(){return(uC=s((()=>{oC(),nC()})))()}function dC(){if(CC>1)return void CC--;let e,t=!1;for(function(){let e=SC;for(SC=void 0;e!==void 0;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();xC!==void 0;){let n=xC;for(xC=void 0,wC++;n!==void 0;){let r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Rie(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(wC=0,CC--,t)throw e}function Fie(e){let t=bC;bC=void 0;try{return e()}finally{bC=t}}function Iie(e){if(bC===void 0)return;let t=e.n;return t===void 0||t.t!==bC?(t={i:0,S:e,p:bC.s,n:void 0,t:bC,e:void 0,x:void 0,r:t},bC.s!==void 0&&(bC.s.n=t),bC.s=t,e.n=t,32&bC.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=bC.s,t.n=void 0,bC.s.n=t,bC.s=t),t):void 0}function fC(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 Lie(e,t){return new fC(e,t)}function Rie(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 zie(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 Bie(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 pC(e,t){fC.call(this,void 0),this.x=e,this.s=void 0,this.g=EC-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function Vie(e){let t=e.m;if(e.m=void 0,typeof t==`function`){CC++;let n=bC;bC=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,mC(e),t}finally{bC=n,dC()}}}function mC(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Vie(e)}function Hie(e){if(bC!==this)throw Error(`Out-of-order effect`);Bie(this),bC=e,this.f&=-2,8&this.f&&mC(this),dC()}function hC(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 Uie(e,t){let n=new hC(e,t);try{n.c()}catch(e){throw n.d(),e}let r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Wie(e){return(typeof e.nodes==`function`?e.nodes():e.nodes)||[]}function Gie(e,t){let n;return Lie(e(),{unwatched(){n&&=(n(),void 0)},watched(){this.value=e(),n=t(this)}})}function gC(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 Kie(e,t){if(e&&t&&!Array.isArray(t)&&typeof e==`object`&&typeof t==`object`){let n=e,r=t;for(let e in r)!aae.has(e)&&Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=Kie(n[e],r[e]));return e}return t}function _C(e){return e.id===DC}function qie(e){return e.id===kC}function Jie(e){return function(e){return e.id===OC}(e)||gC(305,String(e.id),String(OC)),Object.assign(e,{id:kC})}function Yie(){let e=Z_();e.isEmpty()&&e.append(k_())}function Xie(){}function Zie(e){throw e}function vC(e){return Array.isArray(e)?e:[e]}function yC(e,t){let n=lae.maybeFromEditor(e);if(!n)return;let r=n.extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}function Qie(e){return yC(Uv(),e)}function $ie(){return{node:eae()}}function eae(){return iy(RC)}function tae(e){return e instanceof RC}var nae,bC,xC,SC,CC,wC,TC,EC,rae,iae,aae,DC,OC,kC,AC,jC,MC,NC,PC,oae,sae,FC,cae,IC,LC,lae,RC;function zC(){return(zC=s((()=>{nC(),nae=Symbol.for(`preact-signals`),CC=0,wC=0,TC=0,EC=0,fC.prototype.brand=nae,fC.prototype.h=function(){return!0},fC.prototype.S=function(e){let t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t===void 0?Fie(()=>{var e;(e=this.W)==null||e.call(this)}):t.e=e)},fC.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&&Fie(()=>{var e;(e=this.Z)==null||e.call(this)}))}},fC.prototype.subscribe=function(e){return Uie(()=>{let t=this.value,n=bC;bC=void 0;try{e(t)}finally{bC=n}},{name:`sub`})},fC.prototype.valueOf=function(){return this.value},fC.prototype.toString=function(){return this.value+``},fC.prototype.toJSON=function(){return this.value},fC.prototype.peek=function(){let e=bC;bC=void 0;try{return this.value}finally{bC=e}},Object.defineProperty(fC.prototype,"value",{get(){let e=Iie(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(wC>100)throw Error(`Cycle detected`);(function(e){CC!==0&&wC===0&&e.l!==TC&&(e.l=TC,SC={S:e,v:e.v,i:e.i,o:SC})})(this),this.v=e,this.i++,EC++,CC++;try{for(let e=this.t;e!==void 0;e=e.x)e.t.N()}finally{dC()}}}}),pC.prototype=new fC,pC.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===EC))return!0;if(this.g=EC,this.f|=1,this.i>0&&!Rie(this))return this.f&=-2,!0;let e=bC;try{zie(this),bC=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 bC=e,Bie(this),this.f&=-2,!0},pC.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)}fC.prototype.S.call(this,e)},pC.prototype.U=function(e){if(this.t!==void 0&&(fC.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)}},pC.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(pC.prototype,"value",{get(){if(1&this.f)throw Error(`Cycle detected`);let e=Iie(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),hC.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()}},hC.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,Vie(this),zie(this),CC++;let e=bC;return bC=this,Hie.bind(this,e)},hC.prototype.N=function(){2&this.f||(this.f|=2,this.u=xC,xC=this)},hC.prototype.d=function(){this.f|=8,1&this.f||mC(this)},hC.prototype.dispose=function(){this.d()};try{rae=`0.49.0+prod.esm`}catch{}iae=rae??`"<unknown>+source"`,aae=new Set([`__proto__`,`constructor`,`prototype`]),DC=0,OC=1,kC=2,AC=3,jC=4,MC=5,NC=6,PC=7,oae=new Set,sae=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:DC}}mergeConfigs(){let e=this.extension.config||{},t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):rb;for(let n of this.configs)e=t(e,n);return e}init(e){let t=this.state;qie(t)||gC(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:AC,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:jC,initResult:t,registerState:n})}(i,a,r)}build(e){let t=this.state,n;t.id!==jC&&gC(307,String(t.id),String(MC)),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:MC,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;let n=this.state;n.id!==MC&&gC(308,String(n.id),String(MC));let r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:NC})}(n),()=>{let e=this.state;e.id!==PC&&gC(309,String(n.id),String(PC)),this.state=function(e){return Object.assign(e,{id:MC})}(e),r&&r()}}afterRegistration(e){let t=this.state,n;return t.id!==NC&&gC(310,String(t.id),String(NC)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:PC})}(t),n}getSignal(){return this._signal===void 0&&gC(311),this._signal}getInitResult(){this.extension.init===void 0&&gC(312,this.extension.name);let e=this.state;return function(e){return e.id>=jC}(e)||gC(313,String(e.id),String(jC)),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>=AC}(e)||gC(314,String(e.id),String(AC)),{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&&gC(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){let t=this.builder.getExtensionRep(e);return t===void 0&&gC(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){let e=this.state;return function(e){return e.id>=PC}(e)||gC(316,String(e.id),String(PC)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||oae}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>=MC})(e)||gC(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}},FC={tag:_S},cae=tb({config:nb({setOptions:FC,updateOptions:FC}),init:({$initialEditorState:e=Yie})=>({$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(Kne(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:[PS,yS,LS,xS,RS]}),IC=Symbol.for(`@lexical/extension/LexicalBuilder`),LC=iae,lae=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=LC,this.roots=e;for(let t of e)this.addExtension(t)}static fromExtensions(t){let n=[vC(cae)];for(let e of t)n.push(vC(e));return new e(n)}static maybeFromEditor(t){let n=t[IC];return n&&(n.PACKAGE_VERSION!==LC&&gC(292,n.PACKAGE_VERSION,LC),n instanceof e||gC(293)),n}static fromEditor(t){let n=e.maybeFromEditor(t);return n===void 0&&gC(294),n}constructEditor(){let{$initialEditorState:e,onError:t,onWarn:n,...r}=this.buildCreateEditorArgs(),i=Object.assign(ere({...r,...t?{onError:e=>{t(e,i)}}:{},...n?{onWarn:e=>{n(e,i)}}:{}}),{[IC]:this});for(let e of this.sortedExtensionReps())e.build(i);return i}buildEditor(){let e=Xie;function t(){try{e()}finally{e=Xie}}let n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=sb(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&&gC(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&&gC(296);let[t]=vC(e);typeof t.name!=`string`&&gC(297,typeof t.name);let n=this.extensionNameMap.get(t.name);if(n!==void 0&&n.extension!==t&&gC(298,t.name),!n){n=new sae(this,t),this.extensionNameMap.set(t.name,n);let e=this.conflicts.get(t.name);typeof e==`string`&&gC(299,t.name,e);for(let e of t.conflictsWith||[])this.extensionNameMap.has(e)&&gC(299,t.name,e),this.conflicts.set(e,t.name);for(let e of t.dependencies||[]){let n=vC(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(qie(i))return;let a=n.extension.name;var o;_C(i)||gC(300,a,r||`[unknown]`),_C(o=i)||gC(304,String(o.id),String(DC)),i=Object.assign(o,{id:OC}),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=Jie(i),n.state=i,e.push(n)};for(let e of this.extensionNameMap.values())_C(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&&gC(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 sb(...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 Wie(o)){if(typeof e!=`function`){let t=n.get(e.replace);t&&gC(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&&Kie(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||=Zie,e}},RC=class extends NS{$config(){return this.config(`horizontalrule`,{importDOM:{hr:()=>({conversion:$ie,priority:0})}})}exportDOM(){return{element:Av().createElement(`hr`)}}createDOM(e){let t=Av().createElement(`hr`);return ab(t,e.theme.hr),t}getTextContent(){return`
|
||
`}isInline(){return!1}updateDOM(){return!1}},Date.now})))()}function BC(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 uae(e,t){let{key:n}=t;return e&&n in e?e[n]:t.defaultValue}function dae(e){return UC&&UC.editor===e?UC:void 0}function fae(e,t){if(`cfg`in t){let{cfg:n,updater:r}=t;return[n,r(uae(e,n))]}return t}function pae(e,t){let n=t;for(let r of e){let[e,i]=fae(n,r),a=e.key;if(n===t&&uae(n,e)===i)continue;let o=n===t||n===void 0?mae(t):n;o[a]=i,n=o}return n}function mae(e){return Object.create(e||null)}function hae(e,t){return[e,t]}function gae(e,t,n,r=Uv()){let i=UC,a=dae(r);try{return UC={...a,editor:r,[e]:t},n()}finally{UC=i}}function _ae(e,t=()=>{}){return(n,r=Uv())=>i=>{let a=dae(r),o=a&&a[e],s=pae(n,o||t(r));return s&&s!==o?gae(e,s,i,r):i()}}function vae(e,t,n,r){return Object.assign(Sh(Symbol(t),{isEqual:r,parse:n}),{[e]:!0})}function yae(e){if(!H_(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(!cC(e,CSSStyleRule))continue;let n;try{n=t.querySelectorAll(e.selectorText)}catch{continue}for(let t of Array.from(n)){if(!Lv(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 bae(e,t,n){return vae(GC,e,t,n)}function xae(e){let t=yC(e,WC);return t?t.output.defaults:void 0}function Sae(e){let t=yC(e,WC);return t?t.output.runtime:void 0}function Cae(e=Uv()){let t=Sae(e);return t?t.getSessionConfig():Wv(e)}function VC(e,t){let n={kind:`element`,predicate:(r=t,r.length===0?Lv: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=>VC(e,[...t,n]);return{[KC]:n,attr:(e,t,n)=>i(HC(e,t,n)),classAll:(...e)=>i(Tae(e)),classAny:(...e)=>i(function(e){let t=wae(e);return t.length===0?()=>!1:e=>{if(!Lv(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=>Lv(n)&&n.style.getPropertyValue(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!Lv(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)}}BC(362,JSON.stringify(e))}(e,t,n))}}function wae(e){let t=[];for(let n of e)n&&t.push(n);return t}function Tae(e){let t=wae(e);return t.length===0?()=>!0:e=>{if(!Lv(e))return!1;let n=e.classList;for(let e of t)if(!n.contains(e))return!1;return!0}}function HC(e,t,n){if(!0===t)return t=>Lv(t)&&t.hasAttribute(e);if(typeof t==`string`)return n=>Lv(n)&&n.getAttribute(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!Lv(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)}}BC(361,JSON.stringify(e))}function Eae(e){let t=new Set,n=[],r=[];if(e.skipWhitespace(),e.peek()===`*`)e.consume();else if(JC.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(HC(`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(HC(t,r))}}}return r.length>0&&n.push(Tae(r)),{predicates:n,tags:t}}function Dae(e){let t=new Bae(e,0),n=[];for(;;){let e=Eae(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 VC(n[0].tags,n[0].predicates);let r=new Set;if(n.every(e=>e.tags.size>0))for(let e of n)for(let t of e.tags)r.add(t);return VC(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 Oae(e,t){yae(t);let n=H_(t)?t.body.childNodes:t.childNodes,r=[],i=[];for(let t of n)if(!ZC.has(t.nodeName)){let n=Mae(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 IS&&t.insertAfter(E_());for(let t of e){let e=t.getParent();e&&e.splice(t.getIndexWithinParent(),1,t.getChildren())}}(i),r}function kae(e,t=null,n=Uv()){return Fae([hae(Pae,!0)],n)(()=>{let r=Z_(),i=Cae(n),a=Q(t)?dy(t.anchor.getNode()):null,o=e.append.bind(e);for(let e of($(a)?a:r).getChildren())jae(n,e,o,t,i);return e})}function Aae(e,t=null){return(typeof document>`u`||typeof window>`u`&&global.window===void 0)&&BC(338),jne(e),kae(Av().createElement(`div`),t,e).innerHTML}function jae(e,t,n,r=null,i=Wv(e)){let a=i.$shouldInclude(t,r,e),o=i.$shouldExclude(t,r,e),s=t;r!==null&&Hg(t)&&(s=_ie(r,t,`clone`));let{element:c,after:l,append:u,$getChildNodes:d}=i.$exportDOM(s,e);if(!c)return!1;let f=Av().createDocumentFragment(),p=d?d():$(s)?s.getChildren():[],m=a&&Jg(r)&&$(t)?null:r,h=f.append.bind(f);for(let n of p){let o=jae(e,n,h,m,i);!a&&o&&i.$extractWithChild(t,n,r,`html`,e)&&(a=!0)}if(a&&!o){if((Lv(c)||zv(c))&&(u?u(f):c.append(f)),n(c),l){let e=l.call(s,c);e&&(zv(c)?c.replaceChildren(e):c.replaceWith(e))}}else n(f);return a}function Mae(e,t,n,r,i=new Map,a){let o=[];if(ZC.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||!yv(s))&&(s!=null&&Qg(s)||r);for(let e=0;e<d.length;e++)f.push(...Mae(d[e],t,n,p,new Map(i),s));if(u!=null&&(f=u(f)),Vv(e)&&(f=Nae(e,f,p?()=>{let e=new IS;return n.push(e),e}:k_)),s==null){if(f.length>0)for(let e of f)o.push(e);else Vv(e)&&function(e){return e.nextSibling==null||e.previousSibling==null?!1:Bv(e.nextSibling)&&Bv(e.previousSibling)}(e)&&o.push(E_())}else $(s)&&s.append(...f);return o}function Nae(e,t,n){let r=e.style.textAlign,i=[],a=[];for(let e=0;e<t.length;e++){let o=t[e];if(Qg(o))r&&!o.getFormat()&&o.setFormat(r),i.push(o);else if(a.push(o),e===t.length-1||e<t.length-1&&Qg(t[e+1])){let e=n();e.setFormat(r),e.append(...a),i.push(e),a=[]}}return i}var UC,WC,GC,Pae,Fae,KC,Iae,Lae,Rae,zae,qC,JC,Bae,YC,XC,ZC;function QC(){return(QC=s((()=>{oC(),nC(),uC(),zC(),WC=`@lexical/html/DOM`,GC=Symbol.for(`@lexical/html/DOMExportContext`),Pae=bae(`isExport`,Boolean),Fae=_ae(GC,xae),KC=Symbol.for(`@lexical/html/SelectorImpl`),Iae={kind:`text`,predicate:V_,tags:new Set},Lae={[KC]:Iae},Rae={kind:`comment`,predicate:e=>e.nodeType===8,tags:new Set},zae={[KC]:Rae},qC={any:()=>VC(new Set,[]),comment:()=>zae,tag(...e){e.length>0||BC(363);let t=new Set;for(let n of e)t.add(n.toUpperCase());return VC(t,[])},text:()=>Lae},JC=/[A-Za-z0-9_-]/,Bae=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()&&JC.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||BC(364,String(this.pos+1),t,this.source)}},YC=qC,YC.tag(`b`,`strong`,`em`,`i`,`code`,`mark`,`s`,`sub`,`sup`,`u`,`span`),YC.text(),YC.tag(`script`,`style`),YC.tag(`br`),YC.tag(`p`),YC.tag(`hr`),YC.any(),Object.freeze([]),Object.freeze({}),qC.any(),XC={any:qC.any,comment:qC.comment,css:Dae,tag:qC.tag,text:qC.text},ZC=new Set([`STYLE`,`SCRIPT`])})))()}function $C(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 Vae(e,t){let n=e;for(let r=Ty(e,t);r&&(sw(r.origin)||Gg(r.origin));r=r.getAdjacentCaret())n=r.origin;return n}function ew(e){return Vae(e,`previous`)}function tw(e){return Vae(e,`next`)}function Hae(e){let t=ew(e),n=tw(e),r=t;for(;r!==null;){if(sw(r)){let e=rre(r.getTextContent());if(e!==null)return e}if(r===n)break;r=r.getNextSibling()}let i=t.getParent();if($(i)){let e=i.getDirection();if(e===`ltr`||e===`rtl`)return e}return null}function Uae(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(sw(e)||Gg(e)||D_(e)||$C(167),i=e,D_(i)){n={node:i,offset:1};break}a=Math.max(0,i.getTextContentSize()-1),o=i.getTextContent()}else a--;let e=o[a];sw(i)&&e!==` `&&(r={node:i,offset:a})}if(r!==null)return r;let s=null;if(t<e.getTextContentSize())sw(e)&&(s=e.getTextContent()[t]);else{let t=e.getNextSibling();sw(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(!sw(n)||r===a){if(n=n.getNextSibling(),n===null||D_(n))return null;sw(n)&&(r=0,i=n.getTextContent(),a=n.getTextContentSize())}if(sw(n)){if(i[r]!==` `)return{node:n,offset:r};r++}}}(e,t);return r===null?n:r}}function Wae(e){let t=tw(e);return D_(t)&&$C(168),t}function Gae(e){let t=[];return c_(e,{linebreak:()=>t.push(E_()),tab:()=>t.push(Wg()),text:e=>t.push(ow(e))}),t}function Kae(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 qae(e,t){for(let n of e.childNodes)if(Lv(n)&&n.tagName===t||qae(n,t))return!0;return!1}function nw(e,t){return iy(fw).setLanguage(e).setTheme(t)}function rw(e){return e instanceof fw}function Jae(e){return{node:nw(e.getAttribute(lw))}}function Yae(e){let t=e,n=Qae(t);return n||function(e){let t=e.parentElement;for(;t!==null;){if(Qae(t))return!0;t=t.parentElement}return!1}(t)?{node:n?nw():null}:{node:null}}function Xae(){return{node:nw()}}function Zae(){return{node:null}}function Qae(e){return e.style.fontFamily.match(`monospace`)!==null}function iw(e){return e.classList.contains(`js-file-line-container`)}function $ae(e){let{anchor:t}=e;if(e.isCollapsed()&&t.type===`element`){let e=t.getNode();if(rw(e)){let n=e.getChildrenSize();if(n>=2&&t.offset===n){let t=e.getLastChild();if(D_(t)&&D_(t.getPreviousSibling())){let t=k_();return e.splice(n-2,2,[]).insertAfter(t,!1),t.select(),t}}}}return null}function aw(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function ow(e=``,t){return xv(new pw(e,t))}function sw(e){return e instanceof pw}function cw(e){if(!Q(e))return!1;let t=e.anchor.getNode(),n=rw(t)?t:t.getParent(),r=e.focus.getNode(),i=rw(r)?r:r.getParent();return rw(n)&&n.is(i)}function eoe(e){let t=e.getNodes(),n=[];if(t.length===1&&rw(t[0]))return n;let r=[];for(let e=0;e<t.length;e++){let i=t[e];sw(i)||Gg(i)||D_(i)||$C(169),D_(i)?r.length>0&&(n.push(r),r=[]):r.push(i)}if(r.length>0){let t=e.isBackward()?e.anchor:e.focus,i=Kg(r[0].getKey(),0,`text`);t.is(i)||n.push(r)}return n}function toe(e,t){let n=n_();if(!Q(n)||!cw(n))return!1;let r=eoe(n),i=r.length;if(i===0&&n.isCollapsed())return e===$x&&n.insertNodes([Wg()]),!0;if(i===0&&e===$x&&n.getTextContent()===`
|
||
`){let e=Wg(),t=E_(),r=n.isBackward()?`previous`:`next`;return n.insertNodes([e,t]),Hy(Zy(Ny(Ey(e,`next`,0),Jy(Ty(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=ew(r)),e===$x){let e=Wg();if(r.insertBefore(e),a===0){let t=n.isBackward()?`focus`:`anchor`,i=Kg(r.getKey(),0,`text`);n[t].is(i)&&n[t].set(e.getKey(),0,`text`)}}else Gg(r)?r.remove():t!==void 0&&sw(r)&&Kae(r,t,n)}}return!0}function noe(e,t){let n=n_();if(!Q(n))return!1;let{anchor:r,focus:i}=n,a=r.offset,o=i.offset,s=r.getNode(),c=i.getNode(),l=e===Wx;if(!cw(n)||!sw(s)&&!Gg(s)||!sw(c)&&!Gg(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=ew(s),d=tw(c)):(u=ew(c),d=tw(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(!sw(t)&&!Gg(t)&&!D_(t))return!1}t.preventDefault(),t.stopPropagation();let p=l?u.getPreviousSibling():d.getNextSibling();if(!D_(p))return!0;let m=l?p.getPreviousSibling():p.getNextSibling();if(m==null)return!0;let h=(sw(m)||Gg(m)||D_(m)?l?ew(m):tw(m):null)??m;return p.remove(),f.forEach(e=>e.remove()),e===Wx?(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 roe(e,t){let n=n_();if(!Q(n))return!1;let{anchor:r,focus:i}=n,a=r.getNode(),o=i.getNode(),s=e===Ux;if(!cw(n)||!sw(a)&&!Gg(a)||!sw(o)&&!Gg(o))return!1;let c=o,l=Hae(c)===`rtl`?!s:s,u=r.key,d=r.offset,f=r.type;if(l){let e=Uae(c,i.offset);if(e!==null){let{node:t,offset:r}=e;D_(t)?t.selectNext(0,0):n.setTextNodeRange(t,r,t,r)}else c.getParentOrThrow().selectStart()}else Wae(c).select();return t.shiftKey&&n.anchor.set(u,d,f),t.preventDefault(),t.stopPropagation(),!0}function ioe(e,t,n){return sb(...n?[e.registerCommand(Gx,e=>!e.altKey&&Mie(rw,e),1),e.registerCommand(Bx,e=>Mie(rw,e),1),e.registerCommand(Wx,e=>!e.altKey&&jie(rw,e),1),e.registerCommand(Hx,e=>jie(rw,e),1)]:[],e.registerCommand(Zx,t=>{let n=function(e){let t=n_();if(!Q(t)||!cw(t))return null;let n=e?eS:$x,r=e?eS:Qx,i=t.anchor,a=t.focus;if(i.is(a))return r;let o=eoe(t);if(o.length!==1)return n;let s=o[0],c,l;s.length===0&&$C(285),t.isBackward()?(c=a,l=i):(c=i,l=a);let u=ew(s[0]),d=tw(s[0]),f=Kg(u.getKey(),0,`text`),p=Kg(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),!0)},1),e.registerCommand(Qx,()=>!!cw(n_())&&(s_([Wg()]),!0),1),e.registerCommand($x,()=>toe($x),1),e.registerCommand(eS,()=>toe(eS,t),1),e.registerCommand(Wx,e=>{let t=n_();if(!Q(t))return!1;let{anchor:n}=t,r=n.getNode();if(!cw(t))return!1;let i=r.getParent();return t.isCollapsed()&&n.offset===0&&r.getPreviousSibling()===null&&rw(i)&&i.getPreviousSibling()===null?(e.preventDefault(),!0):noe(Wx,e)},1),e.registerCommand(Gx,e=>{let t=n_();if(!Q(t))return!1;let{anchor:n}=t,r=n.getNode();return!!cw(t)&&(t.isCollapsed()&&n.offset===r.getTextContentSize()&&r.getNextSibling()===null&&rw(r.getParentOrThrow())&&r.getParentOrThrow().getNextSibling()===null?(e.preventDefault(),!0):noe(Gx,e))},1),e.registerCommand(Ux,e=>roe(Ux,e),1),e.registerCommand(Vx,e=>roe(Vx,e),1))}var aoe,lw,uw,dw,fw,pw;function mw(){return(mw=s((()=>{QC(),nC(),zC(),uC(),aoe=`javascript`,lw=`data-language`,uw=`data-highlight-language`,dw=`data-theme`,fw=class extends MS{__language;__theme;__isSyntaxHighlightSupported;$config(){return this.config(`code`,{extends:MS,importDOM:{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||qae(e,`BR`))?{conversion:Jae,priority:1}:null,div:()=>({conversion:Yae,priority:1}),pre:()=>({conversion:Jae,priority:0}),table:e=>iw(e)?{conversion:Xae,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return t.classList.contains(`js-file-line`)||n&&iw(n)?{conversion:Zae,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&iw(t)?{conversion:Zae,priority:3}:null}}})}constructor(e=void 0,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=Av().createElement(`code`);ab(t,e.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(lw,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(uw,n));let r=this.getTheme();r&&t.setAttribute(dw,r);let i=this.getStyle();return i&&jg(t.style,i),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(lw,r):i&&t.removeAttribute(lw);let a=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?a&&r?r!==i&&t.setAttribute(uw,r):t.removeAttribute(uw):a&&r&&t.setAttribute(uw,r);let o=this.__theme,s=e.__theme;o?o!==s&&t.setAttribute(dw,o):s&&t.removeAttribute(dw);let c=this.__style,l=e.__style;return c!==l&&jg(t.style,c,l),!1}exportDOM(e){let t=Av().createElement(`pre`);ab(t,e._config.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(lw,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(uw,n));let r=this.getTheme();r&&t.setAttribute(dw,r);let i=this.getStyle();return i&&jg(t.style,i),{element:t}}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(!yC(Uv(),`@lexical/code`)){let t=$ae(e);if(t)return t}let{anchor:n,focus:r}=e,i=(n.isBefore(r)?n:r).getNode();if(Hg(i)){let e=ew(i),t=[];for(;;)if(Gg(e))t.push(Wg()),e=e.getNextSibling();else{if(!sw(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&r[n]===` `;)n++;if(n!==0&&t.push(ow(` `.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=[E_(),...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(rw(i)){let{offset:t}=e.anchor;i.splice(t,0,[E_()]),i.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=k_();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}},pw=class extends yS{__highlightType;constructor(e=``,t,n){super(e,n),this.__highlightType=t}$config(){return this.config(`code-highlight`,{extends:yS})}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 ab(t,aw(e.theme,this.__highlightType)),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=aw(n.theme,e.__highlightType),a=aw(n.theme,this.__highlightType);return i!==a&&(i&&ob(t,i),a&&ab(t,a)),r}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 nw()}},XC.tag(`tr`,`td`),XC.tag(`pre`),XC.tag(`code`),XC.tag(`div`),XC.tag(`div`,`br`),XC.tag(`div`),XC.tag(`table`).classAll(`js-file-line-container`),XC.tag(`td`).classAll(`js-file-line`)})))()}function ooe(){return(ooe=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:/[{}[\];(),.:]/}})))()}function soe(){return(soe=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})))()}function coe(){return(coe=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(/&/,`&`))}),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})))()}function loe(){return(loe=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)})))()}function uoe(){return(uoe=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})))()}function doe(){return(doe=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)})))()}function foe(){return(foe=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})))()}function poe(){return(poe=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:/[;[\]()`,.]/}})))()}function moe(){return(moe=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)})))()}function hoe(){return(hoe=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://,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})))()}function goe(){return(goe=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)})))()}function _oe(){return(_oe=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})})))()}function voe(){return(voe=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)})))()}function yoe(){return(yoe=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)})))()}function boe(){return(boe=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 xoe(e){let t=function(e){let t=/^diff-([\w-]+)/i.exec(e);return t?t[1]:null}(e)||e;try{return!!t&&_w.languages.hasOwnProperty(t)}catch{return!1}}async function Soe(e,t,n){}function hw(e){return typeof e==`string`?e:Array.isArray(e)?e.map(hw).join(``):hw(e.content)}function Coe(e,t){let n=/^diff-([\w-]+)/i.exec(t),r=e.getTextContent(),i=_w.tokenize(r,_w.languages[n?`diff`:t]);return n&&(i=function(e,t){let n=t,r=_w.languages[n],i={tokens:e},a=_w.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 _w.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=_w.tokenize(hw(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])),gw(i)}function gw(e,t){let n=[];for(let r of e)if(typeof r==`string`)c_(r,{linebreak:()=>n.push(E_()),tab:()=>n.push(Wg()),text:e=>n.push(ow(e,t))});else{let{content:e,alias:t}=r;typeof e==`string`?n.push(...gw([e],r.type===`prefix`&&typeof t==`string`?t:r.type)):Array.isArray(e)&&n.push(...gw(e,r.type===`unchanged`?void 0:r.type))}return n}function woe(e,t,n,r){let i=r.getParent();rw(i)?Eoe(e,t,n,i):sw(r)&&r.replace(Vg(r.__text))}function Toe(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++)D_(r[e])&&(a+=`
|
||
`+ ++o);n.setAttribute(`data-gutter`,a)}function Eoe(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(!xoe(o))return r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),void Soe();r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0)}else r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1);i.has(a)||(i.add(a),n.didTransform||(n.didTransform=!0,xre(()=>{n.didTransform=!1,i.clear()})),function(e,t){let n=J_(e);if(!rw(n)||!n.isAttached())return;let r=n_();if(!Q(r))return void t();let i=r.anchor,a=i.offset,o=i.type===`element`&&D_(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=Hg(e);if(t||D_(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}}(a,()=>{let e=J_(a);if(!rw(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&&Doe(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++,!Doe(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 Doe(e,t){return sw(e)&&sw(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||Gg(e)&&Gg(t)||D_(e)&&D_(t)}function Ooe(e,t){let n=[];!0!==e._headless&&n.push(e.registerMutationListener(fw,t=>{e.read(`latest`,()=>{for(let[n,r]of t)if(r!==`destroyed`){let t=J_(n);t!==null&&Toe(t,e)}})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set};return n.push(e.registerNodeTransform(fw,Eoe.bind(null,e,t,r)),e.registerNodeTransform(yS,woe.bind(null,e,t,r)),e.registerNodeTransform(pw,woe.bind(null,e,t,r))),sb(...n)}function koe(e,t=vw){if(!e.hasNodes([fw,pw]))throw Error(`CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor`);return sb(Ooe(e,t),ioe(e))}var _w,vw;function yw(){return(yw=s((()=>{mw(),nC(),uh(),ooe(),soe(),coe(),loe(),uoe(),doe(),foe(),poe(),moe(),hoe(),goe(),_oe(),voe(),yoe(),boe(),(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`],_w=globalThis.Prism||window.Prism,vw={$tokenize(e,t){let n=t||this.defaultLanguage;return n===null?Gae(e.getTextContent()):Coe(e,n)},defaultLanguage:aoe,tokenize(e,t){let n=this.defaultLanguage;return _w.tokenize(e,_w.languages[t||``]||(n===null?void 0:_w.languages[n]))}}})))()}function bw(){return(bw=s((()=>{yw(),mw()})))()}function Aoe(e,t,n){let r=function(e){let t=e[Cw];return t===void 0&&(t={dispose:()=>{},editors:new Map,installs:new Set},e[Cw]=t),t}(e);if(r.installs.size===0){let t=Noe.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 joe.bind(null,e,r,t,n)}function joe(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[Cw])}function xw(e){return e&&e.ownerDocument.defaultView}function Moe(e){let t=Gie(()=>xw(e.getRootElement()),t=>e.registerRootListener(e=>{t.value=xw(e)}));return Uie(()=>{let n=t.value;if(n)return Aoe(n,Symbol(`@lexical/dragon/editorInstall`),e)})}function Noe(e){if(e.origin!==this.location.origin)return;let t=function(e){let t=e[Cw];if(t===void 0)return null;let n=R_(Pv(e.document));return I_(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=n_();if(Q(t)){let r=t.anchor,l=r.getNode(),u=0,d=0;if(Hg(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()),Hg(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=Sw[c];e!==void 0&&t.formatText(e)}e.stopImmediatePropagation()}})}}}}}var Sw,Cw;function ww(){return(ww=s((()=>{zC(),nC(),Sw={bold:`bold`,italic:`italic`,strikeThrough:`strikethrough`,subscript:`subscript`,superscript:`superscript`,underline:`underline`},Cw=Symbol.for(`@lexical/dragon/WindowState`)})))()}function Poe(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(!(Q(a)&&Q(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||C_(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)&&Hg(r)&&r.__text.length===1&&a.anchor.offset===1?2:0}let c=s[0],l=e._nodeMap.get(c.__key);if(!Hg(l)||!Hg(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 Foe(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:Poe(c,l,d,f,e.isComposing()),g=(()=>{let n=u===null||u.editor===e,a=p.has(Jre);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!(Q(a)&&Q(o)&&a.anchor.type===`element`&&a.focus.type===`element`&&o.anchor.type===`text`&&o.focus.type===`text`||!Hg(r)||!Hg(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 Tw(e,t){e.undoStack=[],e.redoStack=[],e.current=null,t&&t(e)}function Ioe(e,t,n,r=Date.now,i,a=null){let o=Foe(e,n,r),s=()=>{i&&i(t)};return s(),sb(e.registerCommand(Lx,()=>(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(sS,!0)),i.length===0&&e.dispatchCommand(cS,!1),t.current=o||null,n&&n(t),o&&o.editor.setEditorState(o.editorState,{tag:`historic`})}}(e,t,i),!0),0),e.registerCommand(Rx,()=>(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(cS,!0));let o=r.pop();r.length===0&&e.dispatchCommand(sS,!1),t.current=o||null,n&&n(t),o&&o.editor.setEditorState(o.editorState,{tag:`historic`})}}(e,t,i),!0),0),e.registerCommand(Hre,()=>(Tw(t,i),!1),0),e.registerCommand(Ure,()=>(Tw(t,i),e.dispatchCommand(sS,!1),e.dispatchCommand(cS,!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(sS,!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(cS,!0)}}else if(m===2)return;t.current={editor:e,editorState:n},s()}))}function Loe(){return{current:null,redoStack:[],undoStack:[]}}function Ew(){return(Ew=s((()=>{zC(),nC(),Date.now})))()}function Roe(e){let t=null;if(Iv(e)){let n=e.textContent;(n!==null&&n!==``||e.children.length>0)&&(t=Dw(e.getAttribute(`href`)||``,{rel:e.getAttribute(`rel`),target:e.getAttribute(`target`),title:e.getAttribute(`title`)}))}return{node:t}}function Dw(e=``,t){return xv(new Nw(e,t))}function Ow(e){return e instanceof Nw}function zoe(e=``,t){return xv(new Pw(e,t))}function kw(e){return e instanceof Pw}function Aw(e,t){if(e.type===`element`){let n=e.getNode();return $(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 Boe(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=n_();if(o===null||!Q(o)&&!Jg(o))return;if(Jg(o)){let e=o.getNodes();if(e.length===0)return;e.forEach(e=>{if(n===null){let t=JS(e,e=>!kw(e)&&Ow(e));t&&(t.insertBefore(e),t.getChildren().length===0&&t.remove())}else{let t=JS(e,e=>!kw(e)&&Ow(e));if(t)t.setURL(n),r!==void 0&&t.setTarget(r),a!==void 0&&t.setRel(a);else{let t=Dw(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=JS(e,e=>!kw(e)&&Ow(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=JS(t,e=>!kw(e)&&Ow(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())||$(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=bv(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=JS(e,Ow);if(t!==null)return l(t)}(function(e){let t=n_();if(!Q(t))return e();let n=Ph(t),r=n.isBackward(),i=Aw(n.anchor,r?-1:0),a=Aw(n.focus,r?0:-1);if(e(),i||a){let e=n_();if(Q(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`)}Q_(Ph(t))}}})(()=>{let e=null;for(let t of s){if(!t.isAttached())continue;let o=JS(t,Ow);if(o){l(o);continue}if($(t)){if(!t.isInline())continue;if(Ow(t)){if(!(kw(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();Ow(s)&&s.is(e)?s.append(t):(e=Dw(n,{rel:a,target:r,title:i}),t.insertAfter(e),e.append(t))}})}function jw(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes(`@`)?`mailto:${e}`:Iw.test(e)?`tel:${e}`:`https://${e}`}var Mw,Nw,Pw,Fw,Iw;function Lw(){return(Lw=s((()=>{nC(),QC(),Mw=new Set([`http:`,`https:`,`mailto:`,`sms:`,`tel:`]),Nw=class extends MS{__url;__target;__rel;__title;$config(){return this.config(`link`,{extends:MS,importDOM:{a:()=>({conversion:Roe,priority:1})}})}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=Av().createElement(`a`);return this.updateLinkDOM(null,t,e),ab(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Iv(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}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=jw(e);try{let t=new URL(jw(e));if(!Mw.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&&!Mw.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=bv(this);return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Q(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}},Pw=class extends Nw{__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}$config(){return this.config(`autolink`,{extends:Nw})}shouldMergeAdjacentLink(e){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?Av().createElement(`span`):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=zoe(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}},Fw=lg(`TOGGLE_LINK_COMMAND`),Iw=/^\+?[0-9\s()-]{5,}$/,XC.tag(`a`)})))()}function Rw(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 Voe(e){let t=1,n=e.getParent();for(;n!=null;){if(Jw(n)){let e=n.getParent();if(Qw(e)){t++,n=e.getParent();continue}Rw(40)}return t}return t}function Hoe(e){let t=e.getParent();Qw(t)||Rw(40);let n=t,r=t;for(;r!==null;)r=r.getParent(),Qw(r)&&(n=r);return n}function zw(e){return Jw(e)&&Qw(e.getFirstChild())}function Uoe(e,t){return Jw(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function Bw(e){let t=n_();if(t!==null){let n=t.getNodes();if(Q(t)){let[r]=t.getStartEndPoints(),i=r.getNode(),a=i.getParent();if(yv(i)){let e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=k_();i.append(e),n=e.select().getNodes()}}else if(Uoe(i,n)){let t=Zw(e);if(yv(a)){i.replace(t);let e=qw();$(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(Jw(i)){let e=i.getParentOrThrow();Vw(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t<n.length;t++){let i=n[t];if($(i)&&i.isEmpty()&&!Jw(i)&&!r.has(i.getKey())){Hw(i,e);continue}let a=are(i)?i.getParent():Jw(i)&&i.isEmpty()?i:null;for(;a!=null;){let t=a.getKey();if(Qw(a)){if(!r.has(t)){let n=Zw(e);Vw(n,a.getChildren()),a.replace(n),r.add(t)}break}{let n=a.getParent();if(yv(n)&&!r.has(t)){r.add(t),Hw(a,e);break}a=n}}}}}function Vw(e,t){e.splice(e.getChildrenSize(),0,t)}function Hw(e,t){if(Qw(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),i=qw(),a;if(Vw(i,e.getChildren()),Qw(n)&&t===n.getListType())n.append(i),Qw(r)&&t===r.getListType()&&(Vw(n,r.getChildren()),r.remove()),a=n;else if(Qw(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(i),a=r;else{let n=Zw(t);n.append(i),e.replace(n),a=n}i.setFormat(e.getFormatType()),i.setIndent(e.getIndent());let o=n_();return Q(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 Uw(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&zw(n)&&zw(r)&&(Uw(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function Woe(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())Jw(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),Qw(r.getFirstChild())||n++)}function Goe(e){let t=new Set;if(zw(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(zw(r)&&zw(i)){let n=i.getFirstChild();if(Qw(n)){n.append(e);let i=r.getFirstChild();Qw(i)&&(Vw(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(zw(r)){let t=r.getFirstChild();if(Qw(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(zw(i)){let t=i.getFirstChild();Qw(t)&&t.append(e)}else if(Qw(n)){let t=bv(e),a=bv(n);t.append(a),a.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function Ww(e){if(zw(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(Qw(n?n.getParent():void 0)&&Jw(n)&&Qw(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=bv(e),i=bv(t);r.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));let a=bv(e),o=bv(t);a.append(o),Vw(o,e.getNextSiblings()),n.insertBefore(r),n.insertAfter(a),n.replace(e)}}}function Koe(e=!1){let t=n_();if(!Q(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode(),r=null;if(Jw(n)&&n.getChildrenSize()===0)r=n;else if(Hg(n)){let e=n.getParent();Jw(e)&&e.getChildren().every(e=>Hg(e)&&e.getTextContent().trim()===``)&&(r=e)}if(r===null)return!1;let i=Hoe(r),a=r.getParent();Qw(a)||Rw(40);let o=a.getParent(),s;if(yv(o))s=k_(),i.insertAfter(s);else{if(!Jw(o))return!1;s=bv(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=bv(a).setStart(t);if(Jw(s)){let e=bv(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||!Jw(e)&&!Qw(e))break;t=e}t.remove()}(r),!0}function qoe(e){if(e.classList.contains(`task-list-item`)){for(let t of e.children)if(t.tagName===`INPUT`)return Gw(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 Gw(t.children[0])}let t=e.getAttribute(`aria-checked`),n=qw(t===`true`||t!==`false`&&void 0);return Zv(n,e),{after:Kw.bind(null,n),node:Xv(n,e)}}function Gw(e){if(e.getAttribute(`type`)!==`checkbox`)return{node:null};let t=qw(e.hasAttribute(`checked`));return{after:Kw.bind(null,t),node:t}}function Kw(e,t){let n=t[0];return t.length===1&&A_(n)&&!e.getFormatType()&&n.getFormatType()?(e.setFormat(n.getFormatType()),n.getChildren()):t}function qw(e){return xv(new $w(void 0,e))}function Jw(e){return e instanceof $w}function Yw(e,t,n){let r=[],i=[],a=t.list;if(a!==void 0){let e=a[`${n.__tag}Depth`]||[],t=Voe(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(...ib(s));for(let t=0;t<e.length;t++)t!==o&&i.push(n.__tag+t)}if(l!==void 0){let e=ib(l);t>1?r.push(...e):i.push(...e)}}i.length>0&&ob(e,...i),r.length>0&&ab(e,...r)}function Xw(e){let t;if(function(e){return Lv(e)&&e.nodeName.toLowerCase()===`ol`}(e)){let n=e.start;t=Zw(`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(Lv(t)&&t.hasAttribute(`aria-checked`))return!0;return!1}(e)?Zw(`check`):Zw(`bullet`);return Xv(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(Jw(i)){r.push(i);let e=i.getChildren();e.length>1&&e.forEach(e=>{Qw(e)&&r.push(n().append(e))})}else r.push(n().append(i))}return r}(e,t),node:t}}function Zw(e=`number`,t=1){return xv(new eT(e,t))}function Qw(e){return e instanceof eT}var $w,eT,tT,nT,rT;function iT(){return(iT=s((()=>{nC(),QC(),$w=class extends MS{__value;__checked;$config(){return this.config(`listitem`,{$transform:e=>{let t=e.getParent();if(Qw(t))t.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0);else if(t){let n=e.createParentElementNode();Qw(n)||Rw(340);let r=[e];for(let t of[`previous`,`next`]){r.reverse();for(let{origin:n}of Ty(e,t)){if(!Jw(n))break;r.push(n)}}e.insertBefore(n),n.splice(0,0,r),yv(t)||(eb(n,Gy(Ty(n,`next`)),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),t.isEmpty()&&t.isAttached()&&t.remove())}},extends:MS,importDOM:Dg({li:()=>({conversion:qoe,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=Av().createElement(`li`);return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){(function(e,t){let n=t.getParent();!Qw(n)||n.getListType()!==`check`||Qw(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=Qw(o)&&o.getListType()===`check`,c=n.getChecked(),l=n.getChildren().some(e=>Qw(e)),u=[];r.listitemChecked!==void 0&&u.push(r.listitemChecked),r.listitemUnchecked!==void 0&&u.push(r.listitemUnchecked),a!==void 0&&u.push(...ib(a)),u.length>0&&ob(e,...u);let d=[];if(i!==void 0&&d.push(...ib(i)),s){let e=c?r.listitemChecked:r.listitemUnchecked;e!==void 0&&d.push(e)}a!==void 0&&l&&d.push(...ib(a)),d.length>0&&ab(e,...d)}(t,n.theme,this);let r=e?e.__style:``,i=this.__style;r!==i&&jg(t.style,i,r),function(e,t,n){let r=t.__textStyle,i=n?n.__textStyle:``;if(n!==null&&i===r)return;let a=Ag(r);for(let t in a)e.style.setProperty(`--listitem-marker-${t}`,a[t]);if(i!==``)for(let t in Ag(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),zw(this)?{after(e){if(Lv(e)){let t=e.previousElementSibling;if(Lv(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($(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(Jw(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!Qw(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=bv(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&&($(e)||Rw(139),i=e.getChildrenSize(),e.splice(i,0,this.getChildren())),t&&$(e)){let t=n_();if(Q(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(Qw(n)||Rw(39),Jw(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),r.length!==0){let i=bv(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&&zw(t)&&zw(n)&&(Uw(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){let n=bv(this);return this.insertAfter(n,t),n}collapseAtStart(e){if(zw(this))return!1;let t=this.getParentOrThrow();if(Jw(t.getParentOrThrow()))return Ww(this),!0;let n=k_().append(...this.getChildren()),r=this.getNextSiblings();if(r.length>0){let e=bv(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 Qw(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(;Jw(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&Rw(117),(e=Math.floor(e))>=0||Rw(199);let t=this.getIndent();for(;t!==e;)t<e?(Goe(this),t++):(Ww(this),t--);return this}canInsertAfter(e){return Jw(e)}canReplaceWith(e){return Jw(e)}canMergeWith(e){return Jw(e)||A_(e)}extractWithChild(e,t){if(!Q(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 Zw(`bullet`)}canMergeWhenEmpty(){return!0}},eT=class extends MS{__tag;__start;__listType;$config(){return this.config(`list`,{$transform:e=>{(function(e){let t=e.getNextSibling();Qw(t)&&e.getListType()===t.getListType()&&Uw(e,t)})(e),Woe(e)},extends:MS,importDOM:Dg({ol:()=>({conversion:Xw,priority:0}),ul:()=>({conversion:Xw,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=tT[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=Av().createElement(n);return this.__start!==1&&r.setAttribute(`start`,String(this.__start)),r.__lexicalListType=this.__listType,Yw(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Yw(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 Lv(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];Jw(t)||(r===n&&(r=[...n]),r[e]=this.createListItemNode().append(!$(t)||Qw(t)||t.isInline()?t:Vg(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return Jw(e)}createListItemNode(){return qw()}},tT={ol:`number`,ul:`bullet`},XC.tag(`ol`,`ul`),XC.tag(`li`),XC.tag(`li`).classAll(`task-list-item`),XC.tag(`li`).classAll(`joplin-checkbox`),nT=lg(`INSERT_UNORDERED_LIST_COMMAND`),rT=lg(`INSERT_ORDERED_LIST_COMMAND`)})))()}function aT(e,t,n=null){let r=kv(n),i=n?Dv(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=uv(n)}return!1}(a.offsetNode,n))return{node:a.offsetNode,offset:a.offset}}if(a){let i=n.getRootNode();if(Ev(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 oT(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 Joe(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy(`lexical`,{createHTML:e=>e}).createHTML(e):e}function Yoe(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 sT(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)&&Yoe(e.$importMimeType[i],a,n,t))return!0}return!1}function cT(e,t=n_()){return t??oT(166),Q(t)&&t.isCollapsed()||t.getNodes().length===0?``:Aae(e,t)}function lT(e,t=n_()){return t??oT(166),Q(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify($oe(e,t))}function uT(e,t,n){(function(){let e=Qie(xT.name);return e?e.output:bT})().$insertDataTransfer(e,t)}function Xoe(e,t){let n={editorKey:t.getKey()};e.setData(ST,JSON.stringify(n))}function Zoe(e,t,n){let r=e.dataTransfer;if(r===null)return!1;let i=function(e){let t=e.getData(ST);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=aT(e.clientX,e.clientY,t.getRootElement());if(n===null)return null;let r=X_(n.node);if(r===null)return null;if(Hg(r))return Ey(r,`next`,n.offset);if($(r))return Qy(r,n.offset,`next`);let i=r.getParent();return i===null?null:Qy(i,r.getIndexWithinParent()+1,`next`)}(e,t);if(a===null)return!1;let o=$y(a);if(o===null)return!1;let s=i.editorKey===t.getKey(),c=n_();if(s){if(!Q(c)||c.isCollapsed())return!1;if(function(e,t){let{anchor:n,focus:r}=Zy(Wy(t),`next`);return Fy(n,e)<0&&Fy(e,r)<0}(a,c))return e.preventDefault(),!0;c.removeText()}if(!o.origin.isAttached())return e.preventDefault(),!0;if(n(r,Hy(My(o)),t),!s){let e=t.getRootElement(),n=e?e.ownerDocument:null,r=n?function(e,t){for(let n of Ov(t)){let t=R_(n);if(I_(t)&&t.getKey()===e&&Lv(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 Qoe(e,t){return Zoe(e,t,uT)}function dT(e,t,n){e.dispatchCommand(Sx,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Q(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=By(t,`previous`);if(r){if(Sy(r))n=r.origin;else{let e=Ny(r,ky(Z_(),`next`).getFlipped());for(let t of e){if(Hg(t.origin)){n=t.origin;break}if($(t.origin)&&!t.origin.isInline())break}}}if(n&&Hg(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 fT(e,t,n,r=[]){let i=t===null||n.isSelected(t),a=$(n)&&n.excludeFromCopy(`html`),o=n;t!==null&&Hg(o)&&(o=_ie(t,o,`clone`));let s=$(o)?o.getChildren():[],c=function(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&oT(58,n.name),$(e)){let e=t.children;Array.isArray(e)||oT(59,n.name)}return t}(o);Hg(o)&&o.getTextContentSize()===0&&(i=!1);let l=i&&Jg(t)&&$(n)?null:t;for(let r=0;r<s.length;r++){let a=s[r],o=fT(e,l,a,c.children);!i&&$(n)&&o&&n.extractWithChild(a,t,`clone`)&&(i=!0)}if(i&&!a){let t=py(o);if(t.length>0){let n={};for(let r of t){let t=my(o,r);t===null&&oT(366,o.constructor.name,r);let i=[];fT(e,null,t,i),i.length===1&&i[0].type===t.getType()||oT(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 $oe(e,t){let n=[],r=Z_(),i=Q(t)?t.anchor.getNode():Jg(t)?t.getNodes()[0]??null:null,a=i===null?null:dy(i),o=($(a)?a:r).getChildren();for(let r=0;r<o.length;r++)fT(e,t,o[r],n);return{namespace:e._config.namespace,nodes:n}}function ese(e){let t=[];for(let n of e)t.push(Rne(n));return t}async function pT(e,t,n){if(CT!==null)return!1;if(t!==null)return new Promise((r,i)=>{e.update(()=>{r(mT(e,t,n))})});let r=e.getRootElement(),i=e._window||window,a=i.document,o=Tv(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(iS,r=>(cC(r,ClipboardEvent)&&(o(),CT!==null&&(i.clearTimeout(CT),CT=null),t(mT(e,r,n))),!0),4);CT=i.setTimeout(()=>{o(),CT=null,t(!1)},50),a.execCommand(`copy`),s.remove()})}function mT(e,t,n){if(n===void 0){let t=Tv(e._window),r=n_();if(!r||r.isCollapsed()||!t)return!1;let i=Mv(t,e.getRootElement()),a=i.anchorNode,o=i.focusNode;if(a!==null&&o!==null&&!F_(e,a,o))return!1;n=hT(r)}t.preventDefault();let r=t.clipboardData;return r!==null&&(gT(r,n),!0)}function hT(e=n_()){return function(e,t){let n={"text/plain":``};for(let[r,i]of Object.entries(e))if(i){let e=nse(i,t);e!==null&&(n[r]=e)}return n}(tse(),e)}function gT(e,t){for(let[n]of wT)t[n]===void 0&&e.setData(n,``);for(let n in t){let r=t[n];r!==void 0&&e.setData(n,r)}}function tse(e=Uv()){let t=yC(e,ET.name);return t?t.output:TT}function nse(e,t){let n=r=>e[r]?e[r](t,n.bind(null,r-1)):null;return n(e.length-1)}var _T,vT,yT,bT,xT,ST,CT,wT,TT,ET;function DT(){return(DT=s((()=>{nC(),zC(),QC(),oC(),uC(),_T={"application/x-lexical-editor":0,"text/html":10,"text/plain":20,"text/uri-list":30},vT=(e,t)=>{if(!Q(t))return t.insertRawText(e),!0;let n=e=>{let t=n_();Q(t)&&e(t)};return c_(e,{linebreak:()=>n(e=>e.insertParagraph()),tab:()=>n(e=>e.insertNodes([Wg()])),text:e=>n(t=>t.insertText(e))}),!0},yT={"application/x-lexical-editor":[(e,t,n)=>{try{let n=Uv(),r=JSON.parse(e);if(r&&r.namespace===n._config.namespace&&Array.isArray(r.nodes))return dT(n,ese(r.nodes),t),!0}catch(e){console.error(e)}return n()}],"text/html":[(e,t,n)=>{try{let n=Uv();return dT(n,Oae(n,new DOMParser().parseFromString(Joe(e),`text/html`)),t),!0}catch(e){return console.error(e),n()}}],"text/plain":[vT],"text/uri-list":[vT]},bT={$importMimeType:yT,$insertDataTransfer:(e,t)=>sT({$importMimeType:yT,priority:_T},e,t),priority:_T},xT=tb({build:(e,t)=>({$importMimeType:t.$importMimeType,$insertDataTransfer:(e,n)=>sT(t,e,n),priority:t.priority}),config:nb({$importMimeType:yT,priority:_T}),mergeConfig(e,t){let n=rb(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`}),ST=`application/x-lexical-drag`,CT=null,wT=[[`text/html`,cT],[`application/x-lexical-editor`,lT]],TT={"application/x-lexical-editor":[(e,t)=>e?lT(Uv(),e):t()],"text/html":[(e,t)=>e?cT(Uv(),e):t()],"text/plain":[(e,t)=>e?e.getTextContent():t()]},ET=tb({build:(e,t,n)=>t.$exportMimeType,config:nb({$exportMimeType:TT}),mergeConfig(e,t){let n=rb(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 OT(e){let t=xv(new KT);return e&&e.shadowRoot?t.setIsShadowRoot(!0):t}function kT(e){return e instanceof KT}function AT(e){return e.nodeName.toLowerCase()===`span`&&e.style.fontSize===`26pt`}function jT(e){let t=e.nodeName.toLowerCase(),n=null;return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`||(n=MT(t),Yv(e,n),Zv(n,e),Xv(n,e)),{node:n}}function rse(e){let t=OT();return Zv(t,e),Yv(e,t),Xv(t,e),{node:t}}function MT(e=`h1`){return xv(new qT(e))}function NT(e){return e instanceof qT}function PT(e){return S_(X_(e))}function FT(e,t,n,r){let i=!1,a=null;if(e.isCollapsed()&&e.anchor.type===`text`){let t=e.anchor.getNode();if(Hg(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&&Hg(a)&&a.hasFormat(r)))continue;o=!0}e.hasFormat(r)&&e.toggleFormat(r)}o&&e.setStyle(``)}function IT(e,t){return function(e,t){if(!e.isCollapsed())return!1;let n=By(e.focus,t),r=JS(n.origin,vv);if(!r)return!1;let i=e.focus.getNode();if(!r.is(i)&&!pv(i,r))return!1;let a=Ny(n,Ty(r,t));if(a.getTextSlices().some(e=>e&&e.getTextContentSize()>0))return!1;let o=Ny(a.anchor.getSiblingCaret(),a.focus),s=o.anchor.origin;for(let e of o){if(!Cy(e)||!e.origin.is(s.getParent()))return!1;s=e.origin}let c=r;for(let e of jy(Ty(r,t))){if(!e.origin.is(c.getParent())){if(Cv(e.origin)){let e=Ty(c,t);return Hy(Ny(e,e)),!0}break}if(!vv(e.origin))break;c=e.origin}return!1}(e,t)||function(e,t){if(!e.isCollapsed()||e.anchor.type!==`element`)return!1;let n=By(e.anchor,t).getNodeAtCaret();return!(!vv(n)||n.isInline()||(Hy(My(Jy(ky(n,t)))),0))}(e,t)}function LT(e){return S_(e)&&!e.isInline()&&!e.isIsolated()&&e.isKeyboardSelectable()}function RT(e){let t=e_();t.add(e),Q_(t)}function zT(e,t){if(!e.isCollapsed())return!1;let n=e.focus,r=n.getNode(),i=t?`previous`:`next`,a=By(n,i);if(n.type===`element`&&$(r)&&yv(r)){let e=a.getNodeAtCaret();return!(e===null||!LT(e))&&(RT(e.__key),!0)}let o=JS($(r)?r:r.getParentOrThrow(),e=>$(e)&&!e.isInline()&&yv(e.getParent()));if(o===null)return!1;let s=Ty(o,i).getNodeAtCaret();if(s===null||!LT(s))return!1;if(o.getTextContentSize()===0)return RT(s.__key),!0;let c=Uv().getRootElement();if(c===null)return!1;let l=Tv(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 BT(l,u,d,f,p),!1;let g=X_(m);return BT(l,u,d,f,p),g!==null&&(m===u&&h===d||!g.is(o)&&!pv(g,o))&&(RT(s.__key),!0)}function BT(e,t,n,r,i){t!==null&&r!==null&&e.setBaseAndExtent(t,n,r,i)}function VT(e,t){if(!e.isCollapsed())return!1;let n=e.focus.getNode(),r=JS($(n)?n:n.getParentOrThrow(),e=>$(e)&&!e.isInline());if(r===null)return!1;let i=Uv(),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($(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=Ty(r,t?`previous`:`next`).getNodeAtCaret();if(c===null||!$(c)){if(t){let e=r.getFirstDescendant();Hg(e)?e.select(0,0):r.select(0,0)}else{let e=r.getLastDescendant();if(Hg(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=Tv(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=aT(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(Hg(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 HT(e,t){let n=Ty(e,t),r=n.getAdjacentCaret();r!==null&&$(r.origin)&&!r.origin.isInline()&&r.origin.isShadowRoot()?Hy(My(n)):t===`next`?e.selectNext(0,0):e.selectPrevious()}function UT(e,t,n){n.preventDefault(),n.stopPropagation();let r=e.getNodes();if(r.length===0)return!0;let i=r.map(e=>Ty(e,`next`)).sort(Fy),a=(t?i[0]:i[i.length-1]).origin,o=JS(a,e=>e!==a&&$(e)&&!e.isInline())??Z_(),s=t?0:o.getChildrenSize();return o.select(s,s),!0}function ise(e,t=Lie(JT)){return sb(e.registerCommand(Cx,()=>{let e=n_();return Jg(e)?(e.clear(),!0):(Q(e)&&FT(e,`click`,`both`,t.peek()),!1)},0),e.registerCommand(Ox,e=>{let t=n_();return Q(t)?(t.deleteCharacter(e),!0):!!Jg(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(Px,e=>{let t=n_();return!!Q(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(Fx,e=>{let t=n_();return!!Q(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(jx,t=>{let n=n_();if(typeof t==`string`)n!==null&&n.insertText(t);else{if(n===null)return!1;let r=t.dataTransfer;if(r!=null)uT(r,n,e);else if(Q(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(Nx,()=>{let e=n_();return!!Q(e)&&(e.removeText(),!0)},0),e.registerCommand(Ix,e=>{let t=n_();return!(!Q(t)&&!Jg(t))&&(lne(t,e),!0)},0),e.registerCommand(zre,e=>{let t=n_();return!(!Q(t)&&!Jg(t))&&(cne(t,e),!0)},0),e.registerCommand(Bre,e=>{let t=n_();if(!Q(t)&&!Jg(t))return!1;let n=t.getNodes();for(let t of n){let n=JS(t,e=>$(e)&&!e.isInline());n!==null&&n.setFormat(e)}return!0},0),e.registerCommand(kx,e=>{let t=n_();return!!Q(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(Ax,()=>{let e=n_();return!!Q(e)&&(e.insertParagraph(),!0)},0),e.registerCommand(Qx,()=>{let e=Wg(),t=n_();return Q(t)&&(e.setFormat(t.format),e.setStyle(t.style)),s_([e]),!0},0),e.registerCommand($x,()=>Die(e=>{let t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(eS,()=>Die(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(Wx,e=>{let t=n_();if(Jg(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),HT(n[0],`previous`),!0}else if(Q(t)&&(function(e){let t=e.focus;return t.key===`root`&&t.offset===0}(t)||!e.shiftKey&&IT(t,`previous`)||!e.shiftKey&&zT(t,!0)||!e.shiftKey&&VT(t,!0)))return e.preventDefault(),!0;return!1},0),e.registerCommand(Gx,e=>{let t=n_();if(Jg(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),HT(n[0],`next`),!0}else if(Q(t)&&(function(e){let t=e.focus;return t.key===`root`&&t.offset===Z_().getChildrenSize()}(t)||!e.shiftKey&&IT(t,`next`)||!e.shiftKey&&zT(t,!1)||!e.shiftKey&&VT(t,!1)))return e.preventDefault(),!0;return!1},0),e.registerCommand(Hx,e=>{let n=n_();if(Jg(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),HT(t[0],rC(t[0])?`next`:`previous`),!0}if(!Q(n))return!1;if(!e.shiftKey&&IT(n,rC(n.anchor.getNode())?`next`:`previous`))return e.preventDefault(),!0;if(e.shiftKey||FT(n,`arrow`,`start`,t.peek()),xie(n,!0)){let t=e.shiftKey;return e.preventDefault(),wie(n,t,!0),!0}return!1},0),e.registerCommand(Bx,e=>{let n=n_();if(Jg(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),HT(t[0],rC(t[0])?`previous`:`next`),!0}if(!Q(n))return!1;if(!e.shiftKey&&IT(n,rC(n.anchor.getNode())?`previous`:`next`))return e.preventDefault(),!0;if(e.shiftKey||FT(n,`arrow`,`end`,t.peek()),xie(n,!1)){let t=e.shiftKey;return e.preventDefault(),wie(n,t,!1),!0}return!1},0),e.registerCommand(Jx,t=>{let n=n_();if(!Jg(n)&&PT(t.target))return!1;if(Q(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(t.offset!==0)return!1;let n=t.getNode();if(C_(n))return!1;let r=Eie(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(eS);if(pb&&fb)return!1}else if(!Jg(n))return!1;return t.preventDefault(),e.dispatchCommand(Ox,!0)},0),e.registerCommand(Xx,t=>{let n=n_();return!(!Jg(n)&&PT(t.target))&&!(!Q(n)&&!Jg(n))&&(t.preventDefault(),e.dispatchCommand(Ox,!1))},0),e.registerCommand(Kx,n=>{let r=n_();if(Jg(r)){let e=r.getNodes();e.length===1&&S_(e[0])&&!e[0].isInline()&&(r=e[0].selectNext())}if(!Q(r))return!1;if(FT(r,`enter`,`both`,t.peek()),n!==null){if((pb||hb||vb)&&fb)return!1;if(n.preventDefault(),n.shiftKey)return e.dispatchCommand(kx,!1)}return e.dispatchCommand(Ax)},0),e.registerCommand(Yx,()=>!!Q(n_())&&(e.blur(),!0),0),e.registerCommand(tS,t=>{let[,n]=lC(t);if(n.length>0){let r=t.clientX,i=t.clientY,a=aT(r,i,e.getRootElement());if(a!==null){let{offset:t,node:r}=a,i=X_(r);if(i!==null){let e=$g();if(Hg(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`)}Q_(Ph(e))}e.dispatchCommand(WT,n)}return t.preventDefault(),!0}return Qoe(t,e)},0),e.registerCommand(nS,t=>{let[n]=lC(t),r=n_();return!(n&&!Q(r))&&(Q(r)&&!r.isCollapsed()&&t.dataTransfer!==null&&(gT(t.dataTransfer,hT(r)),Xoe(t.dataTransfer,e)),!0)},0),e.registerCommand(rS,t=>{let[n]=lC(t),r=n_();if(n&&!Q(r))return!1;let i=t.clientX,a=t.clientY,o=aT(i,a,e.getRootElement());return o!==null&&S_(X_(o.node))&&t.preventDefault(),!0},0),e.registerCommand(oS,()=>{let e=n_();return _re(Q(e)&&dy(e.anchor.getNode())!==null?e:null),!0},0),e.registerCommand(iS,t=>(pT(e,cC(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(aS,t=>(async function(e,t){await pT(t,cC(e,ClipboardEvent)?e:null),t.update(()=>{let e=n_();Q(e)?e.removeText():Jg(e)&&e.getNodes().forEach(e=>e.remove())},{tag:`cut`})}(t,e),!0),0),e.registerCommand(Mx,t=>{let[,n,r]=lC(t);return n.length>0&&!r?(e.dispatchCommand(WT,n),!0):Rv(t.target)&&P_(t.target)?!1:n_()!==null&&(function(e,t){e.preventDefault(),t.update(()=>{let n=n_(),r=cC(e,InputEvent)||cC(e,KeyboardEvent)?null:e.clipboardData;r!=null&&n!==null&&uT(r,n,t)},{tag:`paste`})}(t,e),!0)},0),e.registerCommand(qx,()=>{let e=n_();return Q(e)&&FT(e,`space`,`both`,t.peek()),!1},0),e.registerCommand(Zx,()=>{let e=n_();return Q(e)&&FT(e,`tab`,`both`,t.peek()),!1},0),e.registerCommand(Vx,e=>{let t=n_();if(Jg(t))return UT(t,!1,e);if(!Q(t))return!1;let{anchor:n}=t;if(n.type!==`element`||n.offset!==0)return!1;let r=n.getNode();if(!$(r))return!1;let i=r.getFirstChild();if(!S_(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(Ux,e=>{let t=n_();if(Jg(t))return UT(t,!0,e);if(!Q(t))return!1;let{anchor:n,focus:r}=t,i=JS(r.getNode(),e=>$(e)&&!e.isInline());if(i===null)return!1;let a=i.getFirstChild();if(!S_(a)||!a.isInline()||JS(n.getNode(),e=>$(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 WT,GT,KT,qT,JT;function YT(){return(YT=s((()=>{DT(),zC(),oC(),uC(),nC(),QC(),XC.tag(`h1`,`h2`,`h3`,`h4`,`h5`,`h6`),XC.tag(`blockquote`),XC.tag(`blockquote`),XC.tag(`p`),XC.tag(`span`),WT=lg(`DRAG_DROP_PASTE_FILE`),GT=Sh(`shadowRoot`,{parse:Boolean}),KT=class extends MS{$config(){return this.config(`quote`,{extends:MS,importDOM:{blockquote:()=>({conversion:rse,priority:0})},stateConfigs:[{flat:!0,stateConfig:GT}]})}isShadowRoot(){return Ch(this,GT)}setIsShadowRoot(e){return wh(this,GT,e)}createDOM(e){let t=Av().createElement(`blockquote`);return ab(t,e.theme.quote),t}updateDOM(e,t,n){return!1}exportDOM(e){let{element:t}=super.exportDOM(e);if(Lv(t)){this.isEmpty()&&t.append(Av().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){return super.exportJSON()}static importJSON(e){return OT().updateFromJSON(e)}insertNewAfter(e,t){let n=k_(),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=k_();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}},qT=class extends MS{__tag;$config(){return this.config(`heading`,{extends:MS,importDOM:{h1:()=>({conversion:jT,priority:0}),h2:()=>({conversion:jT,priority:0}),h3:()=>({conversion:jT,priority:0}),h4:()=>({conversion:jT,priority:0}),h5:()=>({conversion:jT,priority:0}),h6:()=>({conversion:jT,priority:0}),p:e=>{let t=e.firstChild;return t!==null&&AT(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>AT(e)?{conversion:()=>({node:MT(`h1`)}),priority:3}:null}})}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=Av().createElement(t),r=e.theme.heading;if(r!==void 0){let e=r[t];ab(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}exportDOM(e){let{element:t}=super.exportDOM(e);if(Lv(t)){this.isEmpty()&&t.append(Av().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}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?k_():MT(this.getTag()),a=this.getDirection();if(i.setDirection(a),this.insertAfter(i,t),n===0&&!this.isEmpty()&&e){let e=k_();e.select(),this.replace(e,!0)}return i}collapseAtStart(){if(this.isEmpty()){let e=k_();this.getChildren().forEach(t=>e.append(t)),this.replace(e)}return!0}extractWithChild(){return!0}},JT={capitalize:{enter:!0,space:!0,tab:!0},lowercase:{enter:!0,space:!0,tab:!0},uppercase:{enter:!0,space:!0,tab:!0}}})))()}function XT(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 ZT(e){let t=XT(e,e=>e.type);return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}function QT(e){if(!A_(e))return!1;let t=e.getFirstChild();return t==null||e.getChildrenSize()===1&&Hg(t)&&bE.test(t.getTextContent())}function $T(e){return e.replace(/\\([!-/:-@[-`{-~])/g,`$1`).replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t)))}function ase(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 eE(e){if(e.endsWith(`\\`))return[e.slice(0,-1),`\\`];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}function ose(e){let t=e.getChildren(),n=t.length-1,r=t[n];if(!Hg(r))return null;let i=r.getTextContent(),a=eE(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(D_(e[n]))return!1;if(/\S/.test(e[n].getTextContent()))return!0}return!1}(t,n)?(r.setTextContent(``),i):null}function tE(e){let t=E_(),n=ose(e);return n!==null&&wh(t,FE,n),t}function sse(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?eE(a):null,l=s!==void 0&&eE(s)!==null;if(OE.test(o))i.push(o);else if(r===0){{let e=o.match(EE);if(e){r=e[1].trim().length,i.push(o);continue}}o===``||s===``||!s||wE.test(s)||wE.test(o)||TE.test(o)||xE.test(o)||SE.test(o)||CE.test(o)||kE.test(o)||ase(o)||l||!t||AE.test(o)||jE.test(o)||ME(jE).test(s)||ME(AE).test(s)||DE.test(s)?i.push(!t&&o!==``||c!==null?a:o):i[i.length-1]=s+` `+(c===null?o:a).trimStart()}else{if(DE.test(o)&&o.trim().length>=r){r=0,i.push(o);continue}i.push(a)}}return i.join(`
|
||
`)}function cse(e,t,n,r,i){for(let a of t){if(!a.export)continue;let t=a.export(e,e=>nE(e,n,r,void 0,void 0,i));if(t!=null)return t}return $(e)?nE(e,n,r,void 0,void 0,i):S_(e)?e.getTextContent():null}function nE(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=>nE(e,t,n,r,[...i,...r],a),(e,n)=>rE(e,n,t,r,i,a));if(c!=null){o.push(c);continue t}}D_(e)?o.push(lse(e)):Hg(e)?o.push(rE(e,e.getTextContent(),t,r,i,a)):$(e)?o.push(nE(e,t,n,r,i,a)):S_(e)&&o.push(e.getTextContent())}return o.join(``)}function lse(e){return Ch(e,FE)+`
|
||
`}function rE(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=iE(e,!0),g=iE(e,!1),_=new Set;for(let t of n){let n=t.format[0],i=t.tag;n!==`code`&&oE(e,n)&&!_.has(n)&&(_.add(n),oE(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=aE(e,r[t].format),a=aE(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 iE(e,t){let n=t?e.getPreviousSibling():e.getNextSibling();return Hg(n)?n:null}function aE(e,t){return Hg(e)&&e.hasFormat(t)}function oE(e,t){return!!aE(e,t)&&(t===`code`||!e||!/^\s*$/.test(e.getTextContent()))}function use(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=sE(t,e,s,n,!0),l=sE(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 sE(e,t,n,r,i){if(!cE(t,n,r,i))return!1;if(e===`*`)return!0;if(e===`_`){if(!cE(t,n,r,!i))return!0;let e=i?t[n-1]:t[n+r];return e!==void 0&&yE.test(e)}return!0}function cE(e,t,n,r){let i=e[t-1],a=e[t+n],[o,s]=r?[a,i]:[i,a];return o!==void 0&&!vE.test(o)&&(!yE.test(o)||s===void 0||vE.test(s)||yE.test(s))}function lE(e){return Hg(e)&&!e.hasFormat(`code`)}function uE(e,t,n){let r=use(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);lE(i.nodeAfter)&&uE(i.nodeAfter,t,n),lE(i.nodeBefore)&&uE(i.nodeBefore,t,n),lE(i.transformedNode)&&uE(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;lE(r.nodeAfter)&&uE(r.nodeAfter,t,n),lE(r.nodeBefore)&&uE(r.nodeBefore,t,n),lE(r.transformedNode)&&uE(r.transformedNode,t,n)}let a=$T(e.getTextContent());e.setTextContent(a)}function dse(e,t,n,r=!1){let i=ZT(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),n[e]=e.length===1?RegExp(e==="`"?"(^|[^\\\\`])(`)((?:\\\\`|[^`])+?)(`)(?!`)":`(^|[^\\\\${a}])(${a})((\\\\${a})?.*?[^${a}\\s](\\\\${a})?)(${a})(?![\\\\${a}])`):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]=fse(o,e,i.multilineElement,t);s?e=c:pse(n,t,i.element,a,i.textMatch,r)}let c=t.getChildren();for(let e of c)if(!r&&QT(e)&&t.getChildrenSize()>1)e.remove();else if($(e))for(let t of e.getAllTextNodes())mse(t)}function fse(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 pse(e,t,n,r,i,a){let o=Vg(e),s=k_();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(uE(o,r,i),s.getParent()!==null&&e.length>0){let e=s.getPreviousSibling();if(!a&&(A_(e)||kT(e)||Qw(e))){let t=e;if(Qw(e)){let n=e.getLastDescendant();t=n==null?null:JS(n,Jw)}t!=null&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[tE(t),...s.getChildren()]),s.remove())}}}function mse(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(Wg())})}function hse(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 dE(e,t,n,r,i){if(!yv(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 fE(e,t,n,r,i){if(!yv(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 gse(e,t){let n=0,r=e.getTextContent();for(let e=0;e<t;e++)r[e]==="`"&&n++;return n%2!=0}function pE(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if(mE(e,t,n,0,r)&&e[t+r]!==` `)return t}return-1}function mE(e,t,n,r,i){for(let a=0;a<i;a++)if(e[t+a]!==n[r+a])return!1;return!0}function _se(e,t=iD){let n=ZT(t),r=n.element.filter(e=>e.triggerOnEnter),i=XT(n.textFormat,({tag:e})=>e[e.length-1]),a=XT(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)||hse(173,n.getType())}}let s=(e,t,r)=>!!dE(e,t,r,n.element)||!!fE(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&&!mE(r,s,n,0,o)||r[s-1]===` `)continue;let c=r[i+1];if(!1===t.intraword&&c&&!_E.test(c))continue;let l=e,u=l,d=pE(r,s,n),f=u;for(;d<0&&(f=f.getPreviousSibling())&&!D_(f);)if(Hg(f)){if(f.hasFormat(`code`))continue;let e=f.getTextContent();u=f,d=pE(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&&!_E.test(m)||!t.format.includes(`code`)&&gse(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=n_(),y=$g();Q_(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,Nb[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 Q(v)&&(y.format=v.format),!0}return!1}(t,r,i);return sb(e.registerUpdateListener(({tags:t,dirtyLeaves:n,editorState:r,prevEditorState:i})=>{if(t.has(`collaboration`)||t.has(`historic`)||e.isComposing())return;let a=t.has(vS),c=r.read(n_),l=i.read(n_);if(!Q(l)||!Q(c)||!c.isCollapsed()||c.is(l)&&!a)return;let u=c.anchor.key,d=c.anchor.offset,f=r._nodeMap.get(u);if(Hg(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(!lE(f))return;let e=f.getParent();e===null||rw(e)||s(e,f,c.anchor.offset)&&fv(`history-push`)})}}),e.registerCommand(Kx,e=>{if(e!==null&&e.shiftKey)return!1;let t=n_();if(!Q(t)||!t.isCollapsed())return!1;let i=t.anchor.offset,a=t.anchor.getNode();if(!Hg(a)||!lE(a))return!1;let o=a.getParent();return o===null||rw(o)?!1:i===a.getTextContent().length&&!(!fE(o,a,i,n.multilineElement,!0)&&!dE(o,a,i,r,!0))&&(e!==null&&e.preventDefault(),!0)},1))}function hE(e,t=iD,n,r=!1,i=!1){let a=r?e:sse(e,i),o=n||Z_();o.clear(),dse(a,o,t,r),n_()!==null&&o.selectStart()}function gE(e=iD,t,n=!1){return function(e,t=!1){let n=ZT(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||Z_()).getChildren();for(let e=0;e<s.length;e++){let c=s[e],l=cse(c,r,a,n.textMatch,t);l!=null&&o.push(i&&e>0&&!QT(c)&&!QT(s[e-1])?`
|
||
${l}`:l)}return o.join(`
|
||
`)}}(e,n)(t)}var _E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD;function aD(){return(aD=s((()=>{nC(),mw(),Lw(),iT(),YT(),_E=/[!-/:-@[-`{-~\s]/,vE=/\s/,yE=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/,bE=/^\s{0,3}$/,xE=/^(\s*)(\d{1,})\.\s/,SE=/^(\s*)[-*+]\s/,CE=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,wE=/^(#{1,6})\s/,TE=/^>\s/,EE=/^([ \t]*`{3,})([\w-]+)?[ \t]?/,DE=/^[ \t]*`{3,}$/,OE=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,kE=/^(?:\|)(.+)(?:\|)\s?$/,AE=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,jE=/^<\/[a-z_][\w-]*\s*>/i,ME=e=>RegExp(`(?:${e.source})$`,e.flags),NE=Sh(`mdListMarker`,{parse:e=>typeof e==`string`&&/^[-*+]$/.test(e)?e:`-`,resetOnCopyNode:!0}),PE=Sh(`mdCodeFence`,{parse:e=>typeof e==`string`&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),FE=Sh(`mdHardLineBreak`,{parse:e=>typeof e==`string`&&/^(\\| {2,})$/.test(e)?e:``,resetOnCopyNode:!0}),IE=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},LE=e=>(t,n,r,i)=>{if(NT(t))return!1;let a=t.getPreviousSibling(),o=t.getNextSibling(),s=qw(e===`check`?r[3]===`x`:void 0),c=r[0].trim()[0],l=e!==`bullet`&&e!==`check`||c!==NE.parse(c)?void 0:c;if(Qw(o)&&o.getListType()===e){l&&wh(o,NE,l);let n=o.getFirstChild();n===null?o.append(s):n.insertBefore(s),e===`number`&&o.setStart(Number(r[2])),t.remove()}else if(Qw(a)&&a.getListType()===e)l&&wh(a,NE,l),a.append(s),t.remove();else{let n=Zw(e,e===`number`?Number(r[2]):void 0);l&&wh(n,NE,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)},RE=(e,t,n,r)=>{let i=[],a=e.getChildren(),o=0;for(let s of a)if(Jw(s)){if(s.getChildrenSize()===1){let e=s.getFirstChild();if(Qw(e)){let a=RE(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=Ch(e,NE),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(`
|
||
`)},zE={dependencies:[qT],export:(e,t)=>{if(!NT(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:wE,replace:IE(e=>MT(`h`+e[1].length)),triggerOnEnter:!0,type:`element`},BE={dependencies:[KT],export:(e,t)=>{if(!kT(e))return null;let n=t(e).split(`
|
||
`),r=[];for(let e of n)r.push(`> `+e);return r.join(`
|
||
`)},regExp:TE,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if(kT(n))return n.splice(n.getChildrenSize(),0,[tE(n),...t]),void e.remove()}let i=OT();i.append(...t),e.replace(i),r||i.select(0,0)},triggerOnEnter:!0,type:`element`},VE={dependencies:[fw],export:e=>{if(!rw(e))return null;let t=e.getTextContent(),n=Ch(e,PE);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]=``,VE.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),VE.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),VE.replace(t,null,r,null,d,!0),[!0,e.length-1]},regExpEnd:{optional:!0,regExp:DE},regExpStart:EE,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=nw(l),s=i[0]):(o=nw(l),s=i[0].startsWith(` `)?i[0].slice(1):i[0]);else{for(o=nw(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(`
|
||
`)}wh(o,PE,c);let t=Vg(s);o.append(t),e.append(o)}else t&&IE(e=>nw(e?e[2]:void 0))(e,t,n,a)},type:`multiline-element`},HE={dependencies:[eT,$w],export:(e,t,n)=>Qw(e)?RE(e,t,0,n):null,regExp:SE,replace:LE(`bullet`),triggerOnEnter:!0,type:`element`},LE(`check`),UE={dependencies:[eT,$w],export:(e,t,n)=>Qw(e)?RE(e,t,0,n):null,regExp:xE,replace:LE(`number`),triggerOnEnter:!0,type:`element`},WE={format:[`code`],tag:"`",type:`text-format`},GE={format:[`highlight`],tag:`==`,type:`text-format`},KE={format:[`bold`,`italic`],tag:`***`,type:`text-format`},qE={format:[`bold`,`italic`],intraword:!1,tag:`___`,type:`text-format`},JE={format:[`bold`],tag:`**`,type:`text-format`},YE={format:[`bold`],intraword:!1,tag:`__`,type:`text-format`},XE={format:[`strikethrough`],tag:`~~`,type:`text-format`},ZE={format:[`italic`],tag:`*`,type:`text-format`},QE={format:[`italic`],intraword:!1,tag:`_`,type:`text-format`},$E={dependencies:[Nw],export:(e,t,n)=>{if(!Ow(e)||kw(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(JS(e,Ow))return;let[,n,r,i]=t,a=Dw(r==null?void 0:$T(r),{title:i==null?void 0:$T(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=Vg(c);return u.setFormat(e.getFormat()),a.append(u),e.replace(a),l&&a.insertBefore(Vg(l)),u},trigger:`)`,type:`text-match`},eD=[zE,BE,HE,UE],tD=[VE],nD=[WE,KE,qE,JE,YE,GE,ZE,QE,XE],rD=[$E],iD=[...eD,...tD,...nD,...rD]})))()}function oD(e){return e===`middle`||e===`bottom`}function sD(e){let t=e,n=e.nodeName.toLowerCase(),r;SD.test(t.style.width)&&(r=parseFloat(t.style.width));let i=CD.NO_STATUS;if(n===`th`){let e=t.getAttribute(`scope`);if(e===`col`)i=CD.COLUMN;else if(e===`row`)i=CD.ROW;else{let e=t.parentElement,n=Lv(e)&&e.nodeName.toLowerCase()===`tr`&&Lv(e.parentElement)&&(e.parentElement.nodeName.toLowerCase()===`thead`||e.rowIndex===0),r=t.cellIndex===0;n&&(i|=CD.ROW),r&&(i|=CD.COLUMN),i===CD.NO_STATUS&&(i=CD.ROW)}}let a=cD(i,t.colSpan,r);a.__rowSpan=t.rowSpan;let o=t.style.backgroundColor;o!==``&&(a.__backgroundColor=o);let s=t.style.verticalAlign;oD(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();D_(e)&&n.getChildrenSize()===1&&e.remove()}};for(let i of e)if(gv(i)||Hg(i)||D_(i)){if(Hg(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=k_().append(i),t.push(n))}else t.push(i),r(),n=null;return r(),t.length===0&&t.push(k_()),t},node:a}}function cD(e=CD.NO_STATUS,t=1,n){return xv(new wD(e,t,n))}function lD(e){return e instanceof wD}function uD(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 vse(e){let t=e,n;return SD.test(t.style.height)&&(n=parseFloat(t.style.height)),{after:e=>Oie(e,lD),node:dD(n)}}function dD(e){return xv(new TD(e))}function fD(e){return e instanceof TD}function yse(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];fD(r)||uD(209);let c=o(e);for(let l=r.getFirstChild(),u=0;l!=null;l=l.getNextSibling()){for(lD(l)||uD(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 pD(e){return Lv(e)&&e.nodeName===`TABLE`}function mD(e,t){if(!t)return t;let n=pD(t)?t:t.querySelector(`table`);return pD(n)||uD(341,e.constructor.name,e.getType(),e.getKey(),t.nodeName),n}function bse(e,t){for(let n=t,r=null;n!==null;n=n.getParent()){if(e.is(n))return r;lD(n)&&(r=n)}return null}function xse(e,t,n){return bse(e,X_(t,n))}function hD(e){return Lv(e)&&e.nodeName===`DIV`}function gD(e,t,n){let r=e.querySelector(`:scope > colgroup`);if(!n)return void(r&&r.remove());r||(r=Av().createElement(`colgroup`),Qv(r),e.insertBefore(r,e.firstChild));let i=[];for(let e=0;e<t;e++){let t=Av().createElement(`col`),r=n[e];r&&(t.style.width=`${r}px`),i.push(t)}r.replaceChildren(...i)}function _D(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)}ob(e,...r),ab(e,...i)}function vD(e=Uv()){return ED.has(e)}function yD(e=Uv()){let t=yC(e,`@lexical/table/Table`);return!!t&&t.output.hasStickyScrollbar.peek()&&t.output.hasHorizontalScroll.peek()}function Sse(e){let t=bD();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(!SD.test(n)&&(n=t.getAttribute(`width`)||``,!/^\d+$/.test(n))){e=void 0;break}e.push(parseFloat(n))}e&&t.setColWidths(e)}return{after:e=>Oie(e,fD),node:t}}function bD(){return xv(new DD)}function xD(e){return e instanceof DD}var SD,CD,wD,TD,ED,DD;function OD(){return(OD=s((()=>{nC(),zC(),QC(),uC(),SD=/^(\d+(?:\.\d+)?)px$/,CD={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1},wD=class extends MS{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;$config(){return this.config(`tablecell`,{extends:MS,importDOM:{td:()=>({conversion:sD,priority:0}),th:()=>({conversion:sD,priority:0})}})}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}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=CD.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=Av().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),oD(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),ab(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if(Lv(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(),...oD(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=CD.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!==CD.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}},TD=class extends MS{__height;$config(){return this.config(`tablerow`,{extends:MS,importDOM:{tr:()=>({conversion:vse,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__height=e.__height}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e=void 0,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=Av().createElement(`tr`);return this.__height&&(t.style.height=`${this.__height}px`),ab(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}},ED=new WeakSet,DD=class extends MS{__rowStriping=!1;__frozenColumnCount=0;__frozenRowCount=0;__colWidths=void 0;$config(){return this.config(`table`,{extends:MS,importDOM:{table:()=>({conversion:Sse,priority:1})}})}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}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=pD(e)?e:e.querySelector(`table`);return pD(t)||uD(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector(`:scope > colgroup`))}createDOM(e,t){let n=Av().createElement(`table`);if(this.__style&&jg(n.style,this.__style),this.getColWidths()){let e=Av().createElement(`colgroup`);n.appendChild(e),Qv(e)}if(ab(n,e.theme.table),this.updateTableElement(null,n,e),vD(t)){let r=yD(t),i=function(e,t,n){let r=Av().createElement(`div`),i=t.theme.tableScrollableWrapper;return i?ab(r,i):r.style.overflowX=`auto`,n&&(r.style.scrollbarWidth=`none`),r.appendChild(e),r}(n,e,r);if(this.updateTableWrapper(null,i,n,e),r){let t=function(e){let t=Av(),n=t.createElement(`div`),r=e.theme.tableStickyScrollbar;r?ab(n,r):(n.style.position=`sticky`,n.style.bottom=`0`,n.style.overflowX=`scroll`,n.style.overflowY=`hidden`),n.style.display=`none`,n.setAttribute(`aria-hidden`,`true`),n.tabIndex=-1;let i=t.createElement(`div`);return i.style.height=`1px`,i.style.width=`0px`,n.appendChild(i),n}(e),n=Av().createElement(`div`);return n.setAttribute(`data-lexical-sticky-scrollbar`,`true`),n.appendChild(i),n.appendChild(t),Qv(t),n}return i}return n}updateTableWrapper(e,t,n,r){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&function(e,t,n,r){r>0?(ab(e,n.theme.tableFrozenColumn),t.setAttribute(`data-lexical-frozen-column`,`true`)):(ob(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?(ab(e,n.theme.tableFrozenRow),t.setAttribute(`data-lexical-frozen-row`,`true`)):(ob(e,n.theme.tableFrozenRow),t.removeAttribute(`data-lexical-frozen-row`))}(t,n,r,this.__frozenRowCount)}updateTableElement(e,t,n){this.__style!==(e?e.__style:``)&&jg(t.style,this.__style,e?e.__style:``),this.__rowStriping!==(!!e&&e.__rowStriping)&&function(e,t,n){n?(ab(e,t.theme.tableRowStriping),e.setAttribute(`data-lexical-row-striping`,`true`)):(ob(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||gD(t,this.getColumnCount(),this.getColWidths()),_D(t,n,this.getFormatType())}updateDOM(e,t,n){let r=mD(this,t);if(t===r===vD())return!0;if(hD(t)){if(t.hasAttribute(`data-lexical-sticky-scrollbar`)!==yD())return!0;let i=r.parentElement;hD(i)&&this.updateTableWrapper(e,i,r,n)}return this.updateTableElement(e,r,n),!1}scaleDOMColWidths(e,t){let n=this.getColWidths();n&&gD(mD(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)),!pD(n)&&Lv(n)&&(n=n.querySelector(`table`)),!pD(n))return null;_D(n,e._config,this.getFormatType());let[r]=yse(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=Av().createElement(`tbody`);for(let t of s)e.appendChild(t);n.append(e)}return n},element:!pD(n)&&Lv(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=xse(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=X_(r.elem);return lD(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(!fD(e))return 0;let t=0;return e.getChildren().forEach(e=>{lD(e)&&(t+=e.getColSpan())}),t}},XC.tag(`table`),XC.tag(`tr`),XC.tag(`td`,`th`)})))()}var kD,AD,jD,MD,ND,PD;function FD(){return(FD=s((()=>{kD=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),AD=(e,t,{ellipsis:n=`…`}={})=>{let r=[...e];return`${r.slice(0,t).join(``).trim()}${r.length>t?n:``}`},jD=e=>e.replace(/^\/+/,``).replace(/\/+$/,``),MD=e=>new DOMParser().parseFromString(e,`text/html`).body.textContent,ND=e=>{if(/\s/.test(e))return!1;if(typeof URL.canParse==`function`)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}},PD=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`}).compare})))()}var ID=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`}}})})),LD,RD,zD,BD,VD,HD,UD,WD,GD;function KD(){return(KD=s((()=>{bw(),Lw(),iT(),aD(),YT(),LD=`https://unpkg.com/prismjs@1.30.0`,RD={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`}},zD={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}},BD=[`bold`,`italic`,`strikethrough`,`code`],VD=[...BD,`link`],HD=[`paragraph`,`heading-1`,`heading-2`,`heading-3`,`heading-4`,`heading-5`,`heading-6`,`bulleted-list`,`numbered-list`,`blockquote`,`code-block`],UD={"heading-1":[qT],"heading-2":[qT],"heading-3":[qT],"heading-4":[qT],"heading-5":[qT],"heading-6":[qT],"bulleted-list":[eT,$w],"numbered-list":[eT,$w],blockquote:[KT],"code-block":[fw,pw],link:[Nw]},WD={"heading-1":[zE],"heading-2":[zE],"heading-3":[zE],"heading-4":[zE],"heading-5":[zE],"heading-6":[zE],"bulleted-list":[HE],"numbered-list":[UE],blockquote:[BE],"code-block":[VE],code:[WE],bold:[JE,YE,KE,qE],italic:[QE,ZE,KE,qE],strikethrough:[XE],link:[$E]},GD=[`*`,`__`,`***`,`___`]})))()}var qD,JD;function YD(){return(YD=s((()=>{qD=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"),JD=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(`
|
||
`)}})))()}var XD;function ZD(){return(ZD=s((()=>{zC(),XD={dependencies:[RC],export:e=>tae(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=eae();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`}})))()}var QD,$D,eO,tO,nO,rO;function iO(){return(iO=s((()=>{aD(),OD(),nC(),QD=/^(?:\|)(.+)(?:\|)\s?$/,$D=/^(\| ?:?-*:? ?)+\|\s?$/,eO=e=>{let t=e.getFirstChild();return fD(t)?t.getChildrenSize():0},tO=e=>{e=e.replace(/\\n/g,`
|
||
`);let t=cD(CD.NO_STATUS);return hE(e,iD,t),t},nO=e=>{let[,t]=e.match(QD)??[];return t?t.split(`|`).map(e=>tO(e)):null},rO={dependencies:[DD,TD,wD],export:e=>{if(!xD(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!fD(e))return;let r=!1;e.getChildren().forEach(e=>{lD(e)&&(n.push(gE(iD,e).replace(/\n/g,`\\n`).trim()),e.__headerState===CD.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(`
|
||
`)},regExp:QD,replace:(e,t,[n])=>{if($D.test(n)){let t=e.getPreviousSibling();if(!t||!xD(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!fD(r))return;r.getChildren().forEach(e=>{lD(e)&&e.setHeaderStyles(CD.ROW,CD.ROW)}),e.remove();return}let r=nO(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!A_(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!Hg(e))break;let t=nO(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=bD();i.forEach(e=>{let t=dD();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:tO(``))});let c=e.getPreviousSibling();xD(c)&&eO(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})))()}var aO;function oO(){return(oO=s((()=>{aO=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)})}})))()}var sO,cO,lO,uO,dO,fO,pO;function mO(){return(mO=s((()=>{uh(),bw(),yw(),ww(),zC(),Ew(),Lw(),iT(),aD(),YT(),OD(),uC(),rd(),FD(),nC(),sO=u(ID(),1),KD(),YD(),ZD(),iO(),oO(),cO=()=>{let e=n_();if(!Q(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=BD.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof MS?t:sC(t,MS),Ow(n)&&(r.push(`link`),n=sC(n,MS)),Jw(n)&&(n=sC(n,eT)));let i=(()=>{if(!n)return`paragraph`;if(NT(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(Qw(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(kT(n))return`blockquote`;if(rw(n)||sw(n))return`code-block`;let e=n.getType();return HD.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},lO=(e,t)=>{let n=t.filter(({tag:e})=>!GD.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:gE(n).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:cO()}}))},uO=({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(UD).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[fw,pw]:[RC,DD,wD,TD]],theme:RD},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(WD).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[VE]:[XD,rO]],s=ere(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(ise(s)),l(Moe(s)),l(Ioe(s,Loe(),1e3)),n&&l(_se(s,o)),(e.includes(`code-block`)||r)&&l(koe(s,{defaultLanguage:i,tokenize:(e,t=`plain`)=>window.Prism.tokenize(e,window.Prism.languages[t]??window.Prism.languages.plain),$tokenize:vw.$tokenize})),e.includes(`link`)&&(l(s.registerCommand(Fw,e=>(Boe(typeof e==`string`?e:null),!0),2)),l(s.registerCommand(Mx,e=>{let t=n_();if(!Q(t)||!cC(e,ClipboardEvent)||!e.clipboardData||e.target.matches(`input, textarea`))return!1;let n=e.clipboardData.getData(`text`).trim();return ND(n)?(t.isCollapsed()&&s_([Vg(n)]),!t.getNodes().some(e=>$(e)||Hg(e)&&!e.isSimpleText())&&(s.dispatchCommand(Fw,n),e.preventDefault(),!0)):!1},1))),e.includes(`bulleted-list`)&&l(s.registerCommand(nT,()=>(Bw(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(rT,()=>(Bw(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand(Ax,()=>Koe(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await nd(100),s.update(()=>{if(r){let e=Z_(),t=e.getChildren();if(t.length===1&&!rw(t[0])&&t[0].remove(),t.length===0){let t=nw();t.setLanguage(i),e.append(t)}}lO(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=n_();if(!Q(t))return;let n=t.anchor.getNode(),r=n instanceof MS?n:sC(n,MS);Jw(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(eS,void 0)):(e.preventDefault(),s.dispatchCommand($x,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},dO=async e=>{if(e in window.Prism.languages)return;let t=Object.entries(sO.default.languages).find(([t,{alias:n}])=>t===e||(Array.isArray(n)?n.includes(e):n===e))?.[0];if(t)try{await aO(()=>import(`${LD}/components/prism-${t}.min.js`),void 0)}catch{}},fO=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>dO(e))),t=qD(t),t=JD(t),new Promise((r,i)=>{e.update(()=>{try{hE(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),pO=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})})))()}function hO(e,t){O(t,!0),G(e,vO);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=qs(t,gO),c=Pt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));Zr(()=>{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()};rc(()=>{let{editor:e,enabledTransformers:t,dispose:n}=uO(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}}),Zr(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=_O();gs(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(),[ys]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-a9qoiq`),Bs(p,e=>P(l,e),()=>z(l)),H(e,p),k()}var gO,_O,vO;function yO(){return(yO=s((()=>{Y(),J(),oc(),mO(),gO=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),_O=B(`<div></div>`),vO={hash:`svelte-a9qoiq`,code:`.lexical-root.svelte-a9qoiq {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:120px;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-a9qoiq:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-a9qoiq {padding:0;}.lexical-root.code.svelte-a9qoiq .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-a9qoiq:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-a9qoiq {border-color:var(--sui-error-border-color);}.lexical-root.svelte-a9qoiq [dir]:first-child {margin-top:0;}.lexical-root.svelte-a9qoiq [dir]:last-child {margin-bottom:0;}.lexical-root.svelte-a9qoiq strong.italic {font-style:italic;}.lexical-root.svelte-a9qoiq .strikethrough {text-decoration:line-through;}.lexical-root.svelte-a9qoiq li.nested {list-style-type:none;}.lexical-root.svelte-a9qoiq .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-a9qoiq .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-a9qoiq .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-a9qoiq .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-a9qoiq [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-a9qoiq :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-a9qoiq hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-a9qoiq hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.comment, .prolog, .doctype, .cdata) {color:slategray;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token.punctuation {color:#999;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token.namespace {opacity:0.7;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.property, .tag, .boolean, .number, .constant, .symbol, .deleted) {color:#905;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.selector, .attr-name, .string, .char, .builtin, .inserted) {color:#690;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.operator, .entity, .url), :root[data-theme=light] .lexical-root.svelte-a9qoiq .language-css .token.string, :root[data-theme=light] .lexical-root.svelte-a9qoiq .style .token.string {color:#9a6e3a;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.atrule, .attr-value, .keyword) {color:#07a;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.function, .class-name) {color:#dd4a68;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.regex, .important, .variable) {color:#e90;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.comment, .block-comment, .prolog, .doctype, .cdata) {color:#999;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.punctuation {color:#ccc;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.tag, .attr-name, .namespace, .deleted) {color:#e2777a;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.function-name {color:#6196cc;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.boolean, .number, .function) {color:#f08d49;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.property, .class-name, .constant, .symbol) {color:#f8c555;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.selector, .important, .atrule, .keyword, .builtin) {color:#cc99cd;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.string, .char, .attr-value, .regex, .variable) {color:#7ec699;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.operator, .entity, .url) {color:#67cdcc;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.important, .bold) {font-weight:bold;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.italic {font-style:italic;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.entity {cursor:help;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.inserted {color:green;}`}})))()}var bO;function xO(){return(xO=s((()=>{J(),Cd(),mO(),bO=()=>{let e=_d(`editor`),t=N(!1),n=N(void 0),r=N(Dr([])),i=N(Dr({modes:[],enabledButtons:[],components:[],useMarkdownShortcuts:!0,isCodeEditor:!1})),a=N(``),o=N(Dr({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 fO(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 SO(e,t){O(t,!0);let n=q(t,`disabled`,3,!1),r=Object.entries(CO.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=Pt(`editorStore`),a=N(`plain`);Zr(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?Z_().getChildren()[0]:J_(i.selection.blockNodeKey);rw(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>X(`_sui.text_editor.language`));Hm(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 pO(i.editor),i.selection?.blockNodeKey&&(await dO(e),i.editor.update(()=>{let t=J_(i.selection.blockNodeKey);rw(t)&&(t.setLanguage(e),P(a,e,!0))})))},children:(e,t)=>{var n=wO(),i=I(n);{let e=M(()=>X(`_sui.text_editor.plain_text`));sm(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}lo(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)));sm(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),H(e,n)},$$slots:{default:!0}})}k()}var CO,wO;function TO(){return(TO=s((()=>{Y(),J(),uh(),bw(),Z(),nC(),CO=u(ID()),oc(),fm(),Um(),mO(),wO=B(`<!> <!>`,1)})))()}function EO(e,t){G(e,kO);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=qs(t,DO);var c=OO();gs(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-1ni1168`);var l=F(c);So(F(l),()=>t.children??E),D(l),D(c),R(()=>l.inert=r()),H(e,c)}var DO,OO,kO;function AO(){return(AO=s((()=>{Y(),J(),DO=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`ariaLabel`,`children`]),OO=B(`<div><div role="none" class="inner svelte-1ni1168"><!></div></div>`),kO={hash:`svelte-1ni1168`,code:`[role=toolbar].svelte-1ni1168 {--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-1ni1168 {--toolbar-size: var(--sui-primary-toolbar-size);}
|
||
@media (width < 768px) {[role=toolbar].secondary.svelte-1ni1168 {padding-inline:0;}
|
||
}[role=toolbar][aria-orientation=horizontal].svelte-1ni1168 {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-1ni1168 {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-1ni1168 button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-1ni1168 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-1ni1168 h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-1ni1168 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-1ni1168 .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-1ni1168 .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-1ni1168 {display:contents;}`}})))()}function jO(e,t){O(t,!0),G(e,PO),q(t,`code`,11,``),q(t,`lang`,11,`plain`);let n=q(t,`disabled`,3,!1),r=qs(t,MO);var i=NO();EO(F(i),Js(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=V();So(I(r),()=>t.children??E),H(e,r)},$$slots:{default:!0}})),D(i),H(e,i),k()}var MO,NO,PO;function FO(){return(FO=s((()=>{Y(),J(),AO(),MO=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]),NO=B(`<div role="none" class="wrapper svelte-hs3kuq"><!></div>`),PO={hash:`svelte-hs3kuq`,code:`.wrapper.svelte-hs3kuq {display:contents;}.wrapper.svelte-hs3kuq [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-hs3kuq [role=toolbar] {flex-wrap:wrap;height:auto;}
|
||
}.wrapper.svelte-hs3kuq .sui.menu-button {padding:0 4px;}.wrapper.svelte-hs3kuq .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-hs3kuq .sui.button-group {gap:4px;}`}})))()}function Cse(e,t){O(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1);{let t=M(()=>n()||r()),i=M(()=>X(`_sui.text_editor.code_editor`));jO(e,{get disabled(){return z(t)},get"aria-label"(){return z(i)},children:(e,t)=>{{let t=M(()=>n()||r());SO(e,{get disabled(){return z(t)}})}},$$slots:{default:!0}})}k()}function IO(){return(IO=s((()=>{Y(),J(),Z(),TO(),FO()})))()}function wse(e,t){O(t,!0),G(e,zO);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=qs(t,LO),f=bO();f.config={...f.config,useMarkdownShortcuts:!1,isCodeEditor:!0,defaultLanguage:r()},Ft(`editorStore`,f),Zr(()=>{f.initialized&&(n(),r(),Ri(()=>{let e=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``;f.inputValue=e}))}),Zr(()=>{f.initialized&&(f.inputValue,Ri(()=>{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=RO(),m=I(p);gs(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[ys]:{flex:a()}}),void 0,void 0,void 0,`svelte-gt0st6`);var h=F(m),g=e=>{Cse(e,{get disabled(){return s()},get readonly(){return c()}})};W(h,e=>{i()&&e(g)}),hO(L(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),D(m);var _=L(m,2),v=e=>{ah(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{fc(e,{status:`error`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(_,e=>{f.showConverterError&&e(v)}),H(e,p),k()}var LO,RO,zO;function BO(){return(BO=s((()=>{Y(),J(),Z(),oc(),gc(),lh(),yO(),xO(),IO(),LO=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),RO=B(`<div><!> <!></div> <!>`,1),zO={hash:`svelte-gt0st6`,code:`.code-editor.svelte-gt0st6 {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-gt0st6:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.code-editor.flex.svelte-gt0st6:not([hidden]) {display:block;}`}})))()}function VO(e,t){O(t,!0),G(e,GO);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=qs(t,HO);var p=WO();let m;var h=F(p);Cn(h),gs(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(),[ys]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-36nr95`);var g=L(h,2),_=e=>{var t=UO(),r=F(t,!0);D(t),R(()=>{K(t,`dir`,i()),U(r,n()),t.dir=t.dir}),H(e,t)};W(g,e=>{o()&&e(_)}),D(p),R(()=>{m=is(p,1,`sui text-area ${t.class??``}`,`svelte-36nr95`,m,{flex:r(),disabled:c(),readonly:l()}),K(p,`hidden`,s()),h.dir=h.dir}),js(h,n),H(e,p),k()}var HO,UO,WO,GO;function KO(){return(KO=s((()=>{Y(),J(),HO=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`name`,`autoResize`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),UO=B(`<div class="clone svelte-36nr95" aria-hidden="true"> </div>`),WO=B(`<div role="none"><textarea></textarea> <!></div>`),GO={hash:`svelte-36nr95`,code:`.text-area.svelte-36nr95 {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-36nr95 {display:none;}.text-area.flex.svelte-36nr95:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-36nr95, .clone.svelte-36nr95) {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-36nr95), .clone:where(.svelte-36nr95)).resizing.svelte-36nr95 {transition-duration:0ms;}.svelte-36nr95:is(textarea:where(.svelte-36nr95), .clone:where(.svelte-36nr95)):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-36nr95:is(textarea:where(.svelte-36nr95), .clone:where(.svelte-36nr95)):is(:where(.svelte-36nr95):disabled, :where(.svelte-36nr95):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-36nr95 {resize:vertical;}textarea.auto-resize.svelte-36nr95 {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-36nr95 {border-color:var(--sui-error-border-color);}.clone.svelte-36nr95 {overflow:hidden;visibility:hidden;}textarea.svelte-36nr95,
|
||
.clone.svelte-36nr95 {white-space:pre-wrap;word-break:break-all;}`}})))()}var qO,JO;function YO(){return(YO=s((()=>{v(),qO=e=>Array.isArray(e)&&e.every(e=>g(e)),JO=e=>[...new Set(e)]})))()}function Tse(e,t){O(t,!0);let n=Pt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{sc(e,{get name(){return zD[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${zD[t.type].labelKey}`)),o=M(()=>!n.useRichText);Bd(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 pO(n.editor),n.editor.dispatchCommand(Ix,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}function XO(){return(XO=s((()=>{Y(),J(),Z(),nC(),oc(),Kd(),dc(),KD(),mO()})))()}function Ese(e,t){O(t,!0);let n=Pt(`editorStore`),r=M(()=>t.component.label),i=M(()=>t.component.icon),a=M(()=>t.component.createNode);{let t=e=>{var t=V(),n=I(t),r=e=>{sc(e,{get name(){return z(i)}})};W(n,e=>{z(i)&&e(r)}),H(e,t)},o=M(()=>!!z(i)),s=M(()=>z(i)?void 0:z(r)),c=M(()=>!n.useRichText);Bd(e,{get iconic(){return z(o)},get label(){return z(s)},get title(){return z(r)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(c)},onclick:()=>{n.editor?.update(()=>{s_([z(a)(),k_()])})},startIcon:t,$$slots:{startIcon:!0}})}k()}function ZO(){return(ZO=s((()=>{Y(),J(),nC(),oc(),Kd(),dc()})))()}function Dse(e,t){let n=Ma();O(t,!0);let r=`link`,i=Pt(`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=Dne().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(Fw,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=n_();if(Q(e)){let t=e.anchor.getNode(),n=(t instanceof Nw?t:sC(t,Nw))?.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=>{Yu(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=n_()??r_()?.clone();Q(t)||(t=$g()),z(c)||(P(u,z(u).trim(),!0),P(u,z(u)||z(l),!0),s_([Vg(z(u))])),Q_(t),e(void 0)})}),await pO(i.editor),i.editor.dispatchCommand(Fw,z(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand(zx,e=>(Yu(e,Gu()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};Zr(()=>{i.editor&&_()});var v=ek(),y=I(v);{let e=e=>{sc(e,{get name(){return zD[r].icon}})},t=M(()=>X(`_sui.text_editor.${zD[r].labelKey}`)),n=M(()=>!i.useRichText);Bd(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(()=>X(`_sui.remove`));Bd(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`?X(`_sui.text_editor.insert_link`):X(`_sui.text_editor.update_link`)),r=M(()=>!z(l)),i=M(()=>z(s)===`create`?X(`_sui.insert`):X(`_sui.update`));dp(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=$O(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);{let e=M(()=>X(`_sui.text_editor.url`));Ep(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)}})}D(i);var d=L(i,2),f=e=>{var t=QO(),r=F(t),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`_sui.text_editor.text`));Ep(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)}})}D(t),R(e=>{K(r,`for`,`${n}-text`),U(i,e)},[()=>X(`_sui.text_editor.text`)]),H(e,t)};W(d,e=>{z(c)||e(f)}),R(e=>{K(a,`for`,`${n}-url`),U(o,e)},[()=>X(`_sui.text_editor.url`)]),H(e,r)},$$slots:{footerExtra:!0,default:!0}})}H(e,v),k()}var QO,$O,ek;function tk(){return(tk=s((()=>{Y(),J(),Lw(),uC(),Z(),Zu(),nC(),oc(),Kd(),yp(),dc(),jp(),KD(),mO(),QO=B(`<div role="none"><label> </label> <!></div>`),$O=B(`<div role="none"><label> </label> <!></div> <!>`,1),ek=B(`<!> <!>`,1)})))()}function Ose(e,t){O(t,!0);let n=Pt(`editorStore`);{let r=e=>{sc(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{pm(e,{children:(e,r)=>{var i=V();lo(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;vm(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{s_([a()(),k_()])})},startIcon:e=>{var t=V(),n=I(t),r=e=>{sc(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(()=>X(`_sui.insert`));Ff(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}function nk(){return(nk=s((()=>{Y(),J(),Z(),nC(),oc(),dc(),Rf(),wm(),_m()})))()}function kse(e,t){O(t,!0);let n=Pt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await pO(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{aC(n_(),()=>MT(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{aC(n_(),()=>k_())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(nT,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(rT,void 0),t.type===`blockquote`&&n.editor.update(()=>{aC(n_(),()=>OT())}),t.type===`code-block`&&n.editor.update(()=>{aC(n_(),()=>nw())})};var a=V();to(I(a),()=>z(r),e=>{{let n=e=>{sc(e,{get name(){return zD[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${zD[t.type].labelKey}`));Tm(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),H(e,a),k()}function rk(){return(rk=s((()=>{Y(),J(),uh(),bw(),iT(),YT(),oC(),Z(),nC(),oc(),dc(),Dm(),KD(),mO()})))()}function Ase(e,t){O(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1),i=Pt(`editorStore`),a=M(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`button`)),o=M(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`menuitem`)),s=M(()=>JO([`paragraph`,...i.config.enabledButtons.filter(e=>HD.includes(e))])),c=M(()=>JO(i.config.enabledButtons.filter(e=>VD.includes(e))));{let t=M(()=>n()||r()),l=M(()=>X(`_sui.text_editor.text_editor`));jO(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=ok(),r=I(n),l=e=>{{let t=e=>{{let t=M(()=>zD[i.selection.blockType??``]?.icon??`format_paragraph`);sc(e,{get name(){return z(t)}})}},n=e=>{{let t=M(()=>X(`_sui.text_editor.text_style_options`));pm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();lo(I(n),16,()=>z(s),e=>e,(e,t)=>{kse(e,{get type(){return t}})}),H(e,n)},$$slots:{default:!0}})}},r=M(()=>!i.useRichText),a=M(()=>X(`_sui.text_editor.show_text_style_options`));Ff(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=ik(),n=I(t);Wf(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);SO(r,{get disabled(){return z(e)}})}H(e,t)},f=e=>{var t=ik(),n=I(t),r=e=>{var t=ik(),n=I(t);Wf(n,{orientation:`vertical`}),nf(L(n,2),{children:(e,t)=>{var n=V();lo(I(n),16,()=>z(c),e=>e,(e,t)=>{var n=V(),r=I(n),i=e=>{Dse(e,{})},a=e=>{Tse(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=ak(),n=I(t);Wf(n,{orientation:`vertical`});var r=L(n,2);lo(r,17,()=>z(a),e=>e.id,(e,t)=>{Ese(e,{get component(){return z(t)}})});var i=L(r,2),s=e=>{Ose(e,{get components(){return z(o)}})};W(i,e=>{z(o).length&&e(s)}),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);Yf(p,{flex:!0});var m=L(p,2),h=e=>{{let t=e=>{sc(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>X(`_sui.text_editor.edit_in_markdown`));Bd(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}})}k()}var ik,ak,ok;function sk(){return(sk=s((()=>{Y(),J(),Z(),YO(),oc(),sf(),Kd(),Jf(),$f(),dc(),Rf(),_m(),KD(),TO(),XO(),ZO(),tk(),nk(),rk(),FO(),ik=B(`<!> <!>`,1),ak=B(`<!> <!> <!>`,1),ok=B(`<!> <!> <!> <!>`,1)})))()}function jse(e,t){O(t,!0),G(e,uk);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,()=>[...VD,...HD]),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=qs(t,ck),h=bO();h.config={...h.config,modes:a(),enabledButtons:o(),components:s(),useMarkdownShortcuts:c()},Ft(`editorStore`,h),Zr(()=>{if(!h.initialized)return;let e=n();Ri(()=>{h.inputValue=e})}),Zr(()=>{if(!h.initialized)return;let e=h.inputValue;Ri(()=>{n()!==e&&n(e)})});var g=lk(),_=I(g);gs(_,()=>({...m,role:`none`,class:`sui text-editor`,hidden:l(),[ys]:{flex:r()}}),void 0,void 0,void 0,`svelte-admw8g`);var v=F(_);Ase(v,{get disabled(){return u()},get readonly(){return d()}});var y=L(v,2);{let e=M(()=>!h.useRichText||l());hO(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());VO(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}})}D(_);var x=L(_,2),S=e=>{ah(e,{get show(){return h.showConverterError},set show(e){h.showConverterError=e},children:(e,t)=>{fc(e,{status:`error`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(x,e=>{h.showConverterError&&e(S)}),H(e,g),k()}var ck,lk,uk;function dk(){return(dk=s((()=>{Y(),J(),Z(),oc(),gc(),KO(),lh(),KD(),yO(),xO(),sk(),ck=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`useMarkdownShortcuts`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),lk=B(`<div><!> <!> <!></div> <!>`,1),uk={hash:`svelte-admw8g`,code:`.text-editor.svelte-admw8g {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-admw8g:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.text-editor.flex.svelte-admw8g:not([hidden]) {display:block;}.text-editor.svelte-admw8g .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-admw8g .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 Mse(e,t){let n=Ma();O(t,!0),G(e,mk);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=qs(t,fk),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());Zr(()=>{let e=String(r()??``);Ri(()=>{z(h)!==e&&P(h,e,!0)})}),Zr(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),Zr(()=>{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=pk();let S;var C=F(x),w=F(C);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.increaseIcon),H(e,n)},a=e=>{sc(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(()=>X(`_sui.number_input.increase`));Bd(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();So(I(n),()=>t.decreaseIcon),H(e,n)},a=e=>{sc(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(()=>X(`_sui.number_input.decrease`));Bd(T,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var ee=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>z(g)>0?`decimal`:`numeric`);Ep(ee,Js({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||P(m,!0)},oninput:()=>{z(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){P(h,e,!0)}}))}D(x),R(()=>{S=is(x,1,`sui number-input ${t.class??``}`,`svelte-kegv9c`,S,{flex:a(),disabled:u(),readonly:d()}),K(x,`hidden`,l())}),H(e,x),k()}var fk,pk,mk;function hk(){return(hk=s((()=>{Y(),J(),Z(),oc(),Kd(),dc(),jp(),fk=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),pk=B(`<div role="none"><div role="none" class="buttons svelte-kegv9c"><!> <!></div> <!></div>`),mk={hash:`svelte-kegv9c`,code:`.number-input.svelte-kegv9c {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-kegv9c:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-kegv9c :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-kegv9c :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-kegv9c :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-kegv9c :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-kegv9c .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-kegv9c {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-kegv9c button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-kegv9c 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-kegv9c 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-kegv9c button .icon {font-size:20px;}`}})))()}function gk(e,t){let n=Ma();O(t,!0),G(e,yk);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=qs(t,_k),f=N(void 0),p=N(!1);var m=vk();let h;var g=F(m);Ep(g,Js({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();So(I(n),()=>t.visibilityIcon),H(e,n)},a=e=>{{let t=M(()=>z(p)?`visibility_off`:`visibility`);sc(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(()=>X(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));Bd(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),R(()=>{h=is(m,1,`sui secret-input ${t.class??``}`,`svelte-td1yh1`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),K(m,`hidden`,o())}),H(e,m),k()}var _k,vk,yk;function bk(){return(bk=s((()=>{Y(),J(),Z(),Kd(),dc(),jp(),_k=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),vk=B(`<div role="none"><!> <!></div>`),yk={hash:`svelte-td1yh1`,code:`.secret-input.svelte-td1yh1 {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-td1yh1:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-td1yh1 input {-webkit-text-security:none;}.secret-input.svelte-td1yh1 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-td1yh1 input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-td1yh1 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-td1yh1 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-td1yh1 button .icon {font-size:var(--sui-font-size-xx-large);}`}})))()}function Nse(e){G(e,Sk),H(e,xk())}var xk,Sk;function Ck(){return(Ck=s((()=>{Y(),J(),xk=B(`<link rel="preconnect" href="https://cdn.jsdelivr.net/"/>`),Sk={hash:`svelte-s1dyjb`,code:`
|
||
/* https://fontsource.org/fonts/source-sans-3/cdn */
|
||
@font-face {font-family:'Source Sans 3';font-style:normal;font-display:swap;font-weight:200 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@5.3.0/latin-wght-normal.woff2)
|
||
format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
||
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;size-adjust:110%;
|
||
}
|
||
|
||
/* https://fontsource.org/fonts/noto-mono/cdn */
|
||
@font-face {font-family:'Noto Mono';font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/noto-mono@5.3.0/latin-400-normal.woff2)
|
||
format('woff2');
|
||
}
|
||
|
||
/* https://fontsource.org/fonts/material-symbols-outlined/cdn */
|
||
@font-face {font-family:'Material Symbols Outlined';font-style:normal;font-display:block;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/material-symbols-outlined:vf@5.3.1/latin-wght-normal.woff2)
|
||
format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
||
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||
}.material-symbols-outlined {
|
||
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;-moz-font-feature-settings:'liga';font-feature-settings:'liga';}`}})))()}function Pse(e,t){O(t,!0),G(e,Ok);let n=q(t,`orientation`,3,`horizontal`),r=qs(t,wk),i=N(!1);rc(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{P(i,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var a=Dk();Ho(`uks73e`,e=>{var t=Tk(),n=I(t);Nse(L(n,4),{}),R(e=>K(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),H(e,t)});var o=I(a),s=e=>{var t=Ek();ss(t,``,{},{opacity:`0`}),H(e,t)};W(o,e=>{z(i)||e(s)});var c=L(o,2),l=e=>e.preventDefault(),u=e=>e.preventDefault(),d=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};gs(c,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:l,ondrop:u,oncontextmenu:d}),void 0,void 0,void 0,`svelte-uks73e`),So(F(c),()=>t.children??E),D(c),H(e,a),k()}var wk,Tk,Ek,Dk,Ok;function kk(){return(kk=s((()=>{Y(),J(),oc(),Ck(),wk=new Set([`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),Tk=B(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <!>`,1),Ek=B(`<div class="font-loader svelte-uks73e" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div>`),Dk=B(`<!> <div><!></div>`,1),Ok={hash:`svelte-uks73e`,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: "Source Sans 3", system-ui, sans-serif;--sui-font-size-xxx-large: 25px;--sui-font-size-xx-large: 21px;--sui-font-size-x-large: 19px;--sui-font-size-large: 17px;--sui-font-size-default: 15px;--sui-font-size-small: 13px;--sui-font-size-x-small: 11px;--sui-font-weight-normal: 400;--sui-font-weight-bold: 700;--sui-font-family-monospace: "Noto Sans Mono", ui-monospace, monospace;--sui-font-size-monospace: 0.9em;--sui-line-height-default: 1.2;--sui-line-height-compact: 1.4;--sui-line-height-comfortable: 1.6;--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-tree-border-radius: var(--sui-control-medium-border-radius);--sui-tree-border-color: var(--sui-control-border-color);--sui-tree-foreground-color: var(--sui-control-foreground-color);--sui-tree-background-color: hsl(var(--sui-background-color-1-hsl));--sui-tree-item-border-radius: var(--sui-control-medium-border-radius);--sui-tree-item-height: var(--sui-control-medium-height);--sui-tree-item-indent: 16px;--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;font-size-adjust:inherit;}
|
||
@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, 34px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 30px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 26px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 22px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 18px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 14px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-uks73e 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-uks73e {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-uks73e {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-uks73e {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-uks73e {display:flex;flex-direction:column;overflow:hidden;}`}})))()}function Ak(e,t){G(e,Mk);let n=q(t,`children`,3,void 0);var r=jk();So(F(r),()=>n()??E),D(r),H(e,r)}var jk,Mk;function Nk(){return(Nk=s((()=>{Y(),J(),jk=B(`<div role="none" class="sui empty-state svelte-kasimd"><!></div>`),Mk={hash:`svelte-kasimd`,code:`.empty-state.svelte-kasimd {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}})))()}function Pk(e,t){G(e,Lk);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=qs(t,Fk);var o=Ik();gs(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-1ysi1b`);var s=F(o);So(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),H(e,o)}var Fk,Ik,Lk;function Rk(){return(Rk=s((()=>{Y(),J(),Fk=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`]),Ik=B(`<div><div role="none" class="inner svelte-1ysi1b"><!></div></div>`),Lk={hash:`svelte-1ysi1b`,code:`.inner.svelte-1ysi1b {display:contents;}`}})))()}function zk(e,t){O(t,!0),G(e,Vk);let n=N(null),r=N(!1);Zr(()=>(z(n)&&(async()=>{await Sd(z(n)),P(r,!0)})(),()=>{z(n)&&vd(z(n))}));var i=V(),a=I(i),o=e=>{var n=V();So(I(n),()=>t.children),H(e,n)},s=e=>{var t=Bk();Bs(t,e=>P(n,e),()=>z(n)),H(e,t)};W(a,e=>{z(r)?e(o):e(s,-1)}),H(e,i),k()}var Bk,Vk;function Hk(){return(Hk=s((()=>{Y(),J(),Cd(),Bk=B(`<div class="placeholder svelte-1ye0s31"></div>`),Vk={hash:`svelte-1ye0s31`,code:`.placeholder.svelte-1ye0s31 {height:64px;}`}})))()}var Uk;function Wk(){return(Wk=s((()=>{Uk={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`}}})))()}
|
||
/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
|
||
function Gk(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 Fse(e){if(Array.isArray(e))return e}function Ise(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 Lse(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rse(e,t){return Fse(e)||Ise(e,t)||zse(e,t)||Lse()}function zse(e,t){if(e){if(typeof e==`string`)return Gk(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)?Gk(e,t):void 0}}function Kk(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 oA(e,t,r)}}function Bse(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return sA(e,n)}}function qk(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mA;if(Qk&&Qk(e,null),!pA(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&($k(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Vse(e){for(let t=0;t<e.length;t++)wA(e,t)||(e[t]=null);return e}function Jk(e){let t=iA(null);for(let r of Zk(e)){var n=Rse(r,2);let i=n[0],a=n[1];wA(e,i)&&(t[i]=pA(a)?Vse(a):a&&typeof a==`object`&&a.constructor===Object?Jk(a):a)}return t}function Hse(e){switch(typeof e){case`string`:return e;case`number`:return bA(e);case`boolean`:return xA(e);case`bigint`:return SA?SA(e):`0`;case`symbol`:return CA?CA(e):`Symbol()`;case`undefined`:return TA(e);case`function`:case`object`:{if(e===null)return TA(e);let t=e,n=Yk(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:TA(e)}return TA(e)}default:return TA(e)}}function Yk(e,t){for(;e!==null;){let n=tA(e,t);if(n){if(n.get)return Kk(n.get);if(typeof n.value==`function`)return Kk(n.value)}e=eA(e)}function n(){return null}return n}function Use(e){try{return EA(e,``),!0}catch{return!1}}function Xk(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ej(),t=e=>Xk(e);if(t.version=`3.4.13`,t.removed=[],!e||!e.document||e.document.nodeType!==$A.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=Yk(d,`cloneNode`),p=Yk(d,`remove`),m=Yk(d,`nextSibling`),h=Yk(d,`childNodes`),g=Yk(d,`parentNode`),_=Yk(d,`shadowRoot`),v=Yk(d,`attributes`),y=o&&o.prototype?Yk(o.prototype,`nodeType`):null,b=o&&o.prototype?Yk(o.prototype,`nodeName`):null,x=o&&o.prototype?Yk(o.prototype,`ownerDocument`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,T=!1,ee=0,te=function(){if(ee>0)throw DA(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ne=function(e){te(),ee++;try{return S.createHTML(e)}finally{ee--}},re=function(e){te(),ee++;try{return S.createScriptURL(e)}finally{ee--}},ie=function(){return T||=(w=tj(u,i),!0),w},ae=n,oe=ae.implementation,se=ae.createNodeIterator,ce=ae.createDocumentFragment,le=ae.getElementsByTagName,E=r.importNode,ue=nj();t.isSupported=typeof Zk==`function`&&typeof g==`function`&&oe&&oe.createHTMLDocument!==void 0;let de=zA,fe=BA,pe=VA,me=HA,he=UA,ge=GA,_e=KA,ve=JA,ye=WA,be=null,xe=qk({},[...OA,...kA,...AA,...MA,...PA]),Se=null,Ce=qk({},[...FA,...IA,...LA,...RA]),we=Object.seal(iA(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ee=null,De=Object.seal(iA(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Oe=!0,ke=!0,Ae=!1,je=!0,Me=!1,Ne=!0,Pe=!1,Fe=!1,Ie=null,Le=null,Re=!1,ze=!1,Be=!1,Ve=!1,He=!0,Ue=!1,We=`user-content-`,Ge=!0,Ke=!1,qe={},Je=null,Ye=qk({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Xe=null,Ze=qk({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Qe=null,$e=qk({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),et=`http://www.w3.org/1998/Math/MathML`,tt=`http://www.w3.org/2000/svg`,nt=`http://www.w3.org/1999/xhtml`,rt=nt,it=!1,at=null,ot=qk({},[et,tt,nt],hA),st=nA([`mi`,`mo`,`mn`,`ms`,`mtext`]),ct=qk({},st),lt=nA([`annotation-xml`]),ut=qk({},lt),dt=qk({},[`title`,`style`,`font`,`a`,`script`]),ft=null,pt=[`application/xhtml+xml`,`text/html`],D=null,mt=null,ht=n.createElement(`form`),gt=function(e){return e instanceof RegExp||e instanceof Function},_t=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(mt&&mt===e)return;(!e||typeof e!=`object`)&&(e={}),e=Jk(e),ft=pt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,D=ft===`application/xhtml+xml`?hA:mA,be=rj(e,`ALLOWED_TAGS`,xe,{transform:D}),Se=rj(e,`ALLOWED_ATTR`,Ce,{transform:D}),at=rj(e,`ALLOWED_NAMESPACES`,ot,{transform:hA}),Qe=rj(e,`ADD_URI_SAFE_ATTR`,$e,{transform:D,base:$e}),Xe=rj(e,`ADD_DATA_URI_TAGS`,Ze,{transform:D,base:Ze}),Je=rj(e,`FORBID_CONTENTS`,Ye,{transform:D}),Te=rj(e,`FORBID_TAGS`,Jk({}),{transform:D}),Ee=rj(e,`FORBID_ATTR`,Jk({}),{transform:D}),qe=wA(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Jk(e.USE_PROFILES):e.USE_PROFILES:!1,Oe=e.ALLOW_ARIA_ATTR!==!1,ke=e.ALLOW_DATA_ATTR!==!1,Ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=e.SAFE_FOR_TEMPLATES||!1,Ne=e.SAFE_FOR_XML!==!1,Pe=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,He=e.SANITIZE_DOM!==!1,Ue=e.SANITIZE_NAMED_PROPS||!1,Ge=e.KEEP_CONTENT!==!1,Ke=e.IN_PLACE||!1,ye=Use(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:WA,rt=typeof e.NAMESPACE==`string`?e.NAMESPACE:nt,ct=wA(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Jk(e.MATHML_TEXT_INTEGRATION_POINTS):qk({},st),ut=wA(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Jk(e.HTML_INTEGRATION_POINTS):qk({},lt);let t=wA(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Jk(e.CUSTOM_ELEMENT_HANDLING):iA(null);if(we=iA(null),wA(t,`tagNameCheck`)&>(t.tagNameCheck)&&(we.tagNameCheck=t.tagNameCheck),wA(t,`attributeNameCheck`)&>(t.attributeNameCheck)&&(we.attributeNameCheck=t.attributeNameCheck),wA(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(we.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),rA(we),Me&&(ke=!1),Be&&(ze=!0),qe&&(be=qk({},PA),Se=iA(null),qe.html===!0&&(qk(be,OA),qk(Se,FA)),qe.svg===!0&&(qk(be,kA),qk(Se,IA),qk(Se,RA)),qe.svgFilters===!0&&(qk(be,AA),qk(Se,IA),qk(Se,RA)),qe.mathMl===!0&&(qk(be,MA),qk(Se,LA),qk(Se,RA))),De.tagCheck=null,De.attributeCheck=null,wA(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?De.tagCheck=e.ADD_TAGS:pA(e.ADD_TAGS)&&(be===xe&&(be=Jk(be)),qk(be,e.ADD_TAGS,D))),wA(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?De.attributeCheck=e.ADD_ATTR:pA(e.ADD_ATTR)&&(Se===Ce&&(Se=Jk(Se)),qk(Se,e.ADD_ATTR,D))),wA(e,`ADD_URI_SAFE_ATTR`)&&pA(e.ADD_URI_SAFE_ATTR)&&qk(Qe,e.ADD_URI_SAFE_ATTR,D),wA(e,`FORBID_CONTENTS`)&&pA(e.FORBID_CONTENTS)&&(Je===Ye&&(Je=Jk(Je)),qk(Je,e.FORBID_CONTENTS,D)),wA(e,`ADD_FORBID_CONTENTS`)&&pA(e.ADD_FORBID_CONTENTS)&&(Je===Ye&&(Je=Jk(Je)),qk(Je,e.ADD_FORBID_CONTENTS,D)),Ge&&(be[`#text`]=!0),Pe&&qk(be,[`html`,`head`,`body`]),be.table&&(qk(be,[`tbody`]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw DA(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw DA(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=ne(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=ie()),S&&typeof C==`string`&&(C=ne(``)));nA&&nA(e),mt=e},vt=qk({},[...kA,...AA,...jA]),yt=qk({},[...MA,...NA]),bt=function(e,t,n){return t.namespaceURI===nt?e===`svg`:t.namespaceURI===et?e===`svg`&&(n===`annotation-xml`||ct[n]):!!vt[e]},xt=function(e,t,n){return t.namespaceURI===nt?e===`math`:t.namespaceURI===tt?e===`math`&&ut[n]:!!yt[e]},St=function(e,t,n){return t.namespaceURI===tt&&!ut[n]||t.namespaceURI===et&&!ct[n]?!1:!yt[e]&&(dt[e]||!vt[e])},Ct=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:rt,tagName:`template`});let n=mA(e.tagName),r=mA(t.tagName);return at[e.namespaceURI]?e.namespaceURI===tt?bt(n,t,r):e.namespaceURI===et?xt(n,t,r):e.namespaceURI===nt?St(n,t,r):!!(ft===`application/xhtml+xml`&&at[e.namespaceURI]):!1},wt=function(e){dA(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw DA(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Tt=function(e){Ot(e);let t=h(e);if(t){let e=[];cA(t,t=>{dA(e,t)}),cA(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{}}},Et=function(e,n){try{dA(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{dA(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`){if(ze||Be)try{wt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Dt=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||Se[D(i)]))try{e.removeAttribute(i)}catch{}}},Ot=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===$A.element&&Dt(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},kt=function(e){if(!Ne)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y?y(e):e.nodeType;if(n===$A.processingInstruction||n===$A.comment&&EA(XA,e.data)){try{p(e)}catch{}continue}if(n===$A.element){let t=e,n=D(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])}},At=function(e){let t=null,r=null;if(Re)e=`<remove></remove>`+e;else{let t=gA(e,/^[\r\n\t ]+/);r=t&&t[0]}ft===`application/xhtml+xml`&&rt===nt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?ne(e):e;if(rt===nt)try{t=new l().parseFromString(i,ft)}catch{}if(!t||!t.documentElement){t=oe.createDocument(rt,`template`,null);try{t.documentElement.innerHTML=it?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),rt===nt?le.call(t,Pe?`html`:`body`)[0]:Pe?t.documentElement:a},jt=function(e){let t=x?x(e):e.ownerDocument;return se.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Mt=function(e){return e=_A(e,de,` `),e=_A(e,fe,` `),e=_A(e,pe,` `),e},Nt=function(e){e.normalize();let t=x?x(e):e.ownerDocument,n=se.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Mt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&cA(i,e=>{Ft(e.content)&&Nt(e.content)})},Pt=function(e){let t=b?b(e):null;return typeof t!=`string`||D(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)},Ft=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===$A.documentFragment}catch{return!1}},It=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function O(e,n,r){e.length!==0&&cA(e,e=>{e.call(t,n,r,mt)})}let k=function(e,t){return!!(Ne&&e.hasChildNodes()&&!It(e.firstElementChild)&&EA(YA,e.textContent)&&EA(YA,e.innerHTML)||Ne&&e.namespaceURI===nt&&t===`style`&&It(e.firstElementChild)||e.nodeType===$A.processingInstruction||Ne&&e.nodeType===$A.comment&&EA(XA,e.data))},Lt=function(e,t,n){if(!Te[t]&&Ht(t)&&(we.tagNameCheck instanceof RegExp&&EA(we.tagNameCheck,t)||we.tagNameCheck instanceof Function&&we.tagNameCheck(t)))return!1;if(Ge&&!Je[t]){let t=g(e),r=h(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,m(e))}}}return wt(e),!0},Rt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Jk(t):t},zt=function(e,n){if(O(ue.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return Ke&&Ot(e),!0;if(Pt(e))return wt(e),!0;let r=D(b?b(e):e.nodeName);if(be=Rt(ue.uponSanitizeElement,be,xe,Ie),O(ue.uponSanitizeElement,e,{tagName:r,allowedTags:be}),e!==n&&g(e)===null)return Ke&&Ot(e),!0;if(k(e,r))return wt(e),!0;if(Te[r]||!(De.tagCheck instanceof Function&&De.tagCheck(r))&&!be[r]){let t=Lt(e,r,n);return t===!1&&O(ue.afterSanitizeElements,e,null),t}if((y?y(e):e.nodeType)===$A.element&&!Ct(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&EA(ZA,e.innerHTML))return wt(e),!0;if(Me&&e.nodeType===$A.text){let n=Mt(e.textContent);e.textContent!==n&&(dA(t.removed,{element:e.cloneNode()}),e.textContent=n)}return O(ue.afterSanitizeElements,e,null),!1},Bt=function(e,t,r){if(Ee[t]||Ne&&t===`patchsrc`||Ne&&t===`for`&&e!==`label`&&e!==`output`||He&&(t===`id`||t===`name`)&&(r in n||r in ht))return!1;let i=Se[t]||De.attributeCheck instanceof Function&&De.attributeCheck(t,e);if(!(ke&&EA(me,t))&&!(Oe&&EA(he,t))){if(!i){if(!(Ht(e)&&(we.tagNameCheck instanceof RegExp&&EA(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&EA(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t,e))||t===`is`&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&EA(we.tagNameCheck,r)||we.tagNameCheck instanceof Function&&we.tagNameCheck(r))))return!1}else if(!Qe[t]&&!EA(ye,_A(r,_e,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&vA(r,`data:`)===0&&Xe[e])&&!(Ae&&!EA(ge,_A(r,_e,``)))&&r)return!1}return!0},Vt=qk({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ht=function(e){return!Vt[mA(e)]&&EA(ve,e)},Ut=function(e,t,n,r){if(S&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ne(r);case`TrustedScriptURL`:return re(r)}return r},Wt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Pt(e)?wt(e):uA(t.removed)}catch{Et(n,e)}},Gt=function(e){O(ue.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Pt(e))return;Se=Rt(ue.uponSanitizeAttribute,Se,Ce,Le);let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0},r=t.length,i=D(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=D(o),u=c,d=o===`value`?u:yA(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,O(ue.uponSanitizeAttribute,e,n),d=n.attrValue,Ue&&(l===`id`||l===`name`)&&vA(d,We)!==0&&(Et(o,e),d=We+d),Ne&&EA(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Et(o,e);continue}if(l===`attributename`&&gA(d,`href`)){Et(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){Et(o,e);continue}if(!je&&EA(QA,d)){Et(o,e);continue}if(Me&&(d=Mt(d)),!Bt(i,l,d)){Et(o,e);continue}d=Ut(i,l,s,d),d!==u&&Wt(e,o,s,d)}}O(ue.afterSanitizeAttributes,e,null)},Kt=function(e){let t=null,n=jt(e);for(O(ue.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(O(ue.uponSanitizeShadowNode,t,null),zt(t,e),Gt(t),Ft(t.content)&&Kt(t.content),(y?y(t):t.nodeType)===$A.element){let e=_(t);Ft(e)&&(qt(e),Kt(e))}O(ue.afterSanitizeShadowDOM,e,null)},qt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Kt(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===$A.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`&&D(e)===`template`){let e=n.content;Ft(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);Ft(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(it=!e,it&&(e=`<!-->`),typeof e!=`string`&&!It(e)&&(e=Hse(e),typeof e!=`string`))throw DA(`dirty is not a string, aborting`);if(!t.isSupported)return e;Fe?(be=Ie,Se=Le):_t(n),(ue.uponSanitizeElement.length>0||ue.uponSanitizeAttribute.length>0)&&(be=Jk(be)),ue.uponSanitizeAttribute.length>0&&(Se=Jk(Se)),t.removed=[];let c=Ke&&typeof e!=`string`&&It(e);if(c){kt(e);let t=b?b(e):e.nodeName;if(typeof t==`string`){let n=D(t);if(!be[n]||Te[n])throw Tt(e),DA(`root node is forbidden and cannot be sanitized in-place`)}if(Pt(e))throw Tt(e),DA(`root node is clobbered and cannot be sanitized in-place`);try{qt(e)}catch(t){throw Tt(e),t}}else if(It(e))i=At(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===$A.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),qt(a);else{if(!ze&&!Me&&!Pe&&e.indexOf(`<`)===-1)return S&&Ve?ne(e):e;if(i=At(e),!i)return ze?null:Ve?C:``}i&&Re&&wt(i.firstChild);let l=c?e:i;try{let e=jt(l);for(;o=e.nextNode();)zt(o,l),Gt(o),Ft(o.content)&&Kt(o.content)}catch(n){throw c&&(Tt(e),cA(t.removed,e=>{e.element&&Ot(e.element)})),n}if(c)return cA(t.removed,e=>{e.element&&Ot(e.element)}),Me&&Nt(e),e;if(ze){if(Me&&Nt(i),Be)for(s=ce.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Se.shadowroot||Se.shadowrootmode)&&(s=E.call(r,s,!0)),s}let u=Pe?i.outerHTML:i.innerHTML;return Pe&&be[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&EA(qA,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
||
`+u),Me&&(u=Mt(u)),S&&Ve?ne(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_t(e),Fe=!0,Ie=be,Le=Se},t.clearConfig=function(){mt=null,Fe=!1,Ie=null,Le=null,S=w,C=``},t.isValidAttribute=function(e,t,n){mt||_t({});let r=D(e),i=D(t);return Bt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&wA(ue,e)&&dA(ue[e],t)},t.removeHook=function(e,t){if(wA(ue,e)){if(t!==void 0){let n=lA(ue[e],t);return n===-1?void 0:fA(ue[e],n,1)[0]}return uA(ue[e])}},t.removeHooks=function(e){wA(ue,e)&&(ue[e]=[])},t.removeAllHooks=function(){ue=nj()},t}var Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij;function aj(){return(aj=s((()=>{Zk=Object.entries,Qk=Object.setPrototypeOf,$k=Object.isFrozen,eA=Object.getPrototypeOf,tA=Object.getOwnPropertyDescriptor,nA=Object.freeze,rA=Object.seal,iA=Object.create,aA=typeof Reflect<`u`&&Reflect,oA=aA.apply,sA=aA.construct,nA||=function(e){return e},rA||=function(e){return e},oA||=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)},sA||=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)},cA=Kk(Array.prototype.forEach),lA=Kk(Array.prototype.lastIndexOf),uA=Kk(Array.prototype.pop),dA=Kk(Array.prototype.push),fA=Kk(Array.prototype.splice),pA=Array.isArray,mA=Kk(String.prototype.toLowerCase),hA=Kk(String.prototype.toString),gA=Kk(String.prototype.match),_A=Kk(String.prototype.replace),vA=Kk(String.prototype.indexOf),yA=Kk(String.prototype.trim),bA=Kk(Number.prototype.toString),xA=Kk(Boolean.prototype.toString),SA=typeof BigInt>`u`?null:Kk(BigInt.prototype.toString),CA=typeof Symbol>`u`?null:Kk(Symbol.prototype.toString),wA=Kk(Object.prototype.hasOwnProperty),TA=Kk(Object.prototype.toString),EA=Kk(RegExp.prototype.test),DA=Bse(TypeError),OA=nA(`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(`.`)),kA=nA(`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(`.`)),AA=nA([`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`]),jA=nA([`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`]),MA=nA(`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(`.`)),NA=nA([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),PA=nA([`#text`]),FA=nA(`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(`.`)),IA=nA(`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(`.`)),LA=nA(`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(`.`)),RA=nA([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),zA=rA(/{{[\w\W]*|^[\w\W]*}}/g),BA=rA(/<%[\w\W]*|^[\w\W]*%>/g),VA=rA(/\${[\w\W]*/g),HA=rA(/^data-[\-\w.\u00B7-\uFFFF]+$/),UA=rA(/^aria-[\-\w]+$/),WA=rA(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),GA=rA(/^(?:\w+script|data):/i),KA=rA(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qA=rA(/^html$/i),JA=rA(/^[a-z][.\w]*(-[.\w]+)+$/i),YA=rA(/<[/\w!]/g),XA=rA(/<[/\w]/g),ZA=rA(/<\/no(script|embed|frames)/i),QA=rA(/\/>/i),$A={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ej=function(){return typeof window>`u`?null:window},tj=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}},nj=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},rj=function(e,t,n,r){return wA(e,t)&&pA(e[t])?qk(r.base?Jk(r.base):{},e[t],r.transform):n},ij=Xk()})))()}var oj;function sj(){return(sj=s((()=>{aj(),oj=ij.sanitize.bind(ij),ij.isSupported,ij.addHook.bind(ij),ij.removeHook.bind(ij),ij.removeHooks.bind(ij),ij.removeAllHooks.bind(ij),ij.setConfig.bind(ij),ij.clearConfig.bind(ij),ij.isValidAttribute.bind(ij),ij.version,ij.removed})))()}function cj(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function lj(e){vj=e}function uj(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 dj(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(bj.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function fj(e,t){if(t){if(bj.escapeTest.test(e))return e.replace(bj.escapeReplace,qj)}else if(bj.escapeTestNoEncode.test(e))return e.replace(bj.escapeReplaceNoEncode,qj);return e}function pj(e){try{e=encodeURI(e).replace(bj.percentDecode,`%`)}catch{return null}return e}function mj(e,t){let n=e.replace(bj.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(bj.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(bj.slashPipe,`|`);return n}function hj(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 Wse(e){let t=e.split(`
|
||
`),n=t.length-1;for(;n>=0&&bj.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
||
`)}function Gse(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 Kse(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 qse(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 Jse(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 gj(e,t){return eM.parse(e,t)}function _j(...e){return eM.use(...e),gj.defaults=eM.defaults,lj(gj.defaults),gj}var vj,yj,Yse,bj,Xse,Zse,Qse,xj,$se,Sj,Cj,wj,ece,Tj,tce,Ej,nce,rce,Dj,Oj,ice,kj,ace,oce,Aj,jj,sce,cce,lce,uce,Mj,dce,Nj,Pj,Fj,fce,pce,Ij,mce,hce,gce,Lj,_ce,vce,yce,Rj,bce,xce,Sce,Cce,wce,Tce,Ece,Dce,Oce,kce,Ace,zj,jce,Bj,Vj,Mce,Hj,Uj,Nce,Wj,Pce,Gj,Kj,Fce,qj,Jj,Yj,Xj,Zj,Qj,$j,Ice,eM,tM,nM;function rM(){return(rM=s((()=>{vj=cj(),yj={exec:()=>null},Yse=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),bj={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:uj(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:uj(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:uj(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:uj(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:uj(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:uj(e=>RegExp(`^ {0,${e}}>`))},Xse=/^(?:[ \t]*(?:\n|$))+/,Zse=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Qse=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xj=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$se=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Sj=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cj=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wj=dj(Cj).replace(/bull/g,Sj).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(),ece=dj(Cj).replace(/bull/g,Sj).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(),Tj=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,tce=/^[^\n]+/,Ej=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,nce=dj(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Ej).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rce=dj(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Sj).getRegex(),Dj=`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`,Oj=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ice=dj(`^ {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`,Oj).replace(`tag`,Dj).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kj=e=>dj(Tj).replace(`hr`,xj).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`,Dj).getRegex(),ace=kj(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),oce=kj(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Aj={blockquote:dj(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,oce).getRegex(),code:Zse,def:nce,fences:Qse,heading:$se,hr:xj,html:ice,lheading:wj,list:rce,newline:Xse,paragraph:ace,table:yj,text:tce},jj=dj(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,xj).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`,Dj).getRegex(),sce={...Aj,lheading:ece,table:jj,paragraph:dj(Tj).replace(`hr`,xj).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,jj).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`,Dj).getRegex()},cce={...Aj,html:dj(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Oj).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:yj,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:dj(Tj).replace(`hr`,xj).replace(`heading`,` *#{1,6} *[^
|
||
]`).replace(`lheading`,wj).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},lce=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uce=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Mj=/^( {2,}|\\)\n(?!\s*$)/,dce=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nj=/[\p{P}\p{S}]/u,Pj=/[\s\p{P}\p{S}]/u,Fj=/[^\s\p{P}\p{S}]/u,fce=dj(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Pj).getRegex(),pce=/[\p{Pi}\p{Ps}"']/u,Ij=/(?!~)[\p{P}\p{S}]/u,mce=/(?!~)[\s\p{P}\p{S}]/u,hce=/(?:[^\s\p{P}\p{S}]|~)/u,gce=dj(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Yse?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Lj=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_ce=dj(Lj,`u`).replace(/punct/g,Nj).getRegex(),vce=dj(Lj,`u`).replace(/punct/g,Ij).getRegex(),yce=dj(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,pce).replace(/punct/g,Nj).getRegex(),Rj=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,bce=dj(Rj,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),xce=dj(Rj,`gu`).replace(/notPunctSpace/g,hce).replace(/punctSpace/g,mce).replace(/punct/g,Ij).getRegex(),Sce=dj(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),Cce=dj(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),wce=dj(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),Tce=dj(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Nj).getRegex(),Ece=dj(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),Dce=dj(/\\(punct)/,`gu`).replace(/punct/g,Nj).getRegex(),Oce=dj(/^<(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(),kce=dj(Oj).replace(`(?:-->|$)`,`-->`).getRegex(),Ace=dj(`^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`,kce).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),zj=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,jce=dj(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,zj).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bj=dj(/^!?\[(label)\]\[(ref)\]/).replace(`label`,zj).replace(`ref`,Ej).getRegex(),Vj=dj(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Ej).getRegex(),Mce=dj(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Bj).replace(`nolink`,Vj).getRegex(),Hj=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Uj={_backpedal:yj,anyPunctuation:Dce,autolink:Oce,blockSkip:gce,br:Mj,code:uce,del:yj,delLDelim:yj,delRDelim:yj,emStrongLDelim:_ce,emStrongRDelimAst:bce,emStrongRDelimUnd:Cce,escape:lce,link:jce,nolink:Vj,punctuation:fce,reflink:Bj,reflinkSearch:Mce,tag:Ace,text:dce,url:yj},Nce={...Uj,emStrongLDelim:yce,emStrongRDelimAst:Sce,emStrongRDelimUnd:wce,link:dj(/^!?\[(label)\]\((.*?)\)/).replace(`label`,zj).getRegex(),reflink:dj(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,zj).getRegex()},Wj={...Uj,emStrongRDelimAst:xce,emStrongLDelim:vce,delLDelim:Tce,delRDelim:Ece,url:dj(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Hj).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:dj(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Hj).getRegex()},Pce={...Wj,br:dj(Mj).replace(`{2,}`,`*`).getRegex(),text:dj(Wj.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Gj={normal:Aj,gfm:sce,pedantic:cce},Kj={normal:Uj,gfm:Wj,breaks:Pce,pedantic:Nce},Fce={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},qj=e=>Fce[e],Jj=class{options;rules;lexer;constructor(e){this.options=e||vj}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]:Wse(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=Jse(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=hj(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:hj(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:hj(t[0],`
|
||
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=hj(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=e.join(`
|
||
`),o=t.raw+`
|
||
`+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s,n=`${n}
|
||
${a}`,r=r.substring(0,r.length-t.text.length)+s.text;break}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=Kse(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=Wse(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:hj(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=mj(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:hj(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(mj(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:hj(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=hj(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Gse(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)),qse(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 qse(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 i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,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}}}},Yj=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||vj,this.options.tokenizer=this.options.tokenizer||new Jj,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:bj,block:Gj.normal,inline:Kj.normal};this.options.pedantic?(t.block=Gj.pedantic,t.inline=Kj.pedantic):this.options.gfm&&(t.block=Gj.gfm,t.inline=this.options.breaks?Kj.breaks:Kj.gfm),this.tokenizer.rules=t}static get rules(){return{block:Gj,inline:Kj}}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(bj.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(bj.tabCharGlobal,` `).replace(bj.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)}},Xj=class{options;parser;constructor(e){this.options=e||vj}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(bj.notSpaceStart)?.[0],i=e.replace(bj.endingNewline,``)+`
|
||
`;return r?`<pre><code class="language-`+fj(r)+`">`+(n?i:fj(i,!0))+`</code></pre>
|
||
`:`<pre><code>`+(n?i:fj(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>${fj(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=pj(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+fj(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=pj(e);if(i===null)return fj(n);e=i;let a=`<img src="${e}" alt="${fj(n)}"`;return t&&(a+=` title="${fj(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:fj(e.text)}},Zj=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}},Qj=class e{options;renderer;textRenderer;constructor(e){this.options=e||vj,this.options.renderer=this.options.renderer||new Xj,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zj}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`,`checkbox`,`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`,`checkbox`,`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}},$j=class{options;block;constructor(e){this.options=e||vj}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?Yj.lex:Yj.lexInline}provideParser(e=this.block){return e?Qj.parse:Qj.parseInline}},Ice=class{defaults=cj();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Qj;Renderer=Xj;TextRenderer=Zj;Lexer=Yj;Tokenizer=Jj;Hooks=$j;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 Xj(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 Jj(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 $j;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];t[r]=$j.passThroughHooks.has(n)?e=>{if(this.defaults.async&&$j.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)}:(...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 Yj.lex(e,t??this.defaults)}parser(e,t){return Qj.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?Yj.lex:Yj.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?Qj.parse:Qj.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?Yj.lex:Yj.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?Qj.parse:Qj.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>`+fj(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},eM=new Ice,gj.options=gj.setOptions=function(e){return eM.setOptions(e),gj.defaults=eM.defaults,lj(gj.defaults),gj},gj.getDefaults=cj,gj.defaults=vj,gj.use=_j,gj.walkTokens=function(e,t){return eM.walkTokens(e,t)},gj.parseInline=eM.parseInline,gj.Parser=Qj,gj.parser=Qj.parse,gj.Renderer=Xj,gj.TextRenderer=Zj,gj.Lexer=Yj,gj.lexer=Yj.lex,gj.Tokenizer=Jj,gj.Hooks=$j,gj.parse=gj,gj.options,gj.setOptions,gj.walkTokens,tM=gj.parseInline,nM=gj,Qj.parse,Yj.lex})))()}function iM(e,t){var n=Ui,r=Vi,i=e();let a=sn(i,t=>{var a=i!==e(),o,s=Vi,c=Ui;Ci(r),wi(n);try{o=ei(()=>{ri(()=>{let n=e();a&&t(n)})})}finally{Ci(s),wi(c)}return a=!0,o});return t?{set:t,update:n=>t(n(e())),subscribe:a.subscribe}:{subscribe:a.subscribe}}function aM(){return(aM=s((()=>{yi(),un(),jn(),Zi()})))()}var oM;function sM(){return(sM=s((()=>{oM=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`})}}})))()}var cM,lM;function uM(){return(uM=s((()=>{cM=e=>{try{return JSON.parse(e)}catch{return null}},lM=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?cM(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(cM)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,cM(t)])}}})))()}var dM,Lce,Rce,fM,pM,zce,Bce,Vce,Hce,mM,Uce,Wce;function hM(){return(hM=s((()=>{md(),FD(),dM=(e=``)=>RegExp(`\\bblob:${kD(globalThis.location.origin)}\\/${ud.source}\\b`,e),Lce=/(?:(.+?)\/)?(([^/]+?)(?:\.((?:tar\.)?[a-zA-Z0-9]+))?)$/,Rce=[`application/atom+xml`,`application/javascript`,`application/json`,`application/ld+json`,`application/rss+xml`,`application/xhtml+xml`,`application/xml`,`application/yaml`,`image/svg+xml`],fM=e=>e.startsWith(`text/`)||Rce.includes(e),pM=e=>{let[,t,n,r,i]=e.match(Lce)??[];return{dirname:t,basename:n,filename:r,extension:i}},zce=(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}),Bce=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(zce(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))},Vce=async e=>(await e.text()).replace(/\r\n?/g,`
|
||
`),Hce=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)})},mM=async e=>(await Hce(e)).split(`,`)[1],Uce=async e=>{let t=Uint8Array.fromBase64(e);return new TextDecoder().decode(t)},Wce=(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 Gce(e){return e&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function Kce(e){return e}function gM(e,t){t||={};let n=t.delimiter||`.`,r=t.maxDepth,i=t.transformKey||Kce,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=Gce(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 _M(e,t){t||={};let n=t.delimiter||`.`,r=t.overwrite||!1,i=t.transformKey||Kce,a={};if(Gce(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,gM(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]=_M(e[s],t)}),a}var vM,qce,yM,Jce,Yce;function bM(){return(bM=s((()=>{vM=/{{(.+?)}}/,qce=new RegExp(vM.source,`g`),yM=/\\\{\\\{.+?\\\}\\\}/g,Jce=[`year`,`month`,`day`,`hour`,`minute`,`second`],Yce=/^{{(?<innerTag>.+?)}}$/})))()}var xM,SM,CM,wM,TM,EM,Xce,DM,OM;function kM(){return(kM=s((()=>{hM(),FD(),aM(),bM(),xM=sn([]),SM=cn([xM],([e],t)=>{t(e.find(({collectionName:e,internalPath:t})=>e===void 0&&t!==void 0))}),CM=sn(),wM=cn([CM,SM],([e,t])=>e?.internalPath===void 0?t:e),TM=e=>{let t=`typedKeyPath`in e?e.typedKeyPath?.match(/[^:]+$/)?.[0]:e.typedKeyPath;return A(xM).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)},EM={source:void 0,items:[],entryRelative:[]},Xce=()=>{let e=A(xM);if(e===EM.source)return EM;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=kD(r).replace(yM,`.+?`);t.push({folder:e,regexSub:RegExp(`^${n}${r?`(?=\\/|$)`:`$`}`),regexExact:RegExp(`^${n}$`)})}}}),EM.source=e,EM.items=t,EM.entryRelative=n,EM},DM=(e,{matchSubFolders:t=!0}={})=>{let{filename:n,dirname:r}=pM(e);if(n.startsWith(`+`))return[];let{items:i,entryRelative:a}=Xce(),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))},OM=e=>!!e&&!e.entryRelative&&!e.hasTemplateTags})))()}var Zce=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)||(r[i]=p(e,i)&&n.isMergeableObject(t[i])?u(i,n)(e[i],t[i],n):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 AM(e){if(e&&typeof e==`object`)switch(e[RM]){case PM:case LM:return!0}return!1}function jM(e){if(e&&typeof e==`object`)switch(e[RM]){case MM:case PM:case IM:case LM:return!0}return!1}var MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM;function KM(){return(KM=s((()=>{MM=Symbol.for(`yaml.alias`),NM=Symbol.for(`yaml.document`),PM=Symbol.for(`yaml.map`),FM=Symbol.for(`yaml.pair`),IM=Symbol.for(`yaml.scalar`),LM=Symbol.for(`yaml.seq`),RM=Symbol.for(`yaml.node.type`),zM=e=>!!e&&typeof e==`object`&&e[RM]===MM,BM=e=>!!e&&typeof e==`object`&&e[RM]===NM,VM=e=>!!e&&typeof e==`object`&&e[RM]===PM,HM=e=>!!e&&typeof e==`object`&&e[RM]===FM,UM=e=>!!e&&typeof e==`object`&&e[RM]===IM,WM=e=>!!e&&typeof e==`object`&&e[RM]===LM,GM=e=>(UM(e)||AM(e))&&!!e.anchor})))()}function qM(e,t){let n=Qce(t);BM(e)?JM(null,e.contents,n,Object.freeze([e]))===XM&&(e.contents=null):JM(null,e,n,Object.freeze([]))}function JM(e,t,n,r){let i=$ce(e,t,n,r);if(jM(i)||HM(i))return ele(e,r,i),JM(e,i,n,r);if(typeof i!=`symbol`){if(AM(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=JM(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===YM)return YM;else i===XM&&(t.items.splice(e,1),--e)}}else if(HM(t)){r=Object.freeze(r.concat(t));let e=JM(`key`,t.key,n,r);if(e===YM)return YM;e===XM&&(t.key=null);let i=JM(`value`,t.value,n,r);if(i===YM)return YM;i===XM&&(t.value=null)}}return i}function Qce(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 $ce(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(VM(t))return n.Map?.(e,t,r);if(WM(t))return n.Seq?.(e,t,r);if(HM(t))return n.Pair?.(e,t,r);if(UM(t))return n.Scalar?.(e,t,r);if(zM(t))return n.Alias?.(e,t,r)}function ele(e,t,n){let r=t[t.length-1];if(AM(r))r.items[e]=n;else if(HM(r))e===`key`?r.key=n:r.value=n;else if(BM(r))r.contents=n;else{let e=zM(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var YM,tle,XM;function ZM(){return(ZM=s((()=>{KM(),YM=Symbol(`break visit`),tle=Symbol(`skip children`),XM=Symbol(`remove node`),qM.BREAK=YM,qM.SKIP=tle,qM.REMOVE=XM})))()}var nle,rle,QM;function $M(){return($M=s((()=>{KM(),ZM(),nle={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},rle=e=>e.replace(/[!,[\]{}]/g,e=>nle[e]),QM=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)}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+rle(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&&jM(e.contents)){let t={};qM(e.contents,(e,n)=>{jM(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(`
|
||
`)}},QM.defaultYaml={explicit:!1,version:`1.2`},QM.defaultTags={"!!":`tag:yaml.org,2002:`}})))()}function ile(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 ale(e){let t=new Set;return qM(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ole(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function sle(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=ale(e);let a=ole(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(UM(t.node)||AM(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}}function eN(){return(eN=s((()=>{KM(),ZM()})))()}function tN(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=tN(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=tN(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=tN(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=tN(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function nN(e,t,n){if(Array.isArray(e))return e.map((e,t)=>nN(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!GM(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}function rN(){return(rN=s((()=>{KM()})))()}var iN;function aN(){return(aN=s((()=>{KM(),rN(),iN=class{constructor(e){Object.defineProperty(this,RM,{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(!BM(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=nN(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?tN(i,{"":o},``,o):o}}})))()}function oN(e,t,n){if(zM(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(AM(t)){let r=0;for(let i of t.items){let t=oN(e,i,n);t>r&&(r=t)}return r}if(HM(t)){let r=oN(e,t.key,n),i=oN(e,t.value,n);return Math.max(r,i)}return 1}var sN;function cN(){return(cN=s((()=>{eN(),ZM(),KM(),aN(),rN(),sN=class extends iN{constructor(e){super(MM),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=[],qM(e,{Node:(e,t)=>{(zM(t)||GM(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||=(nN(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=oN(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(ile(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}}})))()}var lN,uN;function dN(){return(dN=s((()=>{KM(),aN(),rN(),lN=e=>!e||typeof e!=`function`&&typeof e!=`object`,uN=class extends iN{constructor(e){super(IM),this.value=e}toJSON(e,t){return t?.keep?this.value:nN(this.value,e,t)}toString(){return String(this.value)}},uN.BLOCK_FOLDED=`BLOCK_FOLDED`,uN.BLOCK_LITERAL=`BLOCK_LITERAL`,uN.PLAIN=`PLAIN`,uN.QUOTE_DOUBLE=`QUOTE_DOUBLE`,uN.QUOTE_SINGLE=`QUOTE_SINGLE`})))()}function cle(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 fN(e,t,n){if(BM(e)&&(e=e.contents),jM(e))return e;if(HM(e)){let t=n.schema[PM].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??(c.anchor=i(e)),new sN(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=lle+t.slice(2));let l=cle(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new uN(e);return c&&(c.node=t),t}l=e instanceof Map?o[PM]:Symbol.iterator in Object(e)?o[LM]:o[PM]}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 uN(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}var lle;function pN(){return(pN=s((()=>{cN(),KM(),dN(),lle=`tag:yaml.org,2002:`})))()}function mN(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 fN(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var hN,gN;function _N(){return(_N=s((()=>{pN(),KM(),aN(),hN=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,gN=class extends iN{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=>jM(t)||HM(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(hN(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(AM(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,mN(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(AM(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&&UM(i)?i.value:i:AM(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!HM(t))return!1;let n=t.value;return n==null||e&&UM(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 AM(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(AM(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,mN(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}})))()}function vN(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var ule,yN;function bN(){return(bN=s((()=>{ule=e=>e.replace(/^(?!$)(?: $)?/gm,`#`),yN=(e,t,n)=>e.endsWith(`
|
||
`)?vN(n,t):n.includes(`
|
||
`)?`
|
||
`+vN(n,t):(e.endsWith(` `)?``:` `)+n})))()}function xN(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=dle(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=dle(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 dle(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 SN,fle,ple;function mle(){return(mle=s((()=>{SN=`flow`,fle=`block`,ple=`quoted`})))()}function hle(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 CN(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(kN(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:xN(o,a,ple,ON(t,!1))}function wN(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
||
`)||/[ \t]\n|\n[ \t]/.test(e))return CN(e,t);let n=t.indent||(kN(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:xN(r,n,SN,ON(t,!1))}function TN(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=CN;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?wN:i&&!t?CN:n?wN:CN}return r(e,t)}function EN({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 TN(n,r);let l=r.indent||(r.forceBlockIndent||kN(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===uN.BLOCK_FOLDED?!1:t===uN.BLOCK_LITERAL||!hle(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(AN,`$&${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=ON(r,!0);o!==`folded`&&t!==uN.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=xN(`${v}${e}${p}`,l,fle,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function gle(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 TN(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
|
||
`)?TN(a,t):EN(e,t,n,r);if(!s&&!u&&i!==uN.PLAIN&&a.includes(`
|
||
`))return EN(e,t,n,r);if(kN(a)){if(c===``)return t.forceBlockIndent=!0,EN(e,t,n,r);if(s&&c===l)return TN(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 TN(a,t)}return s?d:xN(d,c,SN,ON(t,!1))}function DN(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!==uN.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=uN.QUOTE_DOUBLE);let c=e=>{switch(e){case uN.BLOCK_FOLDED:case uN.BLOCK_LITERAL:return i||a?TN(o.value,t):EN(o,t,n,r);case uN.QUOTE_DOUBLE:return CN(o.value,t);case uN.QUOTE_SINGLE:return wN(o.value,t);case uN.PLAIN:return gle(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 ON,kN,AN;function jN(){return(jN=s((()=>{dN(),mle(),ON=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),kN=e=>/^(%|---|\.\.\.)/m.test(e);try{AN=RegExp(`(^|(?<!
|
||
))
|
||
+(?!
|
||
|$)`,`g`)}catch{AN=/\n+(?!\n|$)/g}})))()}function _le(e,t){let n=Object.assign({blockQuote:!0,commentString:ule,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 vle(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(UM(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 yle(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(UM(e)||AM(e))&&e.anchor;a&&ile(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 MN(e,t,n,r){if(HM(e))return e.toString(t,n,r);if(zM(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=jM(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=vle(t.doc.schema.tags,a);let o=yle(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):UM(a)?DN(a,t,n,r):a.toString(t,n,r);return o?UM(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function NN(){return(NN=s((()=>{eN(),KM(),bN(),jN()})))()}function ble({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=jM(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(AM(e)||!jM(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||AM(e)||(UM(e)?e.type===uN.BLOCK_FOLDED||e.type===uN.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=MN(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+=yN(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=yN(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=yN(g,n.indent,l(f))));let _,v,y;jM(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&&UM(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&WM(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=MN(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
|
||
`:``,v){let e=l(v);S+=`\n${vN(e,n.indent)}`}x===``&&!n.inFlow?S===`
|
||
`&&y&&(S=`
|
||
|
||
`):S+=`\n${n.indent}`}else if(!p&&AM(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+=yN(g,n.indent,l(y)):h&&i&&i(),g}function xle(){return(xle=s((()=>{KM(),dN(),NN(),bN()})))()}function Sle(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}function Cle(e,t,n){let r=wle(e,n);if(WM(r))for(let n of r.items)PN(e,t,n);else if(Array.isArray(r))for(let n of r)PN(e,t,n);else PN(e,t,r)}function PN(e,t,n){let r=wle(e,n);if(!VM(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 wle(e,t){return e&&zM(t)?t.resolve(e.doc,e):t}var FN,IN,Tle;function LN(){return(LN=s((()=>{KM(),dN(),FN=`<<`,IN={identify:e=>e===FN||typeof e==`symbol`&&e.description===FN,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new uN(Symbol(FN)),{addToJSMap:Cle}),stringify:()=>FN},Tle=(e,t)=>(IN.identify(t)||UM(t)&&(!t.type||t.type===uN.PLAIN)&&IN.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===IN.tag&&e.default)})))()}function Ele(e,t,{key:n,value:r}){if(jM(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Tle(e,n))Cle(e,t,r);else{let i=nN(n,``,e);if(t instanceof Map)t.set(i,nN(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Dle(n,i,e),o=nN(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Dle(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(jM(e)&&n?.doc){let t=_le(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)+`..."`),Sle(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)}function RN(){return(RN=s((()=>{LN(),NN(),KM(),rN()})))()}function zN(e,t,n){let r=fN(e,void 0,n),i=fN(t,void 0,n);return new BN(r,i)}var BN;function VN(){return(VN=s((()=>{pN(),xle(),RN(),KM(),BN=class e{constructor(e,t=null){Object.defineProperty(this,RM,{value:FM}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return jM(n)&&(n=n.clone(t)),jM(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return Ele(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?ble(this,e,t,n):JSON.stringify(this)}}})))()}function Ole(e,t,n){return(t.inFlow??e.flow?Ale:kle)(e,t,n)}function kle({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(jM(i))!d&&i.spaceBefore&&f.push(``),HN(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(HM(i)){let e=jM(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),HN(n,f,e.commentBefore,d))}d=!1;let s=MN(i,u,()=>o=null,()=>d=!0);o&&(s+=yN(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+=`
|
||
`+vN(l(e),c),s&&s()):d&&o&&o(),p}function Ale({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(jM(i))i.spaceBefore&&d.push(``),HN(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(HM(i)){let e=jM(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),HN(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=jM(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=MN(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+=yN(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}`}return`${f}${o}${d.join(` `)}${o}${p}`}function HN({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=vN(t(r),e);n.push(i.trimStart())}}function UN(){return(UN=s((()=>{KM(),NN(),bN()})))()}function WN(e,t){let n=UM(t)?t.value:t;for(let r of e)if(HM(r)&&(r.key===t||r.key===n||UM(r.key)&&r.key.value===n))return r}var GN;function KN(){return(KN=s((()=>{UN(),RN(),_N(),KM(),VN(),dN(),GN=class extends gN{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(PM,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(zN(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=HM(e)?e:!e||typeof e!=`object`||!(`key`in e)?new BN(e,e?.value):new BN(e.key,e.value);let r=WN(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);UM(r.value)&&lN(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=WN(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=WN(this.items,e)?.value;return(!t&&UM(n)?n.value:n)??void 0}has(e){return!!WN(this.items,e)}set(e,t){this.add(new BN(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)Ele(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!HM(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})),Ole(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}}})))()}var qN;function JN(){return(JN=s((()=>{KM(),KN(),qN={collection:`map`,default:!0,nodeClass:GN,tag:`tag:yaml.org,2002:map`,resolve(e,t){return VM(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>GN.from(e,t,n)}})))()}function YN(e){let t=UM(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var XN;function ZN(){return(ZN=s((()=>{pN(),UN(),_N(),KM(),dN(),rN(),XN=class extends gN{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(LM,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=YN(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=YN(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&UM(r)?r.value:r}has(e){let t=YN(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=YN(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];UM(r)&&lN(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(nN(e,String(r++),t));return n}toString(e,t,n){return e?Ole(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(fN(a,void 0,n))}}return i}}})))()}var QN;function $N(){return($N=s((()=>{KM(),ZN(),QN={collection:`seq`,default:!0,nodeClass:XN,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return WM(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>XN.from(e,t,n)}})))()}var eP;function tP(){return(tP=s((()=>{jN(),eP={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),DN(e,t,n,r)}}})))()}var nP;function rP(){return(rP=s((()=>{dN(),nP={identify:e=>e==null,createNode:()=>new uN(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new uN(null),stringify:({source:e},t)=>typeof e==`string`&&nP.test.test(e)?e:t.options.nullStr}})))()}var iP;function aP(){return(aP=s((()=>{dN(),iP={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new uN(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&iP.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}}})))()}function oP({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 sP,cP,lP;function uP(){return(uP=s((()=>{dN(),sP={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:oP},cP={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():oP(e)}},lP={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 uN(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:oP}})))()}function jle(e,t,n){let{value:r}=e;return dP(r)&&r>=0?n+r.toString(t):oP(e)}var dP,fP,pP,mP,hP;function gP(){return(gP=s((()=>{dP=e=>typeof e==`bigint`||Number.isInteger(e),fP=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n),pP={identify:e=>dP(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>fP(e,2,8,n),stringify:e=>jle(e,8,`0o`)},mP={identify:dP,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>fP(e,0,10,n),stringify:oP},hP={identify:e=>dP(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>fP(e,2,16,n),stringify:e=>jle(e,16,`0x`)}})))()}var Mle;function Nle(){return(Nle=s((()=>{JN(),rP(),$N(),tP(),aP(),uP(),gP(),Mle=[qN,QN,eP,nP,iP,pP,mP,hP,sP,cP,lP]})))()}function Ple(e){return typeof e==`bigint`||Number.isInteger(e)}var _P,Fle,Ile;function Lle(){return(Lle=s((()=>{dN(),JN(),$N(),_P=({value:e})=>JSON.stringify(e),Fle=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:_P},{identify:e=>e==null,createNode:()=>new uN(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:_P},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:_P},{identify:Ple,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})=>Ple(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:_P}],Ile=[qN,QN].concat(Fle,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})))()}var vP;function yP(){return(yP=s((()=>{dN(),jN(),vP={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}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??=uN.BLOCK_LITERAL,t!==uN.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===uN.BLOCK_LITERAL?`
|
||
`:` `)}return DN({comment:e,type:t,value:s},r,i,a)}}})))()}function Rle(e,t){if(WM(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!HM(r)){if(VM(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new BN(new uN(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]=HM(r)?r:new BN(r)}}else t(`Expected a sequence for this tag`);return e}function zle(e,t,n){let{replacer:r}=n,i=new XN(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(zN(o,s,n))}return i}var bP;function xP(){return(xP=s((()=>{KM(),VN(),dN(),ZN(),bP={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:Rle,createNode:zle}})))()}var SP,CP;function wP(){return(wP=s((()=>{KM(),rN(),KN(),ZN(),xP(),SP=class e extends XN{constructor(){super(),this.add=GN.prototype.add.bind(this),this.delete=GN.prototype.delete.bind(this),this.get=GN.prototype.get.bind(this),this.has=GN.prototype.has.bind(this),this.set=GN.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(HM(e)?(r=nN(e.key,``,t),i=nN(e.value,r,t)):r=nN(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=zle(e,t,n),i=new this;return i.items=r.items,i}},SP.tag=`tag:yaml.org,2002:omap`,CP={collection:`seq`,identify:e=>e instanceof Map,nodeClass:SP,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=Rle(e,t),r=[];for(let{key:e}of n.items)UM(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new SP,n)},createNode:(e,t,n)=>SP.from(e,t,n)}})))()}function Ble({value:e,source:t},n){return t&&(e?TP:EP).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var TP,EP;function Vle(){return(Vle=s((()=>{dN(),TP={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 uN(!0),stringify:Ble},EP={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 uN(!1),stringify:Ble}})))()}var Hle,Ule,Wle;function Gle(){return(Gle=s((()=>{dN(),Hle={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:oP},Ule={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():oP(e)}},Wle={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 uN(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:oP}})))()}function DP(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}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function OP(e,t,n){let{value:r}=e;if(kP(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return oP(e)}var kP,Kle,qle,Jle,Yle;function Xle(){return(Xle=s((()=>{kP=e=>typeof e==`bigint`||Number.isInteger(e),Kle={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>DP(e,2,2,n),stringify:e=>OP(e,2,`0b`)},qle={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>DP(e,1,8,n),stringify:e=>OP(e,8,`0`)},Jle={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>DP(e,0,10,n),stringify:oP},Yle={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>DP(e,2,16,n),stringify:e=>OP(e,16,`0x`)}})))()}var AP,jP;function MP(){return(MP=s((()=>{KM(),VN(),KN(),AP=class e extends GN{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=HM(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new BN(e.key,null):new BN(e,null),WN(this.items,t.key)||this.items.push(t)}get(e,t){let n=WN(this.items,e);return!t&&HM(n)?UM(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=WN(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new BN(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(zN(e,null,n));return i}},AP.tag=`tag:yaml.org,2002:set`,jP={collection:`map`,identify:e=>e instanceof Set,nodeClass:AP,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>AP.from(e,t,n),resolve(e,t){if(VM(e)){if(e.hasAllNullValues(!0))return Object.assign(new AP,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}}})))()}function NP(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 Zle(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return oP(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 PP,FP,IP;function LP(){return(LP=s((()=>{PP={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})=>NP(e,n),stringify:Zle},FP={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=>NP(e,!1),stringify:Zle},IP={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(IP.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=NP(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$/,``)??``}})))()}var RP;function Qle(){return(Qle=s((()=>{JN(),rP(),$N(),tP(),yP(),Vle(),Gle(),Xle(),LN(),wP(),xP(),MP(),LP(),RP=[qN,QN,eP,nP,TP,EP,Kle,qle,Jle,Yle,Hle,Ule,Wle,vP,IN,CP,bP,jP,PP,FP,IP]})))()}function zP(e,t,n){let r=BP.get(t);if(r&&!e)return n&&!r.includes(IN)?r.concat(IN):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(BP.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(IN)),i.reduce((e,t)=>{let n=typeof t==`string`?VP[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(VP).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 BP,VP,$le;function eue(){return(eue=s((()=>{JN(),rP(),$N(),tP(),aP(),uP(),gP(),Nle(),Lle(),yP(),LN(),wP(),xP(),Qle(),MP(),LP(),BP=new Map([[`core`,Mle],[`failsafe`,[qN,QN,eP]],[`json`,Ile],[`yaml11`,RP],[`yaml-1.1`,RP]]),VP={binary:vP,bool:iP,float:lP,floatExp:cP,floatNaN:sP,floatTime:FP,int:mP,intHex:hP,intOct:pP,intTime:PP,map:qN,merge:IN,null:nP,omap:CP,pairs:bP,seq:QN,set:jP,timestamp:IP},$le={"tag:yaml.org,2002:binary":vP,"tag:yaml.org,2002:merge":IN,"tag:yaml.org,2002:omap":CP,"tag:yaml.org,2002:pairs":bP,"tag:yaml.org,2002:set":jP,"tag:yaml.org,2002:timestamp":IP}})))()}var tue,nue;function HP(){return(HP=s((()=>{KM(),JN(),$N(),tP(),eue(),tue=(e,t)=>e.key<t.key?-1:+(e.key>t.key),nue=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?zP(e,`compat`):e?zP(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?$le:{},this.tags=zP(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,PM,{value:qN}),Object.defineProperty(this,IM,{value:eP}),Object.defineProperty(this,LM,{value:QN}),this.sortMapEntries=typeof a==`function`?a:a===!0?tue:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})))()}function rue(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=_le(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(vN(t,``))}let o=!1,s=null;if(e.contents){if(jM(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(vN(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=MN(e.contents,i,()=>s=null,t);s&&(c+=yN(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(MN(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
|
||
`)?(n.push(`...`),n.push(vN(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(vN(a(t),``)))}return n.join(`
|
||
`)+`
|
||
`}function iue(){return(iue=s((()=>{KM(),NN(),bN()})))()}function UP(e){if(AM(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var WP;function GP(){return(GP=s((()=>{cN(),_N(),KM(),VN(),rN(),HP(),iue(),eN(),pN(),$M(),WP=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,RM,{value:NM});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 QM({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[RM]:{value:NM}});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=jM(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){UP(this.contents)&&this.contents.add(e)}addIn(e,t){UP(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=ale(this);e.anchor=!t||n.has(t)?ole(t||`a`,n):t}return new sN(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}=sle(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=fN(e,l,p);return o&&AM(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){let r=this.createNode(e,null,n),i=this.createNode(t,null,n);return new BN(r,i)}delete(e){return UP(this.contents)?this.contents.delete(e):!1}deleteIn(e){return hN(e)?this.contents!=null&&(this.contents=null,!0):UP(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return AM(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return hN(e)?!t&&UM(this.contents)?this.contents.value:this.contents:AM(this.contents)?this.contents.getIn(e,t):void 0}has(e){return AM(this.contents)?this.contents.has(e):!1}hasIn(e){return hN(e)?this.contents!==void 0:AM(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=mN(this.schema,[e],t):UP(this.contents)&&this.contents.set(e,t)}setIn(e,t){hN(e)?this.contents=t:this.contents==null?this.contents=mN(this.schema,Array.from(e),t):UP(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 QM({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 QM({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 nue(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=nN(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`?tN(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 rue(this,e)}}})))()}var KP,qP,aue,JP;function YP(){return(YP=s((()=>{KP=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},qP=class extends KP{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},aue=class extends KP{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},JP=(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 XP(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}}function ZP(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(ZP(t.key)||ZP(t.value))return!0}return!1;default:return!0}}function QP(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&ZP(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function $P(){return($P=s((()=>{})))()}function oue(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||UM(e)&&UM(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}function eF(){return(eF=s((()=>{KM()})))()}function sue({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??GN)(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=XP(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`,tF)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
|
||
`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||ZP(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`,tF);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&QP(r.indent,u,i),n.atKey=!1,oue(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=XP(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&&QP(r.indent,f,i),s=c.range[2];let l=new BN(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 BN(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 tF;function cue(){return(cue=s((()=>{VN(),KN(),$P(),eF(),tF=`All mapping items must start at the same column`})))()}function lue({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??XN)(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=XP(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&&QP(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function uue(){return(uue=s((()=>{ZN(),$P()})))()}function nF(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}}function due({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?GN:XN))(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=XP(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&&ZP(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];HM(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],iF(m)&&i(r.range,`BLOCK_IN_FLOW`,rF)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);iF(f)&&i(g.range,`BLOCK_IN_FLOW`,rF),n.atKey=!1;let _=XP(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?iF(m)&&i(v.range,`BLOCK_IN_FLOW`,rF):_.comment&&(g.comment?g.comment+=`
|
||
`+_.comment:g.comment=_.comment);let y=new BN(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;oue(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new GN(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=nF(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 rF,iF;function fue(){return(fue=s((()=>{KM(),VN(),KN(),ZN(),eF(),rF=`Block collections are not allowed within flow collections`,iF=e=>e&&(e.type===`block-map`||e.type===`block-seq`)})))()}function aF(e,t,n,r,i,a){let o=n.type===`block-map`?sue(e,t,n,r,a):n.type===`block-seq`?lue(e,t,n,r,a):due(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function pue(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===GN.tagName&&s===`map`||o===XN.tagName&&s===`seq`)return aF(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),aF(e,t,n,i,o)}let l=aF(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=jM(u)?u:new uN(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function mue(){return(mue=s((()=>{KM(),dN(),KN(),ZN(),cue(),uue(),fue()})))()}function hue(e,t,n){let r=t.offset,i=gue(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?uN.BLOCK_FOLDED:uN.BLOCK_LITERAL,o=t.source?_ue(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===uN.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 gue({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 _ue(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}function oF(){return(oF=s((()=>{dN()})))()}function vue(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=uN.PLAIN,c=yue(a,l);break;case`single-quoted-scalar`:s=uN.QUOTE_SINGLE,c=bue(a,l);break;case`double-quoted-scalar`:s=uN.QUOTE_DOUBLE,c=Sue(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=nF(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function yue(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]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),xue(e)}function bue(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),xue(e.slice(1,-1)).replace(/''/g,`'`)}function xue(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 Sue(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}=Cue(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=Tue[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+=wue(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 Cue(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 wue(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 Tue;function sF(){return(sF=s((()=>{dN(),Tue={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
|
||
`,r:`\r`,t:` `,v:`\v`,N:`
`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `}})))()}function Eue(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?hue(e,t,r):vue(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[IM]:c?Due(e.schema,i,c,n,r):t.type===`scalar`?Oue(e,i,t,r):e.schema[IM];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=UM(a)?a:new uN(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new uN(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 Due(e,t,n,r,i){if(n===`!`)return e[IM];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[IM])}function Oue({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[IM];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[IM];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}function kue(){return(kue=s((()=>{KM(),dN(),oF(),sF()})))()}function Aue(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}function jue(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=Mue(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=Eue(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=pue(Nue,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??=cF(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&&(!UM(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 cF(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=Eue(e,{type:`scalar`,offset:Aue(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 Mue({options:e},{offset:t,source:n,end:r},i){let a=new sN(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=nF(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}var Nue;function Pue(){return(Pue=s((()=>{cN(),KM(),mue(),kue(),Nue={composeNode:jue,composeEmptyNode:cF}})))()}function Fue(e,t,{offset:n,start:r,value:i,end:a},o){let s=Object.assign({_directives:t},e),c=new WP(void 0,s),l={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=XP(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(c.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!u.hasNewline&&o(u.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),c.contents=i?jue(l,i,u,o):cF(l,u.end,r,null,u,o);let d=c.contents.range[2],f=nF(a,d,!1,o);return f.comment&&(c.comment=f.comment),c.range=[n,d,f.offset],c}function Iue(){return(Iue=s((()=>{GP(),Pue()})))()}function lF(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 Lue(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 Rue;function uF(){return(uF=s((()=>{$M(),GP(),YP(),KM(),Iue(),Rue=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=lF(e);r?this.warnings.push(new aue(i,t,n)):this.errors.push(new qP(i,t,n))},this.directives=new QM({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=Lue(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(AM(i)&&!i.flow&&i.items.length>0){let e=i.items[0];HM(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:Lue(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=lF(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=Fue(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 qP(lF(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 qP(lF(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=nF(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 qP(lF(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=Object.assign({_directives:this.directives},this.options),n=new WP(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})))()}function zue(){return(zue=s((()=>{oF(),sF(),jN()})))()}function dF(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Bue(Object.freeze([]),e,t)}function Bue(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=Bue(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===fF)return fF;else r===pF&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}var fF,Vue,pF;function Hue(){return(Hue=s((()=>{fF=Symbol(`break visit`),Vue=Symbol(`skip children`),pF=Symbol(`remove item`),dF.BREAK=fF,dF.SKIP=Vue,dF.REMOVE=pF,dF.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},dF.parentCollection=(e,t)=>{let n=dF.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 Uue(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}function mF(){return(mF=s((()=>{zue(),Hue()})))()}function hF(e){switch(e){case void 0:case` `:case`
|
||
`:case`\r`:case` `:return!0;default:return!1}}var gF,Wue,_F,Gue,vF,Kue;function yF(){return(yF=s((()=>{mF(),gF=new Set(`0123456789ABCDEFabcdef`),Wue=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),_F=new Set(`,[]{}`),Gue=new Set(` ,[]{}
|
||
\r `),vF=e=>!e||Gue.has(e),Kue=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===`...`)&&hF(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}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===`...`)&&hF(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&&!hF(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===`:`)&&hF(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(vF),`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(`...`))&&hF(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(vF),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||hF(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=>hF(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.indentNext=this.blockScalarIndent===-1?t: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(hF(r)||e&&_F.has(r))break;t=n}else if(hF(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
|
||
`?(n+=1,r=`
|
||
`,i=this.buffer[n+1]):t=n),i===`#`||e&&_F.has(i))break;if(r===`
|
||
`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&_F.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(vF),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(hF(n)||t&&_F.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(;!hF(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Wue.has(t))t=this.buffer[++e];else if(t===`%`&&gF.has(this.buffer[e+1])&&gF.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)}}})))()}var que;function Jue(){return(Jue=s((()=>{que=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 bF(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Yue(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 Xue(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 xF(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 SF(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 CF(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 Zue(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!bF(t.start,`explicit-key-ind`)&&!bF(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,Xue(t.value)?t.value.end?CF(t.value.end,t.sep):t.value.end=t.sep:CF(t.start,t.sep),delete t.sep)}var Que;function wF(){return(wF=s((()=>{mF(),yF(),Que=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 Kue,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=Uue(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`&&Zue(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}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&&Yue(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`:Yue(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=SF(xF(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)){CF(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(bF(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=SF(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(bF(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(Xue(t.key)&&!bF(t.sep,`newline`)){let e=SF(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]}):bF(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&&!bF(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)){CF(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||bF(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=SF(xF(t));Zue(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=SF(xF(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=SF(xF(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 $ue(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new que||null,prettyErrors:t}}function ede(e,t={}){let{lineCounter:n,prettyErrors:r}=$ue(t),i=new Que(n?.addNewLine),a=new Rue(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 qP(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(JP(e,n)),o.warnings.forEach(JP(e,n))),o}function tde(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=ede(e,n);if(!i)return null;if(i.warnings.forEach(e=>Sle(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 TF(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 BM(e)&&!r?e.toString(n):new WP(e,r,n).toString(n)}function nde(){return(nde=s((()=>{uF(),GP(),YP(),KM(),Jue(),wF()})))()}function rde(){return(rde=s((()=>{uF(),GP(),HP(),cN(),VN(),dN(),KN(),ZN(),mF(),yF(),wF(),nde(),ZM()})))()}function EF(){return(EF=s((()=>{rde()})))()}var DF;function OF(){return(OF=s((()=>{DF=({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]))}})))()}var kF;function ide(){return(ide=s((()=>{kF=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ`,`a`],[`ُ`,`u`],[`ِ`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]])})))()}var AF,jF;function ade(){return(ade=s((()=>{AF=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],jF={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:AF,nb:AF,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(jF))jF[e]=new Map(jF[e])})))()}function ode(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=lde(t.locale),r=[...t.customReplacements],i=kF,a=cde;if(n&&({replacements:i,pattern:a}=NF.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 sde,MF,cde,NF,lde;function ude(){return(ude=s((()=>{ide(),ade(),sde=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),MF=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>sde(e)).join(`|`),`gu`)},cde=MF(kF),NF=new Map;for(let[e,t]of Object.entries(jF)){let n=new Map(kF);for(let[e,r]of t)n.set(e,r);NF.set(e,{replacements:n,pattern:MF(n)})}lde=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(jF,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(jF,n))return n}})))()}var PF;function FF(){return(FF=s((()=>{PF=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t))})))()}var dde,fde,IF;function LF(){return(LF=s((()=>{ude(),md(),FD(),aM(),qK(),FF(),dde=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],fde=new Map,IF=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=A(VK)??{},u=r??s,d=e;if(a&&(d=ode(d.normalize(`NFD`),{locale:n&&dde.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=PF(fde,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=dd(`short`)),typeof u==`number`&&d.length>u&&(d=AD(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}})))()}var pde;function mde(){return(mde=s((()=>{pde=`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(`.`)})))()}var RF;function hde(){return(hde=s((()=>{RF={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 gde(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function _de(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function vde(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function yde(e){return vde(e)||gde(e)}function bde(){return(bde=s((()=>{})))()}function xde(e){let t=`&`+e+`;`;zF.innerHTML=t;let n=zF.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var zF;function Sde(){return(Sde=s((()=>{zF=document.createElement(`i`)})))()}function Cde(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`?yde:u===`decimal`?gde:_de;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&pde.includes(y)&&(_=y,v=xde(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&xde(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=``):yde(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(wde(e))h(7,S),C=`�`;else if(e in RF)h(6,S),C=RF[e];else{let t=``;Tde(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,Ede[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function wde(e){return e>=55296&&e<=57343||e>1114111}function Tde(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 Ede;function Dde(){return(Dde=s((()=>{mde(),hde(),bde(),Sde(),Ede=[``,`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`]})))()}var BF,VF;function HF(){return(HF=s((()=>{bM(),BF=(e,t)=>{if(!e.includes(`{{`))return e;let{innerTag:n}=e.match(Yce)?.groups??{};return n===void 0?e:String(t(n)??``)},VF=(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=BF(n,t);e!==n&&(a.defaultValue=e,o=!0)}if(r!==void 0){let e=BF(r,t);e!==r&&(a.truthyValue=e,o=!0)}if(i!==void 0){let e=BF(i,t);e!==i&&(a.falsyValue=e,o=!0)}return o?{...e,args:a}:e})})))()}var UF=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 ee||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new ee(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var ee=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),te=ee.prototype;return w.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,ee,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),WF=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)}}}))})),GF=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)}}}))})),KF=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)}}}))})),Ode,qF,JF,YF;function XF(){return(XF=s((()=>{Ode=new Set([`local`,`utc`]),qF=new WeakMap,JF=e=>typeof e==`string`&&!Ode.has(e),YF=e=>{let t=qF.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:JF(v)?v:void 0};return qF.set(e,y),y}})))()}var ZF,kde,Ade,jde,Mde,Nde,Pde,Fde,Ide,QF,Lde,Rde,zde,Bde,Vde,Hde,Ude,$F;function eI(){return(eI=s((()=>{FD(),ZF=u(UF(),1),kde=u(WF(),1),Ade=u(GF(),1),jde=u(KF(),1),LF(),XF(),ZF.default.extend(kde.default),ZF.default.extend(Ade.default),ZF.default.extend(jde.default),Mde=/\s*\|\s*/,Nde=/^\d{4}-[01]\d-[0-3]\d$/,Pde=/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/,Fde=Object.entries({date:/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,default:/^default\('(?<defaultValue>.+?)'\)$/,ternary:/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,truncate:/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/}),Ide=e=>{for(let[t,n]of Fde){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:{}}},QF=e=>{let[t,...n]=e.trim().split(Mde);return{value:t,transformations:n.map(e=>Ide(e))}},Lde=e=>String(e).toUpperCase(),Rde=e=>String(e).toLowerCase(),zde=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=YF(r),s=(n===`utc`||o||a&&i.match(Nde)||a&&i.match(Pde)?ZF.default.utc:ZF.default)(i);return s.isValid()?s.format(t):``},Bde=(e,{defaultValue:t})=>e?String(e):t,Vde=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Hde=(e,{max:t,ellipsis:n=`…`})=>AD(String(e),Number(t),{ellipsis:n}),Ude=({fieldConfig:e,value:t,transformation:n,locale:r})=>{let{method:i,args:a}=n;switch(i){case`upper`:return Lde(t);case`lower`:return Rde(t);case`slugify`:return IF(String(t),{locale:r});case`date`:return zde(t,a,e??{});case`default`:return Bde(t,a);case`ternary`:return Vde(t,a);case`truncate`:return Hde(t,a);default:return String(t)}},$F=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=Ude({fieldConfig:e,value:t,transformation:n,locale:r})}),t)})))()}var tI,nI,rI,iI,aI,oI,sI;function cI(){return(cI=s((()=>{aM(),qK(),gL(),sL(),tI=e=>!(`divider`in e)&&typeof e.file==`string`&&Array.isArray(e.fields),nI=e=>e.filter(e=>tI(e)),rI=(e,t)=>{let n=typeof e==`string`?iL(e):e;if(!(!n||!(`_fileMap`in n)))return n._fileMap[t]},iI=e=>e.label||e.name,aI=(e,t)=>`_fileMap`in e?Object.values(e._fileMap).filter(({_file:e,_i18n:n})=>e.fullPath===t.locales[n.defaultLocale]?.path):[],oI=(e,t)=>{let n=A(uL).find(({collectionName:n,fileName:r})=>n===e&&r===t);if(!n?.filePathMap)return;let r=new Set(Object.values(n.filePathMap));return A(dL).find(e=>Object.values(e.locales).some(({path:e})=>r.has(e)))},sI=(e,t)=>{if(e&&t){let{collections:n,singletons:r}=A(VK);if(e===`_singletons`)return Array.isArray(r)?nI(r).findIndex(e=>e.name===t):-1;let i=tL({collections:n}).find(({name:t})=>t===e);if(i&&`files`in i)return i.files.findIndex(({name:e})=>e===t)}return-1}})))()}var lI,uI,dI,Wde;function fI(){return(fI=s((()=>{lI=[`boolean`,`code`,`color`,`compute`,`datetime`,`file`,`hidden`,`image`,`keyvalue`,`list`,`map`,`markdown`,`number`,`object`,`relation`,`richtext`,`select`,`string`,`text`,`uuid`],uI=[`file`,`image`],dI=[...uI,`relation`,`select`],Wde=[...dI,`datetime`,`keyvalue`,`list`,`number`]})))()}var pI,mI,hI,gI,_I,vI;function yI(){return(yI=s((()=>{pI=new Map,mI=new Map,hI=new Map,gI=new Set,_I=new Map,vI=new Set})))()}var bI,Gde,xI;function SI(){return(SI=s((()=>{bI={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},Gde={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"},xI=(e,t)=>{bI[e]||(console.warn(t??Gde[e]),bI[e]=!0)}})))()}var Kde,CI,wI,TI,EI;function DI(){return(DI=s((()=>{Z(),sL(),Kde=`_index`,CI=new WeakMap,wI=e=>{if(!QI(e))return;let{index_file:t}=e;if(t)return(t===!0?void 0:t.name)??Kde},TI=e=>{let t=CI.get(e);if(t&&t.locale===Bu.current)return t.indexFile;let n=wI(e),r;if(n!==void 0){let{index_file:t}=e,i=t===!0?{}:t;r={name:n,label:i.label??X(`index_file`),icon:i.icon??`home`,fields:i.fields,editor:i.editor}}return CI.set(e,{locale:Bu.current,indexFile:r}),r},EI=(e,t)=>{let n=wI(e);return n!==void 0&&t.slug===n}})))()}var OI,kI,qde,Jde,Yde,Xde,AI,Zde;function jI(){return(jI=s((()=>{OI=[`markdown`,`md`,`mdown`,`mdwn`,`mdx`,`mkd`,`mkdn`,`html.md`],kI=[`njk`],qde=[...OI,...kI],Jde={raw:`txt`,yaml:`yml`,yml:`yml`,toml:`toml`,json:`json`},Yde={yaml:`yaml`,yml:`yaml`,toml:`toml`,json:`json`,astro:`raw`},Xde={"json-frontmatter":[`{`,`}`],"toml-frontmatter":[`+++`,`+++`],"yaml-frontmatter":[`---`,`---`]},AI=[`yaml-frontmatter`,`toml-frontmatter`,`json-frontmatter`],Zde=[`toml`,`toml-frontmatter`]})))()}var Qde,MI,NI,PI,FI,II,LI,RI;function zI(){return(zI=s((()=>{Z(),Qde={type:`language`,languageDisplay:`standard`,style:`short`,fallback:`none`},MI=e=>{let t;if(e!==`_default`)try{[t]=Intl.getCanonicalLocales(e)}catch{}return t},NI=e=>e===`_default`?`auto`:Mu(e)?`rtl`:`ltr`,PI=new Map,FI=(e,{displayLocale:t=MI(Bu.current??`en`),formatterOptions:n=Qde}={})=>{let r=MI(e);if(!r)return;let i;t?(i=PI.get(t),i||(i=new Intl.DisplayNames(t,n),PI.set(t,i))):i=new Intl.DisplayNames(void 0,n);try{let e=i.of(r);if(!e)return;let[n,...a]=e;return[n.toLocaleUpperCase(t),...a].join(``)}catch(e){console.error(e);return}},II=new Map,LI=(e,t={})=>{let n={style:`narrow`,type:`conjunction`,...t},r=`${e}|${n.style}|${n.type}`,i=II.get(r);return i||(i=new Intl.ListFormat(MI(e),n),II.set(r,i)),i},RI=({_i18n:e,locale:t,path:n})=>{let{defaultLocale:r,omitDefaultLocaleFromFilePath:i}=e;return i&&t===r&&(n=n.replace(/{{locale}}[./]/,``)),n.replaceAll(`{{locale}}`,t)}})))()}var BI,$de,efe,tfe,VI,HI;function UI(){return(UI=s((()=>{hM(),FD(),yI(),bM(),SI(),sL(),DI(),jI(),zI(),BI=({extension:e,format:t})=>(t?hI.get(t)?.extension:void 0)||e||(t?Jde[t]??`md`:`md`),$de=({extension:e,format:t})=>t||(OI.includes(e)?`frontmatter`:Yde[e]??`yaml-frontmatter`),efe=(e,t)=>e?`(?<subPath>${kD(e).replace(yM,`[^/]+?`)}${t?`|${t}`:``})`:`(?<subPath>[^/]+?)`,tfe=({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?`${kD(n)}\\/`:``,u?m:``,efe(r,i),l?h:``,`\\.`,kD(BI({format:t,extension:e})),`$`].join(``);return new RegExp(g)},VI=({format:e,delimiter:t})=>typeof t==`string`&&t.trim()?[t,t]:Array.isArray(t)&&t.length===2?t:Xde[e]??void 0,HI=({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=QI(e),d=t?.file?jD(t.file):void 0,f=d?pM(d).extension:a,p=t?.format??o,m=BI({format:p,extension:f}),h=$de({format:p,extension:m}),g=t?.frontmatter_delimiter??s,_=u?jD(r):void 0,v=u?TI(e)?.name:void 0;return l!==void 0&&xI(`yaml_quote`),{extension:m,format:h,basePath:_,subPath:u?i:void 0,fullPathRegEx:_===void 0?void 0:tfe({extension:m,format:h,basePath:_,subPath:i,indexFileName:v,_i18n:n}),fullPath:d?RI({_i18n:n,locale:n.defaultLocale,path:d}):void 0,fmDelimiters:VI({format:h,delimiter:g}),bodyField:t?.body_field??c,yamlQuote:!!l}}})))()}var WI,GI,KI,qI,nfe,rfe,ife,afe,ofe,sfe,JI;function YI(){return(YI=s((()=>{v(),aM(),qK(),SI(),sL(),WI={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`},GI=`_default`,KI={key:`translationKey`,value:`{{slug}}`},qI={i18nEnabled:!1,saveAllLocales:!0,allLocales:[GI],initialLocales:[GI],defaultLocale:GI,structure:WI.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nSingleFileDefaultRoot:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nMultiRootFolder:!1},canonicalSlug:{...KI},omitDefaultLocaleFromFilePath:!1,omitDefaultLocaleFromPreviewPath:!1},nfe=(e,t)=>{let n=A(VK);if(!g(n.i18n))return;let r=structuredClone(n.i18n);if(e.i18n||eL(e)){if(g(e.i18n)&&Object.assign(r,e.i18n),t){if(t.i18n)g(t.i18n)&&Object.assign(r,t.i18n);else return}}else return;return r},rfe=(e,t)=>t?t.file.includes(`{{locale}}`)?WI.MULTIPLE_FILES:e===WI.SINGLE_FILE_DEFAULT_ROOT?WI.SINGLE_FILE_DEFAULT_ROOT:WI.SINGLE_FILE:e,ife=(e,t)=>({i18nSingleFile:e&&t===WI.SINGLE_FILE,i18nSingleFileDefaultRoot:e&&t===WI.SINGLE_FILE_DEFAULT_ROOT,i18nMultiFile:e&&t===WI.MULTIPLE_FILES,i18nMultiFolder:e&&t===WI.MULTIPLE_FOLDERS,i18nMultiRootFolder:e&&(t===WI.MULTIPLE_FOLDERS_I18N_ROOT||t===WI.MULTIPLE_ROOT_FOLDERS)}),afe=(e,t,n)=>e?n&&t.includes(n)?n:t[0]:GI,ofe=(e,t,n)=>e===`all`?t:e==="default"?[n]:t.filter(t=>t===n||!Array.isArray(e)||e.includes(t)),sfe=(e,t,n)=>e?n?/{{locale}}[./]/.test(n.file):t.i18nMultiFile||t.i18nMultiFolder||t.i18nMultiRootFolder:!1,JI=(e,t)=>{let n=nfe(e,t),{structure:r=WI.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&&xI(`save_all_locales`),l!==void 0&&xI(`omit_default_locale_from_filename`);let{key:f=KI.key,value:p=KI.value}=c,m=i.length>0,h=m?i:[GI],g=afe(m,h,a),_=rfe(r,t),v=ife(m,_),y=!m||s===!0&&o===void 0,b=ofe(o,h,g),x=sfe(u,v,t);return _===`multiple_folders_i18n_root`&&xI(`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}}})))()}var XI,ZI,QI,$I,eL,cfe,tL,lfe,ufe,dfe,nL,rL,iL,aL,oL;function sL(){return(sL=s((()=>{Z(),FD(),aM(),qK(),cI(),fI(),UI(),YI(),XI=sn(),ZI=new Map,QI=e=>typeof e.folder==`string`&&!Array.isArray(e.files),$I=e=>e.folder===void 0&&Array.isArray(e.files),eL=e=>$I(e)&&e.name===`_singletons`,cfe=(e,{visible:t=void 0,type:n=void 0}={})=>`divider`in e||t&&e.hide?!1:n===`entry`?QI(e):n===`file`?$I(e):n===`singleton`?eL(e):QI(e)||$I(e),tL=({collections:e=A(VK)?.collections??[],visible:t,type:n}={})=>e.filter(e=>cfe(e,{visible:t,type:n})),lfe=()=>tL({visible:!0})[0],ufe=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`})=>uI.includes(e)).map(({multiple:e,name:t})=>e?`${t}.*`:t):[]},dfe=(e,t)=>({...e,_i18n:t,_type:`entry`,_file:HI({rawCollection:e,_i18n:t}),_thumbnailFieldNames:ufe(e)}),nL=(e,t,n)=>({...e,_i18n:t,_type:eL(e)?`singleton`:`file`,_fileMap:Object.fromEntries(n.filter(tI).map(t=>{let n=JI(e,t),r=HI({rawCollection:e,file:t,_i18n:n});return[t.name,{...t,_file:r,_i18n:n}]}))}),rL=()=>{let e=A(VK)?.singletons;if(!Array.isArray(e))return;let t=nI(e).map(e=>({...e,file:jD(e.file)}));if(!t.length)return;let n={name:`_singletons`,files:t},r=JI(n);return nL(n,r,t)},iL=e=>{let t=ZI.get(e);if(t)return t;if(e===`_singletons`){let t=rL();return ZI.set(e,t),t}let n=tL().find(t=>t.name===e);if(!n){ZI.set(e,void 0);return}let r=QI(n)?n:void 0,i=$I(n)?n:void 0;if(!r&&!i){ZI.set(e,void 0);return}r?r.folder=jD(r.folder):i?.files.forEach(e=>{e.file&&=jD(e.file)});let a=JI(n),o=r?dfe(r,a):nL(i,a,i.files);return ZI.set(e,o),o},aL=(e,{useSingular:t=!1}={})=>{let{_type:n,name:r,label:i,label_singular:a}=e;return n===`singleton`?X(`files`):t&&a?a:i||r},oL=e=>e?e===`_singletons`?9999999:A(VK)?.collections?.findIndex(({name:t})=>t===e)??-1:-1})))()}var cL,lL,uL,dL,fL,pL,mL,hL;function gL(){return(gL=s((()=>{aM(),sL(),cL=sn(!1),lL=sn(),uL=sn([]),dL=sn([]),fL=sn([]),pL={source:void 0,fileMap:new Map,regexFolders:[]},mL=()=>{let e=A(uL);if(e===pL.source)return pL;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,iL(e.collectionName)?._file?.fullPathRegEx])}),pL.source=e,pL.fileMap=t,pL.regexFolders=n,pL},hL=e=>{let{fileMap:t,regexFolders:n}=mL();return[...t.get(e)??[],...n.filter(([,t])=>t?.test(e)).map(([e])=>e)].sort((e,t)=>(t.folderPath??``).localeCompare(e.folderPath??``))}})))()}var ffe=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}}}))})),_L,vL,yL,bL,xL,SL;function CL(){return(CL=s((()=>{_L=/^\d{4}-[01]\d-[0-3]\d$/,vL=/T00:00(?::00)?(?:\.000)?Z$/,yL={year:`numeric`,month:`short`,day:`numeric`},bL={hour:`numeric`,minute:`numeric`,hour12:!0},xL={...yL,...bL},SL=(e,t)=>e.toLocaleString(t??void 0,xL)})))()}var wL,TL,EL,DL,OL;function kL(){return(kL=s((()=>{XF(),wL=/(?<hours>[+-]\d{2})(?::?(?<minutes>\d{2}))?(?::?(?<seconds>\d{2}))?(?:\.\d+)?$|Z$/,TL=e=>String(Math.abs(Number(e))).padStart(2,`0`),EL=(e,t)=>{if(typeof e!=`string`||!e.trim())return;let{inputTimeZone:n}=YF(t);if(n===`local`||n===`utc`)return;let r=new Date(e);if(Number.isNaN(r.getTime()))return;let i=e.match(wL);if(!i?.groups)return;let{hours:a,minutes:o=`0`}=i.groups,s=i[0]===`Z`?`+00:00`:`${a.startsWith(`-`)?`-`:`+`}${TL(a)}:${TL(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},DL=(e,t)=>{let n=EL(e,t);if(n)return n;let{inputTimeZone:r,singleCustomTimeZone:i}=YF(t);if(i)return i;try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(r===`local`)return e}catch{return r===`local`?``:void 0}},OL=(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}}})))()}var AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL;function KL(){return(KL=s((()=>{OF(),AL=u(UF(),1),jL=u(WF(),1),ML=u(GF(),1),NL=u(ffe(),1),PL=u(KF(),1),zI(),CL(),XF(),kL(),AL.default.extend(jL.default),AL.default.extend(ML.default),AL.default.extend(PL.default),AL.default.extend(NL.default),FL=/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/,IL=/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/,LL=e=>e instanceof Date&&!Number.isNaN(e.getTime()),RL=e=>e?AL.default.utc:AL.default,zL=({value:e,format:t,parseAsUTC:n})=>{let r=RL(n),i=r(e,t);return i.isValid()?i:r(e)},BL=({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}=DF({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}`},VL=(e,t)=>{let{format:n,timeOnly:r,utc:i,outputUTC:a}=YF(t),o=i||a;if(!e)return;let s;if(n){let t=zL({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),LL(s))return s;console.error(`Invalid Date`,e)},HL=(e,t)=>{let{dateOnly:n,timeOnly:r,inputTimeZone:i}=YF(e);return BL({timeZone:t,inputTimeZone:i,dateOnly:n,timeOnly:r,includeUTCSeconds:!0})},UL=({inputValue:e,currentValue:t,fieldConfig:n,timeZone:r,outputUTC:i})=>{let{format:a,dateOnly:o,timeOnly:s,inputTimeZone:c,outputUTC:l}=YF(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=RL(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`?AL.default.utc(e).format():u?(r?AL.default.tz(e,r):(0,AL.default)(e)).utc().format():r&&c!==`local`?AL.default.tz(e,r).format(`YYYY-MM-DDTHH:mm:ssZ`):p?e:`${e}${m}`},WL=({currentValue:e,fieldConfig:t,timeZone:n})=>{let{dateOnly:r,timeOnly:i,inputTimeZone:a,format:o,outputUTC:s}=YF(t),c=EL(e,t)??n;if(!e)return``;let l=r?e.match(FL)?.groups?.date:i?e.match(IL)?.groups?.time:void 0;if(l)return l;let u;if(c&&o&&!s){try{let t=(0,AL.default)(e,o).tz(c,!0);u=t.isValid()?t.toDate():void 0}catch{}u??=VL(e,t)}else u=VL(e,t);return u?BL({date:u,timeZone:c,inputTimeZone:a,dateOnly:r,timeOnly:i}):``},GL=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o,singleCustomTimeZone:s}=YF(t),c=o?`UTC`:s;if(typeof n!=`string`||!n.trim())return``;if(r){let e=zL({value:n,format:r,parseAsUTC:o});return e.isValid()?e.format(r):(console.error(`Invalid Date`,n),``)}let l=VL(n,t),u=MI(e);return LL(l)?a?l.toLocaleTimeString(u,{...bL,timeZone:c}):i?l.toLocaleDateString(u,{...yL,timeZone:c||(o||_L.test(n)||vL.test(n)?`UTC`:void 0)}):l.toLocaleString(u,{...yL,...bL,timeZone:c,timeZoneName:void 0}):``}})))()}var qL;function JL(){return(JL=s((()=>{qL={"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(qL)})))()}var YL;function XL(){return(XL=s((()=>{YL={"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(YL)})))()}var ZL,QL,$L,eR,tR;function nR(){return(nR=s((()=>{ZL=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)},tR=class{constructor(...e){QL.set(this,new Map),$L.set(this,new Map),eR.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()),ZL(this,eR,`f`).has(n)||ZL(this,eR,`f`).set(n,new Set);let e=ZL(this,eR,`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&&ZL(this,$L,`f`).set(n,a),i=!1,r)continue;let o=ZL(this,QL,`f`).get(a);if(o&&o!=n&&!t)throw Error(`"${n} -> ${a}" conflicts with "${o} -> ${a}". Pass \`force=true\` to override this definition.`);ZL(this,QL,`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:ZL(this,QL,`f`).get(n)??null}getExtension(e){return typeof e==`string`?(e=e?.split?.(`;`)[0],(e&&ZL(this,$L,`f`).get(e.trim().toLowerCase()))??null):null}getAllExtensions(e){return typeof e==`string`?ZL(this,eR,`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 ZL(this,eR,`f`).values())Object.freeze(e);return this}_getTestState(){return{types:ZL(this,QL,`f`),extensions:ZL(this,$L,`f`)}}},QL=new WeakMap,$L=new WeakMap,eR=new WeakMap})))()}var rR;function iR(){return(iR=s((()=>{JL(),XL(),nR(),rR=new tR(YL,qL)._freeze()})))()}var aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR;function _R(){return(_R=s((()=>{aM(),qK(),aR=sn(!1),oR=sn(!1),sR=sn(!1),cR=`https://console.cloudinary.com/console/media_library`,lR=new URL(cR).origin,uR=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],dR=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],fR=e=>{let t=A(VK);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},pR=new Map,mR=e=>{let t=e?JSON.stringify(e):`global`,n=pR.get(t);if(n)return n;let r=fR()||{config:{}},i=fR(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return pR.set(t,a),a},hR=e=>{let t=fR(e)??fR(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},gR={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:hR}})))()}var vR,yR,bR,xR,SR,CR,wR,TR,ER,DR;function OR(){return(OR=s((()=>{hM(),FD(),iR(),vR=[`image`,`video`,`audio`],yR=[`image`,`video`],bR=[...vR,`document`,`other`],xR=/\.(?:csv|docx?|odp|ods|odt|pdf|pptx?|rtf|xlsx?)$/i,SR=/^(?<type>image|video|audio)\//,CR=e=>vR.includes(e),wR=e=>{let t=rR.getType(e.path);return CR(e.kind)||t===`application/pdf`||!!t&&fM(t)},TR=async e=>{let t=``;if(typeof e==`string`){if(e.startsWith(`blob:`))try{t=(await(await fetch(e)).blob()).type}catch{}else{if(ND(e)){let{hostname:t,pathname:n}=new URL(e);if(t.startsWith(`images.`))return`image`;e=n}t=rR.getType(e)??``}}else e instanceof Blob&&(t=e.type);if(!t)return;let[n,r]=t.split(`/`);if(CR(n)&&!r.startsWith(`x-`))return n},ER=e=>{let t=rR.getType(e.path);return!!t&&fM(t)},DR=e=>rR.getType(e)?.match(SR)?.groups?.type??(xR.test(e)?`document`:`other`)})))()}var kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR;function BR(){return(BR=s((()=>{rd(),aM(),OR(),qK(),kR=(e,t=A(VK))=>t?.media_libraries?.[e]??(t?.media_library?.name===e?t?.media_library:void 0),AR=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)},jR=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(``)},MR=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 jR(g)].join(`
|
||
`),b=await AR(`AWS4${a}`,d),x=await AR(b,o),S=await AR(x,s),C=await AR(S,`aws4_request`),w=await AR(C,y),T=Array.from(w).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${T}`].join(` `)},NR=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 jR(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await MR({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}})},PR=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)},FR=({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}`,IR=(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=FR({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:DR(t)}})},LR=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 NR({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=PR(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 nd(50)}let f=c?u.filter(e=>DR(e.Key)===c):u;return IR(f,e)},RR=async(e,t,n)=>{let r=await LR(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},zR=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 NR({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 nd(50)}return IR(l,t)}})))()}var VR,HR,UR,WR,GR,KR,qR;function JR(){return(JR=s((()=>{BR(),VR=e=>kR(`aws_s3`,e),HR=e=>{let t=VR(e)??VR();return!!(t&&t.access_key_id&&t.bucket&&t.region)},UR=({fieldConfig:e})=>{let t=VR(e)??VR();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},WR=async e=>LR(UR(e),e),GR=async(e,t)=>RR(e,UR(t),t),KR=async(e,t)=>zR(e,UR(t),t),qR={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:HR,list:WR,search:GR,upload:KR}})))()}var YR,XR,ZR,QR,$R,ez,tz;function nz(){return(nz=s((()=>{BR(),YR=e=>kR(`backblaze_b2`,e),XR=e=>{let t=YR(e)??YR();return!!(t&&t.access_key_id&&t.bucket&&t.region)},ZR=({fieldConfig:e})=>{let t=YR(e)??YR();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`}},QR=async e=>LR(ZR(e),e),$R=async(e,t)=>RR(e,ZR(t),t),ez=async(e,t)=>zR(e,ZR(t),t),tz={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:XR,list:QR,search:$R,upload:ez}})))()}var rz,iz,az,oz,sz,cz,lz,uz,dz;function fz(){return(fz=s((()=>{BR(),rz={default:``,eu:`eu.`,fedramp:`fedramp.`},iz=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${rz[t]??``}r2.cloudflarestorage.com`,az=e=>kR(`cloudflare_r2`,e),oz=e=>{let t=az(e)??az();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},sz=({fieldConfig:e})=>{let t=az(e)??az();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:iz(t)}},cz=async e=>LR(sz(e),e),lz=async(e,t)=>RR(e,sz(t),t),uz=async(e,t)=>zR(e,sz(t),t),dz={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:oz,list:cz,search:lz,upload:uz}})))()}var pz,mz,hz,gz,_z,vz,yz;function bz(){return(bz=s((()=>{BR(),pz=e=>kR(`digitalocean_spaces`,e),mz=e=>{let t=pz(e)??pz();return!!(t&&t.access_key_id&&t.bucket&&t.region)},hz=({fieldConfig:e})=>{let t=pz(e)??pz();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`}},gz=async e=>LR(hz(e),e),_z=async(e,t)=>RR(e,hz(t),t),vz=async(e,t)=>zR(e,hz(t),t),yz={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:mz,list:gz,search:_z,upload:vz}})))()}var xz,Sz,Cz,wz,Tz,Ez,Dz;function Oz(){return(Oz=s((()=>{BR(),xz=e=>kR(`scaleway_object_storage`,e),Sz=e=>{let t=xz(e)??xz();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Cz=({fieldConfig:e})=>{let t=xz(e)??xz();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`}},wz=async e=>LR(Cz(e),e),Tz=async(e,t)=>RR(e,Cz(t),t),Ez=async(e,t)=>zR(e,Cz(t),t),Dz={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:Sz,list:wz,search:Tz,upload:Ez}})))()}var kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz;function Rz(){return(Rz=s((()=>{BR(),kz=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,Az=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,jz=e=>kR(`supabase_storage`,e),Mz=e=>{let t=jz(e)??jz();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},Nz=({fieldConfig:e})=>{let t=jz(e)??jz();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:kz(t),public_url:t.public_url??Az(t)}},Pz=async e=>LR(Nz(e),e),Fz=async(e,t)=>RR(e,Nz(t),t),Iz=async(e,t)=>zR(e,Nz(t),t),Lz={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:Mz,list:Pz,search:Fz,upload:Iz}})))()}var pfe=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}})),mfe=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}})),hfe=c(((e,t)=>{var n=pfe(),r=mfe();t.exports=n.bind(null,r)})),gfe=c(((e,t)=>{var n=hfe(),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,``)}})),zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z;function eB(){return(eB=s((()=>{Z(),md(),hM(),FD(),zz=u(gfe(),1),LF(),Bz=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),Vz=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},Hz=e=>decodeURIComponent(e),Uz=new Map,Wz=e=>{let t=Bu.current,n=Uz.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),Uz.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?X(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?X(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?X(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?X(`file_size_units.gb`,{values:{size:n.format(e/a)}}):X(`file_size_units.tb`,{values:{size:n.format(e/o)}})},Gz=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=pM(e),i=RegExp(`^${kD(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>PD(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},Kz=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,zz.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=pM(r);r=`${IF(e)}${t?`.${t.toLowerCase()}`:``}`}return Gz(r,n)},qz=[[`jpg`,`jpeg`,`jpe`,`jfif`],[`tif`,`tiff`],[`htm`,`html`],[`yml`,`yaml`],[`md`,`markdown`],[`mpg`,`mpeg`],[`mid`,`midi`],[`aif`,`aiff`]],Jz=(e,t)=>{let n=e?.toLowerCase()??``,r=t?.toLowerCase()??``;return n===r||qz.some(e=>e.includes(n)&&e.includes(r))},Yz=e=>e.filter(Boolean).join(`/`),Xz=e=>e.split(`/`).filter(e=>e!==`.`&&e!==`..`).join(`/`),Zz=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}),Yz(t)},Qz=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,$z=async e=>{let t=await Qz(e).arrayBuffer();return pd(new Blob([`blob ${t.byteLength}\0`,t]))}})))()}var tB,nB,rB,iB,aB,oB,sB,cB,lB,uB;function dB(){return(dB=s((()=>{rd(),aM(),qK(),eB(),tB=(e=A(VK))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),nB=e=>{let t=tB(e)??tB();return t?t.config?.publicKey:void 0},rB=e=>!!nB(e),iB=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(tB(t)??tB())||{};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`}})},aB=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=nB(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 nd(50)}return iB(l,{fieldConfig:i})},oB=async e=>aB(e),sB=async(e,t)=>{let n=e.toLowerCase();return aB(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},cB=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(``)},lB=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=nB(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 cB(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(Kz(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 iB(u,{fieldConfig:n})},uB={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:rB,list:oB,search:sB,upload:lB}})))()}var fB,pB;function mB(){return(mB=s((()=>{_R(),JR(),nz(),fz(),bz(),Oz(),Rz(),dB(),fB={aws_s3:qR,backblaze_b2:tz,cloudflare_r2:dz,cloudinary:gR,digitalocean_spaces:yz,scaleway_object_storage:Dz,supabase_storage:Lz,uploadcare:uB},pB=Object.keys(fB)})))()}var hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB;function kB(){return(kB=s((()=>{hB=`@sveltia/cms`,gB=`0.188.0`,_B=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,vB=[`svelte`,`cms`,`content-management-system`],yB=`https://sveltiacms.app/en/`,bB={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},xB={type:`github`,url:`https://github.com/sponsors/kyoshino`},SB={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},CB=`module`,wB={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`},TB={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.49.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.3`,"@sveltia/ui":`^0.62.0`,"@sveltia/utils":`^0.12.0`,"create-react-class":`^15.7.0`,dayjs:`^1.11.21`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.9`,"isomorphic-dompurify":`^3.22.0`,leaflet:`^1.9.4`,lexical:`^0.49.0`,marked:`^18.0.9`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^6.2.108`,qrcode:`^1.5.4`,react:`^19.2.8`,"react-dom":`^19.2.8`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.7.1`,svgo:`^4.0.2`,"terra-draw":`^1.32.3`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},EB={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.3.0`,"@types/leaflet":`^1.9.22`,"@types/node":`^26.2.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.18`,"@types/react-dom":`^19.2.4`,"@vitest/coverage-v8":`^4.1.10`,cspell:`^10.0.1`,eslint:`^9.39.5`,"eslint-config-airbnb-extended":`^3.2.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^64.1.0`,"eslint-plugin-package-json":`^1.7.0`,"eslint-plugin-svelte":`^3.22.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.9.0`,oxlint:`^1.78.0`,"postcss-html":`^2.0.0`,prettier:`^3.9.6`,"prettier-plugin-svelte":`^4.1.1`,sonda:`^0.14.0`,stylelint:`^17.14.1`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.56.8`,"svelte-check":`^4.7.5`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.2.1`,vitest:`^4.1.10`},DB={directory:`package`,access:`public`,provenance:!0},OB={name:hB,version:gB,description:_B,keywords:vB,homepage:yB,repository:bB,funding:xB,license:`MIT`,author:SB,type:CB,scripts:wB,dependencies:TB,devDependencies:EB,publishConfig:DB}})))()}var AB,jB,MB;function NB(){return(NB=s((()=>{kB(),{dependencies:AB,version:jB}=OB,MB=`https://unpkg.com/@sveltia/cms`})))()}var PB,FB;function IB(){return(IB=s((()=>{NB(),oO(),PB=e=>{let t=`https://unpkg.com/${e}`,n=AB[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},FB=async(e,t)=>aO(()=>import(`${PB(e)}/${t}`),void 0)})))()}var LB,RB,zB,BB,VB,HB,UB,WB;function GB(){return(GB=s((()=>{LB=[`avif`,`gif`,`jpeg`,`png`,`webp`],RB=LB.map(e=>`image/${e}`),zB=/\b(?:avif|gif|jpe?g|png|webp)$/i,BB=[`svg`],VB=[`image/svg+xml`],HB=/\b(?:svg)$/i,[...LB,...BB],UB=[...RB,...VB],WB=[`webp`]})))()}var KB,qB,JB;function YB(){return(YB=s((()=>{IB(),GB(),KB={},qB=async e=>{if(e in KB)return KB[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return KB[e]=r,r},JB=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await qB(t)&&WB.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await FB(`@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})}})))()}var XB,ZB;function QB(){return(QB=s((()=>{XB=({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}},ZB=(e,t,n)=>{let{scale:r,width:i,height:a}=XB(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})))()}var $B,eV,tV,nV,rV,iV;function aV(){return(aV=s((()=>{IB(),YB(),QB(),$B={format:`webp`,quality:85,width:512,height:512,fit:`contain`},eV=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise((e,r)=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{URL.revokeObjectURL(t),r(Error(`Failed to decode image`))},{once:!0}),n.src=t})},tV=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise((e,r)=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{document.body.removeChild(n),URL.revokeObjectURL(t),r(Error(`Failed to decode video`))},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n),n.src=t})},nV=async e=>e.type.startsWith(`video/`)?tV({blob:e}):eV({blob:e}),rV=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 nV(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return ZB(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),JB(l,{format:t,quality:n})},iV=async e=>{let t=await e.text();try{let{optimize:n}=await FB(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})))()}var oV,sV,cV,lV,uV,dV;function fV(){return(fV=s((()=>{IB(),YB(),QB(),oO(),oV=PB(`pdfjs-dist`),sV=`${oV}/build/pdf.min.mjs`,cV=`${oV}/build/pdf.worker.min.mjs`,lV={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${oV}/cmaps/`,iccUrl:`${oV}/iccs/`,standardFontDataUrl:`${oV}/standard_fonts/`,wasmUrl:`${oV}/wasm/`},dV=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!uV)try{uV=await aO(()=>import(sV),void 0),uV.GlobalWorkerOptions.workerSrc=cV}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 uV.getDocument({...lV,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=ZB(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 JB(s,{format:t,quality:n})}})))()}var pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV;function EV(){return(EV=s((()=>{hM(),rd(),sM(),FD(),iR(),aM(),Tq(),kM(),WZ(),bM(),qK(),mB(),_R(),eB(),aV(),fV(),pV=/^(?:https?|data|blob):/,mV=new Set,hV=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(mV.has(o)&&t<=25)return await nd(200),hV(e,t+1);mV.add(o);let n=await A(HZ)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:rR.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),mV.delete(o),s},gV=async e=>(e.blobURL||await hV(e),e.blobURL),_V=void 0,vV=new Map,yV=()=>{if(_V===void 0){let{databaseName:e}=A(HZ)?.repository??{};_V=e?new oM(e,`asset-thumbnails`):null}},bV=async(e,t)=>{let n=await _V?.get(e.sha);if(!n){let r=await hV(e);n=await(t?dV:rV)(r,$B),await _V?.set(e.sha,n)}return n},xV=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;yV();let{sha:r}=e,i=vV.get(r);if(!i){if(t){let e=await _V?.get(r);return e?URL.createObjectURL(e):void 0}i=bV(e,n).finally(()=>{vV.delete(r)}),vV.set(r,i)}let a=await i;return a?URL.createObjectURL(a):void 0},SV=({blobURL:e})=>{window.requestAnimationFrame(()=>{e&&!document.querySelector(`[src="${e}"]`)&&(URL.revokeObjectURL(e),delete A(iq).find(t=>t.blobURL===e)?.blobURL)})},CV=(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:DM(e.path).find(({collectionName:e})=>e!==void 0)??A(SM);if(a){if(t){let t=pM(e.path).dirname,n=r?pM(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===Yz([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(VK),l=o?e.path.replace(Bz(e.folder.internalPath??``,e=>{let t=e.match(vM)?.[1];return t?`(?<${t}>[^/]+)`:kD(e)}),i?.replaceAll(qce,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=Vz(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},wV=e=>{if(fB.cloudinary?.isEnabled?.()){let t=mR(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},TV=async({value:e,entry:t,collectionName:n,fileName:r,componentName:i,fieldConfig:a,typedKeyPath:o,thumbnail:s=!1})=>{if(!e)return;if(pV.test(e))return e;if(yq(e)){let t=wV(a);if(t)return`${t}/${e}`}let c=bq({value:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:o});if(c)return(s?await xV(c):await gV(c))??CV(c)}})))()}var DV,OV,kV,AV,jV,MV,NV,PV,FV;function IV(){return(IV=s((()=>{OF(),DV=u(UF(),1),OV=u(WF(),1),kV=u(GF(),1),AV=u(KF(),1),aM(),WZ(),ZU(),qK(),gL(),sL(),DI(),XF(),KL(),DV.default.extend(OV.default),DV.default.extend(kV.default),DV.default.extend(AV.default),jV=/{{(?:year|month|day|hour|minute|second)}}/,MV=e=>hL(Object.values(e.locales)[0].path).map(({collectionName:e})=>iL(e)).filter(e=>!!e),NV=({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=VL(i,a);if(!LL(o))return;let{utc:s,outputUTC:c}=YF(a);return DF({date:o,timeZone:s||c?`UTC`:void 0})},PV=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=A(VK)??{},{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=EI(n,e),h=(m?TI(n):void 0)?.fields??d,g;if(jV.test(l)&&(g=NV({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=XU(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},FV=(e,t)=>`${A(HZ)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`})))()}var LV,RV;function zV(){return(zV=s((()=>{LV=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,RV=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(LV)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}}})))()}var BV,VV,HV,UV,WV,GV,KV;function qV(){return(qV=s((()=>{aM(),EV(),qK(),gL(),sL(),DI(),cI(),IV(),EU(),fI(),zV(),BV=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,VV=sn([]),HV=cn(VV,e=>new Set(e.map(e=>e.id))),UV=e=>{let t=iL(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=RV(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=>MV(t).some(({name:t})=>t===e)}else{let t=new Set(A(uL).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return A(dL).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=xU({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},WV=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=mU({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(uI.includes(p)){let n=d?await TV({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(BV)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await TV({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},GV=async(e,{entries:t=A(dL),newURL:n=``}={})=>{let r=A(VK)?._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=MV(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:EI(a,e)},u=aI(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>WV({...r,collectionFile:e})))).includes(!0):await WV({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},KV=e=>{let t=TI(e);return t?!UV(e.name).some(({slug:e})=>e===t.name):!1}})))()}var JV,YV,XV,ZV,QV;function $V(){return($V=s((()=>{JV=new WeakMap,YV=e=>{let t=JV.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),JV.set(e,n),n},XV=new WeakMap,ZV=0,QV=e=>(XV.has(e)||(XV.set(e,ZV),ZV+=1),XV.get(e))})))()}var eH,tH;function nH(){return(nH=s((()=>{ZU(),eH=e=>JU(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,tH=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n}})))()}var rH,iH,aH,oH;function sH(){return(sH=s((()=>{YO(),ZU(),RU(),nH(),rH=(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)||kU(o,{identifierField:l})||kU(s[c]?.content||{},{identifierField:l})||r},iH=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=rH(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},aH=e=>{let t=[];return qU(e,(e,n)=>(t.push(n),``)),t},oH=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=eH(n??`{{slug}}`),o=r.map(eH).join(` `),s=i.map(eH).join(` `),c=JO([...aH(o),...aH(a),...aH(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}}})))()}var cH,lH,uH,dH,fH,pH,mH,hH,gH;function _H(){return(_H=s((()=>{FD(),EU(),nH(),sH(),FF(),cH=/\.(\d+)$/,lH=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=mU({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:tH(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},uH=new Map,dH=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=PF(uH,e,()=>RegExp(`^${kD(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match(cH);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}=iH(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},fH=/^(.+)\.\*\.(.+)$/,pH=new Map,mH=e=>{let t=null;return e.some(([e])=>(t=e.match(fH),!!t)),t},hH=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=mH(e)??[];if(!o)return[];let c=`${o}:${s}`,l=PF(pH,c,()=>{let e=kD(o),t=kD(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(fH);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}=iH(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},gH=({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?hH({...u}):dH({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}}})))()}var vH;function yH(){return(yH=s((()=>{RU(),sH(),vH=({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,rH(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=kU(c,{identifierField:d})||kU(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}}})))()}var bH;function xH(){return(xH=s((()=>{DI(),EU(),_H(),yH(),sH(),bH=({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:EI(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>yU({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[vH({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let g=lH(i,p),{results:_,hasProcessedListFields:v}=gH({baseFieldGroups:g,content:t,templates:r,allFieldNames:i,context:m,fallbackContext:h});if(v)return _;let{_displayField:y,_valueField:b,_searchField:x}=r,{label:S,value:C,searchValue:w}=iH({label:y,value:b,searchValue:x},i.filter(e=>!e.includes(`*`)),m,h);return[{label:S||``,value:C||d,searchValue:w||S||``}]}})))()}var SH,CH,wH;function TH(){return(TH=s((()=>{SH=/^{{fields\.(.+?)}}$/,CH=(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(SH);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),wH=({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)}))})))()}var EH,DH,OH;function kH(){return(kH=s((()=>{FD(),sL(),qV(),$V(),xH(),TH(),sH(),EH=new Map,DH=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=CH(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`),u=`${e}|${`${QV(t)}|${QV(n)}`}|${l}`,d=EH.get(u);if(d)return d;let f=iL(a);if(!f)return EH.set(u,[]),[];let{_type:p,_i18n:{defaultLocale:m}}=f,{identifier_field:h=`title`}=p===`entry`?f:{},g=oH(t,h),{allFieldNames:_,hasListFields:v}=g,y=wH({refEntries:n,locale:e,fileName:o,entryFilters:c,defaultLocale:m}).flatMap(({refEntry:t,content:n})=>bH({refEntry:t,content:n,collection:f,templates:g,allFieldNames:_,hasListFields:v,collectionName:a,fileName:o,locale:e,identifierField:h,defaultLocale:m})).sort((e,t)=>PD(e.label,t.label));return EH.set(u,y),y},OH=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=UV(a),s=DH({locale:r,fieldConfig:e,refEntries:o}),c=YV(s),l=e=>c.get(e)||e;return i?Object.entries(t).filter(([e])=>e.match(`^${kD(n)}\\.\\d+$`)).map(([,e])=>e).map(l):l(t[n])}})))()}var AH,jH,MH;function NH(){return(NH=s((()=>{AH=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),jH=e=>_M(Object.fromEntries(Object.entries(gM(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),MH=e=>e.replace(/"/g,`'`)})))()}var PH,FH,IH,LH;function RH(){return(RH=s((()=>{PH=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,FH=new RegExp(PH,`g`),IH=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,LH=RegExp(`${PH.source}|${IH.source}`)})))()}var zH,BH,VH,HH;function UH(){return(UH=s((()=>{sj(),zH=e=>typeof e==`string`&&!!e.trim(),BH=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),VH={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},HH=(e,t)=>oj(e.replace(`<a>`,`<a href="${BH(t)}" target="_blank" rel="noopener noreferrer">`),VH)})))()}var WH,GH,KH;function qH(){return(qH=s((()=>{Z(),yI(),NH(),RH(),UH(),WH={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:PH,toBlock:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return t?`}"`:``})`:``},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return`<img src="${BH(t)}" alt="${BH(n)}" title="${BH(r)}">`}},GH={id:`linked-image`,label:`Image`,fields:[...WH.fields,{name:`link`,label:`Link`,required:!1}],pattern:LH,fromBlock:e=>{let{src:t,alt:n,title:r,src2:i,alt2:a,title2:o,link:s}=e.groups??{};return{src:(t||i||``).trim(),alt:(n||a||``).trim(),title:(r||o||``).trim(),link:(s||``).trim()}},toBlock:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=t?`}"`:``})`:``;return a&&i?`[${a}](${i})`:a},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=`<img src="${BH(t)}" alt="${BH(n)}" title="${BH(r)}">`;return i?`<a href="${BH(i)}">${a}</a>`:a}},KH=e=>{let t=pI.get(e);if(t)return{...t,id:`x-${e}`};let n={icon:`image`,label:X(`editor_components.image`),fields:[{name:`src`,label:X(`editor_components.src`),widget:`image`},{name:`alt`,label:X(`editor_components.alt`),required:!1},{name:`title`,label:X(`editor_components.title`),required:!1}],trigger:`button`};return{image:{...WH,...n},"linked-image":{...GH,...n,fields:[...n.fields,{name:`link`,label:X(`editor_components.link`),required:!1}]}}[e]}})))()}var JH,YH,XH;function ZH(){return(ZH=s((()=>{JH=/^\d+$/,YH=e=>JH.test(e),XH=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})))()}var QH,$H,eU,tU;function nU(){return(nU=s((()=>{YO(),ZH(),QH=new Map,$H=new WeakMap,eU=e=>{let t=$H.get(e);return t===void 0&&(t=JSON.stringify(e),$H.set(e,t)),t},tU=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=qO(i),o;if(r){let e=`${n}.`;o=Object.entries(t).filter(([t])=>t.startsWith(e)&&YH(t.slice(e.length))).map(([,e])=>e)}let s=eU(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=QH.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 QH.set(c,e),e}let d=t[n],f=a?u(d):d;return QH.set(c,f),f}})))()}var rU,iU,aU;function oU(){return(oU=s((()=>{aM(),qK(),rU=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},iU=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},aU=e=>{let t=A(VK);return e.multiple??rU(e.media_libraries)??iU(e.media_library)??rU(t?.media_libraries)??iU(t?.media_library)??!1}})))()}var sU,cU,lU,uU,dU,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU,SU,CU,wU,TU;function EU(){return(EU=s((()=>{FD(),yI(),eI(),sL(),DI(),cI(),fI(),KL(),kH(),qH(),nU(),zI(),oU(),FF(),ZH(),sU=/^(.*?)<([^>]+)>(.*)$/,cU=/\.\d+$/,lU=new Map,uU=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},dU=e=>{let t=e.widget??`string`;return uI.includes(t)?aU(e):dI.includes(t)?!!e.multiple:!1},fU=e=>{let t=e.match(sU);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},pU=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=fU(t),{widget:c=`text`}=e,l=s??i,u=YH(o),d=o===`*`;if((u||d)&&dI.includes(c))return{field:dU(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}},mU=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=[t,n??``,r??``,a,o?`1`:`0`].join(`|`);if(lU.has(s))return lU.get(s);let c=iL(t),l=c&&n?rI(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){lU.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?TI(c):void 0,f=r?KH(r)?.fields??[]:d?.fields??u,p=a.split(`.`),m,h,g=!1;if(p.forEach((e,t)=>{if(t===0){let{cleanKey:t,typeName:n}=fU(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=pU({field:m,key:e,keyPathArray:p,segmentIndex:t,pendingExplicitType:h,valueMap:i});m=n.field,h=n.explicitType}m&&`types`in m&&(g=!0)}),h&&m&&`types`in m){let{types:e}=m;m=e.find(({name:e})=>e===h)}return g||lU.set(s,m),m},hU=e=>{let t=e.widget??`string`;return lI.includes(t)?`builtin`:mI.has(t)?`custom`:`unknown`},gU=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,_U=new Map,vU=new Map,yU=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=mU({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=GL({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=OH({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=tU({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;if(!(e||t)){let e=PF(_U,r,()=>RegExp(`^${kD(r)}${String.raw`\.\d+$`}`));c=LI(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=MI(i),t=vU.get(e);t||(t=Intl.NumberFormat(e),vU.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=LI(i).format(c)),a?.length&&(c=$F({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},bU=({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=mU({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?yU({...i,keyPath:a,locale:t}):``},xU=({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=iL(n);if(f){if(i){let i=EI(f,e),a=mU({collectionName:n,keyPath:r,isIndexFile:i});if(a?.widget===`relation`)return OH({fieldConfig:a,valueMap:d,keyPath:r,locale:t})}return d[r]}},SU=/^(?<parent>.+)\.\d+$/,CU=new WeakMap,wU=(e,t)=>{let n=CU.get(e);return n||(n=new Map,Object.keys(e).forEach(e=>{let{parent:t}=e.match(SU)?.groups??{};if(t===void 0)return;let r=n.get(t);r?r.push(e):n.set(t,[e])}),CU.set(e,n)),n.get(t)??[]},TU=({valueMap:e,keyPath:t,isList:n,multiple:r,isEditor:i,isCustomFieldType:a=!1})=>{let o=e[t];if(!n&&!a)return o;let s=wU(e,t);return s.length?s.map(t=>e[t]).filter(e=>e!==void 0):a?o:i&&r&&o!==void 0&&typeof o!=`object`?[o]:[]}})))()}var DU,OU,kU,AU,jU,MU,NU,PU,FU,IU,LU;function RU(){return(RU=s((()=>{Z(),OF(),FD(),sj(),rM(),Dde(),aM(),ZU(),HF(),eI(),gL(),DI(),EU(),DU=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,OU=(e,{allowMarkdown:t=!1}={})=>(e=tM(e),t&&(e=Cde(e)),e=oj(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=Cde(e)),e.trim()),kU=(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(DU)?.groups?.header??``:``},AU=(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 jD(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},jU=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a,fallbackSummary:o}=t,{value:s,transformations:c}=QF(e),l=s.replace(/^fields\./,``),u={collectionName:r,valueMap:n,keyPath:l},d=AU(s,i),f=VF(c,e=>jU(e,t));if(d===void 0&&(d=f.some(({method:e})=>e===`date`||e===`ternary`)?n[l]:yU({...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}=DF({date:d});return`${e}-${t}-${n}`}return f.length&&(d=$F({fieldConfig:mU({...u}),value:d,transformations:f,locale:a})),String(d)},MU=new WeakMap,PU=0,FU=()=>{let e=A(dL);return e!==NU&&(NU=e,PU+=1),PU},IU=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(EI(e,t))return TI(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]??{},_=kU(h,{identifierField:l})||f.replaceAll(`-`,` `);if(!r||!u)return OU(_,{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 OU(qU(u,(e,t)=>jU(t,v)),{allowMarkdown:i})},LU=(e,t,n={})=>{let{locale:r,useTemplate:i=!1,allowMarkdown:a=!1}=n,o=MU.get(t);o||(o=new WeakMap,MU.set(t,o));let s=o.get(e);s||(s=new Map,o.set(e,s));let c=[r??``,i?`1`:`0`,a?`1`:`0`,Bu.current,FU()].join(`
|
||
`),l=s.get(c);if(l!==void 0)return l;let u=IU(e,t,n);return s.set(c,u),u}})))()}var zU,BU,VU,HU;function UU(){return(UU=s((()=>{md(),bM(),RU(),zU=(e,t)=>Jce.includes(e)?t[e]:void 0,BU=e=>{switch(e){case`uuid`:return dd();case`uuid_short`:return dd(`short`);case`uuid_shorter`:return dd(`shorter`);default:return}},VU=(e,t)=>{if(e!==`slug`)return;let{type:n,isIndexFile:r,currentSlug:i,content:a,identifierField:o}=t;return n===`preview_path`&&r?``:i??kU(a,{identifierField:o})},HU=(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}}})))()}var WU,GU;function KU(){return(KU=s((()=>{md(),LF(),UU(),HF(),eI(),EU(),eB(),WU=(e,t)=>{let{type:n,content:r,entryFilePath:i,locale:a,dateTimeParts:o,basePath:s}=t,c=zU(e,o);if(c!==void 0)return c;let l=VU(e,t);if(l!==void 0)return l;let u=BU(e);if(u!==void 0)return u;if(n===`preview_path`&&e===`locale`)return a;if(n===`preview_path`||n===`media_folder`){let t=HU(e,i,s);return t===void 0?void 0:t}return r[e.replace(/^fields\./,``)]},GU=(e,t)=>{let{replaceSubContext:n,getFieldArgs:r}=t,{value:i,transformations:a}=QF(e),o=WU(i,n),s=VF(a,e=>String(WU(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 dd(`short`);if((o===void 0||o===``)&&c&&l)return`${dd(`short`)}-${dd(`short`)}`;let{type:u,locale:d}=n;return s.length&&(o=$F({fieldConfig:mU({...r,keyPath:i}),value:o,transformations:s,locale:d})),o=Xz(String(o)),u?o:IF(o,{locale:d,maxLength:1/0})}})))()}var qU,JU,YU,XU;function ZU(){return(ZU=s((()=>{OF(),FD(),aM(),bM(),KU(),qK(),qV(),eB(),qU=(e,t)=>{let n=``,r=0;for(;r<e.length;){let i=e.indexOf(`{{`,r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let a=i+2,o=!1;for(;a<e.length;){let s=e[a],c=e[a+1];if(s===`'`&&!o?o=!0:s===`'`&&o&&(o=!1),!o&&s===`}`&&c===`}`){let o=a,s=e[i-1]===`'`,c=e[o+2]===`'`,l=e[i-2],u=e[o+3],d=e.slice(i+2,o),f=s&&c&&[`(`,`,`,`[`,`|`].includes(l??``)&&[`)`,`,`,`]`].includes(u??``);n+=d?f?e.slice(i,o+2):t(e.slice(i,o+2),d):e.slice(i,o+2),r=o+2;break}a+=1}if(a>=e.length){n+=e.slice(i);break}}return n},JU=e=>vM.test(e),YU=(e,t)=>UV(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),XU=(e,t)=>{let{collection:n,content:r,currentSlug:i,locale:a,dateTimeParts:o,isIndexFile:s=!1}=t,{_type:c,name:l}=n,{identifier_field:u=`title`,slug_length:d=void 0,_file:{basePath:f}={}}=c===`entry`?n:{},p=A(VK)?.slug,m=d??p?.maxlength,h=p?.timezone===`local`?void 0:`UTC`,g={replaceSubContext:{...t,dateTimeParts:o??DF({timeZone:h}),identifierField:u,basePath:f},getFieldArgs:{collectionName:l,keyPath:``,valueMap:r,isIndexFile:s}},_=qU(e,(e,t)=>GU(t,g)).trim();return i?_:(typeof m==`number`&&(_=AD(_,m,{ellipsis:``}).replace(/-$/,``)),Gz(_,YU(l,a)))}})))()}var QU,$U,eW,tW,nW,rW,iW,aW,oW;function sW(){return(sW=s((()=>{hM(),FD(),ZU(),sL(),cI(),QU=[],$U=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),eW=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),tW=({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($U(a)){if(!c)return;a=eW(a,c)}if(o===void 0)o=a;else if($U(o)){if(!c)return;o=eW(o,c)}a=a.replace(/^\.(?:\/|$)/,``);let f=!a.startsWith(`/`);return{collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i,internalPath:jD(f?s??``:a),internalSubPath:f?jD(a):void 0,publicPath:/^($|[.@])/.test(o)?o:`/${jD(o)}`,entryRelative:f,hasTemplateTags:JU(a),label:l,icon:u,isAssetCollection:d}},nW=e=>{if(e.mediaFolder===void 0)return;let t=tW(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||QU.push(t)},rW=({collectionName:e,files:t,globalFolders:n})=>{nI(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;nW({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:pM(i).dirname,globalFolders:n})})},iW=({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||nW({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})})},aW=({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&&nW({collectionName:`assets:${n}`,mediaFolder:`/${jD(a)}`,publicFolder:o,globalFolders:t,label:r,icon:i,isAssetCollection:!0})})},oW=(e,t=[])=>{QU.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a,asset_collections:o}=e,s=n!==void 0,c=s?jD(n).replace(/^\.$/,``):``,l=s?r?`/${jD(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=tL({collections:i});p.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:o}=e;nW({collectionName:t,mediaFolder:s&&a===void 0&&i!==void 0?``:a,publicFolder:o,baseFolder:r,entryPath:i,globalFolders:f}),n?.length&&rW({collectionName:t,files:n,globalFolders:f})}),a?.length&&rW({collectionName:`_singletons`,files:a,globalFolders:f}),iW({fieldMediaFolders:t,validCollections:p,globalFolders:f}),QU.sort((e,t)=>PD(e.internalPath,t.internalPath));let m=[];return d&&m.push(d),o?.length&&aW({assetCollections:o,globalFolders:f}),m.push(...QU),m.length&&m.unshift(u),m}})))()}var cW,lW,uW,dW,fW,pW,mW;function hW(){return(hW=s((()=>{FD(),sL(),cI(),zI(),YI(),cW=({collection:e,file:t})=>{let n=jD(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=JI(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,RI({_i18n:r,locale:e,path:n})]))},lW=(e,t)=>{if(tI(t))return{collectionName:e.name,fileName:t.name,filePathMap:cW({collection:e,file:t})}},uW=(e,t)=>PD(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),dW=({collections:e})=>tL({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=jD(n),{allLocales:i,defaultLocale:a,omitDefaultLocaleFromFilePath:o,structureMap:{i18nMultiRootFolder:s}}=JI(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,s?o&&e===a?r:`${e}/${r}`:r]))}}).sort((e,t)=>PD(e.folderPath,t.folderPath)),fW=({collections:e})=>tL({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>lW(e,t))).filter(e=>!!e).sort(uW),pW=({singletons:e})=>{let t=Array.isArray(e)?nI(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>lW(n,e)).filter(e=>!!e).sort(uW)},mW=e=>[...dW(e),...fW(e),...pW(e)]})))()}var gW,_W;function vW(){return(vW=s((()=>{NB(),gW=`${MB}/schema/sveltia-cms.json`,_W=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`]})))()}var yW,bW;function xW(){return(xW=s((()=>{yW=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,bW=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(yW);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 _fe(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function vfe(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 SW;function CW(){return(CW=s((()=>{SW=class extends Error{line;column;codeblock;constructor(e,t){let[n,r]=_fe(t.toml,t.ptr),i=vfe(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 wW(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 SW(`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 SW(`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 SW(`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 SW(`unrecognized escape sequence`,{toml:e,ptr:l});s=l+1,c=0}}else if(n!==` `&&n!==` `){if(c===2)throw new SW(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:s});c=+(!i&&n===`\\`),s=l}throw new SW(`unfinished string`,{toml:e,ptr:t})}function yfe(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=TW.test(e);if(i||EW.test(e)){if(DW.test(e))throw new SW(`leading zeroes are not allowed`,{toml:t,ptr:n});e=e.replace(/_/g,``);let a=+e;if(isNaN(a))throw new SW(`invalid number`,{toml:t,ptr:n});if(i){if((i=!Number.isSafeInteger(a))&&!r)throw new SW(`integer value cannot be represented losslessly`,{toml:t,ptr:n});(i||r===!0)&&(a=BigInt(e))}return a}let a=new bW(e);if(!a.isValid())throw new SW(`invalid value`,{toml:t,ptr:n});return a}var TW,EW,DW;function OW(){return(OW=s((()=>{xW(),CW(),TW=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,EW=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,DW=/^[+-]?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 kW(e,t=0,n=e.length){let r=e.indexOf(`
|
||
`,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}function AW(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 SW(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function jW(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=AW(e,t)}return t}function bfe(e,t,n,r,i=!1){if(!r)return t=kW(e,t),t<0?e.length:t;for(let a=t;a<e.length;a++){let t=e[a];if(t===`#`){if(a=kW(e,a),a<0)break}else if(t===n)return a+1;else if(t===r||i&&(t===`
|
||
`||t===`\r`&&e[a+1]===`
|
||
`))return a}throw new SW(`cannot find end of structure`,{toml:e,ptr:t})}function MW(){return(MW=s((()=>{CW()})))()}
|
||
/*!
|
||
* 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 xfe(e,t,n){let r=e.slice(t,n),i=r.indexOf(`#`);return i>-1&&(AW(e,i),r=r.slice(0,i)),[r.trimEnd(),i]}function NW(e,t,n,r,i){if(r===0)throw new SW(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let a=e[t];if(a===`[`||a===`{`){let[o,s]=a===`[`?Cfe(e,t,r,i):Sfe(e,t,r,i);if(n){if(s=jW(e,s),e[s]===`,`)s++;else if(e[s]!==n)throw new SW(`expected comma or end of structure`,{toml:e,ptr:s})}return[o,s]}if(a===`"`||a===`'`){let[r,i]=wW(e,t);if(n){if(i=jW(e,i),e[i]&&e[i]!==`,`&&e[i]!==n&&e[i]!==`
|
||
`&&e[i]!==`\r`)throw new SW(`unexpected character encountered`,{toml:e,ptr:i});e[i]===`,`&&i++}return[r,i]}let o=bfe(e,t,`,`,n),s=xfe(e,t,o-+(e[o-1]===`,`));if(!s[0])throw new SW(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return n&&s[1]>-1&&(o=jW(e,t+s[1]),e[o]===`,`&&o++),[yfe(s[0],e,t,i),o]}function PW(){return(PW=s((()=>{OW(),LW(),MW(),CW()})))()}
|
||
/*!
|
||
* 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 FW(e,t,n=`=`){let r=t-1,i=[],a=e.indexOf(n,t);if(a<0)throw new SW(`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 SW(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let[s,c]=wW(e,t);r=e.indexOf(`.`,c);let l=e.slice(c,r<0||r>a?a:r),u=kW(l);if(u>-1)throw new SW(`newlines are not allowed in keys`,{toml:e,ptr:t+r+u});if(l.trimStart())throw new SW(`found extra tokens after the string part`,{toml:e,ptr:c});if(a<c&&(a=e.indexOf(n,c),a<0))throw new SW(`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(!IW.test(n))throw new SW(`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,jW(e,a+1,!0,!0)]}function Sfe(e,t,n,r){let i={},a=new Set,o;for(t++;(o=e[t++])!==`}`&&o;)if(o===`,`)throw new SW(`expected value, found comma`,{toml:e,ptr:t-1});else if(o===`#`)t=AW(e,t);else if(o!==` `&&o!==` `&&o!==`
|
||
`&&o!==`\r`){let o,s=i,c=!1,[l,u]=FW(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 SW(`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 SW(`trying to redefine an already defined value`,{toml:e,ptr:t});let[d,f]=NW(e,u,`}`,n-1,r);a.add(d),s[o]=d,t=f}if(!o)throw new SW(`unfinished table encountered`,{toml:e,ptr:t});return[i,t]}function Cfe(e,t,n,r){let i=[],a;for(t++;(a=e[t++])!==`]`&&a;)if(a===`,`)throw new SW(`expected value, found comma`,{toml:e,ptr:t-1});else if(a===`#`)t=AW(e,t);else if(a!==` `&&a!==` `&&a!==`
|
||
`&&a!==`\r`){let a=NW(e,t-1,`]`,n-1,r);i.push(a[0]),t=a[1]}if(!a)throw new SW(`unfinished array encountered`,{toml:e,ptr:t});return[i,t]}var IW;function LW(){return(LW=s((()=>{OW(),PW(),MW(),CW(),IW=/^[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 RW(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 wfe(e,{maxDepth:t=1e3,integersAsBigInt:n}={}){let r={},i={},a=r,o=i;for(let s=jW(e,0);s<e.length;){if(e[s]===`[`){let t=e[++s]===`[`,n=FW(e,s+=+t,`]`);if(t){if(e[n[1]-1]!==`]`)throw new SW(`expected end of table declaration`,{toml:e,ptr:n[1]-1});n[1]++}let c=RW(n[0],r,i,t?2:1);if(!c)throw new SW(`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=FW(e,s),i=RW(r[0],a,o,0);if(!i)throw new SW(`trying to redefine an already defined table or value`,{toml:e,ptr:s});let c=NW(e,r[1],void 0,t,n);i[1][i[0]]=c[0],s=c[1]}if(s=jW(e,s,!0),e[s]&&e[s]!==`
|
||
`&&e[s]!==`\r`)throw new SW(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:s});s=jW(e,s)}return r}function zW(){return(zW=s((()=>{LW(),PW(),MW(),CW()})))()}
|
||
/*!
|
||
* 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 BW(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}function Tfe(e){for(let t=0;t<e.length;t++)if(BW(e[t])!==`object`)return!1;return e.length!=0}function VW(e){return JSON.stringify(e).replace(/\x7f/g,`\\u007f`)}function HW(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 VW(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return Efe(e,n,r);if(t===`array`)return Dfe(e,n,r)}function Efe(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+=WW.test(o)?o:VW(o),i+=` = `,i+=HW(e[o],BW(e[o]),t-1,n)}return i+` }`}function Dfe(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+=HW(e[i],BW(e[i]),t-1,n)}return r+` ]`}function Ofe(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+=UW(0,e[a],t,n,r);return i}function UW(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=BW(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=WW.test(c)?c:VW(c);if(e===`array`&&Tfe(t[c]))o+=(o&&`
|
||
`)+Ofe(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`
|
||
`)+UW(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=HW(t[c],e,r,i),a+=`
|
||
`}}return e&&(a||!o)&&(a=a?`[${e}]\n${a}`:`[${e}]`),a&&o?`${a}\n${o}`:a||o}function kfe(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(BW(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=UW(0,e,``,t,n);return r[r.length-1]===`
|
||
`?r:r+`
|
||
`}var WW;function GW(){return(GW=s((()=>{WW=/^[a-z0-9-_]+$/i})))()}var KW,qW,JW,YW,XW,ZW,QW;function $W(){return($W=s((()=>{v(),FD(),zW(),EF(),yI(),sL(),cI(),jI(),UI(),FF(),KW=e=>JSON.parse(e),qW=e=>_(wfe(e)),JW=(e,t)=>tde(e,t),YW=e=>e.startsWith(`+++`)?`toml-frontmatter`:e.startsWith(`{`)?`json-frontmatter`:`yaml-frontmatter`,XW=new Map,ZW=({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`?VI({format:n,delimiter:a}):a)??[`---`,`---`],u=kD(c),d=kD(l),f=`${u}|${d}`,p=PF(XW,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=JW(m)),n===`toml-frontmatter`&&(g=qW(m)),n===`json-frontmatter`&&(g=KW(`{${m}}`)),(!g||typeof g!=`object`||Array.isArray(g))&&(g={}),{...g,...!s&&!(o in g)?{[o]:h}:{}}},QW=async({text:e=``,path:t,folder:{collectionName:n,fileName:r}})=>{let i=iL(n),a=i&&r?rI(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=hI.get(o)?.parser;if(s)return s(e);if(o===`raw`)return{body:e};try{if(o===`yaml`||o===`yml`)return JW(e);if(o===`toml`)return qW(e);if(o===`json`)return KW(e);if(o===`frontmatter`&&(o=YW(e)),AI.includes(o))return ZW({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}`)}})))()}var eG,tG;function nG(){return(nG=s((()=>{J(),eG=Dr({isLocalHost:!1,isLocalBackendSupported:!1,isBrave:!1,isMacOS:!1,isSmallScreen:!1,isMediumScreen:!1,isLargeScreen:!1,hasMouse:!0}),tG=()=>{let{location:{hostname:e},navigator:{userAgentData:t,platform:n},matchMedia:r}=globalThis;eG.isLocalHost=e===`127.0.0.1`||/^(.+\.)?localhost$/.test(e),eG.isLocalBackendSupported=`showDirectoryPicker`in globalThis,eG.isBrave=t?.brands.some(({brand:e})=>e===`Brave`)??!1,eG.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=()=>{eG.isSmallScreen=i.matches},l=()=>{eG.isMediumScreen=a.matches},u=()=>{eG.isLargeScreen=o.matches},d=()=>{eG.hasMouse=s.matches};c(),l(),u(),d(),i.addEventListener(`change`,c),a.addEventListener(`change`,l),o.addEventListener(`change`,u),s.addEventListener(`change`,d)}})))()}var rG,iG;function aG(){return(aG=s((()=>{rd(),v(),rG=(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}},iG=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`)&&!rG(e))throw Error(`Refusing to send credentials over an insecure connection`);n===`json`&&t.headers.set(`Accept`,`application/json`),t.method===`POST`&&g(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`)&&g(c)&&c.errors))return c;if(s===502&&i>0)return await nd(1e3),iG(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}`),iG(e,t,{responseType:n})}if(!g(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(`, `)),g(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}})}})))()}var oG,sG,cG,lG,uG,dG,fG;function pG(){return(pG=s((()=>{Z(),v(),oG=u(Zce(),1),vW(),$W(),nG(),aG(),UH(),sG=`https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration`,cG=`https://sveltiacms.app/en/docs/config-basics#validation-and-autocomplete`,lG=async({href:e,type:t=`application/yaml`},{manualInit:n=!1,showSchemaTip:r}={})=>{let i;if(!_W.includes(t))throw Error(X(`config.error.parse_failed`),{cause:Error(X(`config.error.parse_failed_unsupported_type`))});let a=HH(X(n?`config.error.fetch_failed_with_manual_init`:`config.error.fetch_failed`),sG);try{let t=new URL(e,window.location.href);t.searchParams.set(`_`,Date.now().toString()),i=await fetch(t)}catch(e){throw Error(a,{cause:e})}let{ok:o,status:s}=i;if(!o)throw Error(a,{cause:Error(X(`config.error.fetch_failed_not_ok`,{values:{status:s}}))});let c=!1,l;try{if(t===`application/json`)l=await i.json(),g(l)&&l.$schema!==gW&&(c=!0);else{let e=await i.text();t===`application/toml`?(l=qW(e),e.includes(`#:schema ${gW}`)||(c=!0)):(l=JW(e,{merge:!0,maxAliasCount:-1}),e.includes(`# yaml-language-server: $schema=${gW}`)||(c=!0))}}catch(e){throw Error(X(`config.error.parse_failed`),{cause:e})}if(!g(l))throw Error(X(`config.error.parse_failed`),{cause:Error(X(`config.error.parse_failed_invalid_object`))});return r&&c&&console.info(X(`config.schema_tip`,{values:{link:cG}})),l},uG=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},dG=e=>{let{origin:t}=window.location;return e.every(({href:e})=>rG(e,t))},fG=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:uG(window.location.pathname)}),!dG(t))throw Error(X(`config.error.insecure_urls`,{values:{count:t.length}}));let n=eG.isLocalHost&&!e&&t.length===1,r=await Promise.all(t.map(t=>lG(t,{manualInit:e,showSchemaTip:n})));return r.length===1?r[0]:oG.default.all(r)}})))()}var mG,hG,gG,_G,vG,yG,bG;function xG(){return(xG=s((()=>{Z(),zI(),UH(),mG=`https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions`,hG=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,gG=({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(X(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&f.push(X(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&f.push(X(`config.error_locator.component`,{values:{component:c}})),l&&f.push(X(`config.error_locator.field`,{values:{field:l}}));let p=e===`error`?u:d,m=Bu.current,h=f.length?`${LI(m).format(f)}: `:``,g=X(`config.${e}.${t}`,{values:n});t===`invalid_field_name`&&(g=HH(g,mG));let _=r?X(`config.${r}`,{values:{link:r===`compatibility_link`?hG:void 0}}):``;p.add(`${h}${g}${_?` ${_}`:``}`)},_G=({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)&&gG({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},vG=/^[^\s.*:<>]+$/,yG=e=>vG.test(e),bG=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return gG({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return yG(e)?n[e]===1?(gG({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(gG({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})))()}var SG,CG,wG,TG,EG;function DG(){return(DG=s((()=>{Z(),v(),WZ(),SI(),xG(),UH(),SG=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],CG=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,wG=`https://sveltiacms.app/en/docs/backends#supported-backends`,TG=`https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication`,EG=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!g(n)){r.add(X(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(X(`config.error.missing_backend_name`));return}if(!zZ.includes(a)){let e=RZ[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=HH(X(`config.error.unsupported_${t}_backend`,{values:{name:n}}),CG),o=HH(X(`config.error.unsupported_backend_suggestion`),wG);r.add(`${i} ${o}`);return}if(a in BZ){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(X(`config.error.no_auth_methods`));let d=!c||c.includes(`token`),f=TG.replace(`BACKEND_NAME`,a);o===void 0&&r.add(X(`config.error.missing_repository`)),(typeof o!=`string`||!/^[^/:]+(?:\/[^/:]+)+$/.test(o))&&r.add(X(`config.error.invalid_repository`)),l===`implicit`&&r.add(HH(X(`config.error.oauth_implicit_flow`),f)),a===`github`&&l===`pkce`&&r.add(HH(X(`config.error.github_pkce_unsupported`),f)),a===`gitlab`&&l===`pkce`&&!u&&r.add(X(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(X(`config.warning.oauth_no_app_id`)):r.add(X(`config.error.oauth_no_app_id`))),s!==void 0&&xI(`automatic_deployments`),_G({UNSUPPORTED_OPTIONS:SG,config:n,context:{cmsConfig:e},collectors:t})}}})))()}var OG,kG,AG;function jG(){return(jG=s((()=>{jI(),OG=[`code`,`markdown`,`richtext`,`text`],kG=[`yaml`,`toml`,`json`],AG=(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`&&OG.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(OI.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return!kI.includes(i)&&i!==e}return a===`frontmatter`?!qde.includes(i):kG.includes(a)?kG.includes(i)&&i!==a:!1}})))()}var MG,NG,PG,FG;function IG(){return(IG=s((()=>{xG(),XF(),MG=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],NG=e=>{try{return Intl.DateTimeFormat(`en-US`,{timeZone:e}),!0}catch{return!1}},PG=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)&&gG({type:`warning`,strKey:`conflicting_timezone_options`,context:n,collectors:r}),JF(a)&&!NG(a)&&gG({strKey:`invalid_timezone`,values:{timeZone:a},context:n,collectors:r})},FG=e=>{_G({...e,UNSUPPORTED_OPTIONS:MG}),PG(e)}})))()}var LG,RG;function zG(){return(zG=s((()=>{xG(),LG=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],RG=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),_G({...e,UNSUPPORTED_OPTIONS:LG})}})))()}var BG,VG;function HG(){return(HG=s((()=>{rK(),xG(),BG=(e,t,n)=>e===`object`||(gG({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),VG=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){gG({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&tK({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&nK(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};bG({...c,name:e,index:a,context:o})&&BG(t,o,r)&&i&&nK(i,o,r)})}})))()}var UG,WG;function GG(){return(GG=s((()=>{xG(),UG=[{prop:`valueType`,newProp:`value_type`}],WG=e=>{_G({...e,UNSUPPORTED_OPTIONS:UG})}})))()}var KG;function qG(){return(qG=s((()=>{rK(),xG(),KG=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){gG({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){gG({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&nK(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};bG({...s,name:e,index:i,context:a})&&t&&nK(t,a,r)})}})))()}var JG,YG;function XG(){return(XG=s((()=>{xG(),JG=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],YG=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||gG({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&gG({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else gG({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});_G({...e,UNSUPPORTED_OPTIONS:JG}),r.relationFields.add({fieldConfig:i,context:n})}})))()}var ZG,QG;function $G(){return($G=s((()=>{xG(),ZG=[{prop:`editorComponents`,newProp:`editor_components`}],QG=e=>{_G({...e,UNSUPPORTED_OPTIONS:ZG})}})))()}var eK,tK,nK;function rK(){return(rK=s((()=>{IG(),zG(),HG(),GG(),qG(),XG(),$G(),xG(),eK={datetime:FG,file:RG,image:RG,list:VG,markdown:QG,number:WG,object:KG,relation:YG,richtext:QG},tK=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}};eK[i]?.(o),i===`date`&&gG({...o,strKey:`date_field_type`})},nK=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;bG({...r,name:a,index:i})&&tK({config:e,context:t,collectors:n})})}})))()}var iK,aK;function oK(){return(oK=s((()=>{hM(),jG(),rK(),xG(),iK=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=pM(i);AG(c,a,o)&&gG({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||gG({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&gG({strKey:`collection_file_i18n_required`,context:e,collectors:t}),nK(o,e,t)},aK=(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};bG({...a,name:o,index:i,context:s})&&iK(s,t)})}})))()}var sK,cK,lK;function uK(){return(uK=s((()=>{v(),sK=(e,t)=>{if(Array.isArray(e))return{options:e};if(g(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:[]}},cK=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),lK=e=>{if(cK(e))return{keys:e};if(g(e)){let{fields:t,default:n}=e;return cK(t)?g(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}}})))()}var dK,fK,pK,mK,hK,gK,_K;function vK(){return(vK=s((()=>{v(),xG(),uK(),ZH(),dK=[`slug`,`commit_author`,`commit_date`],fK=[`_summary`,`_manual`],pK=/<[^>]+>$/,mK=e=>{let{field:t}=e,{fields:n}=e,{types:r,typeKey:i=`type`}=e;return t?[t]:n||(r?[...r.flatMap(({fields:e=[]})=>e),{name:i}]:[])},hK=(e,t)=>{let n=e,r;return t.split(`.`).every(e=>{let t=e.replace(pK,``);return!t||t===`*`||YH(t)?!0:(r&&(n=mK(r)),r=n.find(({name:e})=>e===t),!!r)})&&!!r},gK=({config:e,options:t,fields:n,optionType:r,context:i,collectors:a})=>{let o=g(e),s={};t.forEach((e,t)=>{let{name:c,field:l}=g(e)?e:{};(o||c!==void 0)&&bG({name:c,index:t,nameCounts:s,strKeyBase:`${r}_name`,context:i,collectors:a}),!(typeof l!=`string`||!l||dK.includes(l))&&(hK(n,l)||gG({strKey:`invalid_${r}_field`,values:{name:l},context:i,collectors:a}))})},_K=(e,t)=>{let{fields:n,sortable_fields:r,view_groups:i,view_filters:a}=e.collection;if(n?.length){if(r){let{keys:i,defaultKey:a}=lK(r),o=[...dK,...fK];[...i,a].forEach(r=>{r&&!o.includes(r)&&!hK(n,r)&&gG({strKey:`invalid_sortable_field`,values:{name:r},context:e,collectors:t})})}gK({config:i,options:sK(i,`groups`).options,fields:n,optionType:`view_group`,context:e,collectors:t}),gK({config:a,options:sK(a,`filters`).options,fields:n,optionType:`view_filter`,context:e,collectors:t})}}})))()}var yK,bK,xK,SK;function CK(){return(CK=s((()=>{Z(),v(),SI(),oK(),jG(),vK(),rK(),xG(),uK(),yK=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],bK=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,reorder:c,slug:l,slug_length:u,view_groups:d}=r;AG(i,a)&&gG({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),u!==void 0&&xI(`slug_length`),_G({UNSUPPORTED_OPTIONS:yK,config:r,context:e,collectors:t}),o?.length||gG({strKey:`collection_no_fields`,context:e,collectors:t}),nK(o,e,t),s&&nK(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t);let f=g(c)?c.group:void 0;if(typeof f==`string`&&f){let{options:n}=sK(d,`groups`);n.some(({name:e})=>e===f)||gG({strKey:`invalid_reorder_group`,values:{name:f},context:e,collectors:t})}_K(e,t),l?.includes(`/`)&&gG({strKey:`invalid_slug_slash`,values:{slug:l},context:e,collectors:t})},xK=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){gG({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){gG({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?aK({cmsConfig:e,collection:t},n):a&&bK({cmsConfig:e,collection:t},n)},SK=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(X(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};if(n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};bG({...a,name:i,index:r,context:o})&&xK(o,t)}),Array.isArray(r)){let n={name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r};aK({cmsConfig:e,collection:n},t)}}})))()}var wK;function TK(){return(TK=s((()=>{Z(),xG(),mB(),wK=(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?!pB.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>pB.includes(e))&&s.add(X(`config.error.missing_media_folder`)):typeof n!=`string`&&s.add(X(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&s.add(X(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&s.add(X(`config.error.public_folder_absolute_url`))):s.add(X(`config.error.invalid_public_folder`))),o!==void 0){if(!Array.isArray(o))s.add(X(`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};bG({...n,name:i,index:r,context:o})&&typeof a!=`string`&&s.add(X(`config.error.asset_collection_invalid_media_folder`,{values:{name:i}}))})}}}})))()}var EK,DK;function OK(){return(OK=s((()=>{yI(),DG(),CK(),rK(),TK(),xG(),EK=[{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`}],DK=(e,t)=>{EG(e,t),wK(e,t),SK(e,t),_G({UNSUPPORTED_OPTIONS:EK,config:e,context:{cmsConfig:e},collectors:t}),pI.forEach(({fields:n},r)=>{nK(n,{cmsConfig:e,componentName:r},t)})}})))()}var kK=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}})),AK,jK,MK,NK,PK;function FK(){return(FK=s((()=>{J(),Z(),uM(),AK=u(kK(),1),oc(),jK=`sveltia-cms.prefs`,MK=Dr({current:void 0}),NK=Dr({}),PK=!1,ei(()=>{(async()=>{MK.current=void 0;try{let e=await lM.get(jK)??{};e.apiKeys??={},e.useDraftBackup??=!0,e.closeOnSave??=!0,e.closeWithEscape??=!0,e.underlineLinks??=!0,e.beta??=!1,e.devModeEnabled??=!1,e.defaultTranslationService??=`google`,e.locale===`en`&&(e.locale=navigator.languages.find(e=>Tu.includes(e))??`en-US`),Object.assign(NK,e)}catch{MK.current={type:`permission_denied`}}})(),Zr(()=>{if(!Object.keys(NK).length)return;let e=Dt(NK);(async()=>{try{(0,AK.default)(e,await lM.get(jK))||await lM.set(jK,e)}catch{}})();let{theme:t,underlineLinks:n=!0,beta:r=!1,devModeEnabled:i=!1}=NK,a=!t||t===`auto`,o=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;Object.assign(document.documentElement.dataset,{theme:a?o:t,autoTheming:a,underlineLinks:n,beta:r,devMode:i})}),Zr(()=>{let{locale:e}=NK;if(!e||!Tu.includes(e))return;let t=Ri(()=>Bu.current),n=PK;PK=!0,zu(e).then(()=>{e in Eu?Bu.set(e):n&&t&&(NK.locale=t)})})})})))()}var IK,LK,RK,zK,BK,VK,HK,UK,WK,GK,KK;function qK(){return(qK=s((()=>{Z(),md(),v(),FD(),IK=u(Zce(),1),aM(),EF(),kM(),sW(),hW(),pG(),OK(),gL(),FK(),{DEV:LK,VITE_SITE_URL:RK}={DEV:!1},zK=LK?RK||`http://localhost:5174`:void 0,BK={},VK=sn(),HK=sn(),UK=sn([]),WK=cn([VK,UK],([e,t])=>!!e||!!t.length),GK={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},KK=async e=>{VK.set(void 0),UK.set([]),Object.assign(GK,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(X(`config.error.no_secure_context`));let t;if(e){if(!g(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,IK.default)(await fG({manualInit:!0}),t))}else t=await fG();if(Object.assign(BK,t),DK(t,GK),GK.errors.size)throw GK.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);GK.warnings.size&&GK.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(LK?zK:window.location.origin),n._baseURL=ND(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),VK.set(n),HK.set(await pd(TF(n)))}catch(e){UK.set(GK.errors.size?[...GK.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},VK.subscribe(e=>{if(NK.devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,GK)),!e)return;let t=mW(e),n=oW(e,[...GK.mediaFields]);uL.set(t),xM.set(n),NK.devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})))()}var JK;function YK(){return(YK=s((()=>{aM(),qK(),JK=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(VK),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)}})))()}var XK,ZK;function QK(){return(QK=s((()=>{v(),YK(),GB(),aV(),XK=({fieldConfig:e}={})=>{let t=JK({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:g(a)?a:void 0}}},ZK=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(LB.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&&WB.includes(t)?t:`webp`,s;try{s=await rV(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})}catch{return e}let c=s.type===`image/${o}`?zB.test(e.name)?e.name.replace(zB,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 iV(e)],e.name,{type:e.type}):e}})))()}var $K;function eq(){return(eq=s((()=>{GB(),$K=async e=>{if(!RB.includes(e.type))return!0;try{return(await createImageBitmap(e)).close(),!0}catch{return!1}}})))()}var tq;function nq(){return(nq=s((()=>{QK(),eB(),eq(),tq=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=Kz(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}if(!await $K(e))return{file:e,originalFile:void 0,oversized:!1,invalid:!0};let i=e;return n&&(e=await ZK(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r,invalid:!1}}})))()}var rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq;function Tq(){return(Tq=s((()=>{hM(),FD(),aM(),kM(),nq(),ZU(),bM(),sL(),DI(),cI(),IV(),QK(),eB(),rq=/^(?<entryFolder>.+?)(?:\/[^/]+)?$/,iq=sn([]),aq={source:void 0,map:new Map},oq=()=>{let e=A(iq);return e!==aq.source&&(aq.source=e,aq.map=new Map(e.map(e=>[e.path,e]))),aq.map},sq=e=>oq().get(e),cq=sn([]),lq=cn(cq,e=>new Set(e.map(e=>e.path))),uq=sn(),dq=sn(),fq=sn({folder:void 0,files:[]}),pq=sn(),mq=sn(),hq=cn([fq],([e],t,n)=>{t({processing:!1,validFiles:[],oversizedFiles:[],invalidFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=XK();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>tq(e,i)));n(()=>({processing:!1,validFiles:e.filter(({oversized:e,invalid:t})=>!e&&!t).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e,invalid:t})=>e&&!t).map(({file:e})=>e),invalidFiles:e.filter(({invalid:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),gq=({path:e,entry:t,collection:n,file:r,componentName:i,typedKeyPath:a})=>{let{locales:o}=t,{_i18n:{defaultLocale:s}}=r??n,c=a?TM({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;l&&JU(l)&&(l=XU(l,{type:`media_folder`,collection:n,content:f,currentSlug:t.slug,entryFilePath:d,isIndexFile:EI(n,t)}));let{entryFolder:p}=d.match(rq).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=Zz(Yz([l.slice(1),h]))}else g=Zz(Yz([p,l,h]));return oq().get(g)},_q=({path:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:a})=>{if(!t){let t=[i?TM({componentName:i,typedKeyPath:a}):void 0,n&&a?TM({collectionName:n,fileName:r,typedKeyPath:a}):void 0,n?TM({collectionName:n,fileName:r}):void 0,n?TM({collectionName:n}):void 0,A(SM)].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=oq().get(Yz([t.internalPath,t.internalSubPath??``,r]));return i&&(o=i),!!i}),o??oq().get(e)}return MV(t).flatMap(n=>{let r=aI(n,t),o={path:e,entry:t,collection:n,componentName:i,typedKeyPath:a};return r.length?r.map(e=>gq({...o,file:e})):gq({...o})}).filter(Boolean)[0]??oq().get(e)},vq=({path:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:a})=>{let o=oq().get(jD(e));if(o)return o;let{dirname:s=``,basename:c}=pM(e),l;return[i?TM({componentName:i,typedKeyPath:a}):void 0,a?TM({collectionName:n,fileName:r,typedKeyPath:a}):void 0,TM({collectionName:n,fileName:r}),TM({collectionName:n}),A(SM),A(xM).findLast(e=>{let t=e.publicPath??``,n=kD(t).replace(yM,`.+?`);return s.match(`^${n}${t?`(?=\\/|$)`:`$`}`)})].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&vM.test(i)){let e=r?iL(r):t?MV(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=XU(i,{type:`media_folder`,collection:e,content:gM(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:EI(e,t)})}n&&i&&s&&(n===`/`?i=`${i}${s}`:s.startsWith(`${n}/`)&&(i=s.replace(n,i)));let a=Yz([i,c]),o=oq().get(a);return o&&(l=o),!!o}),l},yq=e=>!/^[/@]/.test(e),bq=({value:e,...t})=>{let n=Hz(e.split(`#`)[0]);return yq(n)?_q({path:n,...t}):vq({path:n,...t})},xq=({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,Sq=e=>A(iq).filter(t=>xq(t,e)),Cq=e=>A(iq).filter(t=>pM(t.path).dirname===e),CM.subscribe(()=>{uq.set(void 0)}),wq=(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()))}})))()}var Eq,Dq;function Oq(){return(Oq=s((()=>{aM(),Eq=/^(?:.+\/)?(\.git(?:attributes|ignore|keep))$/,Dq=sn([]),cn(Dq,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)??[])})))()}var kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq;function Uq(){return(Uq=s((()=>{md(),v(),FD(),sL(),DI(),cI(),EU(),$W(),FF(),kq=e=>/\/_index(?:\.[\w-]+)?\.md$/.test(e),Aq=new Map,jq=({subPath:e,subPathTemplate:t})=>{if(t?.includes(`{{slug}}`)){let n=PF(Aq,t,()=>{let e=``,n=t;for(;n.length>0;){let t=n.indexOf(`{{`);if(t===-1){e+=kD(n);break}t>0&&(e+=kD(n.substring(0,t)));let r=n.indexOf(`}}`,t);if(r===-1){e+=kD(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},Mq=async(e,t)=>{try{return await QW(e)}catch(e){console.error(e),t.push(e);return}},Nq=({rawContent:e,fields:t,i18nSingleFile:n,validate:r})=>{let i=t[0].name;if(n)return!g(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}},Pq=(e,t,n)=>{if(!g(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=>{g(e[t])&&(a[t]=e[t])}),a},Fq=(e,t,n)=>{let r={rawContent:e,fields:t,i18nSingleFile:n};return uU(t,`list`)?Nq({...r,validate:Array.isArray}):uU(t,`keyvalue`)?Nq({...r,validate:e=>g(e)&&Object.values(e).every(e=>typeof e==`string`)}):g(e)?e:void 0},Iq=(e,t,n,r,i)=>r?.split(`/`).pop()===`_index`&&/\/_index(?:\.[\w-]+)?\.[\w]+$/.test(e)&&i!==`md`?!0:kq(e)?!(t||TI(n)?.name===`_index`||r?.split(`/`).pop()===`_index`&&i===`md`):!1,Lq=(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}},Rq=(e,t,n,r,i,a)=>{let o=r||jq({subPath:i,subPathTemplate:a});e.slug=o,e.locales._default={slug:o,path:n,content:gM(t)}},zq=(e,t,n,r,i,a,o)=>{let s=r||jq({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:gM(t[e])}]))},Bq=(e,t,n,r,i,a,o,s,c,l,u)=>{let d=l&&typeof t[l]==`string`?t[l]:void 0,f=r||jq({subPath:i,subPathTemplate:a}),p={slug:f,path:n,content:gM(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)},Vq=async({file:e,entries:t,errors:n})=>{let r=await Mq(e,n);if(!r)return;let{path:i,meta:a={},folder:{collectionName:o,fileName:s}}=e,c=iL(o),l=c&&s?rI(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?Pq(r,h,g):r;if(!C)return;let w=Fq(C,u,_||v);if(!w||Iq(i,s,c,f,p))return;let T=y||b||x,{subPath:ee,locale:te}=Lq(e,s,d,g,T);if(!ee||T&&!te)return;let ne={id:``,slug:``,subPath:ee,locales:{},...a};if(!m)Rq(ne,w,i,s,ee,f);else if(_||v)zq(ne,w,i,s,ee,f,h);else if(Bq(ne,w,i,s,ee,f,te,g,o,S,t))return;t.push(ne)},Hq=async e=>{let t=[],n=[];return await Promise.all(e.map(e=>Vq({file:e,entries:t,errors:n}))),{entries:t.filter(e=>(e.id=dd(),!!e.slug&&!!Object.keys(e.locales).length)),errors:n}}})))()}var Wq;function Gq(){return(Gq=s((()=>{kM(),Oq(),gL(),Uq(),Wq=e=>{let t=[],n=[],r=[];e.forEach(e=>{let{path:i,name:a}=e;if(a.startsWith(`.`))Eq.test(a)&&r.push({...e,type:`config`});else{let[r]=hL(i),[a]=DM(i);r&&t.push({...e,type:`entry`,folder:r}),a&&!t.find(e=>e.path===i)&&!kq(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}}})))()}var Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ;function fJ(){return(fJ=s((()=>{YO(),hM(),FD(),aM(),Tq(),kM(),OR(),Oq(),Gq(),bM(),gL(),Uq(),nG(),eB(),Kq=10485760,qq=10,Jq=async(e,t,n=`file`)=>{let r=jD(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},Yq=(e,t)=>Jq(e,t,`file`),Xq=(e,t)=>Jq(e,t,`directory`),Zq=e=>e?Bz(e,e=>kD(e).replace(yM,`.+?`)):/^.+$/,Qq=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(`.`)&&!Eq.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=Zq(e),o.set(e,n)),(l||r.some(e=>n.test(e)))&&await Qq(c,t,e)}}},$q=()=>{let e=A(uL).flatMap(({filePathMap:e,folderPathMap:t})=>Object.values(e||(t??{}))),t=A(xM).filter(({internalPath:e})=>e!==void 0).map(({internalPath:e})=>e);return JO([...e,...t].map(e=>jD(e??``)))},eJ=async e=>{let t=[],n=$q();return await Qq(e,{rootDirHandle:e,scanningPaths:n,scanningPathsRegEx:n.map(Zq),fileHandles:t,pathRegexCache:new Map}),t.map(({handle:e,path:t})=>({handle:e,path:t.normalize(),name:e.name.normalize(),size:0,sha:``}))},tJ=async e=>{let{name:t,handle:n}=e;if(t===`.gitkeep`)return e;try{let r=await n.getFile();if(r.size>Kq)return console.warn(`File ${t} is too large (${r.size} bytes), skipping content read`),{...e,text:``};let i=await Vce(r);return{...e,text:i}}catch(t){return console.error(t),{...e,text:``}}},nJ=async e=>{let{name:t,handle:n}=e,r=DR(t);try{let t=await n.getFile(),{size:i}=t,a=await $z(t);return{...e,kind:r,size:i,sha:a}}catch(t){return console.error(t),{...e,kind:r}}},rJ=async e=>{let{entryFiles:t,assetFiles:n,configFiles:r}=Wq(await eJ(e)),i=[],a=[];for(let e=0;e<t.length;e+=qq){let n=t.slice(e,e+qq),r=await Promise.all(n.map(e=>tJ(e)));i.push(...r)}for(let e=0;e<r.length;e+=qq){let t=r.slice(e,e+qq),n=await Promise.all(t.map(e=>tJ(e)));a.push(...n)}let{entries:o,errors:s}=await Hq(i),c=[];for(let e=0;e<n.length;e+=qq){let t=n.slice(e,e+qq),r=await Promise.all(t.map(e=>nJ(e)));c.push(...r)}dL.set(o),iq.set(c),Dq.set(a),fL.set(s),cL.set(!0)},iJ=()=>`move`in FileSystemFileHandle.prototype&&!eG.isBrave,aJ=async(e,t)=>{let n=await e.createWritable?.();try{await n?.write(t)}finally{try{await n?.close()}catch{}}},oJ=async({rootDirHandle:e,previousPath:t,path:n})=>{let{dirname:r,basename:i}=pM(n),{dirname:a,basename:o}=pM(t),s=await Yq(e,t);if(iJ())return await s.move(await Xq(e,r),i),s;let c=await Yq(e,n),l=await Xq(e,a);return await aJ(c,await s.getFile()),await l.removeEntry(o),c},sJ=async({rootDirHandle:e,fileHandle:t,path:n,data:r})=>{let i;if(!t){if(iJ()){let{dirname:r,basename:a}=pM(jD(n)),o=`${r?`${r}/`:``}.sveltia-tmp-${crypto.randomUUID()}`;t=await Yq(e,o),i={dirname:r,basename:a}}else t=await Yq(e,n)}if(await aJ(t,r),i){let{dirname:n,basename:r}=i;await t.move(await Xq(e,n),r)}return t.getFile()},cJ=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 Xq(e,i),o=await a.getDirectoryHandle(r);for await(let e of o.entries())return;await a.removeEntry(r)}},lJ=async({rootDirHandle:e,path:t})=>{let{dirname:n=``,basename:r}=pM(jD(t));await(await Xq(e,n)).removeEntry(r),n&&await cJ(e,n.split(`/`))},uJ=async(e,{action:t,path:n,previousPath:r,data:i})=>{let a;return t===`move`&&r&&(a=await oJ({rootDirHandle:e,previousPath:r,path:n})),[`create`,`update`,`move`].includes(t)&&i?sJ({rootDirHandle:e,fileHandle:a,path:n,data:i}):(t===`delete`&&await lJ({rootDirHandle:e,path:n}),null)},dJ=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 uJ(e,t)}catch(e){console.error(e)}if(!i){if(r===void 0)return null;i=Qz(r)}return[n,{file:i,sha:await $z(i)}]}));return{sha:await $z(new Date().toJSON()),files:Object.fromEntries(n.filter(e=>!!e))}}})))()}var pJ,mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ,SJ,CJ,wJ,TJ,EJ,DJ;function OJ(){return(OJ=s((()=>{sM(),aM(),WZ(),fJ(),qK(),pJ=`local`,mJ=`Local Repository`,hJ=void 0,gJ={service:``,label:``,owner:``,repo:``,branch:``},_J=new Proxy({},{get:(e,t)=>(hJ??gJ)[t]}),vJ=`root_dir_handle`,yJ=void 0,bJ=void 0,xJ=async({forceReload:e=!1,showPicker:t=!0}={})=>{if(!(`showDirectoryPicker`in window))throw Error(`unsupported`);let n=e?null:await yJ?.get(vJ)??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 yJ?.set(vJ,n)}return n},SJ=()=>{let{name:e}=A(VK).backend;hJ=LZ[e]?.init?.();let{databaseName:t}=hJ??{};return yJ=t?new oM(t,`file-system-handles`):null,_J},CJ=async({auto:e=!1})=>{let t=await xJ({showPicker:!e});if(t)bJ=t;else throw Error(`Directory handle could not be acquired`);return{backendName:pJ}},wJ=async()=>{await yJ?.delete(vJ)},TJ=async()=>{await rJ(bJ)},EJ=async e=>dJ(bJ,e),DJ={isGit:!1,name:pJ,label:mJ,repository:_J,init:SJ,signIn:CJ,signOut:wJ,fetchFiles:TJ,commitChanges:EJ}})))()}var kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ,RJ;function zJ(){return(zJ=s((()=>{fJ(),gL(),kJ=`sveltia-cms-test`,AJ=`test-repo`,jJ=`Test`,MJ=void 0,NJ=()=>void 0,PJ=async()=>{try{MJ=await Xq(await navigator.storage.getDirectory(),kJ)}catch{}return{backendName:AJ}},FJ=async()=>{},IJ=async()=>{MJ?await rJ(MJ):cL.set(!0)},LJ=async e=>dJ(MJ,e),RJ={isGit:!1,name:AJ,label:jJ,init:NJ,signIn:PJ,signOut:FJ,fetchFiles:IJ,commitChanges:LJ}})))()}var BJ,VJ,HJ,UJ,WJ,GJ;function KJ(){return(KJ=s((()=>{BJ=`gitea`,VJ=`Gitea / Forgejo`,HJ=`https://gitea.com/api/v1`,UJ=`https://gitea.com`,WJ=`login/oauth/authorize`,GJ=1.24})))()}var qJ;function JJ(){return(JJ=s((()=>{J(),uM(),qJ=Dr({account:void 0}),ei(()=>{Zr(()=>{let e=qJ.account;(async()=>{try{e?await lM.set(`sveltia-cms.user`,e):e===null&&await lM.delete(`sveltia-cms.user`)}catch{}})()})})})))()}var YJ,XJ,ZJ,QJ,$J,eY;function tY(){return(tY=s((()=>{Z(),JJ(),aG(),YJ={clientId:``,authScope:``,authURL:``,tokenURL:``,authScheme:`token`,restBaseURL:``,graphqlBaseURL:``,includeCredentials:!1},XJ={...YJ},ZJ={},QJ=async({clientId:e,tokenURL:t,refreshToken:n})=>{let r,i=``;if(!rG(t))throw Error(X(`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}),...XJ.includeCredentials&&{credentials:`include`}})}catch{}if(!r?.ok)throw Error(X(`sign_in_error.TOKEN_REFRESH_FAILED`));return{access_token:i,refresh_token:n}=await r.json(),qJ.account=qJ.account?{...qJ.account,token:i,refreshToken:n}:qJ.account,{token:i,refreshToken:n}},$J=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}=XJ,m=qJ.account,h=i?d:u;return o??=m?.token,s??=m?.refreshToken,n.Authorization=`${f} ${o}`,iG(`${h}${e}`,{method:t,headers:n,body:r,...p&&{credentials:`include`}},{responseType:a,refreshAccessToken:s?()=>QJ({clientId:c,tokenURL:l,refreshToken:s}):void 0})},eY=async(e,t={})=>{e=e.replace(/\n\s*/g,` `),Object.entries(ZJ).forEach(([n,r])=>{e.includes(`$${n}`)&&(t[n]??=r)});let{data:n}=await $J(``,{method:`POST`,body:{query:e,variables:t},isGraphQL:!0});return n}})))()}var nY;function rY(){return(rY=s((()=>{tY(),JJ(),nY=async({token:e,refreshToken:t},n,r)=>{let i=await $J(`/user`,{token:e,refreshToken:t}),a=qJ.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}}})))()}var iY;function aY(){return(aY=s((()=>{KJ(),rY(),iY=e=>nY(e,BJ,{name:`full_name`,login:`login`,profileURL:`html_url`})})))()}var oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY;function _Y(){return(_Y=s((()=>{Z(),md(),v(),uM(),aM(),qK(),aG(),oY=sn(!1),sY=({authURL:e})=>{let{availHeight:t,availWidth:n}=window.screen,r=t/2-400,i=n/2-300;return window.open(e,`auth`,`width=600,height=800,top=${r},left=${i}`)},cY=async({backendName:e,authURL:t,popup:n})=>(n??=sY({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??{},d;try{d=u?JSON.parse(u):{error:`No data`},g(d)||(d={error:`Malformed data`})}catch{d={error:`Malformed data`}}`token`in d?r(d):i(Error(`Authentication failed`,{cause:Error(d.errorCode?X(`sign_in_error.${d.errorCode}`,{default:d.error}):d.error)})),window.removeEventListener(`message`,o),clearInterval(a),n?.close()};window.addEventListener(`message`,o)})),lY=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 cY({backendName:e,authURL:`${n}?${a}`})},uY=async()=>{let e=`${fd()}${fd()}`,t=btoa(await pd(e,{algorithm:`SHA-256`,format:`binary`})).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``);return{csrfToken:dd().replaceAll(`-`,``),codeVerifier:e,codeChallenge:t}},dY=async({backendName:e,clientId:t,authURL:n,scope:r})=>{let{origin:i,pathname:a}=window.location,o=`${i}${a}`,s=sY({authURL:o});if(!s)throw Object.assign(Error(`Authentication aborted`),{name:`AbortError`});let{csrfToken:c,codeVerifier:l,codeChallenge:u}=await uY(),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 lM.set(`sveltia-cms.auth`,{csrfToken:c,codeVerifier:l,realAuthURL:`${n}?${d}`}),await lM.set(`sveltia-cms.user`,{backendName:e}),s.closed)throw Object.assign(Error(`Authentication aborted`),{name:`AbortError`});return cY({backendName:e,authURL:o,popup:s})},fY=({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)},pY=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 lM.get(`sveltia-cms.auth`)??{},d=e,f=`${s}${c}`;if(await lM.delete(`sveltia-cms.auth`),!l||!u||r!==l)return fY({provider:d,error:X(`sign_in_error.CSRF_DETECTED`),errorCode:`CSRF_DETECTED`});let p,m=``,h=``,g=``;if(!rG(a))return fY({provider:d,error:X(`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 fY({provider:d,error:X(`sign_in_error.TOKEN_REQUEST_FAILED`),errorCode:`TOKEN_REQUEST_FAILED`});try{({access_token:m,refresh_token:h,error:g}=await p.json())}catch{return fY({provider:d,error:X(`sign_in_error.MALFORMED_RESPONSE`),errorCode:`MALFORMED_RESPONSE`})}return fY({provider:d,token:m,refreshToken:h,error:g})},mY=async({backendName:e,apiConfig:t})=>{oY.set(!0);let{search:n}=window.location,{code:r,state:i}=Object.fromEntries(new URLSearchParams(n));if(r&&i)await pY({backendName:e,apiConfig:t,code:r,state:i});else{let{realAuthURL:e}=await lM.get(`sveltia-cms.auth`)??{};e&&(window.location.href=e)}},hY=async({auto:e,apiConfig:t})=>{let{backend:n}=A(VK),{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 mY({backendName:r,apiConfig:t}),n||e?void 0:dY({...l,clientId:o})}if(!e)return lY({...l,siteDomain:i})},gY=async({options:{token:e,refreshToken:t,auto:n=!1},apiConfig:r})=>{if(!e){let i=await hY({auto:n,apiConfig:r});if(!i)return;({token:e,refreshToken:t}=i)}return{token:e,refreshToken:t}}})))()}var vY,yY,bY;function xY(){return(xY=s((()=>{aY(),tY(),_Y(),vY=e=>{let{origin:t}=new URL(e);return`${t}/user/settings/applications`},yY=async e=>{let{token:t,refreshToken:n}=await gY({options:e,apiConfig:XJ})??{};if(t)return iY({token:t,refreshToken:n})},bY=async()=>void 0})))()}var SY,CY;function wY(){return(wY=s((()=>{SY={service:``,label:``,owner:``,repo:``,branch:``,repoURL:``,treeBaseURL:``,blobBaseURL:``,isSelfHosted:!1,databaseName:``},CY=(e,t)=>`${e===`https://api.github.com`?`https://github.com`:e.replace(/\/api(?:\/v\d+)?(?:\/.*)?/,``)}/${t}`})))()}var TY,EY,DY,OY,kY,AY;function jY(){return(jY=s((()=>{Z(),tY(),wY(),TY={...SY},EY=null,DY=(e,t)=>({treeBaseURL:t?`${e}/src/branch/${t}`:e,blobBaseURL:t?`${e}/src/branch/${t}`:``,commitBaseURL:`${e}/commit`}),OY=async()=>{let{owner:e,repo:t}=TY;return EY??=await $J(`/repos/${e}/${t}`),EY},kY=async()=>{let{repo:e}=TY;try{let{permissions:t}=await OY();if(!t?.pull)throw Error(`Not a collaborator of the repository`,{cause:Error(X(`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(X(`repository_not_found`,{values:{repo:e}}))})}},AY=async()=>{let{repo:e,repoURL:t=``}=TY;try{let{default_branch:n}=await OY();if(!n)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(X(`repository_empty`,{values:{repo:e}}))});return Object.assign(TY,{branch:n},DY(t,n)),n}catch{throw Error(`Failed to retrieve the default branch name.`,{cause:Error(X(`repository_not_found`,{values:{repo:e}}))})}}})))()}var MY,NY;function PY(){return(PY=s((()=>{aM(),qK(),sL(),JJ(),MY={create:`Create {{collection}} “{{slug}}”`,update:`Update {{collection}} “{{slug}}”`,delete:`Delete {{collection}} “{{slug}}”`,uploadMedia:`Upload “{{path}}”`,deleteMedia:`Delete “{{path}}”`,openAuthoring:`{{message}}`},NY=(e,{commitType:t=`update`,collection:n,skipCI:r=void 0})=>{let{commit_messages:i={},skip_ci:a,automatic_deployments:o}=A(VK)?.backend??{},{email:s=``,login:c=``,name:l=``}=qJ.account,[u=``]=e.map(e=>e.slug).filter(Boolean),[d,...f]=e.map(({path:e})=>e),p=n?aL(n,{useSingular:!0}):``,m=i[t]||MY[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}})))()}var FY,IY,LY;function RY(){return(RY=s((()=>{Z(),hM(),jY(),tY(),PY(),JJ(),FY=async()=>{let{owner:e,repo:t,branch:n}=TY;try{let{commit:{id:r,message:i}}=await $J(`/repos/${e}/${t}/branches/${n}`);return{hash:r,message:i}}catch{throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(X(`branch_not_found`,{values:{repo:t,branch:n}}))})}},IY=async(e,t)=>{let{owner:n,repo:r,branch:i}=TY,a=NY(e,t),{name:o,email:s}=qJ.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 mM(i),from_path:n,sha:r}))),{commit:u,files:d}=await $J(`/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??``}]))}},LY=async e=>{let{owner:t,repo:n,branch:r}=TY,i=await Promise.all(e.map(e=>$J(`/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())}})))()}var zY,BY;function VY(){return(VY=s((()=>{Z(),KJ(),jY(),tY(),zY={isForgejo:!1},BY=async()=>{let{version:e}=await $J(`/version`),t=Number.parseFloat(e),n=t>10,r=n?`Forgejo`:`Gitea`,i=n?12:GJ;if(Object.assign(zY,{isForgejo:n}),Object.assign(TY,{label:r}),t<i)throw Error(`Unsupported ${r} version`,{cause:Error(X(`backend_unsupported_version`,{values:{name:r,version:i}}))})}})))()}var HY,UY,WY,GY,KY,qY,JY;function YY(){return(YY=s((()=>{hM(),sM(),aM(),Tq(),OR(),WZ(),Oq(),Gq(),qK(),gL(),Uq(),HY=async({metaDB:e,lastCommitHash:t,cachedFileEntries:n,fetchFileList:r})=>{let i=A(HK),{last_config_hash:a,last_commit_hash:o,git_config_fetched:s}=Object.fromEntries(await e.entries());if(a&&a===i&&o&&o===t&&s&&n.length)return Wq(n.map(([e,t])=>({path:e,name:pM(e).basename,...t})));let c=Wq(await r(t));return e.saveEntries(Object.entries({last_config_hash:i,last_commit_hash:t,git_config_fetched:!0})),c},UY=({allFiles:e,cachedFiles:t})=>{e.forEach(({sha:n,path:r},i)=>{t[r]?.sha===n&&Object.assign(e[i],t[r])})},WY=({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}},GY=e=>{let{name:t,meta:n={},...r}=e,i=DR(t);return{...r,...n,name:t,kind:i}},KY=({entries:e,assets:t,configFiles:n,errors:r=[]})=>{dL.set(e),iq.set(t),Dq.set(n),fL.set(r),cL.set(!0)},qY=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)},JY=async({repository:e,fetchDefaultBranchName:t,fetchLastCommit:n,fetchFileList:r,fetchFileContents:i})=>{let{databaseName:a,branch:o}=e,s=new oM(a,`meta`),c=new oM(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 HY({metaDB:s,lastCommitHash:d,cachedFileEntries:l,fetchFileList:r});if(UZ.set(!f.startsWith(`[skip ci]`)),!p.count){KY({entries:[],assets:[],configFiles:[]});return}let{entryFiles:m,assetFiles:h,configFiles:g,allFiles:_}=p,v=Object.fromEntries(l);UY({allFiles:_,cachedFiles:v});let y=_.filter(({meta:e})=>!e),b=y.length?await i(y):{},{entries:x,errors:S}=await Hq(m.map(e=>WY({fileInfo:e,fetchedFileMap:b}))),C=h.map(e=>GY(WY({fileInfo:e,fetchedFileMap:b}))),w=g.map(e=>WY({fileInfo:e,fetchedFileMap:b}));KY({entries:x,assets:C,configFiles:w,errors:S}),await qY({cacheDB:c,allFiles:_,cachedFiles:v,fetchingFiles:y,fetchedFileMap:b})}})))()}var XY,ZY,QY,$Y,eX;function tX(){return(tX=s((()=>{hM(),RY(),VY(),jY(),tY(),YY(),gL(),XY=async e=>{let{owner:t,repo:n,branch:r}=TY,i=`/repos/${t}/${n}/git/trees/${e??r}?recursive=1`,a=[],o=1;for(;;){let{tree:e,truncated:t}=await $J(`${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:pM(e).basename}))},ZY=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 Uce(a.content):``,meta:{}}]}).filter(e=>!!e));return Object.fromEntries(n)},QY=async e=>{let{owner:t,repo:n,branch:r}=TY,{isForgejo:i}=zY,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];lL.set(0);let{default_paging_num:u=30}=await $J(`/settings/api`);for(;;){let e=l.splice(0,u),t=await(i?$J(`${a}?shas=${e.join(`,`)}`):$J(a,{method:`POST`,body:{files:e}}));if(c.push(...t),lL.set(Math.ceil((s.length-l.length)/s.length*100)),!l.length)break}return lL.set(void 0),ZY(e,c)},$Y=async()=>{await BY(),await kY(),await JY({repository:TY,fetchDefaultBranchName:AY,fetchLastCommit:FY,fetchFileList:XY,fetchFileContents:QY})},eX=async e=>{let{owner:t,repo:n,branch:r}=TY,{path:i}=e;return $J(`/repos/${t}/${n}/media/${r}/${encodeURI(i)}`,{responseType:`blob`})}})))()}var nX,rX;function iX(){return(iX=s((()=>{FD(),aM(),xY(),RY(),KJ(),tX(),jY(),tY(),wY(),qK(),FK(),nX=()=>{let{backend:e}=A(VK)??{};if(e?.name!==`gitea`)return;let{repo:t,branch:n,base_url:r=UJ,auth_endpoint:i=WJ,app_id:a=``,api_root:o=HJ,include_credentials:s=!1}=e,[c,l]=t.split(`/`),u=`${c}/${l}`,d=`${jD(r)}/${jD(i)}`,f=CY(o,u);return Object.assign(TY,{service:BJ,label:VJ,owner:c,repo:l,branch:n,repoURL:f,tokenPageURL:vY(f),databaseName:`${BJ}:${u}`,isSelfHosted:o!==HJ},DY(f,n)),Object.assign(XJ,{clientId:a,authScope:`read:repository,write:repository,read:user`,authURL:d,tokenURL:d.replace(`/authorize`,`/access_token`),restBaseURL:jD(o),includeCredentials:s}),NK.devModeEnabled&&console.info(`repositoryInfo`,TY),TY},rX={isGit:!0,name:BJ,label:VJ,repository:TY,init:nX,signIn:yY,signOut:bY,fetchFiles:$Y,fetchBlob:eX,commitChanges:IY,fetchFileCommits:LY}})))()}var aX,oX,sX,cX,lX,uX,dX;function fX(){return(fX=s((()=>{aX=`github`,oX=`GitHub`,sX=`https://api.github.com`,cX=`https://api.netlify.com`,lX=`auth`,uX=`https://github.com`,dX=`login/oauth/authorize`})))()}var pX,mX;function hX(){return(hX=s((()=>{FD(),fX(),pX=e=>(e=jD(e),e===`https://api.github.com`||e.endsWith(`/api/v3`)?e:e.endsWith(`/api`)?`${e}/v3`:`${e}/api/v3`),mX=e=>(e=jD(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`)})))()}var gX;function _X(){return(_X=s((()=>{fX(),rY(),gX=e=>nY(e,aX,{name:`name`,login:`login`,profileURL:`html_url`})})))()}var vX,yX,bX;function xX(){return(xX=s((()=>{_X(),tY(),_Y(),vX=e=>{let{origin:t}=new URL(e);return`${t}/settings/personal-access-tokens/new?${new URLSearchParams({name:`Sveltia CMS`,contents:`write`})}`},yX=async e=>{let{token:t,refreshToken:n}=await gY({options:e,apiConfig:XJ})??{};if(t)return gX({token:t,refreshToken:n})},bX=async()=>void 0})))()}var SX,CX,wX,TX,EX;function DX(){return(DX=s((()=>{Z(),tY(),wY(),JJ(),SX={...SY},CX=(e,t)=>({treeBaseURL:t?`${e}/tree/${t}`:e,blobBaseURL:t?`${e}/blob/${t}`:``,commitBaseURL:`${e}/commit`}),wX=async()=>{let{owner:e,repo:t}=SX,n=qJ.account?.login,{ok:r}=await $J(`/repos/${e}/${t}/collaborators/${encodeURIComponent(n)}`,{headers:{Accept:`application/json`},responseType:`raw`});if(!r)throw Error(`Not a collaborator of the repository`,{cause:Error(X(`repository_no_access`,{values:{repo:t}}))})},TX=`
|
||
query($owner: String!, $repo: String!) {
|
||
repository(owner: $owner, name: $repo) {
|
||
defaultBranchRef {
|
||
name
|
||
}
|
||
}
|
||
}
|
||
`,EX=async()=>{let{repo:e,repoURL:t=``}=SX,n=await eY(TX);if(!n.repository)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(X(`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(X(`repository_empty`,{values:{repo:e}}))});return Object.assign(SX,{branch:r},CX(t,r)),Object.assign(ZJ,{branch:r}),r}})))()}var OX,kX,AX,jX,MX;function NX(){return(NX=s((()=>{Z(),hM(),DX(),tY(),PY(),OX=`
|
||
query($owner: String!, $repo: String!, $branch: String!) {
|
||
repository(owner: $owner, name: $repo) {
|
||
ref(qualifiedName: $branch) {
|
||
target {
|
||
... on Commit {
|
||
history(first: 1) {
|
||
nodes {
|
||
oid
|
||
message
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,kX=async()=>{let{repo:e,branch:t}=SX,n=await eY(OX);if(!n.repository)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(X(`repository_not_found`,{values:{repo:e}}))});if(!n.repository.ref)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(X(`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}},AX=10485760,jX=async(e,t)=>{let{owner:n,repo:r,branch:i}=SX,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 mM(t??``)}))),s=e.filter(({action:e})=>[`move`,`delete`].includes(e)).map(({previousPath:e,path:t})=>({path:e??t})),c=`
|
||
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)<=AX?`file_${t}: file(path: ${JSON.stringify(e)}) { oid }`:``}).filter(Boolean).join(` `)}
|
||
}
|
||
}
|
||
}
|
||
`,l={branch:{repositoryNameWithOwner:`${n}/${r}`,branchName:i},expectedHeadOid:(await kX()).hash,fileChanges:{additions:o,deletions:s},message:{headline:NY(e,t)}},{createCommitOnBranch:{commit:u}}=await eY(c,{input:l});return{sha:u.oid,date:new Date(u.committedDate),files:Object.fromEntries(o.map(({path:e},t)=>{let{data:n}=a[t];return[e,{sha:u[`file_${t}`]?.oid,...n instanceof Blob&&n.size>AX?{file:n}:{}}]}))}},MX=async e=>{let t=`
|
||
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=await eY(t),r=new Map;return e.forEach((e,t)=>{(n.repository[`history_${t}`]?.target?.history?.nodes??[]).forEach(e=>{r.has(e.oid)||r.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)})})}),[...r.values()].sort((e,t)=>t.date.getTime()-e.date.getTime())}})))()}var PX;function FX(){return(FX=s((()=>{DX(),tY(),PX=async()=>{let{owner:e,repo:t}=SX;return $J(`/repos/${e}/${t}/dispatches`,{method:`POST`,body:{event_type:`sveltia-cms-publish`},responseType:`raw`})}})))()}var IX,LX,RX,zX,BX,VX;function HX(){return(HX=s((()=>{hM(),rd(),iR(),NX(),DX(),tY(),YY(),gL(),IX=async e=>{let{owner:t,repo:n,branch:r}=SX;return(await $J(`/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:pM(e).basename}))},LX=(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(``)}
|
||
}
|
||
}
|
||
`,RX=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)},zX=async e=>{let t=structuredClone(e),n=[],r={};lL.set(0);let i=window.setInterval(()=>{lL.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 nd(t*500);let n=await eY(LX(e,t*250));Object.assign(r,n.repository)})),window.clearInterval(i),lL.set(void 0),RX(t,r)},BX=async()=>{await wX(),await JY({repository:SX,fetchDefaultBranchName:EX,fetchLastCommit:kX,fetchFileList:IX,fetchFileContents:zX})},VX=async e=>{let{owner:t,repo:n}=SX,{sha:r,path:i}=e,a=await $J(`/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:rR.getType(i)??`text/plain`})}})))()}var UX,WX,GX;function KX(){return(KX=s((()=>{aG(),UX=`https://www.githubstatus.com/`,WX=`https://www.githubstatus.com/api/v2/status.json`,GX=async()=>{try{let{status:{indicator:e}}=await iG(WX);if(e===`none`)return`none`;if(e===`minor`)return`minor`;if(e===`major`||e===`critical`)return`major`}catch{}return`unknown`}})))()}var qX,JX;function YX(){return(YX=s((()=>{FD(),aM(),hX(),xX(),NX(),fX(),FX(),HX(),DX(),KX(),tY(),wY(),qK(),FK(),qX=()=>{let{backend:e}=A(VK)??{};if(e?.name!==`github`)return;let{repo:t,branch:n,auth_type:r=``,base_url:i=r===`pkce`?uX:cX,auth_endpoint:a=r===`pkce`?dX:lX,app_id:o=``,api_root:s=sX,graphql_api_root:c=s,include_credentials:l=!1}=e,[u,d]=t.split(`/`),f=`${u}/${d}`,p=`${jD(i)}/${jD(a)}`,m=CY(s,f);return Object.assign(SX,{service:aX,label:oX,owner:u,repo:d,branch:n,repoURL:m,tokenPageURL:vX(m),databaseName:`${aX}:${f}`,isSelfHosted:s!==sX},CX(m,n)),Object.assign(XJ,{clientId:o,authScope:`repo,user`,authURL:p,tokenURL:p.replace(`/authorize`,`/access_token`),restBaseURL:pX(s),graphqlBaseURL:mX(c),includeCredentials:l}),Object.assign(ZJ,{owner:u,repo:d,branch:n}),NK.devModeEnabled&&console.info(`repositoryInfo`,SX),SX},JX={isGit:!0,name:aX,label:oX,repository:SX,statusDashboardURL:UX,checkStatus:GX,init:qX,signIn:yX,signOut:bX,fetchFiles:BX,fetchBlob:VX,commitChanges:jX,fetchFileCommits:MX,triggerDeployment:PX}})))()}var XX,ZX,QX,$X,eZ;function tZ(){return(tZ=s((()=>{XX=`gitlab`,ZX=`GitLab`,QX=`https://gitlab.com/api/v4`,$X=`https://gitlab.com`,eZ=`oauth/authorize`})))()}var nZ;function rZ(){return(rZ=s((()=>{tZ(),rY(),nZ=e=>nY(e,XX,{name:`name`,login:`username`,profileURL:`web_url`})})))()}var iZ,aZ,oZ;function sZ(){return(sZ=s((()=>{rZ(),tY(),_Y(),iZ=e=>{let{origin:t}=new URL(e);return`${t}/-/user_settings/personal_access_tokens?${new URLSearchParams({name:`Sveltia CMS`,scopes:`api,read_user`})}`},aZ=async e=>{let{token:t,refreshToken:n}=await gY({options:e,apiConfig:XJ})??{};if(t)return nZ({token:t,refreshToken:n})},oZ=async()=>void 0})))()}var cZ,lZ,uZ,dZ,fZ;function pZ(){return(pZ=s((()=>{Z(),tY(),wY(),JJ(),cZ={...SY},lZ=(e,t)=>({treeBaseURL:t?`${e}/-/tree/${t}`:e,blobBaseURL:t?`${e}/-/blob/${t}`:``,commitBaseURL:`${e}/-/commit`}),uZ=async()=>{let{owner:e,repo:t}=cZ,{id:n,login:r,bot:i}=qJ.account,a=`/projects/${encodeURIComponent(`${e}/${t}`)}`,o=i?`${a}/service_accounts`:`${a}/users?search=${r}`,s=await $J(o,{headers:{Accept:`application/json`},responseType:`raw`});if(!(s.ok?await s.json():[]).some(e=>e.id===n))throw Error(`Not a collaborator of the repository`,{cause:Error(X(`repository_no_access`,{values:{repo:t}}))})},dZ=`
|
||
query($fullPath: ID!) {
|
||
project(fullPath: $fullPath) {
|
||
repository {
|
||
rootRef
|
||
}
|
||
}
|
||
}
|
||
`,fZ=async()=>{let{repo:e,repoURL:t=``}=cZ,n=await eY(dZ);if(!n.project)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(X(`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(X(`repository_empty`,{values:{repo:e}}))});return Object.assign(cZ,{branch:r},lZ(t,r)),Object.assign(ZJ,{branch:r}),r}})))()}var mZ,hZ,gZ,_Z,vZ;function yZ(){return(yZ=s((()=>{Z(),hM(),pZ(),tY(),PY(),eB(),mZ=`
|
||
query($fullPath: ID!, $branch: String!) {
|
||
project(fullPath: $fullPath) {
|
||
repository {
|
||
tree(ref: $branch) {
|
||
lastCommit {
|
||
sha
|
||
message
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,hZ=async()=>{let{repo:e,branch:t}=cZ,n=await eY(mZ);if(!n.project)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(X(`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(X(`branch_not_found`,{values:{repo:e,branch:t}}))});let{sha:i,message:a}=r;return{hash:i,message:a}},gZ=async(e,t)=>{let{owner:n,repo:r,branch:i}=cZ,a=await Promise.all(e.map(async({action:e,path:t,previousPath:n,data:r=``})=>({action:e,content:typeof r==`string`?r:await mM(r),encoding:typeof r==`string`?`text`:`base64`,file_path:t,previous_path:n}))),{id:o,committed_date:s}=await $J(`/projects/${encodeURIComponent(`${n}/${r}`)}/repository/commits`,{method:`POST`,body:{branch:i,commit_message:NY(e,t),actions:a}}),c=await Promise.all(e.map(async({path:e,data:t})=>t===void 0?null:[e,{sha:await $z(t)}]));return{sha:o,date:new Date(s),files:Object.fromEntries(c.filter(e=>!!e))}},_Z=async e=>{try{let{avatar_url:t}=await $J(`/avatar?email=${encodeURIComponent(e)}&size=48`);return t||void 0}catch{return}},vZ=async e=>{let{owner:t,repo:n,branch:r}=cZ,i=encodeURIComponent(`${t}/${n}`),a=await Promise.all(e.map(e=>$J(`/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 _Z(e)]))),l=[...o.values()].sort((e,t)=>t.date.getTime()-e.date.getTime());return l.forEach(e=>{e.authorAvatarURL=c.get(e.authorEmail)}),l}})))()}var bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ;function OZ(){return(OZ=s((()=>{hM(),yZ(),pZ(),tY(),YY(),gL(),bZ=`
|
||
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
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,xZ=async()=>{let e=[],t=``;for(;;){let{nodes:n,pageInfo:{endCursor:r,hasNextPage:i}}=(await eY(bZ,{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:pM(e).basename}))},SZ=`
|
||
query($fullPath: ID!, $branch: String!, $paths: [String!]!) {
|
||
project(fullPath: $fullPath) {
|
||
repository {
|
||
blobs(ref: $branch, paths: $paths) {
|
||
nodes {
|
||
rawTextBlob
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,CZ=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=cZ,r=n?20:100,i=[...e],a=[];for(;;){let e=i.splice(0,r),n=await eY(t,{paths:e});if(a.push(...n.project.repository.blobs.nodes),!i.length)break}return Object.fromEntries(e.map((e,t)=>[e,a[t]]))},wZ=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)},TZ=async e=>{lL.set(0);let t=window.setInterval(()=>{lL.update((e=0)=>e+1)},e.length/10),n=e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),r=await CZ(n,SZ);return window.clearInterval(t),lL.set(void 0),wZ({fetchingFiles:e,blobs:r})},EZ=async()=>{await uZ(),await JY({repository:cZ,fetchDefaultBranchName:fZ,fetchLastCommit:hZ,fetchFileList:xZ,fetchFileContents:TZ})},DZ=async e=>{let{owner:t,repo:n,branch:r=``}=cZ,{path:i}=e;return $J(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})))()}var kZ,AZ,jZ;function MZ(){return(MZ=s((()=>{aG(),kZ=`https://status.gitlab.com/`,AZ=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,jZ=async()=>{try{let{result:{status_overall:{status_code:e}}}=await iG(AZ);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})))()}var NZ,PZ,FZ;function IZ(){return(IZ=s((()=>{FD(),aM(),sZ(),yZ(),tZ(),OZ(),pZ(),MZ(),tY(),wY(),qK(),FK(),NZ=/(?<owner>.+)\/(?<repo>[^/]+)$/,PZ=()=>{let{backend:e}=A(VK)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=$X,auth_endpoint:i=eZ,app_id:a=``,api_root:o=QX,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(NZ)?.groups??{},d=`${l}/${u}`,f=`${jD(r)}/${jD(i)}`,p=CY(o,d);return Object.assign(cZ,{service:XX,label:ZX,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:iZ(p),databaseName:`${XX}:${d}`,isSelfHosted:o!==QX},lZ(p,n)),Object.assign(XJ,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:jD(o),graphqlBaseURL:jD(s),includeCredentials:c}),Object.assign(ZJ,{fullPath:d,branch:n}),NK.devModeEnabled&&console.info(`repositoryInfo`,cZ),cZ},FZ={isGit:!0,name:XX,label:ZX,repository:cZ,statusDashboardURL:kZ,checkStatus:jZ,init:PZ,signIn:aZ,signOut:oZ,fetchFiles:EZ,fetchBlob:DZ,commitChanges:gZ,fetchFileCommits:vZ}})))()}var LZ,RZ,zZ,BZ,VZ,HZ,UZ;function WZ(){return(WZ=s((()=>{aM(),OJ(),zJ(),iX(),YX(),IZ(),LZ={github:JX,gitlab:FZ,gitea:rX,local:DJ,"test-repo":RJ},RZ={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},zZ=Object.keys(LZ).filter(e=>e!==`local`),BZ=Object.fromEntries(Object.entries(LZ).filter(([,e])=>e.isGit)),VZ=sn(),HZ=cn([VZ],([e],t,n)=>{n(t=>{let n=e?LZ[e]:void 0;return n&&n!==t&&n.init(),n})}),UZ=sn(!0)})))()}var GZ,KZ,qZ,JZ,YZ;function XZ(){return(XZ=s((()=>{sM(),FD(),GZ=u(kK(),1),zV(),KZ=(e,t,n,r)=>{let i=RV(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])=>PD(e,t))},qZ=(e,t,n)=>n?n.test(String(e??``)):e===t,JZ=(e,t,n,r)=>{let i=e.map(e=>({item:e,key:t(e)}));return i.sort(({key:e},{key:t})=>n?PD(e,t):e-t),r===`descending`&&i.reverse(),e.splice(0,e.length,...i.map(({item:e})=>e)),e},YZ=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new oM(r,`ui-settings`):null,a=await i?.get(t)??{};n.set(a);let o=a;n.subscribe(e=>{(0,GZ.default)(e,o)||(o=e,(async()=>{try{await i?.set(t,e)}catch{}})())})}})))()}var ZZ;function QZ(){return(QZ=s((()=>{OR(),XZ(),zV(),ZZ=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>DR(e)===n);let r=RV(n);return e.filter(e=>{let i=e[t];return qZ(i,n,r)})}})))()}var $Z;function eQ(){return(eQ=s((()=>{Z(),XZ(),$Z=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=X(`other`);return Object.fromEntries(KZ(e,n,e=>e[t],r))}})))()}var tQ,nQ,rQ;function iQ(){return(iQ=s((()=>{tQ=u(kK(),1),aM(),kM(),_Q(),XZ(),nQ=sn(),rQ=async({repository:e})=>{await YZ(e,`assets-view`,nQ),CM.subscribe(e=>{let t=A(nQ)?.[e?.internalPath??`*`]??structuredClone(pQ);(0,tQ.default)(t,A(mQ))||mQ.set(t)}),mQ.subscribe(e=>{let t=A(CM)?.internalPath??`*`,n=A(nQ)?.[t]??{};(0,tQ.default)(e,n)||nQ.update(n=>({...n,[t]:e}))})}})))()}var aQ,oQ;function sQ(){return(sQ=s((()=>{XZ(),aQ=(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]??``},oQ=(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 JZ(r,e=>{let n=aQ(e,t);return i===String?n??``:Number(n??0)},i===String,n),r}})))()}var cQ,lQ,uQ,dQ,fQ,pQ,mQ,hQ,gQ;function _Q(){return(_Q=s((()=>{Z(),cQ=u(kK(),1),aM(),Tq(),kM(),QZ(),eQ(),iQ(),sQ(),WZ(),sL(),cI(),FK(),lQ=sn(!1),uQ=sn(!1),dQ=cn([fq],([e],t)=>{t(!!e.files.length)}),fQ=({label:e,collectionName:t,fileName:n,internalPath:r})=>{if(e)return e;if(t===void 0)return X(r===void 0?`all_assets`:`global_assets`);let i=iL(t),a=i?aL(i):t;if(!n)return a;let o=i?rI(i,n):void 0;return`${a} › ${o?iI(o):n}`},pQ={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},mQ=sn({type:`grid`,showInfo:!0}),hQ=cn([iq,CM],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,cQ.default)(e,t))):n(e?[...e]:[])}),gQ=cn([hQ,mQ],([e,t],n)=>{let r=[...e];r=oQ(r,t.sort),r=ZZ(r,t.filter);let i=$Z(r,t.group);(0,cQ.default)(A(gQ),i)||n(i)}),HZ.subscribe(e=>{e&&!A(nQ)&&rQ(e)}),hQ.subscribe(e=>{cq.set([]),NK.devModeEnabled&&console.info(`listedAssets`,e)})})))()}var vQ,yQ,bQ,xQ,SQ,CQ,wQ,TQ;function EQ(){return(EQ=s((()=>{aM(),vQ=sn(!1),yQ=sn(!1),bQ=sn(0),xQ=sn({show:!1,multiple:!1}),SQ=sn({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),CQ=sn(null),wQ=sn(null),TQ=sn()})))()}var DQ;function OQ(){return(OQ=s((()=>{DQ=(e,{noopener:t=!0}={})=>{if(!e)return null;let n=t?`noopener,noreferrer`:``;return window.open(e,`_blank`,n)}})))()}var kQ,AQ,jQ,MQ,NQ,PQ,FQ,IQ,LQ,RQ;function zQ(){return(zQ=s((()=>{rd(),oc(),aM(),_Q(),qK(),EQ(),OQ(),kQ=cn([vQ,lQ],([e,t])=>e||t),AQ=sn(``),jQ=sn(``),MQ=(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(`,`)]))}},NQ=null,PQ=(e,t)=>{if(!document.startViewTransition||NQ){t();return}let n={types:[e],update:async()=>{t(),await nd(50),await new Promise(e=>{Xn(()=>{e(void 0)})})}};try{NQ=document.startViewTransition(n),NQ.finished.finally(()=>{NQ=null})}catch{t()}},FQ=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=MQ(i).path,s=MQ(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;PQ(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},IQ=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=MQ();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&&PQ(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},LQ=(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&&MQ(a).path===e?PQ(n,()=>{window.navigation.back()}):IQ(e,{...t,transitionType:n});return}window.history.state?.from?PQ(n,()=>{window.history.back()}):IQ(e,{...t,transitionType:n})},RQ=()=>{let{display_url:e,_siteURL:t}=A(VK);DQ(e||t||`/`)}})))()}var BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ;function QQ(){return(QQ=s((()=>{J(),Z(),v(),uM(),aM(),zQ(),WZ(),qK(),gL(),JJ(),FK(),BQ=/^\/signin\/(?<encodedData>.+)/,VQ=Dr({signInError:{message:``,context:`authentication`},unauthenticated:!0,signingIn:!1}),HQ=async()=>{await lM.set(`sveltia-cms.user`,{}),qJ.account=void 0,VQ.unauthenticated=!0},UQ=async e=>{(typeof e?.cause?.status==`number`||e?.message===`Not a collaborator of the repository`)&&await HQ()},WQ=()=>{VQ.signInError={message:``,context:`authentication`}},GQ=(e,t=`authentication`)=>{let n=e.cause?.message||X(`unexpected_error`);e.name===`NotFoundError`&&(n=X(`sign_in_error.not_project_root`)),e.name===`AbortError`&&(n=X(A(VZ)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),VQ.signInError={message:n,context:t},console.error(e.name,e.message,e.cause)},KQ=()=>{let{path:e}=MQ(),{encodedData:t}=e.match(BQ)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};IQ(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));g(e)&&typeof e.token==`string`&&(n={token:e.token},g(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},qQ=async()=>{let e=await lM.get(`sveltia-cms.user`)||await lM.get(`decap-cms-user`)||await lM.get(`netlify-cms-user`);return g(e)&&typeof e.backendName==`string`?e:void 0},JQ=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:A(VK).backend.name;return VZ.set(t),A(HZ)},YQ=async()=>{WQ();let e,t;({_user:e,copiedPrefs:t}=KQ()),e??=await qQ();let n=JQ(e);if(e){if(e&&n){qJ.account=e;let{token:t,refreshToken:r}=e;VQ.signingIn=!0;try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,qJ.account=void 0}}if(VQ.signingIn=!1,VQ.unauthenticated=!e,!(!e||!n)){qJ.account=e,t&&Object.assign(NK,t);try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?VQ.unauthenticated=!0:GQ(e,`dataFetch`),await UQ(e)}}}},XQ=async(e,t)=>{WQ(),VZ.set(e);let n=A(HZ);if(!n)return;let r;VQ.signingIn=!0;try{r=await n.signIn({token:t,auto:!1})}catch(e){VQ.signingIn=!1,VQ.unauthenticated=!0,t&&e.cause?.status===401?GQ(Error(`Invalid token`,{cause:{message:X(`sign_in_error.invalid_token`)}})):GQ(e);return}if(VQ.signingIn=!1,VQ.unauthenticated=!r,r){qJ.account=r;try{await n.fetchFiles()}catch(e){GQ(e,`dataFetch`),await UQ(e)}}},ZQ=async()=>{await A(HZ)?.signOut(),await HQ(),VZ.set(void 0),cL.set(!1);let e=A(VK)?.logout_redirect_url;e&&(window.location.href=e)}})))()}function $Q(e,t){O(t,!0),G(e,s$);let n=()=>j(VK,`$cmsConfig`,r),[r,i]=fn(),a=N(!1),o=N(``),s=M(()=>n()?.backend),c=M(()=>z(s).name),l=M(()=>z(c)?LZ[z(c)]:null),u=M(()=>z(c)===`test-repo`),d=M(()=>z(u)?void 0:z(s)?.repo?.split(`/`).pop()),f=M(()=>eG.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);rc(()=>{VQ.signInError.message||YQ()});var v=o$(),y=I(v),b=F(y),x=e=>{var t=e$(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`signing_in`)]),H(e,t)},S=e=>{var t=r$(),n=I(t),r=e=>{var t=r$(),n=I(t);{let e=M(()=>X(`work_with_local_repo`)),t=M(()=>!eG.isLocalBackendSupported);Bd(n,{variant:`primary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{await XQ(`local`)}})}var r=L(n,2),i=e=>{var t=t$(),n=F(t),r=e=>{var t=V();vo(I(t),()=>HH(X(`local_workflow.disabled`),`https://sveltiacms.app/en/docs/workflows/local#enabling-file-system-access-api-in-brave`)),H(e,t)},i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`local_workflow.unsupported_browser`)]),H(e,t)};W(n,e=>{eG.isBrave?e(r):e(i,-1)}),D(t),H(e,t)},a=e=>{var t=n$(),n=F(t),r=e=>{var t=ja();R(e=>U(t,e),[()=>X(`work_with_local_repo_description`,{values:{repo:z(d)}})]),H(e,t)},i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`work_with_local_repo_description_no_repo`)]),H(e,t)};W(n,e=>{z(d)?e(r):e(i,-1)}),D(t),H(e,t)};W(r,e=>{eG.isLocalBackendSupported?VQ.signInError.message||e(a,1):e(i)}),Yf(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)?X(`work_with_test_repo`):X(`sign_in_with_x`,{values:{service:z(m)}}));Bd(e,{get variant(){return z(t)},get label(){return z(n)},get disabled(){return z(_)},onclick:async()=>{await XQ(z(c))}})}};W(i,e=>{z(g)||e(o)});var s=L(i,2),l=e=>{{let t=M(()=>X(`sign_in_using_access_token`,{values:{service:z(m)}}));Bd(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=>{VQ.signingIn?e(x):z(l)&&e(S,1)});var C=L(b,2),w=e=>{var t=i$(),n=F(t);sc(n,{name:`error`});var r=L(n);D(t),R(()=>U(r,` ${VQ.signInError.message??``}`)),H(e,t)};W(C,e=>{VQ.signInError.message&&VQ.signInError.context===`authentication`&&e(w)}),D(y);var T=L(y,2);{let e=M(()=>X(`sign_in_using_access_token`)),t=M(()=>({spellcheck:!1,"aria-label":X(`personal_access_token`)})),n=M(()=>X(`sign_in`)),r=M(()=>!z(p));Mp(T,{get title(){return z(e)},get textboxAttrs(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:()=>{XQ(z(c),z(p))},onkeydown:e=>{!e.isComposing&&e.key===`Enter`&&z(p)&&(e.preventDefault(),P(a,!1),XQ(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)=>{mt();var n=a$(),r=I(n),i=L(r),a=e=>{var t=V();vo(I(t),()=>HH(X(`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??``} `),[()=>X(`sign_in_using_access_token_description`)]),H(e,n)},$$slots:{default:!0}})}H(e,v),k(),i()}var e$,t$,n$,r$,i$,a$,o$,s$;function c$(){return(c$=s((()=>{Y(),J(),Z(),Kd(),dc(),Ip(),$f(),oc(),WZ(),qK(),QQ(),nG(),UH(),e$=B(`<div role="alert" class="message svelte-1ff54ya"> </div>`),t$=B(`<div role="alert" class="svelte-1ff54ya"><!></div>`),n$=B(`<div role="none"><!></div>`),r$=B(`<!> <!> <!>`,1),i$=B(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),a$=B(` <!>`,1),o$=B(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),s$={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);}}`}})))()}var l$;function u$(){return(u$=s((()=>{l$=`<svg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="400" x2="400" y1="0" y2="800"><stop offset="0" stop-color="#f0980b"/><stop offset="1" stop-color="#ff1d00"/></linearGradient><clipPath id="b"><rect height="800" rx="80" width="800"/></clipPath><rect fill="url(#a)" height="800" rx="80" width="800"/><g style="clip-path:url(#b);fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:180"><path d="m320-80-200 320 200 320-200 320"/><path d="m400 240 200 320 200-320"/></g></svg>`})))()}var d$,f$,p$,m$,h$,g$,_$,v$,y$;function b$(){return(b$=s((()=>{hM(),iR(),aM(),u$(),qK(),aV(),d$=/^data:(image\/[a-zA-Z0-9.+-]+);base64,/,f$=`Sveltia CMS`,p$=`data:image/svg+xml;base64,${btoa(l$)}`,m$=cn([VK],([e])=>e?.app_title||`Sveltia CMS`),h$=cn([VK],([e])=>e?.logo?.src||e?.logo_url||p$),g$=cn(h$,e=>{let t=e.match(d$);return t?t[1]:rR.getType(e)??void 0}),_$=async(e,t)=>{let n=await rV(e,t);return`data:image/webp;base64,${await mM(n)}`},v$=cn([h$],([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([_$(r,{...$B,width:192,height:192}),_$(r,$B)]);t({small:i,large:a})}catch{t(void 0)}})()}),y$=cn([m$,v$],([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 Afe(e,t){O(t,!0),G(e,k$);let n=()=>j(WK,`$cmsConfigLoaded`,u),r=()=>j(m$,`$appTitle`,u),i=()=>j(h$,`$appLogoURL`,u),a=()=>j(UK,`$cmsConfigErrors`,u),o=()=>j(VK,`$cmsConfig`,u),s=()=>j(oY,`$inAuthPopup`,u),c=()=>j(cL,`$dataLoaded`,u),l=()=>j(lL,`$dataLoadedProgress`,u),[u,d]=fn(),f=(e,t=E)=>{var n=V();vo(I(n),()=>oj(gj.parseInline(t()),p)),H(e,n)},p={ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]};Zr(()=>{n()&&dn(jQ,X(`welcome_message`,{values:{name:r()}}))});var m=O$(),h=I(m),g=F(h),_=F(g),v=e=>{var t=x$(),n=I(t),a=L(n,2),o=F(a,!0);D(a),R(()=>{K(n,`src`,i()),U(o,r())}),H(e,t)};W(_,e=>{n()&&e(v)});var y=L(_,2),b=e=>{var t=C$(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);lo(i,5,a,e=>e,(e,t)=>{var n=S$(),r=F(n);f(r,()=>z(t)),D(n),H(e,n)}),D(i),D(t),R(e=>U(r,e),[()=>X(`config.errors`,{values:{count:a().length}})]),H(e,t)},x=e=>{var t=w$(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`prefs.error.${MK.current.type}`)]),H(e,t)},S=e=>{var t=w$(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`loading_cms_config`)]),H(e,t)},C=M(()=>!o()||!Object.keys(NK).length),w=e=>{var t=T$(),n=I(t),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a);f(o,()=>VQ.signInError.message),D(a),D(n),$Q(L(n,2),{}),R(e=>U(i,e),[()=>X(`loading_site_data_error`)]),H(e,t)},T=e=>{var t=w$(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`authorizing`)]),H(e,t)},ee=e=>{$Q(e,{})},te=e=>{var t=E$(),n=I(t),r=F(n,!0);D(n);var i=L(n,2),a=e=>{hee(e,{get now(){return l()}})};W(i,e=>{l()!==void 0&&e(a)}),R(e=>U(r,e),[()=>X(`loading_site_data`)]),H(e,t)};W(y,e=>{a().length?e(b):MK.current?e(x,1):z(C)?e(S,2):VQ.signInError.message&&VQ.signInError.context===`dataFetch`?e(w,3):s()?e(T,4):!qJ.account||VQ.unauthenticated?e(ee,5):c()||e(te,6)}),D(g),D(h);var ne=L(h,2),re=e=>{var t=D$(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`powered_by`,{values:{name:f$}})]),H(e,t)};W(ne,e=>{n()&&r()!==`Sveltia CMS`&&e(re)}),H(e,m),k(),d()}var x$,S$,C$,w$,T$,E$,D$,O$,k$;function A$(){return(A$=s((()=>{Y(),J(),Z(),yee(),sj(),rM(),c$(),b$(),zQ(),_Y(),qK(),gL(),JJ(),QQ(),FK(),x$=B(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),S$=B(`<li><!></li>`),C$=B(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),w$=B(`<div role="alert" class="message"> </div>`),T$=B(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),E$=B(`<div role="alert" class="message"> </div> <!>`,1),D$=B(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),O$=B(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),k$={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 jfe(e,t){O(t,!0);let n=()=>j(HZ,`$backend`,i),r=()=>j(VK,`$cmsConfig`,i),[i,a]=fn(),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())};rc(()=>(P(s,!0),()=>{d()})),Zr(()=>{z(s),n(),r(),f()});var p=V(),m=I(p),h=e=>{var t=M$(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);io(r,()=>({"--sui-infobar-message-justify-content":`center`})),qd(r.lastChild,{get status(){return z(e)},children:(e,t)=>{mt();var r=j$(),i=I(r),a=L(i);{let e=M(()=>X(`details`));Bd(a,{variant:`link`,get label(){return z(e)},onclick:()=>{DQ(n()?.statusDashboardURL)}})}R(e=>U(i,`${e??``} `),[()=>X(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),H(e,r)},$$slots:{default:!0}}),D(r)}H(e,t)},g=M(()=>[`minor`,`major`].includes(z(c)));W(m,e=>{z(g)&&e(h)}),H(e,p),k(),a()}var j$,M$;function N$(){return(N$=s((()=>{Y(),J(),Z(),Kd(),Zd(),oc(),WZ(),qK(),OQ(),j$=B(` <!>`,1),M$=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})))()}function Mfe(e,t){O(t,!0);let n=`${MB}/package.json`,r=`${MB}/dist/sveltia-cms.js`,i=0,a=0,o=N(!1),s=async()=>{try{let e=await fetch(n);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===jB)return;document.querySelector(`script[src="${r}"]`)?a=window.setTimeout(()=>{P(o,!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{}};rc(()=>(s(),i=window.setInterval(()=>{s()},36e5),()=>{window.clearInterval(i),window.clearTimeout(a)}));var c=V(),l=I(c),u=e=>{var t=F$(),n=I(t);io(n,()=>({"--sui-infobar-message-justify-content":`center`})),qd(n.lastChild,{children:(e,t)=>{mt();var n=P$(),r=I(n),i=L(r);{let e=M(()=>X(`update_now`));Bd(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>U(r,`${e??``} `),[()=>X(`update_available`)]),H(e,n)},$$slots:{default:!0}}),D(n),H(e,t)};W(l,e=>{z(o)&&e(u)}),H(e,c),k()}var P$,F$;function I$(){return(I$=s((()=>{Y(),J(),Z(),Kd(),Zd(),oc(),NB(),P$=B(` <!>`,1),F$=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})))()}var L$;function R$(){return(R$=s((()=>{L$={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`,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:`Couldn’t copy to clipboard.`,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 selected folder 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.}}`,username:`Username`,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`,contents:`Contents`,assets:`Assets`,editorial_workflow:`Editorial Workflow`,cms_config:`CMS Configuration`,menu:`Menu`,mobile_promo_title:`Sveltia CMS is now available on mobile!`,mobile_promo_button:`Give it a try`,new_language_available:`Sveltia CMS is now available in {$locale}!`,change_language:`Change Language`,switching_language:`Switching to {$locale}…`,locale_load_failed:`Couldn’t load the {$locale} translation. Please try again later.`,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:`Couldn’t publish changes. Please try again.`,show_notifications:`Show Notifications`,notifications:`Notifications`,show_account_menu:`Show Account Menu`,account:`Account`,live_site:`Live Site`,git_repository:`Git Repository`,settings:`Settings`,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 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`,collections:`Collections`,entries:`Entries`,files:`Files`,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.`},change_file_extension:`Change File Extension`,confirm_file_extension_change:{change:`Are you sure you want to change the extension from “.{$oldExtension}” to “.{$newExtension}”?`,add:`Are you sure you want to add the extension “.{$newExtension}”?`,remove:`Are you sure you want to remove the extension “.{$oldExtension}”?`},file_extension_change_warning:`The file may not be displayed or handled correctly if the extension doesn’t match the actual file format.`,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 one of the following types: {$types}. Please try again.`,dropped_image_type_mismatch:`The dropped file is not supported. Only an image of the following types is accepted: {$types}. 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 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.}}`,invalid_files:`Invalid Files`,warning_invalid_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it’s damaged, or its content doesn’t match its file extension. This often happens when a photo is renamed rather than converted, such as a HEIC image saved as a JPEG file. Please convert the file and try again.}} * {{These files cannot be uploaded because they’re damaged, or their content doesn’t match their file extensions. This often happens when photos are renamed rather than converted, such as HEIC images saved as JPEG files. Please convert the files and try again.}}`,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:`Uploading…`,uploading_files_failed:`Upload failed.`,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.`,duplicate_entry:`Duplicate Entry`,entry_duplicated:`Entry duplicated as 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 errors. Please correct them to save the entry.}}`,entry_saved:`.input {$count :integer} .match $count one {{Entry saved.}} * {{{$count} entries saved.}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{Entry saved and published.}} * {{{$count} entries saved and published.}}`,entries_deleted:`.input {$count :integer} .match $count one {{Entry deleted.}} * {{{$count} entries deleted.}}`,assets_saved:`.input {$count :integer} .match $count one {{Asset saved.}} * {{{$count} assets saved.}}`,assets_saved_and_published:`.input {$count :integer} .match $count one {{Asset saved and published.}} * {{{$count} assets saved and published.}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{URL copied to clipboard.}} * {{{$count} URLs copied to clipboard.}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{File path copied to clipboard.}} * {{{$count} file paths copied to clipboard.}}`,asset_data_copied:`.input {$count :integer} .match $count one {{File data copied to clipboard.}} * {{{$count} files’ data copied to clipboard.}}`,assets_downloaded:`.input {$count :integer} .match $count one {{Asset downloaded.}} * {{{$count} assets downloaded.}}`,assets_moved:`.input {$count :integer} .match $count one {{Asset moved.}} * {{{$count} assets moved.}}`,assets_renamed:`.input {$count :integer} .match $count one {{Asset renamed.}} * {{{$count} assets renamed.}}`,assets_deleted:`.input {$count :integer} .match $count one {{Asset deleted.}} * {{{$count} assets 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 saved.`,draft_backup_restored:`Draft backup restored.`,draft_backup_deleted:`Draft backup 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 spaces.`,duplicate:`This slug is used for another entry.`},required:`Required`,editor:{translation:{none:`Nothing to translate.`,started:`Translating…`,error:`Translation failed.`,complete:`.input {$count :integer} .match $count 0 {{No fields translated from {$source}.}} one {{Field translated from {$source}.}} * {{{$count} fields translated from {$source}.}}`},copy:{none:`Nothing to copy.`,complete:`.input {$count :integer} .match $count 0 {{No fields copied from {$source}.}} one {{Field copied from {$source}.}} * {{{$count} fields copied 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 must select at least {$min} option.}} * {{You must select at least {$min} options.}}`,add:`.input {$min :integer} .match $min one {{You must add at least {$min} item.}} * {{You must 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.`},invalid_value:`Invalid value.`,unexpected_error:`Unexpected error occurred.`},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`,asset_info:`Asset Info`,select_asset_show_info:`Select an asset to show its info.`,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`,unknown_variable_type:`This item can’t be displayed due to an unknown type. Check the browser console for details.`,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`},invalid_file:{title:`Invalid File`},rejected_files:{title:`Files Cannot Be Uploaded`},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:`Username 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_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 <a>`load_config_file: false`</a> 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 <a>not supported</a> in Sveltia CMS.`,unsupported_deprecated_backend:`The deprecated {$name} backend is <a>not supported</a> in Sveltia CMS.`,unsupported_custom_backend:`Custom backends are <a>not supported</a> in Sveltia CMS.`,unsupported_backend_suggestion:`Use one of the <a>supported backends</a> 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 <a>authentication method</a> instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHub’s limitations. Use a different <a>authentication method</a> 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`.",invalid_reorder_group:"The `reorder` option refers to a view group named `{$name}`, but no such group is defined in the `view_groups` option.",invalid_sortable_field:"The `sortable_fields` option refers to a field named `{$name}`, but no such field is defined in the collection.",invalid_view_group_field:"The `view_groups` option refers to a field named `{$name}`, but no such field is defined in the collection.",invalid_view_filter_field:"The `view_filters` option refers to a field named `{$name}`, but no such field is defined in the collection.",missing_view_group_name:"The view group {$count} must have the `name` option defined as a non-empty string.",invalid_view_group_name:"The view group name `{$name}` is invalid. It must not contain special characters.",duplicate_view_group_name:"View group names must be unique, but `{$name}` is used more than once.",missing_view_filter_name:"The view filter {$count} must have the `name` option defined as a non-empty string.",invalid_view_filter_name:"The view filter name `{$name}` is invalid. It must not contain special characters.",duplicate_view_filter_name:"View filter names must be unique, but `{$name}` is used more than once.",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, <a>use Object fields instead of dot notation</a>.",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: {$link}`,schema_tip:`For a better developer experience, you can validate your configuration file against the JSON schema of Sveltia CMS. See {$link} 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`,site_configuration_editor:`Site Configuration Editor`,prefs:{changes:{api_key_saved:`API key saved.`,api_key_removed:`API key removed.`,api_key_invalid:`The provided API key is invalid. Please double-check and try again.`},error:{permission_denied:`Cookie storage access has been denied. Please check your browser permissions 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 saved.`,removed:`Hook URL removed.`},auth:{field_label:`Authorization header (e.g., Bearer <token>) (optional)`,saved:`Authorization header saved.`,removed:`Authorization header 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`}}})))()}var z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,Nfe,Pfe,Ffe,Ife,Lfe;function X$(){return(X$=s((()=>{R$(),Z(),Wk(),hM(),uM(),aM(),NB(),FK(),z$=`en-US`,B$=`ar,bg,ca,cs,el,en-CA,en-GB,en-US,fi,fr,hr,ja,ko,nl,pl,pt-BR,pt-PT,ru,tr,uk,zh-CN`.split(`,`),V$=`${MB}@${jB}/locales`,H$=5e3,U$=`sveltia-cms.locale`,W$=new Map,G$=iM(()=>Bu.current),K$=sn(),q$=sn(),J$=async e=>{try{let{_locale:t,_version:n,...r}=await lM.get(U$)??{};if(t===e&&n===jB&&Object.keys(r).length)return r}catch{}},Y$=async(e,t)=>{try{await lM.set(U$,{_locale:e,_version:jB,...t})}catch{}},Nfe=async()=>{try{await lM.delete(U$)}catch{}},Pfe=async e=>{let t=await fetch(`${V$}/${e}.json`,{signal:AbortSignal.timeout(H$)});if(!t.ok)throw Error(`Failed to load the ${e} locale strings`,{cause:t});return t.json()},Ffe=async e=>{let t=await J$(e);if(t)return W$.set(e,t),t;K$.set(e);try{let t=await Pfe(e);return W$.set(e,t),await Y$(e,t),t}catch(t){throw q$.set({locale:e}),t}finally{K$.set(void 0)}},Ife=async e=>{let t=W$.get(e);if(!t){e===`en-US`&&W$.size&&await Nfe();return}await J$(e)||await Y$(e,t)},Lfe=()=>{Iu(z$,{...L$,_sui:Uk}),B$.filter(e=>e!==z$).forEach(e=>{Vu(e,()=>Ffe(e))}),Uu({fallbackLocale:z$,initialLocale:NK.locale||Hu()||`en-US`}),G$.subscribe(e=>{Ife(e)})}})))()}function Rfe(e,t){O(t,!0);let n=()=>j(q$,`$appLocaleLoadError`,r),[r,i]=fn(),a=N(!1);Zr(()=>{n()&&P(a,!0)});var o=V(),s=I(o),c=e=>{let t=M(()=>{let{locale:e}=n();return{locale:e}});ah(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,n)=>{fc(e,{status:`error`,children:(e,n)=>{mt();var r=ja();R(e=>U(r,e),[()=>X(`locale_load_failed`,{values:{locale:FI(z(t).locale)??z(t).locale}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(s,e=>{n()&&e(c)}),H(e,o),k(),i()}function zfe(){return(zfe=s((()=>{Y(),J(),Z(),gc(),lh(),X$(),zI()})))()}var Bfe;function Vfe(){return(Vfe=s((()=>{IB(),EV(),ZH(),Bfe=async(e,t)=>{let n=t===`image`?await hV(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let r={};try{let{parse:e}=await FB(`exifr`,`dist/lite.esm.mjs`);r=await e(n)??{}}catch{}let{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=r;return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:XH(i,7),longitude:XH(a,7)}:void 0}}})))()}var Z$,Hfe,Ufe,Wfe,Gfe;function Kfe(){return(Kfe=s((()=>{Vfe(),Z$=({element:e,eventType:t,src:n,getInfo:r})=>new Promise(i=>{e.addEventListener(t,()=>i(r()),{once:!0}),e.addEventListener(`error`,()=>i({}),{once:!0}),e.src=n}),Hfe=e=>{let t=new Image;return Z$({element:t,eventType:`load`,src:e,getInfo:()=>({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})})},Ufe=async(e,t)=>{let n=document.createElement(t);return Z$({element:n,eventType:`loadedmetadata`,src:e,getInfo:()=>{let{duration:e}=n;if(t===`audio`)return{duration:e};let{videoWidth:r,videoHeight:i}=n;return{dimensions:{width:r,height:i},duration:e}}})},Wfe=async(e,t)=>t===`image`?Hfe(e):Ufe(e,t),Gfe=async(e,t,n)=>{let{dimensions:r,duration:i}=await Wfe(t,n),{createdDate:a,coordinates:o}=await Bfe(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})))()}var Q$,$$,e1;function t1(){return(t1=s((()=>{aM(),EV(),WZ(),qV(),Kfe(),Q$={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},$$=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=A(HZ)?.repository??{},i=await gV(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await Gfe(e,i,t)),{...a,publicURL:CV(e),repoBlobURL:r?`${r}/${n}`:void 0}},e1=async e=>{let t=CV(e,{allowSpecial:!0,pathOnly:!0})??await gV(e);return t?GV(t):[]}})))()}function qfe(e,t){O(t,!0);let n=e=>{var t=Jfe(),n=I(t);{let e=M(()=>X(`public_urls`,{values:{count:r().length}})),t=M(()=>!z(c).length);vm(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(d,`asset_urls_copied`)}})}var i=L(n,2);{let e=M(()=>X(`file_paths`,{values:{count:r().length}}));vm(i,{get label(){return z(e)},onclick:()=>{m(f,`asset_paths_copied`)}})}var a=L(i,2);{let e=M(()=>X(`file_data`)),t=M(()=>!z(o));vm(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(Dr([])),o=N(!1),s=Dr({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 hV(r()[0]),{type:t}=e;return l=e,fM(t)?!0:UB.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(fM(t)){await navigator.clipboard.writeText(await e.text());return}if(!UB.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await rV(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},m=async(e,t)=>{try{await e(),s.status=`success`,s.text=X(t,{values:{count:r().length}})}catch{s.status=`error`,s.text=X(`clipboard_error`)}finally{s.show=!0}};Zr(()=>{(async()=>{P(a,await Promise.all(r().map($$)),!0),P(o,await u(),!0)})()});var h=Yfe(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>X(`copy_options`));pm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>X(`copy`));Ff(e,{variant:`ghost`,get disabled(){return z(i)},get label(){return z(a)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},v=e=>{{let t=e=>{n(e)},i=M(()=>!r().length),a=M(()=>X(`copy`));vm(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)}),ah(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{fc(e,{get status(){return s.status},children:(e,t)=>{mt();var n=ja();R(()=>U(n,s.text)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,h),k()}var Jfe,Yfe;function n1(){return(n1=s((()=>{Y(),J(),Z(),gc(),_m(),Rf(),wm(),lh(),hM(),t1(),EV(),GB(),aV(),Jfe=B(`<!> <!> <!>`,1),Yfe=B(`<!> <!>`,1)})))()}var r1,i1;function a1(){return(a1=s((()=>{aM(),r1={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},i1=sn({...r1})})))()}var o1;function s1(){return(s1=s((()=>{aM(),a1(),o1=sn({...r1})})))()}var Xfe,Zfe,Qfe,c1;function l1(){return(l1=s((()=>{sM(),aM(),Tq(),WZ(),gL(),JJ(),FK(),eB(),Xfe=()=>{let e=qJ.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}},Zfe=async({changes:e,commit:t})=>{let{databaseName:n}=A(HZ)?.repository??{};if(!n)return;let r=new oM(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:Qz(c).size,text:c,meta:s};await r.set(a,l)}))},Qfe=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));dL.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)}),iq.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},c1=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=A(HZ),a={...await i(e,r),author:Xfe()};NK.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 Zfe({changes:e,commit:a}),Qfe({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})))()}var $fe,epe;function tpe(){return(tpe=s((()=>{Tq(),s1(),l1(),a1(),$fe=({assets:e})=>{uq.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),o1.set({...r1,deleted:!0,count:e.length})},epe=async e=>{await c1({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),$fe({assets:e})}})))()}function npe(e,t){O(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()?Bd:vm);var l=rpe(),u=I(l);{let e=M(()=>!n().length),t=M(()=>X(`delete`));wo(u,()=>z(c),(n,i)=>{i(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},get"aria-label"(){return r()},onclick:()=>{P(s,!0)}})})}var d=L(u,2);{let e=M(()=>X(`delete_assets`,{values:{count:n().length}})),t=M(()=>X(`delete`));Cp(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{epe(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{mt();var n=ja();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}H(e,l),k()}var rpe;function u1(){return(u1=s((()=>{Y(),J(),Z(),Kd(),Tp(),wm(),tpe(),rpe=B(`<!> <!>`,1)})))()}function ipe(e,t){O(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`useButton`,3,!0),i=N(!1),a=M(()=>r()?Bd:vm),o=async()=>{for(let e of n())Wce(await hV(e),e.name),await nd(300);P(i,!0)};var s=ape(),c=I(s);{let e=M(()=>!n().length),t=M(()=>X(`download`));wo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}ah(L(c,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var r=ja();R(e=>U(r,e),[()=>X(`assets_downloaded`,{values:{count:n().length}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,s),k()}var ape;function d1(){return(d1=s((()=>{Y(),J(),Z(),gc(),Kd(),wm(),lh(),hM(),rd(),EV(),ape=B(`<!> <!>`,1)})))()}function ope(e,t){O(t,!0);let n=()=>j(HZ,`$backend`,r),[r,i]=fn(),a=q(t,`extraItems`,3,void 0),o=N(Dr({...Q$})),s=M(()=>z(o).publicURL),c=M(()=>z(o).repoBlobURL),l=async()=>{P(o,t.asset?await $$(t.asset):{...Q$},!0)};Zr(()=>{t.asset,l()});{let r=e=>{{let r=M(()=>X(`edit_options`));pm(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=spe(),o=I(i);So(o,()=>a()??E);var l=L(o,2);{let e=M(()=>X(`edit`)),n=M(()=>X(`edit_asset`)),r=M(()=>!t.asset||!ER(t.asset));vm(l,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{dn(pq,t.asset)}})}var u=L(l,2);{let e=M(()=>X(`rename`)),n=M(()=>X(`rename_asset`)),r=M(()=>!t.asset);vm(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{dn(mq,t.asset)}})}var d=L(u,2);{let e=M(()=>X(`replace`)),n=M(()=>X(`replace_asset`)),r=M(()=>!t.asset);vm(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{dn(fq,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),dn(uQ,!0)}})}var f=L(d,2);Wf(f,{});var p=L(f,2);{let e=M(()=>X(`view_on_live_site`)),t=M(()=>!z(s));vm(p,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{DQ(z(s))}})}var m=L(p,2),h=e=>{{let t=M(()=>!n()?.repository||!z(c)),r=M(()=>X(`view_on_x`,{values:{service:n()?.repository?.label},default:X(`view_in_repository`)}));vm(e,{get disabled(){return z(t)},get label(){return z(r)},onclick:()=>{DQ(`${z(c)}?plain=1`)}})}};W(m,e=>{NK.devModeEnabled&&e(h)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>X(`show_edit_options`));Ff(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:r,$$slots:{popup:!0}})}k(),i()}var spe;function f1(){return(f1=s((()=>{Y(),J(),Z(),Jf(),_m(),Rf(),wm(),Tq(),t1(),OR(),_Q(),WZ(),FK(),OQ(),spe=B(`<!> <!> <!> <!> <!> <!> <!>`,1)})))()}function p1(e,t){O(t,!0);let n=q(t,`useShortcut`,3,!1),r=q(t,`onclick`,3,void 0);{let i=e=>{{let t=M(()=>Mu()?`arrow_forward`:`arrow_back`);sc(e,{get name(){return z(t)}})}},a=M(()=>t[`aria-label`]??X(`back`)),o=M(()=>n()?`Escape`:void 0);Bd(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(a)},get keyShortcuts(){return z(o)},class:`back`,get onclick(){return r()},startIcon:i,$$slots:{startIcon:!0}})}k()}function m1(){return(m1=s((()=>{Y(),J(),Z(),Kd(),dc()})))()}function cpe(e,t){O(t,!0);let n=()=>j(dq,`$overlaidAsset`,i),r=()=>j(CM,`$selectedAssetFolder`,i),[i,a]=fn(),o=e=>{var t=lpe(),n=I(t);qfe(n,{get assets(){return z(s)},get useButton(){return z(c)}});var i=L(n,2);ipe(i,{get assets(){return z(s)},get useButton(){return z(c)}});var a=L(i,2);{let e=M(()=>X(`delete_assets`,{values:{count:1}})),t=M(()=>X(`confirm_deleting_this_asset`));npe(a,{get assets(){return z(s)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{LQ(`/assets/${r()?.internalPath??`-/all`}`)},get useButton(){return z(c)}})}H(e,t)},s=M(()=>n()?[n()]:[]),c=M(()=>!eG.isSmallScreen);{let t=M(()=>X(`primary`));EO(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var i=upe(),a=I(i);{let e=M(()=>X(`cancel_editing`));p1(a,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{LQ(`/assets/${r()?.internalPath??`-/all`}`)}})}var s=L(a,2);Qu(F(s),{children:(e,t)=>{mt();var r=ja();R(()=>U(r,n()?.name)),H(e,r)},$$slots:{default:!0}}),D(s);var c=L(s,2),l=e=>{o(e)};W(c,e=>{eG.isSmallScreen||e(l)}),ope(L(c,2),{get asset(){return n()},extraItems:e=>{var t=V(),n=I(t),r=e=>{o(e)};W(n,e=>{eG.isSmallScreen&&e(r)}),H(e,t)},$$slots:{extraItems:!0}}),H(e,i)},$$slots:{default:!0}})}k(),a()}var lpe,upe;function dpe(){return(dpe=s((()=>{Y(),J(),Z(),AO(),td(),n1(),u1(),d1(),f1(),m1(),zQ(),Tq(),kM(),nG(),lpe=B(`<!> <!> <!>`,1),upe=B(`<!> <h2 role="none"><!></h2> <!> <!>`,1)})))()}var h1,fpe,ppe;function mpe(){return(mpe=s((()=>{oc(),h1=!1,fpe=()=>{h1=!1,Xn()},ppe=()=>{h1||(h1=!0,queueMicrotask(fpe))}})))()}function g1(e,t){O(t,!0),G(e,xpe);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=qs(t,hpe),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)&&yR.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,P(m,!1),n()===`lazy`&&await Sd(z(p));try{i(z(v)?await xV(r()):await gV(r()))}catch{P(m,!0)}o()&&!z(g)&&i()&&P(g,i(),!0),b=!1,ppe()}},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 Sd(z(p)),P(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&(await nd(500),URL.revokeObjectURL(i())))};Zr(()=>{o()&&r()&&!z(g)&&(async()=>{P(g,await xV(r(),{cacheOnly:!0}),!0)})()}),Zr(()=>{z(p)&&r()&&x()}),Zr(()=>{if(r())P(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){P(_,void 0);let e=i();(async()=>{await Sd(z(p)),P(_,e,!0)})()}else P(_,i(),!0)}),Zr(()=>{z(p)&&z(_)&&S()}),rc(()=>()=>{r()&&SV(r()),z(p)&&vd(z(p))});var C=bpe();let w;var T=F(C),ee=e=>{sc(e,{name:`draft`})},te=e=>{var t=gpe();gs(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Bs(t,e=>P(p,e),()=>z(p)),ma(t),H(e,t)},ne=e=>{var t=_pe();gs(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Bs(t,e=>P(p,e),()=>z(p)),H(e,t)},re=e=>{var t=V(),n=I(t),r=e=>{var t=vpe();gs(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Bs(t,e=>P(p,e),()=>z(p)),H(e,t)},i=e=>{sc(e,{name:`audio_file`})};W(n,e=>{d()?e(r):e(i,-1)}),H(e,t)},ie=e=>{sc(e,{name:`draft`})};W(T,e=>{z(m)?e(ee):z(y)?e(te,1):t.kind===`video`?e(ne,2):t.kind===`audio`?e(re,3):e(ie,-1)});var ae=L(T,2),oe=e=>{var t=ype(),n=F(t),r=F(n),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`loading`)]),H(e,t)};W(r,e=>{!z(v)&&!z(h)&&e(i)}),D(n);var a=L(n,2);let o;D(t),R(()=>{K(a,`src`,z(g)),o=is(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),H(e,t)};W(ae,e=>{o()&&e(oe)}),D(C),R(()=>w=is(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),H(e,C),k()}var hpe,gpe,_pe,vpe,ype,bpe,xpe;function _1(){return(_1=s((()=>{Y(),J(),Z(),dc(),Cd(),rd(),oc(),EV(),OR(),mpe(),hpe=new Set([`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),gpe=B(`<img/>`),_pe=B(`<video></video>`,2),vpe=B(`<audio></audio>`),ype=B(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),bpe=B(`<div role="none"><!> <!></div>`),xpe={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 Spe(e,t){O(t,!0),G(e,Tpe);let n=q(t,`class`,3,``),r=q(t,`mapElement`,15),i=q(t,`onReady`,3,void 0),a=qs(t,Cpe),o,s=async()=>{if(!r())return;let e=await FB(`leaflet`,`dist/leaflet-src.esm.js`),n=`${PB(`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:`© <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})};rc(()=>(s(),()=>{o?.disconnect()}));var c=wpe();gs(c,e=>({role:`application`,class:`map ${n()??``}`,"aria-label":e,...a}),[()=>t.coordinates?X(`map_lat_lng`,{values:t.coordinates}):void 0],void 0,void 0,`svelte-1c5gj1k`),Bs(c,e=>r(e),()=>r()),H(e,c),k()}var Cpe,wpe,Tpe;function v1(){return(v1=s((()=>{Y(),J(),Z(),oc(),IB(),Cpe=new Set([`$$slots`,`$$events`,`$$legacy`,`coordinates`,`class`,`mapElement`,`onReady`]),wpe=B(`<div></div>`),Tpe={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);}`}})))()}var Epe;function Dpe(){return(Dpe=s((()=>{Epe=e=>new Date(e*1e3).toISOString().substr(11,8)})))()}function Ope(e,t){O(t,!0),G(e,Lpe);let n=q(t,`showPreview`,3,!1),r=N(Dr({...Q$})),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(()=>pM(z(i))),_=M(()=>C(z(g).extension,``)),v=M(()=>CR(z(o))||z(i).endsWith(`.pdf`)),y=async()=>{P(r,t.asset?await $$(t.asset):{...Q$},!0),z(r).usedEntries=t.asset?await e1(t.asset):[]};Zr(()=>{t.asset,y()});var b=Ipe(),x=F(b),S=e=>{var n=jpe(),r=F(n);{let e=M(()=>z(o)===`image`),n=M(()=>[`audio`,`video`].includes(z(o)));g1(r,{get kind(){return z(o)},get asset(){return t.asset},variant:`tile`,get checkerboard(){return z(e)},get controls(){return z(n)}})}D(n),H(e,n)};W(x,e=>{n()&&z(v)&&e(S)});var w=L(x,2),T=F(w),ee=F(T,!0);D(T);var te=L(T,2),ne=F(te,!0);D(te),D(w);var re=L(w,2),ie=e=>{var t=Mpe(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);to(F(i),()=>Bu.current,e=>{var t=ja();R(e=>U(t,e),[()=>Wz(z(a))]),H(e,t)}),D(i),D(t),R(e=>U(r,e),[()=>X(`size`)]),H(e,t)};W(re,e=>{z(a)&&e(ie)});var ae=L(re,2),oe=e=>{var t=b1(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R(e=>{U(r,e),U(a,z(d)?`${z(d).width}×${z(d).height}`:`–`)},[()=>X(`dimensions`)]),H(e,t)};W(ae,e=>{z(v)&&e(oe)});var se=L(ae,2),ce=e=>{var t=b1(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{U(r,e),U(a,t)},[()=>X(`duration`),()=>z(f)?Epe(z(f)):`–`]),H(e,t)},le=M(()=>[`audio`,`video`].includes(z(o)));W(se,e=>{z(le)&&e(ce)});var E=L(se,2),ue=F(E),de=F(ue,!0);D(ue);var fe=L(ue,2),pe=F(fe),me=e=>{var t=Npe(),n=F(t,!0);D(t),R(()=>{K(t,`href`,z(l)),U(n,z(l))}),H(e,t)},he=e=>{H(e,ja(`–`))};W(pe,e=>{z(l)?e(me):e(he,-1)}),D(fe),D(E);var ge=L(E,2),_e=F(ge),ve=F(_e,!0);D(_e);var ye=L(_e,2),be=F(ye),xe=e=>{var t=Ppe(),n=F(t);D(t),R(()=>{K(t,`href`,z(u)),U(n,`/${z(i)??``}`)}),H(e,t)},Se=e=>{var t=ja();R(()=>U(t,`/${z(i)??``}`)),H(e,t)};W(be,e=>{z(u)?e(xe):e(Se,-1)}),D(ye),D(ge);var Ce=L(ge,2),we=F(Ce),Te=F(we,!0);D(we);var Ee=L(we,2),De=e=>{var t=x1(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`loading`)]),H(e,t)},Oe=e=>{var t=V();lo(I(t),17,()=>z(h),e=>e.id,(e,t)=>{var n=V();lo(I(n),17,()=>MV(z(t)),e=>e.name,(e,n)=>{var r=V();to(I(r),()=>Bu.current,e=>{let r=M(()=>aL(z(n)));var i=V();lo(I(i),17,()=>aI(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:iI(z(t))}));y1(e,()=>z(i))}},e=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).subPath}`,collectionLabel:z(r),entryLabel:LU(z(n),z(t),{useTemplate:!0})}));y1(e,()=>z(i))}}),H(e,i)}),H(e,r)}),H(e,n)},e=>{var t=x1(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`sort_keys.none`)]),H(e,t)}),H(e,t)};W(Ee,e=>{z(h)?e(Oe,-1):e(De)}),D(Ce);var ke=L(Ce,2),Ae=e=>{var t=b1(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R(e=>{U(r,e),U(a,z(s).name||z(s).login||z(s).email)},[()=>X(`sort_keys.commit_author`)]),H(e,t)};W(ke,e=>{z(s)&&e(Ae)});var je=L(ke,2),Me=e=>{var t=b1(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{U(r,e),U(a,t)},[()=>X(`sort_keys.commit_date`),()=>SL(z(c),Bu.current)]),H(e,t)};W(je,e=>{z(c)&&e(Me)});var Ne=L(je,2),Pe=e=>{var t=b1(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{U(r,e),U(a,t)},[()=>X(`created_date`),()=>SL(z(p),Bu.current)]),H(e,t)};W(Ne,e=>{z(p)&&e(Pe)});var Fe=L(Ne,2),Ie=e=>{var t=Fpe(),n=F(t),r=F(n,!0);D(n),Spe(L(n,2),{get coordinates(){return z(m)}}),D(t),R(e=>U(r,e),[()=>X(`location`)]),H(e,t)};W(Fe,e=>{z(m)&&e(Ie)}),D(b),R((e,t,n,r,i)=>{U(ee,e),U(ne,t),U(de,n),U(ve,r),U(Te,i)},[()=>X(`kind`),()=>X(`file_type_labels.${z(_)}`,{default:rR.getType(z(i))??z(_).toUpperCase()}),()=>X(`public_urls`,{values:{count:1}}),()=>X(`file_paths`,{values:{count:1}}),()=>X(`used_in`)]),H(e,b),k()}var y1,kpe,Ape,jpe,Mpe,b1,Npe,Ppe,x1,Fpe,Ipe,Lpe;function S1(){return(S1=s((()=>{Y(),J(),Z(),Kd(),hM(),iR(),_1(),v1(),zQ(),t1(),OR(),sL(),cI(),IV(),RU(),CL(),eB(),Dpe(),y1=(e,t)=>{let n=()=>(t?.()).link,r=()=>(t?.()).collectionLabel,i=()=>(t?.()).entryLabel;var a=Ape();Bd(F(a),{role:`link`,variant:`link`,onclick:()=>IQ(n(),{transitionType:`forwards`}),children:(e,t)=>{var n=kpe(),a=F(n);D(n),R(()=>U(a,`${r()??``} › ${i()??``}`)),H(e,n)},$$slots:{default:!0}}),D(a),H(e,a)},kpe=B(`<span role="none"> </span>`),Ape=B(`<p><!></p>`),jpe=B(`<div role="none" class="preview svelte-6mkk55"><!></div>`),Mpe=B(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section>`),b1=B(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),Npe=B(`<a target="_blank" rel="noopener noreferrer"> </a>`),Ppe=B(`<a> </a>`),x1=B(`<p> </p>`),Fpe=B(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <!></section>`),Ipe=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>`),Lpe={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){O(t,!0),G(e,Wpe);let n=()=>j(dq,`$overlaidAsset`,i),r=()=>j(lQ,`$showAssetOverlay`,i),[i,a]=fn(),o=N(void 0),s=N(void 0),c=M(()=>n()?.kind),l=M(()=>n()?.blobURL),u=M(()=>n()?.name),d=async()=>{await Fi(),z(o)&&(z(o).tabIndex=0,z(o).focus())};Zr(()=>{n()&&(async()=>{P(s,await hV(n()),!0)})()}),Zr(()=>{z(o)&&r()&&d()});var f=Upe();to(F(f),()=>n()?.sha,e=>{var t=Hpe(),r=I(t);cpe(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)));g1(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)&&CR(z(c))),p=e=>{var t=zpe();R(()=>{K(t,`src`,z(l)),K(t,`title`,z(u))}),H(e,t)},m=e=>{var t=V();Ya(I(t),()=>n()?.text??z(s).text(),null,(e,t)=>{var n=V(),r=I(n),i=e=>{var n=V();Ya(I(n),()=>nM(z(t),{breaks:!0,async:!0}),null,(e,t)=>{var n=Bpe();vo(n,()=>oj(z(t)),!0),D(n),H(e,n)},e=>{var n=C1(),r=F(n,!0);D(n),R(()=>U(r,z(t))),H(e,n)}),H(e,n)},a=M(()=>z(u)?.endsWith(`.md`)),o=e=>{var n=C1(),r=F(n,!0);D(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&&fM(z(s).type)),g=e=>{Ak(e,{children:(e,t)=>{var n=Vpe(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`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)}),D(a);var _=L(a,2),v=e=>{Ope(e,{get asset(){return n()}})};W(_,e=>{n()&&e(v)}),D(i),H(e,t)}),D(f),Bs(f,e=>P(o,e),()=>z(o)),R(e=>K(f,`aria-label`,e),[()=>X(`asset_editor`)]),H(e,f),k(),a()}var zpe,Bpe,C1,Vpe,Hpe,Upe,Wpe;function Gpe(){return(Gpe=s((()=>{Y(),J(),Z(),Nk(),hM(),sj(),rM(),oc(),dpe(),_1(),S1(),Tq(),EV(),OR(),_Q(),zpe=B(`<iframe sandbox="allow-scripts" class="svelte-9guikv"></iframe>`),Bpe=B(`<div role="figure" class="markdown svelte-9guikv"></div>`),C1=B(`<pre role="figure" class="svelte-9guikv"> </pre>`),Vpe=B(`<span role="alert"> </span>`),Hpe=B(`<!> <div role="none" class="row svelte-9guikv"><div role="none" class="preview svelte-9guikv"><!></div> <!></div>`,1),Upe=B(`<div role="group" class="wrapper svelte-9guikv"><!></div>`),Wpe={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);}}}`}})))()}var w1,T1;function E1(){return(E1=s((()=>{aM(),WZ(),qK(),w1=cn([VK,HZ],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return typeof n==`boolean`||typeof r==`boolean`}),T1=cn([VK,HZ],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return n===!0||r===!1})})))()}var Kpe,qpe,D1;function O1(){return(O1=s((()=>{aM(),Tq(),s1(),OR(),E1(),l1(),a1(),QK(),eB(),Kpe=e=>{let{files:t,folder:n,originalAssets:r}=e,{slugify_filename:i=!1}=XK().config,a=n?.internalPath===void 0?[]:Cq(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??Kz(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}})},qpe=({count:e})=>{let t=A(uq),n=A(dq);t&&uq.set(sq(t.path)),n&&dq.set(sq(n.path)),o1.set({...r1,saved:!0,published:A(w1)&&!A(T1),count:e})},D1=async(e,t)=>{let{files:n,folder:r}=e,i=Kpe(e),a=i.map(({name:e,path:t,file:n})=>({name:e,path:t,size:n.size,kind:DR(e),folder:r}));await c1({changes:i.map(({action:e,path:t,file:n})=>({action:e,path:t,data:n})),savingAssets:a,options:t}),qpe({count:n.length})}})))()}function Jpe(e,t){O(t,!0),G(e,Xpe);let n=()=>j(pq,`$editingAsset`,i),r=()=>j(lQ,`$showAssetOverlay`,i),[i,a]=fn(),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 hV(z(o)),!0),P(l,await z(c).text(),!0),P(u,z(l),!0),P(s,!0)},p=()=>{dn(pq,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 D1({folder:z(o).folder,files:[new File([z(u)],z(o).name,{type:z(c).type})],originalAssets:[z(o)]},{commitType:`uploadMedia`})};Zr(()=>{z(o)&&z(c)===void 0&&f()}),Zr(()=>{r()||P(s,!1)});{let t=e=>{{let t=M(()=>X(`wrap_long_lines`));Wm(e,{get label(){return z(t)},get checked(){return z(d)},set checked(e){P(d,e,!0)}})}},n=M(()=>X(`edit_x`,{values:{name:z(o)?.name??``}})),r=M(()=>X(`save`)),i=M(()=>z(u)===z(l));dp(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=Ype();let r;VO(F(n),{dir:`auto`,flex:!0,get value(){return z(u)},set value(e){P(u,e,!0)}}),D(n),R(()=>r=is(n,1,`wrapper svelte-1lnkfih`,null,r,{wrap:z(d)})),H(e,n)},$$slots:{footerExtra:!0,default:!0}})}k(),a()}var Ype,Xpe;function Zpe(){return(Zpe=s((()=>{Y(),J(),Z(),yp(),Gm(),KO(),Tq(),O1(),EV(),_Q(),Ype=B(`<div role="none"><!></div>`),Xpe={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;}}`}})))()}function Qpe(e,t){O(t,!0),G(e,tme);let n=q(t,`open`,15,!1),r=q(t,`oldExtension`,3,void 0),i=q(t,`newExtension`,3,void 0),a=q(t,`okLabel`,3,``),o=q(t,`onOk`,3,void 0),s=q(t,`onCancel`,3,void 0),c=qs(t,$pe),l=M(()=>r()?i()?`change`:`remove`:`add`);{let t=M(()=>X(`change_file_extension`));Cp(e,Js(()=>c,{get title(){return z(t)},get okLabel(){return a()},get onOk(){return o()},get onCancel(){return s()},get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=eme(),a=I(n),o=F(a,!0);D(a);var s=L(a,2),c=F(s,!0);D(s),R((e,t)=>{U(o,e),U(c,t)},[()=>X(`confirm_file_extension_change.${z(l)}`,{values:{oldExtension:r(),newExtension:i()}}),()=>X(`file_extension_change_warning`)]),H(e,n)},$$slots:{default:!0}}))}k()}var $pe,eme,tme;function k1(){return(k1=s((()=>{Y(),J(),Z(),Tp(),$pe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`oldExtension`,`newExtension`,`okLabel`,`onOk`,`onCancel`]),eme=B(`<p class="svelte-8pzyo8"> </p> <p class="svelte-8pzyo8"> </p>`,1),tme={hash:`svelte-8pzyo8`,code:`p.svelte-8pzyo8 {margin:0 0 8px;}p.svelte-8pzyo8:last-child {margin:0;}`}})))()}
|
||
/**
|
||
* @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 A1(e){return!!(e&&e[l2])}function j1(e){return!!(e&&e[u2])}function M1(e){return j1(e)||A1(e)}function N1(e){return!!(e&&e[d2])}function P1(e,t,n,r){var i=e===g2?t:e===_2?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function F1(){return{value:void 0,done:!0}}function I1(e){return Array.isArray(e)?!0:!!R1(e)}function nme(e){return!!(e&&typeof e.next==`function`)}function L1(e){var t=R1(e);return t&&t.call(e)}function R1(e){var t=e&&(y2&&e[y2]||e[b2]);if(typeof t==`function`)return t}function rme(e){var t=R1(e);return t&&t===e.entries}function ime(e){var t=R1(e);return t&&t===e.keys}function z1(){return{value:!1}}function B1(e){e&&(e.value=!0)}function V1(){}function H1(e){return e.size===void 0&&(e.size=e.__iterate(ame)),e.size}function U1(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?H1(e)+t:t}function ame(){return!0}function W1(e,t,n){return(e===0&&!sme(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function G1(e,t){return ome(e,t,0)}function K1(e,t){return ome(e,t,t)}function ome(e,t,n){return e===void 0?n:sme(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function sme(e){return e<0||e===0&&1/e==-1/0}function q1(e){return!!(e&&e[O2])}function J1(e){return N1(e)||q1(e)}function Y1(e){return!!(e&&e[k2])}function X1(e){return!!(e&&e[A2])}function Z1(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 Q1(){return Rhe||=new I2([])}function $1(e){var t=e0(e);if(t)return t.fromEntrySeq();if(typeof e==`object`)return new L2(e);throw TypeError(`Expected Array or collection object of [k, v] entries, or keyed object: `+e)}function cme(e){var t=e0(e);if(t)return t;throw TypeError(`Expected Array or collection object of values: `+e)}function lme(e){var t=e0(e);if(t)return rme(e)?t.fromEntrySeq():ime(e)?t.toSetSeq():t;if(typeof e==`object`)return new L2(e);throw TypeError(`Expected Array or collection object of values, or keyed object: `+e)}function e0(e){return Z1(e)?new I2(e):I1(e)?new Lhe(e):void 0}function t0(){return this.__ensureOwner()}function n0(){return this.__ownerID?this:this.__ensureOwner(new V1)}function r0(e){return e>>>1&1073741824|e&3221225471}function i0(e){if(e==null)return ume(e);if(typeof e.hashCode==`function`)return r0(e.hashCode(e));var t=gme(e);if(t==null)return ume(t);switch(typeof t){case`boolean`:return t?1108378657:1108378656;case`number`:return dme(t);case`string`:return t.length>Vhe?fme(t):a0(t);case`object`:case`function`:return mme(t);case`symbol`:return pme(t);default:if(typeof t.toString==`function`)return a0(t.toString());throw Error(`Value type `+typeof t+` cannot be hashed.`)}}function ume(e){return e===null?1108378658:1108378659}function dme(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 r0(t)}function fme(e){var t=q2[e];return t===void 0&&(t=a0(e),K2===Hhe&&(K2=0,q2={}),K2++,q2[e]=t),t}function a0(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return r0(t)}function o0(e){if(typeof e!=`string`)return i0(e);for(var t=0,n=0;n<e.length;n++)t=Bhe*t+e.charCodeAt(n)|0;return t}function pme(e){var t=U2[e];return t===void 0?(t=_me(),U2[e]=t,t):t}function mme(e){var t;if(V2&&(t=H2.get(e),t!==void 0)||(t=e[G2],t!==void 0)||!B2&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[G2],t!==void 0||(t=hme(e),t!==void 0)))return t;if(t=_me(),V2)H2.set(e,t);else if(z2!==void 0&&z2(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(B2)Object.defineProperty(e,G2,{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[G2]=t;else if(e.nodeType!==void 0)e[G2]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}function hme(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function gme(e){return e.valueOf!==zhe&&typeof e.valueOf==`function`?e.valueOf(e):e}function _me(){var e=++W2;return W2&1073741824&&(W2=0),e}function vme(e){var t=m0(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=h0,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===v2){var r=e.__iterator(t,n);return new S2(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===_2?g2:_2,n)},t}function yme(e,t,n){var r=m0(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,D2);return a===D2?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(v2,i);return new S2(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return P1(r,s,t.call(n,o[1],s,e),i)})},r}function s0(e,t){var n=m0(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=vme(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=h0,n.__iterate=function(n,r){var i=this,a=0;return r&&H1(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&&H1(e);var o=e.__iterator(v2,!i);return new S2(function(){var e=o.next();if(e.done)return e;var s=e.value;return P1(r,t?s[0]:i?n.size-++a:a++,s[1],e)})},n}function bme(e,t,n,r){var i=m0(e);return r&&(i.has=function(r){var i=e.get(r,D2);return i!==D2&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,D2);return a!==D2&&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(v2,a),s=0;return new S2(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 P1(i,r?l:s++,u,a)}})},i}function xme(e,t,n){var r=$2().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function Sme(e,t,n){var r=j1(e),i=(Y1(e)?f4():$2()).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=p0(e);return i.map(function(t){return f0(e,a(t))}).asImmutable()}function Cme(e,t,n){var r=j1(e),i=[[],[]];e.__iterate(function(a,o){i[+!!t.call(n,a,o,e)].push(r?[o,a]:a)});var a=p0(e);return i.map(function(t){return f0(e,a(t))})}function c0(e,t,n,r){var i=e.size;if(W1(t,n,i))return e;if(i===void 0&&(t<0||n<0))return c0(e.toSeq().cacheResult(),t,n,r);var a=G1(t,i),o=K1(n,i)-a,s;o===o&&(s=o<0?0:o);var c=m0(e);return c.size=s===0?s:e.size&&s||void 0,!r&&X1(e)&&s>=0&&(c.get=function(t,n){return t=U1(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 S2(F1);var i=e.__iterator(t,n),o=0,c=0;return new S2(function(){for(;o++<a;)i.next();if(++c>s)return F1();var e=i.next();return r||t===_2||e.done?e:t===g2?P1(t,c-1,void 0,e):P1(t,c-1,e.value[1],e)})},c}function wme(e,t,n){var r=m0(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(v2,i),s=!0;return new S2(function(){if(!s)return F1();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===v2?e:P1(r,c,l,e):(s=!1,F1())})},r}function Tme(e,t,n,r){var i=m0(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(v2,a),c=!0,l=0;return new S2(function(){var e,a,u;do{if(e=s.next(),e.done)return r||i===_2?e:i===g2?P1(i,l++,void 0,e):P1(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===v2?e:P1(i,a,u,e)})},i}function Eme(e,t){var n=j1(e),r=[e].concat(t).map(function(e){return N1(e)?n&&(e=p2(e)):e=n?$1(e):cme(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&&j1(i)||A1(e)&&A1(i))return i}return new Uhe(r)}function Dme(e,t,n){var r=m0(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)&&N1(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 S2(function(){for(;a;){var e=a.next();if(e.done!==!1){a=o.pop();continue}var c=e.value;if(r===v2&&(c=c[1]),(!t||o.length<t)&&N1(c))o.push(a),a=c.__iterator(r,i);else return n?e:P1(r,s++,c,e)}return F1()})},r}function Ome(e,t,n){var r=p0(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function kme(e,t){var n=m0(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(_2,r),a=0,o;return new S2(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?P1(n,a++,t):P1(n,a++,o.value,o)})},n}function l0(e,t,n){t||=Mme;var r=j1(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?N2(a):A1(e)?P2(a):F2(a)}function u0(e,t,n){if(t||=Mme,n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Ame(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Ame(t,e,n)?n:e})}function Ame(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function d0(e,t,n,r){var i=m0(e),a=new I2(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(_2,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=f2(e),L1(i?e.reverse():e)}),o=0,s=!1;return new S2(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?F1():P1(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function f0(e,t){return e===t?e:X1(e)?t:e.constructor(t)}function jme(e){if(e!==Object(e))throw TypeError(`Expected [K, V] tuple: `+e)}function p0(e){return j1(e)?p2:A1(e)?m2:h2}function m0(e){return Object.create((j1(e)?N2:A1(e)?P2:F2).prototype)}function h0(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):M2.prototype.cacheResult.call(this)}function Mme(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 Nme(e){return!!(e&&typeof e.equals==`function`&&typeof e.hashCode==`function`)}function g0(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!!(Nme(e)&&Nme(t)&&e.equals(t))}function Pme(e,t,n,r){return z0(e,[t],n,r)}function Fme(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Lme(this,e)}function Ime(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 Lme(this,t,e)}function Lme(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=p2(t[i]);a.size!==0&&r.push(a)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?q1(e)?e:e.constructor(r[0]):e.withMutations(function(e){for(var t=n?function(t,r){Pme(e,r,D2,function(e){return e===D2?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})}function Rme(e){if(!e||typeof e!=`object`||Whe.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 _0(e){return typeof e==`object`&&(J1(e)||Array.isArray(e)||Rme(e))}function v0(e){return typeof e==`string`&&(e===`__proto__`||e===`constructor`)}function y0(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 b0(e){if(Array.isArray(e))return y0(e);var t={};for(var n in e)v0(n)||j2.call(e,n)&&(t[n]=e[n]);return t}function x0(e,t,n){return S0(e,t,zme(n))}function S0(e,t,n){if(!_0(e))throw TypeError(`Cannot merge into non-data-structure value: `+e);if(J1(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?m2:p2,o=r?function(t){i===e&&(i=b0(i)),i.push(t)}:function(t,r){if(!v0(r)){var a=j2.call(i,r),o=a&&n?n(i[r],t,r):t;(!a||o!==i[r])&&(i===e&&(i=b0(i)),i[r]=o)}},s=0;s<t.length;s++)a(t[s]).forEach(o);return i}function zme(e){function t(n,r,i){return _0(n)&&_0(r)&&Bme(n,r)?S0(n,[r],t):e?e(n,r,i):r}return t}function Bme(e,t){var n=M2(e),r=M2(t);return A1(n)===A1(r)&&j1(n)===j1(r)}function Vme(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return x0(this,e)}function Hme(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return x0(this,t,e)}function C0(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return z0(this,e,F0(),function(e){return x0(e,t)})}function w0(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return z0(this,e,F0(),function(e){return S0(e,t)})}function Ume(e,t,n){return z0(e,t,D2,function(){return n})}function T0(e,t){return Ume(this,e,t)}function E0(e,t,n){return arguments.length===1?e(this):Pme(this,e,t,n)}function D0(e,t,n){return z0(this,e,t,n)}function O0(){return this.__altered}function k0(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function A0(e){return!!(e&&e[Q2])}function j0(e,t){if(!e)throw Error(t)}function M0(e){j0(e!==1/0,`Cannot perform this action with an infinite size.`)}function N0(e,t){return P1(e,t[0],t[1])}function Wme(e,t){return{node:e,index:0,__prev:t}}function P0(e,t,n,r){var i=Object.create(e4);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function F0(){return Khe||=P0(0)}function Gme(e,t,n){var r,i;if(e._root){var a=z1(),o=z1();if(r=I0(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===D2?-1:1:0)}else{if(n===D2)return e;i=1,r=new t4(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?P0(i,r):F0()}function I0(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===D2?e:(B1(s),B1(o),new a4(t,r,[i,a]))}function Kme(e){return e.constructor===a4||e.constructor===i4}function L0(e,t,n,r,i){if(e.keyHash===r)return new i4(t,r,[e.entry,i]);var a=(n===0?e.keyHash:e.keyHash>>>n)&E2,o=(n===0?r:r>>>n)&E2,s,c=a===o?[L0(e,t,n+w2,r,i)]:(s=new a4(t,r,i),a<o?[e,s]:[s,e]);return new n4(t,1<<a|1<<o,c)}function qme(e,t,n,r){e||=new V1;for(var i=new a4(e,i0(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 Jme(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 n4(e,i,o)}function Yme(e,t,n,r,i){for(var a=0,o=Array(T2),s=0;n!==0;s++,n>>>=1)o[s]=n&1?t[a++]:void 0;return o[r]=i,new r4(e,a+1,o)}function Xme(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 Zme(e,t,n,r){var i=r?e:y0(e);return i[t]=n,i}function Qme(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 $me(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 ehe(e){if(Z1(e)&&typeof e!=`string`)return e;if(Y1(e))return e.toArray();throw TypeError(`Invalid keyPath: expected Ordered Collection or Array: `+e)}function R0(e){try{return typeof e==`string`?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function the(e,t){return J1(e)?e.has(t):_0(e)&&j2.call(e,t)}function nhe(e,t,n){return J1(e)?e.get(t,n):the(e,t)?typeof e.get==`function`?e.get(t):e[t]:n}function rhe(e,t){if(!_0(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(J1(e)){if(!e.remove)throw TypeError(`Cannot update immutable value without .remove() method: `+e);return e.remove(t)}if(!j2.call(e,t))return e;var n=b0(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function ihe(e,t,n){if(v0(t))return e;if(!_0(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(J1(e)){if(!e.set)throw TypeError(`Cannot update immutable value without .set() method: `+e);return e.set(t,n)}if(j2.call(e,t)&&n===e[t])return e;var r=b0(e);return r[t]=n,r}function z0(e,t,n,r){r||(r=n,n=void 0);var i=ahe(J1(e),e,ehe(t),0,n,r);return i===D2?n:i}function ahe(e,t,n,r,i,a){var o=t===D2;if(r===n.length){var s=o?i:t,c=a(s);return c===s?t:c}if(!o&&!_0(t))throw TypeError(`Cannot update within non-data-structure value in path [`+Array.from(n).slice(0,r).map(R0)+`]: `+t);var l=n[r],u=o?D2:nhe(t,l,D2),d=ahe(u===D2?e:J1(u),u,n,r+1,i,a);return d===u?t:d===D2?rhe(t,l):ihe(o?e?F0():{}:t,l,d)}function ohe(e,t){return z0(e,t,function(){return D2})}function B0(e){return ohe(this,e)}function she(e){return!!(e&&e[o4])}function che(e,t){var n=e._origin,r=e._capacity,i=K0(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>T2&&(l=T2),function(){if(c===l)return u4;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>T2&&(u=T2),function(){for(;;){if(s){var e=s();if(e!==u4)return e;s=null}if(l===u)return u4;var n=t?--u:l++;s=o(c&&c[n],i-w2,a+(n<<i))}}}}function V0(e,t,n,r,i,a,o){var s=Object.create(c4);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 H0(){return V0(0,0,w2)}function lhe(e,t,n){if(t=U1(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?G0(e,t).set(0,n):G0(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=z1();return t>=K0(e._capacity)?r=U0(r,e.__ownerID,0,t,n,a):i=U0(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):V0(e._origin,e._capacity,e._level,i,r):e}function U0(e,t,n,r,i,a){var o=r>>>n&E2,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=U0(l,t,n-w2,r,i,a);return u===l?e:(c=W0(e,t),c.array[o]=u,c)}return s&&e.array[o]===i?e:(a&&B1(a),c=W0(e,t),i===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=i,c)}function W0(e,t){return t&&e&&t===e.ownerID?e:new l4(e?e.array.slice():[],t)}function uhe(e,t){if(t>=K0(e._capacity))return e._tail;if(t<1<<e._level+w2){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&E2],r-=w2;return n}}function dhe(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>d4||Number.isFinite(r)&&r<-d4||Number.isFinite(i)&&Number.isFinite(r)&&i-r>d4)throw RangeError(`Invalid List size: a List cannot hold more than `+d4+` (2 ** 30) values.`)}function G0(e,t,n){dhe(e,t,n),t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new V1,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 l4(l&&l.array.length?[void 0,l]:[],r),c+=w2,u+=fhe(c);u&&(o+=u,i+=u,s+=u,a+=u);for(var d=K0(a),f=K0(s);f>=fhe(c+w2);)l=new l4(l&&l.array.length?[l]:[],r),c+=w2;var p=e._tail,m=f<d?uhe(e,s-1):f>d?new l4([],r):p;if(p&&f>d&&o<a&&p.array.length){l=W0(l,r);for(var h=l,g=c;g>w2;g-=w2){var _=d>>>g&E2;h=h.array[_]=W0(h.array[_],r)}h.array[d>>>w2&E2]=p}if(s<a&&(m&&=m.removeAfter(r,0,s)),o>=f)o-=f,s-=f,c=w2,l=void 0,m&&=m.removeBefore(r,0,o);else if(o>i||f<d){for(u=0;l;){var v=o>>>c&E2;if(v!==f>>>c&E2)break;v&&(u+=(1<<c)*v),c-=w2,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):V0(o,s,c,l,m)}function K0(e){return e<T2?0:e-1>>>w2<<w2}function fhe(e){return e<31?1<<e:2**e}function phe(e){return A0(e)&&Y1(e)}function q0(e,t,n,r){var i=Object.create(f4.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 J0(){return Zhe||=q0(F0(),H0())}function mhe(e,t,n){var r=e._map,i=e._list,a=r.get(t),o=a!==void 0,s,c;if(n===D2){if(!o)return e;i.size>=T2&&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):q0(s,c)}function Y0(e){return!!(e&&e[p4])}function X0(e,t,n,r){var i=Object.create(h4);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Z0(){return Qhe||=X0(0)}function hhe(e,t,n,r,i,a){return M0(e.size),e.__iterate(function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)},a),n}function ghe(e,t){return t}function _he(e,t){return[t,e]}function Q0(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function vhe(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function yhe(e,t){return e<t?1:e>t?-1:0}function bhe(e,t){if(e===t)return!0;if(!N1(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||j1(e)!==j1(t)||A1(e)!==A1(t)||Y1(e)!==Y1(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!M1(e);if(Y1(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&g0(i[1],e)&&(n||g0(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?!g0(t,e.get(r,D2)):!g0(e.get(r,D2),t))return o=!1,!1});return o&&e.size===s}function $0(e){return!!(e&&e[_4])}function e2(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 xhe(e,t){var n=Object.create(y4);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function t2(){return ege||=xhe(F0())}function She(e,t,n){for(var r=ehe(t),i=0;i!==r.length;)if(e=nhe(e,r[i++],D2),e===D2)return n;return e}function Che(e,t){return She(this,e,t)}function whe(e,t){return She(e,t,D2)!==D2}function The(e){return whe(this,e)}function Ehe(){M0(this.size);var e={};return this.__iterate(function(t,n){v0(n)||(e[n]=t)}),e}function n2(e){if(!e||typeof e!=`object`)return e;if(!N1(e)){if(!_0(e))return e;e=M2(e)}if(j1(e)){var t={};return e.__iterate(function(e,n){v0(n)||(t[n]=n2(e))}),t}var n=[];return e.__iterate(function(e){n.push(n2(e))}),n}function Dhe(e){if(e.size===1/0)return 0;var t=Y1(e),n=j1(e),r=+!!t;return e.__iterate(n?t?function(e,t){r=31*r+khe(i0(e),i0(t))|0}:function(e,t){r=r+khe(i0(e),i0(t))|0}:t?function(e){r=31*r+i0(e)|0}:function(e){r=r+i0(e)|0}),Ohe(e.size,r)}function Ohe(e,t){return t=R2(t,3432918353),t=R2(t<<15|t>>>-15,461845907),t=R2(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=R2(t^t>>>16,2246822507),t=R2(t^t>>>13,3266489909),t=r0(t^t>>>16),t}function khe(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function r2(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 Ahe(){return y0(arguments)}function jhe(e){return $0(e)&&Y1(e)}function Mhe(e,t){var n=Object.create(T4);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function i2(){return tge||=Mhe(J0())}function Nhe(e){if(q1(e))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(J1(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 a2(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function o2(e){return e.constructor.displayName||e.constructor.name||`Record`}function s2(e){return $1(e._keys.map(function(t){return[t,e.get(t)]}))}function Phe(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){j0(this.__ownerID,`Cannot set on an immutable record.`),this.set(t,e)}})}catch{}}function c2(e,t){return Fhe([],t||Ihe,e,``,t&&t.length>2?[]:void 0,{"":e})}function Fhe(e,t,n,r,i,a){if(typeof n!=`string`&&!J1(n)&&(Z1(n)||I1(n)||Rme(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,M2(n).map(function(r,a){return Fhe(e,t,r,a,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function Ihe(e,t){return A1(t)?t.toList():j1(t)?t.toMap():t.toSet()}var l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,Lhe,Rhe,R2,zhe,Bhe,z2,B2,V2,H2,U2,W2,G2,Vhe,Hhe,K2,q2,J2,Y2,X2,Z2,Uhe,Whe,Q2,$2,e4,t4,n4,r4,i4,a4,Ghe,Khe,qhe,Jhe,Yhe,Xhe,o4,s4,c4,l4,u4,d4,f4,Zhe,p4,m4,h4,Qhe,$he,g4,_4,v4,y4,ege,b4,x4,S4,C4,w4,T4,tge,E4,D4;function O4(){return(O4=s((()=>{l2=`@@__IMMUTABLE_INDEXED__@@`,u2=`@@__IMMUTABLE_KEYED__@@`,d2=`@@__IMMUTABLE_ITERABLE__@@`,f2=function(e){return N1(e)?e:M2(e)},p2=function(e){function t(e){return j1(e)?e:N2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(f2),m2=function(e){function t(e){return A1(e)?e:P2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(f2),h2=function(e){function t(e){return N1(e)&&!M1(e)?e:F2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(f2),f2.Keyed=p2,f2.Indexed=m2,f2.Set=h2,g2=0,_2=1,v2=2,y2=typeof Symbol==`function`&&Symbol.iterator,b2=`@@iterator`,x2=y2||b2,S2=function(e){this.next=e},S2.prototype.toString=function(){return`[Iterator]`},S2.KEYS=g2,S2.VALUES=_2,S2.ENTRIES=v2,S2.prototype.inspect=S2.prototype.toSource=function(){return this.toString()},S2.prototype[x2]=function(){return this},C2=`delete`,w2=5,T2=1<<w2,E2=T2-1,D2={},O2=`@@__IMMUTABLE_RECORD__@@`,k2=`@@__IMMUTABLE_ORDERED__@@`,A2=`@@__IMMUTABLE_SEQ__@@`,j2=Object.prototype.hasOwnProperty,M2=function(e){function t(e){return e==null?Q1():J1(e)?e.toSeq():lme(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 S2(function(){if(i===r)return F1();var a=n[t?r-++i:i++];return P1(e,a[0],a[1])})}return this.__iteratorUncached(e,t)},t}(f2),N2=function(e){function t(e){return e==null?Q1().toKeyedSeq():N1(e)?j1(e)?e.toSeq():e.fromEntrySeq():q1(e)?e.toSeq():$1(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(M2),P2=function(e){function t(e){return e==null?Q1():N1(e)?j1(e)?e.entrySeq():e.toIndexedSeq():q1(e)?e.toSeq().entrySeq():cme(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}(M2),F2=function(e){function t(e){return(N1(e)&&!M1(e)?e:P2(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}(M2),M2.isSeq=X1,M2.Keyed=N2,M2.Set=F2,M2.Indexed=P2,M2.prototype[A2]=!0,I2=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[U1(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 S2(function(){if(i===r)return F1();var a=t?r-++i:i++;return P1(e,a,n[a])})},t}(P2),L2=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 j2.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 S2(function(){if(a===i)return F1();var o=r[t?i-++a:a++];return P1(e,o,n[o])})},t}(N2),L2.prototype[k2]=!0,Lhe=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=L1(n),i=0;if(nme(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=L1(n);if(!nme(r))return new S2(F1);var i=0;return new S2(function(){var t=r.next();return t.done?t:P1(e,i++,t.value)})},t}(P2),R2=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},zhe=Object.prototype.valueOf,Bhe=(Math.random()*1048576|1)%1048576||40503,z2=Object.isExtensible,B2=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})(),V2=typeof WeakMap==`function`,V2&&(H2=new WeakMap),U2=Object.create(null),W2=0,G2=`__immutablehash__`,typeof Symbol==`function`&&(G2=Symbol(G2)),Vhe=16,Hhe=255,K2=0,q2={},J2=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=s0(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=yme(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}(N2),J2.prototype[k2]=!0,Y2=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&&H1(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(_2,t),i=0;return t&&H1(this),new S2(function(){var a=r.next();return a.done?a:P1(e,t?n.size-++i:i++,a.value,a)})},t}(P2),X2=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(_2,t);return new S2(function(){var t=n.next();return t.done?t:P1(e,t.value,t.value,t)})},t}(F2),Z2=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){jme(t);var r=N1(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(_2,t);return new S2(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){jme(r);var i=N1(r);return P1(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(N2),Y2.prototype.cacheResult=J2.prototype.cacheResult=X2.prototype.cacheResult=Z2.prototype.cacheResult=h0,Uhe=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[u2]=this._wrappedIterables[0][u2],this[l2]=this._wrappedIterables[0][l2],this[k2]=this._wrappedIterables[0][k2]}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=j1(this),i=r?v2:_2,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 S2(F1);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new S2(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}(M2),Whe=Object.prototype.toString,Q2=`@@__IMMUTABLE_MAP__@@`,$2=function(e){function t(t){return t==null?F0():A0(t)&&!Y1(t)?t:F0().withMutations(function(n){var r=e(t);M0(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 Gme(this,e,t)},t.prototype.remove=function(e){return Gme(this,e,D2)},t.prototype.deleteAll=function(e){var t=f2(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):F0()},t.prototype.sort=function(e){return f4(l0(this,e))},t.prototype.sortBy=function(e,t){return f4(l0(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 Ghe(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?P0(this.size,this._root,e,this.__hash):this.size===0?F0():(this.__ownerID=e,this.__altered=!1,this)},t}(p2),$2.isMap=A0,e4=$2.prototype,e4[Q2]=!0,e4[C2]=e4.remove,e4.removeAll=e4.deleteAll,e4.setIn=T0,e4.removeIn=e4.deleteIn=B0,e4.update=E0,e4.updateIn=D0,e4.merge=e4.concat=Fme,e4.mergeWith=Ime,e4.mergeDeep=Vme,e4.mergeDeepWith=Hme,e4.mergeIn=w0,e4.mergeDeepIn=C0,e4.withMutations=k0,e4.wasAltered=O0,e4.asImmutable=t0,e4[`@@transducer/init`]=e4.asMutable=n0,e4[`@@transducer/step`]=function(e,t){return e.set(t[0],t[1])},e4[`@@transducer/result`]=function(e){return e.asImmutable()},t4=function(e,t){this.ownerID=e,this.entries=t},t4.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(g0(n,i[a][0]))return i[a][1];return r},t4.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===D2,c=this.entries,l=0,u=c.length;l<u&&!g0(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(B1(o),(s||!d)&&B1(a),!(s&&c.length===1)){if(!d&&!s&&c.length>=qhe)return qme(e,c,r,i);var f=e&&e===this.ownerID,p=f?c:y0(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 t4(e,p)}},n4=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n},n4.prototype.get=function(e,t,n,r){t===void 0&&(t=i0(n));var i=1<<((e===0?t:t>>>e)&E2),a=this.bitmap;return(a&i)===0?r:this.nodes[Xme(a&i-1)].get(e+w2,t,n,r)},n4.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=i0(r));var s=(t===0?n:n>>>t)&E2,c=1<<s,l=this.bitmap,u=(l&c)!==0;if(!u&&i===D2)return this;var d=Xme(l&c-1),f=this.nodes,p=u?f[d]:void 0,m=I0(p,e,t+w2,n,r,i,a,o);if(m===p)return this;if(!u&&m&&f.length>=Jhe)return Yme(e,f,l,s,m);if(u&&!m&&f.length===2&&Kme(f[d^1]))return f[d^1];if(u&&m&&f.length===1&&Kme(m))return m;var h=e&&e===this.ownerID,g=u?m?l:l^c:l|c,_=u?m?Zme(f,d,m,h):$me(f,d,h):Qme(f,d,m,h);return h?(this.bitmap=g,this.nodes=_,this):new n4(e,g,_)},r4=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n},r4.prototype.get=function(e,t,n,r){t===void 0&&(t=i0(n));var i=(e===0?t:t>>>e)&E2,a=this.nodes[i];return a?a.get(e+w2,t,n,r):r},r4.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=i0(r));var s=(t===0?n:n>>>t)&E2,c=i===D2,l=this.nodes,u=l[s];if(c&&!u)return this;var d=I0(u,e,t+w2,n,r,i,a,o);if(d===u)return this;var f=this.count;if(!u)f++;else if(!d&&(f--,f<Yhe))return Jme(e,l,f,s);var p=e&&e===this.ownerID,m=Zme(l,s,d,p);return p?(this.count=f,this.nodes=m,this):new r4(e,f,m)},i4=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n,this._index=void 0},i4.prototype._positionOf=function(e,t){var n=this.entries,r=this._index;if(r===void 0&&t&&n.length>=Xhe&&(r=this._buildIndex()),r!==void 0){var i=r[o0(e)];if(i!==void 0)for(var a=0;a<i.length;a++){var o=i[a];if(g0(e,n[o][0]))return o}return-1}for(var s=0,c=n.length;s<c;s++)if(g0(e,n[s][0]))return s;return-1},i4.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,n=0,r=t.length;n<r;n++){var i=o0(t[n][0]),a=e[i];a===void 0?e[i]=[n]:a.push(n)}return this._index=e,e},i4.prototype.get=function(e,t,n,r){var i=this._positionOf(n,!0);return i===-1?r:this.entries[i][1]},i4.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=i0(r));var s=i===D2;if(n!==this.keyHash)return s?this:(B1(o),B1(a),L0(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(B1(o),(s||!p)&&B1(a),s&&l===2)return new a4(e,this.keyHash,c[f^1]);var m=u?c:y0(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=o0(r),g=this._index[h];g===void 0?this._index[h]=[l]:g.push(l)}return u?(this.entries=m,this):new i4(e,this.keyHash,m)},a4=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n},a4.prototype.get=function(e,t,n,r){return g0(n,this.entry[0])?this.entry[1]:r},a4.prototype.update=function(e,t,n,r,i,a,o){var s=i===D2,c=g0(r,this.entry[0]);if(c?i===this.entry[1]:s)return this;if(B1(o),s){B1(a);return}return c?e&&e===this.ownerID?(this.entry[1]=i,this):new a4(e,this.keyHash,[r,i]):(B1(a),L0(this,e,t,i0(r),[r,i]))},t4.prototype.iterate=i4.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},n4.prototype.iterate=r4.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}},a4.prototype.iterate=function(e,t){return e(this.entry)},Ghe=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Wme(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 N0(e,n.entry)}else if(n.entries){if(i=n.entries.length-1,r<=i)return N0(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 N0(e,a.entry);t=this._stack=Wme(a,t)}continue}t=this._stack=this._stack.__prev}return F1()},t}(S2),qhe=T2/4,Jhe=T2/2,Yhe=T2/4,Xhe=16,o4=`@@__IMMUTABLE_LIST__@@`,s4=function(e){function t(t){var n=H0();if(t==null)return n;if(she(t))return t;var r=e(t),i=r.size;return i===0?n:(M0(i),i>0&&i<T2?V0(0,i,w2,void 0,new l4(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=U1(this,e),e>=0&&e<this.size){e+=this._origin;var n=uhe(this,e);return n&&n.array[e&E2]}return t},t.prototype.set=function(e,t){return lhe(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=w2,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):H0()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){G0(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return G0(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){G0(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return G0(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`&&I1(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 G0(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 W1(e,t,n)?this:G0(this,G1(e,n),K1(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=che(this,t);return new S2(function(){var i=r();return i===u4?F1():P1(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n=t?this.size:0,r=che(this,t),i;(i=r())!==u4&&e(i,t?--n:n++,this)!==!1;);return n},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?V0(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):this.size===0?H0():(this.__ownerID=e,this.__altered=!1,this)},t}(m2),s4.isList=she,c4=s4.prototype,c4[o4]=!0,c4[C2]=c4.remove,c4.merge=c4.concat,c4.setIn=T0,c4.deleteIn=c4.removeIn=B0,c4.update=E0,c4.updateIn=D0,c4.mergeIn=w0,c4.mergeDeepIn=C0,c4.withMutations=k0,c4.wasAltered=O0,c4.asImmutable=t0,c4[`@@transducer/init`]=c4.asMutable=n0,c4[`@@transducer/step`]=function(e,t){return e.push(t)},c4[`@@transducer/result`]=function(e){return e.asImmutable()},l4=function(e,t){this.array=e,this.ownerID=t},l4.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+w2)-1)||this.array.length===0)return this;var r=n>>>t&E2;if(r>=this.array.length)return new l4([],e);var i=r===0,a;if(t>0){var o=this.array[r];if(a=o&&o.removeBefore(e,t-w2,n),a===o&&i)return this}if(i&&!a)return this;var s=W0(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return a&&(s.array[r]=a),s},l4.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+w2:T2)||this.array.length===0)return this;var r=n-1>>>t&E2;if(r>=this.array.length)return this;var i;if(t>0){var a=this.array[r];if(i=a&&a.removeAfter(e,t-w2,n),i===a&&r===this.array.length-1)return this}var o=W0(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o},u4={},d4=2**30,f4=function(e){function t(e){return e==null?J0():phe(e)?e:J0().withMutations(function(t){var n=p2(e);M0(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):J0()},t.prototype.set=function(e,t){return mhe(this,e,t)},t.prototype.remove=function(e){return mhe(this,e,D2)},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?q0(t,n,e,this.__hash):this.size===0?J0():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}($2),f4.isOrderedMap=phe,f4.prototype[k2]=!0,f4.prototype[C2]=f4.prototype.remove,p4=`@@__IMMUTABLE_STACK__@@`,m4=function(e){function t(e){return e==null?Z0():Y0(e)?e:Z0().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=U1(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):X0(t,n)},t.prototype.pushAll=function(t){if(t=e(t),t.size===0)return this;if(this.size===0&&Y0(t))return t;M0(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):X0(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):Z0()},t.prototype.slice=function(t,n){if(W1(t,n,this.size))return this;var r=G1(t,this.size);if(K1(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):X0(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?X0(this.size,this._head,e,this.__hash):this.size===0?Z0():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new I2(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 I2(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new S2(function(){if(r){var t=r.value;return r=r.next,P1(e,n++,t)}return F1()})},t}(m2),m4.isStack=Y0,h4=m4.prototype,h4[p4]=!0,h4.shift=h4.pop,h4.unshift=h4.push,h4.unshiftAll=h4.pushAll,h4.withMutations=k0,h4.wasAltered=O0,h4.asImmutable=t0,h4[`@@transducer/init`]=h4.asMutable=n0,h4[`@@transducer/step`]=function(e,t){return e.unshift(t)},h4[`@@transducer/result`]=function(e){return e.asImmutable()},$he=function(e){function t(e,n,r){if(r===void 0&&(r=1),!(this instanceof t))return new t(e,n,r);if(j0(r!==0,`Cannot step a Range by 0`),j0(e!==void 0,`You must define a start value when using Range`),j0(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(g4)return g4;g4=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+U1(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 W1(e,n,this.size)?this:(e=G1(e,this.size),n=K1(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 S2(function(){if(a===n)return F1();var o=i;return i+=t?-r:r,P1(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:bhe(this,e)},t}(P2),_4=`@@__IMMUTABLE_SET__@@`,v4=function(e){function t(t){return t==null?t2():$0(t)&&!Y1(t)?t:t2().withMutations(function(n){var r=e(t);M0(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(p2(e).keySeq())},t.intersect=function(e){return e=f2(e).toArray(),e.length?y4.intersect.apply(t(e.pop()),e):t2()},t.union=function(e){return e=f2(e).toArray(),e.length?y4.union.apply(t(e.pop()),e):t2()},t.prototype.toString=function(){return this.__toString(`Set {`,`}`)},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return e2(this,this._map.set(e,e))},t.prototype.remove=function(e){return e2(this,this._map.remove(e))},t.prototype.clear=function(){return e2(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=e2(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 w4(l0(this,e))},t.prototype.sortBy=function(e,t){return w4(l0(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}(h2),v4.isSet=$0,y4=v4.prototype,y4[_4]=!0,y4[C2]=y4.remove,y4.merge=y4.concat=y4.union,y4.withMutations=k0,y4.asImmutable=t0,y4[`@@transducer/init`]=y4.asMutable=n0,y4[`@@transducer/step`]=function(e,t){return e.add(t)},y4[`@@transducer/result`]=function(e){return e.asImmutable()},y4.__empty=t2,y4.__make=xhe,f2.Iterator=S2,r2(f2,{toArray:function(){M0(this.size);var e=Array(this.size||0),t=j1(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new Y2(this)},toJS:function(){return n2(this)},toKeyedSeq:function(){return new J2(this,!0)},toMap:function(){return $2(this.toKeyedSeq())},toObject:Ehe,toOrderedMap:function(){return f4(this.toKeyedSeq())},toOrderedSet:function(){return w4(j1(this)?this.valueSeq():this)},toSet:function(){return v4(j1(this)?this.valueSeq():this)},toSetSeq:function(){return new X2(this)},toSeq:function(){return A1(this)?this.toIndexedSeq():j1(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return m4(j1(this)?this.valueSeq():this)},toList:function(){return s4(j1(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 f0(this,Eme(this,e))},includes:function(e){return this.some(function(t){return g0(t,e)})},entries:function(){return this.__iterator(v2)},every:function(e,t){M0(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 f0(this,bme(this,e,t,!0))},partition:function(e,t){return Cme(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return M0(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){M0(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(g2)},map:function(e,t){return f0(this,yme(this,e,t))},reduce:function(e,t,n){return hhe(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return hhe(this,e,t,n,arguments.length<2,!0)},reverse:function(){return f0(this,s0(this,!0))},slice:function(e,t){return f0(this,c0(this,e,t,!0))},some:function(e,t){M0(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 f0(this,l0(this,e))},values:function(){return this.__iterator(_2)},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 H1(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return xme(this,e,t)},equals:function(e){return bhe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new I2(e._cache);var t=e.toSeq().map(_he).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Q0(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(ame,null,e)},flatMap:function(e,t){return f0(this,Ome(this,e,t))},flatten:function(e){return f0(this,Dme(this,e,!0))},fromEntrySeq:function(){return new Z2(this)},get:function(e,t){return this.find(function(t,n){return g0(n,e)},void 0,t)},getIn:Che,groupBy:function(e,t){return Sme(this,e,t)},has:function(e){return this.get(e,D2)!==D2},hasIn:The,isSubset:function(e){return e=typeof e.includes==`function`?e:f2(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset==`function`?e:f2(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return g0(t,e)})},keySeq:function(){return this.toSeq().map(ghe).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return u0(this,e)},maxBy:function(e,t){return u0(this,t,e)},min:function(e){return u0(this,e?vhe(e):yhe)},minBy:function(e,t){return u0(this,t?vhe(t):yhe,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 f0(this,Tme(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Q0(e),t)},sortBy:function(e,t){return f0(this,l0(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 f0(this,wme(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Q0(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||=Dhe(this)}}),b4=f2.prototype,b4[d2]=!0,b4[x2]=b4.values,b4.toJSON=b4.toArray,b4.__toStringMapper=R0,b4.inspect=b4.toSource=function(){return this.toString()},b4.chain=b4.flatMap,b4.contains=b4.includes,r2(p2,{flip:function(){return f0(this,vme(this))},mapEntries:function(e,t){var n=this,r=0;return f0(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return f0(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}}),x4=p2.prototype,x4[u2]=!0,x4[x2]=b4.entries,x4.toJSON=Ehe,x4.__toStringMapper=function(e,t){return R0(t)+`: `+R0(e)},r2(m2,{toKeyedSeq:function(){return new J2(this,!1)},filter:function(e,t){return f0(this,bme(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 f0(this,s0(this,!1))},slice:function(e,t){return f0(this,c0(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=G1(e,e<0?this.count():this.size);var r=this.slice(0,e);return f0(this,n===1?r:r.concat(y0(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 f0(this,Dme(this,e,!1))},get:function(e,t){return e=U1(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=U1(this,e),e>=0&&(this.size===void 0?this.find(function(t,n){return n===e},void 0,D2)!==D2:this.size===1/0||e<this.size)},interpose:function(e){return f0(this,kme(this,e))},interleave:function(){var e=[this].concat(y0(arguments)),t=d0(this.toSeq(),P2.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),f0(this,n)},keySeq:function(){return $he(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return f0(this,Tme(this,e,t,!1))},zip:function(){var e=[this].concat(y0(arguments));return f0(this,d0(this,Ahe,e))},zipAll:function(){var e=[this].concat(y0(arguments));return f0(this,d0(this,Ahe,e,!0))},zipWith:function(e){var t=y0(arguments);return t[0]=this,f0(this,d0(this,e,t))}}),S4=m2.prototype,S4[l2]=!0,S4[k2]=!0,r2(h2,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),C4=h2.prototype,C4.has=b4.includes,C4.contains=C4.includes,C4.keys=C4.values,r2(N2,x4),r2(P2,S4),r2(F2,C4),w4=function(e){function t(e){return e==null?i2():jhe(e)?e:i2().withMutations(function(t){var n=h2(e);M0(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(p2(e).keySeq())},t.prototype.toString=function(){return this.__toString(`OrderedSet {`,`}`)},t}(v4),w4.isOrderedSet=jhe,T4=w4.prototype,T4[k2]=!0,T4.zip=S4.zip,T4.zipWith=S4.zipWith,T4.zipAll=S4.zipAll,T4.__empty=i2,T4.__make=Mhe,E4=function(e,t){var n;Nhe(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 `+o2(this)+` with property "`+u+`" since that property name is part of the Record API.`):Phe(i,u)}}return this.__ownerID=void 0,this._values=s4().withMutations(function(e){e.setSize(o._keys.length),p2(a).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(D4);return i.constructor=r,t&&(r.displayName=t),r},E4.prototype.toString=function(){for(var e=o2(this)+` { `,t=this._keys,n,r=0,i=t.length;r!==i;r++)n=t[r],e+=(r?`, `:``)+n+`: `+R0(this.get(n));return e+` }`},E4.prototype.equals=function(e){return this===e||q1(e)&&s2(this).equals(s2(e))},E4.prototype.hashCode=function(){return s2(this).hashCode()},E4.prototype.has=function(e){return this._indices.hasOwnProperty(e)},E4.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},E4.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 a2(this,n)}return this},E4.prototype.remove=function(e){return this.set(e)},E4.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:a2(this,e)},E4.prototype.wasAltered=function(){return this._values.wasAltered()},E4.prototype.toSeq=function(){return s2(this)},E4.prototype.toJS=function(){return n2(this)},E4.prototype.entries=function(){return this.__iterator(v2)},E4.prototype.__iterator=function(e,t){return s2(this).__iterator(e,t)},E4.prototype.__iterate=function(e,t){return s2(this).__iterate(e,t)},E4.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?a2(this,t,e):(this.__ownerID=e,this._values=t,this)},E4.isRecord=q1,E4.getDescriptiveName=o2,D4=E4.prototype,D4[O2]=!0,D4[C2]=D4.remove,D4.deleteIn=D4.removeIn=B0,D4.getIn=Che,D4.hasIn=b4.hasIn,D4.merge=Fme,D4.mergeWith=Ime,D4.mergeIn=w0,D4.mergeDeep=Vme,D4.mergeDeepWith=Hme,D4.mergeDeepIn=C0,D4.setIn=T0,D4.update=E0,D4.updateIn=D0,D4.withMutations=k0,D4.asMutable=n0,D4.asImmutable=t0,D4[x2]=D4.entries,D4.toJSON=D4.toObject=b4.toObject,D4.inspect=D4.toSource=function(){return this.toString()}})))()}var nge;function rge(){return(rge=s((()=>{hM(),EV(),nge=class{#e;constructor(e){this.#e=e,this.path=CV(e,{pathOnly:!0})??``,this.url=e.blobURL??this.path,this.field=void 0,this.fileObj=e.file,(async()=>{this.url=await gV(e)??this.url})()}toString(){return this.url}async toBase64(){try{let e=await hV(this.#e);return mM(e)}catch(e){throw Error(`Failed to encode asset as base64: ${e.message}`)}}}})))()}var k4,A4,ige,age,oge,j4,M4;function N4(){return(N4=s((()=>{O4(),aM(),rge(),Tq(),kM(),qV(),cI(),EU(),k4=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>c2({data:_M(e),i18n:Object.fromEntries(t.map(e=>[e,{data:_M(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:``}),A4=({entry:e,locale:t,collectionName:n,associatedAssets:r,content:i})=>{let a=i??e?.locales?.[t]?.content??{};return k4({content:a,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})},ige=({entry:e,collectionName:t,fileName:n})=>r=>{let i=bq({value:r,entry:e,collectionName:t,fileName:n});if(i)return new nge(i)},age=({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=mU({...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?[oI(n,c)]:UV(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}}),c2(r)},oge=({originalEntry:e,currentValues:t})=>({...e,locales:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,{slug:e?.locales[t]?.slug??e?.slug,path:e?.locales[t]?.path??e?.subPath,content:n}]))}),j4=({collectionName:e,fileName:t})=>{let n=TM({collectionName:e,fileName:t});return n?A(iq).filter(e=>xq(e,n)):[]},M4=({draft:e,locale:t})=>{let{collectionName:n,fileName:r,isIndexFile:i,originalEntry:a,currentValues:o}=e,s=oge({originalEntry:a,currentValues:o}),c=s.locales[t].content??{},l={collectionName:n,fileName:r,valueMap:c,isIndexFile:i};return{entryMap:A4({entry:s,locale:t,collectionName:n,associatedAssets:j4({collectionName:n,fileName:r}),content:c}),valueMap:c,getFieldArgs:l,fieldsMetaData:age({locale:t,getFieldArgs:l}),getAsset:ige({entry:s,collectionName:n,fileName:r})}}})))()}var P4,F4;function I4(){return(I4=s((()=>{hM(),FD(),aM(),Tq(),kM(),EV(),sL(),DI(),EU(),P4=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(`^${kD(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await TV({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},F4=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=iL(t);if(!a)return[];let o=EI(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||yq(a))){let s=mU({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=bq({value:a,entry:e,collectionName:t,fileName:n});if(c&&DM(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&&TM({collectionName:t,fileName:n})?.entryRelative){let t=pM(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(iq).forEach(n=>{let r=pM(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})))()}var L4,sge,R4;function z4(){return(z4=s((()=>{v(),O4(),N4(),yI(),I4(),JJ(),L4=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],sge=[`preSave`,`prePublish`],R4=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=qJ.account,{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:d,locales:f}=n,p=Object.keys(f).filter(e=>e!==u),{content:m,path:h}=f[u],_=F4({entry:n,collectionName:c,fileName:l});for(let t of vI){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:k4({content:m,otherLocales:p,locales:f,slug:d,path:h,isNew:s,collectionName:c,associatedAssets:_})});if(sge.includes(e)&&A0(n)){let e=n.toJS();g(e.data)&&g(e.i18n)?(f[u].content=gM(e.data),p.forEach(t=>{g(e.i18n[t]?.data)&&(f[t].content=gM(e.i18n[t].data))})):f[u].content=gM(e)}}}})))()}var cge,B4;function V4(){return(V4=s((()=>{FD(),ZU(),DI(),zI(),eB(),cge=({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}`}},B4=({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 RI({_i18n:e,locale:t,path:jD(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?TI(d)?.name:p?XU(p,{collection:d,locale:t,content:o[c],currentSlug:n}):n;s&&h?.endsWith(`.${m}`)&&(h=h.slice(0,-m.length-1));let g=cge({basePath:f,path:h,extension:m,locale:t,omitLocale:u&&t===c,structure:l});return Yz(g.split(`/`))}})))()}var H4,U4,lge,uge,dge,W4;function G4(){return(G4=s((()=>{ZU(),DI(),H4=(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},U4=({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:{...H4(i[s],a),_slug:r?.[s]??r?._},locale:s,isIndexFile:o}},lge=({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]?XU(p,{collection:i,locale:t,content:{...H4(c[m],l),...H4(Object.fromEntries(n.map(e=>[e,c[t]?.[e]])),l),_slug:h},isIndexFile:u}):h},uge=({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:lge({draft:e,locale:n,localizingKeyPaths:d})]))},dge=({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:XU(o,{...r,currentSlug:t})},W4=({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:TI(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};let{_i18n:{defaultLocale:u}}=r??n,d=U4({draft:e}),f=i??(t?XU(l,d):a?.[u]??a?._),p=uge({draft:e,defaultLocaleSlug:f});return{defaultLocaleSlug:f,localizedSlugs:p,canonicalSlug:dge({draft:e,defaultLocaleSlug:f,localizedSlugs:p,fillSlugOptions:d})}}})))()}var fge,pge,K4,q4,mge,hge,gge,_ge,vge,yge;function bge(){return(bge=s((()=>{fge=u(kK(),1),Tq(),OR(),ZU(),V4(),G4(),eB(),pge=[`multiple_folders`,`multiple_folders_i18n_root`,`multiple_root_folders`],K4=/(?<path>.+?)(?:\/[^/]+)?$/,q4=(e,t)=>e.includes(`{{`)?XU(e,t):e,mge=(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(K4)?.groups?.path),r},hge=({internalPath:e,internalSubPath:t,entryFolderPath:n,isMultiFolders:r,isNestedEntry:i,fillSlugOptions:a})=>{let o=Yz([r||i?n:e,t]);return Zz(q4(o,a))},gge=({publicPath:e,subPathFolderPath:t,subPath:n,isMultiFolders:r,fillSlugOptions:i})=>{if(!r&&/^\.?$/.test(e))return e;let a=r?Yz([...Array((n?.match(/\//g)??[]).length+1).fill(`..`),e,t]):e;return Zz(q4(a,i))},_ge=({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:XU(r,t),resolvedPublicPath:XU(a,t)};let{collection:o,entryFilePath:s}=t,c=pge.includes(o._i18n.structure),l=o._type===`entry`?o._file.subPath:void 0,u=l?.match(K4)?.groups?.path??``,d=mge(s??``,l),f=l?.includes(`/`)??!1;return{resolvedInternalPath:hge({internalPath:r,internalSubPath:i,entryFolderPath:d,isMultiFolders:c,isNestedEntry:f,fillSlugOptions:t}),resolvedPublicPath:gge({publicPath:a,subPathFolderPath:u,subPath:l,isMultiFolders:c,fillSlugOptions:t})}},vge=({draft:e,defaultLocaleSlug:t,folder:n})=>{let{collection:r,collectionName:i,collectionFile:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=a??r,c=_ge({folder:n,fillSlugOptions:{...U4({draft:e}),type:`media_folder`,currentSlug:t,entryFilePath:B4({draft:e,locale:s,slug:t}),isIndexFile:o}}),{resolvedInternalPath:l}=c;return{assetFolderPaths:c,assetNamesInSameFolder:Cq(l).map(e=>e.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},yge=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 $z(e),f=l.find(e=>e.sha===d&&(!t.entryRelative||(0,fge.default)(e.folder,t))),{savingAssetProps:p,assetNamesInSameFolder:m,assetFolderPaths:{resolvedInternalPath:h,resolvedPublicPath:g}}=vge({draft:i,defaultLocaleSlug:a,folder:t}),_=``;if(f)_=f.name;else{_=Kz(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:DR(_)})}let v=g?`${g===`/`?``:g}/${_}`:_;u&&(v=Vz(v)),s[o]=s[o].replaceAll(r,v)}})))()}var J4,Y4,X4,xge,Z4;function Q4(){return(Q4=s((()=>{GW(),aM(),EF(),yI(),qK(),jI(),J4=(e,t=A(VK)?.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()},Y4=e=>kfe(e).trim(),X4=(e,t=A(VK)?.output?.yaml??{},n={})=>{let{indent_size:r=2,indent_sequences:i=!0,quote:a=`none`}=t,{quote:o=!1}=n;return TF(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()},xge=({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=X4(e,void 0,{quote:o});else if(n===`toml-frontmatter`)t=Y4(e);else if(n===`json-frontmatter`)t=J4(e);else return``;return`${s}\n${t}\n${c}\n${!a&&l?`\n${l}\n`:``}`}catch(e){console.error(e)}return``},Z4=async({content:e,_file:t})=>{let{format:n,yamlQuote:r=!1}=t,i=hI.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`${X4(e,void 0,{quote:r})}\n`;if(n===`toml`)return`${Y4(e)}\n`;if(n===`json`)return`${J4(e)}\n`}catch(e){return console.error(e),``}return n===`frontmatter`||AI.includes(n)?xge({content:e,_file:t}):``}})))()}var Sge,$4,Cge,e3,wge,Tge,Ege,Dge,Oge,kge,t3,Age,jge,Mge;function n3(){return(n3=s((()=>{v(),sM(),aM(),WZ(),l1(),a1(),qV(),DI(),_3(),m3(),Q4(),Sge=`order`,$4=e=>{let t=e?.reorder;if(t)return g(t)&&typeof t.key==`string`&&t.key?t.key:Sge},Cge=e=>{let t=e?.reorder;if(g(t)&&typeof t.group==`string`&&t.group)return t.group},e3=(e,t)=>{let n=$4(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)},wge=e=>({collection:e,collectionName:e.name,collectionFile:void 0,fields:e.fields,isIndexFile:!1}),Tge=({collection:e,entry:t,draft:n})=>{let{_i18n:{i18nEnabled:r,defaultLocale:i,structureMap:{i18nSingleFileDefaultRoot:a}={}}}=e;if(!r)return p3({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,p3({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},Ege=(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}},Dge=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([h3({cacheDB:r,previousPath:s}),Z4({content:Tge({collection:e,entry:t,draft:n}),_file:i})]);return{action:`update`,slug:o,path:s,previousSha:c,data:l}},Oge=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([h3({cacheDB:r,previousPath:a.path}),Z4({content:p3({draft:n,locale:e,valueMap:a.content}),_file:i})]);return{action:`update`,slug:a.slug,path:a.path,previousSha:o,data:s}}))).filter(Boolean)},kge=e=>{if(e)return e;let t=A(HZ)?.repository?.databaseName;return t?new oM(t,`file-cache`):void 0},t3=async(e,t,{cacheDB:n}={})=>{let r=$4(e);if(!r)return{changes:[],savingEntries:[]};let{_i18n:{i18nEnabled:i,defaultLocale:a,structureMap:{i18nSingleFile:o,i18nSingleFileDefaultRoot:s}={}}}=e,c=!i||o||s,l=kge(n),u=[];for(let[e,n]of t.entries()){let t=e+1;Number(n.locales[a]?.content?.[r])!==t&&u.push(Ege(n,r,t))}let d=wge(e);return{changes:(await Promise.all(u.map(t=>c?Dge({collection:e,entry:t,draft:d,cacheDB:l}).then(e=>[e]):Oge({collection:e,entry:t,draft:d,cacheDB:l})))).flat(),savingEntries:u}},Age=async(e,t,{silent:n=!1}={})=>{let{changes:r,savingEntries:i}=await t3(e,t);return r.length?(await c1({changes:r,savingEntries:i,options:{commitType:`update`,collection:e}}),n||i1.set({...r1,saved:!0,count:i.length}),i.length):0},jge=(e,{excludeIds:t}={})=>{let n=TI(e)?.name,r=UV(e.name).filter(e=>e.slug!==n&&!(t&&t.has(e.id)));return e3(r,e)},Mge=async(e,{excludeIds:t,cacheDB:n}={})=>!e||e._type!==`entry`||!$4(e)?{changes:[],savingEntries:[]}:t3(e,jge(e,{excludeIds:t}),{cacheDB:n})})))()}var r3,i3,a3,o3,s3,Nge,Pge,Fge,c3;function l3(){return(l3=s((()=>{r3=u(kK(),1),aM(),FK(),i3=/\.__sc_\w+$/,a3=sn(),o3=sn(!0),s3=sn(!1),Nge=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!i3.test(e))),Pge=(e,t)=>{let n=0;return Object.keys(t).some(r=>!i3.test(r)&&(n+=1,!Object.hasOwn(e,r)||!(0,r3.default)(e[r],t[r])))||Object.keys(e).length!==n},Fge=(e,t)=>{let n=Object.keys(t);return n.length!==Object.keys(e).length||n.some(n=>{let r=e[n];return!r||Pge(r,t[n])})},c3=cn([a3],([e])=>{if(!e)return!1;let{originalLocales:t,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:a,currentValues:o}=e;return!(0,r3.default)(t,n)||!(0,r3.default)(r,i)||Fge(a,o)}),a3.subscribe(e=>{NK.devModeEnabled&&console.info(`entryDraft`,e)})})))()}var u3,Ige;function Lge(){return(Lge=s((()=>{EU(),fI(),u3=({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=>{u3({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=>{u3({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})})});else if(i){let{field:r}=e;r?u3({field:r,keyPath:`${t}.*`,keyPathList:n}):n.push(`${t}.*`)}}else r&&dI.includes(r)&&dU(e)&&n.push(`${t}.*`)},Ige=e=>{let t=[];return e.forEach(e=>{u3({field:e,keyPath:e.name,keyPathList:t})}),t}})))()}var Rge,d3,f3,zge,p3;function m3(){return(m3=s((()=>{v(),FD(),xW(),aM(),qK(),n3(),l3(),Lge(),EU(),XF(),jI(),FF(),Rge=new Map,d3=e=>e==null||e===``||Array.isArray(e)&&!e.length||g(e)&&!Object.keys(e).length,f3=({key:e,field:t,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:a,omitEmptyOptionalFields:o})=>{if(i3.test(e)){delete r[e];return}let s=r[e];if(a&&t?.widget===`datetime`&&!YF(t).format){let e=new bW(s);s=e.isValid()?e:void 0}if(o&&t&&!gU({fieldConfig:t,locale:n})&&d3(s)){let t=Object.keys(r).filter(t=>t.startsWith(`${e}.`));t.some(e=>!i3.test(e)&&!d3(r[e]))?i[e]=s:t.forEach(e=>{delete r[e]})}else i[e]=s;delete r[e]},zge=({collectionName:e,fileName:t,fields:n,locale:r,valueMap:i,canonicalSlugKey:a,orderKey:o,isIndexFile:s=!1,isTomlOutput:c=!1})=>{let l=_(i),u={},{omit_empty_optional_fields:d=!1}=A(VK)?.output??{},f={collectionName:e,fileName:t,valueMap:i,isIndexFile:s},p={locale:r,unsortedMap:l,sortedMap:u,isTomlOutput:c,omitEmptyOptionalFields:d};return a&&a in l&&f3({...p,key:a}),o&&o in l&&f3({...p,key:o}),Ige(n).forEach(e=>{let t=mU({...f,keyPath:e});if(e in l)f3({...p,key:e,field:t});else if(t?.widget===`keyvalue`)u[e]={},Object.entries(l).filter(([t])=>t.startsWith(`${e}.`)).forEach(([e])=>{f3({...p,key:e,field:t})});else{let n=PF(Rge,e,()=>RegExp(`^${kD(e.replaceAll(`*`,`\\d+`)).replaceAll(`\\\\d\\+`,`\\d+`)}$`));Object.keys(l).filter(e=>n.test(e)).sort(([e,t])=>PD(e,t)).forEach(e=>{let n=t??mU({...f,keyPath:e});f3({...p,key:e,field:n})})}}),Object.keys(l).sort(([e,t])=>PD(e,t)).forEach(e=>{f3({...p,key:e})}),_M(u)},p3=({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=Zde.includes(c.format),d=zge({collectionName:i,fileName:a?.name,fields:o,locale:t,valueMap:n,canonicalSlugKey:l,orderKey:$4(r),isIndexFile:s,isTomlOutput:u});return!u&&uU(o,`list`)?d[o[0].name]??[]:uU(o,`keyvalue`)?d[o[0].name]??{}:d}})))()}var Bge,h3,Vge,Hge,g3;function _3(){return(_3=s((()=>{hM(),v(),sM(),aM(),z4(),kM(),WZ(),qK(),bge(),V4(),m3(),EU(),Q4(),Bge=async({draft:e,slugs:{defaultLocaleSlug:t,canonicalSlug:n,localizedSlugs:r}})=>{let i=A(SM),{collection:a,collectionName:o,collectionFile:s,fileName:c,isIndexFile:l,currentLocales:u,currentValues:d,files:f}=e,{_i18n:{canonicalSlug:{key:p}}}=s??a,m=[],h=[],{encode_file_path:g=!1}=A(VK)?.output??{},v={collectionName:o,fileName:c,keyPath:``,valueMap:{},isIndexFile:l},y={draft:e,defaultLocaleSlug:t,changes:m,savingAssets:h};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(d).map(async([a,o])=>{let s=r?.[a]??t,c=B4({draft:e,locale:a,slug:s});return u[a]?(n!==void 0&&(o[p]=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(dM(`g`))];if(!n.length)return;let r=mU({...v,valueMap:o,keyPath:e}),a={...y,keyPath:e,content:o,encodingEnabled:r?.widget===`richtext`||r?.widget===`markdown`||g};await Promise.all(n.map(async([e])=>{let{file:t,folder:n=i,replace:r}=f[e]??{};t&&await yge({...a,file:t,folder:n,replace:r,blobURL:e})}))})),[a,{slug:s,path:c,content:_(o)}]):[a,{path:c}]}))),changes:m,savingAssets:h}},h3=async({previousPath:e,cacheDB:t})=>{if(e)return(await t?.get(e))?.sha},Vge=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 h3({cacheDB:n,previousPath:g}),data:await Z4({content:(()=>{if(!l)return p3({draft:e,locale:`_default`,valueMap:m});let n=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([t,n])=>[t,p3({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})}},Hge=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 h3({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 Z4({content:p3({draft:e,locale:r,valueMap:m}),_file:d})}}if(!a&&o[r])return{action:`delete`,slug:f,path:p,previousSha:g}},g3=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 Bge({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 R4({type:`preSave`,draft:e,savingEntry:h});let g=A(HZ)?.repository?.databaseName,_={draft:e,savingEntry:h,cacheDB:g?new oM(g,`file-cache`):void 0};return!s||u||d?p.push(await Vge({..._})):await Promise.all(c.map(async e=>{let t=await Hge({..._,locale:e});t&&p.push(t)})),{savingEntry:h,savingAssets:m,changes:p}}})))()}var Uge,v3,Wge,Gge,Kge,qge;function Jge(){return(Jge=s((()=>{hM(),aM(),Tq(),s1(),kM(),EV(),l1(),a1(),qV(),DI(),cI(),_3(),G4(),IV(),Uge=({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:{}}},v3=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 g3({draft:s,slugs:W4({draft:s})});n.push(c),r.push(...l)},Wge=async({entry:e,savingEntries:t,changes:n})=>{let r=Uge({entry:e});await Promise.all(MV(e).map(async i=>{let a=i.name,o=EI(i,e),s=o?TI(i):void 0,c=aI(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=>v3({...l,draftProps:{...u,collectionFile:e,fileName:e.name}}))):await v3({...l,draftProps:u})}))},Gge=async({_globalAssetFolder:e,newPath:t,asset:n,savingEntries:r,changes:i})=>{let a=CV(n)??n.blobURL,o=a?await GV(a):[];if(!a||!o.length)return;let{publicPath:s}=DM(n.path).find(({collectionName:e})=>e!==void 0)??e,c=await GV(a,{entries:structuredClone(o),newURL:t.replace(n.folder.internalPath??``,s??``)});c.length&&await Promise.all(c.map(async e=>Wge({entry:e,savingEntries:r,changes:i})))},Kge=({action:e,movedAssets:t})=>{let n=A(uq)?.path,r=t.find(e=>e.asset.path===n),i=A(dq)?.path,a=t.find(e=>e.asset.path===i);r&&uq.set(sq(r.path)),a&&dq.set(sq(a.path)),o1.set({...r1,moved:e===`move`,renamed:e===`rename`,count:t.length})},qge=async(e,t)=>{let n=A(SM),r=[],i=[],a=[];await Promise.all(t.map(async({asset:e,path:t})=>{let o=t,s=pM(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 hV(e)],s)}),await Gge({_globalAssetFolder:n,newPath:o,asset:e,savingEntries:i,changes:r})})),await c1({changes:r,savingEntries:i,savingAssets:a,options:{commitType:`uploadMedia`}}),Kge({action:e,movedAssets:t})}})))()}function Yge(e,t){let n=Ma();O(t,!0),G(e,Qge);let r=()=>j(mq,`$renamingAsset`,a),i=()=>j(lQ,`$showAssetOverlay`,a),[a,o]=fn(),s=N(!1),c=N(!1),l=N(void 0),u=!1,d=N(Dr({basename:``})),f=N(``),p=N(Dr([])),m=N(Dr([])),h=M(r),g=M(()=>z(d).dirname),_=M(()=>z(d).basename),v=M(()=>z(d).extension),y=M(()=>z(f).trim()),b=M(()=>pM(z(y)).extension),x=M(()=>!Jz(z(v),z(b))),S=M(()=>{if(!z(y))return`empty`;if(z(y).includes(`/`))return`character`;if(z(p).includes(z(y)))return`duplicate`}),C=M(()=>!!z(S)),w=async()=>{z(h)&&(P(d,pM(z(h).path),!0),P(f,z(_),!0),u=!1,P(p,Cq(z(g)).map(e=>e.name).filter(e=>e!==z(h).name),!0),P(m,await e1(z(h)),!0),P(s,!0))},T=()=>{if(u||!z(l))return;u=!0;let{filename:e}=pM(z(l).value);z(l).setSelectionRange(0,e.length)},ee=async()=>{if(!z(h))return;let e=z(h).path,t=`${z(g)}/${z(y)}`;await qge(`rename`,[{asset:z(h),path:t}]),MQ().path===`/assets/${e}`&&await IQ(`/assets/${t}`,{replaceState:!0,notifyChange:!1})};Zr(()=>{z(h)&&w()}),Zr(()=>{i()||(P(s,!1),P(c,!1),dn(mq,void 0))});var te=Zge(),ne=I(te);{let e=M(()=>X(`rename_x`,{values:{name:z(h)?.name??``}})),t=M(()=>X(`rename`)),r=M(()=>z(y)===z(_)||z(C));dp(ne,{get title(){return z(e)},get okLabel(){return z(t)},get okDisabled(){return z(r)},onOk:()=>{z(x)?P(c,!0):ee()},onClose:()=>{z(c)||dn(mq,void 0)},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{var r=Xge(),i=I(r),a=F(i,!0);D(i);var o=L(i,2);Ep(F(o),{dir:`auto`,flex:!0,get invalid(){return z(C)},get"aria-errormessage"(){return`${n}-error`},onselect:()=>{T()},get value(){return z(f)},set value(e){P(f,e,!0)},get element(){return z(l)},set element(e){P(l,e,!0)}}),D(o);var s=L(o,2),c=F(s),u=e=>{var t=ja();R(e=>U(t,e),[()=>X(`enter_new_name_for_asset_error.${z(S)}`)]),H(e,t)};W(c,e=>{z(C)&&e(u)}),D(s),R(e=>{U(a,e),K(s,`id`,`${n}-error`)},[()=>X(`enter_new_name_for_asset`,{values:{count:z(m).length}})]),H(e,r)},$$slots:{default:!0}})}var re=L(ne,2);{let e=M(()=>X(`rename`));Qpe(re,{get oldExtension(){return z(v)},get newExtension(){return z(b)},get okLabel(){return z(e)},onOk:()=>{ee(),dn(mq,void 0)},onCancel:()=>{P(s,!0)},get open(){return z(c)},set open(e){P(c,e,!0)}})}H(e,te),k(),o()}var Xge,Zge,Qge;function $ge(){return($ge=s((()=>{Y(),J(),Z(),yp(),jp(),hM(),k1(),zQ(),Tq(),Jge(),t1(),_Q(),eB(),Xge=B(`<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!></div> <div role="none" class="error svelte-22gadf"><!></div>`,1),Zge=B(`<!> <!>`,1),Qge={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 e_e(e,t){O(t,!0),G(e,r_e);let n=()=>j(hQ,`$listedAssets`,a),r=()=>j(uq,`$focusedAsset`,a),i=()=>j(lq,`$selectedAssetPathSet`,a),[a,o]=fn(),s=M(()=>t.asset.name),c=M(()=>t.asset.kind),l=e=>{cq.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));qp(e,{get"aria-rowindex"(){return z(a)},onChange:e=>{l(e.detail.selected)},onfocus:()=>{dn(uq,t.asset)},onclick:()=>{(eG.isSmallScreen||eG.isMediumScreen)&&r()&&wR(r())&&IQ(`/assets/${r().path}`,{transitionType:`forwards`})},ondblclick:()=>{r()&&wR(r())&&IQ(`/assets/${r().path}`,{transitionType:`forwards`})},children:(e,n)=>{var r=n_e(),a=I(r),o=e=>{Gp(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>i().has(t.asset.path));ap(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{l(e)}})}},$$slots:{default:!0}})};W(a,e=>{eG.isSmallScreen||eG.isMediumScreen||e(o)});var u=L(a,2);Gp(u,{class:`image`,children:(e,n)=>{{let n=M(()=>t.viewType===`list`?`icon`:`tile`),r=M(()=>z(c)===`image`);g1(e,{get kind(){return z(c)},get asset(){return t.asset},get variant(){return z(n)},get cover(){return eG.isSmallScreen},get checkerboard(){return z(r)}})}},$$slots:{default:!0}});var d=L(u,2),f=e=>{Gp(e,{class:`title`,children:(e,t)=>{var n=t_e();Qu(F(n),{lines:2,children:(e,t)=>{mt();var n=ja();R(()=>U(n,z(s))),H(e,n)},$$slots:{default:!0}}),D(n),H(e,n)},$$slots:{default:!0}})};W(d,e=>{(!eG.isSmallScreen||t.viewType===`list`)&&e(f)}),H(e,r)},$$slots:{default:!0}})}k(),o()}var t_e,n_e,r_e;function i_e(){return(i_e=s((()=>{Y(),J(),up(),Kp(),Jp(),td(),_1(),zQ(),Tq(),OR(),_Q(),nG(),t_e=B(`<div role="none" class="label svelte-17zk54k"><!></div>`),n_e=B(`<!> <!> <!>`,1),r_e={hash:`svelte-17zk54k`,code:`.label.svelte-17zk54k {word-break:break-all;}`}})))()}function y3(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=qs(t,a_e);g1(e,Js({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 a_e;function b3(){return(b3=s((()=>{Y(),J(),_1(),a_e=new Set([`$$slots`,`$$events`,`$$legacy`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`alt`])})))()}function x3(e,t){O(t,!0),G(e,l_e);let n=q(t,`files`,27,()=>Dr([])),r=q(t,`transformedFileMap`,3,void 0),i=q(t,`removable`,3,!0),a=q(t,`showThumbnail`,3,!0);var o=c_e();lo(o,23,n,(e,t)=>`${e.name}-${t}`,(e,t,o)=>{var s=V();Ya(I(s),nd,null,e=>{let s=M(()=>{let{name:e,type:n,size:r}=z(t);return{name:e,type:n,size:r}}),c=M(()=>r()?.get(z(t)));var l=s_e(),u=F(l),d=e=>{{let n=M(()=>URL.createObjectURL(z(t)));y3(e,{get src(){return z(n)},variant:`icon`,checkerboard:!0})}},f=M(()=>a()&&UB.includes(z(s).type)),p=e=>{var t=o_e();sc(F(t),{name:`draft`}),D(t),H(e,t)};W(u,e=>{z(f)?e(d):e(p,-1)});var m=L(u,2),h=F(m);Qu(F(h),{children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>z(s).name.normalize()]),H(e,n)},$$slots:{default:!0}}),D(h);var g=L(h,2),_=F(g);to(_,()=>Bu.current,e=>{var n=ja();R(e=>U(n,e),[()=>X(`file_meta`,{values:{type:X(`file_type_labels.${z(t).type.split(`/`)[1]}`,{default:pM(z(s).name).extension?.toUpperCase()}),size:Wz(z(s).size)}})]),H(e,n)});var v=L(_,2),y=e=>{var t=ja();R(e=>U(t,e),[()=>X(`file_meta_converted_from_x`,{values:{type:X(`file_type_labels.${z(c).type.split(`/`)[1]}`,{default:pM(z(c).name).extension?.toUpperCase()})}})]),H(e,t)};W(v,e=>{z(c)&&z(c).type!==z(t).type&&e(y)}),D(g),D(m);var b=L(m,2);{let e=M(()=>X(`remove`)),t=M(()=>!i()||n().length===1);Bd(b,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(e)},get hidden(){return z(t)},onclick:e=>{e.stopPropagation(),n().splice(z(o),1)},children:(e,t)=>{sc(e,{name:`close`})},$$slots:{default:!0}})}D(l),H(e,l)}),H(e,s)}),D(o),H(e,o),k()}var o_e,s_e,c_e,l_e;function S3(){return(S3=s((()=>{Y(),J(),Z(),Kd(),dc(),td(),hM(),rd(),b3(),eB(),GB(),o_e=B(`<span role="none" class="image svelte-lbhi1w"><!></span>`),s_e=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>`),c_e=B(`<div role="list" class="files svelte-lbhi1w"></div>`),l_e={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 C3(e,t){O(t,!0),G(e,h_e);let n=e=>{var t=V(),n=I(t),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`dropped_image_type_mismatch`,{values:{types:y([`GIF`,`JPEG`,`PNG`,`WebP`,`SVG`])}})]),H(e,t)},a=M(()=>r()===UB.join(`,`)),o=e=>{var t=ja();R(e=>U(t,e),[()=>X(`dropped_file_type_mismatch`,{values:{types:y(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(Dr([])),g=M(()=>o()||s()&&z(h).length),_=()=>{z(m)?.open()},v=()=>{z(h).length&&(P(h,[],!0),c()?.({files:z(h)}))},y=e=>LI(Bu.current,{type:`disjunction`}).format(e),b=e=>{P(h,a()?e:e.slice(0,1),!0),c()?.({files:z(h)})},x=e=>{c()?.({files:e.detail.files})};rc(()=>(z(u)?.addEventListener(`Select`,x),()=>{z(u)?.removeEventListener(`Select`,x)})),Zr(()=>{!z(g)&&z(f)&&P(p,!0)});var S={openFilePicker:_,reset:v},C=m_e(),w=I(C),T=F(w),ee=e=>{var t=f_e(),r=F(t),c=e=>{var t=d_e(),r=I(t),o=F(r),s=e=>{var t=ja();R(e=>U(t,e),[()=>X(`drop_files_or_click_to_browse`,{values:{count:a()?2:1}})]),H(e,t)},c=e=>{var t=ja();R(e=>U(t,e),[()=>X(`tap_to_browse`)]),H(e,t)};W(o,e=>{eG.hasMouse?e(s):e(c,-1)}),D(r);var l=L(r,2),u=F(l);{let e=e=>{sc(e,{name:`cloud_upload`})},t=M(()=>X(`choose_files`,{values:{count:a()?2:1}}));Bd(u,{variant:`primary`,get label(){return z(t)},get disabled(){return i()},onclick:()=>{_()},startIcon:e,$$slots:{startIcon:!0}})}D(l);var d=L(l,2),p=e=>{var t=u_e(),r=F(t);n(r),D(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=>{x3(e,{get files(){return z(h)},set files(e){P(h,e,!0)}})};W(l,e=>{s()&&z(h).length&&e(u)}),D(t),H(e,t)},te=e=>{var t=V();So(I(t),()=>l()??E),H(e,t)};W(T,e=>{z(g)?e(ee):e(te,-1)});var ne=L(T,2),re=e=>{var t=p_e(),n=F(t),r=F(n);sc(r,{name:`download`});var i=L(r,2),o=F(i,!0);D(i),D(n),D(t),R(e=>U(o,e),[()=>X(`drop_files_here`,{values:{count:a()?2:1}})]),H(e,t)};W(ne,e=>{z(d)&&e(re)}),D(w),Bs(w,e=>P(u,e),()=>z(u));var ie=L(w,2);Bs(Lp(ie,{get accept(){return r()},get multiple(){return a()},onSelect:({files:e})=>{b(e)}}),e=>P(m,e,!0),()=>z(m));var ae=L(ie,2),oe=e=>{{let t=M(()=>X(`unsupported_file_type`));bp(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(ae,e=>{z(g)||e(oe)}),_a(`dragover`,w,e=>{e.preventDefault(),!(i()||!e.dataTransfer)&&(e.dataTransfer.dropEffect=`copy`,P(d,!0),P(f,!1))}),_a(`dragleave`,w,e=>{e.preventDefault(),!i()&&P(d,!1)}),_a(`dragend`,w,e=>{e.preventDefault(),!i()&&P(d,!1)}),_a(`drop`,w,async e=>{if(e.preventDefault(),i()||!e.dataTransfer)return;P(d,!1);let t=await Bce(e.dataTransfer,{accept:r()});t.length?b(t):P(f,!0)}),H(e,C),k(S)}var u_e,d_e,f_e,p_e,m_e,h_e;function w3(){return(w3=s((()=>{Y(),J(),Z(),Sp(),Kd(),zp(),dc(),hM(),oc(),S3(),zI(),nG(),GB(),u_e=B(`<div role="alert"><!></div>`),d_e=B(`<div role="none"><!></div> <div role="none"><!></div> <!>`,1),f_e=B(`<div role="none" class="content svelte-1hhq62q"><!> <!></div>`),p_e=B(`<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>`),m_e=B(`<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>`,1),h_e={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 g_e(e,t){O(t,!0);let n=()=>j(wM,`$targetAssetFolder`,r),[r,i]=fn(),a=q(t,`label`,3,void 0),o=M(()=>!OM(n()));{let t=e=>{sc(e,{name:`cloud_upload`})},n=M(()=>!a()),r=M(()=>X(`upload_assets`));Bd(e,{variant:`primary`,get iconic(){return z(n)},get disabled(){return z(o)},get label(){return a()},get"aria-label"(){return z(r)},onclick:()=>{dn(uQ,!0)},startIcon:t,$$slots:{startIcon:!0}})}k(),i()}function T3(){return(T3=s((()=>{Y(),J(),Z(),Kd(),dc(),kM(),_Q()})))()}function E3(e,t){G(e,y_e);let n=q(t,`children`,3,void 0),r=qs(t,__e);var i=v_e();gs(i,()=>({role:`group`,class:`list-container`,...r}),void 0,void 0,void 0,`svelte-1sdsl2g`),So(F(i),()=>n()??E),D(i),H(e,i)}var __e,v_e,y_e;function D3(){return(D3=s((()=>{Y(),J(),__e=new Set([`$$slots`,`$$events`,`$$legacy`,`children`]),v_e=B(`<div><!></div>`),y_e={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 O3(e,t){O(t,!0),G(e,S_e);let n=q(t,`children`,3,void 0),r=qs(t,b_e);var i=x_e();Ya(F(i),nd,null,e=>{fee(e,Js({multiple:!0,clickToSelect:!1},()=>r,{children:(e,t)=>{var r=V();So(I(r),()=>n()??E),H(e,r)},$$slots:{default:!0}}))}),D(i),R(()=>is(i,1,`${t.viewType??``}-view`,`svelte-1sfbolp`)),H(e,i),k()}var b_e,x_e,S_e;function k3(){return(k3=s((()=>{Y(),J(),Xp(),rd(),b_e=new Set([`$$slots`,`$$events`,`$$legacy`,`viewType`,`children`]),x_e=B(`<div role="none"><!></div>`),S_e={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:calc(var(--sui-line-height-compact) * 2);line-height:var(--sui-line-height-compact);}}&[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 C_e(e,t){O(t,!0);let n=()=>j(mQ,`$currentView`,o),r=()=>j(wM,`$targetAssetFolder`,o),i=()=>j(gQ,`$assetGroups`,o),a=()=>j(hQ,`$listedAssets`,o),[o,s]=fn(),c=M(()=>n().type),l=M(r),u=M(()=>!OM(z(l)));{let t=M(()=>X(`asset_list`));E3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{C3(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{dn(fq,{folder:z(l),files:e})},children:(e,t)=>{var n=V(),r=I(n),o=e=>{{let t=M(()=>X(`assets`));O3(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();lo(I(n),1,()=>Object.entries(i()),([e,t])=>e,(e,t)=>{var n=M(()=>w(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=V();Ya(I(a),nd,null,e=>{{let t=M(()=>r()===`*`?void 0:r());Bp(e,{get label(){return z(t)},children:(e,t)=>{Rm(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=E)=>{var n=V();to(I(n),()=>t().sha,e=>{var n=V();Ya(I(n),nd,null,e=>{e_e(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=>{Ak(e,{children:(e,t)=>{var n=w_e(),r=I(n),i=F(r,!0);D(r);var a=L(r,2),o=e=>{{let t=M(()=>X(`upload_assets`));g_e(e,{get label(){return z(t)}})}};W(a,e=>{z(u)||e(o)}),R(e=>U(i,e),[()=>X(`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}})}k(),s()}var w_e;function T_e(){return(T_e=s((()=>{Y(),J(),Z(),Nk(),Wp(),zm(),rd(),i_e(),w3(),T3(),D3(),k3(),Tq(),kM(),_Q(),w_e=B(`<span role="none"> </span> <!>`,1)})))()}var A3,j3;function M3(){return(M3=s((()=>{aM(),A3=sn(null),j3=sn(``)})))()}function N3(e,t){O(t,!0),G(e,O_e);let n=()=>j(j3,`$searchTerms`,i),r=()=>j(A3,`$searchMode`,i),[i,a]=fn(),o=q(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=MQ(),i=r.startsWith(`/search/`);dn(j3,e),e?IQ(`/search/${e}`,{replaceState:i}):t&&i&&LQ(`/collections`)},c=N(void 0);Zr(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=D_e(),u=F(l),d=e=>{var t=E_e(),n=I(t);{let e=M(()=>X(`search_placeholder_${r()}`));io(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),Bs(Bm(n.lastChild,{debounce:!0,keyShortcuts:`Accel+F`,get placeholder(){return z(e)},get onclick(){return o()},oninput:({target:e})=>{s(e.value.trim())},onClear:()=>{s(``)}}),e=>P(c,e,!0),()=>z(c)),D(n)}H(e,t)};W(u,e=>{r()&&e(d)}),D(l),H(e,l),k(),a()}var E_e,D_e,O_e;function P3(){return(P3=s((()=>{Y(),J(),Z(),Vm(),zQ(),M3(),E_e=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),D_e=B(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),O_e={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}})))()}function k_e(e,t){O(t,!0);let n=()=>j(xM,`$allAssetFolders`,a),r=()=>j(CM,`$selectedAssetFolder`,a),i=()=>j(iq,`$allAssets`,a),[a,o]=fn(),s=q(t,`isSearchPage`,3,!1),c=M(()=>Intl.NumberFormat(Bu.current)),l=M(()=>[...n().filter(({typedKeyPath:e,isAssetCollection:t})=>!t&&e===void 0).sort((e,t)=>sI(e.collectionName,e.fileName)-sI(t.collectionName,t.fileName)).sort((e,t)=>oL(e.collectionName)-oL(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=P_e(),f=F(d),p=e=>{var t=j_e(),n=I(t),r=F(n),i=F(r,!0);D(r),D(n),N3(L(n,2),{onclick:e=>{e.preventDefault(),IQ(`/search`)}}),R(e=>U(i,e),[()=>X(`assets`)]),H(e,t)};W(f,e=>{eG.isSmallScreen&&e(p)});var m=L(f,2);{let e=M(()=>X(`asset_folder_list`));Zp(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>X(`asset_location.repository`));nm(e,{get label(){return z(t)},children:(e,t)=>{var n=V();lo(I(n),19,()=>z(l),e=>[e.collectionName,e.fileName,e.internalPath].join(`:`),(e,t,n)=>{var a=N_e(),o=I(a);Ya(o,nd,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?iL(z(n).collectionName):void 0),o=M(()=>z(a)&&z(n).fileName?rI(z(a),z(n).fileName):void 0),l=M(()=>z(n).entryRelative||z(n).hasTemplateTags),u=M(()=>(0,A_e.default)(r(),z(t)));{let r=e=>{{let n=M(()=>z(t).icon||z(o)?.icon||z(a)?.icon||`folder`);sc(e,{get name(){return z(n)}})}},d=e=>{var r=V();to(I(r),i,e=>{var r=V();Ya(I(r),nd,null,e=>{let r=M(()=>(z(n).internalPath===void 0?i():Sq(z(t))).length);var a=M_e(),o=F(a,!0);D(a),R((e,t)=>{K(a,`aria-label`,`(${e??``})`),U(o,t)},[()=>X(`x_assets`,{values:{count:z(r)}}),()=>z(c).format(z(r))]),H(e,a)}),H(e,r)}),H(e,r)},f=M(()=>eG.isSmallScreen||s()?!1:z(u)),p=M(()=>Bu.current?fQ(z(t)):``);sm(e,{get selected(){return z(f)},get label(){return z(p)},onSelect:()=>{IQ(`/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=>{Wf(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}})}D(d),H(e,d),k(),o()}var A_e,j_e,M_e,N_e,P_e;function F_e(){return(F_e=s((()=>{Y(),J(),Z(),Jf(),dc(),tm(),fm(),om(),rd(),A_e=u(kK()),P3(),zQ(),Tq(),kM(),_Q(),sL(),cI(),nG(),j_e=B(`<header><h2> </h2></header> <!>`,1),M_e=B(`<span class="count"> </span>`),N_e=B(`<!> <!>`,1),P_e=B(`<div role="none" class="primary-sidebar"><!> <!></div>`)})))()}function I_e(e,t){O(t,!0);{let n=M(()=>!t.asset||!wR(t.asset)),r=M(()=>X(`preview`)),i=M(()=>X(`show_preview`));Bd(e,{variant:`ghost`,get disabled(){return z(n)},get label(){return z(r)},get"aria-label"(){return z(i)},onclick:()=>{IQ(`/assets/${t.asset?.path}`,{transitionType:`forwards`})}})}k()}function L_e(){return(L_e=s((()=>{Y(),J(),Z(),Kd(),zQ(),OR()})))()}function R_e(e,t){O(t,!0);let n=()=>j(cq,`$selectedAssets`,s),r=()=>j(uq,`$focusedAsset`,s),i=()=>j(wM,`$targetAssetFolder`,s),a=()=>j(CM,`$selectedAssetFolder`,s),o=()=>j(hQ,`$listedAssets`,s),[s,c]=fn(),l=M(()=>n().length?[...n()]:r()?[r()]:[]),u=M(()=>!OM(i()));{let t=M(()=>X(`folder`));EO(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=V_e(),i=I(n),s=e=>{{let t=M(()=>X(`back_to_asset_folder_list`));p1(e,{get"aria-label"(){return z(t)},onclick:()=>{LQ(`/assets`)}})}};W(i,e=>{eG.isSmallScreen&&e(s)});var c=L(i,2),d=F(c);to(d,()=>Bu.current,e=>{var t=ja();R(e=>U(t,e),[()=>a()?fQ(a()):``]),H(e,t)});var f=L(d,2),p=e=>{var t=z_e(),n=F(t);D(t),R(()=>U(n,`/${a().internalPath??``}`)),H(e,t)};W(f,e=>{!eG.isSmallScreen&&a()?.internalPath!==void 0&&e(p)}),D(c);var m=L(c,2),h=e=>{var t=B_e(),n=I(t);I_e(n,{get asset(){return r()}});var i=L(n,2);{let e=M(()=>r()?[r()]:[]);qfe(i,{get assets(){return z(e)}})}var a=L(i,2);ipe(a,{get assets(){return z(l)}});var s=L(a,2);{let e=M(()=>X(`delete_selected_assets`,{values:{count:z(l).length}})),t=M(()=>X(z(l).length>1&&z(l).length===o().length?`confirm_deleting_all_assets`:`confirm_deleting_selected_assets`,{values:{count:z(l).length}}));npe(s,{get assets(){return z(l)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)}})}ope(L(s,2),{get asset(){return r()}}),H(e,t)};W(m,e=>{eG.isSmallScreen||eG.isMediumScreen||e(h)}),cf(L(m,2),{children:(e,t)=>{var n=V(),r=I(n),i=e=>{{let t=M(()=>eG.isSmallScreen?void 0:X(`upload`));g_e(e,{get label(){return z(t)}})}};W(r,e=>{(!eG.isSmallScreen||o().length&&!z(u))&&e(i)}),H(e,n)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})}k(),c()}var z_e,B_e,V_e;function H_e(){return(H_e=s((()=>{Y(),J(),Z(),df(),AO(),n1(),u1(),d1(),f1(),L_e(),T3(),m1(),zQ(),Tq(),kM(),_Q(),nG(),z_e=B(`<span role="none"> </span>`),B_e=B(`<!> <!> <!> <!> <!>`,1),V_e=B(`<!> <h2 role="none"><!> <!></h2> <!> <!>`,1)})))()}function U_e(e,t){O(t,!0);let n=()=>j(mQ,`$currentView`,i),r=()=>j(uq,`$focusedAsset`,i),[i,a]=fn();var o=V(),s=I(o),c=e=>{{let t=M(()=>X(`asset_info`));Pk(e,{id:`asset-info`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=V(),i=I(n),a=e=>{Ope(e,{get asset(){return r()},showPreview:!0})},o=e=>{Ak(e,{children:(e,t)=>{var n=W_e(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`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=>{eG.isLargeScreen&&n().showInfo&&e(c)}),H(e,o),k(),a()}var W_e;function G_e(){return(G_e=s((()=>{Y(),J(),Z(),Nk(),Rk(),S1(),Tq(),_Q(),nG(),W_e=B(`<span role="none"> </span>`)})))()}function K_e(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=fn(),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(()=>X(`filtering_options`));pm(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();lo(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);Tm(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=q_e(),i=I(r);{let e=M(()=>c()||X(`sort_keys.none`)),r=M(()=>!n().filter);Om(i,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:void 0}))}})}lo(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));Om(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()||X(`filter`));Ff(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var q_e;function F3(){return(F3=s((()=>{Y(),J(),Z(),_m(),Rf(),Dm(),Am(),q_e=B(`<!> <!>`,1)})))()}function J_e(e,t){O(t,!0),G(e,Z_e);let n=()=>j(t.selectedItems,`$selectedItems`,r),[r,i]=fn(),a=M(()=>t.allItems.length),o=M(()=>n().length),s=M(()=>!!z(o)),c=M(()=>z(s)&&z(o)===z(a));var l=X_e(),u=F(l);{let e=M(()=>!z(a)),n=M(()=>X(`select_all`)),r=M(()=>z(s)&&!z(c)?`mixed`:z(s));ap(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=Y_e(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`x_of_x_selected`,{values:{total:z(a),selected:z(o)}})]),H(e,t)};W(d,e=>{z(s)&&e(f)}),D(l),H(e,l),k(),i()}var Y_e,X_e,Z_e;function I3(){return(I3=s((()=>{Y(),J(),Z(),up(),Y_e=B(`<span role="none" class="svelte-1sd2xgz"> </span>`),X_e=B(`<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>`),Z_e={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);}`}})))()}var L3,Q_e,$_e,eve;function R3(){return(R3=s((()=>{aM(),XZ(),sL(),$3(),uK(),EU(),zV(),L3=e=>sK(e,`filters`),Q_e=(e,t,n)=>{let{name:r,view_filters:i=[],_i18n:{defaultLocale:a}}=t,{options:o}=L3(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:RV(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=xU({...o,resolveRef:!1}),c=xU({...o});return s===void 0||c===void 0?!1:qZ(s,n,i)||qZ(c,n,i)}))},$_e=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=L3(e.view_filters);t(n),U3.update(e=>({...e,filters:e.filters??(r?[r]:void 0)}))},eve=cn([XI],([e],t)=>{$_e(e,t)})})))()}var z3,tve,nve,rve,ive;function B3(){return(B3=s((()=>{Z(),aM(),XZ(),sL(),n3(),$3(),uK(),EU(),z3=e=>sK(e,`groups`),tve=e=>{if(!e||!(`folder`in e))return;let t=Cge(e);if(!t)return;let n=z3(e.view_groups).options.find(e=>e.name===t);return n?{field:n.field,pattern:n.pattern}:void 0},nve=(e,t,n)=>{let{field:r,pattern:i}=n??{field:``,pattern:void 0};if(!r)return e.length?[{name:`*`,entries:e}]:[];let{name:a,_i18n:{defaultLocale:o}}=t,s=A(U3).sort,c=X(`other`),l=KZ(e,i,e=>xU({entry:e,locale:o,collectionName:a,key:r}),c).map(([e,t])=>({name:e,entries:t}));return s?.key===r&&s.order===`descending`&&l.reverse(),l},rve=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=z3(e.view_groups);t(n),U3.update(e=>({...e,group:e.group===void 0?r:e.group}))},ive=cn([XI],([e],t)=>{rve(e,t)})})))()}var ave,V3,ove;function H3(){return(H3=s((()=>{ave=u(kK(),1),aM(),XZ(),sL(),$3(),V3=sn(),ove=async({repository:e})=>{await YZ(e,`contents-view`,V3),U3.subscribe(e=>{let{name:t}=A(XI)??{},n=A(V3)?.[t??``]??{};t&&!(0,ave.default)(e,n)&&V3.update(n=>({...n,[t]:e}))})}})))()}var sve;function cve(){return(cve=s((()=>{sve=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}})))()}var lve,uve,dve;function fve(){return(fve=s((()=>{XZ(),DI(),n3(),r6(),EU(),RU(),KL(),cve(),lve=[`title`,`summary`,`description`],uve=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>LU(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=xU({entry:t,locale:r,collectionName:i,key:e});return n?Number(VL(n,a)??0):0}:t===String?t=>{let n=xU({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?sve(a):a}:t=>{let n=xU({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},dve=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=$4(t),c=n===`_manual`?s??n:n,l=mU({collectionName:a,keyPath:c}),u=n===`_manual`||c===s?Number:yve({key:n,fieldConfig:l}),d=l?.widget===`datetime`?l:void 0,f=l?.widget===`richtext`||l?.widget===`markdown`||lve.includes(n),p=uve({key:c,type:u,collection:t,locale:o,collectionName:a,dateFieldConfig:d,isMarkdownField:f}),m=Object.fromEntries(i.map(e=>[e.slug,p(e)]));JZ(i,e=>m[e.slug],!d&&u===String,r);let h=TI(t)?.name;if(h){let e=i.findIndex(e=>e.slug===h);e>-1&&i.unshift(i.splice(e,1)[0])}return i}})))()}var U3,W3,G3,K3,q3,J3,pve,Y3,X3,Z3,Q3;function $3(){return($3=s((()=>{aM(),X$(),WZ(),gL(),sL(),qV(),cI(),R3(),B3(),H3(),fve(),FK(),U3=sn({type:`list`}),W3=sn(!1),G3=sn([]),K3=sn(!1),J3=cn([dL,XI],([e,t],n)=>{n(e&&t?UV(t.name):[])}),pve=5,Y3=cn([J3,XI],([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<=pve,creationDisabled:!n||o<=0}}return{isEntryCollection:!1,canCreate:!1,canDelete:!1,canReorder:!1,quota:1/0,remaining:1/0,nearingQuota:!1,creationDisabled:!1}}),X3=void 0,Z3=void 0,Q3=cn([J3,U3,G$],([e,t],n)=>{if(e===X3&&t===Z3)return;X3=e,Z3=t;let r=A(XI),i=[...e];if(!i.length||aI(r,i[0]).length){n([]);return}t.sort&&(i=dve(i,r,t.sort)),t.filters&&(i=Q_e(i,r,t.filters)),n(nve(i,r,t.group))}),W3.subscribe(e=>{if(!e){G3.set([]),K3.set(!1),q3&&=(U3.set(q3),void 0);return}let t=A(U3),n=tve(A(XI));q3=t;let r={};t.sort?.key!==`_manual`&&(r.sort={key:`_manual`,order:`ascending`}),t.filters?.length&&(r.filters=[]),n?(t.group?.field!==n.field||t.group?.pattern!==n.pattern)&&(r.group=n):t.group&&(r.group=null),Object.keys(r).length&&U3.set({...t,...r})}),HZ.subscribe(e=>{e&&!A(V3)&&ove(e)}),J3.subscribe(e=>{VV.set([]),NK.devModeEnabled&&console.info(`listedEntries`,e)}),XI.subscribe(e=>{q3=void 0,W3.set(!1),e&&NK.devModeEnabled&&console.info(`selectedCollection`,e)})})))()}var mve,e6,hve,gve,t6,n6,_ve,vve,yve,bve,xve;function r6(){return(r6=s((()=>{Z(),YO(),mve=u(kK(),1),aM(),X$(),gL(),sL(),n3(),$3(),H3(),uK(),EU(),ZH(),e6=[`title`,`name`,`date`,`author`,`description`],hve=[`ascending`,`descending`],gve=[`date`,`commit_date`],t6={slug:String,commit_author:String,commit_date:Date,_summary:String,_manual:String},n6=Object.keys(t6),_ve=e=>e?{keys:[e,...e6.filter(t=>t!==e)],defaultKey:e}:{keys:[...e6]},vve=({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?lK(a):_ve(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=JO(s).filter(e=>!!e&&(n6.includes(e)||!!mU({collectionName:r,keyPath:e})));let f=$4(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}}},yve=({key:e,fieldConfig:t})=>{if(e in t6)return t6[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},bve=({collection:e,key:t})=>[...n6,`name`].includes(t)?X(`sort_keys.${t}`):t.includes(`.`)?t.split(`.`).map((t,n,r)=>{if(YH(t))return;let i=r.slice(0,n+1).join(`.`);return mU({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` – `):e.fields?.find(({name:e})=>e===t)?.label||t,xve=cn([XI,dL,G$],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=A(V3)?.[e.name]??{type:`list`},{keys:i,default:a}=vve({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:bve({collection:e,key:t})}))),(0,mve.default)(r,A(U3))||U3.set(r)})})))()}function Sve(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=fn(),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(()=>X(`sorting_options`));pm(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=V();lo(I(i),17,s,({key:e,label:t})=>e,(e,r)=>{let i=()=>z(r).key,a=()=>z(r).label;var o=Cve(),l=I(o);lo(l,16,()=>hve,e=>e,(e,r)=>{{let o=M(()=>X(gve.includes(i())||c()&&mU({collectionName:c(),keyPath:i()})?.widget===`datetime`?`${r}_date`:r,{values:{label:a()}})),s=M(()=>n().sort?.key===i()&&n().sort.order===r);Om(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=>{Wf(e,{})};W(u,e=>{i()===`_summary`&&s().length>1&&e(d)}),H(e,o)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`sort`));Ff(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var Cve;function i6(){return(i6=s((()=>{Y(),J(),Z(),Jf(),_m(),Rf(),Am(),r6(),EU(),Cve=B(`<!> <!>`,1)})))()}function a6(e,t){O(t,!0),G(e,Dve);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=fn(),a=q(t,`disabled`,3,!1),o=qs(t,wve),s=M(()=>n().type===`grid`);var c=Eve(),l=F(c),u=e=>{{let n=M(()=>X(`switch_view`));Df(e,Js({get disabled(){return a()},get"aria-label"(){return z(n)}},()=>o,{children:(e,n)=>{var r=Tve(),i=I(r);{let e=e=>{sc(e,{name:`format_list_bulleted`})},n=M(()=>!z(s)),r=M(()=>X(`list_view`));Mf(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=>{sc(e,{name:`grid_view`})},n=M(()=>X(`grid_view`));Mf(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`);sc(e,{get name(){return z(t)}})}},r=M(()=>X(z(s)?`switch_to_list_view`:`switch_to_grid_view`));Bd(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=>{eG.isLargeScreen?e(u):e(d,-1)}),D(c),H(e,c),k(),i()}var wve,Tve,Eve,Dve;function o6(){return(o6=s((()=>{Y(),J(),Z(),Kd(),dc(),Pf(),jf(),nG(),wve=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`currentView`]),Tve=B(`<!> <!>`,1),Eve=B(`<div role="none" class="wrapper svelte-8v3idr"><!></div>`),Dve={hash:`svelte-8v3idr`,code:`.wrapper.svelte-8v3idr {display:contents;.select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}}`}})))()}var Ove;function kve(){return(kve=s((()=>{Z(),aM(),X$(),Tq(),Ove=cn([iq,G$],([e],t)=>{let n=[`name`];e.every(e=>!!e.commitAuthor)&&n.push(`commit_author`),e.every(e=>!!e.commitDate)&&n.push(`commit_date`),t(n.map(e=>({key:e,label:X(`sort_keys.${e}`)})))})})))()}function Ave(e,t){O(t,!0);let n=()=>j(hQ,`$listedAssets`,o),r=()=>j(gQ,`$assetGroups`,o),i=()=>j(Ove,`$sortKeys`,o),a=()=>j(mQ,`$currentView`,o),[o,s]=fn(),c=M(()=>!!n().length),l=M(()=>n().length>1);{let t=M(()=>X(`asset_list`));EO(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=Mve(),o=I(n),s=e=>{{let t=M(()=>Object.values(r()).flat(1));J_e(e,{get allItems(){return z(t)},get selectedItems(){return cq}})}};W(o,e=>{eG.isSmallScreen||eG.isMediumScreen||e(s)});var u=L(o,2);Yf(u,{flex:!0});var d=L(u,2);{let e=M(()=>!z(l));Sve(d,{get disabled(){return z(e)},get currentView(){return mQ},get sortKeys(){return i()},"aria-controls":`asset-list`})}var f=L(d,2);{let e=M(()=>X(`type`)),t=M(()=>!z(l)),n=M(()=>X(`all`)),r=M(()=>bR.map(e=>({label:X(e),field:`fileType`,pattern:e})));K_e(f,{get label(){return z(e)},get disabled(){return z(t)},get currentView(){return mQ},get noneLabel(){return z(n)},get filters(){return z(r)},"aria-controls":`asset-list`})}var p=L(f,2);{let e=M(()=>!z(c));a6(p,{get disabled(){return z(e)},get currentView(){return mQ},"aria-controls":`asset-list`})}var m=L(p,2),h=e=>{var t=jve(),n=I(t);Wf(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{sc(e,{name:`info`})},t=M(()=>!z(c)),n=M(()=>!!a().showInfo),i=M(()=>!!a().showInfo),o=M(()=>X(a().showInfo?`hide_info`:`show_info`));Bd(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:()=>{mQ.update(e=>({...e,showInfo:!a().showInfo}))},startIcon:e,$$slots:{startIcon:!0}})}H(e,t)};W(m,e=>{eG.isSmallScreen||eG.isMediumScreen||e(h)}),H(e,n)},$$slots:{default:!0}})}k(),s()}var jve,Mve;function Nve(){return(Nve=s((()=>{Y(),J(),Z(),Kd(),Jf(),dc(),$f(),AO(),F3(),I3(),i6(),o6(),Tq(),OR(),_Q(),kve(),nG(),jve=B(`<!> <!>`,1),Mve=B(`<!> <!> <!> <!> <!> <!>`,1)})))()}function s6(e,t){G(e,Ive);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=qs(t,Pve);var s=Fve();gs(s,()=>({role:`group`,class:`wrapper`,...o}),void 0,void 0,void 0,`svelte-1x2ldab`);var c=F(s);So(c,()=>n()??E);var l=L(c,2),u=F(l),d=F(u);So(d,()=>r()??E),So(L(d,2),()=>i()??E),D(u),So(L(u,2),()=>a()??E),D(l),D(s),H(e,s)}var Pve,Fve,Ive;function c6(){return(c6=s((()=>{Y(),J(),Pve=new Set([`$$slots`,`$$events`,`$$legacy`,`primaryToolbar`,`secondaryToolbar`,`mainContent`,`secondarySidebar`]),Fve=B(`<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>`),Ive={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 l6(e,t){O(t,!0),G(e,Vve);let n=()=>j(kQ,`$hasOverlay`,r),[r,i]=fn(),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=qs(t,Lve),u=N(void 0),d=N(void 0),f=null,p=async()=>{if(!o())return;let{databaseName:e}=A(HZ)?.repository??{};f=e?new oM(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))})};$r(()=>{n(),window.requestAnimationFrame(()=>{n()||p()})});var h=Bve();gs(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=Rve(),n=I(t);So(n,()=>s()??E),So(L(n,2),()=>c()??E),H(e,t)},v=e=>{Nee(e,{onResize:({sizes:e})=>{m(e[0])},children:(e,t)=>{var n=zve(),r=I(n);Im(r,{get defaultSize(){return`${z(d)??``}px`},minSize:`160px`,maxSize:`480px`,children:(e,t)=>{var n=V();So(I(n),s),H(e,n)},$$slots:{default:!0}});var i=L(r,2);Oee(i,{}),Im(L(i,2),{children:(e,t)=>{var n=V();So(I(n),c),H(e,n)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})};W(g,e=>{eG.isSmallScreen||!s()||!c()?e(_):z(d)!==void 0&&e(v,1)}),D(h),Bs(h,e=>P(u,e),()=>z(u)),H(e,h),k(),i()}var Lve,Rve,zve,Bve,Vve;function u6(){return(u6=s((()=>{Y(),J(),Pm(),Lm(),Fm(),sM(),aM(),zQ(),WZ(),nG(),Lve=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`uiSettingsKey`,`primarySidebar`,`main`]),Rve=B(`<!> <!>`,1),zve=B(`<!> <!> <!>`,1),Bve=B(`<div><!></div>`),Vve={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 Hve(e,t){O(t,!0);let n=M(()=>t.asset.path),r=M(()=>t.asset.name),i=M(()=>t.asset.folder),a=M(()=>t.asset.kind);qp(e,{onclick:()=>{IQ(`/assets/${z(n)}`,{transitionType:`forwards`})},children:(e,n)=>{var o=Wve(),s=I(o);Gp(s,{class:`image`,children:(e,n)=>{g1(e,{get kind(){return z(a)},get asset(){return t.asset},variant:`icon`,cover:!0})},$$slots:{default:!0}});var c=L(s,2);Gp(c,{class:`collection`,children:(e,t)=>{var n=V();to(I(n),()=>Bu.current,e=>{var t=ja();R(e=>U(t,e),[()=>fQ(z(i))]),H(e,t)}),H(e,n)},$$slots:{default:!0}}),Gp(L(c,2),{class:`title`,children:(e,t)=>{var n=Uve();Qu(F(n),{lines:2,children:(e,t)=>{mt();var n=ja();R(()=>U(n,z(r))),H(e,n)},$$slots:{default:!0}}),D(n),H(e,n)},$$slots:{default:!0}}),H(e,o)},$$slots:{default:!0}}),k()}var Uve,Wve;function Gve(){return(Gve=s((()=>{Y(),J(),Z(),Kp(),Jp(),td(),_1(),zQ(),_Q(),Uve=B(`<div role="none" class="label"><!></div>`),Wve=B(`<!> <!> <!>`,1)})))()}var d6,Kve,f6;function p6(){return(p6=s((()=>{d6=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLocaleLowerCase():``),Kve=(e,t=void 0)=>{if(!t)return d6(e);let n=t.get(e);if(n!==void 0)return n;let r=d6(e);return t.set(e,r),r},f6=({value:e,terms:t,normalizedValueCache:n=void 0})=>Kve(e,n).includes(t)})))()}var qve,Jve;function Yve(){return(Yve=s((()=>{aM(),Tq(),M3(),p6(),qve=({assets:e,terms:t})=>{if(t=d6(t),!e.length||!t)return[];let n=new Map;return e.filter(e=>f6({value:e.name,terms:t,normalizedValueCache:n}))},Jve=cn([iq,j3],([e,t])=>qve({assets:e,terms:t}))})))()}function Xve(e,t){O(t,!0);let n=()=>j(j3,`$searchTerms`,i),r=()=>j(Jve,`$assetSearchResults`,i),[i,a]=fn();Zr(()=>{dn(jQ,X(`viewing_asset_search_results`,{values:{terms:n(),count:r().length}}))}),Pk(e,{"aria-labelledby":`search-results-assets`,children:(e,t)=>{var i=Qve(),a=F(i),o=e=>{{let t=M(()=>X(`assets`));O3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=V();to(I(i),n,e=>{Rm(e,{get items(){return r()},itemKey:`path`,renderItem:(e,t=E)=>{var n=V();Ya(I(n),nd,null,e=>{Hve(e,{get asset(){return t()}})}),H(e,n)},$$slots:{renderItem:!0}})}),H(e,i)},$$slots:{default:!0}})}},s=e=>{Ak(e,{children:(e,t)=>{var n=Zve(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})};W(a,e=>{r().length?e(o):n()&&e(s,1)}),D(i),H(e,i)},$$slots:{default:!0}}),k(),a()}var Zve,Qve;function $ve(){return($ve=s((()=>{Y(),J(),Z(),Nk(),Rk(),zm(),rd(),k3(),Gve(),zQ(),M3(),Yve(),Zve=B(`<span role="none"> </span>`),Qve=B(`<div role="none"><!></div>`)})))()}function eye(e,t){O(t,!0);let n=(e,t)=>{let n=()=>(t?.()).collection,c=()=>(t?.()).collectionFile,l=M(()=>{let{defaultLocale:e}=(c()??n())._i18n??qI;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=>{qp(e,{onclick:()=>{IQ(`/collections/${n().name}/entries/${c()?.name||z(s)}`,{state:{highlight:{locale:z(i),keyPath:z(a)}},transitionType:`forwards`})},children:(e,t)=>{var i=nye(),a=I(i);Gp(a,{class:`image`,children:(e,t)=>{var i=V(),a=I(i),o=e=>{var t=V();Ya(I(t),()=>P4(n(),z(r)),null,(e,t)=>{var n=V(),r=I(n),i=e=>{y3(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);Gp(o,{class:`collection`,children:(e,t)=>{var r=V();to(I(r),()=>Bu.current,e=>{var t=ja();R(e=>U(t,e),[()=>aL(n())]),H(e,t)}),H(e,r)},$$slots:{default:!0}}),Gp(L(o,2),{class:`title`,children:(e,t)=>{var i=tye();Qu(F(i),{lines:2,children:(e,t)=>{var i=V(),a=I(i),o=e=>{var t=ja();R(e=>U(t,e),[()=>iI(c())]),H(e,t)},s=e=>{var t=V();to(I(t),()=>Bu.current,e=>{var t=V();vo(I(t),()=>LU(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}}),D(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();lo(I(c),17,()=>MV(z(r)),e=>e.name,(e,t)=>{var i=V();Ya(I(i),nd,null,e=>{var i=V();lo(I(i),17,()=>aI(z(t),z(r)),e=>e.name,(e,r)=>{var i=V();Ya(I(i),nd,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),k()}var tye,nye;function rye(){return(rye=s((()=>{Y(),J(),Z(),Kp(),Jp(),td(),rd(),b3(),zQ(),sL(),cI(),IV(),I4(),RU(),YI(),tye=B(`<div role="none" class="label"><!></div>`),nye=B(`<!> <!> <!>`,1)})))()}var iye,aye,oye;function sye(){return(sye=s((()=>{aM(),X$(),gL(),cI(),IV(),RU(),M3(),p6(),iye=({entry:e,terms:t,normalizedValueCache:n=void 0})=>{let r=0,i,a,o=MV(e);if(o.length){o.forEach(i=>{f6({value:i.label||i.name,terms:t,normalizedValueCache:n})&&(r+=10),r+=aI(i,e).filter(e=>f6({value:e.label||e.name,terms:t,normalizedValueCache:n})).length});let[i]=o,a=LU(i,e,{useTemplate:!0,allowMarkdown:!0});f6({value:a,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&&f6({value:o,terms:t,normalizedValueCache:n})||typeof o==`number`&&f6({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}},aye=({entries:e,terms:t})=>{if(t=d6(t),!e.length||!t)return[];let n=new Map;return e.map(e=>iye({entry:e,terms:t,normalizedValueCache:n})).filter(({points:e})=>e>0).sort((e,t)=>t.points-e.points)},oye=cn([dL,j3,G$],([e,t])=>aye({entries:e,terms:t}))})))()}function cye(e,t){O(t,!0);let n=()=>j(j3,`$searchTerms`,i),r=()=>j(oye,`$entrySearchResults`,i),[i,a]=fn();Zr(()=>{dn(jQ,X(`viewing_entry_search_results`,{values:{terms:n(),count:r().length}}))}),Pk(e,{"aria-labelledby":`search-results-entries`,children:(e,t)=>{var i=uye(),a=F(i),o=e=>{{let t=M(()=>X(`entries`));O3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=V();to(I(i),n,e=>{Rm(e,{get items(){return r()},itemKey:`id`,renderItem:(e,t=E)=>{var n=V();Ya(I(n),nd,null,e=>{eye(e,{get result(){return t()}})}),H(e,n)},$$slots:{renderItem:!0}})}),H(e,i)},$$slots:{default:!0}})}},s=e=>{Ak(e,{children:(e,t)=>{var n=lye(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`no_entries_found`)]),H(e,n)},$$slots:{default:!0}})};W(a,e=>{r().length?e(o):n()&&e(s,1)}),D(i),H(e,i)},$$slots:{default:!0}}),k(),a()}var lye,uye;function dye(){return(dye=s((()=>{Y(),J(),Z(),Nk(),Rk(),zm(),rd(),k3(),rye(),zQ(),M3(),sye(),lye=B(`<span role="none"> </span>`),uye=B(`<div role="none"><!></div>`)})))()}function fye(e,t){O(t,!0),G(e,hye);let n=()=>j(A3,`$searchMode`,r),[r,i]=fn();var a=mye(),o=F(a),s=e=>{EO(e,{variant:`primary`,children:(e,t)=>{var n=pye(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`search_results`)]),H(e,n)},$$slots:{default:!0}})};W(o,e=>{eG.isSmallScreen||e(s)});var c=L(o,2),l=F(c),u=e=>{cye(e,{})};W(l,e=>{n()===`contents`&&e(u)});var d=L(l,2),f=e=>{Xve(e,{})};W(d,e=>{n()===`assets`&&e(f)}),D(c),D(a),H(e,a),k(),i()}var pye,mye,hye;function gye(){return(gye=s((()=>{Y(),J(),Z(),AO(),$ve(),dye(),M3(),nG(),pye=B(`<h2 role="none"> </h2>`),mye=B(`<div role="none" class="wrapper svelte-1p7vfqa"><!> <div role="none" class="results svelte-1p7vfqa"><!> <!></div></div>`),hye={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 m6(e,t){O(t,!0),G(e,vye);let n=()=>j(A3,`$searchMode`,r),[r,i]=fn();s6(e,{primaryToolbar:e=>{var t=V(),r=I(t),i=e=>{EO(e,{variant:`primary`,children:(e,t)=>{var r=_ye(),i=I(r);{let e=M(()=>X(n()===`assets`?`back_to_asset_folder_list`:`back_to_collection_list`));p1(i,{get"aria-label"(){return z(e)},onclick:()=>{dn(j3,``),IQ(n()===`assets`?`/assets`:`/collections`,{transitionType:`backwards`})}})}var a=L(i,2);N3(F(a),{}),D(a),H(e,r)},$$slots:{default:!0}})};W(r,e=>{eG.isSmallScreen&&e(i)}),H(e,t)},mainContent:e=>{fye(e,{})},$$slots:{primaryToolbar:!0,mainContent:!0}}),k(),i()}var _ye,vye;function h6(){return(h6=s((()=>{Y(),J(),Z(),AO(),c6(),m1(),P3(),gye(),zQ(),M3(),nG(),_ye=B(`<!> <div role="search" class="svelte-1476at1"><!></div>`,1),vye={hash:`svelte-1476at1`,code:`[role='search'].svelte-1476at1 {display:contents;.sui.search-bar {flex:auto;}}`}})))()}var yye,g6;function _6(){return(_6=s((()=>{aM(),M3(),yye=/^\/search\/(?<terms>.+)$/,g6=e=>{let{groups:t}=e.match(yye)??{};if(!t)return!1;let{terms:n}=t;return n&&n!==A(j3)&&j3.set(n),A(A3)||A3.set(`contents`),!0}})))()}function bye(e,t){O(t,!0);let n=()=>j(CM,`$selectedAssetFolder`,l),r=()=>j(lQ,`$showAssetOverlay`,l),i=()=>j(xM,`$allAssetFolders`,l),a=()=>j(hQ,`$listedAssets`,l),o=()=>j(dq,`$overlaidAsset`,l),s=()=>j(iq,`$allAssets`,l),c=()=>j(o1,`$assetUpdatesToast`,l),[l,u]=fn(),d=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/,f=N(!1),p=N(!1),m=M(()=>Bu.current&&n()?fQ(n()):``),h=async()=>{let{path:e}=MQ(),t=e.match(d);if(P(f,!1),P(p,!1),!t?.groups){dn(lQ,!1),P(p,g6(e),!0);return}let{folderPath:r,fileName:c}=t.groups;if(!r){eG.isSmallScreen?(dn(CM,void 0),dn(lQ,!1),dn(jQ,X(`viewing_asset_folder_list`)),P(f,!0)):IQ(`/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,xye.default)(n(),l)||dn(CM,l):dn(CM,void 0),!c){await nd(100),dn(lQ,!1),dn(jQ,X(`viewing_x_asset_folder`,{values:{folder:z(m),count:a().length}}));return}dn(dq,c?s().find(e=>e.path===`${r}/${c}`):void 0),dn(jQ,o()?X(`viewing_x_asset_details`,{values:{name:o().name}}):X(`file_not_found`)),dn(lQ,!0)};rc(()=>(h(),()=>{dn(lQ,!1)}));var g=Sye();_a(`hashchange`,Br,e=>{FQ(e,h,d)});var _=I(g);{let e=e=>{var t=V(),n=I(t),r=e=>{k_e(e,{get isSearchPage(){return z(p)}})};W(n,e=>{(!eG.isSmallScreen||z(f))&&e(r)}),H(e,t)},t=e=>{var t=V(),n=I(t),r=e=>{m6(e,{})},i=e=>{{let t=e=>{R_e(e,{})},n=e=>{var t=V(),n=I(t),r=e=>{Ave(e,{})};W(n,e=>{a().length&&e(r)}),H(e,t)},r=e=>{C_e(e,{})},i=e=>{U_e(e,{})},o=M(()=>X(`x_asset_folder`,{values:{folder:z(m)}}));s6(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):(!eG.isSmallScreen||!z(f))&&e(i,1)}),H(e,t)},n=M(()=>X(`asset_library`));l6(_,{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);Jpe(b,{});var x=L(b,2);Yge(x,{});var S=L(x,2);ah(S,{get show(){return c().saved},set show(e){mn(o1,Ri(c).saved=e,Ri(c))},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(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);ah(C,{get show(){return c().moved},set show(e){mn(o1,Ri(c).moved=e,Ri(c))},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`assets_moved`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=L(C,2);ah(w,{get show(){return c().renamed},set show(e){mn(o1,Ri(c).renamed=e,Ri(c))},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`assets_renamed`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),ah(L(w,2),{get show(){return c().deleted},set show(e){mn(o1,Ri(c).deleted=e,Ri(c))},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`assets_deleted`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,g),k(),u()}var xye,Sye;function Cye(){return(Cye=s((()=>{Y(),J(),Z(),gc(),lh(),rd(),xye=u(kK()),oc(),Gpe(),Zpe(),$ge(),T_e(),F_e(),H_e(),G_e(),Nve(),c6(),u6(),h6(),zQ(),Tq(),s1(),kM(),_Q(),_6(),nG(),Sye=B(`<!> <!> <!> <!> <!> <!> <!> <!>`,1)})))()}function wye(e,t){O(t,!0),G(e,Eye);let n=()=>j(sR,`$dialogOpen`,r),[r,i]=fn(),a=N(``),o=N(``);rc(()=>{let e=fR(),{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])=>uR.includes(e))),ml_id:z(o),pmHost:window.location.origin,new_cms:`true`});P(a,`${cR}/cms?${r}`)});var s=V(),c=I(s),l=e=>{kd(e,{keepContent:!0,get open(){return hn(),n()},set open(e){dn(sR,e)},children:(e,t)=>{var n=Tye();R(e=>{K(n,`src`,z(a)),K(n,`title`,e),K(n,`data-ml-id`,z(o))},[()=>X(`cloud_storage.cloudinary.iframe_title`)]),H(e,n)},$$slots:{default:!0}})};W(c,e=>{z(a)&&e(l)}),H(e,s),k(),i()}var Tye,Eye;function Dye(){return(Dye=s((()=>{Y(),J(),Z(),Pd(),oc(),_R(),Tye=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>`),Eye={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 Oye(e,t){O(t,!0),G(e,Iye);let n=()=>j(fq,`$uploadingAssets`,o),r=()=>j(hq,`$processedAssets`,o),i=()=>j(lQ,`$showAssetOverlay`,o),a=()=>j(dQ,`$showUploadAssetsConfirmDialog`,o),[o,s]=fn(),c=N(Dr([])),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().validFiles),g=M(()=>r().oversizedFiles),_=M(()=>r().invalidFiles),v=M(()=>r().transformedFileMap),y=M(()=>XK().config),b=M(()=>z(y).max_file_size),x=M(()=>z(p)||z(d)?.internalPath===void 0?[]:Cq(z(d).internalPath)),S=M(()=>wq(z(c),z(x))),C=M(()=>z(S).length);Zr(()=>{P(c,[...z(h)],!0),P(l,!0)}),Zr(()=>{i()||dn(fq,{folder:void 0,files:[]})});{let t=M(()=>X(z(p)?`replace_asset`:`upload_assets`)),n=M(()=>X(z(p)?`replace`:`upload`)),r=M(()=>!z(c).length);Cp(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(x):[];await D1({files:z(c),folder:z(d),originalAssets:e},{commitType:`uploadMedia`}),dn(fq,{folder:void 0,files:[]})},onCancel:()=>{dn(fq,{folder:void 0,files:[]})},children:(e,t)=>{var n=Fye(),r=I(n),i=e=>{var t=kye(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`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=Aye(),n=F(t),r=F(n),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`confirm_replacing_file`,{values:{name:z(p).name}})]),H(e,t)},a=e=>{var t=ja();R(e=>U(t,e),[()=>X(`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)}),D(n),x3(L(n,2),{get transformedFileMap(){return z(v)},get files(){return z(c)},set files(e){P(c,e,!0)}}),D(t),R(e=>K(t,`aria-label`,e),[()=>X(`uploading_files`)]),H(e,t)};W(a,e=>{z(c).length&&e(o)});var s=L(a,2),f=e=>{var t=jye(),n=F(t);fc(n,{status:`warning`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`warning_oversized_files`,{values:{count:z(g).length,size:Wz(z(b))}})]),H(e,n)},$$slots:{default:!0}}),x3(L(n,2),{get files(){return z(g)},get transformedFileMap(){return z(v)},removable:!1}),D(t),R(e=>K(t,`aria-label`,e),[()=>X(`oversized_files`)]),H(e,t)};W(s,e=>{z(g).length&&e(f)});var h=L(s,2),y=e=>{var t=Mye(),n=F(t);fc(n,{status:`warning`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`warning_invalid_files`,{values:{count:z(_).length}})]),H(e,n)},$$slots:{default:!0}}),x3(L(n,2),{get files(){return z(_)},removable:!1,showThumbnail:!1}),D(t),R(e=>K(t,`aria-label`,e),[()=>X(`invalid_files`)]),H(e,t)};W(h,e=>{z(_).length&&e(y)});var x=L(h,2),S=e=>{var t=Pye(),n=F(t),r=L(n);{let e=M(()=>X(`file_name_conflict_resolution`));bee(r,{get"aria-label"(){return z(e)},onChange:({detail:e})=>{P(l,e.value===`replace`)},children:(e,t)=>{var n=Nye(),r=I(n);Mm(r,{value:`replace`,get checked(){return z(l)},children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`replace`)]),H(e,n)},$$slots:{default:!0}});var i=L(r,2);{let e=M(()=>!z(l));Mm(i,{value:`keep`,get checked(){return z(e)},children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`keep_both`)]),H(e,n)},$$slots:{default:!0}})}H(e,n)},$$slots:{default:!0}})}D(t),R(e=>U(n,`${e??``} `),[()=>X(`file_name_conflict_confirmation`,{values:{count:z(C)}})]),H(e,t)};W(x,e=>{z(C)&&e(S)}),H(e,n)},$$slots:{default:!0}})}k(),s()}var kye,Aye,jye,Mye,Nye,Pye,Fye,Iye;function Lye(){return(Lye=s((()=>{Y(),J(),Z(),gc(),Tp(),Nm(),jm(),S3(),Tq(),O1(),_Q(),QK(),eB(),kye=B(`<div role="status"> </div>`),Aye=B(`<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>`),jye=B(`<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>`),Mye=B(`<div role="group" class="section invalid svelte-96nj3d"><!> <!></div>`),Nye=B(`<!> <!>`,1),Pye=B(`<div role="group" class="section svelte-96nj3d"> <!></div>`),Fye=B(`<!> <!> <!> <!> <!>`,1),Iye={hash:`svelte-96nj3d`,code:`.section.svelte-96nj3d {display:flex;flex-direction:column;gap:12px;&:not(:first-child) {margin-top:16px;}& > * {flex:none;}&.oversized .files,
|
||
&.invalid .files {opacity:0.5;}}`}})))()}function Rye(e,t){O(t,!0);let n=()=>j(fq,`$uploadingAssets`,o),r=()=>j(wM,`$targetAssetFolder`,o),i=()=>j(uQ,`$showUploadAssetsDialog`,o),a=()=>j(lQ,`$showAssetOverlay`,o),[o,s]=fn(),c=N(void 0),l=M(()=>n().originalAssets),u=M(()=>z(l)?.[0]),d=M(()=>!z(u)),f=M(()=>z(u)?rR.getType(z(u).name)??void 0:void 0),p=e=>{e.length&&(dn(fq,{folder:z(u)?z(u).folder:r(),files:e,originalAssets:z(l)}),dn(uQ,!1))};Zr(()=>{!eG.hasMouse&&i()&&z(c)?.open()}),Zr(()=>{a()||dn(uQ,!1)});var m=V(),h=I(m),g=e=>{{let t=M(()=>z(u)?X(`replace_x`,{values:{name:z(u).name}}):X(`upload_assets`));dp(e,{get title(){return z(t)},showOk:!1,get open(){return hn(),i()},set open(e){dn(uQ,e)},children:(e,t)=>{C3(e,{showUploadButton:!0,get accept(){return z(f)},get multiple(){return z(d)},onDrop:({files:e})=>{p(e)}})},$$slots:{default:!0}})}},_=e=>{Bs(Lp(e,{get accept(){return z(f)},get multiple(){return z(d)},onSelect:({files:e})=>{p(e)},onCancel:()=>{dn(uQ,!1)}}),e=>P(c,e,!0),()=>z(c))};W(h,e=>{eG.hasMouse?e(g):e(_,-1)}),H(e,m),k(),s()}function zye(){return(zye=s((()=>{Y(),J(),Z(),yp(),zp(),iR(),w3(),Tq(),kM(),_Q(),nG()})))()}function Bye(e,t){O(t,!0),G(e,Hye);{let t=e=>{var t=Vye(),n=F(t),r=F(n,!0);D(n),D(t),R((e,n)=>{K(t,`aria-label`,e),U(r,n)},[()=>X(`cms_config`),()=>TF(BK)]),H(e,t)},n=M(()=>X(`site_configuration_editor`));l6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var Vye,Hye;function Uye(){return(Uye=s((()=>{Y(),J(),Z(),EF(),u6(),qK(),Vye=B(`<div role="blockquote" class="svelte-2picl5"><pre class="svelte-2picl5"> </pre></div>`),Hye={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);}`}})))()}var Wye,Gye,v6;function y6(){return(y6=s((()=>{aM(),sL(),cI(),l3(),EU(),Wye=/(?<path>.+?)\.[^.]*$/,Gye=({getFieldArgs:e,fieldConfig:t,sourceLanguage:n,value:r})=>{let{keyPath:i}=e;Object.entries(A(a3).currentValues).forEach(([a,o])=>{if(i.includes(`.`)){let t=i.match(Wye)?.groups?.path;if(!Object.keys(o).some(e=>e.startsWith(`${t}.`))&&!mU({...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)})},v6=({draft:{collectionName:e,fileName:t,isIndexFile:n},locale:r,target:i={},getValueMap:a=void 0})=>{let o=iL(e),s=o&&t?rI(o,t):void 0;if(!o||t&&!s)return;let{defaultLocale:c,canonicalSlug:{key:l}}=(s??o)._i18n,u=e=>A(o3)&&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:mU({...s})}};return new Proxy(i,{set:(e,t,n)=>{if(e[t]!==n&&(e[t]=n),[l].includes(t))return!0;let{fieldConfig:i,getFieldArgs:a}=d(e,t);if(!i)return!0;let o=A(a3)?.validities?.[r]?.[t];return o&&typeof n==`string`&&gU({fieldConfig:i,locale:r})&&(o.valueMissing=!n),u(i)&&Gye({getFieldArgs:a,fieldConfig:i,sourceLanguage:r,value:n}),!0},deleteProperty:(e,t)=>{delete e[t];let{fieldConfig:n}=d(e,t);return n&&u(n)&&Object.entries(A(a3).currentValues).forEach(([e,n])=>{e!==r&&t in n&&delete n[t]}),!0}})}})))()}var b6,x6,S6,C6,w6,T6,E6,Kye,qye,Jye,Yye,Xye,Zye;function D6(){return(D6=s((()=>{hM(),v(),sM(),aM(),WZ(),qK(),n3(),l3(),y6(),FK(),b6=0,x6=void 0,S6={saved:!1,restored:!1,deleted:!1},C6=sn({show:!1}),w6=sn({...S6}),T6=async(e,t=``)=>{await x6?.delete([e,t])},E6=async(e,t=``)=>{let n=await x6?.get([e,t]);return n?n.cmsConfigVersion===A(HK)?n:(await T6(e,t),null):null},Kye=async e=>{if(!(NK.useDraftBackup??!0)||!A(s3))return;let{collectionName:t,fileName:n,originalEntry:r,currentLocales:i={},currentSlugs:a={},currentValues:o={},files:s}=e,c=n??r?.slug??``;if(A(c3)){let e={timestamp:new Date,cmsConfigVersion:A(HK),collectionName:t,slug:c,currentLocales:i,currentSlugs:_(a),currentValues:_(o),files:s};await x6?.put(e)}else await E6(t,c)&&await T6(t,c)},qye=({backup:e,collectionName:t,fileName:n})=>{let{currentLocales:r,currentSlugs:i,currentValues:a,files:o}=e,s=new Map;o3.set(!1),a3.update(e=>{if(e){e.currentLocales=r,e.currentSlugs=i;let c=$4(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(dM(`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]=v6({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}),o3.set(!0)},Jye=async({collectionName:e,fileName:t,slug:n=``})=>{if(!(NK.useDraftBackup??!0))return;let r=await E6(e,n);if(!r)return;let{timestamp:i}=r,{promise:a,resolve:o}=Promise.withResolvers();C6.set({show:!0,timestamp:i,resolve:o});let s=await a;s!==void 0&&(s?(qye({backup:r,collectionName:e,fileName:t}),s3.set(!0)):await T6(e,n),w6.set({restored:s,deleted:!s,saved:!1}))},Yye=async()=>{if(!(NK.useDraftBackup??!0))return;let e=A(a3);if(!e||A(w6).saved)return;let{collectionName:t,originalEntry:n}=e;await E6(t,n?.slug)&&w6.set({restored:!1,deleted:!1,saved:!0})},Xye=()=>{w6.set({...S6})},HZ.subscribe(e=>{if(e&&!x6){let{databaseName:t}=e.repository??{};if(t){x6=new oM(t,`draft-backups`,{keyPath:[`collectionName`,`slug`]});return}}x6=null}),a3.subscribe(e=>{globalThis.clearTimeout(b6),e?.id!==Zye&&(Zye=e?.id,s3.set(!1)),e&&x6&&(b6=globalThis.setTimeout(()=>{Kye(e)},500))})})))()}function Qye(e,t){O(t,!0);let n=()=>j(C6,`$restoreDialogState`,a),r=()=>j(vQ,`$showContentOverlay`,a),i=()=>j(w6,`$backupToastState`,a),[a,o]=fn(),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(Bu.current,{year:z(u)?void 0:`numeric`,month:z(f)?void 0:`short`,day:z(f)?void 0:`numeric`,hour:`numeric`,minute:`numeric`}));Zr(()=>{!r()&&n().show&&(mn(C6,Ri(n).show=!1,Ri(n)),z(c)?.())});var m=$ye(),h=I(m);{let e=M(()=>X(`restore_backup_title`)),t=M(()=>X(`restore`)),r=M(()=>X(`discard`));Cp(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){mn(C6,Ri(n).show=e,Ri(n))},children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`restore_backup_description`,{values:{datetime:z(p)}})]),H(e,n)},$$slots:{default:!0}})}var g=L(h,2);ah(g,{get show(){return i().saved},set show(e){mn(w6,Ri(i).saved=e,Ri(i))},children:(e,t)=>{fc(e,{status:`info`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`draft_backup_saved`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var _=L(g,2);ah(_,{get show(){return i().restored},set show(e){mn(w6,Ri(i).restored=e,Ri(i))},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`draft_backup_restored`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),ah(L(_,2),{get show(){return i().deleted},set show(e){mn(w6,Ri(i).deleted=e,Ri(i))},children:(e,t)=>{fc(e,{status:`info`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`draft_backup_deleted`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,m),k(),o()}var $ye;function ebe(){return(ebe=s((()=>{Y(),J(),Z(),gc(),Tp(),lh(),D6(),EQ(),$ye=B(`<!> <!> <!> <!>`,1)})))()}function tbe(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 O6(e,t){return Array(t+1).join(e)}function nbe(e){return e.replace(/^\n*/,``)}function rbe(e){for(var t=e.length;t>0&&e[t-1]===`
|
||
`;)t--;return e.substring(0,t)}function ibe(e){return rbe(nbe(e))}function k6(e){return A6(e,jbe)}function abe(e){return A6(e,L6)}function obe(e){return lbe(e,L6)}function sbe(e){return A6(e,R6)}function cbe(e){return lbe(e,R6)}function A6(e,t){return t.indexOf(e.nodeName)>=0}function lbe(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}function ube(e){return Mbe.reduce(function(e,t){return e.replace(t[0],t[1])},e)}function j6(e){return e?e.replace(/(\n+\s*)+/g,`
|
||
`):``}function M6(e){var t=e.replace(/([<>()])/g,`\\$1`);return t.indexOf(` `)>=0?`<`+t+`>`:t}function N6(e){return e.replace(/"/g,`\\"`)}function dbe(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 P6(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(fbe(i,t,n))return i}}function fbe(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 pbe(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=mbe(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=F6(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=F6(c);continue}var u=mbe(s,c,i);s=c,c=u}a&&(a.data=a.data.replace(/ $/,``),a.data||F6(a))}}function F6(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function mbe(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}function hbe(){var e=B6.DOMParser,t=!1;try{new e().parseFromString(``,`text/html`)&&(t=!0)}catch{}return t}function gbe(){var e=function(){};return _be()?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 _be(){var e=!1;try{document.implementation.createHTMLDocument(``).open()}catch{B6.ActiveXObject&&(e=!0)}return e}function vbe(e,t){var n=typeof e==`string`?ybe().parseFromString(`<x-turndown id="turndown-root">`+e+`</x-turndown>`,`text/html`).getElementById(`turndown-root`):e.cloneNode(!0);return pbe({element:n,isBlock:k6,isVoid:abe,isPre:t.preformattedCode?bbe:null}),n}function ybe(){return Pbe||=new Nbe,Pbe}function bbe(e){return e.nodeName===`PRE`||e.nodeName===`CODE`}function xbe(e,t){return e.isBlock=k6(e),e.isCode=e.nodeName===`CODE`||e.parentNode.isCode,e.isBlank=Sbe(e),e.flankingWhitespace=Cbe(e,t),e}function Sbe(e){return!abe(e)&&!sbe(e)&&/^\s*$/i.test(e.textContent)&&!obe(e)&&!cbe(e)}function Cbe(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:``,trailing:``};var n=wbe(e.textContent);return n.leadingAscii&&Tbe(`left`,e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&Tbe(`right`,e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function wbe(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 Tbe(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&&!k6(r)&&(a=i.test(r.textContent))),a}function I6(e){if(!(this instanceof I6))return new I6(e);var t={rules:z6,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=tbe({},t,e),this.rules=new dbe(this.options)}function Ebe(e){var t=this;return Fbe.call(e.childNodes,function(e,n){n=new xbe(n,t.options);var r=``;return n.nodeType===3?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(r=Obe.call(t,n)),kbe(e,r)},``)}function Dbe(e){var t=this;return this.rules.forEach(function(n){typeof n.append==`function`&&(e=kbe(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,``).replace(/[\t\r\n\s]+$/,``)}function Obe(e){var t=this.rules.forNode(e),n=Ebe.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 kbe(e,t){var n=rbe(e),r=nbe(t),i=Math.max(e.length-n.length,t.length-r.length);return n+`
|
||
|
||
`.substring(0,i)+r}function Abe(e){return e!=null&&(typeof e==`string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var jbe,L6,R6,Mbe,z6,B6,Nbe,Pbe,Fbe;function Ibe(){return(Ibe=s((()=>{jbe=`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(`.`),L6=[`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`],R6=[`A`,`TABLE`,`THEAD`,`TBODY`,`TFOOT`,`TH`,`TD`,`IFRAME`,`SCRIPT`,`AUDIO`,`VIDEO`],Mbe=[[/\\/g,`\\\\`],[/\*/g,`\\*`],[/^-/g,`\\-`],[/^\+ /g,`\\+ `],[/^(=+)/g,`\\$1`],[/^(#{1,6}) /g,`\\$1 `],[/`/g,"\\`"],[/^~~~/g,`\\~~~`],[/\[/g,`\\[`],[/\]/g,`\\]`],[/^>/g,`\\>`],[/_/g,`\\_`],[/^(\d+)\. /g,`$1\\. `]],z6={},z6.paragraph={filter:`p`,replacement:function(e){return`
|
||
|
||
`+e+`
|
||
|
||
`}},z6.lineBreak={filter:`br`,replacement:function(e,t,n){return n.br+`
|
||
`}},z6.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=O6(r===1?`=`:`-`,e.length);return`
|
||
|
||
`+e+`
|
||
`+i+`
|
||
|
||
`}return`
|
||
|
||
`+O6(`#`,r)+` `+e+`
|
||
|
||
`}},z6.blockquote={filter:`blockquote`,replacement:function(e){return e=ibe(e).replace(/^/gm,`> `),`
|
||
|
||
`+e+`
|
||
|
||
`}},z6.list={filter:[`ul`,`ol`],replacement:function(e,t){var n=t.parentNode;return n.nodeName===`LI`&&n.lastElementChild===t?`
|
||
`+e:`
|
||
|
||
`+e+`
|
||
|
||
`}},z6.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=ibe(e)+(s?`
|
||
`:``),e=e.replace(/\n/gm,`
|
||
`+` `.repeat(r.length)),r+e+(t.nextSibling?`
|
||
`:``)}},z6.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,`
|
||
`)+`
|
||
|
||
`}},z6.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=O6(a,o);return`
|
||
|
||
`+l+r+`
|
||
`+i.replace(/\n$/,``)+`
|
||
`+l+`
|
||
|
||
`}},z6.horizontalRule={filter:`hr`,replacement:function(e,t,n){return`
|
||
|
||
`+n.hr+`
|
||
|
||
`}},z6.inlineLink={filter:function(e,t){return t.linkStyle===`inlined`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t){var n=M6(t.getAttribute(`href`)),r=N6(j6(t.getAttribute(`title`))),i=r?` "`+r+`"`:``;return`[`+e+`](`+n+i+`)`}},z6.referenceLink={filter:function(e,t){return t.linkStyle===`referenced`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t,n){var r=M6(t.getAttribute(`href`)),i=j6(t.getAttribute(`title`));i&&=` "`+N6(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}},z6.emphasis={filter:[`em`,`i`],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:``}},z6.strong={filter:[`strong`,`b`],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:``}},z6.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}},z6.image={filter:`img`,replacement:function(e,t){var n=ube(j6(t.getAttribute(`alt`))),r=M6(t.getAttribute(`src`)||``),i=j6(t.getAttribute(`title`)),a=i?` "`+N6(i)+`"`:``;return r?``:``}},dbe.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=P6(this.array,e,this.options))||(t=P6(this._keep,e,this.options))||(t=P6(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)}},B6=typeof window<`u`?window:{},Nbe=hbe()?B6.DOMParser:gbe(),Fbe=Array.prototype.reduce,I6.prototype={turndown:function(e){if(!Abe(e))throw TypeError(e+` is not a string, or an element/document/fragment node.`);if(e===``)return``;var t=Ebe.call(this,new vbe(e,this.options));return Dbe.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 ube(e)}}})))()}var V6,Lbe,Rbe;function H6(){return(H6=s((()=>{FD(),ZU(),HF(),eI(),EU(),FF(),V6=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}},Lbe=new Map,Rbe=({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}`,t=PF(Lbe,e,()=>RegExp(`^${kD(n)}\\.${c}[\\b\\.]`));return bU({valueMap:r,locale:a,keyPath:u,keyPathRegex:t,getFieldArgs:l})}let d=e=>{let{value:t}=QF(e),r=t.replace(/^fields\./,``),i=`${u}.${r}`;if(s){let e=mU({...l,keyPath:n});if(!(`field`in e)||e.field.name!==r)return``}return yU({...l,keyPath:s?u:i,locale:a})};return qU(o,(e,t)=>{let{value:r,transformations:i}=QF(t),o=r.replace(/^fields\./,``),c=`${u}.${o}`;if(s){let e=mU({...l,keyPath:n});if(!(`field`in e)||e.field.name!==o)return``}return yU({...l,keyPath:s?u:c,locale:a,transformations:VF(i,d)})})}})))()}var U6,zbe,Bbe;function W6(){return(W6=s((()=>{v(),U6=async({endpoint:e,headers:t={},apiKey:n,model:r,systemPrompt:i,userMessage:a,temperature:o=.3,maxTokens:s=4e3,reasoning:c=`high`,extraBody:l={}})=>{let u={"Content-Type":`application/json`,Authorization:`Bearer ${n}`,...t},d=await fetch(e,{method:`POST`,headers:u,body:JSON.stringify({model:r,messages:[{role:`system`,content:i},{role:`user`,content:a}],temperature:o,max_tokens:s,stream:!1,reasoning_effort:c,...l})});if(!d.ok){let e=await d.json().catch(()=>({})),t=e.message||e.error?.message||``;throw Error(`Chat Completions API error: ${d.status} ${d.statusText}${t?` - ${t}`:``}`)}let f=await d.json();if(!f.choices||!Array.isArray(f.choices)||!f.choices[0]?.message?.content)throw Error(`Invalid response format from Chat Completions API.`);return f.choices[0].message.content.trim()},zbe=async({endpoint:e,headers:t={},apiKey:n,model:r,systemPrompt:i,userMessage:a,maxTokens:o=4e3,extraBody:s={}})=>{let c={"Content-Type":`application/json`,Authorization:`Bearer ${n}`,...t},l=await fetch(e,{method:`POST`,headers:c,body:JSON.stringify({model:r,instructions:i,input:a,store:!1,max_output_tokens:o,...s})});if(!l.ok){let e=(await l.json().catch(()=>({}))).error?.message||``;throw Error(`Responses API error: ${l.status} ${l.statusText}${e?` - ${e}`:``}`)}let u=await l.json();if(typeof u.output_text==`string`)return u.output_text.trim();let d=(Array.isArray(u.output)?u.output:[]).find(e=>g(e)&&`type`in e&&e.type===`message`&&`content`in e&&Array.isArray(e.content));if(!g(d)||!(`content`in d)||!Array.isArray(d.content))throw Error(`Invalid response format from Responses API.`);let{content:f}=d,p=f.find(e=>g(e)&&`type`in e&&e.type===`output_text`&&`text`in e&&typeof e.text==`string`);if(g(p)&&`text`in p&&typeof p.text==`string`)return p.text.trim();throw Error(`Invalid response format from Responses API.`)},Bbe=async({endpoint:e,headers:t={},apiKey:n,model:r,systemPrompt:i,userMessage:a,temperature:o=.3,maxTokens:s=4e3,extraBody:c={}})=>{let l={"Content-Type":`application/json`,...t};!t.Authorization&&!t[`x-api-key`]&&(l[`x-api-key`]=n);let u=await fetch(e,{method:`POST`,headers:l,body:JSON.stringify({model:r,max_tokens:s,temperature:o,system:i,messages:[{role:`user`,content:a}],...c})});if(!u.ok){let e=await u.json().catch(()=>({})),t=e.error?.message||e.message||``;throw Error(`Messages API error: ${u.status} ${u.statusText}${t?` - ${t}`:``}`)}let d=await u.json();if(!d.content||!Array.isArray(d.content)||!d.content[0])throw Error(`Invalid response format from Messages API.`);return d.content[0].text.trim()}})))()}var Vbe,Hbe,G6,Ube,Wbe,Gbe,Kbe;function qbe(){return(qbe=s((()=>{W6(),Vbe=`https://api.anthropic.com/v1/messages`,Hbe={"anthropic-version":`2023-06-01`,"anthropic-dangerous-direct-browser-access":`true`},G6=`Anthropic API`,Ube=`https://docs.claude.com/en/api/overview`,Wbe=`https://platform.claude.com/settings/keys`,Gbe=/sk-ant-api03-[a-zA-Z0-9-_]{80,}/,Kbe=async e=>Bbe({...e,endpoint:Vbe,headers:Hbe})})))()}var K6,Jbe,Ybe,Xbe,q6,Zbe,J6;function Y6(){return(Y6=s((()=>{zI(),K6=e=>FI(e,{displayLocale:`en`}),Jbe=(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", ...]`},Ybe=e=>`Translate these texts and return ONLY valid JSON (no markdown, no code blocks):
|
||
${JSON.stringify(e)}\n\nRespond with JSON only:`,Xbe=(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},q6=async({sourceLanguage:e,targetLanguage:t})=>!!K6(e)&&!!K6(t),Zbe=(e,t)=>{let n=K6(e),r=K6(t);if(!n)throw Error(`Source locale is not supported.`);if(!r)throw Error(`Target locale is not supported.`);return[n,r]},J6=(e,t,n,r={})=>async(i,{sourceLanguage:a,targetLanguage:o,apiKey:s})=>{let[c,l]=Zbe(a,o);try{let a=await e({apiKey:s,model:t,systemPrompt:Jbe(c,l),userMessage:Ybe(i),...r});return Xbe(a,i.length,n)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with ${n}.`)}}})))()}var Qbe,$be,exe,txe;function nxe(){return(nxe=s((()=>{qbe(),Y6(),Qbe=`anthropic`,$be=`Anthropic Claude`,exe=`claude-haiku-4-5`,txe={serviceId:Qbe,serviceLabel:$be,apiLabel:G6,developerURL:Ube,apiKeyURL:Wbe,apiKeyPattern:Gbe,markdownSupported:!0,availability:q6,translate:J6(Kbe,exe,G6)}})))()}var rxe,X6,ixe,axe,oxe,sxe;function cxe(){return(cxe=s((()=>{W6(),rxe=`https://api.deepseek.com/chat/completions`,X6=`DeepSeek API`,ixe=`https://api-docs.deepseek.com/`,axe=`https://platform.deepseek.com/api_keys`,oxe=/sk-[a-zA-Z0-9]{32,}/,sxe=async e=>U6({...e,endpoint:rxe,extraBody:{thinking:{type:e.reasoning===`none`?`disabled`:`enabled`}}})})))()}var lxe,uxe,dxe,fxe;function pxe(){return(pxe=s((()=>{cxe(),Y6(),lxe=`deepseek`,uxe=`DeepSeek`,dxe=`deepseek-v4-flash`,fxe={serviceId:lxe,serviceLabel:uxe,apiLabel:X6,developerURL:ixe,apiKeyURL:axe,apiKeyPattern:oxe,markdownSupported:!0,availability:q6,translate:J6(sxe,dxe,X6,{reasoning:`none`})}})))()}var mxe,hxe,gxe,_xe,vxe,yxe,Z6,Q6,bxe,xxe,$6;function Sxe(){return(Sxe=s((()=>{mxe=`google`,hxe=`Google Cloud Translation`,gxe=`Cloud Translation API`,_xe=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,vxe=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,yxe=/AIza[0-9A-Za-z-_]{35}/,Z6=[`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(`,`),Q6=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(Z6.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(Z6.includes(n))return n},bxe=async({sourceLanguage:e,targetLanguage:t})=>!!Q6(e)&&!!Q6(t),xxe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=Q6(t)??``,n=Q6(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(/'/g,`'`))}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Google Translate API.`)}},$6={serviceId:mxe,serviceLabel:hxe,apiLabel:gxe,developerURL:_xe,apiKeyURL:vxe,apiKeyPattern:yxe,markdownSupported:!1,availability:bxe,translate:xxe}})))()}var e8,Cxe,wxe,Txe,Exe;function Dxe(){return(Dxe=s((()=>{e8=`Gemini API`,Cxe=`https://ai.google.dev/gemini-api/docs`,wxe=`https://aistudio.google.com/api-keys`,Txe=/AIza[a-zA-Z0-9_-]{35}/,Exe=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()}})))()}var Oxe,kxe,Axe,jxe;function Mxe(){return(Mxe=s((()=>{Dxe(),Y6(),Oxe=`google-ai`,kxe=`Google Gemini`,Axe=`gemini-3.5-flash-lite`,jxe={serviceId:Oxe,serviceLabel:kxe,apiLabel:e8,developerURL:Cxe,apiKeyURL:wxe,apiKeyPattern:Txe,markdownSupported:!0,availability:q6,translate:J6(Exe,Axe,e8,{responseFormat:`application/json`})}})))()}var Nxe,t8,Pxe,Fxe,Ixe,Lxe;function Rxe(){return(Rxe=s((()=>{W6(),Nxe=`https://api.mistral.ai/v1/chat/completions`,t8=`Mistral AI API`,Pxe=`https://docs.mistral.ai/`,Fxe=`https://console.mistral.ai/home?profile_dialog=api-keys`,Ixe=/[a-zA-Z0-9]{32,}/,Lxe=async e=>U6({...e,endpoint:Nxe})})))()}var zxe,Bxe,Vxe,Hxe;function Uxe(){return(Uxe=s((()=>{Rxe(),Y6(),zxe=`mistral`,Bxe=`Mistral`,Vxe=`mistral-small-latest`,Hxe={serviceId:zxe,serviceLabel:Bxe,apiLabel:t8,developerURL:Pxe,apiKeyURL:Fxe,apiKeyPattern:Ixe,markdownSupported:!0,availability:q6,translate:J6(Lxe,Vxe,t8,{reasoning:`none`})}})))()}var Wxe,n8,Gxe,Kxe,qxe,Jxe;function Yxe(){return(Yxe=s((()=>{W6(),Wxe=`https://api.openai.com/v1/responses`,n8=`OpenAI API`,Gxe=`https://platform.openai.com/docs/overview`,Kxe=`https://platform.openai.com/api-keys`,qxe=/sk-[a-zA-Z0-9-_]{40,}/,Jxe=async e=>zbe({...e,endpoint:Wxe})})))()}var Xxe,Zxe,Qxe,$xe;function eSe(){return(eSe=s((()=>{Yxe(),Y6(),Xxe=`openai`,Zxe=`OpenAI GPT`,Qxe=`gpt-5.6-luna`,$xe={serviceId:Xxe,serviceLabel:Zxe,apiLabel:n8,developerURL:Gxe,apiKeyURL:Kxe,apiKeyPattern:qxe,markdownSupported:!0,availability:q6,translate:J6(Jxe,Qxe,n8)}})))()}var r8,i8;function a8(){return(a8=s((()=>{aM(),FK(),nxe(),pxe(),Sxe(),Mxe(),Uxe(),eSe(),r8={anthropic:txe,deepseek:fxe,google:$6,"google-ai":jxe,mistral:Hxe,openai:$xe},i8=iM(()=>{let{defaultTranslationService:e=`google`}=NK;return r8[e]??$6})})))()}var o8,tSe,s8,nSe,rSe,c8;function l8(){return(l8=s((()=>{rM(),aM(),Ibe(),l3(),EQ(),EU(),H6(),a8(),FK(),o8=new I6({headingStyle:`atx`,bulletListMarker:`-`,codeBlockStyle:`fenced`}),o8.keep([`span`,`div`]),tSe=({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=mU({...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`&&V6(r).hasSubFields||!l&&t===n||!c&&l&&n?null:[e,{value:t,isMarkdown:a===`richtext`||a===`markdown`}]}).filter(e=>!!e))},s8=(e,t,{count:n,sourceLanguage:r})=>{SQ.set({id:Date.now(),show:!0,status:e,message:t,count:n,sourceLanguage:r})},nSe=async({currentValues:e,options:t,copingFieldMap:n})=>{let{serviceId:r}=A(i8),{sourceLanguage:i,targetLanguage:a}=t,o=Object.keys(n).length,s=NK.apiKeys?.[r];if(!s){let{promise:e,resolve:t}=Promise.withResolvers();xQ.set({show:!0,multiple:o>1,resolve:t}),s=await e}if(!s)return;let{markdownSupported:c,translate:l}=A(i8);s8(`info`,`translation.started`,{count:o,sourceLanguage:i});try{let t=await l(Object.entries(n).map(([,{value:e,isMarkdown:t}])=>t&&!c?nM(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?o8.turndown(o):o}),s8(`success`,`translation.complete`,{count:o,sourceLanguage:i})}catch(e){s8(`error`,`translation.error`,{count:o,sourceLanguage:i}),console.error(e)}},rSe=({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}),s8(`success`,`copy.complete`,{count:a,sourceLanguage:r})},c8=async e=>{let{sourceLanguage:t,translate:n=!1}=e,r=A(a3),{currentValues:i}=r,a=tSe({draft:r,options:e}),o=Object.keys(a).length;if(!o){s8(`info`,`${n?`translation`:`copy`}.none`,{count:o,sourceLanguage:t});return}n?await nSe({currentValues:i,options:e,copingFieldMap:a}):rSe({currentValues:i,options:e,copingFieldMap:a}),a3.update(e=>({...e,currentValues:i}))}})))()}var u8,d8;function f8(){return(f8=s((()=>{J(),l3(),u8=new Map,a3.subscribe(()=>{u8.clear()}),d8=(e,t,n=`currentValues`)=>{if(!e)return{};let r=`${n}\n${t}`,i=u8.get(r);if(i)return i;let a=Dt(e[n]?.[t])??{};return u8.set(r,a),a}})))()}function p8(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,i),r=()=>j(i8,`$translator`,i),[i,a]=fn(),o=q(t,`keyPath`,3,``),s=q(t,`translate`,3,!1),c=async({sourceLanguage:e,targetLanguage:t})=>!n()?.currentLocales[t]||!n().currentLocales[e]||!!o()&&!d8(n(),e)[o()]||!s()&&!!o()&&d8(n(),e)[o()]===d8(n(),t)[o()]||s()&&!await r()?.availability({sourceLanguage:e,targetLanguage:t});var l=V();lo(I(l),16,()=>t.otherLocales,e=>e,(e,n)=>{let r=M(()=>({sourceLanguage:n,targetLanguage:t.locale}));var i=V();Ya(I(i),()=>c(z(r)),null,(e,t)=>{{let i=M(()=>X(s()?`translate_from_x`:`copy_from_x`,{values:{locale:FI(n)}}));vm(e,{get label(){return z(i)},get disabled(){return z(t)},onclick:()=>{c8({...z(r),keyPath:o(),translate:s()})}})}}),H(e,i)}),H(e,l),k(),a()}function m8(){return(m8=s((()=>{Y(),J(),Z(),wm(),l3(),l8(),f8(),zI(),a8()})))()}function iSe(e,t){O(t,!0),G(e,sSe);let n=q(t,`children`,3,void 0),r=qs(t,aSe),i=N(void 0);rc(()=>()=>{z(i)?.dispatchEvent(new CustomEvent(`Unmount`))});var a=oSe();gs(a,()=>({role:`group`,class:`field`,...r}),void 0,void 0,void 0,`svelte-wzztxu`),So(F(a),()=>n()??E),D(a),Bs(a,e=>P(i,e),()=>z(i)),H(e,a),k()}var aSe,oSe,sSe;function h8(){return(h8=s((()=>{Y(),J(),oc(),aSe=new Set([`$$slots`,`$$events`,`$$legacy`,`children`]),oSe=B(`<section><!></section>`),sSe={hash:`svelte-wzztxu`,code:`section.svelte-wzztxu {position:relative;padding:var(--field-editor-padding);&:not(:last-child)::after {position:absolute;inset:auto var(--field-editor-padding) 0 var(--field-editor-padding);overflow:hidden;height:1px;background-color:var(--sui-tertiary-background-color);content:'';}& > * {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);}}
|
||
|
||
@media (hover: hover) {&:not(:hover) > header button {opacity:0;}
|
||
}}`}})))()}function cSe(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,i),r=()=>j(i8,`$translator`,i),[i,a]=fn(),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(()=>X(`translate_from_x`,{values:{locale:FI(z(n).otherLocale)??z(n).otherLocale}})),i=M(()=>({sourceLanguage:z(n).otherLocale,targetLanguage:t.locale}));var a=V();Ya(I(a),()=>l(z(i)),null,(e,t)=>{Bd(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:()=>{c8({...z(i),keyPath:s(),translate:!0})},startIcon:e=>{sc(e,{name:`translate`})},$$slots:{startIcon:!0}})}),H(e,a)},p=e=>{{let n=e=>{sc(e,{name:`translate`})},r=e=>{{let n=M(()=>X(`translation_options`));pm(e,{get"aria-label"(){return z(n)},children:(e,n)=>{p8(e,{get locale(){return t.locale},get otherLocales(){return t.otherLocales},get keyPath(){return s()},translate:!0})},$$slots:{default:!0}})}},i=M(()=>X(`translate`));Ff(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),k(),a()}function g8(){return(g8=s((()=>{Y(),J(),Z(),Kd(),dc(),_m(),Rf(),m8(),l3(),l8(),zI(),a8()})))()}function _8(e,t){G(e,uSe);let n=q(t,`id`,3,void 0),r=q(t,`live`,3,`polite`);var i=lSe(),a=F(i),o=F(a);sc(o,{name:`error`}),So(L(o,2),()=>t.children),D(a),D(i),R(()=>{K(i,`id`,n()),K(i,`aria-live`,r())}),H(e,i)}var lSe,uSe;function v8(){return(v8=s((()=>{Y(),J(),dc(),lSe=B(`<div role="alert" class="validation svelte-6wra4i"><div role="none" class="svelte-6wra4i"><!> <!></div></div>`),uSe={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 dSe(e,t){O(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);Wm(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get checked(){return n()},set checked(e){n(e)}}),k()}function fSe(){return(fSe=s((()=>{Y(),J(),Gm()})))()}function pSe(e,t){O(t,!0);let n=q(t,`currentValue`,3,!1);var r=V(),i=I(r),a=e=>{var t=mSe(),r=F(t,!0);D(t),R(e=>U(r,e),[()=>X(`boolean.${n()}`)]),H(e,t)};W(i,e=>{typeof n()==`boolean`&&e(a)}),H(e,r),k()}var mSe;function hSe(){return(hSe=s((()=>{Y(),J(),Z(),mSe=B(`<p> </p>`)})))()}function gSe(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),{valueStoreKey:a=`currentValues`}=Pt(`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(()=>C(t.fieldConfig.default_language,`plain`)),p=M(()=>C(t.fieldConfig.allow_language_selection,!0)),m=M(()=>C(t.fieldConfig.output_code_only,!1)),h=M(()=>C(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),g=M(()=>d8(n(),t.locale,a)),_=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)&&mn(a3,Ri(n)[a][t.locale][z(_)]=z(u),Ri(n)),z(g)[z(v)]!==z(d)&&mn(a3,Ri(n)[a][t.locale][z(v)]=z(d),Ri(n)))};Zr(()=>{z(g),Ri(()=>{y()})}),Zr(()=>{z(u),z(d),Ri(()=>{b()})});var x=V();Ya(I(x),nd,null,e=>{var n=V();to(I(n),()=>JSON.stringify(t.fieldConfig),e=>{wse(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),k(),i()}function _Se(){return(_Se=s((()=>{Y(),J(),BO(),rd(),oc(),l3(),f8()})))()}function vSe(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=M(()=>C(t.fieldConfig.default_language,``)),o=M(()=>C(t.fieldConfig.output_code_only,!1)),s=M(()=>C(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),c=M(()=>d8(n(),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=ySe(),n=F(t,!0);D(t),R(()=>{is(t,1,Zo(z(f)?`language-${z(f)}`:void 0)),U(n,z(d))}),H(e,t)};W(m,e=>{z(d)&&e(h)}),H(e,p),k(),i()}var ySe;function bSe(){return(bSe=s((()=>{Y(),J(),l3(),f8(),ySe=B(`<pre> </pre>`)})))()}function xSe(e,t){let n=Ma();O(t,!0),G(e,TSe);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(()=>C(t.fieldConfig.allowInput,!1)),u=M(()=>C(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)};Zr(()=>{r(),Ri(()=>{p()})}),Zr(()=>{z(s),z(c),Ri(()=>{m()})});var h=wSe(),g=F(h);ps(g);var _=L(g,2),v=e=>{var r=CSe(),d=F(r),f=e=>{Ep(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=SSe(),n=I(t),r=L(n);{let e=M(()=>!z(s)),t=M(()=>X(`opacity`));ute(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??``} `),[()=>X(`opacity`)]),H(e,t)};W(p,e=>{z(u)&&e(m)}),D(r),H(e,r)};W(_,e=>{(z(l)||z(u))&&e(v)});var y=L(_,2),b=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!z(s)),i=M(()=>`${n}-picker ${z(l)?`${n}-input`:``}`);Bd(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)}),D(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`)}),js(g,()=>z(s),e=>P(s,e)),H(e,h),k()}var SSe,CSe,wSe,TSe;function ESe(){return(ESe=s((()=>{Y(),J(),Z(),Kd(),gte(),jp(),oc(),SSe=B(` <!>`,1),CSe=B(`<span role="none" class="value svelte-udhsyb"><!> <!></span>`),wSe=B(`<div role="none" class="svelte-udhsyb"><input type="color" class="svelte-udhsyb"/> <!> <!></div>`),TSe={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 DSe(e,t){O(t,!0),G(e,kSe);let n=M(()=>C(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=OSe(),r=F(n),i=F(r);let o;var s=L(i,2),c=F(s,!0);D(s);var l=L(s,2),u=F(l,!0);D(l),D(r),D(n),R(()=>{o=ss(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),k()}var OSe,kSe;function ASe(){return(ASe=s((()=>{Y(),J(),OSe=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>`),kSe={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 jSe(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),{valueStoreKey:a=`currentValues`}=Pt(`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(()=>C(t.fieldConfig.value,``)),d=M(()=>n()?.isIndexFile??!1),f=M(()=>n()?.collectionName??``),p=M(()=>n()?.fileName),m=M(()=>d8(n(),t.locale,a)),h=M(()=>LI(t.locale)),g=()=>{let[e]=t.keyPath.split(`.`).splice(-2,1);return e&&YH(e)?Number(e):void 0},_=()=>{if(t.keyPath.includes(`.`)&&!(t.keyPath in z(m)))return;let e=z(u)===`{{index}}`?g()??``:qU(z(u),(e,n)=>{let{value:r,transformations:i}=QF(n);if(r===`index`)return String(g()??``);if(!r.startsWith(`fields.`))return``;let a=yU({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?$F({value:a,transformations:i,locale:t.locale}):a});o()!==e&&o(e)};Zr(()=>{z(m),Ri(()=>{_()})});{let n=M(()=>String(o()));Ep(e,{dir:`auto`,get value(){return z(n)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`}})}k(),i()}function MSe(){return(MSe=s((()=>{Y(),J(),jp(),oc(),ZU(),eI(),l3(),f8(),EU(),zI(),ZH()})))()}function NSe(e,t){O(t,!0);var n=PSe(),r=F(n,!0);D(n),R((e,i)=>{K(n,`lang`,e),K(n,`dir`,i),U(r,t.currentValue),n.dir=n.dir},[()=>MI(t.locale),()=>NI(t.locale)]),H(e,n),k()}var PSe;function FSe(){return(FSe=s((()=>{Y(),J(),zI(),PSe=B(`<p> </p>`)})))()}
|
||
/**
|
||
* @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.
|
||
*/
|
||
var ISe=c((e=>{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,ne());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){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&&ee());){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&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?ne():S=!1}}}var ne;if(typeof y==`function`)ne=function(){y(te)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,ie=re.port2;re.port1.onmessage=te,ne=function(){ie.postMessage(null)}}else ne=function(){_(te,0)};function ae(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,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ne()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),LSe=c(((e,t)=>{t.exports=ISe()})),RSe=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=f();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`})),zSe=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=RSe()})),BSe=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=LSe(),n=f(),r=zSe();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 p=Object.assign,m=Symbol.for(`react.element`),h=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`),ee=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),ne=Symbol.for(`react.memo_cache_sentinel`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Symbol.for(`react.client.reference`);function oe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?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 te: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?oe(e.type)||`Memo`:t;case ee:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var se=Array.isArray,ce=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E={pending:!1,data:null,method:null,action:null},ue=[],de=-1;function fe(e){return{current:e}}function pe(e){0>de||(e.current=ue[de],ue[de]=null,de--)}function me(e,t){de++,ue[de]=e.current,e.current=t}var he=fe(null),ge=fe(null),_e=fe(null),ve=fe(null);function ye(e,t){switch(me(_e,t),me(ge,e),me(he,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ld(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ld(t),e=Rd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}pe(he),me(he,e)}function be(){pe(he),pe(ge),pe(_e)}function xe(e){e.memoizedState!==null&&me(ve,e);var t=he.current,n=Rd(t,e.type);t!==n&&(me(ge,e),me(he,n))}function Se(e){ge.current===e&&(pe(he),pe(ge)),ve.current===e&&(pe(ve),qf._currentValue=E)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1<e.stack.indexOf(`
|
||
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
||
`+Ce+e+we}var Ee=!1;function De(e,t){if(!e||Ee)return``;Ee=!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{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Te(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te(`Lazy`);case 13:return e.child!==t&&t!==null?Te(`Suspense Fallback`):Te(`Suspense`);case 19:return Te(`SuspenseList`);case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return Te(`Activity`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
||
Error generating stack: `+e.message+`
|
||
`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(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 tt(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=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(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 nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(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 it(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(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-qe(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&&ct(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ct(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function lt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ut(e,t){var n=t&-t;return n=n&42?1:dt(n),(n&(e.suspendedLanes|t))===0?n:0}function dt(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 ft(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function pt(){var e=le.p;return e===0?(e=window.event,e===void 0?32:lp(e.type)):e}function D(e,t){var n=le.p;try{return le.p=e,t()}finally{le.p=n}}var mt=Math.random().toString(36).slice(2),ht=`__reactFiber$`+mt,gt=`__reactProps$`+mt,_t=`__reactContainer$`+mt,vt=`__reactEvents$`+mt,yt=`__reactListeners$`+mt,bt=`__reactHandles$`+mt,xt=`__reactResources$`+mt,St=`__reactMarker$`+mt;function Ct(e){delete e[ht],delete e[gt],delete e[vt],delete e[yt],delete e[bt]}function wt(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_t]||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 Tt(e){if(e=e[ht]||e[_t]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Dt(e){var t=e[xt];return t||=e[xt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ot(e){e[St]=!0}var kt=new Set,At={};function jt(e,t){Mt(e,t),Mt(e+`Capture`,t)}function Mt(e,t){for(At[e]=t,e=0;e<t.length;e++)kt.add(t[e])}var Nt=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]*$`),Pt={},Ft={};function It(e){return Ae.call(Ft,e)?!0:Ae.call(Pt,e)?!1:Nt.test(e)?Ft[e]=!0:(Pt[e]=!0,!1)}function O(e,t,n){if(It(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 k(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 Lt(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 Rt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Bt(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 Vt(e){if(!e._valueTracker){var t=zt(e)?`checked`:`value`;e._valueTracker=Bt(e,t,``+e[t])}}function Ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=zt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Ut(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 Wt=/[\n"\\]/g;function Gt(e){return e.replace(Wt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Kt(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=``+Rt(t)):e.value!==``+Rt(t)&&(e.value=``+Rt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Jt(e,o,Rt(n)):Jt(e,o,Rt(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=``+Rt(s):e.removeAttribute(`name`)}function qt(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)){Vt(e);return}n=n==null?``:``+Rt(n),t=t==null?n:``+Rt(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),Vt(e)}function Jt(e,t,n){t===`number`&&Ut(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Yt(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=``+Rt(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 Xt(e,t,n){if(t!=null&&(t=``+Rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Rt(n)}function Zt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(se(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Rt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Vt(e)}function Qt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $t=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 en(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||$t.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function tn(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&&en(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&en(e,o,t[o])}function nn(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 rn=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`]]),an=/^[\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 on(e){return an.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function sn(){}var cn=null;function A(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 j(e){var t=Tt(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Kt(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="`+Gt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[gt]||null;if(!a)throw Error(i(90));Kt(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&&Ht(r)}break a;case`textarea`:Xt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Yt(e,!!n.multiple,t,!1)}}}var dn=!1;function fn(e,t,n){if(dn)return e(t,n);dn=!0;try{return e(t)}finally{if(dn=!1,(ln!==null||un!==null)&&(hu(),ln&&(t=ln,e=un,un=ln=null,j(t),e)))for(t=0;t<e.length;t++)j(e[t])}}function pn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[gt]||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 p(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=p({},Tn,{view:0,detail:0}),On=wn(Dn),kn,An,jn,Mn=p({},Dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:M,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(p({},Mn,{dataTransfer:0})),Fn=wn(p({},Dn,{relatedTarget:0})),In=wn(p({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0})),Ln=wn(p({},Tn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Rn=wn(p({},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 eee(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vn[e])?!!t[e]:!1}function M(){return eee}var Hn=wn(p({},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:M,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}})),Un=wn(p({},Mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Wn=wn(p({},Dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:M})),Gn=wn(p({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Kn=wn(p({},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})),qn=wn(p({},Tn,{newState:0,oldState:0})),Jn=[9,13,27,32],Yn=mn&&`CompositionEvent`in window,Xn=null;mn&&`documentMode`in document&&(Xn=document.documentMode);var tee=mn&&`TextEvent`in window&&!Xn,Zn=mn&&(!Yn||Xn&&8<Xn&&11>=Xn),Qn=` `,$n=!1;function er(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function tr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var nr=!1;function rr(e,t){switch(e){case`compositionend`:return tr(t);case`keypress`:return t.which===32?($n=!0,Qn):null;case`textInput`:return e=t.data,e===Qn&&$n?null:e;default:return null}}function ir(e,t){if(nr)return e===`compositionend`||!Yn&&er(e,t)?(e=bn(),yn=vn=_n=null,nr=!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 Zn&&t.locale!==`ko`?null:t.data;default:return null}}var ar={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 or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ar[e.type]:t===`textarea`}function sr(e,t,n,r){ln?un?un.push(r):un=[r]:ln=r,t=xd(t,`onChange`),0<t.length&&(n=new En(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var cr=null,lr=null;function ur(e){pd(e,0)}function dr(e){if(Ht(Et(e)))return e}function fr(e,t){if(e===`change`)return t}var pr=!1;if(mn){var mr;if(mn){var hr=`oninput`in document;if(!hr){var gr=document.createElement(`div`);gr.setAttribute(`oninput`,`return;`),hr=typeof gr.oninput==`function`}mr=hr}else mr=!1;pr=mr&&(!document.documentMode||9<document.documentMode)}function _r(){cr&&(cr.detachEvent(`onpropertychange`,vr),lr=cr=null)}function vr(e){if(e.propertyName===`value`&&dr(lr)){var t=[];sr(t,lr,e,A(e)),fn(ur,t)}}function N(e,t,n){e===`focusin`?(_r(),cr=t,lr=n,cr.attachEvent(`onpropertychange`,vr)):e===`focusout`&&_r()}function yr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return dr(lr)}function P(e,t){if(e===`click`)return dr(t)}function br(e,t){if(e===`input`||e===`change`)return dr(t)}function nee(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var xr=typeof Object.is==`function`?Object.is:nee;function Sr(e,t){if(xr(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(!Ae.call(t,i)||!xr(e[i],t[i]))return!1}return!0}function Cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wr(e,t){var n=Cr(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=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ut(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=Ut(e.document)}return t}function Dr(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 Or=mn&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==Ut(r)||(r=kr,`selectionStart`in r&&Dr(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}),jr&&Sr(jr,r)||(jr=r,r=xd(Ar,`onSelect`),0<r.length&&(t=new En(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=kr)))}function Pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Fr={animationend:Pr(`Animation`,`AnimationEnd`),animationiteration:Pr(`Animation`,`AnimationIteration`),animationstart:Pr(`Animation`,`AnimationStart`),transitionrun:Pr(`Transition`,`TransitionRun`),transitionstart:Pr(`Transition`,`TransitionStart`),transitioncancel:Pr(`Transition`,`TransitionCancel`),transitionend:Pr(`Transition`,`TransitionEnd`)},F={},I={};mn&&(I=document.createElement(`div`).style,`AnimationEvent`in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),`TransitionEvent`in window||delete Fr.transitionend.transition);function L(e){if(F[e])return F[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in I)return F[e]=t[n];return e}var Ir=L(`animationend`),Lr=L(`animationiteration`),Rr=L(`animationstart`),zr=L(`transitionrun`),Br=L(`transitionstart`),Vr=L(`transitioncancel`),Hr=L(`transitionend`),Ur=new Map,Wr=`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(` `);Wr.push(`scrollEnd`);function Gr(e,t){Ur.set(e,t),jt(t,[e])}var Kr=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)},qr=[],Jr=0,Yr=0;function Xr(){for(var e=Jr,t=Yr=Jr=0;t<e;){var n=qr[t];qr[t++]=null;var r=qr[t];qr[t++]=null;var i=qr[t];qr[t++]=null;var a=qr[t];if(qr[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&&ei(n,i,a)}}function Zr(e,t,n,r){qr[Jr++]=e,qr[Jr++]=t,qr[Jr++]=n,qr[Jr++]=r,Yr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qr(e,t,n,r){return Zr(e,t,n,r),ti(e)}function $r(e,t){return Zr(e,null,null,t),ti(e)}function ei(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-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ti(e){if(50<ou)throw ou=0,su=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function ree(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 ri(e,t,n,r){return new ree(e,t,n,r)}function R(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ii(e,t){var n=e.alternate;return n===null?(n=ri(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 ai(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 oi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)R(e)&&(s=1);else if(typeof e==`string`)s=Rf(e,n,he.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case te:return e=ri(31,n,t,a),e.elementType=te,e.lanes=o,e;case _:return si(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=ri(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=ri(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=ri(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 ee:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ri(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function si(e,t,n,r){return e=ri(7,e,r,t),e.lanes=n,e}function ci(e,t,n){return e=ri(6,e,null,t),e.lanes=n,e}function li(e){var t=ri(18,null,null,0);return t.stateNode=e,t}function ui(e,t,n){return t=ri(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var di=new WeakMap;function fi(e,t){if(typeof e==`object`&&e){var n=di.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},di.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var pi=[],mi=0,hi=null,gi=0,_i=[],vi=0,yi=null,bi=1,xi=``;function Si(e,t){pi[mi++]=gi,pi[mi++]=hi,hi=e,gi=t}function Ci(e,t,n){_i[vi++]=bi,_i[vi++]=xi,_i[vi++]=yi,yi=e;var r=bi;e=xi;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,bi=1<<32-qe(t)+i|n<<i|r,xi=a+e}else bi=1<<a|n<<i|r,xi=e}function wi(e){e.return!==null&&(Si(e,1),Ci(e,1,0))}function Ti(e){for(;e===hi;)hi=pi[--mi],pi[mi]=null,gi=pi[--mi],pi[mi]=null;for(;e===yi;)yi=_i[--vi],_i[vi]=null,xi=_i[--vi],_i[vi]=null,bi=_i[--vi],_i[vi]=null}function Ei(e,t){_i[vi++]=bi,_i[vi++]=xi,_i[vi++]=yi,bi=t.id,xi=t.overflow,yi=e}var Di=null,Oi=null,ki=!1,Ai=null,ji=!1,Mi=Error(i(519));function Ni(e){throw Ri(fi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Mi}function Pi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ht]=e,t[gt]=r,n){case`dialog`:md(`cancel`,t),md(`close`,t);break;case`iframe`:case`object`:case`embed`:md(`load`,t);break;case`video`:case`audio`:for(n=0;n<dd.length;n++)md(dd[n],t);break;case`source`:md(`error`,t);break;case`img`:case`image`:case`link`:md(`error`,t),md(`load`,t);break;case`details`:md(`toggle`,t);break;case`input`:md(`invalid`,t),qt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:md(`invalid`,t);break;case`textarea`:md(`invalid`,t),Zt(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||Dd(t.textContent,n)?(r.popover!=null&&(md(`beforetoggle`,t),md(`toggle`,t)),r.onScroll!=null&&md(`scroll`,t),r.onScrollEnd!=null&&md(`scrollend`,t),r.onClick!=null&&(t.onclick=sn),t=!0):t=!1,t||Ni(e,!0)}function Fi(e){for(Di=e.return;Di;)switch(Di.tag){case 5:case 31:case 13:ji=!1;return;case 27:case 3:ji=!0;return;default:Di=Di.return}}function z(e){if(e!==Di)return!1;if(!ki)return Fi(e),ki=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||zd(e.type,e.memoizedProps)),n=!n),n&&Oi&&Ni(e),Fi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Oi=af(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Oi=af(e)}else t===27?(t=Oi,qd(e.type)?(e=rf,rf=null,Oi=e):Oi=t):Oi=Di?nf(e.stateNode.nextSibling):null;return!0}function Ii(){Oi=Di=null,ki=!1}function Li(){var e=Ai;return e!==null&&(Kl===null?Kl=e:Kl.push.apply(Kl,e),Ai=null),e}function Ri(e){Ai===null?Ai=[e]:Ai.push(e)}var zi=fe(null),Bi=null,Vi=null;function Hi(e,t,n){me(zi,t._currentValue),t._currentValue=n}function Ui(e){e._currentValue=zi.current,pe(zi)}function Wi(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 Gi(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),Wi(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),Wi(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 Ki(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;xr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ve.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&&Gi(t,e,n,r),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){Bi=e,Vi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yi(e){return Zi(Bi,e)}function Xi(e,t){return Bi===null&&Ji(e),Zi(e,t)}function Zi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vi===null){if(e===null)throw Error(i(308));Vi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vi=Vi.next=t;return n}var Qi=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()})}},$i=t.unstable_scheduleCallback,ea=t.unstable_NormalPriority,ta={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function na(){return{controller:new Qi,data:new Map,refCount:0}}function ra(e){e.refCount--,e.refCount===0&&$i(ea,function(){e.controller.abort()})}var ia=null,aa=0,oa=0,sa=null;function ca(e,t){if(ia===null){var n=ia=[];aa=0,oa=ad(),sa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return aa++,t.then(la,la),t}function la(){if(--aa===0&&ia!==null){sa!==null&&(sa.status=`fulfilled`);var e=ia;ia=null,oa=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ua(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 da=ce.S;ce.S=function(e,t){Yl=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&ca(e,t),da!==null&&da(e,t)};var fa=fe(null);function pa(){var e=fa.current;return e===null?Al.pooledCache:e}function ma(e,t){t===null?me(fa,fa.current):me(fa,t.pool)}function ha(){var e=pa();return e===null?null:{parent:ta._currentValue,pool:e}}var ga=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(sn,sn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e;default:if(typeof t.status==`string`)t.then(sn,sn);else{if(e=Al,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,Ta(e),e}throw Ca=t,ga}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,ga):e}}var Ca=null;function wa(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function Ta(e){if(e===ga||e===va)throw Error(i(483))}var Ea=null,Da=0;function Oa(e){var t=Da;return Da+=1,Ea===null&&(Ea=[]),xa(Ea,e,t)}function ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Aa(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function B(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=ii(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=ci(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===ee&&Sa(i)===t.type)?(t=a(t,n.props),ka(t,n),t.return=e,t):(t=oi(n.type,n.key,n.props,null,e.mode,r),ka(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=ui(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=si(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=ci(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=oi(t.type,t.key,t.props,null,e.mode,n),ka(n,t),n.return=e,n;case g:return t=ui(t,e.mode,n),t.return=e,t;case ee:return t=Sa(t),f(e,t,n)}if(se(t)||ie(t))return t=si(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Oa(t),n);if(t.$$typeof===x)return f(e,Xi(e,t),n);Aa(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 h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case ee:return n=Sa(n),p(e,t,n,r)}if(se(n)||ie(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Oa(n),r);if(n.$$typeof===x)return p(e,t,Xi(e,n),r);Aa(e,n)}return null}function m(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 h: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 ee:return r=Sa(r),m(e,t,n,r,i)}if(se(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Oa(r),i);if(r.$$typeof===x)return m(e,t,n,Xi(t,r),i);Aa(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),ki&&Si(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return ki&&Si(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),ki&&Si(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),ki&&Si(a,g),u;if(h===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 ki&&Si(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),ki&&Si(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 h: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===ee&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=oi(o.type,o.key,o.props,null,e.mode,c),ka(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}n(e,r);break}t(e,r),r=r.sibling}c=ui(o,e.mode,c),c.return=e,e=c}return s(e);case ee:return o=Sa(o),b(e,r,o,c)}if(se(o))return v(e,r,o,c);if(ie(o)){if(l=ie(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,Oa(o),c);if(o.$$typeof===x)return b(e,r,Xi(e,o),c);Aa(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=ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ja=B(!0),V=B(!1),H=!1;function Ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Na(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 Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function U(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,kl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ti(e),ei(e,null,n),t}return Zr(e,r,t,n),ti(e)}function Fa(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,lt(e,n)}}function Ia(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 La=!1;function Ra(){if(La){var e=sa;if(e!==null)throw e}}function za(e,t,n,r){La=!1;var i=e.updateQueue;H=!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 f=s.lane&-536870913,m=f!==s.lane;if(m?(Ml&f)===f:(r&f)===f){f!==0&&f===oa&&(La=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:H=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;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),Bl|=o,e.lanes=o,e.memoizedState=d}}function Ba(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Va(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ba(n[e],t)}var Ha=fe(null),Ua=fe(0);function Wa(e,t){e=Rl,me(Ua,e),me(Ha,t),Rl=e|t.baseLanes}function Ga(){me(Ua,Rl),me(Ha,Ha.current)}function Ka(){Rl=Ua.current,pe(Ha),pe(Ua)}var qa=fe(null),Ja=null;function Ya(e){var t=e.alternate;me(W,W.current&1),me(qa,e),Ja===null&&(t===null||Ha.current!==null||t.memoizedState!==null)&&(Ja=e)}function Xa(e){me(W,W.current),me(qa,e),Ja===null&&(Ja=e)}function Za(e){e.tag===22?(me(W,W.current),me(qa,e),Ja===null&&(Ja=e)):Qa(e)}function Qa(){me(W,W.current),me(qa,qa.current)}function $a(e){pe(qa),Ja===e&&(Ja=null),pe(W)}var W=fe(0);function eo(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 to=0,no=null,ro=null,io=null,ao=!1,oo=!1,so=!1,co=0,lo=0,uo=null,fo=0;function po(){throw Error(i(321))}function mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xr(e[n],t[n]))return!1;return!0}function ho(e,t,n,r,i,a){return to=a,no=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ce.H=e===null||e.memoizedState===null?As:js,so=!1,a=n(r,i),so=!1,oo&&(a=_o(t,n,r,i)),go(e),a}function go(e){ce.H=ks;var t=ro!==null&&ro.next!==null;if(to=0,io=ro=no=null,ao=!1,lo=0,uo=null,t)throw Error(i(300));e===null||Js||(e=e.dependencies,e!==null&&qi(e)&&(Js=!0))}function _o(e,t,n,r){no=e;var a=0;do{if(oo&&(uo=null),lo=0,oo=!1,25<=a)throw Error(i(301));if(a+=1,io=ro=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ce.H=Ms,o=t(n,r)}while(oo);return o}function vo(){var e=ce.H,t=e.useState()[0];return t=typeof t.then==`function`?To(t):t,e=e.useState()[0],(ro===null?null:ro.memoizedState)!==e&&(no.flags|=1024),t}function yo(){var e=co!==0;return co=0,e}function bo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function xo(e){if(ao){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ao=!1}to=0,io=ro=no=null,oo=!1,lo=co=0,uo=null}function So(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return io===null?no.memoizedState=io=e:io=io.next=e,io}function Co(){if(ro===null){var e=no.alternate;e=e===null?null:e.memoizedState}else e=ro.next;var t=io===null?no.memoizedState:io.next;if(t!==null)io=t,ro=e;else{if(e===null)throw no.alternate===null?Error(i(467)):Error(i(310));ro=e,e={memoizedState:ro.memoizedState,baseState:ro.baseState,baseQueue:ro.baseQueue,queue:ro.queue,next:null},io===null?no.memoizedState=io=e:io=io.next=e}return io}function wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function To(e){var t=lo;return lo+=1,uo===null&&(uo=[]),e=xa(uo,e,t),t=no,(io===null?t.memoizedState:io.next)===null&&(t=t.alternate,ce.H=t===null||t.memoizedState===null?As:js),e}function Eo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return To(e);if(e.$$typeof===x)return Yi(e)}throw Error(i(438,String(e)))}function Do(e){var t=null,n=no.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=no.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=wo(),no.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]=ne;return t.index++,n}function Oo(e,t){return typeof t==`function`?t(e):t}function ko(e){return Ao(Co(),ro,e)}function Ao(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?(to&f)===f:(Ml&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===oa&&(d=!0);else if((to&p)===p){u=u.next,p===oa&&(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,no.lanes|=p,Bl|=p;f=u.action,so&&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,no.lanes|=f,Bl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!xr(o,e.memoizedState)&&(Js=!0,d&&(n=sa,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 jo(e){var t=Co(),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);xr(o,t.memoizedState)||(Js=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Mo(e,t,n){var r=no,a=Co(),o=ki;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!xr((ro||a).memoizedState,n);if(s&&(a.memoizedState=n,Js=!0),a=a.queue,ns(Fo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||io!==null&&io.memoizedState.tag&1){if(r.flags|=2048,Zo(9,{destroy:void 0},Po.bind(null,r,a,n,t),null),Al===null)throw Error(i(349));o||to&127||No(r,t,n)}return n}function No(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=no.updateQueue,t===null?(t=wo(),no.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Po(e,t,n,r){t.value=n,t.getSnapshot=r,Io(t)&&Lo(e)}function Fo(e,t,n){return n(function(){Io(t)&&Lo(e)})}function Io(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xr(e,n)}catch{return!0}}function Lo(e){var t=$r(e,2);t!==null&&uu(t,e,2)}function Ro(e){var t=So();if(typeof e==`function`){var n=e;if(e=n(),so){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:e},t}function zo(e,t,n,r){return e.baseState=n,Ao(e,ro,typeof r==`function`?r:Oo)}function Bo(e,t,n,r,a){if(Es(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)}};ce.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Vo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Vo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=ce.T,o={};ce.T=o;try{var s=n(i,r),c=ce.S;c!==null&&c(o,s),Ho(e,t,s)}catch(n){G(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),ce.T=a}}else try{a=n(i,r),Ho(e,t,a)}catch(n){G(e,t,n)}}function Ho(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Uo(e,t,n)},function(n){return G(e,t,n)}):Uo(e,t,n)}function Uo(e,t,n){t.status=`fulfilled`,t.value=n,Wo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Vo(e,n)))}function G(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Wo(t),t=t.next;while(t!==r)}e.action=null}function Wo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Go(e,t){return t}function Ko(e,t){if(ki){var n=Al.formState;if(n!==null){a:{var r=no;if(ki){if(Oi){b:{for(var i=Oi,a=ji;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){Oi=nf(i.nextSibling),r=i.data===`F!`;break a}}Ni(r)}r=!1}r&&(t=n[0])}}return n=So(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:t},n.queue=r,n=Cs.bind(null,no,r),r.dispatch=n,r=Ro(!1),a=Ts.bind(null,no,!1,r.queue),r=So(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Bo.bind(null,no,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function qo(e){return Jo(Co(),ro,e)}function Jo(e,t,n){if(t=Ao(e,t,Go)[0],e=ko(Oo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=To(t)}catch(e){throw e===ga?va:e}else r=t;t=Co();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(no.flags|=2048,Zo(9,{destroy:void 0},Yo.bind(null,i,n),null)),[r,a,e]}function Yo(e,t){e.action=t}function Xo(e){var t=Co(),n=ro;if(n!==null)return Jo(t,n,e);Co(),t=t.memoizedState,n=Co();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Zo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=no.updateQueue,t===null&&(t=wo(),no.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 Qo(){return Co().memoizedState}function $o(e,t,n,r){var i=So();no.flags|=e,i.memoizedState=Zo(1|t,{destroy:void 0},n,r===void 0?null:r)}function es(e,t,n,r){var i=Co();r=r===void 0?null:r;var a=i.memoizedState.inst;ro!==null&&r!==null&&mo(r,ro.memoizedState.deps)?i.memoizedState=Zo(t,a,n,r):(no.flags|=e,i.memoizedState=Zo(1|t,a,n,r))}function ts(e,t){$o(8390656,8,e,t)}function ns(e,t){es(2048,8,e,t)}function rs(e){no.flags|=4;var t=no.updateQueue;if(t===null)t=wo(),no.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function is(e){var t=Co().memoizedState;return rs({ref:t,nextImpl:e}),function(){if(kl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function as(e,t){return es(4,2,e,t)}function os(e,t){return es(4,4,e,t)}function ss(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 cs(e,t,n){n=n==null?null:n.concat([e]),es(4,4,ss.bind(null,t,e),n)}function ls(){}function us(e,t){var n=Co();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Co();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&mo(t,r[1]))return r[0];if(r=e(),so){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function fs(e,t,n){return n===void 0||to&1073741824&&!(Ml&261930)?e.memoizedState=t:(e.memoizedState=n,e=lu(),no.lanes|=e,Bl|=e,n)}function ps(e,t,n,r){return xr(n,t)?n:Ha.current===null?!(to&42)||to&1073741824&&!(Ml&261930)?(Js=!0,e.memoizedState=n):(e=lu(),no.lanes|=e,Bl|=e,t):(e=fs(e,n,r),xr(e,t)||(Js=!0),e)}function ms(e,t,n,r,i){var a=le.p;le.p=a!==0&&8>a?a:8;var o=ce.T,s={};ce.T=s,Ts(e,!1,t,n);try{var c=i(),l=ce.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ws(e,t,ua(c,r),cu(e)):ws(e,t,r,cu(e))}catch(n){ws(e,t,{then:function(){},status:`rejected`,reason:n},cu())}finally{le.p=a,o!==null&&s.types!==null&&(o.types=s.types),ce.T=o}}function K(){}function hs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=gs(e).queue;ms(e,a,t,E,n===null?K:function(){return _s(e),n(r)})}function gs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:E,baseState:E,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:E},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _s(e){var t=gs(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},cu())}function vs(){return Yi(qf)}function ys(){return Co().memoizedState}function bs(){return Co().memoizedState}function xs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=cu();e=Pa(n);var r=U(t,e,n);r!==null&&(uu(r,t,n),Fa(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function Ss(e,t,n){var r=cu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e)?Ds(t,n):(n=Qr(e,t,n,r),n!==null&&(uu(n,e,r),Os(n,t,r)))}function Cs(e,t,n){ws(e,t,n,cu())}function ws(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Ds(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,xr(s,o))return Zr(e,t,i,0),Al===null&&Xr(),!1}catch{}if(n=Qr(e,t,i,r),n!==null)return uu(n,e,r),Os(n,t,r),!0}return!1}function Ts(e,t,n,r){if(r={lane:2,revertLane:ad(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(i(479))}else t=Qr(e,n,r,2),t!==null&&uu(t,e,2)}function Es(e){var t=e.alternate;return e===no||t!==null&&t===no}function Ds(e,t){oo=ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Os(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var ks={readContext:Yi,use:Eo,useCallback:po,useContext:po,useEffect:po,useImperativeHandle:po,useLayoutEffect:po,useInsertionEffect:po,useMemo:po,useReducer:po,useRef:po,useState:po,useDebugValue:po,useDeferredValue:po,useTransition:po,useSyncExternalStore:po,useId:po,useHostTransitionStatus:po,useFormState:po,useActionState:po,useOptimistic:po,useMemoCache:po,useCacheRefresh:po};ks.useEffectEvent=po;var As={readContext:Yi,use:Eo,useCallback:function(e,t){return So().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:ts,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),$o(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){$o(4,2,e,t)},useMemo:function(e,t){var n=So();t=t===void 0?null:t;var r=e();if(so){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=So();if(n!==void 0){var i=n(t);if(so){Ke(!0);try{n(t)}finally{Ke(!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=Ss.bind(null,no,e),[r.memoizedState,e]},useRef:function(e){var t=So();return e={current:e},t.memoizedState=e},useState:function(e){e=Ro(e);var t=e.queue,n=Cs.bind(null,no,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ls,useDeferredValue:function(e,t){return fs(So(),e,t)},useTransition:function(){var e=Ro(!1);return e=ms.bind(null,no,e.queue,!0,!1),So().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=no,a=So();if(ki){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Al===null)throw Error(i(349));Ml&127||No(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ts(Fo.bind(null,r,o,e),[e]),r.flags|=2048,Zo(9,{destroy:void 0},Po.bind(null,r,o,n,t),null),n},useId:function(){var e=So(),t=Al.identifierPrefix;if(ki){var n=xi,r=bi;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=co++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=fo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:vs,useFormState:Ko,useActionState:Ko,useOptimistic:function(e){var t=So();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ts.bind(null,no,!0,n),n.dispatch=t,[e,t]},useMemoCache:Do,useCacheRefresh:function(){return So().memoizedState=xs.bind(null,no)},useEffectEvent:function(e){var t=So(),n={impl:e};return t.memoizedState=n,function(){if(kl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},js={readContext:Yi,use:Eo,useCallback:us,useContext:Yi,useEffect:ns,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:ko,useRef:Qo,useState:function(){return ko(Oo)},useDebugValue:ls,useDeferredValue:function(e,t){return ps(Co(),ro.memoizedState,e,t)},useTransition:function(){var e=ko(Oo)[0],t=Co().memoizedState;return[typeof e==`boolean`?e:To(e),t]},useSyncExternalStore:Mo,useId:ys,useHostTransitionStatus:vs,useFormState:qo,useActionState:qo,useOptimistic:function(e,t){return zo(Co(),ro,e,t)},useMemoCache:Do,useCacheRefresh:bs};js.useEffectEvent=is;var Ms={readContext:Yi,use:Eo,useCallback:us,useContext:Yi,useEffect:ns,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:jo,useRef:Qo,useState:function(){return jo(Oo)},useDebugValue:ls,useDeferredValue:function(e,t){var n=Co();return ro===null?fs(n,e,t):ps(n,ro.memoizedState,e,t)},useTransition:function(){var e=jo(Oo)[0],t=Co().memoizedState;return[typeof e==`boolean`?e:To(e),t]},useSyncExternalStore:Mo,useId:ys,useHostTransitionStatus:vs,useFormState:Xo,useActionState:Xo,useOptimistic:function(e,t){var n=Co();return ro===null?(n.baseState=e,[e,n.queue.dispatch]):zo(n,ro,e,t)},useMemoCache:Do,useCacheRefresh:bs};Ms.useEffectEvent=is;function Ns(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ps={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cu(),i=Pa(r);i.payload=t,n!=null&&(i.callback=n),t=U(e,i,r),t!==null&&(uu(t,e,r),Fa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cu(),i=Pa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=U(e,i,r),t!==null&&(uu(t,e,r),Fa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cu(),r=Pa(n);r.tag=2,t!=null&&(r.callback=t),t=U(e,r,n),t!==null&&(uu(t,e,n),Fa(t,e,n))}};function Fs(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?!Sr(n,r)||!Sr(i,a):!0}function Is(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&&Ps.enqueueReplaceState(t,t.state,null)}function Ls(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=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Rs(e){Kr(e)}function zs(e){console.error(e)}function Bs(e){Kr(e)}function Vs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Hs(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 Us(e,t,n){return n=Pa(n),n.tag=3,n.payload={element:null},n.callback=function(){Vs(e,t)},n}function Ws(e){return e=Pa(e),e.tag=3,e}function Gs(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(){Hs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Hs(t,n,r),typeof i!=`function`&&(Ql===null?Ql=new Set([this]):Ql.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ks(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ki(t,n,a,!0),n=qa.current,n!==null){switch(n.tag){case 31:case 13:return Ja===null?Su():n.alternate===null&&zl===0&&(zl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Vu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?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)),Vu(e,r,a)),!1}throw Error(i(435,n.tag))}return Vu(e,r,a),Su(),!1}if(ki)return t=qa.current,t===null?(r!==Mi&&(t=Error(i(423),{cause:r}),Ri(fi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=fi(r,n),a=Us(e.stateNode,r,a),Ia(e,a),zl!==4&&(zl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Mi&&(e=Error(i(422),{cause:r}),Ri(fi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=fi(o,n),Gl===null?Gl=[o]:Gl.push(o),zl!==4&&(zl=2),t===null)return!0;r=fi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Us(n.stateNode,r,e),Ia(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`&&(Ql===null||!Ql.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ws(a),Gs(a,e,n,r),Ia(n,a),!1}n=n.return}while(n!==null);return!1}var qs=Error(i(461)),Js=!1;function q(e,t,n,r){t.child=e===null?V(t,null,n,r):ja(t,e.child,n,r)}function Ys(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 Ji(t),r=ho(e,t,n,o,a,i),s=yo(),e!==null&&!Js?(bo(e,t,i),_c(e,t,i)):(ki&&s&&wi(t),t.flags|=1,q(e,t,r,i),t.child)}function Xs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!R(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Zs(e,t,a,r,i)):(e=oi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!vc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Sr:n,n(o,r)&&e.ref===t.ref)return _c(e,t,i)}return t.flags|=1,e=ii(a,r),e.ref=t.ref,e.return=t,t.child=e}function Zs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Sr(a,r)&&e.ref===t.ref){if(Js=!1,t.pendingProps=r=a,vc(e,i))e.flags&131072&&(Js=!0);else return t.lanes=e.lanes,_c(e,t,i)}}return ic(e,t,n,r,i)}function Qs(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 ec(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ma(t,a===null?null:a.cachePool),a===null?Ga():Wa(t,a),Za(t);else return r=t.lanes=536870912,ec(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ma(t,null),Ga(),Qa(t)):(ma(t,a.cachePool),Wa(t,a),Qa(t),t.memoizedState=null);return q(e,t,i,n),t.child}function $s(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ec(e,t,n,r,i){var a=pa();return a=a===null?null:{parent:ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ma(t,null),Ga(),Za(t),e!==null&&Ki(e,t,r,!0),t.childLanes=i,null}function tc(e,t){return t=fc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function J(e,t,n){return ja(t,e.child,null,n),e=tc(t,t.pendingProps),e.flags|=2,$a(t),t.memoizedState=null,e}function nc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(ki){if(r.mode===`hidden`)return e=tc(t,r),t.lanes=536870912,$s(null,e);if(Xa(t),(e=Oi)?(e=Qd(e,ji),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yi===null?null:{id:bi,overflow:xi},retryLane:536870912,hydrationErrors:null},n=li(e),n.return=t,t.child=n,Di=t,Oi=null)):e=null,e===null)throw Ni(t);return t.lanes=536870912,null}return tc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Xa(t),a){if(t.flags&256)t.flags&=-257,t=J(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Js||Ki(e,t,n,!1),a=(n&e.childLanes)!==0,Js||a){if(r=Al,r!==null&&(s=ut(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,$r(e,s),uu(r,e,s),qs;Su(),t=J(e,t,n)}else e=o.treeContext,Oi=nf(s.nextSibling),Di=t,ki=!0,Ai=null,ji=!1,e!==null&&Ei(t,e),t=tc(t,r),t.flags|=4096;return t}return e=ii(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function rc(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 ic(e,t,n,r,i){return Ji(t),n=ho(e,t,n,r,void 0,i),r=yo(),e!==null&&!Js?(bo(e,t,i),_c(e,t,i)):(ki&&r&&wi(t),t.flags|=1,q(e,t,n,i),t.child)}function ac(e,t,n,r,i,a){return Ji(t),t.updateQueue=null,n=_o(t,r,n,i),go(e),r=yo(),e!==null&&!Js?(bo(e,t,a),_c(e,t,a)):(ki&&r&&wi(t),t.flags|=1,q(e,t,n,a),t.child)}function oc(e,t,n,r,i){if(Ji(t),t.stateNode===null){var a=ni,o=n.contextType;typeof o==`object`&&o&&(a=Yi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ps,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ma(t),o=n.contextType,a.context=typeof o==`object`&&o?Yi(o):ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ns(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&&Ps.enqueueReplaceState(a,a.state,null),za(t,r,a,i),Ra(),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=Ls(n,s);a.props=c;var l=a.context,u=n.contextType;o=ni,typeof u==`object`&&u&&(o=Yi(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)&&Is(t,a,r,o),H=!1;var f=t.memoizedState;a.state=f,za(t,r,a,i),Ra(),l=t.memoizedState,s||f!==l||H?(typeof d==`function`&&(Ns(t,n,d,r),l=t.memoizedState),(c=H||Fs(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,Na(e,t),o=t.memoizedProps,u=Ls(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ni,typeof l==`object`&&l&&(c=Yi(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)&&Is(t,a,r,c),H=!1,f=t.memoizedState,a.state=f,za(t,r,a,i),Ra();var p=t.memoizedState;o!==d||f!==p||H||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof s==`function`&&(Ns(t,n,s,r),p=t.memoizedState),(u=H||Fs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&qi(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,rc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ja(t,e.child,null,i),t.child=ja(t,null,n,i)):q(e,t,n,i),t.memoizedState=a.state,e=t.child):e=_c(e,t,i),e}function Y(e,t,n,r){return Ii(),t.flags|=256,q(e,t,n,r),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cc(e){return{baseLanes:e,cachePool:ha()}}function lc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Ul),e}function uc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(W.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(ki){if(a?Ya(t):Qa(t),(e=Oi)?(e=Qd(e,ji),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yi===null?null:{id:bi,overflow:xi},retryLane:536870912,hydrationErrors:null},n=li(e),n.return=t,t.child=n,Di=t,Oi=null)):e=null,e===null)throw Ni(t);return ef(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Qa(t),a=t.mode,c=fc({mode:`hidden`,children:c},a),r=si(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=cc(n),r.childLanes=lc(e,s,n),t.memoizedState=sc,$s(null,r)):(Ya(t),dc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ya(t),t.flags&=-257,t=pc(e,t,n)):t.memoizedState===null?(Qa(t),c=r.fallback,a=t.mode,r=fc({mode:`visible`,children:r.children},a),c=si(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,ja(t,e.child,null,n),r=t.child,r.memoizedState=cc(n),r.childLanes=lc(e,s,n),t.memoizedState=sc,t=$s(null,r)):(Qa(t),t.child=e.child,t.flags|=128,t=null);else if(Ya(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,Ri({value:r,source:null,stack:null}),t=pc(e,t,n)}else if(Js||Ki(e,t,n,!1),s=(n&e.childLanes)!==0,Js||s){if(s=Al,s!==null&&(r=ut(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,$r(e,r),uu(s,e,r),qs;$d(c)||Su(),t=pc(e,t,n)}else $d(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Oi=nf(c.nextSibling),Di=t,ki=!0,Ai=null,ji=!1,e!==null&&Ei(t,e),t=dc(t,r.children),t.flags|=4096);return t}return a?(Qa(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ii(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=si(c,a,n,null),c.flags|=2):c=ii(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,$s(null,r),r=t.child,c=e.child.memoizedState,c===null?c=cc(n):(a=c.cachePool,a===null?a=ha():(l=ta._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=lc(e,s,n),t.memoizedState=sc,$s(e.child,r)):(Ya(t),n=e.child,e=n.sibling,n=ii(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 dc(e,t){return t=fc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function fc(e,t){return e=ri(22,e,null,t),e.lanes=0,e}function pc(e,t,n){return ja(t,e.child,null,n),e=dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wi(e.return,t,n)}function hc(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 gc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=W.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,me(W,o),q(e,t,r,n),r=ki?gi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mc(e,n,t);else if(e.tag===19)mc(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&&eo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),hc(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&&eo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}hc(t,!0,n,null,a,r);break;case`together`:hc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function _c(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ki(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=ii(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ii(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&qi(e)))}function yc(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),Hi(t,ta,e.memoizedState.cache),Ii();break;case 27:case 5:xe(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ya(t),e=_c(e,t,n),e===null?null:e.sibling):uc(e,t,n):(Ya(t),t.flags|=128,null);Ya(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Ki(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return gc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),me(W,W.current),r)break;return null;case 22:return t.lanes=0,Qs(e,t,n,t.pendingProps);case 24:Hi(t,ta,e.memoizedState.cache)}return _c(e,t,n)}function bc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Js=!0;else{if(!vc(e,n)&&!(t.flags&128))return Js=!1,yc(e,t,n);Js=!!(e.flags&131072)}}else Js=!1,ki&&t.flags&1048576&&Ci(t,gi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)R(e)?(r=Ls(e,r),t.tag=1,t=oc(null,t,e,r,n)):(t.tag=0,t=ic(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=Ys(null,t,e,r,n);break a}if(a===T){t.tag=14,t=Xs(null,t,e,r,n);break a}}throw t=oe(e)||e,Error(i(306,t,``))}}return t;case 0:return ic(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ls(r,t.pendingProps),oc(e,t,r,a,n);case 3:a:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Na(e,t),za(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Hi(t,ta,r),r!==o.cache&&Gi(t,[ta],n,!0),Ra(),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=Y(e,t,r,n);break a}if(r!==a){a=fi(Error(i(424)),t),Ri(a),t=Y(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Oi=nf(e.firstChild),Di=t,ki=!0,Ai=null,ji=!0,n=V(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),r===a){t=_c(e,t,n);break a}q(e,t,r,n)}t=t.child}return t;case 26:return rc(e,t),e===null?(n=wf(t.type,null,t.pendingProps,null))?t.memoizedState=n:ki||(n=t.type,e=t.pendingProps,r=Id(_e.current).createElement(n),r[ht]=t,r[gt]=e,Ad(r,n,e),Ot(r),t.stateNode=r):t.memoizedState=wf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&ki&&(r=t.stateNode=sf(t.type,t.pendingProps,_e.current),Di=t,ji=!0,a=Oi,qd(t.type)?(rf=a,Oi=nf(r.firstChild)):Oi=a),q(e,t,t.pendingProps.children,n),rc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ki&&((a=r=Oi)&&(r=Zd(r,t.type,t.pendingProps,ji),r===null?a=!1:(t.stateNode=r,Di=t,Oi=nf(r.firstChild),ji=!1,a=!0)),a||Ni(t)),xe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,zd(a,o)?r=null:s!==null&&zd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=ho(e,t,vo,null,null,n),qf._currentValue=a),rc(e,t),q(e,t,r,n),t.child;case 6:return e===null&&ki&&((e=n=Oi)&&(n=iee(n,t.pendingProps,ji),n===null?e=!1:(t.stateNode=n,Di=t,Oi=null,e=!0)),e||Ni(t)),null;case 13:return uc(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ja(t,null,r,n):q(e,t,r,n),t.child;case 11:return Ys(e,t,t.type,t.pendingProps,n);case 7:return q(e,t,t.pendingProps,n),t.child;case 8:return q(e,t,t.pendingProps.children,n),t.child;case 12:return q(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Hi(t,t.type,r.value),q(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ji(t),a=Yi(a),r=r(a),t.flags|=1,q(e,t,r,n),t.child;case 14:return Xs(e,t,t.type,t.pendingProps,n);case 15:return Zs(e,t,t.type,t.pendingProps,n);case 19:return gc(e,t,n);case 31:return nc(e,t,n);case 22:return Qs(e,t,n,t.pendingProps);case 24:return Ji(t),r=Yi(ta),e===null?(a=pa(),a===null&&(a=Al,o=na(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ma(t),Hi(t,ta,a)):((e.lanes&n)!==0&&(Na(e,t),za(t,null,null,n),Ra()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Hi(t,ta,r),r!==a.cache&&Gi(t,[ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Hi(t,ta,r))),q(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function xc(e){e.flags|=4}function Sc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(yu())e.flags|=8192;else throw Ca=ya,_a}}else e.flags&=-16777217}function Cc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!zf(t)){if(yu())e.flags|=8192;else throw Ca=ya,_a}}function wc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:it(),e.lanes|=t,Wl|=t)}function Tc(e,t){if(!ki)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 Ec(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 Dc(e,t,n){var r=t.pendingProps;switch(Ti(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ec(t),null;case 1:return Ec(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ui(ta),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(z(t)?xc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Li())),Ec(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(xc(t),o===null?(Ec(t),Sc(t,a,null,r,n)):(Ec(t),Cc(t,o))):o?o===e.memoizedState?(Ec(t),t.flags&=-16777217):(xc(t),Ec(t),Cc(t,o)):(e=e.memoizedProps,e!==r&&xc(t),Ec(t),Sc(t,a,e,r,n)),null;case 27:if(Se(t),n=_e.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ec(t),null}e=he.current,z(t)?Pi(t,e):(e=sf(a,r,n),t.stateNode=e,xc(t))}return Ec(t),null;case 5:if(Se(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ec(t),null}if(o=he.current,z(t))Pi(t,o);else{var s=Id(_e.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[gt]=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(Ad(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&&xc(t)}}return Ec(t),Sc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&xc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=_e.current,z(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Di,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Dd(e.nodeValue,n)),e||Ni(t,!0)}else e=Id(e).createTextNode(r),e[ht]=t,t.stateNode=e}return Ec(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=z(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 Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ec(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?($a(t),t):($a(t),null);if(t.flags&128)throw Error(i(558))}return Ec(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=z(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 Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ec(t),a=!1}else a=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?($a(t),t):($a(t),null)}return $a(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),wc(t,t.updateQueue),Ec(t),null);case 4:return be(),e===null&&_d(t.stateNode.containerInfo),Ec(t),null;case 10:return Ui(t.type),Ec(t),null;case 19:if(pe(W),r=t.memoizedState,r===null)return Ec(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Tc(r,!1);else{if(zl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=eo(e),o!==null){for(t.flags|=128,Tc(r,!1),e=o.updateQueue,t.updateQueue=e,wc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ai(n,e),n=n.sibling;return me(W,W.current&1|2),ki&&Si(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>Xl&&(t.flags|=128,a=!0,Tc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=eo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,wc(t,e),Tc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!ki)return Ec(t),null}else 2*Fe()-r.renderingStartTime>Xl&&n!==536870912&&(t.flags|=128,a=!0,Tc(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?(Ec(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,n=W.current,me(W,a?n&1|2:n&1),ki&&Si(t,r.treeForkCount),e);case 22:case 23:return $a(t),Ka(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ec(t),t.subtreeFlags&6&&(t.flags|=8192)):Ec(t),n=t.updateQueue,n!==null&&wc(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&&pe(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Ec(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Oc(e,t){switch(Ti(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),be(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if($a(t),t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($a(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(W),null;case 4:return be(),null;case 10:return Ui(t.type),null;case 22:case 23:return $a(t),Ka(),e!==null&&pe(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function kc(e,t){switch(Ti(t),t.tag){case 3:Ui(ta),be();break;case 26:case 27:case 5:Se(t);break;case 4:be();break;case 31:t.memoizedState!==null&&$a(t);break;case 13:$a(t);break;case 19:pe(W);break;case 10:Ui(t.type);break;case 22:case 23:$a(t),Ka(),e!==null&&pe(fa);break;case 24:Ui(ta)}}function Ac(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){Bu(t,t.return,e)}}function jc(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){Bu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Bu(t,t.return,e)}}function Mc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Va(t,n)}catch(t){Bu(e,e.return,t)}}}function Nc(e,t,n){n.props=Ls(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Bu(e,t,n)}}function Pc(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){Bu(e,t,n)}}function Fc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Bu(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){Bu(e,t,n)}else n.current=null}}function Ic(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){Bu(e,e.return,t)}}function Lc(e,t,n){try{var r=e.stateNode;jd(r,e.type,n,t),r[gt]=t}catch(t){Bu(e,e.return,t)}}function Rc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qd(e.type)||e.tag===4}function zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Rc(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&&qd(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 Bc(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=sn));else if(r!==4&&(r===27&&qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Bc(e,t,n),e=e.sibling;e!==null;)Bc(e,t,n),e=e.sibling}function Vc(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&&qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Vc(e,t,n),e=e.sibling;e!==null;)Vc(e,t,n),e=e.sibling}function Hc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ad(t,r,n),t[ht]=e,t[gt]=n}catch(t){Bu(e,e.return,t)}}var Uc=!1,Wc=!1,Gc=!1,Kc=typeof WeakSet==`function`?WeakSet:Set,qc=null;function Jc(e,t){if(e=e.containerInfo,Pd=np,e=Er(e),Dr(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(Fd={focusedElem:e,selectionRange:n},np=!1,qc=t;qc!==null;)if(t=qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,qc=e;else for(;qc!==null;){switch(t=qc,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=Ls(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Bu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Xd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:Xd(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,qc=e;break}qc=t.return}}function Yc(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ul(e,n),r&4&&Ac(5,n);break;case 1:if(ul(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Bu(n,n.return,e)}else{var i=Ls(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Bu(n,n.return,e)}}}r&64&&Mc(n),r&512&&Pc(n,n.return);break;case 3:if(ul(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{Va(e,t)}catch(e){Bu(n,n.return,e)}}break;case 27:t===null&&r&4&&Hc(n);case 26:case 5:ul(e,n),t===null&&r&4&&Ic(n),r&512&&Pc(n,n.return);break;case 12:ul(e,n);break;case 31:ul(e,n),r&4&&tl(e,n);break;case 13:ul(e,n),r&4&&nl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=X.bind(null,n),tf(e,n))));break;case 22:if(r=n.memoizedState!==null||Uc,!r){t=t!==null&&t.memoizedState!==null||Wc,i=Uc;var a=Wc;Uc=r,(Wc=t)&&!a?fl(e,n,!!(n.subtreeFlags&8772)):ul(e,n),Uc=i,Wc=a}break;case 30:break;default:ul(e,n)}}function Xc(e){var t=e.alternate;t!==null&&(e.alternate=null,Xc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ct(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 Zc=null,Qc=!1;function $c(e,t,n){for(n=n.child;n!==null;)el(e,t,n),n=n.sibling}function el(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:Wc||Fc(n,t),$c(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wc||Fc(n,t);var r=Zc,i=Qc;qd(n.type)&&(Zc=n.stateNode,Qc=!1),$c(e,t,n),cf(n.stateNode),Zc=r,Qc=i;break;case 5:Wc||Fc(n,t);case 6:if(r=Zc,i=Qc,Zc=null,$c(e,t,n),Zc=r,Qc=i,Zc!==null){if(Qc)try{(Zc.nodeType===9?Zc.body:Zc.nodeName===`HTML`?Zc.ownerDocument.body:Zc).removeChild(n.stateNode)}catch(e){Bu(n,t,e)}else try{Zc.removeChild(n.stateNode)}catch(e){Bu(n,t,e)}}break;case 18:Zc!==null&&(Qc?(e=Zc,Jd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Op(e)):Jd(Zc,n.stateNode));break;case 4:r=Zc,i=Qc,Zc=n.stateNode.containerInfo,Qc=!0,$c(e,t,n),Zc=r,Qc=i;break;case 0:case 11:case 14:case 15:jc(2,n,t),Wc||jc(4,n,t),$c(e,t,n);break;case 1:Wc||(Fc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Nc(n,t,r)),$c(e,t,n);break;case 21:$c(e,t,n);break;case 22:Wc=(r=Wc)||n.memoizedState!==null,$c(e,t,n),Wc=r;break;default:$c(e,t,n)}}function tl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Op(e)}catch(e){Bu(t,t.return,e)}}}function nl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Op(e)}catch(e){Bu(t,t.return,e)}}function rl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kc),t;default:throw Error(i(435,e.tag))}}function il(e,t){var n=rl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Z.bind(null,e,t);t.then(r,r)}})}function al(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(qd(c.type)){Zc=c.stateNode,Qc=!1;break a}break;case 5:Zc=c.stateNode,Qc=!1;break a;case 3:case 4:Zc=c.stateNode.containerInfo,Qc=!0;break a}c=c.return}if(Zc===null)throw Error(i(160));el(o,s,a),Zc=null,Qc=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sl(t,e),t=t.sibling}var ol=null;function sl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:al(t,e),cl(e),r&4&&(jc(3,e,e.return),Ac(3,e),jc(5,e,e.return));break;case 1:al(t,e),cl(e),r&512&&(Wc||n===null||Fc(n,n.return)),r&64&&Uc&&(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=ol;if(al(t,e),cl(e),r&512&&(Wc||n===null||Fc(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[St]||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`))),Ad(o,r,n),o[ht]=e,Ot(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),Ad(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),Ad(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ht]=e,Ot(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&&Lc(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:al(t,e),cl(e),r&512&&(Wc||n===null||Fc(n,n.return)),n!==null&&r&4&&Lc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(al(t,e),cl(e),r&512&&(Wc||n===null||Fc(n,n.return)),e.flags&32){a=e.stateNode;try{Qt(a,``)}catch(t){Bu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Lc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Gc=!0);break;case 6:if(al(t,e),cl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Bu(e,e.return,t)}}break;case 3:if(Ff=null,a=ol,ol=df(t.containerInfo),al(t,e),ol=a,cl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Op(t.containerInfo)}catch(t){Bu(e,e.return,t)}Gc&&(Gc=!1,ll(e));break;case 4:r=ol,ol=df(e.stateNode.containerInfo),al(t,e),cl(e),ol=r;break;case 12:al(t,e),cl(e);break;case 31:al(t,e),cl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,il(e,r)));break;case 13:al(t,e),cl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Jl=Fe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,il(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Uc,d=Wc;if(Uc=u||a,Wc=d||l,al(t,e),Wc=d,Uc=u,cl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Uc||Wc||dl(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){Bu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Bu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?Yd(m,!0):Yd(l.stateNode,!1)}catch(e){Bu(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,il(e,n))));break;case 19:al(t,e),cl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,il(e,r)));break;case 30:break;case 21:break;default:al(t,e),cl(e)}}function cl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Rc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Vc(e,zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Qt(o,``),n.flags&=-33),Vc(e,zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Bc(e,zc(e),s);break;default:throw Error(i(161))}}catch(t){Bu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ll(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ll(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ul(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Yc(e,t.alternate,t),t=t.sibling}function dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jc(4,t,t.return),dl(t);break;case 1:Fc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Nc(t,t.return,n),dl(t);break;case 27:cf(t.stateNode);case 26:case 5:Fc(t,t.return),dl(t);break;case 22:t.memoizedState===null&&dl(t);break;case 30:dl(t);break;default:dl(t)}e=e.sibling}}function fl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),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:fl(i,a,n),Ac(4,a);break;case 1:if(fl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Bu(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++)Ba(c[i],s)}catch(e){Bu(r,r.return,e)}}n&&o&64&&Mc(a),Pc(a,a.return);break;case 27:Hc(a);case 26:case 5:fl(i,a,n),n&&r===null&&o&4&&Ic(a),Pc(a,a.return);break;case 12:fl(i,a,n);break;case 31:fl(i,a,n),n&&o&4&&tl(i,a);break;case 13:fl(i,a,n),n&&o&4&&nl(i,a);break;case 22:a.memoizedState===null&&fl(i,a,n),Pc(a,a.return);break;case 30:break;default:fl(i,a,n)}t=t.sibling}}function pl(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&&ra(n))}function ml(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e))}function hl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gl(e,t,n,r),t=t.sibling}function gl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:hl(e,t,n,r),i&2048&&Ac(9,t);break;case 1:hl(e,t,n,r);break;case 3:hl(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&&ra(e)));break;case 12:if(i&2048){hl(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){Bu(t,t.return,e)}}else hl(e,t,n,r);break;case 31:hl(e,t,n,r);break;case 13:hl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?hl(e,t,n,r):(a._visibility|=2,_l(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?hl(e,t,n,r):vl(e,t),i&2048&&pl(o,t);break;case 24:hl(e,t,n,r),i&2048&&ml(t.alternate,t);break;default:hl(e,t,n,r)}}function _l(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!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:_l(a,o,s,c,i),Ac(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,_l(a,o,s,c,i)):u._visibility&2?_l(a,o,s,c,i):vl(a,o),i&&l&2048&&pl(o.alternate,o);break;case 24:_l(a,o,s,c,i),i&&l&2048&&ml(o.alternate,o);break;default:_l(a,o,s,c,i)}t=t.sibling}}function vl(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:vl(n,r),i&2048&&pl(r.alternate,r);break;case 24:vl(n,r),i&2048&&ml(r.alternate,r);break;default:vl(n,r)}t=t.sibling}}var yl=8192;function bl(e,t,n){if(e.subtreeFlags&yl)for(e=e.child;e!==null;)xl(e,t,n),e=e.sibling}function xl(e,t,n){switch(e.tag){case 26:bl(e,t,n),e.flags&yl&&e.memoizedState!==null&&Bf(n,ol,e.memoizedState,e.memoizedProps);break;case 5:bl(e,t,n);break;case 3:case 4:var r=ol;ol=df(e.stateNode.containerInfo),bl(e,t,n),ol=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=yl,yl=16777216,bl(e,t,n),yl=r):bl(e,t,n));break;default:bl(e,t,n)}}function Sl(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 Cl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];qc=r,El(r,e)}Sl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wl(e),e=e.sibling}function wl(e){switch(e.tag){case 0:case 11:case 15:Cl(e),e.flags&2048&&jc(9,e,e.return);break;case 3:Cl(e);break;case 12:Cl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Tl(e)):Cl(e);break;default:Cl(e)}}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];qc=r,El(r,e)}Sl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jc(8,t,t.return),Tl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Tl(t));break;default:Tl(t)}e=e.sibling}}function El(e,t){for(;qc!==null;){var n=qc;switch(n.tag){case 0:case 11:case 15:jc(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:ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,qc=r;else a:for(n=e;qc!==null;){r=qc;var i=r.sibling,a=r.return;if(Xc(r),r===n){qc=null;break a}if(i!==null){i.return=a,qc=i;break a}qc=a}}}var Dl={getCacheForType:function(e){var t=Yi(ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Yi(ta).controller.signal}},Ol=typeof WeakMap==`function`?WeakMap:Map,kl=0,Al=null,jl=null,Ml=0,Nl=0,Pl=null,Fl=!1,Il=!1,Ll=!1,Rl=0,zl=0,Bl=0,Vl=0,Hl=0,Ul=0,Wl=0,Gl=null,Kl=null,ql=!1,Jl=0,Yl=0,Xl=1/0,Zl=null,Ql=null,$l=0,eu=null,tu=null,nu=0,ru=0,iu=null,au=null,ou=0,su=null;function cu(){return kl&2&&Ml!==0?Ml&-Ml:ce.T===null?pt():ad()}function lu(){if(Ul===0){if(!(Ml&536870912)||ki){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),Ul=e}else Ul=536870912}return e=qa.current,e!==null&&(e.flags|=32),Ul}function uu(e,t,n){(e===Al&&(Nl===2||Nl===9)||e.cancelPendingCommit!==null)&&(_u(e,0),mu(e,Ml,Ul,!1)),ot(e,n),(!(kl&2)||e!==Al)&&(e===Al&&(!(kl&2)&&(Vl|=n),zl===4&&mu(e,Ml,Ul,!1)),Zu(e))}function du(e,t,n){if(kl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||nt(e,t),a=r?Tu(e,t):Cu(e,t,!0),o=r;do{if(a===0){Il&&!r&&mu(e,t,0,!1);break}if(n=e.current.alternate,o&&!pu(n)){a=Cu(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=Gl;var l=c.current.memoizedState.isDehydrated;if(l&&(_u(c,s).flags|=256),s=Cu(c,s,!1),s!==2){if(Ll&&!l){c.errorRecoveryDisabledLanes|=o,Vl|=o,a=4;break a}o=Kl,Kl=a,o!==null&&(Kl===null?Kl=o:Kl.push.apply(Kl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){_u(e,0),mu(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:mu(r,t,Ul,!Fl);break a;case 2:Kl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Jl+300-Fe(),10<a)){if(mu(r,t,Ul,!Fl),tt(r,0,!0)!==0)break a;nu=t,r.timeoutHandle=Hd(fu.bind(null,r,n,Kl,Zl,ql,t,Ul,Vl,Wl,Fl,o,`Throttled`,-0,0),a);break a}fu(r,n,Kl,Zl,ql,t,Ul,Vl,Wl,Fl,o,null,-0,0)}break}while(1);Zu(e)}function fu(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:sn},xl(t,a,d);var m=(a&62914560)===a?Jl-Fe():(a&4194048)===a?Yl-Fe():0;if(m=Hf(d,m),m!==null){nu=a,e.cancelPendingCommit=m(Mu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),mu(e,a,o,!l);return}}Mu(e,t,a,n,r,i,o,s,c)}function pu(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(!xr(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 mu(e,t,n,r){t&=~Hl,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ct(e,n,t)}function hu(){return kl&6?!0:(Qu(0,!1),!1)}function gu(){if(jl!==null){if(Nl===0)var e=jl.return;else e=jl,Vi=Bi=null,xo(e),Ea=null,Da=0,e=jl;for(;e!==null;)kc(e.alternate,e),e=e.return;jl=null}}function _u(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Ud(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),nu=0,gu(),Al=e,jl=n=ii(e.current,null),Ml=t,Nl=0,Pl=null,Fl=!1,Il=nt(e,t),Ll=!1,Wl=Ul=Hl=Vl=Bl=zl=0,Kl=Gl=null,ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-qe(r),a=1<<i;t|=e[i],r&=~a}return Rl=t,Xr(),n}function vu(e,t){no=null,ce.H=ks,t===ga||t===va?(t=wa(),Nl=3):t===_a?(t=wa(),Nl=4):Nl=t===qs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Pl=t,jl===null&&(zl=1,Vs(e,fi(t,e.current)))}function yu(){var e=qa.current;return e===null?!0:(Ml&4194048)===Ml?Ja===null:(Ml&62914560)===Ml||Ml&536870912?e===Ja:!1}function bu(){var e=ce.H;return ce.H=ks,e===null?ks:e}function xu(){var e=ce.A;return ce.A=Dl,e}function Su(){zl=4,Fl||(Ml&4194048)!==Ml&&qa.current!==null||(Il=!0),!(Bl&134217727)&&!(Vl&134217727)||Al===null||mu(Al,Ml,Ul,!1)}function Cu(e,t,n){var r=kl;kl|=2;var i=bu(),a=xu();(Al!==e||Ml!==t)&&(Zl=null,_u(e,t)),t=!1;var o=zl;a:do try{if(Nl!==0&&jl!==null){var s=jl,c=Pl;switch(Nl){case 8:gu(),o=6;break a;case 3:case 2:case 9:case 6:qa.current===null&&(t=!0);var l=Nl;if(Nl=0,Pl=null,ku(e,s,c,l),n&&Il){o=0;break a}break;default:l=Nl,Nl=0,Pl=null,ku(e,s,c,l)}}wu(),o=zl;break}catch(t){vu(e,t)}while(1);return t&&e.shellSuspendCounter++,Vi=Bi=null,kl=r,ce.H=i,ce.A=a,jl===null&&(Al=null,Ml=0,Xr()),o}function wu(){for(;jl!==null;)Du(jl)}function Tu(e,t){var n=kl;kl|=2;var r=bu(),a=xu();Al!==e||Ml!==t?(Zl=null,Xl=Fe()+500,_u(e,t)):Il=nt(e,t);a:do try{if(Nl!==0&&jl!==null){t=jl;var o=Pl;b:switch(Nl){case 1:Nl=0,Pl=null,ku(e,t,o,1);break;case 2:case 9:if(ba(o)){Nl=0,Pl=null,Ou(t);break}t=function(){Nl!==2&&Nl!==9||Al!==e||(Nl=7),Zu(e)},o.then(t,t);break a;case 3:Nl=7;break a;case 4:Nl=5;break a;case 7:ba(o)?(Nl=0,Pl=null,Ou(t)):(Nl=0,Pl=null,ku(e,t,o,7));break;case 5:var s=null;switch(jl.tag){case 26:s=jl.memoizedState;case 5:case 27:var c=jl;if(s?zf(s):c.stateNode.complete){Nl=0,Pl=null;var l=c.sibling;if(l!==null)jl=l;else{var u=c.return;u===null?jl=null:(jl=u,Au(u))}break b}}Nl=0,Pl=null,ku(e,t,o,5);break;case 6:Nl=0,Pl=null,ku(e,t,o,6);break;case 8:gu(),zl=6;break a;default:throw Error(i(462))}}Eu();break}catch(t){vu(e,t)}while(1);return Vi=Bi=null,ce.H=r,ce.A=a,kl=n,jl===null?(Al=null,Ml=0,Xr(),zl):0}function Eu(){for(;jl!==null&&!Ne();)Du(jl)}function Du(e){var t=bc(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,t===null?Au(e):jl=t}function Ou(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ac(n,t,t.pendingProps,t.type,void 0,Ml);break;case 11:t=ac(n,t,t.pendingProps,t.type.render,t.ref,Ml);break;case 5:xo(t);default:kc(n,t),t=jl=ai(t,Rl),t=bc(n,t,Rl)}e.memoizedProps=e.pendingProps,t===null?Au(e):jl=t}function ku(e,t,n,r){Vi=Bi=null,xo(t),Ea=null,Da=0;var i=t.return;try{if(Ks(e,i,t,n,Ml)){zl=1,Vs(e,fi(n,e.current)),jl=null;return}}catch(t){if(i!==null)throw jl=i,t;zl=1,Vs(e,fi(n,e.current)),jl=null;return}t.flags&32768?(ki||r===1?e=!0:Il||Ml&536870912?e=!1:(Fl=e=!0,(r===2||r===9||r===3||r===6)&&(r=qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),ju(t,e)):Au(t)}function Au(e){var t=e;do{if(t.flags&32768){ju(t,Fl);return}e=t.return;var n=Dc(t.alternate,t,Rl);if(n!==null){jl=n;return}if(t=t.sibling,t!==null){jl=t;return}jl=t=e}while(t!==null);zl===0&&(zl=5)}function ju(e,t){do{var n=Oc(e.alternate,e);if(n!==null){n.flags&=32767,jl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){jl=e;return}jl=e=n}while(e!==null);zl=6,jl=null}function Mu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Lu();while($l!==0);if(kl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Yr,st(e,n,o,s,c,l),e===Al&&(jl=Al=null,Ml=0),tu=t,eu=e,nu=n,ru=o,iu=a,au=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Wu(ze,function(){return Ru(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=ce.T,ce.T=null,a=le.p,le.p=2,s=kl,kl|=4;try{Jc(e,t,n)}finally{kl=s,le.p=a,ce.T=r}}$l=1,Nu(),Pu(),Fu()}}function Nu(){if($l===1){$l=0;var e=eu,t=tu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=ce.T,ce.T=null;var r=le.p;le.p=2;var i=kl;kl|=4;try{sl(t,e);var a=Fd,o=Er(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Tr(s.ownerDocument.documentElement,s)){if(c!==null&&Dr(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 _=wr(s,h),v=wr(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=!!Pd,Fd=Pd=null}finally{kl=i,le.p=r,ce.T=n}}e.current=t,$l=2}}function Pu(){if($l===2){$l=0;var e=eu,t=tu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=ce.T,ce.T=null;var r=le.p;le.p=2;var i=kl;kl|=4;try{Yc(e,t.alternate,t)}finally{kl=i,le.p=r,ce.T=n}}$l=3}}function Fu(){if($l===4||$l===3){$l=0,Pe();var e=eu,t=tu,n=nu,r=au;t.subtreeFlags&10256||t.flags&10256?$l=5:($l=0,tu=eu=null,Iu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ql=null),ft(n),t=t.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=ce.T,i=le.p,le.p=2,ce.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{ce.T=t,le.p=i}}nu&3&&Lu(),Zu(e),i=e.pendingLanes,n&261930&&i&42?e===su?ou++:(ou=0,su=e):ou=0,Qu(0,!1)}}function Iu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ra(t)))}function Lu(){return Nu(),Pu(),Fu(),Ru()}function Ru(){if($l!==5)return!1;var e=eu,t=ru;ru=0;var n=ft(nu),r=ce.T,a=le.p;try{le.p=32>n?32:n,ce.T=null,n=iu,iu=null;var o=eu,s=nu;if($l=0,tu=eu=null,nu=0,kl&6)throw Error(i(331));var c=kl;if(kl|=4,wl(o.current),gl(o,o.current,s,n),kl=c,Qu(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{le.p=a,ce.T=r,Iu(e,t)}}function zu(e,t,n){t=fi(n,t),t=Us(e.stateNode,t,2),e=U(e,t,2),e!==null&&(ot(e,2),Zu(e))}function Bu(e,t,n){if(e.tag===3)zu(e,e,n);else for(;t!==null;){if(t.tag===3){zu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Ql===null||!Ql.has(r))){e=fi(n,e),n=Ws(2),r=U(t,n,2),r!==null&&(Gs(n,r,t,e),ot(r,2),Zu(r));break}}t=t.return}}function Vu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ol;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)||(Ll=!0,i.add(n),e=Hu.bind(null,e,t,n),t.then(e,e))}function Hu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Al===e&&(Ml&n)===n&&(zl===4||zl===3&&(Ml&62914560)===Ml&&300>Fe()-Jl?!(kl&2)&&_u(e,0):Hl|=n,Wl===Ml&&(Wl=0)),Zu(e)}function Uu(e,t){t===0&&(t=it()),e=$r(e,t),e!==null&&(ot(e,t),Zu(e))}function X(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uu(e,n)}function Z(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),Uu(e,n)}function Wu(e,t){return je(e,t)}var Gu=null,Ku=null,qu=!1,Ju=!1,Yu=!1,Xu=0;function Zu(e){e!==Ku&&e.next===null&&(Ku===null?Gu=Ku=e:Ku=Ku.next=e),Ju=!0,qu||(qu=!0,id())}function Qu(e,t){if(!Yu&&Ju){Yu=!0;do for(var n=!1,r=Gu;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-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,rd(r,a))}else a=Ml,a=tt(r,r===Al?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,rd(r,a))}r=r.next}while(n);Yu=!1}}function $u(){ed()}function ed(){Ju=qu=!1;var e=0;Xu!==0&&Vd()&&(e=Xu);for(var t=Fe(),n=null,r=Gu;r!==null;){var i=r.next,a=td(r,t);a===0?(r.next=null,n===null?Gu=i:n.next=i,i===null&&(Ku=n)):(n=r,(e!==0||a&3)&&(Ju=!0)),r=i}$l!==0&&$l!==5||Qu(e,!1),Xu!==0&&(Xu=0)}function td(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=rt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Al,n=Ml,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Nl===2||Nl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),ft(n)){case 2:case 8:n=Re;break;case 32:n=ze;break;case 268435456:n=Ve;break;default:n=ze}return r=nd.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function nd(e,t){if($l!==0&&$l!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Lu()&&e.callbackNode!==n)return null;var r=Ml;return r=tt(e,e===Al?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(du(e,r,t),td(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?nd.bind(null,e):null)}function rd(e,t){if(Lu())return null;du(e,t,!0)}function id(){Gd(function(){kl&6?je(Le,$u):ed()})}function ad(){if(Xu===0){var e=oa;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),Xu=e}return Xu}function od(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:on(``+e)}function sd(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 cd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=od((i[gt]||null).action),o=r.submitter;o&&(t=(t=o[gt]||null)?od(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(Xu!==0){var e=o?sd(i,o):new FormData(i);hs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?sd(i,o):new FormData(i),hs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var ld=0;ld<Wr.length;ld++){var ud=Wr[ld];Gr(ud.toLowerCase(),`on`+(ud[0].toUpperCase()+ud.slice(1)))}Gr(Ir,`onAnimationEnd`),Gr(Lr,`onAnimationIteration`),Gr(Rr,`onAnimationStart`),Gr(`dblclick`,`onDoubleClick`),Gr(`focusin`,`onFocus`),Gr(`focusout`,`onBlur`),Gr(zr,`onTransitionRun`),Gr(Br,`onTransitionStart`),Gr(Vr,`onTransitionCancel`),Gr(Hr,`onTransitionEnd`),Mt(`onMouseEnter`,[`mouseout`,`mouseover`]),Mt(`onMouseLeave`,[`mouseout`,`mouseover`]),Mt(`onPointerEnter`,[`pointerout`,`pointerover`]),Mt(`onPointerLeave`,[`pointerout`,`pointerover`]),jt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),jt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),jt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),jt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var dd=`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(` `),fd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(dd));function pd(e,t){t=!!(t&4);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){Kr(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){Kr(e)}i.currentTarget=null,a=c}}}}function md(e,t){var n=t[vt];n===void 0&&(n=t[vt]=new Set);var r=e+`__bubble`;n.has(r)||(vd(t,e,2,!1),n.add(r))}function hd(e,t,n){var r=0;t&&(r|=4),vd(n,e,r,t)}var gd=`_reactListening`+Math.random().toString(36).slice(2);function _d(e){if(!e[gd]){e[gd]=!0,kt.forEach(function(t){t!==`selectionchange`&&(fd.has(t)||hd(t,!1,e),hd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gd]||(t[gd]=!0,hd(`selectionchange`,!1,t))}}function vd(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 yd(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=wt(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}fn(function(){var r=a,i=A(n),s=[];a:{var c=Ur.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=Hn;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=Wn;break;case Ir:case Lr:case Rr:l=In;break;case Hr:l=Gn;break;case`scroll`:case`scrollend`:l=On;break;case`wheel`:l=Kn;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=Un;break;case`toggle`:case`beforetoggle`:l=qn}var d=!!(t&4),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=pn(m,p),g!=null&&d.push(bd(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!==cn&&(u=n.relatedTarget||n.fromElement)&&(wt(u)||u[_t]))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?wt(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=Un,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Et(l),h=u==null?c:Et(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,wt(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=Sd,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?Et(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=fr;else if(or(c)){if(pr)v=br;else{v=yr;var y=N}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&nn(r.elementType)&&(v=fr):v=P;if(v&&=v(e,r)){sr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Jt(c,`number`,c.value)}switch(y=r?Et(r):window,e){case`focusin`:(or(y)||y.contentEditable===`true`)&&(kr=y,Ar=r,jr=null);break;case`focusout`:jr=Ar=kr=null;break;case`mousedown`:Mr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Mr=!1,Nr(s,n,i);break;case`selectionchange`:if(Or)break;case`keydown`:case`keyup`:Nr(s,n,i)}var b;if(Yn)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 nr?er(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Zn&&n.locale!==`ko`&&(nr||x!==`onCompositionStart`?x===`onCompositionEnd`&&nr&&(b=bn()):(_n=i,vn=`value`in _n?_n.value:_n.textContent,nr=!0)),y=xd(r,x),0<y.length&&(x=new Rn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=tr(n),b!==null&&(x.data=b)))),(b=tee?rr(e,n):ir(e,n))&&(x=xd(r,`onBeforeInput`),0<x.length&&(y=new Rn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),cd(s,e,r,n,i)}pd(s,t)})}function bd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xd(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=pn(e,n),i!=null&&r.unshift(bd(e,i,a)),i=pn(e,t),i!=null&&r.push(bd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Sd(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=pn(n,a),l!=null&&o.unshift(bd(n,l,c))):i||(l=pn(n,a),l!=null&&o.push(bd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var wd=/\r\n?/g,Td=/\u0000|\uFFFD/g;function Ed(e){return(typeof e==`string`?e:``+e).replace(wd,`
|
||
`).replace(Td,``)}function Dd(e,t){return t=Ed(t),Ed(e)===t}function Od(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Qt(e,``+r);break;case`className`:k(e,`class`,r);break;case`tabIndex`:k(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:k(e,n,r);break;case`style`:tn(e,r,o);break;case`data`:if(t!==`object`){k(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Od(e,t,`name`,a.name,a,null),Od(e,t,`formEncType`,a.formEncType,a,null),Od(e,t,`formMethod`,a.formMethod,a,null),Od(e,t,`formTarget`,a.formTarget,a,null)):(Od(e,t,`encType`,a.encType,a,null),Od(e,t,`method`,a.method,a,null),Od(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`onScroll`:r!=null&&md(`scroll`,e);break;case`onScrollEnd`:r!=null&&md(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=on(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:md(`beforetoggle`,e),md(`toggle`,e),O(e,`popover`,r);break;case`xlinkActuate`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:O(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=rn.get(n)||n,O(e,n,r))}}function kd(e,t,n,r,a,o){switch(n){case`style`:tn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Qt(e,``+r);break;case`onScroll`:r!=null&&md(`scroll`,e);break;case`onScrollEnd`:r!=null&&md(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!At.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[gt]||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,``):O(e,n,r)}}}function Ad(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:md(`error`,e),md(`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:Od(e,t,o,s,n,null)}}a&&Od(e,t,`srcSet`,n.srcSet,n,null),r&&Od(e,t,`src`,n.src,n,null);return;case`input`:md(`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:Od(e,t,r,d,n,null)}}qt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in md(`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:Od(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Yt(e,!!r,n,!0):Yt(e,!!r,t,!1);return;case`textarea`:for(s in md(`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:Od(e,t,s,c,n,null)}Zt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Od(e,t,l,r,n,null)}return;case`dialog`:md(`beforetoggle`,e),md(`toggle`,e),md(`cancel`,e),md(`close`,e);break;case`iframe`:case`object`:md(`load`,e);break;case`video`:case`audio`:for(r=0;r<dd.length;r++)md(dd[r],e);break;case`image`:md(`error`,e),md(`load`,e);break;case`details`:md(`toggle`,e);break;case`embed`:case`source`:case`link`:md(`error`,e),md(`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:Od(e,t,u,r,n,null)}return;default:if(nn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&kd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Od(e,t,c,r,n,null))}function jd(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)||Od(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&&Od(e,t,p,m,r,f)}}Kt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Od(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&&Od(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Yt(e,!!n,n?[]:``,!1):Yt(e,!!n,t,!0)):Yt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Od(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&&Od(e,t,s,a,r,o)}Xt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Od(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:Od(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)&&Od(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:Od(e,t,u,p,r,m)}return;default:if(nn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&kd(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||kd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Od(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||Od(e,t,f,p,r,m)}function Md(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Nd(){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&&Md(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&&Md(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 Pd=null,Fd=null;function Id(e){return e.nodeType===9?e:e.ownerDocument}function Ld(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 Rd(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 zd(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 Bd=null;function Vd(){var e=window.event;return e&&e.type===`popstate`?e!==Bd&&(Bd=e,!0):(Bd=null,!1)}var Hd=typeof setTimeout==`function`?setTimeout:void 0,Ud=typeof clearTimeout==`function`?clearTimeout:void 0,Wd=typeof Promise==`function`?Promise:void 0,Gd=typeof queueMicrotask==`function`?queueMicrotask:Wd===void 0?Hd:function(e){return Wd.resolve(null).then(e).catch(Kd)};function Kd(e){setTimeout(function(){throw e})}function qd(e){return e===`head`}function Jd(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),Op(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[St]||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);Op(t)}function Yd(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 Xd(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`:Xd(n),Ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function Zd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=nf(e.nextSibling),e===null)break}return null}function iee(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=Id(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]);Ct(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=le.d;le.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=hu();return e||t}function mf(e){var t=Tt(e);t!==null&&t.tag===5&&t.type===`form`?_s(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=Gt(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`),Ad(t,`link`,e),Ot(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="`+Gt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Gt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Gt(n.imageSizes)+`"]`)):i+=`[href="`+Gt(e)+`"]`;var a=i;switch(t){case`style`:a=Tf(e);break;case`script`:a=kf(e)}lf.has(a)||(e=p({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`),Ad(t,`link`,e),Ot(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="`+Gt(r)+`"][href="`+Gt(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=p({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`),Ad(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function xf(e,t,n){ff.S(e,t,n);var r=hf;if(r&&e){var i=Dt(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=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=lf.get(a))&&Nf(e,n);var c=o=r.createElement(`link`);Ot(c),Ad(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=Dt(n).hoistableScripts,i=kf(e),a=r.get(i);a||(a=n.querySelector(Af(i)),a||(e=p({src:e,async:!0},t),(t=lf.get(i))&&Pf(e,t),a=n.createElement(`script`),Ot(a),Ad(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=Dt(n).hoistableScripts,i=kf(e),a=r.get(i);a||(a=n.querySelector(Af(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=lf.get(i))&&Pf(e,t),a=n.createElement(`script`),Ot(a),Ad(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=_e.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=Dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Tf(n.href);var o=Dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(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=Dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Tf(e){return`href="`+Gt(e)+`"`}function Ef(e){return`link[rel="stylesheet"][`+e+`]`}function Df(e){return p({},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}),Ad(t,`link`,n),Ot(t),e.head.appendChild(t))}function kf(e){return`[src="`+Gt(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~="`+Gt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Ad(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,Ot(o),o;r=Df(n),(a=lf.get(a))&&Nf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ad(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,Ot(a),a):(r=n,(a=lf.get(o))&&(r=p({},n),Pf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),Ad(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[St]||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,Ot(a);return}a=t.ownerDocument||t,r=Df(r),(i=lf.get(i))&&Nf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ad(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*Nd());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:E,_currentValue2:E,_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=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function 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=ri(3,null,null,t),e.current=a,a.stateNode=e,t=na(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ma(a),e}function Xf(e){return e?(e=ni,e):ni}function Zf(e,t,n,r,i,a){i=Xf(i),r.context===null?r.context=i:r.pendingContext=i,r=Pa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=U(e,r,t),n!==null&&(uu(n,e,t),Fa(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=$r(e,67108864);t!==null&&uu(t,e,67108864),$f(e,67108864)}}function tp(e){if(e.tag===13||e.tag===31){var t=cu();t=dt(t);var n=$r(e,t);n!==null&&uu(n,e,t),$f(e,t)}}var np=!0;function rp(e,t,n,r){var i=ce.T;ce.T=null;var a=le.p;try{le.p=2,ap(e,t,n,r)}finally{le.p=a,ce.T=i}}function ip(e,t,n,r){var i=ce.T;ce.T=null;var a=le.p;try{le.p=8,ap(e,t,n,r)}finally{le.p=a,ce.T=i}}function ap(e,t,n,r){if(np){var i=op(r);if(i===null)yd(e,t,r,sp,n),vp(e,r);else if(bp(i,e,t,n,r))r.stopPropagation();else if(vp(e,r),t&4&&-1<_p.indexOf(e)){for(;i!==null;){var a=Tt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}Zu(a),!(kl&6)&&(Xl=Fe()+500,Qu(0,!1))}}break;case 31:case 13:s=$r(a,2),s!==null&&uu(s,a,2),hu(),$f(a,2)}if(a=op(r),a===null&&yd(e,t,r,sp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else yd(e,t,r,null,n)}}function op(e){return e=A(e),cp(e)}var sp=null;function cp(e){if(sp=null,e=wt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return 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(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var 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=Tt(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function bp(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 xp(e){var t=wt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,D(e.priority,function(){tp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,D(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 Sp(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);cn=r,n.target.dispatchEvent(r),cn=null}else return t=Tt(n),t!==null&&ep(t),e.blockedOn=n,!1;t.shift()}return!0}function Cp(e,t,n){Sp(e)&&n.delete(t)}function wp(){up=!1,dp!==null&&Sp(dp)&&(dp=null),fp!==null&&Sp(fp)&&(fp=null),pp!==null&&Sp(pp)&&(pp=null),mp.forEach(Cp),hp.forEach(Cp)}function Tp(e,n){e.blockedOn===n&&(e.blockedOn=null,up||(up=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,wp)))}var Ep=null;function Dp(e){Ep!==e&&(Ep=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ep===e&&(Ep=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=Tt(n);a!==null&&(e.splice(t,3),t-=3,hs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Op(e){function t(t){return Tp(t,e)}dp!==null&&Tp(dp,e),fp!==null&&Tp(fp,e),pp!==null&&Tp(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);)xp(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[gt]||null;if(typeof a==`function`)o||Dp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[gt]||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),Dp(n)}}}function kp(){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 Ap(e){this._internalRoot=e}jp.prototype.render=Ap.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;Zf(n,cu(),e,t,null,null)},jp.prototype.unmount=Ap.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),hu(),t[_t]=null}};function jp(e){this._internalRoot=e}jp.prototype.unstable_scheduleHydration=function(e){if(e){var t=pt();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&&xp(e)}};var Mp=n.version;if(Mp!==`19.2.8`)throw Error(i(527,Mp,`19.2.8`));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Np={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:ce,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Pp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pp.isDisabled&&Pp.supportsFiber)try{We=Pp.inject(Np),Ge=Pp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Rs,s=zs,c=Bs;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,kp),e[_t]=t.current,_d(e),new Ap(t)}})),y8=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=BSe()})),b8;function x8(){return(x8=s((()=>{l3(),b8=({valueStoreKey:e,locale:t,keyPath:n,i18n:r,value:i})=>{o3.set(!1),a3.update(a=>a&&(Object.keys(a[e]??{}).forEach(o=>{(r===`duplicate`||o===t)&&(Object.keys(a[e][o]??{}).forEach(t=>{(t===n||t.startsWith(`${n}.`))&&delete a[e][o][t]}),a[e][o][n]=Array.isArray(i)?[]:{},Object.entries(gM(i)).forEach(([t,r])=>{a[e][o][`${n}.${t}`]=r}))}),a)),o3.set(!0)}})))()}var S8,C8;function w8(){return(w8=s((()=>{O4(),S8=new WeakMap,C8=e=>{let t=S8.get(e);if(t)return t;let n=c2(e);return S8.set(e,n),n}})))()}var T8,E8,D8,O8,k8,VSe,A8,HSe,USe,WSe,GSe,KSe;function j8(){return(j8=s((()=>{Z(),w8(),T8=new Map,E8=new Map,D8=new Map,O8=new Map,k8=(e,t)=>`${e}:${t}`,VSe=({locale:e,keyPath:t,instance:n})=>{n&&typeof n==`object`&&T8.set(k8(e,t),n)},A8=({locale:e,keyPath:t})=>{let n=k8(e,t);T8.delete(n),E8.delete(n),D8.delete(n),O8.set(n,(O8.get(n)??0)+1)},HSe=()=>{T8.clear(),E8.clear(),D8.clear(),O8.clear()},USe=e=>{if(e===!1)return{valid:!1};if(typeof e==`object`&&e){let{error:t}=e;if(typeof t==`object`&&t&&typeof t.message==`string`)return{valid:!1,message:t.message}}return{valid:!0}},WSe=async({locale:e,keyPath:t,value:n,fieldConfig:r})=>{let i=k8(e,t),a=T8.get(i);if(typeof a?.isValid!=`function`){E8.set(i,{valid:!0,pending:!1});return}let o=(O8.get(i)??0)+1;O8.set(i,o);let s=E8.get(i);E8.set(i,{valid:s?.valid??!0,message:s?.message,pending:!0});let c=(async()=>{let e=C8(r),t;try{t=USe(await a.isValid(n,e))}catch(e){t={valid:!1,message:e instanceof Error?e.message:X(`validation.unexpected_error`)}}O8.get(i)===o&&E8.set(i,{...t,pending:!1})})();D8.set(i,c);try{await c}finally{D8.get(i)===c&&D8.delete(i)}},GSe=async()=>{for(;D8.size;)await Promise.all(D8.values())},KSe=({locale:e,keyPath:t,validity:n})=>{let r=k8(e,t);if(typeof T8.get(r)?.isValid!=`function`)return;let i=E8.get(r);i&&(n.customError=!i.valid,!i.valid&&i.message?n.customErrorMessage=i.message:delete n.customErrorMessage)}})))()}var M8,qSe;function JSe(){return(JSe=s((()=>{yI(),fI(),w8(),M8=e=>{if(typeof e==`function`)return e;if(typeof e==`string`){let t=mI.get(e);if(t?.control)return typeof t.control==`function`?t.control:M8(t.control);if(lI.includes(e)){console.warn(`Custom field references built-in editor "${e}" which is not a React component.`);return}}},qSe=({fieldId:e,fieldClassName:t,fieldConfig:n,currentValue:r,onChange:i,handleRef:a})=>({value:r,field:C8(n),forID:e??``,classNameWrapper:t??``,onChange:i,ref:a})})))()}function YSe(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),{valueStoreKey:a=`currentValues`}=Pt(`field-editor`)??{},o=q(t,`invalid`,3,!1),s=N(void 0),c=N(void 0),l=N(void 0),u=M(()=>C(t.fieldConfig.i18n,!1)),d=M(()=>M8(t.control)),f=e=>{Array.isArray(e)||g(e)?b8({valueStoreKey:a,locale:t.locale,keyPath:t.keyPath,i18n:z(u),value:e}):n()&&mn(a3,Ri(n)[a][t.locale][t.keyPath]=e,Ri(n))},p=e=>{P(l,e,!0),e?VSe({locale:t.locale,keyPath:t.keyPath,instance:e}):A8({locale:t.locale,keyPath:t.keyPath})},m=()=>{if(!z(s)||!z(d))return;P(c,z(c)??(0,ZSe.createRoot)(z(s)),!0);let e=qSe({fieldId:t.fieldId,fieldClassName:QSe(),fieldConfig:t.fieldConfig,currentValue:t.currentValue,onChange:f,handleRef:p});z(c).render((0,XSe.createElement)(z(d),e)),z(s)?.querySelector(`input`)?.setAttribute(`aria-invalid`,String(o()))};rc(()=>(m(),()=>{z(c)?.unmount(),A8({locale:t.locale,keyPath:t.keyPath})})),Zr(()=>{z(c)&&z(d)&&m(),typeof z(l)?.isValid==`function`&&WSe({locale:t.locale,keyPath:t.keyPath,value:t.currentValue,fieldConfig:t.fieldConfig})});var h=$Se();Bs(h,e=>P(s,e),()=>z(s)),H(e,h),k(),i()}var XSe,ZSe,N8,QSe,$Se;function eCe(){return(eCe=s((()=>{Y(),jp(),oc(),J(),v(),XSe=f(),ZSe=y8(),l3(),x8(),j8(),JSe(),N8=void 0,QSe=()=>{if(N8===void 0){let e=document.createElement(`div`);Fa(Ep,{target:e}),Xn(),N8=e.querySelector(`input`)?.className??``}return N8},$Se=B(`<div role="none"></div>`)})))()}var P8,F8,tCe,nCe;function rCe(){return(rCe=s((()=>{O4(),N4(),w8(),P8=new Map,F8=!1,tCe=({draft:e,locale:t})=>{let n=P8.get(t);if(n)return n;let r=M4({draft:e,locale:t});return P8.set(t,r),F8||(F8=!0,queueMicrotask(()=>{P8.clear(),F8=!1})),r},nCe=({locale:e,fieldConfig:t,currentValue:n,draft:r,preview:i})=>{if(typeof i!=`function`||!r)return;let{entryMap:a,fieldsMetaData:o,getAsset:s}=tCe({draft:r,locale:e});return{value:n,field:C8(t),metadata:o.get(t.name)??c2({}),getAsset:s,entry:a,fieldsMetaData:o}}})))()}function iCe(e,t){O(t,!0),G(e,cCe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=N(void 0),o=N(void 0),s=()=>{if(!z(a))return;let e=nCe({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue,draft:n(),preview:t.preview});e&&(P(o,z(o)??(0,oCe.createRoot)(z(a)),!0),z(o).render((0,aCe.createElement)(t.preview,e)))};rc(()=>(s(),()=>{z(o)?.unmount()})),Zr(()=>{z(o)&&s()});var c=sCe();Bs(c,e=>P(a,e),()=>z(a)),H(e,c),k(),i()}var aCe,oCe,sCe,cCe;function lCe(){return(lCe=s((()=>{Y(),J(),aCe=f(),oCe=y8(),oc(),l3(),rCe(),sCe=B(`<div class="svelte-7ynvbs"></div>`),cCe={hash:`svelte-7ynvbs`,code:`div.svelte-7ynvbs {
|
||
/* Allow the React component to use the full width */width:100%;}`}})))()}function uCe(e,t){O(t,!0),G(e,mCe);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(()=>YF(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(()=>DL(n(),t.fieldConfig)),_=()=>{if(z(s))return;let e=WL({currentValue:n(),fieldConfig:t.fieldConfig,timeZone:z(g)});e!==void 0&&e!==z(o)&&P(o,e,!0)},v=()=>{let e=UL({inputValue:z(o),currentValue:n(),fieldConfig:t.fieldConfig,timeZone:z(g)});e!==void 0&&e!==n()&&Number(VL(e,t.fieldConfig))!==Number(VL(n(),t.fieldConfig))&&n(e)};Zr(()=>{n(),Ri(()=>{_()})}),Zr(()=>{z(o),Ri(()=>{v()})});let y=()=>{P(s,!0)},b=()=>{P(s,!1),_()};var x=pCe(),S=I(x),C=F(S);gs(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(()=>X(z(p)?`today`:`now`));Bd(e,{variant:`tertiary`,get label(){return z(n)},onclick:()=>{P(o,HL(t.fieldConfig,z(g)),!0)}})}};W(w,e=>{i()||e(T)});var ee=L(w,2),te=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!n());Bd(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{n(``)}})}};W(ee,e=>{!i()&&!r()&&e(te)}),D(S);var ne=L(S,2),re=e=>{var r=dCe(),i=F(r,!0);D(r),R(e=>U(i,e),[()=>OL(z(h),VL(n(),t.fieldConfig))]),H(e,r)},ie=e=>{H(e,fCe())};W(ne,e=>{z(h)?e(re):z(m)&&e(ie,1)}),js(C,()=>z(o),e=>P(o,e)),H(e,x),k()}var dCe,fCe,pCe,mCe;function hCe(){return(hCe=s((()=>{Y(),J(),Z(),Kd(),oc(),XF(),KL(),kL(),dCe=B(`<div role="none" class="timezone svelte-1dnhck7"> </div>`),fCe=B(`<div role="none" class="timezone svelte-1dnhck7">UTC</div>`),pCe=B(`<div role="none" class="svelte-1dnhck7"><input/> <!> <!></div> <!>`,1),mCe={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 gCe(e,t){O(t,!0);let n=M(()=>YF(t.fieldConfig)),r=M(()=>z(n).utc),i=M(()=>z(n).singleCustomTimeZone),a=M(()=>GL({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue}));var o=V(),s=I(o),c=e=>{var n=_Ce(),o=F(n),s=L(o),c=e=>{var n=ja();R(e=>U(n,`— ${e??``}`),[()=>OL(z(i),VL(t.currentValue,t.fieldConfig))]),H(e,n)},l=e=>{H(e,ja(`— UTC`))};W(s,e=>{z(i)?e(c):z(r)&&e(l,1)}),D(n),R((e,t)=>{K(n,`lang`,e),K(n,`dir`,t),U(o,`${z(a)??``} `),n.dir=n.dir},[()=>MI(t.locale),()=>NI(t.locale)]),H(e,n)};W(s,e=>{z(a)&&e(c)}),H(e,o),k()}var _Ce;function vCe(){return(vCe=s((()=>{Y(),J(),XF(),KL(),kL(),zI(),_Ce=B(`<p> <!></p>`)})))()}function yCe(e,t){O(t,!0);let n=()=>j(aR,`$activated`,i),r=()=>j(oR,`$consoleLoaded`,i),[i,a]=fn(),o=q(t,`multiple`,3,!1),s=q(t,`hidden`,3,!1),c=M(()=>mR(t.fieldConfig)??{}),l=null,u=()=>{let e={...Object.fromEntries(Object.entries(z(c).config??{}).filter(([e])=>dR.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),lR)},d=({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)},f=({origin:e,data:t})=>{if(e===lR){if(typeof t==`string`)try{t=JSON.parse(t)}catch{return}g(t)&&(console.debug(`Cloudinary Panel received message:`,t),t.type===`login`&&t.consoleDomain&&(dn(aR,!0),dn(sR,!0)),t.type===`consoleLoaded`&&dn(oR,!0),t.type===`ML_WIDGET_INSERT_DATA`&&(dn(sR,!1),d(t.data)),t.type===`ML_WIDGET_HIDE`&&dn(sR,!1))}};rc(()=>(l=document.querySelector(`iframe#cloudinary-iframe`),window.addEventListener(`message`,f),()=>{window.removeEventListener(`message`,f)})),Zr(()=>{z(c)&&r()&&u()});var p=V(),m=I(p),h=e=>{Ak(e,{children:(e,t)=>{var r=V(),i=I(r),a=e=>{{let t=M(()=>X(`cloud_storage.cloudinary.open_library`));Bd(e,{variant:`primary`,get label(){return z(t)},onclick:()=>{dn(sR,!0)}})}},o=e=>{var t=bCe(),n=I(t);{let e=M(()=>X(`cloud_storage.cloudinary.activate.button_label`));Bd(n,{variant:`primary`,get label(){return z(e)},onclick:()=>{DQ(`${cR}/cms_login?cms=true`,{noopener:!1})}})}var r=L(n,2),i=F(r,!0);D(r),R(e=>U(i,e),[()=>X(`cloud_storage.cloudinary.activate.description`)]),H(e,t)};W(i,e=>{n()?e(a):e(o,-1)}),H(e,r)},$$slots:{default:!0}})};W(m,e=>{s()||e(h)}),H(e,p),k(),a()}var bCe;function xCe(){return(xCe=s((()=>{Y(),J(),Z(),Kd(),Nk(),v(),oc(),_R(),OQ(),bCe=B(`<!> <div role="none"> </div>`,1)})))()}function SCe(e,t){O(t,!0),G(e,ECe);let n={ALLOWED_TAGS:[`wbr`]},r=q(t,`children`,3,void 0),i=M(()=>t.path?jD(t.path).split(`/`):t.caption?[t.caption]:[]),a=e=>oj(e.replace(/([-_.])/g,`$1<wbr>`),n);var o=V(),s=I(o),c=e=>{var t=TCe(),n=F(t);Qu(n,{lines:2,children:(e,t)=>{var n=V();lo(I(n),19,()=>z(i),(e,t)=>`${e}-${t}`,(e,t,n)=>{var r=V(),o=I(r),s=e=>{var n=CCe();vo(n,()=>a(z(t)),!0),D(n),H(e,n)},c=e=>{var n=wCe();vo(I(n),()=>a(z(t))),mt(),H(e,n)};W(o,e=>{z(n)===z(i).length-1?e(s):e(c,-1)}),H(e,r)}),H(e,n)},$$slots:{default:!0}}),So(L(n,2),()=>r()??E),D(t),H(e,t)};W(s,e=>{z(i).length&&e(c)}),H(e,o),k()}var CCe,wCe,TCe,ECe;function I8(){return(I8=s((()=>{Y(),J(),td(),FD(),sj(),CCe=B(`<strong></strong>`),wCe=B(`<!>/`,1),TCe=B(`<span class="name svelte-1ngvthn" aria-hidden="true"><!> <!></span>`),ECe={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 DCe(e,t){G(e,ACe);let n=q(t,`viewType`,3,`grid`);var r=kCe();sm(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=OCe();sc(F(t),{name:`check`,class:`icon check`}),D(t),H(e,t)};W(r,e=>{t.multiple&&e(i)}),H(e,n)},children:(e,n)=>{var r=V();So(I(r),()=>t.children??E),H(e,r)},$$slots:{startIcon:!0,default:!0}}),D(r),R(()=>is(r,1,`wrapper ${n()??``}`,`svelte-1fitgoo`)),H(e,r)}var OCe,kCe,ACe;function L8(){return(L8=s((()=>{Y(),J(),dc(),fm(),OCe=B(`<span role="none" class="icon check-background"><!></span>`),kCe=B(`<div role="none"><!></div>`),ACe={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 jCe(e,t){O(t,!0),G(e,NCe);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=MCe(),c=F(s);{let e=M(()=>X(`assets_dialog.available_images`));Zp(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();So(I(n),()=>o()??E),H(e,n)},$$slots:{default:!0}})}D(s),H(e,s),k()}var MCe,NCe;function R8(){return(R8=s((()=>{Y(),J(),Z(),tm(),MCe=B(`<div role="none" class="wrapper svelte-umbokg"><!></div>`),NCe={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 PCe(e,t){O(t,!0),G(e,RCe);let n=q(t,`open`,15,!1),r=q(t,`oversizedFileNames`,19,()=>[]),i=q(t,`invalidFileNames`,19,()=>[]),a=M(()=>r().length&&i().length?X(`assets_dialog.rejected_files.title`):i().length?X(`assets_dialog.invalid_file.title`):X(`assets_dialog.large_file.title`));bp(e,{get title(){return z(a)},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=LCe(),o=I(a),s=e=>{var n=B8(),i=I(n),a=F(i,!0);D(i);var o=L(i,2);z8(o,r),R(e=>U(a,e),[()=>X(`warning_oversized_files`,{values:{count:r().length,size:Wz(t.maxSize)}})]),H(e,n)};W(o,e=>{r().length&&e(s)});var c=L(o,2),l=e=>{var t=B8(),n=I(t),r=F(n,!0);D(n);var a=L(n,2);z8(a,i),R(e=>U(r,e),[()=>X(`warning_invalid_files`,{values:{count:i().length}})]),H(e,t)};W(c,e=>{i().length&&e(l)}),H(e,a)},$$slots:{default:!0}}),k()}var z8,FCe,ICe,B8,LCe,RCe;function V8(){return(V8=s((()=>{Y(),J(),Z(),Sp(),eB(),z8=(e,t=E)=>{var n=ICe();lo(n,23,t,(e,t)=>`${e}-${t}`,(e,t)=>{var n=FCe(),r=F(n,!0);D(n),R(()=>U(r,z(t))),H(e,n)}),D(n),H(e,n)},FCe=B(`<li class="svelte-1luofoe"> </li>`),ICe=B(`<ul class="filenames svelte-1luofoe"></ul>`),B8=B(`<div class="svelte-1luofoe"> </div> <!>`,1),LCe=B(`<!> <!>`,1),RCe={hash:`svelte-1luofoe`,code:`div.svelte-1luofoe:not(:first-child) {margin-top:8px;}.filenames.svelte-1luofoe {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-default);}ul.svelte-1luofoe {margin:8px 0 0;padding:0;list-style:none;}li.svelte-1luofoe {margin:0;padding:0;}`}})))()}function zCe(e,t){O(t,!0),G(e,GCe);let n=()=>j(TQ,`$selectAssetsView`,i),r=()=>j(VK,`$cmsConfig`,i),[i,a]=fn(),o=e=>{var t=V(),n=I(t),r=e=>{Ak(e,{children:(e,t)=>{var n=H8(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(l()?`searching`:`loading`)]),H(e,n)},$$slots:{default:!0}})},i=e=>{Ak(e,{children:(e,t)=>{var n=H8(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})},a=e=>{var t=BCe();jCe(F(t),{get viewType(){return z(te)},get gridId(){return u()},get multiple(){return c()},children:(e,t)=>{{let t=(e,t=E)=>{var n=V();Ya(I(n),nd,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(()=>Se(t()));DCe(e,{get value(){return z(n).id},get viewType(){return z(te)},get multiple(){return c()},get selected(){return z(r)},onChange:({detail:{selected:e}})=>{Ce(t(),e)},children:(e,t)=>{var r=U8(),i=I(r);g1(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(ne)?void 0:z(n).description),r=M(()=>z(ne)?z(n).description:void 0);SCe(e,{get path(){return z(t)},get caption(){return z(r)}})}};W(a,e=>{(z(te)===`list`||!eG.isSmallScreen&&!z(ne))&&e(o)}),H(e,r)},$$slots:{default:!0}})}}),H(e,n)},n=M(()=>z(fe)??[]);Rm(e,{get items(){return z(n)},itemKey:`id`,renderItem:t,$$slots:{renderItem:!0}})}},$$slots:{default:!0}}),D(t),H(e,t)};W(n,e=>{z(fe)?z(fe).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,()=>Dr([])),f=M(()=>C(t.serviceProps.serviceType,`stock_assets`)),p=M(()=>C(t.serviceProps.serviceId,``)),m=M(()=>C(t.serviceProps.serviceLabel,``)),h=M(()=>C(t.serviceProps.hotlinking,!1)),g=M(()=>C(t.serviceProps.authType,`api_key`)),_=M(()=>C(t.serviceProps.developerURL,``)),v=M(()=>C(t.serviceProps.apiKeyURL,``)),y=M(()=>t.serviceProps.apiKeyPattern),b=M(()=>t.serviceProps.init),x=M(()=>t.serviceProps.signIn),S=M(()=>t.serviceProps.list),T=M(()=>t.serviceProps.search),ee=M(()=>t.serviceProps.upload),te=M(()=>z(p)===`picsum`?`grid`:n()?.type),ne=M(()=>z(f)===`stock_assets`),re=M(()=>s()?.media_libraries?.all??r()?.media_libraries?.all??{}),ie=M(()=>z(re).max_file_size??1/0),ae=Dr({userName:``,password:``}),oe=N(!0),se=N(!1),ce=N(``),le=N(``),ue=N(``),de=N(`initial`),fe=N(null),pe=N(void 0),me=N(Dr({show:!1,status:`info`,length:0})),he=N(Dr([])),ge=N(Dr([])),_e=N(!1),ve=M(()=>({kind:t.kind,fieldConfig:s(),apiKey:z(ce),userName:z(le),password:z(ue)})),ye=async(e=``)=>{P(fe,null),e=e.trim();try{P(fe,await(e?z(T)?.(e,z(ve)):z(S)?.(z(ve)))??[],!0)}catch(e){P(pe,`search_fetch_failed`),console.error(e)}},be=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(pe,`image_fetch_failed`),console.error(e)}},xe=async e=>{if(!z(ee))return;let t=await Promise.all(e.map(e=>tq(e,z(re))));if(e=t.filter(({oversized:e,invalid:t})=>!e&&!t).map(({file:e})=>e),P(he,t.filter(({oversized:e,invalid:t})=>e&&!t).map(({file:e})=>e.name),!0),P(ge,t.filter(({invalid:e})=>e).map(({file:e})=>e.name),!0),(z(he).length||z(ge).length)&&P(_e,!0),e.length){P(me,{show:!0,status:`info`,length:e.length},!0);try{let t=await z(ee)(e,z(ve)),n=await Promise.all(t.map(e=>be(e)));d(n.filter(e=>!!e).slice(0,c()?void 0:1)),P(fe,[...t,...z(fe)??[]],!0)}catch{P(me,{show:!0,status:`error`,length:e.length},!0)}}},Se=e=>d().some(t=>t.url===e.downloadURL),Ce=async(e,t)=>{let n=d().filter(t=>t.url!==e.downloadURL);if(t){let t=await be(e);t&&d([...n,t])}else d(n)};rc(()=>{(async()=>{typeof z(b)==`function`&&(P(oe,!1),P(oe,await z(b)(),!0)),z(oe)&&(P(ce,NK.apiKeys?.[z(p)]??``,!0),(e=>{var t=w(e,2);P(le,t[0],!0),P(ue,t[1],!0)})((NK.logins?.[z(p)]??``).split(` `)),P(se,z(g)===`none`||!!z(ce)||!!z(ue),!0),P(fe,null))})()}),Zr(()=>{l(),z(se),Ri(()=>{z(se)&&ye(l())})});var we={uploadFiles:xe},Te=WCe(),Ee=I(Te),De=e=>{var t=V(),n=I(t),r=e=>{Ak(e,{children:(e,t)=>{var n=H8(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`assets_dialog.error.${z(pe)}`)]),H(e,n)},$$slots:{default:!0}})},i=e=>{{let t=M(()=>s()?.accept);C3(e,{get accept(){return z(t)},multiple:!0,onDrop:({files:e})=>xe(e),children:(e,t)=>{o(e)},$$slots:{default:!0}})}},a=e=>{o(e)};W(n,e=>{z(pe)?e(r):z(ee)?e(i,1):e(a,-1)}),H(e,t)},Oe=e=>{Ak(e,{children:(e,t)=>{var n=UCe(),r=I(n),i=F(r),a=e=>{var t=V();vo(I(t),()=>oj(X(`prefs.media.stock_photos.description`,{values:{service:z(m),homeHref:`href="${z(_)}"`,apiKeyHref:`href="${z(v)}"`}}).replace(/[\u2068\u2069]/g,``),VH)),H(e,t)};W(i,e=>{z(ne)&&e(a)});var o=L(i,2),s=e=>{var t=V();vo(I(t),()=>oj(X(`cloud_storage.${z(p)}.auth.${z(de)}`,{default:X(`cloud_storage.auth.${z(g)}.${z(de)}`,{values:{service:z(m),key:X(`cloud_storage.${z(p)}.auth_key_label`,{default:X(`cloud_storage.auth.${z(g)}.key_label`)})}})}),VH)),H(e,t)};W(o,e=>{z(f)===`cloud_storage`&&e(s)}),D(r);var c=L(r,2),l=e=>{var t=VCe(),n=F(t);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(m)}}));Ep(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(ce,t,!0),P(se,!0),NK.apiKeys??={},NK.apiKeys[z(p)]=z(ce),ye())}})}D(t),H(e,t)};W(c,e=>{z(g)===`api_key`&&e(l)});var u=L(c,2),d=e=>{var t=HCe(),n=I(t),r=F(n);{let e=M(()=>X(`username`)),t=M(()=>z(de)===`requested`);Ep(r,{dir:`ltr`,flex:!0,spellcheck:`false`,get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return ae.userName},set value(e){ae.userName=e}})}D(n);var i=L(n,2),a=F(i);{let e=M(()=>X(`password`)),t=M(()=>z(de)===`requested`);gk(a,{get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return ae.password},set value(e){ae.password=e}})}D(i);var o=L(i,2),s=F(o);{let e=M(()=>X(`sign_in`)),t=M(()=>!ae.userName||!ae.password||z(de)===`requested`);Bd(s,{variant:`secondary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{P(de,`requested`),ae.userName=ae.userName.trim(),ae.password=ae.password.trim(),await z(x)?.(ae.userName,ae.password)?(P(de,`success`),P(le,ae.userName,!0),P(ue,ae.password,!0),P(se,!0),NK.logins??={},NK.logins[z(p)]=[z(le),z(ue)].join(` `),ye()):P(de,`error`)}})}D(o),H(e,t)};W(u,e=>{z(g)===`password`&&e(d)}),H(e,n)},$$slots:{default:!0}})},ke=e=>{Ak(e,{children:(e,t)=>{var n=H8(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`cloud_storage.invalid`)]),H(e,n)},$$slots:{default:!0}})};W(Ee,e=>{z(se)?e(De):z(oe)?e(Oe,1):e(ke,-1)});var Ae=L(Ee,2);ah(Ae,{get show(){return z(me).show},set show(e){z(me).show=e},children:(e,t)=>{fc(e,{get status(){return z(me).status},children:(e,t)=>{var n=U8(),r=I(n),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`uploading_files_progress`)]),H(e,t)};W(r,e=>{z(me).status===`info`&&e(i)});var a=L(r,2),o=e=>{var t=ja();R(e=>U(t,e),[()=>X(`uploading_files_failed`)]),H(e,t)};W(a,e=>{z(me).status===`error`&&e(o)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),PCe(L(Ae,2),{get oversizedFileNames(){return z(he)},get invalidFileNames(){return z(ge)},get maxSize(){return z(ie)},get open(){return z(_e)},set open(e){P(_e,e,!0)}}),H(e,Te);var je=k(we);return a(),je}var H8,U8,BCe,VCe,HCe,UCe,WCe,GCe;function KCe(){return(KCe=s((()=>{Y(),J(),Z(),gc(),Kd(),Nk(),zm(),bk(),jp(),lh(),rd(),sj(),oc(),I8(),L8(),R8(),_1(),w3(),V8(),nq(),qK(),EQ(),nG(),FK(),UH(),H8=B(`<span role="alert"> </span>`),U8=B(`<!> <!>`,1),BCe=B(`<div role="none" class="grid-wrapper svelte-mqll9n"><!></div>`),VCe=B(`<div role="none" class="input-outer svelte-mqll9n"><!></div>`),HCe=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),UCe=B(`<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>`,1),WCe=B(`<!> <!> <!>`,1),GCe={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 qCe(e,t){O(t,!0),G(e,ZCe);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,()=>Dr([])),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?jD(r.replace(o(),``)):n;return{...e,relPath:i}});return z(d).length&&(e=e.filter(({relPath:e})=>z(d).every(t=>d6(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=YCe();jCe(F(t),{get multiple(){return n()},get gridId(){return s()},get viewType(){return i()},children:(e,t)=>{Rm(e,{get items(){return z(f)},itemKey:`path`,renderItem:(e,t=E)=>{var r=V();Ya(I(r),nd,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()));DCe(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=JCe(),o=I(a),s=e=>{var t=W8(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`assets_dialog.unsaved`)]),H(e,t)};W(o,e=>{i()===`grid`&&z(r).unsaved&&e(s)});var l=L(o,2);g1(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=>{SCe(e,{get path(){return z(r).relPath},children:(e,t)=>{var n=V(),a=I(n),o=e=>{var t=W8(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`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=>{(!eG.isSmallScreen||i()===`list`)&&e(d)}),H(e,a)},$$slots:{default:!0}})}}),H(e,r)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),D(t),H(e,t)},v=e=>{Ak(e,{children:(e,t)=>{var n=XCe(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})};W(g,e=>{z(f).length?e(_):e(v,-1)}),H(e,h),k()}var W8,JCe,YCe,XCe,ZCe;function G8(){return(G8=s((()=>{Y(),J(),Z(),Nk(),zm(),rd(),FD(),I8(),L8(),R8(),_1(),p6(),nG(),W8=B(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),JCe=B(`<!> <!> <!>`,1),YCe=B(`<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>`),XCe=B(`<span role="none"> </span>`),ZCe={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 QCe(e,t){O(t,!0);let n=()=>j(TQ,`$selectAssetsView`,r),[r,i]=fn(),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,()=>Dr([])),d=N(void 0);Zr(()=>{u().length||Ri(()=>{z(d)?.reset()})}),Bs(C3(e,{get multiple(){return a()},get accept(){return o()},get onDrop(){return t.onDrop},children:(e,t)=>{{let t=M(()=>n()?.type);qCe(e,{get multiple(){return a()},get assets(){return s()},get viewType(){return z(t)},get searchTerms(){return c()},get basePath(){return l()},gridId:`select-assets-grid`,checkerboard:!0,get selectedResources(){return u()},set selectedResources(e){u(e)}})}},$$slots:{default:!0}}),e=>P(d,e,!0),()=>z(d)),k(),i()}function $Ce(){return($Ce=s((()=>{Y(),J(),oc(),G8(),w3(),EQ()})))()}var K8,q8,J8;function Y8(){return(Y8=s((()=>{J(),Tq(),K8={count:0,name:``,showDialog:!1,resolve:()=>{}},q8=Dr({...K8}),J8=async({files:e,listedAssets:t})=>{let n=wq(e,t),r=n.length;if(!r)return!1;let{promise:i,resolve:a}=Promise.withResolvers();Object.assign(q8,{count:r,name:n[0].name,showDialog:!0,resolve:a});let o=await i;return Object.assign(q8,{...K8}),o}})))()}var ewe,X8,Z8,Q8,$8,twe,e5,nwe;function t5(){return(t5=s((()=>{md(),hM(),ewe=u(kK(),1),aM(),Tq(),kM(),X8=({collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i})=>{let a=TM({collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i}),o=t?TM({collectionName:e,fileName:t}):void 0,s=TM({collectionName:e}),c=o??s,l=A(SM),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 A(xM).forEach(e=>{e.isAssetCollection&&e.collectionName&&(u[e.collectionName]={folder:e,enabled:!0})}),u},Z8=e=>Object.values(e).find(({enabled:e})=>e)?.folder,Q8=({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=pM(Object.values(e.locales)[0].path).dirname;return a?`${t}/${a}`:t}return a?`${r}/${a}/-`:`${r}/-`},$8=({path:e,folderPath:t})=>t!==void 0&&(e===t||`${e}/-`===t||e.startsWith(`${t}/`)),twe=({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 $8({path:e.path,folderPath:n});let{dirname:r}=pM(e.path);return r!==void 0&&$8({path:r,folderPath:n})},e5=({kind:e,folder:t,folderPath:n,unsavedAssets:r})=>[...A(iq),...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=>twe({asset:e,folder:t,folderPath:n})),nwe=async({hash:e,folder:t,unsavedAssets:n})=>(await Promise.all(n.map(async n=>!!n.file&&(0,ewe.default)(n.folder,t)&&await pd(n.file)===e))).includes(!0)})))()}var n5,rwe,r5,i5,a5,iwe,o5;function s5(){return(s5=s((()=>{md(),n5=u(kK(),1),sj(),aM(),Tq(),EV(),OR(),nq(),eB(),UH(),rwe=/(?<path>.+?)(?:\/[^/]+)?$/,r5=async({draft:e,file:t,folder:n})=>{let r=await pd(t),i;return await Promise.all(Object.entries(e.files??{}).map(async([e,t])=>{!i&&await pd(t.file)===r&&(!n?.entryRelative||(0,n5.default)(t.folder,n))&&(i=e)})),i},i5=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 $z(e),size:a,kind:DR(i),folder:n}},a5=async({draft:e,targetFolderPath:t})=>Promise.all(Object.entries(e.files).map(async([e,{file:n,folder:r}])=>i5({file:n,blobURL:e,folder:r,targetFolderPath:t}))),iwe=(e,t)=>{let n=A(iq);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(rwe)?.groups?.path??l);let u=[l,t.internalSubPath].filter(Boolean).join(`/`);return n.filter(e=>e.path.startsWith(`${u}/`))},o5=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 r5({draft:e,file:s,folder:r});if(i)c=i;else{let{file:t,oversized:i,invalid:u}=await tq(s,n??{});if(s=t,u)return{value:void 0,credit:``,oversizedFileName:l,invalidFileName:s.name};let d=await $z(s),f=[...iwe(e,r),...await a5({draft:e})].find(e=>e.sha===d&&(0,n5.default)(e.folder,r));f?(o=f,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 r5({draft:e,file:o.file,folder:o.folder})):c=CV(o,{pathOnly:!0,allowSpecial:!0,entry:e.originalEntry})),r&&!s&&!o&&(c=r),{value:c,credit:i?oj(i,VH):``,oversizedFileName:l,invalidFileName:void 0}}})))()}var c5,l5,u5,awe,owe,d5,swe,cwe,lwe;function uwe(){return(uwe=s((()=>{Z(),rd(),c5=[`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(`,`),l5=`https://api.pexels.com/v1`,u5={per_page:80},awe=/\/photo\/(?<alt>.+?)-\d+\/$/,owe=()=>{let e=Bu.current.toLowerCase(),[t]=e.split(`-`);return c5.find(t=>t.toLowerCase()===e)??c5.find(e=>e.split(`-`)[0]===t)??`en-US`},d5=e=>e.map(({id:e,url:t,alt:n,src:{large2x:r,medium:i},photographer:a})=>({id:String(e),description:t.match(awe)?.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>`})),swe=async({apiKey:e})=>{let t={Authorization:e},n=new URLSearchParams(u5),r=await fetch(`${l5}/curated?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=(await r.json()).photos;return d5(i)},cwe=async(e,{apiKey:t})=>{let n={Authorization:t},r=new URLSearchParams({...u5,query:e,locale:owe()}),i=[];for(let e=1;e<=2;e+=1){r.set(`page`,String(e));let t=await fetch(`${l5}/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 nd(50)}return d5(i)},lwe={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:swe,search:cwe}})))()}var dwe,fwe,pwe,mwe,hwe,gwe,_we;function vwe(){return(vwe=s((()=>{dwe=`https://picsum.photos/v2/list`,fwe=100,pwe=10,mwe=3,hwe=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`}}),gwe=async()=>{let e=Array.from({length:pwe},(e,t)=>t+1).sort(()=>Math.random()-.5).slice(0,mwe),t=await Promise.all(e.map(e=>fetch(`${dwe}?page=${e}&limit=${fwe}`)));if(t.some(e=>!e.ok))return Promise.reject();let n=await Promise.all(t.map(e=>e.json()));return hwe(n.flat().sort(()=>Math.random()-.5))},_we={serviceType:`stock_assets`,serviceId:`picsum`,serviceLabel:`Lorem Picsum`,serviceURL:`https://picsum.photos/`,showServiceLink:!0,hotlinking:!0,authType:`none`,list:gwe}})))()}var ywe,f5,p5,m5,h5,bwe,xwe,Swe;function Cwe(){return(Cwe=s((()=>{Z(),ywe=`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(`,`),f5=`https://pixabay.com/api`,p5={image_type:`photo`,min_width:1280,safesearch:!0,per_page:150},m5=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`})),h5=()=>{let[e]=Bu.current.toLowerCase().split(`-`);return ywe.includes(e)?e:`en`},bwe=async({apiKey:e})=>{let t=new URLSearchParams({...p5,key:e,lang:h5(),editors_choice:`true`}),n=await fetch(`${f5}/?${t}`);if(!n.ok)return Promise.reject();let r=(await n.json()).hits;return m5(r)},xwe=async(e,{apiKey:t})=>{let n=new URLSearchParams({...p5,key:t,lang:h5(),q:e}),r=await fetch(`${f5}/?${n}`);if(!r.ok)return Promise.reject();let i=(await r.json()).hits;return m5(i)},Swe={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:bwe,search:xwe}})))()}var g5,_5,v5,y5,wwe,b5,Twe,Ewe,Dwe;function Owe(){return(Owe=s((()=>{Z(),rd(),g5=[`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(`,`),_5=`https://api.unsplash.com`,v5=`utm_source=sveltia-cms&utm_medium=referral`,y5={per_page:30},wwe=()=>{let e=Bu.current.toLowerCase(),[t]=e.split(`-`);return g5.find(t=>t.toLowerCase()===e)??g5.find(e=>e.split(`-`)[0]===t)??`en`},b5=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}?${v5}">${o}</a> on <a href="https://unsplash.com/?${v5}">Unsplash</a>`})),Twe=async({apiKey:e})=>{let t={Authorization:`Client-ID ${e}`},n=new URLSearchParams(y5),r=await fetch(`${_5}/photos?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=await r.json();return b5(i)},Ewe=async(e,{apiKey:t})=>{let n={Authorization:`Client-ID ${t}`},r=new URLSearchParams({...y5,query:e,lang:wwe()}),i=[];for(let e=1;e<=5;e+=1){r.set(`page`,String(e));let t=await fetch(`${_5}/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 nd(50)}return b5(i)},Dwe={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:Twe,search:Ewe}})))()}var x5,S5;function C5(){return(C5=s((()=>{YK(),uwe(),vwe(),Cwe(),Owe(),x5={pexels:lwe,picsum:_we,pixabay:Swe,unsplash:Dwe},S5=({fieldConfig:e}={})=>{let t=JK({libraryName:`stock_assets`,fieldConfig:e});if(t===!1)return{providers:[]};let n=Object.keys(x5),{providers:r}=t;return{providers:Array.isArray(r)?r:n}}})))()}function kwe(e,t){let n=Ma();O(t,!0),G(e,Fwe);let r=()=>j(t.entryDraft,`$entryDraft`,s),i=()=>j(vQ,`$showContentOverlay`,s),a=()=>j(TQ,`$selectAssetsView`,s),o=()=>j(aR,`$cloudinaryActivated`,s),[s,c]=fn(),l=e=>{var n=w5(),r=I(n),i=e=>{var n=w5(),r=I(n),i=e=>{{let t=M(()=>TQ);a6(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(re)),n=M(()=>z(S).some(e=>e.file)),r=M(()=>X(`assets_dialog.search_for_${t.kind??`file`}`));Bm(o,{dir:`auto`,get flex(){return eG.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(re)||z(E)&&z(v)!==`cloudinary`||z(ue)&&z(v)!==`picsum`)&&e(i)});var o=L(r,2),s=e=>{{let t=e=>{sc(e,{name:`cloud_upload`})},n=M(()=>X(`upload`));Bd(e,{variant:`primary`,get label(){return z(n)},onclick:()=>{z(x)?.open()},startIcon:t,$$slots:{startIcon:!0}})}};W(o,e=>{(z(re)||z(E)&&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`?UB.join(`,`):void 0),p=q(t,`canEnterURL`,3,!0),m=q(t,`onSelect`,3,void 0),h=q(t,`pendingFiles`,31,()=>Dr([])),g=N(``),_=N(``),v=N(`default-global`),y=N(Dr([])),b=N(Dr([])),x=N(void 0),S=N(Dr([])),C=N(void 0),T=(e,t)=>{let n=e[1].serviceLabel.toLowerCase(),r=t[1].serviceLabel.toLowerCase();return n.localeCompare(r)},ee=M(()=>t.kind===`image`?X(`assets_dialog.title.image`):X(`assets_dialog.title.file`)),te=M(()=>d6(z(_))),ne=M(()=>JK({fieldConfig:t.fieldConfig})!==!1&&Object.values(t.assetLibraryFolderMap).some(({enabled:e})=>e)),re=M(()=>z(v).startsWith(`default-`)),ie=M(()=>{if(!z(re))return;let e=z(v).replace(`default-`,``),{folder:n}=t.assetLibraryFolderMap[e];return n}),ae=M(()=>Q8({entry:r()?.originalEntry,folder:z(ie)})),oe=M(()=>e5({kind:t.kind,folder:z(ie),folderPath:z(ae),unsavedAssets:z(b)})),se=M(()=>{let{providers:e=[]}=S5({fieldConfig:t.fieldConfig});return Object.entries(x5).filter(([t,{hotlinking:n}])=>e.includes(t)&&(n||z(ne))).sort(T)}),ce=M(()=>z(se).some(([e,{authType:t}])=>e===z(v)&&(t===`none`||!!NK.apiKeys?.[z(v)]))),le=M(()=>[...t.enabledCloudServiceEntries,...z(se)].sort(T)),E=M(()=>t.enabledCloudServiceEntries.map(([e])=>e).includes(z(v))),ue=M(()=>z(se).map(([e])=>e).includes(z(v))),de=M(()=>eG.isSmallScreen?Hm:Zp),fe=async e=>{let t=await pd(e),n=z(ie);if(await nwe({hash:t,folder:n,unsavedAssets:z(b)}))return;let r=await i5({file:e,folder:n,targetFolderPath:z(ae)});return z(y).push(r),r},pe=async e=>{let t=await J8({files:e,listedAssets:z(oe)});t!==void 0&&P(S,(await Promise.all(e.map(e=>fe(e)))).filter(e=>!!e).map(e=>({asset:e,replace:t})),!0)},me=()=>{P(g,``),P(_,``),P(y,[],!0),P(b,[],!0),P(S,[],!0)},he=()=>{if(!z(S).length)return;let e=Dt(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)};$r(()=>{let e=z(ne)?Object.entries(t.assetLibraryFolderMap).find(([,{enabled:e}])=>e)?.[0]:void 0;e?P(v,`default-${e}`):P(v,z(le)[0]?.[0],!0)}),Zr(()=>{r()?.files,Dt(z(y)),(async()=>{P(b,[...r()?.files?await a5({draft:r(),targetFolderPath:z(ae)}):[],...Object.values(z(y))],!0)})()}),Zr(()=>{i()||u(!1)}),Zr(()=>{z(C)&&h().length&&(z(C).uploadFiles(h()),h([]))});var ge=w5(),_e=I(ge);{let e=e=>{var t=V(),n=I(t),r=e=>{l(e)};W(n,e=>{eG.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}=x5[z(v)]??{};return{showServiceLink:e,serviceLabel:t,serviceURL:n}});var n=V(),r=I(n),i=e=>{var n=Awe(),r=F(n,!0);D(n),R(e=>{K(n,`href`,z(t).serviceURL),U(r,e)},[()=>X(`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(ce)&&e(r)}),H(e,t)},i=M(()=>X(`insert`)),a=M(()=>!z(S).length);dp(_e,{get title(){return z(ee)},size:`x-large`,get okLabel(){return z(i)},get okDisabled(){return z(a)},focusInput:!1,onOk:he,onClose:()=>{me()},get open(){return u()},set open(e){u(e)},headerExtra:e,footerExtra:r,children:(e,r)=>{var i=Pwe(),a=F(i),s=F(a);{let e=M(()=>X(`assets_dialog.locations`));wo(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=jwe(),i=I(r),a=e=>{{let n=M(()=>X(`asset_location.repository`));nm(e,{get label(){return z(n)},children:(e,n)=>{var r=V();lo(I(r),17,()=>Object.entries(t.assetLibraryFolderMap),([e,{folder:t,enabled:n}])=>e,(e,t)=>{var n=M(()=>w(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??X(`assets_dialog.folder.${r()}`)),a=M(()=>z(v)===z(t));sm(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(ne)&&e(a)});var s=L(i,2),c=e=>{{let n=M(()=>X(`asset_location.external`));nm(e,{get label(){return z(n)},children:(e,n)=>{var r=w5(),i=I(r);lo(i,17,()=>t.enabledCloudServiceEntries,([,{serviceId:e,serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>w(z(t),2));let r=()=>z(n)[1].serviceId,i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(v)===r());sm(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)},onclick:()=>{r()===`cloudinary`&&o()&&dn(sR,!0)}})}});var a=L(i,2),s=e=>{{let t=M(()=>X(`assets_dialog.enter_url`)),n=M(()=>z(v)===`enter-url`);sm(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(()=>X(`asset_location.stock_photos`));nm(e,{get label(){return z(t)},children:(e,t)=>{var n=V();lo(I(n),17,()=>z(se),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>w(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(v)===r());sm(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}}),H(e,n)},$$slots:{default:!0}})}};W(u,e=>{z(se).length&&e(d)}),H(e,r)},$$slots:{default:!0}})})}var c=L(s,2),m=e=>{var t=Mwe(),n=F(t);l(n),D(t),H(e,t)};W(c,e=>{eG.isSmallScreen&&e(m)}),D(a);var h=L(a,2),_=F(h),y=e=>{QCe(e,{get accept(){return f()},get multiple(){return d()},get assets(){return z(oe)},get searchTerms(){return z(te)},get basePath(){return z(ie).internalPath},onDrop:({files:e})=>{pe(e)},get selectedResources(){return z(S)},set selectedResources(e){P(S,e,!0)}})};W(_,e=>{z(re)&&z(ie)&&e(y)});var b=L(_,2),x=e=>{Ak(e,{children:(e,n)=>{var r=Nwe(),i=I(r),a=F(i,!0);D(i),Ep(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`?X(`assets_dialog.enter_image_url`):X(`assets_dialog.enter_file_url`)]),H(e,r)},$$slots:{default:!0}})};W(b,e=>{p()&&z(v)===`enter-url`&&e(x)}),lo(L(b,2),17,()=>z(le),([e,t])=>e,(e,n)=>{var r=M(()=>w(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`);yCe(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),he(),u(!1)}})}},l=e=>{Bs(zCe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return d()},get searchTerms(){return z(te)},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)}),D(h),D(i),R(()=>K(h,`id`,`${n}-content-pane`)),H(e,i)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}Bs(Lp(L(_e,2),{get accept(){return f()},get multiple(){return d()},onSelect:({files:e})=>{z(E)?z(C)?.uploadFiles(e):pe(e)}}),e=>P(x,e,!0),()=>z(x)),H(e,ge),k(),c()}var w5,Awe,jwe,Mwe,Nwe,Pwe,Fwe;function Iwe(){return(Iwe=s((()=>{Y(),J(),Z(),Kd(),yp(),Nk(),zp(),dc(),tm(),fm(),om(),Vm(),Um(),jp(),md(),xCe(),KCe(),$Ce(),o6(),EQ(),Y8(),t5(),s5(),YK(),_R(),C5(),p6(),nG(),FK(),GB(),w5=B(`<!> <!>`,1),Awe=B(`<a class="service-link svelte-5b1zbe"> </a>`),jwe=B(`<!> <!> <!>`,1),Mwe=B(`<div role="none" class="filter-tools svelte-5b1zbe"><!></div>`),Nwe=B(`<div role="none"> </div> <!>`,1),Pwe=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>`),Fwe={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 Lwe(e,t){O(t,!0);{let t=e=>{var t=Rwe(),n=I(t);Yf(n,{flex:!0});var r=L(n,2);Bd(r,{variant:`primary`,onclick:()=>q8.resolve(!0),children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`replace`)]),H(e,n)},$$slots:{default:!0}});var i=L(r,2);Bd(i,{variant:`primary`,onclick:()=>q8.resolve(!1),children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`keep_both`)]),H(e,n)},$$slots:{default:!0}}),Bd(L(i,2),{variant:`secondary`,onclick:()=>q8.resolve(void 0),children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`cancel`)]),H(e,n)},$$slots:{default:!0}}),H(e,t)},n=M(()=>X(`file_name_conflict_resolution`));Cp(e,{get title(){return z(n)},onCancel:()=>q8.resolve(void 0),get open(){return q8.showDialog},set open(e){q8.showDialog=e},footer:t,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`file_name_conflict_confirmation_with_name`,{values:{count:q8.count,name:q8.name}})]),H(e,n)},$$slots:{footer:!0,default:!0}})}k()}var Rwe;function zwe(){return(zwe=s((()=>{Y(),J(),Z(),Kd(),Tp(),$f(),Y8(),Rwe=B(`<!> <!> <!> <!>`,1)})))()}function Bwe(e,t){O(t,!0),G(e,qwe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),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),_=N(!1),v=N(``),y=N(void 0),b=N(!1),x=M(()=>t.fieldConfig.widget),S=M(()=>z(x)===`image`),C=M(()=>!!z(m)&&!!t.value?.startsWith(`blob:`)),w=M(()=>z(C)&&!a()),T=M(()=>z(m)?pM(z(m).name).extension:void 0),ee=M(()=>Kz(z(v).trim())),te=M(()=>pM(z(ee)).extension),ne=M(()=>({value:t.value,entry:f(),collectionName:c(),fileName:l(),componentName:d(),typedKeyPath:u(),fieldConfig:t.fieldConfig})),re=M(()=>{if(!t.value)return``;if(z(m)){let{publicPath:e,entryRelative:r,hasTemplateTags:i}=n()?.files[t.value]?.folder??{};return Yz([r||i?``:e||``,decodeURI(z(m).name.normalize())])}if(!t.value.startsWith(`blob:`)){let e=decodeURI(t.value);if(ND(e)){let t=new URL(e);if(t.search)return t.search=``,`${t}…`}return e}return``}),ie=async()=>{z(m)&&(P(v,z(m).name,!0),P(_,!0),await Fi(),z(y)?.focus(),z(y)?.setSelectionRange(0,pM(z(v)).filename.length))},ae=()=>{if(!z(m)||!n()?.files[t.value])return;let e=new File([z(m)],z(ee),{type:z(m).type,lastModified:z(m).lastModified});mn(a3,Ri(n).files[t.value].file=e,Ri(n)),P(m,e,!0),P(_,!1)},oe=()=>{if(!z(m)||!z(ee)||z(ee)===z(m).name){P(_,!1);return}Jz(z(T),z(te))?ae():P(b,!0)},se=async()=>{t.value?.startsWith(`blob:`)&&n()&&P(m,n().files[t.value]?.file,!0),t.value?(z(S)&&/^https?:/.test(t.value)?(P(p,void 0),P(h,`image`),P(g,t.value,!0)):t.value.startsWith(`blob:`)||(P(p,bq({...z(ne)}),!0),P(h,void 0),P(g,void 0)),!z(p)&&!z(g)&&(P(h,await TR(t.value),!0),P(g,z(h)?await TV({...z(ne),thumbnail:!0}):void 0,!0))):(P(p,void 0),P(m,void 0),P(h,void 0),P(g,void 0))};Zr(()=>{t.value,Ri(()=>{se()})}),Zr(()=>{if(z(_))return bQ.update(e=>e+1),()=>{bQ.update(e=>e-1)}});var ce=Kwe(),le=I(ce),E=F(le),ue=e=>{var n=Vwe(),r=F(n);{let e=e=>{sc(e,{name:`arrow_upward`})},n=M(()=>!t.onMoveUp),i=M(()=>X(`move_up`));Bd(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=>{sc(e,{name:`arrow_downward`})},n=M(()=>!t.onMoveDown),r=M(()=>X(`move_down`));Bd(i,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{t.onMoveDown?.()},startIcon:e,$$slots:{startIcon:!0}})}D(n),H(e,n)};W(E,e=>{(t.onMoveUp||t.onMoveDown)&&!a()&&e(ue)});var de=L(E,2),fe=e=>{g1(e,{get kind(){return z(h)},get src(){return z(g)},variant:`tile`,checkerboard:!0})},pe=e=>{g1(e,{get kind(){return z(p).kind},get asset(){return z(p)},variant:`tile`,checkerboard:!0})},me=e=>{var t=Hwe();sc(F(t),{name:`draft`}),D(t),H(e,t)};W(de,e=>{z(h)&&z(g)?e(fe):z(p)?e(pe,1):e(me,-1)});var he=L(de,2),ge=F(he),_e=e=>{var n=Gwe(),r=F(n),i=e=>{var n=Uwe(),r=I(n);Ep(r,{get id(){return`${t.fieldId??``}-value`},dir:`auto`,flex:!0,get invalid(){return o()},get required(){return s()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onkeydown:e=>{let{key:t,isComposing:n}=e;n||t!==`Enter`&&t!==`Escape`||(e.preventDefault(),e.stopPropagation(),t===`Enter`?oe():P(_,!1))},get value(){return z(v)},set value(e){P(v,e,!0)},get element(){return z(y)},set element(e){P(y,e,!0)}});var i=L(r,2);{let e=e=>{sc(e,{name:`check`})},n=M(()=>!z(ee)),r=M(()=>X(`done`));Bd(i,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{oe()},startIcon:e,$$slots:{startIcon:!0}})}var a=L(i,2);{let e=e=>{sc(e,{name:`close`})},n=M(()=>X(`cancel`));Bd(a,{size:`small`,iconic:!0,get"aria-label"(){return z(n)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{P(_,!1)},startIcon:e,$$slots:{startIcon:!0}})}H(e,n)},c=e=>{var n=Wwe(),r=I(n),i=F(r,!0);D(r);var c=L(r,2),l=e=>{{let n=e=>{sc(e,{name:`edit`})},r=M(()=>X(`rename`));Bd(e,{size:`small`,iconic:!0,get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{ie()},startIcon:n,$$slots:{startIcon:!0}})}};W(c,e=>{z(w)&&e(l)}),R(()=>{K(r,`id`,`${t.fieldId??``}-value`),K(r,`aria-readonly`,a()),K(r,`aria-invalid`,o()),K(r,`aria-required`,s()),K(r,`aria-labelledby`,`${t.fieldId??``}-label`),K(r,`aria-errormessage`,`${t.fieldId??``}-error`),U(i,z(re))}),H(e,n)};W(r,e=>{z(_)?e(i):e(c,-1)}),D(n),H(e,n)};W(ge,e=>{typeof t.value==`string`&&e(_e)});var ve=L(ge,2),ye=F(ve),be=e=>{{let n=M(()=>X(`replace`)),r=M(()=>X(`replace_${z(x)}`));Bd(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(ye,e=>{t.onReplace&&e(be)});var xe=L(ye,2),Se=e=>{{let n=M(()=>X(`remove`)),r=M(()=>X(`remove_${z(x)}`));Bd(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(xe,e=>{t.onRemove&&e(Se)}),D(ve),D(he),D(le);var Ce=L(le,2);{let e=M(()=>X(`rename`));Qpe(Ce,{get oldExtension(){return z(T)},get newExtension(){return z(te)},get okLabel(){return z(e)},onOk:()=>{ae()},onCancel:()=>{z(y)?.focus()},get open(){return z(b)},set open(e){P(b,e,!0)}})}H(e,ce),k(),i()}var Vwe,Hwe,Uwe,Wwe,Gwe,Kwe,qwe;function Jwe(){return(Jwe=s((()=>{Y(),J(),Z(),Kd(),dc(),jp(),hM(),FD(),oc(),_1(),k1(),Tq(),EV(),OR(),l3(),EQ(),eB(),Vwe=B(`<div role="toolbar" class="reorder-controls svelte-1yfgkx5"><!> <!></div>`),Hwe=B(`<span role="none" class="preview no-thumbnail"><!></span>`),Uwe=B(`<!> <!> <!>`,1),Wwe=B(`<div role="textbox" tabindex="0" class="filename svelte-1yfgkx5"> </div> <!>`,1),Gwe=B(`<div role="none" class="path svelte-1yfgkx5"><!></div>`),Kwe=B(`<div role="none" class="filled svelte-1yfgkx5"><!> <!> <div role="none" class="svelte-1yfgkx5"><!> <div role="none"><!> <!></div></div></div> <!>`,1),qwe={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;.path:where(.svelte-1yfgkx5) {display:flex;align-items:center;gap:4px;.filename:where(.svelte-1yfgkx5) {flex:auto;}}.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);width:28px;height:-moz-available;height:-webkit-fill-available;height:stretch;background-color:var(--sui-secondary-border-color);}`}})))()}function Ywe(e,t){O(t,!0),G(e,eTe);let n=e=>{var n=Xwe(),o=F(n);{let e=M(()=>X(`browse`));Bd(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(()=>X(t.isImageField?`paste_image`:`paste`));Bd(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)}),D(n),H(e,n)},r=q(t,`showSelectAssetsDialog`,15,!1),i=q(t,`replaceMode`,15,!1),a=q(t,`onFilePaste`,3,void 0),o=Dr({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:X(`no_image_in_clipboard`),show:!0})}catch{Object.assign(o,{message:X(`clipboard_access_denied`),show:!0})}};var l=$we(),u=I(l);let d;var f=F(u);sc(f,{name:`cloud_upload`});var p=L(f,2),m=F(p),h=e=>{var n=Zwe(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`processing_files`,{values:{count:t.multiple?2:1}})]),H(e,n)},g=e=>{var r=Qwe(),i=I(r),a=e=>{var t=ja();R(e=>U(t,e),[()=>X(`click_to_browse`)]),H(e,t)},o=e=>{var n=ja();R(e=>U(n,e),[()=>X(`drop_image_files_or`,{values:{count:t.multiple?2:1}})]),H(e,n)},s=e=>{var n=ja();R(e=>U(n,e),[()=>X(`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):eG.hasMouse?e(g,1):e(_,-1)}),D(p),D(u),ah(L(u,2),{get show(){return o.show},set show(e){o.show=e},children:(e,t)=>{fc(e,{status:`error`,children:(e,t)=>{mt();var n=ja();R(()=>U(n,o.message)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(()=>{d=is(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)}),va(`click`,u,()=>{eG.hasMouse&&!z(s)&&(i(!1),r(!0))}),va(`keydown`,u,e=>{!z(s)&&Yu(e,`Accel+V`)&&(e.preventDefault(),c())}),H(e,l),k()}var Xwe,Zwe,Qwe,$we,eTe;function tTe(){return(tTe=s((()=>{Y(),J(),Z(),gc(),Kd(),dc(),lh(),Zu(),nG(),Xwe=B(`<div role="none" class="buttons"><!> <!></div>`),Zwe=B(`<div role="status"> </div>`),Qwe=B(`<!> <!>`,1),$we=B(`<div role="button"><!> <div role="none" class="label svelte-1jvz1op"><!></div></div> <!>`,1),eTe={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;}}`},ya([`click`,`keydown`])})))()}function nTe(e,t){O(t,!0),G(e,oTe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=e=>{Ywe(e,{get allowDrop(){return z(Ee)},get invalid(){return h()},get readonly(){return m()},get processing(){return z(T)},get isImageField(){return z(de)},get multiple(){return z(ye)},onFilePaste:e=>{Oe([{file:e,folder:z(ge)}])},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=rTe(),r=I(n);lo(r,23,f,(e,t)=>`${e}|${t}`,(e,n,r)=>{{let i=M(()=>z(r)>0?()=>je(z(r)-1):void 0),a=M(()=>z(r)<f().length-1?()=>je(z(r)):void 0);Bwe(e,Js(()=>z(Se),{get value(){return z(n)},get fieldId(){return`${t.fieldId??``}-${z(r)??``}`},onReplace:()=>{P(_,!0),P(v,z(r),!0),P(g,!0)},onRemove:()=>Ae(z(r)),get onMoveUp(){return z(i)},get onMoveDown(){return z(a)}}))}}),D(r);var i=L(r,2),o=e=>{a(e)};W(i,e=>{f().length<z(ae)&&e(o)}),H(e,n)},o=M(()=>Array.isArray(f()));W(r,e=>{z(o)&&e(i)}),H(e,n)},o=e=>{Bwe(e,Js(()=>z(Se),{get value(){return f()},get fieldId(){return t.fieldId},onReplace:()=>{P(_,!0),P(g,!0)},onRemove:De}))};W(r,e=>{z(ye)?e(i):typeof f()==`string`&&f()&&e(o,1)}),H(e,n)},o=e=>{a(e)};W(r,e=>{f()?.length&&!z(T)?e(i):e(o,-1)}),H(e,n)},{valueStoreKey:s=`currentValues`,fieldContext:c=void 0,parentComponentNames:l=[]}=Pt(`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),T=N(!1),ee=N(Dr([])),te=N(Dr([])),ne=N(Dr([])),re=N(Dr([])),ie=M(()=>t.fieldConfig.widget),ae=M(()=>C(t.fieldConfig.max,1/0)),oe=M(()=>t.fieldConfig.accept),se=M(()=>C(t.fieldConfig.choose_url,!0)),ce=M(()=>n()?.originalEntry),le=M(()=>n()?.collectionName??``),E=M(()=>n()?.fileName),ue=M(()=>n()?.isIndexFile??!1),de=M(()=>z(ie)===`image`),fe=M(()=>z(de)?`image`:void 0),pe=M(()=>XK({fieldConfig:t.fieldConfig})),me=M(()=>z(pe).config),he=M(()=>X8({collectionName:z(le),fileName:z(E),componentName:d,typedKeyPath:t.typedKeyPath,isIndexFile:z(ue)})),ge=M(()=>Z8(z(he))),_e=M(()=>Q8({entry:n()?.originalEntry,folder:z(ge)})),ve=M(()=>e5({kind:z(fe),folder:z(ge),folderPath:z(_e),unsavedAssets:z(re)})),ye=M(()=>aU(t.fieldConfig)),be=M(()=>z(me).max_file_size),xe=M(()=>!p()&&(!c||![`rich-text-editor-component`,`single-subfield-list-field`].includes(c))),Se=M(()=>({fieldConfig:t.fieldConfig,readonly:m(),invalid:h(),required:p(),showRemoveButton:z(xe),collectionName:z(le),fileName:z(E),componentName:d,typedKeyPath:t.typedKeyPath,entry:z(ce)})),Ce=M(()=>Object.entries(fB).filter(([,{isEnabled:e}])=>e?.(t.fieldConfig)??!0)),we=M(()=>z(pe).enabled&&!!z(ge)),Te=M(()=>+!!z(we)+z(Ce).length),Ee=M(()=>z(Te)===1),De=()=>{z(S)?.reset(),z(ye)||(f(``),Xn())},Oe=async e=>{if(!n())return;let r=z(ye)?void 0:f();De(),P(T,!0),P(ee,[],!0),P(te,[],!0);let i=await Promise.all(e.map(e=>(e.file&&!e.folder&&(e.folder=z(ge)),o5({draft:n(),resource:e,libraryConfig:z(me)})))),a=[],o=!1,c=z(ye)?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,invalidFileName:l},d)=>{if(e){if(o=!0,z(ye)){let r=z(_)?z(v):c+1+d;mn(a3,Ri(n)[s][t.locale][`${t.keyPath}.${r}`]=e,Ri(n))}else f(u?e.replaceAll(` `,`%20`):e)}r&&a.push(r),i&&z(ee).push(i),l&&z(te).push(l)}),!o&&!z(ye)&&r!==void 0&&f(r),a.length?(P(x,a.join(`
|
||
`),!0),P(b,!0)):P(x,``),(z(ee).length||z(te).length)&&P(y,!0),P(T,!1)},ke=async({files:e})=>{if(e.length){if(z(we)){let t=await J8({files:e,listedAssets:z(ve)});if(t===void 0)return;Oe(e.map(e=>({file:e,folder:z(ge),replace:t})))}else P(ne,e,!0),P(g,!0)}},Ae=e=>{if(!n())return;let r=d8(n(),t.locale,s),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]),mn(a3,Ri(n)[s][t.locale][o]=r[c],Ri(n));else{mn(a3,Ri(n)[s][t.locale][o]=null,Ri(n)),delete n()[s][t.locale][o];break}}f(Object.values(i))},je=e=>{n()&&(r=>{var i=w(r,2);mn(a3,Ri(n)[s][t.locale][`${t.keyPath}.${e}`]=i[0],Ri(n)),mn(a3,Ri(n)[s][t.locale][`${t.keyPath}.${e+1}`]=i[1],Ri(n))})([n()[s][t.locale][`${t.keyPath}.${e+1}`],n()[s][t.locale][`${t.keyPath}.${e}`]])};Zr(()=>{(async()=>{n()?.files?P(re,await a5({draft:n(),targetFolderPath:z(_e)}),!0):P(re,[],!0)})()});var Me=aTe(),Ne=I(Me),Pe=e=>{{let t=M(()=>z(oe)??(z(de)?UB.join(`,`):void 0));Bs(C3(e,{get multiple(){return z(ye)},get disabled(){return m()},get accept(){return z(t)},onDrop:ke,children:(e,t)=>{o(e)},$$slots:{default:!0}}),e=>P(S,e,!0),()=>z(S))}},Fe=e=>{o(e)};W(Ne,e=>{z(Ee)?e(Pe):e(Fe,-1)});var Ie=L(Ne,2);{let e=M(()=>!z(_)&&z(ye));kwe(Ie,{get kind(){return z(fe)},get multiple(){return z(e)},get accept(){return z(oe)},get canEnterURL(){return z(se)},get entryDraft(){return a3},get fieldConfig(){return t.fieldConfig},get assetLibraryFolderMap(){return z(he)},get enabledCloudServiceEntries(){return z(Ce)},onSelect:Oe,get open(){return z(g)},set open(e){P(g,e,!0)},get pendingFiles(){return z(ne)},set pendingFiles(e){P(ne,e,!0)}})}var Le=L(Ie,2);Lwe(Le,{});var Re=L(Le,2);PCe(Re,{get oversizedFileNames(){return z(ee)},get invalidFileNames(){return z(te)},get maxSize(){return z(be)},get open(){return z(y)},set open(e){P(y,e,!0)}});var ze=L(Re,2);{let e=M(()=>X(`assets_dialog.photo_credit.title`)),t=M(()=>X(`copy`));Cp(ze,{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=iTe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);VO(F(a),{dir:`auto`,flex:!0,readonly:!0,get value(){return z(x)},onclick:e=>{e.target.focus(),e.target.select()}}),D(a),R(e=>U(i,e),[()=>X(`assets_dialog.photo_credit.description`)]),H(e,n)},$$slots:{default:!0}})}H(e,Me),k(),i()}var rTe,iTe,aTe,oTe;function sTe(){return(sTe=s((()=>{Y(),J(),Z(),Tp(),KO(),oc(),Iwe(),zwe(),w3(),V8(),Jwe(),tTe(),l3(),f8(),Y8(),t5(),s5(),mB(),QK(),oU(),GB(),rTe=B(`<div role="none" class="item-list svelte-17jic1t"></div> <!>`,1),iTe=B(`<div role="none"> </div> <div role="none"><!></div>`,1),aTe=B(`<!> <!> <!> <!> <!>`,1),oTe={hash:`svelte-17jic1t`,code:`.item-list.svelte-17jic1t {display:flex;flex-direction:column;gap:4px;}`}})))()}function cTe(e,t){O(t,!0),G(e,dTe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),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);Zr(()=>{t.value,Ri(async()=>{P(o,t.value?z(l)?`image`:await TR(t.value):void 0,!0),P(s,z(o)?await TV({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=lTe(),n=F(t);{let e=M(()=>[`audio`,`video`].includes(z(o)));g1(n,{get kind(){return z(o)},get src(){return z(s)},get controls(){return z(e)}})}D(t),H(e,t)},g=e=>{var n=uTe(),r=F(n,!0);D(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),k(),i()}var lTe,uTe,dTe;function fTe(){return(fTe=s((()=>{Y(),J(),oc(),_1(),EV(),OR(),l3(),lTe=B(`<p class="svelte-28vcoi"><!></p>`),uTe=B(`<p class="svelte-28vcoi"> </p>`),dTe={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 pTe(e,t){O(t,!0);var n=V(),r=I(n),i=e=>{var n=V(),r=I(n),i=e=>{var n=V();lo(I(n),19,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,n)=>{cTe(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(()=>aU(t.fieldConfig)),o=e=>{cTe(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),k()}function mTe(){return(mTe=s((()=>{Y(),J(),fTe(),oU()})))()}var T5,hTe,gTe;function E5(){return(E5=s((()=>{aM(),l3(),T5=({entryDraft:e,valueStoreKey:t=`currentValues`,keyPath:n,locale:r})=>Object.entries(A(e)[t][r]??{}).filter(([e])=>e.startsWith(`${n}.`)).map(([e,t])=>[e.replace(`${n}.`,``),t]),hTe=({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`}),gTe=({entryDraft:e,keyPath:t,locale:n,fieldConfig:r,pairs:i})=>{let{i18n:a}=r;o3.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)),o3.set(!0)}})))()}function _Te(e,t){O(t,!0),G(e,TTe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),{valueStoreKey:a=`currentValues`}=Pt(`field-editor`)??{},o=q(t,`readonly`,3,!1),s=M(()=>C(t.fieldConfig.i18n,!1)),c=M(()=>t.fieldConfig.key_label),l=M(()=>t.fieldConfig.value_label),u=M(()=>C(t.fieldConfig.max,1/0)),d=M(()=>z(c)||X(`key_value.key`)),f=M(()=>z(l)||X(`key_value.value`)),p=N(Dr([])),m=N(Dr([])),h=0,g=Dr([]),_=N(Dr([])),v=N(Dr([])),y=()=>{if(!n())return;let e=T5({entryDraft:a3,valueStoreKey:a,keyPath:t.keyPath,locale:t.locale});(0,vTe.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&&mn(a3,Ri(n)[a][t.locale][t.keyPath]=null,Ri(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,hTe({pairs:z(p),edited:z(_)}),!0),!(!n()||z(v).some(Boolean)||z(p).some(([e])=>!e.trim()))&&gTe({entryDraft:a3,fieldConfig:t.fieldConfig,keyPath:t.keyPath,locale:t.locale,pairs:z(p)})};Zr(()=>{d8(n(),t.locale,a),Ri(()=>{y()})}),Zr(()=>{Dt(z(p)),Ri(()=>{S()})});var w=wTe(),T=I(w),ee=e=>{var n=STe(),r=F(n),i=F(r),a=F(i),s=F(a,!0);D(a);var c=L(a),l=F(c,!0);D(c);var h=L(c),y=e=>{var t=yTe();R(e=>K(t,`aria-label`,e),[()=>X(`key_value.action`)]),H(e,t)};W(h,e=>{o()||e(y)}),D(i),D(r);var S=L(r);lo(S,23,()=>z(p),(e,t)=>z(m)[t],(e,n,r)=>{var i=xTe(),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);Ep(s,{dir:`ltr`,get readonly(){return o()},flex:!0,get invalid(){return z(e)},get"aria-label"(){return z(d)},get"aria-errormessage"(){return z(i)},oninput:()=>{z(_)[z(r)]=!0},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&g[z(r)].querySelector(`td.value input`).focus()},get value(){return z(n)[0]},set value(e){z(n)[0]=e}})}D(a);var c=L(a),l=F(c);{let e=M(()=>NI(t.locale));Ep(l,{get dir(){return z(e)},get readonly(){return o()},flex:!0,get"aria-label"(){return z(f)},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&(z(r)<z(p).length-1?g[z(r)+1].querySelector(`input`).focus():z(p).length<z(u)&&b())},get value(){return z(n)[1]},set value(e){z(n)[1]=e}})}D(c);var m=L(c),h=e=>{var t=bTe(),n=F(t);{let e=e=>{sc(e,{name:`close`})},t=M(()=>X(`remove`));Bd(n,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{x(z(r))},startIcon:e,$$slots:{startIcon:!0}})}D(t),H(e,t)};W(m,e=>{o()||e(h)}),D(i),Bs(i,(e,t)=>g[t]=e,e=>g?.[e],()=>[z(r)]),H(e,i)}),D(S),D(n),R(()=>{U(s,z(d)),U(l,z(f))}),H(e,n)};W(T,e=>{z(p).length&&e(ee)});var te=L(T,2),ne=e=>{_8(e,{get id(){return`${t.fieldId??``}-kv-error`},children:(e,t)=>{var n=CTe(),r=I(n),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`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=ja();R(e=>U(t,e),[()=>X(`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}})},re=M(()=>z(v).some(Boolean));W(te,e=>{z(re)&&e(ne)});var ie=L(te,2),ae=F(ie);{let e=M(()=>X(`add`)),t=M(()=>o()||z(p).length>=z(u));Bd(ae,{get label(){return z(e)},variant:`tertiary`,get disabled(){return z(t)},onclick:()=>{b()}})}D(ie),H(e,w),k(),i()}var vTe,yTe,bTe,xTe,STe,CTe,wTe,TTe;function ETe(){return(ETe=s((()=>{Y(),J(),Z(),Kd(),dc(),jp(),vTe=u(kK()),oc(),v8(),l3(),f8(),E5(),zI(),yTe=B(`<th scope="col" class="action svelte-u0prcz"></th>`),bTe=B(`<td class="action svelte-u0prcz"><!></td>`),xTe=B(`<tr><td class="key svelte-u0prcz"><!></td><td class="value svelte-u0prcz"><!></td><!></tr>`),STe=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>`),CTe=B(`<!> <!>`,1),wTe=B(`<!> <!> <div role="none"><!></div>`,1),TTe={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 DTe(e,t){O(t,!0),G(e,jTe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=M(()=>t.fieldConfig.key_label),o=M(()=>t.fieldConfig.value_label),s=M(()=>z(a)||X(`key_value.key`)),c=M(()=>z(o)||X(`key_value.value`)),l=N(Dr([])),u=()=>{let e=T5({entryDraft:a3,keyPath:t.keyPath,locale:t.locale});(0,OTe.default)(z(l),e)||P(l,e,!0)};Zr(()=>{n()&&(d8(n(),t.locale),Ri(()=>{u()}))});var d=V(),f=I(d),p=e=>{var t=ATe(),n=F(t),r=F(n),i=F(r),a=F(i,!0);D(i);var o=L(i),u=F(o,!0);D(o),D(r),D(n);var d=L(n);lo(d,23,()=>z(l),([e,t],n)=>`${e}-${n}`,(e,t)=>{var n=M(()=>w(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=kTe(),o=F(a),s=F(o,!0);D(o);var c=L(o),l=F(c,!0);D(c),D(a),R(()=>{U(s,r()),U(l,i())}),H(e,a)}),D(d),D(t),R(()=>{U(a,z(s)),U(u,z(c))}),H(e,t)};W(f,e=>{z(l).length&&e(p)}),H(e,d),k(),i()}var OTe,kTe,ATe,jTe;function MTe(){return(MTe=s((()=>{Y(),J(),Z(),OTe=u(kK()),oc(),l3(),f8(),E5(),kTe=B(`<tr><td class="svelte-11sa460"> </td><td class="svelte-11sa460"> </td></tr>`),ATe=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>`),jTe={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 NTe(e,t){O(t,!0);let n=q(t,`expanded`,3,!1);{let t=M(()=>n()?`expand_more`:Mu()?`chevron_left`:`chevron_right`);sc(e,{get name(){return z(t)}})}k()}function D5(){return(D5=s((()=>{Y(),J(),Z(),dc()})))()}function O5(e,t){O(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(()=>X(`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=>{Ff(e,{variant:`tertiary`,size:`small`,get label(){return z(d)},get disabled(){return z(f)},startIcon:e=>{sc(e,{name:`add`})},endIcon:e=>{},popup:e=>{{let t=M(()=>X(`select_list_type`));pm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();lo(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());vm(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=>{Bd(e,{variant:`tertiary`,size:`small`,get label(){return z(d)},get disabled(){return z(f)},onclick:()=>i()(),startIcon:e=>{sc(e,{name:`add`})},$$slots:{startIcon:!0}})};W(m,e=>{z(g)?e(h):e(_,-1)}),H(e,p),k()}function k5(){return(k5=s((()=>{Y(),J(),Z(),Kd(),dc(),_m(),Rf(),wm()})))()}function A5(e,t){O(t,!0),G(e,ITe);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=FTe(),s=F(o),c=F(s);{let e=e=>{NTe(e,{get expanded(){return r()}})},i=M(()=>!n()),a=M(()=>r()?X(`collapse`):X(`expand`));Bd(c,{size:`small`,get iconic(){return z(i)},get"aria-label"(){return z(a)},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=PTe(),r=F(t,!0);D(t),R(()=>U(r,n())),H(e,t)};W(i,e=>{n()&&e(a)}),H(e,r)},$$slots:{startIcon:!0,default:!0}})}D(s);var l=L(s,2);So(F(l),()=>i()??E),D(l);var u=L(l,2);So(F(u),()=>a()??E),D(u),D(o),H(e,o),k()}var PTe,FTe,ITe;function j5(){return(j5=s((()=>{Y(),J(),Z(),Kd(),D5(),PTe=B(`<span role="none" class="type svelte-57h597"> </span>`),FTe=B(`<div role="none" class="header svelte-57h597"><div role="none" class="start svelte-57h597"><!></div> <div role="none" class="center svelte-57h597"><!></div> <div role="none" class="end svelte-57h597"><!></div></div>`),ITe={hash:`svelte-57h597`,code:`.header.svelte-57h597 {display:flex;align-items:center;gap:8px;height:28px;background-color:var(--sui-secondary-border-color);& > div:where(.svelte-57h597) {display:flex;align-items:center;}.start:where(.svelte-57h597) {justify-content:flex-start;width:40%;}.center:where(.svelte-57h597) {justify-content:center;width:20%;}.end:where(.svelte-57h597) {justify-content:flex-end;width:40%;}
|
||
|
||
/* Make the expander button full-width when there is no other content */&:has(.center:where(.svelte-57h597):empty):has(.end:where(.svelte-57h597):empty) {.start:where(.svelte-57h597) {width:100%;button {justify-content:flex-start;padding:var(--sui-button-small-padding);width:-moz-available;width:-webkit-fill-available;width:stretch;aspect-ratio:auto;}}.center:where(.svelte-57h597),
|
||
.end:where(.svelte-57h597) {display:none;}}.type:where(.svelte-57h597) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}}`}})))()}var LTe,RTe;function zTe(){return(zTe=s((()=>{LTe=({fieldConfig:e,dynamicValue:t})=>{if(t!==void 0)return t===`true`;let{default:n}=e;return typeof n==`boolean`&&n},RTe=e=>({[e.keyPath]:LTe(e)})})))()}var BTe;function VTe(){return(VTe=s((()=>{v(),BTe=({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=g(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:``}}})))()}var HTe,UTe;function WTe(){return(WTe=s((()=>{XF(),KL(),HTe=({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}=YF(n);return UL({inputValue:HL(n,e),currentValue:``,fieldConfig:n,timeZone:e,outputUTC:t})}return i},UTe=e=>({[e.keyPath]:HTe(e)})})))()}var M5;function GTe(){return(GTe=s((()=>{oU(),M5=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let r=e,i=r.default,a=aU(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}})))()}var KTe,qTe,N5;function P5(){return(P5=s((()=>{md(),ZU(),eI(),JJ(),KTe=(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`?dd():e===`uuid_short`?dd(`short`):e===`uuid_shorter`?dd(`shorter`):e===`author-email`?n:e===`author-login`?r:e===`author-name`?i:``,qTe=({fieldConfig:e,locale:t,dynamicValue:n})=>{let{default:r}=e,i=n??r;if(typeof i!=`string`)return i;let a={locale:t,account:qJ.account};return qU(i,(e,n)=>{let{value:r,transformations:i}=QF(n),o=KTe(r,a);return i.length?$F({value:o,transformations:i,locale:t}):o})},N5=e=>({[e.keyPath]:qTe(e)})})))()}var JTe,YTe;function XTe(){return(XTe=s((()=>{v(),EU(),JTe=({fieldConfig:e,locale:t})=>{let{default:n}=e,r=gU({fieldConfig:e,locale:t});return g(n)?n:r?{"":``}:{}},YTe=e=>{let{keyPath:t,dynamicValue:n}=e,r;if(n!==void 0)try{let e=JSON.parse(n);g(e)&&(r=e)}catch{}return r??=JTe(e),Object.fromEntries(Object.entries(r).filter(([,e])=>typeof e==`string`).map(([e,n])=>[`${t}.${e}`,n]))}})))()}var ZTe;function QTe(){return(QTe=s((()=>{v(),ZTe=({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)=>{g(e)?Object.entries(gM(e)).forEach(([e,r])=>{s[`${t}.${n}.${e}`]=r}):s[`${t}.${n}`]=e}):o.forEach((e,n)=>{g(e)||(s[`${t}.${n}`]=e)}),s}})))()}var $Te;function eEe(){return(eEe=s((()=>{$Te=({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{}}})))()}var tEe;function nEe(){return(nEe=s((()=>{v(),EU(),tEe=({fieldConfig:e,keyPath:t,locale:n,defaultLocale:r,populateDefault:i})=>{let{default:a}=e,{fields:o}=e,{types:s}=e,c=gU({fieldConfig:e,locale:n}),l={};return g(a)?(Object.entries(gM(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)}})))()}var F5;function rEe(){return(rEe=s((()=>{FD(),aM(),qK(),F5=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r=A(VK)?.field_defaults?.richtext?.default}=e,i=``;if(n!==void 0)try{i=MD(n)}catch{i=n.replace(/<[^>]*>/g,``)}else i=r||``;return{[t]:i}}})))()}var I5;function iEe(){return(iEe=s((()=>{I5=({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]:[]}}})))()}var aEe;function oEe(){return(oEe=s((()=>{zTe(),VTe(),WTe(),GTe(),P5(),XTe(),QTe(),eEe(),nEe(),rEe(),iEe(),aEe={boolean:RTe,code:BTe,datetime:UTe,file:M5,hidden:N5,image:M5,keyvalue:YTe,list:ZTe,markdown:F5,number:$Te,object:tEe,relation:I5,richtext:F5,select:I5}})))()}var L5,R5;function z5(){return(z5=s((()=>{oEe(),L5=({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=aEe[o];if(u){Object.assign(e,u({fieldConfig:n,keyPath:t,locale:r,defaultLocale:i,dynamicValue:l,populateDefault:L5}));return}e[t]=l||s||``},R5=({fields:e,locale:t,defaultLocale:n,dynamicValues:r={}})=>{let i={};return e.forEach(e=>{L5({content:i,keyPath:e.name,fieldConfig:e,locale:t,defaultLocale:n,dynamicValues:r})}),i}})))()}var B5,sEe,V5,H5;function U5(){return(U5=s((()=>{FD(),aM(),l3(),FF(),B5=(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]})},sEe=new Map,V5=(e,t)=>{let n=PF(sEe,t,()=>RegExp(`^${kD(t)}\\b(?!#)`)),r=Object.entries(e).filter(([e])=>n.test(e)).map(([e,t])=>[e.replace(n,`_`),t]).sort();return[_M(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(e).filter(([e])=>!n.test(e)))]},H5=({locale:e,valueStoreKey:t=`currentValues`,keyPath:n,manipulate:r})=>{let i=A(a3),{collection:a,collectionFile:o}=i,{defaultLocale:s}=(o??a)._i18n,[c,l]=V5(i[t][e],n),[u,d]=e===s?V5(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:u}),o3.set(!1),a3.update(r=>(B5(r[t][e],{...gM({[n]:c}),...l}),e===s&&B5(r.expanderStates._,{...gM({[n]:u}),...d}),r)),o3.set(!0)}})))()}var cEe,W5,lEe,G5,K5,q5,uEe,J5;function Y5(){return(Y5=s((()=>{FD(),aM(),l3(),EU(),FF(),cEe=new Map,lEe=()=>{let e=W5;W5=void 0,a3.update(t=>(t&&Object.entries(e).forEach(([e,n])=>{t.expanderStates._[e]=n}),t))},G5=({key:e,locale:t,collapsed:n=!1})=>{let r=A(a3),i=W5?.[e]??r?.expanderStates?._[e];if(i!==void 0)return i;if(n===`auto`){let n=r?.currentValues?.[t]??{},i=e.replace(/#$/,``),a=PF(cEe,i,()=>RegExp(`^${kD(i)}\\.[^\\.]+$`));return!Object.entries(n).some(([e,t])=>a.test(e)&&!!t)}return!n},K5=e=>{let t=A(a3)?.expanderStates?._;if(!t)return;let n=Object.entries(e).filter(([e,n])=>(W5?.[e]??t[e])!==n);n.length&&(W5||(W5={},queueMicrotask(lEe)),Object.assign(W5,Object.fromEntries(n)))},q5=({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=mU({...o,keyPath:r}),s=cU.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=mU({...o,keyPath:e});i?.widget===`object`&&`fields`in i&&a.add(`${e}.${i.name}#`),i?.widget===`list`&&`field`in i&&a.add(r)}}),[...a]},uEe=({collectionName:e,fileName:t,currentValues:n})=>{let{validities:r,isIndexFile:i}=A(a3),a={};Object.entries(r??{}).forEach(([r,o])=>{Object.entries(o).forEach(([o,{valid:s}])=>{s||q5({collectionName:e,fileName:t,valueMap:n[r],keyPath:o,isIndexFile:i}).forEach(e=>{a[e]=!0})})}),K5(a)},J5=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}},window.location.origin)}})))()}function dEe(e,t){let n=Ma();O(t,!0),G(e,_Ee);let r=()=>j(a3,`$entryDraft`,i),[i,a]=fn(),o=(e,t=E,n=E)=>{var r=V(),i=I(r),a=e=>{{let r=e=>{var n=V();lo(I(n),17,()=>z(ne)??[],({name:e,label:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).label;{let n=M(()=>i()||r());vm(e,{get label(){return z(n)},onclick:()=>Oe({index:t(),type:r()})})}}),H(e,n)},i=M(()=>X(`add_item_${n()}`));vm(e,{get label(){return z(i)},get disabled(){return z(xe)},items:r,$$slots:{items:!0}})}},o=e=>{{let r=M(()=>X(`add_item_${n()}`));vm(e,{get label(){return z(r)},get disabled(){return z(xe)},onclick:()=>Oe({index:t()})})}};W(i,e=>{z(oe)?e(a):e(o,-1)}),H(e,r)},{valueStoreKey:s=`currentValues`,parentComponentNames:c=[]}=Pt(`field-editor`)??{},l=c.at(-1),u=M(()=>t.fieldConfig.name),d=M(()=>t.fieldConfig.label),f=M(()=>t.fieldConfig.i18n),p=M(()=>C(t.fieldConfig.allow_add,!0)),m=M(()=>C(t.fieldConfig.allow_remove,!0)),h=M(()=>C(t.fieldConfig.allow_duplicate,!0)),_=M(()=>C(t.fieldConfig.allow_reorder,!0)),v=M(()=>t.fieldConfig.collapsed),y=M(()=>t.fieldConfig.summary),b=M(()=>t.fieldConfig.thumbnail),x=M(()=>C(t.fieldConfig.minimize_collapsed,!1)),S=M(()=>t.fieldConfig.label_singular),w=M(()=>C(t.fieldConfig.max,1/0)),T=M(()=>C(t.fieldConfig.add_to_top,!1)),ee=M(()=>t.fieldConfig.field),te=M(()=>t.fieldConfig.fields),ne=M(()=>t.fieldConfig.types),re=M(()=>C(t.fieldConfig.typeKey,`type`)),ie=M(()=>V6(t.fieldConfig)),ae=M(()=>z(ie).hasSingleSubField),oe=M(()=>z(ie).hasVariableTypes),se=M(()=>RegExp(`^${kD(t.keyPath)}\\.(\\d+)(.*)?`)),ce=M(()=>r()?.isIndexFile??!1),le=M(()=>r()?.collection),ue=M(()=>r()?.collectionName??``),de=M(()=>r()?.collectionFile),fe=M(()=>r()?.fileName),pe=M(()=>(z(de)??z(le))?._i18n??qI),me=M(()=>z(pe).defaultLocale),he=M(()=>t.locale!==z(me)&&z(f)===`duplicate`),ge=M(()=>d8(r(),t.locale,s)),_e=M(()=>`${t.keyPath}#`),ve=M(()=>r()?.expanderStates?._[z(_e)]??!0),ye=M(()=>_M(Object.fromEntries(Object.entries(z(ge)).filter(([e])=>z(se).test(e)).map(([e,n])=>[`${z(u)}${e.slice(t.keyPath.length)}`,n])))[z(u)]??[]),be=M(()=>z(ye).map((e,n)=>{let i=`${t.keyPath}.${n}`;return[i,r()?.expanderStates?._[i]??!0]})),xe=M(()=>z(ye).length>=z(w)),Se=M(()=>t.locale===z(me)||(z(oe)?z(ne)?.flatMap(({fields:e=[]})=>e)??[]:z(te)??(z(ee)?[z(ee)]:[])).some(({i18n:e=!1})=>e===!0||e===`translate`)),Ce=M(()=>z(he)||!z(Se)),we=Dr([]),Te=N(void 0),Ee=()=>{K5({[z(_e)]:z(x)===`auto`?!z(ye).length:!z(x),...Object.fromEntries(z(ye).map((e,n)=>{let r=`${t.keyPath}.${n}`;return[r,G5({key:r,locale:t.locale,collapsed:z(v)})]}))})},De=e=>{Object.keys(r()?.[s]??{}).forEach(n=>{(z(f)===`duplicate`||n===t.locale)&&H5({locale:n,valueStoreKey:s,keyPath:t.keyPath,manipulate:e})})},Oe=async({index:e=z(T)?0:z(ye).length,dupIndex:n,type:r}={})=>{De(({valueList:i,expanderStateList:a})=>{let o=r?z(ne)?.find(({name:e})=>e===r)?.fields??[]:z(te)??(z(ee)?[z(ee)]:[]),s=(()=>{if(typeof n==`number`)return structuredClone(i[n]);let e=_M(R5({fields:o,locale:t.locale,defaultLocale:z(me)}));return z(ae)&&z(ee)?e[z(ee).name]:e})();r&&(s[z(re)]=r),z(ae)||(s.__sc_item_id=crypto.randomUUID(),i.forEach((e,n)=>{g(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)})),i.splice(e,0,s),a.splice(e,0,!0)}),K5({[z(_e)]:!0}),z(Te)&&(await nd(50),(z(T)?z(Te).firstElementChild:z(Te).lastElementChild)?.scrollIntoView(),await nd(100),z(Te).closest(`.content`)?.scrollBy({top:-50,behavior:`instant`}),(z(T)?z(Te).firstElementChild:z(Te).lastElementChild)?.querySelector(`button`)?.focus())},ke=e=>{De(({valueList:n,expanderStateList:r})=>{z(ae)||n.forEach((e,n)=>{g(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)}),n.splice(e,1),r.splice(e,1)})},Ae=e=>{De(({valueList:n,expanderStateList:r})=>{z(ae)||(n[e].__sc_item_id??=crypto.randomUUID(),n[e+1].__sc_item_id??=crypto.randomUUID(),n[e].__sc_item_original_key_path??=`${t.keyPath}.${e}`,n[e+1].__sc_item_original_key_path??=`${t.keyPath}.${e+1}`),[n[e],n[e+1]]=[n[e+1],n[e]],[r[e],r[e+1]]=[r[e+1],r[e]]})},je=(e,n)=>Rbe({collectionName:z(ue),fileName:z(fe),keyPath:t.keyPath,valueMap:z(ge),locale:t.locale,summaryTemplate:n,hasSingleSubField:z(ae),index:e,isIndexFile:z(ce)}),Me=async e=>{if(!z(b))return;let n=z(b).replace(/^fields\./,``),i=`${t.keyPath}.${e}`,a=z(ae)?i:`${i}.${n}`,o=z(ge)[a];if(!o)return;let s=mU({collectionName:z(ue),fileName:z(fe),valueMap:z(ge),keyPath:a,isIndexFile:z(ce)});if(!(s?.widget!==`image`||z(ae)&&s.name!==n))return TV({value:o,entry:r()?.originalEntry,collectionName:z(ue),fileName:z(fe),componentName:l,typedKeyPath:z(ae)?`${t.typedKeyPath}.*`:`${t.typedKeyPath}.*.${n}`})},Ne=async()=>{z(b)&&(we.length=z(ye).length,z(ye).forEach(async(e,t)=>{let n=await Me(t);we[t]!==n&&(we[t]=n)}))},Pe=({itemKeyPath:e,type:t})=>{let n=t?`The “${t}” type is not defined for the list field.`:`The type key is not found in the list item. The item must include the “${z(re)}” property with one of the defined types: ${z(ne).map(e=>e.name).join(`, `)}`;console.warn(`List item ${e}: ${n}`)};Zr(()=>{z(ye),Ri(()=>{Ne()})}),rc(()=>{Ee()});var Fe=gEe(),Ie=I(Fe),Le=F(Ie),Re=F(Le);{let e=e=>{NTe(e,{get expanded(){return z(ve)}})},t=M(()=>!z(ye).length),r=M(()=>z(ve)?X(`collapse`):X(`expand`));Bd(Re,{iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(r)},get"aria-expanded"(){return z(ve)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{K5({[z(_e)]:!z(ve)})},startIcon:e,$$slots:{startIcon:!0}})}var ze=L(Re,2),Be=F(ze);D(ze),D(Le);var Ve=L(Le,2),He=F(Ve),Ue=e=>{O5(e,{get disabled(){return z(Ce)},get fieldConfig(){return t.fieldConfig},get items(){return z(ye)},addItem:Oe})};W(He,e=>{z(p)&&(z(T)||!z(ye).length||!z(ve))&&e(Ue)});var We=L(He,2),Ge=e=>{var t=X5(),n=I(t);{let e=M(()=>X(`expand_all`)),t=M(()=>z(be).every(([,e])=>e));Bd(n,{variant:`tertiary`,size:`small`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{K5(Object.fromEntries(z(be).map(([e])=>[e,!0])))}})}var r=L(n,2);{let e=M(()=>X(`collapse_all`)),t=M(()=>z(be).every(([,e])=>!e));Bd(r,{variant:`tertiary`,size:`small`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{K5(Object.fromEntries(z(be).map(([e])=>[e,!1])))}})}H(e,t)};W(We,e=>{z(ve)&&z(ye).length>1&&e(Ge)}),D(Ve),D(Ie);var Ke=L(Ie,2);let qe;lo(Ke,23,()=>z(ye),(e,t)=>g(e)?e.__sc_item_id??t:t,(e,i,a)=>{zk(e,{children:(e,s)=>{let c=M(()=>`${t.keyPath}.${z(a)}`),l=M(()=>z(oe)?z(i)[z(re)]:void 0),u=M(()=>z(l)?z(ne)?.find(({name:e})=>e===z(l)):void 0);var d=V(),f=I(d),g=e=>{var t=fEe(),n=I(t);fc(n,{status:`warning`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`unknown_variable_type`)]),H(e,n)},$$slots:{default:!0}});var r=L(n);R(e=>U(r,` ${e??``}`),[()=>Pe({itemKeyPath:z(c),type:z(l)})]),H(e,t)},v=e=>{let i=M(()=>r()?.expanderStates?._[z(c)]??!0),s=M(()=>z(oe)?z(u)?.fields??[]:z(te)??(z(ee)?[z(ee)]:[])),d=M(()=>z(oe)&&z(u)?.summary||z(y));var f=mEe(),g=F(f);{let e=e=>{var t=V(),n=I(t),r=e=>{var t=Z5(),n=I(t);{let e=e=>{sc(e,{name:`arrow_upward`})},t=M(()=>z(he)||z(a)===0),r=M(()=>X(`move_up`));Bd(n,{size:`small`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(r)},onclick:()=>Ae(z(a)-1),startIcon:e,$$slots:{startIcon:!0}})}var r=L(n,2);Yf(r,{});var i=L(r,2);{let e=e=>{sc(e,{name:`arrow_downward`})},t=M(()=>z(he)||z(a)===z(ye).length-1),n=M(()=>X(`move_down`));Bd(i,{iconic:!0,size:`small`,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:()=>Ae(z(a)),startIcon:e,$$slots:{startIcon:!0}})}H(e,t)};W(n,e=>{z(_)&&e(r)}),H(e,t)},t=e=>{var t=X5(),n=I(t),r=e=>{{let t=e=>{{let t=M(()=>X(`list_item_options`));pm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=Z5(),r=I(n),i=e=>{{let t=M(()=>X(`duplicate`));vm(e,{get label(){return z(t)},get disabled(){return z(xe)},onclick:()=>Oe({index:z(a)+1,dupIndex:z(a)})})}};W(r,e=>{z(h)&&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(()=>X(`list_item_options`));Ff(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(n)},get disabled(){return z(Ce)},popup:t,$$slots:{popup:!0}})}};W(n,e=>{z(p)&&e(r)});var i=L(n,2),s=e=>{{let t=e=>{sc(e,{name:`close`})},n=M(()=>X(`remove`));Bd(e,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>ke(z(a)),startIcon:t,$$slots:{startIcon:!0}})}};W(i,e=>{z(m)&&e(s)}),H(e,t)},r=M(()=>z(oe)?z(u)?.label||z(u)?.name:``),l=M(()=>z(s).length?()=>K5({[z(c)]:!z(i)}):void 0);A5(g,{get label(){return z(r)},get controlId(){return`list-${n}-item-${z(a)??``}-body`},get expanded(){return z(i)},get toggleExpanded(){return z(l)},centerContent:e,endContent:t,$$slots:{centerContent:!0,endContent:!0}})}var v=L(g,2),b=F(v),x=e=>{var n=V();lo(I(n),17,()=>z(s),e=>e.name,(e,n)=>{zk(e,{children:(e,r)=>{{let r=M(()=>z(ae)?z(c):`${z(c)}.${z(n).name}`),i=M(()=>z(oe)?`${t.typedKeyPath}.*<${z(l)}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`),a=M(()=>z(ae)?`single-subfield-list-field`:void 0);F7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)},get context(){return z(a)}})}},$$slots:{default:!0}})}),H(e,n)},S=e=>{var t=pEe(),n=F(t),r=e=>{y3(e,{get src(){return we[z(a)]},variant:`icon`,cover:!0})};W(n,e=>{we[z(a)]&&e(r)});var i=L(n,2);{let e=M(()=>eG.isSmallScreen?2:1);Qu(i,{get lines(){return z(e)},children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>je(z(a),z(d))]),H(e,n)},$$slots:{default:!0}})}D(t),H(e,t)};W(b,e=>{z(i)?e(x):e(S,-1)}),D(v),D(f),R(()=>K(v,`id`,`list-${n}-item-${z(a)??``}-body`)),H(e,f)};W(f,e=>{z(oe)&&!z(u)?e(g):e(v,-1)}),H(e,d)},$$slots:{default:!0}})}),D(Ke),Bs(Ke,e=>P(Te,e),()=>z(Te));var Je=L(Ke,2),Ye=e=>{var n=hEe(),r=F(n);Yf(r,{flex:!0}),O5(L(r,2),{get disabled(){return z(Ce)},get fieldConfig(){return t.fieldConfig},get items(){return z(ye)},addItem:Oe}),D(n),H(e,n)};W(Je,e=>{z(p)&&!z(T)&&z(ye).length&&z(ve)&&e(Ye)}),R(()=>{K(ze,`id`,`object-${n}-summary`),U(Be,`${z(ye).length??``}
|
||
${((z(ye).length===1?z(S):void 0)||z(d)||z(u))??``}`),K(Ke,`id`,`list-${n}-item-list`),qe=is(Ke,1,`item-list svelte-n5zzp2`,null,qe,{collapsed:!z(ve)})}),H(e,Fe),k(),a()}var X5,fEe,Z5,pEe,mEe,hEe,gEe,_Ee;function vEe(){return(vEe=s((()=>{Y(),J(),Z(),gc(),Kd(),dc(),_m(),Rf(),wm(),$f(),td(),Hk(),rd(),v(),FD(),oc(),b3(),D5(),z7(),k5(),j5(),EV(),l3(),z5(),U5(),f8(),Y5(),EU(),H6(),YI(),nG(),X5=B(`<!> <!>`,1),fEe=B(`<!> `,1),Z5=B(`<!> <!> <!>`,1),pEe=B(`<div role="none" class="summary svelte-n5zzp2"><!> <!></div>`),mEe=B(`<div role="none" class="item svelte-n5zzp2"><!> <div role="none" class="item-body"><!></div></div>`),hEe=B(`<div role="none" class="toolbar bottom add svelte-n5zzp2"><!> <!></div>`),gEe=B(`<div role="none" class="toolbar top svelte-n5zzp2"><div role="none" class="label svelte-n5zzp2"><!> <div role="none" class="summary"> </div></div> <div role="none" class="actions svelte-n5zzp2"><!> <!></div></div> <div role="none"></div> <!>`,1),_Ee={hash:`svelte-n5zzp2`,code:`.toolbar.svelte-n5zzp2 {display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;position:sticky;z-index:10;background-color:var(--sui-primary-background-color);min-height:var(--sui-secondary-toolbar-size);&.top {top:0;}&.bottom {bottom:0;}& > div:where(.svelte-n5zzp2) {display:flex;align-items:center;&.actions {flex-wrap:wrap;margin-block:8px;margin-inline-start:auto;}}}.item-list.svelte-n5zzp2 {display:flex;flex-direction:column;gap:16px;&.collapsed {display:none;}}.item.svelte-n5zzp2 {flex:none;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.summary:where(.svelte-n5zzp2) {display:flex;align-items:center;gap:8px;padding:8px;&:empty {display:none;}}}`}})))()}function yEe(e,t){O(t,!0);let{valueStoreKey:n=`currentValues`}=Pt(`field-editor`)??{},r=q(t,`currentValue`,7),i=q(t,`required`,3,!0),a=q(t,`readonly`,3,!1),o=q(t,`invalid`,3,!1),s=N(!1),c=N(``),l=M(()=>t.fieldConfig.i18n),u=()=>{P(c,r()?.join(`
|
||
`)??``,!0)},d=(e=z(c).split(/\n/g))=>{b8({valueStoreKey:n,locale:t.locale,keyPath:t.keyPath,i18n:z(l),value:e})},f=()=>{r(z(c).split(/\n/g).map(e=>e.trim()).filter(e=>!!e)),d(r())};rc(()=>{P(s,!0)}),Zr(()=>{z(s)&&(r(),Ri(()=>{u()}))});{let n=M(()=>NI(t.locale));VO(e,{get dir(){return z(n)},autoResize:!0,flex:!0,get readonly(){return a()},get required(){return i()},get invalid(){return o()},get"aria-errormessage"(){return`${t.fieldId??``}-error`},oninput:()=>{d()},onblur:()=>{f()},get value(){return z(c)},set value(e){P(c,e,!0)}})}k()}function bEe(){return(bEe=s((()=>{Y(),J(),KO(),oc(),x8(),zI()})))()}function xEe(e,t){let n=Ma();O(t,!0);let r=qs(t,SEe);Pk(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}));dEe(e,Js(()=>z(n)))}},s=M(()=>V6(t.fieldConfig).hasSubFields),c=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));yEe(e,Js(()=>z(n)))}};W(a,e=>{z(s)?e(o):e(c,-1)}),H(e,i)},$$slots:{default:!0}}),k()}var SEe;function CEe(){return(CEe=s((()=>{Y(),J(),Rk(),vEe(),bEe(),H6(),SEe=new Set([`$$slots`,`$$events`,`$$legacy`,`fieldConfig`])})))()}function wEe(e,t){let n=Ma();G(e,DEe);let r=`${n}-header`;var i=EEe(),a=F(i),o=e=>{var n=TEe(),i=F(n,!0);D(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);So(F(s),()=>t.children??E),D(s),D(i),R(()=>K(i,`aria-labelledby`,t.label?r:void 0)),H(e,i)}var TEe,EEe,DEe;function Q5(){return(Q5=s((()=>{Y(),J(),TEe=B(`<div role="none" class="header svelte-ygwzbn"> </div>`),EEe=B(`<div role="group" class="subsection svelte-ygwzbn"><!> <div role="none" class="items svelte-ygwzbn"><!></div></div>`),DEe={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 $5(e,t){O(t,!0),G(e,AEe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=q(t,`showLabel`,3,!0),o=M(()=>t.fieldConfig.name),s=M(()=>C(t.fieldConfig.widget,`string`)),c=M(()=>C(t.fieldConfig.i18n,!1)),l=M(()=>C(t.fieldConfig.label,``)),u=M(()=>C(t.fieldConfig.preview,!0)),d=M(()=>dU(t.fieldConfig)),f=M(()=>z(s)===`list`||z(d)),p=M(()=>n()?.collection),m=M(()=>n()?.collectionFile),h=M(()=>d8(n(),t.locale)),g=M(()=>(z(m)??z(p))?._i18n??qI),_=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(()=>mI.get(z(s))),S=M(()=>TU({valueMap:z(h),keyPath:t.keyPath,isList:z(f),multiple:z(d),isEditor:!1,isCustomFieldType:!!z(x)})),w=M(()=>({locale:t.locale,keyPath:t.keyPath,typedKeyPath:t.typedKeyPath,fieldConfig:t.fieldConfig,currentValue:z(S)}));var T=V(),ee=I(T),te=e=>{var n=kEe(),r=F(n),i=e=>{var t=OEe(),n=F(t,!0);D(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(()=>({...z(w),fieldConfig:t.fieldConfig}));iCe(e,Js(()=>z(n),{get preview(){return z(x).preview}}))}},d=e=>{let t=M(()=>k7[z(s)]);var n=V();wo(I(n),()=>z(t),(e,t)=>{t(e,Js(()=>z(w)))}),H(e,n)};W(c,e=>{z(x)?.preview?e(u):z(s)in k7&&e(d,1)}),D(n),R(()=>{K(n,`data-field-type`,z(s)),K(n,`data-key-path`,t.keyPath),K(n,`data-typed-key-path`,t.typedKeyPath)}),va(`keydown`,n,e=>{e.key===`Enter`&&(e.stopPropagation(),J5({locale:t.locale,keyPath:t.keyPath}))}),va(`click`,n,e=>{e.stopPropagation(),J5({locale:t.locale,keyPath:t.keyPath})}),H(e,n)};W(ee,e=>{z(s)!==`hidden`&&z(u)&&(t.locale===z(v)||z(y)||z(b))&&e(te)}),H(e,T),k(),i()}var OEe,kEe,AEe;function e7(){return(e7=s((()=>{Y(),J(),A7(),yI(),l3(),f8(),Y5(),EU(),YI(),OEe=B(`<h4 class="svelte-s650n2"> </h4>`),kEe=B(`<section role="group" tabindex="0" class="svelte-s650n2"><!> <!></section>`),AEe={hash:`svelte-s650n2`,code:`[role='document'] section.svelte-s650n2 {overflow:hidden;
|
||
/* Don’t set margin here because it makes scroll sync bumpy */padding:12px 0;h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);&:not(:last-child) {margin-bottom:8px;}}& > * {margin-inline:auto;max-width:768px;}p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}img {max-height:800px !important;}.sui.alert {margin-block:16px;}}
|
||
|
||
@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;}}
|
||
}`},ya([`keydown`,`click`])})))()}function jEe(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.field),s=M(()=>t.fieldConfig.fields),c=M(()=>t.fieldConfig.types),l=M(()=>C(t.fieldConfig.typeKey,`type`)),u=M(()=>V6(t.fieldConfig)),d=M(()=>z(u).hasSingleSubField),f=M(()=>z(u).hasVariableTypes),p=M(()=>RegExp(`^${kD(t.keyPath)}\\.\\d+`)),m=M(()=>_M(Object.fromEntries(Object.entries(d8(n(),t.locale)).filter(([e])=>z(p).test(e)).map(([e,n])=>[`${z(a)}${e.slice(t.keyPath.length)}`,n])))[z(a)]??[]);var h=V();lo(I(h),19,()=>z(m),(e,t)=>g(e)?e.__sc_item_id??t:t,(e,n,r)=>{zk(e,{children:(e,i)=>{let a=M(()=>z(f)?z(n)[z(l)]:void 0),u=M(()=>z(a)?z(c)?.find(({name:e})=>e===z(a)):void 0);var p=V(),m=I(p),h=e=>{},g=e=>{let n=M(()=>`${t.keyPath}.${z(r)}`),i=M(()=>z(u)?z(u).label||z(u).name:void 0),c=M(()=>z(f)?z(u)?.fields??[]:z(s)??(z(o)?[z(o)]:[]));wEe(e,{get label(){return z(i)},children:(e,r)=>{var i=V();lo(I(i),17,()=>z(c),e=>e.name,(e,r)=>{zk(e,{children:(e,i)=>{{let i=M(()=>z(d)?z(n):`${z(n)}.${z(r).name}`),o=M(()=>z(f)?`${t.typedKeyPath}.*<${z(a)}>.${z(r).name}`:`${t.typedKeyPath}.*.${z(r).name}`);$5(e,{get keyPath(){return z(i)},get typedKeyPath(){return z(o)},get locale(){return t.locale},get fieldConfig(){return z(r)}})}},$$slots:{default:!0}})}),H(e,i)},$$slots:{default:!0}})};W(m,e=>{z(f)&&!z(u)?e(h):e(g,-1)}),H(e,p)},$$slots:{default:!0}})}),H(e,h),k(),i()}function MEe(){return(MEe=s((()=>{Y(),J(),Hk(),v(),FD(),Q5(),e7(),l3(),f8(),H6()})))()}function NEe(e,t){O(t,!0);var n=V(),r=I(n),i=e=>{var n=FEe();lo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=PEe(),r=F(n,!0);D(n),R(()=>U(r,z(t))),H(e,n)}),D(n),R((e,t)=>{K(n,`lang`,e),K(n,`dir`,t),n.dir=n.dir},[()=>MI(t.locale),()=>NI(t.locale)]),H(e,n)},a=M(()=>Array.isArray(t.currentValue)&&t.currentValue.length);W(r,e=>{z(a)&&e(i)}),H(e,n),k()}var PEe,FEe;function IEe(){return(IEe=s((()=>{Y(),J(),zI(),PEe=B(`<li> </li>`),FEe=B(`<ul></ul>`)})))()}function LEe(e,t){O(t,!0);let n=qs(t,REe);var r=V(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));jEe(e,Js(()=>z(r)))}},o=M(()=>V6(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));NEe(e,Js(()=>z(r)))}};W(i,e=>{z(o)?e(a):e(s,-1)}),H(e,r),k()}var REe;function zEe(){return(zEe=s((()=>{Y(),J(),MEe(),IEe(),H6(),REe=new Set([`$$slots`,`$$events`,`$$legacy`,`fieldConfig`])})))()}var BEe,VEe,HEe;function UEe(){return(UEe=s((()=>{v(),ZH(),BEe=(e,t=`Point`)=>{try{let n=JSON.parse(e);return g(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},VEe=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>XH(e,t)):XH(e,t)):XH(e,t)),HEe=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 WEe(e,t){O(t,!0),G(e,JEe);let n=q(t,`currentValue`,15),r=q(t,`readonly`,3,!1),i=q(t,`invalid`,3,!1),a=M(()=>C(t.fieldConfig.decimals,7)),o=M(()=>C(t.fieldConfig.type,`Point`)),s=M(()=>t.fieldConfig.center),c=M(()=>t.fieldConfig.zoom),l=M(()=>z(o).toLowerCase()),u=N(void 0),d=N(void 0),f=N(``),p=N(``),m=N(void 0),h=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 FB(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:f}=await FB(`terra-draw-leaflet-adapter`,`dist/terra-draw-leaflet-adapter.module.js?module`),p={Point:a,LineString:i,Polygon:u},m=new r({adapter:new f({lib:e,map:y}),modes:[new p[z(o)]]});m.start(),m.setMode(z(l)),m.on(`change`,(e,t)=>{x(t)}),P(d,m,!0),(!n()||!BEe(n(),z(o)))&&y.setView(z(s)?[z(s)[1],z(s)[0]]:[0,0],z(c)??2)},x=e=>{if(!z(d))return;let t=z(d).getSnapshot(),n=t[t.length-1];!n||e!==(z(o)===`Point`?`create`:`delete`)||(P(f,JSON.stringify({type:z(o),coordinates:VEe(n.geometry.coordinates,z(a))}),!0),t.length>1&&z(d).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=HEe(e);t&&y?.fitBounds(t)}},w=()=>{if(!z(d))return;let e=n()??``,t;try{if(t=JSON.parse(e),!g(t)||t.type!==z(o)||!Array.isArray(t.coordinates))throw Error(`Invalid object`)}catch{e=``,t=void 0}z(f)!==e&&(P(f,e,!0),z(d).clear(),t&&(z(d).addFeatures([{type:`Feature`,geometry:t,properties:{mode:z(l)}}]),S(t)))},T=()=>{if(!z(d))return;let e=z(f);n()!==e&&n(e)},ee=async()=>{let e=z(p).trim();if(!e)return;P(h,!0);let t=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:e,format:`jsonv2`})}`;try{P(m,await iG(t),!0)}catch{P(m,[],!0)}P(h,!1)},te=({latitude:e,longitude:t})=>{if(!z(d)||(e=XH(e,z(a)),t=XH(t,z(a)),y?.setView([e,t],15),z(o)!==`Point`))return;let n={type:`Point`,coordinates:[t,e]};z(d).clear(),z(d).addFeatures([{type:`Feature`,geometry:n,properties:{mode:`point`}}]),P(f,JSON.stringify(n),!0)},ne=({lat:e,lon:t})=>{te({latitude:parseFloat(e),longitude:parseFloat(t)})},re=()=>{if(!navigator.geolocation){P(_,!0),P(v,X(`geolocation_unsupported`),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:e,longitude:t}})=>{te({latitude:e,longitude:t})},e=>{P(_,!0),P(v,X(`geolocation_error_body`),!0),console.error(`Error getting current location:`,e)})},ie=()=>{n(``)};Zr(()=>{z(d),n(),Ri(()=>{w()})}),Zr(()=>{z(f),Ri(()=>{T()})}),Zr(()=>{z(p),Ri(()=>{ee()})});var ae=qEe(),oe=I(ae),se=F(oe);{let e=M(()=>X(`find_place`));Bm(se,{debounce:!0,get readonly(){return r()},flex:!0,get placeholder(){return z(e)},get value(){return z(p)},set value(e){P(p,e,!0)}})}var ce=L(se,2);{let e=e=>{sc(e,{name:`near_me`})},t=M(()=>X(`use_your_location`)),n=M(()=>X(`use_your_location`));Bd(ce,{variant:`tertiary`,iconic:!0,get title(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return r()},onclick:()=>{re()},startIcon:e,$$slots:{startIcon:!0}})}var le=L(ce,2);{let e=M(()=>X(`clear`)),t=M(()=>r()||!n());Bd(le,{variant:`tertiary`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{ie()}})}D(oe);var E=L(oe,2),ue=e=>{var t=GEe(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`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(()=>X(`search_results`));Zp(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();lo(I(n),17,()=>z(m),e=>e.place_id,(e,t)=>{sm(e,{get label(){return z(t).display_name},onSelect:()=>{ne(z(t))}})}),H(e,n)},$$slots:{default:!0}})}},i=e=>{var t=KEe(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`no_results`)]),H(e,t)};W(n,e=>{z(m).length?e(r):e(i,-1)}),H(e,t)};W(n,e=>{z(m)&&e(r)}),H(e,t)};W(E,e=>{z(h)?e(ue):z(p)&&e(de,1)});var fe=L(E,2),pe=F(fe);{let e=M(()=>i()?`invalid`:void 0);Spe(pe,{get inert(){return r()},get class(){return z(e)},onReady:b,get mapElement(){return z(u)},set mapElement(e){P(u,e,!0)}})}D(fe);var me=L(fe,2);{let e=M(()=>X(`geolocation_error_title`));bp(me,{get title(){return z(e)},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{mt();var n=ja();R(()=>U(n,z(v))),H(e,n)},$$slots:{default:!0}})}H(e,ae),k()}var GEe,KEe,qEe,JEe;function YEe(){return(YEe=s((()=>{Y(),J(),Z(),Sp(),Kd(),dc(),tm(),fm(),Vm(),v(),oc(),v1(),IB(),UEe(),aG(),ZH(),GEe=B(`<div role="alert" class="search-result searching svelte-ktr5k7"> </div>`),KEe=B(`<div role="alert" class="search-result no-result svelte-ktr5k7"> </div>`),qEe=B(`<div role="none" class="toolbar svelte-ktr5k7"><!> <!> <!></div> <!> <div class="map-wrapper svelte-ktr5k7"><!></div> <!>`,1),JEe={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 XEe(e,t){G(e,QEe);var n=V(),r=I(n),i=e=>{var n=ZEe(),r=F(n,!0);D(n),R(()=>U(r,t.currentValue)),H(e,n)};W(r,e=>{t.currentValue&&e(i)}),H(e,n)}var ZEe,QEe;function $Ee(){return($Ee=s((()=>{Y(),J(),ZEe=B(`<pre class="svelte-1ox6w30"> </pre>`),QEe={hash:`svelte-1ox6w30`,code:`pre.svelte-1ox6w30 {white-space:pre-wrap;}`}})))()}function eDe(e,t){O(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(()=>C(t.fieldConfig.value_type,`int`)),c=M(()=>t.fieldConfig.min),l=M(()=>t.fieldConfig.max),u=M(()=>C(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)};Zr(()=>{n(),Ri(()=>{p()})}),Zr(()=>{z(o),Ri(()=>{m()})}),Mse(e,{get min(){return z(c)},get max(){return z(l)},get step(){return z(u)},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onblur:()=>{p()},get value(){return z(o)},set value(e){P(o,e,!0)}}),k()}function tDe(){return(tDe=s((()=>{Y(),J(),hk(),oc()})))()}function nDe(e,t){O(t,!0);let n=M(()=>MI(t.locale)),r=M(()=>Intl.NumberFormat(z(n)));var i=V(),a=I(i),o=e=>{var i=rDe(),a=F(i,!0);D(i),R((e,t)=>{K(i,`lang`,z(n)),K(i,`dir`,e),U(a,t),i.dir=i.dir},[()=>NI(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),k()}var rDe;function iDe(){return(iDe=s((()=>{Y(),J(),zI(),rDe=B(`<p> </p>`)})))()}var t7,n7;function r7(){return(r7=s((()=>{v(),aM(),l3(),y6(),z5(),EU(),t7=(e,t)=>{let{collectionName:n,fileName:r,collection:i,collectionFile:a,currentValues:o,isIndexFile:s}=A(a3),{defaultLocale:c}=(a??i)._i18n,l=_(o[c]),u={..._(e),...l},d={collectionName:n,fileName:r,valueMap:u,isIndexFile:s},f=[];return Object.keys(u).forEach(n=>{let r=mU({...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)||f.some(e=>n===e||n.startsWith(`${e}.`)))&&(delete u[n],f.push(n))}),u},n7=e=>{a3.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=R5({fields:n,locale:e,defaultLocale:r});return{...t,currentLocales:{...i,[e]:c},originalValues:{...l,[e]:u},currentValues:{...a,[e]:v6({draft:{collectionName:o,fileName:s},locale:e,target:t7(u,e)})}}}return{...t,currentLocales:{...i,[e]:c},validities:{...o,[e]:{}},validationMessages:{...s,[e]:{}}}})}})))()}var aDe,oDe;function sDe(){return(sDe=s((()=>{FD(),ZU(),HF(),eI(),EU(),FF(),aDe=new Map,oDe=({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){let e=PF(aDe,n,()=>RegExp(`^${kD(n)}\\.`));return bU({valueMap:r,locale:a,keyPath:n,keyPathRegex:e,getFieldArgs:s})}let c=e=>{let{value:t}=QF(e);return yU({...s,keyPath:`${n}.${t.replace(/^fields\./,``)}`,locale:a})};return qU(o,(e,t)=>{let{value:r,transformations:i}=QF(t);return yU({...s,keyPath:`${n}.${r.replace(/^fields\./,``)}`,locale:a,transformations:VF(i,c)})})}})))()}function cDe(e,t){let n=Ma();O(t,!0),G(e,pDe);let r=()=>j(a3,`$entryDraft`,i),[i,a]=fn(),{fieldContext:o,valueStoreKey:s=`currentValues`}=Pt(`field-editor`)??{},c=o===`single-subfield-list-field`,l=q(t,`required`,3,!0),u=M(()=>t.fieldConfig.name),d=M(()=>C(t.fieldConfig.i18n,!1)),f=M(()=>t.fieldConfig.collapsed),p=M(()=>t.fieldConfig.summary),m=M(()=>t.fieldConfig.fields),h=M(()=>t.fieldConfig.types),g=M(()=>C(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),w=M(()=>(z(x)??z(y))?._i18n??qI),T=M(()=>z(w).defaultLocale),ee=M(()=>d8(r(),t.locale,s)),te=M(()=>({collectionName:z(b),fileName:z(S),valueMap:z(ee),isIndexFile:z(v)})),ne=M(()=>Object.entries(z(ee)).some(([e,n])=>e.startsWith(`${t.keyPath}.`)&&n!==void 0)),re=M(()=>o===`rich-text-editor-component`||t.locale===z(T)||z(d)!==!1),ie=M(()=>`${t.keyPath}#`),ae=M(()=>r()?.expanderStates?._[z(ie)]??!0),oe=M(()=>Array.isArray(z(h))),se=M(()=>`${t.keyPath}.${z(g)}`),ce=M(()=>z(oe)?z(ee)[z(se)]:void 0),le=M(()=>z(ce)?z(h)?.find(({name:e})=>e===z(ce)):void 0),E=M(()=>(z(oe)?z(le)?.fields:z(m))??[]),ue=M(()=>z(oe)&&z(le)?.summary||z(p)),de=M(()=>t.locale!==z(T)&&z(d)===`duplicate`),fe=()=>{if(c)return;let e=z(ie);K5({[e]:G5({key:e,locale:t.locale,collapsed:z(f)})})},pe=async({type:e}={})=>{dn(o3,!1),e&&(Object.keys(r()?.[s]??{}).forEach(n=>{(n===t.locale||z(d)===`duplicate`)&&mn(a3,Ri(r)[s][n][z(se)]=e,Ri(r))}),await Fi());let n=Object.fromEntries(Object.entries(R5({fields:z(E),locale:t.locale,defaultLocale:z(T)})).map(([e,n])=>[`${t.keyPath}.${e}`,n])),i=t.locale===z(T)?n:t7(n,t.locale);Object.entries(r()?.[s]??{}).forEach(([e,n])=>{(e===t.locale||z(d)===`duplicate`)&&(mn(a3,Ri(r)[s][e]=Object.assign(n,_({...i,...n})),Ri(r)),delete r()[s][e][t.keyPath])}),dn(o3,!0)},me=()=>{dn(o3,!1),Object.entries(r()?.[s]??{}).forEach(([e,n])=>{(e===t.locale||z(d)===`duplicate`)&&(Object.keys(n).forEach(n=>{n.startsWith(`${t.keyPath}.`)&&(mn(a3,Ri(r)[s][e][n]=null,Ri(r)),delete r()?.[s][e][n])}),mn(a3,Ri(r)[s][e][t.keyPath]=null,Ri(r)))}),dn(o3,!0)},he=()=>oDe({...z(te),keyPath:t.keyPath,locale:t.locale,summaryTemplate:z(ue)}),ge=()=>{let e=z(ce)?`The “${z(ce)}” type is not defined for the object field.`:`The type key is not found in the object. The item must include the “${z(g)}” property with one of the defined types: ${z(h).map(e=>e.name).join(`, `)}`;console.warn(`List item ${t.keyPath}: ${e}`)};rc(()=>{fe()});var _e=fDe(),ve=I(_e),ye=e=>{{let n=M(()=>X(`add_x`,{values:{name:t.fieldLabel||z(u)}}));ap(e,{get label(){return z(n)},get checked(){return z(ne)},get disabled(){return z(de)},onChange:({detail:{checked:e}})=>{e?pe():me()}})}};W(ve,e=>{!z(oe)&&!l()&&e(ye)});var be=L(ve,2),xe=e=>{O5(e,{get disabled(){return z(de)},get fieldConfig(){return t.fieldConfig},addItem:pe})};W(be,e=>{z(oe)&&!z(ne)&&e(xe)});var Se=L(be,2),Ce=e=>{var r=V(),i=I(r),a=e=>{var t=lDe(),n=I(t);fc(n,{status:`warning`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`unknown_variable_type`)]),H(e,n)},$$slots:{default:!0}});var r=L(n);R(e=>U(r,` ${e??``}`),[()=>ge()]),H(e,t)},o=e=>{var r=dDe();let i;var a=F(r),o=e=>{{let t=e=>{var t=V(),n=I(t),r=e=>{{let t=e=>{sc(e,{name:`close`})},n=M(()=>X(`remove`));Bd(e,{size:`small`,iconic:!0,get disabled(){return z(de)},get"aria-label"(){return z(n)},onclick:()=>{me()},startIcon:t,$$slots:{startIcon:!0}})}};W(n,e=>{z(oe)&&e(r)}),H(e,t)},r=M(()=>z(oe)?z(le)?.label||z(ce):``),i=M(()=>z(E).length?()=>K5({[z(ie)]:!z(ae)}):void 0);A5(e,{get label(){return z(r)},get controlId(){return`object-${n}-item-list`},get expanded(){return z(ae)},get toggleExpanded(){return z(i)},endContent:t,$$slots:{endContent:!0}})}};W(a,e=>{c||e(o)});var s=L(a,2),l=F(s),u=e=>{var n=V();lo(I(n),17,()=>z(E),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);zk(e,{children:(e,i)=>{{let i=M(()=>z(oe)&&z(ce)?`${t.typedKeyPath}<${z(ce)}>.${z(n).name}`:z(r));F7(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)},d=e=>{let t=M(he);var r=V(),i=I(r),a=e=>{var r=uDe(),i=F(r);{let e=M(()=>eG.isSmallScreen?2:1);Qu(i,{get lines(){return z(e)},children:(e,n)=>{mt();var r=ja();R(()=>U(r,z(t))),H(e,r)},$$slots:{default:!0}})}D(r),R(()=>K(r,`id`,`object-${n}-summary`)),H(e,r)};W(i,e=>{z(t)&&e(a)}),H(e,r)};W(l,e=>{z(ae)?e(u):e(d,-1)}),D(s),D(r),R(()=>{i=is(r,1,`wrapper svelte-pauyt3`,null,i,{expanded:z(ae)}),K(r,`aria-labelledby`,z(ae)?void 0:`object-${n}-summary`),K(s,`id`,`object-${n}-item-list`)}),H(e,r)};W(i,e=>{z(oe)&&!z(le)?e(a):e(o,-1)}),H(e,r)};W(Se,e=>{(!(!l()||z(oe))||z(ne))&&z(re)&&e(Ce)}),H(e,_e),k(),a()}var lDe,uDe,dDe,fDe,pDe;function mDe(){return(mDe=s((()=>{Y(),J(),Z(),gc(),Kd(),up(),dc(),td(),Hk(),v(),oc(),z7(),k5(),j5(),l3(),z5(),r7(),f8(),Y5(),sDe(),YI(),nG(),lDe=B(`<!> `,1),uDe=B(`<div role="none" class="summary svelte-pauyt3"><!></div>`),dDe=B(`<div role="group"><!> <div role="none" class="item-list"><!></div></div>`),fDe=B(`<!> <!> <!>`,1),pDe={hash:`svelte-pauyt3`,code:`.wrapper.svelte-pauyt3 {border-inline-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);&.expanded,
|
||
&:has(.summary:where(.svelte-pauyt3)) {border-bottom-width:2px;}}.sui.checkbox + .wrapper.svelte-pauyt3 {& > .group {margin-top:8px;}}.summary.svelte-pauyt3 {padding:8px;}`}})))()}function hDe(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=M(()=>t.fieldConfig.fields),o=M(()=>t.fieldConfig.types),s=M(()=>C(t.fieldConfig.typeKey,`type`)),c=M(()=>d8(n(),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(c)[z(d)]:void 0),p=M(()=>z(f)?z(o)?.find(({name:e})=>e===z(f)):void 0),m=M(()=>z(p)?z(p).label||z(p).name:void 0),h=M(()=>(z(u)?z(p)?.fields:z(a))??[]);var g=V(),_=I(g),v=e=>{var n=V(),r=I(n),i=e=>{},a=e=>{wEe(e,{get label(){return z(m)},children:(e,n)=>{var r=V();lo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);zk(e,{children:(e,i)=>{{let i=M(()=>z(u)&&z(p)?.name?`${t.typedKeyPath}<${z(p).name}>.${z(n).name}`:z(r));$5(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(r,e=>{z(u)&&!z(p)?e(i):e(a,-1)}),H(e,n)};W(_,e=>{z(l)&&e(v)}),H(e,g),k(),i()}function gDe(){return(gDe=s((()=>{Y(),J(),Hk(),Q5(),e7(),l3(),f8()})))()}function _De(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),{valueStoreKey:a=`currentValues`}=Pt(`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(()=>C(t.fieldConfig.dropdown_threshold,5)),f=e=>{n()&&Object.keys(n()[a]??{}).forEach(n=>{(z(l)===`duplicate`||n===t.locale)&&H5({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=>{ite(e,Js({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=>{ep(e,{get"aria-labelledby"(){return`${t.fieldId??``}-label`},children:(e,n)=>{var r=V();lo(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);ap(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),k(),i()}function vDe(){return(vDe=s((()=>{Y(),J(),up(),ip(),lte(),oc(),l3(),U5()})))()}function yDe(e,t){O(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(()=>C(t.fieldConfig.dropdown_threshold,5)),c=N(void 0);Zr(()=>{z(c)||P(c,o()[0]?.value===void 0?`string`:typeof o()[0]?.value,!0)}),Zr(()=>{!r()&&!o().some(({value:e})=>!e)&&o([{label:X(`unselected_option`),value:z(c)===`number`?null:``,searchValue:``},...o()])});var l=V(),u=I(l),d=e=>{Hm(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();lo(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());sm(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=>{bee(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();lo(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());Mm(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),k()}function bDe(){return(bDe=s((()=>{Y(),J(),Z(),fm(),Nm(),jm(),Um()})))()}function xDe(e,t){O(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)?_De:yDe),u=M(()=>{let e=z(s).map(e=>g(e)?e:{label:e,value:e});return o()&&e.sort((e,t)=>PD(e.label,t.label)),e});var d=V();to(I(d),()=>JSON.stringify(z(u)),e=>{var o=V();wo(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,d),k()}function i7(){return(i7=s((()=>{Y(),J(),v(),FD(),vDe(),bDe()})))()}function SDe(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),{valueStoreKey:a=`currentValues`}=Pt(`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)?[oI(z(u),z(d))].filter(e=>!!e):UV(z(u))),p=M(()=>n()?.[a]?.[t.locale]),m=M(()=>n()?.currentSlugs[t.locale]??n()?.currentSlugs._),h=M(()=>({...t.fieldConfig,widget:`select`,options:DH({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(f),currentLocaleValues:z(p),currentSlug:z(m)})}));var g=CDe();xDe(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)}}),D(g),H(e,g),k(),i()}var CDe;function wDe(){return(wDe=s((()=>{Y(),J(),oc(),i7(),qV(),cI(),l3(),kH(),CDe=B(`<div role="none" class="wrapper"><!></div>`)})))()}function TDe(e,t){O(t,!0);let n=M(()=>t.fieldConfig.collection),r=M(()=>t.fieldConfig.file),i=M(()=>C(t.fieldConfig.multiple,!1)),a=M(()=>C(t.fieldConfig.value_field,`{{slug}}`)),o=M(()=>LI(t.locale)),s=M(()=>z(r)?[oI(z(n),z(r))].filter(e=>!!e):UV(z(n))),c=M(()=>DH({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=EDe(),r=F(n,!0);D(n),R((e,t,i)=>{K(n,`lang`,e),K(n,`dir`,t),U(r,i),n.dir=n.dir},[()=>MI(t.locale),()=>NI(t.locale),()=>z(o).format(z(l))]),H(e,n)};W(d,e=>{z(l).length&&e(f)}),H(e,u),k()}var EDe;function DDe(){return(DDe=s((()=>{Y(),J(),qV(),cI(),kH(),zI(),EDe=B(`<p> </p>`)})))()}var a7,ODe,kDe,ADe,jDe,o7;function s7(){return(s7=s((()=>{a7=/^.+?:\w+:/,ODe=[`rich_text`,`raw`],kDe={rich_text:`rich-text`,raw:`plain-text`},ADe=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading-one`,`heading-two`,`heading-three`,`heading-four`,`heading-five`,`heading-six`,`bulleted-list`,`numbered-list`,`quote`],jDe={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`},o7=[`code-block`,`image`]})))()}var MDe,NDe,c7,PDe;function l7(){return(l7=s((()=>{XF(),KL(),MDe=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a,singleCustomTimeZone:o}=YF(n),s=typeof i==`string`&&!!i,c=typeof a==`string`&&!!a,l=!1,u=!1;if(t&&(s||c)){let e=WL({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}}},NDe=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),c7=e=>NDe.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),PDe=(e,t)=>{if(e===`date`)return t;if(e===`time`)return c7(t);let[n,r]=t.split(`T`);return`${n}, ${c7(r)}`}})))()}var u7,d7;function FDe(){return(FDe=s((()=>{Z(),EU(),XF(),l7(),u7=({direction:e,limitKey:t,limitValue:n,fieldType:r,type:i,canAddMultiValue:a})=>r===`datetime`&&typeof n==`string`?X(`validation.range_${e}.${i}`,{values:{[t]:PDe(i,n)}}):X(r===`number`?`validation.range_${e}.number`:a?`validation.range_${e}.add`:`validation.range_${e}.select`,{values:{[t]:n}}),d7=({validity:e,fieldConfig:t})=>{let n=[],{widget:r=`string`}=t,{pattern:i=[]}=t,a=r===`datetime`,o=a?YF(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`||dU(t);if(e.valueMissing&&n.push(X(`validation.value_missing`)),e.tooShort){let{minlength:e}=t;n.push(X(`validation.too_short`,{values:{min:e}}))}if(e.tooLong){let{maxlength:e}=t;n.push(X(`validation.too_long`,{values:{max:e}}))}return e.rangeUnderflow&&n.push(u7({direction:`underflow`,limitKey:`min`,limitValue:c,fieldType:r,type:s,canAddMultiValue:u})),e.rangeOverflow&&n.push(u7({direction:`overflow`,limitKey:`max`,limitValue:l,fieldType:r,type:s,canAddMultiValue:u})),e.patternMismatch&&n.push(i[1]),e.typeMismatch&&n.push(X(`validation.type_mismatch.${s}`)),e.customError&&n.push(e.customErrorMessage??X(`validation.invalid_value`)),n}})))()}var IDe;function LDe(){return(LDe=s((()=>{IDe=({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}`]}}})))()}var RDe,zDe;function BDe(){return(BDe=s((()=>{l3(),EU(),E5(),s7(),RDe=/(.+?)(?:\.[^.]*)?$/,zDe=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(RDe)?.[1],l=mU({...t,keyPath:c.replace(a7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=T5({entryDraft:a3,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}}})))()}var VDe,HDe;function UDe(){return(UDe=s((()=>{FD(),FF(),VDe=new Map,HDe=({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=PF(VDe,e,()=>RegExp(`^${kD(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}}})))()}var WDe;function GDe(){return(GDe=s((()=>{EU(),WDe=({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`)&&gU({fieldConfig:e,locale:t})&&n===null}}}})))()}var f7;function p7(){return(p7=s((()=>{f7=({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}}}})))()}var KDe,qDe,JDe,YDe,XDe,m7,ZDe,h7;function g7(){return(g7=s((()=>{aM(),l3(),j8(),FDe(),EU(),fI(),LDe(),l7(),BDe(),H6(),UDe(),GDe(),s7(),p7(),zV(),KDe={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1,customError:!1},qDe={datetime:MDe,number:WDe,string:f7,text:f7},JDe={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},YDe=({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=RV(n[0]);e&&!e.test(String(i))&&(r.patternMismatch=!0)}},XDe=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(a7,``),isIndexFile:d},h=mU({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=dU(h)||hU(h)===`custom`&&Array.isArray(p),{min:b=0,max:x=1/0}=Wde.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=gU({fieldConfig:h,locale:n}),ee={...KDe};if(g===`list`||y){let{skip:e}=HDe({keyPath:f,value:p,valueEntries:w,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e)return}if(g===`object`&&T&&!p&&(ee.valueMissing=!0),g===`keyvalue`){let e=zDe({keyPath:f,getFieldArgs:m,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=IDe({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}uI.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||YDe({value:p,required:T,validation:v,validity:ee});let te=qDe[g];return te&&Object.assign(ee,te({fieldConfig:h,locale:n,value:p}).validity),KSe({locale:n,keyPath:f,validity:ee}),new Proxy(ee,JDe)},m7=e=>{let{validities:t,locale:n,keyPath:r}=e,i=XDe(e),a=!0;return i&&(t[n][r]=i,i.valid||(a=!1)),a},ZDe=({fieldConfig:e,validateArgs:t})=>{let{validities:n,locale:r,keyPath:i}=t,a=n[r][i]?.valid??m7(t),{widget:o=`string`}=e;return o===`list`&&!V6(e).hasSubFields||dU(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},h7=e=>{let t=A(a3),{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(a7)??[],u=a?n[`${a}__sc_component_name`]:void 0,d=mU({...c,keyPath:t.replace(a7,``),valueMap:n,componentName:u});if(!d||hU(d)===`unknown`)return;if(cU.test(t)){let n=t.replace(cU,``),{valid:r,validateItems:a}=ZDe({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]=d7({validity:t,fieldConfig:d}))}if(!a)return}m7({...i,keyPath:t,value:r,componentName:u})||(l=!1);let f=o[e][t];f&&(s[e][t]=d7({validity:f,fieldConfig:d}))})}),{valid:l,validities:o,validationMessages:s}}})))()}function QDe(e,t){let n=Ma();O(t,!0),G(e,rOe);let r=()=>j(a3,`$entryDraft`,i),[i,a]=fn(),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 _M(Object.fromEntries(Object.entries(d8(r(),z(f),C)).filter(([e])=>e.startsWith(z(y))).map(([e,t])=>[e.replace(z(y),``),t])))}),ee=()=>{P(_,z(T)?{...z(T)}:void 0,!0),P(g,!0)},te=()=>{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(gM(z(_))).map(([e,t])=>[`${z(y)}${e}`,t]))))},ne=()=>{P(g,!1),u()(new CustomEvent(`remove`))},re=()=>{let{validities:e}=h7(`extraValues`);a3.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))},ie=()=>{z(v)?(P(g,!1),u()(new CustomEvent(`remove`))):(te(),P(g,!1),P(_,void 0))},ae=(e,n)=>{if(!e||!n)return null;let r=gM(n),i=qU(e,(e,n)=>{let{value:i,transformations:a}=QF(n),o=i.replace(/^fields\./,``),s=r[o];return s==null?``:(a.length&&(s=$F({fieldConfig:t.fields.find(e=>e.name===o),value:s,transformations:a,locale:z(f)})),String(s))});return i!==qU(e,()=>``)&&i.trim()?i.trim():null},oe=M(()=>{let e=t.fields.some(e=>z(T)?.[e.name]!==void 0)?z(T):l();if(t.summary&&e){let n=ae(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});rc(()=>(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)&&ee()}),()=>{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]}))})),Zr(()=>{l(),z(f),z(p),Ri(()=>{if(r()&&z(f)&&z(p)){let{defaultLocale:e}=r();if(l(l()??_M(R5({fields:t.fields,locale:z(f),defaultLocale:e}))??{}),l().__sc_component_name=t.componentName,!(0,_7.default)(l(),z(T))){let e=Object.fromEntries(Object.entries(gM(l())).map(([e,t])=>[`${z(y)}${e}`,t]));a3.update(t=>t&&(Object.assign(t[C][z(f)],e),t))}}})}),Zr(()=>{o()!==`dialog`&&(z(T),Ri(()=>{(0,_7.default)(w,z(T))||(u()(new CustomEvent(`update`,{detail:z(T)})),w=z(T))}))});var se={getElement:S},ce=V(),le=I(ce),E=e=>{var n=tOe(),r=I(n),i=F(r,!0);D(r),Bs(r,e=>P(d,e),()=>z(d)),dp(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=$De(),n=I(t);{let e=M(()=>X(`remove`));Bd(n,{variant:`secondary`,get label(){return z(e)},onclick:()=>{ne()}})}var r=L(n,2);Yf(r,{flex:!0});var i=L(r,2);{let e=M(()=>X(z(v)?`insert`:`update`));Bd(i,{variant:`primary`,get label(){return z(e)},onclick:()=>{re()}})}var a=L(i,2);{let e=M(()=>X(`cancel`));Bd(a,{variant:`secondary`,get label(){return z(e)},onclick:()=>{ie()}})}H(e,t)},children:(e,n)=>{var r=eOe(),i=F(r),a=e=>{var n=V();lo(I(n),17,()=>t.fields,e=>e.name,(e,n)=>{F7(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)}),D(r),H(e,r)},$$slots:{footer:!0,default:!0}}),R(()=>{is(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(oe))}),va(`click`,r,()=>{ee()}),va(`keydown`,r,e=>{e.key===`Enter`&&(e.preventDefault(),ee()),e.key===`Backspace`&&(e.preventDefault(),u()(new CustomEvent(`remove`)))}),H(e,n)},ue=e=>{var r=nOe();let i;var a=F(r);A5(a,{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=>{sc(e,{name:`close`})},n=M(()=>X(`remove`));Bd(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 o=L(a,2),c=F(o),l=e=>{var n=V();lo(I(n),17,()=>t.fields,e=>e.name,(e,n)=>{zk(e,{children:(e,r)=>{F7(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(c,e=>{z(f)&&z(p)&&z(h)&&e(l)}),D(o),D(r),Bs(r,e=>P(d,e),()=>z(d)),R(()=>{i=is(r,1,`component ${s()?`inline`:`block`} wrapper`,`svelte-1l1n28m`,i,{expanded:z(h)}),K(r,`aria-label`,t.label),K(r,`data-key-path-prefix`,z(y)),K(r,`data-component-name`,t.componentName),K(o,`id`,`object-${n}-item-list`)}),_a(`keydown`,r,e=>{e.stopPropagation()},!0),va(`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(le,e=>{o()===`dialog`?e(E):e(ue,-1)}),H(e,ce);var de=k(se);return a(),de}var _7,$De,eOe,tOe,nOe,rOe;function iOe(){return(iOe=s((()=>{Y(),J(),Z(),Kd(),yp(),dc(),$f(),Hk(),_7=u(kK()),oc(),z7(),j5(),ZU(),eI(),l3(),z5(),g7(),f8(),$De=B(`<!> <!> <!> <!>`,1),eOe=B(`<div role="none" class="fields svelte-1l1n28m"><!></div>`),tOe=B(`<span role="button" contenteditable="false" tabindex="0"> </span> <!>`,1),nOe=B(`<div role="group" contenteditable="false" tabindex="0"><!> <div role="none" class="item-list"><!></div></div>`),rOe={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-inline-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);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;&.expanded {border-bottom-width:2px;}&: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) {
|
||
/* Hide the bottom border */[data-field-type]::after {display:none;}[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;}`},ya([`click`,`keydown`])})))()}var v7,aOe;function oOe(){return(oOe=s((()=>{nC(),oc(),iOe(),NH(),v7=/^<(?<tagName>[a-z]+)/i,aOe=e=>{let{id:t,label:n,collapsed:r,mode:i,summary:a,fields:o,pattern:s,toBlock:c,toPreview:l}=e,u=!AH(s),d=l?.({}),f=c({}),p=typeof d==`string`?d.trim().match(v7)?.groups?.tagName??(typeof f==`string`?f.trim().match(v7)?.groups?.tagName:void 0):void 0;class m extends NS{__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{...jH(this.__props??{}),type:t,version:1}}createDOM(){let e,s=null,c,l=!1,d=()=>{l||(l=!0,La(c))};return c=Fa(QDe,{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 Fi(),s??=L_(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)))}})}}}),Xn(),e=c.getElement(),window.requestAnimationFrame(()=>{e.closest(`[role="textbox"][aria-readonly="false"]`)&&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}})))()}var sOe;function cOe(){return(cOe=s((()=>{NH(),sOe=({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(jH(e.__props??{})):null;return AH(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}}})))()}var y7,lOe,uOe;function dOe(){return(dOe=s((()=>{oOe(),cOe(),y7=new Map,lOe=e=>{let t=aOe(e);return{node:t,createNode:e=>new t(e),transformer:sOe({componentDef:e,CustomNode:t})}},uOe=class{constructor(e){let{id:t}=e,n=y7.get(t),r=n??lOe(e);n||y7.set(t,r),Object.assign(this,{...e,...r})}}})))()}function fOe(e,t){O(t,!0),G(e,mOe);let n=()=>j(VK,`$cmsConfig`,i),r=()=>j(a3,`$entryDraft`,i),[i,a]=fn(),o=/^data:(?<type>image\/.+?);base64,.+/,s=n()?.field_defaults?.richtext??{},{fieldContext:c,parentComponentNames:l,valueStoreKey:u}=Pt(`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(()=>C(t.fieldConfig.modes,()=>s.modes??[...ODe],!0)),x=M(()=>C(t.fieldConfig.buttons,()=>s.buttons??[...ADe],!0)),S=M(()=>C(t.fieldConfig.editor_components,()=>s.editor_components??[...o7,...pI.keys()],!0)),w=M(()=>t.fieldConfig.allow_nested_components),T=M(()=>C(t.fieldConfig.linked_images,()=>s.linked_images??!0,!0)),ee=M(()=>C(t.fieldConfig.use_markdown_shortcuts,()=>s.use_markdown_shortcuts??!0,!0)),te=M(()=>C(t.fieldConfig.minimal,()=>s.minimal??!1,!0)),ne=M(()=>z(b).map(e=>kDe[e]).filter(Boolean)),re=M(()=>r()?.isIndexFile??!1),ie=M(()=>r()?.collectionName??``),ae=M(()=>r()?.fileName),oe=M(()=>d8(r(),t.locale,u)),se=M(()=>[...z(x),...z(S).includes(`code-block`)?[`code-block`]:[]].map(e=>jDe[e]).filter(Boolean)),ce=M(()=>{let e=z(w);return d&&(e=mU({collectionName:z(ie),fileName:z(ae),isIndexFile:z(re),valueMap:z(oe),keyPath:t.keyPath.match(/^[^:]+/)?.[0]})?.allow_nested_components),e??s.allow_nested_components??!0}),le=M(()=>d&&!z(ce)?[]:z(S).filter(e=>z(ce)!==`exclude_self`||!l.includes(e)).map(e=>KH(e===`image`&&z(T)?`linked-image`:e)).filter(e=>!!e).map(e=>new uOe(e))),E=M(()=>z(le).find(({id:e})=>e===`image`||e===`linked-image`)),ue=M(()=>Z8(X8({collectionName:z(ie),fileName:z(ae),componentName:f,typedKeyPath:t.typedKeyPath,isIndexFile:z(re)}))),de=async({target:e,images:t})=>{let n=e?.closest(`div`),i=L_(n);if(!r()||!z(E)||!n?.matches(`.lexical-root`)||!i)return;let a=z(E).fields?.find(({name:e})=>e===`src`),{config:o}=XK({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 o5({draft:s,resource:{file:e,folder:c},libraryConfig:o});t=n}if(!t)continue;let a=t;i.update(()=>{s_([z(E).createNode({src:a,alt:r}),k_()])})}},fe=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`&&UB.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()??``;(zB.test(e)||HB.test(e))&&(s=e)}i=[{file:new File([t],s,{type:t.type}),alt:n}]}else i=[...n.files].filter(({type:e})=>UB.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}=DF(),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}))},pe=async e=>{let{target:t,dataTransfer:n}=e,r=n?.files,i=[];if(r?.length)i=[...r].filter(({type:e})=>UB.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(UB.includes(e))try{let n=await(await fetch(t)).blob(),{year:r,month:i,day:o,hour:s,minute:c,second:l}=DF(),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})},me=()=>{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(a7)??[];n?.startsWith(`${t.keyPath}:`)&&!z(_)?.querySelector(`[data-key-path-prefix="${n}"]`)&&delete r().extraValues[t.locale][e]})},500))},he=()=>{let e=z(v);p()!==e&&p(e)};Zr(()=>{p(),Ri(()=>{me()})}),Zr(()=>{z(v),Ri(()=>{he()})});var ge=pOe();let _e;Ya(F(ge),nd,null,e=>{var n=V();to(I(n),()=>JSON.stringify(t.fieldConfig),e=>{{let n=M(()=>MI(t.locale)),r=M(()=>NI(t.locale));jse(e,{get lang(){return z(n)},get dir(){return z(r)},get modes(){return z(ne)},get buttons(){return z(se)},get components(){return z(le)},get useMarkdownShortcuts(){return z(ee)},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=>{fe(e)},ondrop:e=>{pe(e)},get value(){return z(v)},set value(e){P(v,e,!0)}})}}),H(e,n)}),D(ge),Bs(ge,e=>P(_,e),()=>z(_)),R(()=>_e=is(ge,1,`wrapper svelte-duifo7`,null,_e,{minimal:z(te)})),H(e,ge),k(),a()}var pOe,mOe;function hOe(){return(hOe=s((()=>{Y(),J(),dk(),OF(),rd(),nC(),oc(),yI(),qK(),l3(),f8(),EU(),t5(),s5(),s7(),dOe(),qH(),zI(),QK(),GB(),pOe=B(`<div role="none"><!></div>`),mOe={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 gOe(){return{useNewRenderer:!0,renderer:{heading(...e){return gj.Renderer.prototype.heading.call(this,...e).replace(/^<(h\d)/,`<$1 dir="auto"`)},list(...e){return gj.Renderer.prototype.list.call(this,...e).replace(/^<(ol|ul)/,`<$1 dir="auto"`)},paragraph(...e){return gj.Renderer.prototype.paragraph.call(this,...e).replace(/^<p/,`<p dir="auto"`)}}}}function _Oe(){return(_Oe=s((()=>{rM()})))()}var vOe,yOe,bOe,b7,xOe,SOe,COe,wOe,TOe,EOe,DOe,OOe,x7,kOe;function AOe(){return(AOe=s((()=>{sj(),RH(),FF(),vOe={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`]},yOe=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},bOe=(e,t={})=>{let n=oj(e,{...vOe,...t,RETURN_DOM:!0});return Array.from(n.querySelectorAll(`iframe`)).forEach(e=>{yOe(e)||e.remove()}),n.innerHTML},b7=`span[data-component-key]`,xOe=`img[src]:not([data-processed])`,SOe=e=>Array.from(e).reduce((e,t)=>((e^t.charCodeAt(0))>>>0)*16777619>>>0,2166136261).toString(16),COe=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),wOe=/^[ ]{0,3}(`{3,}|~{3,})/,TOe=/^<([a-zA-Z][a-zA-Z0-9]*)(?:[\s>])/,EOe=new Map,DOe=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=wOe.exec(e);if(a)n.push(e),r={char:a[1][0],length:a[1].length};else{let r=TOe.exec(e);if(r){let t=r[1].toLowerCase();if(n.push(e),!COe.has(t)){let{openRe:n,closeRe:r}=PF(EOe,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},OOe=(...e)=>{let{alt:t,src:n,title:r}=e.at(-1),i=n.replaceAll(` `,`%20`);return r?``:``},x7=new Map,kOe=(e,t)=>{let n=new Map,r=(e??``).replace(FH,OOe);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=SOe(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 jOe(e,t){O(t,!0),G(e,FOe);let n=()=>j(VK,`$cmsConfig`,i),r=()=>j(a3,`$entryDraft`,i),[i,a]=fn();_j(gOe()),_j({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 gu,c=new gu,l=N(void 0),u=N(!1),d=M(()=>r()?.originalEntry),f=M(()=>r()?.collectionName??``),p=M(()=>r()?.fileName),m=M(()=>C(t.fieldConfig.sanitize_preview,()=>o.sanitize_preview??!0,!0)),h=M(()=>C(t.fieldConfig.editor_components,()=>o.editor_components??[...o7,...pI.keys()],!0)),g=M(()=>C(t.fieldConfig.linked_images,()=>o.linked_images??!0,!0)),_=M(()=>z(h).map(e=>KH(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}=kOe(t.currentValue,z(_));return c=n,e}),y=e=>{let t=e.dataset.componentKey,n=t?c.get(t):void 0;if((0,MOe.isValidElement)(n)){let t=(0,NOe.createRoot)(e);s.set(e,t),t.render(n)}else e.remove()},b=e=>{[e,...e.querySelectorAll(b7)].forEach(e=>{let t=s.get(e);t&&(t.unmount(),s.delete(e))})},x=async e=>{e.dataset.processed=`true`;let n=e.getAttribute(`src`),r=await TV({value:n,entry:z(d),collectionName:z(f),fileName:z(p),typedKeyPath:t.typedKeyPath});r&&(e.src=r)},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(b7).forEach(e=>{y(e)}),t.matches(`img[src]:not([data-processed])`)?x(t):t.querySelectorAll(xOe).forEach(e=>{x(e)})})})},w=e=>{let t=nM(e,{breaks:!0});return z(m)?bOe(t):t};rc(()=>{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 T=POe(),ee=F(T),te=e=>{var t=V();lo(I(t),19,()=>DOe(z(v)),(e,t)=>`${t}-${e}`,(e,t)=>{var n=V();vo(I(n),()=>w(z(t))),H(e,n)}),H(e,t)};W(ee,e=>{z(u)&&z(v)&&e(te)}),D(T),Bs(T,e=>P(l,e),()=>z(l)),H(e,T),k(),a()}var MOe,NOe,POe,FOe;function IOe(){return(IOe=s((()=>{Y(),J(),rM(),_Oe(),MOe=f(),NOe=y8(),oc(),Cu(),yI(),EV(),qK(),l3(),s7(),qH(),AOe(),POe=B(`<div role="none" class="svelte-14tuh7g"><!></div>`),FOe={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 LOe(e,t){O(t,!0);let n=M(()=>t.fieldConfig.options),r=M(()=>t.fieldConfig.multiple),i=M(()=>qO(z(n))),a=M(()=>LI(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=S7(),r=F(n,!0);D(n),R((e,t,i)=>{K(n,`lang`,e),K(n,`dir`,t),U(r,i),n.dir=n.dir},[()=>MI(t.locale),()=>NI(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=S7(),r=F(n,!0);D(n),R((e,t,i)=>{K(n,`lang`,e),K(n,`dir`,t),U(r,i),n.dir=n.dir},[()=>MI(t.locale),()=>NI(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),k()}var S7;function ROe(){return(ROe=s((()=>{Y(),J(),YO(),zI(),S7=B(`<p> </p>`)})))()}function zOe(e,t){O(t,!0),G(e,VOe);let n=M(()=>t.fieldConfig.minlength),r=M(()=>t.fieldConfig.maxlength),i=M(()=>f7({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=BOe(),i=F(t),l=e=>{var t=ja();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);D(u);var p=L(u,2),m=e=>{var t=ja();R(()=>U(t,` /
|
||
${z(r)??``}`)),H(e,t)};W(p,e=>{z(s)&&e(m)}),D(t),R(e=>{K(t,`aria-label`,e),d=is(u,1,`count svelte-19vklom`,null,d,{invalid:z(c)}),U(f,z(a))},[()=>X(z(o)&&z(s)?`character_counter.min_max`:z(o)?`character_counter.min`:`character_counter.max`,{values:{count:z(a),min:z(n),max:z(r)}})]),H(e,t)};W(u,e=>{(z(o)||z(s))&&e(d)}),H(e,l),k()}var BOe,VOe;function C7(){return(C7=s((()=>{Y(),J(),Z(),p7(),BOe=B(`<div class="wrapper svelte-19vklom"><!> <span role="none"> </span> <!></div>`),VOe={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 HOe(e,t){O(t,!0);let[n,r]=fn(),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}=Pt(`field-editor`)??{},l=N(``),u=M(()=>C(t.fieldConfig.type,`text`)),d=M(()=>C(t.fieldConfig.prefix,``)),f=M(()=>C(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)};Zr(()=>{i(),Ri(()=>{p()})}),Zr(()=>{z(l),Ri(()=>{m()})}),Zr(()=>{c&&dn(c,zOe)});{let n=M(()=>MI(t.locale)),r=M(()=>NI(t.locale));Ep(e,{get lang(){return z(n)},get dir(){return z(r)},get type(){return z(u)},get inputmode(){return z(u)},flex:!0,get readonly(){return o()},get required(){return a()},get invalid(){return s()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(l)},set value(e){P(l,e,!0)}})}k(),r()}function UOe(){return(UOe=s((()=>{Y(),J(),jp(),oc(),C7(),zI()})))()}var WOe,GOe;function w7(){return(w7=s((()=>{FD(),WOe=e=>{if(!ND(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)},GOe=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 KOe(e,t){O(t,!0),G(e,XOe);let n=N(!0),r=M(()=>GOe(t.url)),i=({blockedURI:e,violatedDirective:t})=>{e===new URL(z(r)).origin&&t===`frame-src`&&(P(n,!1),window.removeEventListener(`securitypolicyviolation`,i))};rc(()=>(window.addEventListener(`securitypolicyviolation`,i),()=>{window.removeEventListener(`securitypolicyviolation`,i)}));var a=YOe(),o=F(a),s=e=>{zk(e,{children:(e,t)=>{var n=qOe();R((e,t)=>{K(n,`src`,e),K(n,`title`,t)},[()=>encodeURI(z(r)),()=>X(`youtube_video_player`)]),H(e,n)},$$slots:{default:!0}})},c=e=>{var n=JOe(),r=F(n,!0);D(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)}),D(a),H(e,a),k()}var qOe,JOe,YOe,XOe;function ZOe(){return(ZOe=s((()=>{Y(),J(),Z(),Hk(),oc(),w7(),qOe=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>`),JOe=B(`<a> </a>`),YOe=B(`<div role="none"><!></div>`),XOe={hash:`svelte-spbxln`,code:`iframe.svelte-spbxln {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16 / 9;}`}})))()}function QOe(e,t){O(t,!0),G(e,eke);let n=M(()=>t.fieldConfig.name),r=M(()=>C(t.fieldConfig.type,`text`)),i=/^(?:https|mailto|tel):/;var a=V(),o=I(a),s=e=>{var a=$Oe();let o;var s=F(a),c=e=>{var n=V(),r=I(n),a=e=>{KOe(e,{get url(){return t.currentValue}})},o=M(()=>WOe(t.currentValue)),s=e=>{var n=T7(),r=F(n,!0);D(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=ja();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`||ND(t.currentValue)),u=e=>{var n=T7(),r=F(n,!0);D(n),R(e=>{K(n,`href`,`mailto:${e??``}`),U(r,t.currentValue)},[()=>encodeURI(t.currentValue)]),H(e,n)},d=e=>{var n=ja();R(()=>U(n,t.currentValue)),H(e,n)};W(s,e=>{z(l)?e(c):z(r)===`email`?e(u,1):e(d,-1)}),D(a),R((e,t)=>{K(a,`lang`,e),K(a,`dir`,t),o=is(a,1,`svelte-euqs6c`,null,o,{title:z(n)===`title`}),a.dir=a.dir},[()=>MI(t.locale),()=>NI(t.locale)]),H(e,a)},c=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());W(o,e=>{z(c)&&e(s)}),H(e,a),k()}var T7,$Oe,eke;function tke(){return(tke=s((()=>{Y(),J(),FD(),ZOe(),zI(),w7(),T7=B(`<a> </a>`),$Oe=B(`<p><!></p>`),eke={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 nke(e,t){O(t,!0);let[n,r]=fn(),{extraHint:i}=Pt(`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)};Zr(()=>{a(),Ri(()=>{u()})}),Zr(()=>{z(l),Ri(()=>{d()})}),Zr(()=>{i&&dn(i,zOe)});{let n=M(()=>MI(t.locale)),r=M(()=>NI(t.locale));VO(e,{get lang(){return z(n)},get dir(){return z(r)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,get value(){return z(l)},set value(e){P(l,e,!0)}})}k(),r()}function rke(){return(rke=s((()=>{Y(),J(),KO(),oc(),C7(),zI()})))()}function ike(e,t){O(t,!0),G(e,oke);var n=V(),r=I(n),i=e=>{var n=ake(),r=F(n,!0);D(n),R((e,i)=>{K(n,`lang`,e),K(n,`dir`,i),U(r,t.currentValue),n.dir=n.dir},[()=>MI(t.locale),()=>NI(t.locale)]),H(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());W(r,e=>{z(a)&&e(i)}),H(e,n),k()}var ake,oke;function ske(){return(ske=s((()=>{Y(),J(),zI(),ake=B(`<p class="svelte-q17c48"> </p>`),oke={hash:`svelte-q17c48`,code:`p.svelte-q17c48 {white-space:pre-wrap;}`}})))()}var E7;function D7(){return(D7=s((()=>{md(),E7=e=>{let{prefix:t,use_b32_encoding:n}=e,r=n?fd():dd();return t?`${t}${r}`:r}})))()}function cke(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),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??qI),f=M(()=>z(d).defaultLocale);rc(()=>{a()||(t.locale===z(f)||[!0,`translate`].includes(t.fieldConfig?.i18n??!1))&&a(E7(t.fieldConfig)),`read_only`in t.fieldConfig&&xI(`uuid_read_only`)});{let n=M(()=>s()&&t.fieldConfig.read_only!==!1);Ep(e,{dir:`ltr`,flex:!0,get readonly(){return z(n)},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return a()},set value(e){a(e)}})}k(),i()}function lke(){return(lke=s((()=>{Y(),J(),jp(),oc(),SI(),l3(),D7(),YI()})))()}function uke(e,t){O(t,!0),G(e,fke);var n=V(),r=I(n),i=e=>{var n=dke(),r=F(n,!0);D(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),k()}var dke,fke;function pke(){return(pke=s((()=>{Y(),J(),dke=B(`<p class="svelte-1phz9g8"> </p>`),fke={hash:`svelte-1phz9g8`,code:`p.svelte-1phz9g8 {font-family:var(--sui-font-family-monospace);}`}})))()}var O7,k7;function A7(){return(A7=s((()=>{fSe(),hSe(),_Se(),bSe(),ESe(),ASe(),MSe(),FSe(),eCe(),lCe(),hCe(),vCe(),sTe(),mTe(),ETe(),MTe(),CEe(),zEe(),YEe(),$Ee(),tDe(),iDe(),mDe(),gDe(),wDe(),DDe(),hOe(),IOe(),i7(),ROe(),UOe(),tke(),rke(),ske(),lke(),pke(),O7={boolean:dSe,code:gSe,color:xSe,compute:jSe,datetime:uCe,file:nTe,image:nTe,keyvalue:_Te,list:xEe,map:WEe,markdown:fOe,number:eDe,object:cDe,relation:SDe,richtext:fOe,select:xDe,string:HOe,text:nke,uuid:cke},k7={boolean:pSe,code:vSe,color:DSe,compute:NSe,datetime:gCe,file:pTe,image:pTe,keyvalue:DTe,list:LEe,map:XEe,markdown:jOe,number:nDe,object:hDe,relation:TDe,richtext:jOe,select:LOe,string:QOe,text:ike,uuid:uke}})))()}var j7,M7,mke,N7;function P7(){return(P7=s((()=>{aM(),l3(),EU(),ZH(),j7=(e,t)=>{let n=t.split(`.`);for(let t=n.length-1;t>=1;--t)if(YH(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}}}},M7=({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=mU({...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}}}})},mke=({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?j7(s[n],t):void 0,m=p?.originalKeyPath??t,h=p?{from:p.originalPrefix,to:p.currentPrefix}:void 0;M7({locale:n,isDefaultLocale:d,keyPath:t,getFieldArgs:{...f,valueMap:s[n]},currentValues:s,reset:!0}),M7({locale:n,isDefaultLocale:d,keyPath:m,getFieldArgs:{...f,valueMap:c[n]},currentValues:s,remapPrefix:h})},N7=({locale:e=``,keyPath:t=``}={})=>{let n=A(a3),{collection:r,collectionFile:i,currentValues:a}=n,{allLocales:o}=(i??r)._i18n;(e?[e]:o).forEach(e=>{mke({draft:n,keyPath:t,locale:e})}),a3.update(()=>({...n,currentValues:a}))}})))()}function F7(e,t){let n=Ma();O(t,!0),G(e,Tke);let r=()=>j(a3,`$entryDraft`,a),i=()=>j(h,`$extraHint`,a),[a,o]=fn(),s=e=>{var t=L7(),n=I(t),r=e=>{var t=hke();vo(t,()=>p(z(ae)),!0),D(t),H(e,t)};W(n,e=>{z(ae)&&e(r)});var i=L(n,2),a=e=>{var t=gke(),n=F(t,!0);D(t),R(()=>U(n,z(ne))),H(e,t)};W(i,e=>{z(ne)&&e(a)}),H(e,t)},c=e=>{var t=L7(),n=I(t),r=e=>{var t=_ke(),n=F(t,!0);D(t),R(()=>U(n,z(re))),H(e,t)};W(n,e=>{z(re)&&e(r)});var i=L(n,2),a=e=>{var t=vke();vo(t,()=>p(z(oe)),!0),D(t),H(e,t)};W(i,e=>{z(oe)&&e(a)}),H(e,t)},l=Pt(`field-editor`)??{},u={ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`,`br`],ALLOWED_ATTR:[`href`]},d=q(t,`context`,19,()=>l.fieldContext??void 0),f=q(t,`valueStoreKey`,19,()=>l.valueStoreKey??`currentValues`),p=e=>oj(tM(e.replaceAll(`\\n`,`<br>`)),u),m=e=>{let n=f(),r=t.locale,i=t.keyPath;queueMicrotask(()=>{a3.update(t=>(t&&(t[n][r][i]=e),t))})},h=sn();Ft(`field-editor`,{fieldContext:d(),parentComponentNames:[...l.parentComponentNames??[],t.componentName].filter(Boolean),extraHint:h,valueStoreKey:f()});let g=M(()=>d()===`rich-text-editor-component`),_=M(()=>t.fieldConfig.name),v=M(()=>C(t.fieldConfig.widget,`string`)),y=M(()=>C(t.fieldConfig.i18n,!1)),b=M(()=>C(t.fieldConfig.label,``)),x=M(()=>C(t.fieldConfig.comment,``)),S=M(()=>C(t.fieldConfig.hint,``)),w=M(()=>C(t.fieldConfig.readonly,!1)),T=M(()=>gU({fieldConfig:t.fieldConfig,locale:t.locale})),ee=M(()=>dU(t.fieldConfig)),te=M(()=>[`string`].includes(z(v))),ne=M(()=>z(te)?t.fieldConfig.prefix:void 0),re=M(()=>z(te)?t.fieldConfig.suffix:void 0),ie=M(()=>[`boolean`,`number`,`string`].includes(z(v))),ae=M(()=>z(ie)?t.fieldConfig.before_input:void 0),oe=M(()=>z(ie)?t.fieldConfig.after_input:void 0),se=M(()=>!!(z(ne)||z(re)||z(ae)||z(oe))),ce=M(()=>z(v)===`list`||z(ee)),le=M(()=>r()?.collection),E=M(()=>r()?.collectionFile),ue=M(()=>r()?.originalValues),de=M(()=>(z(E)??z(le))?._i18n??qI),fe=M(()=>z(de).i18nEnabled),pe=M(()=>z(de).allLocales),me=M(()=>z(de).defaultLocale),he=M(()=>z(fe)?z(pe).filter(e=>e!==t.locale):[]),ge=M(()=>z(fe)&&(z(y)===!0||z(y)===`translate`)),_e=M(()=>z(fe)&&z(y)===`duplicate`),ve=M(()=>z(g)||t.locale===z(me)||z(ge)||z(_e)),ye=M(()=>!z(g)&&z(ge)&&z(he).length),be=M(()=>!z(g)&&!(z(_e)&&t.locale!==z(me))),xe=M(()=>RegExp(`^${kD(t.keyPath)}\\.\\d+$`)),Se=M(()=>d8(r(),t.locale,f())),Ce=M(()=>mI.get(z(v))),we=M(()=>TU({valueMap:z(Se),keyPath:t.keyPath,isList:z(ce),multiple:z(ee),isEditor:!0,isCustomFieldType:!!z(Ce)})),Te=M(()=>{if(z(ce))return Object.entries(z(ue)?.[t.locale]??{}).filter(([e])=>z(xe).test(e)).map(([,e])=>e).filter(e=>e!==void 0);let e=z(Se),n=j7(e,t.keyPath);return n?z(ue)?.[t.locale]?.[n.originalKeyPath]:z(ue)?.[t.locale]?.[t.keyPath]}),Ee=M(()=>{if(z(v)===`list`){let e=z(Se),n=z(ue)?.[t.locale]??{},r=`${t.keyPath}.`,i=Object.entries(e).filter(([e])=>e.startsWith(r)&&!i3.test(e)).sort(([e],[t])=>e.localeCompare(t)),a=Object.entries(n).filter(([e])=>e.startsWith(r)&&!i3.test(e)).sort(([e],[t])=>e.localeCompare(t));return(0,I7.default)(i,a)}return(0,I7.default)(z(we),z(Te))}),De=M(()=>r()?.validities[t.locale][t.keyPath]),Oe=M(()=>z(b)||z(_)),ke=M(()=>z(w)||z(y)===`duplicate`&&t.locale!==z(me)||z(v)===`compute`||z(v)===`uuid`),Ae=M(()=>z(De)?.valid===!1),je=M(()=>({locale:t.locale,keyPath:t.keyPath,typedKeyPath:t.typedKeyPath,fieldId:n,fieldLabel:z(Oe),fieldConfig:t.fieldConfig,readonly:z(ke),required:z(T),invalid:z(Ae)}));Zr(()=>{if(r()&&!z(Ce)&&z(ee)&&Array.isArray(z(we))){let e=r()[f()][t.locale]?.[`${t.keyPath}.0`],[n]=z(we);e===void 0&&n!==void 0&&(mn(a3,Ri(r)[f()][t.locale][`${t.keyPath}.0`]=n,Ri(r)),delete r()[f()][t.locale][t.keyPath])}}),Zr(()=>{if(r()&&!z(Ce)&&!z(ee)&&z(we)===void 0){let e=r()[f()][t.locale]?.[`${t.keyPath}.0`];e!==void 0&&(mn(a3,Ri(r)[f()][t.locale][t.keyPath]=e,Ri(r)),Object.keys(r()[f()][t.locale]).forEach(e=>{z(xe).test(e)&&delete r()[f()][t.locale][e]}))}});var Me=V(),Ne=I(Me),Pe=e=>{{let a=M(()=>X(`x_field`,{values:{field:z(Oe)}})),o=M(()=>z(v)===`compute`);iSe(e,{get"aria-label"(){return z(a)},get"data-field-type"(){return z(v)},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=wke(),l=I(o),u=F(l),d=F(u,!0);D(u);var h=L(u,2),g=e=>{var t=yke();R(e=>K(t,`aria-label`,e),[()=>X(`required`)]),H(e,t)};W(h,e=>{!z(ke)&&z(T)&&e(g)});var _=L(h,2);Yf(_,{flex:!0});var y=L(_,2),b=e=>{cSe(e,{size:`small`,get locale(){return t.locale},get otherLocales(){return z(he)},get keyPath(){return t.keyPath}})},C=M(()=>z(ye)&&[`richtext`,`markdown`,`string`,`text`,`list`,`object`].includes(z(v)));W(y,e=>{z(C)&&e(b)});var w=L(y,2),ee=e=>{{let n=e=>{{let n=M(()=>X(`field_options`));pm(e,{get"aria-label"(){return z(n)},children:(e,n)=>{var r=L7(),i=I(r),a=e=>{p8(e,{get locale(){return t.locale},get otherLocales(){return z(he)},get keyPath(){return t.keyPath}})};W(i,e=>{z(ye)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`revert_changes`));vm(e,{get label(){return z(n)},get disabled(){return z(Ee)},onclick:()=>{N7({locale:t.locale,keyPath:t.keyPath})}})}};W(o,e=>{z(be)&&e(s)}),H(e,r)},$$slots:{default:!0}})}},r=M(()=>X(`show_field_options`));Ff(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},popup:n,$$slots:{popup:!0}})}};W(w,e=>{(z(ye)||z(be))&&e(ee)}),D(l);var te=L(l,2),ne=e=>{var t=bke(),n=F(t);vo(n,()=>p(z(x)),!0),D(n),D(t),H(e,t)};W(te,e=>{!z(ke)&&z(x)&&e(ne)});var re=L(te,2),ie=e=>{_8(e,{get id(){return`${n}-error`},children:(e,n)=>{mt();var i=ja();R(e=>U(i,e),[()=>r()?.validationMessages[t.locale][t.keyPath]?.join(` `)]),H(e,i)},$$slots:{default:!0}})};W(re,e=>{z(De)?.valid===!1&&e(ie)});var ae=L(re,2);let oe;var le=F(ae),E=e=>{var n=R7(),r=I(n);s(r);var i=L(r,2);{let e=M(()=>({...z(je),fieldConfig:t.fieldConfig}));YSe(i,Js(()=>z(e),{get control(){return z(Ce).control},get currentValue(){return z(we)}}))}var a=L(i,2);c(a),H(e,n)},ue=e=>{var t=xke(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`unsupported_field_type_x`,{values:{name:z(v)}})]),H(e,t)},de=M(()=>hU(t.fieldConfig)===`unknown`),fe=e=>{let t=M(()=>O7[z(v)]);var n=V();wo(I(n),()=>z(t),(e,t)=>{t(e,Js(()=>z(je),{get currentValue(){return z(we)}}))}),H(e,n)},pe=e=>{let n=M(()=>O7[z(v)]);var i=R7(),a=I(i);s(a);var o=L(a,2),l=()=>r()[f()][t.locale][t.keyPath],u=e=>m(e);wo(o,()=>z(n),(e,t)=>{t(e,Js(()=>z(je),{get currentValue(){return l()},set currentValue(e){u(e)}}))});var d=L(o,2);c(d),H(e,i)};W(le,e=>{z(Ce)?e(E):z(de)?e(ue,1):z(ce)?e(fe,2):e(pe,-1)}),D(ae);var me=L(ae,2),ge=e=>{let n=M(i);var r=Cke(),a=F(r),o=e=>{var t=Ske();vo(t,()=>p(z(S)),!0),D(t),H(e,t)};W(a,e=>{z(S)&&e(o)}),wo(L(a,2),()=>z(n),(e,n)=>{n(e,{get fieldConfig(){return t.fieldConfig},get locale(){return t.locale},get currentValue(){return z(we)}})}),D(r),H(e,r)};W(me,e=>{!z(ke)&&(z(S)||i())&&e(ge)}),R(()=>{K(u,`id`,`${n}-label`),U(d,z(Oe)),oe=is(ae,1,`field-wrapper svelte-dkfcyc`,null,oe,{"has-extra-labels":z(se)})}),H(e,o)},$$slots:{default:!0}})}};W(Ne,e=>{r()&&z(ve)&&z(v)!==`hidden`&&e(Pe)}),H(e,Me),k(),o()}var I7,hke,gke,L7,_ke,vke,yke,bke,R7,xke,Ske,Cke,wke,Tke;function z7(){return(z7=s((()=>{Y(),J(),Z(),_m(),Rf(),wm(),$f(),FD(),I7=u(kK()),sj(),rM(),oc(),aM(),m8(),h8(),g8(),v8(),A7(),yI(),l3(),P7(),f8(),EU(),YI(),hke=B(`<div role="none" class="before-input svelte-dkfcyc"></div>`),gke=B(`<div role="none" class="prefix svelte-dkfcyc"> </div>`),L7=B(`<!> <!>`,1),_ke=B(`<div role="none" class="suffix svelte-dkfcyc"> </div>`),vke=B(`<div role="none" class="after-input svelte-dkfcyc"></div>`),yke=B(`<div class="required">*</div>`),bke=B(`<div role="none" class="comment-wrapper"><p class="comment svelte-dkfcyc"></p></div>`),R7=B(`<!> <!> <!>`,1),xke=B(`<div role="none"> </div>`),Ske=B(`<p class="hint svelte-dkfcyc"></p>`),Cke=B(`<div role="none" class="footer svelte-dkfcyc"><!> <!></div>`),wke=B(`<header role="none"><h4 role="none"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none"><!></div> <!>`,1),Tke={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 Eke(e,t){let n=Ma();O(t,!0);let r=()=>j(a3,`$entryDraft`,i),[i,a]=fn(),o=M(()=>r()?.collection),s=M(()=>r()?.collectionFile),c=M(()=>(z(s)??z(o))?._i18n??qI),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(``);Zr(()=>{z(f)&&P(h,r()?.currentSlugs[t.locale]??``,!0)}),Zr(()=>{z(h),Ri(()=>{r()&&Object.entries(r().slugEditor).forEach(([e,n])=>{(t.locale===e||t.locale===z(l)&&n===`readonly`)&&mn(a3,Ri(r).currentSlugs[e]=z(h),Ri(r))})})});var g=V(),_=I(g),v=e=>{iSe(e,{children:(e,t)=>{var r=kke(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2),c=e=>{var t=Dke();R(e=>K(t,`aria-label`,e),[()=>X(`required`)]),H(e,t)};W(s,e=>{z(d)&&e(c)}),D(i);var l=L(i,2),u=e=>{_8(e,{get id(){return`${n}-error`},children:(e,t)=>{var n=Oke(),r=I(n),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`edit_slug_error.empty`)]),H(e,t)};W(r,e=>{z(p)?.valueMissing&&e(i)});var a=L(r,2),o=e=>{var t=ja();R(e=>U(t,e),[()=>X(`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);Ep(F(g),{dir:`auto`,flex:!0,get readonly(){return z(f)},get required(){return z(d)},get invalid(){return z(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return z(h)},set value(e){P(h,e,!0)}}),D(g),R(e=>{K(a,`id`,`${n}-label`),U(o,e)},[()=>X(`slug`)]),H(e,r)},$$slots:{default:!0}})};W(_,e=>{r()&&e(v)}),H(e,g),k(),a()}var Dke,Oke,kke;function Ake(){return(Ake=s((()=>{Y(),J(),Z(),jp(),oc(),h8(),v8(),l3(),YI(),Dke=B(`<div class="required">*</div>`),Oke=B(`<!> <!>`,1),kke=B(`<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="field-wrapper"><!></div>`,1)})))()}function jke(e,t){O(t,!0);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=M(()=>n()?.fields??[]);zk(e,{children:(e,r)=>{var i=Mke(),o=I(i),s=e=>{Eke(e,{get locale(){return t.locale}})};W(o,e=>{n()?.slugEditor[t.locale]&&e(s)}),lo(L(o,2),17,()=>z(a),e=>e.name,(e,n)=>{zk(e,{children:(e,r)=>{F7(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}}),k(),i()}var Mke;function Nke(){return(Nke=s((()=>{Y(),J(),Hk(),z7(),Ake(),l3(),Mke=B(`<!> <!>`,1)})))()}function Pke(e,t){O(t,!0),G(e,Rke);let n=N(!1),r=N(void 0),i=N(void 0),a=()=>`
|
||
<!DOCTYPE html>
|
||
<html lang="${BH(t.locale)}">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<base href="${BH(window.location.origin)}" target="_blank">
|
||
${t.styleURLs.map(e=>`<link rel="stylesheet" href="${BH(e)}">`).join(`
|
||
`)}
|
||
</head>
|
||
<body></body>
|
||
</html>
|
||
`,o=()=>{let e=z(r)?.contentDocument?.body;e&&Fa(Dd,{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,Fke.createElement)(t.reactComponent,r))}},c=()=>{let e=z(r)?.contentDocument?.body;e&&t.reactComponent&&P(i,(0,Ike.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};Zr(()=>{z(r)&&!z(n)&&l()}),Zr(()=>{z(n)&&z(i)&&t.reactComponent&&t.reactProps&&s()}),Zr(()=>()=>{z(i)?.unmount()});var u=Lke();Bs(u,e=>P(r,e),()=>z(r)),R(e=>K(u,`title`,e),[()=>X(`content_preview`)]),H(e,u),k()}var Fke,Ike,Lke,Rke;function zke(){return(zke=s((()=>{Y(),J(),Z(),Od(),Fke=f(),Ike=y8(),oc(),UH(),Lke=B(`<iframe class="preview svelte-1k58u5t" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>`),Rke={hash:`svelte-1k58u5t`,code:`iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}`}})))()}var Bke,Vke,Hke,B7,Uke,Wke,Gke;function Kke(){return(Kke=s((()=>{O4(),Bke=f(),oc(),e7(),N4(),sL(),qV(),EU(),Vke=({locale:e,getFieldArgs:t})=>(n,r)=>Fa($5,{target:n,props:{keyPath:r,typedKeyPath:``,locale:e,fieldConfig:mU({...t,keyPath:r}),showLabel:!1}}),Hke=e=>t=>{let n;return(0,Bke.createElement)(`div`,{ref:r=>{r?n=e(r,t):n&&La(n)}})},B7=(e,t,n)=>$2(Object.fromEntries(Object.keys(e).map(e=>[e,n(`${t}.${e}`)]))),Uke=(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 $2({data:c2(e),widgets:i?B7(e,`${n}.${r}`,t):$2({})})}):typeof r==`object`?$2({data:c2(r),widgets:B7(r,n,t)}):r},Wke=async(e,t)=>{let n=iL(e);if(!n)throw Error(`Collection "${e}" not found`);let{defaultLocale:r}=n._i18n,i=UV(e),a={locale:r,collectionName:e,associatedAssets:j4({collectionName:e})},o=e=>A4({...a,entry:e});return t?o(i.find(e=>e.slug===t)):i.map(o)},Gke=({draft:e,locale:t})=>{let{entryMap:n,valueMap:r,getFieldArgs:i,fieldsMetaData:a,getAsset:o}=M4({draft:e,locale:t}),s=Vke({locale:t,getFieldArgs:i}),c=Hke(s);return{entry:n,widgetFor:c,widgetsFor:Uke(_M(r),c),getAsset:o,getCollection:Wke,fieldsMetaData:a}}})))()}function qke(e,t){O(t,!0),G(e,Yke);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=e=>{var n=V();lo(I(n),17,()=>z(l),e=>e.name,(e,n)=>{zk(e,{children:(e,r)=>{$5(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(()=>C(z(o).fields,()=>[],!0)),u=M(()=>[...gI]),d=M(()=>_I.get(z(c)??z(s))),f=M(()=>n()&&z(d)?Gke({draft:Dt(n()),locale:t.locale}):void 0);zk(e,{children:(e,n)=>{var r=V(),i=I(r),o=e=>{Pke(e,{get locale(){return t.locale},get styleURLs(){return z(u)},get reactComponent(){return z(d)},get reactProps(){return z(f)}})},s=e=>{Pke(e,{get locale(){return t.locale},get styleURLs(){return z(u)},get children(){return a}})},c=e=>{var t=Jke(),n=F(t);a(n),D(t),R(e=>K(t,`aria-label`,e),[()=>X(`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}}),k(),i()}var Jke,Yke;function Xke(){return(Xke=s((()=>{Y(),J(),Z(),Hk(),zke(),e7(),yI(),l3(),Kke(),Jke=B(`<div role="document" class="svelte-17akd4q"><!></div>`),Yke={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);}`}})))()}var V7,H7,U7,Zke;function W7(){return(W7=s((()=>{sM(),V7=u(kK(),1),aM(),WZ(),EQ(),H7=sn(),U7={},Zke=async({repository:e})=>{let{databaseName:t}=e??{},n=t?new oM(t,`ui-settings`):null,r=`entry-view`,i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:`grid`},...await n?.get(r)};H7.set(i),TQ.set(i.selectAssetsView),U7.entryEditorSettingsUnsubscribe?.(),U7.selectAssetsViewUnsubscribe?.(),U7.entryEditorSettingsUnsubscribe=H7.subscribe(e=>{(async()=>{try{(0,V7.default)(e,await n?.get(r))||await n?.set(r,e)}catch{}})()}),U7.selectAssetsViewUnsubscribe=TQ.subscribe(e=>{if(!e||!Object.keys(e).length)return;let t=A(H7)?.selectAssetsView??{};(0,V7.default)(e,t)||H7.update(t=>({...t,selectAssetsView:e}))})},HZ.subscribe(e=>{e&&!A(H7)&&Zke(e)})})))()}function Qke(e,t){O(t,!0),G(e,nAe);let n=()=>j(H7,`$entryEditorSettings`,a),r=()=>j(t.thisPane,`$thisPane`,a),i=()=>j(a3,`$entryDraft`,a),[a,o]=fn(),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)&&!!i()?.currentValues[z(d)]),m=M(()=>({values:{locale:z(d)?FI(z(d))??z(d):``}})),h=M(()=>z(f)===`preview`?qke:jke),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).findLast(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 nd(250),s(e?.contentDocument?.firstElementChild)):s(z(g)),s()&&(s(s().scrollTop=0,!0),s().addEventListener(`wheel`,_,v),s().addEventListener(`touchmove`,_,v))};Zr(()=>{r()?.mode,z(g),y()});var b=tAe(),x=F(b),S=e=>{var t=$ke();wo(F(t),()=>z(h),(e,t)=>{t(e,{get locale(){return z(d)}})}),D(t),Bs(t,e=>P(g,e),()=>z(g)),H(e,t)},C=e=>{Ak(e,{children:(e,t)=>{var n=eAe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(z(p)?`reenable_x_locale`:`enable_x_locale`,z(m)));Bd(a,{variant:`tertiary`,get label(){return z(e)},onclick:()=>{z(d)&&n7(z(d))}})}R(e=>U(i,e),[()=>X(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)}),D(b),R(()=>K(b,`id`,t.id)),H(e,b),k(),o()}var $ke,eAe,tAe,nAe;function rAe(){return(rAe=s((()=>{Y(),J(),Z(),Kd(),Nk(),rd(),Nke(),Xke(),l3(),r7(),W7(),zI(),$ke=B(`<div role="none" class="content svelte-1vy4qxn"><!></div>`),eAe=B(`<span role="alert"> </span> <!>`,1),tAe=B(`<div role="none" class="wrapper svelte-1vy4qxn"><!></div>`),nAe={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 iAe(e,t){O(t,!0),G(e,cAe);let n=()=>j(a3,`$entryDraft`,o),r=()=>j(c(),`$thatPane`,o),i=()=>j(t.thisPane,`$thisPane`,o),a=()=>j(H7,`$entryEditorSettings`,o),[o,s]=fn(),c=q(t,`thatPane`,19,()=>sn(null)),l=M(()=>n()?.collection),u=M(()=>n()?.collectionFile),d=M(()=>(z(u)??z(l))?._i18n??qI),f=M(()=>z(d).allLocales),p=M(()=>eG.isSmallScreen||eG.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(()=>eG.isSmallScreen||eG.isMediumScreen||z(f).length>=5),_=M(()=>z(g)?Hm:Df),v=M(()=>z(g)?sm:Mf),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=sAe(),C=F(S);{let e=M(()=>z(m)&&z(g)?`error`:void 0),o=M(()=>X(`switch_locale`)),s=M(()=>t.id.replace(`-header`,`-body`));wo(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=oAe(),l=F(s);lo(l,16,()=>z(p),e=>e,(e,a)=>{let o=M(()=>FI(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=>{sc(e,{name:`edit_off`})},i=e=>{sc(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)?X(`locale_content_disabled_short`):z(l)?X(`locale_content_error_short`):``),f=M(()=>i()?.mode===`edit`&&i().locale===a),p=M(()=>z(l)?`error`:``);wo(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:()=>{dn(t.thisPane,{mode:`edit`,locale:a}),r()?.mode===`preview`&&dn(c(),{mode:`preview`,locale:a})},startIcon:e,$$slots:{startIcon:!0}})})}H(e,u)});var u=L(l,2),d=e=>{var n=aAe(),a=I(n),o=e=>{Wf(e,{})};W(a,e=>{z(g)&&e(o)});var s=L(a,2);{let e=M(()=>X(`preview`)),n=M(()=>i()?.mode===`preview`);wo(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:()=>{dn(t.thisPane,{mode:`preview`,locale:r()?.locale??``})}})})}H(e,n)};W(u,e=>{r()?.mode===`edit`&&z(h)&&a()?.showPreview&&e(d)}),D(s),H(e,s)},$$slots:{default:!0}})})}D(S),H(e,S),k(),s()}var aAe,oAe,sAe,cAe;function lAe(){return(lAe=s((()=>{Y(),J(),Z(),Jf(),dc(),fm(),Um(),Pf(),jf(),aM(),l3(),W7(),zI(),YI(),nG(),aAe=B(`<!> <!>`,1),oAe=B(`<div role="none" class="inner svelte-1ibgz0y"><!> <!></div>`),sAe=B(`<div role="none" class="wrapper svelte-1ibgz0y"><!></div>`),cAe={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 uAe(e,t){O(t,!0);let n=()=>j(t.thisPane,`$thisPane`,r),[r,i]=fn();{let r=e=>{sc(e,{name:`visibility`})},i=M(()=>X(`preview`)),a=M(()=>n()?.mode===`preview`);Bd(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get pressed(){return z(a)},onclick:()=>{dn(t.thisPane,{mode:n()?.mode===`preview`?`edit`:`preview`,locale:n()?.locale??``})},startIcon:r,$$slots:{startIcon:!0}})}k(),i()}function dAe(){return(dAe=s((()=>{Y(),J(),Z(),Kd(),dc()})))()}function fAe(e,t){O(t,!0),G(e,_Ae);let n=()=>j(a3,`$entryDraft`,a),r=()=>j(t.thisPane,`$thisPane`,a),i=()=>j(HZ,`$backend`,a),[a,o]=fn(),s=q(t,`thatPane`,19,()=>sn(null)),c=M(()=>n()?.collection),l=M(()=>n()?.collectionFile),u=M(()=>n()?.originalEntry),d=M(()=>n()?.originalValues??{}),f=M(()=>(z(l)??z(c))?._i18n??qI),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,pAe.default)(z(d)[r().locale],Nge(d8(n(),r().locale)))),S=M(()=>n()?.canPreview??!0),C=M(()=>z(c)&&z(u)&&r()?.locale?PV(z(u),r().locale,z(c),z(l)):void 0);var w=gAe(),T=F(w);{let e=M(()=>X(`secondary`));EO(T,{variant:`secondary`,get"aria-label"(){return z(e)},children:(e,a)=>{var o=K7(),c=I(o),l=e=>{var n=G7(),r=I(n);iAe(r,{get id(){return t.id},get thisPane(){return t.thisPane},get thatPane(){return s()}});var i=L(r,2),a=e=>{uAe(e,{get thisPane(){return t.thisPane}})};W(i,e=>{(eG.isSmallScreen||eG.isMediumScreen)&&z(S)&&e(a)}),H(e,n)},d=e=>{var t=mAe(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>r()?.mode===`preview`?X(`preview`):X(`edit`)]),H(e,t)},f=e=>{uAe(e,{get thisPane(){return t.thisPane}})};W(c,e=>{z(p)&&z(h).length>1?e(l):eG.isSmallScreen||eG.isMediumScreen?z(S)&&e(f,2):e(d,1)});var w=L(c,2);Yf(w,{flex:!0});var T=L(w,2),ee=e=>{let t=M(()=>FI(r().locale)??r().locale);var a=G7(),o=I(a),s=e=>{cSe(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(()=>X(`content_options_x_locale`,{values:{locale:z(t)}}));pm(e,{get"aria-label"(){return z(a)},children:(e,a)=>{var o=hAe(),s=I(o),c=e=>{p8(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(()=>X(`revert_changes`)),t=M(()=>!z(x));vm(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{N7({locale:r()?.locale})}})}var d=L(l,2),f=e=>{var i=G7(),a=I(i);Wf(a,{});var o=L(a,2);{let e=M(()=>X(z(_)?`disable_x_locale`:n()?.currentValues[r().locale]?`reenable_x_locale`:`enable_x_locale`,{values:{locale:z(t)}})),i=M(()=>r().locale===z(g)||z(_)&&z(v));vm(o,{get label(){return z(e)},get disabled(){return z(i)},onclick:()=>{n7(r()?.locale??``)}})}H(e,i)};W(d,e=>{!z(m)&&r()?.locale&&e(f)});var p=L(d,2),h=e=>{var t=K7(),n=I(t);Wf(n,{});var a=L(n,2),o=e=>{{let t=M(()=>X(`view_on_live_site`));vm(e,{get label(){return z(t)},onclick:()=>{DQ(z(C))}})}};W(a,e=>{z(C)&&e(o)});var s=L(a,2),c=e=>{{let t=M(()=>!i()?.repository?.blobBaseURL),n=M(()=>X(`view_on_x`,{values:{service:i()?.repository?.label},default:X(`view_in_repository`)}));vm(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{z(u)&&r()&&DQ(FV(z(u),r().locale))}})}};W(s,e=>{NK.devModeEnabled&&e(c)}),H(e,t)};W(p,e=>{z(u)&&(z(C)||NK.devModeEnabled)&&e(h)}),H(e,o)},$$slots:{default:!0}})}},a=M(()=>X(`show_content_options_x_locale`,{values:{locale:z(t)}}));Ff(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(ee)}),H(e,o)},$$slots:{default:!0}})}D(w),R(()=>K(w,`id`,t.id)),H(e,w),k(),o()}var pAe,G7,mAe,K7,hAe,gAe,_Ae;function vAe(){return(vAe=s((()=>{Y(),J(),Z(),Jf(),_m(),Rf(),wm(),$f(),AO(),pAe=u(kK()),aM(),m8(),g8(),lAe(),dAe(),WZ(),l3(),r7(),P7(),f8(),IV(),zI(),YI(),nG(),FK(),OQ(),G7=B(`<!> <!>`,1),mAe=B(`<h3 role="none"> </h3>`),K7=B(`<!> <!> <!>`,1),hAe=B(`<!> <!> <!> <!>`,1),gAe=B(`<div role="none" class="header svelte-uj56is"><!></div>`),_Ae={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 q7(e,t){let n=Ma();G(e,bAe);let r=q(t,`children`,3,void 0);var i=yAe(),a=F(i),o=F(a),s=F(o,!0);D(o),D(a);var c=L(a,2);So(F(c),()=>r()??E),D(c),D(i),R(()=>{K(i,`aria-labelledby`,`panel-${n}-label`),K(o,`id`,`panel-${n}-label`),U(s,t.title)}),H(e,i)}var yAe,bAe;function J7(){return(J7=s((()=>{Y(),J(),yAe=B(`<section role="group" class="panel svelte-1bq1or9"><header class="svelte-1bq1or9"><h3 class="svelte-1bq1or9"> </h3></header> <div class="svelte-1bq1or9"><!></div></section>`),bAe={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;}}`}})))()}var Y7,xAe,SAe,CAe;function wAe(){return(wAe=s((()=>{FD(),aM(),qK(),gL(),sL(),qV(),RU(),kH(),Y7=(e,t,n)=>{if(n)return Object.entries(e).filter(([e])=>RegExp(`^${kD(t)}\\.\\d+$`).test(e)).map(([,e])=>e);let r=e[t];return r==null?[]:[r]},xAe=(e,t,n)=>{let{collection:r,file:i}=e;if(!iL(r))return new Set;let a=i?A(dL).filter(e=>Object.values(e.locales).some(({path:e})=>e.includes(i))):UV(r),o=DH({locale:n,fieldConfig:e,refEntries:a}),s=e.value_field;if(!s||s===`{{slug}}`||s===`slug`)return new Set([t.slug]);let c=t.locales[n]?.content??Object.values(t.locales)[0]?.content??{};if(!s.includes(`{{`)&&!s.includes(`*`)){let e=c[s];return e==null?new Set:new Set([e])}let l=t.slug,u=new Set(o.filter(e=>String(e.value).includes(l)).map(e=>e.value));if(u.size===0){let e=c[s.replace(/^{{|}}$/g,``)];e!=null&&u.add(e)}return u},SAe=(e,t,n,r,i)=>i?Object.keys(e).filter(e=>i.test(e)).some(t=>Y7(e,t,n).some(e=>r.has(e))):Y7(e,t,n).some(e=>r.has(e)),CAe=({collectionName:e,fileName:t,entry:n})=>{let r=iL(e);if(!r)return[];let{_i18n:{defaultLocale:i}}=r,a=[...GK.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,xAe(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=iL(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(`^${kD(f).replace(/\\\*/g,`\\d+`)}$`):void 0;return(a===e?UV(a).filter(e=>e.slug!==n.slug):UV(a)).map(e=>{let n=e.locales[c]?.content??Object.values(e.locales)[0]?.content;if(!(!n||!SAe(n,f,!!t.multiple,l,p)))return{collectionName:a,collectionLabel:s.label??a,fieldLabel:t.label??d,entry:e,summary:LU(s,e)}}).filter(e=>!!e)})}})))()}function TAe(e,t){O(t,!0),G(e,kAe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),a=M(()=>{let e=n();return e?.originalEntry?CAe({collectionName:e.collectionName,fileName:e.fileName,entry:e.originalEntry}):[]}),o=M(()=>{let e=[];return z(a).forEach(t=>{let n=e.find(e=>e.collectionLabel===t.collectionLabel);n?n.items.push(t):e.push({collectionLabel:t.collectionLabel,items:[t]})}),e});{let t=M(()=>X(`entry_sidebar.backlinks.title`));q7(e,{get title(){return z(t)},children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=V();lo(I(t),17,()=>z(o),({collectionLabel:e,items:t})=>e,(e,t)=>{let n=()=>z(t).collectionLabel,r=()=>z(t).items;var i=DAe(),a=F(i),o=F(a,!0);D(a),lo(L(a,2),17,r,e=>e.entry.id,(e,t)=>{Bd(e,{class:`ref`,variant:`ghost`,onclick:()=>{IQ(`/collections/${z(t).collectionName}/entries/${z(t).entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var r=EAe(),i=F(r,!0);D(r),R(()=>U(i,z(t).summary)),H(e,r)},$$slots:{default:!0}})}),D(i),R(()=>U(o,n())),H(e,i)}),H(e,t)},s=e=>{var t=OAe(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`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}})}k(),i()}var EAe,DAe,OAe,kAe;function AAe(){return(AAe=s((()=>{Y(),J(),Z(),Kd(),J7(),zQ(),l3(),wAe(),EAe=B(`<span class="summary"> </span>`),DAe=B(`<section class="collection svelte-1lhuwki" role="group"><h4> </h4> <!></section>`),OAe=B(`<div class="empty"> </div>`),kAe={hash:`svelte-1lhuwki`,code:`.collection.svelte-1lhuwki {padding:4px;&:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}}`}})))()}var X7,jAe,MAe;function Z7(){return(Z7=s((()=>{aM(),WZ(),X7=new Map,jAe=async e=>{let{id:t,locales:n}=e,r=X7.get(t);if(r)return r;let i=A(HZ);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 X7.set(t,e),e}catch{let e={commits:[],loading:!1,error:!0};return X7.set(t,e),e}},MAe=e=>{X7.delete(e)}})))()}function NAe(e,t){O(t,!0),G(e,RAe);let n=()=>j(a3,`$entryDraft`,i),r=()=>j(HZ,`$backend`,i),[i,a]=fn(),o=N(Dr([])),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 jAe(e)),P(s,!1))};rc(()=>{l()});{let t=M(()=>X(`entry_sidebar.history.title`));q7(e,{get title(){return z(t)},children:(e,t)=>{var n=V(),i=I(n),a=e=>{var t=Q7(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`loading`)]),H(e,t)},l=e=>{var t=Q7(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`entry_sidebar.history.fetch_failed`)]),H(e,t)},u=e=>{var t=LAe();lo(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));Bd(e,{class:`ref`,variant:`ghost`,role:`link`,get disabled(){return z(r)},onclick:()=>{z(n)&&DQ(z(n))},children:(e,n)=>{var r=IAe(),i=I(r),a=e=>{var n=PAe();R(()=>K(n,`src`,z(t).authorAvatarURL)),H(e,n)},o=e=>{H(e,FAe())};W(i,e=>{z(t).authorAvatarURL?e(a):e(o,-1)});var s=L(i,2),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u,!0);D(u),D(s),R(e=>{U(l,z(t).authorName),U(d,e)},[()=>SL(z(t).date,Bu.current)]),H(e,r)},$$slots:{default:!0}})}}),D(t),H(e,t)},d=e=>{var t=Q7(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`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}})}k(),a()}var Q7,PAe,FAe,IAe,LAe,RAe;function zAe(){return(zAe=s((()=>{Y(),J(),Z(),Kd(),oc(),J7(),WZ(),l3(),Z7(),CL(),OQ(),Q7=B(`<div class="empty"> </div>`),PAe=B(`<img class="avatar svelte-14rpg2i" alt="" width="24" height="24" loading="lazy"/>`),FAe=B(`<span class="avatar placeholder svelte-14rpg2i" aria-hidden="true"></span>`),IAe=B(`<!> <span class="details svelte-14rpg2i"><span class="author svelte-14rpg2i"> </span> <span class="date svelte-14rpg2i"> </span></span>`,1),LAe=B(`<div role="list" class="commits svelte-14rpg2i"></div>`),RAe={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 BAe(e,t){O(t,!0),G(e,KAe);let n=()=>j(a3,`$entryDraft`,r),[r,i]=fn(),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(()=>X(`entry_sidebar.validation.title`));q7(e,{get title(){return z(t)},children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=V();lo(I(t),17,()=>Object.entries(z(o)),([e,t])=>e,(e,t)=>{var n=M(()=>w(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1],a=M(()=>z(l)?.[r()]),o=M(()=>FI(r()));var s=WAe(),c=F(s),u=e=>{var t=VAe(),n=F(t,!0);D(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();lo(I(t),16,()=>Object.keys(z(a)),e=>e,(e,t)=>{let n=M(()=>mU({...z(p),valueMap:z(a),keyPath:t})),o=M(()=>i()[t]??[]);var s=V(),c=I(s),l=e=>{Bd(e,{class:`ref`,variant:`ghost`,onclick:()=>{J5({locale:r(),keyPath:t})},children:(e,t)=>{var r=HAe(),i=I(r),a=F(i,!0);D(i),lo(L(i,2),17,()=>z(o),oo,(e,t)=>{_8(e,{live:`off`,children:(e,n)=>{mt();var r=ja();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=UAe(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`entry_sidebar.validation.no_errors_found`)]),H(e,t)};W(f,e=>{z(h)?e(m):e(g,-1)}),D(s),H(e,s)}),H(e,t)},a=e=>{var t=GAe(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`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}})}k(),i()}var VAe,HAe,UAe,WAe,GAe,KAe;function qAe(){return(qAe=s((()=>{Y(),J(),Z(),Kd(),v8(),J7(),l3(),Y5(),EU(),zI(),VAe=B(`<h4 class="svelte-mwf2jd"> </h4>`),HAe=B(`<span class="summary svelte-mwf2jd"> </span> <!>`,1),UAe=B(`<div class="empty svelte-mwf2jd"> </div>`),WAe=B(`<section class="locale svelte-mwf2jd" role="group"><!> <!></section>`),GAe=B(`<div class="empty"> </div>`),KAe={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 JAe(e,t){O(t,!0),G(e,ZAe);let n=()=>j(a3,`$entryDraft`,a),r=()=>j(HZ,`$backend`,a),i=()=>j(H7,`$entryEditorSettings`,a),[a,o]=fn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...GK.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),c=M(()=>[{key:`validation`,label:X(`entry_sidebar.validation.title`),icon:`check_circle`,disabled:!1,panel:BAe},{key:`history`,label:X(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:NAe},{key:`backlinks`,label:X(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:TAe}]),l=N(Dr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);Zr(()=>{H7.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=XAe(),f=F(d);{let e=M(()=>X(`entry_sidebar.sidebar_panels`));Df(f,{class:`tabs`,get"aria-label"(){return z(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=V();lo(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());Mf(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)=>{sc(e,{get name(){return i()}})},$$slots:{default:!0}})}}),H(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=YAe();wo(F(t),()=>z(u).panel,(e,t)=>{t(e,{})}),D(t),H(e,t)};W(p,e=>{z(u)&&e(m)}),D(d),H(e,d),k(),o()}var YAe,XAe,ZAe;function QAe(){return(QAe=s((()=>{Y(),J(),Z(),dc(),Pf(),jf(),AAe(),zAe(),qAe(),WZ(),qK(),l3(),W7(),YAe=B(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),XAe=B(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),ZAe={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 $Ae(e,t){let n=Ma();O(t,!0),G(e,ije);let r=()=>j(a3,`$entryDraft`,i),[i,a]=fn(),o=q(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Dr([])),u=Dr({}),d=Dr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,UV(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`;Zr(()=>{o()&&f()});{let t=M(()=>X(`edit_slug`)),i=M(()=>X(`update`)),a=M(()=>(0,eje.default)(z(c),u)||Object.values(d).some(e=>e!==!1));dp(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{mn(a3,Ri(r).currentSlugs=Object.fromEntries(Object.entries(u).map(([e,t])=>[e,IF(t,{locale:e})])),Ri(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=rje(),i=I(r);io(i,()=>({"--font-size":`var(--sui-font-size-small)`})),fc(i.lastChild,{status:`warning`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`edit_slug_warning`)]),H(e,n)},$$slots:{default:!0}}),D(i);var a=L(i,2);lo(a,20,()=>Object.keys(u),e=>e,(e,t)=>{var r=nje(),i=F(r),a=e=>{var n=tje(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>U(i,e),[()=>FI(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);Ep(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=ja();R(e=>U(n,e),[()=>X(`edit_slug_error.${d[t]}`)]),H(e,n)};W(f,e=>{d[t]&&e(m)}),D(l),D(s),D(r),R(()=>K(l,`id`,`${n}-${t??``}-error`)),H(e,r)}),D(a),H(e,r)},$$slots:{default:!0}})}k(),a()}var eje,tje,nje,rje,ije;function aje(){return(aje=s((()=>{Y(),J(),Z(),gc(),yp(),jp(),eje=u(kK()),LF(),qV(),l3(),zI(),tje=B(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),nje=B(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!></p></div></section>`),rje=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),ije={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);}}}`}})))()}var oje,$7;function e9(){return(e9=s((()=>{YO(),sM(),aM(),Tq(),WZ(),l1(),gL(),sL(),a1(),n3(),_3(),oje=({ids:e,assetPaths:t})=>{let n=A(dL),r=new Set(e);if(dL.set(n.filter(e=>!r.has(e.id))),i1.set({...r1,deleted:!0,count:e.length}),t.length){let e=new Set(t);iq.update(t=>t.filter(t=>!e.has(t.path)))}},$7=async(e,t=[])=>{let n=A(HZ)?.repository?.databaseName,r=n?new oM(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=JO(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await h3({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)),c=A(XI),{changes:l,savingEntries:u}=await Mge(c,{excludeIds:new Set(e.map(({id:e})=>e)),cacheDB:r});i.push(...l),await c1({changes:i,savingEntries:u,options:{commitType:`delete`,collection:A(XI)}}),oje({ids:o,assetPaths:s})}})))()}var sje,t9,n9;function r9(){return(r9=s((()=>{aM(),qK(),DI(),l3(),D6(),y6(),z5(),j8(),sje=`{{fields._slug | localize}}`,t9=({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(sje),l=s.includes(`{{fields._slug}}`)||c;return Object.fromEntries(i.map(e=>!l||n._||n[e]?[e,!1]:[e,e===a||c||`readonly`]))},n9=({collection:e,collectionFile:t,originalEntry:n={},dynamicValues:r,extraValues:i,expanderStates:a,isIndexFile:o=EI(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?TI(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??A(VK)?.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,R5({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));HSe(),a3.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,v6({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:t9({collection:e,collectionFile:t,originalSlugs:w})}),Jye({collectionName:s,fileName:c,slug:u})}})))()}var cje;function lje(){return(lje=s((()=>{aM(),n3(),l3(),r9(),EQ(),EU(),P5(),D7(),cje=()=>{let e=A(a3),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n,u=$4(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=mU({...i,keyPath:t});if(n?.widget===`uuid`&&(e===c||[!0,`translate`].includes(n?.i18n??!1))&&(r[t]=E7(n)),n?.widget===`hidden`){if(Array.isArray(n.default)&&cU.test(t)&&(delete r[t],t=t.replace(cU,``),t in r))return;(e===c||[!0,`translate`].includes(n?.i18n??!1))&&Object.assign(r,N5({fieldConfig:n,keyPath:t,locale:e,defaultLocale:c}))}})}),Object.keys(o).forEach(e=>{o[e]={}}),a3.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:t9({collection:r,collectionFile:i,originalSlugs:{}})}),yQ.set(!0)}})))()}var uje;function dje(){return(dje=s((()=>{aM(),l3(),uje=()=>{let{currentLocales:e,currentSlugs:t,slugEditor:n}=A(a3),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}}})))()}var fje;function pje(){return(pje=s((()=>{l3(),g7(),dje(),fje=()=>{let{valid:e,validities:t,validationMessages:n}=h7(`currentValues`),{valid:r,validities:i,validationMessages:a}=h7(`extraValues`),{valid:o,validities:s}=uje();return a3.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}})))()}var mje,hje,gje;function _je(){return(_je=s((()=>{aM(),z4(),WZ(),E1(),l1(),a1(),qV(),n3(),l3(),D6(),_3(),G4(),pje(),j8(),Y5(),Z7(),mje=({skipCI:e})=>{let t=A(w1)&&!(e??A(T1));i1.set({...r1,saved:!0,published:t,count:1}),UZ.set(t)},hje=e=>{let{collection:t,collectionFile:n,currentValues:r}=e,i=$4(t);if(!i)return;let{defaultLocale:a}=(n??t)._i18n,o=UV(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})},gje=async({skipCI:e=void 0}={})=>{let t=A(a3),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(await GSe(),!fje())throw uEe({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);n&&r._type===`entry`&&hje(t);let c=W4({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await g3({draft:t,slugs:c}),p;try{p=await c1({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 R4({type:`postSave`,draft:t,savingEntry:u}),mje({skipCI:e}),T6(i,n?``:l),s&&MAe(s.id),p.savedEntries[0]}})))()}function vje(e,t){O(t,!0),G(e,Eje);let n=()=>j(a3,`$entryDraft`,u),r=()=>j(c3,`$entryDraftModified`,u),i=()=>j(Y3,`$collectionState`,u),a=()=>j(bQ,`$activeInlineEditors`,u),o=()=>j(H7,`$entryEditorSettings`,u),s=()=>j(w1,`$skipCIConfigured`,u),c=()=>j(T1,`$skipCIEnabled`,u),l=()=>j(SQ,`$copyFromLocaleToast`,u),[u,d]=fn(),f=e=>{let t=M(()=>eG.isSmallScreen?vm:Bd),n=M(()=>!z(C)&&z(T)?.duplicate!==!1&&!i().creationDisabled&&!z(T)?.path),r=M(()=>z(T)?.delete!==!1);var a=yje(),o=I(a),s=e=>{var n=V(),r=I(n);{let e=M(()=>X(`duplicate`)),n=M(()=>X(`duplicate_entry`));wo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{IQ(`/collections/${z(ie)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),cje()}})})}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(()=>X(`delete`)),n=M(()=>X(`delete_entries`,{values:{count:1}}));wo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{P(g,!0)}})})}H(e,n)};W(c,e=>{z(r)&&e(l)}),H(e,a)},p=q(t,`disabled`,3,!1),m=N(!1),h=N(!1),g=N(!1),_=N(!1),v=N(``),y=N(!1),b=N(void 0),x=M(()=>n()===void 0),S=M(()=>n()?.isNew??!0),C=M(()=>n()?.isIndexFile??!1),w=M(()=>n()?.collection),T=M(()=>z(w)?._type===`entry`?z(w):void 0),ee=M(()=>n()?.collectionFile),te=M(()=>n()?.originalEntry),ne=M(()=>(z(ee)??z(w))?._i18n??qI),re=M(()=>z(ne).defaultLocale),ie=M(()=>z(w)?.name),ae=M(()=>z(ee)?.name),oe=M(()=>Bu.current&&z(w)?aL(z(w)):``),se=M(()=>Bu.current&&z(w)?aL(z(w),{useSingular:!0}):``),ce=M(()=>n()?.canPreview??!0),le=M(()=>z(S)||r()),E=M(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),ue=M(()=>z(ie)&&z(te)&&TM({collectionName:z(ie),fileName:z(ae)})?.entryRelative?F4({entry:z(te),collectionName:z(ie),fileName:z(ae),relative:!0}):[]),de=M(()=>z(w)&&z(te)?PV(z(te),z(re),z(w),z(ee)):void 0),fe=()=>{LQ(z(ie)===`_singletons`?`/collections`:`/collections/${z(ie)}`)},pe=async({skipCI:e=void 0}={})=>{if(P(y,!0),z(w))try{let t=await gje({skipCI:e});NK.closeOnSave??!0?(fe(),dn(a3,null)):(z(S)&&IQ(`/collections/${z(ie)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),n9({collection:z(w),collectionFile:z(ee),originalEntry:t,extraValues:n()?.extraValues,expanderStates:n()?.expanderStates}))}catch(e){e.message===`validation_failed`?P(m,!0):e.message===`saving_failed`?(P(_,!0),P(v,e.cause?.message??e.message??X(`unexpected_error`),!0)):(P(_,!0),P(v,``),console.error(e))}finally{P(y,!1)}};var me=Tje(),he=I(me);{let e=M(()=>X(`primary`));EO(he,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var r=Sje(),i=I(r);{let e=M(()=>X(`cancel_editing`)),t=M(()=>NK.closeWithEscape&&!a());p1(i,{get"aria-label"(){return z(e)},get useShortcut(){return z(t)},onclick:()=>{fe()}})}var l=L(i,2),u=F(l),d=e=>{Qu(e,{children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`create_entry_title`,{values:{name:z(se)}})]),H(e,t)},a=e=>{let t=M(()=>z(ee)?iI(z(ee)):z(w)&&z(te)&&Bu.current?LU(z(w),z(te)):``);var n=V(),r=I(n),i=e=>{var n=ja();R(()=>U(n,z(t))),H(e,n)},a=e=>{var n=ja();R(e=>U(n,e),[()=>X(`edit_entry_title`,{values:{collection:z(oe),entry:z(t)}})]),H(e,n)};W(r,e=>{eG.isSmallScreen?e(i):e(a,-1)}),H(e,n)};W(r,e=>{z(S)?e(i):e(a,-1)}),H(e,n)},$$slots:{default:!0}})};W(u,e=>{z(x)||e(d)}),D(l);var m=L(l,2),g=e=>{{let t=M(()=>X(`view_on_live_site`));Bd(e,{variant:`tertiary`,get label(){return z(t)},onclick:()=>{DQ(z(de))}})}};W(m,e=>{!p()&&z(de)&&e(g)});var _=L(m,2),v=e=>{f(e)};W(_,e=>{!eG.isSmallScreen&&!p()&&!z(ee)&&!z(S)&&e(v)});var ne=L(_,2);{let e=e=>{{let t=M(()=>X(`editor_options`));pm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=xje(),i=I(r),a=e=>{f(e)};W(i,e=>{eG.isSmallScreen&&!p()&&!z(ee)&&!z(S)&&e(a)});var s=L(i,2);{let e=M(()=>X(`edit_slug`)),t=M(()=>!!z(ee)||z(S)||z(C)||z(T)?.delete===!1);vm(s,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{P(h,!0)}})}var c=L(s,2);{let e=M(()=>X(`revert_all_changes`)),t=M(()=>!z(le));vm(c,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{N7()}})}var l=L(c,2),u=e=>{var t=bje(),r=I(t);Wf(r,{});var i=L(r,2);{let e=M(()=>X(`show_preview`)),t=M(()=>o()?.showPreview),n=M(()=>!z(ce));Tm(i,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(n)},onChange:()=>{H7.update((e={})=>({...e,showPreview:!e.showPreview}))}})}var a=L(i,2);{let e=M(()=>X(`sync_scrolling`)),t=M(()=>o()?.syncScrolling),r=M(()=>!z(ce)&&Object.keys(n()?.currentValues??{}).length===1);Tm(a,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(r)},onChange:()=>{H7.update((e={})=>({...e,syncScrolling:!e.syncScrolling}))}})}H(e,t)};W(l,e=>{eG.isSmallScreen||eG.isMediumScreen||e(u)}),H(e,r)},$$slots:{default:!0}})}},t=M(()=>X(`show_editor_options`));Bs(Ff(ne,{get disabled(){return p()},variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(t)},popup:e,$$slots:{popup:!0}}),e=>P(b,e,!0),()=>z(b))}var re=L(ne,2),ie=e=>{{let t=e=>{pm(e,{children:(e,t)=>{{let t=M(()=>X(c()?`save_and_publish`:`save_without_publishing`));vm(e,{get label(){return z(t)},onclick:()=>{pe({skipCI:!c()})}})}},$$slots:{default:!0}})},n=M(()=>X(c()?z(y)?`saving`:`save`:z(y)?`publishing`:`publish`)),r=M(()=>p()||!z(le)||z(y));zf(e,{variant:`primary`,get label(){return z(n)},get disabled(){return z(r)},keyShortcuts:`Accel+S`,onclick:()=>{pe()},popup:t,$$slots:{popup:!0}})}},ae=e=>{{let t=M(()=>X(z(y)?`saving`:`save`)),n=M(()=>p()||!z(le)||z(y));Bd(e,{variant:`primary`,get label(){return z(t)},get disabled(){return z(n)},keyShortcuts:`Accel+S`,onclick:()=>{pe()}})}};W(re,e=>{s()?e(ie):e(ae,-1)}),H(e,r)},$$slots:{default:!0}})}var ge=L(he,2);ah(ge,{get show(){return z(m)},set show(e){P(m,e,!0)},children:(e,t)=>{fc(e,{status:`error`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`entry_validation_errors`,{values:{count:z(E)}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var _e=L(ge,2);ah(_e,{get id(){return l().id},get show(){return l().show},set show(e){mn(SQ,Ri(l).show=e,Ri(l))},children:(e,t)=>{let n=M(()=>{let{status:e,message:t,count:n,sourceLanguage:r}=l();return{status:e,message:t,count:n,sourceLanguage:r}});fc(e,{get status(){return z(n).status},children:(e,t)=>{mt();var r=ja();R(e=>U(r,e),[()=>X(`editor.${z(n).message}`,{values:{count:z(n).count,source:z(n).sourceLanguage?FI(z(n).sourceLanguage)??z(n).sourceLanguage:``}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var ve=L(_e,2);$Ae(ve,{get open(){return z(h)},set open(e){P(h,e,!0)}});var ye=L(ve,2);{let e=M(()=>X(`delete_entries`,{values:{count:1}})),t=M(()=>X(`delete`));Cp(ye,{get title(){return z(e)},get okLabel(){return z(t)},onOk:async()=>{z(te)&&await $7([z(te)],z(ue)),fe()},onClose:()=>{z(b)?.focus()},get open(){return z(g)},set open(e){P(g,e,!0)},children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(z(ue).length?`confirm_deleting_this_entry_with_assets`:`confirm_deleting_this_entry`)]),H(e,n)},$$slots:{default:!0}})}var be=L(ye,2);{let e=M(()=>X(`saving_entry.error.title`));bp(be,{get title(){return z(e)},onClose:()=>{z(b)?.focus()},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{mt();var n=wje(),r=I(n),i=L(r),a=e=>{var t=Cje(),n=F(t,!0);D(t),R(()=>U(n,z(v))),H(e,t)};W(i,e=>{z(v)&&e(a)}),R(e=>U(r,`${e??``} `),[()=>X(`saving_entry.error.description`)]),H(e,n)},$$slots:{default:!0}})}H(e,me),k(),d()}var yje,bje,xje,Sje,Cje,wje,Tje,Eje;function Dje(){return(Dje=s((()=>{Y(),J(),Z(),gc(),Sp(),Kd(),Tp(),Jf(),_m(),Rf(),wm(),Dm(),Uf(),lh(),AO(),td(),m1(),aje(),zQ(),kM(),E1(),sL(),e9(),cI(),$3(),l3(),r9(),lje(),_je(),P7(),EQ(),W7(),IV(),I4(),RU(),zI(),YI(),nG(),FK(),OQ(),yje=B(`<!> <!>`,1),bje=B(`<!> <!> <!>`,1),xje=B(`<!> <!> <!> <!>`,1),Sje=B(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),Cje=B(`<div role="none" class="error svelte-zjrq31"> </div>`),wje=B(` <!>`,1),Tje=B(`<!> <!> <!> <!> <!> <!>`,1),Eje={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 Oje(e,t){O(t,!0),G(e,Nje);let n=()=>j(a3,`$entryDraft`,u),r=()=>j(H7,`$entryEditorSettings`,u),i=()=>j(Y3,`$collectionState`,u),a=()=>j(CQ,`$editorFirstPane`,u),o=()=>j(wQ,`$editorSecondPane`,u),s=()=>j(s3,`$entryDraftInteracted`,u),c=()=>j(vQ,`$showContentOverlay`,u),l=()=>j(yQ,`$showDuplicateToast`,u),[u,d]=fn(),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=a9(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:FI(z(t).locale)??z(t).locale}}));Pk(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=i9(),r=I(n);fAe(r,{id:`first-pane-header`,get thisPane(){return CQ},get thatPane(){return wQ}}),Qke(L(r,2),{id:`first-pane-body`,get thisPane(){return CQ},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}})}D(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=a9(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:FI(z(t).locale)??z(t).locale}}));Pk(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=i9(),r=I(n);fAe(r,{id:`second-pane-header`,get thisPane(){return wQ},get thatPane(){return CQ}}),Qke(L(r,2),{id:`second-pane-body`,get thisPane(){return wQ},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}})}D(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),T=M(()=>n()===void 0),ee=M(()=>n()??{}),te=M(()=>C(z(ee).isNew,!0)),ne=M(()=>C(z(ee).canPreview,!0)),re=M(()=>z(ee).collection),ie=M(()=>z(ee).collectionName),ae=M(()=>z(ee).collectionFile),oe=M(()=>z(ee).fileName),se=M(()=>z(ee).isIndexFile),ce=M(()=>z(ee).currentValues),le=M(()=>r()??{}),E=M(()=>z(le).showPreview),ue=M(()=>(z(ae)??z(re))?._i18n??qI),de=M(()=>z(ue).i18nEnabled),fe=M(()=>z(ue).allLocales),pe=M(()=>z(ue).defaultLocale),me=M(()=>z(ae)?.name?[z(re)?.name,z(ae).name].join(`|`):z(re)?.name),he=M(()=>i().canCreate),ge=M(()=>i().quota),_e=M(()=>i().creationDisabled),ve=M(()=>!a()&&!o()?[0,0,0]:!a()||!o()?[a()?100:0,o()?100:0,0]:typeof a().width==`number`&&typeof o().width==`number`&&a().width>=30&&o().width>=30&&a().width+o().width===100?[a().width,o().width,30]:[50,50,30]),ye=M(()=>w(z(ve),3)),be=M(()=>z(ye)[0]),xe=M(()=>z(ye)[1]),Se=M(()=>z(ye)[2]),Ce=async()=>{let[e,t]=r()?.paneStates?.[z(me)??``]??[];return m()&&(e={mode:`edit`,locale:m()},t={mode:`preview`,locale:m()}),h||!e||!t||e.locale&&!z(fe).includes(e.locale)||t.locale&&!z(fe).includes(t.locale)||(!z(E)||!z(ne))&&(e.mode===`preview`||t.mode===`preview`)||z(fe).length===2&&e.locale!==z(pe)?!1:(h=!0,await Fi(),dn(CQ,e),dn(wQ,eG.isSmallScreen||eG.isMediumScreen?null:t),await Fi(),h=!1,!0)},we=async()=>{if(!(!n()||g)){if(g=!0,await Ce()){g=!1;return}if(dn(CQ,{mode:`edit`,locale:a()?.locale??z(pe)}),eG.isSmallScreen||eG.isMediumScreen)dn(wQ,null);else if(!z(E)||!z(ne)){let e=z(de)?z(fe).filter(e=>e!==a()?.locale):[];dn(wQ,e.length?{mode:`edit`,locale:e[0]}:null)}else dn(wQ,{mode:`preview`,locale:a().locale});g=!1}},Te=()=>{!z(re)||h||!a()||!o()||!z(me)||H7.update((e={})=>({...e,paneStates:{...e.paneStates,[z(me)]:[a(),o()]}}))},Ee=e=>{e.isTrusted&&!s()&&dn(s3,!0)},De=async()=>{await Fi(),z(b)&&(z(b).tabIndex=0,z(b).focus())},Oe=async e=>{let t=a(),n=o();t?.mode===`edit`&&t.locale===e||n?.mode===`edit`&&n.locale===e||(n?.mode===`preview`?dn(wQ,{mode:`edit`,locale:e}):t?.mode===`preview`?dn(CQ,{mode:`edit`,locale:e}):dn(n?wQ:CQ,{mode:`edit`,locale:e}),await nd(100))},ke=async({locale:e,keyPath:t})=>{await Oe(e);let n=z(ce)?.[e]??{},r=q5({collectionName:z(ie),fileName:z(oe),valueMap:n,keyPath:t,isIndexFile:z(se)});K5(Object.fromEntries(r.map(e=>[e,!0]))),window.requestAnimationFrame(()=>{let n=document.querySelector(`.content-editor .pane[data-mode="edit"][data-locale="${CSS.escape(e)}"] .field[data-key-path="${CSS.escape(t)}"]`);if(n){typeof n.scrollIntoViewIfNeeded==`function`?n.scrollIntoViewIfNeeded():n.scrollIntoView();let e=n.querySelector(`.field-wrapper`);(e?.querySelector(`[contenteditable="true"], [tabindex="0"]`)??e?.querySelector(`input, textarea, button`))?.focus()}})},Ae=async()=>{let{state:e}=window.history,{locale:t,keyPath:n}=e?.highlight??{};typeof t==`string`&&typeof n==`string`&&t&&n&&(await ke({locale:t,keyPath:n}),window.history.replaceState({...e,highlight:null},``))},je=e=>{e.source===window&&e.data?.type===`highlight-editor-field`&&e.data.payload&&ke(e.data.payload)};rc(()=>(c()||dn(a3,null),window.addEventListener(`message`,je),()=>{window.removeEventListener(`message`,je)})),Zr(()=>{z(me)&&(dn(CQ,null),dn(wQ,null))}),Zr(()=>{z(re),z(E),z(ne),eG.isSmallScreen,eG.isMediumScreen,Ri(()=>{we()})}),Zr(()=>{a(),o(),Te()}),Zr(()=>{z(b)&&(async()=>{c()?z(y)&&(P(y,!1),await we(),await De(),await Ae(),Xye()):await Yye()})()});var Me=Mje(),Ne=I(Me);to(F(Ne),()=>n()?.id,e=>{var t=i9(),r=I(t);{let e=M(()=>z(te)&&z(_e));vje(r,{get disabled(){return z(e)}})}var i=L(r,2),s=e=>{},c=e=>{Ak(e,{children:(e,t)=>{var n=kje(),r=I(n),i=F(r),a=e=>{var t=ja();R(e=>U(t,e),[()=>X(`entry_not_found`)]),H(e,t)},o=e=>{var t=ja();R(e=>U(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),H(e,t)},s=e=>{var t=ja();R(e=>U(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(ge)}})]),H(e,t)};W(i,e=>{z(T)?e(a):z(he)?e(s,-1):e(o,1)}),D(r);var c=L(r,2);Bd(F(c),{variant:`primary`,onclick:()=>{IQ(`/collection/${z(re)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`back_to_collection`)]),H(e,n)},$$slots:{default:!0}}),D(c),H(e,n)},$$slots:{default:!0}})},l=e=>{var t=jje();to(F(t),()=>`${z(ie)}|${z(oe)}|${z(se)}`,e=>{var t=Aje(),n=I(t),r=F(n),i=e=>{var t=V(),n=I(t),r=e=>{Nee(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=w(e,2);mn(CQ,Ri(a).width=t[0],Ri(a)),mn(wQ,Ri(o).width=t[1],Ri(o))})(e)},children:(e,t)=>{var n=o9(),r=I(n);Im(r,{get defaultSize(){return z(be)},get minSize(){return z(Se)},children:(e,t)=>{f(e)},$$slots:{default:!0}});var i=L(r,2);Oee(i,{children:(e,t)=>{{let t=M(()=>X(`swap_panes`));Bd(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=w(e,2);dn(CQ,t[0]),dn(wQ,t[1])})([o(),a()])},children:(e,t)=>{sc(e,{name:`swap_horiz`})},$$slots:{default:!0}})}},$$slots:{default:!0}}),Im(L(i,2),{get defaultSize(){return z(xe)},get minSize(){return z(Se)},children:(e,t)=>{p(e)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})};W(n,e=>{z(be)&&z(xe)&&e(r)}),H(e,t)},s=e=>{f(e)},c=e=>{p(e)},l=e=>{Yf(e,{flex:!0})};W(r,e=>{a()&&o()?e(i):a()?e(s,1):o()?e(c,2):e(l,-1)}),D(n);var u=L(n,2),d=e=>{JAe(e,{})};W(u,e=>{eG.isSmallScreen||e(d)}),H(e,t)}),D(t),va(`pointerdown`,t,Ee),va(`keydown`,t,Ee),H(e,t)};W(i,e=>{n()===null?e(s):z(T)||z(te)&&z(_e)?e(c,1):e(l,-1)}),H(e,t)}),D(Ne),Bs(Ne,e=>P(b,e),()=>z(b));var Pe=L(Ne,2);Qye(Pe,{}),ah(L(Pe,2),{get show(){return hn(),l()},set show(e){dn(yQ,e)},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`entry_duplicated`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(e=>K(Ne,`aria-label`,e),[()=>X(`content_editor`)]),H(e,Me),k(),d()}var i9,a9,kje,o9,Aje,jje,Mje,Nje;function Pje(){return(Pje=s((()=>{Y(),J(),Z(),gc(),Kd(),Nk(),Rk(),dc(),Pm(),Lm(),Fm(),$f(),lh(),rd(),oc(),ebe(),rAe(),vAe(),QAe(),Dje(),zQ(),$3(),l3(),D6(),EQ(),Y5(),W7(),zI(),YI(),nG(),i9=B(`<!> <!>`,1),a9=B(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),kje=B(`<div role="none"><!></div> <div role="none"><!></div>`,1),o9=B(`<!> <!> <!>`,1),Aje=B(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),jje=B(`<div role="none" class="body svelte-jrunrx"><!></div>`),Mje=B(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),Nje={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;}}}}`},ya([`pointerdown`,`keydown`])})))()}function Fje(e,t){O(t,!0),G(e,zje);let n=()=>j(HV,`$selectedEntryIdSet`,r),[r,i]=fn(),a=q(t,`showCheckbox`,3,!1),o=q(t,`onSelect`,3,void 0);var s=Rje(),c=I(s),l=e=>{Gp(e,{class:`checkbox`,children:(e,r)=>{{let r=M(()=>n().has(t.entry.id));ap(e,{role:`none`,tabindex:`-1`,get checked(){return z(r)},onChange:({detail:{checked:e}})=>{o()?.(e)}})}},$$slots:{default:!0}})};W(c,e=>{a()&&!(eG.isSmallScreen||eG.isMediumScreen)&&e(l)});var u=L(c,2),d=e=>{Gp(e,{class:`image`,children:(e,n)=>{var r=V();Ya(I(r),()=>P4(t.collection,t.entry),null,(e,n)=>{var r=V(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);y3(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)}),Gp(L(u,2),{class:`title`,children:(e,n)=>{var r=Lje();Qu(F(r),{lines:2,children:(e,n)=>{var r=Ije(),i=I(r);to(i,()=>Bu.current,e=>{var n=V();vo(I(n),()=>LU(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),H(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>TI(t.collection)?.icon);sc(e,{get name(){return z(n)},class:`home`})}},s=M(()=>EI(t.collection,t.entry));W(a,e=>{z(s)&&e(o)}),H(e,r)},$$slots:{default:!0}}),D(r),H(e,r)},$$slots:{default:!0}}),H(e,s),k(),i()}var Ije,Lje,Rje,zje;function s9(){return(s9=s((()=>{Y(),J(),Z(),up(),Kp(),dc(),td(),b3(),qV(),DI(),I4(),RU(),nG(),Ije=B(`<!> <!>`,1),Lje=B(`<div role="none" class="label svelte-b1f01"><!></div>`),Rje=B(`<!> <!> <!>`,1),zje={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 {.icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}}`}})))()}function Bje(e,t){O(t,!0);let n=()=>j(J3,`$listedEntries`,r),[r,i]=fn(),a=e=>{VV.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));qp(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{IQ(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{Fje(e,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType},showCheckbox:!0,onSelect:a})},$$slots:{default:!0}})}k(),i()}function Vje(){return(Vje=s((()=>{Y(),J(),Jp(),s9(),zQ(),qV(),$3()})))()}function Hje(e,t){O(t,!0);let n=()=>j(J3,`$listedEntries`,r),[r,i]=fn(),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(` `));qp(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=>{let t=!!d()?.(e.clientY,e.currentTarget.getBoundingClientRect());t&&e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=t?`move`:`none`)},ondrop:e=>{e.preventDefault(),f()?.()},ondragend:()=>{p()?.()},children:(e,n)=>{var r=c9(),i=I(r);Fje(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),Gp(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=c9(),r=I(n);{let e=e=>{sc(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>X(`move_up`));Bd(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=>{sc(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>X(`move_down`));Bd(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}})}k(),i()}var c9;function Uje(){return(Uje=s((()=>{Y(),J(),Z(),Kd(),Kp(),Jp(),dc(),s9(),$3(),c9=B(`<!> <!>`,1)})))()}function Wje(e,t){O(t,!0),G(e,Kje);let n=()=>j(Q3,`$entryGroups`,r),[r,i]=fn(),a=N(Dr({})),o=N(``),s=N(void 0),c=N(void 0),l=(e=z(a))=>{G3.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,K3.set(!0),l()};rc(()=>{let e=TI(t.collection)?.name,r=Object.fromEntries(n().map(({name:n,entries:r})=>[n,e3(e?r.filter(t=>t.slug!==e):r,t.collection)]));P(a,r,!0),l(r)});var d=Gje();lo(d,5,n,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var l=V();Ya(I(l),nd,null,e=>{{let n=M(()=>r()===`*`?void 0:r());Bp(e,{get label(){return z(n)},children:(e,n)=>{let l=M(()=>z(a)[r()]??i());var d=V();lo(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);Hje(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)=>r()===z(o)?(P(c,e<t.top+t.height/2?z(i):z(i)+1,!0),!0):(P(c,void 0),!1),onDrop:()=>{r()===z(o)&&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(o,``),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)}),D(d),H(e,d),k(),i()}var Gje,Kje;function qje(){return(qje=s((()=>{Y(),J(),Wp(),rd(),oc(),Uje(),DI(),n3(),$3(),Gje=B(`<div role="none" class="wrapper svelte-1txp9gj"></div>`),Kje={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;}
|
||
|
||
/* Draw the drop indicators with an inset shadow rather than a border: the list view zeroes
|
||
out the top border of the first row and the bottom border of the last row of a labelled
|
||
group with a more specific \`!important\` rule (see \`listing-grid.svelte\`), which would hide a
|
||
border indicator at the top and bottom edge of every group. A shadow also keeps the row
|
||
heights stable, so the list no longer shifts by 3px as the indicator moves. */.grid-row.drop-before .grid-cell {box-shadow:inset 0 3px 0 0 var(--sui-primary-accent-color);}.grid-row.drop-after .grid-cell {box-shadow:inset 0 -3px 0 0 var(--sui-primary-accent-color);}}`}})))()}function Jje(e,t){O(t,!0);let n=()=>j(dL,`$allEntries`,a),r=()=>j(XI,`$selectedCollection`,a),i=()=>j(Y3,`$collectionState`,a),[a,o]=fn(),s=q(t,`label`,3,void 0),c=q(t,`keyShortcuts`,3,void 0),l=M(()=>n()&&r()?KV(r()):!1),u=M(()=>Bu.current&&r()?TI(r())?.label:``),d=M(()=>z(l)?zf:Bd),f=(e=!1)=>{IQ(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var p=V(),m=I(p);{let e=e=>{sc(e,{name:`edit`})},t=e=>{var t=V(),n=I(t),r=e=>{pm(e,{children:(e,t)=>{var n=Yje(),r=I(n);{let e=M(()=>X(`entry`));vm(r,{get label(){return z(e)},onclick:()=>f()})}vm(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(()=>X(`create_new_entry`));wo(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),k(),o()}var Yje;function l9(){return(l9=s((()=>{Y(),J(),Z(),Kd(),dc(),_m(),wm(),Uf(),zQ(),gL(),sL(),qV(),DI(),$3(),Yje=B(`<!> <!>`,1)})))()}function Xje(e,t){O(t,!0);let n=()=>j(XI,`$selectedCollection`,s),r=()=>j(W3,`$reordering`,s),i=()=>j(U3,`$currentView`,s),a=()=>j(Q3,`$entryGroups`,s),o=()=>j(J3,`$listedEntries`,s),[s,c]=fn(),l=M(n),u=M(()=>r()?`list`:i().type),d=M(()=>a().flatMap(({entries:e})=>e));{let t=M(()=>X(`entry_list`));E3(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(()=>X(`entries`));O3(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=>{Wje(e,{get collection(){return z(l)},get viewType(){return z(u)}})},c=e=>{var n=V();lo(I(n),1,a,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var a=V();Ya(I(a),nd,null,e=>{{let n=M(()=>r()===`*`?void 0:r());Bp(e,{get label(){return z(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=V();Ya(I(n),nd,null,e=>{Bje(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));Rm(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=>{Ak(e,{children:(e,t)=>{var n=u9(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`no_entries_found`)]),H(e,n)},$$slots:{default:!0}})},c=e=>{Ak(e,{children:(e,t)=>{var n=Zje(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`create_new_entry`));Jje(a,{get collectionName(){return z(l).name},get label(){return z(e)}})}R(e=>U(i,e),[()=>X(`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=>{Ak(e,{children:(e,t)=>{var n=u9(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`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}})}k(),c()}var u9,Zje;function Qje(){return(Qje=s((()=>{Y(),J(),Z(),Nk(),Wp(),zm(),rd(),D3(),k3(),Vje(),qje(),l9(),sL(),$3(),u9=B(`<span role="none"> </span>`),Zje=B(`<span role="none"> </span> <!>`,1)})))()}function $je(e,t){O(t,!0),G(e,nMe);let n=()=>j(XI,`$selectedCollection`,r),[r,i]=fn(),a=M(()=>n()?.files.filter(tI)??[]);{let t=M(()=>X(`file_list`));E3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=V(),i=I(r),o=e=>{{let t=M(()=>X(`files`));O3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return z(a).length},children:(e,t)=>{Rm(e,{get items(){return z(a)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>(t?.()).name,i=()=>(t?.()).label,a=()=>(t?.()).icon;var o=V();Ya(I(o),nd,null,e=>{qp(e,{onclick:()=>{IQ(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{Gp(e,{class:`title`,children:(e,t)=>{var n=eMe(),o=F(n),s=e=>{sc(e,{get name(){return a()}})};W(o,e=>{a()&&e(s)}),Qu(L(o,2),{lines:2,children:(e,t)=>{mt();var n=ja();R(()=>U(n,i()||r())),H(e,n)},$$slots:{default:!0}}),D(n),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}),H(e,o)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},s=e=>{Ak(e,{children:(e,t)=>{var n=tMe(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>X(`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}})}k(),i()}var eMe,tMe,nMe;function rMe(){return(rMe=s((()=>{Y(),J(),Z(),Nk(),Kp(),Jp(),dc(),zm(),td(),rd(),D3(),k3(),zQ(),sL(),cI(),eMe=B(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),tMe=B(`<span role="none"> </span>`),nMe={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 iMe(e,t){O(t,!0),G(e,oMe);let[n,r]=fn(),i=M(()=>t.file.name),a=M(()=>t.file.label),o=M(()=>t.file.icon),s=N(!1),c=N(void 0);var l=aMe(),u=F(l);{let e=e=>{{let t=M(()=>z(o)||`edit_document`);sc(e,{get name(){return z(t)}})}},t=M(()=>z(a)||z(i));sm(u,{get label(){return z(t)},onSelect:()=>{dn(jQ,X(`singleton_selected_announcement`,{values:{file:z(a)||z(i)}}))},onclick:()=>{IQ(`/collections/_singletons/entries/${z(i)}`,{transitionType:`forwards`}),P(s,!1),z(c)?.querySelector(`[role="option"]`)?.classList.remove(`focused`)},get selected(){return z(s)},set selected(e){P(s,e,!0)},startIcon:e,$$slots:{startIcon:!0}})}D(l),Bs(l,e=>P(c,e),()=>z(c)),H(e,l),k(),r()}var aMe,oMe;function sMe(){return(sMe=s((()=>{Y(),J(),Z(),dc(),fm(),zQ(),aMe=B(`<div class="wrapper svelte-w0jevb"><!></div>`),oMe={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`}})))()}function cMe(e,t){O(t,!0);let n=()=>j(HZ,`$backend`,a),r=()=>j(UZ,`$isLastCommitPublished`,a),i=()=>j(w1,`$skipCIConfigured`,a),[a,o]=fn(),s=M(()=>NK.deployHookURL),c=M(()=>NK.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)&&!rG(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`);dn(UZ,!0)}catch(e){P(d,`error`),P(f,!0),console.error(e)}};var m=V(),h=I(m),g=e=>{var t=lMe(),n=I(t);{let e=M(()=>eG.isSmallScreen?`small`:`medium`),t=M(()=>X(`publish_changes`)),r=M(()=>!z(u));Bd(n,{variant:`secondary`,get size(){return z(e)},get label(){return z(t)},get disabled(){return z(r)},onclick:()=>p()})}ah(L(n,2),{get show(){return z(f)},set show(e){P(f,e,!0)},children:(e,t)=>{fc(e,{get status(){return z(d)},children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(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),k(),o()}var lMe;function d9(){return(d9=s((()=>{Y(),J(),Z(),gc(),Kd(),lh(),WZ(),E1(),nG(),FK(),aG(),lMe=B(`<!> <!>`,1)})))()}function uMe(e,t){O(t,!0);let n=()=>j(VK,`$cmsConfig`,a),r=()=>j(XI,`$selectedCollection`,a),i=()=>j(dL,`$allEntries`,a),[a,o]=fn(),s=q(t,`isSearchPage`,3,!1),c=M(()=>Intl.NumberFormat(Bu.current)),l=M(()=>n()?.collections?.filter(({hide:e})=>!e)??[]),u=M(()=>n()?.singletons??[]);var d=pMe(),f=F(d),p=e=>{var t=dMe(),n=I(t),r=F(n),i=F(r,!0);D(r),cMe(L(r,2),{}),D(n),N3(L(n,2),{onclick:e=>{e.preventDefault(),IQ(`/search`)}}),R(e=>U(i,e),[()=>X(`contents`)]),H(e,t)};W(f,e=>{eG.isSmallScreen&&e(p)});var m=L(f,2);{let e=M(()=>X(`collection_list`));Zp(m,{get"aria-label"(){return z(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=fMe(),a=I(n),o=e=>{{let t=M(()=>X(`collections`));nm(e,{get label(){return z(t)},children:(e,t)=>{var n=V();lo(I(n),19,()=>z(l),(e,t)=>e.name??t,(e,t)=>{var n=V();Ya(I(n),nd,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`);sc(e,{get name(){return z(t)}})}},o=e=>{var r=V();to(I(r),i,e=>{let r=M(()=>(`files`in z(t)?z(t).files:UV(z(n).name)).length);var i=f9(),a=F(i,!0);D(i),R((e,t)=>{K(i,`aria-label`,`(${e??``})`),U(a,t)},[()=>X(`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(()=>eG.isSmallScreen||s()?!1:r()?.name===z(n).name);sm(e,{get label(){return z(l)},get selected(){return z(u)},onSelect:()=>{IQ(`/collections/${z(n).name}`,{transitionType:`forwards`})},startIcon:a,endIcon:o,$$slots:{startIcon:!0,endIcon:!0}})}},l=e=>{Wf(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(()=>X(`files`));nm(e,{get label(){return z(t)},children:(e,t)=>{var n=V();lo(I(n),19,()=>z(u),(e,t)=>e.name??t,(e,t)=>{var n=V();Ya(I(n),nd,null,e=>{var n=V(),r=I(n),i=e=>{iMe(e,{get file(){return z(t)}})},a=e=>{Wf(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(()=>X(`collections`));nm(e,{get label(){return z(n)},children:(e,n)=>{{let n=e=>{sc(e,{name:`bookmark_manager`})},i=e=>{var n=f9(),r=F(n,!0);D(n),R((e,t)=>{K(n,`aria-label`,`(${e??``})`),U(r,t)},[()=>X(`x_entries`,{values:{count:z(t)}}),()=>z(c).format(z(t))]),H(e,n)},a=M(()=>X(`files`)),o=M(()=>r()?.name===`_singletons`);sm(e,{get label(){return z(a)},get selected(){return z(o)},onSelect:()=>{IQ(`/collections/_singletons`,{transitionType:`forwards`})},startIcon:n,endIcon:i,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};W(n,e=>{eG.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}})}D(d),H(e,d),k(),o()}var dMe,f9,fMe,pMe;function mMe(){return(mMe=s((()=>{Y(),J(),Z(),Jf(),dc(),tm(),fm(),om(),rd(),sMe(),d9(),P3(),zQ(),qK(),gL(),sL(),qV(),nG(),dMe=B(`<header><h2> </h2> <!></header> <!>`,1),f9=B(`<span class="count"> </span>`),fMe=B(`<!> <!>`,1),pMe=B(`<div role="none" class="primary-sidebar"><!> <!></div>`)})))()}function hMe(e,t){O(t,!0);let n=()=>j(K3,`$reorderDirty`,a),r=()=>j(XI,`$selectedCollection`,a),i=()=>j(G3,`$reorderedEntries`,a),[a,o]=fn(),s=N(!1),c=N(!1);var l=gMe(),u=I(l);{let e=M(()=>X(`done`)),t=M(()=>X(`done_reordering_entries`)),a=M(()=>z(s)||!n());Bd(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 Age(e,i()),dn(W3,!1)}catch(e){console.error(e),P(c,!0)}P(s,!1)}})}var d=L(u,2);{let e=M(()=>X(`cancel`)),t=M(()=>X(`cancel_reordering_entries`));Bd(d,{variant:`secondary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(s)},onclick:()=>{dn(W3,!1)}})}ah(L(d,2),{get show(){return z(c)},set show(e){P(c,e,!0)},children:(e,t)=>{fc(e,{status:`error`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`saving_reorder_failed`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,l),k(),o()}var gMe;function _Me(){return(_Me=s((()=>{Y(),J(),Z(),gc(),Kd(),lh(),sL(),n3(),$3(),gMe=B(`<!> <!> <!>`,1)})))()}function vMe(e,t){O(t,!0);let n=()=>j(XI,`$selectedCollection`,a),r=()=>j(VV,`$selectedEntries`,a),i=()=>j(J3,`$listedEntries`,a),[a,o]=fn(),s=q(t,`open`,15,!1),c=M(()=>{let e=n()?.name;return r().length&&e&&TM({collectionName:e})?.entryRelative?r().flatMap(t=>F4({entry:t,collectionName:e,relative:!0})):[]});{let t=M(()=>X(`delete_entries`,{values:{count:r().length}})),n=M(()=>X(`delete`));Cp(e,{get title(){return z(t)},get okLabel(){return z(n)},onOk:()=>{$7(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);mt();var a=ja();R(e=>U(a,e),[()=>X(z(c).length?z(n)?`confirm_deleting_all_entries_with_assets`:`confirm_deleting_selected_entries_with_assets`:z(n)?`confirm_deleting_all_entries`:`confirm_deleting_selected_entries`,{values:{count:r().length}})]),H(e,a)},$$slots:{default:!0}})}k(),o()}function yMe(){return(yMe=s((()=>{Y(),J(),Z(),Tp(),kM(),sL(),e9(),qV(),$3(),I4()})))()}function bMe(e,t){O(t,!0),G(e,TMe);let n=()=>j(XI,`$selectedCollection`,s),r=()=>j(Y3,`$collectionState`,s),i=()=>j(W3,`$reordering`,s),a=()=>j(VV,`$selectedEntries`,s),o=()=>j(J3,`$listedEntries`,s),[s,c]=fn(),l={ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]},u=N(!1),d=e=>oj(gj.parseInline(e),l),f=M(()=>n()?.name??``),p=M(()=>n()?.description),m=M(()=>Bu.current&&n()?aL(n()):z(f)),h=M(()=>r().isEntryCollection),g=M(()=>r().canCreate),_=M(()=>r().canDelete),v=M(()=>r().canReorder),y=M(()=>r().quota),b=M(()=>r().remaining),x=M(()=>r().nearingQuota),S=M(()=>r().creationDisabled);var C=p9(),w=I(C),T=e=>{var t=p9(),n=I(t);{let e=M(()=>X(`collection`));EO(n,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=CMe(),r=I(n),s=e=>{{let t=M(()=>X(`back_to_collection_list`));p1(e,{get"aria-label"(){return z(t)},onclick:()=>{LQ(`/collections`)}})}};W(r,e=>{eG.isSmallScreen&&e(s)});var c=L(r,2),l=F(c,!0);D(c);var g=L(c,2),y=e=>{Yf(e,{flex:!0})},b=e=>{var t=xMe();Qu(F(t),{children:(e,t)=>{var n=V();vo(I(n),()=>d(z(p)||``)),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)};W(g,e=>{eG.isSmallScreen?e(y):e(b,-1)});var x=L(g,2),C=e=>{hMe(e,{})},w=e=>{var t=SMe(),n=I(t),r=e=>{{let t=M(()=>X(`delete`)),n=M(()=>X(`delete_selected_entries`,{values:{count:a().length}})),r=M(()=>!a().length||!z(_));Bd(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{P(u,!0)}})}};W(n,e=>{eG.isSmallScreen||e(r)});var i=L(n,2),s=e=>{{let t=M(()=>X(`reorder`)),n=M(()=>X(`reorder_entries`)),r=M(()=>!o().length);Bd(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{dn(W3,!0)}})}};W(i,e=>{z(v)&&e(s)}),cf(L(i,2),{children:(e,t)=>{var n=V(),r=I(n),i=e=>{{let t=M(()=>eG.isSmallScreen?void 0:X(`create`));Jje(e,{get collectionName(){return z(f)},get label(){return z(t)},keyShortcuts:`Accel+E`})}};W(r,e=>{(!eG.isSmallScreen||o().length&&!z(S))&&e(i)}),H(e,n)},$$slots:{default:!0}}),H(e,t)};W(x,e=>{z(h)&&i()?e(C):z(h)&&e(w,1)}),R(()=>U(l,z(m))),H(e,n)},$$slots:{default:!0}})}var r=L(n,2),s=e=>{var t=wMe(),n=I(t);io(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),qd(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),H(e,t)},a=e=>{var t=ja();R(e=>U(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(y)}})]),H(e,t)},o=e=>{var t=ja();R(e=>U(t,e),[()=>X(`creating_entries_nearing_quota`,{values:{quota:z(y),remaining:z(b)}})]),H(e,t)};W(r,e=>{z(g)?z(S)?e(a,1):z(x)&&e(o,2):e(i)}),H(e,n)},$$slots:{default:!0}}),D(n),H(e,t)};W(r,e=>{z(h)&&(z(S)||z(x))&&e(s)}),H(e,t)};W(w,e=>{n()&&e(T)}),vMe(L(w,2),{get open(){return z(u)},set open(e){P(u,e,!0)}}),H(e,C),k(),c()}var xMe,SMe,CMe,wMe,p9,TMe;function EMe(){return(EMe=s((()=>{Y(),J(),Z(),Kd(),df(),Zd(),$f(),AO(),td(),sj(),rM(),m1(),_Me(),yMe(),l9(),zQ(),sL(),qV(),$3(),nG(),xMe=B(`<div role="none" class="description svelte-83jnuc"><!></div>`),SMe=B(`<!> <!> <!>`,1),CMe=B(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),wMe=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),p9=B(`<!> <!>`,1),TMe={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 DMe(e,t){O(t,!0);let n=()=>j(XI,`$selectedCollection`,a),r=()=>j(iq,`$allAssets`,a),i=()=>j(U3,`$currentView`,a),[a,o]=fn(),s=M(()=>TM({collectionName:n()?.name})),c=M(()=>z(s)?r().filter(e=>xq(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(()=>X(`collection_assets`));Pk(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{C3(e,{get disabled(){return z(p)},multiple:!0,onDrop:({files:e})=>{dn(fq,{folder:z(s),files:e})},children:(e,t)=>{qCe(e,{get assets(){return z(c)},onSelect:({asset:e})=>{IQ(`/assets/${e.path}`,{transitionType:`forwards`})}})},$$slots:{default:!0}})},$$slots:{default:!0}})}};W(h,e=>{z(u)!==void 0&&eG.isLargeScreen&&i().showMedia&&e(g)}),H(e,m),k(),o()}function OMe(){return(OMe=s((()=>{Y(),J(),Z(),Rk(),G8(),w3(),zQ(),Tq(),kM(),sL(),$3(),nG()})))()}function kMe(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=fn(),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(()=>X(`grouping_options`));pm(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=AMe(),a=I(i);{let e=M(()=>s()||X(`sort_keys.none`)),r=M(()=>!n().group);Om(a,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:null}))}})}lo(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));Om(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()||X(`group`));Ff(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var AMe;function jMe(){return(jMe=s((()=>{Y(),J(),Z(),_m(),Rf(),Am(),AMe=B(`<!> <!>`,1)})))()}function MMe(e,t){O(t,!0);let n=()=>j(XI,`$selectedCollection`,u),r=()=>j(J3,`$listedEntries`,u),i=()=>j(W3,`$reordering`,u),a=()=>j(Q3,`$entryGroups`,u),o=()=>j(xve,`$sortKeys`,u),s=()=>j(eve,`$viewFilters`,u),c=()=>j(ive,`$viewGroups`,u),l=()=>j(U3,`$currentView`,u),[u,d]=fn(),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(()=>X(`entry_list`));EO(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=PMe(),r=I(n),i=e=>{{let t=M(()=>a().flatMap(({entries:e})=>e));J_e(e,{get allItems(){return z(t)},get selectedItems(){return VV}})}};W(r,e=>{eG.isSmallScreen||eG.isMediumScreen||e(i)});var u=L(r,2);Yf(u,{flex:!0});var d=L(u,2);{let e=M(()=>!z(g)||!o().length);Sve(d,{get disabled(){return z(e)},get currentView(){return U3},get sortKeys(){return o()},get collectionName(){return z(p)},"aria-controls":`entry-list`})}var f=L(d,2),_=e=>{{let t=M(()=>!z(g));K_e(e,{get disabled(){return z(t)},get currentView(){return U3},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));kMe(e,{get disabled(){return z(t)},get currentView(){return U3},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));a6(e,{get disabled(){return z(t)},get currentView(){return U3},"aria-controls":`entry-list`})}};W(b,e=>{z(m).length&&e(x)});var S=L(b,2),C=e=>{var t=NMe(),n=I(t);Wf(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{sc(e,{name:`photo_library`})},t=M(()=>!z(h)||!TM({collectionName:z(p)})),n=M(()=>!!l().showMedia),i=M(()=>X(l().showMedia?`hide_assets`:`show_assets`));Bd(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:()=>{U3.update(e=>({...e,showMedia:!l().showMedia}))},startIcon:e,$$slots:{startIcon:!0}})}H(e,t)};W(S,e=>{eG.isSmallScreen||eG.isMediumScreen||e(C)}),H(e,n)},$$slots:{default:!0}})}};W(v,e=>{z(f)&&!i()&&e(y)}),H(e,_),k(),d()}var NMe,PMe;function FMe(){return(FMe=s((()=>{Y(),J(),Z(),Kd(),Jf(),dc(),$f(),AO(),F3(),jMe(),I3(),i6(),o6(),kM(),sL(),qV(),$3(),R3(),B3(),r6(),nG(),NMe=B(`<!> <!>`,1),PMe=B(`<!> <!> <!> <!> <!> <!> <!>`,1)})))()}function IMe(e,t){O(t,!0);let n=()=>j(XI,`$selectedCollection`,o),r=()=>j(vQ,`$showContentOverlay`,o),i=()=>j(J3,`$listedEntries`,o),a=()=>j(i1,`$contentUpdatesToast`,o),[o,s]=fn(),c=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,l=N(!1),u=N(!1),d=N(void 0),f=M(()=>`files`in(n()??{})?$je:Xje),p=()=>{let{path:e,params:t}=MQ(),r=e.match(c);if(P(l,!1),P(u,!1),P(d,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&tL().length&&dn(XI,void 0),!r?.groups){dn(vQ,!1),P(u,g6(e),!0);return}let{_collectionName:a,routeType:o,subPath:s}=r.groups;if(!a){if(eG.isSmallScreen)dn(XI,void 0),dn(vQ,!1),dn(jQ,X(`viewing_collection_list`)),P(l,!0);else{let e=n()||lfe()||rL();IQ(`/collections/${e?.name}`,{replaceState:!0})}return}let f=iL(a);if(!f||f.hide?dn(XI,void 0):n()?.name!==f.name&&dn(XI,f),!f||!n()){dn(vQ,!1),dn(jQ,X(`collection_not_found`));return}let{name:p}=n(),m=aL(n()),h=`_fileMap`in n()?n()._fileMap:void 0;if(!o){dn(vQ,!1),dn(jQ,X(`viewing_x_collection`,{values:{collection:m,count:i().length}}));return}if(dn(vQ,!0),h){if(o===`entries`&&s){let e=oI(p,s),t=h[s];n9(e?{collection:f,collectionFile:t,originalEntry:e}:{collection:f,collectionFile:t,originalEntry:{slug:t.name,locales:Object.fromEntries(t._i18n.initialLocales.map(e=>[e,{}]))}}),dn(jQ,X(`edit_${f._type}_announcement`,{values:{collection:m,file:iI(t)}}))}}else if(o===`new`&&!s&&(n9({collection:f,dynamicValues:t,isIndexFile:!!window.history.state?.index}),dn(jQ,X(`create_entry_announcement`,{values:{collection:m}}))),o===`entries`&&s){let e=i().find(e=>e.subPath===s);e&&Bu.current&&(n9({collection:f,originalEntry:e}),dn(jQ,X(`edit_entry_announcement`,{values:{collection:m,entry:LU(n(),e)}})))}};rc(()=>(p(),()=>{dn(vQ,!1)}));var m=LMe();_a(`hashchange`,Br,e=>{FQ(e,p,c)});var h=I(m);{let e=e=>{var t=V(),n=I(t),r=e=>{uMe(e,{get isSearchPage(){return z(u)}})};W(n,e=>{(!eG.isSmallScreen||z(l))&&e(r)}),H(e,t)},t=e=>{var t=V(),r=I(t),a=e=>{m6(e,{})},o=e=>{{let t=e=>{bMe(e,{})},r=e=>{var t=V(),r=I(t),a=e=>{MMe(e,{})};W(r,e=>{n()?._type===`entry`&&i().length&&e(a)}),H(e,t)},a=e=>{var t=V();wo(I(t),()=>z(f),(e,t)=>{t(e,{})}),H(e,t)},o=e=>{DMe(e,{})},s=M(()=>X(`x_collection`,{values:{collection:Bu.current&&n()?aL(n()):``}})),c=M(()=>n()?.description);s6(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):(!eG.isSmallScreen||!z(l))&&e(o,1)}),H(e,t)},r=M(()=>X(`content_library`));l6(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=>{Oje(e,{get editorLocale(){return z(d)}})};W(g,e=>{r()&&e(_)});var v=L(g,2);ah(v,{get show(){return a().saved},set show(e){mn(i1,Ri(a).saved=e,Ri(a))},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(a().published?`entry_saved_and_published`:`entry_saved`,{values:{count:a().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),ah(L(v,2),{get show(){return a().deleted},set show(e){mn(i1,Ri(a).deleted=e,Ri(a))},children:(e,t)=>{fc(e,{status:`success`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`entries_deleted`,{values:{count:a().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,m),k(),s()}var LMe;function RMe(){return(RMe=s((()=>{Y(),J(),Z(),gc(),lh(),oc(),c6(),u6(),Pje(),Qje(),rMe(),mMe(),EMe(),OMe(),FMe(),h6(),zQ(),sL(),a1(),cI(),$3(),r9(),EQ(),RU(),_6(),nG(),LMe=B(`<!> <!> <!> <!>`,1)})))()}function zMe(e,t){O(t,!0);{let t=M(()=>X(`prefs.i18n.translators.default.select_service`));Hm(e,{get"aria-label"(){return z(t)},get value(){return NK.defaultTranslationService},onChange:e=>{NK.defaultTranslationService=e.detail.value},children:(e,t)=>{var n=V();lo(I(n),17,()=>Object.entries(r8),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>w(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>r()===NK.defaultTranslationService);sm(e,{get label(){return i()},get value(){return r()},get selected(){return z(t)}})}}),H(e,n)},$$slots:{default:!0}})}k()}function m9(){return(m9=s((()=>{Y(),J(),Z(),fm(),Um(),a8(),FK()})))()}function BMe(e,t){O(t,!0);let n=()=>j(i8,`$translator`,a),r=()=>j(vQ,`$showContentOverlay`,a),i=()=>j(xQ,`$translatorApiKeyDialogState`,a),[a,o]=fn(),s=M(()=>n().serviceId),c=M(()=>n().apiLabel),l=M(()=>n().developerURL),u=M(()=>n().apiKeyURL),d=M(()=>n().apiKeyPattern),f=N(``);Zr(()=>{P(f,NK.apiKeys?.[z(s)]??``,!0)}),Zr(()=>{!r()&&i().show&&(mn(xQ,Ri(i).show=!1,Ri(i)),i().resolve?.())});let p=()=>{let e=z(f).trim();z(d)?.test(e)&&(NK.apiKeys??={},NK.apiKeys[z(s)]=e,mn(xQ,Ri(i).show=!1,Ri(i)),i().resolve?.(e))};{let t=M(()=>X(`translate_fields`,{values:{count:i().multiple?2:1}})),n=M(()=>({spellcheck:!1,monospace:!0,"aria-label":X(`api_key`)}));Mp(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){mn(xQ,Ri(i).show=e,Ri(i))},get value(){return z(f)},set value(e){P(f,e,!0)},children:(e,t)=>{var n=VMe(),r=I(n);zMe(r,{});var i=L(r,2);Yf(i,{}),vo(L(i,2),()=>oj(X(`prefs.i18n.translators.description`,{values:{service:z(c),homeHref:`href="${z(l)}"`,apiKeyHref:`href="${z(u)}"`}}).replace(/[\u2068\u2069]/g,``),VH)),H(e,n)},$$slots:{default:!0}})}k(),o()}var VMe;function HMe(){return(HMe=s((()=>{Y(),J(),Z(),Ip(),$f(),sj(),m9(),EQ(),a8(),FK(),UH(),VMe=B(`<!> <!> <!>`,1)})))()}function UMe(e,t){O(t,!0);let n=()=>j(fL,`$entryParseErrors`,r),[r,i]=fn(),a=N(!!n().length);ah(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,t)=>{fc(e,{status:`error`,children:(e,t)=>{mt();var r=ja();R(e=>U(r,e),[()=>X(`entry_parse_errors`,{values:{count:n().length}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),k(),i()}function WMe(){return(WMe=s((()=>{Y(),J(),Z(),gc(),lh(),gL()})))()}var h9,g9,_9,v9,y9,b9;function x9(){return(x9=s((()=>{sM(),aM(),WZ(),JJ(),nG(),g9=cn([iM(()=>eG.isLargeScreen),iM(()=>eG.hasMouse),iM(()=>eG.isLocalHost),HZ,iM(()=>qJ.account)],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),_9=sn(!1),v9=()=>{if(h9)return h9;let{databaseName:e}=A(HZ)?.repository??{};if(e)return h9=new oM(e,`ui-settings`),h9},y9=async e=>{if(h9=v9(),h9)return(await h9.get(`onboarding`)??{})[e]},b9=async(e,t)=>{if(h9=v9(),!h9)return;let n=await h9.get(`onboarding`)??{};await h9.set(`onboarding`,{...n,[e]:t})}})))()}function GMe(e,t){O(t,!0);let[n,r]=fn(),i=N(!1),a=async()=>{P(i,!await y9(`mobileCta`))},o=()=>{P(i,!1),b9(`mobileCta`,!0)};Zr(()=>{a()});var s=qMe(),c=I(s);io(c,()=>({"--sui-infobar-message-justify-content":`center`})),qd(c.lastChild,{get show(){return z(i)},dismissible:!1,children:(e,t)=>{mt();var n=KMe(),r=I(n),i=L(r);{let e=M(()=>X(`mobile_promo_button`));Bd(i,{variant:`link`,get label(){return z(e)},onclick:()=>{dn(_9,!0),o()}})}var a=L(i,2);{let e=M(()=>X(`later`));Bd(a,{variant:`link`,get label(){return z(e)},onclick:()=>{o()}})}R(e=>U(r,`${e??``} `),[()=>X(`mobile_promo_title`)]),H(e,n)},$$slots:{default:!0}}),D(c),H(e,s),k(),r()}var KMe,qMe;function JMe(){return(JMe=s((()=>{Y(),J(),Z(),Kd(),Zd(),x9(),KMe=B(` <!> <!>`,1),qMe=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})))()}function YMe(e,t){O(t,!0);let n=N(``),r=N(!1),i=async()=>{if(await y9(`newLanguageCta`))return;let e=Bu.current,t=navigator.language,[i]=t.split(`-`);t!==e&&i!==e&&(P(n,Tu.find(e=>e===t)??Tu.find(e=>e.split(`-`)[0]===i)??``,!0),z(n)&&z(n)!==e&&P(r,!0))},a=()=>{P(r,!1),b9(`newLanguageCta`,!0)};$r(()=>{Ri(()=>{i()})});var o=ZMe(),s=I(o);io(s,()=>({"--sui-infobar-message-justify-content":`center`})),qd(s.lastChild,{get show(){return z(r)},dismissible:!1,children:(e,t)=>{mt();var r=XMe(),i=I(r),o=L(i);{let e=M(()=>X(`change_language`,{locale:z(n)}));Bd(o,{variant:`link`,get label(){return z(e)},onclick:()=>{NK.locale=z(n),a()}})}var s=L(o,2);{let e=M(()=>X(`later`,{locale:z(n)}));Bd(s,{variant:`link`,get label(){return z(e)},onclick:()=>{a()}})}R(e=>U(i,`${e??``} `),[()=>X(`new_language_available`,{locale:z(n),values:{locale:FI(z(n),{displayLocale:z(n)})}})]),H(e,r)},$$slots:{default:!0}}),D(s),H(e,o),k()}var XMe,ZMe;function QMe(){return(QMe=s((()=>{Y(),J(),Z(),Kd(),Zd(),oc(),x9(),zI(),FK(),XMe=B(` <!> <!>`,1),ZMe=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})))()}function $Me(e,t){O(t,!0),G(e,tNe);let n=()=>j(xM,`$allAssetFolders`,c),r=()=>j(CM,`$selectedAssetFolder`,c),i=()=>j(VK,`$cmsConfig`,c),a=()=>j(VZ,`$backendName`,c),o=()=>j(AQ,`$selectedPageName`,c),s=()=>j(A3,`$searchMode`,c),[c,l]=fn(),u=M(()=>{let e=[{key:`collections`,label:X(`contents`),icon:`article`,link:`/collections`,searchMode:`contents`}];return n().length&&e.push({key:`assets`,label:X(`assets`),icon:`photo`,link:eG.isSmallScreen?`/assets`:`/assets/${r()?.internalPath??`-/all`}`,searchMode:`assets`}),i()?.publish_mode,a(),eG.isSmallScreen&&e.push({key:`menu`,label:X(`menu`),icon:`menu`,link:`/menu`,searchMode:void 0}),e});var d=eNe(),f=F(d);{let e=M(()=>X(`switch_page`));Df(f,{get"aria-label"(){return z(e)},"aria-controls":`page-container`,children:(e,t)=>{var n=V();lo(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=>{sc(e,{get name(){return a()}})},u=M(()=>o()===r()||s()===l()),d=M(()=>z(n)+1);Mf(e,{variant:`ghost`,iconic:!0,get selected(){return z(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${z(d)??``}`},onclick:()=>{IQ(c())},startIcon:t,$$slots:{startIcon:!0}})}}),H(e,n)},$$slots:{default:!0}})}D(d),H(e,d),k(),l()}var eNe,tNe;function S9(){return(S9=s((()=>{Y(),J(),Z(),dc(),Pf(),jf(),zQ(),kM(),WZ(),qK(),M3(),nG(),eNe=B(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),tNe={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 nNe(e,t){O(t,!0);let n=()=>j(kQ,`$hasOverlay`,r),[r,i]=fn();iee(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>X(`global`));EO(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=rNe();$Me(F(n),{}),D(n),H(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),k(),i()}var rNe;function iNe(){return(iNe=s((()=>{Y(),J(),Z(),tf(),AO(),S9(),zQ(),rNe=B(`<div role="none" class="buttons"><!></div>`)})))()}function aNe(e,t){O(t,!0);let n=N(!1),r,i=e=>{e.preventDefault(),r=e,P(n,!0)},a=()=>{r=null,P(n,!1)};rc(()=>(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(()=>X(`install_as_app`));vm(e,{get label(){return z(t)},onclick:async()=>{await r?.prompt()}})}};W(s,e=>{z(n)&&e(c)}),H(e,o),k()}function oNe(){return(oNe=s((()=>{Y(),J(),Z(),wm(),oc()})))()}function sNe(e,t){O(t,!0),G(e,dNe);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(()=>X(`keyboard_shortcuts`));dp(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=uNe(),r=F(n);{let e=M(()=>X(`keyboard_shortcuts`));Ate(r,{get"aria-label"(){return z(e)},children:(e,t)=>{var n=V();lo(I(n),17,()=>i,({feature:e,keys:t})=>t,(e,t)=>{let n=()=>z(t).feature,r=()=>z(t).keys;Tte(e,{children:(e,t)=>{var i=lNe(),a=I(i);bte(a,{class:`feature`,children:(e,t)=>{mt();var r=ja();R(e=>U(r,e),[()=>X(`keyboard_shortcuts_.${n()}`)]),H(e,r)},$$slots:{default:!0}}),bte(L(a,2),{class:`keys`,children:(e,t)=>{var n=V();lo(I(n),16,()=>r().split(`+`),e=>e,(e,t)=>{var n=cNe(),r=F(n,!0);D(n),R(e=>U(r,e),[()=>t.replace(`Accel`,eG.isMacOS?`⌘`:`Ctrl`)]),H(e,n)}),H(e,n)},$$slots:{default:!0}}),H(e,i)},$$slots:{default:!0}})}),H(e,n)},$$slots:{default:!0}})}D(n),H(e,n)},$$slots:{default:!0}})}k()}var cNe,lNe,uNe,dNe;function C9(){return(C9=s((()=>{Y(),J(),Z(),yp(),Jm(),wte(),kte(),nG(),cNe=B(`<kbd class="svelte-13q15u"> </kbd>`),lNe=B(`<!> <!>`,1),uNe=B(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),dNe={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 fNe(e,t){O(t,!0);let n=N(!1);var r=pNe(),i=I(r),a=e=>{{let t=M(()=>X(`keyboard_shortcuts`));vm(e,{get label(){return z(t)},onclick:()=>{P(n,!0)}})}};W(i,e=>{eG.hasMouse&&e(a)}),sNe(L(i,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(n)},set open(e){P(n,e,!0)}}),H(e,r),k()}var pNe;function w9(){return(w9=s((()=>{Y(),J(),Z(),wm(),C9(),nG(),pNe=B(`<!> <!>`,1)})))()}function T9(e,t){O(t,!0);let n=q(t,`defaultValue`,3,!0),r=N(!0);Zr(()=>{P(r,!!(NK[t.key]??n()),!0)}),Zr(()=>{NK[t.key]!==z(r)&&(NK[t.key]=z(r))}),Wm(e,{get label(){return t.label},get checked(){return z(r)},set checked(e){P(r,e,!0)}}),k()}function E9(){return(E9=s((()=>{Y(),J(),Gm(),FK()})))()}function mNe(e,t){O(t,!0),q(t,`onChange`,3,void 0);var n=hNe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a,!0);D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.accessibility.underline_links.switch_label`));T9(c,{key:`underlineLinks`,get label(){return z(e)}})}D(s),D(n),R((e,t)=>{U(i,e),U(o,t)},[()=>X(`prefs.accessibility.underline_links.title`),()=>X(`prefs.accessibility.underline_links.description`)]),H(e,n),k()}var hNe;function gNe(){return(gNe=s((()=>{Y(),J(),Z(),E9(),hNe=B(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`)})))()}function _Ne(e,t){O(t,!0);let n=()=>j(w1,`$skipCIConfigured`,r),[r,i]=fn(),a=q(t,`onChange`,3,void 0);var o=yNe(),s=I(o),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u,!0);D(u);var f=L(u,2),p=F(f);{let e=M(()=>X(`prefs.advanced.beta.switch_label`));T9(p,{key:`beta`,get label(){return z(e)},defaultValue:!1})}D(f),D(s);var m=L(s,2),h=F(m),g=F(h,!0);D(h);var _=L(h,2),v=F(_,!0);D(_);var y=L(_,2),b=F(y);{let e=M(()=>X(`prefs.advanced.developer_mode.switch_label`));T9(b,{key:`devModeEnabled`,get label(){return z(e)},defaultValue:!1})}D(y),D(m);var x=L(m,2),S=e=>{var t=vNe(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),o=F(i,!0);D(i);var s=L(i,2),c=F(s);{let e=M(()=>X(`prefs.advanced.deploy_hook.url.field_label`));Ep(c,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{a()?.({message:X(NK.deployHookURL?`prefs.advanced.deploy_hook.url.saved`:`prefs.advanced.deploy_hook.url.removed`)})},get value(){return NK.deployHookURL},set value(e){NK.deployHookURL=e}})}D(s);var l=L(s,2),u=F(l);{let e=M(()=>X(`prefs.advanced.deploy_hook.auth.field_label`));Ep(u,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{a()?.({message:X(NK.deployHookAuthHeader?`prefs.advanced.deploy_hook.auth.saved`:`prefs.advanced.deploy_hook.auth.removed`)})},get value(){return NK.deployHookAuthHeader},set value(e){NK.deployHookAuthHeader=e}})}D(l),D(t),R((e,t)=>{U(r,e),U(o,t)},[()=>X(`prefs.advanced.deploy_hook.title`),()=>X(`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)},[()=>X(`prefs.advanced.beta.title`),()=>X(`prefs.advanced.beta.description`),()=>X(`prefs.advanced.developer_mode.title`),()=>X(`prefs.advanced.developer_mode.description`)]),H(e,o),k(),i()}var vNe,yNe;function bNe(){return(bNe=s((()=>{Y(),J(),Z(),jp(),E9(),E1(),FK(),vNe=B(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),yNe=B(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1)})))()}function xNe(e,t){O(t,!0),q(t,`onChange`,3,void 0);var n=SNe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a);{let e=M(()=>X(`prefs.appearance.select_theme`));Df(o,{get"aria-label"(){return z(e)},onChange:e=>{NK.theme=e.detail.value},children:(e,t)=>{var n=V();lo(I(n),16,()=>[`auto`,`dark`,`light`],e=>e,(e,t)=>{{let n=M(()=>X(`prefs.theme.${t}`)),r=M(()=>!NK.theme&&t===`auto`||NK.theme===t);Mf(e,{variant:`tertiary`,get label(){return z(n)},get value(){return t},get selected(){return z(r)}})}}),H(e,n)},$$slots:{default:!0}})}D(a),D(n),R(e=>U(i,e),[()=>X(`prefs.appearance.theme`)]),H(e,n),k()}var SNe;function CNe(){return(CNe=s((()=>{Y(),J(),Z(),Pf(),jf(),FK(),SNe=B(`<section><h3> </h3> <div role="none"><!></div></section>`)})))()}function wNe(e,t){O(t,!0),q(t,`onChange`,3,void 0);var n=TNe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a);{let e=M(()=>X(`prefs.contents.editor.use_draft_backup.switch_label`));T9(o,{key:`useDraftBackup`,get label(){return z(e)}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.contents.editor.close_on_save.switch_label`));T9(c,{key:`closeOnSave`,get label(){return z(e)}})}D(s);var l=L(s,2),u=F(l);{let e=M(()=>X(`prefs.contents.editor.close_with_escape.switch_label`));T9(u,{key:`closeWithEscape`,get label(){return z(e)}})}D(l),D(n),R(e=>U(i,e),[()=>X(`prefs.contents.editor.title`)]),H(e,n),k()}var TNe;function ENe(){return(ENe=s((()=>{Y(),J(),Z(),E9(),TNe=B(`<section><h3> </h3> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>`)})))()}function D9(e,t){O(t,!0);let n=q(t,`onChange`,3,void 0),r=M(()=>t.service.apiKeyPattern),i=N(``);rc(()=>{P(i,NK.apiKeys?.[t.serviceId]??``,!0)}),gk(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);NK.apiKeys??={},NK.apiKeys[t.serviceId]=a?``:e,n()?.({message:X(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)}}),k()}function O9(){return(O9=s((()=>{Y(),J(),Z(),bk(),oc(),FK()})))()}function DNe(e,t){O(t,!0);let n=q(t,`onChange`,3,void 0);var r=kNe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);zMe(F(s),{}),D(s),D(i);var c=L(i,2),l=F(c),u=F(l,!0);D(l);var d=L(l,2);vo(d,()=>HH(X(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),D(d),lo(L(d,2),17,()=>Object.entries(r8),([e,t])=>e,(e,t)=>{var r=M(()=>w(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=ONe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.i18n.translators.field_label`,{values:{service:z(o)}}));D9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>U(l,z(o))),H(e,s)}),D(c),R((e,t)=>{U(o,e),U(u,t)},[()=>X(`prefs.i18n.translators.default.title`),()=>X(`prefs.i18n.translators.api_keys.title`)]),H(e,r),k()}var ONe,kNe;function ANe(){return(ANe=s((()=>{Y(),J(),Z(),O9(),m9(),a8(),UH(),ONe=B(`<section><h4> </h4> <div role="none"><!></div></section>`),kNe=B(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1)})))()}function jNe(e,t){O(t,!0);let n=()=>j(K$,`$appLocaleLoading`,r),[r,i]=fn();q(t,`onChange`,3,void 0);let a=M(()=>Tu.map(e=>{let t=FI(e,{displayLocale:Bu.current})??e,n=FI(e,{displayLocale:e})??e,r=t===n?t:`${t} — ${n}`;return{value:e,searchValue:`${r} (${e})`,label:r}}).sort((e,t)=>e.label.localeCompare(t.label))),o=N(``);Zr(()=>{n()&&P(o,n(),!0)});var s=MNe(),c=I(s),l=F(c),u=F(l,!0);D(l);var d=L(l,2);to(F(d),()=>Bu.current,e=>{{let t=M(()=>X(`prefs.language.ui_language.select_language`));Hm(e,{get"aria-label"(){return z(t)},get value(){return Bu.current},onChange:e=>{NK.locale=e.detail.value},children:(e,t)=>{var n=V();lo(I(n),17,()=>z(a),({value:e,searchValue:t,label:n})=>e,(e,t)=>{let n=()=>z(t).value,r=()=>z(t).searchValue,i=()=>z(t).label;{let t=M(()=>n()===Bu.current);sm(e,{get value(){return n()},get searchValue(){return r()},get label(){return i()},get selected(){return z(t)}})}}),H(e,n)},$$slots:{default:!0}})}}),D(d),D(c);var f=L(c,2);{let e=M(()=>!!n());ah(f,{get show(){return z(e)},duration:0,children:(e,t)=>{fc(e,{status:`info`,children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=ja();R(e=>U(t,e),[()=>X(`switching_language`,{values:{locale:FI(z(o))??z(o)}})]),H(e,t)};W(r,e=>{z(o)&&e(i)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}R(e=>U(u,e),[()=>X(`prefs.language.ui_language.title`)]),H(e,s),k(),i()}var MNe;function NNe(){return(NNe=s((()=>{Y(),J(),Z(),gc(),fm(),Um(),lh(),X$(),zI(),FK(),MNe=B(`<section><h3> </h3> <div role="none"><!></div></section> <!>`,1)})))()}function PNe(e,t){O(t,!0);let n=q(t,`onChange`,3,void 0),r=M(()=>{let{providers:e=[]}=S5();return Object.entries(x5).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),i=M(()=>Object.entries(fB).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var a=FNe(),o=I(a),s=F(o),c=F(s,!0);D(s);var l=L(s,2);vo(l,()=>HH(z(i).length?X(`prefs.media.cloud_storage.api_keys.description`):X(`prefs.media.cloud_storage.no_services`),`https://sveltiacms.app/en/docs/media`),!0),D(l),lo(L(l,2),17,()=>z(i),([e,t])=>e,(e,t)=>{var r=M(()=>w(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=k9(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.cloud_storage.field_label`,{values:{service:z(o)}}));D9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>U(l,z(o))),H(e,s)}),D(o);var u=L(o,2),d=F(u),f=F(d,!0);D(d);var p=L(d,2);vo(p,()=>HH(z(r).length?X(`prefs.media.stock_photos.api_keys.description`):X(`prefs.media.stock_photos.no_services`),`https://sveltiacms.app/en/docs/integrations/stock-photos`),!0),D(p),lo(L(p,2),17,()=>z(r),([e,t])=>e,(e,t)=>{var r=M(()=>w(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=k9(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(o)}}));D9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>U(l,z(o))),H(e,s)}),D(u),R((e,t)=>{U(c,e),U(f,t)},[()=>X(`prefs.media.cloud_storage.api_keys.title`),()=>X(`prefs.media.stock_photos.api_keys.title`)]),H(e,a),k()}var k9,FNe;function INe(){return(INe=s((()=>{Y(),J(),Z(),O9(),mB(),C5(),UH(),k9=B(`<section><h4> </h4> <div role="none"><!></div></section>`),FNe=B(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1)})))()}var A9;function j9(){return(j9=s((()=>{aM(),gNe(),bNe(),CNe(),ENe(),ANe(),NNe(),INe(),qK(),A9=cn([VK],([e])=>[{key:`appearance`,icon:`palette`,component:xNe},{key:`language`,icon:`language`,component:jNe},{key:`contents`,icon:`library_books`,component:wNe},{key:`i18n`,icon:`translate`,component:DNe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:PNe},{key:`accessibility`,icon:`accessibility_new`,component:mNe},{key:`advanced`,icon:`build`,component:_Ne}])})))()}function LNe(e,t){G(e,zNe);let n=N(``),r=N(`success`),i=N(!1);var a=RNe(),o=I(a);wo(F(o),()=>t.Panel,(e,t)=>{t(e,{onChange:({message:e,status:t})=>{P(n,e,!0),P(r,t??`success`,!0),P(i,!0)}})}),D(o),ah(L(o,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{fc(e,{get status(){return z(r)},children:(e,t)=>{mt();var r=ja();R(()=>U(r,z(n))),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,a)}var RNe,zNe;function M9(){return(M9=s((()=>{Y(),J(),gc(),lh(),RNe=B(`<div class="container svelte-1attlke" role="none"><!></div> <!>`,1),zNe={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 BNe(e,t){O(t,!0),G(e,HNe);let n=q(t,`open`,15,!1),r=q(t,`onClose`,3,void 0),i=N(`appearance`);{let t=M(()=>X(`settings`));dp(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=VNe(),r=F(n);{let e=M(()=>X(`categories`));Mte(r,{orientation:`vertical`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=V();lo(I(n),17,()=>A(A9),({key:e,icon:t,enabled:n=!0})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon,a=Hn(()=>C(z(t).enabled,!0));var o=V(),s=I(o),c=e=>{{let t=e=>{sc(e,{get name(){return r()}})},a=M(()=>X(`prefs.${n()}.title`)),o=M(()=>n()===z(i));Pte(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}})}lo(L(r,2),17,()=>A(A9),({key:e,component:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).component;Nte(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{LNe(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),D(n),H(e,n)},$$slots:{default:!0}})}k()}var VNe,HNe;function UNe(){return(UNe=s((()=>{Y(),J(),Z(),yp(),dc(),ih(),Qm(),nh(),aM(),j9(),M9(),VNe=B(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),HNe={hash:`svelte-pwxwga`,code:`.wrapper.svelte-pwxwga {display:flex;.sui.tab-list {flex:none;}.sui.tab-panel {flex:auto;border-width:0;}}`}})))()}function WNe(e,t){O(t,!0);let n=()=>j(VZ,`$backendName`,a),r=()=>j(HZ,`$backend`,a),i=()=>j(g9,`$canShowMobileSignInDialog`,a),[a,o]=fn(),s=N(!1),c=M(()=>n()===`local`),l=M(()=>n()===`test-repo`);var u=N9(),d=I(u);{let e=M(()=>X(`account`));pm(d,{get"aria-label"(){return z(e)},children:(e,n)=>{var a=GNe(),o=I(a);{let e=M(()=>z(c)?X(`working_with_local_repo`):z(l)?X(`working_with_test_repo`):X(`signed_in_as_x`,{values:{name:qJ.account?.login}})),t=M(()=>z(c)||z(l));vm(o,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{DQ(qJ.account?.profileURL)}})}var u=L(o,2);Wf(u,{});var d=L(u,2);{let e=M(()=>X(`live_site`));vm(d,{get label(){return z(e)},onclick:()=>{RQ()}})}var f=L(d,2),p=e=>{var t=N9(),n=I(t);{let e=M(()=>X(`git_repository`)),t=M(()=>!r()?.repository?.treeBaseURL);vm(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{DQ(r()?.repository?.treeBaseURL)}})}var i=L(n,2);{let e=M(()=>X(`cms_config`));vm(i,{get label(){return z(e)},onclick:()=>{IQ(`/config`,{transitionType:`forwards`})}})}H(e,t)};W(f,e=>{NK.devModeEnabled&&e(p)});var m=L(f,2);Wf(m,{});var h=L(m,2);{let e=M(()=>X(`settings`));vm(h,{get label(){return z(e)},onclick:()=>{eG.isSmallScreen?IQ(`/settings`,{transitionType:`forwards`}):P(s,!0)}})}var g=L(h,2),_=e=>{fNe(e,{get menuButton(){return t.menuButton}})};W(g,e=>{NK.devModeEnabled||e(_)});var v=L(g,2),y=e=>{{let t=M(()=>X(`sign_in_with_mobile`));vm(e,{get label(){return z(t)},onclick:()=>{dn(_9,!0)}})}};W(v,e=>{i()&&e(y)});var b=L(v,2);aNe(b,{});var x=L(b,2);Wf(x,{});var S=L(x,2);{let e=M(()=>X(`sign_out`));vm(S,{get label(){return z(e)},onclick:async()=>{window.requestAnimationFrame(()=>{ZQ()})}})}H(e,a)},$$slots:{default:!0}})}BNe(L(d,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(s)},set open(e){P(s,e,!0)}}),H(e,u),k(),o()}var N9,GNe;function P9(){return(P9=s((()=>{Y(),J(),Z(),Jf(),_m(),wm(),oNe(),w9(),UNe(),zQ(),x9(),WZ(),JJ(),QQ(),nG(),FK(),OQ(),N9=B(`<!> <!>`,1),GNe=B(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1)})))()}function KNe(e,t){O(t,!0),G(e,YNe);let n=()=>j(VZ,`$backendName`,r),[r,i]=fn(),a=N(void 0),o=M(()=>n()===`local`),s=M(()=>!!qJ.account?.avatarURL);var c=JNe(),l=F(c);{let e=e=>{var t=V(),n=I(t),r=e=>{sc(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{var t=qNe();R(()=>K(t,`src`,qJ.account?.avatarURL)),H(e,t)},a=e=>{sc(e,{name:`account_circle`})};W(n,e=>{z(o)?e(r):z(s)?e(i,1):e(a,-1)}),H(e,t)},t=e=>{WNe(e,{get menuButton(){return z(a)}})},n=M(()=>!z(o)),r=M(()=>z(o)?X(`local_workflow.indicator`):void 0),i=M(()=>z(s)?`avatar`:``),c=M(()=>X(`show_account_menu`));Bs(Ff(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))}D(c),H(e,c),k(),i()}var qNe,JNe,YNe;function XNe(){return(XNe=s((()=>{Y(),J(),Z(),dc(),Rf(),P9(),WZ(),JJ(),qNe=B(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),JNe=B(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),YNe={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 ZNe(e,t){O(t,!0);let[n,r]=fn(),i=M(()=>tL({visible:!0,type:`entry`}));{let t=e=>{sc(e,{name:`add`})},n=e=>{{let t=M(()=>X(`create_entry_or_assets`));pm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=F9(),r=I(n),a=e=>{var t=F9(),n=I(t);lo(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||UV(z(n).name).length>=z(n).limit);vm(e,{get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{IQ(`/collections/${z(n).name}/new`,{transitionType:`forwards`})}})}}),Wf(L(n,2),{}),H(e,t)};W(r,e=>{z(i).length&&e(a)});var o=L(r,2);{let e=M(()=>X(`assets`));vm(o,{get label(){return z(e)},onclick:async()=>{IQ(`/assets`,{transitionType:`forwards`}),await nd(100),dn(uQ,!0)}})}H(e,n)},$$slots:{default:!0}})}},r=M(()=>X(`create_entry_or_assets`));Ff(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:t,popup:n,$$slots:{endIcon:!0,popup:!0}})}k(),r()}var F9;function QNe(){return(QNe=s((()=>{Y(),J(),Z(),Jf(),dc(),_m(),Rf(),wm(),rd(),zQ(),_Q(),sL(),qV(),F9=B(`<!> <!>`,1)})))()}function $Ne(e,t){O(t,!0),G(e,tPe);{let t=e=>{var t=V(),n=I(t),r=e=>{var t=ePe(),n=F(t);D(t),R(e=>{K(t,`aria-label`,`(${e??``})`),U(n,`v${jB??``}`)},[()=>X(`version_x`,{values:{version:jB}})]),H(e,t)};W(n,e=>{NK.devModeEnabled&&e(r)}),H(e,t)},n=M(()=>X(`release_notes`));vm(e,{get label(){return z(n)},onclick:()=>{DQ(`https://github.com/sveltia/sveltia-cms/releases`)},endIcon:t,$$slots:{endIcon:!0}})}k()}var ePe,tPe;function nPe(){return(nPe=s((()=>{Y(),J(),Z(),wm(),NB(),FK(),OQ(),ePe=B(`<span class="version svelte-wmw2gz"> </span>`),tPe={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 rPe(e,t){O(t,!0);{let n=M(()=>X(`help`));pm(e,{get"aria-label"(){return z(n)},children:(e,n)=>{var r=aPe(),i=I(r);fNe(i,{get menuButton(){return t.menuButton}});var a=L(i,2),o=e=>{var t=iPe(),n=I(t);I9(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=L(n,2);$Ne(r,{});var i=L(r,2);I9(i,()=>`announcements`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/announcements`);var a=L(i,2);Wf(a,{});var o=L(a,2);I9(o,()=>`report_issue`,()=>`https://github.com/sveltia/sveltia-cms/issues`);var s=L(o,2);I9(s,()=>`share_feedback`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/ideas`);var c=L(s,2);I9(c,()=>`get_help`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/q-a`);var l=L(c,2);I9(l,()=>`donate`,()=>`https://github.com/sponsors/kyoshino`);var u=L(l,2);Wf(u,{});var d=L(u,2);I9(d,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`);var f=L(d,2);I9(f,()=>`join_discord`,()=>`https://discord.com/invite/5hwCGqup5b`),H(e,t)};W(a,e=>{NK.devModeEnabled&&e(o)}),H(e,r)},$$slots:{default:!0}})}k()}var I9,iPe,aPe;function L9(){return(L9=s((()=>{Y(),J(),Z(),Jf(),_m(),wm(),nPe(),w9(),FK(),OQ(),I9=(e,t=E,n=E)=>{{let r=M(()=>X(t()));vm(e,{get label(){return z(r)},onclick:()=>{DQ(n())}})}},iPe=B(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),aPe=B(`<!> <!>`,1)})))()}function oPe(e,t){O(t,!0),G(e,cPe);let n=N(void 0),r=N(!1);var i=sPe(),a=I(i),o=F(a);{let e=e=>{sc(e,{name:`help`})},t=e=>{rPe(e,{get menuButton(){return z(n)}})},r=M(()=>X(`show_help_menu`));Bs(Ff(o,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(n,e,!0),()=>z(n))}D(a),sNe(L(a,2),{onClose:()=>{z(n)?.focus()},get open(){return z(r)},set open(e){P(r,e,!0)}}),H(e,i),k()}var sPe,cPe;function lPe(){return(lPe=s((()=>{Y(),J(),Z(),dc(),Rf(),L9(),C9(),sPe=B(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),cPe={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`}})))()}function uPe(e,t){O(t,!0);{let t=e=>{sc(e,{name:`notifications`})},n=M(()=>X(`show_notifications`));Bd(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return z(n)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}k()}function dPe(){return(dPe=s((()=>{Y(),J(),Z(),Kd(),dc()})))()}function fPe(e,t){O(t,!0),G(e,mPe);let n=()=>j(h$,`$appLogoURL`,i),r=()=>j(VK,`$cmsConfig`,i),[i,a]=fn();var o=V(),s=I(o),c=e=>{{let t=M(()=>X(`visit_live_site`));Bd(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{RQ()},children:(e,t)=>{var r=pPe();R(()=>K(r,`src`,n())),H(e,r)},$$slots:{default:!0}})}};W(s,e=>{n()!==p$&&(r()?.logo?.show_in_header??!0)&&e(c)}),H(e,o),k(),a()}var pPe,mPe;function hPe(){return(hPe=s((()=>{Y(),J(),Z(),Kd(),b$(),zQ(),qK(),pPe=B(`<img alt="" class="logo svelte-15c9hhi"/>`),mPe={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`}})))()}function gPe(e,t){O(t,!0),G(e,yPe);let n=()=>j(kQ,`$hasOverlay`,r),[r,i]=fn();var a=vPe(),o=F(a);{let e=M(()=>X(`global`));EO(o,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=_Pe(),r=I(n),i=F(r);fPe(i,{}),$Me(L(i,2),{}),D(r);var a=L(r,2);N3(a,{});var o=L(a,2),s=F(o);cMe(s,{});var c=L(s,2);ZNe(c,{});var l=L(c,2);uPe(l,{});var u=L(l,2),d=e=>{oPe(e,{})};W(u,e=>{NK.devModeEnabled&&e(d)}),KNe(L(u,2),{}),D(o),H(e,n)},$$slots:{default:!0}})}D(a),R(()=>a.inert=n()),H(e,a),k(),i()}var _Pe,vPe,yPe;function bPe(){return(bPe=s((()=>{Y(),J(),Z(),AO(),XNe(),QNe(),lPe(),dPe(),S9(),d9(),P3(),hPe(),zQ(),FK(),_Pe=B(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),vPe=B(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),yPe={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 xPe(e,t){O(t,!0),G(e,TPe);{let t=e=>{s6(e,{primaryToolbar:e=>{EO(e,{variant:`primary`,children:(e,t)=>{var n=SPe(),r=I(n),i=F(r,!0);D(r),Yf(L(r,2),{flex:!0}),R(e=>U(i,e),[()=>X(`menu`)]),H(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=wPe(),n=F(t),r=F(n),i=F(r,!0);D(r),WNe(L(r,2),{}),D(n);var a=L(n,2),o=e=>{var t=CPe(),n=F(t),r=F(n,!0);D(n),rPe(L(n,2),{}),D(t),R(e=>U(r,e),[()=>X(`help`)]),H(e,t)};W(a,e=>{NK.devModeEnabled&&e(o)}),D(t),R(e=>U(i,e),[()=>X(`account`)]),H(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},n=M(()=>X(`menu`));l6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var SPe,CPe,wPe,TPe;function EPe(){return(EPe=s((()=>{Y(),J(),Z(),$f(),AO(),c6(),u6(),P9(),L9(),FK(),SPe=B(`<h2 role="none"> </h2> <!>`,1),CPe=B(`<section><h3 class="svelte-16cq5v7"> </h3> <!></section>`),wPe=B(`<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>`),TPe={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);}`}})))()}var DPe=c(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),R9=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)}})),z9=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}}})),OPe=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})),kPe=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})),APe=c((e=>{var t=R9().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}})),jPe=c((e=>{var t=R9().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),MPe=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}})),NPe=c((e=>{var t=z9(),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}}})),PPe=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]]}})),FPe=c((e=>{var t=PPe();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}})),IPe=c(((e,t)=>{var n=FPe();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})),LPe=c((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),RPe=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)}})),B9=c((e=>{var t=LPe(),n=RPe();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}}})),zPe=c((e=>{var t=R9(),n=NPe(),r=z9(),i=B9(),a=LPe(),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}})),BPe=c((e=>{var t=R9(),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}})),VPe=c(((e,t)=>{var n=B9();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})),HPe=c(((e,t)=>{var n=B9(),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})),UPe=c(((e,t)=>{var n=B9();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):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})),WPe=c(((e,t)=>{var n=B9(),r=R9();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})),GPe=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)})),KPe=c((e=>{var t=B9(),n=VPe(),r=HPe(),i=UPe(),a=WPe(),o=RPe(),s=R9(),c=GPe();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()))}})),qPe=c((e=>{var t=R9(),n=z9(),r=OPe(),i=kPe(),a=APe(),o=jPe(),s=MPe(),c=NPe(),l=IPe(),u=zPe(),d=BPe(),f=B9(),p=KPe();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)}})),JPe=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||(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}}})),YPe=c((e=>{var t=JPe();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)}})),XPe=c((e=>{var t=JPe();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}})),ZPe=c((e=>{var t=DPe(),n=qPe(),r=YPe(),i=XPe();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 QPe(e,t){O(t,!0),G(e,tFe);let n=()=>j(_9,`$showMobileSignInDialog`,r),[r,i]=fn(),a=N(void 0);Zr(()=>{if(z(a)&&n()){let{origin:e,pathname:t}=window.location,n=Dt(NK),r=`${e}${t}#/signin/${btoa(JSON.stringify({token:qJ.account?.token,prefs:n}))}`;(0,$Pe.toCanvas)(z(a),r),NK.devModeEnabled&&console.info(`Mobile sign-in URL:`,r)}});{let t=M(()=>X(`sign_in_with_mobile`));dp(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 hn(),n()},set open(e){dn(_9,e)},children:(e,t)=>{var n=eFe(),r=I(n),i=F(r,!0);D(r),Bs(L(r,2),e=>P(a,e),()=>z(a)),R(e=>U(i,e),[()=>X(`sign_in_with_mobile_instruction`)]),H(e,n)},$$slots:{default:!0}})}k(),i()}var $Pe,eFe,tFe;function nFe(){return(nFe=s((()=>{Y(),J(),Z(),yp(),$Pe=ZPe(),x9(),JJ(),FK(),eFe=B(`<div> </div> <canvas class="svelte-1eeac91"></canvas>`,1),tFe={hash:`svelte-1eeac91`,code:`canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}`}})))()}function rFe(e,t){O(t,!0);let n=()=>j(j3,`$searchTerms`,i),r=()=>j(A3,`$searchMode`,i),[i,a]=fn(),o=/^\/search\/(?<terms>.+)$/,s=()=>{let{path:e}=MQ(),{terms:t}=e.match(o)?.groups??{};t&&t!==n()&&dn(j3,t),dn(A3,r()??`contents`)};rc(()=>{s(),document.querySelector(`.sui.search-bar input`)?.focus()}),_a(`hashchange`,Br,()=>{s()});{let t=e=>{m6(e,{})},r=M(()=>X(`search_results_for_x`,{values:{terms:n()}}));l6(e,{get"aria-label"(){return z(r)},main:t,$$slots:{main:!0}})}k(),a()}function iFe(){return(iFe=s((()=>{Y(),J(),Z(),oc(),u6(),h6(),zQ(),M3()})))()}function aFe(e,t){O(t,!0),G(e,cFe);let n=/^\/settings(?:\/(?<panelKey>.+))?$/,r=N(void 0),i=()=>{let{path:e}=MQ(),t=e.match(n);if(!t?.groups)return;let{panelKey:i}=t.groups;P(r,i?A(A9).find(e=>e.key===i):void 0,!0)};rc(()=>{i()}),_a(`hashchange`,Br,e=>{FQ(e,i,n)});{let t=e=>{s6(e,{primaryToolbar:e=>{EO(e,{variant:`primary`,children:(e,t)=>{var n=oFe(),i=I(n),a=e=>{var t=V9(),n=I(t);p1(n,{onclick:()=>LQ(`/settings`)});var i=L(n,2),a=F(i,!0);D(i),R(e=>U(a,e),[()=>X(`prefs.${z(r).key}.title`)]),H(e,t)},o=e=>{var t=V9(),n=I(t);p1(n,{onclick:()=>LQ(`/menu`)});var r=L(n,2),i=F(r,!0);D(r),R(e=>U(i,e),[()=>X(`settings`)]),H(e,t)};W(i,e=>{z(r)?e(a):e(o,-1)}),Yf(L(i,2),{flex:!0}),H(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=sFe(),n=F(t),i=e=>{LNe(e,{get Panel(){return z(r).component}})},a=e=>{{let t=M(()=>X(`settings`));pm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();lo(I(n),17,()=>A(A9),({key:e,icon:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon;{let t=e=>{sc(e,{get name(){return r()}})},i=M(()=>X(`prefs.${n()}.title`));vm(e,{get label(){return z(i)},onclick:()=>IQ(`/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)}),D(t),H(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},n=M(()=>X(`settings`));l6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var V9,oFe,sFe,cFe;function lFe(){return(lFe=s((()=>{Y(),J(),Z(),dc(),_m(),wm(),$f(),AO(),oc(),aM(),c6(),u6(),m1(),j9(),M9(),zQ(),V9=B(`<!> <h2 role="none"> </h2>`,1),oFe=B(`<!> <!>`,1),sFe=B(`<div role="none" class="wrapper svelte-116bna3"><!></div>`),cFe={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 uFe(e,t){O(t,!0),G(e,hFe);{let t=e=>{var t=mFe(),n=F(t);Pk(n,{class:`column`,"aria-labelledby":`draft-column-title`,children:(e,t)=>{var n=dFe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>U(i,e),[()=>X(`status.drafts`)]),H(e,n)},$$slots:{default:!0}});var r=L(n,2);Pk(r,{class:`column`,"aria-labelledby":`review-column-title`,children:(e,t)=>{var n=fFe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>U(i,e),[()=>X(`status.in_review`)]),H(e,n)},$$slots:{default:!0}}),Pk(L(r,2),{class:`column`,"aria-labelledby":`ready-column-title`,children:(e,t)=>{var n=pFe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>U(i,e),[()=>X(`status.ready`)]),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)},n=M(()=>X(`editorial_workflow`));l6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var dFe,fFe,pFe,mFe,hFe;function gFe(){return(gFe=s((()=>{Y(),J(),Z(),Rk(),u6(),dFe=B(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="draft-column-title" class="svelte-ljqw9n"> </h3></header>`),fFe=B(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="review-column-title" class="svelte-ljqw9n"> </h3></header>`),pFe=B(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="ready-column-title" class="svelte-ljqw9n"> </h3></header>`),mFe=B(`<div role="none" class="columns svelte-ljqw9n"><!> <!> <!></div>`),hFe={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 _Fe(e,t){O(t,!0),G(e,bFe);let n=()=>j(A3,`$searchMode`,a),r=()=>j(AQ,`$selectedPageName`,a),i=()=>j(g9,`$canShowMobileSignInDialog`,a),[a,o]=fn(),s=M(()=>({collections:IMe,assets:bye,search:eG.isSmallScreen?rFe:n()?{contents:IMe,assets:bye}[n()]:rFe,workflow:uFe,config:Bye,menu:xPe,settings:aFe})),c=M(()=>z(s)[r()]),l=()=>{let{path:e}=MQ(),{pageName:t}=e.match(`^\\/(?<pageName>${Object.keys(z(s)).join(`|`)})\\b`)?.groups??{};t?r()!==t&&dn(AQ,t):window.location.replace(`#/collections`),t===`collections`?dn(A3,`contents`):t===`assets`?dn(A3,`assets`):t!==`search`&&dn(A3,null)};rc(()=>{l()});var u={selectPage:l},d=yFe();_a(`hashchange`,Br,()=>{l()});var f=I(d);YMe(f,{});var p=L(f,2),m=e=>{var t=vFe(),n=I(t);GMe(n,{}),QPe(L(n,2),{}),H(e,t)};W(p,e=>{i()&&e(m)});var h=L(p,2),g=e=>{gPe(e,{})};W(h,e=>{eG.isSmallScreen||e(g)});var _=L(h,2);wo(F(_),()=>z(c),(e,t)=>{t(e,{})}),D(_);var v=L(_,2),y=e=>{nNe(e,{})};W(v,e=>{eG.isSmallScreen&&e(y)});var b=L(v,2);Rye(b,{});var x=L(b,2);Oye(x,{});var S=L(x,2);BMe(S,{});var C=L(S,2);UMe(C,{}),wye(L(C,2),{}),H(e,d);var w=k(u);return o(),w}var vFe,yFe,bFe;function xFe(){return(xFe=s((()=>{Y(),J(),oc(),Cye(),Dye(),Lye(),zye(),Uye(),RMe(),HMe(),WMe(),JMe(),QMe(),iNe(),bPe(),EPe(),nFe(),iFe(),lFe(),gFe(),zQ(),x9(),M3(),nG(),vFe=B(`<!> <!>`,1),yFe=B(`<!> <!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!> <!>`,1),bFe={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 SFe(e,t){O(t,!0),G(e,kFe);let n=()=>j(cL,`$dataLoaded`,d),r=()=>j(WK,`$cmsConfigLoaded`,d),i=()=>j(m$,`$appTitle`,d),a=()=>j(h$,`$appLogoURL`,d),o=()=>j(g$,`$appLogoType`,d),s=()=>j(v$,`$appIconURLs`,d),c=()=>j(y$,`$appManifestURL`,d),l=()=>j(HZ,`$backend`,d),u=()=>j(jQ,`$announcedPageStatus`,d),[d,f]=fn(),p=N(!1);$r(()=>{z(p)||(Lfe(),P(p,!0))}),$r(()=>{tG()}),Zr(()=>{Ri(()=>{KK(t.config)})}),rc(()=>{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);Zr(()=>{n()&&qJ.account?PQ(`forwards`,()=>{P(m,!0)}):PQ(`backwards`,()=>{P(m,!1)})}),Ho(`7y4msj`,e=>{var t=DFe(),n=L(I(t),4),l=e=>{var t=TFe(),n=I(t),r=L(n,2),l=e=>{var t=CFe();R(()=>K(t,`href`,s().large)),H(e,t)};W(r,e=>{s()&&e(l)});var u=L(r,2),d=e=>{var t=wFe();R(()=>K(t,`href`,c())),H(e,t)};W(u,e=>{c()&&e(d)}),R(()=>{K(n,`href`,a()),K(n,`type`,o())}),ii(()=>{Vr.title=i()??``}),H(e,t)};W(n,e=>{r()&&e(l)});var u=L(n,2),d=e=>{var t=EFe();R(()=>K(t,`href`,`${zK??``}/admin/config.yml`)),H(e,t)};W(u,e=>{zK&&e(d)}),H(e,t)}),_a(`mousedown`,Vr.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`)}}),Pse(e,{children:(e,t)=>{var r=V(),i=I(r),a=e=>{var t=OFe(),r=I(t),i=F(r);Rfe(i,{});var a=L(i,2);Mfe(a,{});var o=L(a,2),s=e=>{jfe(e,{})};W(o,e=>{l()&&e(s)});var c=L(o,2),d=F(c),f=e=>{_Fe(e,{})},p=e=>{Afe(e,{})};W(d,e=>{qJ.account&&n()&&z(m)?e(f):e(p,-1)}),D(c),D(r);var h=L(r,2),g=F(h,!0);D(h),R(()=>U(g,u())),H(e,t)};W(i,e=>{z(p)&&e(a)}),H(e,r)},$$slots:{default:!0}}),k(),f()}var CFe,wFe,TFe,EFe,DFe,OFe,kFe;function AFe(){return(AFe=s((()=>{Y(),J(),kk(),oc(),A$(),N$(),I$(),zfe(),xFe(),b$(),X$(),zQ(),WZ(),qK(),gL(),JJ(),nG(),CFe=B(`<link rel="apple-touch-icon"/>`),wFe=B(`<link rel="manifest"/>`),TFe=B(`<link rel="icon"/> <!> <!>`,1),EFe=B(`<link type="application/yaml" rel="cms-config-url"/>`),DFe=B(`<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>`,1),OFe=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),kFe={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;}`}})))()}var jFe,MFe;function NFe(){return(NFe=s((()=>{jFe=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,MFe=[`getBackend`,`getCustomFormats`,`getCustomFormatsExtensions`,`getCustomFormatsFormatters`,`getEditorComponents`,`getEventListeners`,`getLocale`,`getMediaLibrary`,`getPreviewStyles`,`getPreviewTemplate`,`getRemarkPlugins`,`getWidget`,`getWidgetValueSerializer`,`getWidgets`,`invokeEvent`,`moment`,`registerBackend`,`registerMediaLibrary`,`registerWidgetValueSerializer`,`removeEventListener`,`resolveWidget`,`registerLocale`,`registerRemarkPlugin`]})))()}var H9,U9,W9,G9,K9,q9,J9,Y9,X9;function PFe(){return(PFe=s((()=>{v(),oc(),AFe(),NFe(),z4(),yI(),fI(),UH(),H9=!1,U9=async({config:e}={})=>{if(e!==void 0&&!g(e))throw TypeError("The `config` option for `CMS.init()` must be an object");H9||(H9=!0,document.readyState===`loading`&&!document.querySelector(`#nc-root`)&&await new Promise(e=>{window.addEventListener(`DOMContentLoaded`,()=>e(void 0),{once:!0})}),Fa(SFe,{target:document.querySelector(`#nc-root`)??document.body,props:{config:e}}))},W9=(e,t,{fromFile:n,toFile:r}={})=>{if(!zH(e))throw TypeError("The `name` option for `CMS.registerCustomFormat()` must be a non-empty string");if(!zH(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");hI.set(e,{extension:t,parser:n,formatter:r})},G9=e=>{if(!e||typeof e!=`object`)throw TypeError("The `definition` option for `CMS.registerEditorComponent()` must be an object");if(!zH(e.id))throw TypeError("The `definition.id` must be a non-empty string");if(!zH(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");pI.set(e.id,e)},K9=e=>{if(!g(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(!L4.includes(t))throw RangeError(`Unsupported event listener name "${t}". Supported names are: ${L4.join(`, `)}`);vI.add(e)},q9=(e,{raw:t=!1}={})=>{if(!zH(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;gI.add(r)},J9=(e,t)=>{if(!zH(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");_I.set(e,t)},Y9=(e,t,n,r)=>{if(!zH(e))throw TypeError("The `name` option for `CMS.registerFieldType()` must be a non-empty string");if(lI.includes(e))throw Error(`The field type name "${e}" is reserved for a built-in field type. Choose a different name for your custom field type.`);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&&!g(r))throw TypeError("The `schema` option for `CMS.registerFieldType()` must be an object");mI.set(e,{control:t,preview:n,schema:r})},X9=new Proxy({init:U9,registerCustomFormat:W9,registerEditorComponent:G9,registerEventListener:K9,registerFieldType:Y9,registerPreviewStyle:q9,registerPreviewTemplate:J9,registerWidget:Y9},{get:(e,t)=>{if(t in e)return e[t];let n=``;if(MFe.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,jFe),()=>void 0}})})))()}var FFe,Z9,IFe,Q9;function $9(){return($9=s((()=>{FFe=u(h(),1),Z9=f(),PFe(),IFe=X9,window.CMS=X9,window.initCMS=U9,window.createClass=FFe.default,window.createElement=Z9.createElement,window.h=Z9.createElement,window.rf=Z9.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."),Q9=document.querySelector(`script[src$="/sveltia-cms.js"]`),Q9?.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 Widget is not supported in Sveltia CMS.`),!window.CMS_MANUAL_INIT&&(document.currentScript||Q9)&&U9()})))()}return $9(),e.default=IFe,e.init=U9,e.registerCustomFormat=W9,e.registerEditorComponent=G9,e.registerEventListener=K9,e.registerFieldType=Y9,e.registerWidget=Y9,e.registerPreviewStyle=q9,e.registerPreviewTemplate=J9,e})({});
|
||
//# sourceMappingURL=sveltia-cms.js.map |