1
0
Fork 0
obsidian-vault-starter/.obsidian/plugins/obsidian-kanban/main.js

114 lines
677 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source visit the plugins github repository
*/
const requestAnimationFrame = (cb) => activeWindow.requestAnimationFrame(cb);
const cancelAnimationFrame = (id) => activeWindow.cancelAnimationFrame(id);
const setTimeout = (...args) => activeWindow.setTimeout(...args);
const clearTimeout = (id) => activeWindow.clearTimeout(id);
var qw=Object.create;var Ba=Object.defineProperty;var Yw=Object.getOwnPropertyDescriptor;var Jw=Object.getOwnPropertyNames;var Gw=Object.getPrototypeOf,Qw=Object.prototype.hasOwnProperty;var Qd=e=>Ba(e,"__esModule",{value:!0});var nl=(e,t)=>()=>(e&&(t=e(e=0)),t);var dt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ti=(e,t)=>{Qd(e);for(var r in t)Ba(e,r,{get:t[r],enumerable:!0})},Xw=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Jw(t))!Qw.call(e,n)&&n!=="default"&&Ba(e,n,{get:()=>t[n],enumerable:!(r=Yw(t,n))||r.enumerable});return e},ye=e=>Xw(Qd(Ba(e!=null?qw(Gw(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);function On(e,t){for(var r in t)e[r]=t[r];return e}function rf(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,r){var n,i,a,o={};for(a in t)a=="key"?n=t[a]:a=="ref"?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?Mi.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return Ai(e,o,n,i,null)}function Ai(e,t,r,n,i){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Xd};return i==null&&fe.vnode!=null&&fe.vnode(a),a}function Li(){return{current:null}}function S(e){return e.children}function vt(e,t){this.props=e,this.context=t}function Ur(e,t){if(t==null)return e.__?Ur(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Ur(e):null}function af(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return af(e)}}function rl(e){(!e.__d&&(e.__d=!0)&&Ii.push(e)&&!$a.__r++||ef!==fe.debounceRendering)&&((ef=fe.debounceRendering)||Zd)($a)}function $a(){for(var e;$a.__r=Ii.length;)e=Ii.sort(function(t,r){return t.__v.__b-r.__v.__b}),Ii=[],e.some(function(t){var r,n,i,a,o,s;t.__d&&(o=(a=(r=t).__v).__e,(s=r.__P)&&(n=[],(i=On({},a)).__v=a.__v+1,il(s,a,i,r.__n,s.ownerSVGElement!==void 0,a.__h!=null?[o]:null,n,o??Ur(a),a.__h),ff(n,a),a.__e!=o&&af(a)))})}function of(e,t,r,n,i,a,o,s,u,l){var c,d,f,p,m,v,b,k=n&&n.__k||nf,T=k.length;for(r.__k=[],c=0;c<t.length;c++)if((p=r.__k[c]=(p=t[c])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Ai(null,p,null,null,p):Array.isArray(p)?Ai(S,{children:p},null,null,null):p.__b>0?Ai(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=r,p.__b=r.__b+1,(f=k[c])===null||f&&p.key==f.key&&p.type===f.type)k[c]=void 0;else for(d=0;d<T;d++){if((f=k[d])&&p.key==f.key&&p.type===f.type){k[d]=void 0;break}f=null}il(e,p,f=f||Ka,i,a,o,s,u,l),m=p.__e,(d=p.ref)&&f.ref!=d&&(b||(b=[]),f.ref&&b.push(f.ref,null,p),b.push(d,p.__c||m,p)),m!=null?(v==null&&(v=m),typeof p.type=="function"&&p.__k===f.__k?p.__d=u=sf(p,u,e):u=lf(e,p,f,k,m,u),typeof r.type=="function"&&(r.__d=u)):u&&f.__e==u&&u.parentNode!=e&&(u=Ur(f))}for(r.__e=v,c=T;c--;)k[c]!=null&&(typeof r.type=="function"&&k[c].__e!=null&&k[c].__e==r.__d&&(r.__d=Ur(n,c+1)),hf(k[c],k[c]));if(b)for(c=0;c<b.length;c++)pf(b[c],b[++c],b[++c])}function sf(e,t,r){for(var n,i=e.__k,a=0;i&&a<i.length;a++)(n=i[a])&&(n.__=e,t=typeof n.type=="function"?sf(n,t,r):lf(r,n,n,i,n.__e,t));return t}function qt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){qt(r,t)}):t.push(e)),t}function lf(e,t,r,n,i,a){var o,s,u;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(r==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,u=0;(s=s.nextSibling)&&u<n.length;u+=2)if(s==i)break e;e.insertBefore(i,a),o=a}return o!==void 0?o:i.nextSibling}function tE(e,t,r,n,i){var a;for(a in r)a==="children"||a==="key"||a in t||Ua(e,a,null,r[a],n);for(a in t)i&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||r[a]===t[a]||Ua(e,a,t[a],r[a],n)}function cf(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||eE.test(t)?r:r+"px"}function Ua(e,t,r,n,i){var a;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||cf(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||cf(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n||e.addEventListener(t,a?df:uf,a):e.removeEventListener(t,a?df:uf,a);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=r??"";break e}catch(o){}typeof r=="function"||(r!=null&&(r!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,r):e.removeAttribute(t))}}function uf(e){this.l[e.type+!1](fe.event?fe.event(e):e)}function df(e){this.l[e.type+!0](fe.event?fe.event(e):e)}function il(e,t,r,n,i,a,o,s,u){var l,c,d,f,p,m,v,b,k,T,D,I,H,C=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,s=t.__e=r.__e,t.__h=null,a=[s]),(l=fe.__b)&&l(t);try{e:if(typeof C=="function"){if(b=t.props,k=(l=C.contextType)&&n[l.__c],T=l?k?k.props.value:l.__:n,r.__c?v=(c=t.__c=r.__c).__=c.__E:("prototype"in C&&C.prototype.render?t.__c=c=new C(b,T):(t.__c=c=new vt(b,T),c.constructor=C,c.render=rE),k&&k.sub(c),c.props=b,c.state||(c.state={}),c.context=T,c.__n=n,d=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),C.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=On({},c.__s)),On(c.__s,C.getDerivedStateFromProps(b,c.__s))),f=c.props,p=c.state,d)C.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(C.getDerivedStateFromProps==null&&b!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(b,T),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(b,c.__s,T)===!1||t.__v===r.__v){c.props=b,c.state=c.__s,t.__v!==r.__v&&(c.__d=!1),c.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(F){F&&(F.__=t)}),c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(b,c.__s,T),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,p,m)})}if(c.context=T,c.props=b,c.__v=t,c.__P=e,D=fe.__r,I=0,"prototype"in C&&C.prototype.render)c.state=c.__s,c.__d=!1,D&&D(t),l=c.render(c.props,c.state,c.context);else do c.__d=!1,D&&D(t),l=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++I<25);c.state=c.__s,c.getChildContext!=null&&(n=On(On({},n),c.getChildContext())),d||c.getSnapshotBeforeUpdate==null||(m=c.getSnapshotBeforeUpdate(f,p)),H=l!=null&&l.type===S&&l.key==null?l.props.children:l,of(e,Array.isArray(H)?H:[H],t,r,n,i,a,o,s,u),c.base=t.__e,t.__h=null,c.__h.length&&o.push(c),v&&(c.__E=c.__=null),c.__e=!1}else a==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=nE(r.__e,t,r,n,i,a,o,u);(l=fe.diffed)&&l(t)}catch(F){t.__v=null,(u||a!=null)&&(t.__e=s,t.__h=!!u,a[a.indexOf(s)]=null),fe.__e(F,t,r)}}function ff(e,t){fe.__c&&fe.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){fe.__e(n,r.__v)}})}function nE(e,t,r,n,i,a,o,s){var u,l,c,d=r.props,f=t.props,p=t.type,m=0;if(p==="svg"&&(i=!0),a!=null){for(;m<a.length;m++)if((u=a[m])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){e=u,a[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),a=null,s=!1}if(p===null)d===f||s&&e.data===f||(e.data=f);else{if(a=a&&Mi.call(e.childNodes),l=(d=r.props||Ka).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!s){if(a!=null)for(d={},m=0;m<e.attributes.length;m++)d[e.attributes[m].name]=e.attributes[m].value;(c||l)&&(c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(tE(e,f,d,i,s),c)t.__k=[];else if(m=t.props.children,of(e,Array.isArray(m)?m:[m],t,r,n,i&&p!=="foreignObject",a,o,a?a[0]:r.__k&&Ur(r,0),s),a!=null)for(m=a.length;m--;)a[m]!=null&&rf(a[m]);s||("value"in f&&(m=f.value)!==void 0&&(m!==e.value||p==="progress"&&!m||p==="option"&&m!==d.value)&&Ua(e,"value",m,d.value,!1),"checked"in f&&(m=f.checked)!==void 0&&m!==e.checked&&Ua(e,"checked",m,d.checked,!1))}return e}function pf(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){fe.__e(n,r)}}function hf(e,t,r){var n,i;if(fe.unmount&&fe.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||pf(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){fe.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&hf(n[i],t,typeof e.type!="function");r||e.__e==null||rf(e.__e),e.__e=e.__d=void 0}function rE(e,t,r){return this.constructor(e,r)}function yr(e,t,r){var n,i,a;fe.__&&fe.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,a=[],il(t,e=(!n&&r||t).__k=y(S,null,[e]),i||Ka,Ka,t.ownerSVGElement!==void 0,!n&&r?[r]:i?null:t.firstChild?Mi.call(t.childNodes):null,a,!n&&r?r:i?i.__e:t.firstChild,n),ff(a,e)}function Wa(e,t){yr(e,t,Wa)}function al(e,t,r){var n,i,a,o=On({},e.props);for(a in t)a=="key"?n=t[a]:a=="ref"?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?Mi.call(arguments,2):r),Ai(e.type,o,n||e.key,i||e.ref,null)}function Pi(e,t){var r={__c:t="__cC"+tf++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,a;return this.getChildContext||(i=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(rl)},this.sub=function(o){i.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),s&&s.call(o)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}var Mi,fe,Xd,Zw,Ii,Zd,ef,tf,Ka,nf,eE,vr=nl(()=>{h();Ka={},nf=[],eE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;Mi=nf.slice,fe={__e:function(e,t,r,n){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(s){e=s}throw e}},Xd=0,Zw=function(e){return e!=null&&e.constructor===void 0},vt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=On({},this.state),typeof e=="function"&&(e=e(On({},r),this.props)),e&&On(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),rl(this))},vt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),rl(this))},vt.prototype.render=S,Ii=[],Zd=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$a.__r=0,tf=0});var h=nl(()=>{vr()});var _t=dt((kn,$f)=>{h();"use strict";Object.defineProperty(kn,"__esModule",{value:!0});function vn(e){return typeof e=="object"&&!("toString"in e)?Object.prototype.toString.call(e).slice(8,-1):e}var IE=typeof process=="object"&&!0;function cn(e,t){if(!e)throw IE?new Error("Invariant failed"):new Error(t())}kn.invariant=cn;var ml=Object.prototype.hasOwnProperty,AE=Array.prototype.splice,LE=Object.prototype.toString;function br(e){return LE.call(e).slice(8,-1)}var Ga=Object.assign||function(e,t){return gl(t).forEach(function(r){ml.call(t,r)&&(e[r]=t[r])}),e},gl=typeof Object.getOwnPropertySymbols=="function"?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function Xn(e){return Array.isArray(e)?Ga(e.constructor(e.length),e):br(e)==="Map"?new Map(e):br(e)==="Set"?new Set(e):e&&typeof e=="object"?Ga(Object.create(Object.getPrototypeOf(e)),e):e}var Rf=function(){function e(){this.commands=Ga({},PE),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,r){return t===r},this.update.newContext=function(){return new e().update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),e.prototype.extend=function(t,r){this.commands[t]=r},e.prototype.update=function(t,r){var n=this,i=typeof r=="function"?{$apply:r}:r;Array.isArray(t)&&Array.isArray(i)||cn(!Array.isArray(i),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),cn(typeof i=="object"&&i!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(n.commands).join(", ")+".")});var a=t;return gl(i).forEach(function(o){if(ml.call(n.commands,o)){var s=t===a;a=n.commands[o](i[o],a,i,t),s&&n.isEquals(a,t)&&(a=t)}else{var u=br(t)==="Map"?n.update(t.get(o),i[o]):n.update(t[o],i[o]),l=br(a)==="Map"?a.get(o):a[o];(!n.isEquals(u,l)||typeof u=="undefined"&&!ml.call(t,o))&&(a===t&&(a=Xn(t)),br(a)==="Map"?a.set(o,u):a[o]=u)}}),a},e}();kn.Context=Rf;var PE={$push:function(e,t,r){return Hf(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return Hf(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,n){return FE(t,r),e.forEach(function(i){Bf(i),t===n&&i.length&&(t=Xn(n)),AE.apply(t,i)}),t},$set:function(e,t,r){return NE(r),e},$toggle:function(e,t){$i(e,"$toggle");var r=e.length?Xn(t):t;return e.forEach(function(n){r[n]=!t[n]}),r},$unset:function(e,t,r,n){return $i(e,"$unset"),e.forEach(function(i){Object.hasOwnProperty.call(t,i)&&(t===n&&(t=Xn(n)),delete t[i])}),t},$add:function(e,t,r,n){return Kf(t,"$add"),$i(e,"$add"),br(t)==="Map"?e.forEach(function(i){var a=i[0],o=i[1];t===n&&t.get(a)!==o&&(t=Xn(n)),t.set(a,o)}):e.forEach(function(i){t===n&&!t.has(i)&&(t=Xn(n)),t.add(i)}),t},$remove:function(e,t,r,n){return Kf(t,"$remove"),$i(e,"$remove"),e.forEach(function(i){t===n&&t.has(i)&&(t=Xn(n)),t.delete(i)}),t},$merge:function(e,t,r,n){return RE(t,e),gl(e).forEach(function(i){e[i]!==t[i]&&(t===n&&(t=Xn(n)),t[i]=e[i])}),t},$apply:function(e,t){return OE(e),e(t)}},yl=new Rf;kn.isEquals=yl.update.isEquals;kn.extend=yl.extend;kn.default=yl.update;kn.default.default=$f.exports=Ga(kn.default,kn);function Hf(e,t,r){cn(Array.isArray(e),function(){return"update(): expected target of "+vn(r)+" to be an array; got "+vn(e)+"."}),$i(t[r],r)}function $i(e,t){cn(Array.isArray(e),function(){return"update(): expected spec of "+vn(t)+" to be an array; got "+vn(e)+". Did you forget to wrap your parameter in an array?"})}function FE(e,t){cn(Array.isArray(e),function(){return"Expected $splice target to be an array; got "+vn(e)}),Bf(t.$splice)}function Bf(e){cn(Array.isArray(e),function(){return"update(): expected spec of $splice to be an array of arrays; got "+vn(e)+". Did you forget to wrap your parameters in an array?"})}function OE(e){cn(typeof e=="function",function(){return"update(): expected spec of $apply to be a function; got "+vn(e)+"."})}function NE(e){cn(Object.keys(e).length===1,function(){return"Cannot have more than one key in an object with $set"})}function RE(e,t){cn(t&&typeof t=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+vn(t)}),cn(e&&typeof e=="object",function(){return"update(): $merge expects a target of type 'object'; got "+vn(e)})}function Kf(e,t){var r=br(e);cn(r==="Map"||r==="Set",function(){return"update(): "+vn(t)+" expects a target of type Set or Map; got "+vn(r)})}});var zf=dt((fT,Vf)=>{h();"use strict";var HE=function(t){return BE(t)&&!KE(t)};function BE(e){return!!e&&typeof e=="object"}function KE(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||WE(e)}var $E=typeof Symbol=="function"&&Symbol.for,UE=$E?Symbol.for("react.element"):60103;function WE(e){return e.$$typeof===UE}function VE(e){return Array.isArray(e)?[]:{}}function Ui(e,t){return t.clone!==!1&&t.isMergeableObject(e)?zr(VE(e),e,t):e}function zE(e,t,r){return e.concat(t).map(function(n){return Ui(n,r)})}function jE(e,t){if(!t.customMerge)return zr;var r=t.customMerge(e);return typeof r=="function"?r:zr}function qE(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function Uf(e){return Object.keys(e).concat(qE(e))}function Wf(e,t){try{return t in e}catch(r){return!1}}function YE(e,t){return Wf(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function JE(e,t,r){var n={};return r.isMergeableObject(e)&&Uf(e).forEach(function(i){n[i]=Ui(e[i],r)}),Uf(t).forEach(function(i){YE(e,i)||(Wf(e,i)&&r.isMergeableObject(t[i])?n[i]=jE(i,r)(e[i],t[i],r):n[i]=Ui(t[i],r))}),n}function zr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||zE,r.isMergeableObject=r.isMergeableObject||HE,r.cloneUnlessOtherwiseSpecified=Ui;var n=Array.isArray(t),i=Array.isArray(e),a=n===i;return a?n?r.arrayMerge(e,t,r):JE(e,t,r):Ui(t,r)}zr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return zr(n,i,r)},{})};var GE=zr;Vf.exports=GE});var ao=dt(rt=>{h();"use strict";var Tl=32;rt.INT_BITS=Tl;rt.INT_MAX=2147483647;rt.INT_MIN=-1<<Tl-1;rt.sign=function(e){return(e>0)-(e<0)};rt.abs=function(e){var t=e>>Tl-1;return(e^t)-t};rt.min=function(e,t){return t^(e^t)&-(e<t)};rt.max=function(e,t){return e^(e^t)&-(e<t)};rt.isPow2=function(e){return!(e&e-1)&&!!e};rt.log2=function(e){var t,r;return t=(e>65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};rt.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};rt.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function sp(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}rt.countTrailingZeros=sp;rt.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};rt.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};rt.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Ji=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<<i&255}})(Ji);rt.reverse=function(e){return Ji[e&255]<<24|Ji[e>>>8&255]<<16|Ji[e>>>16&255]<<8|Ji[e>>>24&255]};rt.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};rt.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};rt.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};rt.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};rt.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>sp(e)+1}});var up=dt((zT,cp)=>{h();"use strict";function lp(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a<n;++a)i[a]=t;else for(a=0;a<n;++a)i[a]=lp(e,t,r+1);return i}function sx(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function lx(e,t){switch(typeof t=="undefined"&&(t=0),typeof e){case"number":if(e>0)return sx(e|0,t);break;case"object":if(typeof e.length=="number")return lp(e,t,0);break}return[]}cp.exports=lx});var Ip={};Ti(Ip,{Buffer:()=>ne,INSPECT_MAX_BYTES:()=>mp,SlowBuffer:()=>bx,isBuffer:()=>Tp,kMaxLength:()=>hx});function dp(){Ml=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Dn[t]=e[t],un[e.charCodeAt(t)]=t;un["-".charCodeAt(0)]=62,un["_".charCodeAt(0)]=63}function ux(e){Ml||dp();var t,r,n,i,a,o,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=e[s-2]==="="?2:e[s-1]==="="?1:0,o=new cx(s*3/4-a),n=a>0?s-4:s;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=un[e.charCodeAt(t)]<<18|un[e.charCodeAt(t+1)]<<12|un[e.charCodeAt(t+2)]<<6|un[e.charCodeAt(t+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=i&255;return a===2?(i=un[e.charCodeAt(t)]<<2|un[e.charCodeAt(t+1)]>>4,o[u++]=i&255):a===1&&(i=un[e.charCodeAt(t)]<<10|un[e.charCodeAt(t+1)]<<4|un[e.charCodeAt(t+2)]>>2,o[u++]=i>>8&255,o[u++]=i&255),o}function dx(e){return Dn[e>>18&63]+Dn[e>>12&63]+Dn[e>>6&63]+Dn[e&63]}function fx(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(dx(n));return i.join("")}function fp(e){Ml||dp();for(var t,r=e.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(fx(e,s,s+o>u?u:s+o));return n===1?(t=e[r-1],i+=Dn[t>>2],i+=Dn[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=Dn[t>>10],i+=Dn[t>>4&63],i+=Dn[t<<2&63],i+="="),a.push(i),a.join("")}function oo(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<<s)-1,l=u>>1,c=-7,d=r?i-1:0,f=r?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=a*256+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+d],d+=f,c-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(p?-1:1)*o*Math.pow(2,a-n)}function pp(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,c=(1<<l)-1,d=c>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,m=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*u-1)*Math.pow(2,i),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[r+p]=o&255,p+=m,o/=256,l-=8);e[r+p-m]|=v*128}function so(){return ne.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Rn(e,t){if(so()<t)throw new RangeError("Invalid typed array length");return ne.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=ne.prototype):(e===null&&(e=new ne(t)),e.length=t),e}function ne(e,t,r){if(!ne.TYPED_ARRAY_SUPPORT&&!(this instanceof ne))return new ne(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Il(this,e)}return gp(this,e,t,r)}function gp(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?yx(e,t,r,n):typeof t=="string"?gx(e,t,r):vx(e,t)}function yp(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function mx(e,t,r,n){return yp(t),t<=0?Rn(e,t):r!==void 0?typeof n=="string"?Rn(e,t).fill(r,n):Rn(e,t).fill(r):Rn(e,t)}function Il(e,t){if(yp(t),e=Rn(e,t<0?0:Ll(t)|0),!ne.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function gx(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!ne.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=vp(t,r)|0;e=Rn(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function Al(e,t){var r=t.length<0?0:Ll(t.length)|0;e=Rn(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function yx(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),ne.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=ne.prototype):e=Al(e,t),e}function vx(e,t){if(Cn(t)){var r=Ll(t.length)|0;return e=Rn(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||Hx(t.length)?Rn(e,0):Al(e,t);if(t.type==="Buffer"&&hp(t.data))return Al(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Ll(e){if(e>=so())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+so().toString(16)+" bytes");return e|0}function bx(e){return+e!=e&&(e=0),ne.alloc(+e)}function Cn(e){return!!(e!=null&&e._isBuffer)}function vp(e,t){if(Cn(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return uo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Cp(e).length;default:if(n)return uo(e).length;t=(""+t).toLowerCase(),n=!0}}function wx(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ix(this,t,r);case"utf8":case"utf-8":return xp(this,t,r);case"ascii":return Tx(this,t,r);case"latin1":case"binary":return Mx(this,t,r);case"base64":return Dx(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ax(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Er(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function bp(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ne.from(t,n)),Cn(t))return t.length===0?-1:wp(e,t,r,n,i);if(typeof t=="number")return t=t&255,ne.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):wp(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function wp(e,t,r,n,i){var a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(p,m){return a===1?p[m]:p.readUInt16BE(m*a)}var l;if(i){var c=-1;for(l=r;l<o;l++)if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1&&(c=l),l-c+1===s)return c*a}else c!==-1&&(l-=l-c),c=-1}else for(r+s>o&&(r=o-s),l=r;l>=0;l--){for(var d=!0,f=0;f<s;f++)if(u(e,l+f)!==u(t,f)){d=!1;break}if(d)return l}return-1}function Ex(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function xx(e,t,r,n){return fo(uo(t,e.length-r),e,r,n)}function Ep(e,t,r,n){return fo(Nx(t),e,r,n)}function kx(e,t,r,n){return Ep(e,t,r,n)}function Sx(e,t,r,n){return fo(Cp(t),e,r,n)}function _x(e,t,r,n){return fo(Rx(t,e.length-r),e,r,n)}function Dx(e,t,r){return t===0&&r===e.length?fp(e):fp(e.slice(t,r))}function xp(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var u,l,c,d;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)==128&&(d=(a&31)<<6|u&63,d>127&&(o=d));break;case 3:u=e[i+1],l=e[i+2],(u&192)==128&&(l&192)==128&&(d=(a&15)<<12|(u&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],(u&192)==128&&(l&192)==128&&(c&192)==128&&(d=(a&15)<<18|(u&63)<<12|(l&63)<<6|c&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return Cx(n)}function Cx(e){var t=e.length;if(t<=kp)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=kp));return r}function Tx(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Mx(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Ix(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=Ox(e[a]);return i}function Ax(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}function Et(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Yt(e,t,r,n,i,a){if(!Cn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function lo(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function co(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function Sp(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _p(e,t,r,n,i){return i||Sp(e,t,r,4),pp(e,t,r,n,23,4),r+4}function Dp(e,t,r,n,i){return i||Sp(e,t,r,8),pp(e,t,r,n,52,8),r+8}function Px(e){if(e=Fx(e).replace(Lx,""),e.length<2)return"";for(;e.length%4!=0;)e=e+"=";return e}function Fx(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Ox(e){return e<16?"0"+e.toString(16):e.toString(16)}function uo(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Nx(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Rx(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Cp(e){return ux(Px(e))}function fo(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Hx(e){return e!==e}function Tp(e){return e!=null&&(!!e._isBuffer||Mp(e)||Bx(e))}function Mp(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Bx(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Mp(e.slice(0,0))}var Dn,un,cx,Ml,px,hp,mp,hx,kp,Lx,Ap=nl(()=>{h();Dn=[],un=[],cx=typeof Uint8Array!="undefined"?Uint8Array:Array,Ml=!1;px={}.toString,hp=Array.isArray||function(e){return px.call(e)=="[object Array]"};mp=50;ne.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:!0;hx=so();ne.poolSize=8192;ne._augment=function(e){return e.__proto__=ne.prototype,e};ne.from=function(e,t,r){return gp(null,e,t,r)};ne.TYPED_ARRAY_SUPPORT&&(ne.prototype.__proto__=Uint8Array.prototype,ne.__proto__=Uint8Array);ne.alloc=function(e,t,r){return mx(null,e,t,r)};ne.allocUnsafe=function(e){return Il(null,e)};ne.allocUnsafeSlow=function(e){return Il(null,e)};ne.isBuffer=Tp;ne.compare=function(t,r){if(!Cn(t)||!Cn(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(t[a]!==r[a]){n=t[a],i=r[a];break}return n<i?-1:i<n?1:0};ne.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};ne.concat=function(t,r){if(!hp(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return ne.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=ne.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){var o=t[n];if(!Cn(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};ne.byteLength=vp;ne.prototype._isBuffer=!0;ne.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Er(this,r,r+1);return this};ne.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Er(this,r,r+3),Er(this,r+1,r+2);return this};ne.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Er(this,r,r+7),Er(this,r+1,r+6),Er(this,r+2,r+5),Er(this,r+3,r+4);return this};ne.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?xp(this,0,t):wx.apply(this,arguments)};ne.prototype.equals=function(t){if(!Cn(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:ne.compare(this,t)===0};ne.prototype.inspect=function(){var t="",r=mp;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"};ne.prototype.compare=function(t,r,n,i,a){if(!Cn(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;for(var o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),c=t.slice(r,n),d=0;d<u;++d)if(l[d]!==c[d]){o=l[d],s=c[d];break}return o<s?-1:s<o?1:0};ne.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};ne.prototype.indexOf=function(t,r,n){return bp(this,t,r,n,!0)};ne.prototype.lastIndexOf=function(t,r,n){return bp(this,t,r,n,!1)};ne.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Ex(this,t,r,n);case"utf8":case"utf-8":return xx(this,t,r,n);case"ascii":return Ep(this,t,r,n);case"latin1":case"binary":return kx(this,t,r,n);case"base64":return Sx(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _x(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ne.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};kp=4096;ne.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(ne.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=ne.prototype;else{var a=r-t;i=new ne(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+t]}return i};ne.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Et(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return i};ne.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Et(t,r,this.length);for(var i=this[t+--r],a=1;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ne.prototype.readUInt8=function(t,r){return r||Et(t,1,this.length),this[t]};ne.prototype.readUInt16LE=function(t,r){return r||Et(t,2,this.length),this[t]|this[t+1]<<8};ne.prototype.readUInt16BE=function(t,r){return r||Et(t,2,this.length),this[t]<<8|this[t+1]};ne.prototype.readUInt32LE=function(t,r){return r||Et(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ne.prototype.readUInt32BE=function(t,r){return r||Et(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ne.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Et(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};ne.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Et(t,r,this.length);for(var i=r,a=1,o=this[t+--i];i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ne.prototype.readInt8=function(t,r){return r||Et(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ne.prototype.readInt16LE=function(t,r){r||Et(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ne.prototype.readInt16BE=function(t,r){r||Et(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ne.prototype.readInt32LE=function(t,r){return r||Et(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ne.prototype.readInt32BE=function(t,r){return r||Et(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ne.prototype.readFloatLE=function(t,r){return r||Et(t,4,this.length),oo(this,t,!0,23,4)};ne.prototype.readFloatBE=function(t,r){return r||Et(t,4,this.length),oo(this,t,!1,23,4)};ne.prototype.readDoubleLE=function(t,r){return r||Et(t,8,this.length),oo(this,t,!0,52,8)};ne.prototype.readDoubleBE=function(t,r){return r||Et(t,8,this.length),oo(this,t,!1,52,8)};ne.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;Yt(this,t,r,n,a,0)}var o=1,s=0;for(this[r]=t&255;++s<n&&(o*=256);)this[r+s]=t/o&255;return r+n};ne.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;Yt(this,t,r,n,a,0)}var o=n-1,s=1;for(this[r+o]=t&255;--o>=0&&(s*=256);)this[r+o]=t/s&255;return r+n};ne.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,1,255,0),ne.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};ne.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,2,65535,0),ne.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):lo(this,t,r,!0),r+2};ne.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,2,65535,0),ne.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):lo(this,t,r,!1),r+2};ne.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,4,4294967295,0),ne.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):co(this,t,r,!0),r+4};ne.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,4,4294967295,0),ne.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):co(this,t,r,!1),r+4};ne.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);Yt(this,t,r,n,a-1,-a)}var o=0,s=1,u=0;for(this[r]=t&255;++o<n&&(s*=256);)t<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+n};ne.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);Yt(this,t,r,n,a-1,-a)}var o=n-1,s=1,u=0;for(this[r+o]=t&255;--o>=0&&(s*=256);)t<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+n};ne.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,1,127,-128),ne.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};ne.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,2,32767,-32768),ne.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):lo(this,t,r,!0),r+2};ne.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,2,32767,-32768),ne.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):lo(this,t,r,!1),r+2};ne.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,4,2147483647,-2147483648),ne.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):co(this,t,r,!0),r+4};ne.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Yt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),ne.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):co(this,t,r,!1),r+4};ne.prototype.writeFloatLE=function(t,r,n){return _p(this,t,r,!0,n)};ne.prototype.writeFloatBE=function(t,r,n){return _p(this,t,r,!1,n)};ne.prototype.writeDoubleLE=function(t,r,n){return Dp(this,t,r,!0,n)};ne.prototype.writeDoubleBE=function(t,r,n){return Dp(this,t,r,!1,n)};ne.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var a=i-n,o;if(this===t&&n<r&&r<i)for(o=a-1;o>=0;--o)t[o+r]=this[o+n];else if(a<1e3||!ne.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+r]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),r);return a};ne.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var a=t.charCodeAt(0);a<256&&(t=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!ne.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{var s=Cn(t)?t:uo(new ne(t,i).toString()),u=s.length;for(o=0;o<n-r;++o)this[o+r]=s[o%u]}return this};Lx=/[^+\/0-9A-Za-z-_]/g});var Lp=dt((jT,po)=>{h();var xr=(Ap(),Ip);if(xr&&xr.default){po.exports=xr.default;for(let e in xr)po.exports[e]=xr[e]}else xr&&(po.exports=xr)});var go=dt(Re=>{h();"use strict";var rr=ao(),Dt=up(),Pp=Lp().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Dt([32,0]),UINT16:Dt([32,0]),UINT32:Dt([32,0]),BIGUINT64:Dt([32,0]),INT8:Dt([32,0]),INT16:Dt([32,0]),INT32:Dt([32,0]),BIGINT64:Dt([32,0]),FLOAT:Dt([32,0]),DOUBLE:Dt([32,0]),DATA:Dt([32,0]),UINT8C:Dt([32,0]),BUFFER:Dt([32,0])});var Kx=typeof Uint8ClampedArray!="undefined",$x=typeof BigUint64Array!="undefined",Ux=typeof BigInt64Array!="undefined",ot=window.__TYPEDARRAY_POOL;ot.UINT8C||(ot.UINT8C=Dt([32,0]));ot.BIGUINT64||(ot.BIGUINT64=Dt([32,0]));ot.BIGINT64||(ot.BIGINT64=Dt([32,0]));ot.BUFFER||(ot.BUFFER=Dt([32,0]));var ho=ot.DATA,mo=ot.BUFFER;Re.free=function(t){if(Pp.isBuffer(t))mo[rr.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=rr.log2(r)|0;ho[n].push(t)}};function Fp(e){if(!!e){var t=e.length||e.byteLength,r=rr.log2(t);ho[r].push(e)}}function Wx(e){Fp(e.buffer)}Re.freeUint8=Re.freeUint16=Re.freeUint32=Re.freeBigUint64=Re.freeInt8=Re.freeInt16=Re.freeInt32=Re.freeBigInt64=Re.freeFloat32=Re.freeFloat=Re.freeFloat64=Re.freeDouble=Re.freeUint8Clamped=Re.freeDataView=Wx;Re.freeArrayBuffer=Fp;Re.freeBuffer=function(t){mo[rr.log2(t.length)].push(t)};Re.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Jt(t);switch(r){case"uint8":return Pl(t);case"uint16":return Op(t);case"uint32":return Np(t);case"int8":return Rp(t);case"int16":return Hp(t);case"int32":return Bp(t);case"float":case"float32":return Kp(t);case"double":case"float64":return $p(t);case"uint8_clamped":return Up(t);case"bigint64":return Vp(t);case"biguint64":return Wp(t);case"buffer":return jp(t);case"data":case"dataview":return zp(t);default:return null}return null};function Jt(e){var e=rr.nextPow2(e),t=rr.log2(e),r=ho[t];return r.length>0?r.pop():new ArrayBuffer(e)}Re.mallocArrayBuffer=Jt;function Pl(e){return new Uint8Array(Jt(e),0,e)}Re.mallocUint8=Pl;function Op(e){return new Uint16Array(Jt(2*e),0,e)}Re.mallocUint16=Op;function Np(e){return new Uint32Array(Jt(4*e),0,e)}Re.mallocUint32=Np;function Rp(e){return new Int8Array(Jt(e),0,e)}Re.mallocInt8=Rp;function Hp(e){return new Int16Array(Jt(2*e),0,e)}Re.mallocInt16=Hp;function Bp(e){return new Int32Array(Jt(4*e),0,e)}Re.mallocInt32=Bp;function Kp(e){return new Float32Array(Jt(4*e),0,e)}Re.mallocFloat32=Re.mallocFloat=Kp;function $p(e){return new Float64Array(Jt(8*e),0,e)}Re.mallocFloat64=Re.mallocDouble=$p;function Up(e){return Kx?new Uint8ClampedArray(Jt(e),0,e):Pl(e)}Re.mallocUint8Clamped=Up;function Wp(e){return $x?new BigUint64Array(Jt(8*e),0,e):null}Re.mallocBigUint64=Wp;function Vp(e){return Ux?new BigInt64Array(Jt(8*e),0,e):null}Re.mallocBigInt64=Vp;function zp(e){return new DataView(Jt(e),0,e)}Re.mallocDataView=zp;function jp(e){e=rr.nextPow2(e);var t=rr.log2(e),r=mo[t];return r.length>0?r.pop():new Pp(e)}Re.mallocBuffer=jp;Re.clearCache=function(){for(var t=0;t<32;++t)ot.UINT8[t].length=0,ot.UINT16[t].length=0,ot.UINT32[t].length=0,ot.INT8[t].length=0,ot.INT16[t].length=0,ot.INT32[t].length=0,ot.FLOAT[t].length=0,ot.DOUBLE[t].length=0,ot.BIGUINT64[t].length=0,ot.BIGINT64[t].length=0,ot.UINT8C[t].length=0,ho[t].length=0,mo[t].length=0}});var Qp=dt((YT,Gp)=>{h();"use strict";Gp.exports=Vx;var yo=32;function Vx(e,t){t<=4*yo?vo(0,t-1,e):wo(0,t-1,e)}function vo(e,t,r){for(var n=2*(e+1),i=e+1;i<=t;++i){for(var a=r[n++],o=r[n++],s=i,u=n-2;s-- >e;){var l=r[u-2],c=r[u-1];if(l<a)break;if(l===a&&c<o)break;r[u]=l,r[u+1]=c,u-=2}r[u]=a,r[u+1]=o}}function qp(e,t,r){e*=2,t*=2;var n=r[e],i=r[e+1];r[e]=r[t],r[e+1]=r[t+1],r[t]=n,r[t+1]=i}function Yp(e,t,r){e*=2,t*=2,r[e]=r[t],r[e+1]=r[t+1]}function zx(e,t,r,n){e*=2,t*=2,r*=2;var i=n[e],a=n[e+1];n[e]=n[t],n[e+1]=n[t+1],n[t]=n[r],n[t+1]=n[r+1],n[r]=i,n[r+1]=a}function Jp(e,t,r,n,i){e*=2,t*=2,i[e]=i[t],i[t]=r,i[e+1]=i[t+1],i[t+1]=n}function Hn(e,t,r){e*=2,t*=2;var n=r[e],i=r[t];return n<i?!1:n===i?r[e+1]>r[t+1]:!0}function bo(e,t,r,n){e*=2;var i=n[e];return i<t?!0:i===t?n[e+1]<r:!1}function wo(e,t,r){var n=(t-e+1)/6|0,i=e+n,a=t-n,o=e+t>>1,s=o-n,u=o+n,l=i,c=s,d=o,f=u,p=a,m=e+1,v=t-1,b=0;Hn(l,c,r)&&(b=l,l=c,c=b),Hn(f,p,r)&&(b=f,f=p,p=b),Hn(l,d,r)&&(b=l,l=d,d=b),Hn(c,d,r)&&(b=c,c=d,d=b),Hn(l,f,r)&&(b=l,l=f,f=b),Hn(d,f,r)&&(b=d,d=f,f=b),Hn(c,p,r)&&(b=c,c=p,p=b),Hn(c,d,r)&&(b=c,c=d,d=b),Hn(f,p,r)&&(b=f,f=p,p=b);for(var k=r[2*c],T=r[2*c+1],D=r[2*f],I=r[2*f+1],H=2*l,C=2*d,F=2*p,U=2*i,z=2*o,ee=2*a,Z=0;Z<2;++Z){var le=r[H+Z],X=r[C+Z],G=r[F+Z];r[U+Z]=le,r[z+Z]=X,r[ee+Z]=G}Yp(s,e,r),Yp(u,t,r);for(var re=m;re<=v;++re)if(bo(re,k,T,r))re!==m&&qp(re,m,r),++m;else if(!bo(re,D,I,r))for(;;)if(bo(v,D,I,r)){bo(v,k,T,r)?(zx(re,m,v,r),++m,--v):(qp(re,v,r),--v);break}else{if(--v<re)break;continue}Jp(e,m-1,k,T,r),Jp(t,v+1,D,I,r),m-2-e<=yo?vo(e,m-2,r):wo(e,m-2,r),t-(v+2)<=yo?vo(v+2,t,r):wo(v+2,t,r),v-m<=yo?vo(m,v,r):wo(m,v,r)}});var Fl=dt((JT,Xp)=>{h();"use strict";Xp.exports={init:qx,sweepBipartite:Yx,sweepComplete:Jx,scanBipartite:Gx,scanComplete:Qx};var st=go(),jx=ao(),Eo=Qp(),nn=1<<28,kr=1024,Ct=st.mallocInt32(kr),Bn=st.mallocInt32(kr),Kn=st.mallocInt32(kr),Sr=st.mallocInt32(kr),Jr=st.mallocInt32(kr),Gi=st.mallocInt32(kr),Ce=st.mallocDouble(kr*8);function qx(e){var t=jx.nextPow2(e);Ct.length<t&&(st.free(Ct),Ct=st.mallocInt32(t)),Bn.length<t&&(st.free(Bn),Bn=st.mallocInt32(t)),Kn.length<t&&(st.free(Kn),Kn=st.mallocInt32(t)),Sr.length<t&&(st.free(Sr),Sr=st.mallocInt32(t)),Jr.length<t&&(st.free(Jr),Jr=st.mallocInt32(t)),Gi.length<t&&(st.free(Gi),Gi=st.mallocInt32(t));var r=8*t;Ce.length<r&&(st.free(Ce),Ce=st.mallocDouble(r))}function Gr(e,t,r,n){var i=t[n],a=e[r-1];e[i]=a,t[a]=i}function Qr(e,t,r,n){e[r]=n,t[n]=r}function Yx(e,t,r,n,i,a,o,s,u,l){for(var c=0,d=2*e,f=e-1,p=d-1,m=r;m<n;++m){var v=a[m],b=d*m;Ce[c++]=i[b+f],Ce[c++]=-(v+1),Ce[c++]=i[b+p],Ce[c++]=v}for(var m=o;m<s;++m){var v=l[m]+nn,k=d*m;Ce[c++]=u[k+f],Ce[c++]=-v,Ce[c++]=u[k+p],Ce[c++]=v}var T=c>>>1;Eo(Ce,T);for(var D=0,I=0,m=0;m<T;++m){var H=Ce[2*m+1]|0;if(H>=nn)H=H-nn|0,Gr(Kn,Sr,I--,H);else if(H>=0)Gr(Ct,Bn,D--,H);else if(H<=-nn){H=-H-nn|0;for(var C=0;C<D;++C){var F=t(Ct[C],H);if(F!==void 0)return F}Qr(Kn,Sr,I++,H)}else{H=-H-1|0;for(var C=0;C<I;++C){var F=t(H,Kn[C]);if(F!==void 0)return F}Qr(Ct,Bn,D++,H)}}}function Jx(e,t,r,n,i,a,o,s,u,l){for(var c=0,d=2*e,f=e-1,p=d-1,m=r;m<n;++m){var v=a[m]+1<<1,b=d*m;Ce[c++]=i[b+f],Ce[c++]=-v,Ce[c++]=i[b+p],Ce[c++]=v}for(var m=o;m<s;++m){var v=l[m]+1<<1,k=d*m;Ce[c++]=u[k+f],Ce[c++]=-v|1,Ce[c++]=u[k+p],Ce[c++]=v|1}var T=c>>>1;Eo(Ce,T);for(var D=0,I=0,H=0,m=0;m<T;++m){var C=Ce[2*m+1]|0,F=C&1;if(m<T-1&&C>>1==Ce[2*m+3]>>1&&(F=2,m+=1),C<0){for(var U=-(C>>1)-1,z=0;z<H;++z){var ee=t(Jr[z],U);if(ee!==void 0)return ee}if(F!==0)for(var z=0;z<D;++z){var ee=t(Ct[z],U);if(ee!==void 0)return ee}if(F!==1)for(var z=0;z<I;++z){var ee=t(Kn[z],U);if(ee!==void 0)return ee}F===0?Qr(Ct,Bn,D++,U):F===1?Qr(Kn,Sr,I++,U):F===2&&Qr(Jr,Gi,H++,U)}else{var U=(C>>1)-1;F===0?Gr(Ct,Bn,D--,U):F===1?Gr(Kn,Sr,I--,U):F===2&&Gr(Jr,Gi,H--,U)}}}function Gx(e,t,r,n,i,a,o,s,u,l,c,d){var f=0,p=2*e,m=t,v=t+e,b=1,k=1;n?k=nn:b=nn;for(var T=i;T<a;++T){var D=T+b,I=p*T;Ce[f++]=o[I+m],Ce[f++]=-D,Ce[f++]=o[I+v],Ce[f++]=D}for(var T=u;T<l;++T){var D=T+k,H=p*T;Ce[f++]=c[H+m],Ce[f++]=-D}var C=f>>>1;Eo(Ce,C);for(var F=0,T=0;T<C;++T){var U=Ce[2*T+1]|0;if(U<0){var D=-U,z=!1;if(D>=nn?(z=!n,D-=nn):(z=!!n,D-=1),z)Qr(Ct,Bn,F++,D);else{var ee=d[D],Z=p*D,le=c[Z+t+1],X=c[Z+t+1+e];e:for(var G=0;G<F;++G){var re=Ct[G],pe=p*re;if(!(X<o[pe+t+1]||o[pe+t+1+e]<le)){for(var he=t+2;he<e;++he)if(c[Z+he+e]<o[pe+he]||o[pe+he+e]<c[Z+he])continue e;var ge=s[re],be;if(n?be=r(ee,ge):be=r(ge,ee),be!==void 0)return be}}}}else Gr(Ct,Bn,F--,U-b)}}function Qx(e,t,r,n,i,a,o,s,u,l,c){for(var d=0,f=2*e,p=t,m=t+e,v=n;v<i;++v){var b=v+nn,k=f*v;Ce[d++]=a[k+p],Ce[d++]=-b,Ce[d++]=a[k+m],Ce[d++]=b}for(var v=s;v<u;++v){var b=v+1,T=f*v;Ce[d++]=l[T+p],Ce[d++]=-b}var D=d>>>1;Eo(Ce,D);for(var I=0,v=0;v<D;++v){var H=Ce[2*v+1]|0;if(H<0){var b=-H;if(b>=nn)Ct[I++]=b-nn;else{b-=1;var C=c[b],F=f*b,U=l[F+t+1],z=l[F+t+1+e];e:for(var ee=0;ee<I;++ee){var Z=Ct[ee],le=o[Z];if(le===C)break;var X=f*Z;if(!(z<a[X+t+1]||a[X+t+1+e]<U)){for(var G=t+2;G<e;++G)if(l[F+G+e]<a[X+G]||a[X+G+e]<l[F+G])continue e;var re=r(le,C);if(re!==void 0)return re}}}}else{for(var b=H-nn,ee=I-1;ee>=0;--ee)if(Ct[ee]===b){for(var G=ee+1;G<I;++G)Ct[G-1]=Ct[G];break}--I}}}});var rh=dt($l=>{h();"use strict";var _r="d",Xr="ax",Zp="vv",Ol="fp",Qi="es",xo="rs",Nl="re",Xi="rb",eh="ri",Zr="rp",ko="bs",Rl="be",Zi="bb",th="bi",ei="bp",Hl="rv",Bl="Q",Kl=[_r,Xr,Zp,xo,Nl,Xi,eh,ko,Rl,Zi,th];function Xx(e,t,r){var n="bruteForce"+(e?"Red":"Blue")+(t?"Flip":"")+(r?"Full":""),i=["function ",n,"(",Kl.join(),"){","var ",Qi,"=2*",_r,";"],a="for(var i="+xo+","+Zr+"="+Qi+"*"+xo+";i<"+Nl+";++i,"+Zr+"+="+Qi+"){var x0="+Xi+"["+Xr+"+"+Zr+"],x1="+Xi+"["+Xr+"+"+Zr+"+"+_r+"],xi="+eh+"[i];",o="for(var j="+ko+","+ei+"="+Qi+"*"+ko+";j<"+Rl+";++j,"+ei+"+="+Qi+"){var y0="+Zi+"["+Xr+"+"+ei+"],"+(r?"y1="+Zi+"["+Xr+"+"+ei+"+"+_r+"],":"")+"yi="+th+"[j];";return e?i.push(a,Bl,":",o):i.push(o,Bl,":",a),r?i.push("if(y1<x0||x1<y0)continue;"):t?i.push("if(y0<=x0||x1<y0)continue;"):i.push("if(y0<x0||x1<y0)continue;"),i.push("for(var k="+Xr+"+1;k<"+_r+";++k){var r0="+Xi+"[k+"+Zr+"],r1="+Xi+"[k+"+_r+"+"+Zr+"],b0="+Zi+"[k+"+ei+"],b1="+Zi+"[k+"+_r+"+"+ei+"];if(r1<b0||b1<r0)continue "+Bl+";}var "+Hl+"="+Zp+"("),t?i.push("yi,xi"):i.push("xi,yi"),i.push(");if("+Hl+"!==void 0)return "+Hl+";}}}"),{name:n,code:i.join("")}}function nh(e){var t="bruteForce"+(e?"Full":"Partial"),r=[],n=Kl.slice();e||n.splice(3,0,Ol);var i=["function "+t+"("+n.join()+"){"];function a(u,l){var c=Xx(u,l,e);r.push(c.code),i.push("return "+c.name+"("+Kl.join()+");")}i.push("if("+Nl+"-"+xo+">"+Rl+"-"+ko+"){"),e?(a(!0,!1),i.push("}else{"),a(!1,!1)):(i.push("if("+Ol+"){"),a(!0,!0),i.push("}else{"),a(!0,!1),i.push("}}else{if("+Ol+"){"),a(!1,!0),i.push("}else{"),a(!1,!1),i.push("}")),i.push("}}return "+t);var o=r.join("")+i.join(""),s=new Function(o);return s()}$l.partial=nh(!1);$l.full=nh(!0)});var Ul=dt((QT,ih)=>{h();"use strict";ih.exports=ek;var Zx="for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m";function ek(e,t){var r="abcdef".split("").concat(t),n=[];return e.indexOf("lo")>=0&&n.push("lo=e[k+n]"),e.indexOf("hi")>=0&&n.push("hi=e[k+o]"),r.push(Zx.replace("_",n.join()).replace("$",e)),Function.apply(void 0,r)}});var sh=dt((XT,oh)=>{h();"use strict";oh.exports=ik;var tk=Ul(),ah=tk("lo<p0",["p0"]),nk=8;function rk(e,t,r,n,i,a){for(var o=2*e,s=o*(r+1)+t,u=r+1;u<n;++u,s+=o)for(var l=i[s],c=u,d=o*(u-1);c>r&&i[d+t]>l;--c,d-=o){for(var f=d,p=d+o,m=0;m<o;++m,++f,++p){var v=i[f];i[f]=i[p],i[p]=v}var b=a[c];a[c]=a[c-1],a[c-1]=b}}function ik(e,t,r,n,i,a){if(n<=r+1)return r;for(var o=r,s=n,u=n+r>>>1,l=2*e,c=u,d=i[l*u+t];o<s;){if(s-o<nk){rk(e,t,o,s,i,a),d=i[l*u+t];break}var f=s-o,p=Math.random()*f+o|0,m=i[l*p+t],v=Math.random()*f+o|0,b=i[l*v+t],k=Math.random()*f+o|0,T=i[l*k+t];m<=b?T>=b?(c=v,d=b):m>=T?(c=p,d=m):(c=k,d=T):b>=T?(c=v,d=b):T>=m?(c=p,d=m):(c=k,d=T);for(var D=l*(s-1),I=l*c,H=0;H<l;++H,++D,++I){var C=i[D];i[D]=i[I],i[I]=C}var F=a[s-1];a[s-1]=a[c],a[c]=F,c=ah(e,t,o,s-1,i,a,d);for(var D=l*(s-1),I=l*c,H=0;H<l;++H,++D,++I){var C=i[D];i[D]=i[I],i[I]=C}var F=a[s-1];if(a[s-1]=a[c],a[c]=F,u<c){for(s=c-1;o<s&&i[l*(s-1)+t]===d;)s-=1;s+=1}else if(c<u)for(o=c+1;o<s&&i[l*o+t]===d;)o+=1;else break}return ah(e,t,r,u,i,a,i[l*u+t])}});var hh=dt((ZT,ph)=>{h();"use strict";ph.exports=yk;var ti=go(),Wl=ao(),lh=rh(),ak=lh.partial,ok=lh.full,ir=Fl(),sk=sh(),ni=Ul(),ch=128,lk=1<<22,ck=1<<22,uk=ni("!(lo>=p0)&&!(p1>=hi)",["p0","p1"]),uh=ni("lo===p0",["p0"]),dk=ni("lo<p0",["p0"]),fk=ni("hi<=p0",["p0"]),dh=ni("lo<=p0&&p0<=hi",["p0"]),pk=ni("lo<p0&&p0<=hi",["p0"]),Vl=6,zl=2,fh=1024,Ut=ti.mallocInt32(fh),Dr=ti.mallocDouble(fh);function hk(e,t){var r=8*Wl.log2(t+1)*(e+1)|0,n=Wl.nextPow2(Vl*r);Ut.length<n&&(ti.free(Ut),Ut=ti.mallocInt32(n));var i=Wl.nextPow2(zl*r);Dr.length<i&&(ti.free(Dr),Dr=ti.mallocDouble(i))}function bn(e,t,r,n,i,a,o,s,u){var l=Vl*e;Ut[l]=t,Ut[l+1]=r,Ut[l+2]=n,Ut[l+3]=i,Ut[l+4]=a,Ut[l+5]=o;var c=zl*e;Dr[c]=s,Dr[c+1]=u}function mk(e,t,r,n,i,a,o,s,u,l,c){var d=2*e,f=u*d,p=l[f+t];e:for(var m=i,v=i*d;m<a;++m,v+=d){var b=o[v+t],k=o[v+t+e];if(!(p<b||k<p)&&!(n&&p===b)){for(var T=s[m],D=t+1;D<e;++D){var b=o[v+D],k=o[v+D+e],I=l[f+D],H=l[f+D+e];if(k<I||H<b)continue e}var C;if(n?C=r(c,T):C=r(T,c),C!==void 0)return C}}}function gk(e,t,r,n,i,a,o,s,u,l){var c=2*e,d=s*c,f=u[d+t];e:for(var p=n,m=n*c;p<i;++p,m+=c){var v=o[p];if(v!==l){var b=a[m+t],k=a[m+t+e];if(!(f<b||k<f)){for(var T=t+1;T<e;++T){var b=a[m+T],k=a[m+T+e],D=u[d+T],I=u[d+T+e];if(k<D||I<b)continue e}var H=r(v,l);if(H!==void 0)return H}}}}function yk(e,t,r,n,i,a,o,s,u){hk(e,n+o);var l=0,c=2*e,d;for(bn(l++,0,0,n,0,o,r?16:0,-1/0,1/0),r||bn(l++,0,0,o,0,n,1,-1/0,1/0);l>0;){l-=1;var f=l*Vl,p=Ut[f],m=Ut[f+1],v=Ut[f+2],b=Ut[f+3],k=Ut[f+4],T=Ut[f+5],D=l*zl,I=Dr[D],H=Dr[D+1],C=T&1,F=!!(T&16),U=i,z=a,ee=s,Z=u;if(C&&(U=s,z=u,ee=i,Z=a),!(T&2&&(v=dk(e,p,m,v,U,z,H),m>=v))&&!(T&4&&(m=fk(e,p,m,v,U,z,I),m>=v))){var le=v-m,X=k-b;if(F){if(e*le*(le+X)<ck){if(d=ir.scanComplete(e,p,t,m,v,U,z,b,k,ee,Z),d!==void 0)return d;continue}}else if(e*Math.min(le,X)<ch){if(d=ak(e,p,t,C,m,v,U,z,b,k,ee,Z),d!==void 0)return d;continue}else if(e*le*X<lk){if(d=ir.scanBipartite(e,p,t,C,m,v,U,z,b,k,ee,Z),d!==void 0)return d;continue}var G=uk(e,p,m,v,U,z,I,H);if(m<G)if(e*(G-m)<ch){if(d=ok(e,p+1,t,m,G,U,z,b,k,ee,Z),d!==void 0)return d}else if(p===e-2){if(C?d=ir.sweepBipartite(e,t,b,k,ee,Z,m,G,U,z):d=ir.sweepBipartite(e,t,m,G,U,z,b,k,ee,Z),d!==void 0)return d}else bn(l++,p+1,m,G,b,k,C,-1/0,1/0),bn(l++,p+1,b,k,m,G,C^1,-1/0,1/0);if(G<v){var re=sk(e,p,b,k,ee,Z),pe=ee[c*re+p],he=uh(e,p,re,k,ee,Z,pe);if(he<k&&bn(l++,p,G,v,he,k,(C|4)+(F?16:0),pe,H),b<re&&bn(l++,p,G,v,b,re,(C|2)+(F?16:0),I,pe),re+1===he){if(F?d=gk(e,p,t,G,v,U,z,re,ee,Z[re]):d=mk(e,p,t,C,G,v,U,z,re,ee,Z[re]),d!==void 0)return d}else if(re<he){var ge;if(F){if(ge=dh(e,p,G,v,U,z,pe),G<ge){var be=uh(e,p,G,ge,U,z,pe);if(p===e-2){if(G<be&&(d=ir.sweepComplete(e,t,G,be,U,z,re,he,ee,Z),d!==void 0)||be<ge&&(d=ir.sweepBipartite(e,t,be,ge,U,z,re,he,ee,Z),d!==void 0))return d}else G<be&&bn(l++,p+1,G,be,re,he,16,-1/0,1/0),be<ge&&(bn(l++,p+1,be,ge,re,he,0,-1/0,1/0),bn(l++,p+1,re,he,be,ge,1,-1/0,1/0))}}else C?ge=pk(e,p,G,v,U,z,pe):ge=dh(e,p,G,v,U,z,pe),G<ge&&(p===e-2?C?d=ir.sweepBipartite(e,t,re,he,ee,Z,G,ge,U,z):d=ir.sweepBipartite(e,t,G,ge,U,z,re,he,ee,Z):(bn(l++,p+1,G,ge,re,he,C,-1/0,1/0),bn(l++,p+1,re,he,G,ge,C^1,-1/0,1/0)))}}}}}});var vh=dt((eM,yh)=>{h();"use strict";yh.exports=xk;var ar=go(),So=Fl(),vk=hh();function bk(e,t){for(var r=0;r<e;++r)if(!(t[r]<=t[r+e]))return!0;return!1}function mh(e,t,r,n){for(var i=0,a=0,o=0,s=e.length;o<s;++o){var u=e[o];if(!bk(t,u)){for(var l=0;l<2*t;++l)r[i++]=u[l];n[a++]=o}}return a}function _o(e,t,r,n){var i=e.length,a=t.length;if(!(i<=0||a<=0)){var o=e[0].length>>>1;if(!(o<=0)){var s,u=ar.mallocDouble(2*o*i),l=ar.mallocInt32(i);if(i=mh(e,o,u,l),i>0){if(o===1&&n)So.init(i),s=So.sweepComplete(o,r,0,i,u,l,0,i,u,l);else{var c=ar.mallocDouble(2*o*a),d=ar.mallocInt32(a);a=mh(t,o,c,d),a>0&&(So.init(i+a),o===1?s=So.sweepBipartite(o,r,0,i,u,l,0,a,c,d):s=vk(o,r,n,i,u,l,a,c,d),ar.free(c),ar.free(d))}ar.free(u),ar.free(l)}return s}}}var ea;function gh(e,t){ea.push([e,t])}function wk(e){return ea=[],_o(e,e,gh,!0),ea}function Ek(e,t){return ea=[],_o(e,t,gh,!1),ea}function xk(e,t,r){var n;switch(arguments.length){case 1:return wk(e);case 2:return typeof t=="function"?_o(e,e,t,!0):Ek(e,t);case 3:return _o(e,t,r,!1);default:throw new Error("box-intersect: Invalid arguments")}}});var Kh=dt((tM,To)=>{h();var bh,wh,Eh,xh,kh,Sh,_h,Dh,Ch,Do,jl,Th,Mh,Ih,ri,Ah,Lh,Ph,Fh,Oh,Nh,Rh,Hh,Bh,Co;(function(e){var t=typeof window=="object"?window:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof To=="object"&&typeof To.exports=="object"?e(r(t,r(To.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(a,o){return n[a]=i?i(a,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])};bh=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function a(){this.constructor=n}n.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)},wh=Object.assign||function(n){for(var i,a=1,o=arguments.length;a<o;a++){i=arguments[a];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Eh=function(n,i){var a={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.indexOf(o)<0&&(a[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(n);s<o.length;s++)i.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(n,o[s])&&(a[o[s]]=n[o[s]]);return a},xh=function(n,i,a,o){var s=arguments.length,u=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,a):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,i,a,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(u=(s<3?l(u):s>3?l(i,a,u):l(i,a))||u);return s>3&&u&&Object.defineProperty(i,a,u),u},kh=function(n,i){return function(a,o){i(a,o,n)}},Sh=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},_h=function(n,i,a,o){function s(u){return u instanceof a?u:new a(function(l){l(u)})}return new(a||(a=Promise))(function(u,l){function c(p){try{f(o.next(p))}catch(m){l(m)}}function d(p){try{f(o.throw(p))}catch(m){l(m)}}function f(p){p.done?u(p.value):s(p.value).then(c,d)}f((o=o.apply(n,i||[])).next())})},Dh=function(n,i){var a={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,s,u,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(p){return d([f,p])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,s&&(u=f[0]&2?s.return:f[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,f[1])).done)return u;switch(s=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return a.label++,{value:f[1],done:!1};case 5:a.label++,s=f[1],f=[0];continue;case 7:f=a.ops.pop(),a.trys.pop();continue;default:if(u=a.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){a=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){a.label=f[1];break}if(f[0]===6&&a.label<u[1]){a.label=u[1],u=f;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(f);break}u[2]&&a.ops.pop(),a.trys.pop();continue}f=i.call(n,a)}catch(p){f=[6,p],s=0}finally{o=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Ch=function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&Co(i,n,a)},Co=Object.create?function(n,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,o,s)}:function(n,i,a,o){o===void 0&&(o=a),n[o]=i[a]},Do=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&n[i],o=0;if(a)return a.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},jl=function(n,i){var a=typeof Symbol=="function"&&n[Symbol.iterator];if(!a)return n;var o=a.call(n),s,u=[],l;try{for(;(i===void 0||i-- >0)&&!(s=o.next()).done;)u.push(s.value)}catch(c){l={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(l)throw l.error}}return u},Th=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(jl(arguments[i]));return n},Mh=function(){for(var n=0,i=0,a=arguments.length;i<a;i++)n+=arguments[i].length;for(var o=Array(n),s=0,i=0;i<a;i++)for(var u=arguments[i],l=0,c=u.length;l<c;l++,s++)o[s]=u[l];return o},Ih=function(n,i,a){if(a||arguments.length===2)for(var o=0,s=i.length,u;o<s;o++)(u||!(o in i))&&(u||(u=Array.prototype.slice.call(i,0,o)),u[o]=i[o]);return n.concat(u||Array.prototype.slice.call(i))},ri=function(n){return this instanceof ri?(this.v=n,this):new ri(n)},Ah=function(n,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=a.apply(n,i||[]),s,u=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(v){o[v]&&(s[v]=function(b){return new Promise(function(k,T){u.push([v,b,k,T])>1||c(v,b)})})}function c(v,b){try{d(o[v](b))}catch(k){m(u[0][3],k)}}function d(v){v.value instanceof ri?Promise.resolve(v.value.v).then(f,p):m(u[0][2],v)}function f(v){c("next",v)}function p(v){c("throw",v)}function m(v,b){v(b),u.shift(),u.length&&c(u[0][0],u[0][1])}},Lh=function(n){var i,a;return i={},o("next"),o("throw",function(s){throw s}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(s,u){i[s]=n[s]?function(l){return(a=!a)?{value:ri(n[s](l)),done:s==="return"}:u?u(l):l}:u}},Ph=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],a;return i?i.call(n):(n=typeof Do=="function"?Do(n):n[Symbol.iterator](),a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a);function o(u){a[u]=n[u]&&function(l){return new Promise(function(c,d){l=n[u](l),s(c,d,l.done,l.value)})}}function s(u,l,c,d){Promise.resolve(d).then(function(f){u({value:f,done:c})},l)}},Fh=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};Oh=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var a in n)a!=="default"&&Object.prototype.hasOwnProperty.call(n,a)&&Co(i,n,a);return r(i,n),i},Nh=function(n){return n&&n.__esModule?n:{default:n}},Rh=function(n,i,a,o){if(a==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!o:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?o:a==="a"?o.call(n):o?o.value:i.get(n)},Hh=function(n,i,a,o,s){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!s:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?s.call(n,a):s?s.value=a:i.set(n,a),a},Bh=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",bh),e("__assign",wh),e("__rest",Eh),e("__decorate",xh),e("__param",kh),e("__metadata",Sh),e("__awaiter",_h),e("__generator",Dh),e("__exportStar",Ch),e("__createBinding",Co),e("__values",Do),e("__read",jl),e("__spread",Th),e("__spreadArrays",Mh),e("__spreadArray",Ih),e("__await",ri),e("__asyncGenerator",Ah),e("__asyncDelegator",Lh),e("__asyncValues",Ph),e("__makeTemplateObject",Fh),e("__importStar",Oh),e("__importDefault",Nh),e("__classPrivateFieldGet",Rh),e("__classPrivateFieldSet",Hh),e("__classPrivateFieldIn",Bh)})});var Ql=dt(Le=>{h();"use strict";Object.defineProperty(Le,"__esModule",{value:!0});var tt=require("obsidian"),Jl="YYYY-MM-DD",Gl="gggg-[W]ww",qh="YYYY-MM",Yh="YYYY-[Q]Q",Jh="YYYY";function na(e){let t=window.app.plugins.getPlugin("periodic-notes");return t&&t.settings?.[e]?.enabled}function ra(){try{let{internalPlugins:e,plugins:t}=window.app;if(na("daily")){let{format:a,folder:o,template:s}=t.getPlugin("periodic-notes")?.settings?.daily||{};return{format:a||Jl,folder:o?.trim()||"",template:s?.trim()||""}}let{folder:r,format:n,template:i}=e.getPluginById("daily-notes")?.instance?.options||{};return{format:n||Jl,folder:r?.trim()||"",template:i?.trim()||""}}catch(e){console.info("No custom daily note settings found!",e)}}function ia(){try{let e=window.app.plugins,t=e.getPlugin("calendar")?.options,r=e.getPlugin("periodic-notes")?.settings?.weekly;if(na("weekly"))return{format:r.format||Gl,folder:r.folder?.trim()||"",template:r.template?.trim()||""};let n=t||{};return{format:n.weeklyNoteFormat||Gl,folder:n.weeklyNoteFolder?.trim()||"",template:n.weeklyNoteTemplate?.trim()||""}}catch(e){console.info("No custom weekly note settings found!",e)}}function aa(){let e=window.app.plugins;try{let t=na("monthly")&&e.getPlugin("periodic-notes")?.settings?.monthly||{};return{format:t.format||qh,folder:t.folder?.trim()||"",template:t.template?.trim()||""}}catch(t){console.info("No custom monthly note settings found!",t)}}function oa(){let e=window.app.plugins;try{let t=na("quarterly")&&e.getPlugin("periodic-notes")?.settings?.quarterly||{};return{format:t.format||Yh,folder:t.folder?.trim()||"",template:t.template?.trim()||""}}catch(t){console.info("No custom quarterly note settings found!",t)}}function sa(){let e=window.app.plugins;try{let t=na("yearly")&&e.getPlugin("periodic-notes")?.settings?.yearly||{};return{format:t.format||Jh,folder:t.folder?.trim()||"",template:t.template?.trim()||""}}catch(t){console.info("No custom yearly note settings found!",t)}}function Gh(...e){let t=[];for(let n=0,i=e.length;n<i;n++)t=t.concat(e[n].split("/"));let r=[];for(let n=0,i=t.length;n<i;n++){let a=t[n];!a||a==="."||r.push(a)}return t[0]===""&&r.unshift(""),r.join("/")}function Pk(e){let t=e.substring(e.lastIndexOf("/")+1);return t.lastIndexOf(".")!=-1&&(t=t.substring(0,t.lastIndexOf("."))),t}async function Fk(e){let t=e.replace(/\\/g,"/").split("/");if(t.pop(),t.length){let r=Gh(...t);window.app.vault.getAbstractFileByPath(r)||await window.app.vault.createFolder(r)}}async function la(e,t){t.endsWith(".md")||(t+=".md");let r=tt.normalizePath(Gh(e,t));return await Fk(r),r}async function oi(e){let{metadataCache:t,vault:r}=window.app,n=tt.normalizePath(e);if(n==="/")return Promise.resolve(["",null]);try{let i=t.getFirstLinkpathDest(n,""),a=await r.cachedRead(i),o=window.app.foldManager.load(i);return[a,o]}catch(i){return console.error(`Failed to read the daily note template '${n}'`,i),new tt.Notice("Failed to read the daily note template"),["",null]}}function wn(e,t="day"){let r=e.clone().startOf(t).format();return`${t}-${r}`}function Qh(e){return e.replace(/\[[^\]]*\]/g,"")}function Ok(e,t){if(t==="week"){let r=Qh(e);return/w{1,2}/i.test(r)&&(/M{1,4}/.test(r)||/D{1,4}/.test(r))}return!1}function si(e,t){return Xh(e.basename,t)}function Nk(e,t){return Xh(Pk(e),t)}function Xh(e,t){let n={day:ra,week:ia,month:aa,quarter:oa,year:sa}[t]().format.split("/").pop(),i=window.moment(e,n,!0);if(!i.isValid())return null;if(Ok(n,t)&&t==="week"){let a=Qh(n);if(/w{1,2}/i.test(a))return window.moment(e,n.replace(/M{1,4}/g,"").replace(/D{1,4}/g,""),!1)}return i}var Zh=class extends Error{};async function em(e){let t=window.app,{vault:r}=t,n=window.moment,{template:i,format:a,folder:o}=ra(),[s,u]=await oi(i),l=e.format(a),c=await la(o,l);try{let d=await r.create(c,s.replace(/{{\s*date\s*}}/gi,l).replace(/{{\s*time\s*}}/gi,n().format("HH:mm")).replace(/{{\s*title\s*}}/gi,l).replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(f,p,m,v,b,k)=>{let T=n(),D=e.clone().set({hour:T.get("hour"),minute:T.get("minute"),second:T.get("second")});return m&&D.add(parseInt(v,10),b),k?D.format(k.substring(1).trim()):D.format(a)}).replace(/{{\s*yesterday\s*}}/gi,e.clone().subtract(1,"day").format(a)).replace(/{{\s*tomorrow\s*}}/gi,e.clone().add(1,"d").format(a)));return t.foldManager.save(d,u),d}catch(d){console.error(`Failed to create file: '${c}'`,d),new tt.Notice("Unable to create new file.")}}function Rk(e,t){return t[wn(e,"day")]??null}function Hk(){let{vault:e}=window.app,{folder:t}=ra(),r=e.getAbstractFileByPath(tt.normalizePath(t));if(!r)throw new Zh("Failed to find daily notes folder");let n={};return tt.Vault.recurseChildren(r,i=>{if(i instanceof tt.TFile){let a=si(i,"day");if(a){let o=wn(a,"day");n[o]=i}}}),n}var tm=class extends Error{};function Bk(){let{moment:e}=window,t=e.localeData()._week.dow,r=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];for(;t;)r.push(r.shift()),t--;return r}function Kk(e){return Bk().indexOf(e.toLowerCase())}async function nm(e){let{vault:t}=window.app,{template:r,format:n,folder:i}=ia(),[a,o]=await oi(r),s=e.format(n),u=await la(i,s);try{let l=await t.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,p,m,v)=>{let b=window.moment(),k=e.clone().set({hour:b.get("hour"),minute:b.get("minute"),second:b.get("second")});return f&&k.add(parseInt(p,10),m),v?k.format(v.substring(1).trim()):k.format(n)}).replace(/{{\s*title\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*(sunday|monday|tuesday|wednesday|thursday|friday|saturday)\s*:(.*?)}}/gi,(c,d,f)=>{let p=Kk(d);return e.weekday(p).format(f.trim())}));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new tt.Notice("Unable to create new file.")}}function $k(e,t){return t[wn(e,"week")]??null}function Uk(){let e={};if(!sm())return e;let{vault:t}=window.app,{folder:r}=ia(),n=t.getAbstractFileByPath(tt.normalizePath(r));if(!n)throw new tm("Failed to find weekly notes folder");return tt.Vault.recurseChildren(n,i=>{if(i instanceof tt.TFile){let a=si(i,"week");if(a){let o=wn(a,"week");e[o]=i}}}),e}var rm=class extends Error{};async function im(e){let{vault:t}=window.app,{template:r,format:n,folder:i}=aa(),[a,o]=await oi(r),s=e.format(n),u=await la(i,s);try{let l=await t.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,p,m,v)=>{let b=window.moment(),k=e.clone().set({hour:b.get("hour"),minute:b.get("minute"),second:b.get("second")});return f&&k.add(parseInt(p,10),m),v?k.format(v.substring(1).trim()):k.format(n)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new tt.Notice("Unable to create new file.")}}function Wk(e,t){return t[wn(e,"month")]??null}function Vk(){let e={};if(!lm())return e;let{vault:t}=window.app,{folder:r}=aa(),n=t.getAbstractFileByPath(tt.normalizePath(r));if(!n)throw new rm("Failed to find monthly notes folder");return tt.Vault.recurseChildren(n,i=>{if(i instanceof tt.TFile){let a=si(i,"month");if(a){let o=wn(a,"month");e[o]=i}}}),e}var am=class extends Error{};async function zk(e){let{vault:t}=window.app,{template:r,format:n,folder:i}=oa(),[a,o]=await oi(r),s=e.format(n),u=await la(i,s);try{let l=await t.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,p,m,v)=>{let b=window.moment(),k=e.clone().set({hour:b.get("hour"),minute:b.get("minute"),second:b.get("second")});return f&&k.add(parseInt(p,10),m),v?k.format(v.substring(1).trim()):k.format(n)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new tt.Notice("Unable to create new file.")}}function jk(e,t){return t[wn(e,"quarter")]??null}function qk(){let e={};if(!cm())return e;let{vault:t}=window.app,{folder:r}=oa(),n=t.getAbstractFileByPath(tt.normalizePath(r));if(!n)throw new am("Failed to find quarterly notes folder");return tt.Vault.recurseChildren(n,i=>{if(i instanceof tt.TFile){let a=si(i,"quarter");if(a){let o=wn(a,"quarter");e[o]=i}}}),e}var om=class extends Error{};async function Yk(e){let{vault:t}=window.app,{template:r,format:n,folder:i}=sa(),[a,o]=await oi(r),s=e.format(n),u=await la(i,s);try{let l=await t.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,p,m,v)=>{let b=window.moment(),k=e.clone().set({hour:b.get("hour"),minute:b.get("minute"),second:b.get("second")});return f&&k.add(parseInt(p,10),m),v?k.format(v.substring(1).trim()):k.format(n)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new tt.Notice("Unable to create new file.")}}function Jk(e,t){return t[wn(e,"year")]??null}function Gk(){let e={};if(!um())return e;let{vault:t}=window.app,{folder:r}=sa(),n=t.getAbstractFileByPath(tt.normalizePath(r));if(!n)throw new om("Failed to find yearly notes folder");return tt.Vault.recurseChildren(n,i=>{if(i instanceof tt.TFile){let a=si(i,"year");if(a){let o=wn(a,"year");e[o]=i}}}),e}function Qk(){let{app:e}=window,t=e.internalPlugins.plugins["daily-notes"];if(t&&t.enabled)return!0;let r=e.plugins.getPlugin("periodic-notes");return r&&r.settings?.daily?.enabled}function sm(){let{app:e}=window;if(e.plugins.getPlugin("calendar"))return!0;let t=e.plugins.getPlugin("periodic-notes");return t&&t.settings?.weekly?.enabled}function lm(){let{app:e}=window,t=e.plugins.getPlugin("periodic-notes");return t&&t.settings?.monthly?.enabled}function cm(){let{app:e}=window,t=e.plugins.getPlugin("periodic-notes");return t&&t.settings?.quarterly?.enabled}function um(){let{app:e}=window,t=e.plugins.getPlugin("periodic-notes");return t&&t.settings?.yearly?.enabled}function Xk(e){return{day:ra,week:ia,month:aa,quarter:oa,year:sa}[e]()}function Zk(e,t){return{day:em,month:im,week:nm}[e](t)}Le.DEFAULT_DAILY_NOTE_FORMAT=Jl;Le.DEFAULT_MONTHLY_NOTE_FORMAT=qh;Le.DEFAULT_QUARTERLY_NOTE_FORMAT=Yh;Le.DEFAULT_WEEKLY_NOTE_FORMAT=Gl;Le.DEFAULT_YEARLY_NOTE_FORMAT=Jh;Le.appHasDailyNotesPluginLoaded=Qk;Le.appHasMonthlyNotesPluginLoaded=lm;Le.appHasQuarterlyNotesPluginLoaded=cm;Le.appHasWeeklyNotesPluginLoaded=sm;Le.appHasYearlyNotesPluginLoaded=um;Le.createDailyNote=em;Le.createMonthlyNote=im;Le.createPeriodicNote=Zk;Le.createQuarterlyNote=zk;Le.createWeeklyNote=nm;Le.createYearlyNote=Yk;Le.getAllDailyNotes=Hk;Le.getAllMonthlyNotes=Vk;Le.getAllQuarterlyNotes=qk;Le.getAllWeeklyNotes=Uk;Le.getAllYearlyNotes=Gk;Le.getDailyNote=Rk;Le.getDailyNoteSettings=ra;Le.getDateFromFile=si;Le.getDateFromPath=Nk;Le.getDateUID=wn;Le.getMonthlyNote=Wk;Le.getMonthlyNoteSettings=aa;Le.getPeriodicNoteSettings=Xk;Le.getQuarterlyNote=jk;Le.getQuarterlyNoteSettings=oa;Le.getTemplateInfo=oi;Le.getWeeklyNote=$k;Le.getWeeklyNoteSettings=ia;Le.getYearlyNote=Jk;Le.getYearlyNoteSettings=sa});var ma=dt((SF,Pu)=>{h();"use strict";var l0=Object.prototype.hasOwnProperty,Wt="~";function ha(){}Object.create&&(ha.prototype=Object.create(null),new ha().__proto__||(Wt=!1));function c0(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function Oy(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new c0(r,n||e,i),o=Wt?Wt+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function as(e,t){--e._eventsCount==0?e._events=new ha:delete e._events[t]}function Rt(){this._events=new ha,this._eventsCount=0}Rt.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)l0.call(r,n)&&t.push(Wt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Rt.prototype.listeners=function(t){var r=Wt?Wt+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o};Rt.prototype.listenerCount=function(t){var r=Wt?Wt+t:t,n=this._events[r];return n?n.fn?1:n.length:0};Rt.prototype.emit=function(t,r,n,i,a,o){var s=Wt?Wt+t:t;if(!this._events[s])return!1;var u=this._events[s],l=arguments.length,c,d;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),l){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,r),!0;case 3:return u.fn.call(u.context,r,n),!0;case 4:return u.fn.call(u.context,r,n,i),!0;case 5:return u.fn.call(u.context,r,n,i,a),!0;case 6:return u.fn.call(u.context,r,n,i,a,o),!0}for(d=1,c=new Array(l-1);d<l;d++)c[d-1]=arguments[d];u.fn.apply(u.context,c)}else{var f=u.length,p;for(d=0;d<f;d++)switch(u[d].once&&this.removeListener(t,u[d].fn,void 0,!0),l){case 1:u[d].fn.call(u[d].context);break;case 2:u[d].fn.call(u[d].context,r);break;case 3:u[d].fn.call(u[d].context,r,n);break;case 4:u[d].fn.call(u[d].context,r,n,i);break;default:if(!c)for(p=1,c=new Array(l-1);p<l;p++)c[p-1]=arguments[p];u[d].fn.apply(u[d].context,c)}}return!0};Rt.prototype.on=function(t,r,n){return Oy(this,t,r,n,!1)};Rt.prototype.once=function(t,r,n){return Oy(this,t,r,n,!0)};Rt.prototype.removeListener=function(t,r,n,i){var a=Wt?Wt+t:t;if(!this._events[a])return this;if(!r)return as(this,a),this;var o=this._events[a];if(o.fn)o.fn===r&&(!i||o.once)&&(!n||o.context===n)&&as(this,a);else{for(var s=0,u=[],l=o.length;s<l;s++)(o[s].fn!==r||i&&!o[s].once||n&&o[s].context!==n)&&u.push(o[s]);u.length?this._events[a]=u.length===1?u[0]:u:as(this,a)}return this};Rt.prototype.removeAllListeners=function(t){var r;return t?(r=Wt?Wt+t:t,this._events[r]&&as(this,r)):(this._events=new ha,this._eventsCount=0),this};Rt.prototype.off=Rt.prototype.removeListener;Rt.prototype.addListener=Rt.prototype.on;Rt.prefixed=Wt;Rt.EventEmitter=Rt;typeof Pu!="undefined"&&(Pu.exports=Rt)});var sv=dt((ju,qu)=>{h();(function(e,t){typeof ju=="object"&&typeof qu!="undefined"?qu.exports=t():typeof define=="function"&&define.amd?define(t):e.Mark=t()})(ju,function(){"use strict";var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t=function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")},r=function(){function s(u,l){for(var c=0;c<l.length;c++){var d=l[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,l,c){return l&&s(u.prototype,l),c&&s(u,c),u}}(),n=Object.assign||function(s){for(var u=1;u<arguments.length;u++){var l=arguments[u];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s[c]=l[c])}return s},i=function(){function s(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;t(this,s),this.ctx=u,this.iframes=l,this.exclude=c,this.iframesTimeout=d}return r(s,[{key:"getContexts",value:function(){var l=void 0,c=[];return typeof this.ctx=="undefined"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(d){var f=c.filter(function(p){return p.contains(d)}).length>0;c.indexOf(d)===-1&&!f&&c.push(d)}),c}},{key:"getIframeContents",value:function(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=void 0;try{var p=l.contentWindow;if(f=p.document,!p||!f)throw new Error("iframe inaccessible")}catch(m){d()}f&&c(f)}},{key:"isIframeBlank",value:function(l){var c="about:blank",d=l.getAttribute("src").trim(),f=l.contentWindow.location.href;return f===c&&d!==c&&d}},{key:"observeIframeLoad",value:function(l,c,d){var f=this,p=!1,m=null,v=function b(){if(!p){p=!0,clearTimeout(m);try{f.isIframeBlank(l)||(l.removeEventListener("load",b),f.getIframeContents(l,c,d))}catch(k){d()}}};l.addEventListener("load",v),m=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,c,d){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,c,d):this.getIframeContents(l,c,d):this.observeIframeLoad(l,c,d)}catch(f){d()}}},{key:"waitForIframes",value:function(l,c){var d=this,f=0;this.forEachIframe(l,function(){return!0},function(p){f++,d.waitForIframes(p.querySelector("html"),function(){--f||c()})},function(p){p||c()})}},{key:"forEachIframe",value:function(l,c,d){var f=this,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=l.querySelectorAll("iframe"),v=m.length,b=0;m=Array.prototype.slice.call(m);var k=function(){--v<=0&&p(b)};v||k(),m.forEach(function(T){s.matches(T,f.exclude)?k():f.onIframeReady(T,function(D){c(T)&&(b++,d(D)),k()},k)})}},{key:"createIterator",value:function(l,c,d){return document.createNodeIterator(l,c,d,!1)}},{key:"createInstanceOnIframe",value:function(l){return new s(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,c,d){var f=l.compareDocumentPosition(d),p=Node.DOCUMENT_POSITION_PRECEDING;if(f&p)if(c!==null){var m=c.compareDocumentPosition(d),v=Node.DOCUMENT_POSITION_FOLLOWING;if(m&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var c=l.previousNode(),d=void 0;return c===null?d=l.nextNode():d=l.nextNode()&&l.nextNode(),{prevNode:c,node:d}}},{key:"checkIframeFilter",value:function(l,c,d,f){var p=!1,m=!1;return f.forEach(function(v,b){v.val===d&&(p=b,m=v.handled)}),this.compareNodeIframe(l,c,d)?(p===!1&&!m?f.push({val:d,handled:!0}):p!==!1&&!m&&(f[p].handled=!0),!0):(p===!1&&f.push({val:d,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,c,d,f){var p=this;l.forEach(function(m){m.handled||p.getIframeContents(m.val,function(v){p.createInstanceOnIframe(v).forEachNode(c,d,f)})})}},{key:"iterateThroughNodes",value:function(l,c,d,f,p){for(var m=this,v=this.createIterator(c,l,f),b=[],k=[],T=void 0,D=void 0,I=function(){var C=m.getIteratorNode(v);return D=C.prevNode,T=C.node,T};I();)this.iframes&&this.forEachIframe(c,function(H){return m.checkIframeFilter(T,D,H,b)},function(H){m.createInstanceOnIframe(H).forEachNode(l,function(C){return k.push(C)},f)}),k.push(T);k.forEach(function(H){d(H)}),this.iframes&&this.handleOpenIframes(b,l,d,f),p()}},{key:"forEachNode",value:function(l,c,d){var f=this,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=this.getContexts(),v=m.length;v||p(),m.forEach(function(b){var k=function(){f.iterateThroughNodes(l,b,c,d,function(){--v<=0&&p()})};f.iframes?f.waitForIframes(b,k):k()})}}],[{key:"matches",value:function(l,c){var d=typeof c=="string"?[c]:c,f=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(f){var p=!1;return d.every(function(m){return f.call(l,m)?(p=!0,!1):!0}),p}else return!1}}]),s}(),a=function(){function s(u){t(this,s),this.ctx=u,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return r(s,[{key:"log",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",d=this.opt.log;!this.opt.debug||(typeof d=="undefined"?"undefined":e(d))==="object"&&typeof d[c]=="function"&&d[c]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var c=this.opt.synonyms,d=this.opt.caseSensitive?"":"i",f=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var p in c)if(c.hasOwnProperty(p)){var m=c[p],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p),b=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m);v!==""&&b!==""&&(l=l.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(b)+")","gm"+d),f+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(b)+")")+f))}return l}},{key:"processSynomyms",value:function(l){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),l}},{key:"setupWildcardsRegExp",value:function(l){return l=l.replace(/(?:\\)*\?/g,function(c){return c.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(c){return c.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var c=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,c?"[\\S\\s]?":"\\S?").replace(/\u0002/g,c?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(c,d,f){var p=f.charAt(d+1);return/[(|)\\]/.test(p)||p===""?c:c+"\0"})}},{key:"createJoinersRegExp",value:function(l){var c=[],d=this.opt.ignorePunctuation;return Array.isArray(d)&&d.length&&c.push(this.escapeStr(d.join(""))),this.opt.ignoreJoiners&&c.push("\\u00ad\\u200b\\u200c\\u200d"),c.length?l.split(/\u0000+/).join("["+c.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var c=this.opt.caseSensitive?"":"i",d=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],f=[];return l.split("").forEach(function(p){d.every(function(m){if(m.indexOf(p)!==-1){if(f.indexOf(m)>-1)return!1;l=l.replace(new RegExp("["+m+"]","gm"+c),"["+m+"]"),f.push(m)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var c=this,d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",f=this.opt.accuracy,p=typeof f=="string"?f:f.value,m=typeof f=="string"?[]:f.limiters,v="";switch(m.forEach(function(b){v+="|"+c.escapeStr(b)}),p){case"partially":default:return"()("+l+")";case"complementary":return v="\\s"+(v||this.escapeStr(d)),"()([^"+v+"]*"+l+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+l+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(l){var c=this,d=[];return l.forEach(function(f){c.opt.separateWordSearch?f.split(" ").forEach(function(p){p.trim()&&d.indexOf(p)===-1&&d.push(p)}):f.trim()&&d.indexOf(f)===-1&&d.push(f)}),{keywords:d.sort(function(f,p){return p.length-f.length}),length:d.length}}},{key:"isNumeric",value:function(l){return Number(parseFloat(l))==l}},{key:"checkRanges",value:function(l){var c=this;if(!Array.isArray(l)||Object.prototype.toString.call(l[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(l),[];var d=[],f=0;return l.sort(function(p,m){return p.start-m.start}).forEach(function(p){var m=c.callNoMatchOnInvalidRanges(p,f),v=m.start,b=m.end,k=m.valid;k&&(p.start=v,p.length=b-v,d.push(p),f=b)}),d}},{key:"callNoMatchOnInvalidRanges",value:function(l,c){var d=void 0,f=void 0,p=!1;return l&&typeof l.start!="undefined"?(d=parseInt(l.start,10),f=d+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&f-c>0&&f-d>0?p=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(l))),this.opt.noMatch(l))):(this.log("Ignoring invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:d,end:f,valid:p}}},{key:"checkWhitespaceRanges",value:function(l,c,d){var f=void 0,p=!0,m=d.length,v=c-m,b=parseInt(l.start,10)-v;return b=b>m?m:b,f=b+parseInt(l.length,10),f>m&&(f=m,this.log("End range automatically set to the max value of "+m)),b<0||f-b<0||b>m||f>m?(p=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):d.substring(b,f).replace(/\s+/g,"")===""&&(p=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:b,end:f,valid:p}}},{key:"getTextNodes",value:function(l){var c=this,d="",f=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(p){f.push({start:d.length,end:(d+=p.textContent).length,node:p})},function(p){return c.matchesExclude(p.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){l({value:d,nodes:f})})}},{key:"matchesExclude",value:function(l){return i.matches(l,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(l,c,d){var f=this.opt.element?this.opt.element:"mark",p=l.splitText(c),m=p.splitText(d-c),v=document.createElement(f);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=p.textContent,p.parentNode.replaceChild(v,p),m}},{key:"wrapRangeInMappedTextNode",value:function(l,c,d,f,p){var m=this;l.nodes.every(function(v,b){var k=l.nodes[b+1];if(typeof k=="undefined"||k.start>c){if(!f(v.node))return!1;var T=c-v.start,D=(d>v.end?v.end:d)-v.start,I=l.value.substr(0,v.start),H=l.value.substr(D+v.start);if(v.node=m.wrapRangeInTextNode(v.node,T,D),l.value=I+H,l.nodes.forEach(function(C,F){F>=b&&(l.nodes[F].start>0&&F!==b&&(l.nodes[F].start-=D),l.nodes[F].end-=D)}),d-=D,p(v.node.previousSibling,v.start),d>v.end)c=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,c,d,f,p){var m=this,v=c===0?0:c+1;this.getTextNodes(function(b){b.nodes.forEach(function(k){k=k.node;for(var T=void 0;(T=l.exec(k.textContent))!==null&&T[v]!=="";)if(!!d(T[v],k)){var D=T.index;if(v!==0)for(var I=1;I<v;I++)D+=T[I].length;k=m.wrapRangeInTextNode(k,D,D+T[v].length),f(k.previousSibling),l.lastIndex=0}}),p()})}},{key:"wrapMatchesAcrossElements",value:function(l,c,d,f,p){var m=this,v=c===0?0:c+1;this.getTextNodes(function(b){for(var k=void 0;(k=l.exec(b.value))!==null&&k[v]!=="";){var T=k.index;if(v!==0)for(var D=1;D<v;D++)T+=k[D].length;var I=T+k[v].length;m.wrapRangeInMappedTextNode(b,T,I,function(H){return d(k[v],H)},function(H,C){l.lastIndex=C,f(H)})}p()})}},{key:"wrapRangeFromIndex",value:function(l,c,d,f){var p=this;this.getTextNodes(function(m){var v=m.value.length;l.forEach(function(b,k){var T=p.checkWhitespaceRanges(b,v,m.value),D=T.start,I=T.end,H=T.valid;H&&p.wrapRangeInMappedTextNode(m,D,I,function(C){return c(C,b,m.value.substring(D,I),k)},function(C){d(C,b)})}),f()})}},{key:"unwrapMatches",value:function(l){for(var c=l.parentNode,d=document.createDocumentFragment();l.firstChild;)d.appendChild(l.removeChild(l.firstChild));c.replaceChild(d,l),this.ie?this.normalizeTextNode(c):c.normalize()}},{key:"normalizeTextNode",value:function(l){if(!!l){if(l.nodeType===3)for(;l.nextSibling&&l.nextSibling.nodeType===3;)l.nodeValue+=l.nextSibling.nodeValue,l.parentNode.removeChild(l.nextSibling);else this.normalizeTextNode(l.firstChild);this.normalizeTextNode(l.nextSibling)}}},{key:"markRegExp",value:function(l,c){var d=this;this.opt=c,this.log('Searching with expression "'+l+'"');var f=0,p="wrapMatches",m=function(b){f++,d.opt.each(b)};this.opt.acrossElements&&(p="wrapMatchesAcrossElements"),this[p](l,this.opt.ignoreGroups,function(v,b){return d.opt.filter(b,v,f)},m,function(){f===0&&d.opt.noMatch(l),d.opt.done(f)})}},{key:"mark",value:function(l,c){var d=this;this.opt=c;var f=0,p="wrapMatches",m=this.getSeparatedKeywords(typeof l=="string"?[l]:l),v=m.keywords,b=m.length,k=this.opt.caseSensitive?"":"i",T=function D(I){var H=new RegExp(d.createRegExp(I),"gm"+k),C=0;d.log('Searching with expression "'+H+'"'),d[p](H,1,function(F,U){return d.opt.filter(U,I,f,C)},function(F){C++,f++,d.opt.each(F)},function(){C===0&&d.opt.noMatch(I),v[b-1]===I?d.opt.done(f):D(v[v.indexOf(I)+1])})};this.opt.acrossElements&&(p="wrapMatchesAcrossElements"),b===0?this.opt.done(f):T(v[0])}},{key:"markRanges",value:function(l,c){var d=this;this.opt=c;var f=0,p=this.checkRanges(l);p&&p.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(p)),this.wrapRangeFromIndex(p,function(m,v,b,k){return d.opt.filter(m,v,b,k)},function(m,v){f++,d.opt.each(m,v)},function(){d.opt.done(f)})):this.opt.done(f)}},{key:"unmark",value:function(l){var c=this;this.opt=l;var d=this.opt.element?this.opt.element:"*";d+="[data-markjs]",this.opt.className&&(d+="."+this.opt.className),this.log('Removal selector "'+d+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(f){c.unwrapMatches(f)},function(f){var p=i.matches(f,d),m=c.matchesExclude(f);return!p||m?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(l){this._opt=n({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},l)},get:function(){return this._opt}},{key:"iterator",get:function(){return new i(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),s}();function o(s){var u=this,l=new a(s);return this.mark=function(c,d){return l.mark(c,d),u},this.markRegExp=function(c,d){return l.markRegExp(c,d),u},this.markRanges=function(c,d){return l.markRanges(c,d),u},this.unmark=function(c){return l.unmark(c),u},this}return o})});var Sb=dt((Ss,ld)=>{h();(function(t,r){typeof Ss=="object"&&typeof ld=="object"?ld.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Ss=="object"?Ss.Choices=r():t.Choices=r()})(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(n,i,a){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:a})},r.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,i){if(i&1&&(n=r(n)),i&8||i&4&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),i&2&&typeof n!="string")for(var o in n)r.d(a,o,function(s){return n[s]}.bind(null,o));return a},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="/public/assets/scripts/",r(r.s=4)}([function(e,t,r){"use strict";var n=function(I){return i(I)&&!a(I)};function i(D){return!!D&&typeof D=="object"}function a(D){var I=Object.prototype.toString.call(D);return I==="[object RegExp]"||I==="[object Date]"||u(D)}var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103;function u(D){return D.$$typeof===s}function l(D){return Array.isArray(D)?[]:{}}function c(D,I){return I.clone!==!1&&I.isMergeableObject(D)?k(l(D),D,I):D}function d(D,I,H){return D.concat(I).map(function(C){return c(C,H)})}function f(D,I){if(!I.customMerge)return k;var H=I.customMerge(D);return typeof H=="function"?H:k}function p(D){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(D).filter(function(I){return D.propertyIsEnumerable(I)}):[]}function m(D){return Object.keys(D).concat(p(D))}function v(D,I){try{return I in D&&!(Object.hasOwnProperty.call(D,I)&&Object.propertyIsEnumerable.call(D,I))}catch(H){return!1}}function b(D,I,H){var C={};return H.isMergeableObject(D)&&m(D).forEach(function(F){C[F]=c(D[F],H)}),m(I).forEach(function(F){v(D,F)||(!H.isMergeableObject(I[F])||!D[F]?C[F]=c(I[F],H):C[F]=f(F,H)(D[F],I[F],H))}),C}function k(D,I,H){H=H||{},H.arrayMerge=H.arrayMerge||d,H.isMergeableObject=H.isMergeableObject||n,H.cloneUnlessOtherwiseSpecified=c;var C=Array.isArray(I),F=Array.isArray(D),U=C===F;return U?C?H.arrayMerge(D,I,H):b(D,I,H):c(I,H)}k.all=function(I,H){if(!Array.isArray(I))throw new Error("first argument should be an array");return I.reduce(function(C,F){return k(C,F,H)},{})};var T=k;e.exports=T},function(e,t,r){"use strict";(function(n,i){var a=r(3),o;typeof self!="undefined"?o=self:typeof window!="undefined"?o=window:typeof n!="undefined"?o=n:o=i;var s=Object(a.a)(o);t.a=s}).call(this,r(5),r(6)(e))},function(e,t,r){(function(n,i){e.exports=i()})(this,function(){return function(n){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=n,a.c=i,a.d=function(o,s,u){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:u})},a.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(u,l,function(c){return o[c]}.bind(null,l));return u},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=1)}([function(n,i){n.exports=function(a){return Array.isArray?Array.isArray(a):Object.prototype.toString.call(a)==="[object Array]"}},function(n,i,a){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}function s(f,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}var u=a(2),l=a(8),c=a(0),d=function(){function f(b,k){var T=k.location,D=T===void 0?0:T,I=k.distance,H=I===void 0?100:I,C=k.threshold,F=C===void 0?.6:C,U=k.maxPatternLength,z=U===void 0?32:U,ee=k.caseSensitive,Z=ee!==void 0&&ee,le=k.tokenSeparator,X=le===void 0?/ +/g:le,G=k.findAllMatches,re=G!==void 0&&G,pe=k.minMatchCharLength,he=pe===void 0?1:pe,ge=k.id,be=ge===void 0?null:ge,Te=k.keys,L=Te===void 0?[]:Te,P=k.shouldSort,lt=P===void 0||P,Je=k.getFn,W=Je===void 0?l:Je,j=k.sortFn,q=j===void 0?function(hn,mn){return hn.score-mn.score}:j,te=k.tokenize,we=te!==void 0&&te,ke=k.matchAllTokens,$e=ke!==void 0&&ke,ct=k.includeMatches,mt=ct!==void 0&&ct,Lt=k.includeScore,An=Lt!==void 0&&Lt,Ln=k.verbose,Pn=Ln!==void 0&&Ln;(function(hn,mn){if(!(hn instanceof mn))throw new TypeError("Cannot call a class as a function")})(this,f),this.options={location:D,distance:H,threshold:F,maxPatternLength:z,isCaseSensitive:Z,tokenSeparator:X,findAllMatches:re,minMatchCharLength:he,id:be,keys:L,includeMatches:mt,includeScore:An,shouldSort:lt,getFn:W,sortFn:q,verbose:Pn,tokenize:we,matchAllTokens:$e},this.setCollection(b)}var p,m,v;return p=f,(m=[{key:"setCollection",value:function(b){return this.list=b,b}},{key:"search",value:function(b){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{limit:!1};this._log(`---------
Search pattern: "`.concat(b,'"'));var T=this._prepareSearchers(b),D=T.tokenSearchers,I=T.fullSearcher,H=this._search(D,I),C=H.weights,F=H.results;return this._computeScore(C,F),this.options.shouldSort&&this._sort(F),k.limit&&typeof k.limit=="number"&&(F=F.slice(0,k.limit)),this._format(F)}},{key:"_prepareSearchers",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",k=[];if(this.options.tokenize)for(var T=b.split(this.options.tokenSeparator),D=0,I=T.length;D<I;D+=1)k.push(new u(T[D],this.options));return{tokenSearchers:k,fullSearcher:new u(b,this.options)}}},{key:"_search",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=arguments.length>1?arguments[1]:void 0,T=this.list,D={},I=[];if(typeof T[0]=="string"){for(var H=0,C=T.length;H<C;H+=1)this._analyze({key:"",value:T[H],record:H,index:H},{resultMap:D,results:I,tokenSearchers:b,fullSearcher:k});return{weights:null,results:I}}for(var F={},U=0,z=T.length;U<z;U+=1)for(var ee=T[U],Z=0,le=this.options.keys.length;Z<le;Z+=1){var X=this.options.keys[Z];if(typeof X!="string"){if(F[X.name]={weight:1-X.weight||1},X.weight<=0||X.weight>1)throw new Error("Key weight has to be > 0 and <= 1");X=X.name}else F[X]={weight:1};this._analyze({key:X,value:this.options.getFn(ee,X),record:ee,index:U},{resultMap:D,results:I,tokenSearchers:b,fullSearcher:k})}return{weights:F,results:I}}},{key:"_analyze",value:function(b,k){var T=b.key,D=b.arrayIndex,I=D===void 0?-1:D,H=b.value,C=b.record,F=b.index,U=k.tokenSearchers,z=U===void 0?[]:U,ee=k.fullSearcher,Z=ee===void 0?[]:ee,le=k.resultMap,X=le===void 0?{}:le,G=k.results,re=G===void 0?[]:G;if(H!=null){var pe=!1,he=-1,ge=0;if(typeof H=="string"){this._log(`
Key: `.concat(T===""?"-":T));var be=Z.search(H);if(this._log('Full text: "'.concat(H,'", score: ').concat(be.score)),this.options.tokenize){for(var Te=H.split(this.options.tokenSeparator),L=[],P=0;P<z.length;P+=1){var lt=z[P];this._log(`
Pattern: "`.concat(lt.pattern,'"'));for(var Je=!1,W=0;W<Te.length;W+=1){var j=Te[W],q=lt.search(j),te={};q.isMatch?(te[j]=q.score,pe=!0,Je=!0,L.push(q.score)):(te[j]=1,this.options.matchAllTokens||L.push(1)),this._log('Token: "'.concat(j,'", score: ').concat(te[j]))}Je&&(ge+=1)}he=L[0];for(var we=L.length,ke=1;ke<we;ke+=1)he+=L[ke];he/=we,this._log("Token score average:",he)}var $e=be.score;he>-1&&($e=($e+he)/2),this._log("Score average:",$e);var ct=!this.options.tokenize||!this.options.matchAllTokens||ge>=z.length;if(this._log(`
Check Matches: `.concat(ct)),(pe||be.isMatch)&&ct){var mt=X[F];mt?mt.output.push({key:T,arrayIndex:I,value:H,score:$e,matchedIndices:be.matchedIndices}):(X[F]={item:C,output:[{key:T,arrayIndex:I,value:H,score:$e,matchedIndices:be.matchedIndices}]},re.push(X[F]))}}else if(c(H))for(var Lt=0,An=H.length;Lt<An;Lt+=1)this._analyze({key:T,arrayIndex:Lt,value:H[Lt],record:C,index:F},{resultMap:X,results:re,tokenSearchers:z,fullSearcher:Z})}}},{key:"_computeScore",value:function(b,k){this._log(`
Computing score:
`);for(var T=0,D=k.length;T<D;T+=1){for(var I=k[T].output,H=I.length,C=1,F=1,U=0;U<H;U+=1){var z=b?b[I[U].key].weight:1,ee=(z===1?I[U].score:I[U].score||.001)*z;z!==1?F=Math.min(F,ee):(I[U].nScore=ee,C*=ee)}k[T].score=F===1?C:F,this._log(k[T])}}},{key:"_sort",value:function(b){this._log(`
Sorting....`),b.sort(this.options.sortFn)}},{key:"_format",value:function(b){var k=[];if(this.options.verbose){var T=[];this._log(`
Output:
`,JSON.stringify(b,function(ee,Z){if(o(Z)==="object"&&Z!==null){if(T.indexOf(Z)!==-1)return;T.push(Z)}return Z})),T=null}var D=[];this.options.includeMatches&&D.push(function(ee,Z){var le=ee.output;Z.matches=[];for(var X=0,G=le.length;X<G;X+=1){var re=le[X];if(re.matchedIndices.length!==0){var pe={indices:re.matchedIndices,value:re.value};re.key&&(pe.key=re.key),re.hasOwnProperty("arrayIndex")&&re.arrayIndex>-1&&(pe.arrayIndex=re.arrayIndex),Z.matches.push(pe)}}}),this.options.includeScore&&D.push(function(ee,Z){Z.score=ee.score});for(var I=0,H=b.length;I<H;I+=1){var C=b[I];if(this.options.id&&(C.item=this.options.getFn(C.item,this.options.id)[0]),D.length){for(var F={item:C.item},U=0,z=D.length;U<z;U+=1)D[U](C,F);k.push(F)}else k.push(C.item)}return k}},{key:"_log",value:function(){var b;this.options.verbose&&(b=console).log.apply(b,arguments)}}])&&s(p.prototype,m),v&&s(p,v),f}();n.exports=d},function(n,i,a){function o(d,f){for(var p=0;p<f.length;p++){var m=f[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}var s=a(3),u=a(4),l=a(7),c=function(){function d(v,b){var k=b.location,T=k===void 0?0:k,D=b.distance,I=D===void 0?100:D,H=b.threshold,C=H===void 0?.6:H,F=b.maxPatternLength,U=F===void 0?32:F,z=b.isCaseSensitive,ee=z!==void 0&&z,Z=b.tokenSeparator,le=Z===void 0?/ +/g:Z,X=b.findAllMatches,G=X!==void 0&&X,re=b.minMatchCharLength,pe=re===void 0?1:re;(function(he,ge){if(!(he instanceof ge))throw new TypeError("Cannot call a class as a function")})(this,d),this.options={location:T,distance:I,threshold:C,maxPatternLength:U,isCaseSensitive:ee,tokenSeparator:le,findAllMatches:G,minMatchCharLength:pe},this.pattern=this.options.isCaseSensitive?v:v.toLowerCase(),this.pattern.length<=U&&(this.patternAlphabet=l(this.pattern))}var f,p,m;return f=d,(p=[{key:"search",value:function(v){if(this.options.isCaseSensitive||(v=v.toLowerCase()),this.pattern===v)return{isMatch:!0,score:0,matchedIndices:[[0,v.length-1]]};var b=this.options,k=b.maxPatternLength,T=b.tokenSeparator;if(this.pattern.length>k)return s(v,this.pattern,T);var D=this.options,I=D.location,H=D.distance,C=D.threshold,F=D.findAllMatches,U=D.minMatchCharLength;return u(v,this.pattern,this.patternAlphabet,{location:I,distance:H,threshold:C,findAllMatches:F,minMatchCharLength:U})}}])&&o(f.prototype,p),m&&o(f,m),d}();n.exports=c},function(n,i){var a=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;n.exports=function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,l=new RegExp(s.replace(a,"\\$&").replace(u,"|")),c=o.match(l),d=!!c,f=[];if(d)for(var p=0,m=c.length;p<m;p+=1){var v=c[p];f.push([o.indexOf(v),v.length-1])}return{score:d?.5:1,isMatch:d,matchedIndices:f}}},function(n,i,a){var o=a(5),s=a(6);n.exports=function(u,l,c,d){for(var f=d.location,p=f===void 0?0:f,m=d.distance,v=m===void 0?100:m,b=d.threshold,k=b===void 0?.6:b,T=d.findAllMatches,D=T!==void 0&&T,I=d.minMatchCharLength,H=I===void 0?1:I,C=p,F=u.length,U=k,z=u.indexOf(l,C),ee=l.length,Z=[],le=0;le<F;le+=1)Z[le]=0;if(z!==-1){var X=o(l,{errors:0,currentLocation:z,expectedLocation:C,distance:v});if(U=Math.min(X,U),(z=u.lastIndexOf(l,C+ee))!==-1){var G=o(l,{errors:0,currentLocation:z,expectedLocation:C,distance:v});U=Math.min(G,U)}}z=-1;for(var re=[],pe=1,he=ee+F,ge=1<<ee-1,be=0;be<ee;be+=1){for(var Te=0,L=he;Te<L;)o(l,{errors:be,currentLocation:C+L,expectedLocation:C,distance:v})<=U?Te=L:he=L,L=Math.floor((he-Te)/2+Te);he=L;var P=Math.max(1,C-L+1),lt=D?F:Math.min(C+L,F)+ee,Je=Array(lt+2);Je[lt+1]=(1<<be)-1;for(var W=lt;W>=P;W-=1){var j=W-1,q=c[u.charAt(j)];if(q&&(Z[j]=1),Je[W]=(Je[W+1]<<1|1)&q,be!==0&&(Je[W]|=(re[W+1]|re[W])<<1|1|re[W+1]),Je[W]&ge&&(pe=o(l,{errors:be,currentLocation:j,expectedLocation:C,distance:v}))<=U){if(U=pe,(z=j)<=C)break;P=Math.max(1,2*C-z)}}if(o(l,{errors:be+1,currentLocation:C,expectedLocation:C,distance:v})>U)break;re=Je}return{isMatch:z>=0,score:pe===0?.001:pe,matchedIndices:s(Z,H)}}},function(n,i){n.exports=function(a,o){var s=o.errors,u=s===void 0?0:s,l=o.currentLocation,c=l===void 0?0:l,d=o.expectedLocation,f=d===void 0?0:d,p=o.distance,m=p===void 0?100:p,v=u/a.length,b=Math.abs(f-c);return m?v+b/m:b?1:v}},function(n,i){n.exports=function(){for(var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,s=[],u=-1,l=-1,c=0,d=a.length;c<d;c+=1){var f=a[c];f&&u===-1?u=c:f||u===-1||((l=c-1)-u+1>=o&&s.push([u,l]),u=-1)}return a[c-1]&&c-u>=o&&s.push([u,c-1]),s}},function(n,i){n.exports=function(a){for(var o={},s=a.length,u=0;u<s;u+=1)o[a.charAt(u)]=0;for(var l=0;l<s;l+=1)o[a.charAt(l)]|=1<<s-l-1;return o}},function(n,i,a){var o=a(0);n.exports=function(s,u){return function l(c,d,f){if(d){var p=d.indexOf("."),m=d,v=null;p!==-1&&(m=d.slice(0,p),v=d.slice(p+1));var b=c[m];if(b!=null)if(v||typeof b!="string"&&typeof b!="number")if(o(b))for(var k=0,T=b.length;k<T;k+=1)l(b[k],v,f);else v&&l(b,v,f);else f.push(b.toString())}else f.push(c);return f}(s,u,[])}}])})},function(e,t,r){"use strict";r.d(t,"a",function(){return n});function n(i){var a,o=i.Symbol;return typeof o=="function"?o.observable?a=o.observable:(a=o("observable"),o.observable=a):a="@@observable",a}},function(e,t,r){e.exports=r(7)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){typeof window=="object"&&(r=window)}e.exports=r},function(e,t){e.exports=function(r){if(!r.webpackPolyfill){var n=Object.create(r);n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(n,"exports",{enumerable:!0}),n.webpackPolyfill=1}return n}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r.n(n),a=r(0),o=r.n(a),s=r(1),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function c(O){if(typeof O!="object"||O===null)return!1;for(var w=O;Object.getPrototypeOf(w)!==null;)w=Object.getPrototypeOf(w);return Object.getPrototypeOf(O)===w}function d(O,w,E){var g;if(typeof w=="function"&&typeof E=="function"||typeof E=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if(typeof w=="function"&&typeof E=="undefined"&&(E=w,w=void 0),typeof E!="undefined"){if(typeof E!="function")throw new Error("Expected the enhancer to be a function.");return E(d)(O,w)}if(typeof O!="function")throw new Error("Expected the reducer to be a function.");var x=O,A=w,N=[],$=N,J=!1;function ae(){$===N&&($=N.slice())}function de(){if(J)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return A}function xe(De){if(typeof De!="function")throw new Error("Expected the listener to be a function.");if(J)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var Be=!0;return ae(),$.push(De),function(){if(!!Be){if(J)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");Be=!1,ae();var Ne=$.indexOf(De);$.splice(Ne,1)}}}function ve(De){if(!c(De))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof De.type=="undefined")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(J)throw new Error("Reducers may not dispatch actions.");try{J=!0,A=x(A,De)}finally{J=!1}for(var Be=N=$,Ae=0;Ae<Be.length;Ae++){var Ne=Be[Ae];Ne()}return De}function Ie(De){if(typeof De!="function")throw new Error("Expected the nextReducer to be a function.");x=De,ve({type:l.REPLACE})}function Oe(){var De,Be=xe;return De={subscribe:function(Ne){if(typeof Ne!="object"||Ne===null)throw new TypeError("Expected the observer to be an object.");function ut(){Ne.next&&Ne.next(de())}ut();var Ft=Be(ut);return{unsubscribe:Ft}}},De[s.a]=function(){return this},De}return ve({type:l.INIT}),g={dispatch:ve,subscribe:xe,getState:de,replaceReducer:Ie},g[s.a]=Oe,g}function f(O){typeof console!="undefined"&&typeof console.error=="function"&&console.error(O);try{throw new Error(O)}catch(w){}}function p(O,w){var E=w&&w.type,g=E&&'action "'+String(E)+'"'||"an action";return"Given "+g+', reducer "'+O+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function m(O,w,E,g){var x=Object.keys(w),A=E&&E.type===l.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(x.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!c(O))return"The "+A+' has unexpected type of "'+{}.toString.call(O).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+x.join('", "')+'"');var N=Object.keys(O).filter(function($){return!w.hasOwnProperty($)&&!g[$]});if(N.forEach(function($){g[$]=!0}),!(E&&E.type===l.REPLACE)&&N.length>0)return"Unexpected "+(N.length>1?"keys":"key")+" "+('"'+N.join('", "')+'" found in '+A+". ")+"Expected to find one of the known reducer keys instead: "+('"'+x.join('", "')+'". Unexpected keys will be ignored.')}function v(O){Object.keys(O).forEach(function(w){var E=O[w],g=E(void 0,{type:l.INIT});if(typeof g=="undefined")throw new Error('Reducer "'+w+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof E(void 0,{type:l.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error('Reducer "'+w+'" returned undefined when probed with a random type. '+("Don't try to handle "+l.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function b(O){for(var w=Object.keys(O),E={},g=0;g<w.length;g++){var x=w[g];typeof O[x]=="function"&&(E[x]=O[x])}var A=Object.keys(E),N,$;try{v(E)}catch(J){$=J}return function(ae,de){if(ae===void 0&&(ae={}),$)throw $;if(!1)var xe;for(var ve=!1,Ie={},Oe=0;Oe<A.length;Oe++){var De=A[Oe],Be=E[De],Ae=ae[De],Ne=Be(Ae,de);if(typeof Ne=="undefined"){var ut=p(De,de);throw new Error(ut)}Ie[De]=Ne,ve=ve||Ne!==Ae}return ve?Ie:ae}}function k(O,w){return function(){return w(O.apply(this,arguments))}}function T(O,w){if(typeof O=="function")return k(O,w);if(typeof O!="object"||O===null)throw new Error("bindActionCreators expected an object or a function, instead received "+(O===null?"null":typeof O)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var E={};for(var g in O){var x=O[g];typeof x=="function"&&(E[g]=k(x,w))}return E}function D(O,w,E){return w in O?Object.defineProperty(O,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[w]=E,O}function I(O,w){var E=Object.keys(O);return Object.getOwnPropertySymbols&&E.push.apply(E,Object.getOwnPropertySymbols(O)),w&&(E=E.filter(function(g){return Object.getOwnPropertyDescriptor(O,g).enumerable})),E}function H(O){for(var w=1;w<arguments.length;w++){var E=arguments[w]!=null?arguments[w]:{};w%2?I(E,!0).forEach(function(g){D(O,g,E[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(E)):I(E).forEach(function(g){Object.defineProperty(O,g,Object.getOwnPropertyDescriptor(E,g))})}return O}function C(){for(var O=arguments.length,w=new Array(O),E=0;E<O;E++)w[E]=arguments[E];return w.length===0?function(g){return g}:w.length===1?w[0]:w.reduce(function(g,x){return function(){return g(x.apply(void 0,arguments))}})}function F(){for(var O=arguments.length,w=new Array(O),E=0;E<O;E++)w[E]=arguments[E];return function(g){return function(){var x=g.apply(void 0,arguments),A=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},N={getState:x.getState,dispatch:function(){return A.apply(void 0,arguments)}},$=w.map(function(J){return J(N)});return A=C.apply(void 0,$)(x.dispatch),H({},x,{dispatch:A})}}}function U(){}var z=[];function ee(O,w){switch(O===void 0&&(O=z),w.type){case"ADD_ITEM":{var E=[].concat(O,[{id:w.id,choiceId:w.choiceId,groupId:w.groupId,value:w.value,label:w.label,active:!0,highlighted:!1,customProperties:w.customProperties,placeholder:w.placeholder||!1,keyCode:null}]);return E.map(function(g){var x=g;return x.highlighted=!1,x})}case"REMOVE_ITEM":return O.map(function(g){var x=g;return x.id===w.id&&(x.active=!1),x});case"HIGHLIGHT_ITEM":return O.map(function(g){var x=g;return x.id===w.id&&(x.highlighted=w.highlighted),x});default:return O}}var Z=[];function le(O,w){switch(O===void 0&&(O=Z),w.type){case"ADD_GROUP":return[].concat(O,[{id:w.id,value:w.value,active:w.active,disabled:w.disabled}]);case"CLEAR_CHOICES":return[];default:return O}}var X=[];function G(O,w){switch(O===void 0&&(O=X),w.type){case"ADD_CHOICE":return[].concat(O,[{id:w.id,elementId:w.elementId,groupId:w.groupId,value:w.value,label:w.label||w.value,disabled:w.disabled||!1,selected:!1,active:!0,score:9999,customProperties:w.customProperties,placeholder:w.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return w.activateOptions?O.map(function(E){var g=E;return g.active=w.active,g}):w.choiceId>-1?O.map(function(E){var g=E;return g.id===parseInt(w.choiceId,10)&&(g.selected=!0),g}):O;case"REMOVE_ITEM":return w.choiceId>-1?O.map(function(E){var g=E;return g.id===parseInt(w.choiceId,10)&&(g.selected=!1),g}):O;case"FILTER_CHOICES":return O.map(function(E){var g=E;return g.active=w.results.some(function(x){var A=x.item,N=x.score;return A.id===g.id?(g.score=N,!0):!1}),g});case"ACTIVATE_CHOICES":return O.map(function(E){var g=E;return g.active=w.active,g});case"CLEAR_CHOICES":return X;default:return O}}var re={loading:!1},pe=function(w,E){switch(w===void 0&&(w=re),E.type){case"SET_IS_LOADING":return{loading:E.isLoading};default:return w}},he=pe,ge=function(w,E){return Math.floor(Math.random()*(E-w)+w)},be=function(w){return Array.from({length:w},function(){return ge(0,36).toString(36)}).join("")},Te=function(w,E){var g=w.id||w.name&&w.name+"-"+be(2)||be(4);return g=g.replace(/(:|\.|\[|\]|,)/g,""),g=E+"-"+g,g},L=function(w){return Object.prototype.toString.call(w).slice(8,-1)},P=function(w,E){return E!=null&&L(E)===w},lt=function(w,E){return E===void 0&&(E=document.createElement("div")),w.nextSibling?w.parentNode.insertBefore(E,w.nextSibling):w.parentNode.appendChild(E),E.appendChild(w)},Je=function(w,E,g){if(g===void 0&&(g=1),!(!(w instanceof Element)||typeof E!="string")){for(var x=(g>0?"next":"previous")+"ElementSibling",A=w[x];A;){if(A.matches(E))return A;A=A[x]}return A}},W=function(w,E,g){if(g===void 0&&(g=1),!w)return!1;var x;return g>0?x=E.scrollTop+E.offsetHeight>=w.offsetTop+w.offsetHeight:x=w.offsetTop>=E.scrollTop,x},j=function(w){return typeof w!="string"?w:w.replace(/&/g,"&amp;").replace(/>/g,"&rt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},q=function(){var O=document.createElement("div");return function(w){var E=w.trim();O.innerHTML=E;for(var g=O.children[0];O.firstChild;)O.removeChild(O.firstChild);return g}}(),te=function(w,E){var g=w.value,x=w.label,A=x===void 0?g:x,N=E.value,$=E.label,J=$===void 0?N:$;return A.localeCompare(J,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},we=function(w,E){return w.score-E.score},ke=function(w,E,g){g===void 0&&(g=null);var x=new CustomEvent(E,{detail:g,bubbles:!0,cancelable:!0});return w.dispatchEvent(x)},$e=function(w,E,g){return g===void 0&&(g="value"),w.some(function(x){return typeof E=="string"?x[g]===E.trim():x[g]===E})},ct=function(w){return JSON.parse(JSON.stringify(w))},mt=function(w,E){var g=Object.keys(w).sort(),x=Object.keys(E).sort();return g.filter(function(A){return x.indexOf(A)<0})},Lt=b({items:ee,groups:le,choices:G,general:he}),An=function(w,E){var g=w;if(E.type==="CLEAR_ALL")g=void 0;else if(E.type==="RESET_TO")return ct(E.state);return Lt(g,E)},Ln=An;function Pn(O,w){for(var E=0;E<w.length;E++){var g=w[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(O,g.key,g)}}function hn(O,w,E){return w&&Pn(O.prototype,w),E&&Pn(O,E),O}var mn=function(){function O(){this._store=d(Ln,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var w=O.prototype;return w.subscribe=function(g){this._store.subscribe(g)},w.dispatch=function(g){this._store.dispatch(g)},w.isLoading=function(){return this.state.general.loading},w.getChoiceById=function(g){return this.activeChoices.find(function(x){return x.id===parseInt(g,10)})},w.getGroupById=function(g){return this.groups.find(function(x){return x.id===g})},hn(O,[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter(function(g){return g.active===!0})}},{key:"highlightedActiveItems",get:function(){return this.items.filter(function(g){return g.active&&g.highlighted})}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter(function(g){return g.active===!0})}},{key:"selectableChoices",get:function(){return this.choices.filter(function(g){return g.disabled!==!0})}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter(function(g){return g.placeholder!==!0})}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find(function(g){return g.placeholder===!0})}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var g=this.groups,x=this.choices;return g.filter(function(A){var N=A.active===!0&&A.disabled===!1,$=x.some(function(J){return J.active===!0&&J.disabled===!1});return N&&$},[])}}]),O}();function Fn(O,w){for(var E=0;E<w.length;E++){var g=w[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(O,g.key,g)}}function Hr(O,w,E){return w&&Fn(O.prototype,w),E&&Fn(O,E),O}var Br=function(){function O(E){var g=E.element,x=E.type,A=E.classNames;this.element=g,this.classNames=A,this.type=x,this.isActive=!1}var w=O.prototype;return w.getChild=function(g){return this.element.querySelector(g)},w.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},w.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},Hr(O,[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}]),O}(),Kr={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},Yn={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:te,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(w){return'Press Enter to add <b>"'+j(w)+'"</b>'},maxItemText:function(w){return"Only "+w+" values can be added"},valueComparer:function(w,E){return w===E},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:Kr},Pt={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice"},Kt={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL"},gt={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},Y="text",oe="select-one",Ee="select-multiple",ze=4,kt=function(){function O(E){var g=E.element,x=E.type,A=E.classNames,N=E.position;this.element=g,this.classNames=A,this.type=x,this.position=N,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var w=O.prototype;return w.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},w.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},w.shouldFlip=function(g){if(typeof g!="number")return!1;var x=!1;return this.position==="auto"?x=!window.matchMedia("(min-height: "+(g+1)+"px)").matches:this.position==="top"&&(x=!0),x},w.setActiveDescendant=function(g){this.element.setAttribute("aria-activedescendant",g)},w.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},w.open=function(g){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(g)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},w.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},w.focus=function(){this.isFocussed||this.element.focus()},w.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},w.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},w.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===oe&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},w.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===oe&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},w.wrap=function(g){lt(g,this.element)},w.unwrap=function(g){this.element.parentNode.insertBefore(g,this.element),this.element.parentNode.removeChild(this.element)},w.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},w.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},w._onFocus=function(){this.isFocussed=!0},w._onBlur=function(){this.isFocussed=!1},O}();function gn(O,w){for(var E=0;E<w.length;E++){var g=w[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(O,g.key,g)}}function qe(O,w,E){return w&&gn(O.prototype,w),E&&gn(O,E),O}var at=function(){function O(E){var g=E.element,x=E.type,A=E.classNames,N=E.preventPaste;this.element=g,this.type=x,this.classNames=A,this.preventPaste=N,this.isFocussed=this.element===document.activeElement,this.isDisabled=g.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var w=O.prototype;return w.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},w.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},w.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},w.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},w.focus=function(){this.isFocussed||this.element.focus()},w.blur=function(){this.isFocussed&&this.element.blur()},w.clear=function(g){return g===void 0&&(g=!0),this.element.value&&(this.element.value=""),g&&this.setWidth(),this},w.setWidth=function(){var g=this.element,x=g.style,A=g.value,N=g.placeholder;x.minWidth=N.length+1+"ch",x.width=A.length+1+"ch"},w.setActiveDescendant=function(g){this.element.setAttribute("aria-activedescendant",g)},w.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},w._onInput=function(){this.type!==oe&&this.setWidth()},w._onPaste=function(g){this.preventPaste&&g.preventDefault()},w._onFocus=function(){this.isFocussed=!0},w._onBlur=function(){this.isFocussed=!1},qe(O,[{key:"placeholder",set:function(g){this.element.placeholder=g}},{key:"value",get:function(){return j(this.element.value)},set:function(g){this.element.value=g}}]),O}(),Ue=function(){function O(E){var g=E.element;this.element=g,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var w=O.prototype;return w.clear=function(){this.element.innerHTML=""},w.append=function(g){this.element.appendChild(g)},w.getChild=function(g){return this.element.querySelector(g)},w.hasChildren=function(){return this.element.hasChildNodes()},w.scrollToTop=function(){this.element.scrollTop=0},w.scrollToChildElement=function(g,x){var A=this;if(!!g){var N=this.element.offsetHeight,$=this.element.scrollTop+N,J=g.offsetHeight,ae=g.offsetTop+J,de=x>0?this.element.scrollTop+ae-$:g.offsetTop;requestAnimationFrame(function(){A._animateScroll(de,x)})}},w._scrollDown=function(g,x,A){var N=(A-g)/x,$=N>1?N:1;this.element.scrollTop=g+$},w._scrollUp=function(g,x,A){var N=(g-A)/x,$=N>1?N:1;this.element.scrollTop=g-$},w._animateScroll=function(g,x){var A=this,N=ze,$=this.element.scrollTop,J=!1;x>0?(this._scrollDown($,N,g),$<g&&(J=!0)):(this._scrollUp($,N,g),$>g&&(J=!0)),J&&requestAnimationFrame(function(){A._animateScroll(g,x)})},O}();function ln(O,w){for(var E=0;E<w.length;E++){var g=w[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(O,g.key,g)}}function Ye(O,w,E){return w&&ln(O.prototype,w),E&&ln(O,E),O}var Jn=function(){function O(E){var g=E.element,x=E.classNames;if(this.element=g,this.classNames=x,!(g instanceof HTMLInputElement)&&!(g instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var w=O.prototype;return w.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var g=this.element.getAttribute("style");g&&this.element.setAttribute("data-choice-orig-style",g),this.element.setAttribute("data-choice","active")},w.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var g=this.element.getAttribute("data-choice-orig-style");g?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",g)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},w.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},w.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},w.triggerEvent=function(g,x){ke(this.element,g,x)},Ye(O,[{key:"isActive",get:function(){return this.element.dataset.choice==="active"}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(g){this.element.value=g}}]),O}();function St(O,w){for(var E=0;E<w.length;E++){var g=w[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(O,g.key,g)}}function _i(O,w,E){return w&&St(O.prototype,w),E&&St(O,E),O}function yn(O,w){O.prototype=Object.create(w.prototype),O.prototype.constructor=O,O.__proto__=w}var Zs=function(O){yn(w,O);function w(E){var g,x=E.element,A=E.classNames,N=E.delimiter;return g=O.call(this,{element:x,classNames:A})||this,g.delimiter=N,g}return _i(w,[{key:"value",get:function(){return this.element.value},set:function(g){var x=g.map(function(N){var $=N.value;return $}),A=x.join(this.delimiter);this.element.setAttribute("value",A),this.element.value=A}}]),w}(Jn);function Ra(O,w){for(var E=0;E<w.length;E++){var g=w[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(O,g.key,g)}}function _(O,w,E){return w&&Ra(O.prototype,w),E&&Ra(O,E),O}function M(O,w){O.prototype=Object.create(w.prototype),O.prototype.constructor=O,O.__proto__=w}var K=function(O){M(w,O);function w(g){var x,A=g.element,N=g.classNames,$=g.template;return x=O.call(this,{element:A,classNames:N})||this,x.template=$,x}var E=w.prototype;return E.appendDocFragment=function(x){this.element.innerHTML="",this.element.appendChild(x)},_(w,[{key:"placeholderOption",get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(x){var A=this,N=document.createDocumentFragment(),$=function(ae){var de=A.template(ae);N.appendChild(de)};x.forEach(function(J){return $(J)}),this.appendDocFragment(N)}}]),w}(Jn),Q={containerOuter:function(w,E,g,x,A,N){var $=w.containerOuter,J=Object.assign(document.createElement("div"),{className:$});return J.dataset.type=N,E&&(J.dir=E),x&&(J.tabIndex=0),g&&(J.setAttribute("role",A?"combobox":"listbox"),A&&J.setAttribute("aria-autocomplete","list")),J.setAttribute("aria-haspopup","true"),J.setAttribute("aria-expanded","false"),J},containerInner:function(w){var E=w.containerInner;return Object.assign(document.createElement("div"),{className:E})},itemList:function(w,E){var g=w.list,x=w.listSingle,A=w.listItems;return Object.assign(document.createElement("div"),{className:g+" "+(E?x:A)})},placeholder:function(w,E){var g=w.placeholder;return Object.assign(document.createElement("div"),{className:g,innerHTML:E})},item:function(w,E,g){var x=w.item,A=w.button,N=w.highlightedState,$=w.itemSelectable,J=w.placeholder,ae=E.id,de=E.value,xe=E.label,ve=E.customProperties,Ie=E.active,Oe=E.disabled,De=E.highlighted,Be=E.placeholder,Ae=Object.assign(document.createElement("div"),{className:x,innerHTML:xe});if(Object.assign(Ae.dataset,{item:"",id:ae,value:de,customProperties:ve}),Ie&&Ae.setAttribute("aria-selected","true"),Oe&&Ae.setAttribute("aria-disabled","true"),Be&&Ae.classList.add(J),Ae.classList.add(De?N:$),g){Oe&&Ae.classList.remove($),Ae.dataset.deletable="";var Ne="Remove item",ut=Object.assign(document.createElement("button"),{type:"button",className:A,innerHTML:Ne});ut.setAttribute("aria-label",Ne+": '"+de+"'"),ut.dataset.button="",Ae.appendChild(ut)}return Ae},choiceList:function(w,E){var g=w.list,x=Object.assign(document.createElement("div"),{className:g});return E||x.setAttribute("aria-multiselectable","true"),x.setAttribute("role","listbox"),x},choiceGroup:function(w,E){var g=w.group,x=w.groupHeading,A=w.itemDisabled,N=E.id,$=E.value,J=E.disabled,ae=Object.assign(document.createElement("div"),{className:g+" "+(J?A:"")});return ae.setAttribute("role","group"),Object.assign(ae.dataset,{group:"",id:N,value:$}),J&&ae.setAttribute("aria-disabled","true"),ae.appendChild(Object.assign(document.createElement("div"),{className:x,innerHTML:$})),ae},choice:function(w,E,g){var x=w.item,A=w.itemChoice,N=w.itemSelectable,$=w.selectedState,J=w.itemDisabled,ae=w.placeholder,de=E.id,xe=E.value,ve=E.label,Ie=E.groupId,Oe=E.elementId,De=E.disabled,Be=E.selected,Ae=E.placeholder,Ne=Object.assign(document.createElement("div"),{id:Oe,innerHTML:ve,className:x+" "+A});return Be&&Ne.classList.add($),Ae&&Ne.classList.add(ae),Ne.setAttribute("role",Ie>0?"treeitem":"option"),Object.assign(Ne.dataset,{choice:"",id:de,value:xe,selectText:g}),De?(Ne.classList.add(J),Ne.dataset.choiceDisabled="",Ne.setAttribute("aria-disabled","true")):(Ne.classList.add(N),Ne.dataset.choiceSelectable=""),Ne},input:function(w,E){var g=w.input,x=w.inputCloned,A=Object.assign(document.createElement("input"),{type:"text",className:g+" "+x,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return A.setAttribute("role","textbox"),A.setAttribute("aria-autocomplete","list"),A.setAttribute("aria-label",E),A},dropdown:function(w){var E=w.list,g=w.listDropdown,x=document.createElement("div");return x.classList.add(E,g),x.setAttribute("aria-expanded","false"),x},notice:function(w,E,g){var x=w.item,A=w.itemChoice,N=w.noResults,$=w.noChoices;g===void 0&&(g="");var J=[x,A];return g==="no-choices"?J.push($):g==="no-results"&&J.push(N),Object.assign(document.createElement("div"),{innerHTML:E,className:J.join(" ")})},option:function(w){var E=w.label,g=w.value,x=w.customProperties,A=w.active,N=w.disabled,$=new Option(E,g,!1,A);return x&&($.dataset.customProperties=x),$.disabled=N,$}},se=Q,ie=function(w){var E=w.value,g=w.label,x=w.id,A=w.groupId,N=w.disabled,$=w.elementId,J=w.customProperties,ae=w.placeholder,de=w.keyCode;return{type:Kt.ADD_CHOICE,value:E,label:g,id:x,groupId:A,disabled:N,elementId:$,customProperties:J,placeholder:ae,keyCode:de}},me=function(w){return{type:Kt.FILTER_CHOICES,results:w}},ue=function(w){return w===void 0&&(w=!0),{type:Kt.ACTIVATE_CHOICES,active:w}},Pe=function(){return{type:Kt.CLEAR_CHOICES}},Fe=function(w){var E=w.value,g=w.label,x=w.id,A=w.choiceId,N=w.groupId,$=w.customProperties,J=w.placeholder,ae=w.keyCode;return{type:Kt.ADD_ITEM,value:E,label:g,id:x,choiceId:A,groupId:N,customProperties:$,placeholder:J,keyCode:ae}},Me=function(w,E){return{type:Kt.REMOVE_ITEM,id:w,choiceId:E}},jt=function(w,E){return{type:Kt.HIGHLIGHT_ITEM,id:w,highlighted:E}},yt=function(w){var E=w.value,g=w.id,x=w.active,A=w.disabled;return{type:Kt.ADD_GROUP,value:E,id:g,active:x,disabled:A}},Gn=function(){return{type:"CLEAR_ALL"}},Qn=function(w){return{type:"RESET_TO",state:w}},Di=function(w){return{type:"SET_IS_LOADING",isLoading:w}};function Ha(O,w){for(var E=0;E<w.length;E++){var g=w[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(O,g.key,g)}}function hr(O,w,E){return w&&Ha(O.prototype,w),E&&Ha(O,E),O}var Ci="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,el={},tl=function(){hr(O,null,[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return el},get templates(){return Q}})}}]);function O(E,g){var x=this;E===void 0&&(E="[data-choice]"),g===void 0&&(g={}),this.config=o.a.all([Yn,O.defaults.options,g],{arrayMerge:function(Ie,Oe){return[].concat(Oe)}});var A=mt(this.config,Yn);A.length&&console.warn("Unknown config option(s) passed",A.join(", "));var N=typeof E=="string"?document.querySelector(E):E;if(!(N instanceof HTMLInputElement||N instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=N.type===Y,this._isSelectOneElement=N.type===oe,this._isSelectMultipleElement=N.type===Ee,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto"),g.addItemFilter&&typeof g.addItemFilter!="function"){var $=g.addItemFilter instanceof RegExp?g.addItemFilter:new RegExp(g.addItemFilter);this.config.addItemFilter=$.test.bind($)}if(this._isTextElement?this.passedElement=new Zs({element:N,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new K({element:N,classNames:this.config.classNames,template:function(Ie){return x._templates.option(Ie)}}),this.initialised=!1,this._store=new mn,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=Te(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var J=window.getComputedStyle(this.passedElement.element),ae=J.direction,de=window.getComputedStyle(document.documentElement),xe=de.direction;ae!==xe&&(this._direction=ae)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach(function(ve){x._presetChoices.push({value:ve.value,label:ve.innerHTML,selected:ve.selected,disabled:ve.disabled||ve.parentNode.disabled,placeholder:ve.value===""||ve.hasAttribute("placeholder"),customProperties:ve.getAttribute("data-custom-properties")})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive){this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),this.initialised=!0;return}this.init()}var w=O.prototype;return w.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=ct(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners();var g=!this.config.addItems||this.passedElement.element.hasAttribute("disabled");g&&this.disable(),this.initialised=!0;var x=this.config.callbackOnInit;x&&typeof x=="function"&&x.call(this)}},w.destroy=function(){!this.initialised||(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},w.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},w.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},w.highlightItem=function(g,x){if(x===void 0&&(x=!0),!g)return this;var A=g.id,N=g.groupId,$=N===void 0?-1:N,J=g.value,ae=J===void 0?"":J,de=g.label,xe=de===void 0?"":de,ve=$>=0?this._store.getGroupById($):null;return this._store.dispatch(jt(A,!0)),x&&this.passedElement.triggerEvent(Pt.highlightItem,{id:A,value:ae,label:xe,groupValue:ve&&ve.value?ve.value:null}),this},w.unhighlightItem=function(g){if(!g)return this;var x=g.id,A=g.groupId,N=A===void 0?-1:A,$=g.value,J=$===void 0?"":$,ae=g.label,de=ae===void 0?"":ae,xe=N>=0?this._store.getGroupById(N):null;return this._store.dispatch(jt(x,!1)),this.passedElement.triggerEvent(Pt.highlightItem,{id:x,value:J,label:de,groupValue:xe&&xe.value?xe.value:null}),this},w.highlightAll=function(){var g=this;return this._store.items.forEach(function(x){return g.highlightItem(x)}),this},w.unhighlightAll=function(){var g=this;return this._store.items.forEach(function(x){return g.unhighlightItem(x)}),this},w.removeActiveItemsByValue=function(g){var x=this;return this._store.activeItems.filter(function(A){return A.value===g}).forEach(function(A){return x._removeItem(A)}),this},w.removeActiveItems=function(g){var x=this;return this._store.activeItems.filter(function(A){var N=A.id;return N!==g}).forEach(function(A){return x._removeItem(A)}),this},w.removeHighlightedItems=function(g){var x=this;return g===void 0&&(g=!1),this._store.highlightedActiveItems.forEach(function(A){x._removeItem(A),g&&x._triggerChange(A.value)}),this},w.showDropdown=function(g){var x=this;return this.dropdown.isActive?this:(requestAnimationFrame(function(){x.dropdown.show(),x.containerOuter.open(x.dropdown.distanceFromTopWindow),!g&&x._canSearch&&x.input.focus(),x.passedElement.triggerEvent(Pt.showDropdown,{})}),this)},w.hideDropdown=function(g){var x=this;return this.dropdown.isActive?(requestAnimationFrame(function(){x.dropdown.hide(),x.containerOuter.close(),!g&&x._canSearch&&(x.input.removeActiveDescendant(),x.input.blur()),x.passedElement.triggerEvent(Pt.hideDropdown,{})}),this):this},w.getValue=function(g){g===void 0&&(g=!1);var x=this._store.activeItems.reduce(function(A,N){var $=g?N.value:N;return A.push($),A},[]);return this._isSelectOneElement?x[0]:x},w.setValue=function(g){var x=this;return this.initialised?(g.forEach(function(A){return x._setChoiceOrItem(A)}),this):this},w.setChoiceByValue=function(g){var x=this;if(!this.initialised||this._isTextElement)return this;var A=Array.isArray(g)?g:[g];return A.forEach(function(N){return x._findAndSelectChoiceByValue(N)}),this},w.setChoices=function(g,x,A,N){var $=this;if(g===void 0&&(g=[]),x===void 0&&(x="value"),A===void 0&&(A="label"),N===void 0&&(N=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if(typeof x!="string"||!x)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(N&&this.clearChoices(),typeof g=="function"){var J=g(this);if(typeof Promise=="function"&&J instanceof Promise)return new Promise(function(ae){return requestAnimationFrame(ae)}).then(function(){return $._handleLoadingState(!0)}).then(function(){return J}).then(function(ae){return $.setChoices(ae,x,A,N)}).catch(function(ae){$.config.silent||console.error(ae)}).then(function(){return $._handleLoadingState(!1)}).then(function(){return $});if(!Array.isArray(J))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof J);return this.setChoices(J,x,A,!1)}if(!Array.isArray(g))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),g.forEach(function(ae){ae.choices?$._addGroup({id:parseInt(ae.id,10)||null,group:ae,valueKey:x,labelKey:A}):$._addChoice({value:ae[x],label:ae[A],isSelected:ae.selected,isDisabled:ae.disabled,customProperties:ae.customProperties,placeholder:ae.placeholder})}),this._stopLoading(),this},w.clearChoices=function(){return this._store.dispatch(Pe()),this},w.clearStore=function(){return this._store.dispatch(Gn()),this},w.clearInput=function(){var g=!this._isSelectOneElement;return this.input.clear(g),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(ue(!0))),this},w._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var g=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,x=this._isSelectElement,A=this._currentState.items!==this._prevState.items;!g||(x&&this._renderChoices(),A&&this._renderItems(),this._prevState=this._currentState)}},w._renderChoices=function(){var g=this,x=this._store,A=x.activeGroups,N=x.activeChoices,$=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return g.choiceList.scrollToTop()}),A.length>=1&&!this._isSearching){var J=N.filter(function(Ie){return Ie.placeholder===!0&&Ie.groupId===-1});J.length>=1&&($=this._createChoicesFragment(J,$)),$=this._createGroupsFragment(A,N,$)}else N.length>=1&&($=this._createChoicesFragment(N,$));if($.childNodes&&$.childNodes.length>0){var ae=this._store.activeItems,de=this._canAddItem(ae,this.input.value);de.response?(this.choiceList.append($),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",de.notice))}else{var xe,ve;this._isSearching?(ve=typeof this.config.noResultsText=="function"?this.config.noResultsText():this.config.noResultsText,xe=this._getTemplate("notice",ve,"no-results")):(ve=typeof this.config.noChoicesText=="function"?this.config.noChoicesText():this.config.noChoicesText,xe=this._getTemplate("notice",ve,"no-choices")),this.choiceList.append(xe)}},w._renderItems=function(){var g=this._store.activeItems||[];this.itemList.clear();var x=this._createItemsFragment(g);x.childNodes&&this.itemList.append(x)},w._createGroupsFragment=function(g,x,A){var N=this;A===void 0&&(A=document.createDocumentFragment());var $=function(ae){return x.filter(function(de){return N._isSelectOneElement?de.groupId===ae.id:de.groupId===ae.id&&(N.config.renderSelectedChoices==="always"||!de.selected)})};return this.config.shouldSort&&g.sort(this.config.sorter),g.forEach(function(J){var ae=$(J);if(ae.length>=1){var de=N._getTemplate("choiceGroup",J);A.appendChild(de),N._createChoicesFragment(ae,A,!0)}}),A},w._createChoicesFragment=function(g,x,A){var N=this;x===void 0&&(x=document.createDocumentFragment()),A===void 0&&(A=!1);var $=this.config,J=$.renderSelectedChoices,ae=$.searchResultLimit,de=$.renderChoiceLimit,xe=this._isSearching?we:this.config.sorter,ve=function($t){var mr=J==="auto"?N._isSelectOneElement||!$t.selected:!0;if(mr){var gr=N._getTemplate("choice",$t,N.config.itemSelectText);x.appendChild(gr)}},Ie=g;J==="auto"&&!this._isSelectOneElement&&(Ie=g.filter(function(Ft){return!Ft.selected}));var Oe=Ie.reduce(function(Ft,$t){return $t.placeholder?Ft.placeholderChoices.push($t):Ft.normalChoices.push($t),Ft},{placeholderChoices:[],normalChoices:[]}),De=Oe.placeholderChoices,Be=Oe.normalChoices;(this.config.shouldSort||this._isSearching)&&Be.sort(xe);var Ae=Ie.length,Ne=this._isSelectOneElement?[].concat(De,Be):Be;this._isSearching?Ae=ae:de&&de>0&&!A&&(Ae=de);for(var ut=0;ut<Ae;ut+=1)Ne[ut]&&ve(Ne[ut]);return x},w._createItemsFragment=function(g,x){var A=this;x===void 0&&(x=document.createDocumentFragment());var N=this.config,$=N.shouldSortItems,J=N.sorter,ae=N.removeItemButton;$&&!this._isSelectOneElement&&g.sort(J),this._isTextElement?this.passedElement.value=g:this.passedElement.options=g;var de=function(ve){var Ie=A._getTemplate("item",ve,ae);x.appendChild(Ie)};return g.forEach(de),x},w._triggerChange=function(g){g!=null&&this.passedElement.triggerEvent(Pt.change,{value:g})},w._selectPlaceholderChoice=function(){var g=this._store.placeholderChoice;g&&(this._addItem({value:g.value,label:g.label,choiceId:g.id,groupId:g.groupId,placeholder:g.placeholder}),this._triggerChange(g.value))},w._handleButtonAction=function(g,x){if(!(!g||!x||!this.config.removeItems||!this.config.removeItemButton)){var A=x.parentNode.getAttribute("data-id"),N=g.find(function($){return $.id===parseInt(A,10)});this._removeItem(N),this._triggerChange(N.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},w._handleItemAction=function(g,x,A){var N=this;if(A===void 0&&(A=!1),!(!g||!x||!this.config.removeItems||this._isSelectOneElement)){var $=x.getAttribute("data-id");g.forEach(function(J){J.id===parseInt($,10)&&!J.highlighted?N.highlightItem(J):!A&&J.highlighted&&N.unhighlightItem(J)}),this.input.focus()}},w._handleChoiceAction=function(g,x){if(!(!g||!x)){var A=x.dataset.id,N=this._store.getChoiceById(A);if(!!N){var $=g[0]&&g[0].keyCode?g[0].keyCode:null,J=this.dropdown.isActive;if(N.keyCode=$,this.passedElement.triggerEvent(Pt.choice,{choice:N}),!N.selected&&!N.disabled){var ae=this._canAddItem(g,N.value);ae.response&&(this._addItem({value:N.value,label:N.label,choiceId:N.id,groupId:N.groupId,customProperties:N.customProperties,placeholder:N.placeholder,keyCode:N.keyCode}),this._triggerChange(N.value))}this.clearInput(),J&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},w._handleBackspace=function(g){if(!(!this.config.removeItems||!g)){var x=g[g.length-1],A=g.some(function(N){return N.highlighted});this.config.editItems&&!A&&x?(this.input.value=x.value,this.input.setWidth(),this._removeItem(x),this._triggerChange(x.value)):(A||this.highlightItem(x,!1),this.removeHighlightedItems(!0))}},w._startLoading=function(){this._store.dispatch(Di(!0))},w._stopLoading=function(){this._store.dispatch(Di(!1))},w._handleLoadingState=function(g){g===void 0&&(g=!0);var x=this.itemList.getChild("."+this.config.classNames.placeholder);g?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?x?x.innerHTML=this.config.loadingText:(x=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(x)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?x.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},w._handleSearch=function(g){if(!(!g||!this.input.isFocussed)){var x=this._store.choices,A=this.config,N=A.searchFloor,$=A.searchChoices,J=x.some(function(de){return!de.active});if(g&&g.length>=N){var ae=$?this._searchChoices(g):0;this.passedElement.triggerEvent(Pt.search,{value:g,resultCount:ae})}else J&&(this._isSearching=!1,this._store.dispatch(ue(!0)))}},w._canAddItem=function(g,x){var A=!0,N=typeof this.config.addItemText=="function"?this.config.addItemText(x):this.config.addItemText;if(!this._isSelectOneElement){var $=$e(g,x);this.config.maxItemCount>0&&this.config.maxItemCount<=g.length&&(A=!1,N=typeof this.config.maxItemText=="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&$&&A&&(A=!1,N=typeof this.config.uniqueItemText=="function"?this.config.uniqueItemText(x):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&A&&typeof this.config.addItemFilter=="function"&&!this.config.addItemFilter(x)&&(A=!1,N=typeof this.config.customAddItemText=="function"?this.config.customAddItemText(x):this.config.customAddItemText)}return{response:A,notice:N}},w._searchChoices=function(g){var x=typeof g=="string"?g.trim():g,A=typeof this._currentValue=="string"?this._currentValue.trim():this._currentValue;if(x.length<1&&x===A+" ")return 0;var N=this._store.searchableChoices,$=x,J=[].concat(this.config.searchFields),ae=Object.assign(this.config.fuseOptions,{keys:J}),de=new i.a(N,ae),xe=de.search($);return this._currentValue=x,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(me(xe)),xe.length},w._addEventListeners=function(){var g=document,x=g.documentElement;x.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),x.addEventListener("click",this._onClick,{passive:!0}),x.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},w._removeEventListeners=function(){var g=document,x=g.documentElement;x.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),x.removeEventListener("click",this._onClick),x.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},w._onKeyDown=function(g){var x,A=g.target,N=g.keyCode,$=g.ctrlKey,J=g.metaKey,ae=this._store.activeItems,de=this.input.isFocussed,xe=this.dropdown.isActive,ve=this.itemList.hasChildren(),Ie=String.fromCharCode(N),Oe=gt.BACK_KEY,De=gt.DELETE_KEY,Be=gt.ENTER_KEY,Ae=gt.A_KEY,Ne=gt.ESC_KEY,ut=gt.UP_KEY,Ft=gt.DOWN_KEY,$t=gt.PAGE_UP_KEY,mr=gt.PAGE_DOWN_KEY,gr=$||J;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(Ie)&&this.showDropdown();var $r=(x={},x[Ae]=this._onAKey,x[Be]=this._onEnterKey,x[Ne]=this._onEscapeKey,x[ut]=this._onDirectionKey,x[$t]=this._onDirectionKey,x[Ft]=this._onDirectionKey,x[mr]=this._onDirectionKey,x[De]=this._onDeleteKey,x[Oe]=this._onDeleteKey,x);$r[N]&&$r[N]({event:g,target:A,keyCode:N,metaKey:J,activeItems:ae,hasFocusedInput:de,hasActiveDropdown:xe,hasItems:ve,hasCtrlDownKeyPressed:gr})},w._onKeyUp=function(g){var x=g.target,A=g.keyCode,N=this.input.value,$=this._store.activeItems,J=this._canAddItem($,N),ae=gt.BACK_KEY,de=gt.DELETE_KEY;if(this._isTextElement){var xe=J.notice&&N;if(xe){var ve=this._getTemplate("notice",J.notice);this.dropdown.element.innerHTML=ve.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0)}else{var Ie=(A===ae||A===de)&&!x.value,Oe=!this._isTextElement&&this._isSearching,De=this._canSearch&&J.response;Ie&&Oe?(this._isSearching=!1,this._store.dispatch(ue(!0))):De&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},w._onAKey=function(g){var x=g.hasItems,A=g.hasCtrlDownKeyPressed;if(A&&x){this._canSearch=!1;var N=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;N&&this.highlightAll()}},w._onEnterKey=function(g){var x=g.event,A=g.target,N=g.activeItems,$=g.hasActiveDropdown,J=gt.ENTER_KEY,ae=A.hasAttribute("data-button");if(this._isTextElement&&A.value){var de=this.input.value,xe=this._canAddItem(N,de);xe.response&&(this.hideDropdown(!0),this._addItem({value:de}),this._triggerChange(de),this.clearInput())}if(ae&&(this._handleButtonAction(N,A),x.preventDefault()),$){var ve=this.dropdown.getChild("."+this.config.classNames.highlightedState);ve&&(N[0]&&(N[0].keyCode=J),this._handleChoiceAction(N,ve)),x.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),x.preventDefault())},w._onEscapeKey=function(g){var x=g.hasActiveDropdown;x&&(this.hideDropdown(!0),this.containerOuter.focus())},w._onDirectionKey=function(g){var x=g.event,A=g.hasActiveDropdown,N=g.keyCode,$=g.metaKey,J=gt.DOWN_KEY,ae=gt.PAGE_UP_KEY,de=gt.PAGE_DOWN_KEY;if(A||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var xe=N===J||N===de?1:-1,ve=$||N===de||N===ae,Ie="[data-choice-selectable]",Oe;if(ve)xe>0?Oe=this.dropdown.element.querySelector(Ie+":last-of-type"):Oe=this.dropdown.element.querySelector(Ie);else{var De=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);De?Oe=Je(De,Ie,xe):Oe=this.dropdown.element.querySelector(Ie)}Oe&&(W(Oe,this.choiceList.element,xe)||this.choiceList.scrollToChildElement(Oe,xe),this._highlightChoice(Oe)),x.preventDefault()}},w._onDeleteKey=function(g){var x=g.event,A=g.target,N=g.hasFocusedInput,$=g.activeItems;N&&!A.value&&!this._isSelectOneElement&&(this._handleBackspace($),x.preventDefault())},w._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},w._onTouchEnd=function(g){var x=g||g.touches[0],A=x.target,N=this._wasTap&&this.containerOuter.element.contains(A);if(N){var $=A===this.containerOuter.element||A===this.containerInner.element;$&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),g.stopPropagation()}this._wasTap=!0},w._onMouseDown=function(g){var x=g.target;if(x instanceof HTMLElement){if(Ci&&this.choiceList.element.contains(x)){var A=this.choiceList.element.firstElementChild,N=this._direction==="ltr"?g.offsetX>=A.offsetWidth:g.offsetX<A.offsetLeft;this._isScrollingOnIe=N}if(x!==this.input.element){var $=x.closest("[data-button],[data-item],[data-choice]");if($ instanceof HTMLElement){var J=g.shiftKey,ae=this._store.activeItems,de=$.dataset;"button"in de?this._handleButtonAction(ae,$):"item"in de?this._handleItemAction(ae,$,J):"choice"in de&&this._handleChoiceAction(ae,$)}g.preventDefault()}}},w._onMouseOver=function(g){var x=g.target;x instanceof HTMLElement&&"choice"in x.dataset&&this._highlightChoice(x)},w._onClick=function(g){var x=g.target,A=this.containerOuter.element.contains(x);if(A)!this.dropdown.isActive&&!this.containerOuter.isDisabled?this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):this._isSelectOneElement&&x!==this.input.element&&!this.dropdown.element.contains(x)&&this.hideDropdown();else{var N=this._store.highlightedActiveItems.length>0;N&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0)}},w._onFocus=function(g){var x=this,A,N=g.target,$=this.containerOuter.element.contains(N);if(!!$){var J=(A={},A[Y]=function(){N===x.input.element&&x.containerOuter.addFocusState()},A[oe]=function(){x.containerOuter.addFocusState(),N===x.input.element&&x.showDropdown(!0)},A[Ee]=function(){N===x.input.element&&(x.showDropdown(!0),x.containerOuter.addFocusState())},A);J[this.passedElement.element.type]()}},w._onBlur=function(g){var x=this,A=g.target,N=this.containerOuter.element.contains(A);if(N&&!this._isScrollingOnIe){var $,J=this._store.activeItems,ae=J.some(function(xe){return xe.highlighted}),de=($={},$[Y]=function(){A===x.input.element&&(x.containerOuter.removeFocusState(),ae&&x.unhighlightAll(),x.hideDropdown(!0))},$[oe]=function(){x.containerOuter.removeFocusState(),(A===x.input.element||A===x.containerOuter.element&&!x._canSearch)&&x.hideDropdown(!0)},$[Ee]=function(){A===x.input.element&&(x.containerOuter.removeFocusState(),x.hideDropdown(!0),ae&&x.unhighlightAll())},$);de[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},w._onFormReset=function(){this._store.dispatch(Qn(this._initialState))},w._highlightChoice=function(g){var x=this;g===void 0&&(g=null);var A=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(!!A.length){var N=g,$=Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState));$.forEach(function(J){J.classList.remove(x.config.classNames.highlightedState),J.setAttribute("aria-selected","false")}),N?this._highlightPosition=A.indexOf(N):(A.length>this._highlightPosition?N=A[this._highlightPosition]:N=A[A.length-1],N||(N=A[0])),N.classList.add(this.config.classNames.highlightedState),N.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(Pt.highlightChoice,{el:N}),this.dropdown.isActive&&(this.input.setActiveDescendant(N.id),this.containerOuter.setActiveDescendant(N.id))}},w._addItem=function(g){var x=g.value,A=g.label,N=A===void 0?null:A,$=g.choiceId,J=$===void 0?-1:$,ae=g.groupId,de=ae===void 0?-1:ae,xe=g.customProperties,ve=xe===void 0?null:xe,Ie=g.placeholder,Oe=Ie===void 0?!1:Ie,De=g.keyCode,Be=De===void 0?null:De,Ae=typeof x=="string"?x.trim():x,Ne=Be,ut=ve,Ft=this._store.items,$t=N||Ae,mr=J||-1,gr=de>=0?this._store.getGroupById(de):null,$r=Ft?Ft.length+1:1;return this.config.prependValue&&(Ae=this.config.prependValue+Ae.toString()),this.config.appendValue&&(Ae+=this.config.appendValue.toString()),this._store.dispatch(Fe({value:Ae,label:$t,id:$r,choiceId:mr,groupId:de,customProperties:ve,placeholder:Oe,keyCode:Ne})),this._isSelectOneElement&&this.removeActiveItems($r),this.passedElement.triggerEvent(Pt.addItem,{id:$r,value:Ae,label:$t,customProperties:ut,groupValue:gr&&gr.value?gr.value:void 0,keyCode:Ne}),this},w._removeItem=function(g){if(!g||!P("Object",g))return this;var x=g.id,A=g.value,N=g.label,$=g.choiceId,J=g.groupId,ae=J>=0?this._store.getGroupById(J):null;return this._store.dispatch(Me(x,$)),ae&&ae.value?this.passedElement.triggerEvent(Pt.removeItem,{id:x,value:A,label:N,groupValue:ae.value}):this.passedElement.triggerEvent(Pt.removeItem,{id:x,value:A,label:N}),this},w._addChoice=function(g){var x=g.value,A=g.label,N=A===void 0?null:A,$=g.isSelected,J=$===void 0?!1:$,ae=g.isDisabled,de=ae===void 0?!1:ae,xe=g.groupId,ve=xe===void 0?-1:xe,Ie=g.customProperties,Oe=Ie===void 0?null:Ie,De=g.placeholder,Be=De===void 0?!1:De,Ae=g.keyCode,Ne=Ae===void 0?null:Ae;if(!(typeof x=="undefined"||x===null)){var ut=this._store.choices,Ft=N||x,$t=ut?ut.length+1:1,mr=this._baseId+"-"+this._idNames.itemChoice+"-"+$t;this._store.dispatch(ie({id:$t,groupId:ve,elementId:mr,value:x,label:Ft,disabled:de,customProperties:Oe,placeholder:Be,keyCode:Ne})),J&&this._addItem({value:x,label:Ft,choiceId:$t,customProperties:Oe,placeholder:Be,keyCode:Ne})}},w._addGroup=function(g){var x=this,A=g.group,N=g.id,$=g.valueKey,J=$===void 0?"value":$,ae=g.labelKey,de=ae===void 0?"label":ae,xe=P("Object",A)?A.choices:Array.from(A.getElementsByTagName("OPTION")),ve=N||Math.floor(new Date().valueOf()*Math.random()),Ie=A.disabled?A.disabled:!1;if(xe){this._store.dispatch(yt({value:A.label,id:ve,active:!0,disabled:Ie}));var Oe=function(Be){var Ae=Be.disabled||Be.parentNode&&Be.parentNode.disabled;x._addChoice({value:Be[J],label:P("Object",Be)?Be[de]:Be.innerHTML,isSelected:Be.selected,isDisabled:Ae,groupId:ve,customProperties:Be.customProperties,placeholder:Be.placeholder})};xe.forEach(Oe)}else this._store.dispatch(yt({value:A.label,id:A.id,active:!1,disabled:A.disabled}))},w._getTemplate=function(g){var x;if(!g)return null;for(var A=this.config.classNames,N=arguments.length,$=new Array(N>1?N-1:0),J=1;J<N;J++)$[J-1]=arguments[J];return(x=this._templates[g]).call.apply(x,[this,A].concat($))},w._createTemplates=function(){var g=this.config.callbackOnCreateTemplates,x={};g&&typeof g=="function"&&(x=g.call(this,q)),this._templates=o()(Q,x)},w._createElements=function(){this.containerOuter=new kt({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new kt({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new at({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new Ue({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new Ue({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new Br({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},w._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},w._addPredefinedGroups=function(g){var x=this,A=this.passedElement.placeholderOption;A&&A.parentNode.tagName==="SELECT"&&this._addChoice({value:A.value,label:A.innerHTML,isSelected:A.selected,isDisabled:A.disabled,placeholder:!0}),g.forEach(function(N){return x._addGroup({group:N,id:N.id||null})})},w._addPredefinedChoices=function(g){var x=this;this.config.shouldSort&&g.sort(this.config.sorter);var A=g.some(function($){return $.selected}),N=g.findIndex(function($){return $.disabled===void 0||!$.disabled});g.forEach(function($,J){var ae=$.value,de=$.label,xe=$.customProperties,ve=$.placeholder;if(x._isSelectElement)if($.choices)x._addGroup({group:$,id:$.id||null});else{var Ie=x._isSelectOneElement&&!A&&J===N,Oe=Ie?!0:$.selected,De=$.disabled;x._addChoice({value:ae,label:de,isSelected:Oe,isDisabled:De,customProperties:xe,placeholder:ve})}else x._addChoice({value:ae,label:de,isSelected:$.selected,isDisabled:$.disabled,customProperties:xe,placeholder:ve})})},w._addPredefinedItems=function(g){var x=this;g.forEach(function(A){typeof A=="object"&&A.value&&x._addItem({value:A.value,label:A.label,choiceId:A.id,customProperties:A.customProperties,placeholder:A.placeholder}),typeof A=="string"&&x._addItem({value:A})})},w._setChoiceOrItem=function(g){var x=this,A=L(g).toLowerCase(),N={object:function(){!g.value||(x._isTextElement?x._addItem({value:g.value,label:g.label,choiceId:g.id,customProperties:g.customProperties,placeholder:g.placeholder}):x._addChoice({value:g.value,label:g.label,isSelected:!0,isDisabled:!1,customProperties:g.customProperties,placeholder:g.placeholder}))},string:function(){x._isTextElement?x._addItem({value:g}):x._addChoice({value:g,label:g,isSelected:!0,isDisabled:!1})}};N[A]()},w._findAndSelectChoiceByValue=function(g){var x=this,A=this._store.choices,N=A.find(function($){return x.config.valueComparer($.value,g)});N&&!N.selected&&this._addItem({value:N.value,label:N.label,choiceId:N.id,groupId:N.groupId,customProperties:N.customProperties,placeholder:N.placeholder,keyCode:N.keyCode})},w._generatePlaceholderValue=function(){if(this._isSelectElement){var g=this.passedElement.placeholderOption;return g?g.text:!1}var x=this.config,A=x.placeholder,N=x.placeholderValue,$=this.passedElement.element.dataset;if(A){if(N)return N;if($.placeholder)return $.placeholder}return!1},O}(),Gd=t.default=tl}]).default})});var Fb=dt((Ns,Pb)=>{h();(function(e,t){typeof Ns=="object"&&typeof Pb!="undefined"?t(Ns):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.immutableJSONPatch={}))})(Ns,function(e){"use strict";function t(W){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(q){return typeof q}:t=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},t(W)}function r(W,j){return JSON.stringify(W)===JSON.stringify(j)}function n(W,j){return W===j}function i(W){return W.slice(0,W.length-1)}function a(W){return W[W.length-1]}function o(W,j){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;if(W.length<j.length)return!1;for(var te=0;te<j.length;te++)if(!q(W[te],j[te]))return!1;return!0}function s(W){return t(W)==="object"&&W!==null}function u(W,j){var q=Object.keys(W);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(W);j&&(te=te.filter(function(we){return Object.getOwnPropertyDescriptor(W,we).enumerable})),q.push.apply(q,te)}return q}function l(W){for(var j=1;j<arguments.length;j++){var q=arguments[j]!=null?arguments[j]:{};j%2?u(Object(q),!0).forEach(function(te){c(W,te,q[te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(q)):u(Object(q)).forEach(function(te){Object.defineProperty(W,te,Object.getOwnPropertyDescriptor(q,te))})}return W}function c(W,j,q){return j in W?Object.defineProperty(W,j,{value:q,enumerable:!0,configurable:!0,writable:!0}):W[j]=q,W}function d(W){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(q){return typeof q}:d=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},d(W)}function f(W){if(Array.isArray(W)){var j=W.slice();return Object.getOwnPropertySymbols(W).forEach(function(te){j[te]=W[te]}),j}else if(d(W)==="object"){var q=l({},W);return Object.getOwnPropertySymbols(W).forEach(function(te){q[te]=W[te]}),q}else return W}function p(W,j,q){if(W[j]===q)return W;var te=f(W);return te[j]=q,te}function m(W,j){for(var q=W,te=0;te<j.length;)s(q)?q=q[j[te]]:q=void 0,te++;return q}function v(W,j,q){var te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(j.length===0)return q;var we=j[0],ke=v(W?W[we]:void 0,j.slice(1),q,te);if(!s(W))if(te){var $e=typeof we=="number"?[]:{};return $e[we]=ke,$e}else throw new Error("Path does not exist");return p(W,we,ke)}function b(W,j,q){if(j.length===0)return q(W);if(!s(W))throw new Error("Path doesn't exist");var te=j[0],we=b(W[te],j.slice(1),q);return p(W,te,we)}function k(W,j){if(j.length===0)return W;if(!s(W))throw new Error("Path does not exist");if(j.length===1){var q=j[0];if(q in W){var te=f(W);return Array.isArray(te)?te.splice(q,1):delete te[q],te}else return W}var we=j[0],ke=k(W[we],j.slice(1));return p(W,we,ke)}function T(W,j,q){var te=j.slice(0,j.length-1),we=j[j.length-1];return b(W,te,function(ke){if(!Array.isArray(ke))throw new TypeError("Array expected at path "+JSON.stringify(te));var $e=f(ke);return $e.splice(we,0,q),$e})}function D(W,j){return W===void 0?!1:j.length===0?!0:D(W[j[0]],j.slice(1))}function I(W){var j=W.split("/");return j.shift(),j.map(function(q){return q.replace(/~1/g,"/").replace(/~0/g,"~")})}function H(W){return W.map(function(j){return"/"+String(j).replace(/~/g,"~0").replace(/\//g,"~1")}).join("")}function C(W,j,q){for(var te=W,we=0;we<j.length;we++){pe(j[we]);var ke=he(te,j[we]);if(q&&q.before){var $e=q.before(te,ke);$e!==void 0&&($e.json!==void 0&&(te=$e.json),$e.operation!==void 0&&(ke=$e.operation))}var ct=te,mt=F[ke.op];if(mt)te=mt(te,ke);else if(ke.op==="test")X(te,ke);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(ke.op));if(q&&q.after){var Lt=q.after(te,ke,ct);Lt!==void 0&&(te=Lt)}}return te}var F={add:ee,remove:z,replace:U,copy:Z,move:le};function U(W,j){var q=j.path,te=j.value;return v(W,q,te)}function z(W,j){var q=j.path;return k(W,q)}function ee(W,j){var q=j.path,te=j.value;return G(W,q)?T(W,q,te):v(W,q,te)}function Z(W,j){var q=j.path,te=j.from,we=m(W,te);if(G(W,q))return T(W,q,we);var ke=m(W,te);return v(W,q,ke)}function le(W,j){var q=j.path,te=j.from,we=m(W,te),ke=k(W,te);return G(ke,q)?T(ke,q,we):v(ke,q,we)}function X(W,j){var q=j.path,te=j.value;if(te===void 0)throw new Error('Test failed: no value provided (path: "'.concat(H(q),'")'));if(!D(W,q))throw new Error('Test failed: path not found (path: "'.concat(H(q),'")'));var we=m(W,q);if(!r(we,te))throw new Error('Test failed, value differs (path: "'.concat(H(q),'")'))}function G(W,j){if(j.length===0)return!1;var q=m(W,i(j));return Array.isArray(q)}function re(W,j){if(a(j)!=="-")return j;var q=i(j),te=m(W,q);return q.concat(te.length)}function pe(W){var j=["add","remove","replace","copy","move","test"];if(!j.includes(W.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(W.op));if(typeof W.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(W));if((W.op==="copy"||W.op==="move")&&typeof W.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(W))}function he(W,j){return{op:j.op,path:re(W,I(j.path)),from:j.from!==void 0?I(j.from):null,value:j.value}}function ge(W,j){var q=[];return C(W,j,{before:function(we,ke){var $e=be[ke.op];$e&&(q=$e(we,ke).concat(q))}}),q}var be={add:P,remove:L,replace:Te,copy:lt,move:Je};function Te(W,j){var q=j.path;return[{op:"replace",path:H(q),value:m(W,q)}]}function L(W,j){var q=j.path;return[{op:"add",path:H(q),value:m(W,q)}]}function P(W,j){var q=j.path,te=j.value;return G(W,q)||!D(W,q)?[{op:"remove",path:H(q)}]:Te(W,{path:q,value:te})}function lt(W,j){var q=j.path,te=j.value;return P(W,{path:q,value:te})}function Je(W,j){var q=j.path,te=j.from;if(q.length<te.length&&o(te,q))return[{op:"replace",path:H(q),value:W}];var we=[{op:"move",from:H(q),path:H(te)}];return!G(W,q)&&D(W,q)&&(we=we.concat(L(W,{path:q}))),we}e.compileJSONPointer=H,e.deleteIn=k,e.existsIn=D,e.getIn=m,e.immutableJSONPatch=C,e.insertAt=T,e.parseJSONPointer=I,e.revertJSONPatch=ge,e.setIn=v,e.updateIn=b,Object.defineProperty(e,"__esModule",{value:!0})})});var Ew=dt((MW,$d)=>{h();(function(){var e;typeof $d!="undefined"?e=$d.exports=n:e=function(){return this||(0,eval)("this")}(),e.format=n,e.vsprintf=r,typeof console!="undefined"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}function r(i,a){return n.apply(null,[i].concat(a))}function n(i){for(var a=1,o=[].slice.call(arguments),s=0,u=i.length,l="",c,d=!1,f,p,m=!1,v,b=function(){return o[a++]},k=function(){for(var T="";/\d/.test(i[s]);)T+=i[s++],c=i[s];return T.length>0?parseInt(T):null};s<u;++s)if(c=i[s],d)switch(d=!1,c=="."?(m=!1,c=i[++s]):c=="0"&&i[s+1]=="."?(m=!0,s+=2,c=i[s]):m=!0,v=k(),c){case"b":l+=parseInt(b(),10).toString(2);break;case"c":f=b(),typeof f=="string"||f instanceof String?l+=f:l+=String.fromCharCode(parseInt(f,10));break;case"d":l+=parseInt(b(),10);break;case"f":p=String(parseFloat(b()).toFixed(v||6)),l+=m?p:p.replace(/^0/,"");break;case"j":l+=JSON.stringify(b());break;case"o":l+="0"+parseInt(b(),10).toString(8);break;case"s":l+=b();break;case"x":l+="0x"+parseInt(b(),10).toString(16);break;case"X":l+="0x"+parseInt(b(),10).toString(16).toUpperCase();break;default:l+=c;break}else c==="%"?d=!0:l+=c;return l}})()});Ti(exports,{default:()=>Jd});h();h();function ol(e,t){let r=Object.keys(t).map(n=>iE(e,n,t[n]));return r.length===1?r[0]:function(){r.forEach(n=>n())}}function iE(e,t,r){let n=e[t],i=e.hasOwnProperty(t),a=r(n);return n&&Object.setPrototypeOf(a,n),Object.setPrototypeOf(o,a),e[t]=o,s;function o(...u){return a===n&&e[t]===o&&s(),a.apply(this,u)}function s(){e[t]===o&&(i?e[t]=n:delete e[t]),a!==n&&(a=n,Object.setPrototypeOf(o,n||Function))}}var xt=ye(require("obsidian"));h();h();vr();var Wr,bt,sl,mf,Vr=0,gf=[],Va=[],yf=fe.__b,vf=fe.__r,bf=fe.diffed,wf=fe.__c,Ef=fe.unmount;function Fi(e,t){fe.__h&&fe.__h(bt,e,Vr||t),Vr=0;var r=bt.__H||(bt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Va}),r.__[e]}function Oi(e){return Vr=1,za(kf,e)}function za(e,t,r){var n=Fi(Wr++,2);return n.t=e,n.__c||(n.__=[r?r(t):kf(void 0,t),function(i){var a=n.t(n.__[0],i);n.__[0]!==a&&(n.__=[a,n.__[1]],n.__c.setState({}))}],n.__c=bt),n.__}function Ni(e,t){var r=Fi(Wr++,3);!fe.__s&&fl(r.__H,t)&&(r.__=e,r.u=t,bt.__H.__h.push(r))}function ja(e,t){var r=Fi(Wr++,4);!fe.__s&&fl(r.__H,t)&&(r.__=e,r.u=t,bt.__h.push(r))}function Ri(e){return Vr=5,Hi(function(){return{current:e}},[])}function ll(e,t,r){Vr=6,ja(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function Hi(e,t){var r=Fi(Wr++,7);return fl(r.__H,t)?(r.__V=e(),r.u=t,r.__h=e,r.__V):r.__}function Bi(e,t){return Vr=8,Hi(function(){return e},t)}function cl(e){var t=bt.context[e.__c],r=Fi(Wr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(bt)),t.props.value):e.__}function ul(e,t){fe.useDebugValue&&fe.useDebugValue(t?t(e):e)}function aE(){for(var e;e=gf.shift();)if(e.__P)try{e.__H.__h.forEach(qa),e.__H.__h.forEach(dl),e.__H.__h=[]}catch(t){e.__H.__h=[],fe.__e(t,e.__v)}}fe.__b=function(e){bt=null,yf&&yf(e)},fe.__r=function(e){vf&&vf(e),Wr=0;var t=(bt=e.__c).__H;t&&(sl===bt?(t.__h=[],bt.__h=[],t.__.forEach(function(r){r.__V=Va,r.u=void 0})):(t.__h.forEach(qa),t.__h.forEach(dl),t.__h=[])),sl=bt},fe.diffed=function(e){bf&&bf(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gf.push(t)!==1&&mf===fe.requestAnimationFrame||((mf=fe.requestAnimationFrame)||function(r){var n,i=function(){clearTimeout(a),xf&&cancelAnimationFrame(n),setTimeout(r)},a=setTimeout(i,100);xf&&(n=requestAnimationFrame(i))})(aE)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.__V!==Va&&(r.__=r.__V),r.u=void 0,r.__V=Va})),sl=bt=null},fe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(qa),r.__h=r.__h.filter(function(n){return!n.__||dl(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],fe.__e(n,r.__v)}}),wf&&wf(e,t)},fe.unmount=function(e){Ef&&Ef(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{qa(n)}catch(i){t=i}}),t&&fe.__e(t,r.__v))};var xf=typeof requestAnimationFrame=="function";function qa(e){var t=bt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),bt=t}function dl(e){var t=bt;e.__c=e.__(),bt=t}function fl(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function kf(e,t){return typeof t=="function"?t(e):t}vr();vr();function Sf(e,t){for(var r in t)e[r]=t[r];return e}function pl(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function hl(e){this.props=e}function oE(e,t){function r(i){var a=this.props.ref,o=a==i.ref;return!o&&a&&(a.call?a(null):a.current=null),t?!t(this.props,i)||!o:pl(this.props,i)}function n(i){return this.shouldComponentUpdate=r,y(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(hl.prototype=new vt).isPureReactComponent=!0,hl.prototype.shouldComponentUpdate=function(e,t){return pl(this.props,e)||pl(this.state,t)};var _f=fe.__b;fe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_f&&_f(e)};var sE=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function lE(e){function t(r){var n=Sf({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=sE,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Df=function(e,t){return e==null?null:qt(qt(e).map(t))},cE={map:Df,forEach:Df,count:function(e){return e?qt(e).length:0},only:function(e){var t=qt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:qt},uE=fe.__e;fe.__e=function(e,t,r,n){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}uE(e,t,r,n)};var Cf=fe.unmount;function Ya(){this.__u=0,this.t=null,this.__b=null}function Tf(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function dE(e){var t,r,n;function i(a){if(t||(t=e()).then(function(o){r=o.default||o},function(o){n=o}),n)throw n;if(!r)throw t;return y(r,a)}return i.displayName="Lazy",i.__f=!0,i}function Ki(){this.u=null,this.o=null}fe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Cf&&Cf(e)},(Ya.prototype=new vt).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=Tf(n.__v),a=!1,o=function(){a||(a=!0,r.__R=null,i?i(s):s())};r.__R=o;var s=function(){if(!--n.__u){if(n.state.__e){var l=n.state.__e;n.__v.__k[0]=function d(f,p,m){return f&&(f.__v=null,f.__k=f.__k&&f.__k.map(function(v){return d(v,p,m)}),f.__c&&f.__c.__P===p&&(f.__e&&m.insertBefore(f.__e,f.__d),f.__c.__e=!0,f.__c.__P=m)),f}(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__e:n.__b=null});c=n.t.pop();)c.forceUpdate()}},u=t.__h===!0;n.__u++||u||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(o,o)},Ya.prototype.componentWillUnmount=function(){this.t=[]},Ya.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,u){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(l){typeof l.__c=="function"&&l.__c()}),o.__c.__H=null),(o=Sf({},o)).__c!=null&&(o.__c.__P===u&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(l){return a(l,s,u)})),o}(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__e&&y(S,null,e.fallback);return i&&(i.__h=null),[y(S,null,t.__e?null:e.children),i]};var Mf=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function fE(e){return this.getChildContext=function(){return e.context},e.children}function pE(e){var t=this,r=e.i;t.componentWillUnmount=function(){yr(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),e.__v?(t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),yr(y(fE,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function hE(e,t){var r=y(pE,{__v:e,i:t});return r.containerInfo=t,r}(Ki.prototype=new vt).__e=function(e){var t=this,r=Tf(t.__v),n=t.o.get(e);return n[0]++,function(i){var a=function(){t.props.revealOrder?(n.push(i),Mf(t,e,n)):i()};r?r(a):a()}},Ki.prototype.render=function(e){this.u=null,this.o=new Map;var t=qt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ki.prototype.componentDidUpdate=Ki.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Mf(e,r,t)})};var If=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,mE=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,gE=typeof document!="undefined",yE=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function vE(e,t,r){return t.__k==null&&(t.textContent=""),yr(e,t),typeof r=="function"&&r(),e?e.__c:null}function bE(e,t,r){return Wa(e,t),typeof r=="function"&&r(),e?e.__c:null}vt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(vt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Af=fe.event;function wE(){}function EE(){return this.cancelBubble}function xE(){return this.defaultPrevented}fe.event=function(e){return Af&&(e=Af(e)),e.persist=wE,e.isPropagationStopped=EE,e.isDefaultPrevented=xE,e.nativeEvent=e};var Lf,Pf={configurable:!0,get:function(){return this.class}},Ff=fe.vnode;fe.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var a in n={},r){var o=r[a];gE&&a==="children"&&t==="noscript"||a==="value"&&"defaultValue"in r&&o==null||(a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!yE(r.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&mE.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),n[a]&&(a="oninputCapture")),n[a]=o)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=qt(r.children).forEach(function(s){s.props.selected=n.value.indexOf(s.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=qt(r.children).forEach(function(s){s.props.selected=n.multiple?n.defaultValue.indexOf(s.props.value)!=-1:n.defaultValue==s.props.value})),e.props=n,r.class!=r.className&&(Pf.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",Pf))}e.$$typeof=If,Ff&&Ff(e)};var Of=fe.__r;fe.__r=function(e){Of&&Of(e),Lf=e.__c};var kE={ReactCurrentDispatcher:{current:{readContext:function(e){return Lf.__n[e.__c].props.value}}}};function SE(e){return y.bind(null,e)}function Nf(e){return!!e&&e.$$typeof===If}function _E(e){return Nf(e)?al.apply(null,arguments):e}function DE(e){return!!e.__k&&(yr(null,e),!0)}function CE(e){return e&&(e.base||e.nodeType===1&&e)||null}var TE=function(e,t){return e(t)},ME=function(e,t){return e(t)};var R={useState:Oi,useReducer:za,useEffect:Ni,useLayoutEffect:ja,useRef:Ri,useImperativeHandle:ll,useMemo:Hi,useCallback:Bi,useContext:cl,useDebugValue:ul,version:"17.0.2",Children:cE,render:vE,hydrate:bE,unmountComponentAtNode:DE,createPortal:hE,createElement:y,createContext:Pi,createFactory:SE,cloneElement:_E,createRef:Li,Fragment:S,isValidElement:Nf,findDOMNode:CE,Component:vt,PureComponent:hl,memo:oE,forwardRef:lE,flushSync:ME,unstable_batchedUpdates:TE,StrictMode:S,Suspense:Ya,SuspenseList:Ki,lazy:dE,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kE};h();function Ze(e){return e.win}function Ja(e){return e.doc.body}h();var lb=ye(_t());h();var We=R.createContext(null),Qa=R.createContext(null);h();var Zf=ye(_t()),Za=ye(require("obsidian"));h();var Yf=ye(zf()),Zn=ye(_t());h();function jf(e){return Object.prototype.toString.call(e)==="[object Object]"}function qf(e){var t,r;return jf(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(jf(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}h();function QE(e,t){return e.length!==t.length?!1:e.every((r,n,i)=>n===i.length-1?r!==t[n]:r===t[n])}function XE(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])}var en;(function(i){i[i.Before=0]="Before",i[i.After=1]="After",i[i.Self=2]="Self",i[i.NotSiblings=3]="NotSiblings"})(en||(en={}));function Wi(e,t){if(XE(e,t))return 2;if(!QE(e,t))return 3;let r=e.length-1;return e[r]<t[r]?1:0}function ft(e,t){let r=t.length?t[0]:null;return r!==null&&e.children&&e.children[r]?ft(e.children[r],t.slice(1)):e}function ZE(e,t){let r=t;for(let n=e.length-1;n>=0;n--)r={children:{[e[n]]:r}};return r}function Vi(e,t){let r=t;for(let n=e.length-2;n>=0;n--)r={children:{[e[n]]:r}};return r}function Jf(e){return Vi(e,{children:{$splice:[[e[e.length-1],1]]}})}function Gf(e,t,r=0){return Vi(e,{children:{$splice:[[e[e.length-1]+r,0,...t]]}})}function ex(e,t){return Vi(e,{children:{$push:t}})}function tx(e,t){return Vi(e,{children:{$unshift:t}})}function Qf(e,t,r,n){let i=n?n(ft(e,t)):ft(e,t),o=Wi(t,r)===en.After?-1:0,s=Jf(t),u=Gf(r,[i],o),l=(0,Yf.default)(s,u,{isMergeableObject:d=>qf(d)||Array.isArray(d)});return(0,Zn.default)(e,l)}function wr(e,t){return(0,Zn.default)(e,Jf(t))}function er(e,t,r){return(0,Zn.default)(e,Gf(t,r))}function vl(e,t,r){return(0,Zn.default)(e,ex(t,r))}function Xf(e,t,r){return(0,Zn.default)(e,tx(t,r))}function Xa(e,t,r){return(0,Zn.default)(e,ZE(t,r))}function bl(e,t,r){return(0,Zn.default)(e,Vi(t,r))}var wl="kanban-plugin";function jr(){}function V(e){return`${wl}__${e}`}function Ve(e=9){return Math.random().toString(36).slice(2,2+e)}function El(e,t,r,n,i){var l,c;let a=ft(e,t.slice(0,-1)),o=ft(r,n.slice(0,-1)),s=(l=a==null?void 0:a.data)==null?void 0:l.shouldMarkItemsComplete,u=(c=o==null?void 0:o.data)==null?void 0:c.shouldMarkItemsComplete;return!s&&!u||u===!!i.data.isComplete?i:(0,Zf.default)(i,{data:{isComplete:{$set:u}}})}function eo(){let e=R.useRef(!1);return{oncompositionstart:()=>{e.current=!0},oncompositionend:()=>{e.current=!1},getShouldIMEBlockAction:()=>e.current}}var nx=/<%/;async function ep(e,t){let r=t?e.app.vault.getAbstractFileByPath(t):null;if(r&&r instanceof Za.TFile){let n=app.workspace.getActiveViewOfType(Za.MarkdownView);try{(n==null?void 0:n.getMode())!=="source"&&await n.setState({...n.getState(),mode:"source"},{});let{templatesEnabled:i,templaterEnabled:a,templatesPlugin:o,templaterPlugin:s}=xl(e.app),u=await e.app.vault.read(r);if(i&&a)return nx.test(u)?await s.append_template_to_active_file(r):await o.instance.insertTemplate(r);if(i)return await o.instance.insertTemplate(r);if(a)return await s.append_template_to_active_file(r);await e.app.vault.modify(e.app.workspace.getActiveFile(),u)}catch(i){console.error(i),e.setError(i)}}}function qr(e){var s,u,l,c,d;let t=e.internalPlugins.plugins,r=(s=t["daily-notes"])==null?void 0:s.enabled,n=(u=t["daily-notes"])==null?void 0:u.instance.options.format,i=(l=e.plugins.plugins["nldates-obsidian"])==null?void 0:l.settings.format,a=(c=t.templates)==null?void 0:c.enabled,o=(d=t.templates)==null?void 0:d.instance.options.dateFormat;return r&&n||i||a&&o||"YYYY-MM-DD"}function zi(e){var a,o,s;let t=e.internalPlugins.plugins,r=(a=e.plugins.plugins["nldates-obsidian"])==null?void 0:a.settings.timeFormat,n=(o=t.templates)==null?void 0:o.enabled,i=(s=t.templates)==null?void 0:s.instance.options.timeFormat;return r||n&&i||"HH:mm"}var tp=/[\\^$.*+?()[\]{}|]/g,rx=RegExp(tp.source);function Sn(e){return e&&rx.test(e)?e.replace(tp,"\\$&"):e||""}function xl(e){var s;let t=e.internalPlugins.plugins.templates,r=t.enabled,n=e.plugins.plugins["templater-obsidian"],i=e.plugins.enabledPlugins.has("templater-obsidian"),a=n&&((s=this.app.plugins.plugins["templater-obsidian"].settings)==null?void 0:s.empty_file_template),o=r?t.instance.options.folder:n?n.settings.template_folder:void 0;return{templatesPlugin:t,templatesEnabled:r,templaterPlugin:n==null?void 0:n.templater,templaterEnabled:i,templaterEmptyFileTemplate:a,templateFolder:o}}h();h();function pt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let r=0,n;r<e.length;r++)(n=pt(e[r]))!==""&&(t+=(t&&" ")+n);else for(let r in e)e[r]&&(t+=(t&&" ")+r);return t}h();h();h();var tn={x:0,y:0,maxX:0,maxY:0},_n={x:0,y:0};var ji=class{constructor(){this.scrollStates=new Map,this.idScopes=new Map}setScrollState(t,r,n){if(this.scrollStates.set(r,n),this.idScopes.has(r)){let i=this.idScopes.get(r);i.has(t)||i.add(t)}else this.idScopes.set(r,new Set([t]))}getScrollState(t){return this.scrollStates.has(t)?this.scrollStates.get(t):tn}unmountScope(t){let r=[];this.idScopes.forEach((n,i)=>{n.has(t)&&(n.delete(t),n.size===0&&r.push(i))}),r.forEach(n=>{this.idScopes.delete(n),this.scrollStates.delete(n)})}};var wt=R.createContext(null),tr=R.createContext(""),qi=R.createContext(null),Yi=R.createContext(new ji),to=R.createContext(null),no=R.createContext(null);h();h();h();var np={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){}},rp=[0,0,0,0];function Qe(e){return e===void 0?0:e}function ro(e,t,r,n){return[e.left+Qe(t==null?void 0:t.x)+Qe(r==null?void 0:r.x)-Qe(n==null?void 0:n.x),e.top+Qe(t==null?void 0:t.y)+Qe(r==null?void 0:r.y)-Qe(n==null?void 0:n.y),e.left+e.width+Qe(t==null?void 0:t.x)+Qe(r==null?void 0:r.x)-Qe(n==null?void 0:n.x),e.top+e.height+Qe(t==null?void 0:t.y)+Qe(r==null?void 0:r.y)-Qe(n==null?void 0:n.y)]}function kl(e,t,r,n){let i=ro(e,t,r,null);return n==="top"?(i[3]=i[1]+35,i):n==="right"?(i[0]=i[0]+e.width-35,i):n==="bottom"?(i[1]=i[1]+e.height-35,i):(i[2]=i[0]+35,i)}function io(e,t,r,n,i,a){return[e-Qe(i==null?void 0:i.x)-Qe(a==null?void 0:a.x),t-Qe(i==null?void 0:i.y)-Qe(a==null?void 0:a.y),r-Qe(i==null?void 0:i.x)-Qe(a==null?void 0:a.x),n-Qe(i==null?void 0:i.y)-Qe(a==null?void 0:a.y)]}var ix=e=>ax(e,(t,r)=>t<r);function ax(e,t){if(e.length===0)return-1;let r=e[0],n=0;for(let i=1;i<e.length;i++)t(e[i],r)&&(n=i,r=e[i]);return n}function ip(e,t,r){let n=Sl(e,t,r);if(!n)return null;let i=n.getData().side,a=n.getHitbox(),o=0,s=0;i==="left"?(o=0,s=2):i==="right"?(o=2,s=0):i==="top"?(o=1,s=3):i==="bottom"&&(o=3,s=1);let u=Math.abs(t[o]-a[s]),l=Math.abs(a[o]-a[s]);return[n,l-u]}function ap(e){return[{x:e[0],y:e[1]},{x:e[2],y:e[1]},{x:e[0],y:e[3]},{x:e[2],y:e[3]}]}function Yr(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ox(e){return{x:(e[0]+e[2])/2,y:(e[1]+e[2])/2}}function Sl(e,t,r){let n=ap(t)[0],i=e.map(o=>{if(o.entityId===r)return 1/0;let s=o.getHitbox(),u=ap(s)[0],l=ox(t),c=o.getData().sortAxis==="horizontal"?"x":"y",d=l[c]>n[c]?1e3:0;return Yr(u,n)+d}),a=ix(i);return e[a]?e[a]:null}function _l(e){let{scrollLeft:t,scrollTop:r,scrollWidth:n,scrollHeight:i,offsetWidth:a,offsetHeight:o}=e,s=t,u=r,l=n-a,c=i-o;return{x:s,y:u,maxX:Math.max(l,0),maxY:Math.max(c,0)}}function op(e,t,r){let n=Math.trunc((r.x-t.x)*100)/100,i=Math.trunc((r.y-t.y)*100)/100;return[e[0]+n,e[1]+i,e[2]+n,e[3]+i]}function Dl(e,t=[0,0,0,0]){let r=e[0]-t[0],n=e[1]-t[1],i=e[2]+t[2],o=e[3]+t[3]-n;return{width:i-r,height:o}}var Cl=class{constructor(t,r,n,i,a,o,s,u,l,c){this.isVisible=!1;this.id=n,this.instanceId=Ve(),this.scopeId=r,this.entityId=`${r}-${n}`,this.dndManager=t,this.index=i,this.children=new Map,this.parent=a,this.scrollParent=o,this.getEntityData=c,this.sortManager=s,this.pollForNodes(u,l)}pollForNodes(t,r){!t()||!r()?this.dndManager.win.requestAnimationFrame(()=>this.pollForNodes(t,r)):this.initNodes(t(),r())}initNodes(t,r){var n,i;if(this.entityNode=t,this.measureNode=r,r.dataset.hitboxid=this.entityId,(n=this.sortManager)==null||n.registerSortable(this.entityId,this.getEntity(np),t,r),this.scrollParent)this.scrollParent.registerObserverHandler(this.entityId,r,a=>{var s,u;let o=Ze(a.target);if(a.isIntersecting){let l=this.getEntity(a.boundingClientRect);(s=this.parent)==null||s.children.set(this.entityId,{entity:l,manager:this}),this.dndManager.observeResize(r),(!this.parent||this.parent.isVisible)&&(this.dndManager.registerHitboxEntity(this.entityId,l,o),this.children.forEach((c,d)=>{this.dndManager.registerHitboxEntity(d,c.entity,o)}),this.setVisibility(!0))}else this.dndManager.unregisterHitboxEntity(this.entityId,o),this.children.forEach((l,c)=>{this.dndManager.unregisterHitboxEntity(c,o)}),(u=this.parent)==null||u.children.delete(this.entityId),this.dndManager.unobserveResize(r),this.setVisibility(!1)});else{let a=this.getEntity(r.getBoundingClientRect());this.dndManager.observeResize(r),this.dndManager.registerHitboxEntity(this.entityId,a,Ze(t)),(i=this.parent)==null||i.children.set(this.entityId,{entity:a,manager:this}),this.setVisibility(!0)}}setVisibility(t){this.isVisible=t,this.children.forEach(r=>{r.manager.setVisibility(t)})}destroy(){var t,r,n;this.dndManager.unobserveResize(this.measureNode),(t=this.sortManager)==null||t.unregisterSortable(this.entityId),(r=this.scrollParent)==null||r.unregisterObserverHandler(this.entityId,this.measureNode),this.entityNode&&this.dndManager.unregisterHitboxEntity(this.entityId,Ze(this.entityNode)),(n=this.parent)==null||n.children.delete(this.entityId)}getPath(){var t;return[...((t=this.parent)==null?void 0:t.getPath())||[],this.index]}getEntity(t){var n,i;let r=this;return{scopeId:this.scopeId,entityId:this.entityId,initial:ro(t,((n=r.scrollParent)==null?void 0:n.scrollState)||tn,((i=r.scrollParent)==null?void 0:i.getScrollShift())||_n,null),getParentScrollState(){var a;return((a=r.scrollParent)==null?void 0:a.scrollState)||tn},getParentScrollShift(){var a;return((a=r.scrollParent)==null?void 0:a.getScrollShift())||_n},recalcInitial(){var a,o;this.initial=ro(r.measureNode.getBoundingClientRect(),((a=r.scrollParent)==null?void 0:a.scrollState)||tn,((o=r.scrollParent)==null?void 0:o.getScrollShift())||_n,null)},getHitbox(){return io(this.initial[0],this.initial[1],this.initial[2],this.initial[3],this.getParentScrollState(),this.getParentScrollShift())},getPath(){return r.getPath()},getData(){var a;return{...r.getEntityData(),sortAxis:(a=r.sortManager)==null?void 0:a.axis,win:Ze(r.measureNode)}}}}};var nr=R.memo(function({id:t,index:r,elementRef:n,measureRef:i,children:a,data:o}){let s=R.useContext(wt),u=R.useContext(to),l=R.useContext(tr),c=R.useContext(no),d=R.useContext(qi),f=R.useRef(o),p=R.useRef();f.current=o;let m=R.useMemo(()=>{if(s){p.current&&p.current.destroy();let v=new Cl(s,l,t,r,c,d,u,()=>n.current,()=>i.current,()=>f.current);return p.current=v,v}return null},[t,r,s,l,c,d,u]);return R.useEffect(()=>()=>{var v;return(v=p.current)==null?void 0:v.destroy()},[]),m?y(no.Provider,{value:m},a):null});function Nn(e){let t=R.useContext(no),r=(t==null?void 0:t.getPath())||[];return e!==void 0&&r.push(e),R.useMemo(()=>r,r)}h();var pu=ye(vh());h();h();h();h();var $h=ye(Kh()),{__extends:nM,__assign:rM,__rest:iM,__decorate:aM,__param:oM,__metadata:sM,__awaiter:ii,__generator:ai,__exportStar:lM,__createBinding:cM,__values:uM,__read:dM,__spread:Uh,__spreadArrays:fM,__spreadArray:pM,__await:hM,__asyncGenerator:mM,__asyncDelegator:gM,__asyncValues:yM,__makeTemplateObject:vM,__importStar:bM,__importDefault:wM,__classPrivateFieldGet:EM,__classPrivateFieldSet:xM,__classPrivateFieldIn:kM}=$h.default;h();var kk=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function ta(e,t){var r=Sk(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function Sk(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=kk.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var _k=[".DS_Store","Thumbs.db"];function ql(e){return ii(this,void 0,void 0,function(){return ai(this,function(t){return[2,Dk(e)&&e.dataTransfer?Mk(e.dataTransfer,e.type):Ck(e)]})})}function Dk(e){return!!e.dataTransfer}function Ck(e){var t=Tk(e.target)?e.target.files?Yl(e.target.files):[]:[];return t.map(function(r){return ta(r)})}function Tk(e){return e!==null}function Mk(e,t){return ii(this,void 0,void 0,function(){var r,n;return ai(this,function(i){switch(i.label){case 0:return e.items?(r=Yl(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(Ik))]):[3,2];case 1:return n=i.sent(),[2,Wh(Vh(n))];case 2:return[2,Wh(Yl(e.files).map(function(a){return ta(a)}))]}})})}function Wh(e){return e.filter(function(t){return _k.indexOf(t.name)===-1})}function Yl(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function Ik(e){if(typeof e.webkitGetAsEntry!="function")return zh(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?jh(t):zh(e)}function Vh(e){return e.reduce(function(t,r){return Uh(t,Array.isArray(r)?Vh(r):[r])},[])}function zh(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var r=ta(t);return Promise.resolve(r)}function Ak(e){return ii(this,void 0,void 0,function(){return ai(this,function(t){return[2,e.isDirectory?jh(e):Lk(e)]})})}function jh(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function a(){var o=this;t.readEntries(function(s){return ii(o,void 0,void 0,function(){var u,l,c;return ai(this,function(d){switch(d.label){case 0:if(s.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return u=d.sent(),r(u),[3,4];case 3:return l=d.sent(),n(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(Ak)),i.push(c),a(),d.label=6;case 6:return[2]}})})},function(s){n(s)})}a()})}function Lk(e){return ii(this,void 0,void 0,function(){return ai(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var a=ta(i,e.fullPath);r(a)},function(i){n(i)})})]})})}var nt=ye(require("obsidian"));h();var ca=ye(Ql());function dm(e,t){let r=(0,ca.getDateFromFile)(t,"day");if(!r||!r.isValid())return;e.internalPlugins.plugins["daily-notes"].instance.gotoNextExisting(r)}function fm(e,t){let r=(0,ca.getDateFromFile)(t,"day");if(!r||!r.isValid())return;e.internalPlugins.plugins["daily-notes"].instance.gotoPreviousExisting(r)}function Mo(e,t){let r=(0,ca.getDailyNoteSettings)();return e.vault.getConfig("useMarkdownLinks")?`[${t}](${r.folder?`${encodeURIComponent(r.folder)}/`:""}${encodeURIComponent(t)}.md)`:`[[${t}]]`}function pm(e){if(!e)return!1;let t=e.match(/---\s+([\w\W]+?)\s+---/);return!(!t||!t[1].contains("kanban-plugin"))}function Xl(e){if(!e)return!1;let t=app.metadataCache.getFileCache(e);return!!(t==null?void 0:t.frontmatter)&&!!(t==null?void 0:t.frontmatter["kanban-plugin"])}function Io(e,t){return t?`${e} (${t})`:e}h();var Eg=ye(require("obsidian"));h();h();var hm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Zl={weekdays:{shorthand:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"],longhand:["\u0627\u0644\u0623\u062D\u062F","\u0627\u0644\u0627\u062B\u0646\u064A\u0646","\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062E\u0645\u064A\u0633","\u0627\u0644\u062C\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062A"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"]},firstDayOfWeek:6,rangeSeparator:" \u0625\u0644\u0649 ",weekAbbreviation:"Wk",scrollTitle:"\u0642\u0645 \u0628\u0627\u0644\u062A\u0645\u0631\u064A\u0631 \u0644\u0644\u0632\u064A\u0627\u062F\u0629",toggleTitle:"\u0627\u0636\u063A\u0637 \u0644\u0644\u062A\u0628\u062F\u064A\u0644",amPM:["\u0635","\u0645"],yearAriaLabel:"\u0633\u0646\u0629",monthAriaLabel:"\u0634\u0647\u0631",hourAriaLabel:"\u0633\u0627\u0639\u0629",minuteAriaLabel:"\u062F\u0642\u064A\u0642\u0629",time_24hr:!1};hm.l10ns.ar=Zl;var FM=hm.l10ns;h();var mm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ec={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["J\xE4n","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["J\xE4nner","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};mm.l10ns.at=ec;var NM=mm.l10ns;h();var gm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},tc={weekdays:{shorthand:["B.","B.e.","\xC7.a.","\xC7.","C.a.","C.","\u015E."],longhand:["Bazar","Bazar ert\u0259si","\xC7\u0259r\u015F\u0259nb\u0259 ax\u015Fam\u0131","\xC7\u0259r\u015F\u0259nb\u0259","C\xFCm\u0259 ax\u015Fam\u0131","C\xFCm\u0259","\u015E\u0259nb\u0259"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","\u0130yn","\u0130yl","Avq","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","\u0130yun","\u0130yul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:()=>".",rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmaq \xFC\xE7\xFCn s\xFCr\xFC\u015Fd\xFCr\xFCn",toggleTitle:"A\xE7 / Ba\u011Fla",amPM:["G\u018F","GS"],time_24hr:!0};gm.l10ns.az=tc;var HM=gm.l10ns;h();var ym=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},nc={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0410\u045E","\u0421\u0440","\u0427\u0446","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u044F\u0434\u0437\u0435\u043B\u044F","\u041F\u0430\u043D\u044F\u0434\u0437\u0435\u043B\u0430\u043A","\u0410\u045E\u0442\u043E\u0440\u0430\u043A","\u0421\u0435\u0440\u0430\u0434\u0430","\u0427\u0430\u0446\u0432\u0435\u0440","\u041F\u044F\u0442\u043D\u0456\u0446\u0430","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0442\u0443","\u041B\u044E\u0442","\u0421\u0430\u043A","\u041A\u0440\u0430","\u0422\u0440\u0430","\u0427\u044D\u0440","\u041B\u0456\u043F","\u0416\u043D\u0456","\u0412\u0435\u0440","\u041A\u0430\u0441","\u041B\u0456\u0441","\u0421\u043D\u0435"],longhand:["\u0421\u0442\u0443\u0434\u0437\u0435\u043D\u044C","\u041B\u044E\u0442\u044B","\u0421\u0430\u043A\u0430\u0432\u0456\u043A","\u041A\u0440\u0430\u0441\u0430\u0432\u0456\u043A","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u044D\u0440\u0432\u0435\u043D\u044C","\u041B\u0456\u043F\u0435\u043D\u044C","\u0416\u043D\u0456\u0432\u0435\u043D\u044C","\u0412\u0435\u0440\u0430\u0441\u0435\u043D\u044C","\u041A\u0430\u0441\u0442\u0440\u044B\u0447\u043D\u0456\u043A","\u041B\u0456\u0441\u0442\u0430\u043F\u0430\u0434","\u0421\u043D\u0435\u0436\u0430\u043D\u044C"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0422\u044B\u0434.",scrollTitle:"\u041F\u0440\u0430\u043A\u0440\u0443\u0446\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0430\u0432\u0435\u043B\u0456\u0447\u044D\u043D\u043D\u044F",toggleTitle:"\u041D\u0430\u0446\u0456\u0441\u043D\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434",time_24hr:!0};ym.l10ns.be=nc;var KM=ym.l10ns;h();var vm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},rc={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0435\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u044F\u0434\u0430","\u0427\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A","\u041F\u0435\u0442\u044A\u043A","\u0421\u044A\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0443","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]},time_24hr:!0,firstDayOfWeek:1};vm.l10ns.bg=rc;var UM=vm.l10ns;h();var bm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ic={weekdays:{shorthand:["\u09B0\u09AC\u09BF","\u09B8\u09CB\u09AE","\u09AE\u0999\u09CD\u0997\u09B2","\u09AC\u09C1\u09A7","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF","\u09B6\u09C1\u0995\u09CD\u09B0","\u09B6\u09A8\u09BF"],longhand:["\u09B0\u09AC\u09BF\u09AC\u09BE\u09B0","\u09B8\u09CB\u09AE\u09AC\u09BE\u09B0","\u09AE\u0999\u09CD\u0997\u09B2\u09AC\u09BE\u09B0","\u09AC\u09C1\u09A7\u09AC\u09BE\u09B0","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF\u09AC\u09BE\u09B0","\u09B6\u09C1\u0995\u09CD\u09B0\u09AC\u09BE\u09B0","\u09B6\u09A8\u09BF\u09AC\u09BE\u09B0"]},months:{shorthand:["\u099C\u09BE\u09A8\u09C1","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7","\u0985\u0995\u09CD\u099F\u09CB","\u09A8\u09AD\u09C7","\u09A1\u09BF\u09B8\u09C7"],longhand:["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"]}};bm.l10ns.bn=ic;var VM=bm.l10ns;h();var wm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ac={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","\u010Cet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Juni","Juli","Avgust","Septembar","Oktobar","Novembar","Decembar"]},time_24hr:!0};wm.l10ns.bs=ac;var jM=wm.l10ns;h();var oc=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ao={weekdays:{shorthand:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],longhand:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},months:{shorthand:["Gen","Febr","Mar\xE7","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"],longhand:["Gener","Febrer","Mar\xE7","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"]},ordinal:e=>{let t=e%100;if(t>3&&t<21)return"\xE8";switch(t%10){case 1:return"r";case 2:return"n";case 3:return"r";case 4:return"t";default:return"\xE8"}},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};oc.l10ns.cat=oc.l10ns.ca=Ao;var YM=oc.l10ns;h();var Em=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},sc={weekdays:{shorthand:["\u06CC\u06D5\u06A9\u0634\u06D5\u0645\u0645\u06D5","\u062F\u0648\u0648\u0634\u06D5\u0645\u0645\u06D5","\u0633\u06CE\u0634\u06D5\u0645\u0645\u06D5","\u0686\u0648\u0627\u0631\u0634\u06D5\u0645\u0645\u06D5","\u067E\u06CE\u0646\u062C\u0634\u06D5\u0645\u0645\u06D5","\u0647\u06D5\u06CC\u0646\u06CC","\u0634\u06D5\u0645\u0645\u06D5"],longhand:["\u06CC\u06D5\u06A9\u0634\u06D5\u0645\u0645\u06D5","\u062F\u0648\u0648\u0634\u06D5\u0645\u0645\u06D5","\u0633\u06CE\u0634\u06D5\u0645\u0645\u06D5","\u0686\u0648\u0627\u0631\u0634\u06D5\u0645\u0645\u06D5","\u067E\u06CE\u0646\u062C\u0634\u06D5\u0645\u0645\u06D5","\u0647\u06D5\u06CC\u0646\u06CC","\u0634\u06D5\u0645\u0645\u06D5"]},months:{shorthand:["\u0695\u06CE\u0628\u06D5\u0646\u062F\u0627\u0646","\u0695\u06D5\u0634\u06D5\u0645\u06D5","\u0646\u06D5\u0648\u0631\u06C6\u0632","\u06AF\u0648\u06B5\u0627\u0646","\u062C\u06C6\u0632\u06D5\u0631\u062F\u0627\u0646","\u067E\u0648\u0648\u0634\u067E\u06D5\u0695","\u06AF\u06D5\u0644\u0627\u0648\u06CE\u0698","\u062E\u06D5\u0631\u0645\u0627\u0646\u0627\u0646","\u0695\u06D5\u0632\u0628\u06D5\u0631","\u06AF\u06D5\u06B5\u0627\u0695\u06CE\u0632\u0627\u0646","\u0633\u06D5\u0631\u0645\u0627\u0648\u06D5\u0632","\u0628\u06D5\u0641\u0631\u0627\u0646\u0628\u0627\u0631"],longhand:["\u0695\u06CE\u0628\u06D5\u0646\u062F\u0627\u0646","\u0695\u06D5\u0634\u06D5\u0645\u06D5","\u0646\u06D5\u0648\u0631\u06C6\u0632","\u06AF\u0648\u06B5\u0627\u0646","\u062C\u06C6\u0632\u06D5\u0631\u062F\u0627\u0646","\u067E\u0648\u0648\u0634\u067E\u06D5\u0695","\u06AF\u06D5\u0644\u0627\u0648\u06CE\u0698","\u062E\u06D5\u0631\u0645\u0627\u0646\u0627\u0646","\u0695\u06D5\u0632\u0628\u06D5\u0631","\u06AF\u06D5\u06B5\u0627\u0695\u06CE\u0632\u0627\u0646","\u0633\u06D5\u0631\u0645\u0627\u0648\u06D5\u0632","\u0628\u06D5\u0641\u0631\u0627\u0646\u0628\u0627\u0631"]},firstDayOfWeek:6,ordinal:()=>""};Em.l10ns.ckb=sc;var GM=Em.l10ns;h();var xm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},lc={weekdays:{shorthand:["Ne","Po","\xDAt","St","\u010Ct","P\xE1","So"],longhand:["Ned\u011Ble","Pond\u011Bl\xED","\xDAter\xFD","St\u0159eda","\u010Ctvrtek","P\xE1tek","Sobota"]},months:{shorthand:["Led","\xDAn","B\u0159e","Dub","Kv\u011B","\u010Cer","\u010Cvc","Srp","Z\xE1\u0159","\u0158\xEDj","Lis","Pro"],longhand:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"T\xFDd.",scrollTitle:"Rolujte pro zm\u011Bnu",toggleTitle:"P\u0159epnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};xm.l10ns.cs=lc;var XM=xm.l10ns;h();var km=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},cc={weekdays:{shorthand:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],longhand:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"]},months:{shorthand:["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],longhand:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},firstDayOfWeek:1,ordinal:e=>e===1?"af":e===2?"ail":e===3||e===4?"ydd":e===5||e===6?"ed":e>=7&&e<=10||e==12||e==15||e==18||e==20?"fed":e==11||e==13||e==14||e==16||e==17||e==19?"eg":e>=21&&e<=39?"ain":"",time_24hr:!0};km.l10ns.cy=cc;var e1=km.l10ns;h();var Sm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},uc={weekdays:{shorthand:["s\xF8n","man","tir","ons","tors","fre","l\xF8r"],longhand:["s\xF8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xF8rdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},ordinal:()=>".",firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge",time_24hr:!0};Sm.l10ns.da=uc;var n1=Sm.l10ns;h();var _m=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},dc={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};_m.l10ns.de=dc;var i1=_m.l10ns;h();var Cr={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:e=>{let t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Lo=Cr;h();var Dm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},fc={firstDayOfWeek:1,rangeSeparator:" \u011Dis ",weekAbbreviation:"Sem",scrollTitle:"Rulumu por pligrandigi la valoron",toggleTitle:"Klaku por \u015Dalti",weekdays:{shorthand:["Dim","Lun","Mar","Mer","\u0134a\u016D","Ven","Sab"],longhand:["diman\u0109o","lundo","mardo","merkredo","\u0135a\u016Ddo","vendredo","sabato"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","A\u016Dg","Sep","Okt","Nov","Dec"],longhand:["januaro","februaro","marto","aprilo","majo","junio","julio","a\u016Dgusto","septembro","oktobro","novembro","decembro"]},ordinal:()=>"-a",time_24hr:!0};Dm.l10ns.eo=fc;var s1=Dm.l10ns;h();var Cm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},pc={weekdays:{shorthand:["Dom","Lun","Mar","Mi\xE9","Jue","Vie","S\xE1b"],longhand:["Domingo","Lunes","Martes","Mi\xE9rcoles","Jueves","Viernes","S\xE1bado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:()=>"\xBA",firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};Cm.l10ns.es=pc;var c1=Cm.l10ns;h();var Tm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},hc={weekdays:{shorthand:["P","E","T","K","N","R","L"],longhand:["P\xFChap\xE4ev","Esmasp\xE4ev","Teisip\xE4ev","Kolmap\xE4ev","Neljap\xE4ev","Reede","Laup\xE4ev"]},months:{shorthand:["Jaan","Veebr","M\xE4rts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],longhand:["Jaanuar","Veebruar","M\xE4rts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"]},firstDayOfWeek:1,ordinal:function(){return"."},weekAbbreviation:"N\xE4d",rangeSeparator:" kuni ",scrollTitle:"Keri, et suurendada",toggleTitle:"Kl\xF5psa, et vahetada",time_24hr:!0};Tm.l10ns.et=hc;var d1=Tm.l10ns;h();var Mm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},mc={weekdays:{shorthand:["\u06CC\u06A9","\u062F\u0648","\u0633\u0647","\u0686\u0647\u0627\u0631","\u067E\u0646\u062C","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],longhand:["\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u0686\u200C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},months:{shorthand:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"],longhand:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"]},firstDayOfWeek:6,ordinal:()=>""};Mm.l10ns.fa=mc;var p1=Mm.l10ns;h();var Im=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},gc={firstDayOfWeek:1,weekdays:{shorthand:["su","ma","ti","ke","to","pe","la"],longhand:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},months:{shorthand:["tammi","helmi","maalis","huhti","touko","kes\xE4","hein\xE4","elo","syys","loka","marras","joulu"],longhand:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xE4kuu","hein\xE4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},ordinal:()=>".",time_24hr:!0};Im.l10ns.fi=gc;var m1=Im.l10ns;h();var Am=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},yc={weekdays:{shorthand:["Sun","M\xE1n","T\xFDs","Mik","H\xF3s","Fr\xED","Ley"],longhand:["Sunnudagur","M\xE1nadagur","T\xFDsdagur","Mikudagur","H\xF3sdagur","Fr\xEDggjadagur","Leygardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","Apr\xEDl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"]},ordinal:()=>".",firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",scrollTitle:"Rulla fyri at broyta",toggleTitle:"Tr\xFDst fyri at skifta",yearAriaLabel:"\xC1r",time_24hr:!0};Am.l10ns.fo=yc;var y1=Am.l10ns;h();var Lm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},vc={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","f\xE9vr","mars","avr","mai","juin","juil","ao\xFBt","sept","oct","nov","d\xE9c"],longhand:["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]},ordinal:e=>e>1?"":"er",rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"D\xE9filer pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};Lm.l10ns.fr=vc;var b1=Lm.l10ns;h();var Pm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},bc={weekdays:{shorthand:["\u039A\u03C5","\u0394\u03B5","\u03A4\u03C1","\u03A4\u03B5","\u03A0\u03AD","\u03A0\u03B1","\u03A3\u03AC"],longhand:["\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE","\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1","\u03A4\u03C1\u03AF\u03C4\u03B7","\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7","\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7","\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE","\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF"]},months:{shorthand:["\u0399\u03B1\u03BD","\u03A6\u03B5\u03B2","\u039C\u03AC\u03C1","\u0391\u03C0\u03C1","\u039C\u03AC\u03B9","\u0399\u03BF\u03CD\u03BD","\u0399\u03BF\u03CD\u03BB","\u0391\u03CD\u03B3","\u03A3\u03B5\u03C0","\u039F\u03BA\u03C4","\u039D\u03BF\u03AD","\u0394\u03B5\u03BA"],longhand:["\u0399\u03B1\u03BD\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2","\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2","\u039C\u03AC\u03C1\u03C4\u03B9\u03BF\u03C2","\u0391\u03C0\u03C1\u03AF\u03BB\u03B9\u03BF\u03C2","\u039C\u03AC\u03B9\u03BF\u03C2","\u0399\u03BF\u03CD\u03BD\u03B9\u03BF\u03C2","\u0399\u03BF\u03CD\u03BB\u03B9\u03BF\u03C2","\u0391\u03CD\u03B3\u03BF\u03C5\u03C3\u03C4\u03BF\u03C2","\u03A3\u03B5\u03C0\u03C4\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2","\u039F\u03BA\u03C4\u03CE\u03B2\u03C1\u03B9\u03BF\u03C2","\u039D\u03BF\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2","\u0394\u03B5\u03BA\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2"]},firstDayOfWeek:1,ordinal:function(){return""},weekAbbreviation:"\u0395\u03B2\u03B4",rangeSeparator:" \u03AD\u03C9\u03C2 ",scrollTitle:"\u039C\u03B5\u03C4\u03B1\u03BA\u03C5\u03BB\u03AE\u03C3\u03C4\u03B5 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B1\u03CD\u03BE\u03B7\u03C3\u03B7",toggleTitle:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE",amPM:["\u03A0\u039C","\u039C\u039C"],yearAriaLabel:"\u03C7\u03C1\u03CC\u03BD\u03BF\u03C2",monthAriaLabel:"\u03BC\u03AE\u03BD\u03B1\u03C2",hourAriaLabel:"\u03CE\u03C1\u03B1",minuteAriaLabel:"\u03BB\u03B5\u03C0\u03C4\u03CC"};Pm.l10ns.gr=bc;var E1=Pm.l10ns;h();var Fm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},wc={weekdays:{shorthand:["\u05D0","\u05D1","\u05D2","\u05D3","\u05D4","\u05D5","\u05E9"],longhand:["\u05E8\u05D0\u05E9\u05D5\u05DF","\u05E9\u05E0\u05D9","\u05E9\u05DC\u05D9\u05E9\u05D9","\u05E8\u05D1\u05D9\u05E2\u05D9","\u05D7\u05DE\u05D9\u05E9\u05D9","\u05E9\u05D9\u05E9\u05D9","\u05E9\u05D1\u05EA"]},months:{shorthand:["\u05D9\u05E0\u05D5\u05F3","\u05E4\u05D1\u05E8\u05F3","\u05DE\u05E8\u05E5","\u05D0\u05E4\u05E8\u05F3","\u05DE\u05D0\u05D9","\u05D9\u05D5\u05E0\u05D9","\u05D9\u05D5\u05DC\u05D9","\u05D0\u05D5\u05D2\u05F3","\u05E1\u05E4\u05D8\u05F3","\u05D0\u05D5\u05E7\u05F3","\u05E0\u05D5\u05D1\u05F3","\u05D3\u05E6\u05DE\u05F3"],longhand:["\u05D9\u05E0\u05D5\u05D0\u05E8","\u05E4\u05D1\u05E8\u05D5\u05D0\u05E8","\u05DE\u05E8\u05E5","\u05D0\u05E4\u05E8\u05D9\u05DC","\u05DE\u05D0\u05D9","\u05D9\u05D5\u05E0\u05D9","\u05D9\u05D5\u05DC\u05D9","\u05D0\u05D5\u05D2\u05D5\u05E1\u05D8","\u05E1\u05E4\u05D8\u05DE\u05D1\u05E8","\u05D0\u05D5\u05E7\u05D8\u05D5\u05D1\u05E8","\u05E0\u05D5\u05D1\u05DE\u05D1\u05E8","\u05D3\u05E6\u05DE\u05D1\u05E8"]},rangeSeparator:" \u05D0\u05DC ",time_24hr:!0};Fm.l10ns.he=wc;var k1=Fm.l10ns;h();var Om=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ec={weekdays:{shorthand:["\u0930\u0935\u093F","\u0938\u094B\u092E","\u092E\u0902\u0917\u0932","\u092C\u0941\u0927","\u0917\u0941\u0930\u0941","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"],longhand:["\u0930\u0935\u093F\u0935\u093E\u0930","\u0938\u094B\u092E\u0935\u093E\u0930","\u092E\u0902\u0917\u0932\u0935\u093E\u0930","\u092C\u0941\u0927\u0935\u093E\u0930","\u0917\u0941\u0930\u0941\u0935\u093E\u0930","\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930","\u0936\u0928\u093F\u0935\u093E\u0930"]},months:{shorthand:["\u091C\u0928","\u092B\u0930","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0947\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0942\u0932\u093E\u0908","\u0905\u0917","\u0938\u093F\u0924","\u0905\u0915\u094D\u091F","\u0928\u0935","\u0926\u093F"],longhand:["\u091C\u0928\u0935\u0930\u0940 ","\u092B\u0930\u0935\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0947\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0942\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u0924 ","\u0938\u093F\u0924\u092E\u094D\u092C\u0930","\u0905\u0915\u094D\u091F\u0942\u092C\u0930","\u0928\u0935\u092E\u094D\u092C\u0930","\u0926\u093F\u0938\u092E\u094D\u092C\u0930"]}};Om.l10ns.hi=Ec;var _1=Om.l10ns;h();var Nm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},xc={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","\u010Cet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Sij","Velj","O\u017Eu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],longhand:["Sije\u010Danj","Velja\u010Da","O\u017Eujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"]},time_24hr:!0};Nm.l10ns.hr=xc;var C1=Nm.l10ns;h();var Rm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},kc={firstDayOfWeek:1,weekdays:{shorthand:["V","H","K","Sz","Cs","P","Szo"],longhand:["Vas\xE1rnap","H\xE9tf\u0151","Kedd","Szerda","Cs\xFCt\xF6rt\xF6k","P\xE9ntek","Szombat"]},months:{shorthand:["Jan","Feb","M\xE1r","\xC1pr","M\xE1j","J\xFAn","J\xFAl","Aug","Szep","Okt","Nov","Dec"],longhand:["Janu\xE1r","Febru\xE1r","M\xE1rcius","\xC1prilis","M\xE1jus","J\xFAnius","J\xFAlius","Augusztus","Szeptember","Okt\xF3ber","November","December"]},ordinal:function(){return"."},weekAbbreviation:"H\xE9t",scrollTitle:"G\xF6rgessen",toggleTitle:"Kattintson a v\xE1lt\xE1shoz",rangeSeparator:" - ",time_24hr:!0};Rm.l10ns.hu=kc;var M1=Rm.l10ns;h();var Hm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Sc={weekdays:{shorthand:["\u053F\u056B\u0580","\u0535\u0580\u056F","\u0535\u0580\u0584","\u0549\u0580\u0584","\u0540\u0576\u0563","\u0548\u0582\u0580\u0562","\u0547\u0562\u0569"],longhand:["\u053F\u056B\u0580\u0561\u056F\u056B","\u0535\u056F\u0578\u0582\u0577\u0561\u0562\u0569\u056B","\u0535\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056B","\u0549\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056B","\u0540\u056B\u0576\u0563\u0577\u0561\u0562\u0569\u056B","\u0548\u0582\u0580\u0562\u0561\u0569","\u0547\u0561\u0562\u0561\u0569"]},months:{shorthand:["\u0540\u0576\u057E","\u0553\u057F\u0580","\u0544\u0561\u0580","\u0531\u057A\u0580","\u0544\u0561\u0575","\u0540\u0576\u057D","\u0540\u056C\u057D","\u0555\u0563\u057D","\u054D\u0565\u057A","\u0540\u0578\u056F","\u0546\u0574\u0562","\u0534\u0565\u056F"],longhand:["\u0540\u0578\u0582\u0576\u057E\u0561\u0580","\u0553\u0565\u057F\u0580\u057E\u0561\u0580","\u0544\u0561\u0580\u057F","\u0531\u057A\u0580\u056B\u056C","\u0544\u0561\u0575\u056B\u057D","\u0540\u0578\u0582\u0576\u056B\u057D","\u0540\u0578\u0582\u056C\u056B\u057D","\u0555\u0563\u0578\u057D\u057F\u0578\u057D","\u054D\u0565\u057A\u057F\u0565\u0574\u0562\u0565\u0580","\u0540\u0578\u056F\u057F\u0565\u0574\u0562\u0565\u0580","\u0546\u0578\u0575\u0565\u0574\u0562\u0565\u0580","\u0534\u0565\u056F\u057F\u0565\u0574\u0562\u0565\u0580"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0547\u0532\u054F",scrollTitle:"\u0548\u056C\u0578\u0580\u0565\u0584\u055D \u0574\u0565\u056E\u0561\u0581\u0576\u0565\u056C\u0578\u0582 \u0570\u0561\u0574\u0561\u0580",toggleTitle:"\u054D\u0565\u0572\u0574\u0565\u0584\u055D \u0583\u0578\u056D\u0565\u056C\u0578\u0582 \u0570\u0561\u0574\u0561\u0580",amPM:["\u0544\u053F","\u053F\u0540"],yearAriaLabel:"\u054F\u0561\u0580\u056B",monthAriaLabel:"\u0531\u0574\u056B\u057D",hourAriaLabel:"\u053A\u0561\u0574",minuteAriaLabel:"\u0550\u0578\u057A\u0565",time_24hr:!0};Hm.l10ns.hy=Sc;var A1=Hm.l10ns;h();var Bm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},_c={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:()=>"",time_24hr:!0,rangeSeparator:" - "};Bm.l10ns.id=_c;var P1=Bm.l10ns;h();var Km=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dc={weekdays:{shorthand:["Sun","M\xE1n","\xDEri","Mi\xF0","Fim","F\xF6s","Lau"],longhand:["Sunnudagur","M\xE1nudagur","\xDEri\xF0judagur","Mi\xF0vikudagur","Fimmtudagur","F\xF6studagur","Laugardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Ma\xED","J\xFAn","J\xFAl","\xC1g\xFA","Sep","Okt","N\xF3v","Des"],longhand:["Jan\xFAar","Febr\xFAar","Mars","Apr\xEDl","Ma\xED","J\xFAn\xED","J\xFAl\xED","\xC1g\xFAst","September","Okt\xF3ber","N\xF3vember","Desember"]},ordinal:()=>".",firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"\xC1r",time_24hr:!0};Km.l10ns.is=Dc;var O1=Km.l10ns;h();var $m=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Cc={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Luned\xEC","Marted\xEC","Mercoled\xEC","Gioved\xEC","Venerd\xEC","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:()=>"\xB0",rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare",time_24hr:!0};$m.l10ns.it=Cc;var R1=$m.l10ns;h();var Um=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Tc={weekdays:{shorthand:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"],longhand:["\u65E5\u66DC\u65E5","\u6708\u66DC\u65E5","\u706B\u66DC\u65E5","\u6C34\u66DC\u65E5","\u6728\u66DC\u65E5","\u91D1\u66DC\u65E5","\u571F\u66DC\u65E5"]},months:{shorthand:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],longhand:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},time_24hr:!0,rangeSeparator:" \u304B\u3089 ",monthAriaLabel:"\u6708",amPM:["\u5348\u524D","\u5348\u5F8C"],yearAriaLabel:"\u5E74",hourAriaLabel:"\u6642\u9593",minuteAriaLabel:"\u5206"};Um.l10ns.ja=Tc;var B1=Um.l10ns;h();var Wm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Mc={weekdays:{shorthand:["\u10D9\u10D5","\u10DD\u10E0","\u10E1\u10D0","\u10DD\u10D7","\u10EE\u10E3","\u10DE\u10D0","\u10E8\u10D0"],longhand:["\u10D9\u10D5\u10D8\u10E0\u10D0","\u10DD\u10E0\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10E1\u10D0\u10DB\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10DD\u10D7\u10EE\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10EE\u10E3\u10D7\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10DE\u10D0\u10E0\u10D0\u10E1\u10D9\u10D4\u10D5\u10D8","\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8"]},months:{shorthand:["\u10D8\u10D0\u10DC","\u10D7\u10D4\u10D1","\u10DB\u10D0\u10E0","\u10D0\u10DE\u10E0","\u10DB\u10D0\u10D8","\u10D8\u10D5\u10DC","\u10D8\u10D5\u10DA","\u10D0\u10D2\u10D5","\u10E1\u10D4\u10E5","\u10DD\u10E5\u10E2","\u10DC\u10DD\u10D4","\u10D3\u10D4\u10D9"],longhand:["\u10D8\u10D0\u10DC\u10D5\u10D0\u10E0\u10D8","\u10D7\u10D4\u10D1\u10D4\u10E0\u10D5\u10D0\u10DA\u10D8","\u10DB\u10D0\u10E0\u10E2\u10D8","\u10D0\u10DE\u10E0\u10D8\u10DA\u10D8","\u10DB\u10D0\u10D8\u10E1\u10D8","\u10D8\u10D5\u10DC\u10D8\u10E1\u10D8","\u10D8\u10D5\u10DA\u10D8\u10E1\u10D8","\u10D0\u10D2\u10D5\u10D8\u10E1\u10E2\u10DD","\u10E1\u10D4\u10E5\u10E2\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8","\u10DD\u10E5\u10E2\u10DD\u10DB\u10D1\u10D4\u10E0\u10D8","\u10DC\u10DD\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8","\u10D3\u10D4\u10D9\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u10D9\u10D5.",scrollTitle:"\u10D3\u10D0\u10E1\u10E5\u10E0\u10DD\u10DA\u10D4\u10D7 \u10D2\u10D0\u10E1\u10D0\u10D3\u10D8\u10D3\u10D4\u10D1\u10DA\u10D0\u10D3",toggleTitle:"\u10D3\u10D0\u10D0\u10D9\u10DA\u10D8\u10D9\u10D4\u10D7 \u10D2\u10D0\u10D3\u10D0\u10E0\u10D7\u10D5\u10D8\u10E1\u10D7\u10D5\u10D8\u10E1",amPM:["AM","PM"],yearAriaLabel:"\u10EC\u10D4\u10DA\u10D8",time_24hr:!0};Wm.l10ns.ka=Mc;var $1=Wm.l10ns;h();var Vm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ic={weekdays:{shorthand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F.","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"],longhand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F\u17D2\u1794\u178F\u17B7\u17CD","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"]},months:{shorthand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"],longhand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"]},ordinal:()=>"",firstDayOfWeek:1,rangeSeparator:" \u178A\u179B\u17CB ",weekAbbreviation:"\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD",scrollTitle:"\u179A\u17C6\u1780\u17B7\u179B\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1794\u1784\u17D2\u1780\u17BE\u1793",toggleTitle:"\u1785\u17BB\u1785\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1795\u17D2\u179B\u17B6\u179F\u17CB\u1794\u17D2\u178A\u17BC\u179A",yearAriaLabel:"\u1786\u17D2\u1793\u17B6\u17C6",time_24hr:!0};Vm.l10ns.km=Ic;var W1=Vm.l10ns;h();var zm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ac={weekdays:{shorthand:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],longhand:["\uC77C\uC694\uC77C","\uC6D4\uC694\uC77C","\uD654\uC694\uC77C","\uC218\uC694\uC77C","\uBAA9\uC694\uC77C","\uAE08\uC694\uC77C","\uD1A0\uC694\uC77C"]},months:{shorthand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"],longhand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"]},ordinal:()=>"\uC77C",rangeSeparator:" ~ ",amPM:["\uC624\uC804","\uC624\uD6C4"]};zm.l10ns.ko=Ac;var z1=zm.l10ns;h();var jm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Lc={weekdays:{shorthand:["\u0416\u0441","\u0414\u0441","\u0421c","\u0421\u0440","\u0411\u0441","\u0416\u043C","\u0421\u0431"],longhand:["\u0416\u0435\u043A\u0441\u0435\u043D\u0431i","\u0414\u04AF\u0439\u0441\u0435\u043D\u0431i","\u0421\u0435\u0439\u0441\u0435\u043D\u0431i","\u0421\u04D9\u0440\u0441\u0435\u043D\u0431i","\u0411\u0435\u0439\u0441\u0435\u043D\u0431i","\u0416\u04B1\u043C\u0430","\u0421\u0435\u043D\u0431i"]},months:{shorthand:["\u049A\u0430\u04A3","\u0410\u049B\u043F","\u041D\u0430\u0443","\u0421\u04D9\u0443","\u041C\u0430\u043C","\u041C\u0430\u0443","\u0428i\u043B","\u0422\u0430\u043C","\u049A\u044B\u0440","\u049A\u0430\u0437","\u049A\u0430\u0440","\u0416\u0435\u043B"],longhand:["\u049A\u0430\u04A3\u0442\u0430\u0440","\u0410\u049B\u043F\u0430\u043D","\u041D\u0430\u0443\u0440\u044B\u0437","\u0421\u04D9\u0443i\u0440","\u041C\u0430\u043C\u044B\u0440","\u041C\u0430\u0443\u0441\u044B\u043C","\u0428i\u043B\u0434\u0435","\u0422\u0430\u043C\u044B\u0437","\u049A\u044B\u0440\u043A\u04AF\u0439\u0435\u043A","\u049A\u0430\u0437\u0430\u043D","\u049A\u0430\u0440\u0430\u0448\u0430","\u0416\u0435\u043B\u0442\u043E\u049B\u0441\u0430\u043D"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0410\u043F\u0442\u0430",scrollTitle:"\u04AE\u043B\u043A\u0435\u0439\u0442\u0443 \u04AF\u0448\u0456\u043D \u0430\u0439\u043D\u0430\u043B\u0434\u044B\u0440\u044B\u04A3\u044B\u0437",toggleTitle:"\u0410\u0443\u044B\u0441\u0442\u044B\u0440\u0443 \u04AF\u0448\u0456\u043D \u0431\u0430\u0441\u044B\u04A3\u044B\u0437",amPM:["\u0422\u0414","\u0422\u041A"],yearAriaLabel:"\u0416\u044B\u043B"};jm.l10ns.kz=Lc;var q1=jm.l10ns;h();var qm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Pc={weekdays:{shorthand:["S","Pr","A","T","K","Pn","\u0160"],longhand:["Sekmadienis","Pirmadienis","Antradienis","Tre\u010Diadienis","Ketvirtadienis","Penktadienis","\u0160e\u0161tadienis"]},months:{shorthand:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd"],longhand:["Sausis","Vasaris","Kovas","Balandis","Gegu\u017E\u0117","Bir\u017Eelis","Liepa","Rugpju\u0304tis","Rugse\u0307jis","Spalis","Lapkritis","Gruodis"]},firstDayOfWeek:1,ordinal:function(){return"-a"},rangeSeparator:" iki ",weekAbbreviation:"Sav",scrollTitle:"Keisti laik\u0105 pel\u0117s rateliu",toggleTitle:"Perjungti laiko format\u0105",time_24hr:!0};qm.l10ns.lt=Pc;var J1=qm.l10ns;h();var Ym=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Fc={firstDayOfWeek:1,weekdays:{shorthand:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],longhand:["Sv\u0113tdiena","Pirmdiena","Otrdiena","Tre\u0161diena","Ceturtdiena","Piektdiena","Sestdiena"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","J\u016Bn","J\u016Bl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janv\u0101ris","Febru\u0101ris","Marts","Apr\u012Blis","Maijs","J\u016Bnijs","J\u016Blijs","Augusts","Septembris","Oktobris","Novembris","Decembris"]},rangeSeparator:" l\u012Bdz ",time_24hr:!0};Ym.l10ns.lv=Fc;var Q1=Ym.l10ns;h();var Jm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Oc={weekdays:{shorthand:["\u041D\u0435","\u041F\u043E","\u0412\u0442","\u0421\u0440","\u0427\u0435","\u041F\u0435","\u0421\u0430"],longhand:["\u041D\u0435\u0434\u0435\u043B\u0430","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0440\u0442\u043E\u043A","\u041F\u0435\u0442\u043E\u043A","\u0421\u0430\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0408\u0430\u043D","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0458","\u0408\u0443\u043D","\u0408\u0443\u043B","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u0408\u0430\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0458","\u0408\u0443\u043D\u0438","\u0408\u0443\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]},firstDayOfWeek:1,weekAbbreviation:"\u041D\u0435\u0434.",rangeSeparator:" \u0434\u043E ",time_24hr:!0};Jm.l10ns.mk=Oc;var Z1=Jm.l10ns;h();var Gm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Nc={firstDayOfWeek:1,weekdays:{shorthand:["\u0414\u0430","\u041C\u044F","\u041B\u0445","\u041F\u04AF","\u0411\u0430","\u0411\u044F","\u041D\u044F"],longhand:["\u0414\u0430\u0432\u0430\u0430","\u041C\u044F\u0433\u043C\u0430\u0440","\u041B\u0445\u0430\u0433\u0432\u0430","\u041F\u04AF\u0440\u044D\u0432","\u0411\u0430\u0430\u0441\u0430\u043D","\u0411\u044F\u043C\u0431\u0430","\u041D\u044F\u043C"]},months:{shorthand:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],longhand:["\u041D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0425\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u04E9\u0440\u04E9\u0432\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0417\u0443\u0440\u0433\u0430\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u043E\u043B\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u041D\u0430\u0439\u043C\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0415\u0441\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043D\u043D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043D\u0445\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"]},rangeSeparator:"-\u0441 ",time_24hr:!0};Gm.l10ns.mn=Nc;var tI=Gm.l10ns;h();var eS=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Qm={weekdays:{shorthand:["Aha","Isn","Sel","Rab","Kha","Jum","Sab"],longhand:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},months:{shorthand:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],longhand:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},firstDayOfWeek:1,ordinal:()=>""},rI=eS.l10ns;h();var Xm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Rc={weekdays:{shorthand:["\u1014\u103D\u1031","\u101C\u102C","\u1002\u102B","\u101F\u1030\u1038","\u1000\u103C\u102C","\u101E\u1031\u102C","\u1014\u1031"],longhand:["\u1010\u1014\u1004\u103A\u1039\u1002\u1014\u103D\u1031","\u1010\u1014\u1004\u103A\u1039\u101C\u102C","\u1021\u1004\u103A\u1039\u1002\u102B","\u1017\u102F\u1012\u1039\u1013\u101F\u1030\u1038","\u1000\u103C\u102C\u101E\u1015\u1010\u1031\u1038","\u101E\u1031\u102C\u1000\u103C\u102C","\u1005\u1014\u1031"]},months:{shorthand:["\u1007\u1014\u103A","\u1016\u1031","\u1019\u1010\u103A","\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u101C\u102D\u102F\u1004\u103A","\u101E\u103C","\u1005\u1000\u103A","\u1021\u1031\u102C\u1000\u103A","\u1014\u102D\u102F","\u1012\u102E"],longhand:["\u1007\u1014\u103A\u1014\u101D\u102B\u101B\u102E","\u1016\u1031\u1016\u1031\u102C\u103A\u101D\u102B\u101B\u102E","\u1019\u1010\u103A","\u1027\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u1007\u1030\u101C\u102D\u102F\u1004\u103A","\u101E\u103C\u1002\u102F\u1010\u103A","\u1005\u1000\u103A\u1010\u1004\u103A\u1018\u102C","\u1021\u1031\u102C\u1000\u103A\u1010\u102D\u102F\u1018\u102C","\u1014\u102D\u102F\u101D\u1004\u103A\u1018\u102C","\u1012\u102E\u1007\u1004\u103A\u1018\u102C"]},firstDayOfWeek:1,ordinal:()=>"",time_24hr:!0};Xm.l10ns.my=Rc;var aI=Xm.l10ns;h();var Zm=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Hc={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" t/m ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",time_24hr:!0,ordinal:e=>e===1||e===8||e>=20?"ste":"de"};Zm.l10ns.nl=Hc;var sI=Zm.l10ns;h();var eg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Bc={weekdays:{shorthand:["S\xF8.","M\xE5.","Ty.","On.","To.","Fr.","La."],longhand:["S\xF8ndag","M\xE5ndag","Tysdag","Onsdag","Torsdag","Fredag","Laurdag"]},months:{shorthand:["Jan","Feb","Mars","Apr","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Veke",scrollTitle:"Scroll for \xE5 endre",toggleTitle:"Klikk for \xE5 veksle",time_24hr:!0,ordinal:()=>"."};eg.l10ns.nn=Bc;var cI=eg.l10ns;h();var tg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Kc={weekdays:{shorthand:["S\xF8n","Man","Tir","Ons","Tor","Fre","L\xF8r"],longhand:["S\xF8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xF8rdag"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Uke",scrollTitle:"Scroll for \xE5 endre",toggleTitle:"Klikk for \xE5 veksle",time_24hr:!0,ordinal:()=>"."};tg.l10ns.no=Kc;var dI=tg.l10ns;h();var ng=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},$c={weekdays:{shorthand:["\u0A10\u0A24","\u0A38\u0A4B\u0A2E","\u0A2E\u0A70\u0A17\u0A32","\u0A2C\u0A41\u0A71\u0A27","\u0A35\u0A40\u0A30","\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30","\u0A38\u0A3C\u0A28\u0A3F\u0A71\u0A1A\u0A30"],longhand:["\u0A10\u0A24\u0A35\u0A3E\u0A30","\u0A38\u0A4B\u0A2E\u0A35\u0A3E\u0A30","\u0A2E\u0A70\u0A17\u0A32\u0A35\u0A3E\u0A30","\u0A2C\u0A41\u0A71\u0A27\u0A35\u0A3E\u0A30","\u0A35\u0A40\u0A30\u0A35\u0A3E\u0A30","\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30\u0A35\u0A3E\u0A30","\u0A38\u0A3C\u0A28\u0A3F\u0A71\u0A1A\u0A30\u0A35\u0A3E\u0A30"]},months:{shorthand:["\u0A1C\u0A28","\u0A2B\u0A3C\u0A30","\u0A2E\u0A3E\u0A30","\u0A05\u0A2A\u0A4D\u0A30\u0A48","\u0A2E\u0A08","\u0A1C\u0A42\u0A28","\u0A1C\u0A41\u0A32\u0A3E","\u0A05\u0A17","\u0A38\u0A24\u0A70","\u0A05\u0A15","\u0A28\u0A35\u0A70","\u0A26\u0A38\u0A70"],longhand:["\u0A1C\u0A28\u0A35\u0A30\u0A40","\u0A2B\u0A3C\u0A30\u0A35\u0A30\u0A40","\u0A2E\u0A3E\u0A30\u0A1A","\u0A05\u0A2A\u0A4D\u0A30\u0A48\u0A32","\u0A2E\u0A08","\u0A1C\u0A42\u0A28","\u0A1C\u0A41\u0A32\u0A3E\u0A08","\u0A05\u0A17\u0A38\u0A24","\u0A38\u0A24\u0A70\u0A2C\u0A30","\u0A05\u0A15\u0A24\u0A42\u0A2C\u0A30","\u0A28\u0A35\u0A70\u0A2C\u0A30","\u0A26\u0A38\u0A70\u0A2C\u0A30"]},time_24hr:!0};ng.l10ns.pa=$c;var pI=ng.l10ns;h();var rg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Uc={weekdays:{shorthand:["Nd","Pn","Wt","\u015Ar","Cz","Pt","So"],longhand:["Niedziela","Poniedzia\u0142ek","Wtorek","\u015Aroda","Czwartek","Pi\u0105tek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Pa\u017A","Lis","Gru"],longhand:["Stycze\u0144","Luty","Marzec","Kwiecie\u0144","Maj","Czerwiec","Lipiec","Sierpie\u0144","Wrzesie\u0144","Pa\u017Adziernik","Listopad","Grudzie\u0144"]},rangeSeparator:" do ",weekAbbreviation:"tydz.",scrollTitle:"Przewi\u0144, aby zwi\u0119kszy\u0107",toggleTitle:"Kliknij, aby prze\u0142\u0105czy\u0107",firstDayOfWeek:1,time_24hr:!0,ordinal:()=>"."};rg.l10ns.pl=Uc;var mI=rg.l10ns;h();var ig=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Wc={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"],longhand:["Domingo","Segunda-feira","Ter\xE7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xE1bado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" at\xE9 ",time_24hr:!0};ig.l10ns.pt=Wc;var yI=ig.l10ns;h();var ag=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Vc={weekdays:{shorthand:["Dum","Lun","Mar","Mie","Joi","Vin","S\xE2m"],longhand:["Duminic\u0103","Luni","Mar\u021Bi","Miercuri","Joi","Vineri","S\xE2mb\u0103t\u0103"]},months:{shorthand:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],longhand:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"]},firstDayOfWeek:1,time_24hr:!0,ordinal:()=>""};ag.l10ns.ro=Vc;var bI=ag.l10ns;h();var og=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},zc={weekdays:{shorthand:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u041D\u0435\u0434.",scrollTitle:"\u041F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u0435 \u0434\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F",toggleTitle:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434",time_24hr:!0};og.l10ns.ru=zc;var EI=og.l10ns;h();var sg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},jc={weekdays:{shorthand:["\u0D89","\u0DC3","\u0D85","\u0DB6","\u0DB6\u0DCA\u200D\u0DBB","\u0DC3\u0DD2","\u0DC3\u0DD9"],longhand:["\u0D89\u0DBB\u0DD2\u0DAF\u0DCF","\u0DC3\u0DB3\u0DD4\u0DAF\u0DCF","\u0D85\u0D9F\u0DC4\u0DBB\u0DD4\u0DC0\u0DCF\u0DAF\u0DCF","\u0DB6\u0DAF\u0DCF\u0DAF\u0DCF","\u0DB6\u0DCA\u200D\u0DBB\u0DC4\u0DC3\u0DCA\u0DB4\u0DAD\u0DD2\u0DB1\u0DCA\u0DAF\u0DCF","\u0DC3\u0DD2\u0D9A\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF","\u0DC3\u0DD9\u0DB1\u0DC3\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF"]},months:{shorthand:["\u0DA2\u0DB1","\u0DB4\u0DD9\u0DB6","\u0DB8\u0DCF\u0DBB\u0DCA","\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA","\u0DB8\u0DD0\u0DBA\u0DD2","\u0DA2\u0DD4\u0DB1\u0DD2","\u0DA2\u0DD6\u0DBD\u0DD2","\u0D85\u0D9C\u0DDD","\u0DC3\u0DD0\u0DB4\u0DCA","\u0D94\u0D9A\u0DCA","\u0DB1\u0DDC\u0DC0\u0DD0","\u0DAF\u0DD9\u0DC3\u0DD0"],longhand:["\u0DA2\u0DB1\u0DC0\u0DCF\u0DBB\u0DD2","\u0DB4\u0DD9\u0DB6\u0DBB\u0DC0\u0DCF\u0DBB\u0DD2","\u0DB8\u0DCF\u0DBB\u0DCA\u0DAD\u0DD4","\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA\u0DBD\u0DCA","\u0DB8\u0DD0\u0DBA\u0DD2","\u0DA2\u0DD4\u0DB1\u0DD2","\u0DA2\u0DD6\u0DBD\u0DD2","\u0D85\u0D9C\u0DDD\u0DC3\u0DCA\u0DAD\u0DD4","\u0DC3\u0DD0\u0DB4\u0DCA\u0DAD\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA","\u0D94\u0D9A\u0DCA\u0DAD\u0DDD\u0DB6\u0DBB\u0DCA","\u0DB1\u0DDC\u0DC0\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA","\u0DAF\u0DD9\u0DC3\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA"]},time_24hr:!0};sg.l10ns.si=jc;var kI=sg.l10ns;h();var lg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},qc={weekdays:{shorthand:["Ned","Pon","Ut","Str","\u0160tv","Pia","Sob"],longhand:["Nede\u013Ea","Pondelok","Utorok","Streda","\u0160tvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","M\xE1j","J\xFAn","J\xFAl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janu\xE1r","Febru\xE1r","Marec","Apr\xEDl","M\xE1j","J\xFAn","J\xFAl","August","September","Okt\xF3ber","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};lg.l10ns.sk=qc;var _I=lg.l10ns;h();var cg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Yc={weekdays:{shorthand:["Ned","Pon","Tor","Sre","\u010Cet","Pet","Sob"],longhand:["Nedelja","Ponedeljek","Torek","Sreda","\u010Cetrtek","Petek","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};cg.l10ns.sl=Yc;var CI=cg.l10ns;h();var ug=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Jc={weekdays:{shorthand:["Di","H\xEB","Ma","M\xEB","En","Pr","Sh"],longhand:["E Diel","E H\xEBn\xEB","E Mart\xEB","E M\xEBrkur\xEB","E Enjte","E Premte","E Shtun\xEB"]},months:{shorthand:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","N\xEBn","Dhj"],longhand:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","N\xEBntor","Dhjetor"]},firstDayOfWeek:1,rangeSeparator:" deri ",weekAbbreviation:"Java",yearAriaLabel:"Viti",monthAriaLabel:"Muaji",hourAriaLabel:"Ora",minuteAriaLabel:"Minuta",time_24hr:!0};ug.l10ns.sq=Jc;var MI=ug.l10ns;h();var dg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Gc={weekdays:{shorthand:["Ned","Pon","Uto","Sre","\u010Cet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",rangeSeparator:" do ",time_24hr:!0};dg.l10ns.sr=Gc;var AI=dg.l10ns;h();var fg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Qc={firstDayOfWeek:1,weekAbbreviation:"v",weekdays:{shorthand:["s\xF6n","m\xE5n","tis","ons","tor","fre","l\xF6r"],longhand:["s\xF6ndag","m\xE5ndag","tisdag","onsdag","torsdag","fredag","l\xF6rdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},rangeSeparator:" till ",time_24hr:!0,ordinal:()=>"."};fg.l10ns.sv=Qc;var PI=fg.l10ns;h();var pg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Xc={weekdays:{shorthand:["\u0E2D\u0E32","\u0E08","\u0E2D","\u0E1E","\u0E1E\u0E24","\u0E28","\u0E2A"],longhand:["\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C","\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C","\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23","\u0E1E\u0E38\u0E18","\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35","\u0E28\u0E38\u0E01\u0E23\u0E4C","\u0E40\u0E2A\u0E32\u0E23\u0E4C"]},months:{shorthand:["\u0E21.\u0E04.","\u0E01.\u0E1E.","\u0E21\u0E35.\u0E04.","\u0E40\u0E21.\u0E22.","\u0E1E.\u0E04.","\u0E21\u0E34.\u0E22.","\u0E01.\u0E04.","\u0E2A.\u0E04.","\u0E01.\u0E22.","\u0E15.\u0E04.","\u0E1E.\u0E22.","\u0E18.\u0E04."],longhand:["\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21","\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C","\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21","\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19","\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21","\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19","\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21","\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21","\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19","\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21","\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19","\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21"]},firstDayOfWeek:1,rangeSeparator:" \u0E16\u0E36\u0E07 ",scrollTitle:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E14",toggleTitle:"\u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",time_24hr:!0,ordinal:()=>""};pg.l10ns.th=Xc;var OI=pg.l10ns;h();var hg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Zc={weekdays:{shorthand:["Paz","Pzt","Sal","\xC7ar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Sal\u0131","\xC7ar\u015Famba","Per\u015Fembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","\u015Eub","Mar","Nis","May","Haz","Tem","A\u011Fu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","\u015Eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011Fustos","Eyl\xFCl","Ekim","Kas\u0131m","Aral\u0131k"]},firstDayOfWeek:1,ordinal:()=>".",rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmak i\xE7in kayd\u0131r\u0131n",toggleTitle:"A\xE7/Kapa",amPM:["\xD6\xD6","\xD6S"],time_24hr:!0};hg.l10ns.tr=Zc;var RI=hg.l10ns;h();var mg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},eu={firstDayOfWeek:1,weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0456\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A","\u0412\u0456\u0432\u0442\u043E\u0440\u043E\u043A","\u0421\u0435\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440","\u041F'\u044F\u0442\u043D\u0438\u0446\u044F","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0456\u0447","\u041B\u044E\u0442","\u0411\u0435\u0440","\u041A\u0432\u0456","\u0422\u0440\u0430","\u0427\u0435\u0440","\u041B\u0438\u043F","\u0421\u0435\u0440","\u0412\u0435\u0440","\u0416\u043E\u0432","\u041B\u0438\u0441","\u0413\u0440\u0443"],longhand:["\u0421\u0456\u0447\u0435\u043D\u044C","\u041B\u044E\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044C","\u041A\u0432\u0456\u0442\u0435\u043D\u044C","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u0435\u0440\u0432\u0435\u043D\u044C","\u041B\u0438\u043F\u0435\u043D\u044C","\u0421\u0435\u0440\u043F\u0435\u043D\u044C","\u0412\u0435\u0440\u0435\u0441\u0435\u043D\u044C","\u0416\u043E\u0432\u0442\u0435\u043D\u044C","\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043D\u044C"]},time_24hr:!0};mg.l10ns.uk=eu;var BI=mg.l10ns;h();var gg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},tu={weekdays:{shorthand:["\u042F\u043A\u0448","\u0414\u0443\u0448","\u0421\u0435\u0448","\u0427\u043E\u0440","\u041F\u0430\u0439","\u0416\u0443\u043C","\u0428\u0430\u043D"],longhand:["\u042F\u043A\u0448\u0430\u043D\u0431\u0430","\u0414\u0443\u0448\u0430\u043D\u0431\u0430","\u0421\u0435\u0448\u0430\u043D\u0431\u0430","\u0427\u043E\u0440\u0448\u0430\u043D\u0431\u0430","\u041F\u0430\u0439\u0448\u0430\u043D\u0431\u0430","\u0416\u0443\u043C\u0430","\u0428\u0430\u043D\u0431\u0430"]},months:{shorthand:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0432\u0430\u0440","\u0424\u0435\u0432\u0440\u0430\u043B","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440","\u041E\u043A\u0442\u044F\u0431\u0440","\u041D\u043E\u044F\u0431\u0440","\u0414\u0435\u043A\u0430\u0431\u0440"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u04B2\u0430\u0444\u0442\u0430",scrollTitle:"\u041A\u0430\u0442\u0442\u0430\u043B\u0430\u0448\u0442\u0438\u0440\u0438\u0448 \u0443\u0447\u0443\u043D \u0430\u0439\u043B\u0430\u043D\u0442\u0438\u0440\u0438\u043D\u0433",toggleTitle:"\u040E\u0442\u0438\u0448 \u0443\u0447\u0443\u043D \u0431\u043E\u0441\u0438\u043D\u0433",amPM:["AM","PM"],yearAriaLabel:"\u0419\u0438\u043B",time_24hr:!0};gg.l10ns.uz=tu;var $I=gg.l10ns;h();var yg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},nu={weekdays:{shorthand:["Ya","Du","Se","Cho","Pa","Ju","Sha"],longhand:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"Hafta",scrollTitle:"Kattalashtirish uchun aylantiring",toggleTitle:"O\u2018tish uchun bosing",amPM:["AM","PM"],yearAriaLabel:"Yil",time_24hr:!0};yg.l10ns.uz_latn=nu;var WI=yg.l10ns;h();var vg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ru={weekdays:{shorthand:["CN","T2","T3","T4","T5","T6","T7"],longhand:["Ch\u1EE7 nh\u1EADt","Th\u1EE9 hai","Th\u1EE9 ba","Th\u1EE9 t\u01B0","Th\u1EE9 n\u0103m","Th\u1EE9 s\xE1u","Th\u1EE9 b\u1EA3y"]},months:{shorthand:["Th1","Th2","Th3","Th4","Th5","Th6","Th7","Th8","Th9","Th10","Th11","Th12"],longhand:["Th\xE1ng m\u1ED9t","Th\xE1ng hai","Th\xE1ng ba","Th\xE1ng t\u01B0","Th\xE1ng n\u0103m","Th\xE1ng s\xE1u","Th\xE1ng b\u1EA3y","Th\xE1ng t\xE1m","Th\xE1ng ch\xEDn","Th\xE1ng m\u01B0\u1EDDi","Th\xE1ng m\u01B0\u1EDDi m\u1ED9t","Th\xE1ng m\u01B0\u1EDDi hai"]},firstDayOfWeek:1,rangeSeparator:" \u0111\u1EBFn "};vg.l10ns.vn=ru;var zI=vg.l10ns;h();var bg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},iu={weekdays:{shorthand:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],longhand:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},months:{shorthand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],longhand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rangeSeparator:" \u81F3 ",weekAbbreviation:"\u5468",scrollTitle:"\u6EDA\u52A8\u5207\u6362",toggleTitle:"\u70B9\u51FB\u5207\u6362 12/24 \u5C0F\u65F6\u65F6\u5236"};bg.l10ns.zh=iu;var qI=bg.l10ns;h();var wg=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},au={weekdays:{shorthand:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],longhand:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},months:{shorthand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],longhand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rangeSeparator:" \u81F3 ",weekAbbreviation:"\u9031",scrollTitle:"\u6EFE\u52D5\u5207\u63DB",toggleTitle:"\u9EDE\u64CA\u5207\u63DB 12/24 \u5C0F\u6642\u6642\u5236"};wg.l10ns.zh_tw=au;var JI=wg.l10ns;var tS={ar:Zl,at:ec,az:tc,be:nc,bg:rc,bn:ic,bs:ac,ca:Ao,ckb:sc,cat:Ao,cs:lc,cy:cc,da:uc,de:dc,default:{...Cr},en:Cr,eo:fc,es:pc,et:hc,fa:mc,fi:gc,fo:yc,fr:vc,gr:bc,he:wc,hi:Ec,hr:xc,hu:kc,hy:Sc,id:_c,is:Dc,it:Cc,ja:Tc,ka:Mc,ko:Ac,km:Ic,kz:Lc,lt:Pc,lv:Fc,mk:Oc,mn:Nc,ms:Qm,my:Rc,nl:Hc,nn:Bc,no:Kc,pa:$c,pl:Uc,pt:Wc,ro:Vc,ru:zc,si:jc,sk:qc,sl:Yc,sq:Jc,sr:Gc,sv:Qc,th:Xc,tr:Zc,uk:eu,vn:ru,zh:iu,zh_tw:au,uz:tu,uz_latn:nu},et=tS;var xg={ar:et.ar,cs:et.cs,da:et.da,de:et.de,en:et.en,"en-gb":et.en,es:et.es,fr:et.fr,hi:et.hi,id:et.id,it:et.it,ja:et.ja,ko:et.ko,nl:et.nl,nn:et.no,pl:et.pl,pt:et.pt,"pt-br":et.pt,ro:et.ro,ru:et.ru,tr:et.tr,"zh-cn":et.zh,"zh-tw":et.zh_tw},nS=xg[Eg.moment.locale()];function Po(e){let t=e==null?void 0:e.getSetting("date-picker-week-start"),r=nS||xg.en;return t?{...r,firstDayOfWeek:t}:r}h();h();var Fo=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],or={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:e=>typeof console!="undefined"&&console.warn(e),getWeek:e=>{let t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);let r=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-r.getTime())/864e5-3+(r.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1,win:window};h();var Ot=(e,t=2)=>`000${e}`.slice(t*-1),Gt=e=>e===!0?1:0;function ou(e,t,r){let n;return function(){let i=arguments;r.clearTimeout(n),n=r.setTimeout(()=>e.apply(this,i),t)}}var Oo=e=>Array.isArray(e)?e:[e];h();h();var su=()=>{},ua=(e,t,r)=>r.months[t?"shorthand":"longhand"][e],kg={D:su,F:function(e,t,r){e.setMonth(r.months.longhand.indexOf(t))},G:(e,t)=>{e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:(e,t)=>{e.setHours(parseFloat(t))},J:(e,t)=>{e.setDate(parseFloat(t))},K:(e,t,r)=>{e.setHours(e.getHours()%12+12*Gt(new RegExp(r.amPM[1],"i").test(t)))},M:function(e,t,r){e.setMonth(r.months.shorthand.indexOf(t))},S:(e,t)=>{e.setSeconds(parseFloat(t))},U:(e,t)=>new Date(parseFloat(t)*1e3),W:function(e,t,r){let n=parseInt(t),i=new Date(e.getFullYear(),0,2+(n-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+r.firstDayOfWeek),i},Y:(e,t)=>{e.setFullYear(parseFloat(t))},Z:(e,t)=>new Date(t),d:(e,t)=>{e.setDate(parseFloat(t))},h:(e,t)=>{e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:(e,t)=>{e.setMinutes(parseFloat(t))},j:(e,t)=>{e.setDate(parseFloat(t))},l:su,m:(e,t)=>{e.setMonth(parseFloat(t)-1)},n:(e,t)=>{e.setMonth(parseFloat(t)-1)},s:(e,t)=>{e.setSeconds(parseFloat(t))},u:(e,t)=>new Date(parseFloat(t)),w:su,y:(e,t)=>{e.setFullYear(2e3+parseFloat(t))}},$n={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},li={Z:e=>e.toISOString(),D:function(e,t,r){return t.weekdays.shorthand[li.w(e,t,r)]},F:function(e,t,r){return ua(li.n(e,t,r)-1,!1,t)},G:function(e,t,r){return Ot(li.h(e,t,r))},H:e=>Ot(e.getHours()),J:function(e,t){return t.ordinal!==void 0?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:(e,t)=>t.amPM[Gt(e.getHours()>11)],M:function(e,t){return ua(e.getMonth(),!0,t)},S:e=>Ot(e.getSeconds()),U:e=>e.getTime()/1e3,W:function(e,t,r){return r.getWeek(e)},Y:e=>Ot(e.getFullYear(),4),d:e=>Ot(e.getDate()),h:e=>e.getHours()%12?e.getHours()%12:12,i:e=>Ot(e.getMinutes()),j:e=>e.getDate(),l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:e=>Ot(e.getMonth()+1),n:e=>e.getMonth()+1,s:e=>e.getSeconds(),u:e=>e.getTime(),w:e=>e.getDay(),y:e=>String(e.getFullYear()).substring(2)};var lu=({config:e=or,l10n:t=Cr,isMobile:r=!1})=>(n,i,a)=>{let o=a||t;return e.formatDate!==void 0&&!r?e.formatDate(n,i,o):i.split("").map((s,u,l)=>li[s]&&l[u-1]!=="\\"?li[s](n,o,e):s!=="\\"?s:"").join("")},No=({config:e=or,l10n:t=Cr})=>(r,n,i,a)=>{if(r!==0&&!r)return;let o=a||t,s,u=r;if(r.getDate)s=new Date(r.getTime());else if(typeof r!="string"&&r.toFixed!==void 0)s=new Date(r);else if(typeof r=="string"){let l=n||(e||or).dateFormat,c=String(r).trim();if(c==="today")s=new Date,i=!0;else if(e&&e.parseDate)s=e.parseDate(r,l);else if(/Z$/.test(c)||/GMT$/.test(c))s=new Date(r);else{let d,f=[];for(let p=0,m=0,v="";p<l.length;p++){let b=l[p],k=b==="\\",T=l[p-1]==="\\"||k;if($n[b]&&!T){v+=$n[b];let D=new RegExp(v).exec(r);D&&(d=!0)&&f[b!=="Y"?"push":"unshift"]({fn:kg[b],val:D[++m]})}else k||(v+=".")}s=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),f.forEach(({fn:p,val:m})=>s=p(s,m,o)||s),s=d?s:void 0}}if(!(s.getDate&&!isNaN(s.getTime()))){e.errorHandler(new Error(`Invalid date provided: ${u}`));return}return i===!0&&s.setHours(0,0,0,0),s};function Qt(e,t,r=!0){return r!==!1?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var Sg=(e,t,r)=>e>Math.min(t,r)&&e<Math.max(t,r),Ro=(e,t,r)=>e*3600+t*60+r,_g=e=>{let t=Math.floor(e/3600),r=(e-t*3600)/60;return[t,r,e-t*3600-r*60]},Dg={DAY:864e5};function Ho(e){let t=e.defaultHour,r=e.defaultMinute,n=e.defaultSeconds;if(e.minDate!==void 0){let i=e.minDate.getHours(),a=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<i&&(t=i),t===i&&r<a&&(r=a),t===i&&r===a&&n<o&&(n=e.minDate.getSeconds())}if(e.maxDate!==void 0){let i=e.maxDate.getHours(),a=e.maxDate.getMinutes();t=Math.min(t,i),t===i&&(r=Math.min(a,r)),t===i&&r===a&&(n=e.maxDate.getSeconds())}return{hours:t,minutes:r,seconds:n}}h();function Nt(e,t,r){if(r===!0)return e.classList.add(t);e.classList.remove(t)}function je(e,t,r,n){let i=e.createElement(t);return r=r||"",n=n||"",i.className=r,n!==void 0&&(i.textContent=n),i}function da(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function cu(e,t){if(t(e))return e;if(e.parentNode)return cu(e.parentNode,t)}function fa(e,t,r){let n=je(e,"div","numInputWrapper"),i=je(e,"input","numInput "+t),a=je(e,"span","arrowUp"),o=je(e,"span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),r!==void 0)for(let s in r)i.setAttribute(s,r[s]);return n.appendChild(i),n.appendChild(a),n.appendChild(o),n}function Xt(e){try{return typeof e.composedPath=="function"?e.composedPath()[0]:e.target}catch(t){return e.target}}var rS=300;function iS(e,t){let r=e.win||window,n={config:{...or,...ht.defaultConfig},l10n:Lo};n.parseDate=No({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=b,n._setHoursFromDate=p,n._positionCalendar=Fn,n.changeMonth=P,n.changeYear=te,n.clear=lt,n.close=Je,n.onMouseOver=mt,n._createElement=je,n.createDay=F,n.destroy=W,n.isEnabled=we,n.jumpToDate=D,n.updateValue=yn,n.open=An,n.redraw=Kr,n.set=gt,n.setDate=oe,n.toggle=at;function i(){n.utils={getDaysInMonth(_=n.currentMonth,M=n.currentYear){return _===1&&(M%4==0&&M%100!=0||M%400==0)?29:n.l10n.daysInMonth[_]}}}function a(){n.element=n.input=e,n.isOpen=!1,Pn(),mn(),kt(),ze(),i(),n.isMobile||C(),T(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&p(n.config.noCalendar?n.latestSelectedDateObj:void 0),yn(!1)),u();let _=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&_&&Fn(),Ue("onReady")}function o(){var _;return((_=n.calendarContainer)==null?void 0:_.getRootNode()).activeElement||n.element.doc.activeElement}function s(_){return _.bind(n)}function u(){let _=n.config;_.weekNumbers===!1&&_.showMonths===1||_.noCalendar!==!0&&r.requestAnimationFrame(function(){if(n.calendarContainer!==void 0&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),n.daysContainer!==void 0){let M=(n.days.offsetWidth+1)*_.showMonths;n.daysContainer.style.width=M+"px",n.calendarContainer.style.width=M+(n.weekWrapper!==void 0?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function l(_){if(n.selectedDates.length===0){let K=n.config.minDate===void 0||Qt(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),Q=Ho(n.config);K.setHours(Q.hours,Q.minutes,Q.seconds,K.getMilliseconds()),n.selectedDates=[K],n.latestSelectedDateObj=K}_!==void 0&&_.type!=="blur"&&Ra(_);let M=n._input.value;f(),yn(),n._input.value!==M&&n._debouncedChange()}function c(_,M){return _%12+12*Gt(M===n.l10n.amPM[1])}function d(_){switch(_%24){case 0:case 12:return 12;default:return _%12}}function f(){if(n.hourElement===void 0||n.minuteElement===void 0)return;let _=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,M=(parseInt(n.minuteElement.value,10)||0)%60,K=n.secondElement!==void 0?(parseInt(n.secondElement.value,10)||0)%60:0;n.amPM!==void 0&&(_=c(_,n.amPM.textContent));let Q=n.config.minTime!==void 0||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&Qt(n.latestSelectedDateObj,n.config.minDate,!0)===0,se=n.config.maxTime!==void 0||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&Qt(n.latestSelectedDateObj,n.config.maxDate,!0)===0;if(n.config.maxTime!==void 0&&n.config.minTime!==void 0&&n.config.minTime>n.config.maxTime){let ie=Ro(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),me=Ro(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),ue=Ro(_,M,K);if(ue>me&&ue<ie){let Pe=_g(ie);_=Pe[0],M=Pe[1],K=Pe[2]}}else{if(se){let ie=n.config.maxTime!==void 0?n.config.maxTime:n.config.maxDate;_=Math.min(_,ie.getHours()),_===ie.getHours()&&(M=Math.min(M,ie.getMinutes())),M===ie.getMinutes()&&(K=Math.min(K,ie.getSeconds()))}if(Q){let ie=n.config.minTime!==void 0?n.config.minTime:n.config.minDate;_=Math.max(_,ie.getHours()),_===ie.getHours()&&M<ie.getMinutes()&&(M=ie.getMinutes()),M===ie.getMinutes()&&(K=Math.max(K,ie.getSeconds()))}}m(_,M,K)}function p(_){let M=_||n.latestSelectedDateObj;M&&M.getHours&&m(M.getHours(),M.getMinutes(),M.getSeconds())}function m(_,M,K){n.latestSelectedDateObj!==void 0&&n.latestSelectedDateObj.setHours(_%24,M,K||0,0),!(!n.hourElement||!n.minuteElement||n.isMobile)&&(n.hourElement.value=Ot(n.config.time_24hr?_:(12+_)%12+12*Gt(_%12==0)),n.minuteElement.value=Ot(M),n.amPM!==void 0&&(n.amPM.textContent=n.l10n.amPM[Gt(_>=12)]),n.secondElement!==void 0&&(n.secondElement.value=Ot(K)))}function v(_){let M=Xt(_),K=parseInt(M.value)+(_.delta||0);(K/1e3>1||_.key==="Enter"&&!/[^\d]/.test(K.toString()))&&te(K)}function b(_,M,K,Q){if(Array.isArray(M))return M.forEach(se=>b(_,se,K,Q));if(Array.isArray(_))return _.forEach(se=>b(se,M,K,Q));_.addEventListener(M,K,Q),n._handlers.push({remove:()=>_.removeEventListener(M,K,Q)})}function k(){Ue("onChange")}function T(){if(n.config.wrap&&["open","close","toggle","clear"].forEach(M=>{Array.prototype.forEach.call(n.element.querySelectorAll(`[data-${M}]`),K=>b(K,"click",n[M]))}),n.isMobile){qe();return}let _=ou(Lt,50,r);if(n._debouncedChange=ou(k,rS,r),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&b(n.daysContainer,"mouseover",M=>{n.config.mode==="range"&&mt(Xt(M))}),b(n._input,"keydown",ct),n.calendarContainer!==void 0&&b(n.calendarContainer,"keydown",ct),!n.config.inline&&!n.config.static&&b(r,"resize",_),r.ontouchstart!==void 0?b(r.document,"touchstart",q):b(r.document,"mousedown",q),b(r.document,"focus",q,{capture:!0}),n.config.clickOpens===!0&&(b(n._input,"focus",n.open),b(n._input,"click",n.open)),n.daysContainer!==void 0&&(b(n.monthNav,"click",Zs),b(n.monthNav,["keyup","increment"],v),b(n.daysContainer,"click",Pt)),n.timeContainer!==void 0&&n.minuteElement!==void 0&&n.hourElement!==void 0){let M=K=>Xt(K).select();b(n.timeContainer,["increment"],l),b(n.timeContainer,"blur",l,{capture:!0}),b(n.timeContainer,"click",I),b([n.hourElement,n.minuteElement],["focus","click"],M),n.secondElement!==void 0&&b(n.secondElement,"focus",()=>n.secondElement&&n.secondElement.select()),n.amPM!==void 0&&b(n.amPM,"click",K=>{l(K)})}n.config.allowInput&&b(n._input,"blur",$e)}function D(_,M){let K=_!==void 0?n.parseDate(_):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),Q=n.currentYear,se=n.currentMonth;try{K!==void 0&&(n.currentYear=K.getFullYear(),n.currentMonth=K.getMonth())}catch(ie){ie.message="Invalid date supplied: "+K,n.config.errorHandler(ie)}M&&n.currentYear!==Q&&(Ue("onYearChange"),G()),M&&(n.currentYear!==Q||n.currentMonth!==se)&&Ue("onMonthChange"),n.redraw()}function I(_){let M=Xt(_);~M.className.indexOf("arrow")&&H(_,M.classList.contains("arrowUp")?1:-1)}function H(_,M,K){let Q=_&&Xt(_),se=K||Q&&Q.parentNode&&Q.parentNode.firstChild,ie=ln("increment");ie.delta=M,se&&se.dispatchEvent(ie)}function C(){let _=r.document.createDocumentFragment();if(n.calendarContainer=je(r.document,"div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(_.appendChild(he()),n.innerContainer=je(r.document,"div","flatpickr-innerContainer"),n.config.weekNumbers){let{weekWrapper:K,weekNumbers:Q}=L();n.innerContainer.appendChild(K),n.weekNumbers=Q,n.weekWrapper=K}n.rContainer=je(r.document,"div","flatpickr-rContainer"),n.rContainer.appendChild(be()),n.daysContainer||(n.daysContainer=je(r.document,"div","flatpickr-days"),n.daysContainer.tabIndex=-1),X(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),_.appendChild(n.innerContainer)}n.config.enableTime&&_.appendChild(ge()),Nt(n.calendarContainer,"rangeMode",n.config.mode==="range"),Nt(n.calendarContainer,"animate",n.config.animate===!0),Nt(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(_);let M=n.config.appendTo!==void 0&&n.config.appendTo.nodeType!==void 0;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!M&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):n.config.appendTo!==void 0&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){let K=je(r.document,"div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(K,n.element),K.appendChild(n.element),n.altInput&&K.appendChild(n.altInput),K.appendChild(n.calendarContainer)}!n.config.static&&!n.config.inline&&(n.config.appendTo!==void 0?n.config.appendTo:r.document.body).appendChild(n.calendarContainer)}function F(_,M,K,Q){let se=we(M,!0),ie=je(r.document,"span",_,M.getDate().toString());return ie.dateObj=M,ie.$i=Q,ie.setAttribute("aria-label",n.formatDate(M,n.config.ariaDateFormat)),_.indexOf("hidden")===-1&&Qt(M,n.now)===0&&(n.todayDateElem=ie,ie.classList.add("today"),ie.setAttribute("aria-current","date")),se?(ie.tabIndex=-1,Ye(M)&&(ie.classList.add("selected"),n.selectedDateElem=ie,n.config.mode==="range"&&(Nt(ie,"startRange",n.selectedDates[0]&&Qt(M,n.selectedDates[0],!0)===0),Nt(ie,"endRange",n.selectedDates[1]&&Qt(M,n.selectedDates[1],!0)===0),_==="nextMonthDay"&&ie.classList.add("inRange")))):ie.classList.add("flatpickr-disabled"),n.config.mode==="range"&&Jn(M)&&!Ye(M)&&ie.classList.add("inRange"),n.weekNumbers&&n.config.showMonths===1&&_!=="prevMonthDay"&&Q%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(M)+"</span>"),Ue("onDayCreate",ie),ie}function U(_){_.focus(),n.config.mode==="range"&&mt(_)}function z(_){let M=_>0?0:n.config.showMonths-1,K=_>0?n.config.showMonths:-1;for(let Q=M;Q!=K;Q+=_){let se=n.daysContainer.children[Q],ie=_>0?0:se.children.length-1,me=_>0?se.children.length:-1;for(let ue=ie;ue!=me;ue+=_){let Pe=se.children[ue];if(Pe.className.indexOf("hidden")===-1&&we(Pe.dateObj))return Pe}}}function ee(_,M){let K=_.className.indexOf("Month")===-1?_.dateObj.getMonth():n.currentMonth,Q=M>0?n.config.showMonths:-1,se=M>0?1:-1;for(let ie=K-n.currentMonth;ie!=Q;ie+=se){let me=n.daysContainer.children[ie],ue=K-n.currentMonth===ie?_.$i+M:M<0?me.children.length-1:0,Pe=me.children.length;for(let Fe=ue;Fe>=0&&Fe<Pe&&Fe!=(M>0?Pe:-1);Fe+=se){let Me=me.children[Fe];if(Me.className.indexOf("hidden")===-1&&we(Me.dateObj)&&Math.abs(_.$i-Fe)>=Math.abs(M))return U(Me)}}n.changeMonth(se),Z(z(se),0)}function Z(_,M){let K=o(),Q=ke(K||n.element.doc.body),se=_!==void 0?_:Q?K:n.selectedDateElem!==void 0&&ke(n.selectedDateElem)?n.selectedDateElem:n.todayDateElem!==void 0&&ke(n.todayDateElem)?n.todayDateElem:z(M>0?1:-1);se===void 0?n._input.focus():Q?ee(se,M):U(se)}function le(_,M){let K=(new Date(_,M,1).getDay()-n.l10n.firstDayOfWeek+7)%7,Q=n.utils.getDaysInMonth((M-1+12)%12,_),se=n.utils.getDaysInMonth(M,_),ie=r.document.createDocumentFragment(),me=n.config.showMonths>1,ue=me?"prevMonthDay hidden":"prevMonthDay",Pe=me?"nextMonthDay hidden":"nextMonthDay",Fe=Q+1-K,Me=0;for(;Fe<=Q;Fe++,Me++)ie.appendChild(F(`flatpickr-day ${ue}`,new Date(_,M-1,Fe),Fe,Me));for(Fe=1;Fe<=se;Fe++,Me++)ie.appendChild(F("flatpickr-day",new Date(_,M,Fe),Fe,Me));for(let yt=se+1;yt<=42-K&&(n.config.showMonths===1||Me%7!=0);yt++,Me++)ie.appendChild(F(`flatpickr-day ${Pe}`,new Date(_,M+1,yt%se),yt,Me));let jt=je(r.document,"div","dayContainer");return jt.appendChild(ie),jt}function X(){if(n.daysContainer===void 0)return;da(n.daysContainer),n.weekNumbers&&da(n.weekNumbers);let _=n.element.doc.createDocumentFragment();for(let M=0;M<n.config.showMonths;M++){let K=new Date(n.currentYear,n.currentMonth,1);K.setMonth(n.currentMonth+M),_.appendChild(le(K.getFullYear(),K.getMonth()))}n.daysContainer.appendChild(_),n.days=n.daysContainer.firstChild,n.config.mode==="range"&&n.selectedDates.length===1&&mt()}function G(){if(n.config.showMonths>1||n.config.monthSelectorType!=="dropdown")return;let _=function(M){return n.config.minDate!==void 0&&n.currentYear===n.config.minDate.getFullYear()&&M<n.config.minDate.getMonth()?!1:!(n.config.maxDate!==void 0&&n.currentYear===n.config.maxDate.getFullYear()&&M>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(let M=0;M<12;M++){if(!_(M))continue;let K=je(r.document,"option","flatpickr-monthDropdown-month");K.value=new Date(n.currentYear,M).getMonth().toString(),K.textContent=ua(M,n.config.shorthandCurrentMonth,n.l10n),K.tabIndex=-1,n.currentMonth===M&&(K.selected=!0),n.monthsDropdownContainer.appendChild(K)}}function re(){let _=je(r.document,"div","flatpickr-month"),M=r.document.createDocumentFragment(),K;n.config.showMonths>1||n.config.monthSelectorType==="static"?K=je(r.document,"span","cur-month"):(n.monthsDropdownContainer=je(r.document,"select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),b(n.monthsDropdownContainer,"change",me=>{let ue=Xt(me),Pe=parseInt(ue.value,10);n.changeMonth(Pe-n.currentMonth),Ue("onMonthChange")}),G(),K=n.monthsDropdownContainer);let Q=fa(r.document,"cur-year",{tabindex:"-1"}),se=Q.getElementsByTagName("input")[0];se.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&se.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(se.setAttribute("max",n.config.maxDate.getFullYear().toString()),se.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());let ie=je(r.document,"div","flatpickr-current-month");return ie.appendChild(K),ie.appendChild(Q),M.appendChild(ie),_.appendChild(M),{container:_,yearElement:se,monthElement:K}}function pe(){da(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(let _=n.config.showMonths;_--;){let M=re();n.yearElements.push(M.yearElement),n.monthElements.push(M.monthElement),n.monthNav.appendChild(M.container)}n.monthNav.appendChild(n.nextMonthNav)}function he(){return n.monthNav=je(r.document,"div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=je(r.document,"span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=je(r.document,"span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,pe(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:()=>n.__hidePrevMonthArrow,set(_){n.__hidePrevMonthArrow!==_&&(Nt(n.prevMonthNav,"flatpickr-disabled",_),n.__hidePrevMonthArrow=_)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:()=>n.__hideNextMonthArrow,set(_){n.__hideNextMonthArrow!==_&&(Nt(n.nextMonthNav,"flatpickr-disabled",_),n.__hideNextMonthArrow=_)}}),n.currentYearElement=n.yearElements[0],St(),n.monthNav}function ge(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");let _=Ho(n.config);n.timeContainer=je(r.document,"div","flatpickr-time"),n.timeContainer.tabIndex=-1;let M=je(r.document,"span","flatpickr-time-separator",":"),K=fa(r.document,"flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=K.getElementsByTagName("input")[0];let Q=fa(r.document,"flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});if(n.minuteElement=Q.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=Ot(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?_.hours:d(_.hours)),n.minuteElement.value=Ot(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():_.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(K),n.timeContainer.appendChild(M),n.timeContainer.appendChild(Q),n.config.time_24hr&&n.timeContainer.classList.add("time24hr"),n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");let se=fa(r.document,"flatpickr-second");n.secondElement=se.getElementsByTagName("input")[0],n.secondElement.value=Ot(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():_.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(je(r.document,"span","flatpickr-time-separator",":")),n.timeContainer.appendChild(se)}return n.config.time_24hr||(n.amPM=je(r.document,"span","flatpickr-am-pm",n.l10n.amPM[Gt((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM)),n.timeContainer}function be(){n.weekdayContainer?da(n.weekdayContainer):n.weekdayContainer=je(r.document,"div","flatpickr-weekdays");for(let _=n.config.showMonths;_--;){let M=je(r.document,"div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(M)}return Te(),n.weekdayContainer}function Te(){if(!n.weekdayContainer)return;let _=n.l10n.firstDayOfWeek,M=[...n.l10n.weekdays.shorthand];_>0&&_<M.length&&(M=[...M.splice(_,M.length),...M.splice(0,_)]);for(let K=n.config.showMonths;K--;)n.weekdayContainer.children[K].innerHTML=`
<span class='flatpickr-weekday'>
${M.join("</span><span class='flatpickr-weekday'>")}
</span>
`}function L(){n.calendarContainer.classList.add("hasWeeks");let _=je(r.document,"div","flatpickr-weekwrapper");_.appendChild(je(r.document,"span","flatpickr-weekday",n.l10n.weekAbbreviation));let M=je(r.document,"div","flatpickr-weeks");return _.appendChild(M),{weekWrapper:_,weekNumbers:M}}function P(_,M=!0){let K=M?_:_-n.currentMonth;K<0&&n._hidePrevMonthArrow===!0||K>0&&n._hideNextMonthArrow===!0||(n.currentMonth+=K,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,Ue("onYearChange"),G()),X(),Ue("onMonthChange"),St())}function lt(_=!0,M=!0){if(n.input.value="",n.altInput!==void 0&&(n.altInput.value=""),n.mobileInput!==void 0&&(n.mobileInput.value=""),n.selectedDates=[],n.latestSelectedDateObj=void 0,M===!0&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth()),n.config.enableTime===!0){let{hours:K,minutes:Q,seconds:se}=Ho(n.config);m(K,Q,se)}n.redraw(),_&&Ue("onChange")}function Je(){n.isOpen=!1,n.isMobile||(n.calendarContainer!==void 0&&n.calendarContainer.classList.remove("open"),n._input!==void 0&&n._input.classList.remove("active")),Ue("onClose")}function W(){n.config!==void 0&&Ue("onDestroy");for(let _=n._handlers.length;_--;)n._handlers[_].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){let _=n.calendarContainer.parentNode;if(_.lastChild&&_.removeChild(_.lastChild),_.parentNode){for(;_.firstChild;)_.parentNode.insertBefore(_.firstChild,_);_.parentNode.removeChild(_)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput),n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(_=>{try{delete n[_]}catch(M){}})}function j(_){return n.calendarContainer.contains(_)}function q(_){if(n.isOpen&&!n.config.inline){let M=Xt(_),K=j(M),se=!(M===n.input||M===n.altInput||n.element.contains(M)||_.path&&_.path.indexOf&&(~_.path.indexOf(n.input)||~_.path.indexOf(n.altInput)))&&!K&&!j(_.relatedTarget),ie=!n.config.ignoredFocusElements.some(me=>me.contains(M));se&&ie&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),n.timeContainer!==void 0&&n.minuteElement!==void 0&&n.hourElement!==void 0&&n.input.value!==""&&n.input.value!==void 0&&l(),n.close(),n.config&&n.config.mode==="range"&&n.selectedDates.length===1&&n.clear(!1))}}function te(_){if(!_||n.config.minDate&&_<n.config.minDate.getFullYear()||n.config.maxDate&&_>n.config.maxDate.getFullYear())return;let M=_,K=n.currentYear!==M;n.currentYear=M||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),K&&(n.redraw(),Ue("onYearChange"),G())}function we(_,M=!0){var ie;let K=n.parseDate(_,void 0,M);if(n.config.minDate&&K&&Qt(K,n.config.minDate,M!==void 0?M:!n.minDateHasTime)<0||n.config.maxDate&&K&&Qt(K,n.config.maxDate,M!==void 0?M:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&n.config.disable.length===0)return!0;if(K===void 0)return!1;let Q=!!n.config.enable,se=(ie=n.config.enable)!=null?ie:n.config.disable;for(let me=0,ue;me<se.length;me++){if(ue=se[me],typeof ue=="function"&&ue(K))return Q;if(ue.getTime&&K!==void 0&&ue.getTime()===K.getTime())return Q;if(typeof ue=="string"){let Pe=n.parseDate(ue,void 0,!0);return Pe&&Pe.getTime()===K.getTime()?Q:!Q}else if(typeof ue=="object"&&K!==void 0&&ue.from&&ue.to&&K.getTime()>=ue.from.getTime()&&K.getTime()<=ue.to.getTime())return Q}return!Q}function ke(_){return n.daysContainer!==void 0?_.className.indexOf("hidden")===-1&&_.className.indexOf("flatpickr-disabled")===-1&&n.daysContainer.contains(_):!1}function $e(_){let M=_.target===n._input,K=n._input.value.trimEnd()!==_i();M&&K&&!(_.relatedTarget&&j(_.relatedTarget))&&n.setDate(n._input.value,!0,_.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function ct(_){let M=Xt(_),K=n.config.wrap?e.contains(M):M===n._input,Q=n.config.allowInput,se=n.isOpen&&(!Q||!K),ie=n.config.inline&&K&&!Q;if(_.keyCode===13&&K){if(Q)return n.setDate(n._input.value,!0,M===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),M.blur();n.open()}else if(j(M)||se||ie){let me=!!n.timeContainer&&n.timeContainer.contains(M);switch(_.keyCode){case 13:me?(_.preventDefault(),l(),Yn()):Pt(_);break;case 27:_.preventDefault(),Yn();break;case 8:case 46:K&&!n.config.allowInput&&(_.preventDefault(),n.clear());break;case 37:case 39:if(!me&&!K){_.preventDefault();let ue=o();if(n.daysContainer!==void 0&&(Q===!1||ue&&ke(ue))){let Pe=_.keyCode===39?1:-1;_.ctrlKey?(_.stopPropagation(),P(Pe),Z(z(1),0)):Z(void 0,Pe)}}else n.hourElement&&n.hourElement.focus();break;case 38:case 40:{_.preventDefault();let ue=_.keyCode===40?1:-1;n.daysContainer&&M.$i!==void 0||M===n.input||M===n.altInput?_.ctrlKey?(_.stopPropagation(),te(n.currentYear-ue),Z(z(1),0)):me||Z(void 0,ue*7):M===n.currentYearElement?te(n.currentYear-ue):n.config.enableTime&&(!me&&n.hourElement&&n.hourElement.focus(),l(_),n._debouncedChange());break}case 9:if(me){let ue=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(Fe=>Fe),Pe=ue.indexOf(M);if(Pe!==-1){let Fe=ue[Pe+(_.shiftKey?-1:1)];_.preventDefault(),(Fe||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(M)&&_.shiftKey&&(_.preventDefault(),n._input.focus());break;default:break}}if(n.amPM!==void 0&&M===n.amPM)switch(_.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],f(),yn();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],f(),yn();break}(K||j(M))&&Ue("onKeyDown",_)}function mt(_,M="flatpickr-day"){if(n.selectedDates.length!==1||_&&(!_.classList.contains(M)||_.classList.contains("flatpickr-disabled")))return;let K=_?_.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),Q=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),se=Math.min(K,n.selectedDates[0].getTime()),ie=Math.max(K,n.selectedDates[0].getTime()),me=!1,ue=0,Pe=0;for(let Me=se;Me<ie;Me+=Dg.DAY)we(new Date(Me),!0)||(me=me||Me>se&&Me<ie,Me<Q&&(!ue||Me>ue)?ue=Me:Me>Q&&(!Pe||Me<Pe)&&(Pe=Me));Array.from(n.rContainer.querySelectorAll(`*:nth-child(-n+${n.config.showMonths}) > .${M}`)).forEach(Me=>{let yt=Me.dateObj.getTime(),Gn=ue>0&&yt<ue||Pe>0&&yt>Pe;if(Gn){Me.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Qn=>{Me.classList.remove(Qn)});return}else if(me&&!Gn)return;["startRange","inRange","endRange","notAllowed"].forEach(Qn=>{Me.classList.remove(Qn)}),_!==void 0&&(_.classList.add(K<=n.selectedDates[0].getTime()?"startRange":"endRange"),Q<K&&yt===Q?Me.classList.add("startRange"):Q>K&&yt===Q&&Me.classList.add("endRange"),yt>=ue&&(Pe===0||yt<=Pe)&&Sg(yt,Q,K)&&Me.classList.add("inRange"))})}function Lt(){n.isOpen&&!n.config.static&&!n.config.inline&&Fn()}function An(_,M=n._positionElement){if(n.isMobile===!0){if(_){_.preventDefault();let Q=Xt(_);Q&&Q.blur()}n.mobileInput!==void 0&&(n.mobileInput.focus(),n.mobileInput.click()),Ue("onOpen");return}else if(n._input.disabled||n.config.inline)return;let K=n.isOpen;n.isOpen=!0,K||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),Ue("onOpen"),Fn(M)),n.config.enableTime===!0&&n.config.noCalendar===!0&&n.config.allowInput===!1&&(_===void 0||!n.timeContainer.contains(_.relatedTarget))&&r.setTimeout(()=>n.hourElement.select(),50)}function Ln(_){return M=>{let K=n.config[`_${_}Date`]=n.parseDate(M,n.config.dateFormat),Q=n.config[`_${_==="min"?"max":"min"}Date`];K!==void 0&&(n[_==="min"?"minDateHasTime":"maxDateHasTime"]=K.getHours()>0||K.getMinutes()>0||K.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(se=>we(se)),!n.selectedDates.length&&_==="min"&&p(K),yn()),n.daysContainer&&(Kr(),K!==void 0?n.currentYearElement[_]=K.getFullYear().toString():n.currentYearElement.removeAttribute(_),n.currentYearElement.disabled=!!Q&&K!==void 0&&Q.getFullYear()===K.getFullYear())}}function Pn(){let _=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],M={...JSON.parse(JSON.stringify(e.dataset||{})),...t},K={};n.config.parseDate=M.parseDate,n.config.formatDate=M.formatDate,Object.defineProperty(n.config,"enable",{get:()=>n.config._enable,set:ie=>{n.config._enable=Ee(ie)}}),Object.defineProperty(n.config,"disable",{get:()=>n.config._disable,set:ie=>{n.config._disable=Ee(ie)}});let Q=M.mode==="time";if(!M.dateFormat&&(M.enableTime||Q)){let ie=ht.defaultConfig.dateFormat||or.dateFormat;K.dateFormat=M.noCalendar||Q?"H:i"+(M.enableSeconds?":S":""):ie+" H:i"+(M.enableSeconds?":S":"")}if(M.altInput&&(M.enableTime||Q)&&!M.altFormat){let ie=ht.defaultConfig.altFormat||or.altFormat;K.altFormat=M.noCalendar||Q?"h:i"+(M.enableSeconds?":S K":" K"):ie+` h:i${M.enableSeconds?":S":""} K`}Object.defineProperty(n.config,"minDate",{get:()=>n.config._minDate,set:Ln("min")}),Object.defineProperty(n.config,"maxDate",{get:()=>n.config._maxDate,set:Ln("max")});let se=ie=>me=>{n.config[ie==="min"?"_minTime":"_maxTime"]=n.parseDate(me,"H:i:S")};Object.defineProperty(n.config,"minTime",{get:()=>n.config._minTime,set:se("min")}),Object.defineProperty(n.config,"maxTime",{get:()=>n.config._maxTime,set:se("max")}),M.mode==="time"&&(n.config.noCalendar=!0,n.config.enableTime=!0),Object.assign(n.config,K,M);for(let ie=0;ie<_.length;ie++)n.config[_[ie]]=n.config[_[ie]]===!0||n.config[_[ie]]==="true";Fo.filter(ie=>n.config[ie]!==void 0).forEach(ie=>{n.config[ie]=Oo(n.config[ie]||[]).map(s)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&n.config.mode==="single"&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let ie=0;ie<n.config.plugins.length;ie++){let me=n.config.plugins[ie](n)||{};for(let ue in me)Fo.indexOf(ue)>-1?n.config[ue]=Oo(me[ue]).map(s).concat(n.config[ue]):typeof M[ue]=="undefined"&&(n.config[ue]=me[ue])}M.altInputClass||(n.config.altInputClass=hn().className+" "+n.config.altInputClass),Ue("onParseConfig")}function hn(){return n.config.wrap?e.querySelector("[data-input]"):e}function mn(){typeof n.config.locale!="object"&&typeof ht.l10ns[n.config.locale]=="undefined"&&n.config.errorHandler(new Error(`flatpickr: invalid locale ${n.config.locale}`)),n.l10n={...ht.l10ns.default,...typeof n.config.locale=="object"?n.config.locale:n.config.locale!=="default"?ht.l10ns[n.config.locale]:void 0},$n.D=`(${n.l10n.weekdays.shorthand.join("|")})`,$n.l=`(${n.l10n.weekdays.longhand.join("|")})`,$n.M=`(${n.l10n.months.shorthand.join("|")})`,$n.F=`(${n.l10n.months.longhand.join("|")})`,$n.K=`(${n.l10n.amPM[0]}|${n.l10n.amPM[1]}|${n.l10n.amPM[0].toLowerCase()}|${n.l10n.amPM[1].toLowerCase()})`,{...t,...JSON.parse(JSON.stringify(e.dataset||{}))}.time_24hr===void 0&&ht.defaultConfig.time_24hr===void 0&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=lu(n),n.parseDate=No({config:n.config,l10n:n.l10n})}function Fn(_){if(typeof n.config.position=="function")return void n.config.position(n,_);if(n.calendarContainer===void 0)return;Ue("onPreCalendarPosition");let M=_||n._positionElement,K=Array.prototype.reduce.call(n.calendarContainer.children,(hr,Ci)=>hr+Ci.offsetHeight,0),Q=n.calendarContainer.offsetWidth,se=n.config.position.split(" "),ie=se[0],me=se.length>1?se[1]:null,ue=M.getBoundingClientRect(),Pe=r.innerHeight-ue.bottom,Fe=ie==="above"||ie!=="below"&&Pe<K&&ue.top>K,Me=r.pageYOffset+ue.top+(Fe?-K-2:M.offsetHeight+2);if(Nt(n.calendarContainer,"arrowTop",!Fe),Nt(n.calendarContainer,"arrowBottom",Fe),n.config.inline)return;let jt=r.pageXOffset+ue.left,yt=!1,Gn=!1;me==="center"?(jt-=(Q-ue.width)/2,yt=!0):me==="right"&&(jt-=Q-ue.width,Gn=!0),Nt(n.calendarContainer,"arrowLeft",!yt&&!Gn),Nt(n.calendarContainer,"arrowCenter",yt),Nt(n.calendarContainer,"arrowRight",Gn);let Qn=r.document.body.offsetWidth-(r.pageXOffset+ue.right),Di=jt+Q>r.document.body.offsetWidth,Ha=Qn+Q>r.document.body.offsetWidth;if(Nt(n.calendarContainer,"rightMost",Di),!n.config.static)if(n.calendarContainer.style.top=`${Me}px`,!Di)n.calendarContainer.style.left=`${jt}px`,n.calendarContainer.style.right="auto";else if(!Ha)n.calendarContainer.style.left="auto",n.calendarContainer.style.right=`${Qn}px`;else{let hr=Hr();if(hr===void 0)return;let Ci=r.document.body.offsetWidth,el=Math.max(0,Ci/2-Q/2),tl=".flatpickr-calendar.centerMost:before",Gd=".flatpickr-calendar.centerMost:after",O=hr.cssRules.length,w=`{left:${ue.left}px;right:auto;}`;Nt(n.calendarContainer,"rightMost",!1),Nt(n.calendarContainer,"centerMost",!0),hr.insertRule(`${tl},${Gd}${w}`,O),n.calendarContainer.style.left=`${el}px`,n.calendarContainer.style.right="auto"}}function Hr(){let _=null;for(let M=0;M<r.document.styleSheets.length;M++){let K=r.document.styleSheets[M];if(!!K.cssRules){try{K.cssRules}catch(Q){continue}_=K;break}}return _!=null?_:Br()}function Br(){let _=r.document.createElement("style");return r.document.head.appendChild(_),_.sheet}function Kr(){n.config.noCalendar||n.isMobile||(G(),St(),X())}function Yn(){n._input.focus(),r.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?r.setTimeout(n.close,0):n.close()}function Pt(_){_.preventDefault(),_.stopPropagation();let M=me=>me.classList&&me.classList.contains("flatpickr-day")&&!me.classList.contains("flatpickr-disabled")&&!me.classList.contains("notAllowed"),K=cu(Xt(_),M);if(K===void 0)return;let Q=K,se=n.latestSelectedDateObj=new Date(Q.dateObj.getTime()),ie=(se.getMonth()<n.currentMonth||se.getMonth()>n.currentMonth+n.config.showMonths-1)&&n.config.mode!=="range";if(n.selectedDateElem=Q,n.config.mode==="single")n.selectedDates=[se];else if(n.config.mode==="multiple"){let me=Ye(se);me?n.selectedDates.splice(parseInt(me),1):n.selectedDates.push(se)}else n.config.mode==="range"&&(n.selectedDates.length===2&&n.clear(!1,!1),n.latestSelectedDateObj=se,n.selectedDates.push(se),Qt(se,n.selectedDates[0],!0)!==0&&n.selectedDates.sort((me,ue)=>me.getTime()-ue.getTime()));if(f(),ie){let me=n.currentYear!==se.getFullYear();n.currentYear=se.getFullYear(),n.currentMonth=se.getMonth(),me&&(Ue("onYearChange"),G()),Ue("onMonthChange")}if(St(),X(),yn(),!ie&&n.config.mode!=="range"&&n.config.showMonths===1?U(Q):n.selectedDateElem!==void 0&&n.hourElement===void 0&&n.selectedDateElem&&n.selectedDateElem.focus(),n.hourElement!==void 0&&n.hourElement!==void 0&&n.hourElement.focus(),n.config.closeOnSelect){let me=n.config.mode==="single"&&!n.config.enableTime,ue=n.config.mode==="range"&&n.selectedDates.length===2&&!n.config.enableTime;(me||ue)&&Yn()}k()}let Kt={locale:[mn,Te],showMonths:[pe,u,be],minDate:[D],maxDate:[D],positionElement:[gn],clickOpens:[()=>{n.config.clickOpens===!0?(b(n._input,"focus",n.open),b(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function gt(_,M){if(_!==null&&typeof _=="object"){Object.assign(n.config,_);for(let K in _)Kt[K]!==void 0&&Kt[K].forEach(Q=>Q())}else n.config[_]=M,Kt[_]!==void 0?Kt[_].forEach(K=>K()):Fo.indexOf(_)>-1&&(n.config[_]=Oo(M));n.redraw(),yn(!0)}function Y(_,M){let K=[];if(Array.isArray(_))K=_.map(Q=>n.parseDate(Q,M));else if(_.getDate||typeof _=="number")K=[n.parseDate(_,M)];else if(typeof _=="string")switch(n.config.mode){case"single":case"time":K=[n.parseDate(_,M)];break;case"multiple":K=_.split(n.config.conjunction).map(Q=>n.parseDate(Q,M));break;case"range":K=_.split(n.l10n.rangeSeparator).map(Q=>n.parseDate(Q,M));break;default:break}else n.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(_)}`));n.selectedDates=n.config.allowInvalidPreload?K:K.filter(Q=>Q.getDate&&we(Q,!1)),n.config.mode==="range"&&n.selectedDates.sort((Q,se)=>Q.getTime()-se.getTime())}function oe(_,M=!1,K=n.config.dateFormat){if(_!==0&&!_||Array.isArray(_)&&_.length===0)return n.clear(M);Y(_,K),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),D(void 0,M),p(),n.selectedDates.length===0&&n.clear(!1),yn(M),M&&Ue("onChange")}function Ee(_){return _.slice().map(M=>typeof M=="string"||typeof M=="number"||M.getDate?n.parseDate(M,void 0,!0):M&&typeof M=="object"&&M.from&&M.to?{from:n.parseDate(M.from,void 0),to:n.parseDate(M.to,void 0)}:M).filter(M=>M)}function ze(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;let _=n.config.defaultDate||((n.input.nodeName==="INPUT"||n.input.nodeName==="TEXTAREA")&&n.input.placeholder&&n.input.value===n.input.placeholder?null:n.input.value);_&&Y(_,n.config.dateFormat),n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]),n.config.minTime!==void 0&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i")),n.config.maxTime!==void 0&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i")),n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}function kt(){if(n.input=hn(),!n.input){n.config.errorHandler(new Error("Invalid input element specified"));return}n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=je(r.document,n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling)),n.config.allowInput||n._input.setAttribute("readonly","readonly"),gn()}function gn(){n._positionElement=n.config.positionElement||n._input}function qe(){let _=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=je(r.document,"input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=_,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr=_==="datetime-local"?"Y-m-d\\TH:i:S":_==="date"?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr)),n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d")),n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d")),n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step"))),n.input.type="hidden",n.altInput!==void 0&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(M){}b(n.mobileInput,"change",M=>{n.setDate(Xt(M).value,!1,n.mobileFormatStr),Ue("onChange"),Ue("onClose")})}function at(_){if(n.isOpen===!0)return n.close();n.open(_)}function Ue(_,M){if(n.config===void 0)return;let K=n.config[_];if(K!==void 0&&K.length>0)for(let Q=0;K[Q]&&Q<K.length;Q++)K[Q](n.selectedDates,n.input.value,n,M);_==="onChange"&&(n.input.dispatchEvent(ln("change")),n.input.dispatchEvent(ln("input")))}function ln(_){let M=r.document.createEvent("Event");return M.initEvent(_,!0,!0),M}function Ye(_){for(let M=0;M<n.selectedDates.length;M++){let K=n.selectedDates[M];if(K.getDate&&Qt(K,_)===0)return""+M}return!1}function Jn(_){return n.config.mode!=="range"||n.selectedDates.length<2?!1:Qt(_,n.selectedDates[0])>=0&&Qt(_,n.selectedDates[1])<=0}function St(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach((_,M)=>{let K=new Date(n.currentYear,n.currentMonth,1);K.setMonth(n.currentMonth+M),n.config.showMonths>1||n.config.monthSelectorType==="static"?n.monthElements[M].textContent=ua(K.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=K.getMonth().toString(),_.value=K.getFullYear().toString()}),n._hidePrevMonthArrow=n.config.minDate!==void 0&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=n.config.maxDate!==void 0&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function _i(_){let M=_||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(K=>n.formatDate(K,M)).filter((K,Q,se)=>n.config.mode!=="range"||n.config.enableTime||se.indexOf(K)===Q).join(n.config.mode!=="range"?n.config.conjunction:n.l10n.rangeSeparator)}function yn(_=!0){n.mobileInput!==void 0&&n.mobileFormatStr&&(n.mobileInput.value=n.latestSelectedDateObj!==void 0?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=_i(n.config.dateFormat),n.altInput!==void 0&&(n.altInput.value=_i(n.config.altFormat)),_!==!1&&Ue("onValueUpdate")}function Zs(_){let M=Xt(_),K=n.prevMonthNav.contains(M),Q=n.nextMonthNav.contains(M);K||Q?P(K?-1:1):n.yearElements.indexOf(M)>=0?M.select():M.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):M.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}function Ra(_){_.preventDefault();let M=_.type==="keydown",K=Xt(_),Q=K;n.amPM!==void 0&&K===n.amPM&&(n.amPM.textContent=n.l10n.amPM[Gt(n.amPM.textContent===n.l10n.amPM[0])]);let se=parseFloat(Q.getAttribute("min")),ie=parseFloat(Q.getAttribute("max")),me=parseFloat(Q.getAttribute("step")),ue=parseInt(Q.value,10),Pe=_.delta||(M?_.which===38?1:-1:0),Fe=ue+me*Pe;if(typeof Q.value!="undefined"&&Q.value.length===2){let Me=Q===n.hourElement,jt=Q===n.minuteElement;Fe<se?(Fe=ie+Fe+Gt(!Me)+(Gt(Me)&&Gt(!n.amPM)),jt&&H(void 0,-1,n.hourElement)):Fe>ie&&(Fe=Q===n.hourElement?Fe-ie-Gt(!n.amPM):se,jt&&H(void 0,1,n.hourElement)),n.amPM&&Me&&(me===1?Fe+ue===23:Math.abs(Fe-ue)>me)&&(n.amPM.textContent=n.l10n.amPM[Gt(n.amPM.textContent===n.l10n.amPM[0])]),Q.value=Ot(Fe)}}return a(),n}function Bo(e,t){let r=Array.prototype.slice.call(e).filter(i=>i.onClickEvent),n=[];for(let i=0;i<r.length;i++){let a=r[i];try{if(a.getAttribute("data-fp-omit")!==null)continue;a._flatpickr!==void 0&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=iS(a,t||{}),n.push(a._flatpickr)}catch(o){console.error(o)}}return n.length===1?n[0]:n}typeof HTMLElement!="undefined"&&typeof HTMLCollection!="undefined"&&typeof NodeList!="undefined"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return Bo(this,e)},HTMLElement.prototype.flatpickr=function(e){return Bo([this],e)});var ht=function(e,t){return Bo([e],t)};ht.defaultConfig={};ht.l10ns={en:{...Lo},default:{...Lo}};ht.localize=e=>{ht.l10ns.default={...ht.l10ns.default,...e}};ht.setDefaults=e=>{ht.defaultConfig={...ht.defaultConfig,...e}};ht.parseDate=No({});ht.formatDate=lu({});ht.compareDates=Qt;typeof jQuery!="undefined"&&typeof jQuery.fn!="undefined"&&(jQuery.fn.flatpickr=function(e){return Bo(this,e)});Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof e=="string"?parseInt(e,10):e))};typeof window!="undefined"&&(window.flatpickr=ht);var Ko=ht;function $o(e,t,r,n,i){return e.document.body.createDiv({cls:`${V("date-picker")} ${V("ignore-click-outside")}`},a=>{a.style.left=`${r.x||0}px`,a.style.top=`${r.y||0}px`,a.createEl("input",{type:"text"},o=>{a.win.setTimeout(()=>{let s=null,u=d=>{d.target instanceof d.view.HTMLElement&&d.target.closest(`.${V("date-picker")}`)===null&&c()},l=d=>{d.key==="Escape"&&c()},c=()=>{s.destroy(),a.remove(),e.document.body.removeEventListener("click",u),e.document.removeEventListener("keydown",l)};s=Ko(o,{locale:Po(t),defaultDate:i,inline:!0,onChange:d=>{n(d),c()},win:e}),a.win.setTimeout(()=>{let d=a.clientHeight,f=a.clientWidth;r.y+d>e.innerHeight&&(a.style.top=`${(r.y||0)-d}px`),r.x+f>e.innerWidth&&(a.style.left=`${(r.x||0)-f}px`)}),e.document.body.addEventListener("click",u),e.document.addEventListener("keydown",l)})})})}function Uo({stateManager:e,boardModifiers:t,item:r,hasDate:n,path:i}){let a=e.getSetting("date-format"),o=e.getSetting("link-date-to-daily-note"),s=e.getSetting("date-trigger"),u=o?"(?:\\[[^\\]]+\\]\\([^)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",l=new RegExp(`(^|\\s)${Sn(s)}${u}`);return c=>{let d=c[0],f=(0,nt.moment)(d).format(a),p=o?Mo(e.app,f):`{${f}}`,m=r.data.titleRaw;n?m=r.data.titleRaw.replace(l,`$1${s}${p}`):m=`${r.data.titleRaw} ${s}${p}`,e.updateItemContent(r,m).then(v=>{t.updateItem(i,v)}).catch(v=>{e.setError(v),console.error(v)})}}function uu(e){let t=e.getSetting("time-format"),r=[];for(let n=0;n<24;n++)r.push((0,nt.moment)({hour:n}).format(t)),r.push((0,nt.moment)({hour:n,minute:15}).format(t)),r.push((0,nt.moment)({hour:n,minute:30}).format(t)),r.push((0,nt.moment)({hour:n,minute:45}).format(t));return r}function Wo(e,t,r,n,i){let a=V("time-picker"),o=t.getSetting("time-format"),s=i==null?void 0:i.format(o);e.document.body.createDiv({cls:`${a} ${V("ignore-click-outside")}`},u=>{let l=uu(t),c=b=>{b.target instanceof b.view.HTMLElement&&b.target.hasClass(V("time-picker-item"))&&b.target.dataset.value&&(n(b.target.dataset.value),p())},d=b=>{b.target instanceof b.view.HTMLElement&&b.target.closest(`.${a}`)===null&&p()},f=b=>{b.key==="Escape"&&p()},p=()=>{u.remove(),u.removeEventListener("click",c),e.document.body.removeEventListener("click",d),e.document.removeEventListener("keydown",f)};u.style.left=`${r.x||0}px`,u.style.top=`${r.y||0}px`;let m=null,v=null;l.forEach((b,k)=>{let T=b===s;u.createDiv({cls:`${V("time-picker-item")} ${T?"is-selected":""}`,text:b},D=>{D.createEl("span",{cls:V("time-picker-check"),prepend:!0},I=>{(0,nt.setIcon)(I,"checkmark")}),k%4==0&&D.addClass("is-hour"),D.dataset.value=b,T&&(m=D),k===Math.floor(l.length/2)&&(v=D)})}),u.win.setTimeout(()=>{var T;let b=u.clientHeight,k=u.clientWidth;r.y+b>e.innerHeight&&(u.style.top=`${(r.y||0)-b}px`),r.x+k>e.innerWidth&&(u.style.left=`${(r.x||0)-k}px`),(T=m||v)==null||T.scrollIntoView({block:"center",inline:"nearest"}),u.addEventListener("click",c),e.document.body.addEventListener("click",d),e.document.addEventListener("keydown",f)})})}function Vo({stateManager:e,boardModifiers:t,item:r,hasTime:n,path:i}){let a=e.getSetting("time-trigger"),o=new RegExp(`(^|\\s)${Sn(a)}{([^}]+)}`);return s=>{let u=r.data.titleRaw;n?u=r.data.titleRaw.replace(o,`$1${a}{${s}}`):u=`${r.data.titleRaw} ${a}{${s}}`,e.updateItemContent(r,u).then(l=>{t.updateItem(i,l)}).catch(l=>{e.setError(l),console.error(l)})}}function Cg(e){let t=e.data.metadata.date,r=[];t&&(t.isSame(new Date,"day")&&r.push("is-today"),t.isAfter(new Date,"day")&&r.push("is-future"),t.isBefore(new Date,"day")&&r.push("is-past")),e.data.isComplete&&r.push("is-complete");for(let n of e.data.metadata.tags)r.push(`has-tag-${n.slice(1)}`);return r}function Tr(e,t,r,n){return e.app.fileManager.generateMarkdownLink(t,r,n)}function aS(e,t,r){return nt.htmlToMarkdown?(0,nt.htmlToMarkdown)(r):nt.MarkdownSourceView.prototype.handleDataTransfer.call({app:e.app},t)}function oS(e){return e.replace(/^\[(.*)\]\(app:\/\/obsidian.md\/(.*)\)$/,"[$1]($2)")}function du(e){var r;let t=e.require("electron").remote.clipboard;if(process.platform==="darwin"){if(t.has("NSFilenamesPboardType"))return((r=t.read("NSFilenamesPboardType").match(/<string>.*<\/string>/g))==null?void 0:r.map(n=>n.replace(/<string>|<\/string>/g,"")))||[];{let n=t.readImage("clipboard");return n.isEmpty()?[t.read("public.file-url").replace("file://","")].filter(i=>i):[{buffer:n.toPNG(),mimeType:"image/png",originalName:`Pasted image ${(0,nt.moment)().format("YYYYMMDDHHmmss")}.png`}]}}else if(t.has("CF_HDROP")){let n=t.read("CF_HDROP")||"",i=[...n].filter((o,s)=>n.charCodeAt(s)!==0).join("").replace(/\\/g,"\\"),a=i.match(/[a-zA-Z]:\\/);if(a){let o=i.indexOf(a[0]);return o!==0&&(i=i.slice(o)),i.split(a[0]).filter(s=>s).map(s=>a+s)}}else{let n=t.readImage("clipboard");return n.isEmpty()?[t.readBuffer("FileNameW").toString("ucs2").replace(RegExp(String.fromCharCode(0),"g"),"")].filter(i=>i):[{buffer:n.toPNG(),mimeType:"image/png",originalName:`Pasted image ${(0,nt.moment)().format("YYYYMMDDHHmmss")}.png`}]}return null}function sS(e){return e.split("\\").pop().split("/").pop()}async function lS(e,t,r,n){let i=await e.app.vault.getAvailablePathForAttachments(t,r,e.file),a=await e.app.vault.createBinary(i,n);return Tr(e,a,e.file.path)}async function cS(e,t){let r=du(t);if(!r||r.length===0)return null;let n=t.require("fs/promises"),i=t.require("path");return(await Promise.all(r.map(async a=>{if(typeof a=="string"){let s=sS(a).split("."),u=s.pop(),l=s.join("."),c=await e.app.vault.getAvailablePathForAttachments(l,u,e.file),d=e.app.vault.adapter.basePath;await n.copyFile(a,i.join(d,c)),await new Promise(p=>t.setTimeout(p,50));let f=e.app.vault.getAbstractFileByPath(c);return Tr(e,f,e.file.path)}else{let o=a.originalName.split("."),s=o.pop(),u=o.join(".");return await lS(e,u,s,a.buffer)}}))).filter(a=>a)}function Tg(e,t,r){return Promise.all(t.map(n=>{let i=n.name.split("."),a=i.pop(),o=i.join(".");if(r){switch(n.type){case"text/jpg":a="jpg";break;case"text/jpeg":a="jpeg";break;case"text/png":a="png";break}o="Pasted image "+(0,nt.moment)().format("YYYYMMDDHHmmss")}return new Promise((s,u)=>{let l=new FileReader;l.onload=async c=>{try{let d=await e.app.vault.getAvailablePathForAttachments(o,a,e.file),f=await e.app.vault.createBinary(d,c.target.result);s(Tr(e,f,e.file.path))}catch(d){console.error(d),u(d)}},l.readAsArrayBuffer(n)})}))}async function uS(e,t,r){let n=!t.view,i=n?e.getAView().isShiftPressed:!1,a=n?t.clipboardData:t.dataTransfer,o=n&&nt.Platform.isDesktopApp?r.require("electron").remote.clipboard:null,s=o?o.availableFormats():[];if(n){if(n&&!i&&!s.includes("text/rtf")){if(nt.Platform.isDesktopApp){let m=await cS(e,r);if(m==null?void 0:m.length)return m}let f=[],p=t.clipboardData.items;for(let m in p){let v=p[m];v.kind==="file"&&f.push(v.getAsFile())}if(f.length)return await Tg(e,f,!0)}}else{let f=await ql(t);if(f.length)return await Tg(e,f)}let u=a.getData("text/html"),l=a.getData("text/plain"),c=a.getData("text/uri-list"),d=i?l||u:aS(e,a,u);return[oS(d||c||l||u||"").trim()]}async function zo(e,t,r){let n=e.app.dragManager.draggable,i=t.view?t.dataTransfer:t.clipboardData;switch(n==null?void 0:n.type){case"file":return[Tr(e,n.file,e.file.path)];case"files":return n.files.map(a=>Tr(e,a,e.file.path));case"folder":return n.file.children.map(a=>a instanceof nt.TFolder?null:Tr(e,a,e.file.path)).filter(a=>a);case"link":{let a=n.file?Tr(e,n.file,(0,nt.parseLinktext)(n.linktext).subpath):`[[${n.linktext}]]`,o=new DOMParser().parseFromString(i.getData("text/html"),"text/html").documentElement.textContent;return a=a.replace(/]]$/,`|${o}]]`).replace(/^\[[^\]].+]\(/,`[${o}](`),[a]}default:return await uS(e,t,r)}}h();function jo(e,t){let r,n,i=(...a)=>{r=a,!n&&(n=e.requestAnimationFrame(()=>{n=null,t(...r)}))};return i.cancel=()=>{!n||(e.cancelAnimationFrame(n),n=null)},i}var Mg={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"};var ci={outOfTheWay:200,minDropTime:330,maxDropTime:550},sr=`${ci.outOfTheWay}ms ${Mg.outOfTheWay}`;var rn={none:"none",fluid:`opacity ${sr}`,snap:`transform ${sr}, opacity ${sr}`,drop:e=>{let t=`${e}ms ${Mg.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${sr}`,placeholder:`height ${sr}, width ${sr}, margin ${sr}, border-color ${sr}`},dS=(e,t)=>e.x===t.x&&e.y===t.y,fS={x:0,y:0},Ig=e=>dS(e,fS)?void 0:`translate(${e.x}px, ${e.y}px)`,Ag={moveTo:Ig,drop:e=>Ig(e)},pS=ci.maxDropTime-ci.minDropTime,Lg=1500,hS=.6;function ui({position:e,destination:t,isCancel:r}){let n=Yr(e,t);if(n<=0)return ci.minDropTime;if(n>=Lg)return ci.maxDropTime;let i=n/Lg,a=ci.minDropTime+pS*i,o=r?a*hS:a;return Math.round(o)}function En(e,t,r){e.style.getPropertyValue(t)!==r&&e.style.setProperty(t,r)}function qo(e,t){e.style.getPropertyValue(t)&&e.style.removeProperty(t)}h();h();var xn;(function(i){i[i.TitleAsc=0]="TitleAsc",i[i.TitleDsc=1]="TitleDsc",i[i.DateAsc=2]="DateAsc",i[i.DateDsc=3]="DateDsc"})(xn||(xn={}));var Xe={Item:"item",Lane:"lane",Board:"board",MetadataSetting:"metadata-setting"},Yo={accepts:[Xe.Item],type:Xe.Item,children:[]},lr={accepts:[Xe.Lane],type:Xe.Lane},Jo={accepts:[],type:Xe.Board},Go={accepts:[Xe.MetadataSetting],type:Xe.MetadataSetting,children:[]};function fu(e,t,r,n,i){let a="htmldnd",o=Ve(),s=e-75,u=e+75,l=t-25,c=t+25;return{scopeId:a,entityId:`${a}-${o}`,initial:[s,l,u,c],getParentScrollState(){return tn},getParentScrollShift(){return _n},recalcInitial(){},getHitbox(){return this.initial},getPath(){return[]},getData(){return{viewId:n,type:Xe.Item,id:o,content:r,accepts:[],win:i}}}}var hu=class{constructor(t,r,n,i){this.isHTMLDragging=!1;this.dragOverTimeout=0;this.win=t,this.hitboxEntities=n,this.scrollEntities=i,this.emitter=r}getDragEventData(){return{dragEntity:this.dragEntity,dragEntityId:this.dragEntityId,dragEntityMargin:this.dragEntityMargin,dragOrigin:this.dragOrigin,dragOriginHitbox:this.dragOriginHitbox,dragPosition:this.dragPosition,primaryIntersection:this.primaryIntersection,scrollIntersection:this.scrollIntersection}}dragStart(t,r){var a;let n=(r==null?void 0:r.dataset.hitboxid)||t.currentTarget.dataset.hitboxid;if(!n)return;let i=getComputedStyle(r||t.currentTarget);this.dragEntityId=n,this.dragOrigin={x:t.pageX,y:t.pageY},this.dragPosition={x:t.pageX,y:t.pageY},this.dragEntity=this.hitboxEntities.get(n),this.dragOriginHitbox=(a=this.dragEntity)==null?void 0:a.getHitbox(),this.dragEntityMargin=[parseFloat(i.marginLeft)||0,parseFloat(i.marginTop)||0,parseFloat(i.marginRight)||0,parseFloat(i.marginBottom)||0],this.emitter.emit("dragStart",this.getDragEventData())}dragStartHTML(t,r){this.isHTMLDragging=!0;let n=fu(t.pageX,t.pageY,[],r,t.view);this.dragEntityId=n.entityId,this.dragOrigin={x:t.pageX,y:t.pageY},this.dragPosition={x:t.pageX,y:t.pageY},this.dragEntity=n,this.dragOriginHitbox=n.getHitbox(),this.dragEntityMargin=[0,0,0,0],this.emitter.emit("dragStart",this.getDragEventData())}dragMove(t){this.dragPosition={x:t.pageX,y:t.pageY},this.emitter.emit("dragMove",this.getDragEventData()),this.calculateDragIntersect()}dragMoveHTML(t){this.dragPosition={x:t.pageX,y:t.pageY},this.emitter.emit("dragMove",this.getDragEventData()),this.calculateDragIntersect()}dragEnd(t){this.emitter.emit("dragEnd",this.getDragEventData()),this.dragEntityMargin=void 0,this.dragEntity=void 0,this.dragEntityId=void 0,this.dragOrigin=void 0,this.dragOriginHitbox=void 0,this.dragPosition=void 0,this.scrollIntersection=void 0,this.primaryIntersection=void 0}dragEndHTML(t,r,n,i){this.isHTMLDragging=!1,i||(this.dragEntity=fu(t.pageX,t.pageY,n,r,t.view),this.emitter.emit("dragEnd",this.getDragEventData())),this.dragEntityMargin=void 0,this.dragEntity=void 0,this.dragEntityId=void 0,this.dragOrigin=void 0,this.dragOriginHitbox=void 0,this.dragPosition=void 0,this.scrollIntersection=void 0,this.primaryIntersection=void 0,i&&this.emitter.emit("dragEnd",this.getDragEventData())}onHTMLDragLeave(t){this.win.clearTimeout(this.dragOverTimeout),this.dragOverTimeout=this.win.setTimeout(t,351)}calculateDragIntersect(){if(!this.dragEntity||!this.dragPosition||!this.dragOrigin||!this.dragOriginHitbox)return;let{type:t,win:r}=this.dragEntity.getData(),n=[],i=[],a=[],o=[];if(this.hitboxEntities.forEach(l=>{let c=l.getData();r===c.win&&c.accepts.includes(t)&&(n.push(l),i.push(l.getHitbox()))}),this.scrollEntities.forEach(l=>{let c=l.getData();r===c.win&&c.accepts.includes(t)&&(a.push(l),o.push(l.getHitbox()))}),n.length===0&&a.length===0)return;let s=op(this.dragOriginHitbox,this.dragOrigin,this.dragPosition);this.handleScrollIntersect(s,this.dragEntity.entityId,o,a)||this.handleHitboxIntersect(s,this.dragEntity.entityId,i,n)}handleScrollIntersect(t,r,n,i){let a=(0,pu.default)([t],n).map(s=>i[s[1]]),o=ip(a,t,r);if(this.scrollIntersection&&(!o||o[0]!==this.scrollIntersection[0])){let[s,u]=this.scrollIntersection,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("endDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=void 0}if(o&&(!this.scrollIntersection||this.scrollIntersection[0]!==o[0])){let[s,u]=o,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("beginDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=o}else if(o&&this.scrollIntersection&&o[0]===this.scrollIntersection[0]){let[s,u]=o,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("updateDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=o}return!!o}handleHitboxIntersect(t,r,n,i){let a=(0,pu.default)([t],n).map(s=>i[s[1]]),o=Sl(a,t,r);this.primaryIntersection&&this.primaryIntersection!==o&&(this.emitter.emit("dragLeave",this.getDragEventData(),this.primaryIntersection.entityId),this.primaryIntersection=void 0),o&&this.primaryIntersection!==o&&(this.emitter.emit("dragEnter",{...this.getDragEventData(),primaryIntersection:o},o.entityId),this.primaryIntersection=o)}},di=e=>{e.preventDefault(),e.stopPropagation()};function fi(e,t){let r=R.useContext(wt);R.useEffect(()=>{let n=e.current,i=t.current;if(!r||!n||!i)return;let a=s=>{if(s.defaultPrevented||s.target.dataset.ignoreDrag||s.button!==0&&s.buttons!==1)return;let u=s.view,l=["pen","touch"].includes(s.pointerType);l||(s.stopPropagation(),s.preventDefault());let c=s,d={x:s.pageX,y:s.pageY},f=!1,p=0;l&&(u.addEventListener("contextmenu",di,!0),p=u.setTimeout(()=>{r.dragManager.dragStart(c,n),f=!0,u.addEventListener("touchmove",di,{passive:!1})},500));let m=jo(u,b=>{l?f?r.dragManager.dragMove(b):Yr(d,{x:b.pageX,y:b.pageY})>5&&(u.clearTimeout(p),u.removeEventListener("touchmove",di),u.removeEventListener("contextmenu",di,!0),u.removeEventListener("pointermove",m),u.removeEventListener("pointerup",v),u.removeEventListener("pointercancel",v)):f?r.dragManager.dragMove(b):Yr(d,{x:b.pageX,y:b.pageY})>5&&(r.dragManager.dragStart(c,n),f=!0)}),v=b=>{u.clearTimeout(p),f=!1,r.dragManager.dragEnd(b),u.removeEventListener("pointermove",m),u.removeEventListener("pointerup",v),u.removeEventListener("pointercancel",v),l&&(u.removeEventListener("contextmenu",di,!0),u.removeEventListener("touchmove",di))};u.addEventListener("pointermove",m),u.addEventListener("pointerup",v),u.addEventListener("pointercancel",v)},o=s=>{s.stopPropagation()};return i.addEventListener("pointerdown",a),i.addEventListener("touchstart",o),()=>{i.removeEventListener("pointerdown",a),i.removeEventListener("touchstart",o)}},[e,t,r])}function Pg(e){let t=R.useContext(wt),r=R.useCallback(i=>{t.dragManager.isHTMLDragging?(i.preventDefault(),t.dragManager.dragMoveHTML(i)):t.dragManager.dragStartHTML(i,e.getAView().id),t.dragManager.onHTMLDragLeave(()=>{t.dragManager.dragEndHTML(i,e.getAView().id,[],!0)})},[t,e]),n=R.useCallback(async i=>{t.dragManager.dragEndHTML(i,e.getAView().id,await zo(e,i,activeWindow),!1)},[t,e]);return{onDragOver:r,onDrop:n}}h();var Og=ye(_t());h();var Fg=ye(require("obsidian"));function Zt({name:e,className:t}){return y("span",{"data-icon":e,className:`${V("icon")} ${t||""}`,ref:r=>{r&&(0,Fg.setIcon)(r,e)}})}var Ng=R.memo(function({shouldMarkItemsComplete:t,path:r,item:n,stateManager:i,boardModifiers:a}){let o=i.useSetting("show-checkboxes"),[s,u]=R.useState(!1),[l,c]=R.useState(!1);return R.useEffect(()=>{if(l){let d=f=>{f.metaKey||f.ctrlKey?u(!0):u(!1)};return window.addEventListener("keydown",d),window.addEventListener("keyup",d),()=>{window.removeEventListener("keydown",d),window.removeEventListener("keyup",d)}}},[l]),t||o?y("div",{onMouseEnter:d=>{c(!0),(d.ctrlKey||d.metaKey)&&u(!0)},onMouseLeave:()=>{c(!1),s&&u(!1)},className:V("item-prefix-button-wrapper")},o&&!s&&y("input",{onChange:()=>{a.updateItem(r,(0,Og.default)(n,{data:{$toggle:["isComplete"]}}))},type:"checkbox",className:"task-list-item-checkbox",checked:!!n.data.isComplete}),(s||!o&&t)&&y("button",{onClick:()=>{a.archiveItem(r)},className:V("item-prefix-button"),"aria-label":s?void 0:"Archive card"},y(Zt,{name:"sheets-in-box"}))):null});h();var gv=ye(require("obsidian"));h();h();var mu;function Rg(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof mu=="undefined"){let t=e.doc.createElement("textarea");t.value=1,mu=!!t.firstChild}return mu}function pa(e,t){var i;e.focus();let r=e.doc;if(!r.execCommand("insertText",!1,t)){let a=e.selectionStart,o=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{let u=r.createRange(),l=r.createTextNode(t);if(Rg(e)){let c=e.firstChild;if(!c)e.appendChild(l);else{let d=0,f=null,p=null;for(;c&&(f===null||p===null);){let m=((i=c.nodeValue)==null?void 0:i.length)||0;a>=d&&a<=d+m&&u.setStart(f=c,a-d),o>=d&&o<=d+m&&u.setEnd(p=c,o-d),d+=m,c=c.nextSibling}a!==o&&u.deleteContents()}}if(Rg(e)&&u.commonAncestorContainer.nodeName==="#text")u.insertNode(l);else{let c=e.value;e.value=c.slice(0,a)+t+c.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);let s=r.createEvent("UIEvent");s.initEvent("input",!0,!1),e.dispatchEvent(s)}}var Hg=ye(require("obsidian"));var gu=e=>e.charCodeAt(0)===10,Bg=e=>e===" "||gu(e);function mS(e,t,r){if(!e)throw Error("Argument 'text' should be truthy");let n=0,i=e.length;for(let a=t;a-1>-1;a--)if(gu(e[a-1])){n=a;break}for(let a=r===void 0?t:r;a<e.length;a++)if(gu(e[a])){i=a;break}return{start:n,end:i}}function gS(e,t,r){if(!e)throw Error("Argument 'text' should be truthy");let n=0,i=e.length;for(let a=t;a-1>-1;a--)if(Bg(e[a-1])){n=a;break}for(let a=r===void 0?t:r;a<e.length;a++)if(Bg(e[a])){i=a;break}return{start:n,end:i}}function yS({text:e,selection:t}){return e&&e.length?gS(e,t.start,t.end):t}function pi({text:e,selection:t}){return e&&e.length?mS(e,t.start,t.end):t}function Tn(e){return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:e.value.slice(e.selectionStart,e.selectionEnd)}}function Tt(e,t){return pa(e,t),Tn(e)}function Mt(e,t){return e.focus(),e.selectionStart=t.start,e.selectionEnd=t.end,Tn(e)}function hi(e,t,r,n){let i=Tn(e),a=yS({text:i.text,selection:i.selection}),o=Mt(e,a);if(t.test(o.selectedText))Tt(e,r(o.selectedText)),Mt(e,{start:o.selection.start,end:o.selection.start+o.selectedText.length-n.length*2});else{let s=Tt(e,`${n}${o.selectedText}${n}`);Mt(e,{start:s.selection.end-n.length-o.selectedText.length,end:s.selection.end-n.length})}}function an(e,t,r,n,i){let a=Tn(e);if(n&&a.selection.end===a.selection.start||!i&&a.selection.end===a.selection.start&&a.selection.start>0&&e.value[a.selection.start-1]!==" ")return!1;if(a.selection.end===a.selection.start){let s=Tt(e,`${r}`);return Mt(e,{start:s.selection.end-1-a.selectedText.length,end:s.selection.end-1}),!1}let o=Tt(e,`${t}${a.selectedText}${r}`);return Mt(e,{start:o.selection.end-1-a.selectedText.length,end:o.selection.end-1}),!0}function Qo(e,t,r,n){let i=Tn(e),a=pi({text:i.text,selection:i.selection}),o=Mt(e,a),s=t.test(o.selectedText)?n(o.selectedText):r(o.selectedText),u=Tt(e,s);Mt(e,{start:o.selection.start,end:u.selection.end})}function Xo(e,t){var r;if(t.types.includes("text/uri-list")||["file","files","link","folder"].includes((r=e.app.dragManager.draggable)==null?void 0:r.type))return"link";if(t.types.includes("text/html")||t.types.includes("text/plain"))return"copy"}async function Zo(e,t,r){let n=e.clipboardData.getData("text/html"),i=e.clipboardData.types.includes("Files"),a=Hg.Platform.isDesktopApp?du(r):null,o=n||i||(a==null?void 0:a.length)>0;o&&e.preventDefault();try{let s=await zo(t,e,r);if(o){let u=e.target,l=s.join(`
`);Tt(u,l)}}catch(s){console.error(s),t.setError(s)}}h();var zu=ye(require("obsidian"));h();h();var Kg={};h();var $g={};h();var Ug={};h();var Wg={"Open as kanban board":"\xD6ffne als Kanban-Board","Create new board":"Erstelle ein neues Board","Archive completed cards in active board":"Archiviere fertiggestellte Karten im aktiven Board","Error: current file is not a Kanban board":"Fehler: Momentan ge\xF6ffnete Datei ist kein Kanban-Board","Convert empty note to Kanban":"Konvertiere leere Notiz in ein Kanban-Board","Error: cannot create Kanban, the current note is not empty":"Fehler: Kanban konnte nicht erstellt werden, momentan ge\xF6ffnete Datei ist nicht leer","New kanban board":"Neues Kanban-Board","Untitled Kanban":"Unbenanntes Kanban","Toggle between Kanban and markdown mode":"Wechsle zwischen Kanban und Markdown Modus","Open as markdown":"\xD6ffne als Markdown","Open board settings":"\xD6ffne Board-Einstellungen","Archive completed cards":"Archiviere fertiggestellte Karten","Something went wrong":"Etwas ist schief gelaufen","You may wish to open as markdown and inspect or edit the file.":"Du kannst die Datei im Markdown Modus \xF6ffnen und \xFCberpr\xFCfen oder bearbeiten.","Are you sure you want to archive all completed cards on this board?":"Bist du dir sicher, dass du alle fertiggestellten Karten des Boards archivieren m\xF6chtest?",Complete:"Fertiggestellt",Archive:"Archiv","Invalid Kanban file: problems parsing frontmatter":"Fehlerhafte Kanban Datei: Probleme beim Parsen des Frontmatters","I don't know how to interpret this line:":"Ich wei\xDF nicht, wie ich diese Zeile interpretieren soll:",Untitled:"Unbenannt","Note: No template plugins are currently enabled.":"Beachte: Keine Template-Plugins sind derzeit aktiviert.",default:"Standard","Search...":"Suche...","These settings will take precedence over the default Kanban board settings.":"Diese Einstellung wird Vorrang vor der standard Kanban-Board Einstellung haben. ","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Stelle standard Kanban-Board Einstellungen ein. Einstellungen k\xF6nnen auf einer Board-f\xFCr-Board Basis \xFCberschrieben werden.","Note template":"Notiz Vorlage","This template will be used when creating new notes from Kanban cards.":"Diese Vorlage wird beim Erstellen neuer Notizen aus Kanban-Karten verwendet.","No template":"Keine Vorlage","Note folder":"Notiz Ordner","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Notizen, welche aus einer Kanban-Karte erstellt wurden, werden in diesem Ordner platziert. Falls leer, werden die Einstellungen des Vaults verwendet.","Default folder":"Standard Ordner","Lane width":"Schienen Breite","Enter a number to set the lane width in pixels.":"Gebe ein Zahl ein, um die Schienen Breite in Pixeln einzustellen.","Maximum number of archived cards":"Maximale Anzahl archivierter Karten.","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Archivierte Karten k\xF6nnen im Markdown-Modus betrachtet werden. Diese Einstellung wird alte Karten l\xF6schen, sobald das Limit erreicht wird. Eine Einstellung von -1 setzt das Archiv auf eine unendliche Gr\xF6\xDFe.","Display card checkbox":"Zeige Karten Checkbox","When toggled, a checkbox will be displayed with each card":"Wenn aktiviert, wird eine Checkbox mit jeder Karte angezeigt.","Reset to default":"Zur\xFCcksetzen","Date & Time":"Datum & Uhrzeit","Date trigger":"Datums Ausl\xF6ser","When this is typed, it will trigger the date selector":"Wenn dies eingegeben wird, dann wird die Datumsauswahl angezeigt","Time trigger":"Uhrzeit Ausl\xF6ser","When this is typed, it will trigger the time selector":"Wenn dies eingegeben wird, dann wird die Uhrzeitsauswahl angezeigt","Date format":"Format des Datums","This format will be used when saving dates in markdown.":"Dieses Format wird verwendet, wenn ein Datum in Markdown gespeichert wird.","For more syntax, refer to":"F\xFCr mehr Syntax Informationen siehe","format reference":"Formatvorlage","Your current syntax looks like this":"Dein momentanes Format sieht so aus","Time format":"Format der Uhrzeit","Date display format":"Format der Datums Anzeige","This format will be used when displaying dates in Kanban cards.":"Dieses Format wird verwendet, wenn ein Datum in einer Kanban-Karte angezeigt wird.","Show relative date":"Zeige relatives Datum","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"Wenn aktiviert, wird die Zeitspanne zwischen Heute und dem Datum angezeigt. Zum Beispiel: 'In 3 Tagen', 'Vor einem Monat'","Hide card display dates":"Verstecke Karten Datum","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"Wenn aktiviert, werden formatierte Daten nicht auf der Karte angezeigt. Relative Daten werden dennoch angezeigt, solange sie aktiviert sind.","Hide dates in card titles":"Verstecke Daten im Titel der Karte","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"Wenn aktiviert, werden Daten nicht im Titel der Karte angezeigt. Dies verhindert, dass Daten im Titel neu erstellter Notizen vorhanden sind.","Link dates to daily notes":"Verbinde Daten zu Daily Notes","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"Wenn aktiviert, werden Daten mit Daily Notes verbunden. Zum Beispiel [[26.4.2021]]","Add date and time to archived cards":"F\xFCge Datum und Uhrzeit zu archivierten Notizen hinzu","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"Wenn aktiviert, wird das momentane Datum und die momentane Zeit am Anfang einer Karte hinzugef\xFCgt, wenn sie archiviert wird. Zum Beispiel: - [ ] 14.05.2021 10:00 Mein Karten Titel","Archive date/time separator":"Datum/Uhrzeit Trenner f\xFCr das Archiv","This will be used to separate the archived date/time from the title":"Dies wird verwendet, um das Datum und die Uhrzeit archivierter Karten vom Titel zu trennen","Archive date/time format":"Format des Datums und der Uhrzeit f\xFCr das Archiv","Kanban Plugin":"Kanban Erweiterung","New line trigger":"Taste f\xFCr neue Zeile","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.":"W\xE4hle aus ob Enter oder Umschalttaste+Enter eine neue Zeile erstellen soll. Das Gegenteil kannst du verwenden um die Karte zu erstellen oder das bearbeiten der Karte oder Schiene zu beenden.","Shift + Enter":"Umschalttaste + Enter",Enter:"Enter","Prepend / append new cards":"Neue Karten voranf\xFCgen / anh\xE4ngen","This setting controls whether new cards are added to the beginning or end of the list.":"Diese Einstellung gibt an ob neue Karten am Anfang oder am Ende einer Liste hinzugef\xFCgt werden.",Prepend:"Voranf\xFCgen",Append:"Anh\xE4ngen","Hide tags in card titles":"Ausblenden von Tags in Kartentiteln","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"Ist diese Einstellung an, so werden Tags im Kartentitel nicht angezeigt. Dadurch wird verhindert, dass Tags beim Erstellen neuer Notizen in den Titel aufgenommen werden.","Hide card display tags":"Ausblenden von Kartenanzeige-Tags","When toggled, tags will not be displayed below the card title.":"Ist diese Einstellung an, werden Tags nicht unter dem Kartentitel angezeigt.","Linked Page Metadata":"Metadaten f\xFCr verkn\xFCpfte (verlinkte) Notizen","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"Zeigen Sie Metadaten f\xFCr die erste Notiz an, die innerhalb einer Karte verkn\xFCpft ist. Geben Sie an, welche Metadatenschl\xFCssel unten angezeigt werden sollen. Ein optionales Label kann hinzugef\xFCgt werden, es kann aber auch vollst\xE4ndig ausgeblendet werden.","Metadata key":"Metadatenschl\xFCssel","Display label":"Anzeigelabel","Hide label":"Label ausblenden","Drag to rearrange":"Zum Neuanordnen ziehen",Delete:"L\xF6schen","Add key":"Schl\xFCssel hinzuf\xFCgen","Field contains markdown":"Feld beinhaltet Markdown","More options":"Mehr optionen",Cancel:"Abbrechen",today:"heute",yesterday:"gestern",tomorrow:"morgen","Change date":"Ver\xE4ndere Datum","Change time":"Ver\xE4ndere Uhrzeit","Card title...":"Karten Titel...","Add card":"Karte hinzuf\xFCgen","Add a card":"F\xFCge eine Karte hinzu","Edit card":"Karte editieren","New note from card":"Neue Notiz aus Karte erstellen","Archive card":"Karte archivieren","Delete card":"Karte l\xF6schen","Edit date":"Datum editieren","Add date":"Datum hinzuf\xFCgen","Remove date":"Datum entfernen","Edit time":"Karte editieren","Add time":"Uhrzeit hinzuf\xFCgen","Remove time":"Uhrzeit entfernen","Duplicate card":"Karte duplizieren","Enter list title...":"Listen Titel eingeben..","Mark cards in this list as complete":"Markiere Karten in dieser Liste als fertiggestellt","Add list":"Liste hinzuf\xFCgen","Add a list":"F\xFCge eine Liste hinzu","Move list":"Liste verschieben",Close:"Schlie\xDFen","Are you sure you want to delete this list and all its cards?":"Bist du dir sicher, dass du diese Liste und alle ihre Karten l\xF6schen m\xF6chtest?","Yes, delete list":"Ja, l\xF6sche diese Liste","Are you sure you want to archive this list and all its cards?":"Bist du dir sicher, dass du diese Liste und alle ihre Karten archivieren m\xF6chtest?","Yes, archive list":"Ja, archiviere diese Liste","Are you sure you want to archive all cards in this list?":"Bist du dir sicher, dass du alle Karten in dieser Liste archivieren m\xF6chtest?","Yes, archive cards":"Ja, archiviere Karten","Edit list":"Editiere Liste","Archive cards":"Archiviere Karten","Archive list":"Archiviere List","Delete list":"L\xF6sche Liste"};h();var yu={"Open as kanban board":"Open as kanban board","Create new board":"Create new board","Archive completed cards in active board":"Archive completed cards in active board","Error: current file is not a Kanban board":"Error: current file is not a Kanban board","Convert empty note to Kanban":"Convert empty note to Kanban","Error: cannot create Kanban, the current note is not empty":"Error: cannot create Kanban, the current note is not empty","New kanban board":"New kanban board","Untitled Kanban":"Untitled Kanban","Toggle between Kanban and markdown mode":"Toggle between Kanban and markdown mode","Open as markdown":"Open as markdown","Open board settings":"Open board settings","Archive completed cards":"Archive completed cards","Something went wrong":"Something went wrong","You may wish to open as markdown and inspect or edit the file.":"You may wish to open as markdown and inspect or edit the file.","Are you sure you want to archive all completed cards on this board?":"Are you sure you want to archive all completed cards on this board?",Complete:"Complete",Archive:"Archive","Invalid Kanban file: problems parsing frontmatter":"Invalid Kanban file: problems parsing frontmatter","I don't know how to interpret this line:":"I don't know how to interpret this line:",Untitled:"Untitled","Note: No template plugins are currently enabled.":"Note: No template plugins are currently enabled.",default:"default","Search...":"Search...","New line trigger":"New line trigger","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lists.":"Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lists.","Shift + Enter":"Shift + Enter",Enter:"Enter","Prepend / append new cards":"Prepend / append new cards","This setting controls whether new cards are added to the beginning or end of the list.":"This setting controls whether new cards are added to the beginning or end of the list.",Prepend:"Prepend","Prepend (compact)":"Prepend (compact)",Append:"Append","These settings will take precedence over the default Kanban board settings.":"These settings will take precedence over the default Kanban board settings.","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.","Note template":"Note template","This template will be used when creating new notes from Kanban cards.":"This template will be used when creating new notes from Kanban cards.","No template":"No template","Note folder":"Note folder","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.","Default folder":"Default folder","List width":"List width","Enter a number to set the list width in pixels.":"Enter a number to set the list width in pixels.","Maximum number of archived cards":"Maximum number of archived cards","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.","Display card checkbox":"Display card checkbox","When toggled, a checkbox will be displayed with each card":"When toggled, a checkbox will be displayed with each card","Reset to default":"Reset to default","Date & Time":"Date & Time","Date trigger":"Date trigger","When this is typed, it will trigger the date selector":"When this is typed, it will trigger the date selector","Time trigger":"Time trigger","When this is typed, it will trigger the time selector":"When this is typed, it will trigger the time selector","Date format":"Date format","This format will be used when saving dates in markdown.":"This format will be used when saving dates in markdown.","For more syntax, refer to":"For more syntax, refer to","format reference":"format reference","Your current syntax looks like this":"Your current syntax looks like this","Time format":"Time format","Date display format":"Date display format","This format will be used when displaying dates in Kanban cards.":"This format will be used when displaying dates in Kanban cards.","Show relative date":"Show relative date","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'","Hide card display dates":"Hide card display dates","Hide card counts in list titles":"Hide card counts in list titles","When toggled, card counts are hidden from the list title":"When toggled, card counts are hidden from the list title","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.","Hide dates in card titles":"Hide dates in card titles","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.","Link dates to daily notes":"Link dates to daily notes","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"When toggled, dates will link to daily notes. Eg. [[2021-04-26]]","Add date and time to archived cards":"Add date and time to archived cards","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title","Archive date/time separator":"Archive date/time separator","This will be used to separate the archived date/time from the title":"This will be used to separate the archived date/time from the title","Archive date/time format":"Archive date/time format","Kanban Plugin":"Kanban Plugin","Hide tags in card titles":"Hide tags in card titles","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.","Hide card display tags":"Hide card display tags","When toggled, tags will not be displayed below the card title.":"When toggled, tags will not be displayed below the card title.","Linked Page Metadata":"Linked Page Metadata","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.","Board Header Buttons":"Board Header Buttons","Calendar: first day of week":"Calendar: first day of week","Override which day is used as the start of the week":"Override which day is used as the start of the week",Sunday:"Sunday",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday","Metadata key":"Metadata key","Display label":"Display label","Hide label":"Hide label","Drag to rearrange":"Drag to rearrange",Delete:"Delete","Add key":"Add key","Field contains markdown":"Field contains markdown","More options":"More options",Cancel:"Cancel",today:"today",yesterday:"yesterday",tomorrow:"tomorrow","Change date":"Change date","Change time":"Change time","Card title...":"Card title...","Add card":"Add card","Add a card":"Add a card","Edit card":"Edit card","New note from card":"New note from card","Archive card":"Archive card","Delete card":"Delete card","Edit date":"Edit date","Add date":"Add date","Remove date":"Remove date","Edit time":"Edit time","Add time":"Add time","Remove time":"Remove time","Duplicate card":"Duplicate card","Split card":"Split card","Copy link to card":"Copy link to card","Insert card before":"Insert card before","Insert card after":"Insert card after","Enter list title...":"Enter list title...","Mark cards in this list as complete":"Mark cards in this list as complete","Add list":"Add list","Add a list":"Add a list","Move list":"Move list",Close:"Close","Are you sure you want to delete this list and all its cards?":"Are you sure you want to delete this list and all its cards?","Yes, delete list":"Yes, delete list","Are you sure you want to archive this list and all its cards?":"Are you sure you want to archive this list and all its cards?","Yes, archive list":"Yes, archive list","Are you sure you want to archive all cards in this list?":"Are you sure you want to archive all cards in this list?","Yes, archive cards":"Yes, archive cards","Edit list":"Edit list","Archive cards":"Archive cards","Archive list":"Archive list","Delete list":"Delete list","Insert list before":"Insert list before","Insert list after":"Insert list after","Sort by card text":"Sort by card text","Sort by date":"Sort by date","Unable to find":"Unable to find","Open in default app":"Open in default app",Submit:"Submit"};h();var Vg={};h();var zg={};h();var jg={};h();var qg={};h();var Yg={"Open as kanban board":"Apri come bacheca Kanban","Create new board":"Crea nuova bacheca","Archive completed cards in active board":"Archivia schede completate nella bacheca attiva","Error: current file is not a Kanban board":"Errore: il file corrente non \xE8 una bacheca Kanban","Convert empty note to Kanban":"Converti nota vuota in Kanban","Error: cannot create Kanban, the current note is not empty":"Errore: Impossibile creare Kanban, la nota corrente non \xE8 vuota","New kanban board":"Nuova bacheca Kanban","Untitled Kanban":"Kanban senza titolo","Open as markdown":"Apri come markdown","Open board settings":"Apri impostazioni bacheca","Archive completed cards":"Archivia schede completate",Complete:"Completato",Archive:"Archivio","Note: No template plugins are currently enabled.":"Nota: Nessun plugin dei modelli attualmente abilitato.",default:"predefinito","Search...":"Ricerca...","These settings will take precedence over the default Kanban board settings.":"Queste impostazioni avranno la precedenza sulle impostazioni predefinite della bacheca Kanban.","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Impostazioni predefinite della bacheca Kanban. Le impostazioni possono essere sovrascritte per ogni bacheca.","Note template":"Nota modello","This template will be used when creating new notes from Kanban cards.":"Questo modello verr\xE0 utilizzato durante la creazione di nuove note dalle schede Kanban.","No template":"Nessun modello","Note folder":"Cartella delle note","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Le note create dalle schede Kanban verranno inserite in questa cartella. Se vuota, verranno inserite nella posizione predefinita del vault.","Default folder":"Cartella predefinita","Lane width":"Larghezza colonna","Enter a number to set the lane width in pixels.":"Inserire un numero per impostare la larghezza della colonna in pixel.","Maximum number of archived cards":"Numero massimo di schede archiviate","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Le schede archiviate possono essere visualizzate in modalit\xE0 Markdown. Le vecchie schede verranno rimosse una volta raggiunto il limite. Impostando il valore -1 il numero di schede archiviate sar\xE0 illimitato.","Display card checkbox":"Mostra casella di controllo","When toggled, a checkbox will be displayed with each card":"Se attiva, verr\xE0 visualizzata una casella di controllo per ogni scheda","Reset to default":"Ripristina predefiniti","Date & Time":"Data e ora","Date trigger":"Selettore data","When this is typed, it will trigger the date selector":"Digitando questo, verr\xE0 attivato il selettore della data","Time trigger":"Selettore ora","When this is typed, it will trigger the time selector":"Digitando questo, verr\xE0 attivato il selettore dell'ora","Date format":"Formato data","This format will be used when saving dates in markdown.":"Formato utilizzato per il salvataggio delle date in Markdown.","For more syntax, refer to":"Per maggiori informazioni, vedere","format reference":"formato di riferimento","Your current syntax looks like this":"Formato corrente","Time format":"Formato ora","Date display format":"Formato visualizzazione data","This format will be used when displaying dates in Kanban cards.":"Formato utilizzato per visualizzare le date nelle schede Kanban.","Show relative date":"Mostra data relativa","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"Se attiva, le schede indicheranno la distanza tra la data odierna e la data della scheda. eg. 'Tra 3 giorni', 'Un mese fa'","Hide card display dates":"Hide card display dates","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"Se attiva, la data non verr\xE0 mostrata sulla scheda. Le date relative verranno comunque mostrate se sono state abilitate.","Hide dates in card titles":"Nascondi date nei titoli delle schede","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"Se attiva, la data non verr\xE0 mostrata nei titoli delle schede. Questo impedisce alle date di essere incluse quando vengono create nuove note.","Link dates to daily notes":"Collega date alle Note del giorno","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"Se attiva, le date verranno collegate alle Note del giorno. Eg. [[2021-04-26]]","Add date and time to archived cards":"Aggiungi data e ora alle schede archiviate","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"Se attiva, la data e l'ora corrente verranno aggiunte all'inizio della scheda quando viene archiviata. Eg. - [ ] 2021-05-14 10:00am Mia scheda","Archive date/time separator":"Separatore data/ora dell'archivio","This will be used to separate the archived date/time from the title":"Verr\xE0 usato per separare data e ora dell'archiviazione dal titolo","Archive date/time format":"Formato data/ora dell'archivio","Kanban Plugin":"Plugin Kanban","More options":"Altre opzioni",Cancel:"Annulla",today:"oggi",yesterday:"ieri",tomorrow:"domani","Change date":"Modifica data","Change time":"Modifica ora","Card title...":"Titolo elemento...","Add card":"Aggiungi elemento","Add a card":"Aggiungi un'altra scheda","Edit card":"Modifica scheda","New note from card":"Nuova nota da scheda","Archive card":"Archivia scheda","Delete card":"Elimina scheda","Edit date":"Modifica data","Add date":"Aggiungi data","Remove date":"Rimuovi data","Edit time":"Modifica ora","Add time":"Aggiungi ora","Remove time":"Rimuovi ora","Enter list title...":"Inserisci titolo lista...","Mark cards in this list as complete":"Segna elementi della lista come completati","Add list":"Aggiungi lista","Add a list":"Aggiungi un'altra lista","Move list":"Sposta lista",Close:"Chiudi","Are you sure you want to delete this list and all its cards?":"Cancellare questa lista e tutte le sue schede?","Yes, delete list":"Cancella lista","Are you sure you want to archive this list and all its cards?":"Archiviare questa lista e tutte le sue schede?","Yes, archive list":"Archivia lista","Are you sure you want to archive all cards in this list?":"Archiviare tutte le schede in questa lista?","Yes, archive cards":"Archivia schede","Edit list":"Modifica lista","Archive cards":"Archivia schede","Archive list":"Archivia lista","Delete list":"Cancella lista"};h();var Jg={"Open as kanban board":"\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9\u3068\u3057\u3066\u958B\u304F","Create new board":"\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9\u3092\u65B0\u898F\u4F5C\u6210","Archive completed cards in active board":"\u30A2\u30AF\u30C6\u30A3\u30D6\u30DC\u30FC\u30C9\u306E\u5B8C\u4E86\u3057\u305F\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Error: current file is not a Kanban board":"\u30A8\u30E9\u30FC: \u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9\u3067\u306F\u3042\u308A\u307E\u305B\u3093","Convert empty note to Kanban":"\u7A7A\u306E\u30CE\u30FC\u30C8\u3092\u30AB\u30F3\u30D0\u30F3\u306B\u5909\u63DB","Error: cannot create Kanban, the current note is not empty":"\u30A8\u30E9\u30FC: \u73FE\u5728\u958B\u3044\u3066\u3044\u308B\u30CE\u30FC\u30C8\u306F\u7A7A\u3067\u3042\u308A\u3001\u30AB\u30F3\u30D0\u30F3\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093","New kanban board":"\u65B0\u898F\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9","Untitled Kanban":"\u7121\u984C\u306E\u30AB\u30F3\u30D0\u30F3","Toggle between Kanban and markdown mode":"\u30AB\u30F3\u30D0\u30F3\u3068\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u306E\u30E2\u30FC\u30C9\u3092\u5207\u308A\u66FF\u3048\u308B","Open as markdown":"\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u3068\u3057\u3066\u958B\u304F","Open board settings":"\u30DC\u30FC\u30C9\u8A2D\u5B9A\u3092\u958B\u304F","Archive completed cards":"\u5B8C\u4E86\u3057\u305F\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Something went wrong":"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","You may wish to open as markdown and inspect or edit the file.":"\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u3068\u3057\u3066\u30D5\u30A1\u30A4\u30EB\u3092\u958B\u3044\u3066\u8ABF\u67FB\u3059\u308B\u304B\u7DE8\u96C6\u3059\u308B\u3053\u3068\u3092\u304A\u3059\u3059\u3081\u3057\u307E\u3059\u3002","Are you sure you want to archive all completed cards on this board?":"\u3053\u306E\u30DC\u30FC\u30C9\u306B\u542B\u307E\u308C\u308B\u3059\u3079\u3066\u306E\u5B8C\u4E86\u3057\u305F\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059\u304B\uFF1F",Complete:"\u5B8C\u4E86",Archive:"\u30A2\u30FC\u30AB\u30A4\u30D6","Invalid Kanban file: problems parsing frontmatter":"\u7121\u52B9\u306A\u30AB\u30F3\u30D0\u30F3\u30D5\u30A1\u30A4\u30EB: \u30D5\u30ED\u30F3\u30C8\u30DE\u30BF\u30FC\u306E\u30D1\u30FC\u30B9\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059","I don't know how to interpret this line:":"\u3053\u306E\u884C\u3092\u3069\u3046\u89E3\u91C8\u3059\u308C\u3070\u3088\u3044\u304B\u5206\u304B\u308A\u307E\u305B\u3093",Untitled:"\u7121\u984C","Note: No template plugins are currently enabled.":"\u30CE\u30FC\u30C8: \u73FE\u5728\u3001\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u7121\u52B9\u5316\u3055\u308C\u3066\u3044\u307E\u3059",default:"\u30C7\u30D5\u30A9\u30EB\u30C8","Search...":"\u691C\u7D22\u2026","New line trigger":"\u6539\u884C\u30C8\u30EA\u30AC\u30FC","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.":"\u6539\u884C\u306B\u4F7F\u3046\u30AD\u30FC\u3068\u3057\u3066Enter\u304BShift+Enter\u306E\u3069\u3061\u3089\u3092\u4F7F\u3046\u304B\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9078\u629E\u3057\u306A\u304B\u3063\u305F\u65B9\u306E\u30AD\u30FC\u306F\u30AB\u30FC\u30C9\u3068\u30EC\u30FC\u30F3\u306E\u4F5C\u6210\u3068\u7DE8\u96C6\u5B8C\u4E86\u306E\u30C8\u30EA\u30AC\u30FC\u3068\u306A\u308A\u307E\u3059\u3002","Shift + Enter":"Shift + Enter",Enter:"Enter","Prepend / append new cards":"\u5148\u982D\u307E\u305F\u306F\u672B\u5C3E\u306B\u65B0\u898F\u30AB\u30FC\u30C9\u3092\u8FFD\u52A0\u3059\u308B","This setting controls whether new cards are added to the beginning or end of the list.":"\u3053\u306E\u8A2D\u5B9A\u306B\u3088\u3063\u3066\u65B0\u898F\u30AB\u30FC\u30C9\u3092\u30EA\u30B9\u30C8\u306E\u5148\u982D\u307E\u305F\u306F\u672B\u5C3E\u306B\u8FFD\u52A0\u3059\u308B\u304B\u3092\u6C7A\u3081\u307E\u3059\u3002",Prepend:"\u5148\u982D\u306B\u8FFD\u52A0","Prepend (compact)":"\u5148\u982D\u306B\u8FFD\u52A0(\u30B3\u30F3\u30D1\u30AF\u30C8)",Append:"\u672B\u5C3E\u306B\u8FFD\u52A0","These settings will take precedence over the default Kanban board settings.":"\u3053\u308C\u3089\u306E\u8A2D\u5B9A\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30AB\u30F3\u30D0\u30F3\u8A2D\u5B9A\u3088\u308A\u512A\u5148\u3055\u308C\u307E\u3059\u3002","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9\u8A2D\u5B9A\u3092\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3053\u306E\u8A2D\u5B9A\u306F\u30DC\u30FC\u30C9\u6BCE\u306B\u4E0A\u66F8\u304D\u3067\u304D\u307E\u3059\u3002","Note template":"\u30CE\u30FC\u30C8\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8","This template will be used when creating new notes from Kanban cards.":"\u3053\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u30AB\u30F3\u30D0\u30F3\u30AB\u30FC\u30C9\u304B\u3089\u30CE\u30FC\u30C8\u3092\u65B0\u898F\u4F5C\u6210\u3057\u305F\u969B\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002","No template":"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093","Note folder":"\u30CE\u30FC\u30C8\u30D5\u30A9\u30EB\u30C0","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"\u30AB\u30F3\u30D0\u30F3\u30AB\u30FC\u30C9\u304B\u3089\u4F5C\u6210\u3055\u308C\u305F\u30CE\u30FC\u30C8\u306F\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u5185\u306B\u7F6E\u304B\u308C\u307E\u3059\u3002\u30D6\u30E9\u30F3\u30AF\u306E\u5834\u5408\u306B\u306F\u3001\u3053\u306E\u4FDD\u7BA1\u5EAB\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\u306B\u7F6E\u304B\u308C\u307E\u3059\u3002","Default folder":"\u30C7\u30D5\u30A9\u30EB\u30C8\u30D5\u30A9\u30EB\u30C0","Lane width":"\u30EC\u30FC\u30F3\u306E\u5E45","Enter a number to set the lane width in pixels.":"\u30EC\u30FC\u30F3\u306E\u5E45\u3092\u30D4\u30AF\u30BB\u30EB\u5358\u4F4D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002","Maximum number of archived cards":"\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u30AB\u30FC\u30C9\u306E\u6700\u5927\u6570","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u30AB\u30FC\u30C9\u306F\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u30E2\u30FC\u30C9\u3067\u95B2\u89A7\u3067\u304D\u307E\u3059\u3002\u3053\u306E\u8A2D\u5B9A\u306B\u3088\u308A\u6307\u5B9A\u3055\u308C\u305F\u30A2\u30FC\u30AB\u30A4\u30D6\u306E\u9650\u754C\u6570\u307E\u3067\u9054\u3057\u305F\u969B\u306B\u306F\u53E4\u3044\u30AB\u30FC\u30C9\u3092\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u5024\u3092-1\u306B\u8A2D\u5B9A\u3059\u308B\u3068\u30DC\u30FC\u30C9\u306E\u30A2\u30FC\u30AB\u30A4\u30D6\u9650\u754C\u3092\u7121\u9650\u306B\u3057\u307E\u3059\u3002","Display card checkbox":"\u30AB\u30FC\u30C9\u306E\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9\u3092\u8868\u793A","When toggled, a checkbox will be displayed with each card":"\u6709\u52B9\u5316\u3059\u308B\u3068\u5404\u30AB\u30FC\u30C9\u306E\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002","Reset to default":"\u30C7\u30D5\u30A9\u30EB\u30C8\u306B\u30EA\u30BB\u30C3\u30C8","Date & Time":"\u65E5\u4ED8\u3068\u6642\u9593","Date trigger":"\u65E5\u4ED8\u30C8\u30EA\u30AC\u30FC","When this is typed, it will trigger the date selector":"\u3053\u306E\u8A2D\u5B9A\u306B\u5165\u529B\u3055\u308C\u305F\u6587\u5B57\u5217\u3067\u65E5\u4ED8\u30BB\u30EC\u30AF\u30BF\u30FC\u3092\u30C8\u30EA\u30AC\u30FC\u3057\u307E\u3059\u3002","Time trigger":"\u6642\u9593\u30C8\u30EA\u30AC\u30FC","When this is typed, it will trigger the time selector":"\u3053\u306E\u8A2D\u5B9A\u306B\u5165\u529B\u3055\u308C\u305F\u6587\u5B57\u5217\u3067\u6642\u9593\u30BB\u30EC\u30AF\u30BF\u30FC\u3092\u30C8\u30EA\u30AC\u30FC\u3057\u307E\u3059\u3002","Date format":"\u65E5\u4ED8\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8","This format will be used when saving dates in markdown.":"\u3053\u306E\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u306F\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u3067\u65E5\u4ED8\u304C\u4FDD\u5B58\u3055\u308C\u308B\u969B\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002","For more syntax, refer to":"\u30B7\u30F3\u30BF\u30C3\u30AF\u30B9\u306B\u3064\u3044\u3066\u306F\u3053\u3061\u3089\u3092\u53C2\u7167:","format reference":"\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u30EA\u30D5\u30A1\u30EC\u30F3\u30B9","Your current syntax looks like this":"\u73FE\u5728\u306E\u30B7\u30F3\u30BF\u30C3\u30AF\u30B9\u306F\u6B21\u306E\u3088\u3046\u306B\u898B\u3048\u307E\u3059","Time format":"\u6642\u9593\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8","Date display format":"\u65E5\u4ED8\u8868\u793A\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8","This format will be used when displaying dates in Kanban cards.":"\u3053\u306E\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u306F\u30AB\u30F3\u30D0\u30F3\u30AB\u30FC\u30C9\u5185\u306B\u3066\u65E5\u4ED8\u306E\u8868\u793A\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002","Show relative date":"\u76F8\u5BFE\u65E5\u4ED8\u3092\u8868\u793A","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u306E\u65E5\u4ED8\u3068\u4ECA\u65E5\u306E\u9593\u306E\u65E5\u6570\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u4F8B: '3\u65E5\u5F8C', '1\u30F6\u6708\u524D'","Hide card display dates":"\u30AB\u30FC\u30C9\u306B\u8868\u793A\u3055\u308C\u308B\u65E5\u4ED8\u3092\u96A0\u3059","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u4E0A\u306E\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u3055\u308C\u305F\u65E5\u4ED8\u304C\u975E\u8868\u793A\u306B\u306A\u308A\u307E\u3059\u3002\u6709\u52B9\u5316\u3055\u308C\u305F\u5834\u5408\u306B\u306F\u76F8\u5BFE\u65E5\u4ED8\u306F\u8868\u793A\u3055\u308C\u307E\u307E\u3068\u306A\u308A\u307E\u3059\u3002","Hide dates in card titles":"\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306E\u65E5\u4ED8\u3092\u96A0\u3059","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306E\u65E5\u4ED8\u304C\u975E\u8868\u793A\u306B\u306A\u308A\u307E\u3059\u3002\u3053\u308C\u306F\u65B0\u898F\u30CE\u30FC\u30C8\u3092\u4F5C\u6210\u3057\u305F\u969B\u306B\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306B\u65E5\u4ED8\u304C\u542B\u307E\u308C\u308B\u306E\u3092\u9632\u304E\u307E\u3059\u3002","Link dates to daily notes":"\u30C7\u30A4\u30EA\u30FC\u30CE\u30FC\u30C8\u306B\u65E5\u4ED8\u3092\u30EA\u30F3\u30AF","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"\u6709\u52B9\u5316\u3059\u308B\u3068\u65E5\u4ED8\u304C\u30C7\u30A4\u30EA\u30FC\u30CE\u30FC\u30C8\u306B\u30EA\u30F3\u30AF\u3055\u308C\u307E\u3059\u3002 \u4F8B: [[2021-04-26]]","Add date and time to archived cards":"\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u30AB\u30FC\u30C9\u306B\u65E5\u4ED8\u3068\u6642\u9593\u3092\u8FFD\u52A0","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u304C\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u969B\u306B\u73FE\u5728\u306E\u65E5\u4ED8\u3068\u6642\u9593\u304C\u30AB\u30FC\u30C9\u306E\u6700\u521D\u306B\u8FFD\u8A18\u3055\u308C\u308B\u3088\u3046\u306B\u306A\u308A\u307E\u3059\u3002\u4F8B: - [ ] 2021-05-14 10:00am \u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB","Archive date/time separator":"\u65E5\u4ED8\u30FB\u6642\u9593\u30BB\u30D1\u30EC\u30FC\u30BF\u30FC\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","This will be used to separate the archived date/time from the title":"\u3053\u308C\u306F\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u65E5\u4ED8\u30FB\u6642\u9593\u3092\u30BF\u30A4\u30C8\u30EB\u304B\u3089\u5206\u96E2\u3059\u308B\u306E\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002","Archive date/time format":"\u65E5\u4ED8\u30FB\u6642\u9593\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Kanban Plugin":"\u30AB\u30F3\u30D0\u30F3\u30D7\u30E9\u30B0\u30A4\u30F3","Hide tags in card titles":"\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u5185\u306E\u30BF\u30B0\u3092\u96A0\u3059","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u5185\u306E\u30BF\u30B0\u304C\u975E\u8868\u793A\u306B\u306A\u308A\u307E\u3059\u3002\u3053\u308C\u306F\u65B0\u898F\u30CE\u30FC\u30C8\u3092\u4F5C\u6210\u3057\u305F\u969B\u306B\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306B\u30BF\u30B0\u304C\u542B\u307E\u308C\u308B\u306E\u3092\u9632\u304E\u307E\u3059\u3002","Hide card display tags":"\u30AB\u30FC\u30C9\u306B\u8868\u793A\u3055\u308C\u308B\u30BF\u30B0\u3092\u96A0\u3059","When toggled, tags will not be displayed below the card title.":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306E\u4E0B\u306E\u30BF\u30B0\u304C\u975E\u8868\u793A\u306B\u306A\u308A\u307E\u3059\u3002","Linked Page Metadata":"\u30EA\u30F3\u30AF\u3055\u308C\u305F\u30DA\u30FC\u30B8\u306E\u30E1\u30BF\u30C7\u30FC\u30BF","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"\u30AB\u30FC\u30C9\u5185\u3067\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u308B\u6700\u521D\u306E\u30CE\u30FC\u30C8\u306E\u30E1\u30BF\u30C7\u30FC\u30BF\u3092\u8868\u793A\u3057\u307E\u3059\u3002\u4E0B\u306B\u8868\u793A\u3059\u308B\u30E1\u30BF\u30C7\u30FC\u30BF\u306E\u30AD\u30FC\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30AA\u30D7\u30B7\u30E7\u30F3\u3068\u3057\u3066\u30E9\u30D9\u30EB\u306E\u4ED8\u4E0E\u304C\u53EF\u80FD\u3067\u3042\u308A\u3001\u30E9\u30D9\u30EB\u306F\u5B8C\u5168\u306B\u975E\u8868\u793A\u306B\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002","Board Header Buttons":"\u30DC\u30FC\u30C9\u306E\u30D8\u30C3\u30C0\u30FC\u30DC\u30BF\u30F3","Calendar: first day of week":"\u30AB\u30EC\u30F3\u30C0\u30FC: \u9031\u306E\u59CB\u307E\u308A","Override which day is used as the start of the week":"\u9031\u306E\u59CB\u307E\u308A\u3068\u3057\u3066\u4F7F\u7528\u3059\u308B\u66DC\u65E5\u3092\u5909\u66F4\u3057\u307E\u3059\u3002",Sunday:"\u65E5\u66DC\u65E5",Monday:"\u6708\u66DC\u65E5",Tuesday:"\u706B\u66DC\u65E5",Wednesday:"\u6C34\u66DC\u65E5",Thursday:"\u6728\u66DC\u65E5",Friday:"\u91D1\u66DC\u65E5",Saturday:"\u571F\u66DC\u65E5","Metadata key":"\u30E1\u30BF\u30C7\u30FC\u30BF\u306E\u30AD\u30FC","Display label":"\u30E9\u30D9\u30EB\u3092\u8868\u793A","Hide label":"\u30E9\u30D9\u30EB\u3092\u96A0\u3059","Drag to rearrange":"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u4E26\u3079\u66FF\u3048\u308B",Delete:"\u524A\u9664","Add key":"\u30AD\u30FC\u3092\u8FFD\u52A0","Field contains markdown":"\u30D5\u30A3\u30FC\u30EB\u30C9\u306B\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u3092\u542B\u307F\u307E\u3059","More options":"\u4ED6\u306E\u30AA\u30D7\u30B7\u30E7\u30F3",Cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",today:"\u4ECA\u65E5",yesterday:"\u6628\u65E5",tomorrow:"\u660E\u65E5","Change date":"\u65E5\u4ED8\u3092\u5909\u66F4","Change time":"\u6642\u9593\u3092\u5909\u66F4","Card title...":"\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u2026","Add card":"\u30AB\u30FC\u30C9\u3092\u8FFD\u52A0","Add a card":"\u30AB\u30FC\u30C9\u3092\u8FFD\u52A0","Edit card":"\u30AB\u30FC\u30C9\u3092\u7DE8\u96C6","New note from card":"\u30AB\u30FC\u30C9\u304B\u3089\u30CE\u30FC\u30C8\u3092\u65B0\u898F\u4F5C\u6210","Archive card":"\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Delete card":"\u30AB\u30FC\u30C9\u3092\u524A\u9664","Edit date":"\u65E5\u4ED8\u3092\u7DE8\u96C6","Add date":"\u65E5\u4ED8\u3092\u8FFD\u52A0","Remove date":"\u65E5\u4ED8\u3092\u524A\u9664","Edit time":"\u6642\u9593\u3092\u7DE8\u96C6","Add time":"\u6642\u9593\u3092\u8FFD\u52A0","Remove time":"\u6642\u9593\u3092\u524A\u9664","Duplicate card":"\u30AB\u30FC\u30C9\u3092\u8907\u88FD","Split card":"\u30AB\u30FC\u30C9\u3092\u5206\u5272","Copy link to card":"\u30AB\u30FC\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u3092\u30B3\u30D4\u30FC","Enter list title...":"\u30EA\u30B9\u30C8\u30BF\u30A4\u30C8\u30EB\u3092\u7DE8\u96C6\u2026","Mark cards in this list as complete":"\u3053\u306E\u30EA\u30B9\u30C8\u306B\u542B\u307E\u308C\u308B\u30AB\u30FC\u30C9\u3092\u5B8C\u4E86\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3059\u308B","Add list":"\u30EA\u30B9\u30C8\u3092\u8FFD\u52A0","Add a list":"\u30EA\u30B9\u30C8\u3092\u8FFD\u52A0","Move list":"\u30EA\u30B9\u30C8\u3092\u79FB\u52D5",Close:"\u9589\u3058\u308B","Are you sure you want to delete this list and all its cards?":"\u3053\u306E\u30EA\u30B9\u30C8\u3068\u542B\u307E\u308C\u308B\u3059\u3079\u3066\u306E\u30AB\u30FC\u30C9\u3092\u524A\u9664\u3057\u307E\u3059\u304B\b\uFF1F","Yes, delete list":"\u306F\u3044\u3001\u30EA\u30B9\u30C8\u3092\u524A\u9664\u3057\u307E\u3059","Are you sure you want to archive this list and all its cards?":"\u3053\u306E\u30EA\u30B9\u30C8\u3068\u542B\u307E\u308C\u308B\u3059\u3079\u3066\u306E\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059\u304B\uFF1F","Yes, archive list":"\u306F\u3044\u3001\u30EA\u30B9\u30C8\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059","Are you sure you want to archive all cards in this list?":"\u3053\u306E\u30EA\u30B9\u30C8\u306B\u542B\u307E\u308C\u308B\u3059\u3079\u3066\u306E\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059\u304B\uFF1F","Yes, archive cards":"\u306F\u3044\u3001\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059","Edit list":"\u30EA\u30B9\u30C8\u3092\u7DE8\u96C6","Archive cards":"\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Archive list":"\u30EA\u30B9\u30C8\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Delete list":"\u30EA\u30B9\u30C8\u3092\u524A\u9664","Unable to find":"\u898B\u3064\u304B\u308A\u307E\u305B\u3093","Open in default app":"\u30C7\u30D5\u30A9\u30EB\u30C8\u30A2\u30D7\u30EA\u3067\u958B\u304F"};h();var Gg={};h();var Qg={};h();var Xg={};h();var Zg={};h();var ey={};h();var ty={"Open as Kanban board":"Abrir como quadro Kanban","Create new board":"Criar um novo quadro","Archive completed cards in active board":"Arquivar cart\xF5es conclu\xEDdos no quadro ativo","Error: current file is not a Kanban board":"Erro: o arquivo atual n\xE3o \xE9 um quadro Kanban","Convert empty note to Kanban":"Converter nota vazia em Kanban","Error: cannot create Kanban, the current note is not empty":"Erro: n\xE3o \xE9 poss\xEDvel criar o quadro Kanban, a nota atual n\xE3o est\xE1 vazia","New Kanban board":"Novo quadro Kanban","Untitled Kanban":"Kanban sem t\xEDtulo","Toggle between Kanban and markdown mode":"Alternar entre os modos Kanban e Markdown","Open as markdown":"Abrir como markdown","Open board settings":"Abrir configura\xE7\xF5es do quadro Kanban","Archive completed cards":"Arquivar cart\xF5es conclu\xEDdos",Complete:"Conclu\xEDdo",Archive:"Arquivado","Note: No template plugins are currently enabled.":"Nota: N\xE3o h\xE1 plug-ins de modelo habilitados no momento.",default:"padr\xE3o","Search...":"Pesquisar...","These settings will take precedence over the default Kanban board settings.":"Essas configura\xE7\xF5es sobrescrever\xE3o as configura\xE7\xF5es padr\xE3o do quadro Kanban","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Defina as configura\xE7\xF5es padr\xE3o do quadro Kanban. Cada quadro Kanban pode ter sua pr\xF3pria configura\xE7\xE3o.","Note template":"Modelo de nota","This template will be used when creating new notes from Kanban cards.":"Este modelo ser\xE1 usado quando uma nova nota Kanban for criada.","No template":"Sem modelo","Note folder":"Pasta de notas","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"As notas criadas pelos links dos cart\xF5es Kanban ser\xE3o colocadas nesta pasta. Se estiver em branco, ser\xE3o colocadas no local configurado como padr\xE3o deste cofre.","Default folder":"Pasta padr\xE3o","Lane width":"Largura das listas","Enter a number to set the lane width in pixels.":"Insira um n\xFAmero para definir a largura das listas em pixels.","Maximum number of archived cards":"Quantidade m\xE1xima de cart\xF5es arquivados","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Os cart\xF5es arquivados podem ser vistos no modo Markdown. Esta configura\xE7\xE3o excluir\xE1 os cart\xF5es antigos assim que o limite for atingido. Inserir o valor -1 retira o limite para cart\xF5es arquivados.","Display card checkbox":"Exibe uma caixa de sele\xE7\xE3o do cart\xE3o","When toggled, a checkbox will be displayed with each card":"Quando ativada, uma caixa de sele\xE7\xE3o ser\xE1 exibida em cada cart\xE3o.","Reset to default":"Redefinir configura\xE7\xF5es padr\xE3o","Date & Time":"Data e Hora","Date trigger":"Gatilho de data","When this is typed, it will trigger the date selector":"Quando este caractere \xE9 digitado, o seletor de data \xE9 exibido.","Time trigger":"Gatilho de hora","When this is typed, it will trigger the time selector":"Quando este caractere \xE9 digitado, o seletor de hora \xE9 exibido.","Date format":"Formado da data","This format will be used when saving dates in markdown.":"Este formato ser\xE1 usado quando datas forem armazenadas no Markdown.","For more syntax, refer to":"Para mais informa\xE7\xF5es sobre esta sintaxe, consulte os","format reference":"modelos de formato.","Your current syntax looks like this":"Sua atual sintaxe est\xE1 assim","Time format":"Formato da hora","Date display format":"Formato de exibi\xE7\xE3o da data","This format will be used when displaying dates in Kanban cards.":"Este ser\xE1 o formato das datas exibido nos cart\xF5es do Kanban.","Show relative date":"Exibir datas relativas","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"Ao ativar, os cart\xF5es exibir\xE3o o intervalo de tempo entre hoje e a data do cart\xE3o: Ex.: 'Em 3 dias', 'Um m\xEAs atr\xE1s'","Hide card display dates":"Ocultar datas dos cart\xF5es","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"Ao ativar, as datas formatadas n\xE3o ser\xE3o exibidas no cart\xE3o. As datas relativas ainda ser\xE3o exibidas se estiverem ativadas.","Hide dates in card titles":"Ocultar datas dos t\xEDtulos dos cart\xF5es","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"Ao ativar, as datas ser\xE3o t\xEDtulos de cart\xF5es ocultos. Evita que datas sejam inclu\xEDdas no t\xEDtulo ao criar novas notas.","Link dates to daily notes":"Vincular datas a notas di\xE1rias","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"Ao ativar, as datas ser\xE3o vinculadas \xE0s notas di\xE1rias. Ex.: [[2021-04-26]]","Add date and time to archived cards":"Adicionar data e hora aos cart\xF5es arquivados","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"Quando ativada, a data e a hora atuais ser\xE3o adicionadas ao in\xEDcio de um cart\xE3o quando ele for arquivado. Ex.: - [] 2021-05-14 10:00 T\xEDtulo do meu cart\xE3o","Archive date/time separator":"Separador de data/hora do arquivo","This will be used to separate the archived date/time from the title":"Isso ser\xE1 usado para separar a data/hora arquivada do t\xEDtulo.","Archive date/time format":"Formato de data/hora do arquivo","Kanban Plugin":"Plugin Kanban","Hide tags in card titles":"Ocultar \u2018tags\u2019 nos t\xEDtulos dos cart\xF5es","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"Quando ativada, as \u2018tags\u2019 n\xE3o ser\xE3o exibidas nos t\xEDtulos de cartas. Isso impedir\xE1 que as \u2018tags\u2019 sejam inclu\xEDdas no t\xEDtulo ao criar novas notas.","Hide card display tags":"Ocultar \u2018tags\u2019 de exibi\xE7\xE3o de cart\xE3o","When toggled, tags will not be displayed below the card title.":"Quando ativada, as \u2018tags\u2019 n\xE3o ser\xE3o exibidas abaixo do t\xEDtulo do cart\xE3o.","Linked Page Metadata":"Metadados de p\xE1ginas 'lincadas'","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"Exibe metadados para a primeira nota 'lincada' em um cart\xE3o. Especifique abaixo quais metadados ser\xE3o exibidos. Um r\xF3tulo opcional pode ser fornecido e os r\xF3tulos podem ser ocultados completamente.","Metadata key":"Metadado","Display label":"Descri\xE7\xE3o personalizada","Hide label":"Ocultar","Drag to rearrange":"Arraste para reorganizar",Delete:"Excluir","Add key":"Adicionar metadado","More options":"Mais op\xE7\xF5es",Cancel:"Cancelar",today:"hoje",yesterday:"ontem",tomorrow:"amanh\xE3","Change date":"Alterar data","Change time":"Mudar hora","Card title...":"T\xEDtulo do item...","Add card":"Adicionar Item","Add a card":"Adicione um cart\xE3o","Edit card":"Editar cart\xE3o","New note from card":"Nova nota do cart\xE3o","Archive card":"Arquivar cart\xE3o","Delete card":"Excluir cart\xE3o","Edit date":"Editar data","Add date":"Adicionar data","Remove date":"Remover data","Edit time":"Editar hora","Add time":"Adicionar hora","Remove time":"Remover hora","Duplicate card":"Duplicate card","Enter list title...":"Insira o t\xEDtulo da lista...","Mark cards in this list as complete":"Marcar os itens nesta lista como conclu\xEDdos","Add list":"Adicionar lista","Add a list":"Adicionar uma lista","Move list":"Mover lista",Close:"Fechar","Are you sure you want to delete this list and all its cards?":"Tem certeza de que deseja excluir esta lista e todos os seus cart\xF5es?","Yes, delete list":"Sim, excluir esta lista","Are you sure you want to archive this list and all its cards?":"Tem certeza de que deseja arquivar esta lista e todos os seus cart\xF5es?","Yes, archive list":"Sim, arquivar esta lista","Are you sure you want to archive all cards in this list?":"Tem certeza de que deseja arquivar todos os cart\xF5es desta lista?","Yes, archive cards":"Sim, arquivar cart\xF5es","Edit list":"Editar lista","Archive cards":"Arquivar cart\xF5es","Archive list":"Arquivar lista","Delete list":"Excluir lista"};h();var ny={};h();var ry={};h();var iy={};h();var es={};h();var ay={"Open as kanban board":"\u6253\u5F00\u4E3A\u770B\u677F","Create new board":"\u521B\u5EFA\u65B0\u770B\u677F","Archive completed cards in active board":"\u5728\u5F53\u524D\u770B\u677F\u4E2D\u5F52\u6863\u5DF2\u5B8C\u6210\u5361\u7247","Error: current file is not a Kanban board":"\u9519\u8BEF\uFF1A\u5F53\u524D\u6587\u4EF6\u4E0D\u662F\u770B\u677F\u6587\u4EF6","Convert empty note to Kanban":"\u8F6C\u6362\u7A7A\u767D\u6587\u6863\u4E3A\u770B\u677F","Error: cannot create Kanban, the current note is not empty":"\u9519\u8BEF\uFF1A\u65E0\u6CD5\u8F6C\u6362\u5F53\u524D\u6587\u4EF6\uFF0C\u5F53\u524D\u6587\u4EF6\u4E0D\u662F\u7A7A\u767D\u6587\u6863","New kanban board":"\u65B0\u770B\u677F","Untitled Kanban":"\u672A\u547D\u540D\u770B\u677F","Toggle between Kanban and markdown mode":"\u5728\u770B\u677F\u548C Markdown \u6A21\u5F0F\u4E4B\u95F4\u8FDB\u884C\u5207\u6362","Open as markdown":"\u6253\u5F00\u4E3A Markdown \u6587\u4EF6","Open board settings":"\u6253\u5F00\u770B\u677F\u8BBE\u7F6E","Archive completed cards":"\u5F52\u6863\u5DF2\u5B8C\u6210\u5361\u7247","Something went wrong":"\u51FA\u4E86\u70B9\u95EE\u9898 `(*>\uFE4F<*)\u2032 ","You may wish to open as markdown and inspect or edit the file.":"\u4F60\u53EF\u80FD\u5E0C\u671B\u4EE5 Markdown \u65B9\u5F0F\u6253\u5F00\uFF0C\u5E76\u68C0\u67E5\u6216\u7F16\u8F91\u8BE5\u6587\u4EF6\u3002","Are you sure you want to archive all completed cards on this board?":"\u4F60\u786E\u5B9A\u8981\u5C06\u8FD9\u4E2A\u677F\u5757\u4E0A\u6240\u6709\u5DF2\u5B8C\u6210\u7684\u5361\u7247\u5F52\u6863\u5417\uFF1F",Complete:"\u5B8C\u6210",Archive:"\u5F52\u6863","Invalid Kanban file: problems parsing frontmatter":"\u65E0\u6548\u7684\u770B\u677F\u6587\u4EF6\uFF1A\u89E3\u6790\u524D\u7AEF\u5185\u5BB9\u65F6\u51FA\u73B0\u95EE\u9898","I don't know how to interpret this line:":"\u6211\u4E0D\u77E5\u9053\u5982\u4F55\u89E3\u8BFB\u8FD9\u53E5\u8BDD: ",Untitled:"\u672A\u547D\u540D","Note: No template plugins are currently enabled.":"\u6CE8\u610F\uFF1A\u5F53\u524D\u6A21\u677F\u63D2\u4EF6\u6CA1\u6709\u8FD0\u884C",default:"\u9ED8\u8BA4","Search...":"\u641C\u7D22...","New line trigger":"\u6362\u884C\u89E6\u53D1\u5668","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.":"\u9009\u62E9 Enter \u6216\u662F Shift+Enter \u6765\u521B\u5EFA\u65B0\u884C, \u4F60\u6CA1\u6709\u9009\u62E9\u7684\u5C06\u7528\u6765\u521B\u5EFA\u548C\u5B8C\u6210\u5361\u7247","Prepend / append new cards":"\u8FFD\u52A0\u65B0\u5361","This setting controls whether new cards are added to the beginning or end of the list.":"\u8BBE\u7F6E\u65B0\u5361\u7247\u6DFB\u52A0\u5230\u5217\u8868\u5934\u90E8\u6216\u5C3E\u90E8\u3002",Prepend:"\u5934\u90E8","Prepend (compact)":"\u5934\u90E8 (\u7D27\u51D1)",Append:"\u5C3E\u90E8","These settings will take precedence over the default Kanban board settings.":"\u5F53\u524D\u770B\u677F\u8BBE\u7F6E\u5C06\u4F1A\u8986\u76D6\u9ED8\u8BA4\u7684\u770B\u677F\u8BBE\u7F6E","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"\u8BBE\u7F6E\u770B\u677F\u7684\u9ED8\u8BA4\u8BBE\u7F6E\u3002\u8BBE\u7F6E\u53EF\u4EE5\u6BCF\u4E2A\u770B\u677F\u5355\u72EC\u8BBE\u7F6E\u3002","Note template":"\u7B14\u8BB0\u6A21\u677F","This template will be used when creating new notes from Kanban cards.":"\u521B\u5EFA\u65B0\u770B\u677F\u5361\u7247\u65F6\u4F1A\u4F7F\u7528\u8BE5\u6A21\u677F","No template":"\u6CA1\u6709\u6A21\u677F","Note folder":"\u7B14\u8BB0\u5B58\u653E\u4F4D\u7F6E","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"\u4ECE\u770B\u677F\u5361\u7247\u521B\u5EFA\u7684\u7B14\u8BB0\u4F1A\u653E\u7F6E\u5230\u8BE5\u6587\u4EF6\u5939\u4E2D\uFF0C\u5982\u679C\u8FD9\u91CC\u4E3A\u7A7A\uFF0C\u5728\u770B\u677F\u521B\u5EFA\u7684\u7B14\u8BB0\u4F1A\u653E\u7F6E\u5230 Obsidian \u7684\u9ED8\u8BA4\u6587\u4EF6\u5B58\u653E\u4F4D\u7F6E\u3002","Default folder":"\u9ED8\u8BA4\u6587\u4EF6\u5939","Lane width":"\u5361\u7247\u5BBD\u5EA6","Enter a number to set the lane width in pixels.":"\u8F93\u5165\u4E00\u4E2A\u6570\u5B57\u6765\u8BBE\u7F6E\u770B\u677F\u7684\u5361\u7247\u5BBD\u5EA6","Maximum number of archived cards":"\u5355\u4E2A\u770B\u677F\u7684\u5F52\u6863\u5361\u7247\u7684\u6700\u5927\u6570\u91CF","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"\u5DF2\u5F52\u6863\u7684\u5361\u7247\u53EF\u4EE5\u5728 Markdown \u6A21\u5F0F\u4E0B\u67E5\u770B\u3002\u8FD9\u4E2A\u8BBE\u7F6E\u4F1A\u5BFC\u81F4\u63D2\u4EF6\u5728\u5DF2\u5F52\u6863\u7684\u5361\u7247\u6570\u91CF\u62B5\u8FBE\u9650\u5236\u503C\u65F6\u5F00\u59CB\u5220\u9664\u5361\u7247\u3002\u5F53\u524D\u503C\u8BBE\u7F6E\u4E3A -1 \u7684\u8BDD\u53EF\u4EE5\u6C38\u4E45\u4FDD\u7559\u6240\u6709\u5F52\u6863\u5361\u7247\u3002","Display card checkbox":"\u5C55\u793A\u5361\u7247\u590D\u9009\u6846","When toggled, a checkbox will be displayed with each card":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u590D\u9009\u6846\u4F1A\u51FA\u73B0\u5728\u6BCF\u4E2A\u5361\u7247\u4E0A","Reset to default":"\u8FD8\u539F\u521D\u59CB\u8BBE\u7F6E","Date & Time":"\u65E5\u671F\u548C\u65F6\u95F4","Date trigger":"\u65E5\u671F\u89E6\u53D1\u6307\u4EE4","When this is typed, it will trigger the date selector":"\u5F53\u5728\u770B\u677F\u5361\u7247\u4E2D\u8F93\u5165\u8FD9\u4E2A\u65F6\uFF0C\u4F1A\u89E6\u53D1\u4E00\u4E2A\u65E5\u671F\u9009\u62E9\u5668","Time trigger":"\u65F6\u95F4\u89E6\u53D1\u6307\u4EE4","When this is typed, it will trigger the time selector":"\u5F53\u5728\u770B\u677F\u5361\u7247\u4E2D\u8F93\u5165\u8FD9\u4E2A\u65F6\uFF0C\u4F1A\u89E6\u53D1\u4E00\u4E2A\u65F6\u95F4\u9009\u62E9\u5668","Date format":"\u65E5\u671F\u683C\u5F0F","This format will be used when saving dates in markdown.":"\u8FD9\u4E2A\u683C\u5F0F\u4F1A\u5728\u65E5\u671F\u4FDD\u5B58\u5230 Markdown \u683C\u5F0F\u65F6\u4F7F\u7528\u3002","For more syntax, refer to":"\u66F4\u591A\u683C\u5F0F\uFF0C\u8BF7\u67E5\u770B","format reference":"\u683C\u5F0F\u53C2\u8003","Your current syntax looks like this":"\u4F60\u5F53\u524D\u8BBE\u7F6E\u7684\u683C\u5F0F\u4F1A\u662F","Time format":"\u65F6\u95F4\u683C\u5F0F","Date display format":"\u65E5\u671F\u5C55\u793A\u683C\u5F0F","This format will be used when displaying dates in Kanban cards.":"\u5728\u770B\u677F\u5361\u7247\u4E2D\uFF0C\u4F1A\u57FA\u4E8E\u8BE5\u683C\u5F0F\u5C55\u793A\u65E5\u671F","Show relative date":"\u5C55\u793A\u76F8\u5BF9\u65E5\u671F","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5361\u7247\u4F1A\u5C55\u793A\u5176\u8BBE\u7F6E\u7684\u65E5\u671F\u4E0E\u4ECA\u5929\u7684\u65E5\u671F\u7684\u5DEE\u503C\uFF0C\u4F8B\u5982\u4E09\u5929\u5185\u3001\u4E00\u4E2A\u6708\u5185\u7B49\u3002","Hide card display dates":"\u9690\u85CF\u5361\u7247\u65E5\u671F","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u683C\u5F0F\u5316\u7684\u65E5\u671F\u4E0D\u4F1A\u5C55\u793A\uFF0C\u4F46\u662F\u5982\u679C\u4F60\u5F00\u542F\u4E86\u76F8\u5BF9\u65E5\u671F\u7684\u529F\u80FD\uFF0C\u76F8\u5BF9\u65E5\u671F\u8FD8\u662F\u4F1A\u7EE7\u7EED\u5C55\u793A\u3002","Hide dates in card titles":"\u5728\u5361\u7247\u6807\u9898\u4E2D\u9690\u85CF\u65E5\u671F","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5361\u7247\u6807\u9898\u4E2D\u7684\u65E5\u671F\u4F1A\u9690\u85CF\uFF0C\u5F53\u57FA\u4E8E\u5361\u7247\u521B\u5EFA\u65B0\u7B14\u8BB0\u7684\u65F6\u5019\u53EF\u4EE5\u907F\u514D\u65E5\u671F\u6DF7\u6742\u5176\u4E2D\u3002","Link dates to daily notes":"\u94FE\u63A5\u65E5\u671F\u5230\u65E5\u8BB0","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u65E5\u671F\u4F1A\u81EA\u52A8\u94FE\u63A5\u5230\u65E5\u8BB0\u9875\u9762\uFF0C\u4F8B\u5982 [[2021-04-26]]","Add date and time to archived cards":"\u6DFB\u52A0\u65E5\u671F\u548C\u65F6\u95F4\u5230\u5F52\u6863\u5361\u7247","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5F53\u524D\u7684\u65E5\u671F\u548C\u65F6\u95F4\u4F1A\u88AB\u6DFB\u52A0\u5230\u5F52\u6863\u7684\u5361\u7247\u7684\u524D\u7AEF\u4E0A\uFF0C\u4F8B\u5982\u201C- [ ] 2021-05-14 10:00am \u6211\u7684\u5361\u7247\u6807\u9898\u201D","Archive date/time separator":"\u65E5\u671F\u6216\u65F6\u95F4\u5206\u9694\u7B26","This will be used to separate the archived date/time from the title":"\u7528\u4E8E\u4ECE\u5206\u9694\u5F52\u6863\u5361\u7247\u7684\u65E5\u671F\u6216\u65F6\u95F4","Archive date/time format":"\u5F52\u6863\u65E5\u671F\u6216\u65F6\u95F4\u683C\u5F0F","Kanban Plugin":"\u770B\u677F\u63D2\u4EF6","Hide tags in card titles":"\u9690\u85CF\u5361\u7247\u6807\u9898\u4E2D\u7684\u6807\u7B7E","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5361\u7247\u6807\u9898\u4E2D\u7684\u6807\u7B7E\u5C06\u4F1A\u88AB\u9690\u85CF\uFF0C\u6765\u907F\u514D\u751F\u6210\u5361\u7247\u7B14\u8BB0\u7684\u65F6\u5019\u9644\u5E26\u4E0A\u6807\u7B7E","Hide card display tags":"\u9690\u85CF\u5361\u7247\u4E0A\u7684\u6807\u7B7E","When toggled, tags will not be displayed below the card title.":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5361\u7247\u6807\u9898\u4E0B\u65B9\u7684\u6807\u7B7E\u5C06\u4E0D\u4F1A\u5C55\u793A","Linked Page Metadata":"\u8FDE\u63A5\u7684\u9875\u9762\u5143\u6570\u636E","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"\u5C55\u793A\u5361\u7247\u4E2D\u7B2C\u4E00\u4E2A\u8FDE\u63A5\u6240\u5BF9\u5E94\u7684\u7B14\u8BB0\u5143\u6570\u636E\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6307\u5B9A\u54EA\u4E9B\u5143\u6570\u636E\u53EF\u4EE5\u5C55\u793A\u3002\u4F60\u53EF\u4EE5\u9009\u62E9\u5C55\u793A\u6807\u5FD7\uFF0C\u6807\u5FD7\u53EF\u4EE5\u90FD\u88AB\u9690\u85CF\u3002","Board Header Buttons":"\u677F\u5934\u6309\u94AE","Calendar: first day of week":"\u65E5\u5386\uFF1A\u4E00\u5468\u7684\u7B2C\u4E00\u5929","Override which day is used as the start of the week":"\u54EA\u4E00\u5929\u4F5C\u4E3A\u4E00\u5468\u7684\u5F00\u59CB",Sunday:"\u5468\u65E5",Monday:"\u5468\u4E00",Tuesday:"\u5468\u4E8C",Wednesday:"\u5468\u4E09",Thursday:"\u5468\u56DB",Friday:"\u5468\u4E94",Saturday:"\u5468\u516D","Metadata key":"\u5143\u6570\u636E\u53C2\u6570\u540D","Display label":"\u5C55\u793A\u6807\u5FD7","Hide label":"\u9690\u85CF\u6807\u5FD7","Drag to rearrange":"\u62D6\u52A8\u6765\u91CD\u6392\u987A\u5E8F",Delete:"\u5220\u9664","Add key":"\u6DFB\u52A0\u53C2\u6570\u540D","Field contains markdown":"\u5B57\u6BB5\u5305\u542B Markdown","More options":"\u66F4\u591A\u9009\u9879",Cancel:"\u53D6\u6D88",today:"\u4ECA\u5929",yesterday:"\u6628\u5929",tomorrow:"\u660E\u5929","Change date":"\u66F4\u6539\u65E5\u671F","Change time":"\u66F4\u6539\u65F6\u95F4","Card title...":"\u5361\u7247\u6807\u9898","Add card":"\u6DFB\u52A0","Add a card":"\u6DFB\u52A0\u5361\u7247","Edit card":"\u7F16\u8F91\u5361\u7247","New note from card":"\u4ECE\u5361\u7247\u65B0\u5EFA\u7B14\u8BB0","Archive card":"\u5F52\u6863\u5361\u7247","Delete card":"\u5220\u9664\u5361\u7247","Edit date":"\u7F16\u8F91\u65E5\u671F","Add date":"\u6DFB\u52A0\u65E5\u671F","Remove date":"\u79FB\u9664\u65E5\u671F","Edit time":"\u7F16\u8F91\u65F6\u95F4","Add time":"\u6DFB\u52A0\u65F6\u95F4","Remove time":"\u79FB\u9664\u65F6\u95F4","Duplicate card":"\u590D\u5236\u5361\u7247","Split card":"\u5206\u79BB\u5361\u7247","Copy link to card":"\u590D\u5236\u94FE\u63A5\u81F3\u5361\u7247","Insert card before":"\u5728\u4E0A\u65B9\u63D2\u5165\u5361\u7247","Insert card after":"\u5728\u4E0B\u65B9\u63D2\u5165\u5361\u7247","Enter list title...":"\u8F93\u5165\u65B0\u7684\u5217\u6807\u9898","Mark cards in this list as complete":"\u5C06\u8BE5\u5217\u8BBE\u7F6E\u4E3A\u5B8C\u6210\u5217","Add list":"\u6DFB\u52A0","Add a list":"\u6DFB\u52A0\u5217","Move list":"\u79FB\u52A8\u5217",Close:"\u5173\u95ED","Are you sure you want to delete this list and all its cards?":"\u4F60\u786E\u5B9A\u4F60\u8981\u5220\u9664\u6574\u5217\u4EE5\u53CA\u8BE5\u5217\u4E0B\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, delete list":"\u662F\uFF0C\u5220\u9664\u5217","Are you sure you want to archive this list and all its cards?":"\u4F60\u786E\u5B9A\u4F60\u8981\u5F52\u6863\u6574\u5217\u4EE5\u53CA\u8BE5\u5217\u4E0B\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, archive list":"\u662F, \u5F52\u6863\u5217","Are you sure you want to archive all cards in this list?":"\u4F60\u786E\u8BA4\u4F60\u8981\u5F52\u6863\u5F53\u524D\u5217\u7684\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, archive cards":"\u662F\uFF0C\u5F52\u6863\u6240\u6709\u5361\u7247","Edit list":"\u7F16\u8F91\u5217","Archive cards":"\u5F52\u6863\u5361\u7247","Archive list":"\u5F52\u6863\u5217","Delete list":"\u5220\u9664\u5217","Insert list before":"\u5728\u4E0A\u65B9\u63D2\u5165\u5217","Insert list after":"\u5728\u4E0B\u65B9\u63D2\u5165\u5217","Unable to find":"\u65E0\u6CD5\u627E\u5230","Open in default app":"\u5728\u9ED8\u8BA4\u5E94\u7528\u4E2D\u6253\u5F00",Submit:"\u63D0\u4EA4"};h();var oy={};var vS={ar:Kg,cz:$g,da:Ug,de:Wg,en:yu,es:Vg,fr:zg,hi:jg,id:qg,it:Yg,ja:Jg,ko:Gg,nl:Qg,no:Xg,pl:Zg,"pt-BR":ty,pt:ey,ro:ny,ru:ry,sq:iy,tr:es,uk:es,"zh-TW":oy,zh:ay},sy=window.localStorage.getItem("language"),vu=vS[sy||"en"];function B(e){return vu||console.error("Error: kanban locale not found",sy),vu&&vu[e]||yu[e]}h();h();function Un(e){return Array.isArray?Array.isArray(e):uy(e)==="[object Array]"}var bS=1/0;function wS(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-bS?"-0":t}function ES(e){return e==null?"":wS(e)}function Mn(e){return typeof e=="string"}function ly(e){return typeof e=="number"}function xS(e){return e===!0||e===!1||kS(e)&&uy(e)=="[object Boolean]"}function cy(e){return typeof e=="object"}function kS(e){return cy(e)&&e!==null}function on(e){return e!=null}function bu(e){return!e.trim().length}function uy(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var SS="Incorrect 'index' type",_S=e=>`Invalid value for key ${e}`,DS=e=>`Pattern length exceeds max of ${e}.`,CS=e=>`Missing ${e} property in key`,TS=e=>`Property 'weight' in key '${e}' must be a positive integer`,dy=Object.prototype.hasOwnProperty,fy=class{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{let i=py(n);r+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,r+=i.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function py(e){let t=null,r=null,n=null,i=1,a=null;if(Mn(e)||Un(e))n=e,t=hy(e),r=wu(e);else{if(!dy.call(e,"name"))throw new Error(CS("name"));let o=e.name;if(n=o,dy.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(TS(o));t=hy(o),r=wu(o),a=e.getFn}return{path:t,id:r,weight:i,src:n,getFn:a}}function hy(e){return Un(e)?e:e.split(".")}function wu(e){return Un(e)?e.join("."):e}function MS(e,t){let r=[],n=!1,i=(a,o,s)=>{if(!!on(a))if(!o[s])r.push(a);else{let u=o[s],l=a[u];if(!on(l))return;if(s===o.length-1&&(Mn(l)||ly(l)||xS(l)))r.push(ES(l));else if(Un(l)){n=!0;for(let c=0,d=l.length;c<d;c+=1)i(l[c],o,s+1)}else o.length&&i(l,o,s+1)}};return i(e,Mn(t)?t.split("."):t,0),n?r:r[0]}var IS={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},AS={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},LS={location:0,threshold:.6,distance:100},PS={useExtendedSearch:!1,getFn:MS,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},_e={...AS,...IS,...LS,...PS},FS=/[^ ]+/g;function OS(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(i){let a=i.match(FS).length;if(r.has(a))return r.get(a);let o=1/Math.pow(a,.5*e),s=parseFloat(Math.round(o*n)/n);return r.set(a,s),s},clear(){r.clear()}}}var ts=class{constructor({getFn:t=_e.getFn,fieldNormWeight:r=_e.fieldNormWeight}={}){this.norm=OS(r,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Mn(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){let r=this.size();Mn(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(t,r){return t[this._keysMap[r]]}size(){return this.records.length}_addString(t,r){if(!on(t)||bu(t))return;let n={v:t,i:r,n:this.norm.get(t)};this.records.push(n)}_addObject(t,r){let n={i:r,$:{}};this.keys.forEach((i,a)=>{let o=i.getFn?i.getFn(t):this.getFn(t,i.path);if(!!on(o)){if(Un(o)){let s=[],u=[{nestedArrIndex:-1,value:o}];for(;u.length;){let{nestedArrIndex:l,value:c}=u.pop();if(!!on(c))if(Mn(c)&&!bu(c)){let d={v:c,i:l,n:this.norm.get(c)};s.push(d)}else Un(c)&&c.forEach((d,f)=>{u.push({nestedArrIndex:f,value:d})})}n.$[a]=s}else if(Mn(o)&&!bu(o)){let s={v:o,n:this.norm.get(o)};n.$[a]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}};function my(e,t,{getFn:r=_e.getFn,fieldNormWeight:n=_e.fieldNormWeight}={}){let i=new ts({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(py)),i.setSources(t),i.create(),i}function NS(e,{getFn:t=_e.getFn,fieldNormWeight:r=_e.fieldNormWeight}={}){let{keys:n,records:i}=e,a=new ts({getFn:t,fieldNormWeight:r});return a.setKeys(n),a.setIndexRecords(i),a}function ns(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=_e.distance,ignoreLocation:a=_e.ignoreLocation}={}){let o=t/e.length;if(a)return o;let s=Math.abs(n-r);return i?o+s/i:s?1:o}function RS(e=[],t=_e.minMatchCharLength){let r=[],n=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let s=e[a];s&&n===-1?n=a:!s&&n!==-1&&(i=a-1,i-n+1>=t&&r.push([n,i]),n=-1)}return e[a-1]&&a-n>=t&&r.push([n,a-1]),r}var Mr=32;function HS(e,t,r,{location:n=_e.location,distance:i=_e.distance,threshold:a=_e.threshold,findAllMatches:o=_e.findAllMatches,minMatchCharLength:s=_e.minMatchCharLength,includeMatches:u=_e.includeMatches,ignoreLocation:l=_e.ignoreLocation}={}){if(t.length>Mr)throw new Error(DS(Mr));let c=t.length,d=e.length,f=Math.max(0,Math.min(n,d)),p=a,m=f,v=s>1||u,b=v?Array(d):[],k;for(;(k=e.indexOf(t,m))>-1;){let F=ns(t,{currentLocation:k,expectedLocation:f,distance:i,ignoreLocation:l});if(p=Math.min(F,p),m=k+c,v){let U=0;for(;U<c;)b[k+U]=1,U+=1}}m=-1;let T=[],D=1,I=c+d,H=1<<c-1;for(let F=0;F<c;F+=1){let U=0,z=I;for(;U<z;)ns(t,{errors:F,currentLocation:f+z,expectedLocation:f,distance:i,ignoreLocation:l})<=p?U=z:I=z,z=Math.floor((I-U)/2+U);I=z;let ee=Math.max(1,f-z+1),Z=o?d:Math.min(f+z,d)+c,le=Array(Z+2);le[Z+1]=(1<<F)-1;for(let G=Z;G>=ee;G-=1){let re=G-1,pe=r[e.charAt(re)];if(v&&(b[re]=+!!pe),le[G]=(le[G+1]<<1|1)&pe,F&&(le[G]|=(T[G+1]|T[G])<<1|1|T[G+1]),le[G]&H&&(D=ns(t,{errors:F,currentLocation:re,expectedLocation:f,distance:i,ignoreLocation:l}),D<=p)){if(p=D,m=re,m<=f)break;ee=Math.max(1,2*f-m)}}if(ns(t,{errors:F+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>p)break;T=le}let C={isMatch:m>=0,score:Math.max(.001,D)};if(v){let F=RS(b,s);F.length?u&&(C.indices=F):C.isMatch=!1}return C}function BS(e){let t={};for(let r=0,n=e.length;r<n;r+=1){let i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}var Eu=class{constructor(t,{location:r=_e.location,threshold:n=_e.threshold,distance:i=_e.distance,includeMatches:a=_e.includeMatches,findAllMatches:o=_e.findAllMatches,minMatchCharLength:s=_e.minMatchCharLength,isCaseSensitive:u=_e.isCaseSensitive,ignoreLocation:l=_e.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:i,includeMatches:a,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:l},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;let c=(f,p)=>{this.chunks.push({pattern:f,alphabet:BS(f),startIndex:p})},d=this.pattern.length;if(d>Mr){let f=0,p=d%Mr,m=d-p;for(;f<m;)c(this.pattern.substr(f,Mr),f),f+=Mr;if(p){let v=d-Mr;c(this.pattern.substr(v),v)}}else c(this.pattern,0)}searchIn(t){let{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(t=t.toLowerCase()),this.pattern===t){let m={isMatch:!0,score:0};return n&&(m.indices=[[0,t.length-1]]),m}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:u,ignoreLocation:l}=this.options,c=[],d=0,f=!1;this.chunks.forEach(({pattern:m,alphabet:v,startIndex:b})=>{let{isMatch:k,score:T,indices:D}=HS(t,m,v,{location:i+b,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:u,includeMatches:n,ignoreLocation:l});k&&(f=!0),d+=T,k&&D&&(c=[...c,...D])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&n&&(p.indices=c),p}},Wn=class{constructor(t){this.pattern=t}static isMultiMatch(t){return gy(t,this.multiRegex)}static isSingleMatch(t){return gy(t,this.singleRegex)}search(){}};function gy(e,t){let r=e.match(t);return r?r[1]:null}var yy=class extends Wn{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){let r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}},vy=class extends Wn{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){let n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}},by=class extends Wn{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){let r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}},wy=class extends Wn{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){let r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}},Ey=class extends Wn{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){let r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},xy=class extends Wn{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){let r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}},xu=class extends Wn{constructor(t,{location:r=_e.location,threshold:n=_e.threshold,distance:i=_e.distance,includeMatches:a=_e.includeMatches,findAllMatches:o=_e.findAllMatches,minMatchCharLength:s=_e.minMatchCharLength,isCaseSensitive:u=_e.isCaseSensitive,ignoreLocation:l=_e.ignoreLocation}={}){super(t);this._bitapSearch=new Eu(t,{location:r,threshold:n,distance:i,includeMatches:a,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}},ku=class extends Wn{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n,i=[],a=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+a,i.push([n,r-1]);let o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}},Su=[yy,ku,by,wy,xy,Ey,vy,xu],ky=Su.length,KS=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$S="|";function US(e,t={}){return e.split($S).map(r=>{let n=r.trim().split(KS).filter(a=>a&&!!a.trim()),i=[];for(let a=0,o=n.length;a<o;a+=1){let s=n[a],u=!1,l=-1;for(;!u&&++l<ky;){let c=Su[l],d=c.isMultiMatch(s);d&&(i.push(new c(d,t)),u=!0)}if(!u)for(l=-1;++l<ky;){let c=Su[l],d=c.isSingleMatch(s);if(d){i.push(new c(d,t));break}}}return i})}var WS=new Set([xu.type,ku.type]),Sy=class{constructor(t,{isCaseSensitive:r=_e.isCaseSensitive,includeMatches:n=_e.includeMatches,minMatchCharLength:i=_e.minMatchCharLength,ignoreLocation:a=_e.ignoreLocation,findAllMatches:o=_e.findAllMatches,location:s=_e.location,threshold:u=_e.threshold,distance:l=_e.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:u,distance:l},this.pattern=r?t:t.toLowerCase(),this.query=US(this.pattern,this.options)}static condition(t,r){return r.useExtendedSearch}searchIn(t){let r=this.query;if(!r)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:i}=this.options;t=i?t:t.toLowerCase();let a=0,o=[],s=0;for(let u=0,l=r.length;u<l;u+=1){let c=r[u];o.length=0,a=0;for(let d=0,f=c.length;d<f;d+=1){let p=c[d],{isMatch:m,indices:v,score:b}=p.search(t);if(m){if(a+=1,s+=b,n){let k=p.constructor.type;WS.has(k)?o=[...o,...v]:o.push(v)}}else{s=0,a=0,o.length=0;break}}if(a){let d={isMatch:!0,score:s/a};return n&&(d.indices=o),d}}return{isMatch:!1,score:1}}},_u=[];function VS(...e){_u.push(...e)}function Du(e,t){for(let r=0,n=_u.length;r<n;r+=1){let i=_u[r];if(i.condition(e,t))return new i(e,t)}return new Eu(e,t)}var rs={AND:"$and",OR:"$or"},Cu={PATH:"$path",PATTERN:"$val"},Tu=e=>!!(e[rs.AND]||e[rs.OR]),zS=e=>!!e[Cu.PATH],jS=e=>!Un(e)&&cy(e)&&!Tu(e),_y=e=>({[rs.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Dy(e,t,{auto:r=!0}={}){let n=i=>{let a=Object.keys(i),o=zS(i);if(!o&&a.length>1&&!Tu(i))return n(_y(i));if(jS(i)){let u=o?i[Cu.PATH]:a[0],l=o?i[Cu.PATTERN]:i[u];if(!Mn(l))throw new Error(_S(u));let c={keyId:wu(u),pattern:l};return r&&(c.searcher=Du(l,t)),c}let s={children:[],operator:a[0]};return a.forEach(u=>{let l=i[u];Un(l)&&l.forEach(c=>{s.children.push(n(c))})}),s};return Tu(e)||(e=_y(e)),n(e)}function qS(e,{ignoreFieldNorm:t=_e.ignoreFieldNorm}){e.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:a,score:o})=>{let s=i?i.weight:null;n*=Math.pow(o===0&&s?Number.EPSILON:o,(s||1)*(t?1:a))}),r.score=n})}function YS(e,t){let r=e.matches;t.matches=[],!!on(r)&&r.forEach(n=>{if(!on(n.indices)||!n.indices.length)return;let{indices:i,value:a}=n,o={indices:i,value:a};n.key&&(o.key=n.key.src),n.idx>-1&&(o.refIndex=n.idx),t.matches.push(o)})}function JS(e,t){t.score=e.score}function GS(e,t,{includeMatches:r=_e.includeMatches,includeScore:n=_e.includeScore}={}){let i=[];return r&&i.push(YS),n&&i.push(JS),e.map(a=>{let{idx:o}=a,s={item:t[o],refIndex:o};return i.length&&i.forEach(u=>{u(a,s)}),s})}var dn=class{constructor(t,r={},n){this.options={..._e,...r},this.options.useExtendedSearch,this._keyStore=new fy(this.options.keys),this.setCollection(t,n)}setCollection(t,r){if(this._docs=t,r&&!(r instanceof ts))throw new Error(SS);this._myIndex=r||my(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){!on(t)||(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){let r=[];for(let n=0,i=this._docs.length;n<i;n+=1){let a=this._docs[n];t(a,n)&&(this.removeAt(n),n-=1,i-=1,r.push(a))}return r}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:r=-1}={}){let{includeMatches:n,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options,u=Mn(t)?Mn(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return qS(u,{ignoreFieldNorm:s}),a&&u.sort(o),ly(r)&&r>-1&&(u=u.slice(0,r)),GS(u,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(t){let r=Du(t,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:a,i:o,n:s})=>{if(!on(a))return;let{isMatch:u,score:l,indices:c}=r.searchIn(a);u&&i.push({item:a,idx:o,matches:[{score:l,value:a,norm:s,indices:c}]})}),i}_searchLogical(t){let r=Dy(t,this.options),n=(s,u,l)=>{if(!s.children){let{keyId:d,searcher:f}=s,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(u,d),searcher:f});return p&&p.length?[{idx:l,item:u,matches:p}]:[]}let c=[];for(let d=0,f=s.children.length;d<f;d+=1){let p=s.children[d],m=n(p,u,l);if(m.length)c.push(...m);else if(s.operator===rs.AND)return[]}return c},i=this._myIndex.records,a={},o=[];return i.forEach(({$:s,i:u})=>{if(on(s)){let l=n(r,s,u);l.length&&(a[u]||(a[u]={idx:u,item:s,matches:[]},o.push(a[u])),l.forEach(({matches:c})=>{a[u].matches.push(...c)}))}}),o}_searchObjectList(t){let r=Du(t,this.options),{keys:n,records:i}=this._myIndex,a=[];return i.forEach(({$:o,i:s})=>{if(!on(o))return;let u=[];n.forEach((l,c)=>{u.push(...this._findMatches({key:l,value:o[c],searcher:r}))}),u.length&&a.push({idx:s,item:o,matches:u})}),a}_findMatches({key:t,value:r,searcher:n}){if(!on(r))return[];let i=[];if(Un(r))r.forEach(({v:a,i:o,n:s})=>{if(!on(a))return;let{isMatch:u,score:l,indices:c}=n.searchIn(a);u&&i.push({score:l,key:t,value:a,idx:o,norm:s,indices:c})});else{let{v:a,n:o}=r,{isMatch:s,score:u,indices:l}=n.searchIn(a);s&&i.push({score:u,key:t,value:a,norm:o,indices:l})}return i}};dn.version="6.6.2";dn.createIndex=my;dn.parseIndex=NS;dn.config=_e;dn.parseQuery=Dy;VS(Sy);var qy=ye(require("obsidian"));h();var Cy=ye(require("obsidian"));function is(e,t,r){let n=r.getSetting("date-format"),i=r.getSetting("link-date-to-daily-note"),a=(0,Cy.moment)(e).format(n),o=i?Mo(r.app,a):`{${a}}`;Tt(t.current,o),t.current.focus()}function Ty({div:e,inputRef:t,cb:r,stateManager:n}){e.createEl("input",{type:"text"},i=>{e.win.setTimeout(()=>r(Ko(i,{now:new Date,locale:Po(n),inline:!0,onChange:a=>{is(a[0],t,n)},win:i.win})))})}function Mu(e,t){let r=t.clientHeight,n=t.clientWidth,i=Ze(t);e.top+r>i.innerHeight&&(t.style.top=`${(e.clientTop||0)-r}px`),e.left+n>i.innerWidth&&(t.style.left=`${(e.left||0)-n}px`)}function My(e){let t=e.getSetting("time-trigger"),r=new RegExp(`\\B${Sn(t)}{?([^}]*)$`),n=uu(e);return{id:"time",match:r,index:1,search:(i,a)=>{a(i?n.filter(o=>o.startsWith(i)):n)},template:i=>i,replace:i=>`${t}{${i}} `}}function Iy(e){let t=e.month(),r=e.clone().startOf("month").weekday(0),n=e.diff(r,"week");e.subtract(1,"month").startOf("month").weekday(6).add(n,"week");let i=e.month();for(;t===i;)e.subtract(1,"week"),i=e.month();return e}function Ay(e){let t=e.month(),r=e.clone().startOf("month").weekday(6),n=e.diff(r,"week");e.add(1,"month").startOf("month").weekday(0).add(n,"week");let i=e.month();for(;t===i;)e.add(1,"week"),i=e.month();return e}h();var Ly=ye(require("obsidian"));var QS=/\B\[\[([^\]]*)$/,XS=/\B!\[\[([^\]]*)$/,ZS=/\B\[\[([^#\]]+)#([^\]]*)$/,e0=/\B!\[\[([^#\]]+)#([^\]]*)$/,t0=/\B\[\[([^#\]]+)#?\^([^\]]*)$/,n0=/\B!\[\[([^#\]]+)#?\^([^\]]*)$/;function r0(e,t,r,n){let i=e.document.body.createDiv(V("file-suggestion-wrapper"));i.detach(),(0,Ly.setIcon)(i.createDiv(V("file-suggestion-icon")),"forward-arrow",12),i.createDiv({},o=>{o.createDiv({cls:V("file-suggestion-title"),text:n.item.alias}),o.createDiv({cls:V("file-suggestion-subtitle"),text:t.app.metadataCache.fileToLinktext(n.item.file,r)})});let a=i.outerHTML;return i.remove(),i=null,a}function Iu(e,t,r,n,i,a,o){return{id:`link-${o?"embed":"normal"}`,match:o?XS:QS,index:1,template:s=>s.item.file===null?`<em>${s.item.path.split("|").pop()||s.item.path}</em>`:s.item.alias?r0(e,i,n,s):i.app.metadataCache.fileToLinktext(s.item.file,n),search:(s,u)=>{if(!s)u(t.slice(0,10).map((l,c)=>({item:l,refIndex:c})));else{let l=s.split("|"),c=l.length>1,d=l[0],f=c?l.slice(1).join("|"):null,p=s;c&&(p={"file.basename":d,alias:f}),u([{item:{file:null,path:s,alias:""},refIndex:-1},...r.search(p)])}},replace:s=>{let u=[];o&&s.item.file.extension==="md"&&u.push("!"),s.item.file===null?u.push(`[[${s.item.path}]]`):u.push(i.app.fileManager.generateMarkdownLink(s.item.file,i.file.path,void 0,s.item.alias));let l=!!i.app.vault.getConfig("useMarkdownLinks");return a&&!l&&(u[u.length-1]=u[u.length-1].slice(0,-2)),u.join("")}}}function i0(e,t,r,n){var u;if(!r)return[];let i=r.split("|"),a=e.metadataCache.getFirstLinkpathDest(i[0],t);if(!a)return[];let o=e.metadataCache.getFileCache(a);if(!o||!((u=o.headings)==null?void 0:u.length))return[];let s=o.headings.map(l=>({file:a,heading:l.heading,alias:i[1]||""}));return n?new dn(s,{keys:["heading"]}).search(n):s.map((l,c)=>({item:l,refIndex:c}))}function Au(e,t,r,n){return{id:`heading-${n?"embed":"normal"}`,match:n?e0:ZS,index:1,template:i=>i.item.heading,search:(i,a,o)=>{a(i0(t.app,e,o[1],o[2]))},replace:i=>{let a=[];n&&i.item.file.extension==="md"&&a.push("!"),a.push(t.app.fileManager.generateMarkdownLink(i.item.file,t.file.path,"#"+i.item.heading,i.item.alias));let o=!!t.app.vault.getConfig("useMarkdownLinks");return r&&!o?a[a.length-1]=a[a.length-1].slice(0,-2):!r&&!o&&a.push("]] "),a.join("")}}}var Py=class{constructor(){this.running=!1;this.cancelled=!1}start(){this.running=!0}stop(){this.running=!1}cancel(){this.stop(),this.cancelled=!0}isRunning(){return this.running}isCancelled(){return this.cancelled}};async function a0(e,t,r,n,i){var u;if(!r)return i([]);let a=r.split("|"),o=e.metadataCache.getFirstLinkpathDest(a[0],t);if(!o)return i([]);let s=e.metadataCache.getFileCache(o);if(!s||!((u=s.sections)==null?void 0:u.length))return i([]);try{let l=await e.metadataCache.blockCache.getForFile(new Py,o);if(!(l==null?void 0:l.blocks))return i([]);let c=l.blocks.map(d=>d.node.type==="heading"?null:{file:o,searchString:d.display,blockId:d.node.id,block:{type:d.node.type,start:d.node.position.start.offset,end:d.node.position.end.offset},alias:a[1]||""}).filter(d=>d);i(n?new dn(c,{keys:["searchString","blockId"]}).search(n):c.map((d,f)=>({item:d,refIndex:f})))}catch(l){i([])}}function o0(e){return["blockquote","code","table","comment","footnoteDefinition"].includes(e)}function Lu(e,t,r,n){return{id:`block-${n?"embed":"normal"}`,match:n?n0:t0,index:1,template:i=>i.item.blockId?`<div class="${V("file-suggestion-wrapper")}"><div><div class="${V("file-suggestion-title")}">${i.item.searchString}</div><div class="${V("file-suggestion-subtitle")}">${i.item.blockId}</div><div></div>`:i.item.searchString,search:(i,a,o)=>{a0(t.app,e,o[1],o[2],a)},replace:i=>{let a=[];n&&i.item.file.extension==="md"&&a.push("!");let o="#^";if(i.item.blockId)o+=i.item.blockId;else{let u=Ve(),l=o0(i.item.block.type)?`
`:" ";t.app.vault.cachedRead(i.item.file).then(c=>{let d=`${c.slice(0,i.item.block.end)}${l}^${u}${c.slice(i.item.block.end)}`;t.app.vault.modify(i.item.file,d)}).catch(c=>{t.setError(c),console.error(c)}),o+=u}a.push(t.app.fileManager.generateMarkdownLink(i.item.file,t.file.path,o,i.item.alias));let s=!!t.app.vault.getConfig("useMarkdownLinks");return r&&!s?a[a.length-1]=a[a.length-1].slice(0,-2):!r&&!s&&a.push("]] "),a.join("")}}}h();var s0=/\B#([^\s]*)?$/;function Fy(e,t){return{id:"tag",match:s0,index:1,search:(r,n)=>{n(r?[{item:`<em>#${r}</em>`,refIndex:-1},...t.search(r,{limit:50})]:e.slice(0,50).map((i,a)=>({item:i,refIndex:a})))},template:r=>r.item,replace:r=>`${r.item} `}}h();h();var Ny=ye(ma());h();h();var u0=/\$&/g,d0=/\$(\d)/g,Fu=class{constructor(t,r,n){this.data=t;this.term=r;this.strategy=n}getReplacementData(t){let r=this.strategy.replace(this.data);if(r==null)return null;let n="";Array.isArray(r)&&(n=r[1],r=r[0]);let i=this.strategy.match(t);if(i==null||i.index==null)return null;let a=r.replace(u0,i[0]).replace(d0,(o,s)=>i[parseInt(s)]);return{start:i.index,end:i.index+i[0].length,beforeCursor:a,afterCursor:n}}replace(t,r){let n=this.getReplacementData(t);if(n!==null)return r=n.afterCursor+r,[[t.slice(0,n.start),n.beforeCursor,t.slice(n.end)].join(""),r]}render(){return this.strategy.renderTemplate(this.data,this.term)}getStrategyId(){return this.strategy.getId()}};var f0=1,Ou=class{constructor(t){this.props=t;this.cache={}}destroy(){return this.cache={},this}replace(t){return this.props.replace(t)}execute(t,r){var a;let n=this.matchWithContext(t);if(!n)return!1;let i=n[(a=this.props.index)!=null?a:f0];return this.search(i,o=>{r(o.map(s=>new Fu(s,i,this)))},n),!0}renderTemplate(t,r){if(this.props.template)return this.props.template(t,r);if(typeof t=="string")return t;throw new Error(`Unexpected render data type: ${typeof t}. Please implement template parameter by yourself`)}getId(){return this.props.id||null}match(t){return typeof this.props.match=="function"?this.props.match(t):t.match(this.props.match)}search(t,r,n){this.props.cache?this.searchWithCach(t,r,n):this.props.search(t,r,n)}matchWithContext(t){let r=this.context(t);return r===!1?null:this.match(r===!0?t:r)}context(t){return this.props.context?this.props.context(t):!0}searchWithCach(t,r,n){this.cache[t]!=null?r(this.cache[t]):this.props.search(t,i=>{this.cache[t]=i,r(i)},n)}};var Nu=class extends Ny.EventEmitter{constructor(t){super();this.handleQueryResult=t=>{this.emit("hit",{searchResults:t})};this.strategies=t.map(r=>new Ou(r))}destroy(){return this.strategies.forEach(t=>t.destroy()),this}run(t){for(let r of this.strategies)if(r.execute(t,this.handleQueryResult))return;this.handleQueryResult([])}};h();var Ry=ye(ma());h();var p0=typeof window!="undefined"&&!!window.CustomEvent,Ht=(e,t,r)=>{if(p0)return new CustomEvent(t,r);let n=e.createEvent("CustomEvent");return n.initCustomEvent(t,!1,(r==null?void 0:r.cancelable)||!1,(r==null?void 0:r.detail)||void 0),n};var h0=10,m0="auto",g0="dropdown-menu textcomplete-dropdown",Hy="textcomplete-item",y0=`${Hy} active`,ga=class extends Ry.EventEmitter{constructor(t,r){super();this.el=t;this.option=r;this.shown=!1;this.items=[];this.activeIndex=null}static create(t){let r=t.parent||window.document.body,i=r.doc.createElement("ul");return i.className=t.className||g0,Object.assign(i.style,{display:"none",position:"absolute",zIndex:"1000"},t.style),r==null||r.appendChild(i),new ga(i,t)}render(t,r){let n=Ht(this.el.doc,"render",{cancelable:!0});return this.emit("render",n),n.defaultPrevented?this:(this.clear(),t.length===0?this.hide():(this.items=t.slice(0,this.option.maxCount||h0).map((i,a)=>{var o;return new By(this,a,i,((o=this.option)==null?void 0:o.item)||{})}),this.setStrategyId(t[0]).renderEdge(t,"header").renderItems().renderEdge(t,"footer").show().setOffset(r).activate(0),this.emit("rendered",Ht(this.el.doc,"rendered")),this))}destroy(){var t;return this.clear(),(t=this.el.parentNode)==null||t.removeChild(this.el),this}select(t){let r={searchResult:t.searchResult},n=Ht(this.el.doc,"select",{cancelable:!0,detail:r});return this.emit("select",n),n.defaultPrevented?this:(this.hide(),this.emit("selected",Ht(this.el.doc,"selected",{detail:r})),this)}show(){if(!this.shown){let t=Ht(this.el.doc,"show",{cancelable:!0});if(this.emit("show",t),t.defaultPrevented)return this;this.el.style.display="block",this.shown=!0,this.emit("shown",Ht(this.el.doc,"shown"))}return this}hide(){if(this.shown){let t=Ht(this.el.doc,"hide",{cancelable:!0});if(this.emit("hide",t),t.defaultPrevented)return this;this.el.style.display="none",this.shown=!1,this.clear(),this.emit("hidden",Ht(this.el.doc,"hidden"))}return this}clear(){return this.items.forEach(t=>t.destroy()),this.items=[],this.el.innerHTML="",this.activeIndex=null,this}up(t){return this.shown?this.moveActiveItem("prev",t):this}down(t){return this.shown?this.moveActiveItem("next",t):this}moveActiveItem(t,r){if(this.activeIndex!=null){let n=t==="next"?this.getNextActiveIndex():this.getPrevActiveIndex();n!=null&&(this.activate(n),r.preventDefault())}return this}activate(t){return this.activeIndex!==t&&(this.activeIndex!=null&&this.items[this.activeIndex].deactivate(),this.activeIndex=t,this.items[t].activate()),this}isShown(){return this.shown}getActiveItem(){return this.activeIndex!=null?this.items[this.activeIndex]:null}setOffset(t){let n=this.el.doc.documentElement;if(n){let i=this.el.offsetWidth;if(t.left){let s=this.option.dynamicWidth?n.scrollWidth:n.clientWidth;t.left+i>s&&(t.left=s-i),this.el.style.left=`${t.left}px`}else t.right&&(t.right-i<0&&(t.right=0),this.el.style.right=`${t.right}px`);let a=!1,o=this.option.placement||m0;if(o==="auto"){let s=this.el.clientHeight;a=t.clientTop!=null&&t.clientTop+s>n.clientHeight}o==="top"||a?(this.el.style.bottom=`${n.clientHeight-t.top+t.lineHeight}px`,this.el.style.top="auto"):(this.el.style.top=`${t.top}px`,this.el.style.bottom="auto")}return this}getNextActiveIndex(){if(this.activeIndex==null)throw new Error;return this.activeIndex<this.items.length-1?this.activeIndex+1:this.option.rotate?0:null}getPrevActiveIndex(){if(this.activeIndex==null)throw new Error;return this.activeIndex!==0?this.activeIndex-1:this.option.rotate?this.items.length-1:null}renderItems(){let r=this.el.doc.createDocumentFragment();for(let n of this.items)r.appendChild(n.el);return this.el.appendChild(r),this}setStrategyId(t){let r=t.getStrategyId();return r&&(this.el.dataset.strategy=r),this}renderEdge(t,r){let n=this.option[r];if(!n)return this;let a=this.el.doc.createElement("li");return a.className=`textcomplete-${r}`,a.innerHTML=typeof n=="function"?n(t.map(o=>o.data)):n||"",this.el.appendChild(a),this}},By=class{constructor(t,r,n,i){this.dropdown=t;this.index=r;this.searchResult=n;this.props=i;this.active=!1;this.onClick=t=>{t.preventDefault(),this.dropdown.select(this)};this.className=this.props.className||Hy,this.activeClassName=this.props.activeClassName||y0;let a=t.el.doc,o=a.createElement("li");o.className=this.active?this.activeClassName:this.className;let s=a.createElement("span");s.tabIndex=-1,s.innerHTML=this.searchResult.render(),o.appendChild(s),o.addEventListener("mousedown",this.onClick),o.addEventListener("touchstart",this.onClick),this.el=o}destroy(){var r;let t=this.el;return(r=t.parentNode)==null||r.removeChild(t),t.removeEventListener("mousedown",this.onClick,!1),t.removeEventListener("touchstart",this.onClick,!1),this}activate(){return this.active||(this.active=!0,this.el.className=this.activeClassName,this.dropdown.el.scrollTop=this.el.offsetTop),this}deactivate(){return this.active&&(this.active=!1,this.el.className=this.className),this}};h();var Ky=ye(ma());var Ru=class extends Ky.EventEmitter{destroy(){return this}applySearchResult(t){throw new Error("Not implemented.")}getCursorOffset(){throw new Error("Not implemented.")}getBeforeCursor(){throw new Error("Not implemented.")}emitMoveEvent(t){let r=Ht(activeDocument,"move",{cancelable:!0,detail:{code:t}});return this.emit("move",r),r}emitEnterEvent(){let t=Ht(activeDocument,"enter",{cancelable:!0});return this.emit("enter",t),t}emitChangeEvent(){let t=Ht(activeDocument,"change",{detail:{beforeCursor:this.getBeforeCursor()}});return this.emit("change",t),t}emitEscEvent(){let t=Ht(activeDocument,"esc",{cancelable:!0});return this.emit("esc",t),t}getCode(t){return t.keyCode===9||t.keyCode===13?"ENTER":t.keyCode===27?"ESC":t.keyCode===38?"UP":t.keyCode===40||t.keyCode===78&&t.ctrlKey?"DOWN":t.keyCode===80&&t.ctrlKey?"UP":"OTHER"}};h();var $y=ye(ma());var v0=["show","shown","render","rendered","selected","hidden","hide"],Hu=class extends $y.EventEmitter{constructor(t,r,n){super();this.editor=t;this.isQueryInFlight=!1;this.nextPendingQuery=null;this.handleHit=({searchResults:t})=>{t.length?this.dropdown.render(t,this.editor.getCursorOffset()):this.dropdown.hide(),this.isQueryInFlight=!1,this.nextPendingQuery!==null&&this.trigger(this.nextPendingQuery)};this.handleMove=t=>{t.detail.code==="UP"?this.dropdown.up(t):this.dropdown.down(t)};this.handleEnter=t=>{let r=this.dropdown.getActiveItem();r?(this.dropdown.select(r),t.preventDefault()):this.dropdown.hide()};this.handleEsc=t=>{this.dropdown.isShown()&&(this.dropdown.hide(),t.preventDefault())};this.handleChange=t=>{t.detail.beforeCursor!=null?this.trigger(t.detail.beforeCursor):this.dropdown.hide()};this.handleSelect=t=>{this.emit("select",t),t.defaultPrevented||this.editor.applySearchResult(t.detail.searchResult)};this.handleResize=()=>{this.dropdown.isShown()&&this.dropdown.setOffset(this.editor.getCursorOffset())};this.completer=new Nu(r),this.dropdown=ga.create((n==null?void 0:n.dropdown)||{}),this.startListening()}destroy(t=!0){return this.completer.destroy(),this.dropdown.destroy(),t&&this.editor.destroy(),this.stopListening(),this}isShown(){return this.dropdown.isShown()}hide(){return this.dropdown.hide(),this}trigger(t){return this.isQueryInFlight?this.nextPendingQuery=t:(this.isQueryInFlight=!0,this.nextPendingQuery=null,this.completer.run(t)),this}startListening(){var t;this.editor.on("move",this.handleMove).on("enter",this.handleEnter).on("esc",this.handleEsc).on("change",this.handleChange),this.dropdown.on("select",this.handleSelect);for(let r of v0)this.dropdown.on(r,n=>this.emit(r,n));this.completer.on("hit",this.handleHit),(t=Ze(this.dropdown.el))==null||t.addEventListener("resize",this.handleResize)}stopListening(){var t;(t=Ze(this.dropdown.el))==null||t.removeEventListener("resize",this.handleResize),this.completer.removeAllListeners(),this.dropdown.removeAllListeners(),this.editor.removeListener("move",this.handleMove).removeListener("enter",this.handleEnter).removeListener("esc",this.handleEsc).removeListener("change",this.handleChange)}};h();h();h();var b0=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];function Uy(e,t){let r=e.doc,n=e.win,i=r.createElement("div");i.id="input-textarea-caret-position-mirror-div",r.body.appendChild(i);let a=i.style,o=n.getComputedStyle(e);a.whiteSpace="pre-wrap",a.position="absolute",b0.forEach(l=>{a[l]=o[l]}),a.overflow="hidden",i.textContent=e.value.substring(0,t);let s=r.createElement("span");s.textContent=e.value.substring(t)||".",i.appendChild(s);let u={top:s.offsetTop+parseInt(o.borderTopWidth),left:s.offsetLeft+parseInt(o.borderLeftWidth),height:parseInt(o.lineHeight)};return r.body.removeChild(i),u}h();function Wy(e,t,r){let n=e.doc,i=e.value,a=t+(r||""),o=n.activeElement,s=0,u=0;for(;s<i.length&&s<a.length&&i[s]===a[s];)s++;for(;i.length-u-1>=0&&a.length-u-1>=0&&i[i.length-u-1]===a[a.length-u-1];)u++;s=Math.min(s,Math.min(i.length,a.length)-u),e.setSelectionRange(s,i.length-u);let l=a.substring(s,a.length-u);if(e.focus(),!n.execCommand("insertText",!1,l)){e.value=a;let c=n.createEvent("Event");c.initEvent("input",!0,!0),e.dispatchEvent(c)}return e.setSelectionRange(t.length,t.length),o.focus(),e}h();h();var Vy=e=>{let t=e.getBoundingClientRect(),r=e.doc;if(r==null)throw new Error("Given element does not belong to document");let{defaultView:n,documentElement:i}=r;if(n==null)throw new Error("Given element does not belong to window");let a={top:t.top+n.pageYOffset,left:t.left+n.pageXOffset};return i&&(a.top-=i.clientTop,a.left-=i.clientLeft),a};h();var w0="0".charCodeAt(0),E0="9".charCodeAt(0),zy=e=>w0<=e&&e<=E0,jy=e=>{let t=getComputedStyle(e),r=t.lineHeight;if(zy(r.charCodeAt(0))){let n=parseFloat(r);return zy(r.charCodeAt(r.length-1))?n*parseFloat(t.fontSize):n}return x0(e.doc,e.nodeName,t)},x0=(e,t,r)=>{let n=e.body;if(!n)return 0;let i=e.createElement(t);i.innerHTML="&nbsp;",Object.assign(i.style,{fontSize:r.fontSize,fontFamily:r.fontFamily,padding:"0"}),n.appendChild(i),i.instanceOf(HTMLTextAreaElement)&&(i.rows=1);let a=i.offsetHeight;return n.removeChild(i),a};h();var os=class extends Ru{constructor(t){super();this.el=t;this.onInput=()=>{this.emitChangeEvent()};this.onKeydown=t=>{let r=this.getCode(t),n;r==="UP"||r==="DOWN"?n=this.emitMoveEvent(r):r==="ENTER"?n=this.emitEnterEvent():r==="ESC"&&(n=this.emitEscEvent()),n&&n.defaultPrevented&&t.preventDefault()};this.startListening()}destroy(){return super.destroy(),this.stopListening(),this}applySearchResult(t){let r=this.getBeforeCursor();if(r!=null){let n=t.replace(r,this.getAfterCursor());this.el.focus(),Array.isArray(n)&&(Wy(this.el,n[0],n[1]),this.el&&this.el.dispatchEvent(Ht(this.el.doc,"input")))}}getCursorOffset(){let t=Vy(this.el),r=this.getElScroll(),n=this.getCursorPosition(),i=jy(this.el),a=t.top-r.top+n.top+i,o=t.left-r.left+n.left,s=this.el.getBoundingClientRect().top,u=this.el.doc;if(this.el.dir!=="rtl")return{top:a,left:o,lineHeight:i,clientTop:s};{let l=u.documentElement?u.documentElement.clientWidth-o:0;return{top:a,right:l,lineHeight:i,clientTop:s}}}getBeforeCursor(){return this.el.selectionStart!==this.el.selectionEnd?null:this.el.value.slice(0,this.el.selectionEnd)}getAfterCursor(){return this.el.value.slice(this.el.selectionEnd)}getElScroll(){return{top:this.el.scrollTop,left:this.el.scrollLeft}}getCursorPosition(){return Uy(this.el,this.el.selectionEnd)}startListening(){this.el.addEventListener("input",this.onInput),this.el.addEventListener("keydown",this.onKeydown)}stopListening(){this.el.removeEventListener("input",this.onInput),this.el.removeEventListener("keydown",this.onKeydown)}};function k0({inputRef:e,isAutocompleteVisibleRef:t,obsidianContext:r,excludeDatePicker:n}){let{stateManager:i,filePath:a,view:o}=r,s=null,u=null,l=i.getSetting("date-trigger"),c=new RegExp(`(?:^|\\s)${Sn(l)}$`),d=Object.keys(i.app.metadataCache.getTags()).sort(),f=new dn(d),p=i.app.metadataCache.getLinkSuggestions().filter(H=>!!H.file),m=new dn(p,{keys:["file.basename","alias"]}),v=o.app.vault.getConfig("autoPairBrackets"),b=[Fy(d,f),Lu(a,i,v,!0),Lu(a,i,v,!1),Au(a,i,v,!0),Au(a,i,v,!1),Iu(o.getWindow(),p,m,a,i,v,!0),Iu(o.getWindow(),p,m,a,i,v,!1)];n||b.push(My(i));let k=new os(e.current),T=new Hu(k,b,{dropdown:{parent:Ja(e.current),maxCount:96,className:`${V("autocomplete")} ${V("ignore-click-outside")}`,rotate:!0,item:{className:`${V("autocomplete-item")} ${V("ignore-click-outside")}`,activeClassName:`${V("autocomplete-item-active")} ${V("ignore-click-outside")}`}}}),D=()=>{T.isShown()||(t.current=!1);let H=s.win;u.destroy(),s.remove(),H.setTimeout(()=>{s=null})};T.on("show",()=>{t.current=!0}),T.on("hidden",()=>{t.current=!1});let I;if(!n){I=C=>{if(T.isShown&&["#","^"].contains(C.key)){let U=T.dropdown.getActiveItem(),z=U==null?void 0:U.searchResult;if(z&&z.strategy.props.id.startsWith("link")){C.preventDefault(),k.applySearchResult(z),Tt(e.current,C.key==="^"?"#^":"#");return}}if(!s)return;if(C.key==="Enter"){C.preventDefault();let U=u.selectedDates;return U.length?is(U[0],e,i):is(new Date,e,i),D()}if(C.key==="Escape")return C.preventDefault(),D();let F=(0,qy.moment)(u.selectedDates[0]||new Date);if(C.key==="ArrowRight"){C.preventDefault(),F.weekday()===6?u.setDate(Ay(F).toDate(),!1):u.setDate(F.add(1,"day").toDate(),!1);return}if(C.key==="ArrowLeft"){C.preventDefault(),F.weekday()===0?u.setDate(Iy(F).toDate(),!1):u.setDate(F.subtract(1,"day").toDate(),!1);return}if(C.key==="ArrowUp"){C.preventDefault(),u.setDate(F.subtract(1,"week").toDate(),!1);return}if(C.key==="ArrowDown"){C.preventDefault(),u.setDate(F.add(1,"week").toDate(),!1);return}},e.current.addEventListener("keydown",I);let H=e.current.doc;k.on("change",C=>{let F=C.detail.beforeCursor;if(F&&c.test(F)){let U=k.getCursorOffset();s?(s.style.left=`${U.left||0}px`,s.style.top=`${U.top||0}px`,Mu(U,s)):s=H.body.createDiv({cls:`${V("date-picker")} ${V("ignore-click-outside")}`},z=>{z.style.left=`${U.left||0}px`,z.style.top=`${U.top||0}px`,Ty({div:z,inputRef:e,stateManager:i,cb:ee=>{u=ee,t.current=!0,Mu(U,s)}})})}else s&&D()})}return()=>{!n&&e.current&&e.current.removeEventListener("keydown",I),s&&D(),T.destroy(),k.destroy()}}function Yy({isInputVisible:e,onEnter:t,onEscape:r,onKeyDown:n,excludeDatePicker:i}){let a=R.useContext(We),o=R.useRef(!1),s=R.useRef(),{oncompositionstart:u,oncompositionend:l,getShouldIMEBlockAction:c}=eo();return R.useEffect(()=>{let d=s.current;if(e&&d)return d.focus(),d.selectionStart=d.selectionEnd=d.value.length,k0({inputRef:s,isAutocompleteVisibleRef:o,obsidianContext:a,excludeDatePicker:i})},[e]),{ref:s,oncompositionstart:u,oncompositionend:l,onKeyDownCapture:d=>{c()||o.current||n(d)||(d.key==="Enter"?t&&t(d):d.key==="Escape"&&r&&r(d))}}}h();var Jy=/^[*_]{2}(.+)[*_]{2}$/;function S0(e){return e.replace(Jy,"$1")}var Gy=/^[*_]{1}(.+)[*_]{1}$/;function _0(e){return e.replace(Gy,"$1")}var Qy=/^`{1}(.+)`{1}$/;function D0(e){return e.replace(Qy,"$1")}var Xy=/^={2}(.+)={2}$/;function C0(e){return e.replace(Xy,"$1")}var Zy=/^~{2}(.+)~{2}$/;function T0(e){return e.replace(Zy,"$1")}var M0=/^(?:>.+?(?:[\r\n]|$))+$/;function I0(e){return e.split(`
`).map(r=>r[0]===">"?r:`> ${r}`).join(`
`)}function A0(e){return e.split(`
`).map(r=>r[0]!==">"?r:r.replace(/^>+\s*/,"")).join(`
`)}var ya=/^(?:\s*\d+[.)]\s+.*?(?:[\r\n]|$))+$/,Bu=/^(?:\s*\d+[.)]\s+\[\s+\]\s+.*?(?:[\r\n]|$))+$/,Ku=/^(?:\s*\d+[.)]\s+\[[^\]\s]+\]\s+.*?(?:[\r\n]|$))+$/;function L0(e){return e.match(/^\s*/)[0].length}function P0(e){return parseInt(e.match(/^\s*(\d+)/)[1],10)}function F0(e){let t=[0],r=0;return e.split(`
`).map(n=>{let i=L0(n);if(i>r?t.push(0):i<r&&t.pop(),r=i,ya.test(n)){let a=P0(n);return t[t.length-1]=a,n}return t[t.length-1]=t[t.length-1]+1,n.replace(/^(\s*)/,`$1${t[t.length-1]}. `)}).join(`
`)}function O0(e){return e.split(`
`).map(t=>ya.test(t)?t.replace(/^(\s*)\d+[.)]\s+/,"$1"):t).join(`
`)}var va=/^(?:\s*[-*+]\s+.*?(?:[\r\n]|$))+$/,$u=/^(?:\s*[-*+]\s+\[\s+\]\s+.*?(?:[\r\n]|$))+$/,Uu=/^(?:\s*[-*+]\s+\[[^\]\s]+\]\s+.*?(?:[\r\n]|$))+$/;function ev(e){return e.split(`
`).map(r=>va.test(r)?r:r.replace(/^(\s*)/,"$1- ")).join(`
`)}function N0(e){return e.split(`
`).map(t=>$u.test(t)||Uu.test(t)?t:t.replace(/^(\s*[-*+]\s+)/,"$1[ ] ")).join(`
`)}function R0(e){return e.split(`
`).map(t=>Bu.test(t)||Ku.test(t)?t:t.replace(/^(\s*\d+[.)]\s+)/,"$1[ ] ")).join(`
`)}function H0(e){return e.split(`
`).map(t=>$u.test(t)?t:t.replace(/^(\s*[-*+]\s+)\[[^\]]\]/,"$1[ ]")).join(`
`)}function B0(e){return e.split(`
`).map(t=>Bu.test(t)?t:t.replace(/^(\s*\d+[.)]\s+)\[[^\]]{1}\]/,"$1[ ]")).join(`
`)}function K0(e){return e.split(`
`).map(t=>Uu.test(t)?t:t.replace(/^(\s*[-*+]\s+)\[\s\]/,"$1[x]")).join(`
`)}function $0(e){return e.split(`
`).map(t=>Ku.test(t)?t:t.replace(/^(\s*\d+[.)]\s+)\[\s\]/,"$1[x]")).join(`
`)}function U0(e){return e.split(`
`).map(r=>va.test(r)?r.replace(/^(\s*)[-+*]\s+/,"$1"):r).join(`
`)}var tv={"editor:toggle-bold":e=>{hi(e,Jy,S0,"**")},"editor:toggle-code":e=>{hi(e,Qy,D0,"`")},"editor:toggle-italics":e=>{hi(e,Gy,_0,"*")},"editor:toggle-highlight":e=>{hi(e,Xy,C0,"==")},"editor:toggle-strikethrough":e=>{hi(e,Zy,T0,"~~")},"editor:toggle-blockquote":e=>{Qo(e,M0,I0,A0)},"editor:toggle-bullet-list":e=>{Qo(e,va,ev,U0)},"editor:toggle-numbered-list":e=>{Qo(e,ya,F0,O0)},"editor:toggle-checklist-status":e=>{let t=Tn(e),r=t.selection.end===t.selection.start,n=pi({text:t.text,selection:t.selection}),i=Mt(e,n),a=i.selectedText,o=va.test(a),s=ya.test(a);!o&&!s?a=ev(a):o?$u.test(a)?a=K0(a):Uu.test(a)?a=H0(a):a=N0(a):Bu.test(a)?a=$0(a):Ku.test(a)?a=B0(a):a=R0(a);let u=Tt(e,a);if(r){let l=a.length-i.selectedText.length;Mt(e,{start:t.selection.start+l,end:t.selection.end+l})}else Mt(e,{start:i.selection.start,end:u.selection.end})}},Wu={"(":e=>an(e,"(",")",!1),"[":e=>an(e,"[","]",!1,!0),"{":e=>an(e,"{","}",!1),"'":e=>an(e,"'","'",!1),'"':e=>an(e,'"','"',!1)},Vu={"*":e=>an(e,"*","*",!1),_:e=>an(e,"_","_",!1),"`":e=>an(e,"`","`",!1),"=":e=>an(e,"=","=",!0),"~":e=>an(e,"~","~",!0),$:e=>an(e,"$","$",!0),"%":e=>an(e,"%","%",!0)},W0={"(":")","[":"]","{":"}","'":"'",'"':'"',"*":"*",_:"_","`":"`","=":"=","~":"~",$:"$","%":"%"};function nv(e,t){let r=Tn(e);if(r.selection.end!==r.selection.start||r.selection.end===r.text.length)return!1;let n=r.text[r.selection.end-1],i=r.text[r.selection.end];if(t[n]&&i===W0[n])return Mt(e,{start:r.selection.end,end:r.selection.end+1}),Tt(e,""),!0}function rv(e){return nv(e,Wu)}function iv(e){return nv(e,Vu)}function V0(e,t,r){let n=t?" ":" ".repeat(r);return e.split(`
`).map(i=>n+i).join(`
`)}function z0(e,t,r){let n=t?"\\t":" ".repeat(r),i=new RegExp(`^${n}`);return e.split(`
`).map(a=>i.test(a)?a.replace(i,""):a).join(`
`)}function av(e,t,r,n){let i=Tn(e);if(t){let l=pi(i),c=Mt(e,l);if(Tt(e,z0(c.selectedText,r,n)),i.selection.start===i.selection.end){let d=r?1:n;Mt(e,{start:i.selection.start-d,end:i.selection.end-d})}return!0}let a=pi(i),o=Mt(e,a),u=V0(o.selectedText,r,n).replace(/^(\s*)(\d+)([.)]\s)/,(l,c,d,f)=>`${c}1${f}`);return Tt(e,u),!0}function ov(e){let t=Tn(e);if(t.selection.start!==t.selection.end)return!1;let r=pi(t),n=e.value.slice(r.start,t.selection.end),i=e.value.slice(r.start,r.end);if(/^(\s*[-*+]\s+(?:\[[^\]]\]\s*)?)$/.test(i))return Mt(e,{start:r.start-1,end:r.end}),Tt(e,`
`),!0;if(/^(\s*\d[.)]\s+(?:\[[^\]]\]\s*)?)$/.test(i))return Mt(e,{start:r.start-1,end:r.end}),Tt(e,`
`),!0;if(va.test(n)){let a=n.match(/^(\s*[-*+]\s+(?:\[[^\]]\]\s*)?)/)[1];return pa(e,`
${a.replace(/^(\s*[-*+]\s+)\[[^\]]\]/,"$1[ ]")}`),!0}if(ya.test(n)){let s=n.match(/^(\s*\d+[.)]\s+(?:\[[^\]]\]\s*)?)/)[1].replace(/^(\s*\d+[.)]\s+)\[[^\]]\]/,"$1[ ]").replace(/^(\s*)(\d+)/,(u,l,c)=>`${l}${parseInt(c)+1}`);return pa(e,`
${s}`),!0}return!1}function Vn(e,t){return zu.Platform.isMobile?e.key==="Enter"&&!0:t.getSetting("new-line-trigger")==="enter"?e.key==="Enter"&&!(e.shiftKey||e.metaKey||e.ctrlKey):e.key==="Enter"&&e.shiftKey}var cr=R.forwardRef(function({onEnter:t,onEscape:r,onSubmit:n,...i},a){let{view:o,stateManager:s}=R.useContext(We),u=app.vault.getConfig("autoPairMarkdown"),l=app.vault.getConfig("autoPairBrackets"),c=app.vault.getConfig("useTab"),d=app.vault.getConfig("tabSize"),f=!!app.vault.getConfig("useMarkdownLinks"),p=Yy({isInputVisible:!0,onEnter:t,onEscape:r,onKeyDown:m=>{if(m.key==="Backspace"){let v=rv(m.target);return v||iv(m.target)}if(Vn(m,s)){let v=ov(m.target);if(v)return m.preventDefault(),v}if(m.key==="Tab")return m.preventDefault(),av(m.target,m.shiftKey,c,d);if(u){let v=Vu[m.key];if(v&&v(m.target))return m.preventDefault(),!0}if(l){if(f&&m.key==="[")return!1;let v=Wu[m.key];if(v&&v(m.target))return m.preventDefault(),!0}return!1}});return R.useEffect(()=>{let m=v=>{let b=tv[v];b&&b(p.ref.current)};return o.emitter.on("hotkey",m),()=>{o.emitter.off("hotkey",m)}},[o]),y(S,null,y("div",{"data-replicated-value":i.value,className:V("grow-wrap")},y("textarea",{"data-ignore-drag":!0,rows:1,className:V("item-input"),...i,...p,ref:m=>{p.ref.current=m,a&&typeof a=="function"?a(m):a&&(a.current=m)}})),zu.Platform.isMobile&&y("button",{onPointerDown:n,className:V("item-submit-button")},B("Submit")))});h();var Yu=ye(sv());h();var ur=ye(require("obsidian"));var j0=["bmp","png","jpg","jpeg","gif","svg"],q0=["mp3","wav","m4a","3gp","flac","ogg","oga"],Y0=["mp4","webm","ogv"],J0=/\u00A0/g,G0=/[!"#$%&()*+,.:;<=>?@^`{|}~/[\]\\]/g;function lv(e){return e.replace(G0," ").replace(/\s+/g," ").trim()}function Ir(e){let r=e.replace(J0," ").normalize("NFC").split(/\|(.*)/),n=r[0].split(/#(.*)/);return{root:n[0],subpath:n[1]?"#"+n[1]:"",alias:r[1]||""}}function Q0(e,t){if(!e||!t)return null;let r=t.split("#").filter(l=>!!l);if(!r||r.length===0)return null;if(r.length===1){let l=r[0];if(l.startsWith("^")){let c=l.slice(1).toLowerCase(),d=e.blocks;if(d&&d[c]){let f=d[c];return{type:"block",block:f,start:f.position.start.offset,end:f.position.end.offset,startLine:f.position.start.line,endLine:f.position.end.line}}else return null}}let n=e.headings;if(!n||n.length===0)return null;let i=0,a=0,o=0,s=null,u=null;for(;a<n.length;a++){let l=n[a];if(s&&l.level<=o){u=l;break}!s&&l.level>o&&lv(l.heading).toLowerCase()===lv(r[i]).toLowerCase()&&(i++,o=l.level,i===r.length&&(s=l))}return s?{type:"heading",current:s,next:u,start:s.position.start.offset,end:u?u.position.start.offset:null,startLine:s.position.start.line,endLine:u?u.position.end.line:null}:null}function X0(e){e.querySelectorAll(".task-list-item-checkbox").forEach((r,n)=>{r.dataset.checkboxIndex=n.toString()})}function Z0(e,t){e.querySelectorAll(".internal-link").forEach(n=>{let i=Ir(n.getAttr("href"));t.app.metadataCache.getFirstLinkpathDest(i.root,t.file.path)||n.addClass("is-unresolved")})}function e_(e,t,r){e.empty(),e.createEl("img",{attr:{src:r.app.vault.getResourcePath(t)}},n=>{e.hasAttribute("width")&&n.setAttribute("width",e.getAttribute("width")),e.hasAttribute("height")&&n.setAttribute("height",e.getAttribute("height")),e.hasAttribute("alt")&&n.setAttribute("alt",e.getAttribute("alt"))}),e.addClasses(["image-embed","is-loaded"])}function cv(e,t,r){e.empty(),e.createEl("audio",{attr:{controls:"",src:r.app.vault.getResourcePath(t)}}),e.addClasses(["media-embed","is-loaded"])}function t_(e,t,r){e.empty(),e.createEl("video",{attr:{controls:"",src:r.app.vault.getResourcePath(t)}},n=>{let i=()=>{n.removeEventListener("loadedmetadata",i),n.videoWidth===0&&n.videoHeight===0&&(e.empty(),cv(e,t,r))};n.addEventListener("loadedmetadata",i)}),e.addClasses(["media-embed","is-loaded"])}async function uv(e,t,r){let n=r.app.metadataCache.getFileCache(e);if(!n)return null;let i=await r.app.vault.cachedRead(e);if(!t.subpath)return{markdown:i,boundary:null};let a=Q0(n,t.subpath);if(a)return{markdown:i.substring(a.start,a.end===null?void 0:a.end),boundary:a};if(t.subpath)return{markdown:`${B("Unable to find")} ${t.root}${t.subpath}`,boundary:null}}function dv(e,t,r,n){r.getWindow().setTimeout(async()=>{if(!r.plugin.windowRegistry.has(r.getWindow()))return;if(r.plugin.windowRegistry.get(r.getWindow()).viewMap.has(r.id)){let{markdown:a}=await uv(e,t,r);if(!a)return;a.startsWith(B("Unable to find"))?n>0&&dv(e,t,r,--n):r.plugin.stateManagers.forEach(o=>{o.onFileMetadataChange()})}},2e3)}async function n_(e,t,r,n,i){var u;let{markdown:a,boundary:o}=await uv(t,r,n);if(!a)return;e.empty();let s=e.createDiv();if(s.addClasses(["markdown-preview-view",V("markdown-preview-view")]),s.createDiv(V("embed-link-wrapper"),l=>{l.createEl("a",{href:e.getAttr("src")||t.basename,cls:`internal-link ${V("embed-link")}`},c=>{(0,ur.setIcon)(c,"link"),c.setAttr("aria-label",t.basename)})}),await ur.MarkdownRenderer.renderMarkdown(a,s.createDiv(),t.path,n),e.addClass("is-loaded"),a.startsWith(B("Unable to find"))&&r.subpath&&r.subpath!=="#")dv(t,r,n,4);else{let l=e.findAll(".task-list-item-checkbox");(l==null?void 0:l.length)&&((u=app.metadataCache.getFileCache(t).listItems)==null||u.filter(d=>o?d.position.start.line>=o.startLine&&d.position.end.line<=o.endLine:!0).forEach((d,f)=>{l[f]&&(l[f].dataset.oStart=d.position.start.offset.toString(),l[f].dataset.oEnd=d.position.end.offset.toString(),l[f].dataset.src=t.path)}))}i>0&&await fv(s,n,--i)}function r_(e,t){e.addClass("is-loaded"),e.empty(),e.createEl("a",{cls:"file-link",href:e.getAttribute("src"),text:t.name},r=>{r.setAttribute("aria-label",B("Open in default app")),r.createSpan({},n=>(0,ur.setIcon)(n,"open-elsewhere-glyph"))})}function fv(e,t,r){return Promise.all(e.findAll(".internal-embed").map(async n=>{let i=n.getAttribute("src"),a=Ir(i),o=typeof i=="string"&&t.app.metadataCache.getFirstLinkpathDest(a.root,t.file.path);if(o instanceof ur.TFile)return j0.contains(o.extension)?e_(n,o,t):q0.contains(o.extension)?cv(n,o,t):Y0.contains(o.extension)?t_(n,o,t):o.extension==="md"?await n_(n,o,a,t,r):r_(n,o)}))}async function ba(e,t){let r=e.getWindow().document.body.createDiv();r.detach();try{await ur.MarkdownRenderer.renderMarkdown(t,r,e.file.path,e),X0(r),Z0(r,e),await fv(r,e,5)}catch(n){console.error(n)}return r}function Ju(e,t){!t||!e||(e&&!e.firstChild?e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.replaceChild(t,e.firstChild))}var wa=R.memo(function({className:t,markdownString:r,searchQuery:n,...i}){let{stateManager:a}=R.useContext(We),o=R.useRef(),s=R.useRef(),u=R.useRef();return R.useEffect(()=>{ba(a.getAView(),r).then(l=>{s.current=l,u.current=new Yu.default(l),o.current&&Ju(o.current,l)}).catch(l=>{a.setError(l),console.error(l)})},[a,r]),R.useEffect(()=>{var l,c;(l=u.current)==null||l.unmark(),n&&n.trim()&&((c=u.current)==null||c.mark(n))},[n]),y("div",{ref:l=>{o.current=l,Ju(l,s.current)},className:pt(["markdown-preview-view",V("markdown-preview-view"),t]),...i})}),pv=R.memo(function({dom:t,className:r,searchQuery:n,...i}){let{stateManager:a}=R.useContext(We),o=R.useMemo(()=>t.cloneNode(!0),[t,a]),s=R.useMemo(()=>new Yu.default(o),[o]);return R.useEffect(()=>{s.unmark(),n&&n.trim()&&s.mark(n)},[s,n]),y("div",{ref:u=>{Ju(u,o)},className:pt(["markdown-preview-view",V("markdown-preview-view"),r]),...i})});h();var Ea=ye(require("obsidian"));function i_(e,t){if(t)return t.from((0,Ea.moment)());let r=(0,Ea.moment)().startOf("day");if(r.isSame(e,"day"))return B("today");let n=e.diff(r,"day");return n===-1?B("yesterday"):n===1?B("tomorrow"):e.from(r)}function hv({item:e,stateManager:t}){if(!t.useSetting("show-relative-date")||!e.data.metadata.date)return null;let n=i_(e.data.metadata.date,e.data.metadata.time);return y("span",{className:V("item-metadata-date-relative")},n)}function mv({item:e,stateManager:t,filePath:r,onEditDate:n,onEditTime:i}){let a=t.useSetting("hide-date-display"),o=t.useSetting("date-format"),s=t.useSetting("time-format"),u=t.useSetting("date-display-format"),l=t.useSetting("link-date-to-daily-note");if(a||!e.data.metadata.date)return null;let c=e.data.metadata.date.format(o);if(!c)return null;let d=!!e.data.metadata.time,f=e.data.metadata.date.format(u),p=d?e.data.metadata.time.format(s):null,m=c?(0,Ea.getLinkpath)(c):null,v=c?t.app.metadataCache.getFirstLinkpathDest(m,r):null,b=m&&l?y("a",{href:m,"data-href":m,className:`internal-link ${v?"":"is-unresolved"}`,target:"blank",rel:"noopener"},f):f,k={};return l||(k["aria-label"]=B("Change date"),k.onClick=n),y("span",{"aria-label":"hello",className:V("item-metadata-date-wrapper")},y("span",{...k,className:`${V("item-metadata-date")} ${l?"":"is-button"}`},b)," ",d&&y("span",{onClick:i,className:`${V("item-metadata-time")} is-button`,"aria-label":B("Change time")},p))}function a_(e){let{stateManager:t,boardModifiers:r}=R.useContext(We),n=Nn();return R.useMemo(()=>({onEditDate:o=>{var s;$o(o.view,t,{x:o.clientX,y:o.clientY},Uo({stateManager:t,boardModifiers:r,item:e,hasDate:!0,path:n}),(s=e.data.metadata.date)==null?void 0:s.toDate())},onEditTime:o=>{Wo(o.view,t,{x:o.clientX,y:o.clientY},Vo({stateManager:t,boardModifiers:r,item:e,hasTime:!0,path:n}),e.data.metadata.time)}}),[r,n,e,t])}function o_(e,t){let r=0;return e.replace(/^(\s*[-+*]\s+?\[)([^\]])(\]\s+)/gm,(n,i,a,o)=>{let s=n;return r===t&&(a===" "?s=`${i}x${o}`:s=`${i} ${o}`),r++,s})}async function s_(e){let t=app.vault.getAbstractFileByPath(e.dataset.src);if(!(t instanceof gv.TFile))return;let r=await app.vault.cachedRead(t),n=parseInt(e.dataset.oStart),i=parseInt(e.dataset.oEnd),o=r.substring(n,i).replace(/^(.+?)\[(.)\](.+)$/,(s,u,l,c)=>l!==" "?(e.parentElement.removeClass("is-checked"),e.parentElement.dataset.task="",`${u}[ ]${c}`):(e.parentElement.addClass("is-checked"),e.parentElement.dataset.task="x",`${u}[x]${c}`));await app.vault.modify(t,`${r.substring(0,n)}${o}${r.substring(i)}`)}var yv=R.memo(function({item:t,isEditing:r,setIsEditing:n,searchQuery:i}){var D;let[a,o]=R.useState(t.data.titleRaw),{stateManager:s,filePath:u,boardModifiers:l,view:c}=R.useContext(We),d=s.useSetting("hide-tags-display"),f=Nn(),{onEditDate:p,onEditTime:m}=a_(t);R.useEffect(()=>{r&&o(t.data.titleRaw)},[r]);let v=R.useCallback(I=>{if(!Vn(I,s))return I.preventDefault(),s.updateItemContent(t,a).then(H=>{l.updateItem(f,H)}).catch(H=>{s.setError(H),console.error(H)}),n(!1),!0},[s,a,t,f]),b=R.useCallback(()=>{s.updateItemContent(t,a).then(I=>{l.updateItem(f,I)}).catch(I=>{s.setError(I),console.error(I)}),n(!1)},[s,a,t,f]),k=R.useCallback(()=>(n(!1),o(t.data.titleRaw),!0),[t]),T=R.useCallback(I=>{let H=I.target;if(H.hasClass("task-list-item-checkbox")){if(H.dataset.src)return s_(H);let C=parseInt(H.dataset.checkboxIndex,10);s.updateItemContent(t,o_(t.data.titleRaw,C)).then(F=>{l.updateItem(f,F)}).catch(F=>{s.setError(F),console.error(F)})}},[f,l,s,t]);return r?y("div",{className:V("item-input-wrapper")},y(cr,{className:V("item-input"),onChange:I=>o(I.target.value),onEnter:v,onEscape:k,onSubmit:b,value:a,onPaste:I=>{Zo(I,s,c.getWindow())}})):y("div",{className:V("item-title")},y(pv,{className:V("item-markdown"),dom:t.data.dom,searchQuery:i,onPointerDown:T}),y("div",{className:V("item-metadata")},y(hv,{item:t,stateManager:s}),y(mv,{item:t,stateManager:s,filePath:u,onEditDate:p,onEditTime:m}),!d&&!!((D=t.data.metadata.tags)==null?void 0:D.length)&&y("div",{className:V("item-tags")},t.data.metadata.tags.map((I,H)=>y("a",{href:I,key:H,className:`tag ${V("item-tag")} ${I.toLocaleLowerCase().contains(i)?"is-search-match":""}`},y("span",null,I[0]),I.slice(1))))))});h();var ss=ye(require("obsidian"));var l_=/[\\/:"*?<>|]+/g,c_=/!?\[\[([^\]]*)\.[^\]]+\]\]/g,u_=/!?\[\[([^\]]*)\]\]/g,d_=/!?\[([^\]]*)\]\([^)]*\)/g;function vv({setIsEditing:e,item:t,path:r,boardModifiers:n,stateManager:i}){return R.useCallback((a,o)=>{if(o)app.workspace.onLinkContextMenu(a,(0,ss.getLinkpath)(o),i.file.path);else{let s={x:a.clientX,y:a.clientY},u=!!t.data.metadata.date,l=!!t.data.metadata.time,c=new ss.Menu().addItem(d=>{d.setIcon("pencil").setTitle(B("Edit card")).onClick(()=>e(!0))});c.addItem(d=>{d.setIcon("create-new").setTitle(B("New note from card")).onClick(async()=>{let f=t.data.title.split(`
`)[0].trim(),p=f.replace(c_,"$1").replace(u_,"$1").replace(d_,"$1").replace(l_," ").trim(),m=i.getSetting("new-note-folder"),v=i.getSetting("new-note-template"),b=m?i.app.vault.getAbstractFileByPath(m):i.app.fileManager.getNewFileParent(i.file.path),k=await i.app.fileManager.createNewMarkdownFile(b,p),T=i.app.workspace.splitActiveLeaf();await T.openFile(k),i.app.workspace.setActiveLeaf(T,!1,!0),await ep(i,v);let D=t.data.titleRaw.replace(f,i.app.fileManager.generateMarkdownLink(k,i.file.path));i.updateItemContent(t,D).then(I=>{n.updateItem(r,I)}).catch(I=>{i.setError(I),console.error(I)})})}).addItem(d=>{d.setIcon("links-coming-in").setTitle(B("Copy link to card")).onClick(()=>{if(t.data.blockId)navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+t.data.blockId)}`);else{let f=Ve(6);navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+f)}`),i.updateItemContent(t,`${t.data.titleRaw} ^${f}`).then(p=>{n.updateItem(r,p)}).catch(p=>{i.setError(p),console.error(p)})}})}).addSeparator(),/\n/.test(t.data.titleRaw)&&c.addItem(d=>{d.setIcon("split").setTitle(B("Split card")).onClick(async()=>{let f=t.data.titleRaw.split(/[\r\n]+/g).map(m=>m.trim()),p=await Promise.all(f.map(m=>i.getNewItem(m)));n.splitItem(r,p)})}),c.addItem(d=>{d.setIcon("documents").setTitle(B("Duplicate card")).onClick(()=>n.duplicateEntity(r))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(B("Insert card before")).onClick(async()=>n.insertItems(r,[await i.getNewItem("",!1,!0)]))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(B("Insert card after")).onClick(async()=>{let f=[...r];f[f.length-1]=f[f.length-1]+1,n.insertItems(f,[await i.getNewItem("",!1,!0)])})}).addItem(d=>{d.setIcon("sheets-in-box").setTitle(B("Archive card")).onClick(()=>n.archiveItem(r))}).addItem(d=>{d.setIcon("trash").setTitle(B("Delete card")).onClick(()=>n.deleteEntity(r))}).addSeparator().addItem(d=>{d.setIcon("calendar-with-checkmark").setTitle(u?B("Edit date"):B("Add date")).onClick(()=>{var f;$o(a.view,i,s,Uo({stateManager:i,boardModifiers:n,item:t,hasDate:u,path:r}),(f=t.data.metadata.date)==null?void 0:f.toDate())})}),u&&(c.addItem(d=>{d.setIcon("cross").setTitle(B("Remove date")).onClick(()=>{let f=i.getSetting("link-date-to-daily-note"),p=i.getSetting("date-trigger"),m=f?"(?:\\[[^\\]]+\\]\\([^\\)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",v=new RegExp(`(^|\\s)${Sn(p)}${m}`),b=t.data.titleRaw.replace(v,"").trim();i.updateItemContent(t,b).then(k=>{n.updateItem(r,k)}).catch(k=>{i.setError(k),console.error(k)})})}),c.addItem(d=>{d.setIcon("clock").setTitle(l?B("Edit time"):B("Add time")).onClick(()=>{Wo(a.view,i,s,Vo({stateManager:i,boardModifiers:n,item:t,hasTime:l,path:r}),t.data.metadata.time)})}),l&&c.addItem(d=>{d.setIcon("cross").setTitle(B("Remove time")).onClick(()=>{let f=i.getSetting("time-trigger"),p=new RegExp(`(^|\\s)${Sn(f)}{([^}]+)}`),m=t.data.titleRaw.replace(p,"").trim();i.updateItemContent(t,m).then(v=>{n.updateItem(r,v)}).catch(v=>{i.setError(v),console.error(v)})})})),c.showAtPosition(s)}},[e,t,r,n,i])}h();var bv=R.memo(function({isEditing:t,setIsEditing:r,showMenu:n}){let i=R.useMemo(()=>t?{"data-ignore-drag":!0}:{},[t]);return y("div",{...i,className:V("item-postfix-button-wrapper")},t?y("button",{"data-ignore-drag":!0,onPointerDown:a=>{a.preventDefault()},onClick:()=>{r(!1)},className:`${V("item-postfix-button")} is-enabled`,"aria-label":B("Cancel")},y(Zt,{name:"cross"})):y("button",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:n,className:V("item-postfix-button"),"aria-label":B("More options")},y(Zt,{name:"vertical-three-dots"})))});h();var ls=ye(require("obsidian"));function wv({item:e,isSettingsVisible:t,searchQuery:r}){return t||!e.data.metadata.fileMetadata?null:y("div",{className:V("item-metadata-wrapper")},y(p_,{metadata:e.data.metadata.fileMetadata,order:e.data.metadata.fileMetadataOrder,searchQuery:r}))}function Ev(e,t){if(e.ts){let r=t.getSetting("date-display-format");return(0,ls.moment)(e.ts).format(r)}return null}function xv(e,t){if(!e.path)return null;let r=app.vault.getAbstractFileByPath(e.path);if(r&&r instanceof ls.TFile){let n=app.fileManager.generateMarkdownLink(r,t.file.path,e.subpath,e.display);return`${e.embed?"!":""}${n}`}return`${e.embed?"!":""}[[${e.path}${e.display?`|${e.display}`:""}]]`}function f_({data:e,searchQuery:t}){let{view:r,stateManager:n}=R.useContext(We);if(Array.isArray(e.value))return y("span",{className:V("meta-value")},e.value.map((s,u,l)=>{let c=`${s}`,d=typeof s=="object"&&!Array.isArray(s)&&(Ev(s,n)||xv(s,r)),f=c.toLocaleLowerCase().contains(t);return y(S,null,d||e.containsMarkdown?y(wa,{className:"inline",markdownString:d||c,searchQuery:t}):f?y("span",{className:"is-search-match"},c):c,u<l.length-1?y("span",null,", "):"")}));let i=`${e.value}`,a=i.toLocaleLowerCase().contains(t),o=typeof e.value=="object"&&(Ev(e.value,n)||xv(e.value,r));return y("span",{className:`${V("meta-value")} ${a&&!e.containsMarkdown?"is-search-match":""}`},e.containsMarkdown||!!o?y(wa,{markdownString:o||i,searchQuery:t}):i)}var p_=R.memo(function({metadata:t,order:r,searchQuery:n}){return!t||!r||r.length===0?null:y("table",{className:V("meta-table")},y("tbody",null,r.map(i=>{let a=t[i];return y("tr",{key:i,className:V("meta-row")},!a.shouldHideLabel&&y("td",{className:`${V("meta-key")} ${(a.label||i).toLocaleLowerCase().contains(n)?"is-search-match":""}`,"data-key":i},y("span",null,a.label||i)),y("td",{colSpan:a.shouldHideLabel?2:1,className:V("meta-value-wrapper"),"data-value":Array.isArray(a.value)?a.value.join(", "):`${a.value}`},i==="tags"?a.value.map((o,s)=>y("a",{href:o,key:s,className:`tag ${V("item-tag")} ${o.toLocaleLowerCase().contains(n)?"is-search-match":""}`},y("span",null,o[0]),o.slice(1))):y(f_,{data:a,searchQuery:n})))})))});var kv=R.memo(function({item:t,shouldMarkItemsComplete:r,isMatch:n,searchQuery:i}){let{stateManager:a,boardModifiers:o}=R.useContext(We),[s,u]=R.useState(!1),l=R.useContext(wt);R.useEffect(()=>{let v=()=>{s&&u(!1)};return l.dragManager.emitter.on("dragStart",v),()=>{l.dragManager.emitter.off("dragStart",v)}},[l,s]),R.useEffect(()=>{t.data.forceEditMode&&u(!0)},[t.data.forceEditMode]);let c=Nn(),d=vv({boardModifiers:o,item:t,setIsEditing:u,stateManager:a,path:c}),f=R.useCallback(v=>{if(v.target instanceof v.view.HTMLTextAreaElement)return;v.preventDefault(),v.stopPropagation();let b=v.target instanceof v.view.HTMLAnchorElement&&v.target.hasClass("internal-link")?v.target.dataset.href:void 0;d(v,b)},[d]),p=R.useCallback(()=>{u(!0)},[u]),m=R.useMemo(()=>s?{"data-ignore-drag":!0}:{},[s]);return y("div",{onContextMenu:f,onDblClick:p,className:V("item-content-wrapper"),...m},y("div",{className:V("item-title-wrapper"),...m},y(Ng,{boardModifiers:o,item:t,path:c,shouldMarkItemsComplete:r,stateManager:a}),y(yv,{isEditing:s,item:t,searchQuery:n?i:void 0,setIsEditing:u}),y(bv,{isEditing:s,setIsEditing:u,showMenu:d})),y(wv,{searchQuery:n?i:void 0,isSettingsVisible:s,item:t}))}),Gu=R.memo(function(t){let r=R.useRef(null),n=R.useRef(null),i=R.useContext(Qa),{itemIndex:a,...o}=t;fi(n,n);let s=i?o.item.data.titleSearch.contains(i):!1,u=Cg(o.item);return i&&(s?u.push("is-search-hit"):u.push("is-search-miss")),y("div",{ref:n,className:V("item-wrapper")},y("div",{ref:r,className:pt([V("item"),...u])},t.isStatic?y(kv,{...o,isMatch:s,searchQuery:i}):y(nr,{elementRef:r,measureRef:n,id:t.item.id,index:a,data:t.item},y(kv,{...o,isMatch:s,searchQuery:i}))))}),Sv=R.memo(function({isStatic:t,items:r,shouldMarkItemsComplete:n}){return y(S,null,r.map((i,a)=>y(Gu,{key:i.id,item:i,itemIndex:a,shouldMarkItemsComplete:n,isStatic:t})))});h();h();var h_=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{l(n.next(c))}catch(d){o(d)}}function u(c){try{l(n.throw(c))}catch(d){o(d)}}function l(c){c.done?a(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})};function cs(e){let t=0,r=0,n=e;do t+=n.offsetTop||0,r+=n.offsetLeft||0,n=n.offsetParent;while(n);return{top:t,left:r}}var _v=class{constructor(t){this.element=t}getHorizontalScroll(){return this.element.scrollLeft}getVerticalScroll(){return this.element.scrollTop}getMaxHorizontalScroll(){return this.element.scrollWidth-this.element.clientWidth}getMaxVerticalScroll(){return this.element.scrollHeight-this.element.clientHeight}getHorizontalElementScrollOffset(t,r){return cs(t).left-cs(r).left}getVerticalElementScrollOffset(t,r){return cs(t).top-cs(r).top}scrollTo(t,r){this.element.scrollLeft=t,this.element.scrollTop=r}},Dv=class{constructor(){this.element=window}getHorizontalScroll(){return window.scrollX||document.documentElement.scrollLeft}getVerticalScroll(){return window.scrollY||document.documentElement.scrollTop}getMaxHorizontalScroll(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth}getMaxVerticalScroll(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight}getHorizontalElementScrollOffset(t){return(window.scrollX||document.documentElement.scrollLeft)+t.getBoundingClientRect().left}getVerticalElementScrollOffset(t){return(window.scrollY||document.documentElement.scrollTop)+t.getBoundingClientRect().top}scrollTo(t,r){window.scrollTo(t,r)}},zn={elements:[],cancelMethods:[],add:(e,t)=>{zn.elements.push(e),zn.cancelMethods.push(t)},remove:(e,t)=>{let r=zn.elements.indexOf(e);r>-1&&(t&&zn.cancelMethods[r](),zn.elements.splice(r,1),zn.cancelMethods.splice(r,1))}},Cv=typeof window!="undefined",m_={cancelOnUserAction:!0,easing:e=>--e*e*e+1,elementToScroll:Cv?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};function g_(e,t={}){return h_(this,void 0,void 0,function*(){if(Cv){if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill."}else return new Promise(I=>{I(!1)});let r,n,i,a=Object.assign(Object.assign({},m_),t),o=a.elementToScroll===window,s=!!a.elementToScroll.nodeName;if(!o&&!s)throw"Element to scroll needs to be either window or DOM element.";let u=o?document.documentElement:a.elementToScroll;getComputedStyle(u).getPropertyValue("scroll-behavior")==="smooth"&&console.warn(`${u.tagName} has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`);let c=o?new Dv:new _v(a.elementToScroll);if(e instanceof Element){if(i=e,s&&(!a.elementToScroll.contains(i)||a.elementToScroll.isSameNode(i)))throw"options.elementToScroll has to be a parent of scrollToElement";r=c.getHorizontalElementScrollOffset(i,a.elementToScroll),n=c.getVerticalElementScrollOffset(i,a.elementToScroll)}else if(typeof e=="number")r=c.getHorizontalScroll(),n=e;else if(Array.isArray(e)&&e.length===2)r=e[0]===null?c.getHorizontalScroll():e[0],n=e[1]===null?c.getVerticalScroll():e[1];else throw`Wrong function signature. Check documentation.
Available method signatures are:
animateScrollTo(y:number, options)
animateScrollTo([x:number | null, y:number | null], options)
animateScrollTo(scrollToElement:Element, options)`;r+=a.horizontalOffset,n+=a.verticalOffset;let d=c.getMaxHorizontalScroll(),f=c.getHorizontalScroll();r>d&&(r=d);let p=r-f,m=c.getMaxVerticalScroll(),v=c.getVerticalScroll();n>m&&(n=m);let b=n-v,k=Math.abs(Math.round(p/1e3*a.speed)),T=Math.abs(Math.round(b/1e3*a.speed)),D=k>T?k:T;return D<a.minDuration?D=a.minDuration:D>a.maxDuration&&(D=a.maxDuration),new Promise((I,H)=>{p===0&&b===0&&I(!0),zn.remove(c.element,!0);let C,F=()=>{le(),cancelAnimationFrame(C),I(!1)};zn.add(c.element,F);let U=re=>re.preventDefault(),z=a.cancelOnUserAction?F:U,ee=a.cancelOnUserAction?{passive:!0}:{passive:!1},Z=["wheel","touchstart","keydown","mousedown"],le=()=>{Z.forEach(re=>{c.element.removeEventListener(re,z,ee)})};Z.forEach(re=>{c.element.addEventListener(re,z,ee)});let X=Date.now(),G=()=>{var re=Date.now()-X,pe=re/D;let he=Math.round(f+p*a.easing(pe)),ge=Math.round(v+b*a.easing(pe));re<D&&(he!==r||ge!==n)?(c.scrollTo(he,ge),C=requestAnimationFrame(G)):(c.scrollTo(r,n),cancelAnimationFrame(C),le(),zn.remove(c.element,!1),I(!0))};C=requestAnimationFrame(G)})})}var us=g_;var nb=ye(_t());h();h();h();var y_="scroll-container",ds=8,fs=["top","right","bottom","left"],Qu=class{constructor(t,r,n,i,a){this.scrollFrame=0;this.onScroll=()=>{this.activeScroll.size===0&&(this.scrollState=_l(this.scrollEl),this.handleEntityRegistration())};this.onDragEnd=()=>{this.activeScroll.clear()};this.handleBeginDragScroll=({scrollEntitySide:t,scrollStrength:r})=>{this.isDoneScrolling(t)||(this.activeScroll.set(t,r),this.handleDragScroll())};this.handleUpdateDragScroll=({scrollEntitySide:t,scrollStrength:r})=>{this.isDoneScrolling(t)||this.activeScroll.set(t,r)};this.handleEndDragScroll=({scrollEntitySide:t})=>{this.activeScroll.delete(t)};this.dndManager=t,this.instanceId=Ve(),this.scopeId=r,this.triggerTypes=n,this.scrollState=tn,this.parent=i,this.activeScroll=new Map,this.pollForNodes(a)}pollForNodes(t){!t()||this.parent&&!this.parent.observerHandlers?this.dndManager.win.requestAnimationFrame(()=>this.pollForNodes(t)):this.initNodes(t())}initNodes(t){this.scrollEl=t,this.scrollEl.dataset.hitboxid=this.instanceId,this.scrollEl.dataset.scrollid=this.instanceId,this.top=this.createScrollEntity("top"),this.right=this.createScrollEntity("right"),this.bottom=this.createScrollEntity("bottom"),this.left=this.createScrollEntity("left"),this.bindScrollHandlers(),this.observerHandlers=new Map,this.observer=new IntersectionObserver(r=>{r.forEach(n=>{var a;let i=(a=n.target.dataset)==null?void 0:a.hitboxid;if(i&&this.observerHandlers.has(i)){let o=this.observerHandlers.get(i);o&&o(n)}})},{root:t,threshold:.1}),this.scrollEl.addEventListener("scroll",this.onScroll,{passive:!0,capture:!1}),this.dndManager.emitter.on("scrollResize",this.onScroll),this.scrollEl.win.setTimeout(()=>{this.onScroll()}),this.dndManager.observeResize(this.scrollEl),this.parent?this.parent.registerObserverHandler(this.instanceId,this.scrollEl,r=>{r.isIntersecting?this.handleEntityRegistration():this.handleEntityUnregistration()}):this.handleEntityRegistration()}destroy(){var t;this.handleEntityUnregistration(),this.observer.disconnect(),this.unbindScrollHandlers(),this.scrollEl.removeEventListener("scroll",this.onScroll),this.dndManager.emitter.off("scrollResize",this.onScroll),(t=this.parent)==null||t.unregisterObserverHandler(this.instanceId,this.scrollEl),this.dndManager.unobserveResize(this.scrollEl)}handleEntityRegistration(){fs.forEach(t=>{let r=Ze(this.scrollEl),n=this.getId(t),i=this.dndManager.scrollEntities.has(n),a=this.isDoneScrolling(t);!a&&!i?this.dndManager.registerScrollEntity(n,this[t],r):a&&i&&this.dndManager.unregisterScrollEntity(n,r)})}handleEntityUnregistration(){fs.forEach(t=>{let r=Ze(this.scrollEl),n=this.getId(t);this.dndManager.unregisterScrollEntity(n,r)})}registerObserverHandler(t,r,n){this.observerHandlers.set(t,n),this.observer.observe(r)}unregisterObserverHandler(t,r){this.observerHandlers.delete(t),this.observer.unobserve(r)}bindScrollHandlers(){fs.forEach(t=>{let r=this.getId(t);this.dndManager.dragManager.emitter.on("beginDragScroll",this.handleBeginDragScroll,r),this.dndManager.dragManager.emitter.on("updateDragScroll",this.handleUpdateDragScroll,r),this.dndManager.dragManager.emitter.on("endDragScroll",this.handleEndDragScroll,r),this.dndManager.dragManager.emitter.on("dragEnd",this.onDragEnd)})}unbindScrollHandlers(){fs.forEach(t=>{let r=this.getId(t);this.dndManager.dragManager.emitter.off("beginDragScroll",this.handleBeginDragScroll,r),this.dndManager.dragManager.emitter.off("updateDragScroll",this.handleUpdateDragScroll,r),this.dndManager.dragManager.emitter.off("endDragScroll",this.handleEndDragScroll,r),this.dndManager.dragManager.emitter.off("dragEnd",this.onDragEnd)})}isDoneScrolling(t){switch(t){case"top":return this.scrollState.y===0;case"right":return this.scrollState.x===this.scrollState.maxX;case"bottom":return this.scrollState.y===this.scrollState.maxY;case"left":return this.scrollState.x===0}}handleDragScroll(){this.activeScroll.size!==0&&this.scrollEl.win.requestAnimationFrame(()=>{let t={left:0,top:0};this.activeScroll.forEach((r,n)=>{if(this.isDoneScrolling(n))return this.activeScroll.delete(n);let i=["left","right"].includes(n)?"left":"top",a=["right","bottom"].includes(n);t[i]=a?Math.max(ds-ds*r/35,0):Math.min(-ds+ds*r/35,0)}),this.scrollEl.scrollBy(t),this.scrollState=_l(this.scrollEl),this.handleEntityRegistration(),this.handleDragScroll()})}getId(t){return`${this.instanceId}-${t}`}getPath(t){var r,n,i,a;switch(t){case"right":return[...((r=this.parent)==null?void 0:r.getPath())||[],1];case"bottom":return[...((n=this.parent)==null?void 0:n.getPath())||[],2];case"left":return[...((i=this.parent)==null?void 0:i.getPath())||[],3]}return[...((a=this.parent)==null?void 0:a.getPath())||[],0]}getScrollShift(){var r,n,i;let t=(r=this.parent)==null?void 0:r.getScrollShift();return{x:Qe((n=this.parent)==null?void 0:n.scrollState.x)+Qe(t==null?void 0:t.x),y:Qe((i=this.parent)==null?void 0:i.scrollState.y)+Qe(t==null?void 0:t.y)}}createScrollEntity(t){var n,i;let r=this;return{scopeId:this.scopeId,entityId:r.getId(t),initial:kl(this.scrollEl.getBoundingClientRect(),((n=this.parent)==null?void 0:n.scrollState)||tn,((i=this.parent)==null?void 0:i.getScrollShift())||_n,t),getParentScrollState(){var a;return((a=r.parent)==null?void 0:a.scrollState)||tn},getParentScrollShift(){var a;return((a=r.parent)==null?void 0:a.getScrollShift())||_n},recalcInitial(){var a,o;this.initial=kl(r.scrollEl.getBoundingClientRect(),((a=r.parent)==null?void 0:a.scrollState)||tn,((o=r.parent)==null?void 0:o.getScrollShift())||_n,t)},getHitbox(){return io(this.initial[0],this.initial[1],this.initial[2],this.initial[3],this.getParentScrollState(),this.getParentScrollShift())},getPath(){return r.getPath(t)},getData(){return{id:r.getId(t),type:y_,side:t,accepts:r.triggerTypes||[],scrollContainer:r.scrollEl,win:Ze(r.scrollEl)}}}}};function Tv({scrollRef:e,triggerTypes:t,children:r}){let n=R.useContext(wt),i=R.useContext(tr),a=R.useContext(qi),o=R.useRef(),s=R.useMemo(()=>{if(n){o.current&&o.current.destroy();let u=new Qu(n,i,t||[],a,()=>e.current);return o.current=u,u}return null},[n,i,e,t,a]);return R.useEffect(()=>()=>{var u;return(u=o.current)==null?void 0:u.destroy()},[]),s?y(qi.Provider,{value:s},r):null}h();function Mv({children:e}){let t=R.useMemo(()=>new ji,[]);return y(Yi.Provider,{value:t},e)}function Iv(e,t){let r=R.useContext(tr),n=R.useRef(null),i=R.useContext(Yi),a=o=>{n.current=o,n.current&&o.win.requestAnimationFrame(()=>{let s=i.getScrollState(e);s&&(s.x!==0||s.y!==0)&&(n.current.scrollLeft=s.x,n.current.scrollTop=s.y)})};return R.useEffect(()=>{let o=n.current;if(!o)return;let s=jo(o.win,u=>{let l=u.target;i.setScrollState(r,e,{x:l.scrollLeft,y:l.scrollTop})});return o.addEventListener("scroll",s),()=>{o.removeEventListener("scroll",s)}},[i,e,t]),{setRef:a,scrollRef:n}}function ps({className:e,children:t,triggerTypes:r,isStatic:n,id:i,index:a}){let{setRef:o,scrollRef:s}=Iv(i,a);return y("div",{ref:o,className:pt([e,V("scroll-container")])},n?t:y(Tv,{scrollRef:s,triggerTypes:r},t))}h();h();var Xu={width:0,height:0},v_=100,Zu=class{constructor(t,r,n){this.hitboxDimensions=Xu;this.handleDragStart=({dragEntity:t,dragEntityMargin:r,dragOriginHitbox:n})=>{let i=t==null?void 0:t.entityId,a=i?this.sortables.has(i):null;!t||!a||!n||(this.setSortState(!0),this.hitboxDimensions=Dl(n,r),this.activatePlaceholder(this.hitboxDimensions,rn.none),this.sortables.forEach(([o,s,u])=>{let l=Wi(t.getPath(),o.getPath()),c=o.entityId;if(l===en.Self)return this.hidden.add(c),this.hideDraggingEntity(u);l===en.After&&(this.shifted.has(c)||this.shifted.add(c),this.shiftEl(s,rn.none,this.hitboxDimensions))}))};this.dragEndTimeout=0;this.handleDragEnd=({primaryIntersection:t,dragPosition:r,dragOriginHitbox:n,dragEntity:i})=>{if(!this.isSorting||!r||!n||!i){if(!t&&i&&this.sortables.has(i.entityId))return this.resetSelf({maintainHidden:!1});if(t&&i){let s=(t==null?void 0:t.getHitbox())||n,u=ui({position:r,destination:{x:s[0],y:s[1]}});return this.dndManager.win.setTimeout(()=>{this.resetSelf({maintainHidden:!1})},u)}return this.resetSelf({maintainHidden:!0})}this.dndManager.win.clearTimeout(this.dragEnterTimeout),this.dndManager.win.clearTimeout(this.dragLeaveTimeout),this.dndManager.win.clearTimeout(this.dragEndTimeout);let a=(t==null?void 0:t.getHitbox())||n,o=i.scopeId==="htmldnd"?0:ui({position:r,destination:{x:a[0],y:a[1]}});this.dragEndTimeout=this.dndManager.win.setTimeout(()=>{let s=i.entityId.split(":::").pop(),u=t==null?void 0:t.entityId.split(":::").pop();t&&this.sortables.has(t.entityId)&&u!==s&&this.dndManager.onDrop(i,t),this.resetSelf({maintainHidden:!1,shiftTransition:rn.none,placeholderTransition:rn.none})},o),this.hitboxDimensions=Xu};this.dragEnterTimeout=0;this.handleDragEnter=({dragEntity:t,dragEntityMargin:r,dragOriginHitbox:n,primaryIntersection:i})=>{let a=i==null?void 0:i.entityId,o=a?this.sortables.has(a):null;if(!t||!i||!o||!n){!o&&this.isSorting&&this.resetSelf({maintainHidden:!0,maintainPlaceholder:!0});return}t.entityId!==i.entityId&&(this.dndManager.win.clearTimeout(this.dragLeaveTimeout),this.dndManager.win.clearTimeout(this.dragEnterTimeout),this.dragEnterTimeout=this.dndManager.win.setTimeout(()=>{this.setSortState(!0),this.hitboxDimensions=Dl(n,r),this.activatePlaceholder(this.hitboxDimensions,rn.placeholder),this.sortables.forEach(([s,u])=>{let l=Wi(i.getPath(),s.getPath()),c=s.entityId;!this.hidden.has(c)&&(l===en.Self||l===en.After)?this.shifted.has(c)||(this.shifted.add(c),this.shiftEl(u,rn.outOfTheWay,this.hitboxDimensions)):this.shifted.has(c)&&(this.shifted.delete(c),this.resetEl(u))})},10))};this.dragLeaveTimeout=0;this.handleDragLeave=()=>{!this.isSorting||(this.dndManager.win.clearTimeout(this.dragLeaveTimeout),this.dndManager.win.clearTimeout(this.dragEnterTimeout),this.dragLeaveTimeout=this.dndManager.win.setTimeout(()=>{this.resetSelf({maintainHidden:!0,maintainPlaceholder:!0})},v_),this.hitboxDimensions=Xu)};this.instanceId=Ve(),this.dndManager=t,this.sortables=new Map,this.shifted=new Set,this.hidden=new Set,this.isSorting=!1,this.axis=r,this.placeholder=null,this.sortListeners=n?[n]:[],t.dragManager.emitter.on("dragStart",this.handleDragStart),t.dragManager.emitter.on("dragEnd",this.handleDragEnd),t.dragManager.emitter.on("dragEnter",this.handleDragEnter),t.dragManager.emitter.on("dragLeave",this.handleDragLeave)}destroy(){this.dndManager.win.clearTimeout(this.dragLeaveTimeout),this.dndManager.win.clearTimeout(this.dragEndTimeout),this.dndManager.dragManager.emitter.off("dragStart",this.handleDragStart),this.dndManager.dragManager.emitter.off("dragEnd",this.handleDragEnd),this.dndManager.dragManager.emitter.off("dragEnter",this.handleDragEnter),this.dndManager.dragManager.emitter.off("dragLeave",this.handleDragLeave)}registerSortable(t,r,n,i){let a=r.getData().type==="placeholder";this.sortables.set(t,[r,n,i]),a?(this.placeholder=[r,n,i],i.dataset.axis=this.axis,En(i,"transition",rn.none)):En(n,"transition",rn.none)}unregisterSortable(t){this.sortables.delete(t)}resetSelf({maintainHidden:t,maintainPlaceholder:r,shiftTransition:n,placeholderTransition:i}){this.isSorting&&this.setSortState(!1),this.isPlaceholderActive&&!r&&this.deactivatePlaceholder(i),this.shifted.size>0&&(this.shifted.forEach(a=>{if(this.sortables.has(a)){let[,o]=this.sortables.get(a);this.resetEl(o,n)}}),this.shifted.clear()),!t&&this.hidden.size>0&&(this.hidden.forEach(a=>{if(this.sortables.has(a)){let[,,o]=this.sortables.get(a);this.resetEl(o,n)}}),this.hidden.clear())}activatePlaceholder(t,r){if(this.placeholder){let n=this.axis==="horizontal",[,,i]=this.placeholder;En(i,"transition",r),En(i,n?"width":"height",`${n?t.width:t.height}px`),this.isPlaceholderActive=!0}}deactivatePlaceholder(t=rn.placeholder){if(this.placeholder){let[,,r]=this.placeholder;En(r,"transition",t),qo(r,"width"),qo(r,"height"),this.isPlaceholderActive=!1}}hideDraggingEntity(t){En(t,"display","none")}shiftEl(t,r,n){let i=this.axis==="horizontal"?`translate3d(${n.width}px, 0, 0)`:`translate3d(0, ${n.height}px, 0)`;En(t,"transition",r),En(t,"transform",i)}resetEl(t,r=rn.outOfTheWay){En(t,"transition",r),En(t,"transform","translate3d(0, 0, 0)"),qo(t,"display")}addSortNotifier(t){this.sortListeners.push(t)}removeSortNotifier(t){this.sortListeners=this.sortListeners.filter(r=>r!==t)}setSortState(t){this.isSorting!==t&&(this.isSorting=t,this.sortListeners.forEach(r=>r(t)))}};function mi({axis:e,children:t,onSortChange:r}){let n=R.useContext(wt),i=R.useRef(),a=R.useMemo(()=>{if(n){i.current&&i.current.destroy();let o=new Zu(n,e,r);return i.current=o,o}return null},[n,e,r]);return R.useEffect(()=>()=>{var o;return(o=i.current)==null?void 0:o.destroy()},[]),a?y(to.Provider,{value:a},t):null}h();function gi({index:e,accepts:t,className:r,isStatic:n}){let i=R.useRef(null),a=R.useRef(null),o=R.useMemo(()=>({id:Ve(),type:"placeholder",accepts:t}),t);return y("div",{ref:a,className:pt([r,V("placeholder")])},y("div",{ref:i},!n&&y(nr,{elementRef:i,measureRef:a,id:o.id,index:e,data:o})))}h();h();h();vr();vr();function b_(e,t){for(var r in t)e[r]=t[r];return e}function Av(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Lv(e){this.props=e}(Lv.prototype=new vt).isPureReactComponent=!0,Lv.prototype.shouldComponentUpdate=function(e,t){return Av(this.props,e)||Av(this.state,t)};var Pv=fe.__b;fe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Pv&&Pv(e)};var _R=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var w_=fe.__e;fe.__e=function(e,t,r,n){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}w_(e,t,r,n)};var Fv=fe.unmount;function ed(){this.__u=0,this.t=null,this.__b=null}function Ov(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function hs(){this.u=null,this.o=null}fe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Fv&&Fv(e)},(ed.prototype=new vt).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=Ov(n.__v),a=!1,o=function(){a||(a=!0,r.__R=null,i?i(s):s())};r.__R=o;var s=function(){if(!--n.__u){if(n.state.__e){var l=n.state.__e;n.__v.__k[0]=function d(f,p,m){return f&&(f.__v=null,f.__k=f.__k&&f.__k.map(function(v){return d(v,p,m)}),f.__c&&f.__c.__P===p&&(f.__e&&m.insertBefore(f.__e,f.__d),f.__c.__e=!0,f.__c.__P=m)),f}(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__e:n.__b=null});c=n.t.pop();)c.forceUpdate()}},u=t.__h===!0;n.__u++||u||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(o,o)},ed.prototype.componentWillUnmount=function(){this.t=[]},ed.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,u){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(l){typeof l.__c=="function"&&l.__c()}),o.__c.__H=null),(o=b_({},o)).__c!=null&&(o.__c.__P===u&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(l){return a(l,s,u)})),o}(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__e&&y(S,null,e.fallback);return i&&(i.__h=null),[y(S,null,t.__e?null:e.children),i]};var Nv=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(hs.prototype=new vt).__e=function(e){var t=this,r=Ov(t.__v),n=t.o.get(e);return n[0]++,function(i){var a=function(){t.props.revealOrder?(n.push(i),Nv(t,e,n)):i()};r?r(a):a()}},hs.prototype.render=function(e){this.u=null,this.o=new Map;var t=qt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},hs.prototype.componentDidUpdate=hs.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Nv(e,r,t)})};var E_=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,x_=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,k_=typeof document!="undefined",S_=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};vt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(vt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Rv=fe.event;function __(){}function D_(){return this.cancelBubble}function C_(){return this.defaultPrevented}fe.event=function(e){return Rv&&(e=Rv(e)),e.persist=__,e.isPropagationStopped=D_,e.isDefaultPrevented=C_,e.nativeEvent=e};var T_,Hv={configurable:!0,get:function(){return this.class}},Bv=fe.vnode;fe.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var a in n={},r){var o=r[a];k_&&a==="children"&&t==="noscript"||a==="value"&&"defaultValue"in r&&o==null||(a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!S_(r.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&x_.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),n[a]&&(a="oninputCapture")),n[a]=o)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=qt(r.children).forEach(function(s){s.props.selected=n.value.indexOf(s.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=qt(r.children).forEach(function(s){s.props.selected=n.multiple?n.defaultValue.indexOf(s.props.value)!=-1:n.defaultValue==s.props.value})),e.props=n,r.class!=r.className&&(Hv.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",Hv))}e.$$typeof=E_,Bv&&Bv(e)};var Kv=fe.__r;fe.__r=function(e){Kv&&Kv(e),T_=e.__c};var M_=function(){if(typeof window=="undefined"||typeof window.addEventListener!="function")return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){return null};return window.addEventListener("test",r,t),window.removeEventListener("test",r,t),e},I_="ignore-onclickoutside",$v=function(t,r){var n;return(n=t.classList)==null?void 0:n.contains(r)},Uv=function(t,r){for(var n=t.target||t;n;){if(Array.isArray(r)){if(r.some(function(i){return $v(n,i)}))return!0}else if($v(n,r))return!0;n=n.parentElement}return!1},A_=function(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY},Wv=function(t){return t.includes("touch")&&M_()?{passive:!0}:!1},L_=function(t,r){var n=r===void 0?{}:r,i=n.refs,a=n.disabled,o=n.eventTypes,s=o===void 0?["mousedown","touchstart"]:o,u=n.excludeScrollbar,l=n.ignoreClass,c=l===void 0?I_:l,d=n.detectIFrame,f=d===void 0?!0:d,p=Oi([]),m=p[0],v=p[1],b=Ri(t);b.current=t;var k=Bi(function(T){return v(function(D){return[].concat(D,[{current:T}])})},[]);return Ni(function(){if(!(!(i!=null&&i.length)&&!m.length)){var T=function(){var F=[];return(i||m).forEach(function(U){var z=U.current;return z&&F.push(z)}),F},D=function(F){!Uv(F,c)&&!(u&&A_(F))&&T().every(function(U){return!U.contains(F.target)})&&b.current(F)},I=function(F){return setTimeout(function(){var U=document,z=U.activeElement;(z==null?void 0:z.tagName)==="IFRAME"&&!Uv(z,c)&&!T().includes(z)&&b.current(F)},0)},H=function(){s.forEach(function(F){return document.removeEventListener(F,D,Wv(F))}),f&&window.removeEventListener("blur",I)};if(a){H();return}return s.forEach(function(C){return document.addEventListener(C,D,Wv(C))}),f&&window.addEventListener("blur",I),function(){return H()}}},[m,c,u,a,f,JSON.stringify(s)]),k},ms=L_;function td({addItems:e,isInputVisible:t,setIsInputVisible:r,hideButton:n}){let[i,a]=R.useState(""),{stateManager:o,view:s}=R.useContext(We),u=R.useRef(),l=ms(()=>{r(!1)},{ignoreClass:V("ignore-click-outside")}),c=R.useCallback(()=>{a(""),r(!1)},[]),d=async m=>{try{e(await Promise.all(m.map(v=>o.getNewItem(v))))}catch(v){o.setError(v)}},f=m=>{if(!Vn(m,o)){m.preventDefault();let v=i.trim();v&&(d([v]),a(""))}},p=()=>{let m=i.trim();m&&(d([m]),a(""))};return t?y("div",{className:V("item-form"),ref:l},y("div",{className:V("item-input-wrapper")},y(cr,{ref:u,className:V("item-input"),placeholder:B("Card title..."),onEnter:f,onEscape:c,onSubmit:p,value:i,onChange:m=>{a(m.target.value)},onPaste:m=>{Zo(m,o,s.getWindow())}}))):n?null:y("div",{className:V("item-button-wrapper")},y("button",{className:V("new-item-button"),onClick:()=>r(!0),onDragOver:m=>{Xo(o,m.dataTransfer)&&r(!0)}},y("span",{className:V("item-button-plus")},"+")," ",B("Add a card")))}h();var eb=ye(_t());h();function Vv(e){return y("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},y("path",{fill:"currentColor",d:"M5 3h2v2H5zm0 4h2v2H5zm0 4h2v2H5zm4-8h2v2H9zm0 4h2v2H9zm0 4h2v2H9z"}))}h();var nd=ye(_t()),zv=ye(require("obsidian"));var jv={delete:{description:B("Are you sure you want to delete this list and all its cards?"),confirm:B("Yes, delete list")},archive:{description:B("Are you sure you want to archive this list and all its cards?"),confirm:B("Yes, archive list")},"archive-items":{description:B("Are you sure you want to archive all cards in this list?"),confirm:B("Yes, archive cards")}};function qv({action:e,cancel:t,onAction:r,lane:n}){return R.useEffect(()=>{e&&n.children.length===0&&r()},[e,n.children.length]),!e||e&&n.children.length===0?null:y("div",{className:V("action-confirm-wrapper")},y("div",{className:V("action-confirm-text")},jv[e].description),y("div",null,y("button",{onClick:r,className:V("confirm-action-button")},jv[e].confirm),y("button",{onClick:t,className:V("cancel-action-button")},"Cancel")))}function Yv({setIsEditing:e,path:t,lane:r}){let{stateManager:n,boardModifiers:i}=R.useContext(We),[a,o]=R.useState(null);return{settingsMenu:R.useMemo(()=>new zv.Menu().addItem(u=>{u.setIcon("pencil").setTitle(B("Edit list")).onClick(()=>e(!0))}).addItem(u=>{u.setIcon("documents").setTitle(B("Archive cards")).onClick(()=>o("archive-items"))}).addSeparator().addItem(u=>{u.setIcon("up-and-down-arrows").setTitle(B("Sort by card text")).onClick(()=>{let l=r.children.slice(),c=r.data.sorted===xn.TitleAsc;l.sort((d,f)=>c?f.data.titleSearch.localeCompare(d.data.titleSearch):d.data.titleSearch.localeCompare(f.data.titleSearch)),i.updateLane(t,(0,nd.default)(r,{children:{$set:l},data:{sorted:{$set:r.data.sorted===xn.TitleAsc?xn.TitleDsc:xn.TitleAsc}}}))})}).addItem(u=>{u.setIcon("up-and-down-arrows").setTitle(B("Sort by date")).onClick(()=>{let l=r.children.slice(),c=r.data.sorted===xn.DateAsc?-1:1;l.sort((d,f)=>{let p=d.data.metadata.time||d.data.metadata.date,m=f.data.metadata.time||f.data.metadata.date;return p&&!m?-1*c:m&&!p?1*c:!p&&!m?0:(p.isBefore(m)?-1:1)*c}),i.updateLane(t,(0,nd.default)(r,{children:{$set:l},data:{sorted:{$set:r.data.sorted===xn.DateAsc?xn.DateDsc:xn.DateAsc}}}))})}).addSeparator().addItem(u=>{u.setIcon("plus-with-circle").setTitle(B("Insert list before")).onClick(()=>i.insertLane(t,{...lr,id:Ve(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}}))}).addItem(u=>{u.setIcon("plus-with-circle").setTitle(B("Insert list after")).onClick(()=>{let l=[...t];l[l.length-1]=l[l.length-1]+1,i.insertLane(l,{...lr,id:Ve(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}})})}).addSeparator().addItem(u=>{u.setIcon("sheets-in-box").setTitle(B("Archive list")).onClick(()=>o("archive"))}).addItem(u=>{u.setIcon("trash").setTitle(B("Delete list")).onClick(()=>o("delete"))}),[n,o,t,r]),confirmAction:a,setConfirmAction:o}}h();var Jv=ye(_t());function Gv({lane:e,lanePath:t}){let{boardModifiers:r}=R.useContext(We);return y("div",{className:V("lane-setting-wrapper")},y("div",{className:V("checkbox-wrapper")},y("div",{className:V("checkbox-label")},B("Mark cards in this list as complete")),y("div",{onClick:()=>r.updateLane(t,(0,Jv.default)(e,{data:{$toggle:["shouldMarkItemsComplete"]}})),className:`checkbox-container ${e.data.shouldMarkItemsComplete?"is-enabled":""}`})))}h();var Qv=ye(require("obsidian"));function Xv({itemCount:e,maxItems:t,isEditing:r,setIsEditing:n,title:i,onChange:a}){let{stateManager:o}=R.useContext(We),s=R.useRef(),u=o.getSetting("hide-card-count"),l=p=>{Vn(p,o)||(p.preventDefault(),r&&n(!1))},c=()=>{r&&n(!1)},d=()=>{r&&n(!1)};R.useEffect(()=>{if(r&&s.current){let p=s.current;s.current.focus(),p.selectionStart=p.selectionEnd=p.value.length}},[r]);let f=[V("lane-title-count")];return t&&t<e&&f.push("wip-exceeded"),y(S,null,y("div",{className:V("lane-title")},r?y(cr,{ref:s,className:V("lane-input"),onChange:a,onEnter:l,onEscape:d,onSubmit:c,value:Io(i,t)}):y(S,null,y("div",{className:V("lane-title-text"),onContextMenu:p=>{p.preventDefault(),p.stopPropagation();let m=p.target instanceof p.view.HTMLAnchorElement&&p.target.hasClass("internal-link")?p.target.dataset.href:void 0;m&&o.app.workspace.onLinkContextMenu(p,(0,Qv.getLinkpath)(m),o.file.path)}},y(wa,{markdownString:i})))),!r&&!u&&y("div",{className:pt(f)},e,t>0&&y(S,null,y("span",{className:V("lane-title-count-separator")},"/"),y("span",{className:V("lane-title-count-limit")},t))))}h();function gs(e,t){let r=t.end-t.start;return e.slice(0,t.start)+"\0".repeat(r)+e.slice(t.end)}function Zv(e){return e.replace(/\s*\0+\s*/g," ").trim()}function xa(e){return e.trim().replace(/(\r\n|\n)/g,"<br>")}function ys(e){return e.replace(/<br>/g,`
`).trim()}function Ar(e){e=ys(e);let t=e.match(/^(.*?)\s*\((\d+)\)$/);return t==null?{title:e,maxItems:0}:{title:t[1],maxItems:Number(t[2])}}var tb=R.memo(function({lane:t,laneIndex:r,dragHandleRef:n,setIsItemInputVisible:i}){let{boardModifiers:a,stateManager:o}=R.useContext(We),[s,u]=R.useState(!1),l=Nn(r),{settingsMenu:c,confirmAction:d,setConfirmAction:f}=Yv({setIsEditing:u,path:l,lane:t});return R.useEffect(()=>{t.data.forceEditMode&&u(!0)},[t.data.forceEditMode]),y(S,null,y("div",{onDblClick:()=>u(!0),className:V("lane-header-wrapper")},y("div",{className:V("lane-grip"),ref:n},y(Vv,null)),y(Xv,{isEditing:s,setIsEditing:u,itemCount:t.children.length,maxItems:t.data.maxItems,title:t.data.title,onChange:p=>{let{title:m,maxItems:v}=Ar(p.target.value);a.updateLane(l,(0,eb.default)(t,{data:{title:{$set:m},maxItems:{$set:v}}}))}}),y("div",{className:V("lane-settings-button-wrapper")},s?y("button",{onClick:()=>{u(!1)},"aria-label":"Close",className:`${V("lane-settings-button")} is-enabled`},y(Zt,{name:"cross"})):y(S,null,i&&y("button",{"aria-label":B("Add a card"),className:V("lane-settings-button"),onClick:()=>{i(!0)},onDragOver:p=>{Xo(o,p.dataTransfer)&&i(!0)}},y(Zt,{name:"plus-with-circle"})),y("button",{"aria-label":B("More options"),className:V("lane-settings-button"),onClick:p=>{c.showAtPosition({x:p.clientX,y:p.clientY})}},y(Zt,{name:"vertical-three-dots"}))))),s&&y(Gv,{lane:t,lanePath:l}),d&&y(qv,{lane:t,action:d,onAction:()=>{switch(d){case"archive":a.archiveLane(l);break;case"archive-items":a.archiveLaneItems(l);break;case"delete":a.deleteEntity(l);break}f(null)},cancel:()=>f(null)}))});var rb=[Xe.Item],rd=R.memo(function({isStatic:t,lane:r,laneIndex:n}){let{stateManager:i,boardModifiers:a,view:o}=R.useContext(We),[s,u]=R.useState(!1),l=Nn(n),c=i.useSetting("lane-width"),d=i.useSetting("new-card-insertion-method"),f=!!r.data.shouldMarkItemsComplete,p=c?{width:`${c}px`}:void 0,m=R.useRef(null),v=R.useRef(null),b=R.useRef(null),[k,T]=R.useState(!1),D=d==="prepend-compact",I=D||d==="prepend";fi(v,b);let H=U=>{a[I?"prependItems":"appendItems"]([...l,r.children.length-1],U.map(z=>(0,nb.default)(z,{data:{isComplete:{$set:f}}}))),o.getWindow().setTimeout(()=>{var ee;let z=(ee=m.current)==null?void 0:ee.getElementsByClassName(V("lane-items"));z.length&&us([0,I?0:z[0].scrollHeight],{elementToScroll:z[0],speed:200,minDuration:150,easing:Z=>Z===1?1:1-Math.pow(2,-10*Z)})})},C=y(S,null,y(Sv,{items:r.children,isStatic:t,shouldMarkItemsComplete:f}),y(gi,{accepts:rb,index:r.children.length,isStatic:t})),F=y(ps,{id:r.id,index:n,className:pt([V("lane-items"),V("vertical")]),triggerTypes:rb,isStatic:t},t?C:y(mi,{onSortChange:T,axis:"vertical"},C));return y("div",{ref:v,className:pt([V("lane-wrapper"),{"is-sorting":k}]),style:p},y("div",{"data-count":r.children.length,ref:m,className:pt([V("lane"),{"will-prepend":I}])},y(tb,{dragHandleRef:b,laneIndex:n,lane:r,setIsItemInputVisible:D?u:void 0}),I&&y(td,{addItems:H,hideButton:D,isInputVisible:s,setIsInputVisible:u}),t?F:y(nr,{elementRef:m,measureRef:v,id:r.id,index:n,data:r},F),!I&&y(td,{addItems:H,isInputVisible:s,setIsInputVisible:u})))}),ib=R.memo(function({lanes:t}){return y(S,null,t.map((r,n)=>y(rd,{lane:r,laneIndex:n,key:r.id})))});h();h();var ab=ye(require("obsidian"));h();function vs(){return{events:{},emit(e,t,r){let n=`${String(e)}${r||""}`,i=this.events[e],a=this.events[n];if(!i&&!a){console.warn("Event emitted with no handler",e,r);return}r&&a&&a.forEach(o=>o(t)),i&&i.forEach(o=>o(t))},on(e,t,r){let n=`${String(e)}${r||""}`,i=this.events[n];return i||(this.events[n]=i=[]),i.push(t),()=>this.off(e,t,r)},off(e,t,r){let n=`${String(e)}${r||""}`,i=this.events[n];i&&(i.splice(i.indexOf(t)>>>0,1),i.length===0&&delete this.events[n])}}}var id=class{constructor(t,r){this.scrollResizeDebounce=0;this.handleResize=t=>{let r=!1;t.forEach(n=>{let i=Ze(n.target);this.win===i&&(r=!0,n.target.dataset.scrollid&&(this.win.clearTimeout(this.scrollResizeDebounce),this.scrollResizeDebounce=this.win.setTimeout(()=>{var a;((a=this.emitter.events.scrollResize)==null?void 0:a.length)&&this.emitter.emit("scrollResize",null)},50)))}),!!r&&(this.hitboxEntities.forEach(n=>{n.recalcInitial()}),this.scrollEntities.forEach(n=>{n.recalcInitial()}))};this.win=t,this.emitter=vs(),this.hitboxEntities=new Map,this.scrollEntities=new Map,this.onDrop=r,this.resizeObserver=new ResizeObserver((0,ab.debounce)(this.handleResize,100,!0)),this.dragManager=new hu(t,this.emitter,this.hitboxEntities,this.scrollEntities)}destroy(){this.resizeObserver.disconnect()}observeResize(t){this.resizeObserver.observe(t,{box:"border-box"})}unobserveResize(t){this.resizeObserver.unobserve(t)}registerHitboxEntity(t,r,n){n===this.win&&this.hitboxEntities.set(t,r)}registerScrollEntity(t,r,n){n===this.win&&this.scrollEntities.set(t,r)}unregisterHitboxEntity(t,r){r===this.win&&this.hitboxEntities.delete(t)}unregisterScrollEntity(t,r){r===this.win&&this.scrollEntities.delete(t)}};function bs({win:e,children:t,onDrop:r}){let n=R.useRef(r);n.current=r;let i=R.useMemo(()=>new id(e,(a,o)=>n.current(a,o)),[]);return R.useEffect(()=>()=>{i.destroy()},[i]),y(wt.Provider,{value:i},y(Mv,null,t))}h();function ad(e,t,r,n,i,a){let o=[r[0]-n[0],r[1]-n[1],r[2]+n[2],r[3]+n[3]];return{transform:a||`translate3d(${e.x-t.x+o[0]}px, ${e.y-t.y+o[1]}px, 0px)`,width:`${o[2]-o[0]}px`,height:`${o[3]-o[1]}px`,transition:i}}function ws({children:e}){let t=R.useContext(wt),[r,n]=R.useState(),[i,a]=R.useState();return R.useEffect(()=>{if(!t)return;let o=rp,s=({dragEntity:c,dragOrigin:d,dragPosition:f,dragEntityMargin:p})=>{!c||!f||!d||(o=c.getHitbox(),n(c),a(ad(f,d,o,p)))},u=({dragOrigin:c,dragPosition:d,dragEntityMargin:f})=>{!d||!c||a(ad(d,c,o,f))},l=({dragOrigin:c,primaryIntersection:d,dragPosition:f,dragEntityMargin:p})=>{if(d&&f&&c){let m=d.getHitbox(),v={x:m[0],y:m[1]},b=ui({position:f,destination:v}),k=rn.drop(b),T=Ag.drop(v);a(ad(f,c,o,p,k,T)),activeWindow.setTimeout(()=>{n(void 0),a(void 0)},b)}else n(void 0),a(void 0)};return t.dragManager.emitter.on("dragStart",s),t.dragManager.emitter.on("dragMove",u),t.dragManager.emitter.on("dragEnd",l),()=>{t.dragManager.emitter.off("dragStart",s),t.dragManager.emitter.off("dragMove",u),t.dragManager.emitter.off("dragEnd",l)}},[t]),!r||!i?null:R.createPortal(e(r,i),r.getData().win.document.body)}function ob(){let e=R.useContext(wt),[t,r]=R.useState(!1);return R.useEffect(()=>{let n=()=>{r(!0)},i=({primaryIntersection:a,dragPosition:o})=>{let s=(a==null?void 0:a.getHitbox())||[0,0],u={x:s[0],y:s[1]},l=ui({position:o||u,destination:u});activeWindow.setTimeout(()=>{r(!1)},l)};return e.dragManager.emitter.on("dragStart",n),e.dragManager.emitter.on("dragEnd",i),()=>{e.dragManager.emitter.off("dragStart",n),e.dragManager.emitter.off("dragEnd",i)}},[e]),t}h();var ka=ye(_t()),sb=ye(require("obsidian"));function Es(e){let t=r=>{let n=e.getSetting("prepend-archive-format"),i=e.getSetting("prepend-archive-separator"),a=[(0,sb.moment)().format(n)];i&&a.push(i),a.push(r.data.titleRaw);let o=a.join(" ");return e.updateItemContent(r,o)};return{appendItems:(r,n)=>{n.forEach(i=>e.app.workspace.trigger("kanban:card-added",e.file,i)),e.setState(i=>vl(i,r,n))},prependItems:(r,n)=>{n.forEach(i=>e.app.workspace.trigger("kanban:card-added",e.file,i)),e.setState(i=>Xf(i,r,n))},insertItems:(r,n)=>{n.forEach(i=>e.app.workspace.trigger("kanban:card-added",e.file,i)),e.setState(i=>er(i,r,n))},splitItem:(r,n)=>{n.forEach(i=>e.app.workspace.trigger("kanban:card-added",e.file,i)),e.setState(i=>er(wr(i,r),r,n))},addLane:r=>{e.app.workspace.trigger("kanban:lane-added",e.file,r),e.setState(n=>vl(n,[],[r]))},insertLane:(r,n)=>{e.app.workspace.trigger("kanban:lane-added",e.file,n),e.setState(i=>er(i,r,[n]))},updateLane:(r,n)=>{e.app.workspace.trigger("kanban:lane-updated",e.file,n),e.setState(i=>bl(i,r,{children:{[r[r.length-1]]:{$set:n}}}))},archiveLane:r=>{e.setState(async n=>{let i=ft(n,r),a=i.children;e.app.workspace.trigger("kanban:lane-archived",e.file,i);try{return(0,ka.default)(wr(n,r),{data:{archive:{$unshift:e.getSetting("prepend-archive-date")?await Promise.all(a.map(t)):a}}})}catch(o){return e.setError(o),n}})},archiveLaneItems:r=>{e.setState(async n=>{let a=ft(n,r).children;e.app.workspace.trigger("kanban:lane-cards-archived",e.file,a);try{return(0,ka.default)(Xa(n,r,{children:{$set:[]}}),{data:{archive:{$unshift:e.getSetting("prepend-archive-date")?await Promise.all(a.map(t)):a}}})}catch(o){return e.setError(o),n}})},deleteEntity:r=>{e.setState(n=>{let i=ft(n,r);return e.app.workspace.trigger(`kanban:${i.type}-deleted`,e.file,i),wr(n,r)})},updateItem:(r,n)=>{e.setState(i=>{let a=ft(i,r);return e.app.workspace.trigger("kanban:card-updated",e.file,a,n),bl(i,r,{children:{[r[r.length-1]]:{$set:n}}})})},archiveItem:r=>{e.setState(async n=>{let i=ft(n,r);e.app.workspace.trigger("kanban:card-archived",e.file,r,i);try{return(0,ka.default)(wr(n,r),{data:{archive:{$push:[e.getSetting("prepend-archive-date")?await t(i):i]}}})}catch(a){return e.setError(a),n}})},duplicateEntity:r=>{e.setState(n=>{let i=ft(n,r);e.app.workspace.trigger(`kanban:${i.type}-duplicated`,e.file,r,i);let a=(0,ka.default)(i,{id:{$set:Ve()}});return er(n,r,[a])})}}}function cb(e,t){return y(F_,{win:e,plugin:t})}var P_=R.memo(function({view:t}){return R.createPortal(t.getPortal(),t.contentEl)});function F_({win:e,plugin:t}){let r=t.useViewState(e),n=r.map(a=>y(P_,{key:a.id,view:a})),i=R.useCallback((a,o)=>{if(!a||!o)return;if(a.scopeId==="htmldnd"){let v=a.getData(),b=t.getStateManagerFromViewID(v.viewId,v.win),k=o.getPath(),T=ft(b.state,k.slice(0,-1));(I=>Promise.all(I.map(H=>b.getNewItem(H))))(v.content).then(I=>{let H=I.map(C=>{var F;return(0,lb.default)(C,{data:{isComplete:{$set:!!((F=T==null?void 0:T.data)==null?void 0:F.shouldMarkItemsComplete)}}})});return b.setState(C=>er(C,k,H))}).catch(I=>{b.setError(I),console.error(I)});return}let s=a.getPath(),u=o.getPath(),[,l]=a.scopeId.split(":::"),[,c]=o.scopeId.split(":::"),d=a.getData(),f=o.getData();if(l===c){let v=t.getStateManagerFromViewID(a.scopeId,d.win);return t.app.workspace.trigger("kanban:card-moved",v.file,s,u,d),v.setState(b=>{var H;let k=!1,T=Qf(b,s,u,C=>C.type===Xe.Item?(k=!0,El(b,s,b,u,C)):C);if(!k)return T;let D=u.slice(0,-1),I=ft(b,D);return((H=I==null?void 0:I.data)==null?void 0:H.sorted)!==void 0?Xa(T,D,{data:{$unset:["sorted"]}}):T})}let p=t.getStateManagerFromViewID(a.scopeId,d.win),m=t.getStateManagerFromViewID(o.scopeId,f.win);p.setState(v=>{let b=ft(v,s);return m.setState(k=>{let T=b.type===Xe.Item?El(v,s,k,u,b):b;return er(k,u,[T])}),wr(v,s)})},[r]);if(n.length)return y(bs,{win:e,onDrop:i},n,y(ws,null,(a,o)=>{let[s,u]=R.useMemo(()=>{if(a.scopeId==="htmldnd")return[null,null];let l=a.getData(),c=t.getKanbanView(a.scopeId,l.win),d=t.stateManagers.get(c.file),f=ft(d.state,a.getPath()),p=Es(d),m=c.file.path;return[f,{view:c,stateManager:d,boardModifiers:p,filePath:m}]},[a]);return(s==null?void 0:s.type)===Xe.Lane?y(We.Provider,{value:u},y("div",{className:V("drag-container"),style:o},y(rd,{lane:s,laneIndex:0,isStatic:!0}))):(s==null?void 0:s.type)===Xe.Item?y(We.Provider,{value:u},y("div",{className:V("drag-container"),style:o},y(Gu,{item:s,itemIndex:0,isStatic:!0}))):y("div",null)}))}h();var fd=ye(_t()),Ib=ye(require("obsidian"));h();var vb=ye(_t()),bb=ye(require("obsidian")),ks=ye(Ql());h();function xs({id:e,children:t}){let r=R.useContext(Yi),n=R.useMemo(()=>e||Ve(),[e]);return R.useEffect(()=>()=>{r.unmountScope(e)},[e]),y(tr.Provider,{value:n},t)}h();var fn="kanban-plugin",ub;(function(t){t[t.List=0]="List"})(ub||(ub={}));var db=`**${B("Complete")}**`,fb="***",od=["---","",`${fn}: basic`,"","---","",""].join(`
`);function pb(e){return["","","%% kanban:settings","```",JSON.stringify(e),"```","%%"].join(`
`)}function hb(e,t,r){let n=e.innerText.trim();if((t==null?void 0:t.length)&&(n+=" "+t.join(" ")),r){let i=Object.keys(r).join(" "),a=Object.values(r).map(o=>Array.isArray(o.value)?o.value.join(" "):o.value.toString()).join(" ");n+=" "+i+" "+a}return n.toLocaleLowerCase()}function O_(e,t,r){var n,i,a;if(e.plugins.enabledPlugins.has("dataview")&&((a=(i=(n=e.plugins)==null?void 0:n.plugins)==null?void 0:i.dataview)==null?void 0:a.api))return e.plugins.plugins.dataview.api.page(t.path,r.path)}function mb(e,t){if(!e)return null;if(e[t])return e[t];let r=t.split("."),n=e;for(let i of r)if(typeof n=="object"&&i in n)n=n[i];else{n=null;break}return n}function sd(e,t){let r=e.getSetting("metadata-keys");if(!r.length)return{};if(!t)return{};let n=e.app.metadataCache.getFileCache(t),i=O_(e.app,t,e.file);if(!n&&!i)return{};let a={},o={},s={},u=[],l=!1;return r.forEach(c=>{var p;if(s[c.metadataKey])return;if(s[c.metadataKey]=!0,c.metadataKey==="tags"){let m=(n==null?void 0:n.tags)||[];if(Array.isArray((p=n==null?void 0:n.frontmatter)==null?void 0:p.tags)&&(m=[].concat(m,n.frontmatter.tags.map(v=>({tag:`#${v}`})))),(m==null?void 0:m.length)===0)return;u.push(c.metadataKey),a.tags={...c,value:m.map(v=>v.tag).filter(v=>o[v]?!1:(o[v]=!0,!0))},l=!0;return}let d=mb(n==null?void 0:n.frontmatter,c.metadataKey),f=mb(i,c.metadataKey);if(d)u.push(c.metadataKey),a[c.metadataKey]={...c,value:d},l=!0;else if(f){let m=i[c.metadataKey],v=m.values||m.val||m;if(v===m&&typeof v=="object")v={...m};else if(!Array.isArray(v)&&typeof v!="string"&&typeof v!="number")return;u.push(c.metadataKey),a[c.metadataKey]={...c,value:v},l=!0}}),{fileMetadata:l?a:void 0,fileMetadataOrder:u}}function gb(e,t){return!e&&t?!0:!["metadata-keys","date-trigger","time-trigger","link-date-to-daily-note","date-format","time-format","hide-date-in-title","hide-tags-in-title","hide-card-count"].every(n=>e[n]===t[n])}h();function yb({onNewLane:e,closeLaneForm:t}){let{boardModifiers:r,stateManager:n}=R.useContext(We),[i,a]=R.useState(!1),[o,s]=R.useState(""),u=R.useRef(),l=ms(()=>{t()},{ignoreClass:V("ignore-click-outside")});R.useLayoutEffect(()=>{var d;(d=u.current)==null||d.focus()},[]);let c=()=>{r.addLane({...lr,id:Ve(),children:[],data:{...Ar(o),shouldMarkItemsComplete:i}}),s(""),a(!1),e()};return y("div",{ref:l,className:V("lane-form-wrapper")},y("div",{className:V("lane-input-wrapper")},y(cr,{ref:u,className:V("lane-input"),onChange:d=>s(d.target.value),onEnter:d=>{Vn(d,n)||(d.preventDefault(),c())},onSubmit:()=>{c()},onEscape:t,value:o})),y("div",{className:V("checkbox-wrapper")},y("div",{className:V("checkbox-label")},B("Mark cards in this list as complete")),y("div",{onClick:()=>a(!i),className:`checkbox-container ${i?"is-enabled":""}`})),y("div",{className:V("lane-input-actions")},y("button",{className:V("lane-action-add"),onClick:c},B("Add list")),y("button",{className:V("lane-action-cancel"),onClick:t},B("Cancel"))))}var N_=[Xe.Item,Xe.Lane],R_=[Xe.Lane],wb=({view:e,stateManager:t})=>{let r=t.useState(),n=ob(),i=R.useRef(null),a=R.useRef(null),[o,s]=R.useState(""),[u,l]=R.useState(!1),[c,d]=R.useState(""),[f,p]=R.useState((r==null?void 0:r.children.length)===0),m=t.file.path,v=t.useSetting("max-archive-size"),b=R.useCallback(()=>{(r==null?void 0:r.children.length)>0&&p(!1)},[r==null?void 0:r.children.length]);R.useEffect(()=>{(r==null?void 0:r.children.length)===0&&!t.hasError()&&p(!0)},[r==null?void 0:r.children.length,t]);let k=R.useCallback(()=>{var F;(F=i.current)==null||F.win.setTimeout(()=>{var z;let U=(z=i.current)==null?void 0:z.getElementsByClassName(V("board"));(U==null?void 0:U.length)&&us([U[0].scrollWidth,0],{elementToScroll:U[0],speed:300,minDuration:150,easing:ee=>ee===1?1:1-Math.pow(2,-10*ee)})})},[]);R.useEffect(()=>{let F=z=>{z==="editor:open-search"&&l(ee=>!ee)},U=()=>{p(!0)};return e.emitter.on("hotkey",F),e.emitter.on("showLaneForm",U),()=>{e.emitter.off("hotkey",F),e.emitter.off("showLaneForm",U)}},[e]),R.useEffect(()=>{var F;u&&((F=a.current)==null||F.focus())},[u]),R.useEffect(()=>{let F=e.getWindow(),U=o.trim(),z;return U?z=F.setTimeout(()=>{d(U)},250):d(""),()=>{F.clearTimeout(z)}},[o,e]),R.useEffect(()=>{v===void 0||v===-1||typeof v=="number"&&(r==null?void 0:r.data.archive.length)>v&&t.setState(F=>(0,vb.default)(F,{data:{archive:{$set:F.data.archive.slice(v*-1)}}}))},[r==null?void 0:r.data.archive.length,v]);let T=R.useMemo(()=>Es(t),[t]),D=R.useCallback(F=>{let U=F.target;U.tagName==="A"&&U.hasClass("internal-link")&&e.app.workspace.trigger("hover-link",{event:F,source:fn,hoverParent:e,targetEl:U,linktext:U.getAttr("href"),sourcePath:e.file.path})},[e]),I=R.useCallback(async F=>{if(F.type==="auxclick"||F.button===2)return;let U=F.target,z=U.tagName==="A"?U:U.closest("a");if(!!z){if(z.hasClass("file-link")){F.preventDefault();let ee=z.getAttribute("href"),Z=Ir(ee),le=typeof ee=="string"&&e.app.metadataCache.getFirstLinkpathDest(Z.root,e.file.path);if(!le)return;t.app.openWithDefaultApp(le.path);return}if(z.hasClass("internal-link")){F.preventDefault();let ee=z.getAttr("href"),Z=F.button===1||F.ctrlKey||F.metaKey;if(z.hasClass("is-unresolved")&&(0,ks.appHasDailyNotesPluginLoaded)()){let X=t.getSetting("date-format"),G=(0,bb.moment)(ee,X,!0);if(G.isValid()){try{let re=await(0,ks.createDailyNote)(G);await(Z?app.workspace.getLeaf(!0):app.workspace.getLeaf(!1)).openFile(re,{active:!0})}catch(re){console.error(re),t.setError(re)}return}}t.app.workspace.openLinkText(ee,m,Z);return}if(z.hasClass("tag")){F.preventDefault(),t.app.internalPlugins.getPluginById("global-search").instance.openGlobalSearch(`tag:${z.getAttr("href")}`);return}z.hasClass("external-link")&&(F.preventDefault(),window.open(z.getAttr("href"),"_blank"))}},[t,m]),H=R.useMemo(()=>({view:e,stateManager:t,boardModifiers:T,filePath:m}),[e,t,T,m]),C=Pg(t);return r==null?y("div",{className:V("loading")},y("div",{className:"sk-pulse"})):r.data.errors.length>0?y("div",null,y("div",null,"Error:"),r.data.errors.map((F,U)=>y("div",{key:U},y("div",null,F.description),y("pre",null,F.stack)))):y(xs,{id:e.id},y(We.Provider,{value:H},y(Qa.Provider,{value:c?c.toLocaleLowerCase():null},y("div",{ref:i,className:pt([wl,{"something-is-dragging":n}]),onMouseOver:D,onPointerDown:I,onClick:I,onAuxClick:I,...C},(f||r.children.length===0)&&y(yb,{onNewLane:k,closeLaneForm:b}),u&&y("div",{className:V("search-wrapper")},y("input",{ref:a,value:o,onChange:F=>{s(F.target.value)},onKeyDown:F=>{F.key==="Escape"&&(s(""),d(""),F.target.blur(),l(!1))},type:"text",className:V("filter-input"),placeholder:B("Search...")}),y("button",{className:V("search-cancel-button"),onClick:()=>{s(""),d(""),l(!1)},"aria-label":B("Cancel")},y(Zt,{name:"cross"}))),y(ps,{id:e.id,className:pt([V("board"),V("horizontal"),{"is-adding-lane":f}]),triggerTypes:N_},y("div",null,y(mi,{axis:"horizontal"},y(ib,{lanes:r.children}),y(gi,{className:V("lane-placeholder"),accepts:R_,index:r.children.length}))))))))};h();var Cb=ye(_t()),Ke=ye(require("obsidian"));h();var Lr=ye(_t());function Eb({isStatic:e,itemIndex:t,item:r,toggleShouldHideLabel:n,toggleContainsMarkdown:i,deleteKey:a,updateKey:o,updateLabel:s}){let u=R.useRef(null),l=R.useRef(null),c=R.useRef(null);fi(l,c);let d=y("div",{className:V("setting-controls-wrapper")},y("div",{className:V("setting-input-wrapper")},y("div",null,y("div",{className:V("setting-item-label")},B("Metadata key")),y("input",{type:"text",value:r.data.metadataKey,onChange:f=>o(f.target.value)})),y("div",null,y("div",{className:V("setting-item-label")},B("Display label")),y("input",{type:"text",value:r.data.label,onChange:f=>s(f.target.value)}))),y("div",{className:V("setting-toggle-wrapper")},y("div",null,y("div",{className:`checkbox-container ${r.data.shouldHideLabel?"is-enabled":""}`,onClick:n,"aria-label":B("Hide label")}),y("div",{className:V("setting-item-label")},B("Hide label"))),y("div",null,y("div",{className:`checkbox-container ${r.data.containsMarkdown?"is-enabled":""}`,onClick:i,"aria-label":B("Field contains markdown")}),y("div",{className:V("setting-item-label")},B("Field contains markdown")))));return y("div",{ref:l,className:V("setting-item-wrapper")},y("div",{ref:u,className:V("setting-item")},e?d:y(nr,{elementRef:u,measureRef:l,id:r.id,index:t,data:r},d),y("div",{className:V("setting-button-wrapper")},y("div",{onClick:a,"aria-label":B("Delete")},y(Zt,{name:"cross"})),y("div",{className:"mobile-option-setting-drag-icon","aria-label":B("Drag to rearrange"),ref:c},y(Zt,{name:"three-horizontal-bars"})))))}function H_({onChange:e,inputValue:t,keys:r,setKeys:n}){let i=a=>{e(a),n(a)};return{updateKey:a=>o=>{i((0,Lr.default)(r,{[a]:{data:{metadataKey:{$set:o}}}}))},updateLabel:a=>o=>{i((0,Lr.default)(r,{[a]:{data:{label:{$set:o}}}}))},toggleShouldHideLabel:a=>()=>{i((0,Lr.default)(r,{[a]:{data:{$toggle:["shouldHideLabel"]}}}))},toggleContainsMarkdown:a=>()=>{i((0,Lr.default)(r,{[a]:{data:{$toggle:["containsMarkdown"]}}}))},deleteKey:a=>()=>{i((0,Lr.default)(r,{$splice:[[a,1]]}))},newKey:()=>{i((0,Lr.default)(r,{$push:[{...Go,id:Ve(),data:{metadataKey:t,label:"",shouldHideLabel:!1,containsMarkdown:!1}}]}))},moveKey:(a,o)=>{let s=a.getPath(),u=o.getPath(),l=s[s.length-1],c=u[u.length-1];if(l===c)return;let d=r.slice(),[f]=d.splice(l,1);d.splice(c,0,f),i(d)}}}var B_=[Xe.MetadataSetting];function K_({keys:e,portalContainer:t}){return R.createPortal(y(ws,null,(r,n)=>{let a=r.getPath()[0],o=e[a];return y("div",{className:V("drag-container"),style:n},y(Eb,{item:o,itemIndex:a,updateKey:jr,updateLabel:jr,toggleShouldHideLabel:jr,toggleContainsMarkdown:jr,deleteKey:jr,isStatic:!0}))}),t)}function $_({scrollEl:e}){let t=R.useContext(wt);return R.useEffect(()=>{let r=0,n=()=>{e.win.clearTimeout(r),r=e.win.setTimeout(()=>{t.hitboxEntities.forEach(i=>{i.recalcInitial()})},100)};return e.addEventListener("scroll",n,{passive:!0,capture:!1}),()=>{e.removeEventListener("scroll",n)}},[e,t]),null}function U_(e){let[t,r]=R.useState(e.dataKeys),[n,i]=R.useState(""),{getShouldIMEBlockAction:a,...o}=eo(),s=Ze(e.scrollEl),{updateKey:u,updateLabel:l,toggleShouldHideLabel:c,toggleContainsMarkdown:d,deleteKey:f,newKey:p,moveKey:m}=H_({onChange:e.onChange,inputValue:n,keys:t,setKeys:r,win:s});return y(S,null,y(bs,{win:s,onDrop:m},y($_,{scrollEl:e.scrollEl}),y(xs,null,y(mi,{axis:"vertical"},t.map((v,b)=>y(Eb,{key:v.id,item:v,itemIndex:b,updateKey:u(b),updateLabel:l(b),toggleShouldHideLabel:c(b),toggleContainsMarkdown:d(b),deleteKey:f(b)})),y(gi,{accepts:B_,index:t.length}))),y(K_,{keys:t,portalContainer:e.portalContainer})),y("div",{className:V("setting-key-input-wrapper")},y("input",{placeholder:B("Metadata key"),type:"text",value:n,onChange:v=>i(v.target.value),onKeyDown:v=>{if(!a()){if(v.key==="Enter"){p(),i("");let b=v.target;b.win.setTimeout(()=>{b.scrollIntoView()});return}v.key==="Escape"&&(i(""),v.target.blur())}},...o}),y("button",{onClick:v=>{p(),i("");let b=v.target;b.win.setTimeout(()=>{b.scrollIntoView()})}},B("Add key"))))}function xb(e,t,r,n){R.render(y(U_,{dataKeys:r,scrollEl:t,onChange:n,portalContainer:Ja(e)}),e)}function kb(e){R.unmountComponentAtNode(e)}h();var _b=ye(Sb()),_s=ye(_t()),dr=ye(require("obsidian"));var Ds="@",Cs="@@";function W_(e){let t=[];return dr.Vault.recurseChildren(e.vault.getRoot(),r=>{r instanceof dr.TFolder&&t.push({value:r.path,label:r.path,selected:!1,disabled:!1})}),t}function V_(e,t){let r=[],n=t?e.vault.getAbstractFileByPath(t):null;return(!n||!(n instanceof dr.TFolder))&&(n=e.vault.getRoot()),dr.Vault.recurseChildren(n,i=>{i instanceof dr.TFile&&r.push({value:i.path,label:i.basename,selected:!1,disabled:!1})}),r}function Db(e){let{templateFolder:t,templatesEnabled:r,templaterPlugin:n}=xl(e),i=V_(e,t),a=W_(e),o="";return!r&&!n&&(o=B("Note: No template plugins are currently enabled.")),{templateFiles:i,vaultFolders:a,templateWarning:o}}function cd({choices:e,key:t,warningText:r,local:n,placeHolderStr:i,manager:a}){return o=>{o.controlEl.createEl("select",{},s=>{s.win.setTimeout(()=>{let u=e,[l,c]=a.getSetting(t,n);if(c){let p=e.findIndex(v=>v.value===c),m=e[p];u=(0,_s.default)(u,{$splice:[[p,1]],$unshift:[(0,_s.default)(m,{placeholder:{$set:!0},value:{$set:""},label:{$apply:v=>`${v} (${B("default")})`}})]})}else u=(0,_s.default)(u,{$unshift:[{placeholder:!0,value:"",label:i,selected:!1,disabled:!1}]});let d=new _b.default(s,{placeholder:!0,position:"bottom",searchPlaceholderValue:B("Search..."),searchEnabled:u.length>10,choices:u}).setChoiceByValue("");l&&typeof l=="string"&&d.setChoiceByValue(l);let f=p=>{let m=p.detail.value;m?a.applySettingsUpdate({[t]:{$set:m}}):a.applySettingsUpdate({$unset:[t]})};s.addEventListener("change",f),a.cleanupFns.push(()=>{d.destroy(),s.removeEventListener("change",f)})}),r&&o.descEl.createDiv({},u=>{u.createEl("strong",{text:r})})})}}var Tb=/^\d+(?:\.\d+)?$/,Mb={[fn]:!0,"date-display-format":!0,"date-format":!0,"date-picker-week-start":!0,"date-time-display-format":!0,"date-trigger":!0,"hide-card-count":!0,"hide-date-display":!0,"hide-date-in-title":!0,"hide-tags-display":!0,"hide-tags-in-title":!0,"lane-width":!0,"link-date-to-daily-note":!0,"max-archive-size":!0,"metadata-keys":!0,"new-card-insertion-method":!0,"new-line-trigger":!0,"new-note-folder":!0,"new-note-template":!0,"prepend-archive-date":!0,"prepend-archive-format":!0,"prepend-archive-separator":!0,"show-checkboxes":!0,"show-relative-date":!0,"time-format":!0,"time-trigger":!0,"show-add-list":!0,"show-archive-all":!0,"show-view-as-markdown":!0,"show-board-settings":!0,"show-search":!0},ud=class{constructor(t,r,n){this.cleanupFns=[];this.applyDebounceTimer=0;this.app=t.app,this.plugin=t,this.config=r,this.settings=n}applySettingsUpdate(t){this.win.clearTimeout(this.applyDebounceTimer),this.applyDebounceTimer=this.win.setTimeout(()=>{this.settings=(0,Cb.default)(this.settings,t),this.config.onSettingsChange(this.settings)},200)}getSetting(t,r){return r?[this.settings[t],this.plugin.settings[t]]:[this.settings[t],null]}constructUI(t,r,n){this.win=t.win;let{templateFiles:i,vaultFolders:a,templateWarning:o}=Db(this.app);t.createEl("h3",{text:r}),n?t.createEl("p",{text:B("These settings will take precedence over the default Kanban board settings.")}):t.createEl("p",{text:B("Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.")}),new Ke.Setting(t).setName(B("New line trigger")).setDesc(B("Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lists.")).addDropdown(s=>{s.addOption("shift-enter",B("Shift + Enter")),s.addOption("enter",B("Enter"));let[u,l]=this.getSetting("new-line-trigger",n);s.setValue(u||l||"shift-enter"),s.onChange(c=>{this.applySettingsUpdate({"new-line-trigger":{$set:c}})})}),new Ke.Setting(t).setName(B("Prepend / append new cards")).setDesc(B("This setting controls whether new cards are added to the beginning or end of the list.")).addDropdown(s=>{s.addOption("prepend",B("Prepend")),s.addOption("prepend-compact",B("Prepend (compact)")),s.addOption("append",B("Append"));let[u,l]=this.getSetting("new-card-insertion-method",n);s.setValue(u||l||"append"),s.onChange(c=>{this.applySettingsUpdate({"new-card-insertion-method":{$set:c}})})}),new Ke.Setting(t).setName(B("Note template")).setDesc(B("This template will be used when creating new notes from Kanban cards.")).then(cd({choices:i,key:"new-note-template",warningText:o,local:n,placeHolderStr:B("No template"),manager:this})),new Ke.Setting(t).setName(B("Note folder")).setDesc(B("Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.")).then(cd({choices:a,key:"new-note-folder",local:n,placeHolderStr:B("Default folder"),manager:this})),new Ke.Setting(t).setName(B("Hide card counts in list titles")).setDesc(B("When toggled, card counts are hidden from the list title")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-card-count",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-card-count":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-card-count",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-card-count"]})})})}),new Ke.Setting(t).setName(B("List width")).setDesc(B("Enter a number to set the list width in pixels.")).addText(s=>{let[u,l]=this.getSetting("lane-width",n);s.inputEl.setAttr("type","number"),s.inputEl.placeholder=`${l||"272"} (default)`,s.inputEl.value=u?u.toString():"",s.onChange(c=>{if(c&&Tb.test(c)){s.inputEl.removeClass("error"),this.applySettingsUpdate({"lane-width":{$set:parseInt(c)}});return}c&&s.inputEl.addClass("error"),this.applySettingsUpdate({$unset:["lane-width"]})})}),new Ke.Setting(t).setName(B("Maximum number of archived cards")).setDesc(B("Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.")).addText(s=>{let[u,l]=this.getSetting("max-archive-size",n);s.inputEl.setAttr("type","number"),s.inputEl.placeholder=`${l||"-1"} (default)`,s.inputEl.value=u?u.toString():"",s.onChange(c=>{if(c&&Tb.test(c)){s.inputEl.removeClass("error"),this.applySettingsUpdate({"max-archive-size":{$set:parseInt(c)}});return}c&&s.inputEl.addClass("error"),this.applySettingsUpdate({$unset:["max-archive-size"]})})}),new Ke.Setting(t).setName(B("Display card checkbox")).setDesc(B("When toggled, a checkbox will be displayed with each card")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-checkboxes",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"show-checkboxes":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-checkboxes",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-checkboxes"]})})})}),new Ke.Setting(t).setName(B("Hide tags in card titles")).setDesc(B("When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-tags-in-title",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-tags-in-title":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-tags-in-title",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-tags-in-title"]})})})}),new Ke.Setting(t).setName(B("Hide card display tags")).setDesc(B("When toggled, tags will not be displayed below the card title.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-tags-display",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-tags-display":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-tags-display",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-tags-display"]})})})}),t.createEl("h4",{text:B("Board Header Buttons")}),new Ke.Setting(t).setName(B("Add a list")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-add-list",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-add-list":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-add-list",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-add-list"]})})})}),new Ke.Setting(t).setName(B("Archive completed cards")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-archive-all",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-archive-all":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-archive-all",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-archive-all"]})})})}),new Ke.Setting(t).setName(B("Open as markdown")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-view-as-markdown",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-view-as-markdown":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-view-as-markdown",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-view-as-markdown"]})})})}),new Ke.Setting(t).setName(B("Open board settings")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-board-settings",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-board-settings":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-board-settings",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-board-settings"]})})})}),new Ke.Setting(t).setName(B("Search...")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-search",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-search":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-search",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-search"]})})})}),t.createEl("h4",{text:B("Date & Time")}),new Ke.Setting(t).setName(B("Date trigger")).setDesc(B("When this is typed, it will trigger the date selector")).addText(s=>{let[u,l]=this.getSetting("date-trigger",n);(u||l)&&s.setValue(u||l),s.setPlaceholder(l||Ds),s.onChange(c=>{c?this.applySettingsUpdate({"date-trigger":{$set:c}}):this.applySettingsUpdate({$unset:["date-trigger"]})})}),new Ke.Setting(t).setName(B("Time trigger")).setDesc(B("When this is typed, it will trigger the time selector")).addText(s=>{let[u,l]=this.getSetting("time-trigger",n);(u||l)&&s.setValue(u||l),s.setPlaceholder(l||Cs),s.onChange(c=>{c?this.applySettingsUpdate({"time-trigger":{$set:c}}):this.applySettingsUpdate({$unset:["time-trigger"]})})}),new Ke.Setting(t).setName(B("Date format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(B("This format will be used when saving dates in markdown.")),f.createEl("br"),f.appendText(B("For more syntax, refer to")+" "),f.createEl("a",{text:B("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},p=>{p.setAttr("target","_blank")}),f.createEl("br"),f.appendText(B("Your current syntax looks like this")+": "),u.setSampleEl(f.createEl("b",{cls:"u-pop"})),f.createEl("br")}));let[l,c]=this.getSetting("date-format",n),d=qr(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(f=>{f?this.applySettingsUpdate({"date-format":{$set:f}}):this.applySettingsUpdate({$unset:["date-format"]})})})}),new Ke.Setting(t).setName(B("Time format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(B("For more syntax, refer to")+" "),f.createEl("a",{text:B("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},p=>{p.setAttr("target","_blank")}),f.createEl("br"),f.appendText(B("Your current syntax looks like this")+": "),u.setSampleEl(f.createEl("b",{cls:"u-pop"})),f.createEl("br")}));let[l,c]=this.getSetting("time-format",n),d=zi(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(f=>{f?this.applySettingsUpdate({"time-format":{$set:f}}):this.applySettingsUpdate({$unset:["time-format"]})})})}),new Ke.Setting(t).setName(B("Date display format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(B("This format will be used when displaying dates in Kanban cards.")),f.createEl("br"),f.appendText(B("For more syntax, refer to")+" "),f.createEl("a",{text:B("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},p=>{p.setAttr("target","_blank")}),f.createEl("br"),f.appendText(B("Your current syntax looks like this")+": "),u.setSampleEl(f.createEl("b",{cls:"u-pop"})),f.createEl("br")}));let[l,c]=this.getSetting("date-display-format",n),d=qr(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(f=>{f?this.applySettingsUpdate({"date-display-format":{$set:f}}):this.applySettingsUpdate({$unset:["date-display-format"]})})})}),new Ke.Setting(t).setName(B("Show relative date")).setDesc(B("When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-relative-date",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"show-relative-date":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-relative-date",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-relative-date"]})})})}),new Ke.Setting(t).setName(B("Hide card display dates")).setDesc(B("When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-date-display",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-date-display":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-date-display",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-date-display"]})})})}),new Ke.Setting(t).setName(B("Hide dates in card titles")).setDesc(B("When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-date-in-title",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-date-in-title":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-date-in-title",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-date-in-title"]})})})}),new Ke.Setting(t).setName(B("Link dates to daily notes")).setDesc(B("When toggled, dates will link to daily notes. Eg. [[2021-04-26]]")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("link-date-to-daily-note",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"link-date-to-daily-note":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("link-date-to-daily-note",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["link-date-to-daily-note"]})})})}),new Ke.Setting(t).setName(B("Add date and time to archived cards")).setDesc(B("When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("prepend-archive-date",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"prepend-archive-date":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(B("Reset to default")).onClick(()=>{let[,c]=this.getSetting("prepend-archive-date",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["prepend-archive-date"]})})})}),new Ke.Setting(t).setName(B("Archive date/time separator")).setDesc(B("This will be used to separate the archived date/time from the title")).addText(s=>{let[u,l]=this.getSetting("prepend-archive-separator",n);s.inputEl.placeholder=l?`${l} (default)`:"",s.inputEl.value=u||"",s.onChange(c=>{if(c){this.applySettingsUpdate({"prepend-archive-separator":{$set:c}});return}this.applySettingsUpdate({$unset:["prepend-archive-separator"]})})}),new Ke.Setting(t).setName(B("Archive date/time format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(T=>{T.appendText(B("For more syntax, refer to")+" "),T.createEl("a",{text:B("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},D=>{D.setAttr("target","_blank")}),T.createEl("br"),T.appendText(B("Your current syntax looks like this")+": "),u.setSampleEl(T.createEl("b",{cls:"u-pop"})),T.createEl("br")}));let[l,c]=this.getSetting("prepend-archive-format",n),[d,f]=this.getSetting("date-format",n),p=d||f||qr(this.app),[m,v]=this.getSetting("time-format",n),b=m||v||zi(this.app),k=`${p} ${b}`;u.setPlaceholder(k),u.setDefaultFormat(k),(l||c)&&u.setValue(l||c),u.onChange(T=>{T?this.applySettingsUpdate({"prepend-archive-format":{$set:T}}):this.applySettingsUpdate({$unset:["prepend-archive-format"]})})})}),new Ke.Setting(t).setName(B("Calendar: first day of week")).setDesc(B("Override which day is used as the start of the week")).addDropdown(s=>{s.addOption("",B("default")),s.addOption("0",B("Sunday")),s.addOption("1",B("Monday")),s.addOption("2",B("Tuesday")),s.addOption("3",B("Wednesday")),s.addOption("4",B("Thursday")),s.addOption("5",B("Friday")),s.addOption("6",B("Saturday"));let[u,l]=this.getSetting("date-picker-week-start",n);s.setValue((u==null?void 0:u.toString())||(l==null?void 0:l.toString())||""),s.onChange(c=>{c?this.applySettingsUpdate({"date-picker-week-start":{$set:Number(c)}}):this.applySettingsUpdate({$unset:["date-picker-week-start"]})})}),t.createEl("br"),t.createEl("h4",{text:B("Linked Page Metadata")}),t.createEl("p",{cls:V("metadata-setting-desc"),text:B("Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.")}),new Ke.Setting(t).then(s=>{s.settingEl.addClass(V("draggable-setting-container"));let[u]=this.getSetting("metadata-keys",n),l=(u||[]).map(c=>({...Go,id:Ve(),data:c,win:Ze(t)}));xb(s.settingEl,t,l,c=>this.applySettingsUpdate({"metadata-keys":{$set:c.map(d=>d.data)}})),this.cleanupFns.push(()=>{s.settingEl&&kb(s.settingEl)})})}cleanUp(){this.win=null,this.cleanupFns.forEach(t=>t()),this.cleanupFns=[]}},Ts=class extends Ke.Modal{constructor(t,r,n){super(t.app);this.view=t,this.settingsManager=new ud(t.plugin,r,n)}onOpen(){let{contentEl:t,modalEl:r}=this;r.addClass(V("board-settings-modal")),this.settingsManager.constructUI(t,this.view.file.basename,!0)}onClose(){let{contentEl:t}=this;this.settingsManager.cleanUp(),t.empty()}},dd=class extends Ke.PluginSettingTab{constructor(t,r){super(t.app,t);this.plugin=t,this.settingsManager=new ud(t,r,t.settings)}display(){let{containerEl:t}=this;t.empty(),t.addClass(V("board-settings-modal")),this.settingsManager.constructUI(t,B("Kanban Plugin"),!1)}};var pn="kanban",Sa="blocks",jn=class extends Ib.TextFileView{constructor(t,r){super(t);this.actionButtons={};this.plugin=r,this.emitter=vs(),this.emitter.on("hotkey",n=>{switch(n){case"daily-notes:goto-prev":{fm(this.app,this.file);break}case"daily-notes:goto-next":{dm(this.app,this.file);break}}}),this.register(this.containerEl.onWindowMigrated(()=>{this.plugin.removeView(this),this.plugin.addView(this,this.data,this.isPrimary)}))}get isPrimary(){var t;return((t=this.plugin.getStateManager(this.file))==null?void 0:t.getAView())===this}get id(){var t;return`${this.leaf.id}:::${(t=this.file)==null?void 0:t.path}`}get isShiftPressed(){return this.plugin.isShiftPressed}setBoard(t,r=!0){this.plugin.stateManagers.get(this.file).setState(t,r)}getBoard(){return this.plugin.stateManagers.get(this.file).state}getViewType(){return pn}getIcon(){return Sa}getDisplayText(){var t;return((t=this.file)==null?void 0:t.basename)||"Kanban"}getWindow(){return Ze(this.containerEl)}async onLoadFile(t){try{return await super.onLoadFile(t)}catch(r){throw this.plugin.stateManagers.get(this.file).setError(r),r}}destroy(){this.plugin.removeView(this),Object.values(this.actionButtons).forEach(t=>t.remove()),this.actionButtons={}}async onClose(){this.destroy()}async onUnloadFile(t){return this.destroy(),await super.onUnloadFile(t)}handleRename(t,r){this.file.path===t&&this.plugin.handleViewFileRename(this,r)}requestSaveToDisk(t){this.data!==t&&this.isPrimary?(this.data=t,this.requestSave()):this.data=t}getViewData(){return this.data}setViewData(t,r){if(!pm(t)){this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.removeView(this),this.plugin.setMarkdownView(this.leaf,!1);return}this.plugin.addView(this,t,!r&&this.isPrimary)}getPortal(){let t=this.plugin.stateManagers.get(this.file);return y(wb,{stateManager:t,view:this})}onPaneMenu(t,r,n=!0){if(r!=="more-options"){super.onPaneMenu(t,r);return}t.addItem(i=>{i.setTitle(B("Open as markdown")).setIcon("document").setSection("pane").onClick(()=>{this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.setMarkdownView(this.leaf)})}).addItem(i=>{i.setTitle(B("Open board settings")).setIcon("gear").setSection("pane").onClick(()=>{let a=this.plugin.stateManagers.get(this.file),o=a.state;new Ts(this,{onSettingsChange:s=>{let u=(0,fd.default)(o,{data:{settings:{$set:s}}});a.setState(u)}},o.data.settings).open()})}).addItem(i=>{i.setTitle(B("Archive completed cards")).setIcon("sheets-in-box").setSection("pane").onClick(()=>{this.plugin.stateManagers.get(this.file).archiveCompletedCards()})}),n&&super.onPaneMenu(t,r)}initHeaderButtons(){let t=this.plugin.getStateManager(this.file);if(!!t)if(t.getSetting("show-board-settings")&&!this.actionButtons["show-board-settings"]?this.actionButtons["show-board-settings"]=this.addAction("gear",B("Open board settings"),()=>{let r=this.plugin.stateManagers.get(this.file),n=r.state;new Ts(this,{onSettingsChange:i=>{let a=(0,fd.default)(n,{data:{settings:{$set:i}}});r.setState(a)}},n.data.settings).open()}):!t.getSetting("show-board-settings")&&this.actionButtons["show-board-settings"]&&(this.actionButtons["show-board-settings"].remove(),delete this.actionButtons["show-board-settings"]),t.getSetting("show-search")&&!this.actionButtons["show-search"]?this.actionButtons["show-search"]=this.addAction("search",B("Search..."),()=>{this.emitter.emit("hotkey","editor:open-search")}):!t.getSetting("show-search")&&this.actionButtons["show-search"]&&(this.actionButtons["show-search"].remove(),delete this.actionButtons["show-search"]),t.getSetting("show-view-as-markdown")&&!this.actionButtons["show-view-as-markdown"]?this.actionButtons["show-view-as-markdown"]=this.addAction("document",B("Open as markdown"),()=>{this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.setMarkdownView(this.leaf)}):!t.getSetting("show-view-as-markdown")&&this.actionButtons["show-view-as-markdown"]&&(this.actionButtons["show-view-as-markdown"].remove(),delete this.actionButtons["show-view-as-markdown"]),t.getSetting("show-archive-all")&&!this.actionButtons["show-archive-all"]?this.actionButtons["show-archive-all"]=this.addAction("sheets-in-box",B("Archive completed cards"),()=>{this.plugin.stateManagers.get(this.file).archiveCompletedCards()}):!t.getSetting("show-archive-all")&&this.actionButtons["show-archive-all"]&&(this.actionButtons["show-archive-all"].remove(),delete this.actionButtons["show-archive-all"]),t.getSetting("show-add-list")&&!this.actionButtons["show-add-list"]){let r=this.addAction("plus-with-circle",B("Add a list"),()=>{this.emitter.emit("showLaneForm",void 0)});r.addClass(V("ignore-click-outside")),this.actionButtons["show-add-list"]=r}else!t.getSetting("show-add-list")&&this.actionButtons["show-add-list"]&&(this.actionButtons["show-add-list"].remove(),delete this.actionButtons["show-add-list"])}clear(){}};h();var Si=ye(_t()),jw=ye(require("obsidian"));h();h();var pd={};Ti(pd,{JsonPatchError:()=>it,_areEquals:()=>Ca,applyOperation:()=>Pr,applyPatch:()=>Fs,applyReducer:()=>J_,deepClone:()=>q_,getValueByPointer:()=>Ps,validate:()=>Lb,validator:()=>Os});h();h();var z_=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),j_=Object.prototype.hasOwnProperty;function Ms(e,t){return j_.call(e,t)}function Is(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var i in e)Ms(e,i)&&n.push(i);return n}function It(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function As(e){for(var t=0,r=e.length,n;t<r;){if(n=e.charCodeAt(t),n>=48&&n<=57){t++;continue}return!1}return!0}function In(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function _a(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ls(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Ls(e[t]))return!0}else if(typeof e=="object"){for(var n=Is(e),i=n.length,a=0;a<i;a++)if(Ls(e[n[a]]))return!0}}return!1}function Ab(e,t){var r=[e];for(var n in t){var i=typeof t[n]=="object"?JSON.stringify(t[n],null,2):t[n];typeof i!="undefined"&&r.push(n+": "+i)}return r.join(`
`)}var Da=function(e){z_(t,e);function t(r,n,i,a,o){var s=this.constructor,u=e.call(this,Ab(r,{name:n,index:i,operation:a,tree:o}))||this;return u.name=n,u.index=i,u.operation=a,u.tree=o,Object.setPrototypeOf(u,s.prototype),u.message=Ab(r,{name:n,index:i,operation:a,tree:o}),u}return t}(Error);var it=Da,q_=It,yi={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=Ps(r,this.path);n&&(n=It(n));var i=Pr(r,{op:"remove",path:this.from}).removed;return Pr(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=Ps(r,this.from);return Pr(r,{op:"add",path:this.path,value:It(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Ca(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Y_={add:function(e,t,r){return As(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){var n=e.splice(t,1);return{newDocument:r,removed:n[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:yi.move,copy:yi.copy,test:yi.test,_get:yi._get};function Ps(e,t){if(t=="")return e;var r={op:"_get",path:t};return Pr(e,r),r.value}function Pr(e,t,r,n,i,a){if(r===void 0&&(r=!1),n===void 0&&(n=!0),i===void 0&&(i=!0),a===void 0&&(a=0),r&&(typeof r=="function"?r(t,0,e,t.path):Os(t,0)),t.path===""){var o={newDocument:e};if(t.op==="add")return o.newDocument=t.value,o;if(t.op==="replace")return o.newDocument=t.value,o.removed=e,o;if(t.op==="move"||t.op==="copy")return o.newDocument=Ps(e,t.from),t.op==="move"&&(o.removed=e),o;if(t.op==="test"){if(o.test=Ca(e,t.value),o.test===!1)throw new it("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o.newDocument=e,o}else{if(t.op==="remove")return o.removed=e,o.newDocument=null,o;if(t.op==="_get")return t.value=e,o;if(r)throw new it("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",a,t,e);return o}}else{n||(e=It(e));var s=t.path||"",u=s.split("/"),l=e,c=1,d=u.length,f=void 0,p=void 0,m=void 0;for(typeof r=="function"?m=r:m=Os;;){if(p=u[c],p&&p.indexOf("~")!=-1&&(p=_a(p)),i&&(p=="__proto__"||p=="prototype"&&c>0&&u[c-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&f===void 0&&(l[p]===void 0?f=u.slice(0,c).join("/"):c==d-1&&(f=t.path),f!==void 0&&m(t,0,e,f)),c++,Array.isArray(l)){if(p==="-")p=l.length;else{if(r&&!As(p))throw new it("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);As(p)&&(p=~~p)}if(c>=d){if(r&&t.op==="add"&&p>l.length)throw new it("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var o=Y_[t.op].call(t,l,p,e);if(o.test===!1)throw new it("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o}}else if(c>=d){var o=yi[t.op].call(t,l,p,e);if(o.test===!1)throw new it("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o}if(l=l[p],r&&c<d&&(!l||typeof l!="object"))throw new it("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",a,t,e)}}}function Fs(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new it("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=It(e));for(var a=new Array(t.length),o=0,s=t.length;o<s;o++)a[o]=Pr(e,t[o],r,!0,i,o),e=a[o].newDocument;return a.newDocument=e,a}function J_(e,t,r){var n=Pr(e,t);if(n.test===!1)throw new it("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function Os(e,t,r,n){if(typeof e!="object"||e===null||Array.isArray(e))throw new it("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(yi[e.op]){if(typeof e.path!="string")throw new it("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new it('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new it("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new it("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ls(e.value))throw new it("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var i=e.path.split("/").length,a=n.split("/").length;if(i!==a+1&&i!==a)throw new it("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new it("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var o={op:"_get",path:e.from,value:void 0},s=Lb([o],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new it("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new it("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function Lb(e,t,r){try{if(!Array.isArray(e))throw new it("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Fs(It(t),It(e),r||!0);else{r=r||Os;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(i){if(i instanceof it)return i;throw i}}function Ca(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Array.isArray(e),n=Array.isArray(t),i,a,o;if(r&&n){if(a=e.length,a!=t.length)return!1;for(i=a;i--!=0;)if(!Ca(e[i],t[i]))return!1;return!0}if(r!=n)return!1;var s=Object.keys(e);if(a=s.length,a!==Object.keys(t).length)return!1;for(i=a;i--!=0;)if(!t.hasOwnProperty(s[i]))return!1;for(i=a;i--!=0;)if(o=s[i],!Ca(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var vd={};Ti(vd,{compare:()=>yd,generate:()=>md,observe:()=>nD,unobserve:()=>tD});h();var hd=new WeakMap,G_=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),Q_=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function X_(e){return hd.get(e)}function Z_(e,t){return e.observers.get(t)}function eD(e,t){e.observers.delete(t.callback)}function tD(e,t){t.unobserve()}function nD(e,t){var r=[],n,i=X_(e);if(!i)i=new G_(e),hd.set(e,i);else{var a=Z_(i,t);n=a&&a.observer}if(n)return n;if(n={},i.value=It(e),t){n.callback=t,n.next=null;var o=function(){md(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(o)};typeof window!="undefined"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=r,n.object=e,n.unobserve=function(){md(n),clearTimeout(n.next),eD(i,n),typeof window!="undefined"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},i.observers.set(t,new Q_(t,n)),n}function md(e,t){t===void 0&&(t=!1);var r=hd.get(e.object);gd(r.value,e.object,e.patches,"",t),e.patches.length&&Fs(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function gd(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=Is(t),o=Is(e),s=!1,u=!1,l=o.length-1;l>=0;l--){var c=o[l],d=e[c];if(Ms(t,c)&&!(t[c]===void 0&&d!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof d=="object"&&d!=null&&typeof f=="object"&&f!=null&&Array.isArray(d)===Array.isArray(f)?gd(d,f,r,n+"/"+In(c),i):d!==f&&(s=!0,i&&r.push({op:"test",path:n+"/"+In(c),value:It(d)}),r.push({op:"replace",path:n+"/"+In(c),value:It(f)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+In(c),value:It(d)}),r.push({op:"remove",path:n+"/"+In(c)}),u=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),s=!0)}if(!(!u&&a.length==o.length))for(var l=0;l<a.length;l++){var c=a[l];!Ms(e,c)&&t[c]!==void 0&&r.push({op:"add",path:n+"/"+In(c),value:It(t[c])})}}}function yd(e,t,r){r===void 0&&(r=!1);var n=[];return gd(e,t,n,"",r),n}var XB=Object.assign({},pd,vd,{JsonPatchError:Da,deepClone:It,escapePathComponent:In,unescapePathComponent:_a});var zw=ye(Fb());h();var Qs=ye(_t());h();function Ta(e,t){var{includeImageAlt:r=!0}=t||{};return Ob(e,r)}function Ob(e,t){return e&&typeof e=="object"&&(e.value||(t?e.alt:"")||"children"in e&&Nb(e.children,t)||Array.isArray(e)&&Nb(e,t))||""}function Nb(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=Ob(e[n],t);return r.join("")}var Bw=ye(require("obsidian"));h();h();h();var bd=function(e){if(e==null)return oD;if(typeof e=="string")return aD(e);if(typeof e=="object")return Array.isArray(e)?rD(e):iD(e);if(typeof e=="function")return Rs(e);throw new Error("Expected function, string, or object as test")};function rD(e){let t=[],r=-1;for(;++r<e.length;)t[r]=bd(e[r]);return Rs(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].call(this,...i))return!0;return!1}}function iD(e){return Rs(t);function t(r){let n;for(n in e)if(r[n]!==e[n])return!1;return!0}}function aD(e){return Rs(t);function t(r){return r&&r.type===e}}function Rs(e){return t;function t(...r){return Boolean(e.call(this,...r))}}function oD(){return!0}h();function Rb(e){return""+e+""}var Hb=!0,Bb="skip",wd=!1,Kb=function(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null);let i=bd(t),a=n?-1:1;o(e,null,[])();function o(s,u,l){let c=typeof s=="object"&&s!==null?s:{},d;return typeof c.type=="string"&&(d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+Rb(c.type+(d?"<"+d+">":""))+")"})),f;function f(){let p=[],m,v,b;if((!t||i(s,u,l[l.length-1]||null))&&(p=sD(r(s,l)),p[0]===wd))return p;if(s.children&&p[0]!==Bb)for(v=(n?s.children.length:-1)+a,b=l.concat(s);v>-1&&v<s.children.length;){if(m=o(s.children[v],v,b)(),m[0]===wd)return m;v=typeof m[1]=="number"?m[1]:v+a}return p}}};function sD(e){return Array.isArray(e)?e:typeof e=="number"?[Hb,e]:[e]}var $b=function(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),Kb(e,t,i,n);function i(a,o){let s=o[o.length-1];return r(a,s?s.children.indexOf(a):null,s)}};h();function Ed(e){if(e.children.length===0)return null;let t=e.children.length-1;return e.children[t].type==="blockid"?t===0?{start:e.children[0].position.start.offset,end:e.children[0].position.start.offset}:{start:e.children[0].position.start.offset,end:e.children[t-1].position.end.offset}:{start:e.children[0].position.start.offset,end:e.children[t].position.end.offset}}function xd(e,t){return t?e.slice(t.start,t.end):""}function Ub(e,t){return t<=0?null:e[t-1]}function Wb(e,t,r,n=()=>!0){for(let i=t+1,a=e.length;i<a;i++){let o=e[i];if(r===o.type)return o;if(!n(o))return null}return null}h();var kd=ye(require("obsidian"));async function Vb(e,t){try{let r=await ba(e.getAView(),t.data.title);return t.data.dom=r,t}catch(r){throw e.setError(r),r}}async function Ma(e,t){let r;try{r=await ba(e.getAView(),t.data.title)}catch(o){throw e.setError(o),o}t.data.dom=r,t.data.titleSearch=hb(r,t.data.metadata.tags,t.data.metadata.fileMetadata);let{dateStr:n,timeStr:i,fileAccessor:a}=t.data.metadata;if(n&&(t.data.metadata.date=(0,kd.moment)(n,e.getSetting("date-format"))),i){let o=(0,kd.moment)(i,e.getSetting("time-format"));if(t.data.metadata.date){let s=t.data.metadata.date;s.hour(o.hour()),s.minute(o.minute()),o=s.clone()}t.data.metadata.time=o}if(a){let o=e.app.metadataCache.getFirstLinkpathDest(a.target,e.file.path);o&&(t.data.metadata.file=o)}return t}async function zb(e,t){try{await Promise.all(t.children.map(async r=>{try{await Vb(e,r),await Promise.all(r.children.map(n=>Ma(e,n)))}catch(n){throw e.setError(n),n}}))}catch(r){throw e.setError(r),r}return t}function lD(e){return(e.op==="add"||e.op==="replace")&&["/title","/titleRaw","/dateStr","/timeStr",/\d$/,/\/fileAccessor\/.+$/].some(t=>typeof t=="string"?e.path.endsWith(t):t.test(e.path))}async function jb(e,t,r){let n={},i=r.reduce((a,o)=>{if(!lD(o))return a;let s=o.path.split("/").reduce((l,c)=>(/\d+/.test(c)&&l.push(Number(c)),l),[]),u=s.join(",");return n[u]||(n[u]=!0,a.push(s)),a},[]);try{await Promise.all(i.map(a=>{let o=ft(t,a);if(o.type===Xe.Lane)return Vb(e,o);if(o.type===Xe.Item)return Ma(e,o)}))}catch(a){throw e.setError(a),a}return t}h();h();h();h();h();h();function At(e,t,r,n){let i=e.length,a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),[].splice.apply(e,o);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function Vt(e,t){return e.length>0?(At(e,e.length,0,t),e):t}var qb={}.hasOwnProperty;function Yb(e){let t={},r=-1;for(;++r<e.length;)cD(t,e[r]);return t}function cD(e,t){let r;for(r in t){let i=(qb.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r],o;for(o in a){qb.call(i,o)||(i[o]=[]);let s=a[o];uD(i[o],Array.isArray(s)?s:s?[s]:[])}}}function uD(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);At(e,0,0,n)}h();h();h();h();var Jb=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var sn=fr(/[A-Za-z]/),Ia=fr(/\d/),Gb=fr(/[\dA-Fa-f]/),zt=fr(/[\dA-Za-z]/),Qb=fr(/[!-/:-@[-`{-~]/),Sd=fr(/[#-'*+\--9=?A-Z^-~]/);function Aa(e){return e!==null&&(e<32||e===127)}function Ge(e){return e!==null&&(e<0||e===32)}function ce(e){return e!==null&&e<-2}function He(e){return e===-2||e===-1||e===32}var Xb=fr(/\s/),Zb=fr(Jb);function fr(e){return t;function t(r){return r!==null&&e.test(String.fromCharCode(r))}}function Se(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,a=0;return o;function o(u){return He(u)?(e.enter(r),s(u)):t(u)}function s(u){return He(u)&&a++<i?(e.consume(u),s):(e.exit(r),t(u))}}var ew={tokenize:dD};function dD(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Se(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){let u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ce(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}h();var tw={tokenize:fD},nw={tokenize:pD};function fD(e){let t=this,r=[],n=0,i,a,o;return s;function s(D){if(n<r.length){let I=r[n];return t.containerState=I[1],e.attempt(I[0].continuation,u,l)(D)}return l(D)}function u(D){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();let I=t.events.length,H=I,C;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){C=t.events[H][1].end;break}k(n);let F=I;for(;F<t.events.length;)t.events[F][1].end=Object.assign({},C),F++;return At(t.events,H+1,0,t.events.slice(I)),t.events.length=F,l(D)}return s(D)}function l(D){if(n===r.length){if(!i)return f(D);if(i.currentConstruct&&i.currentConstruct.concrete)return m(D);t.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(nw,c,d)(D)}function c(D){return i&&T(),k(n),f(D)}function d(D){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,m(D)}function f(D){return t.containerState={},e.attempt(nw,p,m)(D)}function p(D){return n++,r.push([t.currentConstruct,t.containerState]),f(D)}function m(D){if(D===null){i&&T(),k(0),e.consume(D);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(D)}function v(D){if(D===null){b(e.exit("chunkFlow"),!0),k(0),e.consume(D);return}return ce(D)?(e.consume(D),b(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(D),v)}function b(D,I){let H=t.sliceStream(D);if(I&&H.push(null),D.previous=a,a&&(a.next=D),a=D,i.defineSkip(D.start),i.write(H),t.parser.lazy[D.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<o&&(!i.events[C][1].end||i.events[C][1].end.offset>o))return;let F=t.events.length,U=F,z,ee;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(z){ee=t.events[U][1].end;break}z=!0}for(k(n),C=F;C<t.events.length;)t.events[C][1].end=Object.assign({},ee),C++;At(t.events,U+1,0,t.events.slice(F)),t.events.length=C}}function k(D){let I=r.length;for(;I-- >D;){let H=r[I];t.containerState=H[1],H[0].exit.call(t,e)}r.length=D}function T(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function pD(e,t,r){return Se(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}h();h();h();h();function _d(e){if(e===null||Ge(e)||Xb(e))return 1;if(Zb(e))return 2}h();function vi(e,t,r){let n=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}var La={name:"attention",tokenize:mD,resolveAll:hD};function hD(e,t){let r=-1,n,i,a,o,s,u,l,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),f=Object.assign({},e[r][1].start);rw(d,-u),rw(f,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:f},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Vt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Vt(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=Vt(l,vi(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),l=Vt(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,l=Vt(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,At(e,n-1,r-n+3,l),r=n+l.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function mD(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=_d(n),a;return o;function o(u){return e.enter("attentionSequence"),a=u,s(u)}function s(u){if(u===a)return e.consume(u),s;let l=e.exit("attentionSequence"),c=_d(u),d=!c||c===2&&i||r.includes(u),f=!i||i===2&&c||r.includes(n);return l._open=Boolean(a===42?d:d&&(i||!f)),l._close=Boolean(a===42?f:f&&(c||!d)),t(u)}}function rw(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}h();var Dd={name:"autolink",tokenize:gD};function gD(e,t,r){let n=1;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return sn(m)?(e.consume(m),o):Sd(m)?l(m):r(m)}function o(m){return m===43||m===45||m===46||zt(m)?s(m):l(m)}function s(m){return m===58?(e.consume(m),u):(m===43||m===45||m===46||zt(m))&&n++<32?(e.consume(m),s):l(m)}function u(m){return m===62?(e.exit("autolinkProtocol"),p(m)):m===null||m===32||m===60||Aa(m)?r(m):(e.consume(m),u)}function l(m){return m===64?(e.consume(m),n=0,c):Sd(m)?(e.consume(m),l):r(m)}function c(m){return zt(m)?d(m):r(m)}function d(m){return m===46?(e.consume(m),n=0,c):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",p(m)):f(m)}function f(m){return(m===45||zt(m))&&n++<63?(e.consume(m),m===45?f:d):r(m)}function p(m){return e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t}}h();var pr={tokenize:yD,partial:!0};function yD(e,t,r){return Se(e,n,"linePrefix");function n(i){return i===null||ce(i)?t(i):r(i)}}h();var Hs={name:"blockQuote",tokenize:vD,continuation:{tokenize:bD},exit:wD};function vD(e,t,r){let n=this;return i;function i(o){if(o===62){let s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return He(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function bD(e,t,r){return Se(e,e.attempt(Hs,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wD(e){e.exit("blockQuote")}h();var Bs={name:"characterEscape",tokenize:ED};function ED(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Qb(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}h();h();h();var Cd={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var xD={}.hasOwnProperty;function bi(e){return xD.call(Cd,e)?Cd[e]:!1}var Ks={name:"characterReference",tokenize:kD};function kD(e,t,r){let n=this,i=0,a,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=zt,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Gb,c):(e.enter("characterReferenceValue"),a=7,o=Ia,c(d))}function c(d){let f;return d===59&&i?(f=e.exit("characterReferenceValue"),o===zt&&!bi(n.sliceSerialize(f))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):o(d)&&i++<a?(e.consume(d),c):r(d)}}h();var $s={name:"codeFenced",tokenize:SD,concrete:!0};function SD(e,t,r){let n=this,i={tokenize:H,partial:!0},a={tokenize:I,partial:!0},o=this.events[this.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0,l;return c;function c(C){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l=C,d(C)}function d(C){return C===l?(e.consume(C),u++,d):(e.exit("codeFencedFenceSequence"),u<3?r(C):Se(e,f,"whitespace")(C))}function f(C){return C===null||ce(C)?b(C):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||Ge(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,m,"whitespace")(C)):C===96&&C===l?r(C):(e.consume(C),p)}function m(C){return C===null||ce(C)?b(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(C))}function v(C){return C===null||ce(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),b(C)):C===96&&C===l?r(C):(e.consume(C),v)}function b(C){return e.exit("codeFencedFence"),n.interrupt?t(C):k(C)}function k(C){return C===null?D(C):ce(C)?e.attempt(a,e.attempt(i,D,s?Se(e,k,"linePrefix",s+1):k),D)(C):(e.enter("codeFlowValue"),T(C))}function T(C){return C===null||ce(C)?(e.exit("codeFlowValue"),k(C)):(e.consume(C),T)}function D(C){return e.exit("codeFenced"),t(C)}function I(C,F,U){let z=this;return ee;function ee(le){return C.enter("lineEnding"),C.consume(le),C.exit("lineEnding"),Z}function Z(le){return z.parser.lazy[z.now().line]?U(le):F(le)}}function H(C,F,U){let z=0;return Se(C,ee,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ee(X){return C.enter("codeFencedFence"),C.enter("codeFencedFenceSequence"),Z(X)}function Z(X){return X===l?(C.consume(X),z++,Z):z<u?U(X):(C.exit("codeFencedFenceSequence"),Se(C,le,"whitespace")(X))}function le(X){return X===null||ce(X)?(C.exit("codeFencedFence"),F(X)):U(X)}}}h();var Pa={name:"codeIndented",tokenize:DD},_D={tokenize:CD,partial:!0};function DD(e,t,r){let n=this;return i;function i(l){return e.enter("codeIndented"),Se(e,a,"linePrefix",4+1)(l)}function a(l){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(l):r(l)}function o(l){return l===null?u(l):ce(l)?e.attempt(_D,o,u)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||ce(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function u(l){return e.exit("codeIndented"),t(l)}}function CD(e,t,r){let n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):ce(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Se(e,a,"linePrefix",4+1)(o)}function a(o){let s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):ce(o)?i(o):r(o)}}h();var Td={name:"codeText",tokenize:ID,resolve:TD,previous:MD};function TD(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function MD(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ID(e,t,r){let n=this,i=0,a,o;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),i++,u):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===96?(o=e.enter("codeTextSequence"),a=0,d(f)):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):ce(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||ce(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),a++,d):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",c(f))}}h();h();function Us(e){let t={},r=-1,n,i,a,o,s,u,l;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,AD(e,r)),r=t[r],l=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),At(e,i,r-i+1,s))}}return!l}function AD(e,t){let r=e[t][1],n=e[t][2],i=t-1,a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,u=[],l={},c,d,f=-1,p=r,m=0,v=0,b=[v];for(;p;){for(;e[++i][1]!==p;);a.push(i),p._tokenizer||(c=n.sliceStream(p),p.next||c.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=r;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,b.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),f=b.length;f--;){let k=s.slice(b[f],b[f+1]),T=a.pop();u.unshift([T,T+k.length-1]),At(e,T,2,k)}for(f=-1;++f<u.length;)l[m+u[f][0]]=m+u[f][1],m+=u[f][1]-u[f][0]-1;return l}var Md={tokenize:FD,resolve:PD},LD={tokenize:OD,partial:!0};function PD(e){return Us(e),e}function FD(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):ce(s)?e.check(LD,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function OD(e,t,r){let n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,a,"linePrefix")}function a(o){if(o===null||ce(o))return r(o);let s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}h();h();function Ws(e,t,r,n,i,a,o,s,u){let l=u||Number.POSITIVE_INFINITY,c=0;return d;function d(k){return k===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(k),e.exit(a),f):k===null||k===41||Aa(k)?r(k):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(k))}function f(k){return k===62?(e.enter(a),e.consume(k),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(s),f(k)):k===null||k===60||ce(k)?r(k):(e.consume(k),k===92?m:p)}function m(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function v(k){return k===40?++c>l?r(k):(e.consume(k),v):k===41?c--?(e.consume(k),v):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(k)):k===null||Ge(k)?c?r(k):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(k)):Aa(k)?r(k):(e.consume(k),k===92?b:v)}function b(k){return k===40||k===41||k===92?(e.consume(k),v):v(k)}}h();function Vs(e,t,r,n,i,a){let o=this,s=0,u;return l;function l(p){return e.enter(n),e.enter(i),e.consume(p),e.exit(i),e.enter(a),c}function c(p){return p===null||p===91||p===93&&!u||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs||s>999?r(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):ce(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ce(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u=u||!He(p),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}h();function zs(e,t,r,n,i,a){let o;return s;function s(f){return e.enter(n),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,u}function u(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):(e.enter(a),l(f))}function l(f){return f===o?(e.exit(a),u(o)):f===null?r(f):ce(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Se(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||ce(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}h();function Fr(e,t){let r;return n;function n(i){return ce(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):He(i)?Se(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}h();function qn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Id={name:"definition",tokenize:RD},ND={tokenize:HD,partial:!0};function RD(e,t,r){let n=this,i;return a;function a(u){return e.enter("definition"),Vs.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(u)}function o(u){return i=qn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),Fr(e,Ws(e,e.attempt(ND,Se(e,s,"whitespace"),Se(e,s,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(u)}function s(u){return u===null||ce(u)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(u)):r(u)}}function HD(e,t,r){return n;function n(o){return Ge(o)?Fr(e,i)(o):r(o)}function i(o){return o===34||o===39||o===40?zs(e,Se(e,a,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o):r(o)}function a(o){return o===null||ce(o)?t(o):r(o)}}h();var Ad={name:"hardBreakEscape",tokenize:BD};function BD(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(a),i}function i(a){return ce(a)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(a)):r(a)}}h();var Ld={name:"headingAtx",tokenize:$D,resolve:KD};function KD(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},At(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function $D(e,t,r){let n=this,i=0;return a;function a(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&i++<6?(e.consume(c),o):c===null||Ge(c)?(e.exit("atxHeadingSequence"),n.interrupt?t(c):s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||ce(c)?(e.exit("atxHeading"),t(c)):He(c)?Se(e,s,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),s(c))}function l(c){return c===null||c===35||Ge(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),l)}}h();h();var iw=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Pd=["pre","script","style","textarea"];var Fd={name:"htmlFlow",tokenize:VD,resolveTo:WD,concrete:!0},UD={tokenize:zD,partial:!0};function WD(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function VD(e,t,r){let n=this,i,a,o,s,u;return l;function l(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),c}function c(P){return P===33?(e.consume(P),d):P===47?(e.consume(P),m):P===63?(e.consume(P),i=3,n.interrupt?t:be):sn(P)?(e.consume(P),o=String.fromCharCode(P),a=!0,v):r(P)}function d(P){return P===45?(e.consume(P),i=2,f):P===91?(e.consume(P),i=5,o="CDATA[",s=0,p):sn(P)?(e.consume(P),i=4,n.interrupt?t:be):r(P)}function f(P){return P===45?(e.consume(P),n.interrupt?t:be):r(P)}function p(P){return P===o.charCodeAt(s++)?(e.consume(P),s===o.length?n.interrupt?t:Z:p):r(P)}function m(P){return sn(P)?(e.consume(P),o=String.fromCharCode(P),v):r(P)}function v(P){return P===null||P===47||P===62||Ge(P)?P!==47&&a&&Pd.includes(o.toLowerCase())?(i=1,n.interrupt?t(P):Z(P)):iw.includes(o.toLowerCase())?(i=6,P===47?(e.consume(P),b):n.interrupt?t(P):Z(P)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(P):a?T(P):k(P)):P===45||zt(P)?(e.consume(P),o+=String.fromCharCode(P),v):r(P)}function b(P){return P===62?(e.consume(P),n.interrupt?t:Z):r(P)}function k(P){return He(P)?(e.consume(P),k):z(P)}function T(P){return P===47?(e.consume(P),z):P===58||P===95||sn(P)?(e.consume(P),D):He(P)?(e.consume(P),T):z(P)}function D(P){return P===45||P===46||P===58||P===95||zt(P)?(e.consume(P),D):I(P)}function I(P){return P===61?(e.consume(P),H):He(P)?(e.consume(P),I):T(P)}function H(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),u=P,C):He(P)?(e.consume(P),H):(u=null,F(P))}function C(P){return P===null||ce(P)?r(P):P===u?(e.consume(P),U):(e.consume(P),C)}function F(P){return P===null||P===34||P===39||P===60||P===61||P===62||P===96||Ge(P)?I(P):(e.consume(P),F)}function U(P){return P===47||P===62||He(P)?T(P):r(P)}function z(P){return P===62?(e.consume(P),ee):r(P)}function ee(P){return He(P)?(e.consume(P),ee):P===null||ce(P)?Z(P):r(P)}function Z(P){return P===45&&i===2?(e.consume(P),re):P===60&&i===1?(e.consume(P),pe):P===62&&i===4?(e.consume(P),Te):P===63&&i===3?(e.consume(P),be):P===93&&i===5?(e.consume(P),ge):ce(P)&&(i===6||i===7)?e.check(UD,Te,le)(P):P===null||ce(P)?le(P):(e.consume(P),Z)}function le(P){return e.exit("htmlFlowData"),X(P)}function X(P){return P===null?L(P):ce(P)?e.attempt({tokenize:G,partial:!0},X,L)(P):(e.enter("htmlFlowData"),Z(P))}function G(P,lt,Je){return W;function W(q){return P.enter("lineEnding"),P.consume(q),P.exit("lineEnding"),j}function j(q){return n.parser.lazy[n.now().line]?Je(q):lt(q)}}function re(P){return P===45?(e.consume(P),be):Z(P)}function pe(P){return P===47?(e.consume(P),o="",he):Z(P)}function he(P){return P===62&&Pd.includes(o.toLowerCase())?(e.consume(P),Te):sn(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),he):Z(P)}function ge(P){return P===93?(e.consume(P),be):Z(P)}function be(P){return P===62?(e.consume(P),Te):P===45&&i===2?(e.consume(P),be):Z(P)}function Te(P){return P===null||ce(P)?(e.exit("htmlFlowData"),L(P)):(e.consume(P),Te)}function L(P){return e.exit("htmlFlow"),t(P)}}function zD(e,t,r){return n;function n(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(pr,t,r)}}h();var Od={name:"htmlText",tokenize:jD};function jD(e,t,r){let n=this,i,a,o,s;return u;function u(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),F):L===63?(e.consume(L),H):sn(L)?(e.consume(L),ee):r(L)}function c(L){return L===45?(e.consume(L),d):L===91?(e.consume(L),a="CDATA[",o=0,b):sn(L)?(e.consume(L),I):r(L)}function d(L){return L===45?(e.consume(L),f):r(L)}function f(L){return L===null||L===62?r(L):L===45?(e.consume(L),p):m(L)}function p(L){return L===null||L===62?r(L):m(L)}function m(L){return L===null?r(L):L===45?(e.consume(L),v):ce(L)?(s=m,ge(L)):(e.consume(L),m)}function v(L){return L===45?(e.consume(L),Te):m(L)}function b(L){return L===a.charCodeAt(o++)?(e.consume(L),o===a.length?k:b):r(L)}function k(L){return L===null?r(L):L===93?(e.consume(L),T):ce(L)?(s=k,ge(L)):(e.consume(L),k)}function T(L){return L===93?(e.consume(L),D):k(L)}function D(L){return L===62?Te(L):L===93?(e.consume(L),D):k(L)}function I(L){return L===null||L===62?Te(L):ce(L)?(s=I,ge(L)):(e.consume(L),I)}function H(L){return L===null?r(L):L===63?(e.consume(L),C):ce(L)?(s=H,ge(L)):(e.consume(L),H)}function C(L){return L===62?Te(L):H(L)}function F(L){return sn(L)?(e.consume(L),U):r(L)}function U(L){return L===45||zt(L)?(e.consume(L),U):z(L)}function z(L){return ce(L)?(s=z,ge(L)):He(L)?(e.consume(L),z):Te(L)}function ee(L){return L===45||zt(L)?(e.consume(L),ee):L===47||L===62||Ge(L)?Z(L):r(L)}function Z(L){return L===47?(e.consume(L),Te):L===58||L===95||sn(L)?(e.consume(L),le):ce(L)?(s=Z,ge(L)):He(L)?(e.consume(L),Z):Te(L)}function le(L){return L===45||L===46||L===58||L===95||zt(L)?(e.consume(L),le):X(L)}function X(L){return L===61?(e.consume(L),G):ce(L)?(s=X,ge(L)):He(L)?(e.consume(L),X):Z(L)}function G(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,re):ce(L)?(s=G,ge(L)):He(L)?(e.consume(L),G):(e.consume(L),i=void 0,he)}function re(L){return L===i?(e.consume(L),pe):L===null?r(L):ce(L)?(s=re,ge(L)):(e.consume(L),re)}function pe(L){return L===62||L===47||Ge(L)?Z(L):r(L)}function he(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===62||Ge(L)?Z(L):(e.consume(L),he)}function ge(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),Se(e,be,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function be(L){return e.enter("htmlTextData"),s(L)}function Te(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}}h();var Or={name:"labelEnd",tokenize:XD,resolveTo:QD,resolveAll:GD},qD={tokenize:ZD},YD={tokenize:eC},JD={tokenize:tC};function GD(e){let t=-1,r;for(;++t<e.length;)r=e[t][1],(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++);return e}function QD(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);let u={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",u,t],["enter",l,t]],s=Vt(s,e.slice(a+1,a+n+3)),s=Vt(s,[["enter",c,t]]),s=Vt(s,vi(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=Vt(s,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),s=Vt(s,e.slice(o+1)),s=Vt(s,[["exit",u,t]]),At(e,a,e.length,s),e}function XD(e,t,r){let n=this,i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(c){return a?a._inactive?l(c):(o=n.parser.defined.includes(qn(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelEnd"),u):r(c)}function u(c){return c===40?e.attempt(qD,t,o?t:l)(c):c===91?e.attempt(YD,t,o?e.attempt(JD,t,l):l)(c):o?t(c):l(c)}function l(c){return a._balanced=!0,r(c)}}function ZD(e,t,r){return n;function n(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),Fr(e,i)}function i(u){return u===41?s(u):Ws(e,a,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function a(u){return Ge(u)?Fr(e,o)(u):s(u)}function o(u){return u===34||u===39||u===40?zs(e,Fr(e,s),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):s(u)}function s(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):r(u)}}function eC(e,t,r){let n=this;return i;function i(o){return Vs.call(n,e,a,r,"reference","referenceMarker","referenceString")(o)}function a(o){return n.parser.defined.includes(qn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}}function tC(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}h();var Nd={name:"labelStartImage",tokenize:nC,resolveAll:Or.resolveAll};function nC(e,t,r){let n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}h();var Rd={name:"labelStartLink",tokenize:rC,resolveAll:Or.resolveAll};function rC(e,t,r){let n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}h();var Fa={name:"lineEnding",tokenize:iC};function iC(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Se(e,t,"linePrefix")}}h();h();var Nr={name:"thematicBreak",tokenize:aC};function aC(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):He(u)?Se(e,o,"whitespace")(u):n<3||u!==null&&!ce(u)?r(u):(e.exit("thematicBreak"),t(u))}function s(u){return u===i?(e.consume(u),n++,s):(e.exit("thematicBreakSequence"),o(u))}}var Bt={name:"list",tokenize:lC,continuation:{tokenize:cC},exit:dC},oC={tokenize:fC,partial:!0},sC={tokenize:uC,partial:!0};function lC(e,t,r){let n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){let m=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:Ia(p)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Nr,r,l)(p):l(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return r(p)}function u(p){return Ia(p)&&++o<10?(e.consume(p),u):(!n.interrupt||o<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):r(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(pr,n.interrupt?r:c,e.attempt(oC,f,d))}function c(p){return n.containerState.initialBlankLine=!0,a++,f(p)}function d(p){return He(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):r(p)}function f(p){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function cC(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(pr,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Se(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!He(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(sC,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Se(e,e.attempt(Bt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function uC(e,t,r){let n=this;return Se(e,i,"listItemIndent",n.containerState.size+1);function i(a){let o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function dC(e){e.exit(this.containerState.type)}function fC(e,t,r){let n=this;return Se(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){let o=n.events[n.events.length-1];return!He(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}h();var js={name:"setextUnderline",tokenize:hC,resolveTo:pC};function pC(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);let o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function hC(e,t,r){let n=this,i=n.events.length,a,o;for(;i--;)if(n.events[i][1].type!=="lineEnding"&&n.events[i][1].type!=="linePrefix"&&n.events[i][1].type!=="content"){o=n.events[i][1].type==="paragraph";break}return s;function s(c){return!n.parser.lazy[n.now().line]&&(n.interrupt||o)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=c,u(c)):r(c)}function u(c){return c===a?(e.consume(c),u):(e.exit("setextHeadingLineSequence"),Se(e,l,"lineSuffix")(c))}function l(c){return c===null||ce(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}var aw={tokenize:mC};function mC(e){let t=this,r=e.attempt(pr,n,e.attempt(this.parser.constructs.flowInitial,i,Se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Md,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}h();var ow={resolveAll:uw()},sw=cw("string"),lw=cw("text");function cw(e){return{tokenize:t,resolveAll:uw(e==="text"?gC:void 0)};function t(r){let n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return l(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),u}function u(c){return l(c)?(r.exit("data"),a(c)):(r.consume(c),u)}function l(c){if(c===null)return!0;let d=i[c],f=-1;if(d)for(;++f<d.length;){let p=d[f];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function uw(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function gC(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),a=i.length,o=-1,s=0,u;for(;a--;){let l=i[a];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)u=!0,s++;else if(l!==-1){a++;break}}if(s){let l={type:r===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},l.start),n.start.offset===n.end.offset?Object.assign(n,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}h();function dw(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},a=[],o=[],s=[],u=!0,l={consume:I,enter:H,exit:C,attempt:z(F),check:z(U),interrupt:z(U,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:v,sliceSerialize:m,now:b,defineSkip:k,write:p},d=t.tokenize.call(c,l),f;return t.resolveAll&&a.push(t),c;function p(X){return o=Vt(o,X),T(),o[o.length-1]!==null?[]:(ee(t,0),c.events=vi(a,c.events,c),c.events)}function m(X,G){return vC(v(X),G)}function v(X){return yC(o,X)}function b(){return Object.assign({},n)}function k(X){i[X.line]=X.column,le()}function T(){let X;for(;n._index<o.length;){let G=o[n._index];if(typeof G=="string")for(X=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===X&&n._bufferIndex<G.length;)D(G.charCodeAt(n._bufferIndex));else D(G)}}function D(X){u=void 0,f=X,d=d(X)}function I(X){ce(X)?(n.line++,n.column=1,n.offset+=X===-3?2:1,le()):X!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=X,u=!0}function H(X,G){let re=G||{};return re.type=X,re.start=b(),c.events.push(["enter",re,c]),s.push(re),re}function C(X){let G=s.pop();return G.end=b(),c.events.push(["exit",G,c]),G}function F(X,G){ee(X,G.from)}function U(X,G){G.restore()}function z(X,G){return re;function re(pe,he,ge){let be,Te,L,P;return Array.isArray(pe)?Je(pe):"tokenize"in pe?Je([pe]):lt(pe);function lt(te){return we;function we(ke){let $e=ke!==null&&te[ke],ct=ke!==null&&te.null,mt=[...Array.isArray($e)?$e:$e?[$e]:[],...Array.isArray(ct)?ct:ct?[ct]:[]];return Je(mt)(ke)}}function Je(te){return be=te,Te=0,te.length===0?ge:W(te[Te])}function W(te){return we;function we(ke){return P=Z(),L=te,te.partial||(c.currentConstruct=te),te.name&&c.parser.constructs.disable.null.includes(te.name)?q(ke):te.tokenize.call(G?Object.assign(Object.create(c),G):c,l,j,q)(ke)}}function j(te){return u=!0,X(L,P),he}function q(te){return u=!0,P.restore(),++Te<be.length?W(be[Te]):ge}}}function ee(X,G){X.resolveAll&&!a.includes(X)&&a.push(X),X.resolve&&At(c.events,G,c.events.length-G,X.resolve(c.events.slice(G),c)),X.resolveTo&&(c.events=X.resolveTo(c.events,c))}function Z(){let X=b(),G=c.previous,re=c.currentConstruct,pe=c.events.length,he=Array.from(s);return{restore:ge,from:pe};function ge(){n=X,c.previous=G,c.currentConstruct=re,c.events.length=pe,s=he,le()}}function le(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function yC(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;return r===i?o=[e[r].slice(n,a)]:(o=e.slice(r,i),n>-1&&(o[0]=o[0].slice(n)),a>0&&o.push(e[i].slice(0,a))),o}function vC(e,t){let r=-1,n=[],i;for(;++r<e.length;){let a=e[r],o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}var Hd={};Ti(Hd,{attentionMarkers:()=>DC,contentInitial:()=>wC,disable:()=>CC,document:()=>bC,flow:()=>xC,flowInitial:()=>EC,insideSpan:()=>_C,string:()=>kC,text:()=>SC});h();var bC={[42]:Bt,[43]:Bt,[45]:Bt,[48]:Bt,[49]:Bt,[50]:Bt,[51]:Bt,[52]:Bt,[53]:Bt,[54]:Bt,[55]:Bt,[56]:Bt,[57]:Bt,[62]:Hs},wC={[91]:Id},EC={[-2]:Pa,[-1]:Pa,[32]:Pa},xC={[35]:Ld,[42]:Nr,[45]:[js,Nr],[60]:Fd,[61]:js,[95]:Nr,[96]:$s,[126]:$s},kC={[38]:Ks,[92]:Bs},SC={[-5]:Fa,[-4]:Fa,[-3]:Fa,[33]:Nd,[38]:Ks,[42]:La,[60]:[Dd,Od],[91]:Rd,[92]:[Ad,Bs],[93]:Or,[95]:La,[96]:Td},_C={null:[La,ow]},DC={null:[42,95]},CC={null:[]};function fw(e={}){let t=Yb([Hd].concat(e.extensions||[])),r={defined:[],lazy:{},constructs:t,content:n(ew),document:n(tw),flow:n(aw),string:n(sw),text:n(lw)};return r;function n(i){return a;function a(o){return dw(r,i,o)}}}h();var pw=/[\0\t\n\r]/g;function hw(){let e=1,t="",r=!0,n;return i;function i(a,o,s){let u=[],l,c,d,f,p;for(a=t+a.toString(o),d=0,t="",r&&(a.charCodeAt(0)===65279&&d++,r=void 0);d<a.length;){if(pw.lastIndex=d,l=pw.exec(a),f=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(f),!l){t=a.slice(d);break}if(p===10&&d===f&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),d<f&&(u.push(a.slice(d,f)),e+=f-d),p){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}d=f+1}return s&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}h();function mw(e){for(;!Us(e););return e}h();function qs(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)==65535||(r&65535)==65534||r>1114111?"\uFFFD":String.fromCharCode(r)}h();var TC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gw(e){return e.replace(TC,MC)}function MC(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),a=i===120||i===88;return qs(r.slice(a?2:1),a?16:10)}return bi(r)||e}h();function Oa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yw(e.position):"start"in e||"end"in e?yw(e):"line"in e||"column"in e?Bd(e):""}function Bd(e){return vw(e&&e.line)+":"+vw(e&&e.column)}function yw(e){return Bd(e&&e.start)+"-"+Bd(e&&e.end)}function vw(e){return e&&typeof e=="number"?e:1}var Kd={}.hasOwnProperty,Ys=function(e,t,r){return typeof t!="string"&&(r=t,t=void 0),IC(r)(mw(fw(r).document().write(hw()(e,t,!0))))};function IC(e={}){let t=bw({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Hr),autolinkProtocol:le,autolinkEmail:le,atxHeading:u(Pn),blockQuote:u(ct),characterEscape:le,characterReference:le,codeFenced:u(mt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(mt,l),codeText:u(Lt,l),codeTextData:le,data:le,codeFlowValue:le,definition:u(An),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(Ln),hardBreakEscape:u(hn),hardBreakTrailing:u(hn),htmlFlow:u(mn,l),htmlFlowData:le,htmlText:u(mn,l),htmlTextData:le,image:u(Fn),label:l,link:u(Hr),listItem:u(Kr),listItemValue:v,listOrdered:u(Br,m),listUnordered:u(Br),paragraph:u(Yn),reference:j,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(Pn),strong:u(Pt),thematicBreak:u(gt)},exit:{atxHeading:d(),atxHeadingSequence:U,autolink:d(),autolinkEmail:$e,autolinkProtocol:ke,blockQuote:d(),characterEscapeValue:X,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:we,codeFenced:d(D),codeFencedFence:T,codeFencedFenceInfo:b,codeFencedFenceMeta:k,codeFlowValue:X,codeIndented:d(I),codeText:d(ge),codeTextData:X,data:X,definition:d(),definitionDestinationString:F,definitionLabelString:H,definitionTitleString:C,emphasis:d(),hardBreakEscape:d(re),hardBreakTrailing:d(re),htmlFlow:d(pe),htmlFlowData:X,htmlText:d(he),htmlTextData:X,image:d(Te),label:P,labelText:L,lineEnding:G,link:d(be),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:q,resourceDestinationString:lt,resourceTitleString:Je,resource:W,setextHeading:d(Z),setextHeadingLineSequence:ee,setextHeadingText:z,strong:d(),thematicBreak:d()}},e.mdastExtensions||[]),r={};return n;function n(Y){let oe={type:"root",children:[]},Ee=[oe],ze=[],kt=[],gn={stack:Ee,tokenStack:ze,config:t,enter:c,exit:f,buffer:l,resume:p,setData:a,getData:o},qe=-1;for(;++qe<Y.length;)if(Y[qe][1].type==="listOrdered"||Y[qe][1].type==="listUnordered")if(Y[qe][0]==="enter")kt.push(qe);else{let at=kt.pop();qe=i(Y,at,qe)}for(qe=-1;++qe<Y.length;){let at=t[Y[qe][0]];Kd.call(at,Y[qe][1].type)&&at[Y[qe][1].type].call(Object.assign({sliceSerialize:Y[qe][2].sliceSerialize},gn),Y[qe][1])}if(ze.length>0){let at=ze[ze.length-1];(at[1]||ww).call(gn,void 0,at[0])}for(oe.position={start:s(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:s(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},qe=-1;++qe<t.transforms.length;)oe=t.transforms[qe](oe)||oe;return oe}function i(Y,oe,Ee){let ze=oe-1,kt=-1,gn=!1,qe,at,Ue,ln;for(;++ze<=Ee;){let Ye=Y[ze];if(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered"||Ye[1].type==="blockQuote"?(Ye[0]==="enter"?kt++:kt--,ln=void 0):Ye[1].type==="lineEndingBlank"?Ye[0]==="enter"&&(qe&&!ln&&!kt&&!Ue&&(Ue=ze),ln=void 0):Ye[1].type==="linePrefix"||Ye[1].type==="listItemValue"||Ye[1].type==="listItemMarker"||Ye[1].type==="listItemPrefix"||Ye[1].type==="listItemPrefixWhitespace"||(ln=void 0),!kt&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||kt===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(qe){let Jn=ze;for(at=void 0;Jn--;){let St=Y[Jn];if(St[1].type==="lineEnding"||St[1].type==="lineEndingBlank"){if(St[0]==="exit")continue;at&&(Y[at][1].type="lineEndingBlank",gn=!0),St[1].type="lineEnding",at=Jn}else if(!(St[1].type==="linePrefix"||St[1].type==="blockQuotePrefix"||St[1].type==="blockQuotePrefixWhitespace"||St[1].type==="blockQuoteMarker"||St[1].type==="listItemIndent"))break}Ue&&(!at||Ue<at)&&(qe._spread=!0),qe.end=Object.assign({},at?Y[at][1].start:Ye[1].end),Y.splice(at||ze,0,["exit",qe,Ye[2]]),ze++,Ee++}Ye[1].type==="listItemPrefix"&&(qe={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start)},Y.splice(ze,0,["enter",qe,Ye[2]]),ze++,Ee++,Ue=void 0,ln=!0)}}return Y[oe][1]._spread=gn,Ee}function a(Y,oe){r[Y]=oe}function o(Y){return r[Y]}function s(Y){return{line:Y.line,column:Y.column,offset:Y.offset}}function u(Y,oe){return Ee;function Ee(ze){c.call(this,Y(ze),ze),oe&&oe.call(this,ze)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(Y,oe,Ee){return this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([oe,Ee]),Y.position={start:s(oe.start)},Y}function d(Y){return oe;function oe(Ee){Y&&Y.call(this,Ee),f.call(this,Ee)}}function f(Y,oe){let Ee=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==Y.type&&(oe?oe.call(this,Y,ze[0]):(ze[1]||ww).call(this,Y,ze[0]));else throw new Error("Cannot close `"+Y.type+"` ("+Oa({start:Y.start,end:Y.end})+"): it\u2019s not open");return Ee.position.end=s(Y.end),Ee}function p(){return Ta(this.stack.pop())}function m(){a("expectingFirstListItemValue",!0)}function v(Y){if(o("expectingFirstListItemValue")){let oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(Y),10),a("expectingFirstListItemValue")}}function b(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=Y}function k(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=Y}function T(){o("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function D(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function I(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Y.replace(/(\r?\n|\r)$/g,"")}function H(Y){let oe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=oe,Ee.identifier=qn(this.sliceSerialize(Y)).toLowerCase()}function C(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Y}function F(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Y}function U(Y){let oe=this.stack[this.stack.length-1];if(!oe.depth){let Ee=this.sliceSerialize(Y).length;oe.depth=Ee}}function z(){a("setextHeadingSlurpLineEnding",!0)}function ee(Y){let oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(Y).charCodeAt(0)===61?1:2}function Z(){a("setextHeadingSlurpLineEnding")}function le(Y){let oe=this.stack[this.stack.length-1],Ee=oe.children[oe.children.length-1];(!Ee||Ee.type!=="text")&&(Ee=Kt(),Ee.position={start:s(Y.start)},oe.children.push(Ee)),this.stack.push(Ee)}function X(Y){let oe=this.stack.pop();oe.value+=this.sliceSerialize(Y),oe.position.end=s(Y.end)}function G(Y){let oe=this.stack[this.stack.length-1];if(o("atHardBreak")){let Ee=oe.children[oe.children.length-1];Ee.position.end=s(Y.end),a("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(oe.type)&&(le.call(this,Y),X.call(this,Y))}function re(){a("atHardBreak",!0)}function pe(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Y}function he(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Y}function ge(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Y}function be(){let Y=this.stack[this.stack.length-1];o("inReference")?(Y.type+="Reference",Y.referenceType=o("referenceType")||"shortcut",delete Y.url,delete Y.title):(delete Y.identifier,delete Y.label),a("referenceType")}function Te(){let Y=this.stack[this.stack.length-1];o("inReference")?(Y.type+="Reference",Y.referenceType=o("referenceType")||"shortcut",delete Y.url,delete Y.title):(delete Y.identifier,delete Y.label),a("referenceType")}function L(Y){let oe=this.stack[this.stack.length-2],Ee=this.sliceSerialize(Y);oe.label=gw(Ee),oe.identifier=qn(Ee).toLowerCase()}function P(){let Y=this.stack[this.stack.length-1],oe=this.resume(),Ee=this.stack[this.stack.length-1];a("inReference",!0),Ee.type==="link"?Ee.children=Y.children:Ee.alt=oe}function lt(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Y}function Je(){let Y=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Y}function W(){a("inReference")}function j(){a("referenceType","collapsed")}function q(Y){let oe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=oe,Ee.identifier=qn(this.sliceSerialize(Y)).toLowerCase(),a("referenceType","full")}function te(Y){a("characterReferenceType",Y.type)}function we(Y){let oe=this.sliceSerialize(Y),Ee=o("characterReferenceType"),ze;Ee?(ze=qs(oe,Ee==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):ze=bi(oe);let kt=this.stack.pop();kt.value+=ze,kt.position.end=s(Y.end)}function ke(Y){X.call(this,Y);let oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(Y)}function $e(Y){X.call(this,Y);let oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(Y)}function ct(){return{type:"blockquote",children:[]}}function mt(){return{type:"code",lang:null,meta:null,value:""}}function Lt(){return{type:"inlineCode",value:""}}function An(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ln(){return{type:"emphasis",children:[]}}function Pn(){return{type:"heading",depth:void 0,children:[]}}function hn(){return{type:"break"}}function mn(){return{type:"html",value:""}}function Fn(){return{type:"image",title:null,url:"",alt:null}}function Hr(){return{type:"link",title:null,url:"",children:[]}}function Br(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Kr(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Yn(){return{type:"paragraph",children:[]}}function Pt(){return{type:"strong",children:[]}}function Kt(){return{type:"text",value:""}}function gt(){return{type:"thematicBreak"}}}function bw(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?bw(e,n):AC(e,n)}return e}function AC(e,t){let r;for(r in t)if(Kd.call(t,r)){let n=r==="canContainEols"||r==="transforms",a=(Kd.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),o=t[r];o&&(n?e[r]=[...a,...o]:Object.assign(a,o))}}function ww(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Oa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Oa({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Oa({start:t.start,end:t.end})+") is still open")}h();h();h();var xw=ye(Ew()),Na=Object.assign(Rr(Error),{eval:Rr(EvalError),range:Rr(RangeError),reference:Rr(ReferenceError),syntax:Rr(SyntaxError),type:Rr(TypeError),uri:Rr(URIError)});function Rr(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let i=r&&(0,xw.default)(r,...n);return new e(i)}}var Js={}.hasOwnProperty,kw={yaml:"-",toml:"+"};function Gs(e="yaml"){let t=[],r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=LC(e[r]);return t}function LC(e){let t=e;if(typeof t=="string"){if(!Js.call(kw,t))throw Na("Missing matter definition for `%s`",t);t={type:t,marker:kw[t]}}else if(typeof t!="object")throw Na("Expected matter to be an object, not `%j`",t);if(!Js.call(t,"type"))throw Na("Missing `type` in matter `%j`",t);if(!Js.call(t,"fence")&&!Js.call(t,"marker"))throw Na("Missing `marker` or `fence` in matter `%j`",t);return t}function Sw(e){let t=Gs(e),r={},n={},i=-1;for(;++i<t.length;){let a=t[i];r[a.type]=PC(a),n[a.type]=FC,n[a.type+"Value"]=OC}return{enter:r,exit:n}}function PC(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function FC(e){let t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function OC(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}h();h();function Ud(e){let t=Gs(e),r={},n=-1,i,a;for(;++n<t.length;)i=t[n],a=Wd(i,"open").charCodeAt(0),a in r?r[a].push(_w(i)):r[a]=[_w(i)];return{flow:r}}function _w(e){let t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",a=i+"Sequence",o={tokenize:l,partial:!0},s;return{tokenize:u,concrete:!0};function u(c,d,f){let p=this;return m;function m(I){let H=p.now();return H.column!==1||!r&&H.line!==1?f(I):(c.enter(t),s=Wd(e,"open"),c.attempt(o,v,f)(I))}function v(I){return s=Wd(e,"close"),T(I)}function b(I){return I===null||ce(I)?T(I):(c.enter(n),k(I))}function k(I){return I===null||ce(I)?(c.exit(n),T(I)):(c.consume(I),k)}function T(I){return I===null?f(I):(c.enter("lineEnding"),c.consume(I),c.exit("lineEnding"),c.attempt(o,D,b))}function D(I){return c.exit(t),d(I)}}function l(c,d,f){let p=0;return m;function m(T){return T===s.charCodeAt(p)?(c.enter(i),c.enter(a),v(T)):f(T)}function v(T){return p===s.length?(c.exit(a),He(T)?(c.enter("whitespace"),b(T)):k(T)):T===s.charCodeAt(p++)?(c.consume(T),v):f(T)}function b(T){return He(T)?(c.consume(T),b):(c.exit("whitespace"),k(T))}function k(T){return T===null||ce(T)?(c.exit(i),d(T)):f(T)}}}function Wd(e,t){return e.marker?Dw(e.marker,t).repeat(3):Dw(e.fence,t)}function Dw(e,t){return typeof e=="string"?e:e[t]}var Ow=ye(require("obsidian"));h();h();function wi(e){return e[e.length-1]}function Cw(){let e="blockid",t="^";function r(i,a,o){let s=!1,u=0;return l;function l(p){return p!==t.charCodeAt(u)?o(p):(i.enter(e),i.enter(`${e}Marker`),c(p))}function c(p){return u===t.length?(i.exit(`${e}Marker`),d(p)):p!==t.charCodeAt(u)?o(p):(i.consume(p),u++,c)}function d(p){return i.enter(`${e}Data`),i.enter(`${e}Target`),f(p)}function f(p){return He(p)?o(p):ce(p)||p===null?s?(i.exit(`${e}Target`),i.exit(`${e}Data`),i.exit(e),a(p)):o(p):(s=!0,i.consume(p),f)}}let n={tokenize:r};return{text:{[t.charCodeAt(0)]:n}}}function Tw(){let e="blockid";function t(i){this.enter({type:e,value:null},i)}function r(i){let a=this.sliceSerialize(i),o=wi(this.stack);o.value=a}function n(i){this.exit(i)}return{enter:{[e]:t},exit:{[`${e}Target`]:r,[e]:n}}}h();function Ei(e,t,r){function n(a,o,s){let u=!1,l=0,c=0;return d;function d(b){return b!==t.charCodeAt(l)?s(b):(a.enter(e),a.enter(`${e}Marker`),f(b))}function f(b){return l===t.length?(a.exit(`${e}Marker`),p(b)):b!==t.charCodeAt(l)?s(b):(a.consume(b),l++,f)}function p(b){return ce(b)||b===null?s(b):(a.enter(`${e}Data`),a.enter(`${e}Target`),m(b))}function m(b){return b===r.charCodeAt(c)?u?(a.exit(`${e}Target`),a.exit(`${e}Data`),a.enter(`${e}Marker`),v(b)):s(b):ce(b)||b===null?s(b):(Ge(b)||(u=!0),a.consume(b),m)}function v(b){return c===r.length?(a.exit(`${e}Marker`),a.exit(e),o(b)):b!==r.charCodeAt(c)?s(b):(a.consume(b),c++,v)}}let i={tokenize:n};return{text:{[t.charCodeAt(0)]:i}}}function xi(e,t){function r(a){this.enter({type:e,value:null},a)}function n(a){let o=this.sliceSerialize(a),s=wi(this.stack);s.value=o,t&&t(o,s)}function i(a){this.exit(a)}return{enter:{[e]:r},exit:{[`${e}Target`]:n,[e]:i}}}h();function Mw(e){function t(n){e(this.stack[this.stack.length-1],!1),this.exit(n)}function r(n){e(this.stack[this.stack.length-1],!0),this.exit(n)}return{exit:{link:t,image:r}}}h();function Iw(){let e="hashtag",t="#";function r(i,a,o){let s=!1,u=0,l=this;return c;function c(m){return m!==t.charCodeAt(u)||u===0&&l.previous!==" ".charCodeAt(0)&&l.previous!==">".charCodeAt(0)?o(m):(i.enter(e),i.enter(`${e}Marker`),d(m))}function d(m){return u===t.length?(i.exit(`${e}Marker`),f(m)):m!==t.charCodeAt(u)?o(m):(i.consume(m),u++,d)}function f(m){return i.enter(`${e}Data`),i.enter(`${e}Target`),p(m)}function p(m){return Ge(m)||"<".charCodeAt(0)===m||"#".charCodeAt(0)===m||m===null?s?(i.exit(`${e}Target`),i.exit(`${e}Data`),i.exit(e),a(m)):o(m):(s=!0,i.consume(m),p)}}let n={tokenize:r};return{text:{[t.charCodeAt(0)]:n}}}function Aw(){let e="hashtag";function t(i){this.enter({type:e,value:null},i)}function r(i){let a=this.sliceSerialize(i),o=wi(this.stack);o.value=a}function n(i){this.exit(i)}return{enter:{[e]:t},exit:{[`${e}Target`]:r,[e]:n}}}h();h();var ki={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};h();var Vd={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var NC={tokenize:RC},Lw={text:{[ki.leftSquareBracket]:NC}};function RC(e,t,r){let n=this;return i;function i(s){return n.previous!==ki.eof||!n._gfmTasklistFirstContentOfListItem?r(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return He(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s!==ki.rightSquareBracket?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):r(s)}function o(s){return s===ki.rightSquareBracket?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:HC},t,r)):r(s)}}function HC(e,t,r){let n=this;return Se(e,i,Vd.whitespace);function i(a){let o=n.events[n.events.length-1];return o&&o[1].type===Vd.whitespace&&a!==ki.eof&&!Ge(a)?t(a):r(a)}}var Pw={exit:{taskListCheckValueChecked:Fw,taskListCheckValueUnchecked:Fw,paragraph:BC}};function Fw(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked",t.checkChar=this.sliceSerialize(e)}function BC(e){let t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,i=r.children[0],a=-1,o;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&i&&i.type==="text"){for(;++a<n.length;){let s=n[a];if(s.type==="paragraph"){o=s;break}}o===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}function KC(e){let t=-1,r=0;for(let n=0,i=e.length;n<i;n++){if(r<3)if(e[n]==="-"){r++;continue}else throw new Error("Error parsing frontmatter");if(t<0&&(t=n),e[n]==="-"&&/[\r\n]/.test(e[n-1])&&e[n+1]==="-"&&e[n+2]==="-")return(0,Ow.parseYaml)(e.slice(t,n-1).trim())}}function $C(e){let t=!1,r=0,n=-1;for(let i=e.length-1;i>=0;i--){if(!t&&/[`%\n\r]/.test(e[i])){e[i]==="`"&&(r++,r===3&&(t=!0,n=i-1));continue}else if(!t)return{};if(e[i]==="`"&&e[i-1]==="`"&&e[i-2]==="`"&&/[\r\n]/.test(e[i-3]))return JSON.parse(e.slice(i+1,n).trim())}}function Nw(e){return[Lw,Ei("date",`${e.getSetting("date-trigger")}{`,"}"),Ei("dateLink",`${e.getSetting("date-trigger")}[[`,"]]"),Ei("time",`${e.getSetting("time-trigger")}{`,"}"),Ei("embedWikilink","![[","]]"),Ei("wikilink","[[","]]"),Iw(),Cw()]}function Rw(e){return[Pw,xi("date",(t,r)=>{!t||(r.date=t)}),xi("dateLink",(t,r)=>{!t||(r.date=t)}),xi("time",(t,r)=>{!t||(r.time=t)}),xi("embedWikilink",(t,r)=>{if(!t)return;let n=Ir(t),i=e.app.metadataCache.getFirstLinkpathDest(n.root,e.file.path);r.fileAccessor={target:n.root,isEmbed:!0,stats:i==null?void 0:i.stat}}),xi("wikilink",(t,r)=>{if(!t)return;let n=Ir(t),i=e.app.metadataCache.getFirstLinkpathDest(n.root,e.file.path);if(r.fileAccessor={target:n.root,isEmbed:!1},i){let a=sd(e,i);r.fileMetadata=a.fileMetadata,r.fileMetadataOrder=a.fileMetadataOrder}}),Mw((t,r)=>{if(!t.url||/:\/\//.test(t.url)||!/.md$/.test(t.url))return;let n=e.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(t.url),e.file.path);if(r)t.type="embedLink",t.fileAccessor={target:decodeURIComponent(t.url),isEmbed:!0,stats:n.stat};else if(t.fileAccessor={target:decodeURIComponent(t.url),isEmbed:!1},n){let i=sd(e,n);t.fileMetadata=i.fileMetadata,t.fileMetadataOrder=i.fileMetadataOrder}}),Aw(),Tw()]}function Hw(e,t){let r=KC(t),i={...$C(t)},a={};return Object.keys(r).forEach(o=>{o===fn?(i[o]=r[o],a[o]=r[o]):Mb[o]?i[o]=r[o]:a[o]=r[o]}),e.compileSettings(i),{settings:i,frontmatter:a,ast:Ys(t,{extensions:[Ud(["yaml"]),...Nw(e)],mdastExtensions:[Sw(["yaml"]),...Rw(e)]})}}function zd(e,t){return Ys(t,{extensions:Nw(e),mdastExtensions:Rw(e)})}function Xs(e,t,r){let n=e.getSetting("hide-tags-in-title"),i=e.getSetting("hide-date-in-title"),a=Ed(r.children[0]),o=xd(t,a);(o==="[ ]"||o==="[x]")&&(o="");let s=o,u={titleRaw:ys(o),blockId:void 0,title:"",titleSearch:"",metadata:{dateStr:void 0,date:void 0,time:void 0,timeStr:void 0,tags:[],fileAccessor:void 0,file:void 0,fileMetadata:void 0,fileMetadataOrder:void 0},dom:void 0,isComplete:!!r.checked};return $b(r,l=>l.type!=="paragraph",l=>{let c=l;if(c.type==="blockid")return u.blockId=c.value,!0;if(c.type==="hashtag")return u.metadata.tags||(u.metadata.tags=[]),u.metadata.tags.push("#"+c.value),n&&(s=gs(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start})),!0;if(c.type==="date"||c.type==="dateLink")return u.metadata.dateStr=c.date,i&&(s=gs(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start})),!0;if(c.type==="time")return u.metadata.timeStr=c.time,s=gs(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start}),!0;if(c.type==="embedWikilink")return u.metadata.fileAccessor=c.fileAccessor,!0;if(c.type==="wikilink"||c.type==="link"&&c.fileAccessor)return u.metadata.fileAccessor=c.fileAccessor,u.metadata.fileMetadata=c.fileMetadata,u.metadata.fileMetadataOrder=c.fileMetadataOrder,!0;if(c.type==="embedLink")return u.metadata.fileAccessor=c.fileAccessor,!0}),u.title=ys(Zv(s)),u}function UC(e,t,r){if(e.type!=="heading"||Ta(e,{includeImageAlt:!1})!==B("Archive"))return!1;let n=Ub(t,r);return n&&n.type==="thematicBreak"}function Kw(e,t,r,n,i){let a=[],o=[];return n.children.forEach((s,u)=>{if(s.type==="heading"){let l=UC(s,n.children,u),c=Ed(s),d=xd(i,c),f=!1,p=Wb(n.children,u,"list",m=>{if(m.type==="heading")return!1;if(m.type==="paragraph"){let v=Ta(m);if(v.startsWith("%% kanban:settings"))return!1;if(v===B("Complete"))return f=!0,!0}return!0});if(l&&p){o.push(...p.children.map(m=>({...Yo,id:Ve(),data:Xs(e,i,m)})));return}p?a.push({...lr,children:p.children.map(m=>({...Yo,id:Ve(),data:Xs(e,i,m)})),id:Ve(),data:{...Ar(d),shouldMarkItemsComplete:f}}):a.push({...lr,children:[],id:Ve(),data:{...Ar(d),shouldMarkItemsComplete:f}})}}),{...Jo,id:e.file.path,children:a,data:{settings:t,frontmatter:r,archive:o,isSearching:!1,errors:[]}}}async function jd(e,t,r){let n=`- [${t.data.isComplete?"x":" "}] ${xa(r)}${t.data.blockId?` ^${t.data.blockId}`:""}`,i=zd(e,n),a=Xs(e,n,i.children[0].children[0]),o=(0,Qs.default)(t,{data:{$set:a}});try{await Ma(e,o)}catch(s){console.error(s)}return o}async function $w(e,t,r,n){let i=`- [${r?"x":" "}] ${xa(t)}`,a=zd(e,i),o=Xs(e,i,a.children[0].children[0]);o.forceEditMode=!!n;let s={...Yo,id:Ve(),data:o};try{await Ma(e,s)}catch(u){console.error(u)}return s}async function Uw(e,t){try{return(0,Qs.default)(t,{children:{$set:await Promise.all(t.children.map(async r=>{try{return(0,Qs.default)(r,{children:{$set:await Promise.all(r.children.map(n=>jd(e,n,n.data.titleRaw)))}})}catch(n){throw e.setError(n),n}}))}})}catch(r){throw e.setError(r),r}}function Ww(e){return`- [${e.data.isComplete?"x":" "}] ${xa(e.data.titleRaw)}${e.data.blockId?` ^${e.data.blockId}`:""}`}function WC(e){let t=[];return t.push(`## ${xa(Io(e.data.title,e.data.maxItems))}`),t.push(""),e.data.shouldMarkItemsComplete&&t.push(db),e.children.forEach(r=>{t.push(Ww(r))}),t.push(""),t.push(""),t.push(""),t.join(`
`)}function VC(e){if(e.length){let t=[fb,"",`## ${B("Archive")}`,""];return e.forEach(r=>{t.push(Ww(r))}),t.join(`
`)}return""}function Vw(e){let t=e.children.reduce((n,i)=>n+WC(i),"");return["---","",(0,Bw.stringifyYaml)(e.data.frontmatter),"---","",""].join(`
`)+t+VC(e.data.archive)+pb(e.data.settings)}var qd=class{constructor(t){this.stateManager=t}newItem(t,r,n){return $w(this.stateManager,t,r,n)}updateItemContent(t,r){return jd(this.stateManager,t,r)}boardToMd(t){return Vw(t)}mdToBoard(t){let{ast:r,settings:n,frontmatter:i}=Hw(this.stateManager,t),a=Kw(this.stateManager,n,i,r,t);if(!this.stateManager.hasError()&&this.stateManager.state){let s=yd(this.stateManager.state,a).filter(l=>["/id","/dom","/date","/time","/titleSearch","/file"].every(c=>!l.path.endsWith(c))),u=(0,zw.immutableJSONPatch)(this.stateManager.state,s);return jb(this.stateManager,u,s)}return zb(this.stateManager,a)}reparseBoard(){return Uw(this.stateManager,this.stateManager.state)}};var Yd=class{constructor(t,r,n,i,a){this.stateReceivers=[];this.settingsNotifiers=new Map;this.viewSet=new Set;this.compiledSettings={};this.newBoardPromise=null;this.getSetting=(t,r)=>r&&r[t]!==void 0?r[t]:this.compiledSettings&&this.compiledSettings[t]!==void 0?this.compiledSettings[t]:this.getSettingRaw(t);this.getSettingRaw=(t,r)=>{var n,i;return r&&r[t]!==void 0?r[t]:((i=(n=this.state)==null?void 0:n.data)==null?void 0:i.settings)&&this.state.data.settings[t]!==void 0?this.state.data.settings[t]:this.getGlobalSetting(t)};this.getGlobalSetting=t=>{let r=this.getGlobalSettings();return r&&r[t]!==void 0?r[t]:null};this.app=t,this.file=r.file,this.onEmpty=i,this.getGlobalSettings=a,this.parser=new qd(this),this.registerView(r,n,!0)}getAView(){return this.viewSet.values().next().value}hasError(){var t,r,n;return!!((n=(r=(t=this.state)==null?void 0:t.data)==null?void 0:r.errors)==null?void 0:n.length)}registerView(t,r,n){this.viewSet.has(t)||(this.viewSet.add(t),t.initHeaderButtons()),n&&(this.newBoardPromise!==null?this.newBoardPromise.then(()=>this.newBoard(r)):this.newBoardPromise=this.newBoard(r).then(()=>{this.newBoardPromise=null}).catch(i=>{console.error(i),this.setError(i)}))}unregisterView(t){this.viewSet.has(t)&&(this.viewSet.delete(t),this.viewSet.size===0&&this.onEmpty())}buildSettingRetrievers(){return{getGlobalSettings:this.getGlobalSettings,getGlobalSetting:this.getGlobalSetting,getSetting:this.getSetting}}async newBoard(t){try{await this.setState(await this.getParsedBoard(t),!1)}catch(r){this.setError(r)}}saveToDisk(){if(this.state.data.errors.length>0)return;let t=this.getAView(),r=this.parser.boardToMd(this.state);t.requestSaveToDisk(r),this.viewSet.forEach(n=>{n.data=r})}softRefresh(){this.stateReceivers.forEach(t=>t({...this.state}))}async forceRefresh(){if(this.state)try{this.compileSettings(),this.state=await this.parser.reparseBoard(),this.stateReceivers.forEach(t=>t(this.state)),this.viewSet.forEach(t=>t.initHeaderButtons())}catch(t){console.error(t),this.setError(t)}}async setState(t,r=!0){var n;try{let i=(n=this.state)==null?void 0:n.data.settings,a=typeof t=="function"?await t(this.state):t,o=a==null?void 0:a.data.settings;i&&o&&gb(i,o)?(this.state=(0,Si.default)(this.state,{data:{settings:{$set:o}}}),this.compileSettings(),this.state=await this.parser.reparseBoard()):(this.state=a,this.compileSettings()),this.viewSet.forEach(s=>s.initHeaderButtons()),r&&this.saveToDisk(),this.stateReceivers.forEach(s=>s(this.state)),i!==o&&o&&this.settingsNotifiers.forEach((s,u)=>{(!i&&o||i[u]!==o[u])&&s.forEach(l=>l())})}catch(i){console.error(i),this.setError(i)}}useState(){let[t,r]=R.useState(this.state);return R.useEffect(()=>(this.stateReceivers.push(n=>{r(n)}),r(this.state),()=>{this.stateReceivers.remove(r)}),[]),t}useSetting(t){let[r,n]=R.useState(this.getSetting(t));return R.useEffect(()=>{let i=()=>{n(this.getSetting(t))};return this.settingsNotifiers.has(t)?this.settingsNotifiers.get(t).push(i):this.settingsNotifiers.set(t,[i]),()=>{this.settingsNotifiers.get(t).remove(i)}},[]),r}compileSettings(t){var s,u,l,c,d;let r=this.getGlobalSetting("metadata-keys")||[],n=this.getSettingRaw("metadata-keys",t)||[],i=this.getSettingRaw("date-format",t)||qr(this.app),a=this.getSettingRaw("time-format",t)||zi(this.app),o=this.getSettingRaw("prepend-archive-format",t)||`${i} ${a}`;this.compiledSettings={"date-format":i,"date-display-format":this.getSettingRaw("date-display-format",t)||i,"date-trigger":this.getSettingRaw("date-trigger",t)||Ds,"time-format":a,"time-trigger":this.getSettingRaw("time-trigger",t)||Cs,"link-date-to-daily-note":this.getSettingRaw("link-date-to-daily-note",t),"hide-date-in-title":this.getSettingRaw("hide-date-in-title",t),"hide-tags-in-title":this.getSettingRaw("hide-tags-in-title",t),"metadata-keys":[...r,...n],"prepend-archive-separator":this.getSettingRaw("prepend-archive-separator")||"","prepend-archive-format":o,"show-add-list":(s=this.getSettingRaw("show-add-list",t))!=null?s:!0,"show-archive-all":(u=this.getSettingRaw("show-archive-all",t))!=null?u:!0,"show-view-as-markdown":(l=this.getSettingRaw("show-view-as-markdown",t))!=null?l:!0,"show-board-settings":(c=this.getSettingRaw("show-board-settings",t))!=null?c:!0,"show-search":(d=this.getSettingRaw("show-search",t))!=null?d:!0}}async getParsedBoard(t){let r=t.trim(),n={...Jo,id:this.file.path,children:[],data:{archive:[],settings:{"kanban-plugin":"basic"},frontmatter:{},isSearching:!1,errors:[]}};try{r&&(n=await this.parser.mdToBoard(r))}catch(i){console.error(i),n=(0,Si.default)(n,{data:{errors:{$push:[{description:i.toString(),stack:i.stack}]}}})}return n}setError(t){this.setState((0,Si.default)(this.state,{data:{errors:{$push:[{description:t.toString(),stack:t.stack}]}}}),!1)}onFileMetadataChange(){this.reparseBoardFromMd()}async reparseBoardFromMd(){try{this.setState(await this.getParsedBoard(this.getAView().data),!1)}catch(t){console.error(t),this.setError(t)}}async archiveCompletedCards(){let t=this.state,r=[],n=!!this.getSetting("prepend-archive-date"),i=this.getSetting("prepend-archive-separator"),a=this.getSetting("prepend-archive-format"),o=u=>{let l=[(0,jw.moment)().format(a)];i&&l.push(i),l.push(u.data.titleRaw);let c=l.join(" ");return this.parser.updateItemContent(u,c)},s=t.children.map(u=>(0,Si.default)(u,{children:{$set:u.children.filter(l=>((u.data.shouldMarkItemsComplete||l.data.isComplete)&&r.push(l),!l.data.isComplete&&!u.data.shouldMarkItemsComplete))}}));this.app.workspace.trigger("kanban:board-cards-archived",this.file,r);try{this.setState((0,Si.default)(t,{children:{$set:s},data:{archive:{$push:n?await Promise.all(r.map(u=>o(u))):r}}}))}catch(u){this.setError(u)}}getNewItem(t,r,n){return this.parser.newItem(t,r,n)}updateItemContent(t,r){return this.parser.updateItemContent(t,r)}};var Jd=class extends xt.Plugin{constructor(){super(...arguments);this.settings={};this.kanbanFileModes={};this.stateManagers=new Map;this.windowRegistry=new Map;this._loaded=!1;this.isShiftPressed=!1;this.handleShift=t=>{this.isShiftPressed=t.shiftKey}}async loadSettings(){this.settings=Object.assign({},await this.loadData())}async saveSettings(){await this.saveData(this.settings)}unload(){Promise.all(app.workspace.getLeavesOfType(pn).map(t=>(this.kanbanFileModes[t.id]="markdown",this.setMarkdownView(t)))).then(()=>{super.unload()})}onunload(){this.windowRegistry.forEach((t,r)=>{t.viewStateReceivers.forEach(n=>n([])),this.unmount(r)}),this.unmount(window),this.stateManagers.clear(),this.windowRegistry.clear(),this.kanbanFileModes={},window.removeEventListener("keydown",this.handleShift),window.removeEventListener("keyup",this.handleShift),app.workspace.unregisterHoverLinkSource(fn)}async onload(){var t,r;await this.loadSettings(),this.registerEvent(app.workspace.on("window-open",(n,i)=>{this.mount(i)})),this.registerEvent(app.workspace.on("window-close",(n,i)=>{this.unmount(i)})),this.settingsTab=new dd(this,{onSettingsChange:async n=>{this.settings=n,await this.saveSettings(),this.stateManagers.forEach(i=>{i.forceRefresh()})}}),this.addSettingTab(this.settingsTab),this.registerView(pn,n=>new jn(n,this)),this.registerMonkeyPatches(),this.registerCommands(),this.registerEvents(),this.mount(window),(r=(t=app.workspace.floatingSplit)==null?void 0:t.children)==null||r.forEach(n=>{this.mount(n.win)}),window.addEventListener("keydown",this.handleShift),window.addEventListener("keyup",this.handleShift)}getKanbanViews(t){let r=this.windowRegistry.get(t);return r?Array.from(r.viewMap.values()):[]}getKanbanView(t,r){let n=this.windowRegistry.get(r);if(n==null?void 0:n.viewMap.has(t))return n.viewMap.get(t);for(let i of this.windowRegistry.values())if(i.viewMap.has(t))return i.viewMap.get(t);return null}getStateManager(t){return this.stateManagers.get(t)}getStateManagerFromViewID(t,r){let n=this.getKanbanView(t,r);return n?this.stateManagers.get(n.file):null}useViewState(t){let[r,n]=R.useState(this.getKanbanViews(t));return R.useEffect(()=>{let i=this.windowRegistry.get(t);return i==null||i.viewStateReceivers.push(n),()=>{i==null||i.viewStateReceivers.remove(n)}},[t]),r}addView(t,r,n){let i=t.getWindow(),a=this.windowRegistry.get(i);if(!a)return;a.viewMap.has(t.id)||a.viewMap.set(t.id,t);let o=t.file;this.stateManagers.has(o)?this.stateManagers.get(o).registerView(t,r,n):this.stateManagers.set(o,new Yd(this.app,t,r,()=>this.stateManagers.delete(o),()=>this.settings)),a.viewStateReceivers.forEach(s=>s(this.getKanbanViews(i)))}removeView(t){let r=Array.from(this.windowRegistry.entries()).find(([,o])=>o.viewMap.has(t.id),[]);if(!r)return;let[n,i]=r,a=t.file;i.viewMap.has(t.id)&&i.viewMap.delete(t.id),this.stateManagers.has(a)&&(this.stateManagers.get(a).unregisterView(t),i.viewStateReceivers.forEach(o=>o(this.getKanbanViews(n))))}handleViewFileRename(t,r){let n=t.getWindow();if(!this.windowRegistry.has(n))return;let i=this.windowRegistry.get(n),a=`${t.leaf.id}:::${r}`;i.viewMap.has(a)&&i.viewMap.delete(a),i.viewMap.has(t.id)||i.viewMap.set(t.id,t),t.isPrimary&&this.getStateManager(t.file).softRefresh()}mount(t){if(this.windowRegistry.has(t))return;let r=t.document.body.createDiv();this.windowRegistry.set(t,{viewMap:new Map,viewStateReceivers:[],appRoot:r}),R.render(cb(t,this),r)}unmount(t){if(!this.windowRegistry.has(t))return;let r=this.windowRegistry.get(t);for(let n of r.viewMap.values())n.destroy();R.unmountComponentAtNode(r.appRoot),r.appRoot.remove(),r.viewMap.clear(),r.viewStateReceivers.length=0,r.appRoot=null,this.windowRegistry.delete(t)}async setMarkdownView(t,r=!0){await t.setViewState({type:"markdown",state:t.view.getState(),popstate:!0},{focus:r})}async setKanbanView(t){await t.setViewState({type:pn,state:t.view.getState(),popstate:!0})}async newKanban(t){var n;let r=t||app.fileManager.getNewFileParent(((n=app.workspace.getActiveFile())==null?void 0:n.path)||"");try{let i=await app.fileManager.createNewMarkdownFile(r,B("Untitled Kanban"));await app.vault.modify(i,od),await app.workspace.getLeaf().setViewState({type:pn,state:{file:i.path}})}catch(i){console.error("Error creating kanban board:",i)}}registerEvents(){this.registerEvent(app.workspace.on("file-menu",(r,n,i,a)=>{if(n instanceof xt.TFolder){r.addItem(o=>{o.setTitle(B("New kanban board")).setIcon(Sa).onClick(()=>this.newKanban(n))});return}if(!xt.Platform.isMobile&&n instanceof xt.TFile&&a&&i==="sidebar-context-menu"&&Xl(n)){let o=this.getKanbanViews(Ze(a.view.containerEl)),s=!1;for(let u of o)if(u.file===n){u.onPaneMenu(r,"more-options",!1),s=!0;break}if(!s){r.addItem(u=>{u.setTitle(B("Open as kanban board")).setIcon(Sa).setSection("pane").onClick(()=>{this.kanbanFileModes[a.id||n.path]=pn,this.setKanbanView(a)})});return}}(a==null?void 0:a.view)instanceof xt.MarkdownView&&n instanceof xt.TFile&&i==="pane-more-options"&&Xl(n)&&r.addItem(o=>{o.setTitle(B("Open as kanban board")).setIcon(Sa).setSection("pane").onClick(()=>{this.kanbanFileModes[a.id||n.path]=pn,this.setKanbanView(a)})})})),this.registerEvent(app.vault.on("rename",(r,n)=>{app.workspace.getLeavesOfType(pn).forEach(a=>{a.view.handleRename(r.path,n)})}));let t=(0,xt.debounce)(r=>{this.stateManagers.forEach(n=>{n.file!==r&&n.onFileMetadataChange()})},2e3,!0);this.registerEvent(app.vault.on("modify",r=>{r instanceof xt.TFile&&t(r)})),this.registerEvent(app.metadataCache.on("changed",r=>{t(r)})),this.registerEvent(app.metadataCache.on("dataview:metadata-change",(r,n)=>{t(n)})),this.registerEvent(app.metadataCache.on("dataview:api-ready",()=>{this.stateManagers.forEach(r=>{r.forceRefresh()})})),app.workspace.registerHoverLinkSource(fn,{display:"Kanban",defaultMod:!0})}registerCommands(){this.addCommand({id:"create-new-kanban-board",name:B("Create new board"),callback:()=>this.newKanban()}),this.addCommand({id:"archive-completed-cards",name:B("Archive completed cards in active board"),checkCallback:t=>{let r=app.workspace.getActiveViewOfType(jn);if(!r)return!1;if(t)return!0;this.stateManagers.get(r.file).archiveCompletedCards()}}),this.addCommand({id:"toggle-kanban-view",name:B("Toggle between Kanban and markdown mode"),checkCallback:t=>{let r=app.workspace.getActiveFile();if(!r)return!1;let n=app.metadataCache.getFileCache(r),i=!!(n==null?void 0:n.frontmatter)&&!!n.frontmatter[fn];if(t)return i;let a=app.workspace.getActiveViewOfType(jn);if(a)this.kanbanFileModes[a.leaf.id||r.path]="markdown",this.setMarkdownView(a.leaf);else if(i){let o=app.workspace.getActiveViewOfType(xt.MarkdownView);o&&(this.kanbanFileModes[o.leaf.id||r.path]=pn,this.setKanbanView(o.leaf))}}}),this.addCommand({id:"convert-to-kanban",name:B("Convert empty note to Kanban"),checkCallback:t=>{let r=app.workspace.getActiveViewOfType(xt.MarkdownView);if(!r)return!1;let n=r.file.stat.size===0;if(t)return n;n&&app.vault.modify(r.file,od).then(()=>{this.setKanbanView(r.leaf)}).catch(i=>console.error(i))}}),this.addCommand({id:"add-kanban-lane",name:B("Add a list"),checkCallback:t=>{let r=app.workspace.getActiveViewOfType(jn);if(t)return r&&r instanceof jn;r&&r instanceof jn&&r.emitter.emit("showLaneForm",void 0)}})}registerMonkeyPatches(){let t=this;app.workspace.onLayoutReady(()=>{this.register(ol(app.commands,{executeCommand(r){return function(n){let i=app.workspace.getActiveViewOfType(jn);return i&&(n==null?void 0:n.id)&&i.emitter.emit("hotkey",n.id),r.call(this,n)}}}))}),this.register(ol(xt.WorkspaceLeaf.prototype,{detach(r){return function(){var i;let n=(i=this.view)==null?void 0:i.getState();return(n==null?void 0:n.file)&&t.kanbanFileModes[this.id||n.file]&&delete t.kanbanFileModes[this.id||n.file],r.apply(this)}},setViewState(r){return function(n,...i){var a;if(t._loaded&&n.type==="markdown"&&((a=n.state)==null?void 0:a.file)&&t.kanbanFileModes[this.id||n.state.file]!=="markdown"){let o=t.app.metadataCache.getCache(n.state.file);if((o==null?void 0:o.frontmatter)&&o.frontmatter[fn]){let s={...n,type:pn};return t.kanbanFileModes[n.state.file]=pn,r.apply(this,[s,...i])}}return r.apply(this,[n,...i])}}}))}};0&&(module.exports={});
/*!
* Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017-2021 Joachim Wester
* MIT license
*/
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017-2022 Joachim Wester
* MIT licensed
*/
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
/*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/*!***************************************************
* mark.js v8.11.1
* https://markjs.io/
* Copyright (c) 20142018, Julian Kühnel
* Released under the MIT license https://git.io/vwTVl
*****************************************************/