/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source visit the plugins github repository */ var by=Object.create;var Na=Object.defineProperty;var wy=Object.getOwnPropertyDescriptor;var Ey=Object.getOwnPropertyNames;var Sy=Object.getPrototypeOf,xy=Object.prototype.hasOwnProperty;var Pu=t=>Na(t,"__esModule",{value:!0});var ky=(t,n)=>()=>(t&&(n=t(t=0)),n),rt=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Oi=(t,n)=>{for(var e in n)Na(t,e,{get:n[e],enumerable:!0})},_y=(t,n,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ey(n))!xy.call(t,r)&&r!=="default"&&Na(t,r,{get:()=>n[r],enumerable:!(e=wy(n,r))||e.enumerable});return t},me=t=>_y(Pu(Na(t!=null?by(Sy(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var It=rt((Nn,Td)=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});function En(t){return typeof t=="object"&&!("toString"in t)?Object.prototype.toString.call(t).slice(8,-1):t}var nb=typeof process=="object"&&!0;function pn(t,n){if(!t)throw nb?new Error("Invariant failed"):new Error(n())}Nn.invariant=pn;var sl=Object.prototype.hasOwnProperty,rb=Array.prototype.splice,ib=Object.prototype.toString;function xr(t){return ib.call(t).slice(8,-1)}var qa=Object.assign||function(t,n){return ll(n).forEach(function(e){sl.call(n,e)&&(t[e]=n[e])}),t},ll=typeof Object.getOwnPropertySymbols=="function"?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function or(t){return Array.isArray(t)?qa(t.constructor(t.length),t):xr(t)==="Map"?new Map(t):xr(t)==="Set"?new Set(t):t&&typeof t=="object"?qa(Object.create(Object.getPrototypeOf(t)),t):t}var Sd=function(){function t(){this.commands=qa({},ab),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(n,e){return n===e},this.update.newContext=function(){return new t().update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(n){this.update.isEquals=n},enumerable:!0,configurable:!0}),t.prototype.extend=function(n,e){this.commands[n]=e},t.prototype.update=function(n,e){var r=this,i=typeof e=="function"?{$apply:e}:e;Array.isArray(n)&&Array.isArray(i)||pn(!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."}),pn(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(r.commands).join(", ")+".")});var a=n;return ll(i).forEach(function(o){if(sl.call(r.commands,o)){var s=n===a;a=r.commands[o](i[o],a,i,n),s&&r.isEquals(a,n)&&(a=n)}else{var u=xr(n)==="Map"?r.update(n.get(o),i[o]):r.update(n[o],i[o]),l=xr(a)==="Map"?a.get(o):a[o];(!r.isEquals(u,l)||typeof u=="undefined"&&!sl.call(n,o))&&(a===n&&(a=or(n)),xr(a)==="Map"?a.set(o,u):a[o]=u)}}),a},t}();Nn.Context=Sd;var ab={$push:function(t,n,e){return xd(n,e,"$push"),t.length?n.concat(t):n},$unshift:function(t,n,e){return xd(n,e,"$unshift"),t.length?t.concat(n):n},$splice:function(t,n,e,r){return ob(n,e),t.forEach(function(i){kd(i),n===r&&i.length&&(n=or(r)),rb.apply(n,i)}),n},$set:function(t,n,e){return lb(e),t},$toggle:function(t,n){Ki(t,"$toggle");var e=t.length?or(n):n;return t.forEach(function(r){e[r]=!n[r]}),e},$unset:function(t,n,e,r){return Ki(t,"$unset"),t.forEach(function(i){Object.hasOwnProperty.call(n,i)&&(n===r&&(n=or(r)),delete n[i])}),n},$add:function(t,n,e,r){return _d(n,"$add"),Ki(t,"$add"),xr(n)==="Map"?t.forEach(function(i){var a=i[0],o=i[1];n===r&&n.get(a)!==o&&(n=or(r)),n.set(a,o)}):t.forEach(function(i){n===r&&!n.has(i)&&(n=or(r)),n.add(i)}),n},$remove:function(t,n,e,r){return _d(n,"$remove"),Ki(t,"$remove"),t.forEach(function(i){n===r&&n.has(i)&&(n=or(r)),n.delete(i)}),n},$merge:function(t,n,e,r){return cb(n,t),ll(t).forEach(function(i){t[i]!==n[i]&&(n===r&&(n=or(r)),n[i]=t[i])}),n},$apply:function(t,n){return sb(t),t(n)}},cl=new Sd;Nn.isEquals=cl.update.isEquals;Nn.extend=cl.extend;Nn.default=cl.update;Nn.default.default=Td.exports=qa(Nn.default,Nn);function xd(t,n,e){pn(Array.isArray(t),function(){return"update(): expected target of "+En(e)+" to be an array; got "+En(t)+"."}),Ki(n[e],e)}function Ki(t,n){pn(Array.isArray(t),function(){return"update(): expected spec of "+En(n)+" to be an array; got "+En(t)+". Did you forget to wrap your parameter in an array?"})}function ob(t,n){pn(Array.isArray(t),function(){return"Expected $splice target to be an array; got "+En(t)}),kd(n.$splice)}function kd(t){pn(Array.isArray(t),function(){return"update(): expected spec of $splice to be an array of arrays; got "+En(t)+". Did you forget to wrap your parameters in an array?"})}function sb(t){pn(typeof t=="function",function(){return"update(): expected spec of $apply to be a function; got "+En(t)+"."})}function lb(t){pn(Object.keys(t).length===1,function(){return"Cannot have more than one key in an object with $set"})}function cb(t,n){pn(n&&typeof n=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+En(n)}),pn(t&&typeof t=="object",function(){return"update(): $merge expects a target of type 'object'; got "+En(t)})}function _d(t,n){var e=xr(t);pn(e==="Map"||e==="Set",function(){return"update(): "+En(n)+" expects a target of type Set or Map; got "+En(e)})}});var Ad=rt((L_,Dd)=>{"use strict";var ub=function(n){return db(n)&&!fb(n)};function db(t){return!!t&&typeof t=="object"}function fb(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||mb(t)}var hb=typeof Symbol=="function"&&Symbol.for,pb=hb?Symbol.for("react.element"):60103;function mb(t){return t.$$typeof===pb}function gb(t){return Array.isArray(t)?[]:{}}function $i(t,n){return n.clone!==!1&&n.isMergeableObject(t)?Gr(gb(t),t,n):t}function vb(t,n,e){return t.concat(n).map(function(r){return $i(r,e)})}function yb(t,n){if(!n.customMerge)return Gr;var e=n.customMerge(t);return typeof e=="function"?e:Gr}function bb(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return t.propertyIsEnumerable(n)}):[]}function Md(t){return Object.keys(t).concat(bb(t))}function Cd(t,n){try{return n in t}catch(e){return!1}}function wb(t,n){return Cd(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))}function Eb(t,n,e){var r={};return e.isMergeableObject(t)&&Md(t).forEach(function(i){r[i]=$i(t[i],e)}),Md(n).forEach(function(i){wb(t,i)||(Cd(t,i)&&e.isMergeableObject(n[i])?r[i]=yb(i,e)(t[i],n[i],e):r[i]=$i(n[i],e))}),r}function Gr(t,n,e){e=e||{},e.arrayMerge=e.arrayMerge||vb,e.isMergeableObject=e.isMergeableObject||ub,e.cloneUnlessOtherwiseSpecified=$i;var r=Array.isArray(n),i=Array.isArray(t),a=r===i;return a?r?e.arrayMerge(t,n,e):Eb(t,n,e):$i(n,e)}Gr.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(r,i){return Gr(r,i,e)},{})};var Sb=Gr;Dd.exports=Sb});var to=rt(ot=>{"use strict";var wl=32;ot.INT_BITS=wl;ot.INT_MAX=2147483647;ot.INT_MIN=-1<0)-(t<0)};ot.abs=function(t){var n=t>>wl-1;return(t^n)-n};ot.min=function(t,n){return n^(t^n)&-(t65535)<<4,t>>>=n,e=(t>255)<<3,t>>>=e,n|=e,e=(t>15)<<2,t>>>=e,n|=e,e=(t>3)<<1,t>>>=e,n|=e,n|t>>1};ot.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0};ot.popCount=function(t){return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24};function qd(t){var n=32;return t&=-t,t&&n--,t&65535&&(n-=16),t&16711935&&(n-=8),t&252645135&&(n-=4),t&858993459&&(n-=2),t&1431655765&&(n-=1),n}ot.countTrailingZeros=qd;ot.nextPow2=function(t){return t+=t===0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1};ot.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t-(t>>>1)};ot.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,t&=15,27030>>>t&1};var Yi=new Array(256);(function(t){for(var n=0;n<256;++n){var e=n,r=n,i=7;for(e>>>=1;e;e>>>=1)r<<=1,r|=e&1,--i;t[n]=r<>>8&255]<<16|Yi[t>>>16&255]<<8|Yi[t>>>24&255]};ot.interleave2=function(t,n){return t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,t|n<<1};ot.deinterleave2=function(t,n){return t=t>>>n&1431655765,t=(t|t>>>1)&858993459,t=(t|t>>>2)&252645135,t=(t|t>>>4)&16711935,t=(t|t>>>16)&65535,t<<16>>16};ot.interleave3=function(t,n,e){return t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,t|=n<<1,e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t|e<<2};ot.deinterleave3=function(t,n){return t=t>>>n&1227133513,t=(t|t>>>2)&3272356035,t=(t|t>>>4)&251719695,t=(t|t>>>8)&4278190335,t=(t|t>>>16)&1023,t<<22>>22};ot.nextCombination=function(t){var n=t|t-1;return n+1|(~n&-~n)-1>>>qd(t)+1}});var Gd=rt((u1,Jd)=>{"use strict";function Yd(t,n,e){var r=t[e]|0;if(r<=0)return[];var i=new Array(r),a;if(e===t.length-1)for(a=0;a0)return Pb(t|0,n);break;case"object":if(typeof t.length=="number")return Yd(t,n,0);break}return[]}Jd.exports=Ob});var vf={};Oi(vf,{Buffer:()=>Z,INSPECT_MAX_BYTES:()=>tf,SlowBuffer:()=>jb,isBuffer:()=>mf,kMaxLength:()=>Kb});function Qd(){El=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,e=t.length;n0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Nb(s*3/4-a),r=a>0?s-4:s;var u=0;for(n=0,e=0;n>16&255,o[u++]=i>>8&255,o[u++]=i&255;return a===2?(i=mn[t.charCodeAt(n)]<<2|mn[t.charCodeAt(n+1)]>>4,o[u++]=i&255):a===1&&(i=mn[t.charCodeAt(n)]<<10|mn[t.charCodeAt(n+1)]<<4|mn[t.charCodeAt(n+2)]>>2,o[u++]=i>>8&255,o[u++]=i&255),o}function Rb(t){return Hn[t>>18&63]+Hn[t>>12&63]+Hn[t>>6&63]+Hn[t&63]}function Hb(t,n,e){for(var r,i=[],a=n;au?u:s+o));return r===1?(n=t[e-1],i+=Hn[n>>2],i+=Hn[n<<4&63],i+="=="):r===2&&(n=(t[e-2]<<8)+t[e-1],i+=Hn[n>>10],i+=Hn[n>>4&63],i+=Hn[n<<2&63],i+="="),a.push(i),a.join("")}function no(t,n,e,r,i){var a,o,s=i*8-r-1,u=(1<>1,c=-7,d=e?i-1:0,f=e?-1:1,h=t[n+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=a*256+t[n+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=o*256+t[n+d],d+=f,c-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(h?-1:1)*Infinity;o=o+Math.pow(2,r),a=a-l}return(h?-1:1)*o*Math.pow(2,a-r)}function Zd(t,n,e,r,i,a){var o,s,u,l=a*8-i-1,c=(1<>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,p=r?1:-1,g=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===Infinity?(s=isNaN(n)?1:0,o=c):(o=Math.floor(Math.log(n)/Math.LN2),n*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?n+=f/u:n+=f*Math.pow(2,1-d),n*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(n*u-1)*Math.pow(2,i),o=o+d):(s=n*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;t[e+h]=s&255,h+=p,s/=256,i-=8);for(o=o<0;t[e+h]=o&255,h+=p,o/=256,l-=8);t[e+h-p]|=g*128}function ro(){return Z.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function qn(t,n){if(ro()=ro())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ro().toString(16)+" bytes");return t|0}function jb(t){return+t!=t&&(t=0),Z.alloc(+t)}function Bn(t){return!!(t!=null&&t._isBuffer)}function af(t,n){if(Bn(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return oo(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return pf(t).length;default:if(r)return oo(t).length;n=(""+n).toLowerCase(),r=!0}}function Wb(t,n,e){var r=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,n>>>=0,e<=n))return"";for(t||(t="utf8");;)switch(t){case"hex":return nw(this,n,e);case"utf8":case"utf-8":return cf(this,n,e);case"ascii":return ew(this,n,e);case"latin1":case"binary":return tw(this,n,e);case"base64":return Xb(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rw(this,n,e);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function _r(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function of(t,n,e,r,i){if(t.length===0)return-1;if(typeof e=="string"?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof n=="string"&&(n=Z.from(n,r)),Bn(n))return n.length===0?-1:sf(t,n,e,r,i);if(typeof n=="number")return n=n&255,Z.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):sf(t,[n],e,r,i);throw new TypeError("val must be string, number or Buffer")}function sf(t,n,e,r,i){var a=1,o=t.length,s=n.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(t.length<2||n.length<2)return-1;a=2,o/=2,s/=2,e/=2}function u(h,p){return a===1?h[p]:h.readUInt16BE(p*a)}var l;if(i){var c=-1;for(l=e;lo&&(e=o-s),l=e;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=n.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o239?4:a>223?3:a>191?2:1;if(i+s<=e){var u,l,c,d;switch(s){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)==128&&(d=(a&31)<<6|u&63,d>127&&(o=d));break;case 3:u=t[i+1],l=t[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=t[i+1],l=t[i+2],c=t[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,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return Zb(r)}function Zb(t){var n=t.length;if(n<=uf)return String.fromCharCode.apply(String,t);for(var e="",r=0;rr)&&(e=r);for(var i="",a=n;ae)throw new RangeError("Trying to access beyond buffer length")}function Jt(t,n,e,r,i,a){if(!Bn(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||nt.length)throw new RangeError("Index out of range")}function io(t,n,e,r){n<0&&(n=65535+n+1);for(var i=0,a=Math.min(t.length-e,2);i>>(r?i:1-i)*8}function ao(t,n,e,r){n<0&&(n=4294967295+n+1);for(var i=0,a=Math.min(t.length-e,4);i>>(r?i:3-i)*8&255}function df(t,n,e,r,i,a){if(e+r>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function ff(t,n,e,r,i){return i||df(t,n,e,4),Zd(t,n,e,r,23,4),e+4}function hf(t,n,e,r,i){return i||df(t,n,e,8),Zd(t,n,e,r,52,8),e+8}function aw(t){if(t=ow(t).replace(iw,""),t.length<2)return"";for(;t.length%4!=0;)t=t+"=";return t}function ow(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function sw(t){return t<16?"0"+t.toString(16):t.toString(16)}function oo(t,n){n=n||Infinity;for(var e,r=t.length,i=null,a=[],o=0;o55295&&e<57344){if(!i){if(e>56319){(n-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(n-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(n-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(n-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((n-=1)<0)break;a.push(e)}else if(e<2048){if((n-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((n-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((n-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function lw(t){for(var n=[],e=0;e>8,i=e%256,a.push(i),a.push(r);return a}function pf(t){return Fb(aw(t))}function so(t,n,e,r){for(var i=0;i=n.length||i>=t.length);++i)n[i+e]=t[i];return i}function uw(t){return t!==t}function mf(t){return t!=null&&(!!t._isBuffer||gf(t)||dw(t))}function gf(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function dw(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&gf(t.slice(0,0))}var Hn,mn,Nb,El,Bb,ef,tf,Kb,uf,iw,yf=ky(()=>{Hn=[],mn=[],Nb=typeof Uint8Array!="undefined"?Uint8Array:Array,El=!1;Bb={}.toString,ef=Array.isArray||function(t){return Bb.call(t)=="[object Array]"};tf=50;Z.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:!0;Kb=ro();Z.poolSize=8192;Z._augment=function(t){return t.__proto__=Z.prototype,t};Z.from=function(t,n,e){return nf(null,t,n,e)};Z.TYPED_ARRAY_SUPPORT&&(Z.prototype.__proto__=Uint8Array.prototype,Z.__proto__=Uint8Array);Z.alloc=function(t,n,e){return $b(null,t,n,e)};Z.allocUnsafe=function(t){return Sl(null,t)};Z.allocUnsafeSlow=function(t){return Sl(null,t)};Z.isBuffer=mf;Z.compare=function(n,e){if(!Bn(n)||!Bn(e))throw new TypeError("Arguments must be Buffers");if(n===e)return 0;for(var r=n.length,i=e.length,a=0,o=Math.min(r,i);a0&&(n=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(n+=" ... ")),""};Z.prototype.compare=function(n,e,r,i,a){if(!Bn(n))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),r===void 0&&(r=n?n.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||r>n.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=r)return 0;if(i>=a)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,i>>>=0,a>>>=0,this===n)return 0;for(var o=a-i,s=r-e,u=Math.min(o,s),l=this.slice(i,a),c=n.slice(e,r),d=0;da)&&(r=a),n.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return qb(this,n,e,r);case"utf8":case"utf-8":return Yb(this,n,e,r);case"ascii":return lf(this,n,e,r);case"latin1":case"binary":return Jb(this,n,e,r);case"base64":return Gb(this,n,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qb(this,n,e,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};Z.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};uf=4096;Z.prototype.slice=function(n,e){var r=this.length;n=~~n,e=e===void 0?r:~~e,n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e0&&(a*=256);)i+=this[n+--e]*a;return i};Z.prototype.readUInt8=function(n,e){return e||St(n,1,this.length),this[n]};Z.prototype.readUInt16LE=function(n,e){return e||St(n,2,this.length),this[n]|this[n+1]<<8};Z.prototype.readUInt16BE=function(n,e){return e||St(n,2,this.length),this[n]<<8|this[n+1]};Z.prototype.readUInt32LE=function(n,e){return e||St(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216};Z.prototype.readUInt32BE=function(n,e){return e||St(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])};Z.prototype.readIntLE=function(n,e,r){n=n|0,e=e|0,r||St(n,e,this.length);for(var i=this[n],a=1,o=0;++o=a&&(i-=Math.pow(2,8*e)),i};Z.prototype.readIntBE=function(n,e,r){n=n|0,e=e|0,r||St(n,e,this.length);for(var i=e,a=1,o=this[n+--i];i>0&&(a*=256);)o+=this[n+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};Z.prototype.readInt8=function(n,e){return e||St(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]};Z.prototype.readInt16LE=function(n,e){e||St(n,2,this.length);var r=this[n]|this[n+1]<<8;return r&32768?r|4294901760:r};Z.prototype.readInt16BE=function(n,e){e||St(n,2,this.length);var r=this[n+1]|this[n]<<8;return r&32768?r|4294901760:r};Z.prototype.readInt32LE=function(n,e){return e||St(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24};Z.prototype.readInt32BE=function(n,e){return e||St(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]};Z.prototype.readFloatLE=function(n,e){return e||St(n,4,this.length),no(this,n,!0,23,4)};Z.prototype.readFloatBE=function(n,e){return e||St(n,4,this.length),no(this,n,!1,23,4)};Z.prototype.readDoubleLE=function(n,e){return e||St(n,8,this.length),no(this,n,!0,52,8)};Z.prototype.readDoubleBE=function(n,e){return e||St(n,8,this.length),no(this,n,!1,52,8)};Z.prototype.writeUIntLE=function(n,e,r,i){if(n=+n,e=e|0,r=r|0,!i){var a=Math.pow(2,8*r)-1;Jt(this,n,e,r,a,0)}var o=1,s=0;for(this[e]=n&255;++s=0&&(s*=256);)this[e+o]=n/s&255;return e+r};Z.prototype.writeUInt8=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,1,255,0),Z.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[e]=n&255,e+1};Z.prototype.writeUInt16LE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,2,65535,0),Z.TYPED_ARRAY_SUPPORT?(this[e]=n&255,this[e+1]=n>>>8):io(this,n,e,!0),e+2};Z.prototype.writeUInt16BE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,2,65535,0),Z.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=n&255):io(this,n,e,!1),e+2};Z.prototype.writeUInt32LE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,4,4294967295,0),Z.TYPED_ARRAY_SUPPORT?(this[e+3]=n>>>24,this[e+2]=n>>>16,this[e+1]=n>>>8,this[e]=n&255):ao(this,n,e,!0),e+4};Z.prototype.writeUInt32BE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,4,4294967295,0),Z.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=n&255):ao(this,n,e,!1),e+4};Z.prototype.writeIntLE=function(n,e,r,i){if(n=+n,e=e|0,!i){var a=Math.pow(2,8*r-1);Jt(this,n,e,r,a-1,-a)}var o=0,s=1,u=0;for(this[e]=n&255;++o>0)-u&255;return e+r};Z.prototype.writeIntBE=function(n,e,r,i){if(n=+n,e=e|0,!i){var a=Math.pow(2,8*r-1);Jt(this,n,e,r,a-1,-a)}var o=r-1,s=1,u=0;for(this[e+o]=n&255;--o>=0&&(s*=256);)n<0&&u===0&&this[e+o+1]!==0&&(u=1),this[e+o]=(n/s>>0)-u&255;return e+r};Z.prototype.writeInt8=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,1,127,-128),Z.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[e]=n&255,e+1};Z.prototype.writeInt16LE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,2,32767,-32768),Z.TYPED_ARRAY_SUPPORT?(this[e]=n&255,this[e+1]=n>>>8):io(this,n,e,!0),e+2};Z.prototype.writeInt16BE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,2,32767,-32768),Z.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=n&255):io(this,n,e,!1),e+2};Z.prototype.writeInt32LE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,4,2147483647,-2147483648),Z.TYPED_ARRAY_SUPPORT?(this[e]=n&255,this[e+1]=n>>>8,this[e+2]=n>>>16,this[e+3]=n>>>24):ao(this,n,e,!0),e+4};Z.prototype.writeInt32BE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),Z.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=n&255):ao(this,n,e,!1),e+4};Z.prototype.writeFloatLE=function(n,e,r){return ff(this,n,e,!0,r)};Z.prototype.writeFloatBE=function(n,e,r){return ff(this,n,e,!1,r)};Z.prototype.writeDoubleLE=function(n,e,r){return hf(this,n,e,!0,r)};Z.prototype.writeDoubleBE=function(n,e,r){return hf(this,n,e,!1,r)};Z.prototype.copy=function(n,e,r,i){if(r||(r=0),!i&&i!==0&&(i=this.length),e>=n.length&&(e=n.length),e||(e=0),i>0&&i=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),n.length-e=0;--o)n[o+e]=this[o+r];else if(a<1e3||!Z.TYPED_ARRAY_SUPPORT)for(o=0;o>>0,r=r===void 0?this.length:r>>>0,n||(n=0);var o;if(typeof n=="number")for(o=e;o{var Tr=(yf(),vf);if(Tr&&Tr.default){lo.exports=Tr.default;for(let t in Tr)lo.exports[t]=Tr[t]}else Tr&&(lo.exports=Tr)});var fo=rt(Re=>{"use strict";var dr=to(),xt=Gd(),wf=bf().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:xt([32,0]),UINT16:xt([32,0]),UINT32:xt([32,0]),BIGUINT64:xt([32,0]),INT8:xt([32,0]),INT16:xt([32,0]),INT32:xt([32,0]),BIGINT64:xt([32,0]),FLOAT:xt([32,0]),DOUBLE:xt([32,0]),DATA:xt([32,0]),UINT8C:xt([32,0]),BUFFER:xt([32,0])});var fw=typeof Uint8ClampedArray!="undefined",hw=typeof BigUint64Array!="undefined",pw=typeof BigInt64Array!="undefined",ut=window.__TYPEDARRAY_POOL;ut.UINT8C||(ut.UINT8C=xt([32,0]));ut.BIGUINT64||(ut.BIGUINT64=xt([32,0]));ut.BIGINT64||(ut.BIGINT64=xt([32,0]));ut.BUFFER||(ut.BUFFER=xt([32,0]));var co=ut.DATA,uo=ut.BUFFER;Re.free=function(n){if(wf.isBuffer(n))uo[dr.log2(n.length)].push(n);else{if(Object.prototype.toString.call(n)!=="[object ArrayBuffer]"&&(n=n.buffer),!n)return;var e=n.length||n.byteLength,r=dr.log2(e)|0;co[r].push(n)}};function Ef(t){if(!!t){var n=t.length||t.byteLength,e=dr.log2(n);co[e].push(t)}}function mw(t){Ef(t.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=mw;Re.freeArrayBuffer=Ef;Re.freeBuffer=function(n){uo[dr.log2(n.length)].push(n)};Re.malloc=function(n,e){if(e===void 0||e==="arraybuffer")return Gt(n);switch(e){case"uint8":return _l(n);case"uint16":return Sf(n);case"uint32":return xf(n);case"int8":return kf(n);case"int16":return _f(n);case"int32":return Tf(n);case"float":case"float32":return Mf(n);case"double":case"float64":return Cf(n);case"uint8_clamped":return Df(n);case"bigint64":return If(n);case"biguint64":return Af(n);case"buffer":return Pf(n);case"data":case"dataview":return Lf(n);default:return null}return null};function Gt(t){var t=dr.nextPow2(t),n=dr.log2(t),e=co[n];return e.length>0?e.pop():new ArrayBuffer(t)}Re.mallocArrayBuffer=Gt;function _l(t){return new Uint8Array(Gt(t),0,t)}Re.mallocUint8=_l;function Sf(t){return new Uint16Array(Gt(2*t),0,t)}Re.mallocUint16=Sf;function xf(t){return new Uint32Array(Gt(4*t),0,t)}Re.mallocUint32=xf;function kf(t){return new Int8Array(Gt(t),0,t)}Re.mallocInt8=kf;function _f(t){return new Int16Array(Gt(2*t),0,t)}Re.mallocInt16=_f;function Tf(t){return new Int32Array(Gt(4*t),0,t)}Re.mallocInt32=Tf;function Mf(t){return new Float32Array(Gt(4*t),0,t)}Re.mallocFloat32=Re.mallocFloat=Mf;function Cf(t){return new Float64Array(Gt(8*t),0,t)}Re.mallocFloat64=Re.mallocDouble=Cf;function Df(t){return fw?new Uint8ClampedArray(Gt(t),0,t):_l(t)}Re.mallocUint8Clamped=Df;function Af(t){return hw?new BigUint64Array(Gt(8*t),0,t):null}Re.mallocBigUint64=Af;function If(t){return pw?new BigInt64Array(Gt(8*t),0,t):null}Re.mallocBigInt64=If;function Lf(t){return new DataView(Gt(t),0,t)}Re.mallocDataView=Lf;function Pf(t){t=dr.nextPow2(t);var n=dr.log2(t),e=uo[n];return e.length>0?e.pop():new wf(t)}Re.mallocBuffer=Pf;Re.clearCache=function(){for(var n=0;n<32;++n)ut.UINT8[n].length=0,ut.UINT16[n].length=0,ut.UINT32[n].length=0,ut.INT8[n].length=0,ut.INT16[n].length=0,ut.INT32[n].length=0,ut.FLOAT[n].length=0,ut.DOUBLE[n].length=0,ut.BIGUINT64[n].length=0,ut.BIGINT64[n].length=0,ut.UINT8C[n].length=0,co[n].length=0,uo[n].length=0}});var Hf=rt((h1,Rf)=>{"use strict";Rf.exports=gw;var ho=32;function gw(t,n){n<=4*ho?po(0,n-1,t):go(0,n-1,t)}function po(t,n,e){for(var r=2*(t+1),i=t+1;i<=n;++i){for(var a=e[r++],o=e[r++],s=i,u=r-2;s-- >t;){var l=e[u-2],c=e[u-1];if(le[n+1]:!0}function mo(t,n,e,r){t*=2;var i=r[t];return i>1,s=o-r,u=o+r,l=i,c=s,d=o,f=u,h=a,p=t+1,g=n-1,w=0;Yn(l,c,e)&&(w=l,l=c,c=w),Yn(f,h,e)&&(w=f,f=h,h=w),Yn(l,d,e)&&(w=l,l=d,d=w),Yn(c,d,e)&&(w=c,c=d,d=w),Yn(l,f,e)&&(w=l,l=f,f=w),Yn(d,f,e)&&(w=d,d=f,f=w),Yn(c,h,e)&&(w=c,c=h,h=w),Yn(c,d,e)&&(w=c,c=d,d=w),Yn(f,h,e)&&(w=f,f=h,h=w);for(var S=e[2*c],T=e[2*c+1],k=e[2*f],D=e[2*f+1],N=2*l,C=2*d,O=2*h,B=2*i,z=2*o,Q=2*a,X=0;X<2;++X){var ie=e[N+X],q=e[C+X],J=e[O+X];e[B+X]=ie,e[z+X]=q,e[Q+X]=J}Nf(s,t,e),Nf(u,n,e);for(var te=p;te<=g;++te)if(mo(te,S,T,e))te!==p&&Of(te,p,e),++p;else if(!mo(te,k,D,e))for(;;)if(mo(g,k,D,e)){mo(g,S,T,e)?(vw(te,p,g,e),++p,--g):(Of(te,g,e),--g);break}else{if(--g{"use strict";Bf.exports={init:bw,sweepBipartite:ww,sweepComplete:Ew,scanBipartite:Sw,scanComplete:xw};var dt=fo(),yw=to(),vo=Hf(),sn=1<<28,Mr=1024,kt=dt.mallocInt32(Mr),Jn=dt.mallocInt32(Mr),Gn=dt.mallocInt32(Mr),Cr=dt.mallocInt32(Mr),ei=dt.mallocInt32(Mr),Ji=dt.mallocInt32(Mr),Pe=dt.mallocDouble(Mr*8);function bw(t){var n=yw.nextPow2(t);kt.length>>1;vo(Pe,T);for(var k=0,D=0,p=0;p=sn)N=N-sn|0,ti(Gn,Cr,D--,N);else if(N>=0)ti(kt,Jn,k--,N);else if(N<=-sn){N=-N-sn|0;for(var C=0;C>>1;vo(Pe,T);for(var k=0,D=0,N=0,p=0;p>1==Pe[2*p+3]>>1&&(O=2,p+=1),C<0){for(var B=-(C>>1)-1,z=0;z>1)-1;O===0?ti(kt,Jn,k--,B):O===1?ti(Gn,Cr,D--,B):O===2&&ti(ei,Ji,N--,B)}}}function Sw(t,n,e,r,i,a,o,s,u,l,c,d){var f=0,h=2*t,p=n,g=n+t,w=1,S=1;r?S=sn:w=sn;for(var T=i;T>>1;vo(Pe,C);for(var O=0,T=0;T=sn?(z=!r,k-=sn):(z=!!r,k-=1),z)ni(kt,Jn,O++,k);else{var Q=d[k],X=h*k,ie=c[X+n+1],q=c[X+n+1+t];e:for(var J=0;J>>1;vo(Pe,k);for(var D=0,g=0;g=sn)kt[D++]=w-sn;else{w-=1;var C=c[w],O=f*w,B=l[O+n+1],z=l[O+n+1+t];e:for(var Q=0;Q=0;--Q)if(kt[Q]===w){for(var J=Q+1;J{"use strict";var Dr="d",ri="ax",Kf="vv",Ml="fp",Gi="es",yo="rs",Cl="re",Qi="rb",$f="ri",ii="rp",bo="bs",Dl="be",Xi="bb",Uf="bi",ai="bp",Al="rv",Il="Q",Ll=[Dr,ri,Kf,yo,Cl,Qi,$f,bo,Dl,Xi,Uf];function kw(t,n,e){var r="bruteForce"+(t?"Red":"Blue")+(n?"Flip":"")+(e?"Full":""),i=["function ",r,"(",Ll.join(),"){","var ",Gi,"=2*",Dr,";"],a="for(var i="+yo+","+ii+"="+Gi+"*"+yo+";i<"+Cl+";++i,"+ii+"+="+Gi+"){var x0="+Qi+"["+ri+"+"+ii+"],x1="+Qi+"["+ri+"+"+ii+"+"+Dr+"],xi="+$f+"[i];",o="for(var j="+bo+","+ai+"="+Gi+"*"+bo+";j<"+Dl+";++j,"+ai+"+="+Gi+"){var y0="+Xi+"["+ri+"+"+ai+"],"+(e?"y1="+Xi+"["+ri+"+"+ai+"+"+Dr+"],":"")+"yi="+Uf+"[j];";return t?i.push(a,Il,":",o):i.push(o,Il,":",a),e?i.push("if(y1"+Dl+"-"+bo+"){"),t?(a(!0,!1),i.push("}else{"),a(!1,!1)):(i.push("if("+Ml+"){"),a(!0,!0),i.push("}else{"),a(!0,!1),i.push("}}else{if("+Ml+"){"),a(!1,!0),i.push("}else{"),a(!1,!1),i.push("}")),i.push("}}return "+n);var o=e.join("")+i.join(""),s=new Function(o);return s()}Pl.partial=zf(!1);Pl.full=zf(!0)});var Ol=rt((g1,jf)=>{"use strict";jf.exports=Tw;var _w="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 Tw(t,n){var e="abcdef".split("").concat(n),r=[];return t.indexOf("lo")>=0&&r.push("lo=e[k+n]"),t.indexOf("hi")>=0&&r.push("hi=e[k+o]"),e.push(_w.replace("_",r.join()).replace("$",t)),Function.apply(void 0,e)}});var Yf=rt((v1,qf)=>{"use strict";qf.exports=Aw;var Mw=Ol(),Wf=Mw("loe&&i[d+n]>l;--c,d-=o){for(var f=d,h=d+o,p=0;p>>1,l=2*t,c=u,d=i[l*u+n];o=w?(c=g,d=w):p>=T?(c=h,d=p):(c=S,d=T):w>=T?(c=g,d=w):T>=p?(c=h,d=p):(c=S,d=T);for(var k=l*(s-1),D=l*c,N=0;N{"use strict";eh.exports=zw;var oi=fo(),Nl=to(),Jf=Vf(),Iw=Jf.partial,Lw=Jf.full,fr=Tl(),Pw=Yf(),si=Ol(),Gf=128,Ow=1<<22,Nw=1<<22,Fw=si("!(lo>=p0)&&!(p1>=hi)",["p0","p1"]),Qf=si("lo===p0",["p0"]),Rw=si("lo0;){l-=1;var f=l*Fl,h=Ut[f],p=Ut[f+1],g=Ut[f+2],w=Ut[f+3],S=Ut[f+4],T=Ut[f+5],k=l*Rl,D=Ar[k],N=Ar[k+1],C=T&1,O=!!(T&16),B=i,z=a,Q=s,X=u;if(C&&(B=s,z=u,Q=i,X=a),!(T&2&&(g=Rw(t,h,p,g,B,z,N),p>=g))&&!(T&4&&(p=Hw(t,h,p,g,B,z,D),p>=g))){var ie=g-p,q=S-w;if(O){if(t*ie*(ie+q){"use strict";ih.exports=Yw;var hr=fo(),wo=Tl(),Vw=th();function jw(t,n){for(var e=0;e>>1;if(!(o<=0)){var s,u=hr.mallocDouble(2*o*i),l=hr.mallocInt32(i);if(i=nh(t,o,u,l),i>0){if(o===1&&r)wo.init(i),s=wo.sweepComplete(o,e,0,i,u,l,0,i,u,l);else{var c=hr.mallocDouble(2*o*a),d=hr.mallocInt32(a);a=nh(n,o,c,d),a>0&&(wo.init(i+a),o===1?s=wo.sweepBipartite(o,e,0,i,u,l,0,a,c,d):s=Vw(o,e,r,i,u,l,a,c,d),hr.free(c),hr.free(d))}hr.free(u),hr.free(l)}return s}}}var Zi;function rh(t,n){Zi.push([t,n])}function Ww(t){return Zi=[],Eo(t,t,rh,!0),Zi}function qw(t,n){return Zi=[],Eo(t,n,rh,!1),Zi}function Yw(t,n,e){var r;switch(arguments.length){case 1:return Ww(t);case 2:return typeof n=="function"?Eo(t,t,n,!0):qw(t,n);case 3:return Eo(t,n,e,!1);default:throw new Error("box-intersect: Invalid arguments")}}});var Th=rt((E1,_o)=>{var oh,sh,lh,ch,uh,dh,fh,hh,ph,xo,Hl,mh,gh,vh,li,yh,bh,wh,Eh,Sh,xh,kh,_h,ko;(function(t){var n=typeof window=="object"?window:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){t(e(n,e(r)))}):typeof _o=="object"&&typeof _o.exports=="object"?t(e(n,e(_o.exports))):t(e(n));function e(r,i){return r!==n&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(a,o){return r[a]=i?i(a,o):o}}})(function(t){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])};oh=function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)},sh=Object.assign||function(r){for(var i,a=1,o=arguments.length;a=0;c--)(l=r[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},uh=function(r,i){return function(a,o){i(a,o,r)}},dh=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},fh=function(r,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(h){try{f(o.next(h))}catch(p){l(p)}}function d(h){try{f(o.throw(h))}catch(p){l(p)}}function f(h){h.done?u(h.value):s(h.value).then(c,d)}f((o=o.apply(r,i||[])).next())})},hh=function(r,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(h){return d([f,h])}}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]=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Hl=function(r,i){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var o=a.call(r),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},mh=function(){for(var r=[],i=0;i1||c(g,w)})})}function c(g,w){try{d(o[g](w))}catch(S){p(u[0][3],S)}}function d(g){g.value instanceof li?Promise.resolve(g.value.v).then(f,h):p(u[0][2],g)}function f(g){c("next",g)}function h(g){c("throw",g)}function p(g,w){g(w),u.shift(),u.length&&c(u[0][0],u[0][1])}},bh=function(r){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]=r[s]?function(l){return(a=!a)?{value:li(r[s](l)),done:s==="return"}:u?u(l):l}:u}},wh=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],a;return i?i.call(r):(r=typeof xo=="function"?xo(r):r[Symbol.iterator](),a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a);function o(u){a[u]=r[u]&&function(l){return new Promise(function(c,d){l=r[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)}},Eh=function(r,i){return Object.defineProperty?Object.defineProperty(r,"raw",{value:i}):r.raw=i,r};var e=Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:!0,value:i})}:function(r,i){r.default=i};Sh=function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)&&ko(i,r,a);return e(i,r),i},xh=function(r){return r&&r.__esModule?r:{default:r}},kh=function(r,i,a,o){if(a==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!o:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?o:a==="a"?o.call(r):o?o.value:i.get(r)},_h=function(r,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"?r!==i||!s:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?s.call(r,a):s?s.value=a:i.set(r,a),a},t("__extends",oh),t("__assign",sh),t("__rest",lh),t("__decorate",ch),t("__param",uh),t("__metadata",dh),t("__awaiter",fh),t("__generator",hh),t("__exportStar",ph),t("__createBinding",ko),t("__values",xo),t("__read",Hl),t("__spread",mh),t("__spreadArrays",gh),t("__spreadArray",vh),t("__await",li),t("__asyncGenerator",yh),t("__asyncDelegator",bh),t("__asyncValues",wh),t("__makeTemplateObject",Eh),t("__importStar",Sh),t("__importDefault",xh),t("__classPrivateFieldGet",kh),t("__classPrivateFieldSet",_h)})});var ql=rt(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});var it=require("obsidian"),jl="YYYY-MM-DD",Wl="gggg-[W]ww",Hh="YYYY-MM",Bh="YYYY-[Q]Q",Kh="YYYY";function ia(t){let n=window.app.plugins.getPlugin("periodic-notes");return n&&n.settings?.[t]?.enabled}function aa(){try{let{internalPlugins:t,plugins:n}=window.app;if(ia("daily")){let{format:a,folder:o,template:s}=n.getPlugin("periodic-notes")?.settings?.daily||{};return{format:a||jl,folder:o?.trim()||"",template:s?.trim()||""}}let{folder:e,format:r,template:i}=t.getPluginById("daily-notes")?.instance?.options||{};return{format:r||jl,folder:e?.trim()||"",template:i?.trim()||""}}catch(t){console.info("No custom daily note settings found!",t)}}function oa(){try{let t=window.app.plugins,n=t.getPlugin("calendar")?.options,e=t.getPlugin("periodic-notes")?.settings?.weekly;if(ia("weekly"))return{format:e.format||Wl,folder:e.folder?.trim()||"",template:e.template?.trim()||""};let r=n||{};return{format:r.weeklyNoteFormat||Wl,folder:r.weeklyNoteFolder?.trim()||"",template:r.weeklyNoteTemplate?.trim()||""}}catch(t){console.info("No custom weekly note settings found!",t)}}function sa(){let t=window.app.plugins;try{let n=ia("monthly")&&t.getPlugin("periodic-notes")?.settings?.monthly||{};return{format:n.format||Hh,folder:n.folder?.trim()||"",template:n.template?.trim()||""}}catch(n){console.info("No custom monthly note settings found!",n)}}function la(){let t=window.app.plugins;try{let n=ia("quarterly")&&t.getPlugin("periodic-notes")?.settings?.quarterly||{};return{format:n.format||Bh,folder:n.folder?.trim()||"",template:n.template?.trim()||""}}catch(n){console.info("No custom quarterly note settings found!",n)}}function ca(){let t=window.app.plugins;try{let n=ia("yearly")&&t.getPlugin("periodic-notes")?.settings?.yearly||{};return{format:n.format||Kh,folder:n.folder?.trim()||"",template:n.template?.trim()||""}}catch(n){console.info("No custom yearly note settings found!",n)}}function $h(...t){let n=[];for(let r=0,i=t.length;r{let T=r(),k=t.clone().set({hour:T.get("hour"),minute:T.get("minute"),second:T.get("second")});return p&&k.add(parseInt(g,10),w),S?k.format(S.substring(1).trim()):k.format(a)}).replace(/{{\s*yesterday\s*}}/gi,t.clone().subtract(1,"day").format(a)).replace(/{{\s*tomorrow\s*}}/gi,t.clone().add(1,"d").format(a)));return n.foldManager.save(d,u),d}catch(d){console.error(`Failed to create file: '${c}'`,d),new it.Notice("Unable to create new file.")}}function fE(t,n){return n[xn(t,"day")]??null}function hE(){let{vault:t}=window.app,{folder:n}=aa(),e=t.getAbstractFileByPath(it.normalizePath(n));if(!e)throw new Vh("Failed to find daily notes folder");let r={};return it.Vault.recurseChildren(e,i=>{if(i instanceof it.TFile){let a=pi(i,"day");if(a){let o=xn(a,"day");r[o]=i}}}),r}var Wh=class extends Error{};function pE(){let{moment:t}=window,n=t.localeData()._week.dow,e=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];for(;n;)e.push(e.shift()),n--;return e}function mE(t){return pE().indexOf(t.toLowerCase())}async function qh(t){let{vault:n}=window.app,{template:e,format:r,folder:i}=oa(),[a,o]=await hi(e),s=t.format(r),u=await ua(i,s);try{let l=await n.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,h,p,g)=>{let w=window.moment(),S=t.clone().set({hour:w.get("hour"),minute:w.get("minute"),second:w.get("second")});return f&&S.add(parseInt(h,10),p),g?S.format(g.substring(1).trim()):S.format(r)}).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 h=mE(d);return t.weekday(h).format(f.trim())}));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new it.Notice("Unable to create new file.")}}function gE(t,n){return n[xn(t,"week")]??null}function vE(){let t={};if(!Xh())return t;let{vault:n}=window.app,{folder:e}=oa(),r=n.getAbstractFileByPath(it.normalizePath(e));if(!r)throw new Wh("Failed to find weekly notes folder");return it.Vault.recurseChildren(r,i=>{if(i instanceof it.TFile){let a=pi(i,"week");if(a){let o=xn(a,"week");t[o]=i}}}),t}var Yh=class extends Error{};async function Jh(t){let{vault:n}=window.app,{template:e,format:r,folder:i}=sa(),[a,o]=await hi(e),s=t.format(r),u=await ua(i,s);try{let l=await n.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,h,p,g)=>{let w=window.moment(),S=t.clone().set({hour:w.get("hour"),minute:w.get("minute"),second:w.get("second")});return f&&S.add(parseInt(h,10),p),g?S.format(g.substring(1).trim()):S.format(r)}).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 it.Notice("Unable to create new file.")}}function yE(t,n){return n[xn(t,"month")]??null}function bE(){let t={};if(!Zh())return t;let{vault:n}=window.app,{folder:e}=sa(),r=n.getAbstractFileByPath(it.normalizePath(e));if(!r)throw new Yh("Failed to find monthly notes folder");return it.Vault.recurseChildren(r,i=>{if(i instanceof it.TFile){let a=pi(i,"month");if(a){let o=xn(a,"month");t[o]=i}}}),t}var Gh=class extends Error{};async function wE(t){let{vault:n}=window.app,{template:e,format:r,folder:i}=la(),[a,o]=await hi(e),s=t.format(r),u=await ua(i,s);try{let l=await n.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,h,p,g)=>{let w=window.moment(),S=t.clone().set({hour:w.get("hour"),minute:w.get("minute"),second:w.get("second")});return f&&S.add(parseInt(h,10),p),g?S.format(g.substring(1).trim()):S.format(r)}).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 it.Notice("Unable to create new file.")}}function EE(t,n){return n[xn(t,"quarter")]??null}function SE(){let t={};if(!ep())return t;let{vault:n}=window.app,{folder:e}=la(),r=n.getAbstractFileByPath(it.normalizePath(e));if(!r)throw new Gh("Failed to find quarterly notes folder");return it.Vault.recurseChildren(r,i=>{if(i instanceof it.TFile){let a=pi(i,"quarter");if(a){let o=xn(a,"quarter");t[o]=i}}}),t}var Qh=class extends Error{};async function xE(t){let{vault:n}=window.app,{template:e,format:r,folder:i}=ca(),[a,o]=await hi(e),s=t.format(r),u=await ua(i,s);try{let l=await n.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,h,p,g)=>{let w=window.moment(),S=t.clone().set({hour:w.get("hour"),minute:w.get("minute"),second:w.get("second")});return f&&S.add(parseInt(h,10),p),g?S.format(g.substring(1).trim()):S.format(r)}).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 it.Notice("Unable to create new file.")}}function kE(t,n){return n[xn(t,"year")]??null}function _E(){let t={};if(!tp())return t;let{vault:n}=window.app,{folder:e}=ca(),r=n.getAbstractFileByPath(it.normalizePath(e));if(!r)throw new Qh("Failed to find yearly notes folder");return it.Vault.recurseChildren(r,i=>{if(i instanceof it.TFile){let a=pi(i,"year");if(a){let o=xn(a,"year");t[o]=i}}}),t}function TE(){let{app:t}=window,n=t.internalPlugins.plugins["daily-notes"];if(n&&n.enabled)return!0;let e=t.plugins.getPlugin("periodic-notes");return e&&e.settings?.daily?.enabled}function Xh(){let{app:t}=window;if(t.plugins.getPlugin("calendar"))return!0;let n=t.plugins.getPlugin("periodic-notes");return n&&n.settings?.weekly?.enabled}function Zh(){let{app:t}=window,n=t.plugins.getPlugin("periodic-notes");return n&&n.settings?.monthly?.enabled}function ep(){let{app:t}=window,n=t.plugins.getPlugin("periodic-notes");return n&&n.settings?.quarterly?.enabled}function tp(){let{app:t}=window,n=t.plugins.getPlugin("periodic-notes");return n&&n.settings?.yearly?.enabled}function ME(t){return{day:aa,week:oa,month:sa,quarter:la,year:ca}[t]()}function CE(t,n){return{day:jh,month:Jh,week:qh}[t](n)}Ne.DEFAULT_DAILY_NOTE_FORMAT=jl;Ne.DEFAULT_MONTHLY_NOTE_FORMAT=Hh;Ne.DEFAULT_QUARTERLY_NOTE_FORMAT=Bh;Ne.DEFAULT_WEEKLY_NOTE_FORMAT=Wl;Ne.DEFAULT_YEARLY_NOTE_FORMAT=Kh;Ne.appHasDailyNotesPluginLoaded=TE;Ne.appHasMonthlyNotesPluginLoaded=Zh;Ne.appHasQuarterlyNotesPluginLoaded=ep;Ne.appHasWeeklyNotesPluginLoaded=Xh;Ne.appHasYearlyNotesPluginLoaded=tp;Ne.createDailyNote=jh;Ne.createMonthlyNote=Jh;Ne.createPeriodicNote=CE;Ne.createQuarterlyNote=wE;Ne.createWeeklyNote=qh;Ne.createYearlyNote=xE;Ne.getAllDailyNotes=hE;Ne.getAllMonthlyNotes=bE;Ne.getAllQuarterlyNotes=SE;Ne.getAllWeeklyNotes=vE;Ne.getAllYearlyNotes=_E;Ne.getDailyNote=fE;Ne.getDailyNoteSettings=aa;Ne.getDateFromFile=pi;Ne.getDateFromPath=dE;Ne.getDateUID=xn;Ne.getMonthlyNote=yE;Ne.getMonthlyNoteSettings=sa;Ne.getPeriodicNoteSettings=ME;Ne.getQuarterlyNote=EE;Ne.getQuarterlyNoteSettings=la;Ne.getTemplateInfo=hi;Ne.getWeeklyNote=gE;Ne.getWeeklyNoteSettings=oa;Ne.getYearlyNote=kE;Ne.getYearlyNoteSettings=ca});var op=rt((No,ap)=>{(function(t,n){typeof No=="object"&&typeof ap!="undefined"?n(No):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,n(t.index={}))})(No,function(t){"use strict";var n=function(){return n=Object.assign||function(Ln){for(var Oa,qs=1,yy=arguments.length;qs3&&Ln<21)return"\xE8";switch(Ln%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};w.l10ns.cat=w.l10ns.ca=S,w.l10ns;var T=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},k={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:function(){return""}};T.l10ns.ckb=k,T.l10ns;var D=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},N={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};D.l10ns.cs=N,D.l10ns;var C=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},O={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:function(je){return je===1?"af":je===2?"ail":je===3||je===4?"ydd":je===5||je===6?"ed":je>=7&&je<=10||je==12||je==15||je==18||je==20?"fed":je==11||je==13||je==14||je==16||je==17||je==19?"eg":je>=21&&je<=39?"ain":""},time_24hr:!0};C.l10ns.cy=O,C.l10ns;var B=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},z={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:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge",time_24hr:!0};B.l10ns.da=z,B.l10ns;var Q=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},X={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};Q.l10ns.de=X,Q.l10ns;var ie={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:function(je){var Ln=je%100;if(Ln>3&&Ln<21)return"th";switch(Ln%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},q=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},J={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:function(){return"-a"},time_24hr:!0};q.l10ns.eo=J,q.l10ns;var te=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ce={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:function(){return"\xBA"},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};te.l10ns.es=ce,te.l10ns;var de=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},fe={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};de.l10ns.et=fe,de.l10ns;var he=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},De={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:function(){return""}};he.l10ns.fa=De,he.l10ns;var A=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},I={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:function(){return"."},time_24hr:!0};A.l10ns.fi=I,A.l10ns;var et=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},qe={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:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",scrollTitle:"Rulla fyri at broyta",toggleTitle:"Tr\xFDst fyri at skifta",yearAriaLabel:"\xC1r",time_24hr:!0};et.l10ns.fo=qe,et.l10ns;var K=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},V={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:function(je){return je>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"D\xE9filer pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};K.l10ns.fr=V,K.l10ns;var U=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},G={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"};U.l10ns.gr=G,U.l10ns;var ye=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ee={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};ye.l10ns.he=Ee,ye.l10ns;var Fe=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ge={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"]}};Fe.l10ns.hi=Ge,Fe.l10ns;var ht=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},pt={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};ht.l10ns.hr=pt,ht.l10ns;var tn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},yn={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};tn.l10ns.hu=yn,tn.l10ns;var nn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Wt={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};nn.l10ns.hy=Wt,nn.l10ns;var Ct=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Un={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:function(){return""},time_24hr:!0,rangeSeparator:" - "};Ct.l10ns.id=Un,Ct.l10ns;var zn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Tn={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:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"\xC1r",time_24hr:!0};zn.l10ns.is=Tn,zn.l10ns;var Mn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Cn={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:function(){return"\xB0"},rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare",time_24hr:!0};Mn.l10ns.it=Cn,Mn.l10ns;var lt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Bt={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"};lt.l10ns.ja=Bt,lt.l10ns;var tt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},j={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};tt.l10ns.ka=j,tt.l10ns;var ne=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},be={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:function(){return"\uC77C"},rangeSeparator:" ~ ",amPM:["\uC624\uC804","\uC624\uD6C4"]};ne.l10ns.ko=be,ne.l10ns;var Be=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ct={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:function(){return""},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};Be.l10ns.km=ct,Be.l10ns;var rn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ue={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"};rn.l10ns.kz=Ue,rn.l10ns;var Se=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dt={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};Se.l10ns.lt=Dt,Se.l10ns;var Kt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ye={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};Kt.l10ns.lv=Ye,Kt.l10ns;var qt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},yt={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};qt.l10ns.mk=yt,qt.l10ns;var Yt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},$r={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};Yt.l10ns.mn=$r,Yt.l10ns;var Li=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},x={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:function(){return""}};Li.l10ns;var _=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},R={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:function(){return""},time_24hr:!0};_.l10ns.my=R,_.l10ns;var W=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},re={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:function(je){return je===1||je===8||je>=20?"ste":"de"}};W.l10ns.nl=re,W.l10ns;var ae=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},xe={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:function(){return"."}};ae.l10ns.nn=xe,ae.l10ns;var ue=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},_e={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:function(){return"."}};ue.l10ns.no=_e,ue.l10ns;var le=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},we={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};le.l10ns.pa=we,le.l10ns;var ze=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},At={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:function(){return"."}};ze.l10ns.pl=At,ze.l10ns;var mt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dn={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};mt.l10ns.pt=Dn,mt.l10ns;var bn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Sr={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:function(){return""}};bn.l10ns.ro=Sr,bn.l10ns;var Vn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ur={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};Vn.l10ns.ru=Ur,Vn.l10ns;var zr=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Vr={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};zr.l10ns.si=Vr,zr.l10ns;var jr=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Pi={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"."}};jr.l10ns.sk=Pi,jr.l10ns;var L=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},y={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"."}};L.l10ns.sl=y,L.l10ns;var b=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},m={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"]},time_24hr:!0};b.l10ns.sq=m,b.l10ns;var E=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},M={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};E.l10ns.sr=M,E.l10ns;var P=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},H={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:function(){return"."}};P.l10ns.sv=H,P.l10ns;var Y=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ee={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:function(){return""}};Y.l10ns.th=ee,Y.l10ns;var oe=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ve={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:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmak i\xE7in kayd\u0131r\u0131n",toggleTitle:"A\xE7/Kapa",amPM:["\xD6\xD6","\xD6S"],time_24hr:!0};oe.l10ns.tr=ve,oe.l10ns;var pe=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ce={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};pe.l10ns.uk=Ce,pe.l10ns;var Ie=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Te={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};Ie.l10ns.uz=Te,Ie.l10ns;var Oe=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ae={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};Oe.l10ns.uz_latn=Ae,Oe.l10ns;var Le=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},nt={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 "};Le.l10ns.vn=nt,Le.l10ns;var gt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},bt={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"};gt.l10ns.zh=bt,gt.l10ns;var An=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},In={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"};An.l10ns.zh_tw=In,An.l10ns;var ar={ar:r,at:a,az:s,be:l,bg:h,bn:g,bs:d,ca:S,ckb:k,cat:S,cs:N,cy:O,da:z,de:X,default:n({},ie),en:ie,eo:J,es:ce,et:fe,fa:De,fi:I,fo:qe,fr:V,gr:G,he:Ee,hi:Ge,hr:pt,hu:yn,hy:Wt,id:Un,is:Tn,it:Cn,ja:Bt,ka:j,ko:be,km:ct,kz:Ue,lt:Dt,lv:Ye,mk:yt,mn:$r,ms:x,my:R,nl:re,nn:xe,no:_e,pa:we,pl:At,pt:Dn,ro:Sr,ru:Ur,si:Vr,sk:Pi,sl:y,sq:m,sr:M,sv:H,th:ee,tr:ve,uk:Ce,vn:nt,zh:bt,zh_tw:In,uz:Te,uz_latn:Ae};t.default=ar,Object.defineProperty(t,"__esModule",{value:!0})})});var pa=rt((uM,mc)=>{"use strict";var DS=Object.prototype.hasOwnProperty,zt="~";function ha(){}Object.create&&(ha.prototype=Object.create(null),new ha().__proto__||(zt=!1));function AS(t,n,e){this.fn=t,this.context=n,this.once=e||!1}function Wp(t,n,e,r,i){if(typeof e!="function")throw new TypeError("The listener must be a function");var a=new AS(e,r||t,i),o=zt?zt+n:n;return t._events[o]?t._events[o].fn?t._events[o]=[t._events[o],a]:t._events[o].push(a):(t._events[o]=a,t._eventsCount++),t}function Xo(t,n){--t._eventsCount==0?t._events=new ha:delete t._events[n]}function Ft(){this._events=new ha,this._eventsCount=0}Ft.prototype.eventNames=function(){var n=[],e,r;if(this._eventsCount===0)return n;for(r in e=this._events)DS.call(e,r)&&n.push(zt?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n};Ft.prototype.listeners=function(n){var e=zt?zt+n:n,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);i{(function(){var t=["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"],n=typeof window!="undefined",e=n&&window.mozInnerScreenX!=null;function r(i,a,o){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var s=o&&o.debug||!1;if(s){var u=document.querySelector("#input-textarea-caret-position-mirror-div");u&&u.parentNode.removeChild(u)}var l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);var c=l.style,d=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,f=i.nodeName==="INPUT";c.whiteSpace="pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",s||(c.visibility="hidden"),t.forEach(function(g){f&&g==="lineHeight"?c.lineHeight=d.height:c[g]=d[g]}),e?i.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",l.textContent=i.value.substring(0,a),f&&(l.textContent=l.textContent.replace(/\s/g,"\xA0"));var h=document.createElement("span");h.textContent=i.value.substring(a)||".",l.appendChild(h);var p={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),height:parseInt(d.lineHeight)};return s?h.style.backgroundColor="#aaa":document.body.removeChild(l),p}typeof Zo!="undefined"&&typeof Zo.exports!="undefined"?Zo.exports=r:n&&(window.getCaretCoordinates=r)})()});var $m=rt((Ac,Ic)=>{(function(t,n){typeof Ac=="object"&&typeof Ic!="undefined"?Ic.exports=n():typeof define=="function"&&define.amd?define(n):t.Mark=n()})(Ac,function(){"use strict";var t=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},n=function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")},e=function(){function s(u,l){for(var c=0;c1&&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;n(this,s),this.ctx=u,this.iframes=l,this.exclude=c,this.iframesTimeout=d}return e(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(h){return h.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 h=l.contentWindow;if(f=h.document,!h||!f)throw new Error("iframe inaccessible")}catch(p){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,h=!1,p=null,g=function w(){if(!h){h=!0,clearTimeout(p);try{f.isIframeBlank(l)||(l.removeEventListener("load",w),f.getIframeContents(l,c,d))}catch(S){d()}}};l.addEventListener("load",g),p=setTimeout(g,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(h){f++,d.waitForIframes(h.querySelector("html"),function(){--f||c()})},function(h){h||c()})}},{key:"forEachIframe",value:function(l,c,d){var f=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},p=l.querySelectorAll("iframe"),g=p.length,w=0;p=Array.prototype.slice.call(p);var S=function(){--g<=0&&h(w)};g||S(),p.forEach(function(T){s.matches(T,f.exclude)?S():f.onIframeReady(T,function(k){c(T)&&(w++,d(k)),S()},S)})}},{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),h=Node.DOCUMENT_POSITION_PRECEDING;if(f&h)if(c!==null){var p=c.compareDocumentPosition(d),g=Node.DOCUMENT_POSITION_FOLLOWING;if(p&g)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 h=!1,p=!1;return f.forEach(function(g,w){g.val===d&&(h=w,p=g.handled)}),this.compareNodeIframe(l,c,d)?(h===!1&&!p?f.push({val:d,handled:!0}):h!==!1&&!p&&(f[h].handled=!0),!0):(h===!1&&f.push({val:d,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,c,d,f){var h=this;l.forEach(function(p){p.handled||h.getIframeContents(p.val,function(g){h.createInstanceOnIframe(g).forEachNode(c,d,f)})})}},{key:"iterateThroughNodes",value:function(l,c,d,f,h){for(var p=this,g=this.createIterator(c,l,f),w=[],S=[],T=void 0,k=void 0,D=function(){var C=p.getIteratorNode(g);return k=C.prevNode,T=C.node,T};D();)this.iframes&&this.forEachIframe(c,function(N){return p.checkIframeFilter(T,k,N,w)},function(N){p.createInstanceOnIframe(N).forEachNode(l,function(C){return S.push(C)},f)}),S.push(T);S.forEach(function(N){d(N)}),this.iframes&&this.handleOpenIframes(w,l,d,f),h()}},{key:"forEachNode",value:function(l,c,d){var f=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},p=this.getContexts(),g=p.length;g||h(),p.forEach(function(w){var S=function(){f.iterateThroughNodes(l,w,c,d,function(){--g<=0&&h()})};f.iframes?f.waitForIframes(w,S):S()})}}],[{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 h=!1;return d.every(function(p){return f.call(l,p)?(h=!0,!1):!0}),h}else return!1}}]),s}(),a=function(){function s(u){n(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 e(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":t(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 h in c)if(c.hasOwnProperty(h)){var p=c[h],g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),w=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);g!==""&&w!==""&&(l=l.replace(new RegExp("("+this.escapeStr(g)+"|"+this.escapeStr(w)+")","gm"+d),f+("("+this.processSynomyms(g)+"|")+(this.processSynomyms(w)+")")+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 h=f.charAt(d+1);return/[(|)\\]/.test(h)||h===""?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(h){d.every(function(p){if(p.indexOf(h)!==-1){if(f.indexOf(p)>-1)return!1;l=l.replace(new RegExp("["+p+"]","gm"+c),"["+p+"]"),f.push(p)}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,h=typeof f=="string"?f:f.value,p=typeof f=="string"?[]:f.limiters,g="";switch(p.forEach(function(w){g+="|"+c.escapeStr(w)}),h){case"partially":default:return"()("+l+")";case"complementary":return g="\\s"+(g||this.escapeStr(d)),"()([^"+g+"]*"+l+"[^"+g+"]*)";case"exactly":return"(^|\\s"+g+")("+l+")(?=$|\\s"+g+")"}}},{key:"getSeparatedKeywords",value:function(l){var c=this,d=[];return l.forEach(function(f){c.opt.separateWordSearch?f.split(" ").forEach(function(h){h.trim()&&d.indexOf(h)===-1&&d.push(h)}):f.trim()&&d.indexOf(f)===-1&&d.push(f)}),{keywords:d.sort(function(f,h){return h.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(h,p){return h.start-p.start}).forEach(function(h){var p=c.callNoMatchOnInvalidRanges(h,f),g=p.start,w=p.end,S=p.valid;S&&(h.start=g,h.length=w-g,d.push(h),f=w)}),d}},{key:"callNoMatchOnInvalidRanges",value:function(l,c){var d=void 0,f=void 0,h=!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?h=!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:h}}},{key:"checkWhitespaceRanges",value:function(l,c,d){var f=void 0,h=!0,p=d.length,g=c-p,w=parseInt(l.start,10)-g;return w=w>p?p:w,f=w+parseInt(l.length,10),f>p&&(f=p,this.log("End range automatically set to the max value of "+p)),w<0||f-w<0||w>p||f>p?(h=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):d.substring(w,f).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:w,end:f,valid:h}}},{key:"getTextNodes",value:function(l){var c=this,d="",f=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(h){f.push({start:d.length,end:(d+=h.textContent).length,node:h})},function(h){return c.matchesExclude(h.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",h=l.splitText(c),p=h.splitText(d-c),g=document.createElement(f);return g.setAttribute("data-markjs","true"),this.opt.className&&g.setAttribute("class",this.opt.className),g.textContent=h.textContent,h.parentNode.replaceChild(g,h),p}},{key:"wrapRangeInMappedTextNode",value:function(l,c,d,f,h){var p=this;l.nodes.every(function(g,w){var S=l.nodes[w+1];if(typeof S=="undefined"||S.start>c){if(!f(g.node))return!1;var T=c-g.start,k=(d>g.end?g.end:d)-g.start,D=l.value.substr(0,g.start),N=l.value.substr(k+g.start);if(g.node=p.wrapRangeInTextNode(g.node,T,k),l.value=D+N,l.nodes.forEach(function(C,O){O>=w&&(l.nodes[O].start>0&&O!==w&&(l.nodes[O].start-=k),l.nodes[O].end-=k)}),d-=k,h(g.node.previousSibling,g.start),d>g.end)c=g.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,c,d,f,h){var p=this,g=c===0?0:c+1;this.getTextNodes(function(w){w.nodes.forEach(function(S){S=S.node;for(var T=void 0;(T=l.exec(S.textContent))!==null&&T[g]!=="";)if(!!d(T[g],S)){var k=T.index;if(g!==0)for(var D=1;D{"use strict";var rs=rr&&rr.__assign||function(){return rs=Object.assign||function(t){for(var n,e=1,r=arguments.length;e0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]-1&&(n&&nr.cancelMethods[e](),nr.elements.splice(e,1),nr.cancelMethods.splice(e,1))}},rg=typeof window!="undefined",Hx={cancelOnUserAction:!0,easing:function(t){return--t*t*t+1},elementToScroll:rg?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};function Bx(t,n){return n===void 0&&(n={}),Ox(this,void 0,void 0,function(){var e,r,i,a,o,s,u,l,c,d,f,h,p,g,w,S,T,k;return Nx(this,function(D){if(rg){if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill."}else return[2,new Promise(function(N){N(!1)})];if(a=rs(rs({},Hx),n),o=a.elementToScroll===window,s=!!a.elementToScroll.nodeName,!o&&!s)throw"Element to scroll needs to be either window or DOM element.";if(u=o?document.documentElement:a.elementToScroll,l=getComputedStyle(u).getPropertyValue("scroll-behavior"),l==="smooth"&&console.warn(u.tagName+` has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`),c=o?new Rx:new Fx(a.elementToScroll),t instanceof Element){if(i=t,s&&(!a.elementToScroll.contains(i)||a.elementToScroll.isSameNode(i)))throw"options.elementToScroll has to be a parent of scrollToElement";e=c.getHorizontalElementScrollOffset(i,a.elementToScroll),r=c.getVerticalElementScrollOffset(i,a.elementToScroll)}else if(typeof t=="number")e=c.getHorizontalScroll(),r=t;else if(Array.isArray(t)&&t.length===2)e=t[0]===null?c.getHorizontalScroll():t[0],r=t[1]===null?c.getVerticalScroll():t[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)`;return e+=a.horizontalOffset,r+=a.verticalOffset,d=c.getMaxHorizontalScroll(),f=c.getHorizontalScroll(),e>d&&(e=d),h=e-f,p=c.getMaxVerticalScroll(),g=c.getVerticalScroll(),r>p&&(r=p),w=r-g,S=Math.abs(Math.round(h/1e3*a.speed)),T=Math.abs(Math.round(w/1e3*a.speed)),k=S>T?S:T,ka.maxDuration&&(k=a.maxDuration),[2,new Promise(function(N,C){h===0&&w===0&&N(!0),nr.remove(a.elementToScroll,!0);var O,B=function(){q(),cancelAnimationFrame(O),N(!1)};nr.add(a.elementToScroll,B);var z=function(ce){return ce.preventDefault()},Q=a.cancelOnUserAction?B:z,X=a.cancelOnUserAction?{passive:!0}:{passive:!1},ie=["wheel","touchstart","keydown","mousedown"],q=function(){ie.forEach(function(ce){a.elementToScroll.removeEventListener(ce,Q,X)})};ie.forEach(function(ce){a.elementToScroll.addEventListener(ce,Q,X)});var J=Date.now(),te=function(){var ce=Date.now()-J,de=ce/k,fe=Math.round(f+h*a.easing(de)),he=Math.round(g+w*a.easing(de));ce{(function(n,e){typeof gs=="object"&&typeof jc=="object"?jc.exports=e():typeof define=="function"&&define.amd?define([],e):typeof gs=="object"?gs.Choices=e():n.Choices=e()})(window,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(r,i,a){e.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,i){if(i&1&&(r=e(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var o in r)e.d(a,o,function(s){return r[s]}.bind(null,o));return a},e.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(i,"a",i),i},e.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},e.p="/public/assets/scripts/",e(e.s=4)}([function(t,n,e){"use strict";var r=function(D){return i(D)&&!a(D)};function i(k){return!!k&&typeof k=="object"}function a(k){var D=Object.prototype.toString.call(k);return D==="[object RegExp]"||D==="[object Date]"||u(k)}var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103;function u(k){return k.$$typeof===s}function l(k){return Array.isArray(k)?[]:{}}function c(k,D){return D.clone!==!1&&D.isMergeableObject(k)?S(l(k),k,D):k}function d(k,D,N){return k.concat(D).map(function(C){return c(C,N)})}function f(k,D){if(!D.customMerge)return S;var N=D.customMerge(k);return typeof N=="function"?N:S}function h(k){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(k).filter(function(D){return k.propertyIsEnumerable(D)}):[]}function p(k){return Object.keys(k).concat(h(k))}function g(k,D){try{return D in k&&!(Object.hasOwnProperty.call(k,D)&&Object.propertyIsEnumerable.call(k,D))}catch(N){return!1}}function w(k,D,N){var C={};return N.isMergeableObject(k)&&p(k).forEach(function(O){C[O]=c(k[O],N)}),p(D).forEach(function(O){g(k,O)||(!N.isMergeableObject(D[O])||!k[O]?C[O]=c(D[O],N):C[O]=f(O,N)(k[O],D[O],N))}),C}function S(k,D,N){N=N||{},N.arrayMerge=N.arrayMerge||d,N.isMergeableObject=N.isMergeableObject||r,N.cloneUnlessOtherwiseSpecified=c;var C=Array.isArray(D),O=Array.isArray(k),B=C===O;return B?C?N.arrayMerge(k,D,N):w(k,D,N):c(D,N)}S.all=function(D,N){if(!Array.isArray(D))throw new Error("first argument should be an array");return D.reduce(function(C,O){return S(C,O,N)},{})};var T=S;t.exports=T},function(t,n,e){"use strict";(function(r,i){var a=e(3),o;typeof self!="undefined"?o=self:typeof window!="undefined"?o=window:typeof r!="undefined"?o=r:o=i;var s=Object(a.a)(o);n.a=s}).call(this,e(5),e(6)(t))},function(t,n,e){(function(r,i){t.exports=i()})(this,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,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(r,i){r.exports=function(a){return Array.isArray?Array.isArray(a):Object.prototype.toString.call(a)==="[object Array]"}},function(r,i,a){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(f)}function s(f,h){for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:{limit:!1};this._log(`--------- Search pattern: "`.concat(w,'"'));var T=this._prepareSearchers(w),k=T.tokenSearchers,D=T.fullSearcher,N=this._search(k,D),C=N.weights,O=N.results;return this._computeScore(C,O),this.options.shouldSort&&this._sort(O),S.limit&&typeof S.limit=="number"&&(O=O.slice(0,S.limit)),this._format(O)}},{key:"_prepareSearchers",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",S=[];if(this.options.tokenize)for(var T=w.split(this.options.tokenSeparator),k=0,D=T.length;k0&&arguments[0]!==void 0?arguments[0]:[],S=arguments.length>1?arguments[1]:void 0,T=this.list,k={},D=[];if(typeof T[0]=="string"){for(var N=0,C=T.length;N1)throw new Error("Key weight has to be > 0 and <= 1");q=q.name}else O[q]={weight:1};this._analyze({key:q,value:this.options.getFn(Q,q),record:Q,index:B},{resultMap:k,results:D,tokenSearchers:w,fullSearcher:S})}return{weights:O,results:D}}},{key:"_analyze",value:function(w,S){var T=w.key,k=w.arrayIndex,D=k===void 0?-1:k,N=w.value,C=w.record,O=w.index,B=S.tokenSearchers,z=B===void 0?[]:B,Q=S.fullSearcher,X=Q===void 0?[]:Q,ie=S.resultMap,q=ie===void 0?{}:ie,J=S.results,te=J===void 0?[]:J;if(N!=null){var ce=!1,de=-1,fe=0;if(typeof N=="string"){this._log(` Key: `.concat(T===""?"-":T));var he=X.search(N);if(this._log('Full text: "'.concat(N,'", score: ').concat(he.score)),this.options.tokenize){for(var De=N.split(this.options.tokenSeparator),A=[],I=0;I-1&&(Fe=(Fe+de)/2),this._log("Score average:",Fe);var Ge=!this.options.tokenize||!this.options.matchAllTokens||fe>=z.length;if(this._log(` Check Matches: `.concat(Ge)),(ce||he.isMatch)&&Ge){var ht=q[O];ht?ht.output.push({key:T,arrayIndex:D,value:N,score:Fe,matchedIndices:he.matchedIndices}):(q[O]={item:C,output:[{key:T,arrayIndex:D,value:N,score:Fe,matchedIndices:he.matchedIndices}]},te.push(q[O]))}}else if(c(N))for(var pt=0,tn=N.length;pt-1&&(ce.arrayIndex=te.arrayIndex),X.matches.push(ce)}}}),this.options.includeScore&&k.push(function(Q,X){X.score=Q.score});for(var D=0,N=w.length;DS)return s(g,this.pattern,T);var k=this.options,D=k.location,N=k.distance,C=k.threshold,O=k.findAllMatches,B=k.minMatchCharLength;return u(g,this.pattern,this.patternAlphabet,{location:D,distance:N,threshold:C,findAllMatches:O,minMatchCharLength:B})}}])&&o(f.prototype,h),p&&o(f,p),d}();r.exports=c},function(r,i){var a=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;r.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 h=0,p=c.length;h=I;K-=1){var V=K-1,U=c[u.charAt(V)];if(U&&(X[V]=1),qe[K]=(qe[K+1]<<1|1)&U,he!==0&&(qe[K]|=(te[K+1]|te[K])<<1|1|te[K+1]),qe[K]&fe&&(ce=o(l,{errors:he,currentLocation:V,expectedLocation:C,distance:g}))<=B){if(B=ce,(z=V)<=C)break;I=Math.max(1,2*C-z)}}if(o(l,{errors:he+1,currentLocation:C,expectedLocation:C,distance:g})>B)break;te=qe}return{isMatch:z>=0,score:ce===0?.001:ce,matchedIndices:s(X,N)}}},function(r,i){r.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,h=o.distance,p=h===void 0?100:h,g=u/a.length,w=Math.abs(f-c);return p?g+w/p:w?1:g}},function(r,i){r.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=o&&s.push([u,l]),u=-1)}return a[c-1]&&c-u>=o&&s.push([u,c-1]),s}},function(r,i){r.exports=function(a){for(var o={},s=a.length,u=0;u0)return"Unexpected "+(P.length>1?"keys":"key")+" "+('"'+P.join('", "')+'" found in '+M+". ")+"Expected to find one of the known reducer keys instead: "+('"'+E.join('", "')+'". Unexpected keys will be ignored.')}function g(L){Object.keys(L).forEach(function(y){var b=L[y],m=b(void 0,{type:l.INIT});if(typeof m=="undefined")throw new Error('Reducer "'+y+`" 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 b(void 0,{type:l.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error('Reducer "'+y+'" 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 w(L){for(var y=Object.keys(L),b={},m=0;m-1?L.map(function(b){var m=b;return m.id===parseInt(y.choiceId,10)&&(m.selected=!0),m}):L;case"REMOVE_ITEM":return y.choiceId>-1?L.map(function(b){var m=b;return m.id===parseInt(y.choiceId,10)&&(m.selected=!1),m}):L;case"FILTER_CHOICES":return L.map(function(b){var m=b;return m.active=y.results.some(function(E){var M=E.item,P=E.score;return M.id===m.id?(m.score=P,!0):!1}),m});case"ACTIVATE_CHOICES":return L.map(function(b){var m=b;return m.active=y.active,m});case"CLEAR_CHOICES":return q;default:return L}}var te={loading:!1},ce=function(y,b){switch(y===void 0&&(y=te),b.type){case"SET_IS_LOADING":return{loading:b.isLoading};default:return y}},de=ce,fe=function(y,b){return Math.floor(Math.random()*(b-y)+y)},he=function(y){return Array.from({length:y},function(){return fe(0,36).toString(36)}).join("")},De=function(y,b){var m=y.id||y.name&&y.name+"-"+he(2)||he(4);return m=m.replace(/(:|\.|\[|\]|,)/g,""),m=b+"-"+m,m},A=function(y){return Object.prototype.toString.call(y).slice(8,-1)},I=function(y,b){return b!=null&&A(b)===y},et=function(y,b){return b===void 0&&(b=document.createElement("div")),y.nextSibling?y.parentNode.insertBefore(b,y.nextSibling):y.parentNode.appendChild(b),b.appendChild(y)},qe=function(y,b,m){if(m===void 0&&(m=1),!(!(y instanceof Element)||typeof b!="string")){for(var E=(m>0?"next":"previous")+"ElementSibling",M=y[E];M;){if(M.matches(b))return M;M=M[E]}return M}},K=function(y,b,m){if(m===void 0&&(m=1),!y)return!1;var E;return m>0?E=b.scrollTop+b.offsetHeight>=y.offsetTop+y.offsetHeight:E=y.offsetTop>=b.scrollTop,E},V=function(y){return typeof y!="string"?y:y.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/"'+V(y)+'"'},maxItemText:function(y){return"Only "+y+" values can be added"},valueComparer:function(y,b){return y===b},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:Mn},lt={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice"},Bt={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"},tt={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},j="text",ne="select-one",be="select-multiple",Be=4,ct=function(){function L(b){var m=b.element,E=b.type,M=b.classNames,P=b.position;this.element=m,this.classNames=M,this.type=E,this.position=P,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 y=L.prototype;return y.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},y.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},y.shouldFlip=function(m){if(typeof m!="number")return!1;var E=!1;return this.position==="auto"?E=!window.matchMedia("(min-height: "+(m+1)+"px)").matches:this.position==="top"&&(E=!0),E},y.setActiveDescendant=function(m){this.element.setAttribute("aria-activedescendant",m)},y.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},y.open=function(m){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(m)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},y.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)},y.focus=function(){this.isFocussed||this.element.focus()},y.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},y.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},y.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===ne&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},y.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===ne&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},y.wrap=function(m){et(m,this.element)},y.unwrap=function(m){this.element.parentNode.insertBefore(m,this.element),this.element.parentNode.removeChild(this.element)},y.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},y.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},y._onFocus=function(){this.isFocussed=!0},y._onBlur=function(){this.isFocussed=!1},L}();function rn(L,y){for(var b=0;b0?this.element.scrollTop+ee-H:m.offsetTop;requestAnimationFrame(function(){M._animateScroll(oe,E)})}},y._scrollDown=function(m,E,M){var P=(M-m)/E,H=P>1?P:1;this.element.scrollTop=m+H},y._scrollUp=function(m,E,M){var P=(m-M)/E,H=P>1?P:1;this.element.scrollTop=m-H},y._animateScroll=function(m,E){var M=this,P=Be,H=this.element.scrollTop,Y=!1;E>0?(this._scrollDown(H,P,m),Hm&&(Y=!0)),Y&&requestAnimationFrame(function(){M._animateScroll(m,E)})},L}();function Kt(L,y){for(var b=0;b0?"treeitem":"option"),Object.assign(Le.dataset,{choice:"",id:oe,value:ve,selectText:m}),Te?(Le.classList.add(Y),Le.dataset.choiceDisabled="",Le.setAttribute("aria-disabled","true")):(Le.classList.add(P),Le.dataset.choiceSelectable=""),Le},input:function(y,b){var m=y.input,E=y.inputCloned,M=Object.assign(document.createElement("input"),{type:"text",className:m+" "+E,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return M.setAttribute("role","textbox"),M.setAttribute("aria-autocomplete","list"),M.setAttribute("aria-label",b),M},dropdown:function(y){var b=y.list,m=y.listDropdown,E=document.createElement("div");return E.classList.add(b,m),E.setAttribute("aria-expanded","false"),E},notice:function(y,b,m){var E=y.item,M=y.itemChoice,P=y.noResults,H=y.noChoices;m===void 0&&(m="");var Y=[E,M];return m==="no-choices"?Y.push(H):m==="no-results"&&Y.push(P),Object.assign(document.createElement("div"),{innerHTML:b,className:Y.join(" ")})},option:function(y){var b=y.label,m=y.value,E=y.customProperties,M=y.active,P=y.disabled,H=new Option(b,m,!1,M);return E&&(H.dataset.customProperties=E),H.disabled=P,H}},ae=re,xe=function(y){var b=y.value,m=y.label,E=y.id,M=y.groupId,P=y.disabled,H=y.elementId,Y=y.customProperties,ee=y.placeholder,oe=y.keyCode;return{type:Bt.ADD_CHOICE,value:b,label:m,id:E,groupId:M,disabled:P,elementId:H,customProperties:Y,placeholder:ee,keyCode:oe}},ue=function(y){return{type:Bt.FILTER_CHOICES,results:y}},_e=function(y){return y===void 0&&(y=!0),{type:Bt.ACTIVATE_CHOICES,active:y}},le=function(){return{type:Bt.CLEAR_CHOICES}},we=function(y){var b=y.value,m=y.label,E=y.id,M=y.choiceId,P=y.groupId,H=y.customProperties,Y=y.placeholder,ee=y.keyCode;return{type:Bt.ADD_ITEM,value:b,label:m,id:E,choiceId:M,groupId:P,customProperties:H,placeholder:Y,keyCode:ee}},ze=function(y,b){return{type:Bt.REMOVE_ITEM,id:y,choiceId:b}},At=function(y,b){return{type:Bt.HIGHLIGHT_ITEM,id:y,highlighted:b}},mt=function(y){var b=y.value,m=y.id,E=y.active,M=y.disabled;return{type:Bt.ADD_GROUP,value:b,id:m,active:E,disabled:M}},Dn=function(){return{type:"CLEAR_ALL"}},bn=function(y){return{type:"RESET_TO",state:y}},Sr=function(y){return{type:"SET_IS_LOADING",isLoading:y}};function Vn(L,y){for(var b=0;b=0?this._store.getGroupById(H):null;return this._store.dispatch(At(M,!0)),E&&this.passedElement.triggerEvent(lt.highlightItem,{id:M,value:ee,label:ve,groupValue:pe&&pe.value?pe.value:null}),this},y.unhighlightItem=function(m){if(!m)return this;var E=m.id,M=m.groupId,P=M===void 0?-1:M,H=m.value,Y=H===void 0?"":H,ee=m.label,oe=ee===void 0?"":ee,ve=P>=0?this._store.getGroupById(P):null;return this._store.dispatch(At(E,!1)),this.passedElement.triggerEvent(lt.highlightItem,{id:E,value:Y,label:oe,groupValue:ve&&ve.value?ve.value:null}),this},y.highlightAll=function(){var m=this;return this._store.items.forEach(function(E){return m.highlightItem(E)}),this},y.unhighlightAll=function(){var m=this;return this._store.items.forEach(function(E){return m.unhighlightItem(E)}),this},y.removeActiveItemsByValue=function(m){var E=this;return this._store.activeItems.filter(function(M){return M.value===m}).forEach(function(M){return E._removeItem(M)}),this},y.removeActiveItems=function(m){var E=this;return this._store.activeItems.filter(function(M){var P=M.id;return P!==m}).forEach(function(M){return E._removeItem(M)}),this},y.removeHighlightedItems=function(m){var E=this;return m===void 0&&(m=!1),this._store.highlightedActiveItems.forEach(function(M){E._removeItem(M),m&&E._triggerChange(M.value)}),this},y.showDropdown=function(m){var E=this;return this.dropdown.isActive?this:(requestAnimationFrame(function(){E.dropdown.show(),E.containerOuter.open(E.dropdown.distanceFromTopWindow),!m&&E._canSearch&&E.input.focus(),E.passedElement.triggerEvent(lt.showDropdown,{})}),this)},y.hideDropdown=function(m){var E=this;return this.dropdown.isActive?(requestAnimationFrame(function(){E.dropdown.hide(),E.containerOuter.close(),!m&&E._canSearch&&(E.input.removeActiveDescendant(),E.input.blur()),E.passedElement.triggerEvent(lt.hideDropdown,{})}),this):this},y.getValue=function(m){m===void 0&&(m=!1);var E=this._store.activeItems.reduce(function(M,P){var H=m?P.value:P;return M.push(H),M},[]);return this._isSelectOneElement?E[0]:E},y.setValue=function(m){var E=this;return this.initialised?(m.forEach(function(M){return E._setChoiceOrItem(M)}),this):this},y.setChoiceByValue=function(m){var E=this;if(!this.initialised||this._isTextElement)return this;var M=Array.isArray(m)?m:[m];return M.forEach(function(P){return E._findAndSelectChoiceByValue(P)}),this},y.setChoices=function(m,E,M,P){var H=this;if(m===void 0&&(m=[]),E===void 0&&(E="value"),M===void 0&&(M="label"),P===void 0&&(P=!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 E!="string"||!E)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(P&&this.clearChoices(),typeof m=="function"){var Y=m(this);if(typeof Promise=="function"&&Y instanceof Promise)return new Promise(function(ee){return requestAnimationFrame(ee)}).then(function(){return H._handleLoadingState(!0)}).then(function(){return Y}).then(function(ee){return H.setChoices(ee,E,M,P)}).catch(function(ee){H.config.silent||console.error(ee)}).then(function(){return H._handleLoadingState(!1)}).then(function(){return H});if(!Array.isArray(Y))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof Y);return this.setChoices(Y,E,M,!1)}if(!Array.isArray(m))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(),m.forEach(function(ee){ee.choices?H._addGroup({id:parseInt(ee.id,10)||null,group:ee,valueKey:E,labelKey:M}):H._addChoice({value:ee[E],label:ee[M],isSelected:ee.selected,isDisabled:ee.disabled,customProperties:ee.customProperties,placeholder:ee.placeholder})}),this._stopLoading(),this},y.clearChoices=function(){return this._store.dispatch(le()),this},y.clearStore=function(){return this._store.dispatch(Dn()),this},y.clearInput=function(){var m=!this._isSelectOneElement;return this.input.clear(m),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(_e(!0))),this},y._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var m=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,E=this._isSelectElement,M=this._currentState.items!==this._prevState.items;!m||(E&&this._renderChoices(),M&&this._renderItems(),this._prevState=this._currentState)}},y._renderChoices=function(){var m=this,E=this._store,M=E.activeGroups,P=E.activeChoices,H=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return m.choiceList.scrollToTop()}),M.length>=1&&!this._isSearching){var Y=P.filter(function(Ce){return Ce.placeholder===!0&&Ce.groupId===-1});Y.length>=1&&(H=this._createChoicesFragment(Y,H)),H=this._createGroupsFragment(M,P,H)}else P.length>=1&&(H=this._createChoicesFragment(P,H));if(H.childNodes&&H.childNodes.length>0){var ee=this._store.activeItems,oe=this._canAddItem(ee,this.input.value);oe.response?(this.choiceList.append(H),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",oe.notice))}else{var ve,pe;this._isSearching?(pe=typeof this.config.noResultsText=="function"?this.config.noResultsText():this.config.noResultsText,ve=this._getTemplate("notice",pe,"no-results")):(pe=typeof this.config.noChoicesText=="function"?this.config.noChoicesText():this.config.noChoicesText,ve=this._getTemplate("notice",pe,"no-choices")),this.choiceList.append(ve)}},y._renderItems=function(){var m=this._store.activeItems||[];this.itemList.clear();var E=this._createItemsFragment(m);E.childNodes&&this.itemList.append(E)},y._createGroupsFragment=function(m,E,M){var P=this;M===void 0&&(M=document.createDocumentFragment());var H=function(ee){return E.filter(function(oe){return P._isSelectOneElement?oe.groupId===ee.id:oe.groupId===ee.id&&(P.config.renderSelectedChoices==="always"||!oe.selected)})};return this.config.shouldSort&&m.sort(this.config.sorter),m.forEach(function(Y){var ee=H(Y);if(ee.length>=1){var oe=P._getTemplate("choiceGroup",Y);M.appendChild(oe),P._createChoicesFragment(ee,M,!0)}}),M},y._createChoicesFragment=function(m,E,M){var P=this;E===void 0&&(E=document.createDocumentFragment()),M===void 0&&(M=!1);var H=this.config,Y=H.renderSelectedChoices,ee=H.searchResultLimit,oe=H.renderChoiceLimit,ve=this._isSearching?ye:this.config.sorter,pe=function(bt){var An=Y==="auto"?P._isSelectOneElement||!bt.selected:!0;if(An){var In=P._getTemplate("choice",bt,P.config.itemSelectText);E.appendChild(In)}},Ce=m;Y==="auto"&&!this._isSelectOneElement&&(Ce=m.filter(function(gt){return!gt.selected}));var Ie=Ce.reduce(function(gt,bt){return bt.placeholder?gt.placeholderChoices.push(bt):gt.normalChoices.push(bt),gt},{placeholderChoices:[],normalChoices:[]}),Te=Ie.placeholderChoices,Oe=Ie.normalChoices;(this.config.shouldSort||this._isSearching)&&Oe.sort(ve);var Ae=Ce.length,Le=this._isSelectOneElement?[].concat(Te,Oe):Oe;this._isSearching?Ae=ee:oe&&oe>0&&!M&&(Ae=oe);for(var nt=0;nt=P){var ee=H?this._searchChoices(m):0;this.passedElement.triggerEvent(lt.search,{value:m,resultCount:ee})}else Y&&(this._isSearching=!1,this._store.dispatch(_e(!0)))}},y._canAddItem=function(m,E){var M=!0,P=typeof this.config.addItemText=="function"?this.config.addItemText(E):this.config.addItemText;if(!this._isSelectOneElement){var H=Fe(m,E);this.config.maxItemCount>0&&this.config.maxItemCount<=m.length&&(M=!1,P=typeof this.config.maxItemText=="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&H&&M&&(M=!1,P=typeof this.config.uniqueItemText=="function"?this.config.uniqueItemText(E):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&M&&typeof this.config.addItemFilter=="function"&&!this.config.addItemFilter(E)&&(M=!1,P=typeof this.config.customAddItemText=="function"?this.config.customAddItemText(E):this.config.customAddItemText)}return{response:M,notice:P}},y._searchChoices=function(m){var E=typeof m=="string"?m.trim():m,M=typeof this._currentValue=="string"?this._currentValue.trim():this._currentValue;if(E.length<1&&E===M+" ")return 0;var P=this._store.searchableChoices,H=E,Y=[].concat(this.config.searchFields),ee=Object.assign(this.config.fuseOptions,{keys:Y}),oe=new i.a(P,ee),ve=oe.search(H);return this._currentValue=E,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(ue(ve)),ve.length},y._addEventListeners=function(){var m=document,E=m.documentElement;E.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),E.addEventListener("click",this._onClick,{passive:!0}),E.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()},y._removeEventListeners=function(){var m=document,E=m.documentElement;E.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),E.removeEventListener("click",this._onClick),E.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()},y._onKeyDown=function(m){var E,M=m.target,P=m.keyCode,H=m.ctrlKey,Y=m.metaKey,ee=this._store.activeItems,oe=this.input.isFocussed,ve=this.dropdown.isActive,pe=this.itemList.hasChildren(),Ce=String.fromCharCode(P),Ie=tt.BACK_KEY,Te=tt.DELETE_KEY,Oe=tt.ENTER_KEY,Ae=tt.A_KEY,Le=tt.ESC_KEY,nt=tt.UP_KEY,gt=tt.DOWN_KEY,bt=tt.PAGE_UP_KEY,An=tt.PAGE_DOWN_KEY,In=H||Y;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(Ce)&&this.showDropdown();var ar=(E={},E[Ae]=this._onAKey,E[Oe]=this._onEnterKey,E[Le]=this._onEscapeKey,E[nt]=this._onDirectionKey,E[bt]=this._onDirectionKey,E[gt]=this._onDirectionKey,E[An]=this._onDirectionKey,E[Te]=this._onDeleteKey,E[Ie]=this._onDeleteKey,E);ar[P]&&ar[P]({event:m,target:M,keyCode:P,metaKey:Y,activeItems:ee,hasFocusedInput:oe,hasActiveDropdown:ve,hasItems:pe,hasCtrlDownKeyPressed:In})},y._onKeyUp=function(m){var E=m.target,M=m.keyCode,P=this.input.value,H=this._store.activeItems,Y=this._canAddItem(H,P),ee=tt.BACK_KEY,oe=tt.DELETE_KEY;if(this._isTextElement){var ve=Y.notice&&P;if(ve){var pe=this._getTemplate("notice",Y.notice);this.dropdown.element.innerHTML=pe.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0)}else{var Ce=(M===ee||M===oe)&&!E.value,Ie=!this._isTextElement&&this._isSearching,Te=this._canSearch&&Y.response;Ce&&Ie?(this._isSearching=!1,this._store.dispatch(_e(!0))):Te&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},y._onAKey=function(m){var E=m.hasItems,M=m.hasCtrlDownKeyPressed;if(M&&E){this._canSearch=!1;var P=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;P&&this.highlightAll()}},y._onEnterKey=function(m){var E=m.event,M=m.target,P=m.activeItems,H=m.hasActiveDropdown,Y=tt.ENTER_KEY,ee=M.hasAttribute("data-button");if(this._isTextElement&&M.value){var oe=this.input.value,ve=this._canAddItem(P,oe);ve.response&&(this.hideDropdown(!0),this._addItem({value:oe}),this._triggerChange(oe),this.clearInput())}if(ee&&(this._handleButtonAction(P,M),E.preventDefault()),H){var pe=this.dropdown.getChild("."+this.config.classNames.highlightedState);pe&&(P[0]&&(P[0].keyCode=Y),this._handleChoiceAction(P,pe)),E.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),E.preventDefault())},y._onEscapeKey=function(m){var E=m.hasActiveDropdown;E&&(this.hideDropdown(!0),this.containerOuter.focus())},y._onDirectionKey=function(m){var E=m.event,M=m.hasActiveDropdown,P=m.keyCode,H=m.metaKey,Y=tt.DOWN_KEY,ee=tt.PAGE_UP_KEY,oe=tt.PAGE_DOWN_KEY;if(M||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var ve=P===Y||P===oe?1:-1,pe=H||P===oe||P===ee,Ce="[data-choice-selectable]",Ie;if(pe)ve>0?Ie=this.dropdown.element.querySelector(Ce+":last-of-type"):Ie=this.dropdown.element.querySelector(Ce);else{var Te=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);Te?Ie=qe(Te,Ce,ve):Ie=this.dropdown.element.querySelector(Ce)}Ie&&(K(Ie,this.choiceList.element,ve)||this.choiceList.scrollToChildElement(Ie,ve),this._highlightChoice(Ie)),E.preventDefault()}},y._onDeleteKey=function(m){var E=m.event,M=m.target,P=m.hasFocusedInput,H=m.activeItems;P&&!M.value&&!this._isSelectOneElement&&(this._handleBackspace(H),E.preventDefault())},y._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},y._onTouchEnd=function(m){var E=m||m.touches[0],M=E.target,P=this._wasTap&&this.containerOuter.element.contains(M);if(P){var H=M===this.containerOuter.element||M===this.containerInner.element;H&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),m.stopPropagation()}this._wasTap=!0},y._onMouseDown=function(m){var E=m.target;if(E instanceof HTMLElement){if(zr&&this.choiceList.element.contains(E)){var M=this.choiceList.element.firstElementChild,P=this._direction==="ltr"?m.offsetX>=M.offsetWidth:m.offsetX0;P&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0)}},y._onFocus=function(m){var E=this,M,P=m.target,H=this.containerOuter.element.contains(P);if(!!H){var Y=(M={},M[j]=function(){P===E.input.element&&E.containerOuter.addFocusState()},M[ne]=function(){E.containerOuter.addFocusState(),P===E.input.element&&E.showDropdown(!0)},M[be]=function(){P===E.input.element&&(E.showDropdown(!0),E.containerOuter.addFocusState())},M);Y[this.passedElement.element.type]()}},y._onBlur=function(m){var E=this,M=m.target,P=this.containerOuter.element.contains(M);if(P&&!this._isScrollingOnIe){var H,Y=this._store.activeItems,ee=Y.some(function(ve){return ve.highlighted}),oe=(H={},H[j]=function(){M===E.input.element&&(E.containerOuter.removeFocusState(),ee&&E.unhighlightAll(),E.hideDropdown(!0))},H[ne]=function(){E.containerOuter.removeFocusState(),(M===E.input.element||M===E.containerOuter.element&&!E._canSearch)&&E.hideDropdown(!0)},H[be]=function(){M===E.input.element&&(E.containerOuter.removeFocusState(),E.hideDropdown(!0),ee&&E.unhighlightAll())},H);oe[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},y._onFormReset=function(){this._store.dispatch(bn(this._initialState))},y._highlightChoice=function(m){var E=this;m===void 0&&(m=null);var M=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(!!M.length){var P=m,H=Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState));H.forEach(function(Y){Y.classList.remove(E.config.classNames.highlightedState),Y.setAttribute("aria-selected","false")}),P?this._highlightPosition=M.indexOf(P):(M.length>this._highlightPosition?P=M[this._highlightPosition]:P=M[M.length-1],P||(P=M[0])),P.classList.add(this.config.classNames.highlightedState),P.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(lt.highlightChoice,{el:P}),this.dropdown.isActive&&(this.input.setActiveDescendant(P.id),this.containerOuter.setActiveDescendant(P.id))}},y._addItem=function(m){var E=m.value,M=m.label,P=M===void 0?null:M,H=m.choiceId,Y=H===void 0?-1:H,ee=m.groupId,oe=ee===void 0?-1:ee,ve=m.customProperties,pe=ve===void 0?null:ve,Ce=m.placeholder,Ie=Ce===void 0?!1:Ce,Te=m.keyCode,Oe=Te===void 0?null:Te,Ae=typeof E=="string"?E.trim():E,Le=Oe,nt=pe,gt=this._store.items,bt=P||Ae,An=Y||-1,In=oe>=0?this._store.getGroupById(oe):null,ar=gt?gt.length+1:1;return this.config.prependValue&&(Ae=this.config.prependValue+Ae.toString()),this.config.appendValue&&(Ae+=this.config.appendValue.toString()),this._store.dispatch(we({value:Ae,label:bt,id:ar,choiceId:An,groupId:oe,customProperties:pe,placeholder:Ie,keyCode:Le})),this._isSelectOneElement&&this.removeActiveItems(ar),this.passedElement.triggerEvent(lt.addItem,{id:ar,value:Ae,label:bt,customProperties:nt,groupValue:In&&In.value?In.value:void 0,keyCode:Le}),this},y._removeItem=function(m){if(!m||!I("Object",m))return this;var E=m.id,M=m.value,P=m.label,H=m.choiceId,Y=m.groupId,ee=Y>=0?this._store.getGroupById(Y):null;return this._store.dispatch(ze(E,H)),ee&&ee.value?this.passedElement.triggerEvent(lt.removeItem,{id:E,value:M,label:P,groupValue:ee.value}):this.passedElement.triggerEvent(lt.removeItem,{id:E,value:M,label:P}),this},y._addChoice=function(m){var E=m.value,M=m.label,P=M===void 0?null:M,H=m.isSelected,Y=H===void 0?!1:H,ee=m.isDisabled,oe=ee===void 0?!1:ee,ve=m.groupId,pe=ve===void 0?-1:ve,Ce=m.customProperties,Ie=Ce===void 0?null:Ce,Te=m.placeholder,Oe=Te===void 0?!1:Te,Ae=m.keyCode,Le=Ae===void 0?null:Ae;if(!(typeof E=="undefined"||E===null)){var nt=this._store.choices,gt=P||E,bt=nt?nt.length+1:1,An=this._baseId+"-"+this._idNames.itemChoice+"-"+bt;this._store.dispatch(xe({id:bt,groupId:pe,elementId:An,value:E,label:gt,disabled:oe,customProperties:Ie,placeholder:Oe,keyCode:Le})),Y&&this._addItem({value:E,label:gt,choiceId:bt,customProperties:Ie,placeholder:Oe,keyCode:Le})}},y._addGroup=function(m){var E=this,M=m.group,P=m.id,H=m.valueKey,Y=H===void 0?"value":H,ee=m.labelKey,oe=ee===void 0?"label":ee,ve=I("Object",M)?M.choices:Array.from(M.getElementsByTagName("OPTION")),pe=P||Math.floor(new Date().valueOf()*Math.random()),Ce=M.disabled?M.disabled:!1;if(ve){this._store.dispatch(mt({value:M.label,id:pe,active:!0,disabled:Ce}));var Ie=function(Oe){var Ae=Oe.disabled||Oe.parentNode&&Oe.parentNode.disabled;E._addChoice({value:Oe[Y],label:I("Object",Oe)?Oe[oe]:Oe.innerHTML,isSelected:Oe.selected,isDisabled:Ae,groupId:pe,customProperties:Oe.customProperties,placeholder:Oe.placeholder})};ve.forEach(Ie)}else this._store.dispatch(mt({value:M.label,id:M.id,active:!1,disabled:M.disabled}))},y._getTemplate=function(m){var E;if(!m)return null;for(var M=this.config.classNames,P=arguments.length,H=new Array(P>1?P-1:0),Y=1;Y{(function(t,n){typeof Ds=="object"&&typeof rv!="undefined"?n(Ds):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,n(t.immutableJSONPatch={}))})(Ds,function(t){"use strict";function n(K){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(U){return typeof U}:n=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},n(K)}function e(K,V){return JSON.stringify(K)===JSON.stringify(V)}function r(K,V){return K===V}function i(K){return K.slice(0,K.length-1)}function a(K){return K[K.length-1]}function o(K,V){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r;if(K.length3&&arguments[3]!==void 0?arguments[3]:!1;if(V.length===0)return U;var ye=V[0],Ee=g(K?K[ye]:void 0,V.slice(1),U,G);if(!s(K))if(G){var Fe=typeof ye=="number"?[]:{};return Fe[ye]=Ee,Fe}else throw new Error("Path does not exist");return h(K,ye,Ee)}function w(K,V,U){if(V.length===0)return U(K);if(!s(K))throw new Error("Path doesn't exist");var G=V[0],ye=w(K[G],V.slice(1),U);return h(K,G,ye)}function S(K,V){if(V.length===0)return K;if(!s(K))throw new Error("Path does not exist");if(V.length===1){var U=V[0];if(U in K){var G=f(K);return Array.isArray(G)?G.splice(U,1):delete G[U],G}else return K}var ye=V[0],Ee=S(K[ye],V.slice(1));return h(K,ye,Ee)}function T(K,V,U){var G=V.slice(0,V.length-1),ye=V[V.length-1];return w(K,G,function(Ee){if(!Array.isArray(Ee))throw new TypeError("Array expected at path "+JSON.stringify(G));var Fe=f(Ee);return Fe.splice(ye,0,U),Fe})}function k(K,V){return K===void 0?!1:V.length===0?!0:k(K[V[0]],V.slice(1))}function D(K){var V=K.split("/");return V.shift(),V.map(function(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")})}function N(K){return K.map(function(V){return"/"+String(V).replace(/~/g,"~0").replace(/\//g,"~1")}).join("")}function C(K,V,U){for(var G=K,ye=0;ye{(function(){var t;typeof ku!="undefined"?t=ku.exports=r:t=function(){return this||(0,eval)("this")}(),t.format=r,t.vsprintf=e,typeof console!="undefined"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(r.apply(null,arguments))}function e(i,a){return r.apply(null,[i].concat(a))}function r(i){for(var a=1,o=[].slice.call(arguments),s=0,u=i.length,l="",c,d=!1,f,h,p=!1,g,w=function(){return o[a++]},S=function(){for(var T="";/\d/.test(i[s]);)T+=i[s++],c=i[s];return T.length>0?parseInt(T):null};sLu});function Fa(t,n){let e=Object.keys(n).map(r=>Ty(t,r,n[r]));return e.length===1?e[0]:function(){e.forEach(r=>r())}}function Ty(t,n,e){let r=t[n],i=t.hasOwnProperty(n),a=e(r);return r&&Object.setPrototypeOf(a,r),Object.setPrototypeOf(o,a),t[n]=o,s;function o(...u){return a===r&&t[n]===o&&s(),a.apply(this,u)}function s(){t[n]===o&&(i?t[n]=r:delete t[n]),a!==r&&(a=r,Object.setPrototypeOf(o,r||Function))}}var vn=me(require("obsidian"));var Ni,ge,Ou,My,Fi,Nu,Fu,Ru,Ra={},Hu=[],Cy=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function jn(t,n){for(var e in n)t[e]=n[e];return t}function Bu(t){var n=t.parentNode;n&&n.removeChild(t)}function wn(t,n,e){var r,i,a,o={};for(a in n)a=="key"?r=n[a]:a=="ref"?i=n[a]:o[a]=n[a];if(arguments.length>2&&(o.children=arguments.length>3?Ni.call(arguments,2):e),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)o[a]===void 0&&(o[a]=t.defaultProps[a]);return Ri(t,o,r,i,null)}function Ri(t,n,e,r,i){var a={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Ou:i};return i==null&&ge.vnode!=null&&ge.vnode(a),a}function Js(){return{current:null}}function Pn(t){return t.children}function hn(t,n){this.props=t,this.context=n}function Wr(t,n){if(n==null)return t.__?Wr(t.__,t.__.__k.indexOf(t)+1):null;for(var e;n0?Ri(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=e,h.__b=e.__b+1,(f=S[c])===null||f&&h.key==f.key&&h.type===f.type)S[c]=void 0;else for(d=0;d2&&(o.children=arguments.length>3?Ni.call(arguments,2):e),Ri(t.type,o,r||t.key,i||t.ref,null)}function Zs(t,n){var e={__c:n="__cC"+Ru++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,a;return this.getChildContext||(i=[],(a={})[n]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(Gs)},this.sub=function(o){i.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),s&&s.call(o)}}),r.children}};return e.Provider.__=e.Consumer.contextType=e}Ni=Hu.slice,ge={__e:function(t,n,e,r){for(var i,a,o;n=n.__;)if((i=n.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),o=i.__d),o)return i.__E=i}catch(s){t=s}throw t}},Ou=0,My=function(t){return t!=null&&t.constructor===void 0},hn.prototype.setState=function(t,n){var e;e=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=jn({},this.state),typeof t=="function"&&(t=t(jn({},e),this.props)),t&&jn(e,t),t!=null&&this.__v&&(n&&this.__h.push(n),Gs(this))},hn.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Gs(this))},hn.prototype.render=Pn,Fi=[],Nu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ha.__r=0,Ru=0;var Yr,$t,Qu,Jr=0,Xu=[],Zu=ge.__b,ed=ge.__r,td=ge.diffed,nd=ge.__c,rd=ge.unmount;function Hi(t,n){ge.__h&&ge.__h($t,t,Jr||n),Jr=0;var e=$t.__H||($t.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function Ka(t){return Jr=1,el(ld,t)}function el(t,n,e){var r=Hi(Yr++,2);return r.t=t,r.__c||(r.__=[e?e(n):ld(void 0,n),function(i){var a=r.t(r.__[0],i);r.__[0]!==a&&(r.__=[a,r.__[1]],r.__c.setState({}))}],r.__c=$t),r.__}function $a(t,n){var e=Hi(Yr++,3);!ge.__s&&rl(e.__H,n)&&(e.__=t,e.__H=n,$t.__H.__h.push(e))}function tl(t,n){var e=Hi(Yr++,4);!ge.__s&&rl(e.__H,n)&&(e.__=t,e.__H=n,$t.__h.push(e))}function Ua(t){return Jr=5,za(function(){return{current:t}},[])}function id(t,n,e){Jr=6,tl(function(){return typeof t=="function"?(t(n()),function(){return t(null)}):t?(t.current=n(),function(){return t.current=null}):void 0},e==null?e:e.concat(t))}function za(t,n){var e=Hi(Yr++,7);return rl(e.__H,n)&&(e.__=t(),e.__H=n,e.__h=t),e.__}function Va(t,n){return Jr=8,za(function(){return t},n)}function ad(t){var n=$t.context[t.__c],e=Hi(Yr++,9);return e.c=t,n?(e.__==null&&(e.__=!0,n.sub($t)),n.props.value):t.__}function od(t,n){ge.useDebugValue&&ge.useDebugValue(n?n(t):t)}function Ly(){for(var t;t=Xu.shift();)if(t.__P)try{t.__H.__h.forEach(ja),t.__H.__h.forEach(nl),t.__H.__h=[]}catch(n){t.__H.__h=[],ge.__e(n,t.__v)}}ge.__b=function(t){$t=null,Zu&&Zu(t)},ge.__r=function(t){ed&&ed(t),Yr=0;var n=($t=t.__c).__H;n&&(n.__h.forEach(ja),n.__h.forEach(nl),n.__h=[])},ge.diffed=function(t){td&&td(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(Xu.push(n)!==1&&Qu===ge.requestAnimationFrame||((Qu=ge.requestAnimationFrame)||function(e){var r,i=function(){clearTimeout(a),sd&&cancelAnimationFrame(r),setTimeout(e)},a=setTimeout(i,100);sd&&(r=requestAnimationFrame(i))})(Ly)),$t=null},ge.__c=function(t,n){n.some(function(e){try{e.__h.forEach(ja),e.__h=e.__h.filter(function(r){return!r.__||nl(r)})}catch(r){n.some(function(i){i.__h&&(i.__h=[])}),n=[],ge.__e(r,e.__v)}}),nd&&nd(t,n)},ge.unmount=function(t){rd&&rd(t);var n,e=t.__c;e&&e.__H&&(e.__H.__.forEach(function(r){try{ja(r)}catch(i){n=i}}),n&&ge.__e(n,e.__v))};var sd=typeof requestAnimationFrame=="function";function ja(t){var n=$t,e=t.__c;typeof e=="function"&&(t.__c=void 0,e()),$t=n}function nl(t){var n=$t;t.__c=t.__(),$t=n}function rl(t,n){return!t||t.length!==n.length||n.some(function(e,r){return e!==t[r]})}function ld(t,n){return typeof n=="function"?n(t):n}function cd(t,n){for(var e in n)t[e]=n[e];return t}function il(t,n){for(var e in t)if(e!=="__source"&&!(e in n))return!0;for(var r in n)if(r!=="__source"&&t[r]!==n[r])return!0;return!1}function al(t){this.props=t}function Py(t,n){function e(i){var a=this.props.ref,o=a==i.ref;return!o&&a&&(a.call?a(null):a.current=null),n?!n(this.props,i)||!o:il(this.props,i)}function r(i){return this.shouldComponentUpdate=e,wn(t,i)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(al.prototype=new hn).isPureReactComponent=!0,al.prototype.shouldComponentUpdate=function(t,n){return il(this.props,t)||il(this.state,n)};var ud=ge.__b;ge.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ud&&ud(t)};var Oy=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ny(t){function n(e,r){var i=cd({},e);return delete i.ref,t(i,!(r=e.ref||r)||typeof r=="object"&&Object.keys(r).length===0?null:r)}return n.$$typeof=Oy,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}var dd=function(t,n){return t==null?null:On(On(t).map(n))},Fy={map:dd,forEach:dd,count:function(t){return t?On(t).length:0},only:function(t){var n=On(t);if(n.length!==1)throw"Children.only";return n[0]},toArray:On},Ry=ge.__e;ge.__e=function(t,n,e,r){if(t.then){for(var i,a=n;a=a.__;)if((i=a.__c)&&i.__c)return n.__e==null&&(n.__e=e.__e,n.__k=e.__k),i.__c(t,n)}Ry(t,n,e,r)};var fd=ge.unmount;function Wa(){this.__u=0,this.t=null,this.__b=null}function hd(t){var n=t.__.__c;return n&&n.__e&&n.__e(t)}function Hy(t){var n,e,r;function i(a){if(n||(n=t()).then(function(o){e=o.default||o},function(o){r=o}),r)throw r;if(!e)throw n;return wn(e,a)}return i.displayName="Lazy",i.__f=!0,i}function Bi(){this.u=null,this.o=null}ge.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&t.__h===!0&&(t.type=null),fd&&fd(t)},(Wa.prototype=new hn).__c=function(t,n){var e=n.__c,r=this;r.t==null&&(r.t=[]),r.t.push(e);var i=hd(r.__v),a=!1,o=function(){a||(a=!0,e.__R=null,i?i(s):s())};e.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var l=r.state.__e;r.__v.__k[0]=function d(f,h,p){return f&&(f.__v=null,f.__k=f.__k&&f.__k.map(function(g){return d(g,h,p)}),f.__c&&f.__c.__P===h&&(f.__e&&p.insertBefore(f.__e,f.__d),f.__c.__e=!0,f.__c.__P=p)),f}(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__e:r.__b=null});c=r.t.pop();)c.forceUpdate()}},u=n.__h===!0;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(o,o)},Wa.prototype.componentWillUnmount=function(){this.t=[]},Wa.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=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=cd({},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,e,r.__O=r.__P)}this.__b=null}var i=n.__e&&wn(Pn,null,t.fallback);return i&&(i.__h=null),[wn(Pn,null,n.__e?null:t.children),i]};var pd=function(t,n,e){if(++e[1]===e[0]&&t.o.delete(n),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(e=t.u;e;){for(;e.length>3;)e.pop()();if(e[1]>>1,1),n.i.removeChild(r)}}),qr(wn(By,{context:n.context},t.__v),n.l)):n.l&&n.componentWillUnmount()}function ol(t,n){return wn(Ky,{__v:t,i:n})}(Bi.prototype=new hn).__e=function(t){var n=this,e=hd(n.__v),r=n.o.get(t);return r[0]++,function(i){var a=function(){n.props.revealOrder?(r.push(i),pd(n,t,r)):i()};e?e(a):a()}},Bi.prototype.render=function(t){this.u=null,this.o=new Map;var n=On(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&n.reverse();for(var e=n.length;e--;)this.o.set(n[e],this.u=[1,0,this.u]);return t.children},Bi.prototype.componentDidUpdate=Bi.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(n,e){pd(t,e,n)})};var md=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,$y=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Uy=typeof document!="undefined",zy=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function Vy(t,n,e){return n.__k==null&&(n.textContent=""),qr(t,n),typeof e=="function"&&e(),t?t.__c:null}function jy(t,n,e){return Xs(t,n),typeof e=="function"&&e(),t?t.__c:null}hn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(hn.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var gd=ge.event;function Wy(){}function qy(){return this.cancelBubble}function Yy(){return this.defaultPrevented}ge.event=function(t){return gd&&(t=gd(t)),t.persist=Wy,t.isPropagationStopped=qy,t.isDefaultPrevented=Yy,t.nativeEvent=t};var vd,yd={configurable:!0,get:function(){return this.class}},bd=ge.vnode;ge.vnode=function(t){var n=t.type,e=t.props,r=e;if(typeof n=="string"){var i=n.indexOf("-")===-1;for(var a in r={},e){var o=e[a];Uy&&a==="children"&&n==="noscript"||a==="value"&&"defaultValue"in e&&o==null||(a==="defaultValue"&&"value"in e&&e.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+n)&&!zy(e.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&&$y.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),r[a]=o)}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=On(e.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=On(e.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),t.props=r,e.class!=e.className&&(yd.enumerable="className"in e,e.className!=null&&(r.class=e.className),Object.defineProperty(r,"className",yd))}t.$$typeof=md,bd&&bd(t)};var wd=ge.__r;ge.__r=function(t){wd&&wd(t),vd=t.__c};var Jy={ReactCurrentDispatcher:{current:{readContext:function(t){return vd.__n[t.__c].props.value}}}};function Gy(t){return wn.bind(null,t)}function Ed(t){return!!t&&t.$$typeof===md}function Qy(t){return Ed(t)?Gu.apply(null,arguments):t}function Xy(t){return!!t.__k&&(qr(null,t),!0)}function Zy(t){return t&&(t.base||t.nodeType===1&&t)||null}var eb=function(t,n){return t(n)},tb=function(t,n){return t(n)};var v={useState:Ka,useReducer:el,useEffect:$a,useLayoutEffect:tl,useRef:Ua,useImperativeHandle:id,useMemo:za,useCallback:Va,useContext:ad,useDebugValue:od,version:"17.0.2",Children:Fy,render:Vy,hydrate:jy,unmountComponentAtNode:Xy,createPortal:ol,createElement:wn,createContext:Zs,createFactory:Gy,cloneElement:Qy,createRef:Js,Fragment:Pn,isValidElement:Ed,findDOMNode:Zy,Component:hn,PureComponent:al,memo:Py,forwardRef:Ny,flushSync:tb,unstable_batchedUpdates:eb,StrictMode:Pn,Suspense:Wa,SuspenseList:Bi,lazy:Hy,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Jy};var Lg=me(It());var We=v.createContext(null),Ya=v.createContext(null);var Bd=me(It()),Ja=me(require("obsidian"));var Pd=me(Ad()),sr=me(It());function Id(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ld(t){var n,e;return Id(t)===!1?!1:(n=t.constructor,n===void 0?!0:(e=n.prototype,!(Id(e)===!1||e.hasOwnProperty("isPrototypeOf")===!1)))}function xb(t,n){return t.length!==n.length?!1:t.every((e,r,i)=>r===i.length-1?e!==n[r]:e===n[r])}function kb(t,n){return t.length===n.length&&t.every((e,r)=>e===n[r])}var an;(function(i){i[i.Before=0]="Before",i[i.After=1]="After",i[i.Self=2]="Self",i[i.NotSiblings=3]="NotSiblings"})(an||(an={}));function Ui(t,n){if(kb(t,n))return 2;if(!xb(t,n))return 3;let e=t.length-1;return t[e]=0;r--)e={children:{[t[r]]:e}};return e}function zi(t,n){let e=n;for(let r=t.length-2;r>=0;r--)e={children:{[t[r]]:e}};return e}function Od(t){return zi(t,{children:{$splice:[[t[t.length-1],1]]}})}function Nd(t,n,e=0){return zi(t,{children:{$splice:[[t[t.length-1]+e,0,...n]]}})}function Tb(t,n){return zi(t,{children:{$push:n}})}function Mb(t,n){return zi(t,{children:{$unshift:n}})}function Fd(t,n,e,r){let i=r?r(vt(t,n)):vt(t,n),o=Ui(n,e)===an.After?-1:0,s=Od(n),u=Nd(e,[i],o),l=(0,Pd.default)(s,u,{isMergeableObject:d=>Ld(d)||Array.isArray(d)});return(0,sr.default)(t,l)}function kr(t,n){return(0,sr.default)(t,Od(n))}function lr(t,n,e){return(0,sr.default)(t,Nd(n,e))}function ul(t,n,e){return(0,sr.default)(t,Tb(n,e))}function Rd(t,n,e){return(0,sr.default)(t,Mb(n,e))}function Hd(t,n,e){return(0,sr.default)(t,_b(n,e))}function dl(t,n,e){return(0,sr.default)(t,zi(n,e))}var fl="kanban-plugin";function Qr(){}function $(t){return`${fl}__${t}`}function Ke(t=9){return Math.random().toString(36).slice(2,2+t)}function hl(t,n,e,r,i){var l,c;let a=vt(t,n.slice(0,-1)),o=vt(e,r.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,Bd.default)(i,{data:{isComplete:{$set:u}}})}function Ga(){let t=v.useRef(!1);return{oncompositionstart:()=>{t.current=!0},oncompositionend:()=>{t.current=!1},getShouldIMEBlockAction:()=>t.current}}var Cb=/<%/;async function Kd(t,n){let e=n?t.app.vault.getAbstractFileByPath(n):null;if(e&&e instanceof Ja.TFile){let r=t.app.workspace.activeLeaf.view;try{r instanceof Ja.MarkdownView&&r.getMode()!=="source"&&await r.setState({...r.getState(),mode:"source"},{});let{templatesEnabled:i,templaterEnabled:a,templatesPlugin:o,templaterPlugin:s}=pl(t.app),u=await t.app.vault.read(e);if(i&&a)return Cb.test(u)?await s.append_template_to_active_file(e):await o.instance.insertTemplate(e);if(i)return await o.instance.insertTemplate(e);if(a)return await s.append_template_to_active_file(e);await t.app.vault.modify(t.app.workspace.getActiveFile(),u)}catch(i){console.error(i),t.setError(i)}}}function Xr(t){var s,u,l,c,d;let n=t.internalPlugins.plugins,e=(s=n["daily-notes"])==null?void 0:s.enabled,r=(u=n["daily-notes"])==null?void 0:u.instance.options.format,i=(l=t.plugins.plugins["nldates-obsidian"])==null?void 0:l.settings.format,a=(c=n.templates)==null?void 0:c.enabled,o=(d=n.templates)==null?void 0:d.instance.options.dateFormat;return e&&r||i||a&&o||"YYYY-MM-DD"}function Vi(t){var a,o,s;let n=t.internalPlugins.plugins,e=(a=t.plugins.plugins["nldates-obsidian"])==null?void 0:a.settings.timeFormat,r=(o=n.templates)==null?void 0:o.enabled,i=(s=n.templates)==null?void 0:s.instance.options.timeFormat;return e||r&&i||"HH:mm"}var $d=/[\\^$.*+?()[\]{}|]/g,Db=RegExp($d.source);function Fn(t){return t&&Db.test(t)?t.replace($d,"\\$&"):t||""}function pl(t){var s;let n=t.internalPlugins.plugins.templates,e=n.enabled,r=t.plugins.plugins["templater-obsidian"],i=t.plugins.enabledPlugins.has("templater-obsidian"),a=r&&((s=this.app.plugins.plugins["templater-obsidian"].settings)==null?void 0:s.empty_file_template),o=e?n.instance.options.folder:r?r.settings.template_folder:void 0;return{templatesPlugin:n,templatesEnabled:e,templaterPlugin:r==null?void 0:r.templater,templaterEnabled:i,templaterEmptyFileTemplate:a,templateFolder:o}}function wt(t){if(typeof t=="string"||typeof t=="number")return""+t;let n="";if(Array.isArray(t))for(let e=0,r;e{r.has(n)&&(r.delete(n),r.size===0&&e.push(i))}),e.forEach(r=>{this.idScopes.delete(r),this.scrollStates.delete(r)})}};var Et=v.createContext(null),cr=v.createContext(""),Wi=v.createContext(null),qi=v.createContext(new ji),Qa=v.createContext(null),Xa=v.createContext(null);var Ud={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){}},zd=[0,0,0,0];function Qe(t){return t===void 0?0:t}function Za(t,n,e,r){return[t.left+Qe(n==null?void 0:n.x)+Qe(e==null?void 0:e.x)-Qe(r==null?void 0:r.x),t.top+Qe(n==null?void 0:n.y)+Qe(e==null?void 0:e.y)-Qe(r==null?void 0:r.y),t.left+t.width+Qe(n==null?void 0:n.x)+Qe(e==null?void 0:e.x)-Qe(r==null?void 0:r.x),t.top+t.height+Qe(n==null?void 0:n.y)+Qe(e==null?void 0:e.y)-Qe(r==null?void 0:r.y)]}function ml(t,n,e,r){let i=Za(t,n,e,null);return r==="top"?(i[3]=i[1]+35,i):r==="right"?(i[0]=i[0]+t.width-35,i):r==="bottom"?(i[1]=i[1]+t.height-35,i):(i[2]=i[0]+35,i)}function eo(t,n,e,r,i,a){return[t-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),e-Qe(i==null?void 0:i.x)-Qe(a==null?void 0:a.x),r-Qe(i==null?void 0:i.y)-Qe(a==null?void 0:a.y)]}var Ab=t=>Ib(t,(n,e)=>n{if(o.entityId===e)return Infinity;let s=o.getHitbox(),u=jd(s)[0],l=Lb(n),c=o.getData().sortAxis==="horizontal"?"x":"y",d=l[c]>r[c]?1e3:0;return Zr(u,r)+d}),a=Ab(i);return t[a]?t[a]:null}function vl(t){let{scrollLeft:n,scrollTop:e,scrollWidth:r,scrollHeight:i,offsetWidth:a,offsetHeight:o}=t,s=n,u=e,l=r-a,c=i-o;return{x:s,y:u,maxX:Math.max(l,0),maxY:Math.max(c,0)}}function Wd(t,n,e){let r=Math.trunc((e.x-n.x)*100)/100,i=Math.trunc((e.y-n.y)*100)/100;return[t[0]+r,t[1]+i,t[2]+r,t[3]+i]}function yl(t,n=[0,0,0,0]){let e=t[0]-n[0],r=t[1]-n[1],i=t[2]+n[2],o=t[3]+n[3]-r;return{width:i-e,height:o}}var bl=class{constructor(n,e,r,i,a,o,s,u,l,c){this.isVisible=!1;this.id=r,this.instanceId=Ke(),this.scopeId=e,this.entityId=`${e}-${r}`,this.dndManager=n,this.index=i,this.children=new Map,this.parent=a,this.scrollParent=o,this.getEntityData=c,this.sortManager=s,this.pollForNodes(u,l)}pollForNodes(n,e){!n()||!e()?requestAnimationFrame(()=>this.pollForNodes(n,e)):this.initNodes(n(),e())}initNodes(n,e){var r,i;if(this.entityNode=n,this.measureNode=e,e.dataset.hitboxid=this.entityId,(r=this.sortManager)==null||r.registerSortable(this.entityId,this.getEntity(Ud),n,e),this.scrollParent)this.scrollParent.registerObserverHandler(this.entityId,e,a=>{var o,s;if(a.isIntersecting){let u=this.getEntity(a.boundingClientRect);(o=this.parent)==null||o.children.set(this.entityId,{entity:u,manager:this}),this.dndManager.observeResize(e),(!this.parent||this.parent.isVisible)&&(this.dndManager.registerHitboxEntity(this.entityId,u),this.children.forEach((l,c)=>{this.dndManager.registerHitboxEntity(c,l.entity)}),this.setVisibility(!0))}else this.dndManager.unregisterHitboxEntity(this.entityId),this.children.forEach((u,l)=>{this.dndManager.unregisterHitboxEntity(l)}),(s=this.parent)==null||s.children.delete(this.entityId),this.dndManager.unobserveResize(e),this.setVisibility(!1)});else{let a=this.getEntity(e.getBoundingClientRect());this.dndManager.observeResize(e),this.dndManager.registerHitboxEntity(this.entityId,a),(i=this.parent)==null||i.children.set(this.entityId,{entity:a,manager:this}),this.setVisibility(!0)}}setVisibility(n){this.isVisible=n,this.children.forEach(e=>{e.manager.setVisibility(n)})}destroy(){var n,e,r;this.dndManager.unobserveResize(this.measureNode),(n=this.sortManager)==null||n.unregisterSortable(this.entityId),(e=this.scrollParent)==null||e.unregisterObserverHandler(this.entityId,this.measureNode),this.dndManager.unregisterHitboxEntity(this.entityId),(r=this.parent)==null||r.children.delete(this.entityId)}getPath(){var n;return[...((n=this.parent)==null?void 0:n.getPath())||[],this.index]}getEntity(n){var r,i;let e=this;return{scopeId:this.scopeId,entityId:this.entityId,initial:Za(n,((r=e.scrollParent)==null?void 0:r.scrollState)||on,((i=e.scrollParent)==null?void 0:i.getScrollShift())||Rn,null),getParentScrollState(){var a;return((a=e.scrollParent)==null?void 0:a.scrollState)||on},getParentScrollShift(){var a;return((a=e.scrollParent)==null?void 0:a.getScrollShift())||Rn},recalcInitial(){var a,o;this.initial=Za(e.measureNode.getBoundingClientRect(),((a=e.scrollParent)==null?void 0:a.scrollState)||on,((o=e.scrollParent)==null?void 0:o.getScrollShift())||Rn,null)},getHitbox(){return eo(this.initial[0],this.initial[1],this.initial[2],this.initial[3],this.getParentScrollState(),this.getParentScrollShift())},getPath(){return e.getPath()},getData(){var a;return{...e.getEntityData(),sortAxis:(a=e.sortManager)==null?void 0:a.axis}}}}};var ur=v.memo(function({id:n,index:e,elementRef:r,measureRef:i,children:a,data:o}){let s=v.useContext(Et),u=v.useContext(Qa),l=v.useContext(cr),c=v.useContext(Xa),d=v.useContext(Wi),f=v.useRef(o),h=v.useRef();f.current=o;let p=v.useMemo(()=>{if(s){h.current&&h.current.destroy();let g=new bl(s,l,n,e,c,d,u,()=>r.current,()=>i.current,()=>f.current);return h.current=g,g}return null},[n,e,s,l,c,d,u]);return v.useEffect(()=>()=>{var g;return(g=h.current)==null?void 0:g.destroy()},[]),p?v.createElement(Xa.Provider,{value:p},a):null});function Wn(t){let n=v.useContext(Xa),e=(n==null?void 0:n.getPath())||[];return t!==void 0&&e.push(t),v.useMemo(()=>e,e)}var Ql=me(ah()),dp=me(require("obsidian"));var Jw=function(n){var e=[],r=null,i=function(){for(var o=arguments.length,s=new Array(o),u=0;u0?r:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function Qw(t){var n=t.name,e=n&&n.lastIndexOf(".")!==-1;if(e&&!t.type){var r=n.split(".").pop().toLowerCase(),i=Gw.get(r);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}var Xw=[".DS_Store","Thumbs.db"];function Bl(t){return ci(this,void 0,void 0,function(){return ui(this,function(n){return[2,Zw(t)&&t.dataTransfer?nE(t.dataTransfer,t.type):eE(t)]})})}function Zw(t){return!!t.dataTransfer}function eE(t){var n=tE(t.target)?t.target.files?Kl(t.target.files):[]:[];return n.map(function(e){return ea(e)})}function tE(t){return t!==null}function nE(t,n){return ci(this,void 0,void 0,function(){var e,r;return ui(this,function(i){switch(i.label){case 0:return t.items?(e=Kl(t.items).filter(function(a){return a.kind==="file"}),n!=="drop"?[2,e]:[4,Promise.all(e.map(rE))]):[3,2];case 1:return r=i.sent(),[2,Dh(Ah(r))];case 2:return[2,Dh(Kl(t.files).map(function(a){return ea(a)}))]}})})}function Dh(t){return t.filter(function(n){return Xw.indexOf(n.name)===-1})}function Kl(t){for(var n=[],e=0;e",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var Mo={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:function(t){var n=t%100;if(n>3&&n<21)return"th";switch(n%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},Co=Mo;var Lt=function(t,n){return n===void 0&&(n=2),("000"+t).slice(n*-1)},Qt=function(t){return t===!0?1:0};function $l(t,n){var e;return function(){var r=this,i=arguments;clearTimeout(e),e=setTimeout(function(){return t.apply(r,i)},n)}}var Do=function(t){return t instanceof Array?t:[t]};function Pt(t,n,e){if(e===!0)return t.classList.add(n);t.classList.remove(n)}function Ve(t,n,e){var r=window.document.createElement(t);return n=n||"",e=e||"",r.className=n,e!==void 0&&(r.textContent=e),r}function ta(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Ul(t,n){if(n(t))return t;if(t.parentNode)return Ul(t.parentNode,n)}function na(t,n){var e=Ve("div","numInputWrapper"),r=Ve("input","numInput "+t),i=Ve("span","arrowUp"),a=Ve("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?r.type="number":(r.type="text",r.pattern="\\d*"),n!==void 0)for(var o in n)r.setAttribute(o,n[o]);return e.appendChild(r),e.appendChild(i),e.appendChild(a),e}function Xt(t){try{if(typeof t.composedPath=="function"){var n=t.composedPath();return n[0]}return t.target}catch(e){return t.target}}var zl=function(){},ra=function(t,n,e){return e.months[n?"shorthand":"longhand"][t]},Ph={D:zl,F:function(t,n,e){t.setMonth(e.months.longhand.indexOf(n))},G:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*Qt(new RegExp(e.amPM[1],"i").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(parseFloat(n)*1e3)},W:function(t,n,e){var r=parseInt(n),i=new Date(t.getFullYear(),0,2+(r-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+e.firstDayOfWeek),i},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:zl,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:zl,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},Qn={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})"},di={Z:function(t){return t.toISOString()},D:function(t,n,e){return n.weekdays.shorthand[di.w(t,n,e)]},F:function(t,n,e){return ra(di.n(t,n,e)-1,!1,n)},G:function(t,n,e){return Lt(di.h(t,n,e))},H:function(t){return Lt(t.getHours())},J:function(t,n){return n.ordinal!==void 0?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[Qt(t.getHours()>11)]},M:function(t,n){return ra(t.getMonth(),!0,n)},S:function(t){return Lt(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return Lt(t.getFullYear(),4)},d:function(t){return Lt(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return Lt(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return Lt(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}};var Vl=function(t){var n=t.config,e=n===void 0?pr:n,r=t.l10n,i=r===void 0?Mo:r,a=t.isMobile,o=a===void 0?!1:a;return function(s,u,l){var c=l||i;return e.formatDate!==void 0&&!o?e.formatDate(s,u,c):u.split("").map(function(d,f,h){return di[d]&&h[f-1]!=="\\"?di[d](s,c,e):d!=="\\"?d:""}).join("")}},Ao=function(t){var n=t.config,e=n===void 0?pr:n,r=t.l10n,i=r===void 0?Mo:r;return function(a,o,s,u){if(!(a!==0&&!a)){var l=u||i,c,d=a;if(a instanceof Date)c=new Date(a.getTime());else if(typeof a!="string"&&a.toFixed!==void 0)c=new Date(a);else if(typeof a=="string"){var f=o||(e||pr).dateFormat,h=String(a).trim();if(h==="today")c=new Date,s=!0;else if(e&&e.parseDate)c=e.parseDate(a,f);else if(/Z$/.test(h)||/GMT$/.test(h))c=new Date(a);else{for(var p=void 0,g=[],w=0,S=0,T="";wMath.min(n,e)&&t=0?new Date:new Date(e.config.minDate.getTime()),R=Lo(e.config);_.setHours(R.hours,R.minutes,R.seconds,_.getMilliseconds()),e.selectedDates=[_],e.latestSelectedDateObj=_}x!==void 0&&x.type!=="blur"&&Li(x);var W=e._input.value;d(),Yt(),e._input.value!==W&&e._debouncedChange()}function l(x,_){return x%12+12*Qt(_===e.l10n.amPM[1])}function c(x){switch(x%24){case 0:case 12:return 12;default:return x%12}}function d(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var x=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,_=(parseInt(e.minuteElement.value,10)||0)%60,R=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(x=l(x,e.amPM.textContent));var W=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&Zt(e.latestSelectedDateObj,e.config.minDate,!0)===0,re=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&Zt(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var ae=Io(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),xe=Io(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),ue=Io(x,_,R);if(ue>xe&&ue=12)]),e.secondElement!==void 0&&(e.secondElement.value=Lt(R)))}function p(x){var _=Xt(x),R=parseInt(_.value)+(x.delta||0);(R/1e3>1||x.key==="Enter"&&!/[^\d]/.test(R.toString()))&&U(R)}function g(x,_,R,W){if(_ instanceof Array)return _.forEach(function(re){return g(x,re,R,W)});if(x instanceof Array)return x.forEach(function(re){return g(re,_,R,W)});x.addEventListener(_,R,W),e._handlers.push({remove:function(){return x.removeEventListener(_,R,W)}})}function w(){Se("onChange")}function S(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(R){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+R+"]"),function(W){return g(W,"click",e[R])})}),e.isMobile){rn();return}var x=$l(ht,50);if(e._debouncedChange=$l(w,oE),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&g(e.daysContainer,"mouseover",function(R){e.config.mode==="range"&&Ge(Xt(R))}),g(e._input,"keydown",Fe),e.calendarContainer!==void 0&&g(e.calendarContainer,"keydown",Fe),!e.config.inline&&!e.config.static&&g(window,"resize",x),window.ontouchstart!==void 0?g(window.document,"touchstart",V):g(window.document,"mousedown",V),g(window.document,"focus",V,{capture:!0}),e.config.clickOpens===!0&&(g(e._input,"focus",e.open),g(e._input,"click",e.open)),e.daysContainer!==void 0&&(g(e.monthNav,"click",$r),g(e.monthNav,["keyup","increment"],p),g(e.daysContainer,"click",Cn)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var _=function(R){return Xt(R).select()};g(e.timeContainer,["increment"],u),g(e.timeContainer,"blur",u,{capture:!0}),g(e.timeContainer,"click",k),g([e.hourElement,e.minuteElement],["focus","click"],_),e.secondElement!==void 0&&g(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&g(e.amPM,"click",function(R){u(R)})}e.config.allowInput&&g(e._input,"blur",Ee)}function T(x,_){var R=x!==void 0?e.parseDate(x):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate1),e.calendarContainer.appendChild(x);var re=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!re&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var ae=Ve("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(ae,e.element),ae.appendChild(e.element),e.altInput&&ae.appendChild(e.altInput),ae.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function C(x,_,R,W){var re=G(_,!0),ae=Ve("span",x,_.getDate().toString());return ae.dateObj=_,ae.$i=W,ae.setAttribute("aria-label",e.formatDate(_,e.config.ariaDateFormat)),x.indexOf("hidden")===-1&&Zt(_,e.now)===0&&(e.todayDateElem=ae,ae.classList.add("today"),ae.setAttribute("aria-current","date")),re?(ae.tabIndex=-1,Kt(_)&&(ae.classList.add("selected"),e.selectedDateElem=ae,e.config.mode==="range"&&(Pt(ae,"startRange",e.selectedDates[0]&&Zt(_,e.selectedDates[0],!0)===0),Pt(ae,"endRange",e.selectedDates[1]&&Zt(_,e.selectedDates[1],!0)===0),x==="nextMonthDay"&&ae.classList.add("inRange")))):ae.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Ye(_)&&!Kt(_)&&ae.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&x!=="prevMonthDay"&&R%7==1&&e.weekNumbers.insertAdjacentHTML("beforeend",""+e.config.getWeek(_)+""),Se("onDayCreate",ae),ae}function O(x){x.focus(),e.config.mode==="range"&&Ge(x)}function B(x){for(var _=x>0?0:e.config.showMonths-1,R=x>0?e.config.showMonths:-1,W=_;W!=R;W+=x)for(var re=e.daysContainer.children[W],ae=x>0?0:re.children.length-1,xe=x>0?re.children.length:-1,ue=ae;ue!=xe;ue+=x){var _e=re.children[ue];if(_e.className.indexOf("hidden")===-1&&G(_e.dateObj))return _e}}function z(x,_){for(var R=x.className.indexOf("Month")===-1?x.dateObj.getMonth():e.currentMonth,W=_>0?e.config.showMonths:-1,re=_>0?1:-1,ae=R-e.currentMonth;ae!=W;ae+=re)for(var xe=e.daysContainer.children[ae],ue=R-e.currentMonth===ae?x.$i+_:_<0?xe.children.length-1:0,_e=xe.children.length,le=ue;le>=0&&le<_e&&le!=(_>0?_e:-1);le+=re){var we=xe.children[le];if(we.className.indexOf("hidden")===-1&&G(we.dateObj)&&Math.abs(x.$i-le)>=Math.abs(_))return O(we)}e.changeMonth(re),Q(B(re),0)}function Q(x,_){var R=a(),W=ye(R||document.body),re=x!==void 0?x:W?R:e.selectedDateElem!==void 0&&ye(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&ye(e.todayDateElem)?e.todayDateElem:B(_>0?1:-1);re===void 0?e._input.focus():W?z(re,_):O(re)}function X(x,_){for(var R=(new Date(x,_,1).getDay()-e.l10n.firstDayOfWeek+7)%7,W=e.utils.getDaysInMonth((_-1+12)%12,x),re=e.utils.getDaysInMonth(_,x),ae=window.document.createDocumentFragment(),xe=e.config.showMonths>1,ue=xe?"prevMonthDay hidden":"prevMonthDay",_e=xe?"nextMonthDay hidden":"nextMonthDay",le=W+1-R,we=0;le<=W;le++,we++)ae.appendChild(C("flatpickr-day "+ue,new Date(x,_-1,le),le,we));for(le=1;le<=re;le++,we++)ae.appendChild(C("flatpickr-day",new Date(x,_,le),le,we));for(var ze=re+1;ze<=42-R&&(e.config.showMonths===1||we%7!=0);ze++,we++)ae.appendChild(C("flatpickr-day "+_e,new Date(x,_+1,ze%re),ze,we));var At=Ve("div","dayContainer");return At.appendChild(ae),At}function ie(){if(e.daysContainer!==void 0){ta(e.daysContainer),e.weekNumbers&&ta(e.weekNumbers);for(var x=document.createDocumentFragment(),_=0;_1||e.config.monthSelectorType!=="dropdown")){var x=function(W){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&We.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var _=0;_<12;_++)if(!!x(_)){var R=Ve("option","flatpickr-monthDropdown-month");R.value=new Date(e.currentYear,_).getMonth().toString(),R.textContent=ra(_,e.config.shorthandCurrentMonth,e.l10n),R.tabIndex=-1,e.currentMonth===_&&(R.selected=!0),e.monthsDropdownContainer.appendChild(R)}}}function J(){var x=Ve("div","flatpickr-month"),_=window.document.createDocumentFragment(),R;e.config.showMonths>1||e.config.monthSelectorType==="static"?R=Ve("span","cur-month"):(e.monthsDropdownContainer=Ve("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),g(e.monthsDropdownContainer,"change",function(xe){var ue=Xt(xe),_e=parseInt(ue.value,10);e.changeMonth(_e-e.currentMonth),Se("onMonthChange")}),q(),R=e.monthsDropdownContainer);var W=na("cur-year",{tabindex:"-1"}),re=W.getElementsByTagName("input")[0];re.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&re.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(re.setAttribute("max",e.config.maxDate.getFullYear().toString()),re.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var ae=Ve("div","flatpickr-current-month");return ae.appendChild(R),ae.appendChild(W),_.appendChild(ae),x.appendChild(_),{container:x,yearElement:re,monthElement:R}}function te(){ta(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var x=e.config.showMonths;x--;){var _=J();e.yearElements.push(_.yearElement),e.monthElements.push(_.monthElement),e.monthNav.appendChild(_.container)}e.monthNav.appendChild(e.nextMonthNav)}function ce(){return e.monthNav=Ve("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=Ve("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=Ve("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,te(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(x){e.__hidePrevMonthArrow!==x&&(Pt(e.prevMonthNav,"flatpickr-disabled",x),e.__hidePrevMonthArrow=x)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(x){e.__hideNextMonthArrow!==x&&(Pt(e.nextMonthNav,"flatpickr-disabled",x),e.__hideNextMonthArrow=x)}}),e.currentYearElement=e.yearElements[0],qt(),e.monthNav}function de(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var x=Lo(e.config);e.timeContainer=Ve("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var _=Ve("span","flatpickr-time-separator",":"),R=na("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=R.getElementsByTagName("input")[0];var W=na("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=W.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=Lt(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?x.hours:c(x.hours)),e.minuteElement.value=Lt(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():x.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(R),e.timeContainer.appendChild(_),e.timeContainer.appendChild(W),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var re=na("flatpickr-second");e.secondElement=re.getElementsByTagName("input")[0],e.secondElement.value=Lt(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():x.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(Ve("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(re)}return e.config.time_24hr||(e.amPM=Ve("span","flatpickr-am-pm",e.l10n.amPM[Qt((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function fe(){e.weekdayContainer?ta(e.weekdayContainer):e.weekdayContainer=Ve("div","flatpickr-weekdays");for(var x=e.config.showMonths;x--;){var _=Ve("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(_)}return he(),e.weekdayContainer}function he(){if(!!e.weekdayContainer){var x=e.l10n.firstDayOfWeek,_=Rh(e.l10n.weekdays.shorthand);x>0&&x<_.length&&(_=Rh(_.splice(x,_.length),_.splice(0,x)));for(var R=e.config.showMonths;R--;)e.weekdayContainer.children[R].innerHTML=` `+_.join("")+` `}}function De(){e.calendarContainer.classList.add("hasWeeks");var x=Ve("div","flatpickr-weekwrapper");x.appendChild(Ve("span","flatpickr-weekday",e.l10n.weekAbbreviation));var _=Ve("div","flatpickr-weeks");return x.appendChild(_),{weekWrapper:x,weekNumbers:_}}function A(x,_){_===void 0&&(_=!0);var R=_?x:x-e.currentMonth;R<0&&e._hidePrevMonthArrow===!0||R>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=R,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,Se("onYearChange"),q()),ie(),Se("onMonthChange"),qt())}function I(x,_){if(x===void 0&&(x=!0),_===void 0&&(_=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,_===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var R=Lo(e.config),W=R.hours,re=R.minutes,ae=R.seconds;h(W,re,ae)}e.redraw(),x&&Se("onChange")}function et(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Se("onClose")}function qe(){e.config!==void 0&&Se("onDestroy");for(var x=e._handlers.length;x--;)e._handlers[x].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var _=e.calendarContainer.parentNode;if(_.lastChild&&_.removeChild(_.lastChild),_.parentNode){for(;_.firstChild;)_.parentNode.insertBefore(_.firstChild,_);_.parentNode.removeChild(_)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.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(function(R){try{delete e[R]}catch(W){}})}function K(x){return e.calendarContainer.contains(x)}function V(x){if(e.isOpen&&!e.config.inline){var _=Xt(x),R=K(_),W=_===e.input||_===e.altInput||e.element.contains(_)||x.path&&x.path.indexOf&&(~x.path.indexOf(e.input)||~x.path.indexOf(e.altInput)),re=!W&&!R&&!K(x.relatedTarget),ae=!e.config.ignoredFocusElements.some(function(xe){return xe.contains(_)});re&&ae&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&u(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function U(x){if(!(!x||e.config.minDate&&xe.config.maxDate.getFullYear())){var _=x,R=e.currentYear!==_;e.currentYear=_||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),R&&(e.redraw(),Se("onYearChange"),q())}}function G(x,_){var R;_===void 0&&(_=!0);var W=e.parseDate(x,void 0,_);if(e.config.minDate&&W&&Zt(W,e.config.minDate,_!==void 0?_:!e.minDateHasTime)<0||e.config.maxDate&&W&&Zt(W,e.config.maxDate,_!==void 0?_:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(W===void 0)return!1;for(var re=!!e.config.enable,ae=(R=e.config.enable)!==null&&R!==void 0?R:e.config.disable,xe=0,ue=void 0;xe=ue.from.getTime()&&W.getTime()<=ue.to.getTime())return re}return!re}function ye(x){return e.daysContainer!==void 0?x.className.indexOf("hidden")===-1&&x.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(x):!1}function Ee(x){var _=x.target===e._input;_&&(e.selectedDates.length>0||e._input.value.length>0)&&!(x.relatedTarget&&K(x.relatedTarget))&&e.setDate(e._input.value,!0,x.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Fe(x){var _=Xt(x),R=e.config.wrap?t.contains(_):_===e._input,W=e.config.allowInput,re=e.isOpen&&(!W||!R),ae=e.config.inline&&R&&!W;if(x.keyCode===13&&R){if(W)return e.setDate(e._input.value,!0,_===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),_.blur();e.open()}else if(K(_)||re||ae){var xe=!!e.timeContainer&&e.timeContainer.contains(_);switch(x.keyCode){case 13:xe?(x.preventDefault(),u(),Mn()):Cn(x);break;case 27:x.preventDefault(),Mn();break;case 8:case 46:R&&!e.config.allowInput&&(x.preventDefault(),e.clear());break;case 37:case 39:if(!xe&&!R){x.preventDefault();var ue=a();if(e.daysContainer!==void 0&&(W===!1||ue&&ye(ue))){var _e=x.keyCode===39?1:-1;x.ctrlKey?(x.stopPropagation(),A(_e),Q(B(1),0)):Q(void 0,_e)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:x.preventDefault();var le=x.keyCode===40?1:-1;e.daysContainer&&_.$i!==void 0||_===e.input||_===e.altInput?x.ctrlKey?(x.stopPropagation(),U(e.currentYear-le),Q(B(1),0)):xe||Q(void 0,le*7):_===e.currentYearElement?U(e.currentYear-le):e.config.enableTime&&(!xe&&e.hourElement&&e.hourElement.focus(),u(x),e._debouncedChange());break;case 9:if(xe){var we=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(mt){return mt}),ze=we.indexOf(_);if(ze!==-1){var At=we[ze+(x.shiftKey?-1:1)];x.preventDefault(),(At||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(_)&&x.shiftKey&&(x.preventDefault(),e._input.focus());break;default:break}}if(e.amPM!==void 0&&_===e.amPM)switch(x.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],d(),Yt();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],d(),Yt();break}(R||K(_))&&Se("onKeyDown",x)}function Ge(x,_){if(_===void 0&&(_="flatpickr-day"),!(e.selectedDates.length!==1||x&&(!x.classList.contains(_)||x.classList.contains("flatpickr-disabled")))){for(var R=x?x.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),W=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),re=Math.min(R,e.selectedDates[0].getTime()),ae=Math.max(R,e.selectedDates[0].getTime()),xe=!1,ue=0,_e=0,le=re;lere&&leue)?ue=le:le>W&&(!_e||le<_e)&&(_e=le));var we=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+_));we.forEach(function(ze){var At=ze.dateObj,mt=At.getTime(),Dn=ue>0&&mt0&&mt>_e;if(Dn){ze.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(bn){ze.classList.remove(bn)});return}else if(xe&&!Dn)return;["startRange","inRange","endRange","notAllowed"].forEach(function(bn){ze.classList.remove(bn)}),x!==void 0&&(x.classList.add(R<=e.selectedDates[0].getTime()?"startRange":"endRange"),WR&&mt===W&&ze.classList.add("endRange"),mt>=ue&&(_e===0||mt<=_e)&&Oh(mt,W,R)&&ze.classList.add("inRange"))})}}function ht(){e.isOpen&&!e.config.static&&!e.config.inline&&Ct()}function pt(x,_){if(_===void 0&&(_=e._positionElement),e.isMobile===!0){if(x){x.preventDefault();var R=Xt(x);R&&R.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),Se("onOpen");return}else if(e._input.disabled||e.config.inline)return;var W=e.isOpen;e.isOpen=!0,W||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),Se("onOpen"),Ct(_)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(x===void 0||!e.timeContainer.contains(x.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function tn(x){return function(_){var R=e.config["_"+x+"Date"]=e.parseDate(_,e.config.dateFormat),W=e.config["_"+(x==="min"?"max":"min")+"Date"];R!==void 0&&(e[x==="min"?"minDateHasTime":"maxDateHasTime"]=R.getHours()>0||R.getMinutes()>0||R.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(re){return G(re)}),!e.selectedDates.length&&x==="min"&&f(R),Yt()),e.daysContainer&&(Tn(),R!==void 0?e.currentYearElement[x]=R.getFullYear().toString():e.currentYearElement.removeAttribute(x),e.currentYearElement.disabled=!!W&&R!==void 0&&W.getFullYear()===R.getFullYear())}}function yn(){var x=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],_=Ot(Ot({},JSON.parse(JSON.stringify(t.dataset||{}))),n),R={};e.config.parseDate=_.parseDate,e.config.formatDate=_.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(we){e.config._enable=ne(we)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(we){e.config._disable=ne(we)}});var W=_.mode==="time";if(!_.dateFormat&&(_.enableTime||W)){var re=ft.defaultConfig.dateFormat||pr.dateFormat;R.dateFormat=_.noCalendar||W?"H:i"+(_.enableSeconds?":S":""):re+" H:i"+(_.enableSeconds?":S":"")}if(_.altInput&&(_.enableTime||W)&&!_.altFormat){var ae=ft.defaultConfig.altFormat||pr.altFormat;R.altFormat=_.noCalendar||W?"h:i"+(_.enableSeconds?":S K":" K"):ae+(" h:i"+(_.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:tn("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:tn("max")});var xe=function(we){return function(ze){e.config[we==="min"?"_minTime":"_maxTime"]=e.parseDate(ze,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:xe("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:xe("max")}),_.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,R,_);for(var ue=0;ue-1?e.config[le]=Do(_e[le]).map(o).concat(e.config[le]):typeof _[le]=="undefined"&&(e.config[le]=_e[le])}_.altInputClass||(e.config.altInputClass=nn().className+" "+e.config.altInputClass),Se("onParseConfig")}function nn(){return e.config.wrap?t.querySelector("[data-input]"):t}function Wt(){typeof e.config.locale!="object"&&typeof ft.l10ns[e.config.locale]=="undefined"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=Ot(Ot({},ft.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?ft.l10ns[e.config.locale]:void 0),Qn.D="("+e.l10n.weekdays.shorthand.join("|")+")",Qn.l="("+e.l10n.weekdays.longhand.join("|")+")",Qn.M="("+e.l10n.months.shorthand.join("|")+")",Qn.F="("+e.l10n.months.longhand.join("|")+")",Qn.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var x=Ot(Ot({},n),JSON.parse(JSON.stringify(t.dataset||{})));x.time_24hr===void 0&&ft.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Vl(e),e.parseDate=Ao({config:e.config,l10n:e.l10n})}function Ct(x){if(typeof e.config.position=="function")return void e.config.position(e,x);if(e.calendarContainer!==void 0){Se("onPreCalendarPosition");var _=x||e._positionElement,R=Array.prototype.reduce.call(e.calendarContainer.children,function(y,b){return y+b.offsetHeight},0),W=e.calendarContainer.offsetWidth,re=e.config.position.split(" "),ae=re[0],xe=re.length>1?re[1]:null,ue=_.getBoundingClientRect(),_e=window.innerHeight-ue.bottom,le=ae==="above"||ae!=="below"&&_eR,we=window.pageYOffset+ue.top+(le?-R-2:_.offsetHeight+2);if(Pt(e.calendarContainer,"arrowTop",!le),Pt(e.calendarContainer,"arrowBottom",le),!e.config.inline){var ze=window.pageXOffset+ue.left,At=!1,mt=!1;xe==="center"?(ze-=(W-ue.width)/2,At=!0):xe==="right"&&(ze-=W-ue.width,mt=!0),Pt(e.calendarContainer,"arrowLeft",!At&&!mt),Pt(e.calendarContainer,"arrowCenter",At),Pt(e.calendarContainer,"arrowRight",mt);var Dn=window.document.body.offsetWidth-(window.pageXOffset+ue.right),bn=ze+W>window.document.body.offsetWidth,Sr=Dn+W>window.document.body.offsetWidth;if(Pt(e.calendarContainer,"rightMost",bn),!e.config.static)if(e.calendarContainer.style.top=we+"px",!bn)e.calendarContainer.style.left=ze+"px",e.calendarContainer.style.right="auto";else if(!Sr)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=Dn+"px";else{var Vn=Un();if(Vn===void 0)return;var Ur=window.document.body.offsetWidth,zr=Math.max(0,Ur/2-W/2),Vr=".flatpickr-calendar.centerMost:before",jr=".flatpickr-calendar.centerMost:after",Pi=Vn.cssRules.length,L="{left:"+ue.left+"px;right:auto;}";Pt(e.calendarContainer,"rightMost",!1),Pt(e.calendarContainer,"centerMost",!0),Vn.insertRule(Vr+","+jr+L,Pi),e.calendarContainer.style.left=zr+"px",e.calendarContainer.style.right="auto"}}}}function Un(){for(var x=null,_=0;_e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=W,e.config.mode==="single")e.selectedDates=[re];else if(e.config.mode==="multiple"){var xe=Kt(re);xe?e.selectedDates.splice(parseInt(xe),1):e.selectedDates.push(re)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=re,e.selectedDates.push(re),Zt(re,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(we,ze){return we.getTime()-ze.getTime()}));if(d(),ae){var ue=e.currentYear!==re.getFullYear();e.currentYear=re.getFullYear(),e.currentMonth=re.getMonth(),ue&&(Se("onYearChange"),q()),Se("onMonthChange")}if(qt(),ie(),Yt(),!ae&&e.config.mode!=="range"&&e.config.showMonths===1?O(W):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var _e=e.config.mode==="single"&&!e.config.enableTime,le=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(_e||le)&&Mn()}w()}}var lt={locale:[Wt,he],showMonths:[te,s,fe],minDate:[T],maxDate:[T],positionElement:[ct],clickOpens:[function(){e.config.clickOpens===!0?(g(e._input,"focus",e.open),g(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function Bt(x,_){if(x!==null&&typeof x=="object"){Object.assign(e.config,x);for(var R in x)lt[R]!==void 0&<[R].forEach(function(W){return W()})}else e.config[x]=_,lt[x]!==void 0?lt[x].forEach(function(W){return W()}):To.indexOf(x)>-1&&(e.config[x]=Do(_));e.redraw(),Yt(!0)}function tt(x,_){var R=[];if(x instanceof Array)R=x.map(function(W){return e.parseDate(W,_)});else if(x instanceof Date||typeof x=="number")R=[e.parseDate(x,_)];else if(typeof x=="string")switch(e.config.mode){case"single":case"time":R=[e.parseDate(x,_)];break;case"multiple":R=x.split(e.config.conjunction).map(function(W){return e.parseDate(W,_)});break;case"range":R=x.split(e.l10n.rangeSeparator).map(function(W){return e.parseDate(W,_)});break;default:break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(x)));e.selectedDates=e.config.allowInvalidPreload?R:R.filter(function(W){return W instanceof Date&&G(W,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(W,re){return W.getTime()-re.getTime()})}function j(x,_,R){if(_===void 0&&(_=!1),R===void 0&&(R=e.config.dateFormat),x!==0&&!x||x instanceof Array&&x.length===0)return e.clear(_);tt(x,R),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),T(void 0,_),f(),e.selectedDates.length===0&&e.clear(!1),Yt(_),_&&Se("onChange")}function ne(x){return x.slice().map(function(_){return typeof _=="string"||typeof _=="number"||_ instanceof Date?e.parseDate(_,void 0,!0):_&&typeof _=="object"&&_.from&&_.to?{from:e.parseDate(_.from,void 0),to:e.parseDate(_.to,void 0)}:_}).filter(function(_){return _})}function be(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var x=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);x&&tt(x,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function Be(){if(e.input=nn(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=Ve(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),ct()}function ct(){e._positionElement=e.config.positionElement||e._input}function rn(){var x=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=Ve("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=x,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=x==="datetime-local"?"Y-m-d\\TH:i:S":x==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch(_){}g(e.mobileInput,"change",function(_){e.setDate(Xt(_).value,!1,e.mobileFormatStr),Se("onChange"),Se("onClose")})}function Ue(x){if(e.isOpen===!0)return e.close();e.open(x)}function Se(x,_){if(e.config!==void 0){var R=e.config[x];if(R!==void 0&&R.length>0)for(var W=0;R[W]&&W=0&&Zt(x,e.selectedDates[1])<=0}function qt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(x,_){var R=new Date(e.currentYear,e.currentMonth,1);R.setMonth(e.currentMonth+_),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[_].textContent=ra(R.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=R.getMonth().toString(),x.value=R.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYeare.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function yt(x){return e.selectedDates.map(function(_){return e.formatDate(_,x)}).filter(function(_,R,W){return e.config.mode!=="range"||e.config.enableTime||W.indexOf(_)===R}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Yt(x){x===void 0&&(x=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=yt(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=yt(e.config.altFormat)),x!==!1&&Se("onValueUpdate")}function $r(x){var _=Xt(x),R=e.prevMonthNav.contains(_),W=e.nextMonthNav.contains(_);R||W?A(R?-1:1):e.yearElements.indexOf(_)>=0?_.select():_.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):_.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Li(x){x.preventDefault();var _=x.type==="keydown",R=Xt(x),W=R;e.amPM!==void 0&&R===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Qt(e.amPM.textContent===e.l10n.amPM[0])]);var re=parseFloat(W.getAttribute("min")),ae=parseFloat(W.getAttribute("max")),xe=parseFloat(W.getAttribute("step")),ue=parseInt(W.value,10),_e=x.delta||(_?x.which===38?1:-1:0),le=ue+xe*_e;if(typeof W.value!="undefined"&&W.value.length===2){var we=W===e.hourElement,ze=W===e.minuteElement;leae&&(le=W===e.hourElement?le-ae-Qt(!e.amPM):re,ze&&D(void 0,1,e.hourElement)),e.amPM&&we&&(xe===1?le+ue===23:Math.abs(le-ue)>xe)&&(e.amPM.textContent=e.l10n.amPM[Qt(e.amPM.textContent===e.l10n.amPM[0])]),W.value=Lt(le)}}return i(),e}function fi(t,n){for(var e=Array.prototype.slice.call(t).filter(function(o){return o instanceof HTMLElement}),r=[],i=0;i{i.style.left=`${n.x||0}px`,i.style.top=`${n.y||0}px`,i.createEl("input",{type:"text"},a=>{setTimeout(()=>{let o=null,s=c=>{c.target instanceof HTMLElement&&c.target.closest(`.${$("date-picker")}`)===null&&l()},u=c=>{c.key==="Escape"&&l()},l=()=>{o.destroy(),i.remove(),document.body.removeEventListener("click",s),document.removeEventListener("keydown",u)};o=Po(a,{locale:Fo(t),defaultDate:r,inline:!0,onChange:c=>{e(c),l()}}),setTimeout(()=>{let c=i.clientHeight,d=i.clientWidth;n.y+c>window.innerHeight&&(i.style.top=`${(n.y||0)-c}px`),n.x+d>window.innerWidth&&(i.style.left=`${(n.x||0)-d}px`)}),document.body.addEventListener("click",s),document.addEventListener("keydown",u)})})})}function Ho({stateManager:t,boardModifiers:n,item:e,hasDate:r,path:i}){let a=t.getSetting("date-format"),o=t.getSetting("link-date-to-daily-note"),s=t.getSetting("date-trigger"),u=o?"(?:\\[[^\\]]+\\]\\([^)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",l=new RegExp(`(^|\\s)${Fn(s)}${u}`);return c=>{let d=c[0],f=(0,at.moment)(d).format(a),h=o?Oo(t.app,f):`{${f}}`,p=e.data.titleRaw;r?p=e.data.titleRaw.replace(l,`$1${s}${h}`):p=`${e.data.titleRaw} ${s}${h}`,t.updateItemContent(e,p).then(g=>{n.updateItem(i,g)}).catch(g=>{t.setError(g),console.error(g)})}}function Yl(t){let n=t.getSetting("time-format"),e=[];for(let r=0;r<24;r++)e.push((0,at.moment)({hour:r}).format(n)),e.push((0,at.moment)({hour:r,minute:15}).format(n)),e.push((0,at.moment)({hour:r,minute:30}).format(n)),e.push((0,at.moment)({hour:r,minute:45}).format(n));return e}function Bo(t,n,e,r){let i=$("time-picker"),a=t.getSetting("time-format"),o=r==null?void 0:r.format(a);document.body.createDiv({cls:`${i} ${$("ignore-click-outside")}`},s=>{let u=Yl(t),l=g=>{g.target instanceof HTMLElement&&g.target.hasClass($("time-picker-item"))&&g.target.dataset.value&&(e(g.target.dataset.value),f())},c=g=>{g.target instanceof HTMLElement&&g.target.closest(`.${i}`)===null&&f()},d=g=>{g.key==="Escape"&&f()},f=()=>{s.remove(),s.removeEventListener("click",l),document.body.removeEventListener("click",c),document.removeEventListener("keydown",d)};s.style.left=`${n.x||0}px`,s.style.top=`${n.y||0}px`;let h=null,p=null;u.forEach((g,w)=>{let S=g===o;s.createDiv({cls:`${$("time-picker-item")} ${S?"is-selected":""}`,text:g},T=>{T.createEl("span",{cls:$("time-picker-check"),prepend:!0},k=>{(0,at.setIcon)(k,"checkmark")}),w%4==0&&T.addClass("is-hour"),T.dataset.value=g,S&&(h=T),w===Math.floor(u.length/2)&&(p=T)})}),setTimeout(()=>{var S;let g=s.clientHeight,w=s.clientWidth;n.y+g>window.innerHeight&&(s.style.top=`${(n.y||0)-g}px`),n.x+w>window.innerWidth&&(s.style.left=`${(n.x||0)-w}px`),(S=h||p)==null||S.scrollIntoView({block:"center",inline:"nearest"}),s.addEventListener("click",l),document.body.addEventListener("click",c),document.addEventListener("keydown",d)})})}function Ko({stateManager:t,boardModifiers:n,item:e,hasTime:r,path:i}){let a=t.getSetting("time-trigger"),o=new RegExp(`(^|\\s)${Fn(a)}{([^}]+)}`);return s=>{let u=e.data.titleRaw;r?u=e.data.titleRaw.replace(o,`$1${a}{${s}}`):u=`${e.data.titleRaw} ${a}{${s}}`,t.updateItemContent(e,u).then(l=>{n.updateItem(i,l)}).catch(l=>{t.setError(l),console.error(l)})}}function cp(t){let n=t.data.metadata.date,e=[];n&&(n.isSame(new Date,"day")&&e.push("is-today"),n.isAfter(new Date,"day")&&e.push("is-future"),n.isBefore(new Date,"day")&&e.push("is-past")),t.data.isComplete&&e.push("is-complete");for(let r of t.data.metadata.tags)e.push(`has-tag-${r.slice(1)}`);return e}function Ir(t,n,e,r){return t.app.fileManager.generateMarkdownLink(n,e,r)}function AE(t,n,e){return at.htmlToMarkdown?(0,at.htmlToMarkdown)(e):at.MarkdownSourceView.prototype.handleDataTransfer.call({app:t.app},n)}function IE(t){return t.replace(/^\[(.*)\]\(app:\/\/obsidian.md\/(.*)\)$/,"[$1]($2)")}function Jl(){var n;let t=window.require("electron").remote.clipboard;if(process.platform==="darwin"){if(t.has("NSFilenamesPboardType"))return((n=t.read("NSFilenamesPboardType").match(/.*<\/string>/g))==null?void 0:n.map(e=>e.replace(/|<\/string>/g,"")))||[];{let e=t.readImage("clipboard");return e.isEmpty()?[t.read("public.file-url").replace("file://","")].filter(r=>r):[{buffer:e.toPNG(),mimeType:"image/png",originalName:`Pasted image ${(0,at.moment)().format("YYYYMMDDHHmmss")}.png`}]}}else if(t.has("CF_HDROP")){let e=t.read("CF_HDROP")||"",r=[...e].filter((a,o)=>e.charCodeAt(o)!==0).join("").replace(/\\/g,"\\"),i=r.match(/[a-zA-Z]:\\/);if(i){let a=r.indexOf(i[0]);return a!==0&&(r=r.slice(a)),r.split(i[0]).filter(o=>o).map(o=>i+o)}}else{let e=t.readImage("clipboard");return e.isEmpty()?[t.readBuffer("FileNameW").toString("ucs2").replace(RegExp(String.fromCharCode(0),"g"),"")].filter(r=>r):[{buffer:e.toPNG(),mimeType:"image/png",originalName:`Pasted image ${(0,at.moment)().format("YYYYMMDDHHmmss")}.png`}]}return null}function LE(t){return t.split("\\").pop().split("/").pop()}async function PE(t,n,e,r){let i=await t.app.vault.getAvailablePathForAttachments(n,e,t.file),a=await t.app.vault.createBinary(i,r);return Ir(t,a,t.file.path)}async function OE(t){let n=Jl();if(!n||n.length===0)return null;let e=window.require("fs/promises"),r=window.require("path");return(await Promise.all(n.map(async i=>{if(typeof i=="string"){let o=LE(i).split("."),s=o.pop(),u=o.join("."),l=await t.app.vault.getAvailablePathForAttachments(u,s,t.file),c=t.app.vault.adapter.basePath;await e.copyFile(i,r.join(c,l)),await new Promise(f=>setTimeout(f,50));let d=t.app.vault.getAbstractFileByPath(l);return Ir(t,d,t.file.path)}else{let a=i.originalName.split("."),o=a.pop(),s=a.join(".");return await PE(t,s,o,i.buffer)}}))).filter(i=>i)}function up(t,n,e){return Promise.all(n.map(r=>{let i=r.name.split("."),a=i.pop(),o=i.join(".");if(e){switch(r.type){case"text/jpg":a="jpg";break;case"text/jpeg":a="jpeg";break;case"text/png":a="png";break}o="Pasted image "+(0,at.moment)().format("YYYYMMDDHHmmss")}return new Promise((s,u)=>{let l=new FileReader;l.onload=async c=>{try{let d=await t.app.vault.getAvailablePathForAttachments(o,a,t.file),f=await t.app.vault.createBinary(d,c.target.result);s(Ir(t,f,t.file.path))}catch(d){console.error(d),u(d)}},l.readAsArrayBuffer(r)})}))}async function NE(t,n){let e=n instanceof ClipboardEvent,r=e?t.getAView().isShiftPressed:!1,i=e?n.clipboardData:n.dataTransfer,a=e&&at.Platform.isDesktopApp?window.require("electron").remote.clipboard:null,o=a?a.availableFormats():[];if(e){if(e&&!r&&!o.includes("text/rtf")){if(at.Platform.isDesktopApp){let h=await OE(t);if(h==null?void 0:h.length)return h}let d=[],f=n.clipboardData.items;for(let h in f){let p=f[h];p.kind==="file"&&d.push(p.getAsFile())}if(d.length)return await up(t,d,!0)}}else{let d=await Bl(n);if(d.length)return await up(t,d)}let s=i.getData("text/html"),u=i.getData("text/plain"),l=i.getData("text/uri-list"),c=r?u||s:AE(t,i,s);return[IE(c||l||u||s||"").trim()]}async function $o(t,n){let e=t.app.dragManager.draggable,r=n instanceof DragEvent?n.dataTransfer:n.clipboardData;switch(e==null?void 0:e.type){case"file":return[Ir(t,e.file,t.file.path)];case"files":return e.files.map(i=>Ir(t,i,t.file.path));case"folder":return e.file.children.map(i=>i instanceof at.TFolder?null:Ir(t,i,t.file.path)).filter(i=>i);case"link":{let i=e.file?Ir(t,e.file,(0,at.parseLinktext)(e.linktext).subpath):`[[${e.linktext}]]`,a=new DOMParser().parseFromString(r.getData("text/html"),"text/html").documentElement.textContent;return i=i.replace(/]]$/,`|${a}]]`).replace(/^\[[^\]].+]\(/,`[${a}](`),[i]}default:return await NE(t,n)}}var Xe={Item:"item",Lane:"lane",Board:"board",MetadataSetting:"metadata-setting"},Uo={accepts:[Xe.Item],type:Xe.Item,children:[]},mr={accepts:[Xe.Lane],type:Xe.Lane},zo={accepts:[],type:Xe.Board},Vo={accepts:[Xe.MetadataSetting],type:Xe.MetadataSetting,children:[]};function Gl(t,n,e,r){let i="htmldnd",a=Ke(),o=t-75,s=t+75,u=n-25,l=n+25;return{scopeId:i,entityId:`${i}-${a}`,initial:[o,u,s,l],getParentScrollState(){return on},getParentScrollShift(){return Rn},recalcInitial(){},getHitbox(){return this.initial},getPath(){return[]},getData(){return{viewId:r,type:Xe.Item,id:a,content:e,accepts:[]}}}}var Xl=class{constructor(n,e,r){this.isHTMLDragging=!1;this.dragOverTimeout=0;this.hitboxEntities=e,this.scrollEntities=r,this.emitter=n}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(n,e){var a;let r=(e==null?void 0:e.dataset.hitboxid)||n.currentTarget.dataset.hitboxid;if(!r)return;let i=getComputedStyle(e||n.currentTarget);this.dragEntityId=r,this.dragOrigin={x:n.pageX,y:n.pageY},this.dragPosition={x:n.pageX,y:n.pageY},this.dragEntity=this.hitboxEntities.get(r),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(n,e){this.isHTMLDragging=!0;let r=Gl(n.pageX,n.pageY,[],e);this.dragEntityId=r.entityId,this.dragOrigin={x:n.pageX,y:n.pageY},this.dragPosition={x:n.pageX,y:n.pageY},this.dragEntity=r,this.dragOriginHitbox=r.getHitbox(),this.dragEntityMargin=[0,0,0,0],this.emitter.emit("dragStart",this.getDragEventData())}dragMove(n){this.dragPosition={x:n.pageX,y:n.pageY},this.emitter.emit("dragMove",this.getDragEventData()),this.calculateDragIntersect()}dragMoveHTML(n){this.dragPosition={x:n.pageX,y:n.pageY},this.emitter.emit("dragMove",this.getDragEventData()),this.calculateDragIntersect()}dragEnd(n){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(n,e,r,i){this.isHTMLDragging=!1,i||(this.dragEntity=Gl(n.pageX,n.pageY,r,e),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(n){clearTimeout(this.dragOverTimeout),this.dragOverTimeout=window.setTimeout(n,351)}calculateDragIntersect(){if(!this.dragEntity||!this.dragPosition||!this.dragOrigin||!this.dragOriginHitbox)return;let{type:n}=this.dragEntity.getData(),e=[],r=[],i=[],a=[];this.hitboxEntities.forEach(u=>{u.getData().accepts.includes(n)&&(e.push(u),r.push(u.getHitbox()))}),this.scrollEntities.forEach(u=>{u.getData().accepts.includes(n)&&(i.push(u),a.push(u.getHitbox()))});let o=Wd(this.dragOriginHitbox,this.dragOrigin,this.dragPosition);this.handleScrollIntersect(o,this.dragEntity.entityId,a,i)||this.handleHitboxIntersect(o,this.dragEntity.entityId,r,e)}handleScrollIntersect(n,e,r,i){let a=(0,Ql.default)([n],r).map(s=>i[s[1]]),o=Vd(a,n,e);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(n,e,r,i){let a=(0,Ql.default)([n],r).map(s=>i[s[1]]),o=gl(a,n,e);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)}},mi=t=>{t.preventDefault(),t.stopPropagation()};function gi(t,n){let e=v.useContext(Et);v.useEffect(()=>{let r=t.current,i=n.current;if(!e||!r||!i)return;let a=s=>{if(s.defaultPrevented||s.target.dataset.ignoreDrag||s.button!==0&&s.buttons!==1)return;let u=dp.Platform.isMobile;u||(s.stopPropagation(),s.preventDefault());let l=s,c={x:s.pageX,y:s.pageY},d=!1,f=0;u&&(window.addEventListener("contextmenu",mi,!0),f=window.setTimeout(()=>{e.dragManager.dragStart(l,r),d=!0,window.addEventListener("touchmove",mi,{passive:!1})},500));let h=So(g=>{u?d?e.dragManager.dragMove(g):Zr(c,{x:g.pageX,y:g.pageY})>5&&(clearTimeout(f),window.removeEventListener("touchmove",mi),window.removeEventListener("contextmenu",mi,!0),window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p)):d?e.dragManager.dragMove(g):Zr(c,{x:g.pageX,y:g.pageY})>5&&(e.dragManager.dragStart(l,r),d=!0)}),p=g=>{clearTimeout(f),d=!1,e.dragManager.dragEnd(g),window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p),u&&(window.removeEventListener("contextmenu",mi,!0),window.removeEventListener("touchmove",mi))};window.addEventListener("pointermove",h),window.addEventListener("pointerup",p),window.addEventListener("pointercancel",p)},o=s=>{s.stopPropagation()};return i.addEventListener("pointerdown",a),i.addEventListener("touchstart",o),()=>{i.removeEventListener("pointerdown",a),i.removeEventListener("touchstart",o)}},[t,n,e])}function fp(t){let n=v.useContext(Et),e=v.useCallback(i=>{n.dragManager.isHTMLDragging?(i.preventDefault(),n.dragManager.dragMoveHTML(i.nativeEvent)):n.dragManager.dragStartHTML(i.nativeEvent,t.getAView().id),n.dragManager.onHTMLDragLeave(()=>{n.dragManager.dragEndHTML(i.nativeEvent,t.getAView().id,[],!0)})},[n,t]),r=v.useCallback(async i=>{n.dragManager.dragEndHTML(i.nativeEvent,t.getAView().id,await $o(t,i.nativeEvent),!1)},[n,t]);return{onDragOver:e,onDrop:r}}var pp=me(It());var hp=me(require("obsidian"));function en({name:t,className:n}){return v.createElement("span",{"data-icon":t,className:`${$("icon")} ${n||""}`,ref:e=>{e&&(0,hp.setIcon)(e,t)}})}var mp=v.memo(function({shouldMarkItemsComplete:n,path:e,item:r,stateManager:i,boardModifiers:a}){let o=i.useSetting("show-checkboxes"),[s,u]=v.useState(!1),[l,c]=v.useState(!1);return v.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]),n||o?v.createElement("div",{onMouseEnter:d=>{c(!0),(d.ctrlKey||d.metaKey)&&u(!0)},onMouseLeave:()=>{c(!1),s&&u(!1)},className:$("item-prefix-button-wrapper")},o&&!s&&v.createElement("input",{onChange:()=>{a.updateItem(e,(0,pp.default)(r,{data:{$toggle:["isComplete"]}}))},type:"checkbox",className:"task-list-item-checkbox",checked:!!r.data.isComplete}),(s||!o&&n)&&v.createElement("button",{onClick:()=>{a.archiveItem(e)},className:$("item-prefix-button"),"aria-label":s?void 0:"Archive card"},v.createElement(en,{name:"sheets-in-box"}))):null});var Zl;function gp(t){if(t.nodeName!=="TEXTAREA")return!1;if(typeof Zl=="undefined"){var n=document.createElement("textarea");n.value=1,Zl=!!n.firstChild}return Zl}function FE(t,n){if(t.focus(),document.selection){var e=document.selection.createRange();e.text=n,e.collapse(!1),e.select();return}var r=document.execCommand("insertText",!1,n);if(!r){var i=t.selectionStart,a=t.selectionEnd;if(typeof t.setRangeText=="function")t.setRangeText(n);else{var o=document.createRange(),s=document.createTextNode(n);if(gp(t)){var u=t.firstChild;if(!u)t.appendChild(s);else{for(var l=0,c=null,d=null;u&&(c===null||d===null);){var f=u.nodeValue.length;i>=l&&i<=l+f&&o.setStart(c=u,i-l),a>=l&&a<=l+f&&o.setEnd(d=u,a-l),l+=f,u=u.nextSibling}i!==a&&o.deleteContents()}}if(gp(t)&&o.commonAncestorContainer.nodeName==="#text")o.insertNode(s);else{var h=t.value;t.value=h.slice(0,i)+n+h.slice(a)}}t.setSelectionRange(i+n.length,i+n.length);var p=document.createEvent("UIEvent");p.initEvent("input",!0,!1),t.dispatchEvent(p)}}var fa=FE;var vp=me(require("obsidian"));var ec=t=>t.charCodeAt(0)===10,yp=t=>t===" "||ec(t);function RE(t,n,e){if(!t)throw Error("Argument 'text' should be truthy");let r=0,i=t.length;for(let a=n;a-1>-1;a--)if(ec(t[a-1])){r=a;break}for(let a=e===void 0?n:e;a-1;a--)if(yp(t[a-1])){r=a;break}for(let a=e===void 0?n:e;a0&&t.value[a.selection.start-1]!==" ")return!1;if(a.selection.end===a.selection.start){let s=_t(t,`${e}`);return Nt(t,{start:s.selection.end-1-a.selectedText.length,end:s.selection.end-1}),!1}let o=_t(t,`${n}${a.selectedText}${e}`);return Nt(t,{start:o.selection.end-1-a.selectedText.length,end:o.selection.end-1}),!0}function jo(t,n,e,r){let i=Kn(t),a=vi({text:i.text,selection:i.selection}),o=Nt(t,a),s=n.test(o.selectedText)?r(o.selectedText):e(o.selectedText),u=_t(t,s);Nt(t,{start:o.selection.start,end:u.selection.end})}function Wo(t,n){var e;if(n.types.includes("text/uri-list")||["file","files","link","folder"].includes((e=t.app.dragManager.draggable)==null?void 0:e.type))return"link";if(n.types.includes("text/html")||n.types.includes("text/plain"))return"copy"}async function qo(t,n){let e=t.clipboardData.getData("text/html"),r=t.clipboardData.types.includes("Files"),i=vp.Platform.isDesktopApp?Jl():null,a=e||r||(i==null?void 0:i.length)>0;a&&t.preventDefault();try{let o=await $o(n,t.nativeEvent);if(a){let s=t.target,u=o.join(` `);_t(s,u)}}catch(o){console.error(o),n.setError(o)}}var Dc=me(require("obsidian"));function Xn(t){return Array.isArray?Array.isArray(t):Ep(t)==="[object Array]"}var KE=1/0;function $E(t){if(typeof t=="string")return t;let n=t+"";return n=="0"&&1/t==-KE?"-0":n}function UE(t){return t==null?"":$E(t)}function Zn(t){return typeof t=="string"}function bp(t){return typeof t=="number"}function zE(t){return t===!0||t===!1||VE(t)&&Ep(t)=="[object Boolean]"}function wp(t){return typeof t=="object"}function VE(t){return wp(t)&&t!==null}function cn(t){return t!=null}function tc(t){return!t.trim().length}function Ep(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}var jE="Incorrect 'index' type",WE=t=>`Invalid value for key ${t}`,qE=t=>`Pattern length exceeds max of ${t}.`,YE=t=>`Missing ${t} property in key`,JE=t=>`Property 'weight' in key '${t}' must be a positive integer`,Sp=Object.prototype.hasOwnProperty,xp=class{constructor(n){this._keys=[],this._keyMap={};let e=0;n.forEach(r=>{let i=kp(r);e+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(r=>{r.weight/=e})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function kp(t){let n=null,e=null,r=null,i=1;if(Zn(t)||Xn(t))r=t,n=_p(t),e=nc(t);else{if(!Sp.call(t,"name"))throw new Error(YE("name"));let a=t.name;if(r=a,Sp.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(JE(a));n=_p(a),e=nc(a)}return{path:n,id:e,weight:i,src:r}}function _p(t){return Xn(t)?t:t.split(".")}function nc(t){return Xn(t)?t.join("."):t}function GE(t,n){let e=[],r=!1,i=(a,o,s)=>{if(!!cn(a))if(!o[s])e.push(a);else{let u=o[s],l=a[u];if(!cn(l))return;if(s===o.length-1&&(Zn(l)||bp(l)||zE(l)))e.push(UE(l));else if(Xn(l)){r=!0;for(let c=0,d=l.length;ct.score===n.score?t.idx{this._keysMap[e.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Zn(this.docs[0])?this.docs.forEach((n,e)=>{this._addString(n,e)}):this.docs.forEach((n,e)=>{this._addObject(n,e)}),this.norm.clear())}add(n){let e=this.size();Zn(n)?this._addString(n,e):this._addObject(n,e)}removeAt(n){this.records.splice(n,1);for(let e=n,r=this.size();e{let o=this.getFn(n,i.path);if(!!cn(o)){if(Xn(o)){let s=[],u=[{nestedArrIndex:-1,value:o}];for(;u.length;){let{nestedArrIndex:l,value:c}=u.pop();if(!!cn(c))if(Zn(c)&&!tc(c)){let d={v:c,i:l,n:this.norm.get(c)};s.push(d)}else Xn(c)&&c.forEach((d,f)=>{u.push({nestedArrIndex:f,value:d})})}r.$[a]=s}else if(!tc(o)){let s={v:o,n:this.norm.get(o)};r.$[a]=s}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}};function Tp(t,n,{getFn:e=Me.getFn,fieldNormWeight:r=Me.fieldNormWeight}={}){let i=new Yo({getFn:e,fieldNormWeight:r});return i.setKeys(t.map(kp)),i.setSources(n),i.create(),i}function rS(t,{getFn:n=Me.getFn,fieldNormWeight:e=Me.fieldNormWeight}={}){let{keys:r,records:i}=t,a=new Yo({getFn:n,fieldNormWeight:e});return a.setKeys(r),a.setIndexRecords(i),a}function Jo(t,{errors:n=0,currentLocation:e=0,expectedLocation:r=0,distance:i=Me.distance,ignoreLocation:a=Me.ignoreLocation}={}){let o=n/t.length;if(a)return o;let s=Math.abs(r-e);return i?o+s/i:s?1:o}function iS(t=[],n=Me.minMatchCharLength){let e=[],r=-1,i=-1,a=0;for(let o=t.length;a=n&&e.push([r,i]),r=-1)}return t[a-1]&&a-r>=n&&e.push([r,a-1]),e}var Lr=32;function aS(t,n,e,{location:r=Me.location,distance:i=Me.distance,threshold:a=Me.threshold,findAllMatches:o=Me.findAllMatches,minMatchCharLength:s=Me.minMatchCharLength,includeMatches:u=Me.includeMatches,ignoreLocation:l=Me.ignoreLocation}={}){if(n.length>Lr)throw new Error(qE(Lr));let c=n.length,d=t.length,f=Math.max(0,Math.min(r,d)),h=a,p=f,g=s>1||u,w=g?Array(d):[],S;for(;(S=t.indexOf(n,p))>-1;){let O=Jo(n,{currentLocation:S,expectedLocation:f,distance:i,ignoreLocation:l});if(h=Math.min(O,h),p=S+c,g){let B=0;for(;B=Q;J-=1){let te=J-1,ce=e[t.charAt(te)];if(g&&(w[te]=+!!ce),ie[J]=(ie[J+1]<<1|1)&ce,O&&(ie[J]|=(T[J+1]|T[J])<<1|1|T[J+1]),ie[J]&N&&(k=Jo(n,{errors:O,currentLocation:te,expectedLocation:f,distance:i,ignoreLocation:l}),k<=h)){if(h=k,p=te,p<=f)break;Q=Math.max(1,2*f-p)}}if(Jo(n,{errors:O+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>h)break;T=ie}let C={isMatch:p>=0,score:Math.max(.001,k)};if(g){let O=iS(w,s);O.length?u&&(C.indices=O):C.isMatch=!1}return C}function oS(t){let n={};for(let e=0,r=t.length;e{this.chunks.push({pattern:f,alphabet:oS(f),startIndex:h})},d=this.pattern.length;if(d>Lr){let f=0,h=d%Lr,p=d-h;for(;f{let{isMatch:S,score:T,indices:k}=aS(n,p,g,{location:i+w,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:u,includeMatches:r,ignoreLocation:l});S&&(f=!0),d+=T,S&&k&&(c=[...c,...k])});let h={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(h.indices=c),h}},er=class{constructor(n){this.pattern=n}static isMultiMatch(n){return Mp(n,this.multiRegex)}static isSingleMatch(n){return Mp(n,this.singleRegex)}search(){}};function Mp(t,n){let e=t.match(n);return e?e[1]:null}var Cp=class extends er{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){let e=n===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},Dp=class extends er{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){let r=n.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}},Ap=class extends er{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){let e=n.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},Ip=class extends er{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){let e=!n.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,n.length-1]}}},Lp=class extends er{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){let e=n.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[n.length-this.pattern.length,n.length-1]}}},Pp=class extends er{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){let e=!n.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,n.length-1]}}},ic=class extends er{constructor(n,{location:e=Me.location,threshold:r=Me.threshold,distance:i=Me.distance,includeMatches:a=Me.includeMatches,findAllMatches:o=Me.findAllMatches,minMatchCharLength:s=Me.minMatchCharLength,isCaseSensitive:u=Me.isCaseSensitive,ignoreLocation:l=Me.ignoreLocation}={}){super(n);this._bitapSearch=new rc(n,{location:e,threshold:r,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(n){return this._bitapSearch.searchIn(n)}},ac=class extends er{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let e=0,r,i=[],a=this.pattern.length;for(;(r=n.indexOf(this.pattern,e))>-1;)e=r+a,i.push([r,e-1]);let o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}},oc=[Cp,ac,Ap,Ip,Pp,Lp,Dp,ic],Op=oc.length,sS=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,lS="|";function cS(t,n={}){return t.split(lS).map(e=>{let r=e.trim().split(sS).filter(a=>a&&!!a.trim()),i=[];for(let a=0,o=r.length;a!!(t[Go.AND]||t[Go.OR]),fS=t=>!!t[cc.PATH],hS=t=>!Xn(t)&&wp(t)&&!uc(t),Fp=t=>({[Go.AND]:Object.keys(t).map(n=>({[n]:t[n]}))});function Rp(t,n,{auto:e=!0}={}){let r=i=>{let a=Object.keys(i),o=fS(i);if(!o&&a.length>1&&!uc(i))return r(Fp(i));if(hS(i)){let u=o?i[cc.PATH]:a[0],l=o?i[cc.PATTERN]:i[u];if(!Zn(l))throw new Error(WE(u));let c={keyId:nc(u),pattern:l};return e&&(c.searcher=lc(l,n)),c}let s={children:[],operator:a[0]};return a.forEach(u=>{let l=i[u];Xn(l)&&l.forEach(c=>{s.children.push(r(c))})}),s};return uc(t)||(t=Fp(t)),r(t)}function pS(t,{ignoreFieldNorm:n=Me.ignoreFieldNorm}){t.forEach(e=>{let r=1;e.matches.forEach(({key:i,norm:a,score:o})=>{let s=i?i.weight:null;r*=Math.pow(o===0&&s?Number.EPSILON:o,(s||1)*(n?1:a))}),e.score=r})}function mS(t,n){let e=t.matches;n.matches=[],!!cn(e)&&e.forEach(r=>{if(!cn(r.indices)||!r.indices.length)return;let{indices:i,value:a}=r,o={indices:i,value:a};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),n.matches.push(o)})}function gS(t,n){n.score=t.score}function vS(t,n,{includeMatches:e=Me.includeMatches,includeScore:r=Me.includeScore}={}){let i=[];return e&&i.push(mS),r&&i.push(gS),t.map(a=>{let{idx:o}=a,s={item:n[o],refIndex:o};return i.length&&i.forEach(u=>{u(a,s)}),s})}var gn=class{constructor(n,e={},r){this.options={...Me,...e},this.options.useExtendedSearch,this._keyStore=new xp(this.options.keys),this.setCollection(n,r)}setCollection(n,e){if(this._docs=n,e&&!(e instanceof Yo))throw new Error(jE);this._myIndex=e||Tp(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(n){!cn(n)||(this._docs.push(n),this._myIndex.add(n))}remove(n=()=>!1){let e=[];for(let r=0,i=this._docs.length;r-1&&(u=u.slice(0,e)),vS(u,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(n){let e=lc(n,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:a,i:o,n:s})=>{if(!cn(a))return;let{isMatch:u,score:l,indices:c}=e.searchIn(a);u&&i.push({item:a,idx:o,matches:[{score:l,value:a,norm:s,indices:c}]})}),i}_searchLogical(n){let e=Rp(n,this.options),r=(s,u,l)=>{if(!s.children){let{keyId:d,searcher:f}=s,h=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(u,d),searcher:f});return h&&h.length?[{idx:l,item:u,matches:h}]:[]}let c=[];for(let d=0,f=s.children.length;d{if(cn(s)){let l=r(e,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(n){let e=lc(n,this.options),{keys:r,records:i}=this._myIndex,a=[];return i.forEach(({$:o,i:s})=>{if(!cn(o))return;let u=[];r.forEach((l,c)=>{u.push(...this._findMatches({key:l,value:o[c],searcher:e}))}),u.length&&a.push({idx:s,item:o,matches:u})}),a}_findMatches({key:n,value:e,searcher:r}){if(!cn(e))return[];let i=[];if(Xn(e))e.forEach(({v:a,i:o,n:s})=>{if(!cn(a))return;let{isMatch:u,score:l,indices:c}=r.searchIn(a);u&&i.push({score:l,key:n,value:a,idx:o,norm:s,indices:c})});else{let{v:a,n:o}=e,{isMatch:s,score:u,indices:l}=r.searchIn(a);s&&i.push({score:u,key:n,value:a,norm:o,indices:l})}return i}};gn.version="6.5.3";gn.createIndex=Tp;gn.parseIndex=rS;gn.config=Me;gn.parseQuery=Rp;dS(Np);var am=me(require("obsidian"));var Hp=me(require("obsidian"));function Qo(t,n,e){let r=e.getSetting("date-format"),i=e.getSetting("link-date-to-daily-note"),a=(0,Hp.moment)(t).format(r),o=i?Oo(e.app,a):`{${a}}`;_t(n.current,o),n.current.focus()}function Bp({div:t,inputRef:n,cb:e,stateManager:r}){t.createEl("input",{type:"text"},i=>{setTimeout(()=>e(Po(i,{now:new Date,locale:Fo(r),inline:!0,onChange:a=>{Qo(a[0],n,r)}})))})}function dc(t,n){let e=n.clientHeight,r=n.clientWidth;t.top+e>window.innerHeight&&(n.style.top=`${(t.clientTop||0)-e}px`),t.left+r>window.innerWidth&&(n.style.left=`${(t.left||0)-r}px`)}function Kp(t){let n=t.getSetting("time-trigger"),e=new RegExp(`\\B${Fn(n)}{?([^}]*)$`),r=Yl(t);return{id:"time",match:e,index:1,search:(i,a)=>{a(i?r.filter(o=>o.startsWith(i)):r)},template:i=>i,replace:i=>`${n}{${i}} `}}function $p(t){let n=t.month(),e=t.clone().startOf("month").weekday(0),r=t.diff(e,"week");t.subtract(1,"month").startOf("month").weekday(6).add(r,"week");let i=t.month();for(;n===i;)t.subtract(1,"week"),i=t.month();return t}function Up(t){let n=t.month(),e=t.clone().startOf("month").weekday(6),r=t.diff(e,"week");t.add(1,"month").startOf("month").weekday(0).add(r,"week");let i=t.month();for(;n===i;)t.add(1,"week"),i=t.month();return t}var zp=me(require("obsidian"));var yS=/\B\[\[([^\]]*)$/,bS=/\B!\[\[([^\]]*)$/,wS=/\B\[\[([^#\]]+)#([^\]]*)$/,ES=/\B!\[\[([^#\]]+)#([^\]]*)$/,SS=/\B\[\[([^#\]]+)#?\^([^\]]*)$/,xS=/\B!\[\[([^#\]]+)#?\^([^\]]*)$/;function kS(t,n,e){let r=createDiv($("file-suggestion-wrapper"));(0,zp.setIcon)(r.createDiv($("file-suggestion-icon")),"forward-arrow",12),r.createDiv({},a=>{a.createDiv({cls:$("file-suggestion-title"),text:e.item.alias}),a.createDiv({cls:$("file-suggestion-subtitle"),text:t.app.metadataCache.fileToLinktext(e.item.file,n)})});let i=r.outerHTML;return r.remove(),r=null,i}function fc(t,n,e,r,i,a){return{id:`link-${a?"embed":"normal"}`,match:a?bS:yS,index:1,template:o=>o.item.alias?kS(r,e,o):r.app.metadataCache.fileToLinktext(o.item.file,e),search:(o,s)=>{s(o?n.search(o):t.slice(0,10).map((u,l)=>({item:u,refIndex:l})))},replace:o=>{let s=[];a&&o.item.file.extension==="md"&&s.push("!"),s.push(r.app.fileManager.generateMarkdownLink(o.item.file,r.file.path,void 0,o.item.alias));let u=!!r.app.vault.getConfig("useMarkdownLinks");return i&&!u?s[s.length-1]=s[s.length-1].slice(0,-2):!i&&!u&&s.push("]] "),s.join("")}}}function _S(t,n,e,r){var u;if(!e)return[];let i=e.split("|"),a=t.metadataCache.getFirstLinkpathDest(i[0],n);if(!a)return[];let o=t.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 r?new gn(s,{keys:["heading"]}).search(r):s.map((l,c)=>({item:l,refIndex:c}))}function hc(t,n,e,r){return{id:`heading-${r?"embed":"normal"}`,match:r?ES:wS,index:1,template:i=>i.item.heading,search:(i,a,o)=>{a(_S(n.app,t,o[1],o[2]))},replace:i=>{let a=[];r&&i.item.file.extension==="md"&&a.push("!"),a.push(n.app.fileManager.generateMarkdownLink(i.item.file,n.file.path,"#"+i.item.heading,i.item.alias));let o=!!n.app.vault.getConfig("useMarkdownLinks");return e&&!o?a[a.length-1]=a[a.length-1].slice(0,-2):!e&&!o&&a.push("]] "),a.join("")}}}var Vp=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 TS(t,n,e,r,i){var u;if(!e)return i([]);let a=e.split("|"),o=t.metadataCache.getFirstLinkpathDest(a[0],n);if(!o)return i([]);let s=t.metadataCache.getFileCache(o);if(!s||!((u=s.sections)==null?void 0:u.length))return i([]);try{let l=await t.metadataCache.blockCache.getForFile(new Vp,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(r?new gn(c,{keys:["searchString","blockId"]}).search(r):c.map((d,f)=>({item:d,refIndex:f})))}catch(l){i([])}}function MS(t){return["blockquote","code","table","comment","footnoteDefinition"].includes(t)}function pc(t,n,e,r){return{id:`block-${r?"embed":"normal"}`,match:r?xS:SS,index:1,template:i=>i.item.blockId?`
${i.item.searchString}
${i.item.blockId}
`:i.item.searchString,search:(i,a,o)=>{TS(n.app,t,o[1],o[2],a)},replace:i=>{let a=[];r&&i.item.file.extension==="md"&&a.push("!");let o="#^";if(i.item.blockId)o+=i.item.blockId;else{let u=Ke(),l=MS(i.item.block.type)?` `:" ";n.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)}`;n.app.vault.modify(i.item.file,d)}).catch(c=>{n.setError(c),console.error(c)}),o+=u}a.push(n.app.fileManager.generateMarkdownLink(i.item.file,n.file.path,o,i.item.alias));let s=!!n.app.vault.getConfig("useMarkdownLinks");return e&&!s?a[a.length-1]=a[a.length-1].slice(0,-2):!e&&!s&&a.push("]] "),a.join("")}}}var CS=/\B#([^\s]*)?$/;function jp(t,n){return{id:"tag",match:CS,index:1,search:(e,r)=>{r(e?n.search(e,{limit:50}):t.slice(0,50).map((i,a)=>({item:i,refIndex:a})))},template:e=>e.item,replace:e=>`${e.item} `}}var qp=me(pa());var IS=/\$&/g,LS=/\$(\d)/g,gc=class{constructor(n,e,r){this.data=n;this.term=e;this.strategy=r}getReplacementData(n){let e=this.strategy.replace(this.data);if(e==null)return null;let r="";Array.isArray(e)&&(r=e[1],e=e[0]);let i=this.strategy.match(n);if(i==null||i.index==null)return null;let a=e.replace(IS,i[0]).replace(LS,(o,s)=>i[parseInt(s)]);return{start:i.index,end:i.index+i[0].length,beforeCursor:a,afterCursor:r}}replace(n,e){let r=this.getReplacementData(n);if(r!==null)return e=r.afterCursor+e,[[n.slice(0,r.start),r.beforeCursor,n.slice(r.end)].join(""),e]}render(){return this.strategy.renderTemplate(this.data,this.term)}getStrategyId(){return this.strategy.getId()}};var PS=1,vc=class{constructor(n){this.props=n;this.cache={}}destroy(){return this.cache={},this}replace(n){return this.props.replace(n)}execute(n,e){var a;let r=this.matchWithContext(n);if(!r)return!1;let i=r[(a=this.props.index)!=null?a:PS];return this.search(i,o=>{e(o.map(s=>new gc(s,i,this)))},r),!0}renderTemplate(n,e){if(this.props.template)return this.props.template(n,e);if(typeof n=="string")return n;throw new Error(`Unexpected render data type: ${typeof n}. Please implement template parameter by yourself`)}getId(){return this.props.id||null}match(n){return typeof this.props.match=="function"?this.props.match(n):n.match(this.props.match)}search(n,e,r){this.props.cache?this.searchWithCach(n,e,r):this.props.search(n,e,r)}matchWithContext(n){let e=this.context(n);return e===!1?null:this.match(e===!0?n:e)}context(n){return this.props.context?this.props.context(n):!0}searchWithCach(n,e,r){this.cache[n]!=null?e(this.cache[n]):this.props.search(n,i=>{this.cache[n]=i,e(i)},r)}};var yc=class extends qp.EventEmitter{constructor(n){super();this.handleQueryResult=n=>{this.emit("hit",{searchResults:n})};this.strategies=n.map(e=>new vc(e))}destroy(){return this.strategies.forEach(n=>n.destroy()),this}run(n){for(let e of this.strategies)if(e.execute(n,this.handleQueryResult))return;this.handleQueryResult([])}};var Yp=me(pa());var OS=typeof window!="undefined"&&!!window.CustomEvent,Rt=(t,n)=>{if(OS)return new CustomEvent(t,n);let e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,(n==null?void 0:n.cancelable)||!1,(n==null?void 0:n.detail)||void 0),e};var NS=10,FS="auto",RS="dropdown-menu textcomplete-dropdown",Jp="textcomplete-item",HS=`${Jp} active`,ma=class extends Yp.EventEmitter{constructor(n,e){super();this.el=n;this.option=e;this.shown=!1;this.items=[];this.activeIndex=null}static create(n){let e=document.createElement("ul");e.className=n.className||RS,Object.assign(e.style,{display:"none",position:"absolute",zIndex:"1000"},n.style);let r=n.parent||document.body;return r==null||r.appendChild(e),new ma(e,n)}render(n,e){let r=Rt("render",{cancelable:!0});return this.emit("render",r),r.defaultPrevented?this:(this.clear(),n.length===0?this.hide():(this.items=n.slice(0,this.option.maxCount||NS).map((i,a)=>{var o;return new Gp(this,a,i,((o=this.option)==null?void 0:o.item)||{})}),this.setStrategyId(n[0]).renderEdge(n,"header").renderItems().renderEdge(n,"footer").show().setOffset(e).activate(0),this.emit("rendered",Rt("rendered")),this))}destroy(){var n;return this.clear(),(n=this.el.parentNode)==null||n.removeChild(this.el),this}select(n){let e={searchResult:n.searchResult},r=Rt("select",{cancelable:!0,detail:e});return this.emit("select",r),r.defaultPrevented?this:(this.hide(),this.emit("selected",Rt("selected",{detail:e})),this)}show(){if(!this.shown){let n=Rt("show",{cancelable:!0});if(this.emit("show",n),n.defaultPrevented)return this;this.el.style.display="block",this.shown=!0,this.emit("shown",Rt("shown"))}return this}hide(){if(this.shown){let n=Rt("hide",{cancelable:!0});if(this.emit("hide",n),n.defaultPrevented)return this;this.el.style.display="none",this.shown=!1,this.clear(),this.emit("hidden",Rt("hidden"))}return this}clear(){return this.items.forEach(n=>n.destroy()),this.items=[],this.el.innerHTML="",this.activeIndex=null,this}up(n){return this.shown?this.moveActiveItem("prev",n):this}down(n){return this.shown?this.moveActiveItem("next",n):this}moveActiveItem(n,e){if(this.activeIndex!=null){let r=n==="next"?this.getNextActiveIndex():this.getPrevActiveIndex();r!=null&&(this.activate(r),e.preventDefault())}return this}activate(n){return this.activeIndex!==n&&(this.activeIndex!=null&&this.items[this.activeIndex].deactivate(),this.activeIndex=n,this.items[n].activate()),this}isShown(){return this.shown}getActiveItem(){return this.activeIndex!=null?this.items[this.activeIndex]:null}setOffset(n){let e=document.documentElement;if(e){let r=this.el.offsetWidth;if(n.left){let o=this.option.dynamicWidth?e.scrollWidth:e.clientWidth;n.left+r>o&&(n.left=o-r),this.el.style.left=`${n.left}px`}else n.right&&(n.right-r<0&&(n.right=0),this.el.style.right=`${n.right}px`);let i=!1,a=this.option.placement||FS;if(a==="auto"){let o=this.el.clientHeight;i=n.clientTop!=null&&n.clientTop+o>e.clientHeight}a==="top"||i?(this.el.style.bottom=`${e.clientHeight-n.top+n.lineHeight}px`,this.el.style.top="auto"):(this.el.style.top=`${n.top}px`,this.el.style.bottom="auto")}return this}getNextActiveIndex(){if(this.activeIndex==null)throw new Error;return this.activeIndexa.data)):r||"",this.el.appendChild(i),this}},Gp=class{constructor(n,e,r,i){this.dropdown=n;this.index=e;this.searchResult=r;this.props=i;this.active=!1;this.onClick=n=>{n.preventDefault(),this.dropdown.select(this)};this.className=this.props.className||Jp,this.activeClassName=this.props.activeClassName||HS;let a=document.createElement("li");a.className=this.active?this.activeClassName:this.className;let o=document.createElement("span");o.tabIndex=-1,o.innerHTML=this.searchResult.render(),a.appendChild(o),a.addEventListener("mousedown",this.onClick),a.addEventListener("touchstart",this.onClick),this.el=a}destroy(){var e;let n=this.el;return(e=n.parentNode)==null||e.removeChild(n),n.removeEventListener("mousedown",this.onClick,!1),n.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}};var Qp=me(pa());var bc=class extends Qp.EventEmitter{destroy(){return this}applySearchResult(n){throw new Error("Not implemented.")}getCursorOffset(){throw new Error("Not implemented.")}getBeforeCursor(){throw new Error("Not implemented.")}emitMoveEvent(n){let e=Rt("move",{cancelable:!0,detail:{code:n}});return this.emit("move",e),e}emitEnterEvent(){let n=Rt("enter",{cancelable:!0});return this.emit("enter",n),n}emitChangeEvent(){let n=Rt("change",{detail:{beforeCursor:this.getBeforeCursor()}});return this.emit("change",n),n}emitEscEvent(){let n=Rt("esc",{cancelable:!0});return this.emit("esc",n),n}getCode(n){return n.keyCode===9||n.keyCode===13?"ENTER":n.keyCode===27?"ESC":n.keyCode===38?"UP":n.keyCode===40||n.keyCode===78&&n.ctrlKey?"DOWN":n.keyCode===80&&n.ctrlKey?"UP":"OTHER"}};var Xp=me(pa());var BS=["show","shown","render","rendered","selected","hidden","hide"],wc=class extends Xp.EventEmitter{constructor(n,e,r){super();this.editor=n;this.isQueryInFlight=!1;this.nextPendingQuery=null;this.handleHit=({searchResults:n})=>{n.length?this.dropdown.render(n,this.editor.getCursorOffset()):this.dropdown.hide(),this.isQueryInFlight=!1,this.nextPendingQuery!==null&&this.trigger(this.nextPendingQuery)};this.handleMove=n=>{n.detail.code==="UP"?this.dropdown.up(n):this.dropdown.down(n)};this.handleEnter=n=>{let e=this.dropdown.getActiveItem();e?(this.dropdown.select(e),n.preventDefault()):this.dropdown.hide()};this.handleEsc=n=>{this.dropdown.isShown()&&(this.dropdown.hide(),n.preventDefault())};this.handleChange=n=>{n.detail.beforeCursor!=null?this.trigger(n.detail.beforeCursor):this.dropdown.hide()};this.handleSelect=n=>{this.emit("select",n),n.defaultPrevented||this.editor.applySearchResult(n.detail.searchResult)};this.handleResize=()=>{this.dropdown.isShown()&&this.dropdown.setOffset(this.editor.getCursorOffset())};this.completer=new yc(e),this.dropdown=ma.create((r==null?void 0:r.dropdown)||{}),this.startListening()}destroy(n=!0){return this.completer.destroy(),this.dropdown.destroy(),n&&this.editor.destroy(),this.stopListening(),this}isShown(){return this.dropdown.isShown()}hide(){return this.dropdown.hide(),this}trigger(n){return this.isQueryInFlight?this.nextPendingQuery=n:(this.isQueryInFlight=!0,this.nextPendingQuery=null,this.completer.run(n)),this}startListening(){var n;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 e of BS)this.dropdown.on(e,r=>this.emit(e,r));this.completer.on("hit",this.handleHit),(n=this.dropdown.el.ownerDocument.defaultView)==null||n.addEventListener("resize",this.handleResize)}stopListening(){var n;(n=this.dropdown.el.ownerDocument.defaultView)==null||n.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)}};var im=me(Zp());function em(t,n,e){let r=t.value,i=n+(e||""),a=document.activeElement,o=0,s=0;for(;o=0&&i.length-s-1>=0&&r[r.length-s-1]===i[i.length-s-1];)s++;o=Math.min(o,Math.min(r.length,i.length)-s),t.setSelectionRange(o,r.length-s);let u=i.substring(o,i.length-s);if(t.focus(),!document.execCommand("insertText",!1,u)){t.value=i;let l=document.createEvent("Event");l.initEvent("input",!0,!0),t.dispatchEvent(l)}return t.setSelectionRange(n.length,n.length),a.focus(),t}var tm=t=>{let n=t.getBoundingClientRect(),e=t.ownerDocument;if(e==null)throw new Error("Given element does not belong to document");let{defaultView:r,documentElement:i}=e;if(r==null)throw new Error("Given element does not belong to window");let a={top:n.top+r.pageYOffset,left:n.left+r.pageXOffset};return i&&(a.top-=i.clientTop,a.left-=i.clientLeft),a};var KS="0".charCodeAt(0),$S="9".charCodeAt(0),nm=t=>KS<=t&&t<=$S,rm=t=>{let n=getComputedStyle(t),e=n.lineHeight;if(nm(e.charCodeAt(0))){let r=parseFloat(e);return nm(e.charCodeAt(e.length-1))?r*parseFloat(n.fontSize):r}return US(t.nodeName,n)},US=(t,n)=>{let e=document.body;if(!e)return 0;let r=document.createElement(t);r.innerHTML=" ",Object.assign(r.style,{fontSize:n.fontSize,fontFamily:n.fontFamily,padding:"0"}),e.appendChild(r),r instanceof HTMLTextAreaElement&&(r.rows=1);let i=r.offsetHeight;return e.removeChild(r),i};var es=class extends bc{constructor(n){super();this.el=n;this.onInput=()=>{this.emitChangeEvent()};this.onKeydown=n=>{let e=this.getCode(n),r;e==="UP"||e==="DOWN"?r=this.emitMoveEvent(e):e==="ENTER"?r=this.emitEnterEvent():e==="ESC"&&(r=this.emitEscEvent()),r&&r.defaultPrevented&&n.preventDefault()};this.startListening()}destroy(){return super.destroy(),this.stopListening(),this}applySearchResult(n){let e=this.getBeforeCursor();if(e!=null){let r=n.replace(e,this.getAfterCursor());this.el.focus(),Array.isArray(r)&&(em(this.el,r[0],r[1]),this.el&&this.el.dispatchEvent(Rt("input")))}}getCursorOffset(){let n=tm(this.el),e=this.getElScroll(),r=this.getCursorPosition(),i=rm(this.el),a=n.top-e.top+r.top+i,o=n.left-e.left+r.left,s=this.el.getBoundingClientRect().top;if(this.el.dir!=="rtl")return{top:a,left:o,lineHeight:i,clientTop:s};{let u=document.documentElement?document.documentElement.clientWidth-o:0;return{top:a,right:u,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(0,im.default)(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 zS({inputRef:t,isAutocompleteVisibleRef:n,obsidianContext:e,excludeDatePicker:r}){let{stateManager:i,filePath:a,view:o}=e,s=null,u=null,l=i.getSetting("date-trigger"),c=new RegExp(`(?:^|\\s)${Fn(l)}$`),d=Object.keys(i.app.metadataCache.getTags()).sort(),f=new gn(d),h=i.app.metadataCache.getLinkSuggestions().filter(N=>!!N.file),p=new gn(h,{keys:["file.basename","alias"]}),g=o.app.vault.getConfig("autoPairBrackets"),w=[jp(d,f),pc(a,i,g,!0),pc(a,i,g,!1),hc(a,i,g,!0),hc(a,i,g,!1),fc(h,p,a,i,g,!0),fc(h,p,a,i,g,!1)];r||w.push(Kp(i));let S=new es(t.current),T=new wc(S,w,{dropdown:{maxCount:96,className:`${$("autocomplete")} ${$("ignore-click-outside")}`,rotate:!0,item:{className:`${$("autocomplete-item")} ${$("ignore-click-outside")}`,activeClassName:`${$("autocomplete-item-active")} ${$("ignore-click-outside")}`}}}),k=()=>{T.isShown()||(n.current=!1),u.destroy(),s.remove(),setTimeout(()=>s=null)};T.on("show",()=>{n.current=!0}),T.on("hidden",()=>{n.current=!1});let D;return r||(D=N=>{if(T.isShown&&["#","^"].contains(N.key)){let O=T.dropdown.getActiveItem(),B=O==null?void 0:O.searchResult;if(B&&B.strategy.props.id.startsWith("link")){N.preventDefault(),S.applySearchResult(B),_t(t.current,N.key==="^"?"#^":"#");return}}if(!s)return;if(N.key==="Enter"){N.preventDefault();let O=u.selectedDates;return O.length?Qo(O[0],t,i):Qo(new Date,t,i),k()}if(N.key==="Escape")return N.preventDefault(),k();let C=(0,am.moment)(u.selectedDates[0]||new Date);if(N.key==="ArrowRight"){N.preventDefault(),C.weekday()===6?u.setDate(Up(C).toDate(),!1):u.setDate(C.add(1,"day").toDate(),!1);return}if(N.key==="ArrowLeft"){N.preventDefault(),C.weekday()===0?u.setDate($p(C).toDate(),!1):u.setDate(C.subtract(1,"day").toDate(),!1);return}if(N.key==="ArrowUp"){N.preventDefault(),u.setDate(C.subtract(1,"week").toDate(),!1);return}if(N.key==="ArrowDown"){N.preventDefault(),u.setDate(C.add(1,"week").toDate(),!1);return}},t.current.addEventListener("keydown",D),S.on("change",N=>{let C=N.detail.beforeCursor;if(C&&c.test(C)){let O=S.getCursorOffset();s?(s.style.left=`${O.left||0}px`,s.style.top=`${O.top||0}px`,dc(O,s)):s=document.body.createDiv({cls:`${$("date-picker")} ${$("ignore-click-outside")}`},B=>{B.style.left=`${O.left||0}px`,B.style.top=`${O.top||0}px`,Bp({div:B,inputRef:t,stateManager:i,cb:z=>{u=z,n.current=!0,dc(O,s)}})})}else s&&k()})),()=>{!r&&t.current&&t.current.removeEventListener("keydown",D),s&&k(),T.destroy(),S.destroy()}}function om({isInputVisible:t,onEnter:n,onEscape:e,onKeyDown:r,excludeDatePicker:i}){let a=v.useContext(We),o=v.useRef(!1),s=v.useRef(),{oncompositionstart:u,oncompositionend:l,getShouldIMEBlockAction:c}=Ga();return v.useEffect(()=>{let d=s.current;if(t&&d)return d.focus(),d.selectionStart=d.selectionEnd=d.value.length,zS({inputRef:s,isAutocompleteVisibleRef:o,obsidianContext:a,excludeDatePicker:i})},[t]),{ref:s,oncompositionstart:u,oncompositionend:l,onKeyDownCapture:d=>{c()||o.current||r(d)||(d.key==="Enter"?n&&n(d):d.key==="Escape"&&e&&e(d))}}}var sm=/^[*_]{2}(.+)[*_]{2}$/;function VS(t){return t.replace(sm,"$1")}var lm=/^[*_]{1}(.+)[*_]{1}$/;function jS(t){return t.replace(lm,"$1")}var cm=/^`{1}(.+)`{1}$/;function WS(t){return t.replace(cm,"$1")}var um=/^={2}(.+)={2}$/;function qS(t){return t.replace(um,"$1")}var dm=/^~{2}(.+)~{2}$/;function YS(t){return t.replace(dm,"$1")}var JS=/^(?:>.+?(?:[\r\n]|$))+$/;function GS(t){return t.split(` `).map(e=>e[0]===">"?e:`> ${e}`).join(` `)}function QS(t){return t.split(` `).map(e=>e[0]!==">"?e:e.replace(/^>+\s*/,"")).join(` `)}var ga=/^(?:\s*\d+[.)]\s+.+?(?:[\r\n]|$))+$/,Ec=/^(?:\s*\d+[.)]\s+\[\s+\]+.+?(?:[\r\n]|$))+$/,Sc=/^(?:\s*\d+[.)]\s+\[[^\]\s]+\]+.+?(?:[\r\n]|$))+$/;function XS(t){return t.match(/^\s*/)[0].length}function ZS(t){return parseInt(t.match(/^\s*(\d+)/)[1],10)}function ex(t){let n=[0],e=0;return t.split(` `).map(r=>{let i=XS(r);if(i>e?n.push(0):iga.test(n)?n.replace(/^(\s*)\d+[.)]\s+/,"$1"):n).join(` `)}var va=/^(?:\s*[-*+]\s+.+?(?:[\r\n]|$))+$/,xc=/^(?:\s*[-*+]\s+\[\s+\]+.+?(?:[\r\n]|$))+$/,kc=/^(?:\s*[-*+]\s+\[[^\]\s]+\]+.+?(?:[\r\n]|$))+$/;function fm(t){return t.split(` `).map(e=>va.test(e)?e:e.replace(/^(\s*)/,"$1- ")).join(` `)}function nx(t){return t.split(` `).map(n=>xc.test(n)||kc.test(n)?n:n.replace(/^(\s*[-*+]\s+)/,"$1[ ] ")).join(` `)}function rx(t){return t.split(` `).map(n=>Ec.test(n)||Sc.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)/,"$1[ ] ")).join(` `)}function ix(t){return t.split(` `).map(n=>xc.test(n)?n:n.replace(/^(\s*[-*+]\s+)\[[^\]]\]/,"$1[ ]")).join(` `)}function ax(t){return t.split(` `).map(n=>Ec.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)\[[^\]]{1}\]/,"$1[ ]")).join(` `)}function ox(t){return t.split(` `).map(n=>kc.test(n)?n:n.replace(/^(\s*[-*+]\s+)\[\s\]/,"$1[x]")).join(` `)}function sx(t){return t.split(` `).map(n=>Sc.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)\[\s\]/,"$1[x]")).join(` `)}function lx(t){return t.split(` `).map(e=>va.test(e)?e.replace(/^(\s*)[-+*]\s+/,"$1"):e).join(` `)}var hm={"editor:toggle-bold":t=>{yi(t,sm,VS,"**")},"editor:toggle-code":t=>{yi(t,cm,WS,"`")},"editor:toggle-italics":t=>{yi(t,lm,jS,"*")},"editor:toggle-highlight":t=>{yi(t,um,qS,"==")},"editor:toggle-strikethrough":t=>{yi(t,dm,YS,"~~")},"editor:toggle-blockquote":t=>{jo(t,JS,GS,QS)},"editor:toggle-bullet-list":t=>{jo(t,va,fm,lx)},"editor:toggle-numbered-list":t=>{jo(t,ga,ex,tx)},"editor:toggle-checklist-status":t=>{let n=Kn(t),e=vi({text:n.text,selection:n.selection}),r=Nt(t,e),i=r.selectedText,a=va.test(i),o=ga.test(i);!a&&!o?i=fm(i):a?xc.test(i)?i=ox(i):kc.test(i)?i=ix(i):i=nx(i):Ec.test(i)?i=sx(i):Sc.test(i)?i=ax(i):i=rx(i);let s=_t(t,i);Nt(t,{start:r.selection.start,end:s.selection.end})}},_c={"(":t=>ln(t,"(",")",!1),"[":t=>ln(t,"[","]",!1,!0),"{":t=>ln(t,"{","}",!1),"'":t=>ln(t,"'","'",!1),'"':t=>ln(t,'"','"',!1)},Tc={"*":t=>ln(t,"*","*",!1),_:t=>ln(t,"_","_",!1),"`":t=>ln(t,"`","`",!1),"=":t=>ln(t,"=","=",!0),"~":t=>ln(t,"~","~",!0),$:t=>ln(t,"$","$",!0),"%":t=>ln(t,"%","%",!0)},cx={"(":")","[":"]","{":"}","'":"'",'"':'"',"*":"*",_:"_","`":"`","=":"=","~":"~",$:"$","%":"%"};function pm(t,n){let e=Kn(t);if(e.selection.end!==e.selection.start||e.selection.end===e.text.length)return!1;let r=e.text[e.selection.end-1],i=e.text[e.selection.end];if(n[r]&&i===cx[r])return Nt(t,{start:e.selection.end,end:e.selection.end+1}),_t(t,""),!0}function mm(t){return pm(t,_c)}function gm(t){return pm(t,Tc)}function ux(t,n,e){let r=n?" ":" ".repeat(e);return t.split(` `).map(i=>r+i).join(` `)}function dx(t,n,e){let r=n?"\\t":" ".repeat(e),i=new RegExp(`^${r}`);return t.split(` `).map(a=>i.test(a)?a.replace(i,""):a).join(` `)}function vm(t,n,e,r){let i=Kn(t);if(n){let l=vi(i),c=Nt(t,l);if(_t(t,dx(c.selectedText,e,r)),i.selection.start===i.selection.end){let d=e?1:r;Nt(t,{start:i.selection.start-d,end:i.selection.end-d})}return!0}let a=vi(i),o=Nt(t,a),u=ux(o.selectedText,e,r).replace(/^(\s*)(\d+)([.)]\s)/,(l,c,d,f)=>`${c}1${f}`);return _t(t,u),!0}function ym(t){let n=Kn(t);if(n.selection.start!==n.selection.end)return!1;let e=vi(n),r=t.value.slice(e.start,n.selection.end),i=t.value.slice(e.start,e.end);if(/^(\s*[-*+]\s+(?:\[[^\]]\]\s*)?)$/.test(i))return Nt(t,{start:e.start-1,end:e.end}),_t(t,` `),!0;if(/^(\s*\d[.)]\s+(?:\[[^\]]\]\s*)?)$/.test(i))return Nt(t,{start:e.start-1,end:e.end}),_t(t,` `),!0;if(va.test(r)){let a=r.match(/^(\s*[-*+]\s+(?:\[[^\]]\]\s*)?)/)[1];return fa(t,` ${a.replace(/^(\s*[-*+]\s+)\[[^\]]\]/,"$1[ ]")}`),!0}if(ga.test(r)){let s=r.match(/^(\s*\d+[.)]\s+(?:\[[^\]]\]\s*)?)/)[1].replace(/^(\s*\d+[.)]\s+)\[[^\]]\]/,"$1[ ]").replace(/^(\s*)(\d+)/,(u,l,c)=>`${l}${parseInt(c)+1}`);return fa(t,` ${s}`),!0}return!1}var bm={};var wm={};var Em={};var Sm={"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"};var Mc={"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 lanes.":"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.","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","Lane width":"Lane width","Enter a number to set the lane width in pixels.":"Enter a number to set the lane 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","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","Unable to find":"Unable to find","Open in default app":"Open in default app",Submit:"Submit"};var xm={};var km={};var _m={};var Tm={};var Mm={"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"};var Cm={"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"};var Dm={};var Am={};var Im={};var Lm={};var Pm={};var Om={"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"};var Nm={};var Fm={};var Rm={};var ts={};var Hm={"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","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","Unable to find":"\u65E0\u6CD5\u627E\u5230","Open in default app":"\u5728\u9ED8\u8BA4\u5E94\u7528\u4E2D\u6253\u5F00"};var Bm={};var fx={ar:bm,cz:wm,da:Em,de:Sm,en:Mc,es:xm,fr:km,hi:_m,id:Tm,it:Mm,ja:Cm,ko:Dm,nl:Am,no:Im,pl:Lm,"pt-BR":Om,pt:Pm,ro:Nm,ru:Fm,sq:Rm,tr:ts,uk:ts,"zh-TW":Bm,zh:Hm},Km=window.localStorage.getItem("language"),Cc=fx[Km||"en"];function F(t){return Cc||console.error("Error: kanban locale not found",Km),Cc&&Cc[t]||Mc[t]}function tr(t,n){return Dc.Platform.isMobile?!0:n.getSetting("new-line-trigger")==="enter"?t.key==="Enter"&&!(t.shiftKey||t.metaKey||t.ctrlKey):t.key==="Enter"&&t.shiftKey}var gr=v.forwardRef(function({onEnter:n,onEscape:e,onSubmit:r,...i},a){let{view:o,stateManager:s}=v.useContext(We),u=v.useMemo(()=>o.app.vault.getConfig("autoPairMarkdown"),[o]),l=v.useMemo(()=>o.app.vault.getConfig("autoPairBrackets"),[o]),c=v.useMemo(()=>o.app.vault.getConfig("useTab"),[o]),d=v.useMemo(()=>o.app.vault.getConfig("tabSize"),[o]),f=!!o.app.vault.getConfig("useMarkdownLinks"),h=om({isInputVisible:!0,onEnter:n,onEscape:e,onKeyDown:p=>{if(p.key==="Backspace"){let g=mm(p.target);return g||gm(p.target)}if(tr(p,s)){let g=ym(p.target);if(g)return p.preventDefault(),g}if(p.key==="Tab")return p.preventDefault(),vm(p.target,p.shiftKey,c,d);if(u){let g=Tc[p.key];if(g&&g(p.target))return p.preventDefault(),!0}if(l){if(f&&p.key==="[")return!1;let g=_c[p.key];if(g&&g(p.target))return p.preventDefault(),!0}return!1}});return v.useEffect(()=>{let p=g=>{let w=hm[g];w&&w(h.ref.current)};return o.emitter.on("hotkey",p),()=>{o.emitter.off("hotkey",p)}},[o]),v.createElement(v.Fragment,null,v.createElement("div",{"data-replicated-value":i.value,className:$("grow-wrap")},v.createElement("textarea",{"data-ignore-drag":!0,rows:1,className:$("item-input"),...i,...h,ref:p=>{h.ref.current=p,a&&typeof a=="function"?a(p):a&&(a.current=p)}})),Dc.Platform.isMobile&&v.createElement("button",{onPointerDown:r,className:$("item-submit-button")},F("Submit")))});var Lc=me($m());var vr=me(require("obsidian"));var hx=["bmp","png","jpg","jpeg","gif","svg"],px=["mp3","wav","m4a","3gp","flac","ogg","oga"],mx=["mp4","webm","ogv"],gx=/\u00A0/g,vx=/[!"#$%&()*+,.:;<=>?@^`{|}~/[\]\\]/g;function Um(t){return t.replace(vx," ").replace(/\s+/g," ").trim()}function Pr(t){let e=t.replace(gx," ").normalize("NFC").split(/\|(.*)/),r=e[0].split(/#(.*)/);return{root:r[0],subpath:r[1]?"#"+r[1]:"",alias:e[1]||""}}function yx(t,n){if(!t||!n)return null;let e=n.split("#").filter(l=>!!l);if(!e||e.length===0)return null;if(e.length===1){let l=e[0];if(l.startsWith("^")){let c=l.slice(1).toLowerCase(),d=t.blocks;if(d&&d[c]){let f=d[c];return{type:"block",block:f,start:f.position.start.offset,end:f.position.end.offset}}else return null}}let r=t.headings;if(!r||r.length===0)return null;let i=0,a=0,o=0,s=null,u=null;for(;ao&&Um(l.heading).toLowerCase()===Um(e[i]).toLowerCase()&&(i++,o=l.level,i===e.length&&(s=l))}return s?{type:"heading",current:s,next:u,start:s.position.start.offset,end:u?u.position.start.offset:null}:null}function bx(t){t.querySelectorAll(".task-list-item-checkbox").forEach((e,r)=>{e.dataset.checkboxIndex=r.toString()})}function wx(t,n){t.querySelectorAll(".internal-link").forEach(r=>{let i=Pr(r.getAttr("href"));n.app.metadataCache.getFirstLinkpathDest(i.root,n.file.path)||r.addClass("is-unresolved")})}function Ex(t,n,e){t.empty(),t.createEl("img",{attr:{src:e.app.vault.getResourcePath(n)}},r=>{t.hasAttribute("width")&&r.setAttribute("width",t.getAttribute("width")),t.hasAttribute("height")&&r.setAttribute("height",t.getAttribute("height")),t.hasAttribute("alt")&&r.setAttribute("alt",t.getAttribute("alt"))}),t.addClasses(["image-embed","is-loaded"])}function zm(t,n,e){t.empty(),t.createEl("audio",{attr:{controls:"",src:e.app.vault.getResourcePath(n)}}),t.addClasses(["media-embed","is-loaded"])}function Sx(t,n,e){t.empty(),t.createEl("video",{attr:{controls:"",src:e.app.vault.getResourcePath(n)}},r=>{let i=()=>{r.removeEventListener("loadedmetadata",i),r.videoWidth===0&&r.videoHeight===0&&(t.empty(),zm(t,n,e))};r.addEventListener("loadedmetadata",i)}),t.addClasses(["media-embed","is-loaded"])}async function Vm(t,n,e){let r=e.app.metadataCache.getFileCache(t);if(!r)return null;let i=await e.app.vault.cachedRead(t);if(!n.subpath)return i;let a=yx(r,n.subpath);if(a)return i.substring(a.start,a.end===null?void 0:a.end);if(n.subpath)return`${F("Unable to find")} ${n.root}${n.subpath}`}function jm(t,n,e,r){setTimeout(async()=>{if(e.plugin.viewMap.has(e.id)){let i=await Vm(t,n,e);if(!i)return;i.startsWith(F("Unable to find"))?r>0&&jm(t,n,e,--r):e.plugin.stateManagers.forEach(a=>{a.onFileMetadataChange()})}},2e3)}async function xx(t,n,e,r,i){let a=await Vm(n,e,r);if(!a)return;t.empty();let o=t.createDiv();o.addClasses(["markdown-preview-view",$("markdown-preview-view")]),o.createDiv($("embed-link-wrapper"),s=>{s.createEl("a",{href:t.getAttr("src")||n.basename,cls:`internal-link ${$("embed-link")}`},u=>{(0,vr.setIcon)(u,"link"),u.setAttr("aria-label",n.basename)})}),await vr.MarkdownRenderer.renderMarkdown(a,o.createDiv(),n.path,r),t.addClass("is-loaded"),a.startsWith(F("Unable to find"))&&e.subpath&&e.subpath!=="#"&&jm(n,e,r,4),i>0&&await Wm(o,r,--i)}function kx(t,n){t.addClass("is-loaded"),t.empty(),t.createEl("a",{cls:"file-link",href:t.getAttribute("src"),text:n.name},e=>{e.setAttribute("aria-label",F("Open in default app")),e.createSpan({},r=>(0,vr.setIcon)(r,"open-elsewhere-glyph"))})}function Wm(t,n,e){return Promise.all(t.findAll(".internal-embed").map(async r=>{let i=r.getAttribute("src"),a=Pr(i),o=typeof i=="string"&&n.app.metadataCache.getFirstLinkpathDest(a.root,n.file.path);if(o instanceof vr.TFile)return hx.contains(o.extension)?Ex(r,o,n):px.contains(o.extension)?zm(r,o,n):mx.contains(o.extension)?Sx(r,o,n):o.extension==="md"?await xx(r,o,a,n,e):kx(r,o)}))}async function ya(t,n){let e=createDiv();try{await vr.MarkdownRenderer.renderMarkdown(n,e,t.file.path,t),await Wm(e,t,5),bx(e),wx(e,t)}catch(r){console.error(r)}return e}function Pc(t,n){!n||!t||(t&&!t.firstChild?t.appendChild(n):t.firstChild&&t.firstChild!==n&&t.replaceChild(n,t.firstChild))}var ba=v.memo(function({className:n,markdownString:e,searchQuery:r,...i}){let{stateManager:a}=v.useContext(We),o=v.useRef(),s=v.useRef(),u=v.useRef();return v.useEffect(()=>{ya(a.getAView(),e).then(l=>{s.current=l,u.current=new Lc.default(l),o.current&&Pc(o.current,l)}).catch(l=>{a.setError(l),console.error(l)})},[a,e]),v.useEffect(()=>{var l,c;(l=u.current)==null||l.unmark(),r&&r.trim()&&((c=u.current)==null||c.mark(r))},[r]),v.createElement("div",{ref:l=>{o.current=l,Pc(l,s.current)},className:wt(["markdown-preview-view",$("markdown-preview-view"),n]),...i})}),qm=v.memo(function({dom:n,className:e,searchQuery:r,...i}){let{stateManager:a}=v.useContext(We),o=v.useMemo(()=>n.cloneNode(!0),[n,a]),s=v.useMemo(()=>new Lc.default(o),[o]);return v.useEffect(()=>{s.unmark(),r&&r.trim()&&s.mark(r)},[s,r]),v.createElement("div",{ref:u=>{Pc(u,o)},className:wt(["markdown-preview-view",$("markdown-preview-view"),e]),...i})});var wa=me(require("obsidian"));function _x(t,n){if(n)return n.from((0,wa.moment)());let e=(0,wa.moment)().startOf("day");if(e.isSame(t,"day"))return F("today");let r=t.diff(e,"day");return r===-1?F("yesterday"):r===1?F("tomorrow"):t.from(e)}function Ym({item:t,stateManager:n}){if(!n.useSetting("show-relative-date")||!t.data.metadata.date)return null;let r=_x(t.data.metadata.date,t.data.metadata.time);return v.createElement("span",{className:$("item-metadata-date-relative")},r)}function Jm({item:t,stateManager:n,filePath:e,onEditDate:r,onEditTime:i}){let a=n.useSetting("hide-date-display"),o=n.useSetting("date-format"),s=n.useSetting("time-format"),u=n.useSetting("date-display-format"),l=n.useSetting("link-date-to-daily-note");if(a||!t.data.metadata.date)return null;let c=t.data.metadata.date.format(o);if(!c)return null;let d=!!t.data.metadata.time,f=t.data.metadata.date.format(u),h=d?t.data.metadata.time.format(s):null,p=c?(0,wa.getLinkpath)(c):null,g=c?n.app.metadataCache.getFirstLinkpathDest(p,e):null,w=p&&l?v.createElement("a",{href:p,"data-href":p,className:`internal-link ${g?"":"is-unresolved"}`,target:"blank",rel:"noopener"},f):f,S={};return l||(S["aria-label"]=F("Change date"),S.onClick=r),v.createElement("span",{className:$("item-metadata-date-wrapper")},v.createElement("span",{...S,className:`${$("item-metadata-date")} ${l?"":"is-button"}`},w)," ",d&&v.createElement("span",{onClick:i,className:`${$("item-metadata-time")} is-button`,"aria-label":F("Change time")},h))}function Tx(t){let{stateManager:n,boardModifiers:e}=v.useContext(We),r=Wn();return v.useMemo(()=>({onEditDate:o=>{var s;Ro(n,{x:o.clientX,y:o.clientY},Ho({stateManager:n,boardModifiers:e,item:t,hasDate:!0,path:r}),(s=t.data.metadata.date)==null?void 0:s.toDate())},onEditTime:o=>{Bo(n,{x:o.clientX,y:o.clientY},Ko({stateManager:n,boardModifiers:e,item:t,hasTime:!0,path:r}),t.data.metadata.time)}}),[e,r,t,n])}function Mx(t,n){let e=0;return t.replace(/^(\s*[-+*]\s+?\[)([^\]])(\]\s+)/gm,(r,i,a,o)=>{let s=r;return e===n&&(a===" "?s=`${i}x${o}`:s=`${i} ${o}`),e++,s})}var Gm=v.memo(function({item:n,isEditing:e,setIsEditing:r,searchQuery:i}){var T;let[a,o]=v.useState(n.data.titleRaw),{stateManager:s,filePath:u,boardModifiers:l}=v.useContext(We),c=s.useSetting("hide-tags-display"),d=Wn(),{onEditDate:f,onEditTime:h}=Tx(n);v.useEffect(()=>{e&&o(n.data.titleRaw)},[e]);let p=v.useCallback(k=>{if(!tr(k,s))return k.preventDefault(),s.updateItemContent(n,a).then(D=>{l.updateItem(d,D)}).catch(D=>{s.setError(D),console.error(D)}),r(!1),!0},[s,a,n,d]),g=v.useCallback(()=>{s.updateItemContent(n,a).then(k=>{l.updateItem(d,k)}).catch(k=>{s.setError(k),console.error(k)}),r(!1)},[s,a,n,d]),w=v.useCallback(()=>(r(!1),o(n.data.titleRaw),!0),[n]),S=v.useCallback(k=>{let D=k.target;if(D.hasClass("task-list-item-checkbox")){let N=parseInt(D.dataset.checkboxIndex,10);s.updateItemContent(n,Mx(n.data.titleRaw,N)).then(C=>{l.updateItem(d,C)}).catch(C=>{s.setError(C),console.error(C)})}},[d,l,s,n]);return e?v.createElement("div",{className:$("item-input-wrapper")},v.createElement(gr,{className:$("item-input"),onChange:k=>o(k.target.value),onEnter:p,onEscape:w,onSubmit:g,value:a,onPaste:k=>{qo(k,s)}})):v.createElement("div",{className:$("item-title")},v.createElement(qm,{className:$("item-markdown"),dom:n.data.dom,searchQuery:i,onClick:S}),v.createElement("div",{className:$("item-metadata")},v.createElement(Ym,{item:n,stateManager:s}),v.createElement(Jm,{item:n,stateManager:s,filePath:u,onEditDate:f,onEditTime:h}),!c&&!!((T=n.data.metadata.tags)==null?void 0:T.length)&&v.createElement("div",{className:$("item-tags")},n.data.metadata.tags.map((k,D)=>v.createElement("a",{href:k,key:D,className:`tag ${$("item-tag")} ${k.toLocaleLowerCase().contains(i)?"is-search-match":""}`},v.createElement("span",null,k[0]),k.slice(1))))))});var ns=me(require("obsidian"));var Cx=/[\\/:"*?<>|]+/g,Dx=/!?\[\[([^\]]*)\.[^\]]+\]\]/g,Ax=/!?\[\[([^\]]*)\]\]/g,Ix=/!?\[([^\]]*)\]\([^)]*\)/g;function Qm({setIsEditing:t,item:n,path:e,boardModifiers:r,stateManager:i}){return v.useCallback((a,o)=>{if(o)i.app.workspace.onLinkContextMenu(a,(0,ns.getLinkpath)(o),i.file.path);else{let s={x:a.clientX,y:a.clientY},u=!!n.data.metadata.date,l=!!n.data.metadata.time,c=new ns.Menu(i.app).addItem(d=>{d.setIcon("pencil").setTitle(F("Edit card")).onClick(()=>t(!0))});c.addItem(d=>{d.setIcon("create-new").setTitle(F("New note from card")).onClick(async()=>{let f=n.data.title.split(` `)[0].trim(),h=f.replace(Dx,"$1").replace(Ax,"$1").replace(Ix,"$1").replace(Cx," ").trim(),p=i.getSetting("new-note-folder"),g=i.getSetting("new-note-template"),w=p?i.app.vault.getAbstractFileByPath(p):i.app.fileManager.getNewFileParent(i.file.path),S=await i.app.fileManager.createNewMarkdownFile(w,h),T=i.app.workspace.splitActiveLeaf();await T.openFile(S),i.app.workspace.setActiveLeaf(T,!1,!0),await Kd(i,g);let k=n.data.titleRaw.replace(f,i.app.fileManager.generateMarkdownLink(S,i.file.path));i.updateItemContent(n,k).then(D=>{r.updateItem(e,D)}).catch(D=>{i.setError(D),console.error(D)})})}).addItem(d=>{d.setIcon("links-coming-in").setTitle(F("Copy link to card")).onClick(()=>{if(n.data.blockId)navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+n.data.blockId)}`);else{let f=Ke(6);navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+f)}`),i.updateItemContent(n,`${n.data.titleRaw} ^${f}`).then(h=>{r.updateItem(e,h)}).catch(h=>{i.setError(h),console.error(h)})}})}).addSeparator(),/\n/.test(n.data.titleRaw)&&c.addItem(d=>{d.setIcon("split").setTitle(F("Split card")).onClick(async()=>{let f=n.data.titleRaw.split(/[\r\n]+/g).map(p=>p.trim()),h=await Promise.all(f.map(p=>i.getNewItem(p)));r.splitItem(e,h)})}),c.addItem(d=>{d.setIcon("documents").setTitle(F("Duplicate card")).onClick(()=>r.duplicateEntity(e))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(F("Insert card before")).onClick(async()=>r.insertItems(e,[await i.getNewItem("",!1,!0)]))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(F("Insert card after")).onClick(async()=>{let f=[...e];f[f.length-1]=f[f.length-1]+1,r.insertItems(f,[await i.getNewItem("",!1,!0)])})}).addItem(d=>{d.setIcon("sheets-in-box").setTitle(F("Archive card")).onClick(()=>r.archiveItem(e))}).addItem(d=>{d.setIcon("trash").setTitle(F("Delete card")).onClick(()=>r.deleteEntity(e))}).addSeparator().addItem(d=>{d.setIcon("calendar-with-checkmark").setTitle(u?F("Edit date"):F("Add date")).onClick(()=>{var f;Ro(i,s,Ho({stateManager:i,boardModifiers:r,item:n,hasDate:u,path:e}),(f=n.data.metadata.date)==null?void 0:f.toDate())})}),u&&(c.addItem(d=>{d.setIcon("cross").setTitle(F("Remove date")).onClick(()=>{let f=i.getSetting("link-date-to-daily-note"),h=i.getSetting("date-trigger"),p=f?"(?:\\[[^\\]]+\\]\\([^\\)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",g=new RegExp(`(^|\\s)${Fn(h)}${p}`),w=n.data.titleRaw.replace(g,"").trim();i.updateItemContent(n,w).then(S=>{r.updateItem(e,S)}).catch(S=>{i.setError(S),console.error(S)})})}),c.addItem(d=>{d.setIcon("clock").setTitle(l?F("Edit time"):F("Add time")).onClick(()=>{Bo(i,s,Ko({stateManager:i,boardModifiers:r,item:n,hasTime:l,path:e}),n.data.metadata.time)})}),l&&c.addItem(d=>{d.setIcon("cross").setTitle(F("Remove time")).onClick(()=>{let f=i.getSetting("time-trigger"),h=new RegExp(`(^|\\s)${Fn(f)}{([^}]+)}`),p=n.data.titleRaw.replace(h,"").trim();i.updateItemContent(n,p).then(g=>{r.updateItem(e,g)}).catch(g=>{i.setError(g),console.error(g)})})})),c.showAtPosition(s)}},[t,n,e,r,i])}var Xm=v.memo(function({isEditing:n,setIsEditing:e,showMenu:r}){let i=v.useMemo(()=>n?{"data-ignore-drag":!0}:{},[n]);return v.createElement("div",{...i,className:$("item-postfix-button-wrapper")},n?v.createElement("button",{"data-ignore-drag":!0,onPointerDown:a=>{a.preventDefault()},onClick:()=>{e(!1)},className:`${$("item-postfix-button")} is-enabled`,"aria-label":F("Cancel")},v.createElement(en,{name:"cross"})):v.createElement("button",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:r,className:$("item-postfix-button"),"aria-label":F("More options")},v.createElement(en,{name:"vertical-three-dots"})))});function Zm({item:t,isSettingsVisible:n,searchQuery:e}){return n||!t.data.metadata.fileMetadata?null:v.createElement("div",{className:$("item-metadata-wrapper")},v.createElement(Px,{metadata:t.data.metadata.fileMetadata,order:t.data.metadata.fileMetadataOrder,searchQuery:e}))}function eg(t){return`${t.embed?"!":""}[[${t.path}${t.display?`|${t.display}`:""}]]`}function Lx({data:t,searchQuery:n}){if(Array.isArray(t.value))return v.createElement("span",{className:$("meta-value")},t.value.map((a,o,s)=>{let u=`${a}`,l=typeof a=="object"&&eg(a),c=u.toLocaleLowerCase().contains(n);return v.createElement(v.Fragment,null,l||t.containsMarkdown?v.createElement(ba,{className:"inline",markdownString:l||u,searchQuery:n}):c?v.createElement("span",{className:"is-search-match"},u):u,o{let a=n[i];return v.createElement("tr",{key:i,className:$("meta-row")},!a.shouldHideLabel&&v.createElement("td",{className:`${$("meta-key")} ${(a.label||i).toLocaleLowerCase().contains(r)?"is-search-match":""}`,"data-key":i},v.createElement("span",null,a.label||i)),v.createElement("td",{colSpan:a.shouldHideLabel?2:1,className:$("meta-value-wrapper"),"data-value":Array.isArray(a.value)?a.value.join(", "):`${a.value}`},i==="tags"?a.value.map((o,s)=>v.createElement("a",{href:o,key:s,className:`tag ${$("item-tag")} ${o.toLocaleLowerCase().contains(r)?"is-search-match":""}`},v.createElement("span",null,o[0]),o.slice(1))):v.createElement(Lx,{data:a,searchQuery:r})))})))});var tg=v.memo(function({item:n,shouldMarkItemsComplete:e,isMatch:r,searchQuery:i}){let{stateManager:a,boardModifiers:o}=v.useContext(We),[s,u]=v.useState(!1),l=v.useContext(Et);v.useEffect(()=>{let g=()=>{s&&u(!1)};return l.dragManager.emitter.on("dragStart",g),()=>{l.dragManager.emitter.off("dragStart",g)}},[l,s]),v.useEffect(()=>{n.data.forceEditMode&&u(!0)},[n.data.forceEditMode]);let c=Wn(),d=Qm({boardModifiers:o,item:n,setIsEditing:u,stateManager:a,path:c}),f=v.useCallback(g=>{if(g.target instanceof HTMLTextAreaElement)return;g.preventDefault(),g.stopPropagation();let w=g.target instanceof HTMLAnchorElement&&g.target.hasClass("internal-link")?g.target.dataset.href:void 0;d(g.nativeEvent,w)},[d]),h=v.useCallback(()=>{u(!0)},[u]),p=v.useMemo(()=>s?{"data-ignore-drag":!0}:{},[s]);return v.createElement("div",{onContextMenu:f,onDoubleClick:h,className:$("item-content-wrapper"),...p},v.createElement("div",{className:$("item-title-wrapper"),...p},v.createElement(mp,{boardModifiers:o,item:n,path:c,shouldMarkItemsComplete:e,stateManager:a}),v.createElement(Gm,{isEditing:s,item:n,searchQuery:r?i:void 0,setIsEditing:u}),v.createElement(Xm,{isEditing:s,setIsEditing:u,showMenu:d})),v.createElement(Zm,{searchQuery:r?i:void 0,isSettingsVisible:s,item:n}))}),Oc=v.memo(function(n){let e=v.useRef(null),r=v.useRef(null),i=v.useContext(Ya),{itemIndex:a,...o}=n;gi(r,r);let s=i?o.item.data.titleSearch.contains(i):!1,u=cp(o.item);return i&&(s?u.push("is-search-hit"):u.push("is-search-miss")),v.createElement("div",{ref:r,className:$("item-wrapper")},v.createElement("div",{ref:e,className:wt([$("item"),...u])},n.isStatic?v.createElement(tg,{...o,isMatch:s,searchQuery:i}):v.createElement(ur,{elementRef:e,measureRef:r,id:n.item.id,index:a,data:n.item},v.createElement(tg,{...o,isMatch:s,searchQuery:i}))))}),ng=v.memo(function({isStatic:n,items:e,shouldMarkItemsComplete:r}){return v.createElement(v.Fragment,null,e.map((i,a)=>v.createElement(Oc,{key:i.id,item:i,itemIndex:a,shouldMarkItemsComplete:r,isStatic:n})))});var _g=me(Nc());var Tg=me(It());var Kx="scroll-container",as=8,os=["top","right","bottom","left"],Fc=class{constructor(n,e,r,i,a){this.scrollFrame=0;this.onScroll=()=>{this.activeScroll.size===0&&(this.scrollState=vl(this.scrollEl),this.handleEntityRegistration())};this.onDragEnd=()=>{this.activeScroll.clear()};this.handleBeginDragScroll=({scrollEntitySide:n,scrollStrength:e})=>{this.isDoneScrolling(n)||(this.activeScroll.set(n,e),this.handleDragScroll())};this.handleUpdateDragScroll=({scrollEntitySide:n,scrollStrength:e})=>{this.isDoneScrolling(n)||this.activeScroll.set(n,e)};this.handleEndDragScroll=({scrollEntitySide:n})=>{this.activeScroll.delete(n)};this.dndManager=n,this.instanceId=Ke(),this.scopeId=e,this.triggerTypes=r,this.scrollState=on,this.parent=i,this.activeScroll=new Map,this.pollForNodes(a)}pollForNodes(n){n()?this.initNodes(n()):requestAnimationFrame(()=>this.pollForNodes(n))}initNodes(n){this.scrollEl=n,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(e=>{e.forEach(r=>{if(r.target instanceof HTMLElement){let i=r.target.dataset.hitboxid;if(i&&this.observerHandlers.has(i)){let a=this.observerHandlers.get(i);a&&a(r)}}})},{root:n,threshold:.1}),this.scrollEl.addEventListener("scroll",this.onScroll,{passive:!0,capture:!1}),this.dndManager.emitter.on("scrollResize",this.onScroll),setTimeout(()=>{this.onScroll()}),this.dndManager.observeResize(this.scrollEl),this.parent?this.parent.registerObserverHandler(this.instanceId,this.scrollEl,e=>{e.isIntersecting?this.handleEntityRegistration():this.handleEntityUnregistration()}):this.handleEntityRegistration()}destroy(){var n;this.handleEntityUnregistration(),this.observer.disconnect(),this.unbindScrollHandlers(),this.scrollEl.removeEventListener("scroll",this.onScroll),this.dndManager.emitter.off("scrollResize",this.onScroll),(n=this.parent)==null||n.unregisterObserverHandler(this.instanceId,this.scrollEl),this.dndManager.unobserveResize(this.scrollEl)}handleEntityRegistration(){os.forEach(n=>{let e=this.getId(n),r=this.dndManager.scrollEntities.has(e),i=this.isDoneScrolling(n);!i&&!r?this.dndManager.registerScrollEntity(e,this[n]):i&&r&&this.dndManager.unregisterScrollEntity(e)})}handleEntityUnregistration(){os.forEach(n=>{let e=this.getId(n);this.dndManager.unregisterScrollEntity(e)})}registerObserverHandler(n,e,r){this.observerHandlers.set(n,r),this.observer.observe(e)}unregisterObserverHandler(n,e){this.observerHandlers.delete(n),this.observer.unobserve(e)}bindScrollHandlers(){os.forEach(n=>{let e=this.getId(n);this.dndManager.dragManager.emitter.on("beginDragScroll",this.handleBeginDragScroll,e),this.dndManager.dragManager.emitter.on("updateDragScroll",this.handleUpdateDragScroll,e),this.dndManager.dragManager.emitter.on("endDragScroll",this.handleEndDragScroll,e),this.dndManager.dragManager.emitter.on("dragEnd",this.onDragEnd)})}unbindScrollHandlers(){os.forEach(n=>{let e=this.getId(n);this.dndManager.dragManager.emitter.off("beginDragScroll",this.handleBeginDragScroll,e),this.dndManager.dragManager.emitter.off("updateDragScroll",this.handleUpdateDragScroll,e),this.dndManager.dragManager.emitter.off("endDragScroll",this.handleEndDragScroll,e),this.dndManager.dragManager.emitter.off("dragEnd",this.onDragEnd)})}isDoneScrolling(n){switch(n){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&&requestAnimationFrame(()=>{let n={left:0,top:0};this.activeScroll.forEach((e,r)=>{if(this.isDoneScrolling(r))return this.activeScroll.delete(r);let i=["left","right"].includes(r)?"left":"top",a=["right","bottom"].includes(r);n[i]=a?Math.max(as-as*e/35,0):Math.min(-as+as*e/35,0)}),this.scrollEl.scrollBy(n),this.scrollState=vl(this.scrollEl),this.handleEntityRegistration(),this.handleDragScroll()})}getId(n){return`${this.instanceId}-${n}`}getPath(n){var e,r,i,a;switch(n){case"right":return[...((e=this.parent)==null?void 0:e.getPath())||[],1];case"bottom":return[...((r=this.parent)==null?void 0:r.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 e,r,i;let n=(e=this.parent)==null?void 0:e.getScrollShift();return{x:Qe((r=this.parent)==null?void 0:r.scrollState.x)+Qe(n==null?void 0:n.x),y:Qe((i=this.parent)==null?void 0:i.scrollState.y)+Qe(n==null?void 0:n.y)}}createScrollEntity(n){var r,i;let e=this;return{scopeId:this.scopeId,entityId:e.getId(n),initial:ml(this.scrollEl.getBoundingClientRect(),((r=this.parent)==null?void 0:r.scrollState)||on,((i=this.parent)==null?void 0:i.getScrollShift())||Rn,n),getParentScrollState(){var a;return((a=e.parent)==null?void 0:a.scrollState)||on},getParentScrollShift(){var a;return((a=e.parent)==null?void 0:a.getScrollShift())||Rn},recalcInitial(){var a,o;this.initial=ml(e.scrollEl.getBoundingClientRect(),((a=e.parent)==null?void 0:a.scrollState)||on,((o=e.parent)==null?void 0:o.getScrollShift())||Rn,n)},getHitbox(){return eo(this.initial[0],this.initial[1],this.initial[2],this.initial[3],this.getParentScrollState(),this.getParentScrollShift())},getPath(){return e.getPath(n)},getData(){return{id:e.getId(n),type:Kx,side:n,accepts:e.triggerTypes||[],scrollContainer:e.scrollEl}}}}};function ig({scrollRef:t,triggerTypes:n,children:e}){let r=v.useContext(Et),i=v.useContext(cr),a=v.useContext(Wi),o=v.useRef(),s=v.useMemo(()=>{if(r){o.current&&o.current.destroy();let u=new Fc(r,i,n||[],a,()=>t.current);return o.current=u,u}return null},[r,i,t,n,a]);return v.useEffect(()=>()=>{var u;return(u=o.current)==null?void 0:u.destroy()},[]),s?v.createElement(Wi.Provider,{value:s},e):null}function ag({children:t}){let n=v.useMemo(()=>new ji,[]);return v.createElement(qi.Provider,{value:n},t)}function og(t,n){let e=v.useContext(cr),r=v.useRef(null),i=v.useContext(qi),a=o=>{r.current=o,r.current&&requestAnimationFrame(()=>{let s=i.getScrollState(t);s&&(s.x!==0||s.y!==0)&&(r.current.scrollLeft=s.x,r.current.scrollTop=s.y)})};return v.useEffect(()=>{let o=r.current;if(!o)return;let s=So(u=>{let l=u.target;i.setScrollState(e,t,{x:l.scrollLeft,y:l.scrollTop})});return o.addEventListener("scroll",s),()=>{o.removeEventListener("scroll",s)}},[i,t,n]),{setRef:a,scrollRef:r}}function ss({className:t,children:n,triggerTypes:e,isStatic:r,id:i,index:a}){let{setRef:o,scrollRef:s}=og(i,a);return v.createElement("div",{ref:o,className:wt([t,$("scroll-container")])},r?n:v.createElement(ig,{scrollRef:s,triggerTypes:e},n))}var sg={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"};var bi={outOfTheWay:200,minDropTime:330,maxDropTime:550},yr=`${bi.outOfTheWay}ms ${sg.outOfTheWay}`;var un={none:"none",fluid:`opacity ${yr}`,snap:`transform ${yr}, opacity ${yr}`,drop:t=>{let n=`${t}ms ${sg.drop}`;return`transform ${n}, opacity ${n}`},outOfTheWay:`transform ${yr}`,placeholder:`height ${yr}, width ${yr}, margin ${yr}, border-color ${yr}`},$x=(t,n)=>t.x===n.x&&t.y===n.y,Ux={x:0,y:0},lg=t=>$x(t,Ux)?void 0:`translate(${t.x}px, ${t.y}px)`,cg={moveTo:lg,drop:t=>lg(t)},zx=bi.maxDropTime-bi.minDropTime,ug=1500,Vx=.6;function wi({position:t,destination:n,isCancel:e}){let r=Zr(t,n);if(r<=0)return bi.minDropTime;if(r>=ug)return bi.maxDropTime;let i=r/ug,a=bi.minDropTime+zx*i,o=e?a*Vx:a;return Math.round(o)}function kn(t,n,e){t.style.getPropertyValue(n)!==e&&t.style.setProperty(n,e)}function ls(t,n){t.style.getPropertyValue(n)&&t.style.removeProperty(n)}var Rc={width:0,height:0},jx=100,Hc=class{constructor(n,e,r){this.hitboxDimensions=Rc;this.handleDragStart=({dragEntity:n,dragEntityMargin:e,dragOriginHitbox:r})=>{let i=n==null?void 0:n.entityId,a=i?this.sortables.has(i):null;!n||!a||!r||(this.setSortState(!0),this.hitboxDimensions=yl(r,e),this.activatePlaceholder(this.hitboxDimensions,un.none),this.sortables.forEach(([o,s,u])=>{let l=Ui(n.getPath(),o.getPath()),c=o.entityId;if(l===an.Self)return this.hidden.add(c),this.hideDraggingEntity(u);l===an.After&&(this.shifted.has(c)||this.shifted.add(c),this.shiftEl(s,un.none,this.hitboxDimensions))}))};this.dragEndTimeout=0;this.handleDragEnd=({primaryIntersection:n,dragPosition:e,dragOriginHitbox:r,dragEntity:i})=>{if(!this.isSorting||!e||!r||!i){if(!n&&i&&this.sortables.has(i.entityId))return this.resetSelf({maintainHidden:!1});if(n&&i){let s=(n==null?void 0:n.getHitbox())||r,u=wi({position:e,destination:{x:s[0],y:s[1]}});return window.setTimeout(()=>{this.resetSelf({maintainHidden:!1})},u)}return this.resetSelf({maintainHidden:!0})}clearTimeout(this.dragEnterTimeout),clearTimeout(this.dragLeaveTimeout),clearTimeout(this.dragEndTimeout);let a=(n==null?void 0:n.getHitbox())||r,o=i.scopeId==="htmldnd"?0:wi({position:e,destination:{x:a[0],y:a[1]}});this.dragEndTimeout=window.setTimeout(()=>{let s=i.entityId.split(":::").pop(),u=n==null?void 0:n.entityId.split(":::").pop();n&&this.sortables.has(n.entityId)&&u!==s&&this.dndManager.onDrop(i,n),this.resetSelf({maintainHidden:!1,shiftTransition:un.none,placeholderTransition:un.none})},o),this.hitboxDimensions=Rc};this.dragEnterTimeout=0;this.handleDragEnter=({dragEntity:n,dragEntityMargin:e,dragOriginHitbox:r,primaryIntersection:i})=>{let a=i==null?void 0:i.entityId,o=a?this.sortables.has(a):null;if(!n||!i||!o||!r){!o&&this.isSorting&&this.resetSelf({maintainHidden:!0,maintainPlaceholder:!0});return}n.entityId!==i.entityId&&(clearTimeout(this.dragLeaveTimeout),clearTimeout(this.dragEnterTimeout),this.dragEnterTimeout=window.setTimeout(()=>{this.setSortState(!0),this.hitboxDimensions=yl(r,e),this.activatePlaceholder(this.hitboxDimensions,un.placeholder),this.sortables.forEach(([s,u])=>{let l=Ui(i.getPath(),s.getPath()),c=s.entityId;!this.hidden.has(c)&&(l===an.Self||l===an.After)?this.shifted.has(c)||(this.shifted.add(c),this.shiftEl(u,un.outOfTheWay,this.hitboxDimensions)):this.shifted.has(c)&&(this.shifted.delete(c),this.resetEl(u))})},10))};this.dragLeaveTimeout=0;this.handleDragLeave=()=>{!this.isSorting||(clearTimeout(this.dragLeaveTimeout),clearTimeout(this.dragEnterTimeout),this.dragLeaveTimeout=window.setTimeout(()=>{this.resetSelf({maintainHidden:!0,maintainPlaceholder:!0})},jx),this.hitboxDimensions=Rc)};this.instanceId=Ke(),this.dndManager=n,this.sortables=new Map,this.shifted=new Set,this.hidden=new Set,this.isSorting=!1,this.axis=e,this.placeholder=null,this.sortListeners=r?[r]:[],n.dragManager.emitter.on("dragStart",this.handleDragStart),n.dragManager.emitter.on("dragEnd",this.handleDragEnd),n.dragManager.emitter.on("dragEnter",this.handleDragEnter),n.dragManager.emitter.on("dragLeave",this.handleDragLeave)}destroy(){clearTimeout(this.dragLeaveTimeout),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(n,e,r,i){let a=e.getData().type==="placeholder";this.sortables.set(n,[e,r,i]),a?(this.placeholder=[e,r,i],i.dataset.axis=this.axis,kn(i,"transition",un.none)):kn(r,"transition",un.none)}unregisterSortable(n){this.sortables.delete(n)}resetSelf({maintainHidden:n,maintainPlaceholder:e,shiftTransition:r,placeholderTransition:i}){this.isSorting&&this.setSortState(!1),this.isPlaceholderActive&&!e&&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,r)}}),this.shifted.clear()),!n&&this.hidden.size>0&&(this.hidden.forEach(a=>{if(this.sortables.has(a)){let[,,o]=this.sortables.get(a);this.resetEl(o,r)}}),this.hidden.clear())}activatePlaceholder(n,e){if(this.placeholder){let r=this.axis==="horizontal",[,,i]=this.placeholder;kn(i,"transition",e),kn(i,r?"width":"height",`${r?n.width:n.height}px`),this.isPlaceholderActive=!0}}deactivatePlaceholder(n=un.placeholder){if(this.placeholder){let[,,e]=this.placeholder;kn(e,"transition",n),ls(e,"width"),ls(e,"height"),this.isPlaceholderActive=!1}}hideDraggingEntity(n){kn(n,"display","none")}shiftEl(n,e,r){let i=this.axis==="horizontal"?`translate3d(${r.width}px, 0, 0)`:`translate3d(0, ${r.height}px, 0)`;kn(n,"transition",e),kn(n,"transform",i)}resetEl(n,e=un.outOfTheWay){kn(n,"transition",e),kn(n,"transform","translate3d(0, 0, 0)"),ls(n,"display")}addSortNotifier(n){this.sortListeners.push(n)}removeSortNotifier(n){this.sortListeners=this.sortListeners.filter(e=>e!==n)}setSortState(n){this.isSorting!==n&&(this.isSorting=n,this.sortListeners.forEach(e=>e(n)))}};function Ei({axis:t,children:n,onSortChange:e}){let r=v.useContext(Et),i=v.useRef(),a=v.useMemo(()=>{if(r){i.current&&i.current.destroy();let o=new Hc(r,t,e);return i.current=o,o}return null},[r,t,e]);return v.useEffect(()=>()=>{var o;return(o=i.current)==null?void 0:o.destroy()},[]),a?v.createElement(Qa.Provider,{value:a},n):null}function Si({index:t,accepts:n,className:e,isStatic:r}){let i=v.useRef(null),a=v.useRef(null),o=v.useMemo(()=>({id:Ke(),type:"placeholder",accepts:n}),n);return v.createElement("div",{ref:a,className:wt([e,$("placeholder")])},v.createElement("div",{ref:i},!r&&v.createElement(ur,{elementRef:i,measureRef:a,id:o.id,index:t,data:o})))}var Wx=function(){if(typeof window=="undefined"||typeof window.addEventListener!="function")return!1;var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),e=function(){return null};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t},qx="ignore-onclickoutside",dg=function(n,e){var r;return(r=n.classList)==null?void 0:r.contains(e)},fg=function(n,e){for(var r=n.target||n;r;){if(Array.isArray(e)){if(e.some(function(i){return dg(r,i)}))return!0}else if(dg(r,e))return!0;r=r.parentElement}return!1},Yx=function(n){return document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY},hg=function(n){return n.includes("touch")&&Wx()?{passive:!0}:!1},Jx=function(n,e){var r=e===void 0?{}:e,i=r.refs,a=r.disabled,o=r.eventTypes,s=o===void 0?["mousedown","touchstart"]:o,u=r.excludeScrollbar,l=r.ignoreClass,c=l===void 0?qx:l,d=r.detectIFrame,f=d===void 0?!0:d,h=Ka([]),p=h[0],g=h[1],w=Ua(n);w.current=n;var S=Va(function(T){return g(function(k){return[].concat(k,[{current:T}])})},[]);return $a(function(){if(!(!(i!=null&&i.length)&&!p.length)){var T=function(){var O=[];return(i||p).forEach(function(B){var z=B.current;return z&&O.push(z)}),O},k=function(O){!fg(O,c)&&!(u&&Yx(O))&&T().every(function(B){return!B.contains(O.target)})&&w.current(O)},D=function(O){return setTimeout(function(){var B=document,z=B.activeElement;(z==null?void 0:z.tagName)==="IFRAME"&&!fg(z,c)&&!T().includes(z)&&w.current(O)},0)},N=function(){s.forEach(function(O){return document.removeEventListener(O,k,hg(O))}),f&&window.removeEventListener("blur",D)};if(a){N();return}return s.forEach(function(C){return document.addEventListener(C,k,hg(C))}),f&&window.addEventListener("blur",D),function(){return N()}}},[p,c,u,a,f,JSON.stringify(s)]),S},cs=Jx;function Bc({addItems:t,isInputVisible:n,setIsInputVisible:e,hideButton:r}){let[i,a]=v.useState(""),{stateManager:o}=v.useContext(We),s=v.useRef(),u=cs(()=>{e(!1)},{ignoreClass:$("ignore-click-outside")}),l=v.useCallback(()=>{a(""),e(!1)},[]),c=async h=>{try{t(await Promise.all(h.map(p=>o.getNewItem(p))))}catch(p){o.setError(p)}},d=h=>{if(!tr(h,o)){h.preventDefault();let p=i.trim();p&&(c([p]),a(""))}},f=()=>{let h=i.trim();h&&(c([h]),a(""))};return n?v.createElement("div",{className:$("item-form"),ref:u},v.createElement("div",{className:$("item-input-wrapper")},v.createElement(gr,{ref:s,className:$("item-input"),placeholder:F("Card title..."),onEnter:d,onEscape:l,onSubmit:f,value:i,onChange:h=>{a(h.target.value)},onPaste:h=>{qo(h,o)}}))):r?null:v.createElement("div",{className:$("item-button-wrapper")},v.createElement("button",{className:$("new-item-button"),onClick:()=>e(!0),onDragOver:h=>{Wo(o,h.dataTransfer)&&e(!0)}},v.createElement("span",{className:$("item-button-plus")},"+")," ",F("Add a card")))}var xg=me(It());function pg(t){return v.createElement("svg",{...t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v.createElement("path",{fill:"currentColor",d:"M5 3h2v2H5zm0 4h2v2H5zm0 4h2v2H5zm4-8h2v2H9zm0 4h2v2H9zm0 4h2v2H9z"}))}var mg=me(require("obsidian"));var gg={delete:{description:F("Are you sure you want to delete this list and all its cards?"),confirm:F("Yes, delete list")},archive:{description:F("Are you sure you want to archive this list and all its cards?"),confirm:F("Yes, archive list")},"archive-items":{description:F("Are you sure you want to archive all cards in this list?"),confirm:F("Yes, archive cards")}};function vg({action:t,cancel:n,onAction:e,lane:r}){return v.useEffect(()=>{t&&r.children.length===0&&e()},[t,r.children.length]),!t||t&&r.children.length===0?null:v.createElement("div",{className:$("action-confirm-wrapper")},v.createElement("div",{className:$("action-confirm-text")},gg[t].description),v.createElement("div",null,v.createElement("button",{onClick:e,className:$("confirm-action-button")},gg[t].confirm),v.createElement("button",{onClick:n,className:$("cancel-action-button")},"Cancel")))}function yg({setIsEditing:t,path:n}){let{stateManager:e,boardModifiers:r}=v.useContext(We),[i,a]=v.useState(null);return{settingsMenu:v.useMemo(()=>new mg.Menu(e.app).addItem(s=>{s.setIcon("pencil").setTitle(F("Edit list")).onClick(()=>t(!0))}).addItem(s=>{s.setIcon("documents").setTitle(F("Archive cards")).onClick(()=>a("archive-items"))}).addSeparator().addItem(s=>{s.setIcon("plus-with-circle").setTitle(F("Insert list before")).onClick(()=>r.insertLane(n,{...mr,id:Ke(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}}))}).addItem(s=>{s.setIcon("plus-with-circle").setTitle(F("Insert list after")).onClick(()=>{let u=[...n];u[u.length-1]=u[u.length-1]+1,r.insertLane(u,{...mr,id:Ke(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}})})}).addSeparator().addItem(s=>{s.setIcon("sheets-in-box").setTitle(F("Archive list")).onClick(()=>a("archive"))}).addItem(s=>{s.setIcon("trash").setTitle(F("Delete list")).onClick(()=>a("delete"))}),[e,a,n]),confirmAction:i,setConfirmAction:a}}var bg=me(It());function wg({lane:t,lanePath:n}){let{boardModifiers:e}=v.useContext(We);return v.createElement("div",{className:$("lane-setting-wrapper")},v.createElement("div",{className:$("checkbox-wrapper")},v.createElement("div",{className:$("checkbox-label")},F("Mark cards in this list as complete")),v.createElement("div",{onClick:()=>e.updateLane(n,(0,bg.default)(t,{data:{$toggle:["shouldMarkItemsComplete"]}})),className:`checkbox-container ${t.data.shouldMarkItemsComplete?"is-enabled":""}`})))}var Eg=me(require("obsidian"));function Sg({itemCount:t,isEditing:n,setIsEditing:e,title:r,onChange:i}){let{stateManager:a}=v.useContext(We),o=v.useRef(),s=c=>{tr(c,a)||(c.preventDefault(),n&&e(!1))},u=()=>{n&&e(!1)},l=()=>{n&&e(!1)};return v.useEffect(()=>{if(n&&o.current){let c=o.current;o.current.focus(),c.selectionStart=c.selectionEnd=c.value.length}},[n]),v.createElement(v.Fragment,null,v.createElement("div",{className:$("lane-title")},n?v.createElement(gr,{ref:o,className:$("lane-input"),onChange:i,onEnter:s,onEscape:l,onSubmit:u,value:r}):v.createElement(v.Fragment,null,v.createElement("div",{className:$("lane-title-text"),onContextMenu:c=>{c.preventDefault(),c.stopPropagation();let d=c.target instanceof HTMLAnchorElement&&c.target.hasClass("internal-link")?c.target.dataset.href:void 0;d&&a.app.workspace.onLinkContextMenu(c,(0,Eg.getLinkpath)(d),a.file.path)}},v.createElement(ba,{markdownString:r})))),!n&&v.createElement("div",{className:$("lane-title-count")},t))}var kg=v.memo(function({lane:n,laneIndex:e,dragHandleRef:r,setIsItemInputVisible:i}){let{boardModifiers:a,stateManager:o}=v.useContext(We),[s,u]=v.useState(!1),l=Wn(e),{settingsMenu:c,confirmAction:d,setConfirmAction:f}=yg({setIsEditing:u,path:l});return v.useEffect(()=>{n.data.forceEditMode&&u(!0)},[n.data.forceEditMode]),v.createElement(v.Fragment,null,v.createElement("div",{onDoubleClick:()=>u(!0),className:$("lane-header-wrapper")},v.createElement("div",{className:$("lane-grip"),ref:r},v.createElement(pg,null)),v.createElement(Sg,{isEditing:s,setIsEditing:u,itemCount:n.children.length,title:n.data.title,onChange:h=>{a.updateLane(l,(0,xg.default)(n,{data:{title:{$set:h.target.value}}}))}}),v.createElement("div",{className:$("lane-settings-button-wrapper")},s?v.createElement("button",{onClick:()=>{u(!1)},"aria-label":"Close",className:`${$("lane-settings-button")} is-enabled`},v.createElement(en,{name:"cross"})):v.createElement(v.Fragment,null,i&&v.createElement("button",{"aria-label":F("Add a card"),className:$("lane-settings-button"),onClick:()=>{i(!0)},onDragOver:h=>{Wo(o,h.dataTransfer)&&i(!0)}},v.createElement(en,{name:"plus-with-circle"})),v.createElement("button",{"aria-label":F("More options"),className:$("lane-settings-button"),onClick:h=>{c.showAtPosition({x:h.clientX,y:h.clientY})}},v.createElement(en,{name:"vertical-three-dots"}))))),s&&v.createElement(wg,{lane:n,lanePath:l}),d&&v.createElement(vg,{lane:n,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 Mg=[Xe.Item],Kc=v.memo(function({isStatic:n,lane:e,laneIndex:r}){let{stateManager:i,boardModifiers:a}=v.useContext(We),[o,s]=v.useState(!1),u=Wn(r),l=i.useSetting("lane-width"),c=i.useSetting("new-card-insertion-method"),d=!!e.data.shouldMarkItemsComplete,f=l?{width:`${l}px`}:void 0,h=v.useRef(null),p=v.useRef(null),g=v.useRef(null),[w,S]=v.useState(!1),T=c==="prepend-compact",k=T||c==="prepend";gi(p,g);let D=O=>{a[k?"prependItems":"appendItems"]([...u,e.children.length-1],O.map(B=>(0,Tg.default)(B,{data:{isComplete:{$set:d}}}))),setTimeout(()=>{var z;let B=(z=h.current)==null?void 0:z.getElementsByClassName($("lane-items"));B.length&&(0,_g.default)([0,k?0:B[0].scrollHeight],{elementToScroll:B[0],speed:200,minDuration:150,easing:Q=>Q===1?1:1-Math.pow(2,-10*Q)})})},N=v.createElement(v.Fragment,null,v.createElement(ng,{items:e.children,isStatic:n,shouldMarkItemsComplete:d}),v.createElement(Si,{accepts:Mg,index:e.children.length,isStatic:n})),C=v.createElement(ss,{id:e.id,index:r,className:wt([$("lane-items"),$("vertical")]),triggerTypes:Mg,isStatic:n},n?N:v.createElement(Ei,{onSortChange:S,axis:"vertical"},N));return v.createElement("div",{ref:p,className:wt([$("lane-wrapper"),{"is-sorting":w}]),style:f},v.createElement("div",{"data-count":e.children.length,ref:h,className:wt([$("lane"),{"will-prepend":k}])},v.createElement(kg,{dragHandleRef:g,laneIndex:r,lane:e,setIsItemInputVisible:T?s:void 0}),k&&v.createElement(Bc,{addItems:D,hideButton:T,isInputVisible:o,setIsInputVisible:s}),n?C:v.createElement(ur,{elementRef:h,measureRef:p,id:e.id,index:r,data:e},C),!k&&v.createElement(Bc,{addItems:D,isInputVisible:o,setIsInputVisible:s})))}),Cg=v.memo(function({lanes:n}){return v.createElement(v.Fragment,null,n.map((e,r)=>v.createElement(Kc,{lane:e,laneIndex:r,key:e.id})))});var Dg=me(require("obsidian"));function us(){return{events:{},emit(t,n,e){let r=`${t}${e||""}`,i=this.events[t],a=this.events[r];if(!i&&!a){console.warn("Event emitted with no handler",t,e);return}e&&a&&a.forEach(o=>o(n)),i&&i.forEach(o=>o(n))},on(t,n,e){let r=`${t}${e||""}`,i=this.events[r];return i||(this.events[r]=i=[]),i.push(n),()=>this.off(t,n,e)},off(t,n,e){let r=`${t}${e||""}`,i=this.events[r];i&&(i.splice(i.indexOf(n)>>>0,1),i.length===0&&delete this.events[r])}}}var $c=class{constructor(n){this.scrollResizeDebounce=0;this.handleResize=n=>{n.forEach(e=>{e.target.dataset.scrollid&&(clearTimeout(this.scrollResizeDebounce),this.scrollResizeDebounce=window.setTimeout(()=>{this.emitter.emit("scrollResize",null)},50))}),this.hitboxEntities.forEach(e=>{e.recalcInitial()}),this.scrollEntities.forEach(e=>{e.recalcInitial()})};this.emitter=us(),this.hitboxEntities=new Map,this.scrollEntities=new Map,this.onDrop=n,this.resizeObserver=new ResizeObserver((0,Dg.debounce)(this.handleResize,100,!0)),this.dragManager=new Xl(this.emitter,this.hitboxEntities,this.scrollEntities)}destroy(){this.resizeObserver.disconnect()}observeResize(n){n instanceof Element&&this.resizeObserver.observe(n,{box:"border-box"})}unobserveResize(n){n instanceof Element&&this.resizeObserver.unobserve(n)}registerHitboxEntity(n,e){this.hitboxEntities.set(n,e)}registerScrollEntity(n,e){this.scrollEntities.set(n,e)}unregisterHitboxEntity(n){this.hitboxEntities.delete(n)}unregisterScrollEntity(n){this.scrollEntities.delete(n)}};function ds({children:t,onDrop:n}){let e=v.useRef(n);e.current=n;let r=v.useMemo(()=>new $c((i,a)=>e.current(i,a)),[]);return v.useEffect(()=>()=>{r.destroy()},[r]),v.createElement(Et.Provider,{value:r},v.createElement(ag,null,t))}function Uc(t,n,e,r,i,a){let o=[e[0]-r[0],e[1]-r[1],e[2]+r[2],e[3]+r[3]];return{transform:a||`translate3d(${t.x-n.x+o[0]}px, ${t.y-n.y+o[1]}px, 0px)`,width:`${o[2]-o[0]}px`,height:`${o[3]-o[1]}px`,transition:i}}function fs({children:t}){let n=v.useContext(Et),[e,r]=v.useState(),[i,a]=v.useState();return v.useEffect(()=>{if(!n)return;let o=zd,s=({dragEntity:c,dragOrigin:d,dragPosition:f,dragEntityMargin:h})=>{!c||!f||!d||(o=c.getHitbox(),r(c),a(Uc(f,d,o,h)))},u=({dragOrigin:c,dragPosition:d,dragEntityMargin:f})=>{!d||!c||a(Uc(d,c,o,f))},l=({dragOrigin:c,primaryIntersection:d,dragPosition:f,dragEntityMargin:h})=>{if(d&&f&&c){let p=d.getHitbox(),g={x:p[0],y:p[1]},w=wi({position:f,destination:g}),S=un.drop(w),T=cg.drop(g);a(Uc(f,c,o,h,S,T)),setTimeout(()=>{r(void 0),a(void 0)},w)}else r(void 0),a(void 0)};return n.dragManager.emitter.on("dragStart",s),n.dragManager.emitter.on("dragMove",u),n.dragManager.emitter.on("dragEnd",l),()=>{n.dragManager.emitter.off("dragStart",s),n.dragManager.emitter.off("dragMove",u),n.dragManager.emitter.off("dragEnd",l)}},[n]),!e||!i?null:t(e,i)}function Ag(){let t=v.useContext(Et),[n,e]=v.useState(!1);return v.useEffect(()=>{let r=()=>{e(!0)},i=({primaryIntersection:a,dragPosition:o})=>{let s=(a==null?void 0:a.getHitbox())||[0,0],u={x:s[0],y:s[1]},l=wi({position:o||u,destination:u});setTimeout(()=>{e(!1)},l)};return t.dragManager.emitter.on("dragStart",r),t.dragManager.emitter.on("dragEnd",i),()=>{t.dragManager.emitter.off("dragStart",r),t.dragManager.emitter.off("dragEnd",i)}},[t]),n}var Ea=me(It()),Ig=me(require("obsidian"));function hs(t){let n=e=>{let r=t.getSetting("prepend-archive-format"),i=t.getSetting("prepend-archive-separator"),a=[(0,Ig.moment)().format(r)];i&&a.push(i),a.push(e.data.titleRaw);let o=a.join(" ");return t.updateItemContent(e,o)};return{appendItems:(e,r)=>{r.forEach(i=>t.app.workspace.trigger("kanban:card-added",t.file,i)),t.setState(i=>ul(i,e,r))},prependItems:(e,r)=>{r.forEach(i=>t.app.workspace.trigger("kanban:card-added",t.file,i)),t.setState(i=>Rd(i,e,r))},insertItems:(e,r)=>{r.forEach(i=>t.app.workspace.trigger("kanban:card-added",t.file,i)),t.setState(i=>lr(i,e,r))},splitItem:(e,r)=>{r.forEach(i=>t.app.workspace.trigger("kanban:card-added",t.file,i)),t.setState(i=>lr(kr(i,e),e,r))},addLane:e=>{t.app.workspace.trigger("kanban:lane-added",t.file,e),t.setState(r=>ul(r,[],[e]))},insertLane:(e,r)=>{t.app.workspace.trigger("kanban:lane-added",t.file,r),t.setState(i=>lr(i,e,[r]))},updateLane:(e,r)=>{t.app.workspace.trigger("kanban:lane-updated",t.file,r),t.setState(i=>dl(i,e,{children:{[e[e.length-1]]:{$set:r}}}))},archiveLane:e=>{t.setState(async r=>{let i=vt(r,e),a=i.children;t.app.workspace.trigger("kanban:lane-archived",t.file,i);try{return(0,Ea.default)(kr(r,e),{data:{archive:{$unshift:t.getSetting("prepend-archive-date")?await Promise.all(a.map(n)):a}}})}catch(o){return t.setError(o),r}})},archiveLaneItems:e=>{t.setState(async r=>{let a=vt(r,e).children;t.app.workspace.trigger("kanban:lane-cards-archived",t.file,a);try{return(0,Ea.default)(Hd(r,e,{children:{$set:[]}}),{data:{archive:{$unshift:t.getSetting("prepend-archive-date")?await Promise.all(a.map(n)):a}}})}catch(o){return t.setError(o),r}})},deleteEntity:e=>{t.setState(r=>{let i=vt(r,e);return t.app.workspace.trigger(`kanban:${i.type}-deleted`,t.file,i),kr(r,e)})},updateItem:(e,r)=>{t.setState(i=>{let a=vt(i,e);return t.app.workspace.trigger("kanban:card-updated",t.file,a,r),dl(i,e,{children:{[e[e.length-1]]:{$set:r}}})})},archiveItem:e=>{t.setState(async r=>{let i=vt(r,e);t.app.workspace.trigger("kanban:card-archived",t.file,e,i);try{return(0,Ea.default)(kr(r,e),{data:{archive:{$push:[t.getSetting("prepend-archive-date")?await n(i):i]}}})}catch(a){return t.setError(a),r}})},duplicateEntity:e=>{t.setState(r=>{let i=vt(r,e);t.app.workspace.trigger(`kanban:${i.type}-duplicated`,t.file,e,i);let a=(0,Ea.default)(i,{id:{$set:Ke()}});return lr(r,e,[a])})}}}function Pg(t){return v.createElement(Qx,{plugin:t})}var Gx=v.memo(function({view:n}){return ol(n.getPortal(),n.contentEl)});function Qx({plugin:t}){let n=t.useViewState(),e=n.map(i=>v.createElement(Gx,{key:i.id,view:i})),r=v.useCallback((i,a)=>{if(!i||!a)return;if(i.scopeId==="htmldnd"){let f=i.getData(),h=t.getStateManagerFromViewID(f.viewId),p=a.getPath(),g=vt(h.state,p.slice(0,-1));(S=>Promise.all(S.map(T=>h.getNewItem(T))))(f.content).then(S=>{let T=S.map(k=>{var D;return(0,Lg.default)(k,{data:{isComplete:{$set:!!((D=g==null?void 0:g.data)==null?void 0:D.shouldMarkItemsComplete)}}})});return h.setState(k=>lr(k,p,T))}).catch(S=>{h.setError(S),console.error(S)});return}let o=i.getPath(),s=a.getPath(),[,u]=i.scopeId.split(":::"),[,l]=a.scopeId.split(":::");if(u===l){let f=t.getStateManagerFromViewID(i.scopeId);return t.app.workspace.trigger("kanban:card-moved",f.file,o,s,i.getData()),f.setState(h=>Fd(h,o,s,p=>p.type===Xe.Item?hl(h,o,h,s,p):p))}let c=t.getStateManagerFromViewID(i.scopeId),d=t.getStateManagerFromViewID(a.scopeId);c.setState(f=>{let h=vt(f,o);return d.setState(p=>{let g=h.type===Xe.Item?hl(f,o,p,s,h):h;return lr(p,s,[g])}),kr(f,o)})},[n]);if(e.length)return v.createElement(ds,{onDrop:r},e,v.createElement(fs,null,(i,a)=>{let[o,s]=v.useMemo(()=>{if(i.scopeId==="htmldnd")return[null,null];let u=t.getKanbanView(i.scopeId),l=t.stateManagers.get(u.file),c=vt(l.state,i.getPath()),d=hs(l),f=u.file.path;return[c,{view:u,stateManager:l,boardModifiers:d,filePath:f}]},[i]);return(o==null?void 0:o.type)===Xe.Lane?v.createElement(We.Provider,{value:s},v.createElement("div",{className:$("drag-container"),style:a},v.createElement(Kc,{lane:o,laneIndex:0,isStatic:!0}))):(o==null?void 0:o.type)===Xe.Item?v.createElement(We.Provider,{value:s},v.createElement("div",{className:$("drag-container"),style:a},v.createElement(Oc,{item:o,itemIndex:0,isStatic:!0}))):v.createElement("div",null)}))}var Jc=me(It()),ev=me(require("obsidian"));var $g=me(Nc());var Ug=me(It()),zg=me(require("obsidian")),ms=me(ql());function ps({id:t,children:n}){let e=v.useContext(qi),r=v.useMemo(()=>t||Ke(),[t]);return v.useEffect(()=>()=>{e.unmountScope(t)},[t]),v.createElement(cr.Provider,{value:r},n)}var dn="kanban-plugin",Og;(function(n){n[n.List=0]="List"})(Og||(Og={}));var Ng=`**${F("Complete")}**`,Fg="***",zc=["---","",`${dn}: basic`,"","---","",""].join(` `);function Rg(t){return["","","%% kanban:settings","```",JSON.stringify(t),"```","%%"].join(` `)}function Hg(t,n,e){let r=t.innerText.trim();if((n==null?void 0:n.length)&&(r+=" "+n.join(" ")),e){let i=Object.keys(e).join(" "),a=Object.values(e).map(o=>Array.isArray(o.value)?o.value.join(" "):o.value.toString()).join(" ");r+=" "+i+" "+a}return r.toLocaleLowerCase()}function Xx(t,n,e){var r,i,a;if(t.plugins.enabledPlugins.has("dataview")&&((a=(i=(r=t.plugins)==null?void 0:r.plugins)==null?void 0:i.dataview)==null?void 0:a.api))return t.plugins.plugins.dataview.api.page(n.path,e.path)}function Vc(t,n){let e=t.getSetting("metadata-keys");if(!e.length)return{};if(!n)return{};let r=t.app.metadataCache.getFileCache(n),i=Xx(t.app,n,t.file);if(!r&&!i)return{};let a={},o={},s={},u=[],l=!1;return e.forEach(c=>{var d;if(!s[c.metadataKey]){if(s[c.metadataKey]=!0,c.metadataKey==="tags"){let f=(r==null?void 0:r.tags)||[];if(Array.isArray((d=r==null?void 0:r.frontmatter)==null?void 0:d.tags)&&(f=[].concat(f,r.frontmatter.tags.map(h=>({tag:`#${h}`})))),(f==null?void 0:f.length)===0)return;u.push(c.metadataKey),a.tags={...c,value:f.map(h=>h.tag).filter(h=>o[h]?!1:(o[h]=!0,!0))},l=!0;return}if((r==null?void 0:r.frontmatter)&&r.frontmatter[c.metadataKey])u.push(c.metadataKey),a[c.metadataKey]={...c,value:r.frontmatter[c.metadataKey]},l=!0;else if(i&&i[c.metadataKey]){let f=i[c.metadataKey],h=f.values||f.val||f;if(h===f&&typeof h=="object")h={...f};else if(!Array.isArray(h)&&typeof h!="string"&&typeof h!="number")return;u.push(c.metadataKey),a[c.metadataKey]={...c,value:h},l=!0}}}),{fileMetadata:l?a:void 0,fileMetadataOrder:u}}function Bg(t,n){return!t&&n?!0:!["metadata-keys","date-trigger","time-trigger","link-date-to-daily-note","date-format","time-format","hide-date-in-title","hide-tags-in-title"].every(r=>t[r]===n[r])}function Kg({onNewLane:t,closeLaneForm:n}){let{boardModifiers:e,stateManager:r}=v.useContext(We),[i,a]=v.useState(!1),[o,s]=v.useState(""),u=v.useRef(),l=cs(()=>{n()},{ignoreClass:$("ignore-click-outside")});v.useLayoutEffect(()=>{var d;(d=u.current)==null||d.focus()},[]);let c=()=>{e.addLane({...mr,id:Ke(),children:[],data:{title:o,shouldMarkItemsComplete:i}}),s(""),a(!1),t()};return v.createElement("div",{ref:l,className:$("lane-form-wrapper")},v.createElement("div",{className:$("lane-input-wrapper")},v.createElement(gr,{ref:u,className:$("lane-input"),onChange:d=>s(d.target.value),onEnter:d=>{tr(d,r)||(d.preventDefault(),c())},onSubmit:()=>{c()},onEscape:n,value:o})),v.createElement("div",{className:$("checkbox-wrapper")},v.createElement("div",{className:$("checkbox-label")},F("Mark cards in this list as complete")),v.createElement("div",{onClick:()=>a(!i),className:`checkbox-container ${i?"is-enabled":""}`})),v.createElement("div",{className:$("lane-input-actions")},v.createElement("button",{className:$("lane-action-add"),onClick:c},F("Add list")),v.createElement("button",{className:$("lane-action-cancel"),onClick:n},F("Cancel"))))}var Zx=[Xe.Item,Xe.Lane],ek=[Xe.Lane],Vg=({view:t,stateManager:n})=>{let e=n.useState(),r=Ag(),i=v.useRef(null),a=v.useRef(null),[o,s]=v.useState(""),[u,l]=v.useState(!1),[c,d]=v.useState(""),[f,h]=v.useState((e==null?void 0:e.children.length)===0),p=n.file.path,g=n.useSetting("max-archive-size"),w=v.useCallback(()=>{(e==null?void 0:e.children.length)>0&&h(!1)},[e==null?void 0:e.children.length]);v.useEffect(()=>{(e==null?void 0:e.children.length)===0&&h(!0)},[e==null?void 0:e.children.length]);let S=v.useCallback(()=>{setTimeout(()=>{var B;let O=(B=i.current)==null?void 0:B.getElementsByClassName($("board"));O.length&&(0,$g.default)([O[0].scrollWidth,0],{elementToScroll:O[0],speed:300,minDuration:150,easing:z=>z===1?1:1-Math.pow(2,-10*z)})})},[]);v.useEffect(()=>{let O=z=>{z==="editor:open-search"&&l(Q=>!Q)},B=()=>{h(!0)};return t.emitter.on("hotkey",O),t.emitter.on("showLaneForm",B),()=>{t.emitter.off("hotkey",O),t.emitter.off("showLaneForm",B)}},[t]),v.useEffect(()=>{var O;u&&((O=a.current)==null||O.focus())},[u]),v.useEffect(()=>{let O=o.trim(),B;return O?B=window.setTimeout(()=>{d(O)},250):d(""),()=>{window.clearTimeout(B)}},[o]),v.useEffect(()=>{g===void 0||g===-1||typeof g=="number"&&(e==null?void 0:e.data.archive.length)>g&&n.setState(O=>(0,Ug.default)(O,{data:{archive:{$set:O.data.archive.slice(g*-1)}}}))},[e==null?void 0:e.data.archive.length,g]);let T=v.useMemo(()=>hs(n),[n]),k=v.useCallback(O=>{let B=O.target;B.tagName==="A"&&B.hasClass("internal-link")&&t.app.workspace.trigger("hover-link",{event:O.nativeEvent,source:dn,hoverParent:t,targetEl:B,linktext:B.getAttr("href"),sourcePath:t.file.path})},[t]),D=v.useCallback(async O=>{if(O.type==="auxclick"&&O.button==2)return;let B=O.target,z=B.tagName==="A"?B:B.closest("a");if(!!z){if(z.hasClass("file-link")){O.preventDefault();let Q=z.getAttribute("href"),X=Pr(Q),ie=typeof Q=="string"&&t.app.metadataCache.getFirstLinkpathDest(X.root,t.file.path);if(!ie)return;n.app.openWithDefaultApp(ie.path);return}if(z.hasClass("internal-link")){O.preventDefault();let Q=z.getAttr("href"),X=O.button===1||O.ctrlKey||O.metaKey;if(z.hasClass("is-unresolved")&&(0,ms.appHasDailyNotesPluginLoaded)()){let q=n.getSetting("date-format"),J=(0,zg.moment)(Q,q,!0);if(J.isValid()){try{let te=await(0,ms.createDailyNote)(J);await(X?t.app.workspace.splitActiveLeaf():t.app.workspace.getUnpinnedLeaf()).openFile(te,{active:!0})}catch(te){console.error(te),n.setError(te)}return}}n.app.workspace.openLinkText(Q,p,X);return}if(z.hasClass("tag")){O.preventDefault(),n.app.internalPlugins.getPluginById("global-search").instance.openGlobalSearch(`tag:${z.getAttr("href")}`);return}z.hasClass("external-link")&&(O.preventDefault(),window.open(z.getAttr("href"),"_blank"))}},[n,p]),N=v.useMemo(()=>({view:t,stateManager:n,boardModifiers:T,filePath:p}),[t,n,T,p]),C=fp(n);return e==null?v.createElement("div",{className:$("loading")},v.createElement("div",{className:"sk-pulse"})):e.data.errors.length>0?v.createElement("div",null,v.createElement("div",null,"Error:"),e.data.errors.map((O,B)=>v.createElement("div",{key:B},v.createElement("div",null,O.description),v.createElement("pre",null,O.stack)))):v.createElement(ps,{id:t.id},v.createElement(We.Provider,{value:N},v.createElement(Ya.Provider,{value:c?c.toLocaleLowerCase():null},v.createElement("div",{ref:i,className:wt([fl,{"something-is-dragging":r}]),onMouseOver:k,onClick:D,onAuxClick:D,...C},(f||e.children.length===0)&&v.createElement(Kg,{onNewLane:S,closeLaneForm:w}),u&&v.createElement("div",{className:$("search-wrapper")},v.createElement("input",{ref:a,value:o,onChange:O=>{s(O.target.value)},onKeyDown:O=>{O.key==="Escape"&&(s(""),d(""),O.target.blur(),l(!1))},type:"text",className:$("filter-input"),placeholder:F("Search...")}),v.createElement("button",{className:$("search-cancel-button"),onClick:()=>{s(""),d(""),l(!1)},"aria-label":F("Cancel")},v.createElement(en,{name:"cross"}))),v.createElement(ss,{id:t.id,className:wt([$("board"),$("horizontal"),{"is-adding-lane":f}]),triggerTypes:Zx},v.createElement("div",null,v.createElement(Ei,{axis:"horizontal"},v.createElement(Cg,{lanes:e.children}),v.createElement(Si,{className:$("lane-placeholder"),accepts:ek,index:e.children.length}))))))))};var Qg=me(It()),$e=me(require("obsidian"));var Or=me(It());function jg({isStatic:t,itemIndex:n,item:e,toggleShouldHideLabel:r,toggleContainsMarkdown:i,deleteKey:a,updateKey:o,updateLabel:s}){let u=v.useRef(null),l=v.useRef(null),c=v.useRef(null);gi(l,c);let d=v.createElement("div",{className:$("setting-controls-wrapper")},v.createElement("div",{className:$("setting-input-wrapper")},v.createElement("div",null,v.createElement("div",{className:$("setting-item-label")},F("Metadata key")),v.createElement("input",{type:"text",value:e.data.metadataKey,onChange:f=>o(f.target.value)})),v.createElement("div",null,v.createElement("div",{className:$("setting-item-label")},F("Display label")),v.createElement("input",{type:"text",value:e.data.label,onChange:f=>s(f.target.value)}))),v.createElement("div",{className:$("setting-toggle-wrapper")},v.createElement("div",null,v.createElement("div",{className:`checkbox-container ${e.data.shouldHideLabel?"is-enabled":""}`,onClick:r,"aria-label":F("Hide label")}),v.createElement("div",{className:$("setting-item-label")},F("Hide label"))),v.createElement("div",null,v.createElement("div",{className:`checkbox-container ${e.data.containsMarkdown?"is-enabled":""}`,onClick:i,"aria-label":F("Field contains markdown")}),v.createElement("div",{className:$("setting-item-label")},F("Field contains markdown")))));return v.createElement("div",{ref:l,className:$("setting-item-wrapper")},v.createElement("div",{ref:u,className:$("setting-item")},t?d:v.createElement(ur,{elementRef:u,measureRef:l,id:e.id,index:n,data:e},d),v.createElement("div",{className:$("setting-button-wrapper")},v.createElement("div",{onClick:a,"aria-label":F("Delete")},v.createElement(en,{name:"cross"})),v.createElement("div",{className:"mobile-option-setting-drag-icon","aria-label":F("Drag to rearrange"),ref:c},v.createElement(en,{name:"three-horizontal-bars"})))))}function tk({onChange:t,inputValue:n,keys:e,setKeys:r}){let i=a=>{t(a),r(a)};return{updateKey:a=>o=>{i((0,Or.default)(e,{[a]:{data:{metadataKey:{$set:o}}}}))},updateLabel:a=>o=>{i((0,Or.default)(e,{[a]:{data:{label:{$set:o}}}}))},toggleShouldHideLabel:a=>()=>{i((0,Or.default)(e,{[a]:{data:{$toggle:["shouldHideLabel"]}}}))},toggleContainsMarkdown:a=>()=>{i((0,Or.default)(e,{[a]:{data:{$toggle:["containsMarkdown"]}}}))},deleteKey:a=>()=>{i((0,Or.default)(e,{$splice:[[a,1]]}))},newKey:()=>{i((0,Or.default)(e,{$push:[{...Vo,id:Ke(),data:{metadataKey:n,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=e.slice(),[f]=d.splice(l,1);d.splice(c,0,f),i(d)}}}var nk=[Xe.MetadataSetting];function rk({keys:t}){return v.createPortal(v.createElement(fs,null,(n,e)=>{let i=n.getPath()[0],a=t[i];return v.createElement("div",{className:$("drag-container"),style:e},v.createElement(jg,{item:a,itemIndex:i,updateKey:Qr,updateLabel:Qr,toggleShouldHideLabel:Qr,toggleContainsMarkdown:Qr,deleteKey:Qr,isStatic:!0}))}),document.body)}function ik({scrollEl:t}){let n=v.useContext(Et);return v.useEffect(()=>{let e=0,r=()=>{clearTimeout(e),e=window.setTimeout(()=>{n.hitboxEntities.forEach(i=>{i.recalcInitial()})},100)};return t.addEventListener("scroll",r,{passive:!0,capture:!1}),()=>{t.removeEventListener("scroll",r)}},[t,n]),null}function ak(t){let[n,e]=v.useState(t.dataKeys),[r,i]=v.useState(""),{getShouldIMEBlockAction:a,...o}=Ga(),{updateKey:s,updateLabel:u,toggleShouldHideLabel:l,toggleContainsMarkdown:c,deleteKey:d,newKey:f,moveKey:h}=tk({onChange:t.onChange,inputValue:r,keys:n,setKeys:e});return v.createElement(v.Fragment,null,v.createElement(ds,{onDrop:h},v.createElement(ik,{scrollEl:t.scrollEl}),v.createElement(ps,null,v.createElement(Ei,{axis:"vertical"},n.map((p,g)=>v.createElement(jg,{key:p.id,item:p,itemIndex:g,updateKey:s(g),updateLabel:u(g),toggleShouldHideLabel:l(g),toggleContainsMarkdown:c(g),deleteKey:d(g)})),v.createElement(Si,{accepts:nk,index:n.length}))),v.createElement(rk,{keys:n})),v.createElement("div",{className:$("setting-key-input-wrapper")},v.createElement("input",{placeholder:F("Metadata key"),type:"text",value:r,onChange:p=>i(p.target.value),onKeyDown:p=>{if(!a()){if(p.key==="Enter"){f(),i("");let g=p.target;setTimeout(()=>{g.scrollIntoView()});return}p.key==="Escape"&&(i(""),p.target.blur())}},...o}),v.createElement("button",{onClick:p=>{f(),i("");let g=p.target;setTimeout(()=>{g.scrollIntoView()})}},F("Add key"))))}function Wg(t,n,e,r){v.render(v.createElement(ak,{dataKeys:e,scrollEl:n,onChange:r}),t)}function qg(t){v.unmountComponentAtNode(t)}var Jg=me(Yg()),vs=me(It()),br=me(require("obsidian"));var ys="@",bs="@@";function ok(t){let n=[];return br.Vault.recurseChildren(t.vault.getRoot(),e=>{e instanceof br.TFolder&&n.push({value:e.path,label:e.path,selected:!1,disabled:!1})}),n}function sk(t,n){let e=[],r=n?t.vault.getAbstractFileByPath(n):null;return(!r||!(r instanceof br.TFolder))&&(r=t.vault.getRoot()),br.Vault.recurseChildren(r,i=>{i instanceof br.TFile&&e.push({value:i.path,label:i.basename,selected:!1,disabled:!1})}),e}function Gg(t){let{templateFolder:n,templatesEnabled:e,templaterPlugin:r}=pl(t),i=sk(t,n),a=ok(t),o="";return!e&&!r&&(o=F("Note: No template plugins are currently enabled.")),{templateFiles:i,vaultFolders:a,templateWarning:o}}function Wc({choices:t,key:n,warningText:e,local:r,placeHolderStr:i,manager:a}){return o=>{o.controlEl.createEl("select",{},s=>{setTimeout(()=>{let u=t,[l,c]=a.getSetting(n,r);if(c){let h=t.findIndex(g=>g.value===c),p=t[h];u=(0,vs.default)(u,{$splice:[[h,1]],$unshift:[(0,vs.default)(p,{placeholder:{$set:!0},value:{$set:""},label:{$apply:g=>`${g} (${F("default")})`}})]})}else u=(0,vs.default)(u,{$unshift:[{placeholder:!0,value:"",label:i,selected:!1,disabled:!1}]});let d=new Jg.default(s,{placeholder:!0,position:"bottom",searchPlaceholderValue:F("Search..."),searchEnabled:u.length>10,choices:u}).setChoiceByValue("");l&&typeof l=="string"&&d.setChoiceByValue(l);let f=h=>{let p=h.detail.value;p?a.applySettingsUpdate({[n]:{$set:p}}):a.applySettingsUpdate({$unset:[n]})};s.addEventListener("change",f),a.cleanupFns.push(()=>{d.destroy(),s.removeEventListener("change",f)})}),e&&o.descEl.createDiv({},u=>{u.createEl("strong",{text:e})})})}}var Xg=/^\d+(?:\.\d+)?$/,Zg={[dn]:!0,"date-display-format":!0,"date-format":!0,"date-picker-week-start":!0,"date-time-display-format":!0,"date-trigger":!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},qc=class{constructor(n,e,r){this.cleanupFns=[];this.applyDebounceTimer=0;this.app=n.app,this.plugin=n,this.config=e,this.settings=r}applySettingsUpdate(n){clearTimeout(this.applyDebounceTimer),this.applyDebounceTimer=window.setTimeout(()=>{this.settings=(0,Qg.default)(this.settings,n),this.config.onSettingsChange(this.settings)},200)}getSetting(n,e){return e?[this.settings[n],this.plugin.settings[n]]:[this.settings[n],null]}constructUI(n,e,r){let{templateFiles:i,vaultFolders:a,templateWarning:o}=Gg(this.app);n.createEl("h3",{text:e}),r?n.createEl("p",{text:F("These settings will take precedence over the default Kanban board settings.")}):n.createEl("p",{text:F("Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.")}),new $e.Setting(n).setName(F("New line trigger")).setDesc(F("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.")).addDropdown(s=>{s.addOption("shift-enter",F("Shift + Enter")),s.addOption("enter",F("Enter"));let[u,l]=this.getSetting("new-line-trigger",r);s.setValue(u||l||"shift-enter"),s.onChange(c=>{this.applySettingsUpdate({"new-line-trigger":{$set:c}})})}),new $e.Setting(n).setName(F("Prepend / append new cards")).setDesc(F("This setting controls whether new cards are added to the beginning or end of the list.")).addDropdown(s=>{s.addOption("prepend",F("Prepend")),s.addOption("prepend-compact",F("Prepend (compact)")),s.addOption("append",F("Append"));let[u,l]=this.getSetting("new-card-insertion-method",r);s.setValue(u||l||"append"),s.onChange(c=>{this.applySettingsUpdate({"new-card-insertion-method":{$set:c}})})}),new $e.Setting(n).setName(F("Note template")).setDesc(F("This template will be used when creating new notes from Kanban cards.")).then(Wc({choices:i,key:"new-note-template",warningText:o,local:r,placeHolderStr:F("No template"),manager:this})),new $e.Setting(n).setName(F("Note folder")).setDesc(F("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(Wc({choices:a,key:"new-note-folder",local:r,placeHolderStr:F("Default folder"),manager:this})),new $e.Setting(n).setName(F("Lane width")).setDesc(F("Enter a number to set the lane width in pixels.")).addText(s=>{let[u,l]=this.getSetting("lane-width",r);s.inputEl.setAttr("type","number"),s.inputEl.placeholder=`${l||"272"} (default)`,s.inputEl.value=u?u.toString():"",s.onChange(c=>{if(c&&Xg.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 $e.Setting(n).setName(F("Maximum number of archived cards")).setDesc(F("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",r);s.inputEl.setAttr("type","number"),s.inputEl.placeholder=`${l||"-1"} (default)`,s.inputEl.value=u?u.toString():"",s.onChange(c=>{if(c&&Xg.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 $e.Setting(n).setName(F("Display card checkbox")).setDesc(F("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",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-checkboxes",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-checkboxes"]})})})}),new $e.Setting(n).setName(F("Hide tags in card titles")).setDesc(F("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",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-tags-in-title",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-tags-in-title"]})})})}),new $e.Setting(n).setName(F("Hide card display tags")).setDesc(F("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",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-tags-display",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-tags-display"]})})})}),n.createEl("h4",{text:F("Board Header Buttons")}),new $e.Setting(n).setName(F("Add a list")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-add-list",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-add-list",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-add-list"]})})})}),new $e.Setting(n).setName(F("Archive completed cards")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-archive-all",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-archive-all",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-archive-all"]})})})}),new $e.Setting(n).setName(F("Open as markdown")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-view-as-markdown",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-view-as-markdown",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-view-as-markdown"]})})})}),new $e.Setting(n).setName(F("Open board settings")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-board-settings",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-board-settings",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-board-settings"]})})})}),new $e.Setting(n).setName(F("Search...")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-search",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-search",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-search"]})})})}),n.createEl("h4",{text:F("Date & Time")}),new $e.Setting(n).setName(F("Date trigger")).setDesc(F("When this is typed, it will trigger the date selector")).addText(s=>{let[u,l]=this.getSetting("date-trigger",r);(u||l)&&s.setValue(u||l),s.setPlaceholder(l||ys),s.onChange(c=>{c?this.applySettingsUpdate({"date-trigger":{$set:c}}):this.applySettingsUpdate({$unset:["date-trigger"]})})}),new $e.Setting(n).setName(F("Time trigger")).setDesc(F("When this is typed, it will trigger the time selector")).addText(s=>{let[u,l]=this.getSetting("time-trigger",r);(u||l)&&s.setValue(u||l),s.setPlaceholder(l||bs),s.onChange(c=>{c?this.applySettingsUpdate({"time-trigger":{$set:c}}):this.applySettingsUpdate({$unset:["time-trigger"]})})}),new $e.Setting(n).setName(F("Date format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(F("This format will be used when saving dates in markdown.")),f.createEl("br"),f.appendText(F("For more syntax, refer to")+" "),f.createEl("a",{text:F("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),f.createEl("br"),f.appendText(F("Your current syntax looks like this")+": "),u.setSampleEl(f.createEl("b",{cls:"u-pop"})),f.createEl("br")}));let[l,c]=this.getSetting("date-format",r),d=Xr(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 $e.Setting(n).setName(F("Time format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(F("For more syntax, refer to")+" "),f.createEl("a",{text:F("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),f.createEl("br"),f.appendText(F("Your current syntax looks like this")+": "),u.setSampleEl(f.createEl("b",{cls:"u-pop"})),f.createEl("br")}));let[l,c]=this.getSetting("time-format",r),d=Vi(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 $e.Setting(n).setName(F("Date display format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(F("This format will be used when displaying dates in Kanban cards.")),f.createEl("br"),f.appendText(F("For more syntax, refer to")+" "),f.createEl("a",{text:F("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),f.createEl("br"),f.appendText(F("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",r),d=Xr(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 $e.Setting(n).setName(F("Show relative date")).setDesc(F("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",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-relative-date",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-relative-date"]})})})}),new $e.Setting(n).setName(F("Hide card display dates")).setDesc(F("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",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-date-display",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-date-display"]})})})}),new $e.Setting(n).setName(F("Hide dates in card titles")).setDesc(F("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",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-date-in-title",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-date-in-title"]})})})}),new $e.Setting(n).setName(F("Link dates to daily notes")).setDesc(F("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",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("link-date-to-daily-note",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["link-date-to-daily-note"]})})})}),new $e.Setting(n).setName(F("Add date and time to archived cards")).setDesc(F("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",r);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(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("prepend-archive-date",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["prepend-archive-date"]})})})}),new $e.Setting(n).setName(F("Archive date/time separator")).setDesc(F("This will be used to separate the archived date/time from the title")).addText(s=>{let[u,l]=this.getSetting("prepend-archive-separator",r);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 $e.Setting(n).setName(F("Archive date/time format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(T=>{T.appendText(F("For more syntax, refer to")+" "),T.createEl("a",{text:F("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},k=>{k.setAttr("target","_blank")}),T.createEl("br"),T.appendText(F("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",r),[d,f]=this.getSetting("date-format",r),h=d||f||Xr(this.app),[p,g]=this.getSetting("time-format",r),w=p||g||Vi(this.app),S=`${h} ${w}`;u.setPlaceholder(S),u.setDefaultFormat(S),(l||c)&&u.setValue(l||c),u.onChange(T=>{T?this.applySettingsUpdate({"prepend-archive-format":{$set:T}}):this.applySettingsUpdate({$unset:["prepend-archive-format"]})})})}),new $e.Setting(n).setName(F("Calendar: first day of week")).setDesc(F("Override which day is used as the start of the week")).addDropdown(s=>{s.addOption("",F("default")),s.addOption("0",F("Sunday")),s.addOption("1",F("Monday")),s.addOption("2",F("Tuesday")),s.addOption("3",F("Wednesday")),s.addOption("4",F("Thursday")),s.addOption("5",F("Friday")),s.addOption("6",F("Saturday"));let[u,l]=this.getSetting("date-picker-week-start",r);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"]})})}),n.createEl("br"),n.createEl("h4",{text:F("Linked Page Metadata")}),n.createEl("p",{cls:$("metadata-setting-desc"),text:F("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 $e.Setting(n).then(s=>{s.settingEl.addClass($("draggable-setting-container"));let[u]=this.getSetting("metadata-keys",r),l=(u||[]).map(c=>({...Vo,id:Ke(),data:c}));Wg(s.settingEl,n,l,c=>this.applySettingsUpdate({"metadata-keys":{$set:c.map(d=>d.data)}})),this.cleanupFns.push(()=>{s.settingEl&&qg(s.settingEl)})})}cleanUp(){this.cleanupFns.forEach(n=>n()),this.cleanupFns=[]}},ws=class extends $e.Modal{constructor(n,e,r){super(n.app);this.view=n,this.settingsManager=new qc(n.plugin,e,r)}onOpen(){let{contentEl:n,modalEl:e}=this;e.addClass($("board-settings-modal")),this.settingsManager.constructUI(n,this.view.file.basename,!0)}onClose(){let{contentEl:n}=this;this.settingsManager.cleanUp(),n.empty()}},Yc=class extends $e.PluginSettingTab{constructor(n,e){super(n.app,n);this.plugin=n,this.settingsManager=new qc(n,e,n.settings)}display(){let{containerEl:n}=this;n.empty(),n.addClass($("board-settings-modal")),this.settingsManager.constructUI(n,F("Kanban Plugin"),!1)}};var _n="kanban",Es="blocks",Nr=class extends ev.TextFileView{constructor(n,e){super(n);this.actionButtons={};this.plugin=e,this.emitter=us(),this.emitter.on("hotkey",r=>{switch(r){case"daily-notes:goto-prev":{rp(this.app,this.file);break}case"daily-notes:goto-next":{np(this.app,this.file);break}}})}get isPrimary(){var n;return((n=this.plugin.getStateManager(this.file))==null?void 0:n.getAView())===this}get id(){var n;return`${this.leaf.id}:::${(n=this.file)==null?void 0:n.path}`}get isShiftPressed(){return this.plugin.isShiftPressed}setBoard(n,e=!0){this.plugin.stateManagers.get(this.file).setState(n,e)}getBoard(){return this.plugin.stateManagers.get(this.file).state}getViewType(){return _n}getIcon(){return Es}getDisplayText(){var n;return((n=this.file)==null?void 0:n.basename)||"Kanban"}async onLoadFile(n){try{return await super.onLoadFile(n)}catch(e){throw this.plugin.stateManagers.get(this.file).setError(e),e}}destroy(){this.plugin.removeView(this),Object.values(this.actionButtons).forEach(n=>n.remove()),this.actionButtons={}}async onClose(){this.destroy()}async onUnloadFile(n){return this.destroy(),await super.onUnloadFile(n)}handleRename(n,e){this.file.path===n&&this.plugin.handleViewFileRename(this,e)}requestSaveToDisk(n){this.data!==n&&this.isPrimary?(this.data=n,this.requestSave()):this.data=n}getViewData(){return this.data}setViewData(n,e){if(!ip(n)){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,n,!e&&this.isPrimary)}getPortal(){let n=this.plugin.stateManagers.get(this.file);return v.createElement(Vg,{stateManager:n,view:this})}onMoreOptionsMenu(n){n.addItem(e=>{e.setTitle(F("Open as markdown")).setIcon("document").onClick(()=>{this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.setMarkdownView(this.leaf)})}).addItem(e=>{e.setTitle(F("Open board settings")).setIcon("gear").onClick(()=>{let r=this.plugin.stateManagers.get(this.file),i=r.state;new ws(this,{onSettingsChange:a=>{let o=(0,Jc.default)(i,{data:{settings:{$set:a}}});r.setState(o)}},i.data.settings).open()})}).addItem(e=>{e.setTitle(F("Archive completed cards")).setIcon("sheets-in-box").onClick(()=>{this.plugin.stateManagers.get(this.file).archiveCompletedCards()})}).addSeparator(),super.onMoreOptionsMenu(n)}initHeaderButtons(){let n=this.plugin.getStateManager(this.file);if(!!n)if(n.getSetting("show-board-settings")&&!this.actionButtons["show-board-settings"]?this.actionButtons["show-board-settings"]=this.addAction("gear",F("Open board settings"),()=>{let e=this.plugin.stateManagers.get(this.file),r=e.state;new ws(this,{onSettingsChange:i=>{let a=(0,Jc.default)(r,{data:{settings:{$set:i}}});e.setState(a)}},r.data.settings).open()}):!n.getSetting("show-board-settings")&&this.actionButtons["show-board-settings"]&&(this.actionButtons["show-board-settings"].remove(),delete this.actionButtons["show-board-settings"]),n.getSetting("show-search")&&!this.actionButtons["show-search"]?this.actionButtons["show-search"]=this.addAction("search",F("Search..."),()=>{this.emitter.emit("hotkey","editor:open-search")}):!n.getSetting("show-search")&&this.actionButtons["show-search"]&&(this.actionButtons["show-search"].remove(),delete this.actionButtons["show-search"]),n.getSetting("show-view-as-markdown")&&!this.actionButtons["show-view-as-markdown"]?this.actionButtons["show-view-as-markdown"]=this.addAction("document",F("Open as markdown"),()=>{this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.setMarkdownView(this.leaf)}):!n.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"]),n.getSetting("show-archive-all")&&!this.actionButtons["show-archive-all"]?this.actionButtons["show-archive-all"]=this.addAction("sheets-in-box",F("Archive completed cards"),()=>{this.plugin.stateManagers.get(this.file).archiveCompletedCards()}):!n.getSetting("show-archive-all")&&this.actionButtons["show-archive-all"]&&(this.actionButtons["show-archive-all"].remove(),delete this.actionButtons["show-archive-all"]),n.getSetting("show-add-list")&&!this.actionButtons["show-add-list"]){let e=this.addAction("plus-with-circle",F("Add a list"),()=>{this.emitter.emit("showLaneForm",void 0)});e.addClass($("ignore-click-outside")),this.actionButtons["show-add-list"]=e}else!n.getSetting("show-add-list")&&this.actionButtons["show-add-list"]&&(this.actionButtons["show-add-list"].remove(),delete this.actionButtons["show-add-list"])}clear(){}};var Ii=me(It()),vy=me(require("obsidian"));var Gc={};Oi(Gc,{JsonPatchError:()=>st,_areEquals:()=>ka,applyOperation:()=>Fr,applyPatch:()=>Ms,applyReducer:()=>fk,deepClone:()=>uk,getValueByPointer:()=>Ts,validate:()=>nv,validator:()=>Cs});var lk=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},t(n,e)};return function(n,e){t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ck=Object.prototype.hasOwnProperty;function Ss(t,n){return ck.call(t,n)}function xs(t){if(Array.isArray(t)){for(var e=new Array(t.length),n=0;n=48&&r<=57){n++;continue}return!1}return!0}function $n(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Sa(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function _s(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var n=0,e=t.length;n=d){if(e&&n.op==="add"&&h>l.length)throw new st("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,n,t);var o=dk[n.op].call(n,l,h,t);if(o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o}}else if(c>=d){var o=xi[n.op].call(n,l,h,t);if(o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o}if(l=l[h],e&&c0)throw new st('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",n,t,e);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new st("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,e);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new st("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,e);if((t.op==="add"||t.op==="replace"||t.op==="test")&&_s(t.value))throw new st("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,e);if(e){if(t.op=="add"){var i=t.path.split("/").length,a=r.split("/").length;if(i!==a+1&&i!==a)throw new st("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,e)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==r)throw new st("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,e)}else if(t.op==="move"||t.op==="copy"){var o={op:"_get",path:t.from,value:void 0},s=nv([o],e);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new st("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,e)}}}else throw new st("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,e)}function nv(t,n,e){try{if(!Array.isArray(t))throw new st("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(n)Ms(Tt(n),Tt(t),e||!0);else{e=e||Cs;for(var r=0;reu,generate:()=>Xc,observe:()=>bk,unobserve:()=>yk});var Qc=new WeakMap,hk=function(){function t(n){this.observers=new Map,this.obj=n}return t}(),pk=function(){function t(n,e){this.callback=n,this.observer=e}return t}();function mk(t){return Qc.get(t)}function gk(t,n){return t.observers.get(n)}function vk(t,n){t.observers.delete(n.callback)}function yk(t,n){n.unobserve()}function bk(t,n){var e=[],r,i=mk(t);if(!i)i=new hk(t),Qc.set(t,i);else{var a=gk(i,n);r=a&&a.observer}if(r)return r;if(r={},i.value=Tt(t),n){r.callback=n,r.next=null;var o=function(){Xc(r)},s=function(){clearTimeout(r.next),r.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 r.patches=e,r.object=t,r.unobserve=function(){Xc(r),clearTimeout(r.next),vk(i,r),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(n,new pk(n,r)),r}function Xc(t,n){n===void 0&&(n=!1);var e=Qc.get(t.object);Zc(e.value,t.object,t.patches,"",n),t.patches.length&&Ms(e.value,t.patches);var r=t.patches;return r.length>0&&(t.patches=[],t.callback&&t.callback(r)),r}function Zc(t,n,e,r,i){if(n!==t){typeof n.toJSON=="function"&&(n=n.toJSON());for(var a=xs(n),o=xs(t),s=!1,u=!1,l=o.length-1;l>=0;l--){var c=o[l],d=t[c];if(Ss(n,c)&&!(n[c]===void 0&&d!==void 0&&Array.isArray(n)===!1)){var f=n[c];typeof d=="object"&&d!=null&&typeof f=="object"&&f!=null&&Array.isArray(d)===Array.isArray(f)?Zc(d,f,e,r+"/"+$n(c),i):d!==f&&(s=!0,i&&e.push({op:"test",path:r+"/"+$n(c),value:Tt(d)}),e.push({op:"replace",path:r+"/"+$n(c),value:Tt(f)}))}else Array.isArray(t)===Array.isArray(n)?(i&&e.push({op:"test",path:r+"/"+$n(c),value:Tt(d)}),e.push({op:"remove",path:r+"/"+$n(c)}),u=!0):(i&&e.push({op:"test",path:r,value:t}),e.push({op:"replace",path:r,value:n}),s=!0)}if(!(!u&&a.length==o.length))for(var l=0;l":""))+")"})),f;function f(){let h=[],p,g,w;if((!n||i(s,u,l[l.length-1]||null))&&(h=kk(e(s,l)),h[0]===ru))return h;if(s.children&&h[0]!==cv)for(g=(r?s.children.length:-1)+a,w=l.concat(s);g>-1&&g!0){for(let i=n+1,a=t.length;i{try{await pv(t,e),await Promise.all(e.children.map(r=>Ta(t,r)))}catch(r){throw t.setError(r),r}}))}catch(e){throw t.setError(e),e}return n}function _k(t){return(t.op==="add"||t.op==="replace")&&["/title","/titleRaw","/dateStr","/timeStr",/\d$/,/\/fileAccessor\/.+$/].some(n=>typeof n=="string"?t.path.endsWith(n):n.test(t.path))}async function gv(t,n,e){let r={},i=e.reduce((a,o)=>{if(!_k(o))return a;let s=o.path.split("/").reduce((l,c)=>(/\d+/.test(c)&&l.push(Number(c)),l),[]),u=s.join(",");return r[u]||(r[u]=!0,a.push(s)),a},[]);try{await Promise.all(i.map(a=>{let o=vt(n,a);if(o.type===Xe.Lane)return pv(t,o);if(o.type===Xe.Item)return Ta(t,o)}))}catch(a){throw t.setError(a),a}return n}function Is(t,n){let e=n.end-n.start;return t.slice(0,n.start)+"\0".repeat(e)+t.slice(n.end)}function vv(t){return t.replace(/\s*\0+\s*/g," ").trim()}function Mt(t,n,e,r){let i=t.length,a=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,e=e>0?e:0,r.length<1e4)o=Array.from(r),o.unshift(n,e),[].splice.apply(t,o);else for(e&&[].splice.apply(t,[n,e]);a0?(Mt(t,t.length,0,n),t):n}var yv={}.hasOwnProperty;function bv(t){let n={},e=-1;for(;++eo))return;let O=n.events.length,B=O,z,Q;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){if(z){Q=n.events[B][1].end;break}z=!0}for(S(r),C=O;Ck;){let N=e[D];n.containerState=N[1],N[0].exit.call(n,t)}e.length=k}function T(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ak(t,n,e){return ke(t,t.attempt(this.parser.constructs.document,n,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function lu(t){if(t===null||Je(t)||xv(t))return 1;if(kv(t))return 2}function ki(t,n,e){let r=[],i=-1;for(;++i1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let d=Object.assign({},t[r][1].end),f=Object.assign({},t[e][1].start);Cv(d,-u),Cv(f,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},t[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:f},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[e][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},t[r][1].end=Object.assign({},o.start),t[e][1].start=Object.assign({},s.end),l=[],t[r][1].end.offset-t[r][1].start.offset&&(l=Vt(l,[["enter",t[r][1],n],["exit",t[r][1],n]])),l=Vt(l,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),l=Vt(l,ki(n.parser.constructs.insideSpan.null,t.slice(r+1,e),n)),l=Vt(l,[["exit",a,n],["enter",s,n],["exit",s,n],["exit",i,n]]),t[e][1].end.offset-t[e][1].start.offset?(c=2,l=Vt(l,[["enter",t[e][1],n],["exit",t[e][1],n]])):c=0,Mt(t,r-1,e-r+3,l),e=r+l.length-c-2;break}}for(e=-1;++e",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",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",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",Ium:"\xCF",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",L:"<",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}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",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",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",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",THOR:"\xDE",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",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",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",Uum:"\xDC",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",Yacut:"\xDD",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}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",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",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",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",brvba:"\xA6",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",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",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",cop:"\xA9",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",curre:"\xA4",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",de:"\xB0",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",divid:"\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",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",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",et:"\xF0",eth:"\xF0",eum:"\xEB",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",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",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",g:">",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",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",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",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",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",laqu:"\xAB",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",l:"<",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",mac:"\xAF",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",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",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",nbs:"\xA0",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}",no:"\xAC",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",ntild:"\xF1",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",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",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:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",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",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",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",quo:'"',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",raqu:"\xBB",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",re:"\xAE",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",sec:"\xA7",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",sh:"\xAD",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",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",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",szli:"\xDF",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",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",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",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",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",uum:"\xFC",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",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",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 Bk={}.hasOwnProperty;function _i(t){return Bk.call(uu,t)?uu[t]:!1}var Os={name:"characterReference",tokenize:Kk};function Kk(t,n,e){let r=this,i=0,a,o;return s;function s(d){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),u}function u(d){return d===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(d),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),a=31,o=jt,c(d))}function l(d){return d===88||d===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(d),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,o=Ev,c):(t.enter("characterReferenceValue"),a=7,o=Ma,c(d))}function c(d){let f;return d===59&&i?(f=t.exit("characterReferenceValue"),o===jt&&!_i(r.sliceSerialize(f))?e(d):(t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),t.exit("characterReference"),n)):o(d)&&i++=4?o(l):e(l)}function o(l){return l===null?u(l):se(l)?t.attempt(Uk,o,u)(l):(t.enter("codeFlowValue"),s(l))}function s(l){return l===null||se(l)?(t.exit("codeFlowValue"),o(l)):(t.consume(l),s)}function u(l){return t.exit("codeIndented"),n(l)}}function Vk(t,n,e){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?e(o):se(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):ke(t,a,"linePrefix",4+1)(o)}function a(o){let s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):se(o)?i(o):e(o)}}var du={name:"codeText",tokenize:qk,resolve:jk,previous:Wk};function jk(t){let n=t.length-4,e=3,r,i;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[n][1].type==="lineEnding"||t[n][1].type==="space")){for(r=e;++r=4?n(o):t.interrupt(r.parser.constructs.flow,e,n)(o)}}function Rs(t,n,e,r,i,a,o,s,u){let l=u||Number.POSITIVE_INFINITY,c=0;return d;function d(S){return S===60?(t.enter(r),t.enter(i),t.enter(a),t.consume(S),t.exit(a),f):S===null||S===41||Ca(S)?e(S):(t.enter(r),t.enter(o),t.enter(s),t.enter("chunkString",{contentType:"string"}),g(S))}function f(S){return S===62?(t.enter(a),t.consume(S),t.exit(a),t.exit(i),t.exit(r),n):(t.enter(s),t.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===62?(t.exit("chunkString"),t.exit(s),f(S)):S===null||S===60||se(S)?e(S):(t.consume(S),S===92?p:h)}function p(S){return S===60||S===62||S===92?(t.consume(S),h):h(S)}function g(S){return S===40?++c>l?e(S):(t.consume(S),g):S===41?c--?(t.consume(S),g):(t.exit("chunkString"),t.exit(s),t.exit(o),t.exit(r),n(S)):S===null||Je(S)?c?e(S):(t.exit("chunkString"),t.exit(s),t.exit(o),t.exit(r),n(S)):Ca(S)?e(S):(t.consume(S),S===92?w:g)}function w(S){return S===40||S===41||S===92?(t.consume(S),g):g(S)}}function Hs(t,n,e,r,i,a){let o=this,s=0,u;return l;function l(h){return t.enter(r),t.enter(i),t.consume(h),t.exit(i),t.enter(a),c}function c(h){return h===null||h===91||h===93&&!u||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs||s>999?e(h):h===93?(t.exit(a),t.enter(i),t.consume(h),t.exit(i),t.exit(r),n):se(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||se(h)||s++>999?(t.exit("chunkString"),c(h)):(t.consume(h),u=u||!He(h),h===92?f:d)}function f(h){return h===91||h===92||h===93?(t.consume(h),s++,d):d(h)}}function Bs(t,n,e,r,i,a){let o;return s;function s(f){return t.enter(r),t.enter(i),t.consume(f),t.exit(i),o=f===40?41:f,u}function u(f){return f===o?(t.enter(i),t.consume(f),t.exit(i),t.exit(r),n):(t.enter(a),l(f))}function l(f){return f===o?(t.exit(a),u(o)):f===null?e(f):se(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),ke(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||se(f)?(t.exit("chunkString"),l(f)):(t.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(t.consume(f),c):c(f)}}function Rr(t,n){let e;return r;function r(i){return se(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e=!0,r):He(i)?ke(t,r,e?"linePrefix":"lineSuffix")(i):n(i)}}function ir(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var hu={name:"definition",tokenize:e0},Zk={tokenize:t0,partial:!0};function e0(t,n,e){let r=this,i;return a;function a(u){return t.enter("definition"),Hs.call(r,t,o,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(u)}function o(u){return i=ir(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(t.enter("definitionMarker"),t.consume(u),t.exit("definitionMarker"),Rr(t,Rs(t,t.attempt(Zk,ke(t,s,"whitespace"),ke(t,s,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(u)}function s(u){return u===null||se(u)?(t.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),n(u)):e(u)}}function t0(t,n,e){return r;function r(o){return Je(o)?Rr(t,i)(o):e(o)}function i(o){return o===34||o===39||o===40?Bs(t,ke(t,a,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(o):e(o)}function a(o){return o===null||se(o)?n(o):e(o)}}var pu={name:"hardBreakEscape",tokenize:n0};function n0(t,n,e){return r;function r(a){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(a),i}function i(a){return se(a)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),n(a)):e(a)}}var mu={name:"headingAtx",tokenize:i0,resolve:r0};function r0(t,n){let e=t.length-2,r=3,i,a;return t[r][1].type==="whitespace"&&(r+=2),e-2>r&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(r===e-1||e-4>r&&t[e-2][1].type==="whitespace")&&(e-=r+1===e?2:4),e>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[e][1].end},a={type:"chunkText",start:t[r][1].start,end:t[e][1].end,contentType:"text"},Mt(t,r,e-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),t}function i0(t,n,e){let r=this,i=0;return a;function a(c){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&i++<6?(t.consume(c),o):c===null||Je(c)?(t.exit("atxHeadingSequence"),r.interrupt?n(c):s(c)):e(c)}function s(c){return c===35?(t.enter("atxHeadingSequence"),u(c)):c===null||se(c)?(t.exit("atxHeading"),n(c)):He(c)?ke(t,s,"whitespace")(c):(t.enter("atxHeadingText"),l(c))}function u(c){return c===35?(t.consume(c),u):(t.exit("atxHeadingSequence"),s(c))}function l(c){return c===null||c===35||Je(c)?(t.exit("atxHeadingText"),s(c)):(t.consume(c),l)}}var Dv=["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","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gu=["pre","script","style","textarea"];var vu={name:"htmlFlow",tokenize:s0,resolveTo:o0,concrete:!0},a0={tokenize:l0,partial:!0};function o0(t){let n=t.length;for(;n--&&!(t[n][0]==="enter"&&t[n][1].type==="htmlFlow"););return n>1&&t[n-2][1].type==="linePrefix"&&(t[n][1].start=t[n-2][1].start,t[n+1][1].start=t[n-2][1].start,t.splice(n-2,2)),t}function s0(t,n,e){let r=this,i,a,o,s,u;return l;function l(I){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(I),c}function c(I){return I===33?(t.consume(I),d):I===47?(t.consume(I),p):I===63?(t.consume(I),i=3,r.interrupt?n:he):fn(I)?(t.consume(I),o=String.fromCharCode(I),a=!0,g):e(I)}function d(I){return I===45?(t.consume(I),i=2,f):I===91?(t.consume(I),i=5,o="CDATA[",s=0,h):fn(I)?(t.consume(I),i=4,r.interrupt?n:he):e(I)}function f(I){return I===45?(t.consume(I),r.interrupt?n:he):e(I)}function h(I){return I===o.charCodeAt(s++)?(t.consume(I),s===o.length?r.interrupt?n:X:h):e(I)}function p(I){return fn(I)?(t.consume(I),o=String.fromCharCode(I),g):e(I)}function g(I){return I===null||I===47||I===62||Je(I)?I!==47&&a&&gu.includes(o.toLowerCase())?(i=1,r.interrupt?n(I):X(I)):Dv.includes(o.toLowerCase())?(i=6,I===47?(t.consume(I),w):r.interrupt?n(I):X(I)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?e(I):a?T(I):S(I)):I===45||jt(I)?(t.consume(I),o+=String.fromCharCode(I),g):e(I)}function w(I){return I===62?(t.consume(I),r.interrupt?n:X):e(I)}function S(I){return He(I)?(t.consume(I),S):z(I)}function T(I){return I===47?(t.consume(I),z):I===58||I===95||fn(I)?(t.consume(I),k):He(I)?(t.consume(I),T):z(I)}function k(I){return I===45||I===46||I===58||I===95||jt(I)?(t.consume(I),k):D(I)}function D(I){return I===61?(t.consume(I),N):He(I)?(t.consume(I),D):T(I)}function N(I){return I===null||I===60||I===61||I===62||I===96?e(I):I===34||I===39?(t.consume(I),u=I,C):He(I)?(t.consume(I),N):(u=null,O(I))}function C(I){return I===null||se(I)?e(I):I===u?(t.consume(I),B):(t.consume(I),C)}function O(I){return I===null||I===34||I===39||I===60||I===61||I===62||I===96||Je(I)?D(I):(t.consume(I),O)}function B(I){return I===47||I===62||He(I)?T(I):e(I)}function z(I){return I===62?(t.consume(I),Q):e(I)}function Q(I){return He(I)?(t.consume(I),Q):I===null||se(I)?X(I):e(I)}function X(I){return I===45&&i===2?(t.consume(I),te):I===60&&i===1?(t.consume(I),ce):I===62&&i===4?(t.consume(I),De):I===63&&i===3?(t.consume(I),he):I===93&&i===5?(t.consume(I),fe):se(I)&&(i===6||i===7)?t.check(a0,De,ie)(I):I===null||se(I)?ie(I):(t.consume(I),X)}function ie(I){return t.exit("htmlFlowData"),q(I)}function q(I){return I===null?A(I):se(I)?t.attempt({tokenize:J,partial:!0},q,A)(I):(t.enter("htmlFlowData"),X(I))}function J(I,et,qe){return K;function K(U){return I.enter("lineEnding"),I.consume(U),I.exit("lineEnding"),V}function V(U){return r.parser.lazy[r.now().line]?qe(U):et(U)}}function te(I){return I===45?(t.consume(I),he):X(I)}function ce(I){return I===47?(t.consume(I),o="",de):X(I)}function de(I){return I===62&&gu.includes(o.toLowerCase())?(t.consume(I),De):fn(I)&&o.length<8?(t.consume(I),o+=String.fromCharCode(I),de):X(I)}function fe(I){return I===93?(t.consume(I),he):X(I)}function he(I){return I===62?(t.consume(I),De):I===45&&i===2?(t.consume(I),he):X(I)}function De(I){return I===null||se(I)?(t.exit("htmlFlowData"),A(I)):(t.consume(I),De)}function A(I){return t.exit("htmlFlow"),n(I)}}function l0(t,n,e){return r;function r(i){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(Er,n,e)}}var yu={name:"htmlText",tokenize:c0};function c0(t,n,e){let r=this,i,a,o,s;return u;function u(A){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(A),l}function l(A){return A===33?(t.consume(A),c):A===47?(t.consume(A),O):A===63?(t.consume(A),N):fn(A)?(t.consume(A),Q):e(A)}function c(A){return A===45?(t.consume(A),d):A===91?(t.consume(A),a="CDATA[",o=0,w):fn(A)?(t.consume(A),D):e(A)}function d(A){return A===45?(t.consume(A),f):e(A)}function f(A){return A===null||A===62?e(A):A===45?(t.consume(A),h):p(A)}function h(A){return A===null||A===62?e(A):p(A)}function p(A){return A===null?e(A):A===45?(t.consume(A),g):se(A)?(s=p,fe(A)):(t.consume(A),p)}function g(A){return A===45?(t.consume(A),De):p(A)}function w(A){return A===a.charCodeAt(o++)?(t.consume(A),o===a.length?S:w):e(A)}function S(A){return A===null?e(A):A===93?(t.consume(A),T):se(A)?(s=S,fe(A)):(t.consume(A),S)}function T(A){return A===93?(t.consume(A),k):S(A)}function k(A){return A===62?De(A):A===93?(t.consume(A),k):S(A)}function D(A){return A===null||A===62?De(A):se(A)?(s=D,fe(A)):(t.consume(A),D)}function N(A){return A===null?e(A):A===63?(t.consume(A),C):se(A)?(s=N,fe(A)):(t.consume(A),N)}function C(A){return A===62?De(A):N(A)}function O(A){return fn(A)?(t.consume(A),B):e(A)}function B(A){return A===45||jt(A)?(t.consume(A),B):z(A)}function z(A){return se(A)?(s=z,fe(A)):He(A)?(t.consume(A),z):De(A)}function Q(A){return A===45||jt(A)?(t.consume(A),Q):A===47||A===62||Je(A)?X(A):e(A)}function X(A){return A===47?(t.consume(A),De):A===58||A===95||fn(A)?(t.consume(A),ie):se(A)?(s=X,fe(A)):He(A)?(t.consume(A),X):De(A)}function ie(A){return A===45||A===46||A===58||A===95||jt(A)?(t.consume(A),ie):q(A)}function q(A){return A===61?(t.consume(A),J):se(A)?(s=q,fe(A)):He(A)?(t.consume(A),q):X(A)}function J(A){return A===null||A===60||A===61||A===62||A===96?e(A):A===34||A===39?(t.consume(A),i=A,te):se(A)?(s=J,fe(A)):He(A)?(t.consume(A),J):(t.consume(A),i=void 0,de)}function te(A){return A===i?(t.consume(A),ce):A===null?e(A):se(A)?(s=te,fe(A)):(t.consume(A),te)}function ce(A){return A===62||A===47||Je(A)?X(A):e(A)}function de(A){return A===null||A===34||A===39||A===60||A===61||A===96?e(A):A===62||Je(A)?X(A):(t.consume(A),de)}function fe(A){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),ke(t,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function he(A){return t.enter("htmlTextData"),s(A)}function De(A){return A===62?(t.consume(A),t.exit("htmlTextData"),t.exit("htmlText"),n):e(A)}}var Hr={name:"labelEnd",tokenize:m0,resolveTo:p0,resolveAll:h0},u0={tokenize:g0},d0={tokenize:v0},f0={tokenize:y0};function h0(t){let n=-1,e;for(;++n-1&&(o[0]=o[0].slice(r)),a>0&&o.push(t[i].slice(0,a))),o}function N0(t,n){let e=-1,r=[],i;for(;++ez0,contentInitial:()=>R0,disable:()=>V0,document:()=>F0,flow:()=>B0,flowInitial:()=>H0,insideSpan:()=>U0,string:()=>K0,text:()=>$0});var F0={[42]:Ht,[43]:Ht,[45]:Ht,[48]:Ht,[49]:Ht,[50]:Ht,[51]:Ht,[52]:Ht,[53]:Ht,[54]:Ht,[55]:Ht,[56]:Ht,[57]:Ht,[62]:Ls},R0={[91]:hu},H0={[-2]:Aa,[-1]:Aa,[32]:Aa},B0={[35]:mu,[42]:Br,[45]:[Ks,Br],[60]:vu,[61]:Ks,[95]:Br,[96]:Ns,[126]:Ns},K0={[38]:Os,[92]:Ps},$0={[-5]:Ia,[-4]:Ia,[-3]:Ia,[33]:bu,[38]:Os,[42]:Da,[60]:[cu,yu],[91]:wu,[92]:[pu,Ps],[93]:Hr,[95]:Da,[96]:du},U0={null:[Da,Iv]},z0={null:[42,95]},V0={null:[]};function Rv(t={}){let n=bv([Eu].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:n,content:r(_v),document:r(Tv),flow:r(Av),string:r(Lv),text:r(Pv)};return e;function r(i){return a;function a(o){return Fv(e,i,o)}}}var Hv=/[\0\t\n\r]/g;function Bv(){let t=1,n="",e=!0,r;return i;function i(a,o,s){let u=[],l,c,d,f,h;for(a=n+a.toString(o),d=0,n="",e&&(a.charCodeAt(0)===65279&&d++,e=void 0);d13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)==65535||(e&65535)==65534||e>1114111?"\uFFFD":String.fromCharCode(e)}var j0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $v(t){return t.replace(j0,W0)}function W0(t,n,e){if(n)return n;if(e.charCodeAt(0)===35){let i=e.charCodeAt(1),a=i===120||i===88;return $s(e.slice(a?2:1),a?16:10)}return _i(e)||t}var Ti={}.hasOwnProperty;function La(t){return!t||typeof t!="object"?"":Ti.call(t,"position")||Ti.call(t,"type")?Uv(t.position):Ti.call(t,"start")||Ti.call(t,"end")?Uv(t):Ti.call(t,"line")||Ti.call(t,"column")?Su(t):""}function Su(t){return zv(t&&t.line)+":"+zv(t&&t.column)}function Uv(t){return Su(t&&t.start)+"-"+Su(t&&t.end)}function zv(t){return t&&typeof t=="number"?t:1}var xu={}.hasOwnProperty,Us=function(t,n,e){return typeof n!="string"&&(e=n,n=void 0),q0(e)(Kv(Rv(e).document().write(Bv()(t,n,!0))))};function q0(t={}){let n=Vv({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(zn),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:u(nn),blockQuote:u(Ge),characterEscape:ie,characterReference:ie,codeFenced:u(ht),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(ht,l),codeText:u(pt,l),codeTextData:ie,data:ie,codeFlowValue:ie,definition:u(tn),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(yn),hardBreakEscape:u(Wt),hardBreakTrailing:u(Wt),htmlFlow:u(Ct,l),htmlFlowData:ie,htmlText:u(Ct,l),htmlTextData:ie,image:u(Un),label:l,link:u(zn),listItem:u(Mn),listItemValue:g,listOrdered:u(Tn,p),listUnordered:u(Tn),paragraph:u(Cn),reference:V,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(nn),strong:u(lt),thematicBreak:u(tt)},exit:{atxHeading:d(),atxHeadingSequence:B,autolink:d(),autolinkEmail:Fe,autolinkProtocol:Ee,blockQuote:d(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:G,characterReferenceMarkerNumeric:G,characterReferenceValue:ye,codeFenced:d(k),codeFencedFence:T,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:q,codeIndented:d(D),codeText:d(fe),codeTextData:q,data:q,definition:d(),definitionDestinationString:O,definitionLabelString:N,definitionTitleString:C,emphasis:d(),hardBreakEscape:d(te),hardBreakTrailing:d(te),htmlFlow:d(ce),htmlFlowData:q,htmlText:d(de),htmlTextData:q,image:d(De),label:I,labelText:A,lineEnding:J,link:d(he),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:et,resourceTitleString:qe,resource:K,setextHeading:d(X),setextHeadingLineSequence:Q,setextHeadingText:z,strong:d(),thematicBreak:d()}},t.mdastExtensions||[]),e={};return r;function r(j){let ne={type:"root",children:[]},be=[ne],Be=[],ct=[],rn={stack:be,tokenStack:Be,config:n,enter:c,exit:f,buffer:l,resume:h,setData:a,getData:o},Ue=-1;for(;++Ue0){let Se=Be[Be.length-1];(Se[1]||jv).call(rn,void 0,Se[0])}for(ne.position={start:s(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:s(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue".charCodeAt(0)?o(p):(i.enter(t),i.enter(`${t}Marker`),d(p))}function d(p){return u===n.length?(i.exit(`${t}Marker`),f(p)):p!==n.charCodeAt(u)?o(p):(i.consume(p),u++,d)}function f(p){return i.enter(`${t}Data`),i.enter(`${t}Target`),h(p)}function h(p){return Je(p)||"<".charCodeAt(0)===p||"#".charCodeAt(0)===p||p===null?s?(i.exit(`${t}Target`),i.exit(`${t}Data`),i.exit(t),a(p)):o(p):(s=!0,i.consume(p),h)}}let r={tokenize:e};return{text:{[n.charCodeAt(0)]:r}}}function ny(){let t="hashtag";function n(i){this.enter({type:t,value:null},i)}function e(i){let a=this.sliceSerialize(i),o=Mi(this.stack);o.value=a}function r(i){this.exit(i)}return{enter:{[t]:n},exit:{[`${t}Target`]:e,[t]:r}}}var Ai={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};var Mu={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 Z0={tokenize:e_},ry={text:{[Ai.leftSquareBracket]:Z0}};function e_(t,n,e){let r=this;return i;function i(s){return r.previous!==Ai.eof||!r._gfmTasklistFirstContentOfListItem?e(s):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(s),t.exit("taskListCheckMarker"),a)}function a(s){return He(s)?(t.enter("taskListCheckValueUnchecked"),t.consume(s),t.exit("taskListCheckValueUnchecked"),o):s!==Ai.rightSquareBracket?(t.enter("taskListCheckValueChecked"),t.consume(s),t.exit("taskListCheckValueChecked"),o):e(s)}function o(s){return s===Ai.rightSquareBracket?(t.enter("taskListCheckMarker"),t.consume(s),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:t_},n,e)):e(s)}}function t_(t,n,e){let r=this;return ke(t,i,Mu.whitespace);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type===Mu.whitespace&&a!==Ai.eof&&!Je(a)?n(a):e(a)}}var iy={exit:{taskListCheckValueChecked:ay,taskListCheckValueUnchecked:ay,paragraph:n_}};function ay(t){let n=this.stack[this.stack.length-2];n.checked=t.type==="taskListCheckValueChecked",n.checkChar=this.sliceSerialize(t)}function n_(t){let n=this.stack[this.stack.length-2],e=this.stack[this.stack.length-1],r=n.children,i=e.children[0],a=-1,o;if(n&&n.type==="listItem"&&typeof n.checked=="boolean"&&i&&i.type==="text"){for(;++a=0;i--){if(!n&&/[`%\n\r]/.test(t[i])){t[i]==="`"&&(e++,e===3&&(n=!0,r=i-1));continue}else if(!n)return{};if(t[i]==="`"&&t[i-1]==="`"&&t[i-2]==="`"&&/[\r\n]/.test(t[i-3]))return JSON.parse(t.slice(i+1,r).trim())}}function sy(t){return[ry,Ci("date",`${t.getSetting("date-trigger")}{`,"}"),Ci("dateLink",`${t.getSetting("date-trigger")}[[`,"]]"),Ci("time",`${t.getSetting("time-trigger")}{`,"}"),Ci("embedWikilink","![[","]]"),Ci("wikilink","[[","]]"),ty(),Xv()]}function ly(t){return[iy,Di("date",(n,e)=>{!n||(e.date=n)}),Di("dateLink",(n,e)=>{!n||(e.date=n)}),Di("time",(n,e)=>{!n||(e.time=n)}),Di("embedWikilink",(n,e)=>{if(!n)return;let r=Pr(n),i=t.app.metadataCache.getFirstLinkpathDest(r.root,t.file.path);e.fileAccessor={target:r.root,isEmbed:!0,stats:i==null?void 0:i.stat}}),Di("wikilink",(n,e)=>{if(!n)return;let r=Pr(n),i=t.app.metadataCache.getFirstLinkpathDest(r.root,t.file.path);if(e.fileAccessor={target:r.root,isEmbed:!1},i){let a=Vc(t,i);e.fileMetadata=a.fileMetadata,e.fileMetadataOrder=a.fileMetadataOrder}}),ey((n,e)=>{if(!n.url||/:\/\//.test(n.url)||!/.md$/.test(n.url))return;let r=t.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(n.url),t.file.path);if(e)n.type="embedLink",n.fileAccessor={target:decodeURIComponent(n.url),isEmbed:!0,stats:r.stat};else if(n.fileAccessor={target:decodeURIComponent(n.url),isEmbed:!1},r){let i=Vc(t,r);n.fileMetadata=i.fileMetadata,n.fileMetadataOrder=i.fileMetadataOrder}}),ny(),Zv()]}function cy(t,n){let e=r_(n),i={...i_(n)},a={};return Object.keys(e).forEach(o=>{o===dn?(i[o]=e[o],a[o]=e[o]):Zg[o]?i[o]=e[o]:a[o]=e[o]}),t.compileSettings(i),{settings:i,frontmatter:a,ast:Us(n,{extensions:[_u(["yaml"]),...sy(t)],mdastExtensions:[Jv(["yaml"]),...ly(t)]})}}function Cu(t,n){return Us(n,{extensions:sy(t),mdastExtensions:ly(t)})}function Ws(t,n,e){let r=t.getSetting("hide-tags-in-title"),i=t.getSetting("hide-date-in-title"),a=iu(e.children[0]),o=au(n,a);(o==="[ ]"||o==="[x]")&&(o="");let s=o,u={titleRaw:o.replace(/
/g,` `),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:!!e.checked};return dv(e,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),r&&(s=Is(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=Is(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=Is(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=vv(s).replace(/
/g,` `),u}function a_(t,n,e){if(t.type!=="heading"||_a(t,{includeImageAlt:!1})!==F("Archive"))return!1;let r=fv(n,e);return r&&r.type==="thematicBreak"}function dy(t,n,e,r,i){let a=[],o=[];return r.children.forEach((s,u)=>{if(s.type==="heading"){let l=a_(s,r.children,u),c=iu(s),d=au(i,c),f=!1,h=hv(r.children,u,"list",p=>{if(p.type==="heading")return!1;if(p.type==="paragraph"){let g=_a(p);if(g.startsWith("%% kanban:settings"))return!1;if(g===F("Complete"))return f=!0,!0}return!0});if(l&&h){o.push(...h.children.map(p=>({...Uo,id:Ke(),data:Ws(t,i,p)})));return}h?a.push({...mr,children:h.children.map(p=>({...Uo,id:Ke(),data:Ws(t,i,p)})),id:Ke(),data:{title:d,shouldMarkItemsComplete:f}}):a.push({...mr,children:[],id:Ke(),data:{title:d,shouldMarkItemsComplete:f}})}}),{...zo,id:t.file.path,children:a,data:{settings:n,frontmatter:e,archive:o,isSearching:!1,errors:[]}}}async function Du(t,n,e){let r=`- [${n.data.isComplete?"x":" "}] ${e.replace(/(\r\n|\n)/g,"
").trim()}${n.data.blockId?` ^${n.data.blockId}`:""}`,i=Cu(t,r),a=Ws(t,r,i.children[0].children[0]),o=(0,js.default)(n,{data:{$set:a}});try{await Ta(t,o)}catch(s){console.error(s)}return o}async function fy(t,n,e,r){let i=`- [${e?"x":" "}] ${n.trim().replace(/(\r\n|\n)/g,"
")}`,a=Cu(t,i),o=Ws(t,i,a.children[0].children[0]);o.forceEditMode=!!r;let s={...Uo,id:Ke(),data:o};try{await Ta(t,s)}catch(u){console.error(u)}return s}async function hy(t,n){try{return(0,js.default)(n,{children:{$set:await Promise.all(n.children.map(async e=>{try{return(0,js.default)(e,{children:{$set:await Promise.all(e.children.map(r=>Du(t,r,r.data.titleRaw)))}})}catch(r){throw t.setError(r),r}}))}})}catch(e){throw t.setError(e),e}}function py(t){return`- [${t.data.isComplete?"x":" "}] ${t.data.titleRaw.replace(/(\r\n|\n)/g,"
").trim()}${t.data.blockId?` ^${t.data.blockId}`:""}`}function o_(t){let n=[];return n.push(`## ${t.data.title}`),n.push(""),t.data.shouldMarkItemsComplete&&n.push(Ng),t.children.forEach(e=>{n.push(py(e))}),n.push(""),n.push(""),n.push(""),n.join(` `)}function s_(t){if(t.length){let n=[Fg,"",`## ${F("Archive")}`,""];return t.forEach(e=>{n.push(py(e))}),n.join(` `)}return""}function my(t){let n=t.children.reduce((r,i)=>r+o_(i),"");return["---","",(0,uy.stringifyYaml)(t.data.frontmatter),"---","",""].join(` `)+n+s_(t.data.archive)+Rg(t.data.settings)}var Au=class{constructor(n){this.stateManager=n}newItem(n,e,r){return fy(this.stateManager,n,e,r)}updateItemContent(n,e){return Du(this.stateManager,n,e)}boardToMd(n){return my(n)}mdToBoard(n){let{ast:e,settings:r,frontmatter:i}=cy(this.stateManager,n),a=dy(this.stateManager,r,i,e,n);if(this.stateManager.state){let s=eu(this.stateManager.state,a).filter(l=>["/id","/dom","/date","/time","/titleSearch","/file"].every(c=>!l.path.endsWith(c))),u=(0,gy.immutableJSONPatch)(this.stateManager.state,s);return gv(this.stateManager,u,s)}return mv(this.stateManager,a)}reparseBoard(){return hy(this.stateManager,this.stateManager.state)}};var Iu=class{constructor(n,e,r,i,a){this.stateReceivers=[];this.settingsNotifiers=new Map;this.viewSet=new Set;this.compiledSettings={};this.newBoardPromise=null;this.getSetting=(n,e)=>e&&e[n]!==void 0?e[n]:this.compiledSettings&&this.compiledSettings[n]!==void 0?this.compiledSettings[n]:this.getSettingRaw(n);this.getSettingRaw=(n,e)=>{var r,i;return e&&e[n]!==void 0?e[n]:((i=(r=this.state)==null?void 0:r.data)==null?void 0:i.settings)&&this.state.data.settings[n]!==void 0?this.state.data.settings[n]:this.getGlobalSetting(n)};this.getGlobalSetting=n=>{let e=this.getGlobalSettings();return e&&e[n]!==void 0?e[n]:null};this.app=n,this.file=e.file,this.onEmpty=i,this.getGlobalSettings=a,this.parser=new Au(this),this.registerView(e,r,!0)}getAView(){return this.viewSet.values().next().value}registerView(n,e,r){this.viewSet.has(n)||(this.viewSet.add(n),n.initHeaderButtons()),r&&(this.newBoardPromise!==null?this.newBoardPromise.then(()=>this.newBoard(e)):this.newBoardPromise=this.newBoard(e).then(()=>{this.newBoardPromise=null}).catch(i=>{console.error(i),this.setError(i)}))}unregisterView(n){this.viewSet.has(n)&&(this.viewSet.delete(n),this.viewSet.size===0&&this.onEmpty())}buildSettingRetrievers(){return{getGlobalSettings:this.getGlobalSettings,getGlobalSetting:this.getGlobalSetting,getSetting:this.getSetting}}async newBoard(n){try{await this.setState(await this.getParsedBoard(n),!1)}catch(e){this.setError(e)}}saveToDisk(){if(this.state.data.errors.length>0)return;let n=this.getAView(),e=this.parser.boardToMd(this.state);n.requestSaveToDisk(e),this.viewSet.forEach(r=>{r.data=e})}softRefresh(){this.stateReceivers.forEach(n=>n({...this.state}))}async forceRefresh(){if(this.state)try{this.compileSettings(),this.state=await this.parser.reparseBoard(),this.stateReceivers.forEach(n=>n(this.state)),this.viewSet.forEach(n=>n.initHeaderButtons())}catch(n){console.error(n),this.setError(n)}}async setState(n,e=!0){var r;try{let i=(r=this.state)==null?void 0:r.data.settings,a=typeof n=="function"?await n(this.state):n,o=a==null?void 0:a.data.settings;i&&o&&Bg(i,o)?(this.state=(0,Ii.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()),e&&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[n,e]=v.useState(this.state);return v.useEffect(()=>(this.stateReceivers.push(r=>{e(r)}),e(this.state),()=>{this.stateReceivers.remove(e)}),[]),n}useSetting(n){let[e,r]=v.useState(this.getSetting(n));return v.useEffect(()=>{let i=()=>{r(this.getSetting(n))};return this.settingsNotifiers.has(n)?this.settingsNotifiers.get(n).push(i):this.settingsNotifiers.set(n,[i]),()=>{this.settingsNotifiers.get(n).remove(i)}},[]),e}compileSettings(n){var s,u,l,c,d;let e=this.getGlobalSetting("metadata-keys")||[],r=this.getSettingRaw("metadata-keys",n)||[],i=this.getSettingRaw("date-format",n)||Xr(this.app),a=this.getSettingRaw("time-format",n)||Vi(this.app),o=this.getSettingRaw("prepend-archive-format",n)||`${i} ${a}`;this.compiledSettings={"date-format":i,"date-display-format":this.getSettingRaw("date-display-format",n)||i,"date-trigger":this.getSettingRaw("date-trigger",n)||ys,"time-format":a,"time-trigger":this.getSettingRaw("time-trigger",n)||bs,"link-date-to-daily-note":this.getSettingRaw("link-date-to-daily-note",n),"hide-date-in-title":this.getSettingRaw("hide-date-in-title",n),"hide-tags-in-title":this.getSettingRaw("hide-tags-in-title",n),"metadata-keys":[...e,...r],"prepend-archive-separator":this.getSettingRaw("prepend-archive-separator")||"","prepend-archive-format":o,"show-add-list":(s=this.getSettingRaw("show-add-list",n))!=null?s:!0,"show-archive-all":(u=this.getSettingRaw("show-archive-all",n))!=null?u:!0,"show-view-as-markdown":(l=this.getSettingRaw("show-view-as-markdown",n))!=null?l:!0,"show-board-settings":(c=this.getSettingRaw("show-board-settings",n))!=null?c:!0,"show-search":(d=this.getSettingRaw("show-search",n))!=null?d:!0}}async getParsedBoard(n){let e=n.trim(),r={...zo,id:this.file.path,children:[],data:{archive:[],settings:{"kanban-plugin":"basic"},frontmatter:{},isSearching:!1,errors:[]}};try{e&&(r=await this.parser.mdToBoard(e))}catch(i){console.error(i),r=(0,Ii.default)(r,{data:{errors:{$push:[{description:i.toString(),stack:i.stack}]}}})}return r}setError(n){this.setState((0,Ii.default)(this.state,{data:{errors:{$push:[{description:n.toString(),stack:n.stack}]}}}),!1)}onFileMetadataChange(){this.reparseBoardFromMd()}async reparseBoardFromMd(){try{this.setState(await this.getParsedBoard(this.getAView().data),!1)}catch(n){console.error(n),this.setError(n)}}async archiveCompletedCards(){let n=this.state,e=[],r=!!this.getSetting("prepend-archive-date"),i=this.getSetting("prepend-archive-separator"),a=this.getSetting("prepend-archive-format"),o=u=>{let l=[(0,vy.moment)().format(a)];i&&l.push(i),l.push(u.data.titleRaw);let c=l.join(" ");return this.parser.updateItemContent(u,c)},s=n.children.map(u=>(0,Ii.default)(u,{children:{$set:u.children.filter(l=>((u.data.shouldMarkItemsComplete||l.data.isComplete)&&e.push(l),!l.data.isComplete&&!u.data.shouldMarkItemsComplete))}}));this.app.workspace.trigger("kanban:board-cards-archived",this.file,e);try{this.setState((0,Ii.default)(n,{children:{$set:s},data:{archive:{$push:r?await Promise.all(e.map(u=>o(u))):e}}}))}catch(u){this.setError(u)}}getNewItem(n,e,r){return this.parser.newItem(n,e,r)}updateItemContent(n,e){return this.parser.updateItemContent(n,e)}};var Lu=class extends vn.Plugin{constructor(){super(...arguments);this.settings={};this.kanbanFileModes={};this.stateManagers=new Map;this.viewMap=new Map;this._loaded=!1;this.isShiftPressed=!1;this.handleShift=n=>{this.isShiftPressed=n.shiftKey};this.viewStateReceivers=[]}async loadSettings(){this.settings=Object.assign({},await this.loadData())}async saveSettings(){await this.saveData(this.settings)}onunload(){this.stateManagers.clear(),this.viewStateReceivers.forEach(e=>e(this.getKanbanViews())),this.app.workspace.getLeavesOfType(_n).forEach(e=>{this.setMarkdownView(e)}),this.app.workspace.unregisterHoverLinkSource(dn),this.appEl&&(v.unmountComponentAtNode(this.appEl),this.appEl.detach()),window.removeEventListener("keydown",this.handleShift),window.removeEventListener("keyup",this.handleShift)}async onload(){await this.loadSettings(),this.settingsTab=new Yc(this,{onSettingsChange:async n=>{this.settings=n,await this.saveSettings(),this.stateManagers.forEach(e=>{e.forceRefresh()})}}),this.addSettingTab(this.settingsTab),this.registerView(_n,n=>new Nr(n,this)),this.registerMonkeyPatches(),this.registerCommands(),this.registerEvents(),this.mount(),window.addEventListener("keydown",this.handleShift),window.addEventListener("keyup",this.handleShift)}getKanbanViews(){return Array.from(this.viewMap.values())}getKanbanView(n){return this.viewMap.get(n)}getStateManager(n){return this.stateManagers.get(n)}getStateManagerFromViewID(n){return this.stateManagers.get(this.getKanbanView(n).file)}useViewState(){let[n,e]=v.useState(this.getKanbanViews());return v.useEffect(()=>(this.viewStateReceivers.push(e),()=>{this.viewStateReceivers.remove(e)}),[]),n}addView(n,e,r){this.viewMap.has(n.id)||this.viewMap.set(n.id,n);let i=n.file;this.stateManagers.has(i)?this.stateManagers.get(i).registerView(n,e,r):this.stateManagers.set(i,new Iu(this.app,n,e,()=>this.stateManagers.delete(i),()=>this.settings)),this.viewStateReceivers.forEach(a=>a(this.getKanbanViews()))}removeView(n){let e=n.file;this.viewMap.has(n.id)&&this.viewMap.delete(n.id),this.stateManagers.has(e)&&(this.stateManagers.get(e).unregisterView(n),this.viewStateReceivers.forEach(r=>r(this.getKanbanViews())))}handleViewFileRename(n,e){let r=`${n.leaf.id}:::${e}`;this.viewMap.has(r)&&this.viewMap.delete(r),this.viewMap.has(n.id)||this.viewMap.set(n.id,n),n.isPrimary&&this.getStateManager(n.file).softRefresh()}mount(){var n;v.render(Pg(this),(n=this.appEl)!=null?n:this.appEl=document.body.createDiv())}async setMarkdownView(n,e=!0){await n.setViewState({type:"markdown",state:n.view.getState(),popstate:!0},{focus:e})}async setKanbanView(n){await n.setViewState({type:_n,state:n.view.getState(),popstate:!0})}async newKanban(n){var r;let e=n||this.app.fileManager.getNewFileParent(((r=this.app.workspace.getActiveFile())==null?void 0:r.path)||"");try{let i=await this.app.fileManager.createNewMarkdownFile(e,F("Untitled Kanban"));await this.app.vault.modify(i,zc),await this.app.workspace.activeLeaf.setViewState({type:_n,state:{file:i.path}})}catch(i){console.error("Error creating kanban board:",i)}}registerEvents(){this.registerEvent(this.app.workspace.on("file-menu",(e,r)=>{r instanceof vn.TFolder&&e.addItem(i=>{i.setTitle(F("New kanban board")).setIcon(Es).onClick(()=>this.newKanban(r))})})),this.registerEvent(this.app.vault.on("rename",(e,r)=>{this.app.workspace.getLeavesOfType(_n).forEach(a=>{a.view.handleRename(e.path,r)})}));let n=(0,vn.debounce)(e=>{this.stateManagers.forEach(r=>{r.file!==e&&r.onFileMetadataChange()})},2e3,!0);this.registerEvent(this.app.vault.on("modify",e=>{e instanceof vn.TFile&&n(e)})),this.registerEvent(this.app.metadataCache.on("changed",e=>{n(e)})),this.registerEvent(this.app.metadataCache.on("dataview:metadata-change",(e,r)=>{n(r)})),this.registerEvent(this.app.metadataCache.on("dataview:api-ready",()=>{this.stateManagers.forEach(e=>{e.forceRefresh()})})),this.app.workspace.registerHoverLinkSource(dn,{display:"Kanban",defaultMod:!0})}registerCommands(){this.addCommand({id:"create-new-kanban-board",name:F("Create new board"),callback:()=>this.newKanban()}),this.addCommand({id:"archive-completed-cards",name:F("Archive completed cards in active board"),checkCallback:n=>{let e=this.app.workspace.getActiveViewOfType(Nr);if(!e)return!1;if(n)return!0;this.stateManagers.get(e.file).archiveCompletedCards()}}),this.addCommand({id:"toggle-kanban-view",name:F("Toggle between Kanban and markdown mode"),checkCallback:n=>{let e=this.app.workspace.getActiveFile();if(!e)return!1;let r=this.app.metadataCache.getFileCache(e),i=!!(r==null?void 0:r.frontmatter)&&!!r.frontmatter[dn];if(n)return i;let a=this.app.workspace.activeLeaf;(a==null?void 0:a.view)&&a.view instanceof Nr?(this.kanbanFileModes[a.id||e.path]="markdown",this.setMarkdownView(a)):i&&(this.kanbanFileModes[a.id||e.path]=_n,this.setKanbanView(a))}}),this.addCommand({id:"convert-to-kanban",name:F("Convert empty note to Kanban"),checkCallback:n=>{let e=this.app.workspace.getActiveFile(),r=this.app.workspace.activeLeaf;if(!e||!r)return!1;let i=e.stat.size===0;if(n)return i;i&&this.app.vault.modify(e,zc).then(()=>{this.setKanbanView(r)}).catch(a=>console.error(a))}}),this.addCommand({id:"add-kanban-lane",name:F("Add a list"),checkCallback:n=>{let e=this.app.workspace.activeLeaf;if(n)return e.view instanceof Nr;e.view.emitter.emit("showLaneForm",void 0)}})}registerMonkeyPatches(){let n=this;this.app.workspace.onLayoutReady(()=>{this.register(Fa(this.app.commands,{executeCommandById(e){return function(r){let i=n.app.workspace.getActiveViewOfType(Nr);return i&&i.emitter.emit("hotkey",r),e.call(this,r)}}}))}),this.register(Fa(vn.WorkspaceLeaf.prototype,{detach(e){return function(){var i;let r=(i=this.view)==null?void 0:i.getState();return(r==null?void 0:r.file)&&n.kanbanFileModes[this.id||r.file]&&delete n.kanbanFileModes[this.id||r.file],e.apply(this)}},setViewState(e){return function(r,...i){var a;if(n._loaded&&r.type==="markdown"&&((a=r.state)==null?void 0:a.file)&&n.kanbanFileModes[this.id||r.state.file]!=="markdown"){let o=n.app.metadataCache.getCache(r.state.file);if((o==null?void 0:o.frontmatter)&&o.frontmatter[dn]){let s={...r,type:_n};return n.kanbanFileModes[r.state.file]=_n,e.apply(this,[s,...i])}}return e.apply(this,[r,...i])}}})),this.register(Fa(vn.MarkdownView.prototype,{onMoreOptionsMenu(e){return function(r){let i=this.file,a=i?n.app.metadataCache.getFileCache(i):null;if(!i||!(a==null?void 0:a.frontmatter)||!a.frontmatter[dn])return e.call(this,r);r.addItem(o=>{o.setTitle(F("Open as kanban board")).setIcon(Es).onClick(()=>{n.kanbanFileModes[this.leaf.id||i.path]=_n,n.setKanbanView(this.leaf)})}).addSeparator(),e.call(this,r)}}}))}};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 * @license MIT */ /*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017 Joachim Wester * MIT license */ /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ /*!*************************************************** * mark.js v8.11.1 * https://markjs.io/ * Copyright (c) 2014–2018, Julian Kühnel * Released under the MIT license https://git.io/vwTVl *****************************************************/