152 lines
968 KiB
JavaScript
152 lines
968 KiB
JavaScript
var sF=Object.create;var Vs=Object.defineProperty;var lF=Object.getOwnPropertyDescriptor;var uF=Object.getOwnPropertyNames;var cF=Object.getPrototypeOf,dF=Object.prototype.hasOwnProperty;var fF=(e,t,r)=>t in e?Vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hF=(e,t)=>()=>(e&&(t=e(e=0)),t);var wn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rf=(e,t)=>{for(var r in t)Vs(e,r,{get:t[r],enumerable:!0})},av=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uF(t))!dF.call(e,i)&&i!==r&&Vs(e,i,{get:()=>t[i],enumerable:!(n=lF(t,i))||n.enumerable});return e};var Ct=(e,t,r)=>(r=e!=null?sF(cF(e)):{},av(t||!e||!e.__esModule?Vs(r,"default",{value:e,enumerable:!0}):r,e)),ov=e=>av(Vs({},"__esModule",{value:!0}),e);var ur=(e,t,r)=>(fF(e,typeof t!="symbol"?t+"":t,r),r);var ln=wn((hi,Zv)=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});function Qr(e){return typeof e=="object"&&!("toString"in e)?Object.prototype.toString.call(e).slice(8,-1):e}var eI=typeof process=="object"&&!0;function Vr(e,t){if(!e)throw eI?new Error("Invariant failed"):new Error(t())}hi.invariant=Vr;var nh=Object.prototype.hasOwnProperty,tI=Array.prototype.splice,nI=Object.prototype.toString;function Ua(e){return nI.call(e).slice(8,-1)}var bu=Object.assign||function(e,t){return rh(t).forEach(function(r){nh.call(t,r)&&(e[r]=t[r])}),e},rh=typeof Object.getOwnPropertySymbols=="function"?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function sa(e){return Array.isArray(e)?bu(e.constructor(e.length),e):Ua(e)==="Map"?new Map(e):Ua(e)==="Set"?new Set(e):e&&typeof e=="object"?bu(Object.create(Object.getPrototypeOf(e)),e):e}var Gv=function(){function e(){this.commands=bu({},rI),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,r){return t===r},this.update.newContext=function(){return new e().update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),e.prototype.extend=function(t,r){this.commands[t]=r},e.prototype.update=function(t,r){var n=this,i=typeof r=="function"?{$apply:r}:r;Array.isArray(t)&&Array.isArray(i)||Vr(!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."}),Vr(typeof i=="object"&&i!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(n.commands).join(", ")+".")});var a=t;return rh(i).forEach(function(o){if(nh.call(n.commands,o)){var s=t===a;a=n.commands[o](i[o],a,i,t),s&&n.isEquals(a,t)&&(a=t)}else{var u=Ua(t)==="Map"?n.update(t.get(o),i[o]):n.update(t[o],i[o]),l=Ua(a)==="Map"?a.get(o):a[o];(!n.isEquals(u,l)||typeof u=="undefined"&&!nh.call(t,o))&&(a===t&&(a=sa(t)),Ua(a)==="Map"?a.set(o,u):a[o]=u)}}),a},e}();hi.Context=Gv;var rI={$push:function(e,t,r){return jv(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return jv(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,n){return iI(t,r),e.forEach(function(i){Jv(i),t===n&&i.length&&(t=sa(n)),tI.apply(t,i)}),t},$set:function(e,t,r){return oI(r),e},$toggle:function(e,t){zs(e,"$toggle");var r=e.length?sa(t):t;return e.forEach(function(n){r[n]=!t[n]}),r},$unset:function(e,t,r,n){return zs(e,"$unset"),e.forEach(function(i){Object.hasOwnProperty.call(t,i)&&(t===n&&(t=sa(n)),delete t[i])}),t},$add:function(e,t,r,n){return qv(t,"$add"),zs(e,"$add"),Ua(t)==="Map"?e.forEach(function(i){var a=i[0],o=i[1];t===n&&t.get(a)!==o&&(t=sa(n)),t.set(a,o)}):e.forEach(function(i){t===n&&!t.has(i)&&(t=sa(n)),t.add(i)}),t},$remove:function(e,t,r,n){return qv(t,"$remove"),zs(e,"$remove"),e.forEach(function(i){t===n&&t.has(i)&&(t=sa(n)),t.delete(i)}),t},$merge:function(e,t,r,n){return sI(t,e),rh(e).forEach(function(i){e[i]!==t[i]&&(t===n&&(t=sa(n)),t[i]=e[i])}),t},$apply:function(e,t){return aI(e),e(t)}},ih=new Gv;hi.isEquals=ih.update.isEquals;hi.extend=ih.extend;hi.default=ih.update;hi.default.default=Zv.exports=bu(hi.default,hi);function jv(e,t,r){Vr(Array.isArray(e),function(){return"update(): expected target of "+Qr(r)+" to be an array; got "+Qr(e)+"."}),zs(t[r],r)}function zs(e,t){Vr(Array.isArray(e),function(){return"update(): expected spec of "+Qr(t)+" to be an array; got "+Qr(e)+". Did you forget to wrap your parameter in an array?"})}function iI(e,t){Vr(Array.isArray(e),function(){return"Expected $splice target to be an array; got "+Qr(e)}),Jv(t.$splice)}function Jv(e){Vr(Array.isArray(e),function(){return"update(): expected spec of $splice to be an array of arrays; got "+Qr(e)+". Did you forget to wrap your parameters in an array?"})}function aI(e){Vr(typeof e=="function",function(){return"update(): expected spec of $apply to be a function; got "+Qr(e)+"."})}function oI(e){Vr(Object.keys(e).length===1,function(){return"Cannot have more than one key in an object with $set"})}function sI(e,t){Vr(t&&typeof t=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+Qr(t)}),Vr(e&&typeof e=="object",function(){return"update(): $merge expects a target of type 'object'; got "+Qr(e)})}function qv(e,t){var r=Ua(e);Vr(r==="Map"||r==="Set",function(){return"update(): "+Qr(t)+" expects a target of type Set or Map; got "+Qr(r)})}});var tw=wn((JB,ew)=>{"use strict";var lI=function(t){return uI(t)&&!cI(t)};function uI(e){return!!e&&typeof e=="object"}function cI(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||hI(e)}var dI=typeof Symbol=="function"&&Symbol.for,fI=dI?Symbol.for("react.element"):60103;function hI(e){return e.$$typeof===fI}function mI(e){return Array.isArray(e)?[]:{}}function Ks(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Mo(mI(e),e,t):e}function pI(e,t,r){return e.concat(t).map(function(n){return Ks(n,r)})}function gI(e,t){if(!t.customMerge)return Mo;var r=t.customMerge(e);return typeof r=="function"?r:Mo}function yI(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Qv(e){return Object.keys(e).concat(yI(e))}function Xv(e,t){try{return t in e}catch(r){return!1}}function vI(e,t){return Xv(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function wI(e,t,r){var n={};return r.isMergeableObject(e)&&Qv(e).forEach(function(i){n[i]=Ks(e[i],r)}),Qv(t).forEach(function(i){vI(e,i)||(Xv(e,i)&&r.isMergeableObject(t[i])?n[i]=gI(i,r)(e[i],t[i],r):n[i]=Ks(t[i],r))}),n}function Mo(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||pI,r.isMergeableObject=r.isMergeableObject||lI,r.cloneUnlessOtherwiseSpecified=Ks;var n=Array.isArray(t),i=Array.isArray(e),a=n===i;return a?n?r.arrayMerge(e,t,r):wI(e,t,r):Ks(t,r)}Mo.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Mo(n,i,r)},{})};var bI=Mo;ew.exports=bI});var Db=wn((FU,Ch)=>{"use strict";var JA=Object.prototype.hasOwnProperty,cr="~";function al(){}Object.create&&(al.prototype=Object.create(null),new al().__proto__||(cr=!1));function ZA(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function bb(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new ZA(r,n||e,i),o=cr?cr+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function Ru(e,t){--e._eventsCount===0?e._events=new al:delete e._events[t]}function Xn(){this._events=new al,this._eventsCount=0}Xn.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)JA.call(r,n)&&t.push(cr?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Xn.prototype.listeners=function(t){var r=cr?cr+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o};Xn.prototype.listenerCount=function(t){var r=cr?cr+t:t,n=this._events[r];return n?n.fn?1:n.length:0};Xn.prototype.emit=function(t,r,n,i,a,o){var s=cr?cr+t:t;if(!this._events[s])return!1;var u=this._events[s],l=arguments.length,c,d;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),l){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,r),!0;case 3:return u.fn.call(u.context,r,n),!0;case 4:return u.fn.call(u.context,r,n,i),!0;case 5:return u.fn.call(u.context,r,n,i,a),!0;case 6:return u.fn.call(u.context,r,n,i,a,o),!0}for(d=1,c=new Array(l-1);d<l;d++)c[d-1]=arguments[d];u.fn.apply(u.context,c)}else{var m=u.length,h;for(d=0;d<m;d++)switch(u[d].once&&this.removeListener(t,u[d].fn,void 0,!0),l){case 1:u[d].fn.call(u[d].context);break;case 2:u[d].fn.call(u[d].context,r);break;case 3:u[d].fn.call(u[d].context,r,n);break;case 4:u[d].fn.call(u[d].context,r,n,i);break;default:if(!c)for(h=1,c=new Array(l-1);h<l;h++)c[h-1]=arguments[h];u[d].fn.apply(u[d].context,c)}}return!0};Xn.prototype.on=function(t,r,n){return bb(this,t,r,n,!1)};Xn.prototype.once=function(t,r,n){return bb(this,t,r,n,!0)};Xn.prototype.removeListener=function(t,r,n,i){var a=cr?cr+t:t;if(!this._events[a])return this;if(!r)return Ru(this,a),this;var o=this._events[a];if(o.fn)o.fn===r&&(!i||o.once)&&(!n||o.context===n)&&Ru(this,a);else{for(var s=0,u=[],l=o.length;s<l;s++)(o[s].fn!==r||i&&!o[s].once||n&&o[s].context!==n)&&u.push(o[s]);u.length?this._events[a]=u.length===1?u[0]:u:Ru(this,a)}return this};Xn.prototype.removeAllListeners=function(t){var r;return t?(r=cr?cr+t:t,this._events[r]&&Ru(this,r)):(this._events=new al,this._eventsCount=0),this};Xn.prototype.off=Xn.prototype.removeListener;Xn.prototype.addListener=Xn.prototype.on;Xn.prefixed=cr;Xn.EventEmitter=Xn;typeof Ch!="undefined"&&(Ch.exports=Xn)});var Wu=wn(dn=>{"use strict";"use restrict";var Ih=32;dn.INT_BITS=Ih;dn.INT_MAX=2147483647;dn.INT_MIN=-1<<Ih-1;dn.sign=function(e){return(e>0)-(e<0)};dn.abs=function(e){var t=e>>Ih-1;return(e^t)-t};dn.min=function(e,t){return t^(e^t)&-(e<t)};dn.max=function(e,t){return e^(e^t)&-(e<t)};dn.isPow2=function(e){return!(e&e-1)&&!!e};dn.log2=function(e){var t,r;return t=(e>65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};dn.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};dn.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Fb(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}dn.countTrailingZeros=Fb;dn.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};dn.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};dn.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var ll=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<<i&255}})(ll);dn.reverse=function(e){return ll[e&255]<<24|ll[e>>>8&255]<<16|ll[e>>>16&255]<<8|ll[e>>>24&255]};dn.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};dn.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};dn.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};dn.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};dn.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Fb(e)+1}});var Ob=wn((lW,Ab)=>{"use strict";function Ib(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a<n;++a)i[a]=t;else for(a=0;a<n;++a)i[a]=Ib(e,t,r+1);return i}function tO(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function nO(e,t){switch(typeof t=="undefined"&&(t=0),typeof e){case"number":if(e>0)return tO(e|0,t);break;case"object":if(typeof e.length=="number")return Ib(e,t,0);break}return[]}Ab.exports=nO});var eD={};Rf(eD,{Buffer:()=>fe,INSPECT_MAX_BYTES:()=>$b,SlowBuffer:()=>mO,isBuffer:()=>Qb,kMaxLength:()=>uO});function Hb(){Oh=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)wi[t]=e[t],Wr[e.charCodeAt(t)]=t;Wr[45]=62,Wr[95]=63}function iO(e){Oh||Hb();var t,r,n,i,a,o,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=e[s-2]==="="?2:e[s-1]==="="?1:0,o=new rO(s*3/4-a),n=a>0?s-4:s;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Wr[e.charCodeAt(t)]<<18|Wr[e.charCodeAt(t+1)]<<12|Wr[e.charCodeAt(t+2)]<<6|Wr[e.charCodeAt(t+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=i&255;return a===2?(i=Wr[e.charCodeAt(t)]<<2|Wr[e.charCodeAt(t+1)]>>4,o[u++]=i&255):a===1&&(i=Wr[e.charCodeAt(t)]<<10|Wr[e.charCodeAt(t+1)]<<4|Wr[e.charCodeAt(t+2)]>>2,o[u++]=i>>8&255,o[u++]=i&255),o}function aO(e){return wi[e>>18&63]+wi[e>>12&63]+wi[e>>6&63]+wi[e&63]}function oO(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(aO(n));return i.join("")}function Lb(e){Oh||Hb();for(var t,r=e.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(oO(e,s,s+o>u?u:s+o));return n===1?(t=e[r-1],i+=wi[t>>2],i+=wi[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=wi[t>>10],i+=wi[t>>4&63],i+=wi[t<<2&63],i+="="),a.push(i),a.join("")}function Ku(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<<s)-1,l=u>>1,c=-7,d=r?i-1:0,m=r?-1:1,h=e[t+d];for(d+=m,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=a*256+e[t+d],d+=m,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+d],d+=m,c-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(h?-1:1)*o*Math.pow(2,a-n)}function Bb(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,c=(1<<l)-1,d=c>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,g=n?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?t+=m/u:t+=m*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*u-1)*Math.pow(2,i),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=s&255,h+=g,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[r+h]=o&255,h+=g,o/=256,l-=8);e[r+h-g]|=y*128}function Yu(){return fe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Wi(e,t){if(Yu()<t)throw new RangeError("Invalid typed array length");return fe.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=fe.prototype):(e===null&&(e=new fe(t)),e.length=t),e}function fe(e,t,r){if(!fe.TYPED_ARRAY_SUPPORT&&!(this instanceof fe))return new fe(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Lh(this,e)}return Ub(this,e,t,r)}function Ub(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?fO(e,t,r,n):typeof t=="string"?dO(e,t,r):hO(e,t)}function Wb(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function cO(e,t,r,n){return Wb(t),t<=0?Wi(e,t):r!==void 0?typeof n=="string"?Wi(e,t).fill(r,n):Wi(e,t).fill(r):Wi(e,t)}function Lh(e,t){if(Wb(t),e=Wi(e,t<0?0:Ph(t)|0),!fe.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function dO(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!fe.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=Yb(t,r)|0;e=Wi(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function Ah(e,t){var r=t.length<0?0:Ph(t.length)|0;e=Wi(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function fO(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),fe.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=fe.prototype):e=Ah(e,t),e}function hO(e,t){if(bi(t)){var r=Ph(t.length)|0;return e=Wi(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||OO(t.length)?Wi(e,0):Ah(e,t);if(t.type==="Buffer"&&Vb(t.data))return Ah(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Ph(e){if(e>=Yu())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Yu().toString(16)+" bytes");return e|0}function mO(e){return+e!=e&&(e=0),fe.alloc(+e)}function bi(e){return!!(e!=null&&e._isBuffer)}function Yb(e,t){if(bi(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return zu(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Zb(e).length;default:if(n)return zu(e).length;t=(""+t).toLowerCase(),n=!0}}function pO(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return xO(this,t,r);case"utf8":case"utf-8":return jb(this,t,r);case"ascii":return EO(this,t,r);case"latin1":case"binary":return kO(this,t,r);case"base64":return DO(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CO(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Ga(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function zb(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=fe.from(t,n)),bi(t))return t.length===0?-1:Nb(e,t,r,n,i);if(typeof t=="number")return t=t&255,fe.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Nb(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Nb(e,t,r,n,i){var a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(h,g){return a===1?h[g]:h.readUInt16BE(g*a)}var l;if(i){var c=-1;for(l=r;l<o;l++)if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1&&(c=l),l-c+1===s)return c*a}else c!==-1&&(l-=l-c),c=-1}else for(r+s>o&&(r=o-s),l=r;l>=0;l--){for(var d=!0,m=0;m<s;m++)if(u(e,l+m)!==u(t,m)){d=!1;break}if(d)return l}return-1}function gO(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function yO(e,t,r,n){return Gu(zu(t,e.length-r),e,r,n)}function Kb(e,t,r,n){return Gu(IO(t),e,r,n)}function vO(e,t,r,n){return Kb(e,t,r,n)}function wO(e,t,r,n){return Gu(Zb(t),e,r,n)}function bO(e,t,r,n){return Gu(AO(t,e.length-r),e,r,n)}function DO(e,t,r){return t===0&&r===e.length?Lb(e):Lb(e.slice(t,r))}function jb(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var u,l,c,d;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(d=(a&31)<<6|u&63,d>127&&(o=d));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(d=(a&15)<<12|(u&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],(u&192)===128&&(l&192)===128&&(c&192)===128&&(d=(a&15)<<18|(u&63)<<12|(l&63)<<6|c&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return SO(n)}function SO(e){var t=e.length;if(t<=Rb)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Rb));return r}function EO(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function kO(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function xO(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=FO(e[a]);return i}function CO(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}function Pn(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function gr(e,t,r,n,i,a){if(!bi(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function ju(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function qu(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function qb(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Gb(e,t,r,n,i){return i||qb(e,t,r,4),Bb(e,t,r,n,23,4),r+4}function Jb(e,t,r,n,i){return i||qb(e,t,r,8),Bb(e,t,r,n,52,8),r+8}function MO(e){if(e=TO(e).replace(_O,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function TO(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function FO(e){return e<16?"0"+e.toString(16):e.toString(16)}function zu(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function IO(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function AO(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Zb(e){return iO(MO(e))}function Gu(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function OO(e){return e!==e}function Qb(e){return e!=null&&(!!e._isBuffer||Xb(e)||LO(e))}function Xb(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function LO(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Xb(e.slice(0,0))}var wi,Wr,rO,Oh,sO,Vb,$b,Pb,lO,uO,Rb,_O,tD=hF(()=>{wi=[],Wr=[],rO=typeof Uint8Array!="undefined"?Uint8Array:Array,Oh=!1;sO={}.toString,Vb=Array.isArray||function(e){return sO.call(e)=="[object Array]"};$b=50,Pb=window;fe.TYPED_ARRAY_SUPPORT=Pb.TYPED_ARRAY_SUPPORT!==void 0?Pb.TYPED_ARRAY_SUPPORT:!0;lO=Yu(),uO=lO;fe.poolSize=8192;fe._augment=function(e){return e.__proto__=fe.prototype,e};fe.from=function(e,t,r){return Ub(null,e,t,r)};fe.TYPED_ARRAY_SUPPORT&&(fe.prototype.__proto__=Uint8Array.prototype,fe.__proto__=Uint8Array);fe.alloc=function(e,t,r){return cO(null,e,t,r)};fe.allocUnsafe=function(e){return Lh(null,e)};fe.allocUnsafeSlow=function(e){return Lh(null,e)};fe.isBuffer=Qb;fe.compare=function(t,r){if(!bi(t)||!bi(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(t[a]!==r[a]){n=t[a],i=r[a];break}return n<i?-1:i<n?1:0};fe.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};fe.concat=function(t,r){if(!Vb(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return fe.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=fe.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){var o=t[n];if(!bi(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};fe.byteLength=Yb;fe.prototype._isBuffer=!0;fe.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Ga(this,r,r+1);return this};fe.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Ga(this,r,r+3),Ga(this,r+1,r+2);return this};fe.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Ga(this,r,r+7),Ga(this,r+1,r+6),Ga(this,r+2,r+5),Ga(this,r+3,r+4);return this};fe.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?jb(this,0,t):pO.apply(this,arguments)};fe.prototype.equals=function(t){if(!bi(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:fe.compare(this,t)===0};fe.prototype.inspect=function(){var t="",r=$b;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"};fe.prototype.compare=function(t,r,n,i,a){if(!bi(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;for(var o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),c=t.slice(r,n),d=0;d<u;++d)if(l[d]!==c[d]){o=l[d],s=c[d];break}return o<s?-1:s<o?1:0};fe.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};fe.prototype.indexOf=function(t,r,n){return zb(this,t,r,n,!0)};fe.prototype.lastIndexOf=function(t,r,n){return zb(this,t,r,n,!1)};fe.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return gO(this,t,r,n);case"utf8":case"utf-8":return yO(this,t,r,n);case"ascii":return Kb(this,t,r,n);case"latin1":case"binary":return vO(this,t,r,n);case"base64":return wO(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bO(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};fe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Rb=4096;fe.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(fe.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=fe.prototype;else{var a=r-t;i=new fe(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+t]}return i};fe.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Pn(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return i};fe.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Pn(t,r,this.length);for(var i=this[t+--r],a=1;r>0&&(a*=256);)i+=this[t+--r]*a;return i};fe.prototype.readUInt8=function(t,r){return r||Pn(t,1,this.length),this[t]};fe.prototype.readUInt16LE=function(t,r){return r||Pn(t,2,this.length),this[t]|this[t+1]<<8};fe.prototype.readUInt16BE=function(t,r){return r||Pn(t,2,this.length),this[t]<<8|this[t+1]};fe.prototype.readUInt32LE=function(t,r){return r||Pn(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};fe.prototype.readUInt32BE=function(t,r){return r||Pn(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};fe.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Pn(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};fe.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Pn(t,r,this.length);for(var i=r,a=1,o=this[t+--i];i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};fe.prototype.readInt8=function(t,r){return r||Pn(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};fe.prototype.readInt16LE=function(t,r){r||Pn(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};fe.prototype.readInt16BE=function(t,r){r||Pn(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};fe.prototype.readInt32LE=function(t,r){return r||Pn(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};fe.prototype.readInt32BE=function(t,r){return r||Pn(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};fe.prototype.readFloatLE=function(t,r){return r||Pn(t,4,this.length),Ku(this,t,!0,23,4)};fe.prototype.readFloatBE=function(t,r){return r||Pn(t,4,this.length),Ku(this,t,!1,23,4)};fe.prototype.readDoubleLE=function(t,r){return r||Pn(t,8,this.length),Ku(this,t,!0,52,8)};fe.prototype.readDoubleBE=function(t,r){return r||Pn(t,8,this.length),Ku(this,t,!1,52,8)};fe.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;gr(this,t,r,n,a,0)}var o=1,s=0;for(this[r]=t&255;++s<n&&(o*=256);)this[r+s]=t/o&255;return r+n};fe.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;gr(this,t,r,n,a,0)}var o=n-1,s=1;for(this[r+o]=t&255;--o>=0&&(s*=256);)this[r+o]=t/s&255;return r+n};fe.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,1,255,0),fe.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};fe.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,2,65535,0),fe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):ju(this,t,r,!0),r+2};fe.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,2,65535,0),fe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):ju(this,t,r,!1),r+2};fe.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,4,4294967295,0),fe.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):qu(this,t,r,!0),r+4};fe.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,4,4294967295,0),fe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):qu(this,t,r,!1),r+4};fe.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);gr(this,t,r,n,a-1,-a)}var o=0,s=1,u=0;for(this[r]=t&255;++o<n&&(s*=256);)t<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+n};fe.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);gr(this,t,r,n,a-1,-a)}var o=n-1,s=1,u=0;for(this[r+o]=t&255;--o>=0&&(s*=256);)t<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+n};fe.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,1,127,-128),fe.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};fe.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,2,32767,-32768),fe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):ju(this,t,r,!0),r+2};fe.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,2,32767,-32768),fe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):ju(this,t,r,!1),r+2};fe.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,4,2147483647,-2147483648),fe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):qu(this,t,r,!0),r+4};fe.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||gr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),fe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):qu(this,t,r,!1),r+4};fe.prototype.writeFloatLE=function(t,r,n){return Gb(this,t,r,!0,n)};fe.prototype.writeFloatBE=function(t,r,n){return Gb(this,t,r,!1,n)};fe.prototype.writeDoubleLE=function(t,r,n){return Jb(this,t,r,!0,n)};fe.prototype.writeDoubleBE=function(t,r,n){return Jb(this,t,r,!1,n)};fe.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var a=i-n,o;if(this===t&&n<r&&r<i)for(o=a-1;o>=0;--o)t[o+r]=this[o+n];else if(a<1e3||!fe.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+r]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),r);return a};fe.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var a=t.charCodeAt(0);a<256&&(t=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!fe.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{var s=bi(t)?t:zu(new fe(t,i).toString()),u=s.length;for(o=0;o<n-r;++o)this[o+r]=s[o%u]}return this};_O=/[^+\/0-9A-Za-z-_]/g});var nD=wn((uW,Ju)=>{var Ja=(tD(),ov(eD));if(Ja&&Ja.default){Ju.exports=Ja.default;for(let e in Ja)Ju.exports[e]=Ja[e]}else Ja&&(Ju.exports=Ja)});var Xu=wn(bt=>{"use strict";var pa=Wu(),Wn=Ob(),rD=nD().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Wn([32,0]),UINT16:Wn([32,0]),UINT32:Wn([32,0]),BIGUINT64:Wn([32,0]),INT8:Wn([32,0]),INT16:Wn([32,0]),INT32:Wn([32,0]),BIGINT64:Wn([32,0]),FLOAT:Wn([32,0]),DOUBLE:Wn([32,0]),DATA:Wn([32,0]),UINT8C:Wn([32,0]),BUFFER:Wn([32,0])});var PO=typeof Uint8ClampedArray!="undefined",NO=typeof BigUint64Array!="undefined",RO=typeof BigInt64Array!="undefined",Sn=window.__TYPEDARRAY_POOL;Sn.UINT8C||(Sn.UINT8C=Wn([32,0]));Sn.BIGUINT64||(Sn.BIGUINT64=Wn([32,0]));Sn.BIGINT64||(Sn.BIGINT64=Wn([32,0]));Sn.BUFFER||(Sn.BUFFER=Wn([32,0]));var Zu=Sn.DATA,Qu=Sn.BUFFER;bt.free=function(t){if(rD.isBuffer(t))Qu[pa.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=pa.log2(r)|0;Zu[n].push(t)}};function iD(e){if(e){var t=e.length||e.byteLength,r=pa.log2(t);Zu[r].push(e)}}function HO(e){iD(e.buffer)}bt.freeUint8=bt.freeUint16=bt.freeUint32=bt.freeBigUint64=bt.freeInt8=bt.freeInt16=bt.freeInt32=bt.freeBigInt64=bt.freeFloat32=bt.freeFloat=bt.freeFloat64=bt.freeDouble=bt.freeUint8Clamped=bt.freeDataView=HO;bt.freeArrayBuffer=iD;bt.freeBuffer=function(t){Qu[pa.log2(t.length)].push(t)};bt.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return yr(t);switch(r){case"uint8":return Nh(t);case"uint16":return aD(t);case"uint32":return oD(t);case"int8":return sD(t);case"int16":return lD(t);case"int32":return uD(t);case"float":case"float32":return cD(t);case"double":case"float64":return dD(t);case"uint8_clamped":return fD(t);case"bigint64":return mD(t);case"biguint64":return hD(t);case"buffer":return gD(t);case"data":case"dataview":return pD(t);default:return null}return null};function yr(t){var t=pa.nextPow2(t),r=pa.log2(t),n=Zu[r];return n.length>0?n.pop():new ArrayBuffer(t)}bt.mallocArrayBuffer=yr;function Nh(e){return new Uint8Array(yr(e),0,e)}bt.mallocUint8=Nh;function aD(e){return new Uint16Array(yr(2*e),0,e)}bt.mallocUint16=aD;function oD(e){return new Uint32Array(yr(4*e),0,e)}bt.mallocUint32=oD;function sD(e){return new Int8Array(yr(e),0,e)}bt.mallocInt8=sD;function lD(e){return new Int16Array(yr(2*e),0,e)}bt.mallocInt16=lD;function uD(e){return new Int32Array(yr(4*e),0,e)}bt.mallocInt32=uD;function cD(e){return new Float32Array(yr(4*e),0,e)}bt.mallocFloat32=bt.mallocFloat=cD;function dD(e){return new Float64Array(yr(8*e),0,e)}bt.mallocFloat64=bt.mallocDouble=dD;function fD(e){return PO?new Uint8ClampedArray(yr(e),0,e):Nh(e)}bt.mallocUint8Clamped=fD;function hD(e){return NO?new BigUint64Array(yr(8*e),0,e):null}bt.mallocBigUint64=hD;function mD(e){return RO?new BigInt64Array(yr(8*e),0,e):null}bt.mallocBigInt64=mD;function pD(e){return new DataView(yr(e),0,e)}bt.mallocDataView=pD;function gD(e){e=pa.nextPow2(e);var t=pa.log2(e),r=Qu[t];return r.length>0?r.pop():new rD(e)}bt.mallocBuffer=gD;bt.clearCache=function(){for(var t=0;t<32;++t)Sn.UINT8[t].length=0,Sn.UINT16[t].length=0,Sn.UINT32[t].length=0,Sn.INT8[t].length=0,Sn.INT16[t].length=0,Sn.INT32[t].length=0,Sn.FLOAT[t].length=0,Sn.DOUBLE[t].length=0,Sn.BIGUINT64[t].length=0,Sn.BIGINT64[t].length=0,Sn.UINT8C[t].length=0,Zu[t].length=0,Qu[t].length=0}});var DD=wn((dW,bD)=>{"use strict";bD.exports=BO;var tc=32;function BO(e,t){t<=4*tc?nc(0,t-1,e):rc(0,t-1,e)}function nc(e,t,r){for(var n=2*(e+1),i=e+1;i<=t;++i){for(var a=r[n++],o=r[n++],s=i,u=n-2;s-- >e;){var l=r[u-2],c=r[u-1];if(l<a)break;if(l===a&&c<o)break;r[u]=l,r[u+1]=c,u-=2}r[u]=a,r[u+1]=o}}function yD(e,t,r){e*=2,t*=2;var n=r[e],i=r[e+1];r[e]=r[t],r[e+1]=r[t+1],r[t]=n,r[t+1]=i}function vD(e,t,r){e*=2,t*=2,r[e]=r[t],r[e+1]=r[t+1]}function VO(e,t,r,n){e*=2,t*=2,r*=2;var i=n[e],a=n[e+1];n[e]=n[t],n[e+1]=n[t+1],n[t]=n[r],n[t+1]=n[r+1],n[r]=i,n[r+1]=a}function wD(e,t,r,n,i){e*=2,t*=2,i[e]=i[t],i[t]=r,i[e+1]=i[t+1],i[t+1]=n}function Yi(e,t,r){e*=2,t*=2;var n=r[e],i=r[t];return n<i?!1:n===i?r[e+1]>r[t+1]:!0}function ec(e,t,r,n){e*=2;var i=n[e];return i<t?!0:i===t?n[e+1]<r:!1}function rc(e,t,r){var n=(t-e+1)/6|0,i=e+n,a=t-n,o=e+t>>1,s=o-n,u=o+n,l=i,c=s,d=o,m=u,h=a,g=e+1,y=t-1,v=0;Yi(l,c,r)&&(v=l,l=c,c=v),Yi(m,h,r)&&(v=m,m=h,h=v),Yi(l,d,r)&&(v=l,l=d,d=v),Yi(c,d,r)&&(v=c,c=d,d=v),Yi(l,m,r)&&(v=l,l=m,m=v),Yi(d,m,r)&&(v=d,d=m,m=v),Yi(c,h,r)&&(v=c,c=h,h=v),Yi(c,d,r)&&(v=c,c=d,d=v),Yi(m,h,r)&&(v=m,m=h,h=v);for(var D=r[2*c],I=r[2*c+1],C=r[2*m],x=r[2*m+1],O=2*l,A=2*d,P=2*h,B=2*i,G=2*o,J=2*a,Q=0;Q<2;++Q){var oe=r[O+Q],te=r[A+Q],re=r[P+Q];r[B+Q]=oe,r[G+Q]=te,r[J+Q]=re}vD(s,e,r),vD(u,t,r);for(var ne=g;ne<=y;++ne)if(ec(ne,D,I,r))ne!==g&&yD(ne,g,r),++g;else if(!ec(ne,C,x,r))for(;;)if(ec(y,C,x,r)){ec(y,D,I,r)?(VO(ne,g,y,r),++g,--y):(yD(ne,y,r),--y);break}else{if(--y<ne)break;continue}wD(e,g-1,D,I,r),wD(t,y+1,C,x,r),g-2-e<=tc?nc(e,g-2,r):rc(e,g-2,r),t-(y+2)<=tc?nc(y+2,t,r):rc(y+2,t,r),y-g<=tc?nc(g,y,r):rc(g,y,r)}});var Rh=wn((fW,SD)=>{"use strict";SD.exports={init:UO,sweepBipartite:WO,sweepComplete:YO,scanBipartite:zO,scanComplete:KO};var En=Xu(),$O=Wu(),ic=DD(),Fr=1<<28,Qa=1024,Yn=En.mallocInt32(Qa),zi=En.mallocInt32(Qa),Ki=En.mallocInt32(Qa),Za=En.mallocInt32(Qa),Uo=En.mallocInt32(Qa),ul=En.mallocInt32(Qa),dt=En.mallocDouble(Qa*8);function UO(e){var t=$O.nextPow2(e);Yn.length<t&&(En.free(Yn),Yn=En.mallocInt32(t)),zi.length<t&&(En.free(zi),zi=En.mallocInt32(t)),Ki.length<t&&(En.free(Ki),Ki=En.mallocInt32(t)),Za.length<t&&(En.free(Za),Za=En.mallocInt32(t)),Uo.length<t&&(En.free(Uo),Uo=En.mallocInt32(t)),ul.length<t&&(En.free(ul),ul=En.mallocInt32(t));var r=8*t;dt.length<r&&(En.free(dt),dt=En.mallocDouble(r))}function Wo(e,t,r,n){var i=t[n],a=e[r-1];e[i]=a,t[a]=i}function Yo(e,t,r,n){e[r]=n,t[n]=r}function WO(e,t,r,n,i,a,o,s,u,l){for(var c=0,d=2*e,m=e-1,h=d-1,g=r;g<n;++g){var y=a[g],v=d*g;dt[c++]=i[v+m],dt[c++]=-(y+1),dt[c++]=i[v+h],dt[c++]=y}for(var g=o;g<s;++g){var y=l[g]+Fr,D=d*g;dt[c++]=u[D+m],dt[c++]=-y,dt[c++]=u[D+h],dt[c++]=y}var I=c>>>1;ic(dt,I);for(var C=0,x=0,g=0;g<I;++g){var O=dt[2*g+1]|0;if(O>=Fr)O=O-Fr|0,Wo(Ki,Za,x--,O);else if(O>=0)Wo(Yn,zi,C--,O);else if(O<=-Fr){O=-O-Fr|0;for(var A=0;A<C;++A){var P=t(Yn[A],O);if(P!==void 0)return P}Yo(Ki,Za,x++,O)}else{O=-O-1|0;for(var A=0;A<x;++A){var P=t(O,Ki[A]);if(P!==void 0)return P}Yo(Yn,zi,C++,O)}}}function YO(e,t,r,n,i,a,o,s,u,l){for(var c=0,d=2*e,m=e-1,h=d-1,g=r;g<n;++g){var y=a[g]+1<<1,v=d*g;dt[c++]=i[v+m],dt[c++]=-y,dt[c++]=i[v+h],dt[c++]=y}for(var g=o;g<s;++g){var y=l[g]+1<<1,D=d*g;dt[c++]=u[D+m],dt[c++]=-y|1,dt[c++]=u[D+h],dt[c++]=y|1}var I=c>>>1;ic(dt,I);for(var C=0,x=0,O=0,g=0;g<I;++g){var A=dt[2*g+1]|0,P=A&1;if(g<I-1&&A>>1===dt[2*g+3]>>1&&(P=2,g+=1),A<0){for(var B=-(A>>1)-1,G=0;G<O;++G){var J=t(Uo[G],B);if(J!==void 0)return J}if(P!==0)for(var G=0;G<C;++G){var J=t(Yn[G],B);if(J!==void 0)return J}if(P!==1)for(var G=0;G<x;++G){var J=t(Ki[G],B);if(J!==void 0)return J}P===0?Yo(Yn,zi,C++,B):P===1?Yo(Ki,Za,x++,B):P===2&&Yo(Uo,ul,O++,B)}else{var B=(A>>1)-1;P===0?Wo(Yn,zi,C--,B):P===1?Wo(Ki,Za,x--,B):P===2&&Wo(Uo,ul,O--,B)}}}function zO(e,t,r,n,i,a,o,s,u,l,c,d){var m=0,h=2*e,g=t,y=t+e,v=1,D=1;n?D=Fr:v=Fr;for(var I=i;I<a;++I){var C=I+v,x=h*I;dt[m++]=o[x+g],dt[m++]=-C,dt[m++]=o[x+y],dt[m++]=C}for(var I=u;I<l;++I){var C=I+D,O=h*I;dt[m++]=c[O+g],dt[m++]=-C}var A=m>>>1;ic(dt,A);for(var P=0,I=0;I<A;++I){var B=dt[2*I+1]|0;if(B<0){var C=-B,G=!1;if(C>=Fr?(G=!n,C-=Fr):(G=!!n,C-=1),G)Yo(Yn,zi,P++,C);else{var J=d[C],Q=h*C,oe=c[Q+t+1],te=c[Q+t+1+e];e:for(var re=0;re<P;++re){var ne=Yn[re],be=h*ne;if(!(te<o[be+t+1]||o[be+t+1+e]<oe)){for(var pe=t+2;pe<e;++pe)if(c[Q+pe+e]<o[be+pe]||o[be+pe+e]<c[Q+pe])continue e;var De=s[ne],Ce;if(n?Ce=r(J,De):Ce=r(De,J),Ce!==void 0)return Ce}}}}else Wo(Yn,zi,P--,B-v)}}function KO(e,t,r,n,i,a,o,s,u,l,c){for(var d=0,m=2*e,h=t,g=t+e,y=n;y<i;++y){var v=y+Fr,D=m*y;dt[d++]=a[D+h],dt[d++]=-v,dt[d++]=a[D+g],dt[d++]=v}for(var y=s;y<u;++y){var v=y+1,I=m*y;dt[d++]=l[I+h],dt[d++]=-v}var C=d>>>1;ic(dt,C);for(var x=0,y=0;y<C;++y){var O=dt[2*y+1]|0;if(O<0){var v=-O;if(v>=Fr)Yn[x++]=v-Fr;else{v-=1;var A=c[v],P=m*v,B=l[P+t+1],G=l[P+t+1+e];e:for(var J=0;J<x;++J){var Q=Yn[J],oe=o[Q];if(oe===A)break;var te=m*Q;if(!(G<a[te+t+1]||a[te+t+1+e]<B)){for(var re=t+2;re<e;++re)if(l[P+re+e]<a[te+re]||a[te+re+e]<l[P+re])continue e;var ne=r(oe,A);if(ne!==void 0)return ne}}}}else{for(var v=O-Fr,J=x-1;J>=0;--J)if(Yn[J]===v){for(var re=J+1;re<x;++re)Yn[re-1]=Yn[re];break}--x}}}});var _D=wn(Yh=>{"use strict";var Xa="d",jo="ax",ED="vv",Hh="fp",cl="es",ac="rs",Uh="re",dl="rb",kD="ri",zo="rp",oc="bs",Wh="be",fl="bb",xD="bi",Ko="bp",Bh="rv",Vh="Q",$h=[Xa,jo,ED,ac,Uh,dl,kD,oc,Wh,fl,xD];function jO(e,t,r){var n="bruteForce"+(e?"Red":"Blue")+(t?"Flip":"")+(r?"Full":""),i=["function ",n,"(",$h.join(),"){","var ",cl,"=2*",Xa,";"],a="for(var i="+ac+","+zo+"="+cl+"*"+ac+";i<"+Uh+";++i,"+zo+"+="+cl+"){var x0="+dl+"["+jo+"+"+zo+"],x1="+dl+"["+jo+"+"+zo+"+"+Xa+"],xi="+kD+"[i];",o="for(var j="+oc+","+Ko+"="+cl+"*"+oc+";j<"+Wh+";++j,"+Ko+"+="+cl+"){var y0="+fl+"["+jo+"+"+Ko+"],"+(r?"y1="+fl+"["+jo+"+"+Ko+"+"+Xa+"],":"")+"yi="+xD+"[j];";return e?i.push(a,Vh,":",o):i.push(o,Vh,":",a),r?i.push("if(y1<x0||x1<y0)continue;"):t?i.push("if(y0<=x0||x1<y0)continue;"):i.push("if(y0<x0||x1<y0)continue;"),i.push("for(var k="+jo+"+1;k<"+Xa+";++k){var r0="+dl+"[k+"+zo+"],r1="+dl+"[k+"+Xa+"+"+zo+"],b0="+fl+"[k+"+Ko+"],b1="+fl+"[k+"+Xa+"+"+Ko+"];if(r1<b0||b1<r0)continue "+Vh+";}var "+Bh+"="+ED+"("),t?i.push("yi,xi"):i.push("xi,yi"),i.push(");if("+Bh+"!==void 0)return "+Bh+";}}}"),{name:n,code:i.join("")}}function CD(e){var t="bruteForce"+(e?"Full":"Partial"),r=[],n=$h.slice();e||n.splice(3,0,Hh);var i=["function "+t+"("+n.join()+"){"];function a(u,l){var c=jO(u,l,e);r.push(c.code),i.push("return "+c.name+"("+$h.join()+");")}i.push("if("+Uh+"-"+ac+">"+Wh+"-"+oc+"){"),e?(a(!0,!1),i.push("}else{"),a(!1,!1)):(i.push("if("+Hh+"){"),a(!0,!0),i.push("}else{"),a(!0,!1),i.push("}}else{if("+Hh+"){"),a(!1,!0),i.push("}else{"),a(!1,!1),i.push("}")),i.push("}}return "+t);var o=r.join("")+i.join(""),s=new Function(o);return s()}Yh.partial=CD(!1);Yh.full=CD(!0)});var zh=wn((mW,MD)=>{"use strict";MD.exports=GO;var qO="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 GO(e,t){var r="abcdef".split("").concat(t),n=[];return e.indexOf("lo")>=0&&n.push("lo=e[k+n]"),e.indexOf("hi")>=0&&n.push("hi=e[k+o]"),r.push(qO.replace("_",n.join()).replace("$",e)),Function.apply(void 0,r)}});var ID=wn((pW,FD)=>{"use strict";FD.exports=XO;var JO=zh(),TD=JO("lo<p0",["p0"]),ZO=8;function QO(e,t,r,n,i,a){for(var o=2*e,s=o*(r+1)+t,u=r+1;u<n;++u,s+=o)for(var l=i[s],c=u,d=o*(u-1);c>r&&i[d+t]>l;--c,d-=o){for(var m=d,h=d+o,g=0;g<o;++g,++m,++h){var y=i[m];i[m]=i[h],i[h]=y}var v=a[c];a[c]=a[c-1],a[c-1]=v}}function XO(e,t,r,n,i,a){if(n<=r+1)return r;for(var o=r,s=n,u=n+r>>>1,l=2*e,c=u,d=i[l*u+t];o<s;){if(s-o<ZO){QO(e,t,o,s,i,a),d=i[l*u+t];break}var m=s-o,h=Math.random()*m+o|0,g=i[l*h+t],y=Math.random()*m+o|0,v=i[l*y+t],D=Math.random()*m+o|0,I=i[l*D+t];g<=v?I>=v?(c=y,d=v):g>=I?(c=h,d=g):(c=D,d=I):v>=I?(c=y,d=v):I>=g?(c=h,d=g):(c=D,d=I);for(var O=l*(s-1),A=l*c,C=0;C<l;++C,++O,++A){var x=i[O];i[O]=i[A],i[A]=x}var P=a[s-1];a[s-1]=a[c],a[c]=P,c=TD(e,t,o,s-1,i,a,d);for(var O=l*(s-1),A=l*c,C=0;C<l;++C,++O,++A){var x=i[O];i[O]=i[A],i[A]=x}var P=a[s-1];if(a[s-1]=a[c],a[c]=P,u<c){for(s=c-1;o<s&&i[l*(s-1)+t]===d;)s-=1;s+=1}else if(c<u)for(o=c+1;o<s&&i[l*o+t]===d;)o+=1;else break}return TD(e,t,r,u,i,a,i[l*u+t])}});var HD=wn((gW,RD)=>{"use strict";RD.exports=fL;var qo=Xu(),Kh=Wu(),PD=_D(),eL=PD.partial,tL=PD.full,ga=Rh(),nL=ID(),Go=zh(),AD=128,rL=1<<22,iL=1<<22,aL=Go("!(lo>=p0)&&!(p1>=hi)",["p0","p1"]),OD=Go("lo===p0",["p0"]),oL=Go("lo<p0",["p0"]),sL=Go("hi<=p0",["p0"]),LD=Go("lo<=p0&&p0<=hi",["p0"]),lL=Go("lo<p0&&p0<=hi",["p0"]),jh=6,qh=2,ND=1024,dr=qo.mallocInt32(ND),eo=qo.mallocDouble(ND);function uL(e,t){var r=8*Kh.log2(t+1)*(e+1)|0,n=Kh.nextPow2(jh*r);dr.length<n&&(qo.free(dr),dr=qo.mallocInt32(n));var i=Kh.nextPow2(qh*r);eo.length<i&&(qo.free(eo),eo=qo.mallocDouble(i))}function ti(e,t,r,n,i,a,o,s,u){var l=jh*e;dr[l]=t,dr[l+1]=r,dr[l+2]=n,dr[l+3]=i,dr[l+4]=a,dr[l+5]=o;var c=qh*e;eo[c]=s,eo[c+1]=u}function cL(e,t,r,n,i,a,o,s,u,l,c){var d=2*e,m=u*d,h=l[m+t];e:for(var g=i,y=i*d;g<a;++g,y+=d){var v=o[y+t],D=o[y+t+e];if(!(h<v||D<h)&&!(n&&h===v)){for(var I=s[g],C=t+1;C<e;++C){var v=o[y+C],D=o[y+C+e],x=l[m+C],O=l[m+C+e];if(D<x||O<v)continue e}var A;if(n?A=r(c,I):A=r(I,c),A!==void 0)return A}}}function dL(e,t,r,n,i,a,o,s,u,l){var c=2*e,d=s*c,m=u[d+t];e:for(var h=n,g=n*c;h<i;++h,g+=c){var y=o[h];if(y!==l){var v=a[g+t],D=a[g+t+e];if(!(m<v||D<m)){for(var I=t+1;I<e;++I){var v=a[g+I],D=a[g+I+e],C=u[d+I],x=u[d+I+e];if(D<C||x<v)continue e}var O=r(y,l);if(O!==void 0)return O}}}}function fL(e,t,r,n,i,a,o,s,u){uL(e,n+o);var l=0,c=2*e,d;for(ti(l++,0,0,n,0,o,r?16:0,-1/0,1/0),r||ti(l++,0,0,o,0,n,1,-1/0,1/0);l>0;){l-=1;var m=l*jh,h=dr[m],g=dr[m+1],y=dr[m+2],v=dr[m+3],D=dr[m+4],I=dr[m+5],C=l*qh,x=eo[C],O=eo[C+1],A=I&1,P=!!(I&16),B=i,G=a,J=s,Q=u;if(A&&(B=s,G=u,J=i,Q=a),!(I&2&&(y=oL(e,h,g,y,B,G,O),g>=y))&&!(I&4&&(g=sL(e,h,g,y,B,G,x),g>=y))){var oe=y-g,te=D-v;if(P){if(e*oe*(oe+te)<iL){if(d=ga.scanComplete(e,h,t,g,y,B,G,v,D,J,Q),d!==void 0)return d;continue}}else if(e*Math.min(oe,te)<AD){if(d=eL(e,h,t,A,g,y,B,G,v,D,J,Q),d!==void 0)return d;continue}else if(e*oe*te<rL){if(d=ga.scanBipartite(e,h,t,A,g,y,B,G,v,D,J,Q),d!==void 0)return d;continue}var re=aL(e,h,g,y,B,G,x,O);if(g<re)if(e*(re-g)<AD){if(d=tL(e,h+1,t,g,re,B,G,v,D,J,Q),d!==void 0)return d}else if(h===e-2){if(A?d=ga.sweepBipartite(e,t,v,D,J,Q,g,re,B,G):d=ga.sweepBipartite(e,t,g,re,B,G,v,D,J,Q),d!==void 0)return d}else ti(l++,h+1,g,re,v,D,A,-1/0,1/0),ti(l++,h+1,v,D,g,re,A^1,-1/0,1/0);if(re<y){var ne=nL(e,h,v,D,J,Q),be=J[c*ne+h],pe=OD(e,h,ne,D,J,Q,be);if(pe<D&&ti(l++,h,re,y,pe,D,(A|4)+(P?16:0),be,O),v<ne&&ti(l++,h,re,y,v,ne,(A|2)+(P?16:0),x,be),ne+1===pe){if(P?d=dL(e,h,t,re,y,B,G,ne,J,Q[ne]):d=cL(e,h,t,A,re,y,B,G,ne,J,Q[ne]),d!==void 0)return d}else if(ne<pe){var De;if(P){if(De=LD(e,h,re,y,B,G,be),re<De){var Ce=OD(e,h,re,De,B,G,be);if(h===e-2){if(re<Ce&&(d=ga.sweepComplete(e,t,re,Ce,B,G,ne,pe,J,Q),d!==void 0)||Ce<De&&(d=ga.sweepBipartite(e,t,Ce,De,B,G,ne,pe,J,Q),d!==void 0))return d}else re<Ce&&ti(l++,h+1,re,Ce,ne,pe,16,-1/0,1/0),Ce<De&&(ti(l++,h+1,Ce,De,ne,pe,0,-1/0,1/0),ti(l++,h+1,ne,pe,Ce,De,1,-1/0,1/0))}}else A?De=lL(e,h,re,y,B,G,be):De=LD(e,h,re,y,B,G,be),re<De&&(h===e-2?A?d=ga.sweepBipartite(e,t,ne,pe,J,Q,re,De,B,G):d=ga.sweepBipartite(e,t,re,De,B,G,ne,pe,J,Q):(ti(l++,h+1,re,De,ne,pe,A,-1/0,1/0),ti(l++,h+1,ne,pe,re,De,A^1,-1/0,1/0)))}}}}}});var UD=wn((yW,$D)=>{"use strict";$D.exports=yL;var ya=Xu(),sc=Rh(),hL=HD();function mL(e,t){for(var r=0;r<e;++r)if(!(t[r]<=t[r+e]))return!0;return!1}function BD(e,t,r,n){for(var i=0,a=0,o=0,s=e.length;o<s;++o){var u=e[o];if(!mL(t,u)){for(var l=0;l<2*t;++l)r[i++]=u[l];n[a++]=o}}return a}function lc(e,t,r,n){var i=e.length,a=t.length;if(!(i<=0||a<=0)){var o=e[0].length>>>1;if(!(o<=0)){var s,u=ya.mallocDouble(2*o*i),l=ya.mallocInt32(i);if(i=BD(e,o,u,l),i>0){if(o===1&&n)sc.init(i),s=sc.sweepComplete(o,r,0,i,u,l,0,i,u,l);else{var c=ya.mallocDouble(2*o*a),d=ya.mallocInt32(a);a=BD(t,o,c,d),a>0&&(sc.init(i+a),o===1?s=sc.sweepBipartite(o,r,0,i,u,l,0,a,c,d):s=hL(o,r,n,i,u,l,a,c,d),ya.free(c),ya.free(d))}ya.free(u),ya.free(l)}return s}}}var hl;function VD(e,t){hl.push([e,t])}function pL(e){return hl=[],lc(e,e,VD,!0),hl}function gL(e,t){return hl=[],lc(e,t,VD,!1),hl}function yL(e,t,r){var n;switch(arguments.length){case 1:return pL(e);case 2:return typeof t=="function"?lc(e,e,t,!0):gL(e,t);case 3:return lc(e,t,r,!1);default:throw new Error("box-intersect: Invalid arguments")}}});var o0=wn(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});var on=require("obsidian"),Zh="YYYY-MM-DD",Qh="gggg-[W]ww",jD="YYYY-MM",qD="YYYY-[Q]Q",GD="YYYY";function pl(e){var r,n;let t=window.app.plugins.getPlugin("periodic-notes");return t&&((n=(r=t.settings)==null?void 0:r[e])==null?void 0:n.enabled)}function gl(){var e,t,r,n;try{let{internalPlugins:i,plugins:a}=window.app;if(pl("daily")){let{format:l,folder:c,template:d}=((t=(e=a.getPlugin("periodic-notes"))==null?void 0:e.settings)==null?void 0:t.daily)||{};return{format:l||Zh,folder:(c==null?void 0:c.trim())||"",template:(d==null?void 0:d.trim())||""}}let{folder:o,format:s,template:u}=((n=(r=i.getPluginById("daily-notes"))==null?void 0:r.instance)==null?void 0:n.options)||{};return{format:s||Zh,folder:(o==null?void 0:o.trim())||"",template:(u==null?void 0:u.trim())||""}}catch(i){console.info("No custom daily note settings found!",i)}}function yl(){var e,t,r,n,i,a,o;try{let s=window.app.plugins,u=(e=s.getPlugin("calendar"))==null?void 0:e.options,l=(r=(t=s.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:r.weekly;if(pl("weekly"))return{format:l.format||Qh,folder:((n=l.folder)==null?void 0:n.trim())||"",template:((i=l.template)==null?void 0:i.trim())||""};let c=u||{};return{format:c.weeklyNoteFormat||Qh,folder:((a=c.weeklyNoteFolder)==null?void 0:a.trim())||"",template:((o=c.weeklyNoteTemplate)==null?void 0:o.trim())||""}}catch(s){console.info("No custom weekly note settings found!",s)}}function vl(){var t,r,n,i;let e=window.app.plugins;try{let a=pl("monthly")&&((r=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:r.monthly)||{};return{format:a.format||jD,folder:((n=a.folder)==null?void 0:n.trim())||"",template:((i=a.template)==null?void 0:i.trim())||""}}catch(a){console.info("No custom monthly note settings found!",a)}}function wl(){var t,r,n,i;let e=window.app.plugins;try{let a=pl("quarterly")&&((r=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:r.quarterly)||{};return{format:a.format||qD,folder:((n=a.folder)==null?void 0:n.trim())||"",template:((i=a.template)==null?void 0:i.trim())||""}}catch(a){console.info("No custom quarterly note settings found!",a)}}function bl(){var t,r,n,i;let e=window.app.plugins;try{let a=pl("yearly")&&((r=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:r.yearly)||{};return{format:a.format||GD,folder:((n=a.folder)==null?void 0:n.trim())||"",template:((i=a.template)==null?void 0:i.trim())||""}}catch(a){console.info("No custom yearly note settings found!",a)}}function JD(...e){let t=[];for(let n=0,i=e.length;n<i;n++)t=t.concat(e[n].split("/"));let r=[];for(let n=0,i=t.length;n<i;n++){let a=t[n];!a||a==="."||r.push(a)}return t[0]===""&&r.unshift(""),r.join("/")}function ML(e){let t=e.substring(e.lastIndexOf("/")+1);return t.lastIndexOf(".")!=-1&&(t=t.substring(0,t.lastIndexOf("."))),t}async function TL(e){let t=e.replace(/\\/g,"/").split("/");if(t.pop(),t.length){let r=JD(...t);window.app.vault.getAbstractFileByPath(r)||await window.app.vault.createFolder(r)}}async function Dl(e,t){t.endsWith(".md")||(t+=".md");let r=on.normalizePath(JD(e,t));return await TL(r),r}async function Jo(e){let{metadataCache:t,vault:r}=window.app,n=on.normalizePath(e);if(n==="/")return Promise.resolve(["",null]);try{let i=t.getFirstLinkpathDest(n,""),a=await r.cachedRead(i),o=window.app.foldManager.load(i);return[a,o]}catch(i){return console.error(`Failed to read the daily note template '${n}'`,i),new on.Notice("Failed to read the daily note template"),["",null]}}function ni(e,t="day"){let r=e.clone().startOf(t).format();return`${t}-${r}`}function ZD(e){return e.replace(/\[[^\]]*\]/g,"")}function FL(e,t){if(t==="week"){let r=ZD(e);return/w{1,2}/i.test(r)&&(/M{1,4}/.test(r)||/D{1,4}/.test(r))}return!1}function Zo(e,t){return QD(e.basename,t)}function IL(e,t){return QD(ML(e),t)}function QD(e,t){let n={day:gl,week:yl,month:vl,quarter:wl,year:bl}[t]().format.split("/").pop(),i=window.moment(e,n,!0);if(!i.isValid())return null;if(FL(n,t)&&t==="week"){let a=ZD(n);if(/w{1,2}/i.test(a))return window.moment(e,n.replace(/M{1,4}/g,"").replace(/D{1,4}/g,""),!1)}return i}var Xh=class extends Error{};async function XD(e){let t=window.app,{vault:r}=t,n=window.moment,{template:i,format:a,folder:o}=gl(),[s,u]=await Jo(i),l=e.format(a),c=await Dl(o,l);try{let d=await r.create(c,s.replace(/{{\s*date\s*}}/gi,l).replace(/{{\s*time\s*}}/gi,n().format("HH:mm")).replace(/{{\s*title\s*}}/gi,l).replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(m,h,g,y,v,D)=>{let I=n(),C=e.clone().set({hour:I.get("hour"),minute:I.get("minute"),second:I.get("second")});return g&&C.add(parseInt(y,10),v),D?C.format(D.substring(1).trim()):C.format(a)}).replace(/{{\s*yesterday\s*}}/gi,e.clone().subtract(1,"day").format(a)).replace(/{{\s*tomorrow\s*}}/gi,e.clone().add(1,"d").format(a)));return t.foldManager.save(d,u),d}catch(d){console.error(`Failed to create file: '${c}'`,d),new on.Notice("Unable to create new file.")}}function AL(e,t){var r;return(r=t[ni(e,"day")])!=null?r:null}function OL(){let{vault:e}=window.app,{folder:t}=gl(),r=e.getAbstractFileByPath(on.normalizePath(t));if(!r)throw new Xh("Failed to find daily notes folder");let n={};return on.Vault.recurseChildren(r,i=>{if(i instanceof on.TFile){let a=Zo(i,"day");if(a){let o=ni(a,"day");n[o]=i}}}),n}var em=class extends Error{};function LL(){let{moment:e}=window,t=e.localeData()._week.dow,r=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];for(;t;)r.push(r.shift()),t--;return r}function PL(e){return LL().indexOf(e.toLowerCase())}async function e0(e){let{vault:t}=window.app,{template:r,format:n,folder:i}=yl(),[a,o]=await Jo(r),s=e.format(n),u=await Dl(i,s);try{let l=await t.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,m,h,g,y)=>{let v=window.moment(),D=e.clone().set({hour:v.get("hour"),minute:v.get("minute"),second:v.get("second")});return m&&D.add(parseInt(h,10),g),y?D.format(y.substring(1).trim()):D.format(n)}).replace(/{{\s*title\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*(sunday|monday|tuesday|wednesday|thursday|friday|saturday)\s*:(.*?)}}/gi,(c,d,m)=>{let h=PL(d);return e.weekday(h).format(m.trim())}));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new on.Notice("Unable to create new file.")}}function NL(e,t){var r;return(r=t[ni(e,"week")])!=null?r:null}function RL(){let e={};if(!n0())return e;let{vault:t}=window.app,{folder:r}=yl(),n=t.getAbstractFileByPath(on.normalizePath(r));if(!n)throw new em("Failed to find weekly notes folder");return on.Vault.recurseChildren(n,i=>{if(i instanceof on.TFile){let a=Zo(i,"week");if(a){let o=ni(a,"week");e[o]=i}}}),e}var tm=class extends Error{};async function t0(e){let{vault:t}=window.app,{template:r,format:n,folder:i}=vl(),[a,o]=await Jo(r),s=e.format(n),u=await Dl(i,s);try{let l=await t.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,m,h,g,y)=>{let v=window.moment(),D=e.clone().set({hour:v.get("hour"),minute:v.get("minute"),second:v.get("second")});return m&&D.add(parseInt(h,10),g),y?D.format(y.substring(1).trim()):D.format(n)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new on.Notice("Unable to create new file.")}}function HL(e,t){var r;return(r=t[ni(e,"month")])!=null?r:null}function BL(){let e={};if(!r0())return e;let{vault:t}=window.app,{folder:r}=vl(),n=t.getAbstractFileByPath(on.normalizePath(r));if(!n)throw new tm("Failed to find monthly notes folder");return on.Vault.recurseChildren(n,i=>{if(i instanceof on.TFile){let a=Zo(i,"month");if(a){let o=ni(a,"month");e[o]=i}}}),e}var nm=class extends Error{};async function VL(e){let{vault:t}=window.app,{template:r,format:n,folder:i}=wl(),[a,o]=await Jo(r),s=e.format(n),u=await Dl(i,s);try{let l=await t.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,m,h,g,y)=>{let v=window.moment(),D=e.clone().set({hour:v.get("hour"),minute:v.get("minute"),second:v.get("second")});return m&&D.add(parseInt(h,10),g),y?D.format(y.substring(1).trim()):D.format(n)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new on.Notice("Unable to create new file.")}}function $L(e,t){var r;return(r=t[ni(e,"quarter")])!=null?r:null}function UL(){let e={};if(!i0())return e;let{vault:t}=window.app,{folder:r}=wl(),n=t.getAbstractFileByPath(on.normalizePath(r));if(!n)throw new nm("Failed to find quarterly notes folder");return on.Vault.recurseChildren(n,i=>{if(i instanceof on.TFile){let a=Zo(i,"quarter");if(a){let o=ni(a,"quarter");e[o]=i}}}),e}var rm=class extends Error{};async function WL(e){let{vault:t}=window.app,{template:r,format:n,folder:i}=bl(),[a,o]=await Jo(r),s=e.format(n),u=await Dl(i,s);try{let l=await t.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,m,h,g,y)=>{let v=window.moment(),D=e.clone().set({hour:v.get("hour"),minute:v.get("minute"),second:v.get("second")});return m&&D.add(parseInt(h,10),g),y?D.format(y.substring(1).trim()):D.format(n)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new on.Notice("Unable to create new file.")}}function YL(e,t){var r;return(r=t[ni(e,"year")])!=null?r:null}function zL(){let e={};if(!a0())return e;let{vault:t}=window.app,{folder:r}=bl(),n=t.getAbstractFileByPath(on.normalizePath(r));if(!n)throw new rm("Failed to find yearly notes folder");return on.Vault.recurseChildren(n,i=>{if(i instanceof on.TFile){let a=Zo(i,"year");if(a){let o=ni(a,"year");e[o]=i}}}),e}function KL(){var n,i;let{app:e}=window,t=e.internalPlugins.plugins["daily-notes"];if(t&&t.enabled)return!0;let r=e.plugins.getPlugin("periodic-notes");return r&&((i=(n=r.settings)==null?void 0:n.daily)==null?void 0:i.enabled)}function n0(){var r,n;let{app:e}=window;if(e.plugins.getPlugin("calendar"))return!0;let t=e.plugins.getPlugin("periodic-notes");return t&&((n=(r=t.settings)==null?void 0:r.weekly)==null?void 0:n.enabled)}function r0(){var r,n;let{app:e}=window,t=e.plugins.getPlugin("periodic-notes");return t&&((n=(r=t.settings)==null?void 0:r.monthly)==null?void 0:n.enabled)}function i0(){var r,n;let{app:e}=window,t=e.plugins.getPlugin("periodic-notes");return t&&((n=(r=t.settings)==null?void 0:r.quarterly)==null?void 0:n.enabled)}function a0(){var r,n;let{app:e}=window,t=e.plugins.getPlugin("periodic-notes");return t&&((n=(r=t.settings)==null?void 0:r.yearly)==null?void 0:n.enabled)}function jL(e){let t={day:gl,week:yl,month:vl,quarter:wl,year:bl}[e];return t()}function qL(e,t){return{day:XD,month:t0,week:e0}[e](t)}gt.DEFAULT_DAILY_NOTE_FORMAT=Zh;gt.DEFAULT_MONTHLY_NOTE_FORMAT=jD;gt.DEFAULT_QUARTERLY_NOTE_FORMAT=qD;gt.DEFAULT_WEEKLY_NOTE_FORMAT=Qh;gt.DEFAULT_YEARLY_NOTE_FORMAT=GD;gt.appHasDailyNotesPluginLoaded=KL;gt.appHasMonthlyNotesPluginLoaded=r0;gt.appHasQuarterlyNotesPluginLoaded=i0;gt.appHasWeeklyNotesPluginLoaded=n0;gt.appHasYearlyNotesPluginLoaded=a0;gt.createDailyNote=XD;gt.createMonthlyNote=t0;gt.createPeriodicNote=qL;gt.createQuarterlyNote=VL;gt.createWeeklyNote=e0;gt.createYearlyNote=WL;gt.getAllDailyNotes=OL;gt.getAllMonthlyNotes=BL;gt.getAllQuarterlyNotes=UL;gt.getAllWeeklyNotes=RL;gt.getAllYearlyNotes=zL;gt.getDailyNote=AL;gt.getDailyNoteSettings=gl;gt.getDateFromFile=Zo;gt.getDateFromPath=IL;gt.getDateUID=ni;gt.getMonthlyNote=HL;gt.getMonthlyNoteSettings=vl;gt.getPeriodicNoteSettings=jL;gt.getQuarterlyNote=$L;gt.getQuarterlyNoteSettings=wl;gt.getTemplateInfo=Jo;gt.getWeeklyNote=NL;gt.getWeeklyNoteSettings=yl;gt.getYearlyNote=YL;gt.getYearlyNoteSettings=bl});var Ic=wn(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});require("obsidian");var qi=class extends Error{},fm=class extends qi{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},hm=class extends qi{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},mm=class extends qi{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},ro=class extends qi{},yc=class extends qi{constructor(t){super(`Invalid unit ${t}`)}},vr=class extends qi{},Di=class extends qi{constructor(){super("Zone is an abstract class")}},_e="numeric",oi="short",Or="long",vc={year:_e,month:_e,day:_e},H0={year:_e,month:oi,day:_e},GL={year:_e,month:oi,day:_e,weekday:oi},B0={year:_e,month:Or,day:_e},V0={year:_e,month:Or,day:_e,weekday:Or},$0={hour:_e,minute:_e},U0={hour:_e,minute:_e,second:_e},W0={hour:_e,minute:_e,second:_e,timeZoneName:oi},Y0={hour:_e,minute:_e,second:_e,timeZoneName:Or},z0={hour:_e,minute:_e,hourCycle:"h23"},K0={hour:_e,minute:_e,second:_e,hourCycle:"h23"},j0={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:oi},q0={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Or},G0={year:_e,month:_e,day:_e,hour:_e,minute:_e},J0={year:_e,month:_e,day:_e,hour:_e,minute:_e,second:_e},Z0={year:_e,month:oi,day:_e,hour:_e,minute:_e},Q0={year:_e,month:oi,day:_e,hour:_e,minute:_e,second:_e},JL={year:_e,month:oi,day:_e,weekday:oi,hour:_e,minute:_e},X0={year:_e,month:Or,day:_e,hour:_e,minute:_e,timeZoneName:oi},eS={year:_e,month:Or,day:_e,hour:_e,minute:_e,second:_e,timeZoneName:oi},tS={year:_e,month:Or,day:_e,weekday:Or,hour:_e,minute:_e,timeZoneName:Or},nS={year:_e,month:Or,day:_e,weekday:Or,hour:_e,minute:_e,second:_e,timeZoneName:Or},oo=class{get type(){throw new Di}get name(){throw new Di}get ianaName(){return this.name}get isUniversal(){throw new Di}offsetName(t,r){throw new Di}formatOffset(t,r){throw new Di}offset(t){throw new Di}equals(t){throw new Di}get isValid(){throw new Di}},im=null,wc=class e extends oo{static get instance(){return im===null&&(im=new e),im}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return iS(t,r,n)}formatOffset(t,r){return _l(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}},pc={};function ZL(e){return pc[e]||(pc[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),pc[e]}var QL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function XL(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,a,o,s,u,l,c]=n;return[o,i,a,s,u,l,c]}function e2(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:a,value:o}=r[i],s=QL[a];a==="era"?n[s]=o:kt(s)||(n[s]=parseInt(o,10))}return n}var uc={},Da=class e extends oo{static create(t){return uc[t]||(uc[t]=new e(t)),uc[t]}static resetCache(){uc={},pc={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(r){return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return iS(t,r,n,this.name)}formatOffset(t,r){return _l(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=ZL(this.name),[i,a,o,s,u,l,c]=n.formatToParts?e2(n,r):XL(n,r);s==="BC"&&(i=-Math.abs(i)+1);let m=Mc({year:i,month:a,day:o,hour:u===24?0:u,minute:l,second:c,millisecond:0}),h=+r,g=h%1e3;return h-=g>=0?g:1e3+g,(m-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}},s0={};function t2(e,t={}){let r=JSON.stringify([e,t]),n=s0[r];return n||(n=new Intl.ListFormat(e,t),s0[r]=n),n}var pm={};function gm(e,t={}){let r=JSON.stringify([e,t]),n=pm[r];return n||(n=new Intl.DateTimeFormat(e,t),pm[r]=n),n}var ym={};function n2(e,t={}){let r=JSON.stringify([e,t]),n=ym[r];return n||(n=new Intl.NumberFormat(e,t),ym[r]=n),n}var vm={};function r2(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),a=vm[i];return a||(a=new Intl.RelativeTimeFormat(e,t),vm[i]=a),a}var xl=null;function i2(){return xl||(xl=new Intl.DateTimeFormat().resolvedOptions().locale,xl)}function a2(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=gm(e).resolvedOptions(),i=e}catch(s){let u=e.substring(0,r);n=gm(u).resolvedOptions(),i=u}let{numberingSystem:a,calendar:o}=n;return[i,a,o]}}function o2(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function s2(e){let t=[];for(let r=1;r<=12;r++){let n=mt.utc(2009,r,1);t.push(e(n))}return t}function l2(e){let t=[];for(let r=1;r<=7;r++){let n=mt.utc(2016,11,13+r);t.push(e(n))}return t}function cc(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function u2(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var wm=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:a,...o}=n;if(!r||Object.keys(o).length>0){let s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=n2(t,s)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):Om(t,3);return Tn(r,this.padTo)}}},bm=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let o=-1*(t.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&Da.create(s).valid?(i=s,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let a={...this.opts};a.timeZone=a.timeZone||i,this.dtf=gm(r,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},Dm=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&rS()&&(this.rtf=r2(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):x2(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},mn=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,r,n,i=!1){let a=t||hn.defaultLocale,o=a||(i?"en-US":i2()),s=r||hn.defaultNumberingSystem,u=n||hn.defaultOutputCalendar;return new e(o,s,u,a)}static resetCache(){xl=null,pm={},ym={},vm={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n}={}){return e.create(t,r,n)}constructor(t,r,n,i){let[a,o,s]=a2(t);this.locale=a,this.numberingSystem=r||o||null,this.outputCalendar=n||s||null,this.intl=o2(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=u2(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return cc(this,t,sS,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=s2(a=>this.extract(a,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return cc(this,t,cS,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=l2(a=>this.extract(a,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return cc(this,void 0,()=>dS,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[mt.utc(2016,11,13,9),mt.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return cc(this,t,fS,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[mt.utc(-40,1,1),mt.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),a=i.formatToParts(),o=a.find(s=>s.type.toLowerCase()===n);return o?o.value:null}numberFormatter(t={}){return new wm(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new bm(t,this.intl,r)}relFormatter(t={}){return new Dm(this.intl,this.isEnglish(),t)}listFormatter(t={}){return t2(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}},am=null,Kr=class e extends oo{static get utcInstance(){return am===null&&(am=new e(0)),am}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(Tc(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${_l(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${_l(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return _l(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}},Sm=class extends oo{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function ba(e,t){if(kt(e)||e===null)return t;if(e instanceof oo)return e;if(c2(e)){let r=e.toLowerCase();return r==="default"?t:r==="local"||r==="system"?wc.instance:r==="utc"||r==="gmt"?Kr.utcInstance:Kr.parseSpecifier(r)||Da.create(e)}else return ao(e)?Kr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Sm(e)}var l0=()=>Date.now(),u0="system",c0=null,d0=null,f0=null,h0=60,m0,hn=class{static get now(){return l0}static set now(t){l0=t}static set defaultZone(t){u0=t}static get defaultZone(){return ba(u0,wc.instance)}static get defaultLocale(){return c0}static set defaultLocale(t){c0=t}static get defaultNumberingSystem(){return d0}static set defaultNumberingSystem(t){d0=t}static get defaultOutputCalendar(){return f0}static set defaultOutputCalendar(t){f0=t}static get twoDigitCutoffYear(){return h0}static set twoDigitCutoffYear(t){h0=t%100}static get throwOnInvalid(){return m0}static set throwOnInvalid(t){m0=t}static resetCaches(){mn.resetCache(),Da.resetCache()}};function kt(e){return typeof e=="undefined"}function ao(e){return typeof e=="number"}function _c(e){return typeof e=="number"&&e%1===0}function c2(e){return typeof e=="string"}function d2(e){return Object.prototype.toString.call(e)==="[object Date]"}function rS(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function f2(e){return Array.isArray(e)?e:[e]}function p0(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let a=[t(i),i];return n&&r(n[0],a[0])===n[0]?n:a},null)[1]}function h2(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function rs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ji(e,t,r){return _c(e)&&e>=t&&e<=r}function m2(e,t){return e-t*Math.floor(e/t)}function Tn(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function wa(e){if(!(kt(e)||e===null||e===""))return parseInt(e,10)}function to(e){if(!(kt(e)||e===null||e===""))return parseFloat(e)}function Am(e){if(!(kt(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Om(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Fl(e){return e%4===0&&(e%100!==0||e%400===0)}function Cl(e){return Fl(e)?366:365}function bc(e,t){let r=m2(t-1,12)+1,n=e+(t-r)/12;return r===2?Fl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Mc(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Dc(e){let t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return t===4||n===3?53:52}function Em(e){return e>99?e:e>hn.twoDigitCutoffYear?1900+e:2e3+e}function iS(e,t,r,n=null){let i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);let o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(r,o).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return s?s.value:null}function Tc(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function aS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new vr(`Invalid unit value ${e}`);return t}function Sc(e,t){let r={};for(let n in e)if(rs(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=aS(i)}return r}function _l(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Tn(r,2)}:${Tn(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${Tn(r,2)}${Tn(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Fc(e){return h2(e,["hour","minute","second","millisecond"])}var p2=["January","February","March","April","May","June","July","August","September","October","November","December"],oS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g2=["J","F","M","A","M","J","J","A","S","O","N","D"];function sS(e){switch(e){case"narrow":return[...g2];case"short":return[...oS];case"long":return[...p2];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var lS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],uS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],y2=["M","T","W","T","F","S","S"];function cS(e){switch(e){case"narrow":return[...y2];case"short":return[...uS];case"long":return[...lS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var dS=["AM","PM"],v2=["Before Christ","Anno Domini"],w2=["BC","AD"],b2=["B","A"];function fS(e){switch(e){case"narrow":return[...b2];case"short":return[...w2];case"long":return[...v2];default:return null}}function D2(e){return dS[e.hour<12?0:1]}function S2(e,t){return cS(t)[e.weekday-1]}function E2(e,t){return sS(t)[e.month-1]}function k2(e,t){return fS(t)[e.year<0?0:1]}function x2(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&a){let d=e==="days";switch(t){case 1:return d?"tomorrow":`next ${i[e][0]}`;case-1:return d?"yesterday":`last ${i[e][0]}`;case 0:return d?"today":`this ${i[e][0]}`}}let o=Object.is(t,-0)||t<0,s=Math.abs(t),u=s===1,l=i[e],c=n?u?l[1]:l[2]||l[1]:u?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}function g0(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var C2={D:vc,DD:H0,DDD:B0,DDDD:V0,t:$0,tt:U0,ttt:W0,tttt:Y0,T:z0,TT:K0,TTT:j0,TTTT:q0,f:G0,ff:Z0,fff:X0,ffff:tS,F:J0,FF:Q0,FFF:eS,FFFF:nS},Ir=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,a=[];for(let o=0;o<t.length;o++){let s=t.charAt(o);s==="'"?(n.length>0&&a.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||s===r?n+=s:(n.length>0&&a.push({literal:/^\s+$/.test(n),val:n}),n=s,r=s)}return n.length>0&&a.push({literal:i||/^\s+$/.test(n),val:n}),a}static macroTokenToFormatOpts(t){return C2[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return Tn(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(h,g)=>this.loc.extract(t,h,g),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>n?D2(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,g)=>n?E2(t,h):a(g?{month:h}:{month:h,day:"numeric"},"month"),l=(h,g)=>n?S2(t,h):a(g?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),c=h=>{let g=e.macroTokenToFormatOpts(h);return g?this.formatWithSystemDefault(t,g):h},d=h=>n?k2(t,h):a({era:h},"era"),m=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(h)}};return g0(e.parseFormat(r),m)}formatDurationFromString(t,r){let n=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=u=>l=>{let c=n(l);return c?this.num(u.get(c),l.length):l},a=e.parseFormat(r),o=a.reduce((u,{literal:l,val:c})=>l?u:u.concat(c),[]),s=t.shiftTo(...o.map(n).filter(u=>u));return g0(a,i(s))}},Ar=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},hS=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function is(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function as(...e){return t=>e.reduce(([r,n,i],a)=>{let[o,s,u]=a(t,i);return[{...r,...o},s||n,u]},[{},null,1]).slice(0,2)}function os(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function mS(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=wa(t[r+i]);return[n,null,r+i]}}var pS=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,_2=`(?:${pS.source}?(?:\\[(${hS.source})\\])?)?`,Lm=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,gS=RegExp(`${Lm.source}${_2}`),Pm=RegExp(`(?:T${gS.source})?`),M2=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,T2=/(\d{4})-?W(\d\d)(?:-?(\d))?/,F2=/(\d{4})-?(\d{3})/,I2=mS("weekYear","weekNumber","weekDay"),A2=mS("year","ordinal"),O2=/(\d{4})-(\d\d)-(\d\d)/,yS=RegExp(`${Lm.source} ?(?:${pS.source}|(${hS.source}))?`),L2=RegExp(`(?: ${yS.source})?`);function ts(e,t,r){let n=e[t];return kt(n)?r:wa(n)}function P2(e,t){return[{year:ts(e,t),month:ts(e,t+1,1),day:ts(e,t+2,1)},null,t+3]}function ss(e,t){return[{hours:ts(e,t,0),minutes:ts(e,t+1,0),seconds:ts(e,t+2,0),milliseconds:Am(e[t+3])},null,t+4]}function Il(e,t){let r=!e[t]&&!e[t+1],n=Tc(e[t+1],e[t+2]),i=r?null:Kr.instance(n);return[{},i,t+3]}function Al(e,t){let r=e[t]?Da.create(e[t]):null;return[{},r,t+1]}var N2=RegExp(`^T?${Lm.source}$`),R2=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function H2(e){let[t,r,n,i,a,o,s,u,l]=e,c=t[0]==="-",d=u&&u[0]==="-",m=(h,g=!1)=>h!==void 0&&(g||h&&c)?-h:h;return[{years:m(to(r)),months:m(to(n)),weeks:m(to(i)),days:m(to(a)),hours:m(to(o)),minutes:m(to(s)),seconds:m(to(u),u==="-0"),milliseconds:m(Am(l),d)}]}var B2={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Nm(e,t,r,n,i,a,o){let s={year:t.length===2?Em(wa(t)):wa(t),month:oS.indexOf(r)+1,day:wa(n),hour:wa(i),minute:wa(a)};return o&&(s.second=wa(o)),e&&(s.weekday=e.length>3?lS.indexOf(e)+1:uS.indexOf(e)+1),s}var V2=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function $2(e){let[,t,r,n,i,a,o,s,u,l,c,d]=e,m=Nm(t,i,n,r,a,o,s),h;return u?h=B2[u]:l?h=0:h=Tc(c,d),[m,new Kr(h)]}function U2(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var W2=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Y2=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,z2=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function y0(e){let[,t,r,n,i,a,o,s]=e;return[Nm(t,i,n,r,a,o,s),Kr.utcInstance]}function K2(e){let[,t,r,n,i,a,o,s]=e;return[Nm(t,s,r,n,i,a,o),Kr.utcInstance]}var j2=is(M2,Pm),q2=is(T2,Pm),G2=is(F2,Pm),J2=is(gS),vS=as(P2,ss,Il,Al),Z2=as(I2,ss,Il,Al),Q2=as(A2,ss,Il,Al),X2=as(ss,Il,Al);function eP(e){return os(e,[j2,vS],[q2,Z2],[G2,Q2],[J2,X2])}function tP(e){return os(U2(e),[V2,$2])}function nP(e){return os(e,[W2,y0],[Y2,y0],[z2,K2])}function rP(e){return os(e,[R2,H2])}var iP=as(ss);function aP(e){return os(e,[N2,iP])}var oP=is(O2,L2),sP=is(yS),lP=as(ss,Il,Al);function uP(e){return os(e,[oP,vS],[sP,lP])}var v0="Invalid Duration",wS={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},cP={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...wS},Yr=146097/400,Qo=146097/4800,dP={years:{quarters:4,months:12,weeks:Yr/7,days:Yr,hours:Yr*24,minutes:Yr*24*60,seconds:Yr*24*60*60,milliseconds:Yr*24*60*60*1e3},quarters:{months:3,weeks:Yr/28,days:Yr/4,hours:Yr*24/4,minutes:Yr*24*60/4,seconds:Yr*24*60*60/4,milliseconds:Yr*24*60*60*1e3/4},months:{weeks:Qo/7,days:Qo,hours:Qo*24,minutes:Qo*24*60,seconds:Qo*24*60*60,milliseconds:Qo*24*60*60*1e3},...wS},io=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],fP=io.slice(0).reverse();function va(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new He(n)}function bS(e,t){var n;let r=(n=t.milliseconds)!=null?n:0;for(let i of fP.slice(1))t[i]&&(r+=t[i]*e[i].milliseconds);return r}function w0(e,t){let r=bS(e,t)<0?-1:1;io.reduceRight((n,i)=>{if(kt(t[i]))return n;if(n){let a=t[n]*r,o=e[i][n],s=Math.floor(a/o);t[i]+=s*r,t[n]-=s*o*r}return i},null),io.reduce((n,i)=>{if(kt(t[i]))return n;if(n){let a=t[n]%1;t[n]-=a,t[i]+=a*e[n][i]}return i},null)}function hP(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var He=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?dP:cP;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||mn.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Sc(t,e.normalizeUnit),loc:mn.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(ao(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new vr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=rP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=aP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the Duration is invalid");let n=t instanceof Ar?t:new Ar(t,r);if(hn.throwOnInvalid)throw new mm(n);return new e({invalid:n})}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new yc(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Ir.create(this.loc,n).formatDurationFromString(this,t):v0}toHuman(t={}){if(!this.isValid)return v0;let r=io.map(n=>{let i=this.values[n];return kt(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Om(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},mt.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?bS(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of io)(rs(r.values,i)||rs(this.values,i))&&(n[i]=r.get(i)+this.get(i));return va(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=aS(t(this.values[n],n));return va(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Sc(t,e.normalizeUnit)};return va(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let o={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return va(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return w0(this.matrix,t),va(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=hP(this.normalize().shiftToAll().toObject());return va(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>e.normalizeUnit(o));let r={},n={},i=this.toObject(),a;for(let o of io)if(t.indexOf(o)>=0){a=o;let s=0;for(let l in n)s+=this.matrix[l][o]*n[l],n[l]=0;ao(i[o])&&(s+=i[o]);let u=Math.trunc(s);r[o]=u,n[o]=(s*1e3-u*1e3)/1e3}else ao(i[o])&&(n[o]=i[o]);for(let o in n)n[o]!==0&&(r[a]+=o===a?n[o]:n[o]/this.matrix[a][o]);return w0(this.matrix,r),va(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return va(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of io)if(!r(this.values[n],t.values[n]))return!1;return!0}},Xo="Invalid Interval";function mP(e,t){return!e||!e.isValid?ns.invalid("missing or invalid start"):!t||!t.isValid?ns.invalid("missing or invalid end"):t<e?ns.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var ns=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the Interval is invalid");let n=t instanceof Ar?t:new Ar(t,r);if(hn.throwOnInvalid)throw new hm(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=El(t),i=El(r),a=mP(n,i);return a==null?new e({start:n,end:i}):a}static after(t,r){let n=He.fromDurationLike(r),i=El(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=He.fromDurationLike(r),i=El(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let a,o;try{a=mt.fromISO(n,r),o=a.isValid}catch(l){o=!1}let s,u;try{s=mt.fromISO(i,r),u=s.isValid}catch(l){u=!1}if(o&&u)return e.fromDateTimes(a,s);if(o){let l=He.fromISO(i,r);if(l.isValid)return e.after(a,l)}else if(u){let l=He.fromISO(n,r);if(l.isValid)return e.before(s,l)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;let r=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(r,t).get(t))+(n.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(El).filter(o=>this.contains(o)).sort(),n=[],{s:i}=this,a=0;for(;i<this.e;){let o=r[a]||this.e,s=+o>+this.e?this.e:o;n.push(e.fromDateTimes(i,s)),i=s,a+=1}return n}splitBy(t){let r=He.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,a,o=[];for(;n<this.e;){let s=this.start.plus(r.mapUnits(u=>u*i));a=+s>+this.e?this.e:s,o.push(e.fromDateTimes(n,a)),n=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],a=t.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),o=Array.prototype.concat(...a),s=o.sort((u,l)=>u.time-l.time);for(let u of s)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&i.push(e.fromDateTimes(r,u.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Xo}toLocaleString(t=vc,r={}){return this.isValid?Ir.create(this.s.loc.clone(r),t).formatInterval(this):Xo}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Xo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xo}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Xo}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Xo}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):He.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},es=class{static hasDST(t=hn.defaultZone){let r=mt.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return Da.isValidZone(t)}static normalizeZone(t){return ba(t,hn.defaultZone)}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||mn.create(r,n,a)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||mn.create(r,n,a)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||mn.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||mn.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return mn.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return mn.create(r,null,"gregory").eras(t)}static features(){return{relative:rS()}}};function b0(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(He.fromMillis(n).as("days"))}function pP(e,t,r){let n=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{let c=b0(u,l);return(c-c%7)/7}],["days",b0]],i={},a=e,o,s;for(let[u,l]of n)r.indexOf(u)>=0&&(o=u,i[u]=l(e,t),s=a.plus(i),s>t?(i[u]--,e=a.plus(i),e>t&&(s=e,i[u]--,e=a.plus(i))):e=s);return[e,i,s,o]}function gP(e,t,r,n){let[i,a,o,s]=pP(e,t,r),u=t-i,l=r.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);l.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+u/(o-i)));let c=He.fromObject(a,n);return l.length>0?He.fromMillis(u,n).shiftTo(...l).plus(c):c}var Rm={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},D0={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yP=Rm.hanidec.replace(/[\[|\]]/g,"").split("");function vP(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(Rm.hanidec)!==-1)t+=yP.indexOf(e[r]);else for(let i in D0){let[a,o]=D0[i];n>=a&&n<=o&&(t+=n-a)}}return parseInt(t,10)}else return t}function ri({numberingSystem:e},t=""){return new RegExp(`${Rm[e||"latn"]}${t}`)}var wP="missing Intl.DateTimeFormat.formatToParts support";function Nt(e,t=r=>r){return{regex:e,deser:([r])=>t(vP(r))}}var bP="\xA0",DS=`[ ${bP}]`,SS=new RegExp(DS,"g");function DP(e){return e.replace(/\./g,"\\.?").replace(SS,DS)}function S0(e){return e.replace(/\./g,"").replace(SS," ").toLowerCase()}function ii(e,t){return e===null?null:{regex:RegExp(e.map(DP).join("|")),deser:([r])=>e.findIndex(n=>S0(r)===S0(n))+t}}function E0(e,t){return{regex:e,deser:([,r,n])=>Tc(r,n),groups:t}}function dc(e){return{regex:e,deser:([t])=>t}}function SP(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function EP(e,t){let r=ri(t),n=ri(t,"{2}"),i=ri(t,"{3}"),a=ri(t,"{4}"),o=ri(t,"{6}"),s=ri(t,"{1,2}"),u=ri(t,"{1,3}"),l=ri(t,"{1,6}"),c=ri(t,"{1,9}"),d=ri(t,"{2,4}"),m=ri(t,"{4,6}"),h=v=>({regex:RegExp(SP(v.val)),deser:([D])=>D,literal:!0}),y=(v=>{if(e.literal)return h(v);switch(v.val){case"G":return ii(t.eras("short"),0);case"GG":return ii(t.eras("long"),0);case"y":return Nt(l);case"yy":return Nt(d,Em);case"yyyy":return Nt(a);case"yyyyy":return Nt(m);case"yyyyyy":return Nt(o);case"M":return Nt(s);case"MM":return Nt(n);case"MMM":return ii(t.months("short",!0),1);case"MMMM":return ii(t.months("long",!0),1);case"L":return Nt(s);case"LL":return Nt(n);case"LLL":return ii(t.months("short",!1),1);case"LLLL":return ii(t.months("long",!1),1);case"d":return Nt(s);case"dd":return Nt(n);case"o":return Nt(u);case"ooo":return Nt(i);case"HH":return Nt(n);case"H":return Nt(s);case"hh":return Nt(n);case"h":return Nt(s);case"mm":return Nt(n);case"m":return Nt(s);case"q":return Nt(s);case"qq":return Nt(n);case"s":return Nt(s);case"ss":return Nt(n);case"S":return Nt(u);case"SSS":return Nt(i);case"u":return dc(c);case"uu":return dc(s);case"uuu":return Nt(r);case"a":return ii(t.meridiems(),0);case"kkkk":return Nt(a);case"kk":return Nt(d,Em);case"W":return Nt(s);case"WW":return Nt(n);case"E":case"c":return Nt(r);case"EEE":return ii(t.weekdays("short",!1),1);case"EEEE":return ii(t.weekdays("long",!1),1);case"ccc":return ii(t.weekdays("short",!0),1);case"cccc":return ii(t.weekdays("long",!0),1);case"Z":case"ZZ":return E0(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return E0(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return dc(/[a-z_+-/]{1,256}?/i);case" ":return dc(/[^\S\n\r]/);default:return h(v)}})(e)||{invalidReason:wP};return y.token=e,y}var kP={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function xP(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let u=/^\s+$/.test(i);return{literal:!u,val:u?" ":i}}let a=t[n],o=n;n==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let s=kP[o];if(typeof s=="object"&&(s=s[a]),s)return{literal:!1,val:s}}function CP(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function _P(e,t,r){let n=e.match(t);if(n){let i={},a=1;for(let o in r)if(rs(r,o)){let s=r[o],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(n.slice(a,a+u))),a+=u}return[n,i]}else return[n,{}]}function MP(e){let t=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return kt(e.z)||(r=Da.create(e.z)),kt(e.Z)||(r||(r=new Kr(e.Z)),n=e.Z),kt(e.q)||(e.M=(e.q-1)*3+1),kt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),kt(e.u)||(e.S=Am(e.u)),[Object.keys(e).reduce((a,o)=>{let s=t(o);return s&&(a[s]=e[o]),a},{}),r,n]}var om=null;function TP(){return om||(om=mt.fromMillis(1555555555555)),om}function FP(e,t){if(e.literal)return e;let r=Ir.macroTokenToFormatOpts(e.val),n=xS(r,t);return n==null||n.includes(void 0)?e:n}function ES(e,t){return Array.prototype.concat(...e.map(r=>FP(r,t)))}function kS(e,t,r){let n=ES(Ir.parseFormat(r),e),i=n.map(o=>EP(o,e)),a=i.find(o=>o.invalidReason);if(a)return{input:t,tokens:n,invalidReason:a.invalidReason};{let[o,s]=CP(i),u=RegExp(o,"i"),[l,c]=_P(t,u,s),[d,m,h]=c?MP(c):[null,null,void 0];if(rs(c,"a")&&rs(c,"H"))throw new ro("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:u,rawMatches:l,matches:c,result:d,zone:m,specificOffset:h}}}function IP(e,t,r){let{result:n,zone:i,specificOffset:a,invalidReason:o}=kS(e,t,r);return[n,i,a,o]}function xS(e,t){if(!e)return null;let n=Ir.create(t,e).dtFormatter(TP()),i=n.formatToParts(),a=n.resolvedOptions();return i.map(o=>xP(o,e,a))}var CS=[0,31,59,90,120,151,181,212,243,273,304,334],_S=[0,31,60,91,121,152,182,213,244,274,305,335];function zr(e,t){return new Ar("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function MS(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function TS(e,t,r){return r+(Fl(e)?_S:CS)[t-1]}function FS(e,t){let r=Fl(e)?_S:CS,n=r.findIndex(a=>a<t),i=t-r[n];return{month:n+1,day:i}}function km(e){let{year:t,month:r,day:n}=e,i=TS(t,r,n),a=MS(t,r,n),o=Math.floor((i-a+10)/7),s;return o<1?(s=t-1,o=Dc(s)):o>Dc(t)?(s=t+1,o=1):s=t,{weekYear:s,weekNumber:o,weekday:a,...Fc(e)}}function k0(e){let{weekYear:t,weekNumber:r,weekday:n}=e,i=MS(t,1,4),a=Cl(t),o=r*7+n-i-3,s;o<1?(s=t-1,o+=Cl(s)):o>a?(s=t+1,o-=Cl(t)):s=t;let{month:u,day:l}=FS(s,o);return{year:s,month:u,day:l,...Fc(e)}}function sm(e){let{year:t,month:r,day:n}=e,i=TS(t,r,n);return{year:t,ordinal:i,...Fc(e)}}function x0(e){let{year:t,ordinal:r}=e,{month:n,day:i}=FS(t,r);return{year:t,month:n,day:i,...Fc(e)}}function AP(e){let t=_c(e.weekYear),r=ji(e.weekNumber,1,Dc(e.weekYear)),n=ji(e.weekday,1,7);return t?r?n?!1:zr("weekday",e.weekday):zr("week",e.week):zr("weekYear",e.weekYear)}function OP(e){let t=_c(e.year),r=ji(e.ordinal,1,Cl(e.year));return t?r?!1:zr("ordinal",e.ordinal):zr("year",e.year)}function IS(e){let t=_c(e.year),r=ji(e.month,1,12),n=ji(e.day,1,bc(e.year,e.month));return t?r?n?!1:zr("day",e.day):zr("month",e.month):zr("year",e.year)}function AS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,a=ji(t,0,23)||t===24&&r===0&&n===0&&i===0,o=ji(r,0,59),s=ji(n,0,59),u=ji(i,0,999);return a?o?s?u?!1:zr("millisecond",i):zr("second",n):zr("minute",r):zr("hour",t)}var lm="Invalid DateTime",C0=864e13;function fc(e){return new Ar("unsupported zone",`the zone "${e.name}" is not supported`)}function um(e){return e.weekData===null&&(e.weekData=km(e.c)),e.weekData}function no(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new mt({...r,...t,old:r})}function OS(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let a=r.offset(n);return i===a?[n,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function hc(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function gc(e,t,r){return OS(Mc(e),t,r)}function _0(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:n,month:i,day:Math.min(e.c.day,bc(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=He.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Mc(a),[u,l]=OS(s,r,e.zone);return o!==0&&(u+=o,l=e.zone.offset(u)),{ts:u,o:l}}function Sl(e,t,r,n,i,a){let{setZone:o,zone:s}=r;if(e&&Object.keys(e).length!==0||t){let u=t||s,l=mt.fromObject(e,{...r,zone:u,specificOffset:a});return o?l:l.setZone(s)}else return mt.invalid(new Ar("unparsable",`the input "${i}" can't be parsed as ${n}`))}function mc(e,t,r=!0){return e.isValid?Ir.create(mn.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function cm(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=Tn(e.c.year,r?6:4),t?(n+="-",n+=Tn(e.c.month),n+="-",n+=Tn(e.c.day)):(n+=Tn(e.c.month),n+=Tn(e.c.day)),n}function M0(e,t,r,n,i,a){let o=Tn(e.c.hour);return t?(o+=":",o+=Tn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(o+=":")):o+=Tn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(o+=Tn(e.c.second),(e.c.millisecond!==0||!n)&&(o+=".",o+=Tn(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!a?o+="Z":e.o<0?(o+="-",o+=Tn(Math.trunc(-e.o/60)),o+=":",o+=Tn(Math.trunc(-e.o%60))):(o+="+",o+=Tn(Math.trunc(e.o/60)),o+=":",o+=Tn(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}var LS={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},LP={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},PP={ordinal:1,hour:0,minute:0,second:0,millisecond:0},PS=["year","month","day","hour","minute","second","millisecond"],NP=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],RP=["year","ordinal","hour","minute","second","millisecond"];function T0(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new yc(e);return t}function F0(e,t){let r=ba(t.zone,hn.defaultZone),n=mn.fromObject(t),i=hn.now(),a,o;if(kt(e.year))a=i;else{for(let l of PS)kt(e[l])&&(e[l]=LS[l]);let s=IS(e)||AS(e);if(s)return mt.invalid(s);let u=r.offset(i);[a,o]=gc(e,u,r)}return new mt({ts:a,zone:r,loc:n,o})}function I0(e,t,r){let n=kt(r.round)?!0:r.round,i=(o,s)=>(o=Om(o,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(o,s)),a=o=>r.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(r.unit)return i(a(r.unit),r.unit);for(let o of r.units){let s=a(o);if(Math.abs(s)>=1)return i(s,o)}return i(e>t?-0:0,r.units[r.units.length-1])}function A0(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}var mt=class e{constructor(t){let r=t.zone||hn.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Ar("invalid input"):null)||(r.isValid?null:fc(r));this.ts=kt(t.ts)?hn.now():t.ts;let i=null,a=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,a]=[t.old.c,t.old.o];else{let s=r.offset(this.ts);i=hc(this.ts,s),n=Number.isNaN(i.year)?new Ar("invalid input"):null,i=n?null:i,a=n?null:s}this._zone=r,this.loc=t.loc||mn.create(),this.invalid=n,this.weekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=A0(arguments),[n,i,a,o,s,u,l]=r;return F0({year:n,month:i,day:a,hour:o,minute:s,second:u,millisecond:l},t)}static utc(){let[t,r]=A0(arguments),[n,i,a,o,s,u,l]=r;return t.zone=Kr.utcInstance,F0({year:n,month:i,day:a,hour:o,minute:s,second:u,millisecond:l},t)}static fromJSDate(t,r={}){let n=d2(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=ba(r.zone,hn.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:mn.fromObject(r)}):e.invalid(fc(i))}static fromMillis(t,r={}){if(ao(t))return t<-C0||t>C0?e.invalid("Timestamp out of range"):new e({ts:t,zone:ba(r.zone,hn.defaultZone),loc:mn.fromObject(r)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(ao(t))return new e({ts:t*1e3,zone:ba(r.zone,hn.defaultZone),loc:mn.fromObject(r)});throw new vr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=ba(r.zone,hn.defaultZone);if(!n.isValid)return e.invalid(fc(n));let i=hn.now(),a=kt(r.specificOffset)?n.offset(i):r.specificOffset,o=Sc(t,T0),s=!kt(o.ordinal),u=!kt(o.year),l=!kt(o.month)||!kt(o.day),c=u||l,d=o.weekYear||o.weekNumber,m=mn.fromObject(r);if((c||s)&&d)throw new ro("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new ro("Can't mix ordinal dates with month/day");let h=d||o.weekday&&!c,g,y,v=hc(i,a);h?(g=NP,y=LP,v=km(v)):s?(g=RP,y=PP,v=sm(v)):(g=PS,y=LS);let D=!1;for(let B of g){let G=o[B];kt(G)?D?o[B]=y[B]:o[B]=v[B]:D=!0}let I=h?AP(o):s?OP(o):IS(o),C=I||AS(o);if(C)return e.invalid(C);let x=h?k0(o):s?x0(o):o,[O,A]=gc(x,a,n),P=new e({ts:O,zone:n,o:A,loc:m});return o.weekday&&c&&t.weekday!==P.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${P.toISO()}`):P}static fromISO(t,r={}){let[n,i]=eP(t);return Sl(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=tP(t);return Sl(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=nP(t);return Sl(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(kt(t)||kt(r))throw new vr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:a=null}=n,o=mn.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,u,l,c]=IP(o,t,r);return c?e.invalid(c):Sl(s,u,n,`format ${r}`,t,l)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=uP(t);return Sl(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the DateTime is invalid");let n=t instanceof Ar?t:new Ar(t,r);if(hn.throwOnInvalid)throw new fm(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=xS(t,mn.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return ES(Ir.parseFormat(t),mn.fromObject(r)).map(i=>i.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?um(this).weekYear:NaN}get weekNumber(){return this.isValid?um(this).weekNumber:NaN}get weekday(){return this.isValid?um(this).weekday:NaN}get ordinal(){return this.isValid?sm(this.c).ordinal:NaN}get monthShort(){return this.isValid?es.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?es.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?es.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?es.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,r=6e4,n=Mc(this.c),i=this.zone.offset(n-t),a=this.zone.offset(n+t),o=this.zone.offset(n-i*r),s=this.zone.offset(n-a*r);if(o===s)return[this];let u=n-o*r,l=n-s*r,c=hc(u,o),d=hc(l,s);return c.hour===d.hour&&c.minute===d.minute&&c.second===d.second&&c.millisecond===d.millisecond?[no(this,{ts:u}),no(this,{ts:l})]:[this]}get isInLeapYear(){return Fl(this.year)}get daysInMonth(){return bc(this.year,this.month)}get daysInYear(){return this.isValid?Cl(this.year):NaN}get weeksInWeekYear(){return this.isValid?Dc(this.weekYear):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=Ir.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Kr.instance(t),r)}toLocal(){return this.setZone(hn.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=ba(t,hn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let a=t.offset(this.ts),o=this.toObject();[i]=gc(o,a,t)}return no(this,{ts:i,zone:t})}else return e.invalid(fc(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return no(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Sc(t,T0),n=!kt(r.weekYear)||!kt(r.weekNumber)||!kt(r.weekday),i=!kt(r.ordinal),a=!kt(r.year),o=!kt(r.month)||!kt(r.day),s=a||o,u=r.weekYear||r.weekNumber;if((s||i)&&u)throw new ro("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new ro("Can't mix ordinal dates with month/day");let l;n?l=k0({...km(this.c),...r}):kt(r.ordinal)?(l={...this.toObject(),...r},kt(r.day)&&(l.day=Math.min(bc(l.year,l.month),l.day))):l=x0({...sm(this.c),...r});let[c,d]=gc(l,this.o,this.zone);return no(this,{ts:c,o:d})}plus(t){if(!this.isValid)return this;let r=He.fromDurationLike(t);return no(this,_0(this,r))}minus(t){if(!this.isValid)return this;let r=He.fromDurationLike(t).negate();return no(this,_0(this,r))}startOf(t){if(!this.isValid)return this;let r={},n=He.normalizeUnit(t);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(n==="weeks"&&(r.weekday=1),n==="quarters"){let i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,r={}){return this.isValid?Ir.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):lm}toLocaleString(t=vc,r={}){return this.isValid?Ir.create(this.loc.clone(r),t).formatDateTime(this):lm}toLocaleParts(t={}){return this.isValid?Ir.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;let o=t==="extended",s=cm(this,o);return s+="T",s+=M0(this,o,r,n,i,a),s}toISODate({format:t="extended"}={}){return this.isValid?cm(this,t==="extended"):null}toISOWeekDate(){return mc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended"}={}){return this.isValid?(i?"T":"")+M0(this,o==="extended",r,t,n,a):null}toRFC2822(){return mc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return mc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?cm(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),mc(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():lm}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return He.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},a=f2(r).map(He.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,u=o?t:this,l=gP(s,u,a,i);return o?l.negate():l}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?ns.fromDateTimes(this,t):this}hasSame(t,r){if(!this.isValid)return!1;let n=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(r)<=n&&n<=i.endOf(r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),I0(r,this.plus(n),{...t,numeric:"always",units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?I0(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new vr("min requires all arguments be DateTimes");return p0(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new vr("max requires all arguments be DateTimes");return p0(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:a=null}=n,o=mn.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return kS(o,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static get DATE_SHORT(){return vc}static get DATE_MED(){return H0}static get DATE_MED_WITH_WEEKDAY(){return GL}static get DATE_FULL(){return B0}static get DATE_HUGE(){return V0}static get TIME_SIMPLE(){return $0}static get TIME_WITH_SECONDS(){return U0}static get TIME_WITH_SHORT_OFFSET(){return W0}static get TIME_WITH_LONG_OFFSET(){return Y0}static get TIME_24_SIMPLE(){return z0}static get TIME_24_WITH_SECONDS(){return K0}static get TIME_24_WITH_SHORT_OFFSET(){return j0}static get TIME_24_WITH_LONG_OFFSET(){return q0}static get DATETIME_SHORT(){return G0}static get DATETIME_SHORT_WITH_SECONDS(){return J0}static get DATETIME_MED(){return Z0}static get DATETIME_MED_WITH_SECONDS(){return Q0}static get DATETIME_MED_WITH_WEEKDAY(){return JL}static get DATETIME_FULL(){return X0}static get DATETIME_FULL_WITH_SECONDS(){return eS}static get DATETIME_HUGE(){return tS}static get DATETIME_HUGE_WITH_SECONDS(){return nS}};function El(e){if(mt.isDateTime(e))return e;if(e&&e.valueOf&&ao(e.valueOf()))return mt.fromJSDate(e);if(e&&typeof e=="object")return mt.fromObject(e);throw new vr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var Hm={renderNullAs:"\\-",taskCompletionTracking:!1,taskCompletionUseEmojiShorthand:!1,taskCompletionText:"completion",taskCompletionDateFormat:"yyyy-MM-dd",recursiveSubTaskCompletion:!1,warnOnEmptyResult:!0,refreshEnabled:!0,refreshInterval:2500,defaultDateFormat:"MMMM dd, yyyy",defaultDateTimeFormat:"h:mm a - MMMM dd, yyyy",maxRecursiveRenderDepth:4,tableIdColumnName:"File",tableGroupColumnName:"Group",showResultCount:!0},HP={allowHtml:!0};({...Hm,...HP});var xm=class e{constructor(t){ur(this,"value");ur(this,"successful");this.value=t,this.successful=!0}map(t){return new e(t(this.value))}flatMap(t){return t(this.value)}mapErr(t){return this}bimap(t,r){return this.map(t)}orElse(t){return this.value}cast(){return this}orElseThrow(t){return this.value}},Cm=class e{constructor(t){ur(this,"error");ur(this,"successful");this.error=t,this.successful=!1}map(t){return this}flatMap(t){return this}mapErr(t){return new e(t(this.error))}bimap(t,r){return this.mapErr(r)}orElse(t){return t}cast(){return this}orElseThrow(t){throw t?new Error(t(this.error)):new Error(""+this.error)}},Ec;(function(e){function t(a){return new xm(a)}e.success=t;function r(a){return new Cm(a)}e.failure=r;function n(a,o,s){return a.successful?o.successful?s(a.value,o.value):r(o.error):r(a.error)}e.flatMap2=n;function i(a,o,s){return n(a,o,(u,l)=>t(s(u,l)))}e.map2=i})(Ec||(Ec={}));var BP=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{},kc={exports:{}};kc.exports;(function(e,t){(function(r,n){e.exports=n()})(typeof self!="undefined"?self:BP,function(){return function(r){var n={};function i(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=r,i.c=n,i.d=function(a,o,s){i.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:s})},i.r=function(a){Object.defineProperty(a,"__esModule",{value:!0})},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="",i(i.s=0)}([function(r,n,i){function a(L){if(!(this instanceof a))return new a(L);this._=L}var o=a.prototype;function s(L,K){for(var ee=0;ee<L;ee++)K(ee)}function u(L,K,ee){return function(ue,de){s(de.length,function(ve){ue(de[ve],ve,de)})}(function(ue,de,ve){K=L(K,ue,de,ve)},ee),K}function l(L,K){return u(function(ee,ue,de,ve){return ee.concat([L(ue,de,ve)])},[],K)}function c(L,K){var ee={v:0,buf:K};return s(L,function(){var ue;ee={v:ee.v<<1|(ue=ee.buf,ue[0]>>7),buf:function(de){var ve=u(function(ge,M,H,q){return ge.concat(H===q.length-1?Buffer.from([M,0]).readUInt16BE(0):q.readUInt16BE(H))},[],de);return Buffer.from(l(function(ge){return(ge<<1&65535)>>8},ve))}(ee.buf)}}),ee}function d(){return typeof Buffer!="undefined"}function m(){if(!d())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function h(L){m();var K=u(function(ve,ge){return ve+ge},0,L);if(K%8!=0)throw new Error("The bits ["+L.join(", ")+"] add up to "+K+" which is not an even number of bytes; the total should be divisible by 8");var ee,ue=K/8,de=(ee=function(ve){return ve>48},u(function(ve,ge){return ve||(ee(ge)?ge:ve)},null,L));if(de)throw new Error(de+" bit range requested exceeds 48 bit (6 byte) Number max.");return new a(function(ve,ge){var M=ue+ge;return M>ve.length?B(ge,ue.toString()+" bytes"):P(M,u(function(H,q){var ie=c(q,H.buf);return{coll:H.coll.concat(ie.v),buf:ie.buf}},{coll:[],buf:ve.slice(ge,M)},L).coll)})}function g(L,K){return new a(function(ee,ue){return m(),ue+K>ee.length?B(ue,K+" bytes for "+L):P(ue+K,ee.slice(ue,ue+K))})}function y(L,K){if(typeof(ee=K)!="number"||Math.floor(ee)!==ee||K<0||K>6)throw new Error(L+" requires integer length in range [0, 6].");var ee}function v(L){return y("uintBE",L),g("uintBE("+L+")",L).map(function(K){return K.readUIntBE(0,L)})}function D(L){return y("uintLE",L),g("uintLE("+L+")",L).map(function(K){return K.readUIntLE(0,L)})}function I(L){return y("intBE",L),g("intBE("+L+")",L).map(function(K){return K.readIntBE(0,L)})}function C(L){return y("intLE",L),g("intLE("+L+")",L).map(function(K){return K.readIntLE(0,L)})}function x(L){return L instanceof a}function O(L){return{}.toString.call(L)==="[object Array]"}function A(L){return d()&&Buffer.isBuffer(L)}function P(L,K){return{status:!0,index:L,value:K,furthest:-1,expected:[]}}function B(L,K){return O(K)||(K=[K]),{status:!1,index:-1,value:null,furthest:L,expected:K}}function G(L,K){if(!K||L.furthest>K.furthest)return L;var ee=L.furthest===K.furthest?function(ue,de){if(function(){if(a._supportsSet!==void 0)return a._supportsSet;var ae=typeof Set!="undefined";return a._supportsSet=ae,ae}()&&Array.from){for(var ve=new Set(ue),ge=0;ge<de.length;ge++)ve.add(de[ge]);var M=Array.from(ve);return M.sort(),M}for(var H={},q=0;q<ue.length;q++)H[ue[q]]=!0;for(var ie=0;ie<de.length;ie++)H[de[ie]]=!0;var ye=[];for(var ce in H)({}).hasOwnProperty.call(H,ce)&&ye.push(ce);return ye.sort(),ye}(L.expected,K.expected):K.expected;return{status:L.status,index:L.index,value:L.value,furthest:K.furthest,expected:ee}}var J={};function Q(L,K){if(A(L))return{offset:K,line:-1,column:-1};L in J||(J[L]={});for(var ee=J[L],ue=0,de=0,ve=0,ge=K;ge>=0;){if(ge in ee){ue=ee[ge].line,ve===0&&(ve=ee[ge].lineStart);break}(L.charAt(ge)===`
|
||
`||L.charAt(ge)==="\r"&&L.charAt(ge+1)!==`
|
||
`)&&(de++,ve===0&&(ve=ge+1)),ge--}var M=ue+de,H=K-ve;return ee[K]={line:M,lineStart:ve},{offset:K,line:M+1,column:H+1}}function oe(L){if(!x(L))throw new Error("not a parser: "+L)}function te(L,K){return typeof L=="string"?L.charAt(K):L[K]}function re(L){if(typeof L!="number")throw new Error("not a number: "+L)}function ne(L){if(typeof L!="function")throw new Error("not a function: "+L)}function be(L){if(typeof L!="string")throw new Error("not a string: "+L)}var pe=2,De=3,Ce=8,U=5*Ce,Je=4*Ce,it=" ";function N(L,K){return new Array(K+1).join(L)}function Ze(L,K,ee){var ue=K-L.length;return ue<=0?L:N(ee,ue)+L}function It(L,K,ee,ue){return{from:L-K>0?L-K:0,to:L+ee>ue?ue:L+ee}}function Mt(L,K){var ee,ue,de,ve,ge,M=K.index,H=M.offset,q=1;if(H===L.length)return"Got the end of the input";if(A(L)){var ie=H-H%Ce,ye=H-ie,ce=It(ie,U,Je+Ce,L.length),ae=l(function(Te){return l(function(Ue){return Ze(Ue.toString(16),2,"0")},Te)},function(Te,Ue){var We=Te.length,Ft=[],Hn=0;if(We<=Ue)return[Te.slice()];for(var Ot=0;Ot<We;Ot++)Ft[Hn]||Ft.push([]),Ft[Hn].push(Te[Ot]),(Ot+1)%Ue==0&&Hn++;return Ft}(L.slice(ce.from,ce.to).toJSON().data,Ce));ve=function(Te){return Te.from===0&&Te.to===1?{from:Te.from,to:Te.to}:{from:Te.from/Ce,to:Math.floor(Te.to/Ce)}}(ce),ue=ie/Ce,ee=3*ye,ye>=4&&(ee+=1),q=2,de=l(function(Te){return Te.length<=4?Te.join(" "):Te.slice(0,4).join(" ")+" "+Te.slice(4).join(" ")},ae),(ge=(8*(ve.to>0?ve.to-1:ve.to)).toString(16).length)<2&&(ge=2)}else{var Se=L.split(/\r\n|[\n\r\u2028\u2029]/);ee=M.column-1,ue=M.line-1,ve=It(ue,pe,De,Se.length),de=Se.slice(ve.from,ve.to),ge=ve.to.toString().length}var nt=ue-ve.from;return A(L)&&(ge=(8*(ve.to>0?ve.to-1:ve.to)).toString(16).length)<2&&(ge=2),u(function(Te,Ue,We){var Ft,Hn=We===nt,Ot=Hn?"> ":it;return Ft=A(L)?Ze((8*(ve.from+We)).toString(16),ge,"0"):Ze((ve.from+We+1).toString(),ge," "),[].concat(Te,[Ot+Ft+" | "+Ue],Hn?[it+N(" ",ge)+" | "+Ze("",ee," ")+N("^",q)]:[])},[],de).join(`
|
||
`)}function jt(L,K){return[`
|
||
`,"-- PARSING FAILED "+N("-",50),`
|
||
|
||
`,Mt(L,K),`
|
||
|
||
`,(ee=K.expected,ee.length===1?`Expected:
|
||
|
||
`+ee[0]:`Expected one of the following:
|
||
|
||
`+ee.join(", ")),`
|
||
`].join("");var ee}function vt(L){return L.flags!==void 0?L.flags:[L.global?"g":"",L.ignoreCase?"i":"",L.multiline?"m":"",L.unicode?"u":"",L.sticky?"y":""].join("")}function Wt(){for(var L=[].slice.call(arguments),K=L.length,ee=0;ee<K;ee+=1)oe(L[ee]);return a(function(ue,de){for(var ve,ge=new Array(K),M=0;M<K;M+=1){if(!(ve=G(L[M]._(ue,de),ve)).status)return ve;ge[M]=ve.value,de=ve.index}return G(P(de,ge),ve)})}function Tt(){var L=[].slice.call(arguments);if(L.length===0)throw new Error("seqMap needs at least one argument");var K=L.pop();return ne(K),Wt.apply(null,L).map(function(ee){return K.apply(null,ee)})}function Jt(){var L=[].slice.call(arguments),K=L.length;if(K===0)return jn("zero alternates");for(var ee=0;ee<K;ee+=1)oe(L[ee]);return a(function(ue,de){for(var ve,ge=0;ge<L.length;ge+=1)if((ve=G(L[ge]._(ue,de),ve)).status)return ve;return ve})}function en(L,K){return gn(L,K).or(xn([]))}function gn(L,K){return oe(L),oe(K),Tt(L,K.then(L).many(),function(ee,ue){return[ee].concat(ue)})}function yn(L){be(L);var K="'"+L+"'";return a(function(ee,ue){var de=ue+L.length,ve=ee.slice(ue,de);return ve===L?P(de,ve):B(ue,K)})}function vn(L,K){(function(de){if(!(de instanceof RegExp))throw new Error("not a regexp: "+de);for(var ve=vt(de),ge=0;ge<ve.length;ge++){var M=ve.charAt(ge);if(M!=="i"&&M!=="m"&&M!=="u"&&M!=="s")throw new Error('unsupported regexp flag "'+M+'": '+de)}})(L),arguments.length>=2?re(K):K=0;var ee=function(de){return RegExp("^(?:"+de.source+")",vt(de))}(L),ue=""+L;return a(function(de,ve){var ge=ee.exec(de.slice(ve));if(ge){if(0<=K&&K<=ge.length){var M=ge[0],H=ge[K];return P(ve+M.length,H)}return B(ve,"valid match group (0 to "+ge.length+") in "+ue)}return B(ve,ue)})}function xn(L){return a(function(K,ee){return P(ee,L)})}function jn(L){return a(function(K,ee){return B(ee,L)})}function sn(L){if(x(L))return a(function(K,ee){var ue=L._(K,ee);return ue.index=ee,ue.value="",ue});if(typeof L=="string")return sn(yn(L));if(L instanceof RegExp)return sn(vn(L));throw new Error("not a string, regexp, or parser: "+L)}function Rt(L){return oe(L),a(function(K,ee){var ue=L._(K,ee),de=K.slice(ee,ue.index);return ue.status?B(ee,'not "'+de+'"'):P(ee,null)})}function Vt(L){return ne(L),a(function(K,ee){var ue=te(K,ee);return ee<K.length&&L(ue)?P(ee+1,ue):B(ee,"a character/byte matching "+L)})}function Sr(L,K){arguments.length<2&&(K=L,L=void 0);var ee=a(function(ue,de){return ee._=K()._,ee._(ue,de)});return L?ee.desc(L):ee}function Rr(){return jn("fantasy-land/empty")}o.parse=function(L){if(typeof L!="string"&&!A(L))throw new Error(".parse must be called with a string or Buffer as its argument");var K,ee=this.skip(At)._(L,0);return K=ee.status?{status:!0,value:ee.value}:{status:!1,index:Q(L,ee.furthest),expected:ee.expected},delete J[L],K},o.tryParse=function(L){var K=this.parse(L);if(K.status)return K.value;var ee=jt(L,K),ue=new Error(ee);throw ue.type="ParsimmonError",ue.result=K,ue},o.assert=function(L,K){return this.chain(function(ee){return L(ee)?xn(ee):jn(K)})},o.or=function(L){return Jt(this,L)},o.trim=function(L){return this.wrap(L,L)},o.wrap=function(L,K){return Tt(L,this,K,function(ee,ue){return ue})},o.thru=function(L){return L(this)},o.then=function(L){return oe(L),Wt(this,L).map(function(K){return K[1]})},o.many=function(){var L=this;return a(function(K,ee){for(var ue=[],de=void 0;;){if(!(de=G(L._(K,ee),de)).status)return G(P(ee,ue),de);if(ee===de.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");ee=de.index,ue.push(de.value)}})},o.tieWith=function(L){return be(L),this.map(function(K){if(function(de){if(!O(de))throw new Error("not an array: "+de)}(K),K.length){be(K[0]);for(var ee=K[0],ue=1;ue<K.length;ue++)be(K[ue]),ee+=L+K[ue];return ee}return""})},o.tie=function(){return this.tieWith("")},o.times=function(L,K){var ee=this;return arguments.length<2&&(K=L),re(L),re(K),a(function(ue,de){for(var ve=[],ge=void 0,M=void 0,H=0;H<L;H+=1){if(M=G(ge=ee._(ue,de),M),!ge.status)return M;de=ge.index,ve.push(ge.value)}for(;H<K&&(M=G(ge=ee._(ue,de),M),ge.status);H+=1)de=ge.index,ve.push(ge.value);return G(P(de,ve),M)})},o.result=function(L){return this.map(function(){return L})},o.atMost=function(L){return this.times(0,L)},o.atLeast=function(L){return Tt(this.times(L),this.many(),function(K,ee){return K.concat(ee)})},o.map=function(L){ne(L);var K=this;return a(function(ee,ue){var de=K._(ee,ue);return de.status?G(P(de.index,L(de.value)),de):de})},o.contramap=function(L){ne(L);var K=this;return a(function(ee,ue){var de=K.parse(L(ee.slice(ue)));return de.status?P(ue+ee.length,de.value):de})},o.promap=function(L,K){return ne(L),ne(K),this.contramap(L).map(K)},o.skip=function(L){return Wt(this,L).map(function(K){return K[0]})},o.mark=function(){return Tt(Bt,this,Bt,function(L,K,ee){return{start:L,value:K,end:ee}})},o.node=function(L){return Tt(Bt,this,Bt,function(K,ee,ue){return{name:L,value:ee,start:K,end:ue}})},o.sepBy=function(L){return en(this,L)},o.sepBy1=function(L){return gn(this,L)},o.lookahead=function(L){return this.skip(sn(L))},o.notFollowedBy=function(L){return this.skip(Rt(L))},o.desc=function(L){O(L)||(L=[L]);var K=this;return a(function(ee,ue){var de=K._(ee,ue);return de.status||(de.expected=L),de})},o.fallback=function(L){return this.or(xn(L))},o.ap=function(L){return Tt(L,this,function(K,ee){return K(ee)})},o.chain=function(L){var K=this;return a(function(ee,ue){var de=K._(ee,ue);return de.status?G(L(de.value)._(ee,de.index),de):de})},o.concat=o.or,o.empty=Rr,o.of=xn,o["fantasy-land/ap"]=o.ap,o["fantasy-land/chain"]=o.chain,o["fantasy-land/concat"]=o.concat,o["fantasy-land/empty"]=o.empty,o["fantasy-land/of"]=o.of,o["fantasy-land/map"]=o.map;var Bt=a(function(L,K){return P(K,Q(L,K))}),Hr=a(function(L,K){return K>=L.length?B(K,"any character/byte"):P(K+1,te(L,K))}),rn=a(function(L,K){return P(L.length,L.slice(K))}),At=a(function(L,K){return K<L.length?B(K,"EOF"):P(K,null)}),Z=vn(/[0-9]/).desc("a digit"),me=vn(/[0-9]*/).desc("optional digits"),Ie=vn(/[a-z]/i).desc("a letter"),at=vn(/[a-z]*/i).desc("optional letters"),Dt=vn(/\s*/).desc("optional whitespace"),Cn=vn(/\s+/).desc("whitespace"),_n=yn("\r"),Ht=yn(`
|
||
`),ar=yn(`\r
|
||
`),ht=Jt(ar,Ht,_n).desc("newline"),St=Jt(ht,At);a.all=rn,a.alt=Jt,a.any=Hr,a.cr=_n,a.createLanguage=function(L){var K={};for(var ee in L)({}).hasOwnProperty.call(L,ee)&&function(ue){K[ue]=Sr(function(){return L[ue](K)})}(ee);return K},a.crlf=ar,a.custom=function(L){return a(L(P,B))},a.digit=Z,a.digits=me,a.empty=Rr,a.end=St,a.eof=At,a.fail=jn,a.formatError=jt,a.index=Bt,a.isParser=x,a.lazy=Sr,a.letter=Ie,a.letters=at,a.lf=Ht,a.lookahead=sn,a.makeFailure=B,a.makeSuccess=P,a.newline=ht,a.noneOf=function(L){return Vt(function(K){return L.indexOf(K)<0}).desc("none of '"+L+"'")},a.notFollowedBy=Rt,a.of=xn,a.oneOf=function(L){for(var K=L.split(""),ee=0;ee<K.length;ee++)K[ee]="'"+K[ee]+"'";return Vt(function(ue){return L.indexOf(ue)>=0}).desc(K)},a.optWhitespace=Dt,a.Parser=a,a.range=function(L,K){return Vt(function(ee){return L<=ee&&ee<=K}).desc(L+"-"+K)},a.regex=vn,a.regexp=vn,a.sepBy=en,a.sepBy1=gn,a.seq=Wt,a.seqMap=Tt,a.seqObj=function(){for(var L,K={},ee=0,ue=(L=arguments,Array.prototype.slice.call(L)),de=ue.length,ve=0;ve<de;ve+=1){var ge=ue[ve];if(!x(ge)){if(O(ge)&&ge.length===2&&typeof ge[0]=="string"&&x(ge[1])){var M=ge[0];if(Object.prototype.hasOwnProperty.call(K,M))throw new Error("seqObj: duplicate key "+M);K[M]=!0,ee++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if(ee===0)throw new Error("seqObj expects at least one named parser, found zero");return a(function(H,q){for(var ie,ye={},ce=0;ce<de;ce+=1){var ae,Se;if(O(ue[ce])?(ae=ue[ce][0],Se=ue[ce][1]):(ae=null,Se=ue[ce]),!(ie=G(Se._(H,q),ie)).status)return ie;ae&&(ye[ae]=ie.value),q=ie.index}return G(P(q,ye),ie)})},a.string=yn,a.succeed=xn,a.takeWhile=function(L){return ne(L),a(function(K,ee){for(var ue=ee;ue<K.length&&L(te(K,ue));)ue++;return P(ue,K.slice(ee,ue))})},a.test=Vt,a.whitespace=Cn,a["fantasy-land/empty"]=Rr,a["fantasy-land/of"]=xn,a.Binary={bitSeq:h,bitSeqObj:function(L){m();var K={},ee=0,ue=l(function(ve){if(O(ve)){var ge=ve;if(ge.length!==2)throw new Error("["+ge.join(", ")+"] should be length 2, got length "+ge.length);if(be(ge[0]),re(ge[1]),Object.prototype.hasOwnProperty.call(K,ge[0]))throw new Error("duplicate key in bitSeqObj: "+ge[0]);return K[ge[0]]=!0,ee++,ge}return re(ve),[null,ve]},L);if(ee<1)throw new Error("bitSeqObj expects at least one named pair, got ["+L.join(", ")+"]");var de=l(function(ve){return ve[0]},ue);return h(l(function(ve){return ve[1]},ue)).map(function(ve){return u(function(ge,M){return M[0]!==null&&(ge[M[0]]=M[1]),ge},{},l(function(ge,M){return[ge,ve[M]]},de))})},byte:function(L){if(m(),re(L),L>255)throw new Error("Value specified to byte constructor ("+L+"=0x"+L.toString(16)+") is larger in value than a single byte.");var K=(L>15?"0x":"0x0")+L.toString(16);return a(function(ee,ue){var de=te(ee,ue);return de===L?P(ue+1,de):B(ue,K)})},buffer:function(L){return g("buffer",L).map(function(K){return Buffer.from(K)})},encodedString:function(L,K){return g("string",K).map(function(ee){return ee.toString(L)})},uintBE:v,uint8BE:v(1),uint16BE:v(2),uint32BE:v(4),uintLE:D,uint8LE:D(1),uint16LE:D(2),uint32LE:D(4),intBE:I,int8BE:I(1),int16BE:I(2),int32BE:I(4),intLE:C,int8LE:C(1),int16LE:C(2),int32LE:C(4),floatBE:g("floatBE",4).map(function(L){return L.readFloatBE(0)}),floatLE:g("floatLE",4).map(function(L){return L.readFloatLE(0)}),doubleBE:g("doubleBE",8).map(function(L){return L.readDoubleBE(0)}),doubleLE:g("doubleLE",8).map(function(L){return L.readDoubleLE(0)})},r.exports=a}])})})(kc,kc.exports);var W=kc.exports,Bm=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function NS(e){return e==null?e:e.shiftToAll().normalize()}function O0(e){return e.includes("/")&&(e=e.substring(e.lastIndexOf("/")+1)),e.endsWith(".md")&&(e=e.substring(0,e.length-3)),e}W.alt(W.regex(new RegExp(Bm(),"")),W.regex(/[0-9\p{Letter}_-]+/u).map(e=>e.toLocaleLowerCase()),W.whitespace.map(e=>"-"),W.any.map(e=>"")).many().map(e=>e.join(""));var VP=W.alt(W.regex(new RegExp(Bm(),"")),W.regex(/[0-9\p{Letter}_-]+/u),W.whitespace.map(e=>" "),W.any.map(e=>" ")).many().map(e=>e.join("").split(/\s+/).join(" ").trim());function $P(e){return VP.tryParse(e)}function UP(e){return e=NS(e),e=He.fromObject(Object.fromEntries(Object.entries(e.toObject()).filter(([,t])=>t!=0))),e.toHuman()}var Ml;(function(e){function t(x,O=Hm,A=!1){let P=r(x);if(!P)return O.renderNullAs;switch(P.type){case"null":return O.renderNullAs;case"string":return P.value;case"number":case"boolean":return""+P.value;case"html":return P.value.outerHTML;case"widget":return P.value.markdown();case"link":return P.value.markdown();case"function":return"<function>";case"array":let B="";return A&&(B+="["),B+=P.value.map(G=>t(G,O,!0)).join(", "),A&&(B+="]"),B;case"object":return"{ "+Object.entries(P.value).map(G=>G[0]+": "+t(G[1],O,!0)).join(", ")+" }";case"date":return P.value.second==0&&P.value.hour==0&&P.value.minute==0?P.value.toFormat(O.defaultDateFormat):P.value.toFormat(O.defaultDateTimeFormat);case"duration":return UP(P.value)}}e.toString=t;function r(x){return m(x)?{type:"null",value:x}:l(x)?{type:"number",value:x}:u(x)?{type:"string",value:x}:g(x)?{type:"boolean",value:x}:d(x)?{type:"duration",value:x}:c(x)?{type:"date",value:x}:v(x)?{type:"widget",value:x}:h(x)?{type:"array",value:x}:y(x)?{type:"link",value:x}:C(x)?{type:"function",value:x}:D(x)?{type:"html",value:x}:I(x)?{type:"object",value:x}:void 0}e.wrapValue=r;function n(x,O){if(I(x)){let A={};for(let[P,B]of Object.entries(x))A[P]=n(B,O);return A}else if(h(x)){let A=[];for(let P of x)A.push(n(P,O));return A}else return O(x)}e.mapLeaves=n;function i(x,O,A){var G,J;if(x===void 0&&(x=null),O===void 0&&(O=null),x===null&&O===null)return 0;if(x===null)return-1;if(O===null)return 1;let P=r(x),B=r(O);if(P===void 0&&B===void 0)return 0;if(P===void 0)return-1;if(B===void 0)return 1;if(P.type!=B.type)return P.type.localeCompare(B.type);if(P.value===B.value)return 0;switch(P.type){case"string":return P.value.localeCompare(B.value);case"number":return P.value<B.value?-1:P.value==B.value?0:1;case"null":return 0;case"boolean":return P.value==B.value?0:P.value?1:-1;case"link":let Q=P.value,oe=B.value,te=A!=null?A:N=>N,re=te(Q.path).localeCompare(te(oe.path));if(re!=0)return re;let ne=Q.type.localeCompare(oe.type);return ne!=0?ne:Q.subpath&&!oe.subpath?1:!Q.subpath&&oe.subpath?-1:!Q.subpath&&!oe.subpath?0:((G=Q.subpath)!=null?G:"").localeCompare((J=oe.subpath)!=null?J:"");case"date":return P.value<B.value?-1:P.value.equals(B.value)?0:1;case"duration":return P.value<B.value?-1:P.value.equals(B.value)?0:1;case"array":let be=P.value,pe=B.value;for(let N=0;N<Math.min(be.length,pe.length);N++){let Ze=i(be[N],pe[N]);if(Ze!=0)return Ze}return be.length-pe.length;case"object":let De=P.value,Ce=B.value,U=Array.from(Object.keys(De)),Je=Array.from(Object.keys(Ce));U.sort(),Je.sort();let it=i(U,Je);if(it!=0)return it;for(let N of U){let Ze=i(De[N],Ce[N]);if(Ze!=0)return Ze}return 0;case"widget":case"html":case"function":return 0}}e.compareValue=i;function a(x){var O;return(O=r(x))==null?void 0:O.type}e.typeOf=a;function o(x){let O=r(x);if(!O)return!1;switch(O.type){case"number":return O.value!=0;case"string":return O.value.length>0;case"boolean":return O.value;case"link":return!!O.value.path;case"date":return O.value.toMillis()!=0;case"duration":return O.value.as("seconds")!=0;case"object":return Object.keys(O.value).length>0;case"array":return O.value.length>0;case"null":return!1;case"html":case"widget":case"function":return!0}}e.isTruthy=o;function s(x){if(x==null)return x;if(e.isArray(x))return[].concat(x.map(O=>s(O)));if(e.isObject(x)){let O={};for(let[A,P]of Object.entries(x))O[A]=s(P);return O}else return x}e.deepCopy=s;function u(x){return typeof x=="string"}e.isString=u;function l(x){return typeof x=="number"}e.isNumber=l;function c(x){return x instanceof mt}e.isDate=c;function d(x){return x instanceof He}e.isDuration=d;function m(x){return x==null}e.isNull=m;function h(x){return Array.isArray(x)}e.isArray=h;function g(x){return typeof x=="boolean"}e.isBoolean=g;function y(x){return x instanceof xc}e.isLink=y;function v(x){return x instanceof Tl}e.isWidget=v;function D(x){return typeof HTMLElement!="undefined"?x instanceof HTMLElement:!1}e.isHtml=D;function I(x){return typeof x=="object"&&!D(x)&&!v(x)&&!h(x)&&!d(x)&&!c(x)&&!y(x)&&x!==void 0&&!m(x)}e.isObject=I;function C(x){return typeof x=="function"}e.isFunction=C})(Ml||(Ml={}));var L0;(function(e){function t(i){return Ml.isObject(i)&&Object.keys(i).length==2&&"key"in i&&"rows"in i}e.isElementGroup=t;function r(i){for(let a of i)if(!t(a))return!1;return!0}e.isGrouping=r;function n(i){if(r(i)){let a=0;for(let o of i)a+=n(o.rows);return a}else return i.length}e.count=n})(L0||(L0={}));var xc=class e{constructor(t){ur(this,"path");ur(this,"display");ur(this,"subpath");ur(this,"embed");ur(this,"type");Object.assign(this,t)}static file(t,r=!1,n){return new e({path:t,embed:r,display:n,subpath:void 0,type:"file"})}static infer(t,r=!1,n){if(t.includes("#^")){let i=t.split("#^");return e.block(i[0],i[1],r,n)}else if(t.includes("#")){let i=t.split("#");return e.header(i[0],i[1],r,n)}else return e.file(t,r,n)}static header(t,r,n,i){return new e({path:t,embed:n,display:i,subpath:$P(r),type:"header"})}static block(t,r,n,i){return new e({path:t,embed:n,display:i,subpath:r,type:"block"})}static fromObject(t){return new e(t)}equals(t){return t==null||t==null?!1:this.path==t.path&&this.type==t.type&&this.subpath==t.subpath}toString(){return this.markdown()}toObject(){return{path:this.path,type:this.type,subpath:this.subpath,display:this.display,embed:this.embed}}withPath(t){return new e(Object.assign({},this,{path:t}))}withDisplay(t){return new e(Object.assign({},this,{display:t}))}withHeader(t){return e.header(this.path,t,this.embed,this.display)}toFile(){return e.file(this.path,this.embed,this.display)}toEmbed(){if(this.embed)return this;{let t=new e(this);return t.embed=!0,t}}fromEmbed(){if(this.embed){let t=new e(this);return t.embed=!1,t}else return this}markdown(){let t=(this.embed?"!":"")+"[["+this.obsidianLink();return this.display?t+="|"+this.display:(t+="|"+O0(this.path),(this.type=="header"||this.type=="block")&&(t+=" > "+this.subpath)),t+="]]",t}obsidianLink(){var r,n;let t=this.path.replaceAll("|","\\|");return this.type=="header"?t+"#"+((r=this.subpath)==null?void 0:r.replaceAll("|","\\|")):this.type=="block"?t+"#^"+((n=this.subpath)==null?void 0:n.replaceAll("|","\\|")):t}fileName(){return O0(this.path).replace(".md","")}},Tl=class{constructor(t){ur(this,"$widget");this.$widget=t}},_m=class extends Tl{constructor(r,n){super("dataview:list-pair");ur(this,"key");ur(this,"value");this.key=r,this.value=n}markdown(){return`${Ml.toString(this.key)}: ${Ml.toString(this.value)}`}},Mm=class extends Tl{constructor(r,n){super("dataview:external-link");ur(this,"url");ur(this,"display");this.url=r,this.display=n}markdown(){var r;return`[${(r=this.display)!=null?r:this.url}](${this.url})`}},P0;(function(e){function t(o,s){return new _m(o,s)}e.listPair=t;function r(o,s){return new Mm(o,s)}e.externalLink=r;function n(o){return o.$widget==="dataview:list-pair"}e.isListPair=n;function i(o){return o.$widget==="dataview:external-link"}e.isExternalLink=i;function a(o){return n(o)||i(o)}e.isBuiltin=a})(P0||(P0={}));var fn;(function(e){function t(m){return{type:"variable",name:m}}e.variable=t;function r(m){return{type:"literal",value:m}}e.literal=r;function n(m,h,g){return{type:"binaryop",left:m,op:h,right:g}}e.binaryOp=n;function i(m,h){return{type:"index",object:m,index:h}}e.index=i;function a(m){let h=m.split("."),g=e.variable(h[0]);for(let y=1;y<h.length;y++)g=e.index(g,e.literal(h[y]));return g}e.indexVariable=a;function o(m,h){return{type:"lambda",arguments:m,value:h}}e.lambda=o;function s(m,h){return{type:"function",func:m,arguments:h}}e.func=s;function u(m){return{type:"list",values:m}}e.list=u;function l(m){return{type:"object",values:m}}e.object=l;function c(m){return{type:"negated",child:m}}e.negate=c;function d(m){return m=="<="||m=="<"||m==">"||m==">="||m=="!="||m=="="}e.isCompareOp=d,e.NULL=e.literal(null)})(fn||(fn={}));var Si;(function(e){function t(c){return{type:"tag",tag:c}}e.tag=t;function r(c){return{type:"csv",path:c}}e.csv=r;function n(c){return{type:"folder",folder:c}}e.folder=n;function i(c,d){return{type:"link",file:c,direction:d?"incoming":"outgoing"}}e.link=i;function a(c,d,m){return{type:"binaryop",left:c,op:d,right:m}}e.binaryOp=a;function o(c,d){return{type:"binaryop",left:c,op:"&",right:d}}e.and=o;function s(c,d){return{type:"binaryop",left:c,op:"|",right:d}}e.or=s;function u(c){return{type:"negate",child:c}}e.negate=u;function l(){return{type:"empty"}}e.empty=l})(Si||(Si={}));var N0=new RegExp(Bm(),""),Tm={year:He.fromObject({years:1}),years:He.fromObject({years:1}),yr:He.fromObject({years:1}),yrs:He.fromObject({years:1}),month:He.fromObject({months:1}),months:He.fromObject({months:1}),mo:He.fromObject({months:1}),mos:He.fromObject({months:1}),week:He.fromObject({weeks:1}),weeks:He.fromObject({weeks:1}),wk:He.fromObject({weeks:1}),wks:He.fromObject({weeks:1}),w:He.fromObject({weeks:1}),day:He.fromObject({days:1}),days:He.fromObject({days:1}),d:He.fromObject({days:1}),hour:He.fromObject({hours:1}),hours:He.fromObject({hours:1}),hr:He.fromObject({hours:1}),hrs:He.fromObject({hours:1}),h:He.fromObject({hours:1}),minute:He.fromObject({minutes:1}),minutes:He.fromObject({minutes:1}),min:He.fromObject({minutes:1}),mins:He.fromObject({minutes:1}),m:He.fromObject({minutes:1}),second:He.fromObject({seconds:1}),seconds:He.fromObject({seconds:1}),sec:He.fromObject({seconds:1}),secs:He.fromObject({seconds:1}),s:He.fromObject({seconds:1})},Fm={now:()=>mt.local(),today:()=>mt.local().startOf("day"),yesterday:()=>mt.local().startOf("day").minus(He.fromObject({days:1})),tomorrow:()=>mt.local().startOf("day").plus(He.fromObject({days:1})),sow:()=>mt.local().startOf("week"),"start-of-week":()=>mt.local().startOf("week"),eow:()=>mt.local().endOf("week"),"end-of-week":()=>mt.local().endOf("week"),soy:()=>mt.local().startOf("year"),"start-of-year":()=>mt.local().startOf("year"),eoy:()=>mt.local().endOf("year"),"end-of-year":()=>mt.local().endOf("year"),som:()=>mt.local().startOf("month"),"start-of-month":()=>mt.local().startOf("month"),eom:()=>mt.local().endOf("month"),"end-of-month":()=>mt.local().endOf("month")},Im=["FROM","WHERE","LIMIT","GROUP","FLATTEN"];function WP(e){let t=-1;for(;(t=e.indexOf("|",t+1))>=0;)if(!(t>0&&e[t-1]=="\\"))return[e.substring(0,t).replace(/\\\|/g,"|"),e.substring(t+1)];return[e.replace(/\\\|/g,"|"),void 0]}function YP(e){let[t,r]=WP(e);return xc.infer(t,!1,r)}function kl(e,t,r){return W.seqMap(e,W.seq(W.optWhitespace,t,W.optWhitespace,e).many(),(n,i)=>{if(i.length==0)return n;let a=r(n,i[0][1],i[0][3]);for(let o=1;o<i.length;o++)a=r(a,i[o][1],i[o][3]);return a})}function zP(e,...t){return W.custom((r,n)=>(i,a)=>{let o=e._(i,a);if(!o.status)return o;for(let s of t){let u=s(o.value)._(i,o.index);if(!u.status)return o;o=u}return o})}var ai=W.createLanguage({number:e=>W.regexp(/-?[0-9]+(\.[0-9]+)?/).map(t=>Number.parseFloat(t)).desc("number"),string:e=>W.string('"').then(W.alt(e.escapeCharacter,W.noneOf('"\\')).atLeast(0).map(t=>t.join(""))).skip(W.string('"')).desc("string"),escapeCharacter:e=>W.string("\\").then(W.any).map(t=>t==='"'?'"':t==="\\"?"\\":"\\"+t),bool:e=>W.regexp(/true|false|True|False/).map(t=>t.toLowerCase()=="true").desc("boolean ('true' or 'false')"),tag:e=>W.seqMap(W.string("#"),W.alt(W.regexp(/[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]/).desc("text")).many(),(t,r)=>t+r.join("")).desc("tag ('#hello/stuff')"),identifier:e=>W.seqMap(W.alt(W.regexp(/\p{Letter}/u),W.regexp(N0).desc("text")),W.alt(W.regexp(/[0-9\p{Letter}_-]/u),W.regexp(N0).desc("text")).many(),(t,r)=>t+r.join("")).desc("variable identifier"),link:e=>W.regexp(/\[\[([^\[\]]*?)\]\]/u,1).map(t=>YP(t)).desc("file link"),embedLink:e=>W.seqMap(W.string("!").atMost(1),e.link,(t,r)=>(t.length>0&&(r.embed=!0),r)).desc("file link"),binaryPlusMinus:e=>W.regexp(/\+|-/).map(t=>t).desc("'+' or '-'"),binaryMulDiv:e=>W.regexp(/\*|\/|%/).map(t=>t).desc("'*' or '/' or '%'"),binaryCompareOp:e=>W.regexp(/>=|<=|!=|>|<|=/).map(t=>t).desc("'>=' or '<=' or '!=' or '=' or '>' or '<'"),binaryBooleanOp:e=>W.regexp(/and|or|&|\|/i).map(t=>t.toLowerCase()=="and"?"&":t.toLowerCase()=="or"?"|":t).desc("'and' or 'or'"),rootDate:e=>W.seqMap(W.regexp(/\d{4}/),W.string("-"),W.regexp(/\d{2}/),(t,r,n)=>mt.fromObject({year:Number.parseInt(t),month:Number.parseInt(n)})).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),dateShorthand:e=>W.alt(...Object.keys(Fm).sort((t,r)=>r.length-t.length).map(W.string)),date:e=>zP(e.rootDate,t=>W.seqMap(W.string("-"),W.regexp(/\d{2}/),(r,n)=>t.set({day:Number.parseInt(n)})),t=>W.seqMap(W.string("T"),W.regexp(/\d{2}/),(r,n)=>t.set({hour:Number.parseInt(n)})),t=>W.seqMap(W.string(":"),W.regexp(/\d{2}/),(r,n)=>t.set({minute:Number.parseInt(n)})),t=>W.seqMap(W.string(":"),W.regexp(/\d{2}/),(r,n)=>t.set({second:Number.parseInt(n)})),t=>W.alt(W.seqMap(W.string("."),W.regexp(/\d{3}/),(r,n)=>t.set({millisecond:Number.parseInt(n)})),W.succeed(t)),t=>W.alt(W.seqMap(W.string("+").or(W.string("-")),W.regexp(/\d{1,2}(:\d{2})?/),(r,n)=>t.setZone("UTC"+r+n,{keepLocalTime:!0})),W.seqMap(W.string("Z"),()=>t.setZone("utc",{keepLocalTime:!0})),W.seqMap(W.string("["),W.regexp(/[0-9A-Za-z+-\/]+/u),W.string("]"),(r,n,i)=>t.setZone(n,{keepLocalTime:!0})))).assert(t=>t.isValid,"valid date").desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),datePlus:e=>W.alt(e.dateShorthand.map(t=>Fm[t]()),e.date).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS] or in shorthand"),durationType:e=>W.alt(...Object.keys(Tm).sort((t,r)=>r.length-t.length).map(W.string)),duration:e=>W.seqMap(e.number,W.optWhitespace,e.durationType,(t,r,n)=>Tm[n].mapUnits(i=>i*t)).sepBy1(W.string(",").trim(W.optWhitespace).or(W.optWhitespace)).map(t=>t.reduce((r,n)=>r.plus(n))).desc("duration like 4hr2min"),rawNull:e=>W.string("null"),tagSource:e=>e.tag.map(t=>Si.tag(t)),csvSource:e=>W.seqMap(W.string("csv(").skip(W.optWhitespace),e.string,W.string(")"),(t,r,n)=>Si.csv(r)),linkIncomingSource:e=>e.link.map(t=>Si.link(t.path,!0)),linkOutgoingSource:e=>W.seqMap(W.string("outgoing(").skip(W.optWhitespace),e.link,W.string(")"),(t,r,n)=>Si.link(r.path,!1)),folderSource:e=>e.string.map(t=>Si.folder(t)),parensSource:e=>W.seqMap(W.string("("),W.optWhitespace,e.source,W.optWhitespace,W.string(")"),(t,r,n,i,a)=>n),negateSource:e=>W.seqMap(W.alt(W.string("-"),W.string("!")),e.atomSource,(t,r)=>Si.negate(r)),atomSource:e=>W.alt(e.parensSource,e.negateSource,e.linkOutgoingSource,e.linkIncomingSource,e.folderSource,e.tagSource,e.csvSource),binaryOpSource:e=>kl(e.atomSource,e.binaryBooleanOp.map(t=>t),Si.binaryOp),source:e=>e.binaryOpSource,variableField:e=>e.identifier.chain(t=>Im.includes(t.toUpperCase())?W.fail("Variable fields cannot be a keyword ("+Im.join(" or ")+")"):W.succeed(fn.variable(t))).desc("variable"),numberField:e=>e.number.map(t=>fn.literal(t)).desc("number"),stringField:e=>e.string.map(t=>fn.literal(t)).desc("string"),boolField:e=>e.bool.map(t=>fn.literal(t)).desc("boolean"),dateField:e=>W.seqMap(W.string("date("),W.optWhitespace,e.datePlus,W.optWhitespace,W.string(")"),(t,r,n,i,a)=>fn.literal(n)).desc("date"),durationField:e=>W.seqMap(W.string("dur("),W.optWhitespace,e.duration,W.optWhitespace,W.string(")"),(t,r,n,i,a)=>fn.literal(n)).desc("duration"),nullField:e=>e.rawNull.map(t=>fn.NULL),linkField:e=>e.link.map(t=>fn.literal(t)),listField:e=>e.field.sepBy(W.string(",").trim(W.optWhitespace)).wrap(W.string("[").skip(W.optWhitespace),W.optWhitespace.then(W.string("]"))).map(t=>fn.list(t)).desc("list ('[1, 2, 3]')"),objectField:e=>W.seqMap(e.identifier.or(e.string),W.string(":").trim(W.optWhitespace),e.field,(t,r,n)=>({name:t,value:n})).sepBy(W.string(",").trim(W.optWhitespace)).wrap(W.string("{").skip(W.optWhitespace),W.optWhitespace.then(W.string("}"))).map(t=>{let r={};for(let n of t)r[n.name]=n.value;return fn.object(r)}).desc("object ('{ a: 1, b: 2 }')"),atomInlineField:e=>W.alt(e.date,e.duration.map(t=>NS(t)),e.string,e.tag,e.embedLink,e.bool,e.number,e.rawNull),inlineFieldList:e=>e.atomInlineField.sepBy(W.string(",").trim(W.optWhitespace).lookahead(e.atomInlineField)),inlineField:e=>W.alt(W.seqMap(e.atomInlineField,W.string(",").trim(W.optWhitespace),e.inlineFieldList,(t,r,n)=>[t].concat(n)),e.atomInlineField),atomField:e=>W.alt(e.embedLink.map(t=>fn.literal(t)),e.negatedField,e.linkField,e.listField,e.objectField,e.lambdaField,e.parensField,e.boolField,e.numberField,e.stringField,e.dateField,e.durationField,e.nullField,e.variableField),indexField:e=>W.seqMap(e.atomField,W.alt(e.dotPostfix,e.indexPostfix,e.functionPostfix).many(),(t,r)=>{let n=t;for(let i of r)switch(i.type){case"dot":n=fn.index(n,fn.literal(i.field));break;case"index":n=fn.index(n,i.field);break;case"function":n=fn.func(n,i.fields);break}return n}),negatedField:e=>W.seqMap(W.string("!"),e.indexField,(t,r)=>fn.negate(r)).desc("negated field"),parensField:e=>W.seqMap(W.string("("),W.optWhitespace,e.field,W.optWhitespace,W.string(")"),(t,r,n,i,a)=>n),lambdaField:e=>W.seqMap(e.identifier.sepBy(W.string(",").trim(W.optWhitespace)).wrap(W.string("(").trim(W.optWhitespace),W.string(")").trim(W.optWhitespace)),W.string("=>").trim(W.optWhitespace),e.field,(t,r,n)=>({type:"lambda",arguments:t,value:n})),dotPostfix:e=>W.seqMap(W.string("."),e.identifier,(t,r)=>({type:"dot",field:r})),indexPostfix:e=>W.seqMap(W.string("["),W.optWhitespace,e.field,W.optWhitespace,W.string("]"),(t,r,n,i,a)=>({type:"index",field:n})),functionPostfix:e=>W.seqMap(W.string("("),W.optWhitespace,e.field.sepBy(W.string(",").trim(W.optWhitespace)),W.optWhitespace,W.string(")"),(t,r,n,i,a)=>({type:"function",fields:n})),binaryMulDivField:e=>kl(e.indexField,e.binaryMulDiv,fn.binaryOp),binaryPlusMinusField:e=>kl(e.binaryMulDivField,e.binaryPlusMinus,fn.binaryOp),binaryCompareField:e=>kl(e.binaryPlusMinusField,e.binaryCompareOp,fn.binaryOp),binaryBooleanField:e=>kl(e.binaryCompareField,e.binaryBooleanOp,fn.binaryOp),binaryOpField:e=>e.binaryBooleanField,field:e=>e.binaryOpField});function KP(e){try{return Ec.success(ai.field.tryParse(e))}catch(t){return Ec.failure(""+t)}}var Cc;(function(e){function t(n,i){return{name:n,field:i}}e.named=t;function r(n,i){return{field:n,direction:i}}e.sortBy=r})(Cc||(Cc={}));function jP(e){return W.custom((t,r)=>(n,i)=>{let a=e._(n,i);return a.status?Object.assign({},a,{value:[a.value,n.substring(i,a.index)]}):a})}function qP(e){return e.split(/[\r\n]+/).map(t=>t.trim()).join("")}function R0(e,t){return W.eof.map(e).or(W.whitespace.then(t))}var RS=W.createLanguage({queryType:e=>W.alt(W.regexp(/TABLE|LIST|TASK|CALENDAR/i)).map(t=>t.toLowerCase()).desc("query type ('TABLE', 'LIST', 'TASK', or 'CALENDAR')"),explicitNamedField:e=>W.seqMap(ai.field.skip(W.whitespace),W.regexp(/AS/i).skip(W.whitespace),ai.identifier.or(ai.string),(t,r,n)=>Cc.named(n,t)),comment:()=>W.Parser((e,t)=>{let r=e.substring(t);if(!r.startsWith("//"))return W.makeFailure(t,"Not a comment");r=r.split(`
|
||
`)[0];let n=r.substring(2).trim();return W.makeSuccess(t+r.length,n)}),namedField:e=>W.alt(e.explicitNamedField,jP(ai.field).map(([t,r])=>Cc.named(qP(r),t))),sortField:e=>W.seqMap(ai.field.skip(W.optWhitespace),W.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),(t,r)=>{let n=r.length==0?"ascending":r[0].toLowerCase();return n=="desc"&&(n="descending"),n=="asc"&&(n="ascending"),{field:t,direction:n}}),headerClause:e=>e.queryType.chain(t=>{switch(t){case"table":return R0(()=>({type:t,fields:[],showId:!0}),W.seqMap(W.regexp(/WITHOUT\s+ID/i).skip(W.optWhitespace).atMost(1),W.sepBy(e.namedField,W.string(",").trim(W.optWhitespace)),(r,n)=>({type:t,fields:n,showId:r.length==0})));case"list":return R0(()=>({type:t,format:void 0,showId:!0}),W.seqMap(W.regexp(/WITHOUT\s+ID/i).skip(W.optWhitespace).atMost(1),ai.field.atMost(1),(r,n)=>({type:t,format:n.length==1?n[0]:void 0,showId:r.length==0})));case"task":return W.succeed({type:t});case"calendar":return W.whitespace.then(W.seqMap(e.namedField,r=>({type:t,showId:!0,field:r})));default:return W.fail(`Unrecognized query type '${t}'`)}}).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:e=>W.seqMap(W.regexp(/FROM/i),W.whitespace,ai.source,(t,r,n)=>n),whereClause:e=>W.seqMap(W.regexp(/WHERE/i),W.whitespace,ai.field,(t,r,n)=>({type:"where",clause:n})).desc("WHERE <expression>"),sortByClause:e=>W.seqMap(W.regexp(/SORT/i),W.whitespace,e.sortField.sepBy1(W.string(",").trim(W.optWhitespace)),(t,r,n)=>({type:"sort",fields:n})).desc("SORT field [ASC/DESC]"),limitClause:e=>W.seqMap(W.regexp(/LIMIT/i),W.whitespace,ai.field,(t,r,n)=>({type:"limit",amount:n})).desc("LIMIT <value>"),flattenClause:e=>W.seqMap(W.regexp(/FLATTEN/i).skip(W.whitespace),e.namedField,(t,r)=>({type:"flatten",field:r})).desc("FLATTEN <value> [AS <name>]"),groupByClause:e=>W.seqMap(W.regexp(/GROUP BY/i).skip(W.whitespace),e.namedField,(t,r)=>({type:"group",field:r})).desc("GROUP BY <value> [AS <name>]"),clause:e=>W.alt(e.fromClause,e.whereClause,e.sortByClause,e.limitClause,e.groupByClause,e.flattenClause),query:e=>W.seqMap(e.headerClause.trim(dm),e.fromClause.trim(dm).atMost(1),e.clause.trim(dm).many(),(t,r,n)=>({header:t,source:r.length==0?Si.folder(""):r[0],operations:n,settings:Hm}))}),dm=W.alt(W.whitespace,RS.comment).many().map(e=>e.join("")),GP=e=>{var t;return e?(t=e.plugins.plugins.dataview)==null?void 0:t.api:window.DataviewAPI},JP=e=>e.plugins.enabledPlugins.has("dataview");Ei.DATE_SHORTHANDS=Fm;Ei.DURATION_TYPES=Tm;Ei.EXPRESSION=ai;Ei.KEYWORDS=Im;Ei.QUERY_LANGUAGE=RS;Ei.getAPI=GP;Ei.isPluginEnabled=JP;Ei.parseField=KP});var HS=wn((Vm,$m)=>{(function(e,t){typeof Vm=="object"&&typeof $m!="undefined"?$m.exports=t():typeof define=="function"&&define.amd?define(t):e.Mark=t()})(Vm,function(){"use strict";var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t=function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")},r=function(){function s(u,l){for(var c=0;c<l.length;c++){var d=l[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,l,c){return l&&s(u.prototype,l),c&&s(u,c),u}}(),n=Object.assign||function(s){for(var u=1;u<arguments.length;u++){var l=arguments[u];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s[c]=l[c])}return s},i=function(){function s(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;t(this,s),this.ctx=u,this.iframes=l,this.exclude=c,this.iframesTimeout=d}return r(s,[{key:"getContexts",value:function(){var l=void 0,c=[];return typeof this.ctx=="undefined"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(d){var m=c.filter(function(h){return h.contains(d)}).length>0;c.indexOf(d)===-1&&!m&&c.push(d)}),c}},{key:"getIframeContents",value:function(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},m=void 0;try{var h=l.contentWindow;if(m=h.document,!h||!m)throw new Error("iframe inaccessible")}catch(g){d()}m&&c(m)}},{key:"isIframeBlank",value:function(l){var c="about:blank",d=l.getAttribute("src").trim(),m=l.contentWindow.location.href;return m===c&&d!==c&&d}},{key:"observeIframeLoad",value:function(l,c,d){var m=this,h=!1,g=null,y=function v(){if(!h){h=!0,activeWindow.clearTimeout(g);try{m.isIframeBlank(l)||(l.removeEventListener("load",v),m.getIframeContents(l,c,d))}catch(D){d()}}};l.addEventListener("load",y),g=activeWindow.setTimeout(y,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(m){d()}}},{key:"waitForIframes",value:function(l,c){var d=this,m=0;this.forEachIframe(l,function(){return!0},function(h){m++,d.waitForIframes(h.querySelector("html"),function(){--m||c()})},function(h){h||c()})}},{key:"forEachIframe",value:function(l,c,d){var m=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},g=l.querySelectorAll("iframe"),y=g.length,v=0;g=Array.prototype.slice.call(g);var D=function(){--y<=0&&h(v)};y||D(),g.forEach(function(I){s.matches(I,m.exclude)?D():m.onIframeReady(I,function(C){c(I)&&(v++,d(C)),D()},D)})}},{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 m=l.compareDocumentPosition(d),h=Node.DOCUMENT_POSITION_PRECEDING;if(m&h)if(c!==null){var g=c.compareDocumentPosition(d),y=Node.DOCUMENT_POSITION_FOLLOWING;if(g&y)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,m){var h=!1,g=!1;return m.forEach(function(y,v){y.val===d&&(h=v,g=y.handled)}),this.compareNodeIframe(l,c,d)?(h===!1&&!g?m.push({val:d,handled:!0}):h!==!1&&!g&&(m[h].handled=!0),!0):(h===!1&&m.push({val:d,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,c,d,m){var h=this;l.forEach(function(g){g.handled||h.getIframeContents(g.val,function(y){h.createInstanceOnIframe(y).forEachNode(c,d,m)})})}},{key:"iterateThroughNodes",value:function(l,c,d,m,h){for(var g=this,y=this.createIterator(c,l,m),v=[],D=[],I=void 0,C=void 0,x=function(){var A=g.getIteratorNode(y);return C=A.prevNode,I=A.node,I};x();)this.iframes&&this.forEachIframe(c,function(O){return g.checkIframeFilter(I,C,O,v)},function(O){g.createInstanceOnIframe(O).forEachNode(l,function(A){return D.push(A)},m)}),D.push(I);D.forEach(function(O){d(O)}),this.iframes&&this.handleOpenIframes(v,l,d,m),h()}},{key:"forEachNode",value:function(l,c,d){var m=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},g=this.getContexts(),y=g.length;y||h(),g.forEach(function(v){var D=function(){m.iterateThroughNodes(l,v,c,d,function(){--y<=0&&h()})};m.iframes?m.waitForIframes(v,D):D()})}}],[{key:"matches",value:function(l,c){var d=typeof c=="string"?[c]:c,m=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(m){var h=!1;return d.every(function(g){return m.call(l,g)?(h=!0,!1):!0}),h}else return!1}}]),s}(),a=function(){function s(u){t(this,s),this.ctx=u,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return r(s,[{key:"log",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",d=this.opt.log;this.opt.debug&&(typeof d=="undefined"?"undefined":e(d))==="object"&&typeof d[c]=="function"&&d[c]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var c=this.opt.synonyms,d=this.opt.caseSensitive?"":"i",m=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var h in c)if(c.hasOwnProperty(h)){var g=c[h],y=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g);y!==""&&v!==""&&(l=l.replace(new RegExp("("+this.escapeStr(y)+"|"+this.escapeStr(v)+")","gm"+d),m+("("+this.processSynomyms(y)+"|")+(this.processSynomyms(v)+")")+m))}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,m){var h=m.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"],m=[];return l.split("").forEach(function(h){d.every(function(g){if(g.indexOf(h)!==-1){if(m.indexOf(g)>-1)return!1;l=l.replace(new RegExp("["+g+"]","gm"+c),"["+g+"]"),m.push(g)}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",m=this.opt.accuracy,h=typeof m=="string"?m:m.value,g=typeof m=="string"?[]:m.limiters,y="";switch(g.forEach(function(v){y+="|"+c.escapeStr(v)}),h){case"partially":default:return"()("+l+")";case"complementary":return y="\\s"+(y||this.escapeStr(d)),"()([^"+y+"]*"+l+"[^"+y+"]*)";case"exactly":return"(^|\\s"+y+")("+l+")(?=$|\\s"+y+")"}}},{key:"getSeparatedKeywords",value:function(l){var c=this,d=[];return l.forEach(function(m){c.opt.separateWordSearch?m.split(" ").forEach(function(h){h.trim()&&d.indexOf(h)===-1&&d.push(h)}):m.trim()&&d.indexOf(m)===-1&&d.push(m)}),{keywords:d.sort(function(m,h){return h.length-m.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=[],m=0;return l.sort(function(h,g){return h.start-g.start}).forEach(function(h){var g=c.callNoMatchOnInvalidRanges(h,m),y=g.start,v=g.end,D=g.valid;D&&(h.start=y,h.length=v-y,d.push(h),m=v)}),d}},{key:"callNoMatchOnInvalidRanges",value:function(l,c){var d=void 0,m=void 0,h=!1;return l&&typeof l.start!="undefined"?(d=parseInt(l.start,10),m=d+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&m-c>0&&m-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:m,valid:h}}},{key:"checkWhitespaceRanges",value:function(l,c,d){var m=void 0,h=!0,g=d.length,y=c-g,v=parseInt(l.start,10)-y;return v=v>g?g:v,m=v+parseInt(l.length,10),m>g&&(m=g,this.log("End range automatically set to the max value of "+g)),v<0||m-v<0||v>g||m>g?(h=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):d.substring(v,m).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:v,end:m,valid:h}}},{key:"getTextNodes",value:function(l){var c=this,d="",m=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(h){m.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:m})})}},{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 m=this.opt.element?this.opt.element:"mark",h=l.splitText(c),g=h.splitText(d-c),y=document.createElement(m);return y.setAttribute("data-markjs","true"),this.opt.className&&y.setAttribute("class",this.opt.className),y.textContent=h.textContent,h.parentNode.replaceChild(y,h),g}},{key:"wrapRangeInMappedTextNode",value:function(l,c,d,m,h){var g=this;l.nodes.every(function(y,v){var D=l.nodes[v+1];if(typeof D=="undefined"||D.start>c){if(!m(y.node))return!1;var I=c-y.start,C=(d>y.end?y.end:d)-y.start,x=l.value.substr(0,y.start),O=l.value.substr(C+y.start);if(y.node=g.wrapRangeInTextNode(y.node,I,C),l.value=x+O,l.nodes.forEach(function(A,P){P>=v&&(l.nodes[P].start>0&&P!==v&&(l.nodes[P].start-=C),l.nodes[P].end-=C)}),d-=C,h(y.node.previousSibling,y.start),d>y.end)c=y.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,c,d,m,h){var g=this,y=c===0?0:c+1;this.getTextNodes(function(v){v.nodes.forEach(function(D){D=D.node;for(var I=void 0;(I=l.exec(D.textContent))!==null&&I[y]!=="";)if(d(I[y],D)){var C=I.index;if(y!==0)for(var x=1;x<y;x++)C+=I[x].length;D=g.wrapRangeInTextNode(D,C,C+I[y].length),m(D.previousSibling),l.lastIndex=0}}),h()})}},{key:"wrapMatchesAcrossElements",value:function(l,c,d,m,h){var g=this,y=c===0?0:c+1;this.getTextNodes(function(v){for(var D=void 0;(D=l.exec(v.value))!==null&&D[y]!=="";){var I=D.index;if(y!==0)for(var C=1;C<y;C++)I+=D[C].length;var x=I+D[y].length;g.wrapRangeInMappedTextNode(v,I,x,function(O){return d(D[y],O)},function(O,A){l.lastIndex=A,m(O)})}h()})}},{key:"wrapRangeFromIndex",value:function(l,c,d,m){var h=this;this.getTextNodes(function(g){var y=g.value.length;l.forEach(function(v,D){var I=h.checkWhitespaceRanges(v,y,g.value),C=I.start,x=I.end,O=I.valid;O&&h.wrapRangeInMappedTextNode(g,C,x,function(A){return c(A,v,g.value.substring(C,x),D)},function(A){d(A,v)})}),m()})}},{key:"unwrapMatches",value:function(l){for(var c=l.parentNode,d=document.createDocumentFragment();l.firstChild;)d.appendChild(l.removeChild(l.firstChild));c.replaceChild(d,l),this.ie?this.normalizeTextNode(c):c.normalize()}},{key:"normalizeTextNode",value:function(l){if(l){if(l.nodeType===3)for(;l.nextSibling&&l.nextSibling.nodeType===3;)l.nodeValue+=l.nextSibling.nodeValue,l.parentNode.removeChild(l.nextSibling);else this.normalizeTextNode(l.firstChild);this.normalizeTextNode(l.nextSibling)}}},{key:"markRegExp",value:function(l,c){var d=this;this.opt=c,this.log('Searching with expression "'+l+'"');var m=0,h="wrapMatches",g=function(v){m++,d.opt.each(v)};this.opt.acrossElements&&(h="wrapMatchesAcrossElements"),this[h](l,this.opt.ignoreGroups,function(y,v){return d.opt.filter(v,y,m)},g,function(){m===0&&d.opt.noMatch(l),d.opt.done(m)})}},{key:"mark",value:function(l,c){var d=this;this.opt=c;var m=0,h="wrapMatches",g=this.getSeparatedKeywords(typeof l=="string"?[l]:l),y=g.keywords,v=g.length,D=this.opt.caseSensitive?"":"i",I=function C(x){var O=new RegExp(d.createRegExp(x),"gm"+D),A=0;d.log('Searching with expression "'+O+'"'),d[h](O,1,function(P,B){return d.opt.filter(B,x,m,A)},function(P){A++,m++,d.opt.each(P)},function(){A===0&&d.opt.noMatch(x),y[v-1]===x?d.opt.done(m):C(y[y.indexOf(x)+1])})};this.opt.acrossElements&&(h="wrapMatchesAcrossElements"),v===0?this.opt.done(m):I(y[0])}},{key:"markRanges",value:function(l,c){var d=this;this.opt=c;var m=0,h=this.checkRanges(l);h&&h.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(h)),this.wrapRangeFromIndex(h,function(g,y,v,D){return d.opt.filter(g,y,v,D)},function(g,y){m++,d.opt.each(g,y)},function(){d.opt.done(m)})):this.opt.done(m)}},{key:"unmark",value:function(l){var c=this;this.opt=l;var d=this.opt.element?this.opt.element:"*";d+="[data-markjs]",this.opt.className&&(d+="."+this.opt.className),this.log('Removal selector "'+d+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(m){c.unwrapMatches(m)},function(m){var h=i.matches(m,d),g=c.matchesExclude(m);return!h||g?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(l){this._opt=n({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},l)},get:function(){return this._opt}},{key:"iterator",get:function(){return new i(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),s}();function o(s){var u=this,l=new a(s);return this.mark=function(c,d){return l.mark(c,d),u},this.markRegExp=function(c,d){return l.markRegExp(c,d),u},this.markRanges=function(c,d){return l.markRanges(c,d),u},this.unmark=function(c){return l.unmark(c),u},this}return o})});var Wm=wn((Um,ls)=>{(function(e,t){typeof Um=="object"&&typeof ls!="undefined"?ls.exports=t():typeof define=="function"&&define.amd?define(t):e.moment=t()})(Um,function(){"use strict";var e;function t(){return e.apply(null,arguments)}function r(f){e=f}function n(f){return f instanceof Array||Object.prototype.toString.call(f)==="[object Array]"}function i(f){return f!=null&&Object.prototype.toString.call(f)==="[object Object]"}function a(f,p){return Object.prototype.hasOwnProperty.call(f,p)}function o(f){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(f).length===0;var p;for(p in f)if(a(f,p))return!1;return!0}function s(f){return f===void 0}function u(f){return typeof f=="number"||Object.prototype.toString.call(f)==="[object Number]"}function l(f){return f instanceof Date||Object.prototype.toString.call(f)==="[object Date]"}function c(f,p){var w=[],S,F=f.length;for(S=0;S<F;++S)w.push(p(f[S],S));return w}function d(f,p){for(var w in p)a(p,w)&&(f[w]=p[w]);return a(p,"toString")&&(f.toString=p.toString),a(p,"valueOf")&&(f.valueOf=p.valueOf),f}function m(f,p,w,S){return Ry(f,p,w,S,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(f){return f._pf==null&&(f._pf=h()),f._pf}var y;Array.prototype.some?y=Array.prototype.some:y=function(f){var p=Object(this),w=p.length>>>0,S;for(S=0;S<w;S++)if(S in p&&f.call(this,p[S],S,p))return!0;return!1};function v(f){if(f._isValid==null){var p=g(f),w=y.call(p.parsedDateParts,function(F){return F!=null}),S=!isNaN(f._d.getTime())&&p.overflow<0&&!p.empty&&!p.invalidEra&&!p.invalidMonth&&!p.invalidWeekday&&!p.weekdayMismatch&&!p.nullInput&&!p.invalidFormat&&!p.userInvalidated&&(!p.meridiem||p.meridiem&&w);if(f._strict&&(S=S&&p.charsLeftOver===0&&p.unusedTokens.length===0&&p.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(f))f._isValid=S;else return S}return f._isValid}function D(f){var p=m(NaN);return f!=null?d(g(p),f):g(p).userInvalidated=!0,p}var I=t.momentProperties=[],C=!1;function x(f,p){var w,S,F,j=I.length;if(s(p._isAMomentObject)||(f._isAMomentObject=p._isAMomentObject),s(p._i)||(f._i=p._i),s(p._f)||(f._f=p._f),s(p._l)||(f._l=p._l),s(p._strict)||(f._strict=p._strict),s(p._tzm)||(f._tzm=p._tzm),s(p._isUTC)||(f._isUTC=p._isUTC),s(p._offset)||(f._offset=p._offset),s(p._pf)||(f._pf=g(p)),s(p._locale)||(f._locale=p._locale),j>0)for(w=0;w<j;w++)S=I[w],F=p[S],s(F)||(f[S]=F);return f}function O(f){x(this,f),this._d=new Date(f._d!=null?f._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,t.updateOffset(this),C=!1)}function A(f){return f instanceof O||f!=null&&f._isAMomentObject!=null}function P(f){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+f)}function B(f,p){var w=!0;return d(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,f),w){var S=[],F,j,se,Pe=arguments.length;for(j=0;j<Pe;j++){if(F="",typeof arguments[j]=="object"){F+=`
|
||
[`+j+"] ";for(se in arguments[0])a(arguments[0],se)&&(F+=se+": "+arguments[0][se]+", ");F=F.slice(0,-2)}else F=arguments[j];S.push(F)}P(f+`
|
||
Arguments: `+Array.prototype.slice.call(S).join("")+`
|
||
`+new Error().stack),w=!1}return p.apply(this,arguments)},p)}var G={};function J(f,p){t.deprecationHandler!=null&&t.deprecationHandler(f,p),G[f]||(P(p),G[f]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function Q(f){return typeof Function!="undefined"&&f instanceof Function||Object.prototype.toString.call(f)==="[object Function]"}function oe(f){var p,w;for(w in f)a(f,w)&&(p=f[w],Q(p)?this[w]=p:this["_"+w]=p);this._config=f,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function te(f,p){var w=d({},f),S;for(S in p)a(p,S)&&(i(f[S])&&i(p[S])?(w[S]={},d(w[S],f[S]),d(w[S],p[S])):p[S]!=null?w[S]=p[S]:delete w[S]);for(S in f)a(f,S)&&!a(p,S)&&i(f[S])&&(w[S]=d({},w[S]));return w}function re(f){f!=null&&this.set(f)}var ne;Object.keys?ne=Object.keys:ne=function(f){var p,w=[];for(p in f)a(f,p)&&w.push(p);return w};var be={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function pe(f,p,w){var S=this._calendar[f]||this._calendar.sameElse;return Q(S)?S.call(p,w):S}function De(f,p,w){var S=""+Math.abs(f),F=p-S.length,j=f>=0;return(j?w?"+":"":"-")+Math.pow(10,Math.max(0,F)).toString().substr(1)+S}var Ce=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Je={},it={};function N(f,p,w,S){var F=S;typeof S=="string"&&(F=function(){return this[S]()}),f&&(it[f]=F),p&&(it[p[0]]=function(){return De(F.apply(this,arguments),p[1],p[2])}),w&&(it[w]=function(){return this.localeData().ordinal(F.apply(this,arguments),f)})}function Ze(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}function It(f){var p=f.match(Ce),w,S;for(w=0,S=p.length;w<S;w++)it[p[w]]?p[w]=it[p[w]]:p[w]=Ze(p[w]);return function(F){var j="",se;for(se=0;se<S;se++)j+=Q(p[se])?p[se].call(F,f):p[se];return j}}function Mt(f,p){return f.isValid()?(p=jt(p,f.localeData()),Je[p]=Je[p]||It(p),Je[p](f)):f.localeData().invalidDate()}function jt(f,p){var w=5;function S(F){return p.longDateFormat(F)||F}for(U.lastIndex=0;w>=0&&U.test(f);)f=f.replace(U,S),U.lastIndex=0,w-=1;return f}var vt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Wt(f){var p=this._longDateFormat[f],w=this._longDateFormat[f.toUpperCase()];return p||!w?p:(this._longDateFormat[f]=w.match(Ce).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[f])}var Tt="Invalid date";function Jt(){return this._invalidDate}var en="%d",gn=/\d{1,2}/;function yn(f){return this._ordinal.replace("%d",f)}var vn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function xn(f,p,w,S){var F=this._relativeTime[w];return Q(F)?F(f,p,w,S):F.replace(/%d/i,f)}function jn(f,p){var w=this._relativeTime[f>0?"future":"past"];return Q(w)?w(p):w.replace(/%s/i,p)}var sn={};function Rt(f,p){var w=f.toLowerCase();sn[w]=sn[w+"s"]=sn[p]=f}function Vt(f){return typeof f=="string"?sn[f]||sn[f.toLowerCase()]:void 0}function Sr(f){var p={},w,S;for(S in f)a(f,S)&&(w=Vt(S),w&&(p[w]=f[S]));return p}var Rr={};function Bt(f,p){Rr[f]=p}function Hr(f){var p=[],w;for(w in f)a(f,w)&&p.push({unit:w,priority:Rr[w]});return p.sort(function(S,F){return S.priority-F.priority}),p}function rn(f){return f%4===0&&f%100!==0||f%400===0}function At(f){return f<0?Math.ceil(f)||0:Math.floor(f)}function Z(f){var p=+f,w=0;return p!==0&&isFinite(p)&&(w=At(p)),w}function me(f,p){return function(w){return w!=null?(at(this,f,w),t.updateOffset(this,p),this):Ie(this,f)}}function Ie(f,p){return f.isValid()?f._d["get"+(f._isUTC?"UTC":"")+p]():NaN}function at(f,p,w){f.isValid()&&!isNaN(w)&&(p==="FullYear"&&rn(f.year())&&f.month()===1&&f.date()===29?(w=Z(w),f._d["set"+(f._isUTC?"UTC":"")+p](w,f.month(),b(w,f.month()))):f._d["set"+(f._isUTC?"UTC":"")+p](w))}function Dt(f){return f=Vt(f),Q(this[f])?this[f]():this}function Cn(f,p){if(typeof f=="object"){f=Sr(f);var w=Hr(f),S,F=w.length;for(S=0;S<F;S++)this[w[S].unit](f[w[S].unit])}else if(f=Vt(f),Q(this[f]))return this[f](p);return this}var _n=/\d/,Ht=/\d\d/,ar=/\d{3}/,ht=/\d{4}/,St=/[+-]?\d{6}/,L=/\d\d?/,K=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,ue=/\d{1,3}/,de=/\d{1,4}/,ve=/[+-]?\d{1,6}/,ge=/\d+/,M=/[+-]?\d+/,H=/Z|[+-]\d\d:?\d\d/gi,q=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[+-]?\d+(\.\d{1,3})?/,ye=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce;ce={};function ae(f,p,w){ce[f]=Q(p)?p:function(S,F){return S&&w?w:p}}function Se(f,p){return a(ce,f)?ce[f](p._strict,p._locale):new RegExp(nt(f))}function nt(f){return Te(f.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(p,w,S,F,j){return w||S||F||j}))}function Te(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ue={};function We(f,p){var w,S=p,F;for(typeof f=="string"&&(f=[f]),u(p)&&(S=function(j,se){se[p]=Z(j)}),F=f.length,w=0;w<F;w++)Ue[f[w]]=S}function Ft(f,p){We(f,function(w,S,F,j){F._w=F._w||{},p(w,F._w,F,j)})}function Hn(f,p,w){p!=null&&a(Ue,f)&&Ue[f](p,w._a,w,f)}var Ot=0,or=1,sr=2,Yt=3,Bn=4,Er=5,Gr=6,tu=7,z=8;function k(f,p){return(f%p+p)%p}var _;Array.prototype.indexOf?_=Array.prototype.indexOf:_=function(f){var p;for(p=0;p<this.length;++p)if(this[p]===f)return p;return-1};function b(f,p){if(isNaN(f)||isNaN(p))return NaN;var w=k(p,12);return f+=(p-w)/12,w===1?rn(f)?29:28:31-w%7%2}N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(f){return this.localeData().monthsShort(this,f)}),N("MMMM",0,0,function(f){return this.localeData().months(this,f)}),Rt("month","M"),Bt("month",8),ae("M",L),ae("MM",L,Ht),ae("MMM",function(f,p){return p.monthsShortRegex(f)}),ae("MMMM",function(f,p){return p.monthsRegex(f)}),We(["M","MM"],function(f,p){p[or]=Z(f)-1}),We(["MMM","MMMM"],function(f,p,w,S){var F=w._locale.monthsParse(f,S,w._strict);F!=null?p[or]=F:g(w).invalidMonth=f});var T="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),V="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Y=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,X=ye,le=ye;function he(f,p){return f?n(this._months)?this._months[f.month()]:this._months[(this._months.isFormat||Y).test(p)?"format":"standalone"][f.month()]:n(this._months)?this._months:this._months.standalone}function Me(f,p){return f?n(this._monthsShort)?this._monthsShort[f.month()]:this._monthsShort[Y.test(p)?"format":"standalone"][f.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ve(f,p,w){var S,F,j,se=f.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],S=0;S<12;++S)j=m([2e3,S]),this._shortMonthsParse[S]=this.monthsShort(j,"").toLocaleLowerCase(),this._longMonthsParse[S]=this.months(j,"").toLocaleLowerCase();return w?p==="MMM"?(F=_.call(this._shortMonthsParse,se),F!==-1?F:null):(F=_.call(this._longMonthsParse,se),F!==-1?F:null):p==="MMM"?(F=_.call(this._shortMonthsParse,se),F!==-1?F:(F=_.call(this._longMonthsParse,se),F!==-1?F:null)):(F=_.call(this._longMonthsParse,se),F!==-1?F:(F=_.call(this._shortMonthsParse,se),F!==-1?F:null))}function Le(f,p,w){var S,F,j;if(this._monthsParseExact)return Ve.call(this,f,p,w);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),S=0;S<12;S++){if(F=m([2e3,S]),w&&!this._longMonthsParse[S]&&(this._longMonthsParse[S]=new RegExp("^"+this.months(F,"").replace(".","")+"$","i"),this._shortMonthsParse[S]=new RegExp("^"+this.monthsShort(F,"").replace(".","")+"$","i")),!w&&!this._monthsParse[S]&&(j="^"+this.months(F,"")+"|^"+this.monthsShort(F,""),this._monthsParse[S]=new RegExp(j.replace(".",""),"i")),w&&p==="MMMM"&&this._longMonthsParse[S].test(f))return S;if(w&&p==="MMM"&&this._shortMonthsParse[S].test(f))return S;if(!w&&this._monthsParse[S].test(f))return S}}function Qe(f,p){var w;if(!f.isValid())return f;if(typeof p=="string"){if(/^\d+$/.test(p))p=Z(p);else if(p=f.localeData().monthsParse(p),!u(p))return f}return w=Math.min(f.date(),b(f.year(),p)),f._d["set"+(f._isUTC?"UTC":"")+"Month"](p,w),f}function ot(f){return f!=null?(Qe(this,f),t.updateOffset(this,!0),this):Ie(this,"Month")}function qe(){return b(this.year(),this.month())}function yt(f){return this._monthsParseExact?(a(this,"_monthsRegex")||lt.call(this),f?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=X),this._monthsShortStrictRegex&&f?this._monthsShortStrictRegex:this._monthsShortRegex)}function st(f){return this._monthsParseExact?(a(this,"_monthsRegex")||lt.call(this),f?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=le),this._monthsStrictRegex&&f?this._monthsStrictRegex:this._monthsRegex)}function lt(){function f(se,Pe){return Pe.length-se.length}var p=[],w=[],S=[],F,j;for(F=0;F<12;F++)j=m([2e3,F]),p.push(this.monthsShort(j,"")),w.push(this.months(j,"")),S.push(this.months(j,"")),S.push(this.monthsShort(j,""));for(p.sort(f),w.sort(f),S.sort(f),F=0;F<12;F++)p[F]=Te(p[F]),w[F]=Te(w[F]);for(F=0;F<24;F++)S[F]=Te(S[F]);this._monthsRegex=new RegExp("^("+S.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+w.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}N("Y",0,0,function(){var f=this.year();return f<=9999?De(f,4):"+"+f}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),Rt("year","y"),Bt("year",1),ae("Y",M),ae("YY",L,Ht),ae("YYYY",de,ht),ae("YYYYY",ve,St),ae("YYYYYY",ve,St),We(["YYYYY","YYYYYY"],Ot),We("YYYY",function(f,p){p[Ot]=f.length===2?t.parseTwoDigitYear(f):Z(f)}),We("YY",function(f,p){p[Ot]=t.parseTwoDigitYear(f)}),We("Y",function(f,p){p[Ot]=parseInt(f,10)});function qt(f){return rn(f)?366:365}t.parseTwoDigitYear=function(f){return Z(f)+(Z(f)>68?1900:2e3)};var On=me("FullYear",!0);function Vn(){return rn(this.year())}function ki(f,p,w,S,F,j,se){var Pe;return f<100&&f>=0?(Pe=new Date(f+400,p,w,S,F,j,se),isFinite(Pe.getFullYear())&&Pe.setFullYear(f)):Pe=new Date(f,p,w,S,F,j,se),Pe}function kr(f){var p,w;return f<100&&f>=0?(w=Array.prototype.slice.call(arguments),w[0]=f+400,p=new Date(Date.UTC.apply(null,w)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(f)):p=new Date(Date.UTC.apply(null,arguments)),p}function Jr(f,p,w){var S=7+p-w,F=(7+kr(f,0,S).getUTCDay()-p)%7;return-F+S-1}function My(f,p,w,S,F){var j=(7+w-S)%7,se=Jr(f,S,F),Pe=1+7*(p-1)+j+se,ut,$t;return Pe<=0?(ut=f-1,$t=qt(ut)+Pe):Pe>qt(f)?(ut=f+1,$t=Pe-qt(f)):(ut=f,$t=Pe),{year:ut,dayOfYear:$t}}function Ns(f,p,w){var S=Jr(f.year(),p,w),F=Math.floor((f.dayOfYear()-S-1)/7)+1,j,se;return F<1?(se=f.year()-1,j=F+xi(se,p,w)):F>xi(f.year(),p,w)?(j=F-xi(f.year(),p,w),se=f.year()+1):(se=f.year(),j=F),{week:j,year:se}}function xi(f,p,w){var S=Jr(f,p,w),F=Jr(f+1,p,w);return(qt(f)-S+F)/7}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),Rt("week","w"),Rt("isoWeek","W"),Bt("week",5),Bt("isoWeek",5),ae("w",L),ae("ww",L,Ht),ae("W",L),ae("WW",L,Ht),Ft(["w","ww","W","WW"],function(f,p,w,S){p[S.substr(0,1)]=Z(f)});function j_(f){return Ns(f,this._week.dow,this._week.doy).week}var q_={dow:0,doy:6};function G_(){return this._week.dow}function J_(){return this._week.doy}function Z_(f){var p=this.localeData().week(this);return f==null?p:this.add((f-p)*7,"d")}function Q_(f){var p=Ns(this,1,4).week;return f==null?p:this.add((f-p)*7,"d")}N("d",0,"do","day"),N("dd",0,0,function(f){return this.localeData().weekdaysMin(this,f)}),N("ddd",0,0,function(f){return this.localeData().weekdaysShort(this,f)}),N("dddd",0,0,function(f){return this.localeData().weekdays(this,f)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),Rt("day","d"),Rt("weekday","e"),Rt("isoWeekday","E"),Bt("day",11),Bt("weekday",11),Bt("isoWeekday",11),ae("d",L),ae("e",L),ae("E",L),ae("dd",function(f,p){return p.weekdaysMinRegex(f)}),ae("ddd",function(f,p){return p.weekdaysShortRegex(f)}),ae("dddd",function(f,p){return p.weekdaysRegex(f)}),Ft(["dd","ddd","dddd"],function(f,p,w,S){var F=w._locale.weekdaysParse(f,S,w._strict);F!=null?p.d=F:g(w).invalidWeekday=f}),Ft(["d","e","E"],function(f,p,w,S){p[S]=Z(f)});function X_(f,p){return typeof f!="string"?f:isNaN(f)?(f=p.weekdaysParse(f),typeof f=="number"?f:null):parseInt(f,10)}function e1(f,p){return typeof f=="string"?p.weekdaysParse(f)%7||7:isNaN(f)?null:f}function bf(f,p){return f.slice(p,7).concat(f.slice(0,p))}var t1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ty="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),n1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),r1=ye,i1=ye,a1=ye;function o1(f,p){var w=n(this._weekdays)?this._weekdays:this._weekdays[f&&f!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return f===!0?bf(w,this._week.dow):f?w[f.day()]:w}function s1(f){return f===!0?bf(this._weekdaysShort,this._week.dow):f?this._weekdaysShort[f.day()]:this._weekdaysShort}function l1(f){return f===!0?bf(this._weekdaysMin,this._week.dow):f?this._weekdaysMin[f.day()]:this._weekdaysMin}function u1(f,p,w){var S,F,j,se=f.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],S=0;S<7;++S)j=m([2e3,1]).day(S),this._minWeekdaysParse[S]=this.weekdaysMin(j,"").toLocaleLowerCase(),this._shortWeekdaysParse[S]=this.weekdaysShort(j,"").toLocaleLowerCase(),this._weekdaysParse[S]=this.weekdays(j,"").toLocaleLowerCase();return w?p==="dddd"?(F=_.call(this._weekdaysParse,se),F!==-1?F:null):p==="ddd"?(F=_.call(this._shortWeekdaysParse,se),F!==-1?F:null):(F=_.call(this._minWeekdaysParse,se),F!==-1?F:null):p==="dddd"?(F=_.call(this._weekdaysParse,se),F!==-1||(F=_.call(this._shortWeekdaysParse,se),F!==-1)?F:(F=_.call(this._minWeekdaysParse,se),F!==-1?F:null)):p==="ddd"?(F=_.call(this._shortWeekdaysParse,se),F!==-1||(F=_.call(this._weekdaysParse,se),F!==-1)?F:(F=_.call(this._minWeekdaysParse,se),F!==-1?F:null)):(F=_.call(this._minWeekdaysParse,se),F!==-1||(F=_.call(this._weekdaysParse,se),F!==-1)?F:(F=_.call(this._shortWeekdaysParse,se),F!==-1?F:null))}function c1(f,p,w){var S,F,j;if(this._weekdaysParseExact)return u1.call(this,f,p,w);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),S=0;S<7;S++){if(F=m([2e3,1]).day(S),w&&!this._fullWeekdaysParse[S]&&(this._fullWeekdaysParse[S]=new RegExp("^"+this.weekdays(F,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[S]=new RegExp("^"+this.weekdaysShort(F,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[S]=new RegExp("^"+this.weekdaysMin(F,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[S]||(j="^"+this.weekdays(F,"")+"|^"+this.weekdaysShort(F,"")+"|^"+this.weekdaysMin(F,""),this._weekdaysParse[S]=new RegExp(j.replace(".",""),"i")),w&&p==="dddd"&&this._fullWeekdaysParse[S].test(f))return S;if(w&&p==="ddd"&&this._shortWeekdaysParse[S].test(f))return S;if(w&&p==="dd"&&this._minWeekdaysParse[S].test(f))return S;if(!w&&this._weekdaysParse[S].test(f))return S}}function d1(f){if(!this.isValid())return f!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return f!=null?(f=X_(f,this.localeData()),this.add(f-p,"d")):p}function f1(f){if(!this.isValid())return f!=null?this:NaN;var p=(this.day()+7-this.localeData()._week.dow)%7;return f==null?p:this.add(f-p,"d")}function h1(f){if(!this.isValid())return f!=null?this:NaN;if(f!=null){var p=e1(f,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function m1(f){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Df.call(this),f?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=r1),this._weekdaysStrictRegex&&f?this._weekdaysStrictRegex:this._weekdaysRegex)}function p1(f){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Df.call(this),f?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=i1),this._weekdaysShortStrictRegex&&f?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function g1(f){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Df.call(this),f?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=a1),this._weekdaysMinStrictRegex&&f?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Df(){function f(lr,Fi){return Fi.length-lr.length}var p=[],w=[],S=[],F=[],j,se,Pe,ut,$t;for(j=0;j<7;j++)se=m([2e3,1]).day(j),Pe=Te(this.weekdaysMin(se,"")),ut=Te(this.weekdaysShort(se,"")),$t=Te(this.weekdays(se,"")),p.push(Pe),w.push(ut),S.push($t),F.push(Pe),F.push(ut),F.push($t);p.sort(f),w.sort(f),S.sort(f),F.sort(f),this._weekdaysRegex=new RegExp("^("+F.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+w.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+p.join("|")+")","i")}function Sf(){return this.hours()%12||12}function y1(){return this.hours()||24}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Sf),N("k",["kk",2],0,y1),N("hmm",0,0,function(){return""+Sf.apply(this)+De(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Sf.apply(this)+De(this.minutes(),2)+De(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+De(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+De(this.minutes(),2)+De(this.seconds(),2)});function Fy(f,p){N(f,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}Fy("a",!0),Fy("A",!1),Rt("hour","h"),Bt("hour",13);function Iy(f,p){return p._meridiemParse}ae("a",Iy),ae("A",Iy),ae("H",L),ae("h",L),ae("k",L),ae("HH",L,Ht),ae("hh",L,Ht),ae("kk",L,Ht),ae("hmm",K),ae("hmmss",ee),ae("Hmm",K),ae("Hmmss",ee),We(["H","HH"],Yt),We(["k","kk"],function(f,p,w){var S=Z(f);p[Yt]=S===24?0:S}),We(["a","A"],function(f,p,w){w._isPm=w._locale.isPM(f),w._meridiem=f}),We(["h","hh"],function(f,p,w){p[Yt]=Z(f),g(w).bigHour=!0}),We("hmm",function(f,p,w){var S=f.length-2;p[Yt]=Z(f.substr(0,S)),p[Bn]=Z(f.substr(S)),g(w).bigHour=!0}),We("hmmss",function(f,p,w){var S=f.length-4,F=f.length-2;p[Yt]=Z(f.substr(0,S)),p[Bn]=Z(f.substr(S,2)),p[Er]=Z(f.substr(F)),g(w).bigHour=!0}),We("Hmm",function(f,p,w){var S=f.length-2;p[Yt]=Z(f.substr(0,S)),p[Bn]=Z(f.substr(S))}),We("Hmmss",function(f,p,w){var S=f.length-4,F=f.length-2;p[Yt]=Z(f.substr(0,S)),p[Bn]=Z(f.substr(S,2)),p[Er]=Z(f.substr(F))});function v1(f){return(f+"").toLowerCase().charAt(0)==="p"}var w1=/[ap]\.?m?\.?/i,b1=me("Hours",!0);function D1(f,p,w){return f>11?w?"pm":"PM":w?"am":"AM"}var Ay={calendar:be,longDateFormat:vt,invalidDate:Tt,ordinal:en,dayOfMonthOrdinalParse:gn,relativeTime:vn,months:T,monthsShort:V,week:q_,weekdays:t1,weekdaysMin:n1,weekdaysShort:Ty,meridiemParse:w1},tn={},Rs={},Hs;function S1(f,p){var w,S=Math.min(f.length,p.length);for(w=0;w<S;w+=1)if(f[w]!==p[w])return w;return S}function Oy(f){return f&&f.toLowerCase().replace("_","-")}function E1(f){for(var p=0,w,S,F,j;p<f.length;){for(j=Oy(f[p]).split("-"),w=j.length,S=Oy(f[p+1]),S=S?S.split("-"):null;w>0;){if(F=nu(j.slice(0,w).join("-")),F)return F;if(S&&S.length>=w&&S1(j,S)>=w-1)break;w--}p++}return Hs}function k1(f){return f.match("^[^/\\\\]*$")!=null}function nu(f){var p=null,w;if(tn[f]===void 0&&typeof ls!="undefined"&&ls&&ls.exports&&k1(f))try{p=Hs._abbr,w=require,w("./locale/"+f),na(p)}catch(S){tn[f]=null}return tn[f]}function na(f,p){var w;return f&&(s(p)?w=Ci(f):w=Ef(f,p),w?Hs=w:typeof console!="undefined"&&console.warn&&console.warn("Locale "+f+" not found. Did you forget to load it?")),Hs._abbr}function Ef(f,p){if(p!==null){var w,S=Ay;if(p.abbr=f,tn[f]!=null)J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),S=tn[f]._config;else if(p.parentLocale!=null)if(tn[p.parentLocale]!=null)S=tn[p.parentLocale]._config;else if(w=nu(p.parentLocale),w!=null)S=w._config;else return Rs[p.parentLocale]||(Rs[p.parentLocale]=[]),Rs[p.parentLocale].push({name:f,config:p}),null;return tn[f]=new re(te(S,p)),Rs[f]&&Rs[f].forEach(function(F){Ef(F.name,F.config)}),na(f),tn[f]}else return delete tn[f],null}function x1(f,p){if(p!=null){var w,S,F=Ay;tn[f]!=null&&tn[f].parentLocale!=null?tn[f].set(te(tn[f]._config,p)):(S=nu(f),S!=null&&(F=S._config),p=te(F,p),S==null&&(p.abbr=f),w=new re(p),w.parentLocale=tn[f],tn[f]=w),na(f)}else tn[f]!=null&&(tn[f].parentLocale!=null?(tn[f]=tn[f].parentLocale,f===na()&&na(f)):tn[f]!=null&&delete tn[f]);return tn[f]}function Ci(f){var p;if(f&&f._locale&&f._locale._abbr&&(f=f._locale._abbr),!f)return Hs;if(!n(f)){if(p=nu(f),p)return p;f=[f]}return E1(f)}function C1(){return ne(tn)}function kf(f){var p,w=f._a;return w&&g(f).overflow===-2&&(p=w[or]<0||w[or]>11?or:w[sr]<1||w[sr]>b(w[Ot],w[or])?sr:w[Yt]<0||w[Yt]>24||w[Yt]===24&&(w[Bn]!==0||w[Er]!==0||w[Gr]!==0)?Yt:w[Bn]<0||w[Bn]>59?Bn:w[Er]<0||w[Er]>59?Er:w[Gr]<0||w[Gr]>999?Gr:-1,g(f)._overflowDayOfYear&&(p<Ot||p>sr)&&(p=sr),g(f)._overflowWeeks&&p===-1&&(p=tu),g(f)._overflowWeekday&&p===-1&&(p=z),g(f).overflow=p),f}var _1=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,M1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,T1=/Z|[+-]\d\d(?::?\d\d)?/,ru=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],F1=/^\/?Date\((-?\d+)/i,I1=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,A1={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ly(f){var p,w,S=f._i,F=_1.exec(S)||M1.exec(S),j,se,Pe,ut,$t=ru.length,lr=xf.length;if(F){for(g(f).iso=!0,p=0,w=$t;p<w;p++)if(ru[p][1].exec(F[1])){se=ru[p][0],j=ru[p][2]!==!1;break}if(se==null){f._isValid=!1;return}if(F[3]){for(p=0,w=lr;p<w;p++)if(xf[p][1].exec(F[3])){Pe=(F[2]||" ")+xf[p][0];break}if(Pe==null){f._isValid=!1;return}}if(!j&&Pe!=null){f._isValid=!1;return}if(F[4])if(T1.exec(F[4]))ut="Z";else{f._isValid=!1;return}f._f=se+(Pe||"")+(ut||""),_f(f)}else f._isValid=!1}function O1(f,p,w,S,F,j){var se=[L1(f),V.indexOf(p),parseInt(w,10),parseInt(S,10),parseInt(F,10)];return j&&se.push(parseInt(j,10)),se}function L1(f){var p=parseInt(f,10);return p<=49?2e3+p:p<=999?1900+p:p}function P1(f){return f.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function N1(f,p,w){if(f){var S=Ty.indexOf(f),F=new Date(p[0],p[1],p[2]).getDay();if(S!==F)return g(w).weekdayMismatch=!0,w._isValid=!1,!1}return!0}function R1(f,p,w){if(f)return A1[f];if(p)return 0;var S=parseInt(w,10),F=S%100,j=(S-F)/100;return j*60+F}function Py(f){var p=I1.exec(P1(f._i)),w;if(p){if(w=O1(p[4],p[3],p[2],p[5],p[6],p[7]),!N1(p[1],w,f))return;f._a=w,f._tzm=R1(p[8],p[9],p[10]),f._d=kr.apply(null,f._a),f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),g(f).rfc2822=!0}else f._isValid=!1}function H1(f){var p=F1.exec(f._i);if(p!==null){f._d=new Date(+p[1]);return}if(Ly(f),f._isValid===!1)delete f._isValid;else return;if(Py(f),f._isValid===!1)delete f._isValid;else return;f._strict?f._isValid=!1:t.createFromInputFallback(f)}t.createFromInputFallback=B("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(f){f._d=new Date(f._i+(f._useUTC?" UTC":""))});function bo(f,p,w){return f!=null?f:p!=null?p:w}function B1(f){var p=new Date(t.now());return f._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()]}function Cf(f){var p,w,S=[],F,j,se;if(!f._d){for(F=B1(f),f._w&&f._a[sr]==null&&f._a[or]==null&&V1(f),f._dayOfYear!=null&&(se=bo(f._a[Ot],F[Ot]),(f._dayOfYear>qt(se)||f._dayOfYear===0)&&(g(f)._overflowDayOfYear=!0),w=kr(se,0,f._dayOfYear),f._a[or]=w.getUTCMonth(),f._a[sr]=w.getUTCDate()),p=0;p<3&&f._a[p]==null;++p)f._a[p]=S[p]=F[p];for(;p<7;p++)f._a[p]=S[p]=f._a[p]==null?p===2?1:0:f._a[p];f._a[Yt]===24&&f._a[Bn]===0&&f._a[Er]===0&&f._a[Gr]===0&&(f._nextDay=!0,f._a[Yt]=0),f._d=(f._useUTC?kr:ki).apply(null,S),j=f._useUTC?f._d.getUTCDay():f._d.getDay(),f._tzm!=null&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),f._nextDay&&(f._a[Yt]=24),f._w&&typeof f._w.d!="undefined"&&f._w.d!==j&&(g(f).weekdayMismatch=!0)}}function V1(f){var p,w,S,F,j,se,Pe,ut,$t;p=f._w,p.GG!=null||p.W!=null||p.E!=null?(j=1,se=4,w=bo(p.GG,f._a[Ot],Ns(Zt(),1,4).year),S=bo(p.W,1),F=bo(p.E,1),(F<1||F>7)&&(ut=!0)):(j=f._locale._week.dow,se=f._locale._week.doy,$t=Ns(Zt(),j,se),w=bo(p.gg,f._a[Ot],$t.year),S=bo(p.w,$t.week),p.d!=null?(F=p.d,(F<0||F>6)&&(ut=!0)):p.e!=null?(F=p.e+j,(p.e<0||p.e>6)&&(ut=!0)):F=j),S<1||S>xi(w,j,se)?g(f)._overflowWeeks=!0:ut!=null?g(f)._overflowWeekday=!0:(Pe=My(w,S,F,j,se),f._a[Ot]=Pe.year,f._dayOfYear=Pe.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function _f(f){if(f._f===t.ISO_8601){Ly(f);return}if(f._f===t.RFC_2822){Py(f);return}f._a=[],g(f).empty=!0;var p=""+f._i,w,S,F,j,se,Pe=p.length,ut=0,$t,lr;for(F=jt(f._f,f._locale).match(Ce)||[],lr=F.length,w=0;w<lr;w++)j=F[w],S=(p.match(Se(j,f))||[])[0],S&&(se=p.substr(0,p.indexOf(S)),se.length>0&&g(f).unusedInput.push(se),p=p.slice(p.indexOf(S)+S.length),ut+=S.length),it[j]?(S?g(f).empty=!1:g(f).unusedTokens.push(j),Hn(j,S,f)):f._strict&&!S&&g(f).unusedTokens.push(j);g(f).charsLeftOver=Pe-ut,p.length>0&&g(f).unusedInput.push(p),f._a[Yt]<=12&&g(f).bigHour===!0&&f._a[Yt]>0&&(g(f).bigHour=void 0),g(f).parsedDateParts=f._a.slice(0),g(f).meridiem=f._meridiem,f._a[Yt]=$1(f._locale,f._a[Yt],f._meridiem),$t=g(f).era,$t!==null&&(f._a[Ot]=f._locale.erasConvertYear($t,f._a[Ot])),Cf(f),kf(f)}function $1(f,p,w){var S;return w==null?p:f.meridiemHour!=null?f.meridiemHour(p,w):(f.isPM!=null&&(S=f.isPM(w),S&&p<12&&(p+=12),!S&&p===12&&(p=0)),p)}function U1(f){var p,w,S,F,j,se,Pe=!1,ut=f._f.length;if(ut===0){g(f).invalidFormat=!0,f._d=new Date(NaN);return}for(F=0;F<ut;F++)j=0,se=!1,p=x({},f),f._useUTC!=null&&(p._useUTC=f._useUTC),p._f=f._f[F],_f(p),v(p)&&(se=!0),j+=g(p).charsLeftOver,j+=g(p).unusedTokens.length*10,g(p).score=j,Pe?j<S&&(S=j,w=p):(S==null||j<S||se)&&(S=j,w=p,se&&(Pe=!0));d(f,w||p)}function W1(f){if(!f._d){var p=Sr(f._i),w=p.day===void 0?p.date:p.day;f._a=c([p.year,p.month,w,p.hour,p.minute,p.second,p.millisecond],function(S){return S&&parseInt(S,10)}),Cf(f)}}function Y1(f){var p=new O(kf(Ny(f)));return p._nextDay&&(p.add(1,"d"),p._nextDay=void 0),p}function Ny(f){var p=f._i,w=f._f;return f._locale=f._locale||Ci(f._l),p===null||w===void 0&&p===""?D({nullInput:!0}):(typeof p=="string"&&(f._i=p=f._locale.preparse(p)),A(p)?new O(kf(p)):(l(p)?f._d=p:n(w)?U1(f):w?_f(f):z1(f),v(f)||(f._d=null),f))}function z1(f){var p=f._i;s(p)?f._d=new Date(t.now()):l(p)?f._d=new Date(p.valueOf()):typeof p=="string"?H1(f):n(p)?(f._a=c(p.slice(0),function(w){return parseInt(w,10)}),Cf(f)):i(p)?W1(f):u(p)?f._d=new Date(p):t.createFromInputFallback(f)}function Ry(f,p,w,S,F){var j={};return(p===!0||p===!1)&&(S=p,p=void 0),(w===!0||w===!1)&&(S=w,w=void 0),(i(f)&&o(f)||n(f)&&f.length===0)&&(f=void 0),j._isAMomentObject=!0,j._useUTC=j._isUTC=F,j._l=w,j._i=f,j._f=p,j._strict=S,Y1(j)}function Zt(f,p,w,S){return Ry(f,p,w,S,!1)}var K1=B("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var f=Zt.apply(null,arguments);return this.isValid()&&f.isValid()?f<this?this:f:D()}),j1=B("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var f=Zt.apply(null,arguments);return this.isValid()&&f.isValid()?f>this?this:f:D()});function Hy(f,p){var w,S;if(p.length===1&&n(p[0])&&(p=p[0]),!p.length)return Zt();for(w=p[0],S=1;S<p.length;++S)(!p[S].isValid()||p[S][f](w))&&(w=p[S]);return w}function q1(){var f=[].slice.call(arguments,0);return Hy("isBefore",f)}function G1(){var f=[].slice.call(arguments,0);return Hy("isAfter",f)}var J1=function(){return Date.now?Date.now():+new Date},Bs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Z1(f){var p,w=!1,S,F=Bs.length;for(p in f)if(a(f,p)&&!(_.call(Bs,p)!==-1&&(f[p]==null||!isNaN(f[p]))))return!1;for(S=0;S<F;++S)if(f[Bs[S]]){if(w)return!1;parseFloat(f[Bs[S]])!==Z(f[Bs[S]])&&(w=!0)}return!0}function Q1(){return this._isValid}function X1(){return Zr(NaN)}function iu(f){var p=Sr(f),w=p.year||0,S=p.quarter||0,F=p.month||0,j=p.week||p.isoWeek||0,se=p.day||0,Pe=p.hour||0,ut=p.minute||0,$t=p.second||0,lr=p.millisecond||0;this._isValid=Z1(p),this._milliseconds=+lr+$t*1e3+ut*6e4+Pe*1e3*60*60,this._days=+se+j*7,this._months=+F+S*3+w*12,this._data={},this._locale=Ci(),this._bubble()}function au(f){return f instanceof iu}function Mf(f){return f<0?Math.round(-1*f)*-1:Math.round(f)}function eM(f,p,w){var S=Math.min(f.length,p.length),F=Math.abs(f.length-p.length),j=0,se;for(se=0;se<S;se++)(w&&f[se]!==p[se]||!w&&Z(f[se])!==Z(p[se]))&&j++;return j+F}function By(f,p){N(f,0,0,function(){var w=this.utcOffset(),S="+";return w<0&&(w=-w,S="-"),S+De(~~(w/60),2)+p+De(~~w%60,2)})}By("Z",":"),By("ZZ",""),ae("Z",q),ae("ZZ",q),We(["Z","ZZ"],function(f,p,w){w._useUTC=!0,w._tzm=Tf(q,f)});var tM=/([\+\-]|\d\d)/gi;function Tf(f,p){var w=(p||"").match(f),S,F,j;return w===null?null:(S=w[w.length-1]||[],F=(S+"").match(tM)||["-",0,0],j=+(F[1]*60)+Z(F[2]),j===0?0:F[0]==="+"?j:-j)}function Ff(f,p){var w,S;return p._isUTC?(w=p.clone(),S=(A(f)||l(f)?f.valueOf():Zt(f).valueOf())-w.valueOf(),w._d.setTime(w._d.valueOf()+S),t.updateOffset(w,!1),w):Zt(f).local()}function If(f){return-Math.round(f._d.getTimezoneOffset())}t.updateOffset=function(){};function nM(f,p,w){var S=this._offset||0,F;if(!this.isValid())return f!=null?this:NaN;if(f!=null){if(typeof f=="string"){if(f=Tf(q,f),f===null)return this}else Math.abs(f)<16&&!w&&(f=f*60);return!this._isUTC&&p&&(F=If(this)),this._offset=f,this._isUTC=!0,F!=null&&this.add(F,"m"),S!==f&&(!p||this._changeInProgress?Wy(this,Zr(f-S,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?S:If(this)}function rM(f,p){return f!=null?(typeof f!="string"&&(f=-f),this.utcOffset(f,p),this):-this.utcOffset()}function iM(f){return this.utcOffset(0,f)}function aM(f){return this._isUTC&&(this.utcOffset(0,f),this._isUTC=!1,f&&this.subtract(If(this),"m")),this}function oM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var f=Tf(H,this._i);f!=null?this.utcOffset(f):this.utcOffset(0,!0)}return this}function sM(f){return this.isValid()?(f=f?Zt(f).utcOffset():0,(this.utcOffset()-f)%60===0):!1}function lM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uM(){if(!s(this._isDSTShifted))return this._isDSTShifted;var f={},p;return x(f,this),f=Ny(f),f._a?(p=f._isUTC?m(f._a):Zt(f._a),this._isDSTShifted=this.isValid()&&eM(f._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function cM(){return this.isValid()?!this._isUTC:!1}function dM(){return this.isValid()?this._isUTC:!1}function Vy(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zr(f,p){var w=f,S=null,F,j,se;return au(f)?w={ms:f._milliseconds,d:f._days,M:f._months}:u(f)||!isNaN(+f)?(w={},p?w[p]=+f:w.milliseconds=+f):(S=fM.exec(f))?(F=S[1]==="-"?-1:1,w={y:0,d:Z(S[sr])*F,h:Z(S[Yt])*F,m:Z(S[Bn])*F,s:Z(S[Er])*F,ms:Z(Mf(S[Gr]*1e3))*F}):(S=hM.exec(f))?(F=S[1]==="-"?-1:1,w={y:Ha(S[2],F),M:Ha(S[3],F),w:Ha(S[4],F),d:Ha(S[5],F),h:Ha(S[6],F),m:Ha(S[7],F),s:Ha(S[8],F)}):w==null?w={}:typeof w=="object"&&("from"in w||"to"in w)&&(se=mM(Zt(w.from),Zt(w.to)),w={},w.ms=se.milliseconds,w.M=se.months),j=new iu(w),au(f)&&a(f,"_locale")&&(j._locale=f._locale),au(f)&&a(f,"_isValid")&&(j._isValid=f._isValid),j}Zr.fn=iu.prototype,Zr.invalid=X1;function Ha(f,p){var w=f&&parseFloat(f.replace(",","."));return(isNaN(w)?0:w)*p}function $y(f,p){var w={};return w.months=p.month()-f.month()+(p.year()-f.year())*12,f.clone().add(w.months,"M").isAfter(p)&&--w.months,w.milliseconds=+p-+f.clone().add(w.months,"M"),w}function mM(f,p){var w;return f.isValid()&&p.isValid()?(p=Ff(p,f),f.isBefore(p)?w=$y(f,p):(w=$y(p,f),w.milliseconds=-w.milliseconds,w.months=-w.months),w):{milliseconds:0,months:0}}function Uy(f,p){return function(w,S){var F,j;return S!==null&&!isNaN(+S)&&(J(p,"moment()."+p+"(period, number) is deprecated. Please use moment()."+p+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),j=w,w=S,S=j),F=Zr(w,S),Wy(this,F,f),this}}function Wy(f,p,w,S){var F=p._milliseconds,j=Mf(p._days),se=Mf(p._months);f.isValid()&&(S=S==null?!0:S,se&&Qe(f,Ie(f,"Month")+se*w),j&&at(f,"Date",Ie(f,"Date")+j*w),F&&f._d.setTime(f._d.valueOf()+F*w),S&&t.updateOffset(f,j||se))}var pM=Uy(1,"add"),gM=Uy(-1,"subtract");function Yy(f){return typeof f=="string"||f instanceof String}function yM(f){return A(f)||l(f)||Yy(f)||u(f)||wM(f)||vM(f)||f===null||f===void 0}function vM(f){var p=i(f)&&!o(f),w=!1,S=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],F,j,se=S.length;for(F=0;F<se;F+=1)j=S[F],w=w||a(f,j);return p&&w}function wM(f){var p=n(f),w=!1;return p&&(w=f.filter(function(S){return!u(S)&&Yy(f)}).length===0),p&&w}function bM(f){var p=i(f)&&!o(f),w=!1,S=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],F,j;for(F=0;F<S.length;F+=1)j=S[F],w=w||a(f,j);return p&&w}function DM(f,p){var w=f.diff(p,"days",!0);return w<-6?"sameElse":w<-1?"lastWeek":w<0?"lastDay":w<1?"sameDay":w<2?"nextDay":w<7?"nextWeek":"sameElse"}function SM(f,p){arguments.length===1&&(arguments[0]?yM(arguments[0])?(f=arguments[0],p=void 0):bM(arguments[0])&&(p=arguments[0],f=void 0):(f=void 0,p=void 0));var w=f||Zt(),S=Ff(w,this).startOf("day"),F=t.calendarFormat(this,S)||"sameElse",j=p&&(Q(p[F])?p[F].call(this,w):p[F]);return this.format(j||this.localeData().calendar(F,this,Zt(w)))}function EM(){return new O(this)}function kM(f,p){var w=A(f)?f:Zt(f);return this.isValid()&&w.isValid()?(p=Vt(p)||"millisecond",p==="millisecond"?this.valueOf()>w.valueOf():w.valueOf()<this.clone().startOf(p).valueOf()):!1}function xM(f,p){var w=A(f)?f:Zt(f);return this.isValid()&&w.isValid()?(p=Vt(p)||"millisecond",p==="millisecond"?this.valueOf()<w.valueOf():this.clone().endOf(p).valueOf()<w.valueOf()):!1}function CM(f,p,w,S){var F=A(f)?f:Zt(f),j=A(p)?p:Zt(p);return this.isValid()&&F.isValid()&&j.isValid()?(S=S||"()",(S[0]==="("?this.isAfter(F,w):!this.isBefore(F,w))&&(S[1]===")"?this.isBefore(j,w):!this.isAfter(j,w))):!1}function _M(f,p){var w=A(f)?f:Zt(f),S;return this.isValid()&&w.isValid()?(p=Vt(p)||"millisecond",p==="millisecond"?this.valueOf()===w.valueOf():(S=w.valueOf(),this.clone().startOf(p).valueOf()<=S&&S<=this.clone().endOf(p).valueOf())):!1}function MM(f,p){return this.isSame(f,p)||this.isAfter(f,p)}function TM(f,p){return this.isSame(f,p)||this.isBefore(f,p)}function FM(f,p,w){var S,F,j;if(!this.isValid())return NaN;if(S=Ff(f,this),!S.isValid())return NaN;switch(F=(S.utcOffset()-this.utcOffset())*6e4,p=Vt(p),p){case"year":j=ou(this,S)/12;break;case"month":j=ou(this,S);break;case"quarter":j=ou(this,S)/3;break;case"second":j=(this-S)/1e3;break;case"minute":j=(this-S)/6e4;break;case"hour":j=(this-S)/36e5;break;case"day":j=(this-S-F)/864e5;break;case"week":j=(this-S-F)/6048e5;break;default:j=this-S}return w?j:At(j)}function ou(f,p){if(f.date()<p.date())return-ou(p,f);var w=(p.year()-f.year())*12+(p.month()-f.month()),S=f.clone().add(w,"months"),F,j;return p-S<0?(F=f.clone().add(w-1,"months"),j=(p-S)/(S-F)):(F=f.clone().add(w+1,"months"),j=(p-S)/(F-S)),-(w+j)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function IM(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function AM(f){if(!this.isValid())return null;var p=f!==!0,w=p?this.clone().utc():this;return w.year()<0||w.year()>9999?Mt(w,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Q(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Mt(w,"Z")):Mt(w,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function OM(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var f="moment",p="",w,S,F,j;return this.isLocal()||(f=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),w="["+f+'("]',S=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",F="-MM-DD[T]HH:mm:ss.SSS",j=p+'[")]',this.format(w+S+F+j)}function LM(f){f||(f=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var p=Mt(this,f);return this.localeData().postformat(p)}function PM(f,p){return this.isValid()&&(A(f)&&f.isValid()||Zt(f).isValid())?Zr({to:this,from:f}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function NM(f){return this.from(Zt(),f)}function RM(f,p){return this.isValid()&&(A(f)&&f.isValid()||Zt(f).isValid())?Zr({from:this,to:f}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function HM(f){return this.to(Zt(),f)}function zy(f){var p;return f===void 0?this._locale._abbr:(p=Ci(f),p!=null&&(this._locale=p),this)}var Ky=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(f){return f===void 0?this.localeData():this.locale(f)});function jy(){return this._locale}var su=1e3,Do=60*su,lu=60*Do,qy=(365*400+97)*24*lu;function So(f,p){return(f%p+p)%p}function Gy(f,p,w){return f<100&&f>=0?new Date(f+400,p,w)-qy:new Date(f,p,w).valueOf()}function Jy(f,p,w){return f<100&&f>=0?Date.UTC(f+400,p,w)-qy:Date.UTC(f,p,w)}function BM(f){var p,w;if(f=Vt(f),f===void 0||f==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?Jy:Gy,f){case"year":p=w(this.year(),0,1);break;case"quarter":p=w(this.year(),this.month()-this.month()%3,1);break;case"month":p=w(this.year(),this.month(),1);break;case"week":p=w(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=w(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=So(p+(this._isUTC?0:this.utcOffset()*Do),lu);break;case"minute":p=this._d.valueOf(),p-=So(p,Do);break;case"second":p=this._d.valueOf(),p-=So(p,su);break}return this._d.setTime(p),t.updateOffset(this,!0),this}function VM(f){var p,w;if(f=Vt(f),f===void 0||f==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?Jy:Gy,f){case"year":p=w(this.year()+1,0,1)-1;break;case"quarter":p=w(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=w(this.year(),this.month()+1,1)-1;break;case"week":p=w(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=w(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=lu-So(p+(this._isUTC?0:this.utcOffset()*Do),lu)-1;break;case"minute":p=this._d.valueOf(),p+=Do-So(p,Do)-1;break;case"second":p=this._d.valueOf(),p+=su-So(p,su)-1;break}return this._d.setTime(p),t.updateOffset(this,!0),this}function $M(){return this._d.valueOf()-(this._offset||0)*6e4}function UM(){return Math.floor(this.valueOf()/1e3)}function WM(){return new Date(this.valueOf())}function YM(){var f=this;return[f.year(),f.month(),f.date(),f.hour(),f.minute(),f.second(),f.millisecond()]}function zM(){var f=this;return{years:f.year(),months:f.month(),date:f.date(),hours:f.hours(),minutes:f.minutes(),seconds:f.seconds(),milliseconds:f.milliseconds()}}function KM(){return this.isValid()?this.toISOString():null}function jM(){return v(this)}function qM(){return d({},g(this))}function GM(){return g(this).overflow}function JM(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),ae("N",Af),ae("NN",Af),ae("NNN",Af),ae("NNNN",sT),ae("NNNNN",lT),We(["N","NN","NNN","NNNN","NNNNN"],function(f,p,w,S){var F=w._locale.erasParse(f,S,w._strict);F?g(w).era=F:g(w).invalidEra=f}),ae("y",ge),ae("yy",ge),ae("yyy",ge),ae("yyyy",ge),ae("yo",uT),We(["y","yy","yyy","yyyy"],Ot),We(["yo"],function(f,p,w,S){var F;w._locale._eraYearOrdinalRegex&&(F=f.match(w._locale._eraYearOrdinalRegex)),w._locale.eraYearOrdinalParse?p[Ot]=w._locale.eraYearOrdinalParse(f,F):p[Ot]=parseInt(f,10)});function ZM(f,p){var w,S,F,j=this._eras||Ci("en")._eras;for(w=0,S=j.length;w<S;++w){switch(typeof j[w].since){case"string":F=t(j[w].since).startOf("day"),j[w].since=F.valueOf();break}switch(typeof j[w].until){case"undefined":j[w].until=1/0;break;case"string":F=t(j[w].until).startOf("day").valueOf(),j[w].until=F.valueOf();break}}return j}function QM(f,p,w){var S,F,j=this.eras(),se,Pe,ut;for(f=f.toUpperCase(),S=0,F=j.length;S<F;++S)if(se=j[S].name.toUpperCase(),Pe=j[S].abbr.toUpperCase(),ut=j[S].narrow.toUpperCase(),w)switch(p){case"N":case"NN":case"NNN":if(Pe===f)return j[S];break;case"NNNN":if(se===f)return j[S];break;case"NNNNN":if(ut===f)return j[S];break}else if([se,Pe,ut].indexOf(f)>=0)return j[S]}function XM(f,p){var w=f.since<=f.until?1:-1;return p===void 0?t(f.since).year():t(f.since).year()+(p-f.offset)*w}function eT(){var f,p,w,S=this.localeData().eras();for(f=0,p=S.length;f<p;++f)if(w=this.clone().startOf("day").valueOf(),S[f].since<=w&&w<=S[f].until||S[f].until<=w&&w<=S[f].since)return S[f].name;return""}function tT(){var f,p,w,S=this.localeData().eras();for(f=0,p=S.length;f<p;++f)if(w=this.clone().startOf("day").valueOf(),S[f].since<=w&&w<=S[f].until||S[f].until<=w&&w<=S[f].since)return S[f].narrow;return""}function nT(){var f,p,w,S=this.localeData().eras();for(f=0,p=S.length;f<p;++f)if(w=this.clone().startOf("day").valueOf(),S[f].since<=w&&w<=S[f].until||S[f].until<=w&&w<=S[f].since)return S[f].abbr;return""}function rT(){var f,p,w,S,F=this.localeData().eras();for(f=0,p=F.length;f<p;++f)if(w=F[f].since<=F[f].until?1:-1,S=this.clone().startOf("day").valueOf(),F[f].since<=S&&S<=F[f].until||F[f].until<=S&&S<=F[f].since)return(this.year()-t(F[f].since).year())*w+F[f].offset;return this.year()}function iT(f){return a(this,"_erasNameRegex")||Of.call(this),f?this._erasNameRegex:this._erasRegex}function aT(f){return a(this,"_erasAbbrRegex")||Of.call(this),f?this._erasAbbrRegex:this._erasRegex}function oT(f){return a(this,"_erasNarrowRegex")||Of.call(this),f?this._erasNarrowRegex:this._erasRegex}function Af(f,p){return p.erasAbbrRegex(f)}function sT(f,p){return p.erasNameRegex(f)}function lT(f,p){return p.erasNarrowRegex(f)}function uT(f,p){return p._eraYearOrdinalRegex||ge}function Of(){var f=[],p=[],w=[],S=[],F,j,se=this.eras();for(F=0,j=se.length;F<j;++F)p.push(Te(se[F].name)),f.push(Te(se[F].abbr)),w.push(Te(se[F].narrow)),S.push(Te(se[F].name)),S.push(Te(se[F].abbr)),S.push(Te(se[F].narrow));this._erasRegex=new RegExp("^("+S.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+p.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+f.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+w.join("|")+")","i")}N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100});function uu(f,p){N(0,[f,f.length],0,p)}uu("gggg","weekYear"),uu("ggggg","weekYear"),uu("GGGG","isoWeekYear"),uu("GGGGG","isoWeekYear"),Rt("weekYear","gg"),Rt("isoWeekYear","GG"),Bt("weekYear",1),Bt("isoWeekYear",1),ae("G",M),ae("g",M),ae("GG",L,Ht),ae("gg",L,Ht),ae("GGGG",de,ht),ae("gggg",de,ht),ae("GGGGG",ve,St),ae("ggggg",ve,St),Ft(["gggg","ggggg","GGGG","GGGGG"],function(f,p,w,S){p[S.substr(0,2)]=Z(f)}),Ft(["gg","GG"],function(f,p,w,S){p[S]=t.parseTwoDigitYear(f)});function cT(f){return Zy.call(this,f,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function dT(f){return Zy.call(this,f,this.isoWeek(),this.isoWeekday(),1,4)}function fT(){return xi(this.year(),1,4)}function hT(){return xi(this.isoWeekYear(),1,4)}function mT(){var f=this.localeData()._week;return xi(this.year(),f.dow,f.doy)}function pT(){var f=this.localeData()._week;return xi(this.weekYear(),f.dow,f.doy)}function Zy(f,p,w,S,F){var j;return f==null?Ns(this,S,F).year:(j=xi(f,S,F),p>j&&(p=j),gT.call(this,f,p,w,S,F))}function gT(f,p,w,S,F){var j=My(f,p,w,S,F),se=kr(j.year,0,j.dayOfYear);return this.year(se.getUTCFullYear()),this.month(se.getUTCMonth()),this.date(se.getUTCDate()),this}N("Q",0,"Qo","quarter"),Rt("quarter","Q"),Bt("quarter",7),ae("Q",_n),We("Q",function(f,p){p[or]=(Z(f)-1)*3});function yT(f){return f==null?Math.ceil((this.month()+1)/3):this.month((f-1)*3+this.month()%3)}N("D",["DD",2],"Do","date"),Rt("date","D"),Bt("date",9),ae("D",L),ae("DD",L,Ht),ae("Do",function(f,p){return f?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),We(["D","DD"],sr),We("Do",function(f,p){p[sr]=Z(f.match(L)[0])});var Qy=me("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),Rt("dayOfYear","DDD"),Bt("dayOfYear",4),ae("DDD",ue),ae("DDDD",ar),We(["DDD","DDDD"],function(f,p,w){w._dayOfYear=Z(f)});function vT(f){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return f==null?p:this.add(f-p,"d")}N("m",["mm",2],0,"minute"),Rt("minute","m"),Bt("minute",14),ae("m",L),ae("mm",L,Ht),We(["m","mm"],Bn);var wT=me("Minutes",!1);N("s",["ss",2],0,"second"),Rt("second","s"),Bt("second",15),ae("s",L),ae("ss",L,Ht),We(["s","ss"],Er);var bT=me("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return this.millisecond()*10}),N(0,["SSSSS",5],0,function(){return this.millisecond()*100}),N(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),N(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),N(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),N(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Rt("millisecond","ms"),Bt("millisecond",16),ae("S",ue,_n),ae("SS",ue,Ht),ae("SSS",ue,ar);var ra,Xy;for(ra="SSSS";ra.length<=9;ra+="S")ae(ra,ge);function DT(f,p){p[Gr]=Z(("0."+f)*1e3)}for(ra="S";ra.length<=9;ra+="S")We(ra,DT);Xy=me("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");function ST(){return this._isUTC?"UTC":""}function ET(){return this._isUTC?"Coordinated Universal Time":""}var we=O.prototype;we.add=pM,we.calendar=SM,we.clone=EM,we.diff=FM,we.endOf=VM,we.format=LM,we.from=PM,we.fromNow=NM,we.to=RM,we.toNow=HM,we.get=Dt,we.invalidAt=GM,we.isAfter=kM,we.isBefore=xM,we.isBetween=CM,we.isSame=_M,we.isSameOrAfter=MM,we.isSameOrBefore=TM,we.isValid=jM,we.lang=Ky,we.locale=zy,we.localeData=jy,we.max=j1,we.min=K1,we.parsingFlags=qM,we.set=Cn,we.startOf=BM,we.subtract=gM,we.toArray=YM,we.toObject=zM,we.toDate=WM,we.toISOString=AM,we.inspect=OM,typeof Symbol!="undefined"&&Symbol.for!=null&&(we[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),we.toJSON=KM,we.toString=IM,we.unix=UM,we.valueOf=$M,we.creationData=JM,we.eraName=eT,we.eraNarrow=tT,we.eraAbbr=nT,we.eraYear=rT,we.year=On,we.isLeapYear=Vn,we.weekYear=cT,we.isoWeekYear=dT,we.quarter=we.quarters=yT,we.month=ot,we.daysInMonth=qe,we.week=we.weeks=Z_,we.isoWeek=we.isoWeeks=Q_,we.weeksInYear=mT,we.weeksInWeekYear=pT,we.isoWeeksInYear=fT,we.isoWeeksInISOWeekYear=hT,we.date=Qy,we.day=we.days=d1,we.weekday=f1,we.isoWeekday=h1,we.dayOfYear=vT,we.hour=we.hours=b1,we.minute=we.minutes=wT,we.second=we.seconds=bT,we.millisecond=we.milliseconds=Xy,we.utcOffset=nM,we.utc=iM,we.local=aM,we.parseZone=oM,we.hasAlignedHourOffset=sM,we.isDST=lM,we.isLocal=cM,we.isUtcOffset=dM,we.isUtc=Vy,we.isUTC=Vy,we.zoneAbbr=ST,we.zoneName=ET,we.dates=B("dates accessor is deprecated. Use date instead.",Qy),we.months=B("months accessor is deprecated. Use month instead",ot),we.years=B("years accessor is deprecated. Use year instead",On),we.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rM),we.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uM);function kT(f){return Zt(f*1e3)}function xT(){return Zt.apply(null,arguments).parseZone()}function ev(f){return f}var Lt=re.prototype;Lt.calendar=pe,Lt.longDateFormat=Wt,Lt.invalidDate=Jt,Lt.ordinal=yn,Lt.preparse=ev,Lt.postformat=ev,Lt.relativeTime=xn,Lt.pastFuture=jn,Lt.set=oe,Lt.eras=ZM,Lt.erasParse=QM,Lt.erasConvertYear=XM,Lt.erasAbbrRegex=aT,Lt.erasNameRegex=iT,Lt.erasNarrowRegex=oT,Lt.months=he,Lt.monthsShort=Me,Lt.monthsParse=Le,Lt.monthsRegex=st,Lt.monthsShortRegex=yt,Lt.week=j_,Lt.firstDayOfYear=J_,Lt.firstDayOfWeek=G_,Lt.weekdays=o1,Lt.weekdaysMin=l1,Lt.weekdaysShort=s1,Lt.weekdaysParse=c1,Lt.weekdaysRegex=m1,Lt.weekdaysShortRegex=p1,Lt.weekdaysMinRegex=g1,Lt.isPM=v1,Lt.meridiem=D1;function cu(f,p,w,S){var F=Ci(),j=m().set(S,p);return F[w](j,f)}function tv(f,p,w){if(u(f)&&(p=f,f=void 0),f=f||"",p!=null)return cu(f,p,w,"month");var S,F=[];for(S=0;S<12;S++)F[S]=cu(f,S,w,"month");return F}function Lf(f,p,w,S){typeof f=="boolean"?(u(p)&&(w=p,p=void 0),p=p||""):(p=f,w=p,f=!1,u(p)&&(w=p,p=void 0),p=p||"");var F=Ci(),j=f?F._week.dow:0,se,Pe=[];if(w!=null)return cu(p,(w+j)%7,S,"day");for(se=0;se<7;se++)Pe[se]=cu(p,(se+j)%7,S,"day");return Pe}function CT(f,p){return tv(f,p,"months")}function _T(f,p){return tv(f,p,"monthsShort")}function MT(f,p,w){return Lf(f,p,w,"weekdays")}function TT(f,p,w){return Lf(f,p,w,"weekdaysShort")}function FT(f,p,w){return Lf(f,p,w,"weekdaysMin")}na("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(f){var p=f%10,w=Z(f%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return f+w}}),t.lang=B("moment.lang is deprecated. Use moment.locale instead.",na),t.langData=B("moment.langData is deprecated. Use moment.localeData instead.",Ci);var _i=Math.abs;function IT(){var f=this._data;return this._milliseconds=_i(this._milliseconds),this._days=_i(this._days),this._months=_i(this._months),f.milliseconds=_i(f.milliseconds),f.seconds=_i(f.seconds),f.minutes=_i(f.minutes),f.hours=_i(f.hours),f.months=_i(f.months),f.years=_i(f.years),this}function nv(f,p,w,S){var F=Zr(p,w);return f._milliseconds+=S*F._milliseconds,f._days+=S*F._days,f._months+=S*F._months,f._bubble()}function AT(f,p){return nv(this,f,p,1)}function OT(f,p){return nv(this,f,p,-1)}function rv(f){return f<0?Math.floor(f):Math.ceil(f)}function LT(){var f=this._milliseconds,p=this._days,w=this._months,S=this._data,F,j,se,Pe,ut;return f>=0&&p>=0&&w>=0||f<=0&&p<=0&&w<=0||(f+=rv(Pf(w)+p)*864e5,p=0,w=0),S.milliseconds=f%1e3,F=At(f/1e3),S.seconds=F%60,j=At(F/60),S.minutes=j%60,se=At(j/60),S.hours=se%24,p+=At(se/24),ut=At(iv(p)),w+=ut,p-=rv(Pf(ut)),Pe=At(w/12),w%=12,S.days=p,S.months=w,S.years=Pe,this}function iv(f){return f*4800/146097}function Pf(f){return f*146097/4800}function PT(f){if(!this.isValid())return NaN;var p,w,S=this._milliseconds;if(f=Vt(f),f==="month"||f==="quarter"||f==="year")switch(p=this._days+S/864e5,w=this._months+iv(p),f){case"month":return w;case"quarter":return w/3;case"year":return w/12}else switch(p=this._days+Math.round(Pf(this._months)),f){case"week":return p/7+S/6048e5;case"day":return p+S/864e5;case"hour":return p*24+S/36e5;case"minute":return p*1440+S/6e4;case"second":return p*86400+S/1e3;case"millisecond":return Math.floor(p*864e5)+S;default:throw new Error("Unknown unit "+f)}}function NT(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Z(this._months/12)*31536e6:NaN}function Mi(f){return function(){return this.as(f)}}var RT=Mi("ms"),HT=Mi("s"),BT=Mi("m"),VT=Mi("h"),$T=Mi("d"),UT=Mi("w"),WT=Mi("M"),YT=Mi("Q"),zT=Mi("y");function KT(){return Zr(this)}function jT(f){return f=Vt(f),this.isValid()?this[f+"s"]():NaN}function Ba(f){return function(){return this.isValid()?this._data[f]:NaN}}var qT=Ba("milliseconds"),GT=Ba("seconds"),JT=Ba("minutes"),ZT=Ba("hours"),QT=Ba("days"),XT=Ba("months"),eF=Ba("years");function tF(){return At(this.days()/7)}var Ti=Math.round,Eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nF(f,p,w,S,F){return F.relativeTime(p||1,!!w,f,S)}function rF(f,p,w,S){var F=Zr(f).abs(),j=Ti(F.as("s")),se=Ti(F.as("m")),Pe=Ti(F.as("h")),ut=Ti(F.as("d")),$t=Ti(F.as("M")),lr=Ti(F.as("w")),Fi=Ti(F.as("y")),ia=j<=w.ss&&["s",j]||j<w.s&&["ss",j]||se<=1&&["m"]||se<w.m&&["mm",se]||Pe<=1&&["h"]||Pe<w.h&&["hh",Pe]||ut<=1&&["d"]||ut<w.d&&["dd",ut];return w.w!=null&&(ia=ia||lr<=1&&["w"]||lr<w.w&&["ww",lr]),ia=ia||$t<=1&&["M"]||$t<w.M&&["MM",$t]||Fi<=1&&["y"]||["yy",Fi],ia[2]=p,ia[3]=+f>0,ia[4]=S,nF.apply(null,ia)}function iF(f){return f===void 0?Ti:typeof f=="function"?(Ti=f,!0):!1}function aF(f,p){return Eo[f]===void 0?!1:p===void 0?Eo[f]:(Eo[f]=p,f==="s"&&(Eo.ss=p-1),!0)}function oF(f,p){if(!this.isValid())return this.localeData().invalidDate();var w=!1,S=Eo,F,j;return typeof f=="object"&&(p=f,f=!1),typeof f=="boolean"&&(w=f),typeof p=="object"&&(S=Object.assign({},Eo,p),p.s!=null&&p.ss==null&&(S.ss=p.s-1)),F=this.localeData(),j=rF(this,!w,S,F),w&&(j=F.pastFuture(+this,j)),F.postformat(j)}var Nf=Math.abs;function ko(f){return(f>0)-(f<0)||+f}function du(){if(!this.isValid())return this.localeData().invalidDate();var f=Nf(this._milliseconds)/1e3,p=Nf(this._days),w=Nf(this._months),S,F,j,se,Pe=this.asSeconds(),ut,$t,lr,Fi;return Pe?(S=At(f/60),F=At(S/60),f%=60,S%=60,j=At(w/12),w%=12,se=f?f.toFixed(3).replace(/\.?0+$/,""):"",ut=Pe<0?"-":"",$t=ko(this._months)!==ko(Pe)?"-":"",lr=ko(this._days)!==ko(Pe)?"-":"",Fi=ko(this._milliseconds)!==ko(Pe)?"-":"",ut+"P"+(j?$t+j+"Y":"")+(w?$t+w+"M":"")+(p?lr+p+"D":"")+(F||S||f?"T":"")+(F?Fi+F+"H":"")+(S?Fi+S+"M":"")+(f?Fi+se+"S":"")):"P0D"}var xt=iu.prototype;xt.isValid=Q1,xt.abs=IT,xt.add=AT,xt.subtract=OT,xt.as=PT,xt.asMilliseconds=RT,xt.asSeconds=HT,xt.asMinutes=BT,xt.asHours=VT,xt.asDays=$T,xt.asWeeks=UT,xt.asMonths=WT,xt.asQuarters=YT,xt.asYears=zT,xt.valueOf=NT,xt._bubble=LT,xt.clone=KT,xt.get=jT,xt.milliseconds=qT,xt.seconds=GT,xt.minutes=JT,xt.hours=ZT,xt.days=QT,xt.weeks=tF,xt.months=XT,xt.years=eF,xt.humanize=oF,xt.toISOString=du,xt.toString=du,xt.toJSON=du,xt.locale=zy,xt.localeData=jy,xt.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",du),xt.lang=Ky,N("X",0,0,"unix"),N("x",0,0,"valueOf"),ae("x",M),ae("X",ie),We("X",function(f,p,w){w._d=new Date(parseFloat(f)*1e3)}),We("x",function(f,p,w){w._d=new Date(Z(f))});return t.version="2.29.4",r(Zt),t.fn=we,t.min=q1,t.max=G1,t.now=J1,t.utc=m,t.unix=kT,t.months=CT,t.isDate=l,t.locale=na,t.invalid=D,t.duration=Zr,t.isMoment=A,t.weekdays=MT,t.parseZone=xT,t.localeData=Ci,t.isDuration=au,t.monthsShort=_T,t.weekdaysMin=FT,t.defineLocale=Ef,t.updateLocale=x1,t.locales=C1,t.weekdaysShort=TT,t.normalizeUnits=Vt,t.relativeTimeRounding=iF,t.relativeTimeThreshold=aF,t.calendarFormat=DM,t.prototype=we,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})});var dx=wn((Fd,_g)=>{(function(t,r){typeof Fd=="object"&&typeof _g=="object"?_g.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Fd=="object"?Fd.Choices=r():t.Choices=r()})(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(n,i,a){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:a})},r.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,i){if(i&1&&(n=r(n)),i&8||i&4&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),i&2&&typeof n!="string")for(var o in n)r.d(a,o,function(s){return n[s]}.bind(null,o));return a},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="/public/assets/scripts/",r(r.s=4)}([function(e,t,r){"use strict";var n=function(x){return i(x)&&!a(x)};function i(C){return!!C&&typeof C=="object"}function a(C){var x=Object.prototype.toString.call(C);return x==="[object RegExp]"||x==="[object Date]"||u(C)}var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103;function u(C){return C.$$typeof===s}function l(C){return Array.isArray(C)?[]:{}}function c(C,x){return x.clone!==!1&&x.isMergeableObject(C)?D(l(C),C,x):C}function d(C,x,O){return C.concat(x).map(function(A){return c(A,O)})}function m(C,x){if(!x.customMerge)return D;var O=x.customMerge(C);return typeof O=="function"?O:D}function h(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(x){return C.propertyIsEnumerable(x)}):[]}function g(C){return Object.keys(C).concat(h(C))}function y(C,x){try{return x in C&&!(Object.hasOwnProperty.call(C,x)&&Object.propertyIsEnumerable.call(C,x))}catch(O){return!1}}function v(C,x,O){var A={};return O.isMergeableObject(C)&&g(C).forEach(function(P){A[P]=c(C[P],O)}),g(x).forEach(function(P){y(C,P)||(!O.isMergeableObject(x[P])||!C[P]?A[P]=c(x[P],O):A[P]=m(P,O)(C[P],x[P],O))}),A}function D(C,x,O){O=O||{},O.arrayMerge=O.arrayMerge||d,O.isMergeableObject=O.isMergeableObject||n,O.cloneUnlessOtherwiseSpecified=c;var A=Array.isArray(x),P=Array.isArray(C),B=A===P;return B?A?O.arrayMerge(C,x,O):v(C,x,O):c(x,O)}D.all=function(x,O){if(!Array.isArray(x))throw new Error("first argument should be an array");return x.reduce(function(A,P){return D(A,P,O)},{})};var I=D;e.exports=I},function(e,t,r){"use strict";(function(n,i){var a=r(3),o;typeof self!="undefined"?o=self:typeof window!="undefined"?o=window:typeof n!="undefined"?o=n:o=i;var s=Object(a.a)(o);t.a=s}).call(this,r(5),r(6)(e))},function(e,t,r){(function(n,i){e.exports=i()})(this,function(){return function(n){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=n,a.c=i,a.d=function(o,s,u){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:u})},a.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(u,l,function(c){return o[c]}.bind(null,l));return u},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=1)}([function(n,i){n.exports=function(a){return Array.isArray?Array.isArray(a):Object.prototype.toString.call(a)==="[object Array]"}},function(n,i,a){function o(m){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})(m)}function s(m,h){for(var g=0;g<h.length;g++){var y=h[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}var u=a(2),l=a(8),c=a(0),d=function(){function m(v,D){var I=D.location,C=I===void 0?0:I,x=D.distance,O=x===void 0?100:x,A=D.threshold,P=A===void 0?.6:A,B=D.maxPatternLength,G=B===void 0?32:B,J=D.caseSensitive,Q=J!==void 0&&J,oe=D.tokenSeparator,te=oe===void 0?/ +/g:oe,re=D.findAllMatches,ne=re!==void 0&&re,be=D.minMatchCharLength,pe=be===void 0?1:be,De=D.id,Ce=De===void 0?null:De,U=D.keys,Je=U===void 0?[]:U,it=D.shouldSort,N=it===void 0||it,Ze=D.getFn,It=Ze===void 0?l:Ze,Mt=D.sortFn,jt=Mt===void 0?function(sn,Rt){return sn.score-Rt.score}:Mt,vt=D.tokenize,Wt=vt!==void 0&&vt,Tt=D.matchAllTokens,Jt=Tt!==void 0&&Tt,en=D.includeMatches,gn=en!==void 0&&en,yn=D.includeScore,vn=yn!==void 0&&yn,xn=D.verbose,jn=xn!==void 0&&xn;(function(sn,Rt){if(!(sn instanceof Rt))throw new TypeError("Cannot call a class as a function")})(this,m),this.options={location:C,distance:O,threshold:P,maxPatternLength:G,isCaseSensitive:Q,tokenSeparator:te,findAllMatches:ne,minMatchCharLength:pe,id:Ce,keys:Je,includeMatches:gn,includeScore:vn,shouldSort:N,getFn:It,sortFn:jt,verbose:jn,tokenize:Wt,matchAllTokens:Jt},this.setCollection(v)}var h,g,y;return h=m,(g=[{key:"setCollection",value:function(v){return this.list=v,v}},{key:"search",value:function(v){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{limit:!1};this._log(`---------
|
||
Search pattern: "`.concat(v,'"'));var I=this._prepareSearchers(v),C=I.tokenSearchers,x=I.fullSearcher,O=this._search(C,x),A=O.weights,P=O.results;return this._computeScore(A,P),this.options.shouldSort&&this._sort(P),D.limit&&typeof D.limit=="number"&&(P=P.slice(0,D.limit)),this._format(P)}},{key:"_prepareSearchers",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",D=[];if(this.options.tokenize)for(var I=v.split(this.options.tokenSeparator),C=0,x=I.length;C<x;C+=1)D.push(new u(I[C],this.options));return{tokenSearchers:D,fullSearcher:new u(v,this.options)}}},{key:"_search",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1?arguments[1]:void 0,I=this.list,C={},x=[];if(typeof I[0]=="string"){for(var O=0,A=I.length;O<A;O+=1)this._analyze({key:"",value:I[O],record:O,index:O},{resultMap:C,results:x,tokenSearchers:v,fullSearcher:D});return{weights:null,results:x}}for(var P={},B=0,G=I.length;B<G;B+=1)for(var J=I[B],Q=0,oe=this.options.keys.length;Q<oe;Q+=1){var te=this.options.keys[Q];if(typeof te!="string"){if(P[te.name]={weight:1-te.weight||1},te.weight<=0||te.weight>1)throw new Error("Key weight has to be > 0 and <= 1");te=te.name}else P[te]={weight:1};this._analyze({key:te,value:this.options.getFn(J,te),record:J,index:B},{resultMap:C,results:x,tokenSearchers:v,fullSearcher:D})}return{weights:P,results:x}}},{key:"_analyze",value:function(v,D){var I=v.key,C=v.arrayIndex,x=C===void 0?-1:C,O=v.value,A=v.record,P=v.index,B=D.tokenSearchers,G=B===void 0?[]:B,J=D.fullSearcher,Q=J===void 0?[]:J,oe=D.resultMap,te=oe===void 0?{}:oe,re=D.results,ne=re===void 0?[]:re;if(O!=null){var be=!1,pe=-1,De=0;if(typeof O=="string"){this._log(`
|
||
Key: `.concat(I===""?"-":I));var Ce=Q.search(O);if(this._log('Full text: "'.concat(O,'", score: ').concat(Ce.score)),this.options.tokenize){for(var U=O.split(this.options.tokenSeparator),Je=[],it=0;it<G.length;it+=1){var N=G[it];this._log(`
|
||
Pattern: "`.concat(N.pattern,'"'));for(var Ze=!1,It=0;It<U.length;It+=1){var Mt=U[It],jt=N.search(Mt),vt={};jt.isMatch?(vt[Mt]=jt.score,be=!0,Ze=!0,Je.push(jt.score)):(vt[Mt]=1,this.options.matchAllTokens||Je.push(1)),this._log('Token: "'.concat(Mt,'", score: ').concat(vt[Mt]))}Ze&&(De+=1)}pe=Je[0];for(var Wt=Je.length,Tt=1;Tt<Wt;Tt+=1)pe+=Je[Tt];pe/=Wt,this._log("Token score average:",pe)}var Jt=Ce.score;pe>-1&&(Jt=(Jt+pe)/2),this._log("Score average:",Jt);var en=!this.options.tokenize||!this.options.matchAllTokens||De>=G.length;if(this._log(`
|
||
Check Matches: `.concat(en)),(be||Ce.isMatch)&&en){var gn=te[P];gn?gn.output.push({key:I,arrayIndex:x,value:O,score:Jt,matchedIndices:Ce.matchedIndices}):(te[P]={item:A,output:[{key:I,arrayIndex:x,value:O,score:Jt,matchedIndices:Ce.matchedIndices}]},ne.push(te[P]))}}else if(c(O))for(var yn=0,vn=O.length;yn<vn;yn+=1)this._analyze({key:I,arrayIndex:yn,value:O[yn],record:A,index:P},{resultMap:te,results:ne,tokenSearchers:G,fullSearcher:Q})}}},{key:"_computeScore",value:function(v,D){this._log(`
|
||
|
||
Computing score:
|
||
`);for(var I=0,C=D.length;I<C;I+=1){for(var x=D[I].output,O=x.length,A=1,P=1,B=0;B<O;B+=1){var G=v?v[x[B].key].weight:1,J=(G===1?x[B].score:x[B].score||.001)*G;G!==1?P=Math.min(P,J):(x[B].nScore=J,A*=J)}D[I].score=P===1?A:P,this._log(D[I])}}},{key:"_sort",value:function(v){this._log(`
|
||
|
||
Sorting....`),v.sort(this.options.sortFn)}},{key:"_format",value:function(v){var D=[];if(this.options.verbose){var I=[];this._log(`
|
||
|
||
Output:
|
||
|
||
`,JSON.stringify(v,function(J,Q){if(o(Q)==="object"&&Q!==null){if(I.indexOf(Q)!==-1)return;I.push(Q)}return Q})),I=null}var C=[];this.options.includeMatches&&C.push(function(J,Q){var oe=J.output;Q.matches=[];for(var te=0,re=oe.length;te<re;te+=1){var ne=oe[te];if(ne.matchedIndices.length!==0){var be={indices:ne.matchedIndices,value:ne.value};ne.key&&(be.key=ne.key),ne.hasOwnProperty("arrayIndex")&&ne.arrayIndex>-1&&(be.arrayIndex=ne.arrayIndex),Q.matches.push(be)}}}),this.options.includeScore&&C.push(function(J,Q){Q.score=J.score});for(var x=0,O=v.length;x<O;x+=1){var A=v[x];if(this.options.id&&(A.item=this.options.getFn(A.item,this.options.id)[0]),C.length){for(var P={item:A.item},B=0,G=C.length;B<G;B+=1)C[B](A,P);D.push(P)}else D.push(A.item)}return D}},{key:"_log",value:function(){var v;this.options.verbose&&(v=console).log.apply(v,arguments)}}])&&s(h.prototype,g),y&&s(h,y),m}();n.exports=d},function(n,i,a){function o(d,m){for(var h=0;h<m.length;h++){var g=m[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}var s=a(3),u=a(4),l=a(7),c=function(){function d(y,v){var D=v.location,I=D===void 0?0:D,C=v.distance,x=C===void 0?100:C,O=v.threshold,A=O===void 0?.6:O,P=v.maxPatternLength,B=P===void 0?32:P,G=v.isCaseSensitive,J=G!==void 0&&G,Q=v.tokenSeparator,oe=Q===void 0?/ +/g:Q,te=v.findAllMatches,re=te!==void 0&&te,ne=v.minMatchCharLength,be=ne===void 0?1:ne;(function(pe,De){if(!(pe instanceof De))throw new TypeError("Cannot call a class as a function")})(this,d),this.options={location:I,distance:x,threshold:A,maxPatternLength:B,isCaseSensitive:J,tokenSeparator:oe,findAllMatches:re,minMatchCharLength:be},this.pattern=this.options.isCaseSensitive?y:y.toLowerCase(),this.pattern.length<=B&&(this.patternAlphabet=l(this.pattern))}var m,h,g;return m=d,(h=[{key:"search",value:function(y){if(this.options.isCaseSensitive||(y=y.toLowerCase()),this.pattern===y)return{isMatch:!0,score:0,matchedIndices:[[0,y.length-1]]};var v=this.options,D=v.maxPatternLength,I=v.tokenSeparator;if(this.pattern.length>D)return s(y,this.pattern,I);var C=this.options,x=C.location,O=C.distance,A=C.threshold,P=C.findAllMatches,B=C.minMatchCharLength;return u(y,this.pattern,this.patternAlphabet,{location:x,distance:O,threshold:A,findAllMatches:P,minMatchCharLength:B})}}])&&o(m.prototype,h),g&&o(m,g),d}();n.exports=c},function(n,i){var a=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;n.exports=function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,l=new RegExp(s.replace(a,"\\$&").replace(u,"|")),c=o.match(l),d=!!c,m=[];if(d)for(var h=0,g=c.length;h<g;h+=1){var y=c[h];m.push([o.indexOf(y),y.length-1])}return{score:d?.5:1,isMatch:d,matchedIndices:m}}},function(n,i,a){var o=a(5),s=a(6);n.exports=function(u,l,c,d){for(var m=d.location,h=m===void 0?0:m,g=d.distance,y=g===void 0?100:g,v=d.threshold,D=v===void 0?.6:v,I=d.findAllMatches,C=I!==void 0&&I,x=d.minMatchCharLength,O=x===void 0?1:x,A=h,P=u.length,B=D,G=u.indexOf(l,A),J=l.length,Q=[],oe=0;oe<P;oe+=1)Q[oe]=0;if(G!==-1){var te=o(l,{errors:0,currentLocation:G,expectedLocation:A,distance:y});if(B=Math.min(te,B),(G=u.lastIndexOf(l,A+J))!==-1){var re=o(l,{errors:0,currentLocation:G,expectedLocation:A,distance:y});B=Math.min(re,B)}}G=-1;for(var ne=[],be=1,pe=J+P,De=1<<J-1,Ce=0;Ce<J;Ce+=1){for(var U=0,Je=pe;U<Je;)o(l,{errors:Ce,currentLocation:A+Je,expectedLocation:A,distance:y})<=B?U=Je:pe=Je,Je=Math.floor((pe-U)/2+U);pe=Je;var it=Math.max(1,A-Je+1),N=C?P:Math.min(A+Je,P)+J,Ze=Array(N+2);Ze[N+1]=(1<<Ce)-1;for(var It=N;It>=it;It-=1){var Mt=It-1,jt=c[u.charAt(Mt)];if(jt&&(Q[Mt]=1),Ze[It]=(Ze[It+1]<<1|1)&jt,Ce!==0&&(Ze[It]|=(ne[It+1]|ne[It])<<1|1|ne[It+1]),Ze[It]&De&&(be=o(l,{errors:Ce,currentLocation:Mt,expectedLocation:A,distance:y}))<=B){if(B=be,(G=Mt)<=A)break;it=Math.max(1,2*A-G)}}if(o(l,{errors:Ce+1,currentLocation:A,expectedLocation:A,distance:y})>B)break;ne=Ze}return{isMatch:G>=0,score:be===0?.001:be,matchedIndices:s(Q,O)}}},function(n,i){n.exports=function(a,o){var s=o.errors,u=s===void 0?0:s,l=o.currentLocation,c=l===void 0?0:l,d=o.expectedLocation,m=d===void 0?0:d,h=o.distance,g=h===void 0?100:h,y=u/a.length,v=Math.abs(m-c);return g?y+v/g:v?1:y}},function(n,i){n.exports=function(){for(var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,s=[],u=-1,l=-1,c=0,d=a.length;c<d;c+=1){var m=a[c];m&&u===-1?u=c:m||u===-1||((l=c-1)-u+1>=o&&s.push([u,l]),u=-1)}return a[c-1]&&c-u>=o&&s.push([u,c-1]),s}},function(n,i){n.exports=function(a){for(var o={},s=a.length,u=0;u<s;u+=1)o[a.charAt(u)]=0;for(var l=0;l<s;l+=1)o[a.charAt(l)]|=1<<s-l-1;return o}},function(n,i,a){var o=a(0);n.exports=function(s,u){return function l(c,d,m){if(d){var h=d.indexOf("."),g=d,y=null;h!==-1&&(g=d.slice(0,h),y=d.slice(h+1));var v=c[g];if(v!=null)if(y||typeof v!="string"&&typeof v!="number")if(o(v))for(var D=0,I=v.length;D<I;D+=1)l(v[D],y,m);else y&&l(v,y,m);else m.push(v.toString())}else m.push(c);return m}(s,u,[])}}])})},function(e,t,r){"use strict";r.d(t,"a",function(){return n});function n(i){var a,o=i.Symbol;return typeof o=="function"?o.observable?a=o.observable:(a=o("observable"),o.observable=a):a="@@observable",a}},function(e,t,r){e.exports=r(7)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){typeof window=="object"&&(r=window)}e.exports=r},function(e,t){e.exports=function(r){if(!r.webpackPolyfill){var n=Object.create(r);n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(n,"exports",{enumerable:!0}),n.webpackPolyfill=1}return n}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r.n(n),a=r(0),o=r.n(a),s=r(1),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function c(z){if(typeof z!="object"||z===null)return!1;for(var k=z;Object.getPrototypeOf(k)!==null;)k=Object.getPrototypeOf(k);return Object.getPrototypeOf(z)===k}function d(z,k,_){var b;if(typeof k=="function"&&typeof _=="function"||typeof _=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if(typeof k=="function"&&typeof _=="undefined"&&(_=k,k=void 0),typeof _!="undefined"){if(typeof _!="function")throw new Error("Expected the enhancer to be a function.");return _(d)(z,k)}if(typeof z!="function")throw new Error("Expected the reducer to be a function.");var T=z,V=k,Y=[],X=Y,le=!1;function he(){X===Y&&(X=Y.slice())}function Me(){if(le)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return V}function Ve(qe){if(typeof qe!="function")throw new Error("Expected the listener to be a function.");if(le)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var yt=!0;return he(),X.push(qe),function(){if(yt){if(le)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");yt=!1,he();var lt=X.indexOf(qe);X.splice(lt,1)}}}function Le(qe){if(!c(qe))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof qe.type=="undefined")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(le)throw new Error("Reducers may not dispatch actions.");try{le=!0,V=T(V,qe)}finally{le=!1}for(var yt=Y=X,st=0;st<yt.length;st++){var lt=yt[st];lt()}return qe}function Qe(qe){if(typeof qe!="function")throw new Error("Expected the nextReducer to be a function.");T=qe,Le({type:l.REPLACE})}function ot(){var qe,yt=Ve;return qe={subscribe:function(lt){if(typeof lt!="object"||lt===null)throw new TypeError("Expected the observer to be an object.");function qt(){lt.next&<.next(Me())}qt();var On=yt(qt);return{unsubscribe:On}}},qe[s.a]=function(){return this},qe}return Le({type:l.INIT}),b={dispatch:Le,subscribe:Ve,getState:Me,replaceReducer:Qe},b[s.a]=ot,b}function m(z){typeof console!="undefined"&&typeof console.error=="function"&&console.error(z);try{throw new Error(z)}catch(k){}}function h(z,k){var _=k&&k.type,b=_&&'action "'+String(_)+'"'||"an action";return"Given "+b+', reducer "'+z+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function g(z,k,_,b){var T=Object.keys(k),V=_&&_.type===l.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(T.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!c(z))return"The "+V+' has unexpected type of "'+{}.toString.call(z).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+T.join('", "')+'"');var Y=Object.keys(z).filter(function(X){return!k.hasOwnProperty(X)&&!b[X]});if(Y.forEach(function(X){b[X]=!0}),!(_&&_.type===l.REPLACE)&&Y.length>0)return"Unexpected "+(Y.length>1?"keys":"key")+" "+('"'+Y.join('", "')+'" found in '+V+". ")+"Expected to find one of the known reducer keys instead: "+('"'+T.join('", "')+'". Unexpected keys will be ignored.')}function y(z){Object.keys(z).forEach(function(k){var _=z[k],b=_(void 0,{type:l.INIT});if(typeof b=="undefined")throw new Error('Reducer "'+k+`" 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 _(void 0,{type:l.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error('Reducer "'+k+'" 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 v(z){for(var k=Object.keys(z),_={},b=0;b<k.length;b++){var T=k[b];typeof z[T]=="function"&&(_[T]=z[T])}var V=Object.keys(_),Y,X;try{y(_)}catch(le){X=le}return function(he,Me){if(he===void 0&&(he={}),X)throw X;if(0)var Ve;for(var Le=!1,Qe={},ot=0;ot<V.length;ot++){var qe=V[ot],yt=_[qe],st=he[qe],lt=yt(st,Me);if(typeof lt=="undefined"){var qt=h(qe,Me);throw new Error(qt)}Qe[qe]=lt,Le=Le||lt!==st}return Le?Qe:he}}function D(z,k){return function(){return k(z.apply(this,arguments))}}function I(z,k){if(typeof z=="function")return D(z,k);if(typeof z!="object"||z===null)throw new Error("bindActionCreators expected an object or a function, instead received "+(z===null?"null":typeof z)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var _={};for(var b in z){var T=z[b];typeof T=="function"&&(_[b]=D(T,k))}return _}function C(z,k,_){return k in z?Object.defineProperty(z,k,{value:_,enumerable:!0,configurable:!0,writable:!0}):z[k]=_,z}function x(z,k){var _=Object.keys(z);return Object.getOwnPropertySymbols&&_.push.apply(_,Object.getOwnPropertySymbols(z)),k&&(_=_.filter(function(b){return Object.getOwnPropertyDescriptor(z,b).enumerable})),_}function O(z){for(var k=1;k<arguments.length;k++){var _=arguments[k]!=null?arguments[k]:{};k%2?x(_,!0).forEach(function(b){C(z,b,_[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(_)):x(_).forEach(function(b){Object.defineProperty(z,b,Object.getOwnPropertyDescriptor(_,b))})}return z}function A(){for(var z=arguments.length,k=new Array(z),_=0;_<z;_++)k[_]=arguments[_];return k.length===0?function(b){return b}:k.length===1?k[0]:k.reduce(function(b,T){return function(){return b(T.apply(void 0,arguments))}})}function P(){for(var z=arguments.length,k=new Array(z),_=0;_<z;_++)k[_]=arguments[_];return function(b){return function(){var T=b.apply(void 0,arguments),V=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},Y={getState:T.getState,dispatch:function(){return V.apply(void 0,arguments)}},X=k.map(function(le){return le(Y)});return V=A.apply(void 0,X)(T.dispatch),O({},T,{dispatch:V})}}}function B(){}var G=[];function J(z,k){switch(z===void 0&&(z=G),k.type){case"ADD_ITEM":{var _=[].concat(z,[{id:k.id,choiceId:k.choiceId,groupId:k.groupId,value:k.value,label:k.label,active:!0,highlighted:!1,customProperties:k.customProperties,placeholder:k.placeholder||!1,keyCode:null}]);return _.map(function(b){var T=b;return T.highlighted=!1,T})}case"REMOVE_ITEM":return z.map(function(b){var T=b;return T.id===k.id&&(T.active=!1),T});case"HIGHLIGHT_ITEM":return z.map(function(b){var T=b;return T.id===k.id&&(T.highlighted=k.highlighted),T});default:return z}}var Q=[];function oe(z,k){switch(z===void 0&&(z=Q),k.type){case"ADD_GROUP":return[].concat(z,[{id:k.id,value:k.value,active:k.active,disabled:k.disabled}]);case"CLEAR_CHOICES":return[];default:return z}}var te=[];function re(z,k){switch(z===void 0&&(z=te),k.type){case"ADD_CHOICE":return[].concat(z,[{id:k.id,elementId:k.elementId,groupId:k.groupId,value:k.value,label:k.label||k.value,disabled:k.disabled||!1,selected:!1,active:!0,score:9999,customProperties:k.customProperties,placeholder:k.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return k.activateOptions?z.map(function(_){var b=_;return b.active=k.active,b}):k.choiceId>-1?z.map(function(_){var b=_;return b.id===parseInt(k.choiceId,10)&&(b.selected=!0),b}):z;case"REMOVE_ITEM":return k.choiceId>-1?z.map(function(_){var b=_;return b.id===parseInt(k.choiceId,10)&&(b.selected=!1),b}):z;case"FILTER_CHOICES":return z.map(function(_){var b=_;return b.active=k.results.some(function(T){var V=T.item,Y=T.score;return V.id===b.id?(b.score=Y,!0):!1}),b});case"ACTIVATE_CHOICES":return z.map(function(_){var b=_;return b.active=k.active,b});case"CLEAR_CHOICES":return te;default:return z}}var ne={loading:!1},be=function(k,_){switch(k===void 0&&(k=ne),_.type){case"SET_IS_LOADING":return{loading:_.isLoading};default:return k}},pe=be,De=function(k,_){return Math.floor(Math.random()*(_-k)+k)},Ce=function(k){return Array.from({length:k},function(){return De(0,36).toString(36)}).join("")},U=function(k,_){var b=k.id||k.name&&k.name+"-"+Ce(2)||Ce(4);return b=b.replace(/(:|\.|\[|\]|,)/g,""),b=_+"-"+b,b},Je=function(k){return Object.prototype.toString.call(k).slice(8,-1)},it=function(k,_){return _!=null&&Je(_)===k},N=function(k,_){return _===void 0&&(_=document.createElement("div")),k.nextSibling?k.parentNode.insertBefore(_,k.nextSibling):k.parentNode.appendChild(_),_.appendChild(k)},Ze=function(k,_,b){if(b===void 0&&(b=1),!(!(k instanceof Element)||typeof _!="string")){for(var T=(b>0?"next":"previous")+"ElementSibling",V=k[T];V;){if(V.matches(_))return V;V=V[T]}return V}},It=function(k,_,b){if(b===void 0&&(b=1),!k)return!1;var T;return b>0?T=_.scrollTop+_.offsetHeight>=k.offsetTop+k.offsetHeight:T=k.offsetTop>=_.scrollTop,T},Mt=function(k){return typeof k!="string"?k:k.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,""")},jt=function(){var z=document.createElement("div");return function(k){var _=k.trim();z.innerHTML=_;for(var b=z.children[0];z.firstChild;)z.removeChild(z.firstChild);return b}}(),vt=function(k,_){var b=k.value,T=k.label,V=T===void 0?b:T,Y=_.value,X=_.label,le=X===void 0?Y:X;return V.localeCompare(le,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},Wt=function(k,_){return k.score-_.score},Tt=function(k,_,b){b===void 0&&(b=null);var T=new CustomEvent(_,{detail:b,bubbles:!0,cancelable:!0});return k.dispatchEvent(T)},Jt=function(k,_,b){return b===void 0&&(b="value"),k.some(function(T){return typeof _=="string"?T[b]===_.trim():T[b]===_})},en=function(k){return JSON.parse(JSON.stringify(k))},gn=function(k,_){var b=Object.keys(k).sort(),T=Object.keys(_).sort();return b.filter(function(V){return T.indexOf(V)<0})},yn=v({items:J,groups:oe,choices:re,general:pe}),vn=function(k,_){var b=k;if(_.type==="CLEAR_ALL")b=void 0;else if(_.type==="RESET_TO")return en(_.state);return yn(b,_)},xn=vn;function jn(z,k){for(var _=0;_<k.length;_++){var b=k[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(z,b.key,b)}}function sn(z,k,_){return k&&jn(z.prototype,k),_&&jn(z,_),z}var Rt=function(){function z(){this._store=d(xn,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var k=z.prototype;return k.subscribe=function(b){this._store.subscribe(b)},k.dispatch=function(b){this._store.dispatch(b)},k.isLoading=function(){return this.state.general.loading},k.getChoiceById=function(b){return this.activeChoices.find(function(T){return T.id===parseInt(b,10)})},k.getGroupById=function(b){return this.groups.find(function(T){return T.id===b})},sn(z,[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter(function(b){return b.active===!0})}},{key:"highlightedActiveItems",get:function(){return this.items.filter(function(b){return b.active&&b.highlighted})}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter(function(b){return b.active===!0})}},{key:"selectableChoices",get:function(){return this.choices.filter(function(b){return b.disabled!==!0})}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter(function(b){return b.placeholder!==!0})}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find(function(b){return b.placeholder===!0})}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var b=this.groups,T=this.choices;return b.filter(function(V){var Y=V.active===!0&&V.disabled===!1,X=T.some(function(le){return le.active===!0&&le.disabled===!1});return Y&&X},[])}}]),z}();function Vt(z,k){for(var _=0;_<k.length;_++){var b=k[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(z,b.key,b)}}function Sr(z,k,_){return k&&Vt(z.prototype,k),_&&Vt(z,_),z}var Rr=function(){function z(_){var b=_.element,T=_.type,V=_.classNames;this.element=b,this.classNames=V,this.type=T,this.isActive=!1}var k=z.prototype;return k.getChild=function(b){return this.element.querySelector(b)},k.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},k.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},Sr(z,[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}]),z}(),Bt={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},Hr={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:vt,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(k){return'Press Enter to add <b>"'+Mt(k)+'"</b>'},maxItemText:function(k){return"Only "+k+" values can be added"},valueComparer:function(k,_){return k===_},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:Bt},rn={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice"},At={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"},Z={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},me="text",Ie="select-one",at="select-multiple",Dt=4,Cn=function(){function z(_){var b=_.element,T=_.type,V=_.classNames,Y=_.position;this.element=b,this.classNames=V,this.type=T,this.position=Y,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 k=z.prototype;return k.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},k.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},k.shouldFlip=function(b){if(typeof b!="number")return!1;var T=!1;return this.position==="auto"?T=!window.matchMedia("(min-height: "+(b+1)+"px)").matches:this.position==="top"&&(T=!0),T},k.setActiveDescendant=function(b){this.element.setAttribute("aria-activedescendant",b)},k.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},k.open=function(b){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(b)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},k.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)},k.focus=function(){this.isFocussed||this.element.focus()},k.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},k.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},k.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===Ie&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},k.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===Ie&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},k.wrap=function(b){N(b,this.element)},k.unwrap=function(b){this.element.parentNode.insertBefore(b,this.element),this.element.parentNode.removeChild(this.element)},k.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},k.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},k._onFocus=function(){this.isFocussed=!0},k._onBlur=function(){this.isFocussed=!1},z}();function _n(z,k){for(var _=0;_<k.length;_++){var b=k[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(z,b.key,b)}}function Ht(z,k,_){return k&&_n(z.prototype,k),_&&_n(z,_),z}var ar=function(){function z(_){var b=_.element,T=_.type,V=_.classNames,Y=_.preventPaste;this.element=b,this.type=T,this.classNames=V,this.preventPaste=Y,this.isFocussed=this.element===document.activeElement,this.isDisabled=b.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var k=z.prototype;return k.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},k.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},k.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},k.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},k.focus=function(){this.isFocussed||this.element.focus()},k.blur=function(){this.isFocussed&&this.element.blur()},k.clear=function(b){return b===void 0&&(b=!0),this.element.value&&(this.element.value=""),b&&this.setWidth(),this},k.setWidth=function(){var b=this.element,T=b.style,V=b.value,Y=b.placeholder;T.minWidth=Y.length+1+"ch",T.width=V.length+1+"ch"},k.setActiveDescendant=function(b){this.element.setAttribute("aria-activedescendant",b)},k.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},k._onInput=function(){this.type!==Ie&&this.setWidth()},k._onPaste=function(b){this.preventPaste&&b.preventDefault()},k._onFocus=function(){this.isFocussed=!0},k._onBlur=function(){this.isFocussed=!1},Ht(z,[{key:"placeholder",set:function(b){this.element.placeholder=b}},{key:"value",get:function(){return Mt(this.element.value)},set:function(b){this.element.value=b}}]),z}(),ht=function(){function z(_){var b=_.element;this.element=b,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var k=z.prototype;return k.clear=function(){this.element.innerHTML=""},k.append=function(b){this.element.appendChild(b)},k.getChild=function(b){return this.element.querySelector(b)},k.hasChildren=function(){return this.element.hasChildNodes()},k.scrollToTop=function(){this.element.scrollTop=0},k.scrollToChildElement=function(b,T){var V=this;if(b){var Y=this.element.offsetHeight,X=this.element.scrollTop+Y,le=b.offsetHeight,he=b.offsetTop+le,Me=T>0?this.element.scrollTop+he-X:b.offsetTop;activeWindow.requestAnimationFrame(function(){V._animateScroll(Me,T)})}},k._scrollDown=function(b,T,V){var Y=(V-b)/T,X=Y>1?Y:1;this.element.scrollTop=b+X},k._scrollUp=function(b,T,V){var Y=(b-V)/T,X=Y>1?Y:1;this.element.scrollTop=b-X},k._animateScroll=function(b,T){var V=this,Y=Dt,X=this.element.scrollTop,le=!1;T>0?(this._scrollDown(X,Y,b),X<b&&(le=!0)):(this._scrollUp(X,Y,b),X>b&&(le=!0)),le&&activeWindow.requestAnimationFrame(function(){V._animateScroll(b,T)})},z}();function St(z,k){for(var _=0;_<k.length;_++){var b=k[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(z,b.key,b)}}function L(z,k,_){return k&&St(z.prototype,k),_&&St(z,_),z}var K=function(){function z(_){var b=_.element,T=_.classNames;if(this.element=b,this.classNames=T,!(b instanceof HTMLInputElement)&&!(b instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var k=z.prototype;return k.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var b=this.element.getAttribute("style");b&&this.element.setAttribute("data-choice-orig-style",b),this.element.setAttribute("data-choice","active")},k.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var b=this.element.getAttribute("data-choice-orig-style");b?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",b)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},k.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},k.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},k.triggerEvent=function(b,T){Tt(this.element,b,T)},L(z,[{key:"isActive",get:function(){return this.element.dataset.choice==="active"}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(b){this.element.value=b}}]),z}();function ee(z,k){for(var _=0;_<k.length;_++){var b=k[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(z,b.key,b)}}function ue(z,k,_){return k&&ee(z.prototype,k),_&&ee(z,_),z}function de(z,k){z.prototype=Object.create(k.prototype),z.prototype.constructor=z,z.__proto__=k}var ve=function(z){de(k,z);function k(_){var b,T=_.element,V=_.classNames,Y=_.delimiter;return b=z.call(this,{element:T,classNames:V})||this,b.delimiter=Y,b}return ue(k,[{key:"value",get:function(){return this.element.value},set:function(b){var T=b.map(function(Y){var X=Y.value;return X}),V=T.join(this.delimiter);this.element.setAttribute("value",V),this.element.value=V}}]),k}(K);function ge(z,k){for(var _=0;_<k.length;_++){var b=k[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(z,b.key,b)}}function M(z,k,_){return k&&ge(z.prototype,k),_&&ge(z,_),z}function H(z,k){z.prototype=Object.create(k.prototype),z.prototype.constructor=z,z.__proto__=k}var q=function(z){H(k,z);function k(b){var T,V=b.element,Y=b.classNames,X=b.template;return T=z.call(this,{element:V,classNames:Y})||this,T.template=X,T}var _=k.prototype;return _.appendDocFragment=function(T){this.element.innerHTML="",this.element.appendChild(T)},M(k,[{key:"placeholderOption",get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(T){var V=this,Y=document.createDocumentFragment(),X=function(he){var Me=V.template(he);Y.appendChild(Me)};T.forEach(function(le){return X(le)}),this.appendDocFragment(Y)}}]),k}(K),ie={containerOuter:function(k,_,b,T,V,Y){var X=k.containerOuter,le=Object.assign(document.createElement("div"),{className:X});return le.dataset.type=Y,_&&(le.dir=_),T&&(le.tabIndex=0),b&&(le.setAttribute("role",V?"combobox":"listbox"),V&&le.setAttribute("aria-autocomplete","list")),le.setAttribute("aria-haspopup","true"),le.setAttribute("aria-expanded","false"),le},containerInner:function(k){var _=k.containerInner;return Object.assign(document.createElement("div"),{className:_})},itemList:function(k,_){var b=k.list,T=k.listSingle,V=k.listItems;return Object.assign(document.createElement("div"),{className:b+" "+(_?T:V)})},placeholder:function(k,_){var b=k.placeholder;return Object.assign(document.createElement("div"),{className:b,innerHTML:_})},item:function(k,_,b){var T=k.item,V=k.button,Y=k.highlightedState,X=k.itemSelectable,le=k.placeholder,he=_.id,Me=_.value,Ve=_.label,Le=_.customProperties,Qe=_.active,ot=_.disabled,qe=_.highlighted,yt=_.placeholder,st=Object.assign(document.createElement("div"),{className:T,innerHTML:Ve});if(Object.assign(st.dataset,{item:"",id:he,value:Me,customProperties:Le}),Qe&&st.setAttribute("aria-selected","true"),ot&&st.setAttribute("aria-disabled","true"),yt&&st.classList.add(le),st.classList.add(qe?Y:X),b){ot&&st.classList.remove(X),st.dataset.deletable="";var lt="Remove item",qt=Object.assign(document.createElement("button"),{type:"button",className:V,innerHTML:lt});qt.setAttribute("aria-label",lt+": '"+Me+"'"),qt.dataset.button="",st.appendChild(qt)}return st},choiceList:function(k,_){var b=k.list,T=Object.assign(document.createElement("div"),{className:b});return _||T.setAttribute("aria-multiselectable","true"),T.setAttribute("role","listbox"),T},choiceGroup:function(k,_){var b=k.group,T=k.groupHeading,V=k.itemDisabled,Y=_.id,X=_.value,le=_.disabled,he=Object.assign(document.createElement("div"),{className:b+" "+(le?V:"")});return he.setAttribute("role","group"),Object.assign(he.dataset,{group:"",id:Y,value:X}),le&&he.setAttribute("aria-disabled","true"),he.appendChild(Object.assign(document.createElement("div"),{className:T,innerHTML:X})),he},choice:function(k,_,b){var T=k.item,V=k.itemChoice,Y=k.itemSelectable,X=k.selectedState,le=k.itemDisabled,he=k.placeholder,Me=_.id,Ve=_.value,Le=_.label,Qe=_.groupId,ot=_.elementId,qe=_.disabled,yt=_.selected,st=_.placeholder,lt=Object.assign(document.createElement("div"),{id:ot,innerHTML:Le,className:T+" "+V});return yt&<.classList.add(X),st&<.classList.add(he),lt.setAttribute("role",Qe>0?"treeitem":"option"),Object.assign(lt.dataset,{choice:"",id:Me,value:Ve,selectText:b}),qe?(lt.classList.add(le),lt.dataset.choiceDisabled="",lt.setAttribute("aria-disabled","true")):(lt.classList.add(Y),lt.dataset.choiceSelectable=""),lt},input:function(k,_){var b=k.input,T=k.inputCloned,V=Object.assign(document.createElement("input"),{type:"text",className:b+" "+T,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return V.setAttribute("role","textbox"),V.setAttribute("aria-autocomplete","list"),V.setAttribute("aria-label",_),V},dropdown:function(k){var _=k.list,b=k.listDropdown,T=document.createElement("div");return T.classList.add(_,b),T.setAttribute("aria-expanded","false"),T},notice:function(k,_,b){var T=k.item,V=k.itemChoice,Y=k.noResults,X=k.noChoices;b===void 0&&(b="");var le=[T,V];return b==="no-choices"?le.push(X):b==="no-results"&&le.push(Y),Object.assign(document.createElement("div"),{innerHTML:_,className:le.join(" ")})},option:function(k){var _=k.label,b=k.value,T=k.customProperties,V=k.active,Y=k.disabled,X=new Option(_,b,!1,V);return T&&(X.dataset.customProperties=T),X.disabled=Y,X}},ye=ie,ce=function(k){var _=k.value,b=k.label,T=k.id,V=k.groupId,Y=k.disabled,X=k.elementId,le=k.customProperties,he=k.placeholder,Me=k.keyCode;return{type:At.ADD_CHOICE,value:_,label:b,id:T,groupId:V,disabled:Y,elementId:X,customProperties:le,placeholder:he,keyCode:Me}},ae=function(k){return{type:At.FILTER_CHOICES,results:k}},Se=function(k){return k===void 0&&(k=!0),{type:At.ACTIVATE_CHOICES,active:k}},nt=function(){return{type:At.CLEAR_CHOICES}},Te=function(k){var _=k.value,b=k.label,T=k.id,V=k.choiceId,Y=k.groupId,X=k.customProperties,le=k.placeholder,he=k.keyCode;return{type:At.ADD_ITEM,value:_,label:b,id:T,choiceId:V,groupId:Y,customProperties:X,placeholder:le,keyCode:he}},Ue=function(k,_){return{type:At.REMOVE_ITEM,id:k,choiceId:_}},We=function(k,_){return{type:At.HIGHLIGHT_ITEM,id:k,highlighted:_}},Ft=function(k){var _=k.value,b=k.id,T=k.active,V=k.disabled;return{type:At.ADD_GROUP,value:_,id:b,active:T,disabled:V}},Hn=function(){return{type:"CLEAR_ALL"}},Ot=function(k){return{type:"RESET_TO",state:k}},or=function(k){return{type:"SET_IS_LOADING",isLoading:k}};function sr(z,k){for(var _=0;_<k.length;_++){var b=k[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(z,b.key,b)}}function Yt(z,k,_){return k&&sr(z.prototype,k),_&&sr(z,_),z}var Bn="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Er={},Gr=function(){Yt(z,null,[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return Er},get templates(){return ie}})}}]);function z(_,b){var T=this;_===void 0&&(_="[data-choice]"),b===void 0&&(b={}),this.config=o.a.all([Hr,z.defaults.options,b],{arrayMerge:function(Qe,ot){return[].concat(ot)}});var V=gn(this.config,Hr);V.length&&console.warn("Unknown config option(s) passed",V.join(", "));var Y=typeof _=="string"?document.querySelector(_):_;if(!(Y instanceof HTMLInputElement||Y instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=Y.type===me,this._isSelectOneElement=Y.type===Ie,this._isSelectMultipleElement=Y.type===at,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto"),b.addItemFilter&&typeof b.addItemFilter!="function"){var X=b.addItemFilter instanceof RegExp?b.addItemFilter:new RegExp(b.addItemFilter);this.config.addItemFilter=X.test.bind(X)}if(this._isTextElement?this.passedElement=new ve({element:Y,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new q({element:Y,classNames:this.config.classNames,template:function(Qe){return T._templates.option(Qe)}}),this.initialised=!1,this._store=new Rt,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=U(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var le=window.getComputedStyle(this.passedElement.element),he=le.direction,Me=window.getComputedStyle(document.documentElement),Ve=Me.direction;he!==Ve&&(this._direction=he)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach(function(Le){T._presetChoices.push({value:Le.value,label:Le.innerHTML,selected:Le.selected,disabled:Le.disabled||Le.parentNode.disabled,placeholder:Le.value===""||Le.hasAttribute("placeholder"),customProperties:Le.getAttribute("data-custom-properties")})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive){this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),this.initialised=!0;return}this.init()}var k=z.prototype;return k.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=en(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners();var b=!this.config.addItems||this.passedElement.element.hasAttribute("disabled");b&&this.disable(),this.initialised=!0;var T=this.config.callbackOnInit;T&&typeof T=="function"&&T.call(this)}},k.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},k.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},k.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},k.highlightItem=function(b,T){if(T===void 0&&(T=!0),!b)return this;var V=b.id,Y=b.groupId,X=Y===void 0?-1:Y,le=b.value,he=le===void 0?"":le,Me=b.label,Ve=Me===void 0?"":Me,Le=X>=0?this._store.getGroupById(X):null;return this._store.dispatch(We(V,!0)),T&&this.passedElement.triggerEvent(rn.highlightItem,{id:V,value:he,label:Ve,groupValue:Le&&Le.value?Le.value:null}),this},k.unhighlightItem=function(b){if(!b)return this;var T=b.id,V=b.groupId,Y=V===void 0?-1:V,X=b.value,le=X===void 0?"":X,he=b.label,Me=he===void 0?"":he,Ve=Y>=0?this._store.getGroupById(Y):null;return this._store.dispatch(We(T,!1)),this.passedElement.triggerEvent(rn.highlightItem,{id:T,value:le,label:Me,groupValue:Ve&&Ve.value?Ve.value:null}),this},k.highlightAll=function(){var b=this;return this._store.items.forEach(function(T){return b.highlightItem(T)}),this},k.unhighlightAll=function(){var b=this;return this._store.items.forEach(function(T){return b.unhighlightItem(T)}),this},k.removeActiveItemsByValue=function(b){var T=this;return this._store.activeItems.filter(function(V){return V.value===b}).forEach(function(V){return T._removeItem(V)}),this},k.removeActiveItems=function(b){var T=this;return this._store.activeItems.filter(function(V){var Y=V.id;return Y!==b}).forEach(function(V){return T._removeItem(V)}),this},k.removeHighlightedItems=function(b){var T=this;return b===void 0&&(b=!1),this._store.highlightedActiveItems.forEach(function(V){T._removeItem(V),b&&T._triggerChange(V.value)}),this},k.showDropdown=function(b){var T=this;return this.dropdown.isActive?this:(activeWindow.requestAnimationFrame(function(){T.dropdown.show(),T.containerOuter.open(T.dropdown.distanceFromTopWindow),!b&&T._canSearch&&T.input.focus(),T.passedElement.triggerEvent(rn.showDropdown,{})}),this)},k.hideDropdown=function(b){var T=this;return this.dropdown.isActive?(activeWindow.requestAnimationFrame(function(){T.dropdown.hide(),T.containerOuter.close(),!b&&T._canSearch&&(T.input.removeActiveDescendant(),T.input.blur()),T.passedElement.triggerEvent(rn.hideDropdown,{})}),this):this},k.getValue=function(b){b===void 0&&(b=!1);var T=this._store.activeItems.reduce(function(V,Y){var X=b?Y.value:Y;return V.push(X),V},[]);return this._isSelectOneElement?T[0]:T},k.setValue=function(b){var T=this;return this.initialised?(b.forEach(function(V){return T._setChoiceOrItem(V)}),this):this},k.setChoiceByValue=function(b){var T=this;if(!this.initialised||this._isTextElement)return this;var V=Array.isArray(b)?b:[b];return V.forEach(function(Y){return T._findAndSelectChoiceByValue(Y)}),this},k.setChoices=function(b,T,V,Y){var X=this;if(b===void 0&&(b=[]),T===void 0&&(T="value"),V===void 0&&(V="label"),Y===void 0&&(Y=!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 T!="string"||!T)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(Y&&this.clearChoices(),typeof b=="function"){var le=b(this);if(typeof Promise=="function"&&le instanceof Promise)return new Promise(function(he){return activeWindow.requestAnimationFrame(he)}).then(function(){return X._handleLoadingState(!0)}).then(function(){return le}).then(function(he){return X.setChoices(he,T,V,Y)}).catch(function(he){X.config.silent||console.error(he)}).then(function(){return X._handleLoadingState(!1)}).then(function(){return X});if(!Array.isArray(le))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof le);return this.setChoices(le,T,V,!1)}if(!Array.isArray(b))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(),b.forEach(function(he){he.choices?X._addGroup({id:parseInt(he.id,10)||null,group:he,valueKey:T,labelKey:V}):X._addChoice({value:he[T],label:he[V],isSelected:he.selected,isDisabled:he.disabled,customProperties:he.customProperties,placeholder:he.placeholder})}),this._stopLoading(),this},k.clearChoices=function(){return this._store.dispatch(nt()),this},k.clearStore=function(){return this._store.dispatch(Hn()),this},k.clearInput=function(){var b=!this._isSelectOneElement;return this.input.clear(b),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(Se(!0))),this},k._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var b=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,T=this._isSelectElement,V=this._currentState.items!==this._prevState.items;b&&(T&&this._renderChoices(),V&&this._renderItems(),this._prevState=this._currentState)}},k._renderChoices=function(){var b=this,T=this._store,V=T.activeGroups,Y=T.activeChoices,X=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&activeWindow.requestAnimationFrame(function(){return b.choiceList.scrollToTop()}),V.length>=1&&!this._isSearching){var le=Y.filter(function(Qe){return Qe.placeholder===!0&&Qe.groupId===-1});le.length>=1&&(X=this._createChoicesFragment(le,X)),X=this._createGroupsFragment(V,Y,X)}else Y.length>=1&&(X=this._createChoicesFragment(Y,X));if(X.childNodes&&X.childNodes.length>0){var he=this._store.activeItems,Me=this._canAddItem(he,this.input.value);Me.response?(this.choiceList.append(X),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",Me.notice))}else{var Ve,Le;this._isSearching?(Le=typeof this.config.noResultsText=="function"?this.config.noResultsText():this.config.noResultsText,Ve=this._getTemplate("notice",Le,"no-results")):(Le=typeof this.config.noChoicesText=="function"?this.config.noChoicesText():this.config.noChoicesText,Ve=this._getTemplate("notice",Le,"no-choices")),this.choiceList.append(Ve)}},k._renderItems=function(){var b=this._store.activeItems||[];this.itemList.clear();var T=this._createItemsFragment(b);T.childNodes&&this.itemList.append(T)},k._createGroupsFragment=function(b,T,V){var Y=this;V===void 0&&(V=document.createDocumentFragment());var X=function(he){return T.filter(function(Me){return Y._isSelectOneElement?Me.groupId===he.id:Me.groupId===he.id&&(Y.config.renderSelectedChoices==="always"||!Me.selected)})};return this.config.shouldSort&&b.sort(this.config.sorter),b.forEach(function(le){var he=X(le);if(he.length>=1){var Me=Y._getTemplate("choiceGroup",le);V.appendChild(Me),Y._createChoicesFragment(he,V,!0)}}),V},k._createChoicesFragment=function(b,T,V){var Y=this;T===void 0&&(T=document.createDocumentFragment()),V===void 0&&(V=!1);var X=this.config,le=X.renderSelectedChoices,he=X.searchResultLimit,Me=X.renderChoiceLimit,Ve=this._isSearching?Wt:this.config.sorter,Le=function(Vn){var ki=le==="auto"?Y._isSelectOneElement||!Vn.selected:!0;if(ki){var kr=Y._getTemplate("choice",Vn,Y.config.itemSelectText);T.appendChild(kr)}},Qe=b;le==="auto"&&!this._isSelectOneElement&&(Qe=b.filter(function(On){return!On.selected}));var ot=Qe.reduce(function(On,Vn){return Vn.placeholder?On.placeholderChoices.push(Vn):On.normalChoices.push(Vn),On},{placeholderChoices:[],normalChoices:[]}),qe=ot.placeholderChoices,yt=ot.normalChoices;(this.config.shouldSort||this._isSearching)&&yt.sort(Ve);var st=Qe.length,lt=this._isSelectOneElement?[].concat(qe,yt):yt;this._isSearching?st=he:Me&&Me>0&&!V&&(st=Me);for(var qt=0;qt<st;qt+=1)lt[qt]&&Le(lt[qt]);return T},k._createItemsFragment=function(b,T){var V=this;T===void 0&&(T=document.createDocumentFragment());var Y=this.config,X=Y.shouldSortItems,le=Y.sorter,he=Y.removeItemButton;X&&!this._isSelectOneElement&&b.sort(le),this._isTextElement?this.passedElement.value=b:this.passedElement.options=b;var Me=function(Le){var Qe=V._getTemplate("item",Le,he);T.appendChild(Qe)};return b.forEach(Me),T},k._triggerChange=function(b){b!=null&&this.passedElement.triggerEvent(rn.change,{value:b})},k._selectPlaceholderChoice=function(){var b=this._store.placeholderChoice;b&&(this._addItem({value:b.value,label:b.label,choiceId:b.id,groupId:b.groupId,placeholder:b.placeholder}),this._triggerChange(b.value))},k._handleButtonAction=function(b,T){if(!(!b||!T||!this.config.removeItems||!this.config.removeItemButton)){var V=T.parentNode.getAttribute("data-id"),Y=b.find(function(X){return X.id===parseInt(V,10)});this._removeItem(Y),this._triggerChange(Y.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},k._handleItemAction=function(b,T,V){var Y=this;if(V===void 0&&(V=!1),!(!b||!T||!this.config.removeItems||this._isSelectOneElement)){var X=T.getAttribute("data-id");b.forEach(function(le){le.id===parseInt(X,10)&&!le.highlighted?Y.highlightItem(le):!V&&le.highlighted&&Y.unhighlightItem(le)}),this.input.focus()}},k._handleChoiceAction=function(b,T){if(!(!b||!T)){var V=T.dataset.id,Y=this._store.getChoiceById(V);if(Y){var X=b[0]&&b[0].keyCode?b[0].keyCode:null,le=this.dropdown.isActive;if(Y.keyCode=X,this.passedElement.triggerEvent(rn.choice,{choice:Y}),!Y.selected&&!Y.disabled){var he=this._canAddItem(b,Y.value);he.response&&(this._addItem({value:Y.value,label:Y.label,choiceId:Y.id,groupId:Y.groupId,customProperties:Y.customProperties,placeholder:Y.placeholder,keyCode:Y.keyCode}),this._triggerChange(Y.value))}this.clearInput(),le&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},k._handleBackspace=function(b){if(!(!this.config.removeItems||!b)){var T=b[b.length-1],V=b.some(function(Y){return Y.highlighted});this.config.editItems&&!V&&T?(this.input.value=T.value,this.input.setWidth(),this._removeItem(T),this._triggerChange(T.value)):(V||this.highlightItem(T,!1),this.removeHighlightedItems(!0))}},k._startLoading=function(){this._store.dispatch(or(!0))},k._stopLoading=function(){this._store.dispatch(or(!1))},k._handleLoadingState=function(b){b===void 0&&(b=!0);var T=this.itemList.getChild("."+this.config.classNames.placeholder);b?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?T?T.innerHTML=this.config.loadingText:(T=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(T)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?T.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},k._handleSearch=function(b){if(!(!b||!this.input.isFocussed)){var T=this._store.choices,V=this.config,Y=V.searchFloor,X=V.searchChoices,le=T.some(function(Me){return!Me.active});if(b&&b.length>=Y){var he=X?this._searchChoices(b):0;this.passedElement.triggerEvent(rn.search,{value:b,resultCount:he})}else le&&(this._isSearching=!1,this._store.dispatch(Se(!0)))}},k._canAddItem=function(b,T){var V=!0,Y=typeof this.config.addItemText=="function"?this.config.addItemText(T):this.config.addItemText;if(!this._isSelectOneElement){var X=Jt(b,T);this.config.maxItemCount>0&&this.config.maxItemCount<=b.length&&(V=!1,Y=typeof this.config.maxItemText=="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&X&&V&&(V=!1,Y=typeof this.config.uniqueItemText=="function"?this.config.uniqueItemText(T):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&V&&typeof this.config.addItemFilter=="function"&&!this.config.addItemFilter(T)&&(V=!1,Y=typeof this.config.customAddItemText=="function"?this.config.customAddItemText(T):this.config.customAddItemText)}return{response:V,notice:Y}},k._searchChoices=function(b){var T=typeof b=="string"?b.trim():b,V=typeof this._currentValue=="string"?this._currentValue.trim():this._currentValue;if(T.length<1&&T===V+" ")return 0;var Y=this._store.searchableChoices,X=T,le=[].concat(this.config.searchFields),he=Object.assign(this.config.fuseOptions,{keys:le}),Me=new i.a(Y,he),Ve=Me.search(X);return this._currentValue=T,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(ae(Ve)),Ve.length},k._addEventListeners=function(){var b=document,T=b.documentElement;T.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),T.addEventListener("click",this._onClick,{passive:!0}),T.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()},k._removeEventListeners=function(){var b=document,T=b.documentElement;T.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),T.removeEventListener("click",this._onClick),T.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()},k._onKeyDown=function(b){var T,V=b.target,Y=b.keyCode,X=b.ctrlKey,le=b.metaKey,he=this._store.activeItems,Me=this.input.isFocussed,Ve=this.dropdown.isActive,Le=this.itemList.hasChildren(),Qe=String.fromCharCode(Y),ot=Z.BACK_KEY,qe=Z.DELETE_KEY,yt=Z.ENTER_KEY,st=Z.A_KEY,lt=Z.ESC_KEY,qt=Z.UP_KEY,On=Z.DOWN_KEY,Vn=Z.PAGE_UP_KEY,ki=Z.PAGE_DOWN_KEY,kr=X||le;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(Qe)&&this.showDropdown();var Jr=(T={},T[st]=this._onAKey,T[yt]=this._onEnterKey,T[lt]=this._onEscapeKey,T[qt]=this._onDirectionKey,T[Vn]=this._onDirectionKey,T[On]=this._onDirectionKey,T[ki]=this._onDirectionKey,T[qe]=this._onDeleteKey,T[ot]=this._onDeleteKey,T);Jr[Y]&&Jr[Y]({event:b,target:V,keyCode:Y,metaKey:le,activeItems:he,hasFocusedInput:Me,hasActiveDropdown:Ve,hasItems:Le,hasCtrlDownKeyPressed:kr})},k._onKeyUp=function(b){var T=b.target,V=b.keyCode,Y=this.input.value,X=this._store.activeItems,le=this._canAddItem(X,Y),he=Z.BACK_KEY,Me=Z.DELETE_KEY;if(this._isTextElement){var Ve=le.notice&&Y;if(Ve){var Le=this._getTemplate("notice",le.notice);this.dropdown.element.innerHTML=Le.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0)}else{var Qe=(V===he||V===Me)&&!T.value,ot=!this._isTextElement&&this._isSearching,qe=this._canSearch&&le.response;Qe&&ot?(this._isSearching=!1,this._store.dispatch(Se(!0))):qe&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},k._onAKey=function(b){var T=b.hasItems,V=b.hasCtrlDownKeyPressed;if(V&&T){this._canSearch=!1;var Y=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;Y&&this.highlightAll()}},k._onEnterKey=function(b){var T=b.event,V=b.target,Y=b.activeItems,X=b.hasActiveDropdown,le=Z.ENTER_KEY,he=V.hasAttribute("data-button");if(this._isTextElement&&V.value){var Me=this.input.value,Ve=this._canAddItem(Y,Me);Ve.response&&(this.hideDropdown(!0),this._addItem({value:Me}),this._triggerChange(Me),this.clearInput())}if(he&&(this._handleButtonAction(Y,V),T.preventDefault()),X){var Le=this.dropdown.getChild("."+this.config.classNames.highlightedState);Le&&(Y[0]&&(Y[0].keyCode=le),this._handleChoiceAction(Y,Le)),T.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),T.preventDefault())},k._onEscapeKey=function(b){var T=b.hasActiveDropdown;T&&(this.hideDropdown(!0),this.containerOuter.focus())},k._onDirectionKey=function(b){var T=b.event,V=b.hasActiveDropdown,Y=b.keyCode,X=b.metaKey,le=Z.DOWN_KEY,he=Z.PAGE_UP_KEY,Me=Z.PAGE_DOWN_KEY;if(V||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var Ve=Y===le||Y===Me?1:-1,Le=X||Y===Me||Y===he,Qe="[data-choice-selectable]",ot;if(Le)Ve>0?ot=this.dropdown.element.querySelector(Qe+":last-of-type"):ot=this.dropdown.element.querySelector(Qe);else{var qe=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);qe?ot=Ze(qe,Qe,Ve):ot=this.dropdown.element.querySelector(Qe)}ot&&(It(ot,this.choiceList.element,Ve)||this.choiceList.scrollToChildElement(ot,Ve),this._highlightChoice(ot)),T.preventDefault()}},k._onDeleteKey=function(b){var T=b.event,V=b.target,Y=b.hasFocusedInput,X=b.activeItems;Y&&!V.value&&!this._isSelectOneElement&&(this._handleBackspace(X),T.preventDefault())},k._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},k._onTouchEnd=function(b){var T=b||b.touches[0],V=T.target,Y=this._wasTap&&this.containerOuter.element.contains(V);if(Y){var X=V===this.containerOuter.element||V===this.containerInner.element;X&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),b.stopPropagation()}this._wasTap=!0},k._onMouseDown=function(b){var T=b.target;if(T instanceof HTMLElement){if(Bn&&this.choiceList.element.contains(T)){var V=this.choiceList.element.firstElementChild,Y=this._direction==="ltr"?b.offsetX>=V.offsetWidth:b.offsetX<V.offsetLeft;this._isScrollingOnIe=Y}if(T!==this.input.element){var X=T.closest("[data-button],[data-item],[data-choice]");if(X instanceof HTMLElement){var le=b.shiftKey,he=this._store.activeItems,Me=X.dataset;"button"in Me?this._handleButtonAction(he,X):"item"in Me?this._handleItemAction(he,X,le):"choice"in Me&&this._handleChoiceAction(he,X)}b.preventDefault()}}},k._onMouseOver=function(b){var T=b.target;T instanceof HTMLElement&&"choice"in T.dataset&&this._highlightChoice(T)},k._onClick=function(b){var T=b.target,V=this.containerOuter.element.contains(T);if(V)!this.dropdown.isActive&&!this.containerOuter.isDisabled?this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):this._isSelectOneElement&&T!==this.input.element&&!this.dropdown.element.contains(T)&&this.hideDropdown();else{var Y=this._store.highlightedActiveItems.length>0;Y&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0)}},k._onFocus=function(b){var T=this,V,Y=b.target,X=this.containerOuter.element.contains(Y);if(X){var le=(V={},V[me]=function(){Y===T.input.element&&T.containerOuter.addFocusState()},V[Ie]=function(){T.containerOuter.addFocusState(),Y===T.input.element&&T.showDropdown(!0)},V[at]=function(){Y===T.input.element&&(T.showDropdown(!0),T.containerOuter.addFocusState())},V);le[this.passedElement.element.type]()}},k._onBlur=function(b){var T=this,V=b.target,Y=this.containerOuter.element.contains(V);if(Y&&!this._isScrollingOnIe){var X,le=this._store.activeItems,he=le.some(function(Ve){return Ve.highlighted}),Me=(X={},X[me]=function(){V===T.input.element&&(T.containerOuter.removeFocusState(),he&&T.unhighlightAll(),T.hideDropdown(!0))},X[Ie]=function(){T.containerOuter.removeFocusState(),(V===T.input.element||V===T.containerOuter.element&&!T._canSearch)&&T.hideDropdown(!0)},X[at]=function(){V===T.input.element&&(T.containerOuter.removeFocusState(),T.hideDropdown(!0),he&&T.unhighlightAll())},X);Me[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},k._onFormReset=function(){this._store.dispatch(Ot(this._initialState))},k._highlightChoice=function(b){var T=this;b===void 0&&(b=null);var V=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(V.length){var Y=b,X=Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState));X.forEach(function(le){le.classList.remove(T.config.classNames.highlightedState),le.setAttribute("aria-selected","false")}),Y?this._highlightPosition=V.indexOf(Y):(V.length>this._highlightPosition?Y=V[this._highlightPosition]:Y=V[V.length-1],Y||(Y=V[0])),Y.classList.add(this.config.classNames.highlightedState),Y.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(rn.highlightChoice,{el:Y}),this.dropdown.isActive&&(this.input.setActiveDescendant(Y.id),this.containerOuter.setActiveDescendant(Y.id))}},k._addItem=function(b){var T=b.value,V=b.label,Y=V===void 0?null:V,X=b.choiceId,le=X===void 0?-1:X,he=b.groupId,Me=he===void 0?-1:he,Ve=b.customProperties,Le=Ve===void 0?null:Ve,Qe=b.placeholder,ot=Qe===void 0?!1:Qe,qe=b.keyCode,yt=qe===void 0?null:qe,st=typeof T=="string"?T.trim():T,lt=yt,qt=Le,On=this._store.items,Vn=Y||st,ki=le||-1,kr=Me>=0?this._store.getGroupById(Me):null,Jr=On?On.length+1:1;return this.config.prependValue&&(st=this.config.prependValue+st.toString()),this.config.appendValue&&(st+=this.config.appendValue.toString()),this._store.dispatch(Te({value:st,label:Vn,id:Jr,choiceId:ki,groupId:Me,customProperties:Le,placeholder:ot,keyCode:lt})),this._isSelectOneElement&&this.removeActiveItems(Jr),this.passedElement.triggerEvent(rn.addItem,{id:Jr,value:st,label:Vn,customProperties:qt,groupValue:kr&&kr.value?kr.value:void 0,keyCode:lt}),this},k._removeItem=function(b){if(!b||!it("Object",b))return this;var T=b.id,V=b.value,Y=b.label,X=b.choiceId,le=b.groupId,he=le>=0?this._store.getGroupById(le):null;return this._store.dispatch(Ue(T,X)),he&&he.value?this.passedElement.triggerEvent(rn.removeItem,{id:T,value:V,label:Y,groupValue:he.value}):this.passedElement.triggerEvent(rn.removeItem,{id:T,value:V,label:Y}),this},k._addChoice=function(b){var T=b.value,V=b.label,Y=V===void 0?null:V,X=b.isSelected,le=X===void 0?!1:X,he=b.isDisabled,Me=he===void 0?!1:he,Ve=b.groupId,Le=Ve===void 0?-1:Ve,Qe=b.customProperties,ot=Qe===void 0?null:Qe,qe=b.placeholder,yt=qe===void 0?!1:qe,st=b.keyCode,lt=st===void 0?null:st;if(!(typeof T=="undefined"||T===null)){var qt=this._store.choices,On=Y||T,Vn=qt?qt.length+1:1,ki=this._baseId+"-"+this._idNames.itemChoice+"-"+Vn;this._store.dispatch(ce({id:Vn,groupId:Le,elementId:ki,value:T,label:On,disabled:Me,customProperties:ot,placeholder:yt,keyCode:lt})),le&&this._addItem({value:T,label:On,choiceId:Vn,customProperties:ot,placeholder:yt,keyCode:lt})}},k._addGroup=function(b){var T=this,V=b.group,Y=b.id,X=b.valueKey,le=X===void 0?"value":X,he=b.labelKey,Me=he===void 0?"label":he,Ve=it("Object",V)?V.choices:Array.from(V.getElementsByTagName("OPTION")),Le=Y||Math.floor(new Date().valueOf()*Math.random()),Qe=V.disabled?V.disabled:!1;if(Ve){this._store.dispatch(Ft({value:V.label,id:Le,active:!0,disabled:Qe}));var ot=function(yt){var st=yt.disabled||yt.parentNode&&yt.parentNode.disabled;T._addChoice({value:yt[le],label:it("Object",yt)?yt[Me]:yt.innerHTML,isSelected:yt.selected,isDisabled:st,groupId:Le,customProperties:yt.customProperties,placeholder:yt.placeholder})};Ve.forEach(ot)}else this._store.dispatch(Ft({value:V.label,id:V.id,active:!1,disabled:V.disabled}))},k._getTemplate=function(b){var T;if(!b)return null;for(var V=this.config.classNames,Y=arguments.length,X=new Array(Y>1?Y-1:0),le=1;le<Y;le++)X[le-1]=arguments[le];return(T=this._templates[b]).call.apply(T,[this,V].concat(X))},k._createTemplates=function(){var b=this.config.callbackOnCreateTemplates,T={};b&&typeof b=="function"&&(T=b.call(this,jt)),this._templates=o()(ie,T)},k._createElements=function(){this.containerOuter=new Cn({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new Cn({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new ar({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new ht({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new ht({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new Rr({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},k._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},k._addPredefinedGroups=function(b){var T=this,V=this.passedElement.placeholderOption;V&&V.parentNode.tagName==="SELECT"&&this._addChoice({value:V.value,label:V.innerHTML,isSelected:V.selected,isDisabled:V.disabled,placeholder:!0}),b.forEach(function(Y){return T._addGroup({group:Y,id:Y.id||null})})},k._addPredefinedChoices=function(b){var T=this;this.config.shouldSort&&b.sort(this.config.sorter);var V=b.some(function(X){return X.selected}),Y=b.findIndex(function(X){return X.disabled===void 0||!X.disabled});b.forEach(function(X,le){var he=X.value,Me=X.label,Ve=X.customProperties,Le=X.placeholder;if(T._isSelectElement)if(X.choices)T._addGroup({group:X,id:X.id||null});else{var Qe=T._isSelectOneElement&&!V&&le===Y,ot=Qe?!0:X.selected,qe=X.disabled;T._addChoice({value:he,label:Me,isSelected:ot,isDisabled:qe,customProperties:Ve,placeholder:Le})}else T._addChoice({value:he,label:Me,isSelected:X.selected,isDisabled:X.disabled,customProperties:Ve,placeholder:Le})})},k._addPredefinedItems=function(b){var T=this;b.forEach(function(V){typeof V=="object"&&V.value&&T._addItem({value:V.value,label:V.label,choiceId:V.id,customProperties:V.customProperties,placeholder:V.placeholder}),typeof V=="string"&&T._addItem({value:V})})},k._setChoiceOrItem=function(b){var T=this,V=Je(b).toLowerCase(),Y={object:function(){b.value&&(T._isTextElement?T._addItem({value:b.value,label:b.label,choiceId:b.id,customProperties:b.customProperties,placeholder:b.placeholder}):T._addChoice({value:b.value,label:b.label,isSelected:!0,isDisabled:!1,customProperties:b.customProperties,placeholder:b.placeholder}))},string:function(){T._isTextElement?T._addItem({value:b}):T._addChoice({value:b,label:b,isSelected:!0,isDisabled:!1})}};Y[V]()},k._findAndSelectChoiceByValue=function(b){var T=this,V=this._store.choices,Y=V.find(function(X){return T.config.valueComparer(X.value,b)});Y&&!Y.selected&&this._addItem({value:Y.value,label:Y.label,choiceId:Y.id,groupId:Y.groupId,customProperties:Y.customProperties,placeholder:Y.placeholder,keyCode:Y.keyCode})},k._generatePlaceholderValue=function(){if(this._isSelectElement){var b=this.passedElement.placeholderOption;return b?b.text:!1}var T=this.config,V=T.placeholder,Y=T.placeholderValue,X=this.passedElement.element.dataset;if(V){if(Y)return Y;if(X.placeholder)return X.placeholder}return!1},z}(),tu=t.default=Gr}]).default})});var gC=wn((FZ,pC)=>{var IH=typeof Element!="undefined",AH=typeof Map=="function",OH=typeof Set=="function",LH=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function jd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!jd(e[n],t[n]))return!1;return!0}var a;if(AH&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!jd(n.value[1],t.get(n.value[0])))return!1;return!0}if(OH&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(LH&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(IH&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!jd(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}pC.exports=function(t,r){try{return jd(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}});var S_=wn((Gne,Dy)=>{(function(){var e;typeof Dy!="undefined"?e=Dy.exports=n:e=function(){return this||(0,eval)("this")}(),e.format=n,e.vsprintf=r,typeof console!="undefined"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}function r(i,a){return n.apply(null,[i].concat(a))}function n(i){for(var a=1,o=[].slice.call(arguments),s=0,u=i.length,l="",c,d=!1,m,h,g=!1,y,v=function(){return o[a++]},D=function(){for(var I="";/\d/.test(i[s]);)I+=i[s++],c=i[s];return I.length>0?parseInt(I):null};s<u;++s)if(c=i[s],d)switch(d=!1,c=="."?(g=!1,c=i[++s]):c=="0"&&i[s+1]=="."?(g=!0,s+=2,c=i[s]):g=!0,y=D(),c){case"b":l+=parseInt(v(),10).toString(2);break;case"c":m=v(),typeof m=="string"||m instanceof String?l+=m:l+=String.fromCharCode(parseInt(m,10));break;case"d":l+=parseInt(v(),10);break;case"f":h=String(parseFloat(v()).toFixed(y||6)),l+=g?h:h.replace(/^0/,"");break;case"j":l+=JSON.stringify(v());break;case"o":l+="0"+parseInt(v(),10).toString(8);break;case"s":l+=v();break;case"x":l+="0x"+parseInt(v(),10).toString(16);break;case"X":l+="0x"+parseInt(v(),10).toString(16).toUpperCase();break;default:l+=c;break}else c==="%"?d=!0:l+=c;return l}})()});var HB={};Rf(HB,{default:()=>wf});module.exports=ov(HB);function fu(e,t){let r=Object.keys(t).map(n=>mF(e,n,t[n]));return r.length===1?r[0]:function(){r.forEach(n=>n())}}function mF(e,t,r){let n=e[t],i=e.hasOwnProperty(t),a=r(n);return n&&Object.setPrototypeOf(a,n),Object.setPrototypeOf(o,a),e[t]=o,s;function o(...u){return a===n&&e[t]===o&&s(),a.apply(this,u)}function s(){e[t]===o&&(i?e[t]=n:delete e[t]),a!==n&&(a=n,Object.setPrototypeOf(o,n||Function))}}var Rn=require("obsidian");var Ws,Xe,cv,pF,Va,sv,dv,Hf,Wf,Bf,Vf,fv,Us={},hv=[],gF=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pu=Array.isArray;function Ii(e,t){for(var r in t)e[r]=t[r];return e}function mv(e){var t=e.parentNode;t&&t.removeChild(e)}function xr(e,t,r){var n,i,a,o={};for(a in t)a=="key"?n=t[a]:a=="ref"?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?Ws.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return $s(e,o,n,i,null)}function $s(e,t,r,n,i){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i==null?++cv:i,__i:-1,__u:0};return i==null&&Xe.vnode!=null&&Xe.vnode(a),a}function Yf(){return{current:null}}function ct(e){return e.children}function Br(e,t){this.props=e,this.context=t}function $a(e,t){if(t==null)return e.__?$a(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?$a(e):null}function pv(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return pv(e)}}function $f(e){(!e.__d&&(e.__d=!0)&&Va.push(e)&&!mu.__r++||sv!==Xe.debounceRendering)&&((sv=Xe.debounceRendering)||dv)(mu)}function mu(){var e,t,r,n,i,a,o,s;for(Va.sort(Hf);e=Va.shift();)e.__d&&(t=Va.length,n=void 0,a=(i=(r=e).__v).__e,o=[],s=[],r.__P&&((n=Ii({},i)).__v=i.__v+1,Xe.vnode&&Xe.vnode(n),zf(r.__P,n,i,r.__n,r.__P.ownerSVGElement!==void 0,32&i.__u?[a]:null,o,a==null?$a(i):a,!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,vv(o,n,s),n.__e!=a&&pv(n)),Va.length>t&&Va.sort(Hf));mu.__r=0}function gv(e,t,r,n,i,a,o,s,u,l,c){var d,m,h,g,y,v=n&&n.__k||hv,D=t.length;for(r.__d=u,yF(r,t,v),u=r.__d,d=0;d<D;d++)(h=r.__k[d])!=null&&typeof h!="boolean"&&typeof h!="function"&&(m=h.__i===-1?Us:v[h.__i]||Us,h.__i=d,zf(e,h,m,i,a,o,s,u,l,c),g=h.__e,h.ref&&m.ref!=h.ref&&(m.ref&&Kf(m.ref,null,h),c.push(h.ref,h.__c||g,h)),y==null&&g!=null&&(y=g),65536&h.__u||m.__k===h.__k?(u&&!u.isConnected&&(u=$a(m)),u=yv(h,u,e)):typeof h.type=="function"&&h.__d!==void 0?u=h.__d:g&&(u=g.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=u,r.__e=y}function yF(e,t,r){var n,i,a,o,s,u=t.length,l=r.length,c=l,d=0;for(e.__k=[],n=0;n<u;n++)o=n+d,(i=e.__k[n]=(i=t[n])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?$s(null,i,null,null,null):pu(i)?$s(ct,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?$s(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,s=vF(i,r,o,c),i.__i=s,a=null,s!==-1&&(c--,(a=r[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):s!==o&&(s===o+1?d++:s>o?c>u-o?d+=s-o:d--:s<o?s==o-1&&(d=s-o):d=0,s!==n+d&&(i.__u|=65536))):(a=r[o])&&a.key==null&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=$a(a)),Uf(a,a,!1),r[o]=null,c--);if(c)for(n=0;n<l;n++)(a=r[n])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=$a(a)),Uf(a,a))}function yv(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=yv(n[i],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function fi(e,t){return t=t||[],e==null||typeof e=="boolean"||(pu(e)?e.some(function(r){fi(r,t)}):t.push(e)),t}function vF(e,t,r,n){var i=e.key,a=e.type,o=r-1,s=r+1,u=t[r];if(u===null||u&&i==u.key&&a===u.type&&!(131072&u.__u))return r;if(n>(u!=null&&!(131072&u.__u)?1:0))for(;o>=0||s<t.length;){if(o>=0){if((u=t[o])&&!(131072&u.__u)&&i==u.key&&a===u.type)return o;o--}if(s<t.length){if((u=t[s])&&!(131072&u.__u)&&i==u.key&&a===u.type)return s;s++}}return-1}function lv(e,t,r){t[0]==="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||gF.test(t)?r:r+"px"}function hu(e,t,r,n,i){var a;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||lv(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||lv(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=Wf,e.addEventListener(t,a?Vf:Bf,a)):e.removeEventListener(t,a?Vf:Bf,a);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=r==null?"":r;break e}catch(o){}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function uv(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=Wf++;else if(t.t<r.u)return;return r(Xe.event?Xe.event(t):t)}}}function zf(e,t,r,n,i,a,o,s,u,l){var c,d,m,h,g,y,v,D,I,C,x,O,A,P,B,G=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),a=[s=t.__e=r.__e]),(c=Xe.__b)&&c(t);e:if(typeof G=="function")try{if(D=t.props,I=(c=G.contextType)&&n[c.__c],C=c?I?I.props.value:c.__:n,r.__c?v=(d=t.__c=r.__c).__=d.__E:("prototype"in G&&G.prototype.render?t.__c=d=new G(D,C):(t.__c=d=new Br(D,C),d.constructor=G,d.render=bF),I&&I.sub(d),d.props=D,d.state||(d.state={}),d.context=C,d.__n=n,m=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),G.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Ii({},d.__s)),Ii(d.__s,G.getDerivedStateFromProps(D,d.__s))),h=d.props,g=d.state,d.__v=t,m)G.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(G.getDerivedStateFromProps==null&&D!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(D,C),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(D,d.__s,C)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=D,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(J){J&&(J.__=t)}),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(D,d.__s,C),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,g,y)})}if(d.context=C,d.props=D,d.__P=e,d.__e=!1,O=Xe.__r,A=0,"prototype"in G&&G.prototype.render){for(d.state=d.__s,d.__d=!1,O&&O(t),c=d.render(d.props,d.state,d.context),P=0;P<d._sb.length;P++)d.__h.push(d._sb[P]);d._sb=[]}else do d.__d=!1,O&&O(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++A<25);d.state=d.__s,d.getChildContext!=null&&(n=Ii(Ii({},n),d.getChildContext())),m||d.getSnapshotBeforeUpdate==null||(y=d.getSnapshotBeforeUpdate(h,g)),gv(e,pu(B=c!=null&&c.type===ct&&c.key==null?c.props.children:c)?B:[B],t,r,n,i,a,o,s,u,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),v&&(d.__E=d.__=null)}catch(J){t.__v=null,u||a!=null?(t.__e=s,t.__u|=u?160:32,a[a.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),Xe.__e(J,t,r)}else a==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=wF(r.__e,t,r,n,i,a,o,u,l);(c=Xe.diffed)&&c(t)}function vv(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)Kf(r[n],r[++n],r[++n]);Xe.__c&&Xe.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i)})}catch(a){Xe.__e(a,i.__v)}})}function wF(e,t,r,n,i,a,o,s,u){var l,c,d,m,h,g,y,v=r.props,D=t.props,I=t.type;if(I==="svg"&&(i=!0),a!=null){for(l=0;l<a.length;l++)if((h=a[l])&&"setAttribute"in h==!!I&&(I?h.localName===I:h.nodeType===3)){e=h,a[l]=null;break}}if(e==null){if(I===null)return document.createTextNode(D);e=i?document.createElementNS("http://www.w3.org/2000/svg",I):document.createElement(I,D.is&&D),a=null,s=!1}if(I===null)v===D||s&&e.data===D||(e.data=D);else{if(a=a&&Ws.call(e.childNodes),v=r.props||Us,!s&&a!=null)for(v={},l=0;l<e.attributes.length;l++)v[(h=e.attributes[l]).name]=h.value;for(l in v)h=v[l],l=="children"||(l=="dangerouslySetInnerHTML"?d=h:l==="key"||l in D||hu(e,l,null,h,i));for(l in D)h=D[l],l=="children"?m=h:l=="dangerouslySetInnerHTML"?c=h:l=="value"?g=h:l=="checked"?y=h:l==="key"||s&&typeof h!="function"||v[l]===h||hu(e,l,h,v[l],i);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),gv(e,pu(m)?m:[m],t,r,n,i&&I!=="foreignObject",a,o,a?a[0]:r.__k&&$a(r,0),s,u),a!=null)for(l=a.length;l--;)a[l]!=null&&mv(a[l]);s||(l="value",g!==void 0&&(g!==e[l]||I==="progress"&&!g||I==="option"&&g!==v[l])&&hu(e,l,g,v[l],!1),l="checked",y!==void 0&&y!==e[l]&&hu(e,l,y,v[l],!1))}return e}function Kf(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){Xe.__e(n,r)}}function Uf(e,t,r){var n,i;if(Xe.unmount&&Xe.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Kf(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){Xe.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Uf(n[i],t,r||typeof e.type!="function");r||e.__e==null||mv(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function bF(e,t,r){return this.constructor(e,r)}function xo(e,t,r){var n,i,a,o;Xe.__&&Xe.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,a=[],o=[],zf(t,e=(!n&&r||t).__k=xr(ct,null,[e]),i||Us,Us,t.ownerSVGElement!==void 0,!n&&r?[r]:i?null:t.firstChild?Ws.call(t.childNodes):null,a,!n&&r?r:i?i.__e:t.firstChild,n,o),vv(a,e,o)}function jf(e,t){xo(e,t,jf)}function wv(e,t,r){var n,i,a,o,s=Ii({},e.props);for(a in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)a=="key"?n=t[a]:a=="ref"?i=t[a]:s[a]=t[a]===void 0&&o!==void 0?o[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?Ws.call(arguments,2):r),$s(e.type,s,n||e.key,i||e.ref,null)}function aa(e,t){var r={__c:t="__cC"+fv++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,a;return this.getChildContext||(i=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(s){s.__e=!0,$f(s)})},this.sub=function(o){i.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),s&&s.call(o)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Ws=hv.slice,Xe={__e:function(e,t,r,n){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(s){e=s}throw e}},cv=0,pF=function(e){return e!=null&&e.constructor==null},Br.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ii({},this.state),typeof e=="function"&&(e=e(Ii({},r),this.props)),e&&Ii(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),$f(this))},Br.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$f(this))},Br.prototype.render=ct,Va=[],dv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):activeWindow.setTimeout,Hf=function(e,t){return e.__v.__b-t.__v.__b},mu.__r=0,Wf=0,Bf=uv(!1),Vf=uv(!0),fv=0;var oa,Qt,qf,bv,Co=0,Mv=[],gu=[],an=Xe,Dv=an.__b,Sv=an.__r,Ev=an.diffed,kv=an.__c,xv=an.unmount,Cv=an.__;function _o(e,t){an.__h&&an.__h(Qt,e,Co||t),Co=0;var r=Qt.__H||(Qt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:gu}),r.__[e]}function Ne(e){return Co=1,Jf(Av,e)}function Jf(e,t,r){var n=_o(oa++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Av(void 0,t),function(s){var u=n.__N?n.__N[0]:n.__[0],l=n.t(u,s);u!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=Qt,!Qt.u)){var i=function(s,u,l){if(!n.__c.__H)return!0;var c=n.__c.__H.__.filter(function(m){return!!m.__c});if(c.every(function(m){return!m.__N}))return!a||a.call(this,s,u,l);var d=!1;return c.forEach(function(m){if(m.__N){var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(d=!0)}}),!(!d&&n.__c.props===s)&&(!a||a.call(this,s,u,l))};Qt.u=!0;var a=Qt.shouldComponentUpdate,o=Qt.componentWillUpdate;Qt.componentWillUpdate=function(s,u,l){if(this.__e){var c=a;a=void 0,i(s,u,l),a=c}o&&o.call(this,s,u,l)},Qt.shouldComponentUpdate=i}return n.__N||n.__}function Ae(e,t){var r=_o(oa++,3);!an.__s&&Zf(r.__H,t)&&(r.__=e,r.i=t,Qt.__H.__h.push(r))}function Ai(e,t){var r=_o(oa++,4);!an.__s&&Zf(r.__H,t)&&(r.__=e,r.i=t,Qt.__h.push(r))}function Fe(e){return Co=5,Re(function(){return{current:e}},[])}function Tv(e,t,r){Co=6,Ai(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function Re(e,t){var r=_o(oa++,7);return Zf(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Ye(e,t){return Co=8,Re(function(){return e},t)}function Ee(e){var t=Qt.context[e.__c],r=_o(oa++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Qt)),t.props.value):e.__}function Fv(e,t){an.useDebugValue&&an.useDebugValue(t?t(e):e)}function Iv(){var e=_o(oa++,11);if(!e.__){for(var t=Qt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function DF(){for(var e;e=Mv.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(yu),e.__H.__h.forEach(Gf),e.__H.__h=[]}catch(t){e.__H.__h=[],an.__e(t,e.__v)}}an.__b=function(e){Qt=null,Dv&&Dv(e)},an.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cv&&Cv(e,t)},an.__r=function(e){Sv&&Sv(e),oa=0;var t=(Qt=e.__c).__H;t&&(qf===Qt?(t.__h=[],Qt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=gu,r.__N=r.i=void 0})):(t.__h.forEach(yu),t.__h.forEach(Gf),t.__h=[],oa=0)),qf=Qt},an.diffed=function(e){Ev&&Ev(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Mv.push(t)!==1&&bv===an.requestAnimationFrame||((bv=an.requestAnimationFrame)||SF)(DF)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==gu&&(r.__=r.__V),r.i=void 0,r.__V=gu})),qf=Qt=null},an.__c=function(e,t){t.some(function(r){try{r.__h.forEach(yu),r.__h=r.__h.filter(function(n){return!n.__||Gf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],an.__e(n,r.__v)}}),kv&&kv(e,t)},an.unmount=function(e){xv&&xv(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{yu(n)}catch(i){t=i}}),r.__H=void 0,t&&an.__e(t,r.__v))};var _v=typeof activeWindow.requestAnimationFrame=="function";function SF(e){var t,r=function(){activeWindow.clearTimeout(n),_v&&activeWindow.cancelAnimationFrame(t),activeWindow.setTimeout(e)},n=activeWindow.setTimeout(r,100);_v&&(t=activeWindow.requestAnimationFrame(r))}function yu(e){var t=Qt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Qt=t}function Gf(e){var t=Qt;e.__c=e.__(),Qt=t}function Zf(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Av(e,t){return typeof t=="function"?t(e):t}function $v(e,t){for(var r in t)e[r]=t[r];return e}function Xf(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function eh(e,t){this.props=e,this.context=t}function zt(e,t){function r(i){var a=this.props.ref,o=a==i.ref;return!o&&a&&(a.call?a(null):a.current=null),t?!t(this.props,i)||!o:Xf(this.props,i)}function n(i){return this.shouldComponentUpdate=r,xr(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(eh.prototype=new Br).isPureReactComponent=!0,eh.prototype.shouldComponentUpdate=function(e,t){return Xf(this.props,e)||Xf(this.state,t)};var Ov=Xe.__b;Xe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ov&&Ov(e)};var EF=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kF(e){function t(r){var n=$v({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=EF,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Lv=function(e,t){return e==null?null:fi(fi(e).map(t))},xF={map:Lv,forEach:Lv,count:function(e){return e?fi(e).length:0},only:function(e){var t=fi(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:fi},CF=Xe.__e;Xe.__e=function(e,t,r,n){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}CF(e,t,r,n)};var Pv=Xe.unmount;function Uv(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=$v({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Uv(n,t,r)})),e}function Wv(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Wv(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function vu(){this.__u=0,this.t=null,this.__b=null}function Yv(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _F(e){var t,r,n;function i(a){if(t||(t=e()).then(function(o){r=o.default||o},function(o){n=o}),n)throw n;if(!r)throw t;return xr(r,a)}return i.displayName="Lazy",i.__f=!0,i}function Ys(){this.u=null,this.o=null}Xe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pv&&Pv(e)},(vu.prototype=new Br).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=Yv(n.__v),a=!1,o=function(){a||(a=!0,r.__R=null,i?i(s):s())};r.__R=o;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=Wv(u,u.__c.__P,u.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(o,o)},vu.prototype.componentWillUnmount=function(){this.t=[]},vu.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Uv(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&xr(ct,null,e.fallback);return i&&(i.__u&=-33),[xr(ct,null,t.__a?null:e.children),i]};var Nv=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function MF(e){return this.getChildContext=function(){return e.context},e.children}function TF(e){var t=this,r=e.i;t.componentWillUnmount=function(){xo(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),xo(xr(MF,{context:t.context},e.__v),t.l)}function Oi(e,t){var r=xr(TF,{__v:e,i:t});return r.containerInfo=t,r}(Ys.prototype=new Br).__a=function(e){var t=this,r=Yv(t.__v),n=t.o.get(e);return n[0]++,function(i){var a=function(){t.props.revealOrder?(n.push(i),Nv(t,e,n)):i()};r?r(a):a()}},Ys.prototype.render=function(e){this.u=null,this.o=new Map;var t=fi(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ys.prototype.componentDidUpdate=Ys.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Nv(e,r,t)})};var zv=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,FF=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,IF=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,AF=/[A-Z0-9]/g,OF=typeof document!="undefined",LF=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Li(e,t,r){return t.__k==null&&(t.textContent=""),xo(e,t),typeof r=="function"&&r(),e?e.__c:null}function PF(e,t,r){return jf(e,t),typeof r=="function"&&r(),e?e.__c:null}Br.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Br.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Rv=Xe.event;function NF(){}function RF(){return this.cancelBubble}function HF(){return this.defaultPrevented}Xe.event=function(e){return Rv&&(e=Rv(e)),e.persist=NF,e.isPropagationStopped=RF,e.isDefaultPrevented=HF,e.nativeEvent=e};var th,BF={enumerable:!1,configurable:!0,get:function(){return this.class}},Hv=Xe.vnode;Xe.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={};for(var a in r){var o=r[a];if(!(a==="value"&&"defaultValue"in r&&o==null||OF&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var s=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&o===!0?o="":s==="translate"&&o==="no"?o=!1:s==="ondoubleclick"?a="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||LF(r.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":IF.test(a)?a=s:n.indexOf("-")===-1&&FF.test(a)?a=a.replace(AF,"-$&").toLowerCase():o===null&&(o=void 0):s=a="oninput",s==="oninput"&&i[a=s]&&(a="oninputCapture"),i[a]=o}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=fi(r.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=fi(r.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",BF)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=zv,Hv&&Hv(e)};var Bv=Xe.__r;Xe.__r=function(e){Bv&&Bv(e),th=e.__c};var Vv=Xe.diffed;Xe.diffed=function(e){Vv&&Vv(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),th=null};var VF={ReactCurrentDispatcher:{current:{readContext:function(e){return th.__n[e.__c].props.value}}}};function $F(e){return xr.bind(null,e)}function wu(e){return!!e&&e.$$typeof===zv}function UF(e){return wu(e)&&e.type===ct}function WF(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function YF(e){return wu(e)?wv.apply(null,arguments):e}function Pi(e){return!!e.__k&&(xo(null,e),!0)}function zF(e){return e&&(e.base||e.nodeType===1&&e)||null}var KF=function(e,t){return e(t)},jF=function(e,t){return e(t)},qF=ct;function Kv(e){e()}function GF(e){return e}function JF(){return[!1,Kv]}var ZF=Ai,QF=wu;function XF(e,t){var r=t(),n=Ne({h:{__:r,v:t}}),i=n[0].h,a=n[1];return Ai(function(){i.__=r,i.v=t,Qf(i)&&a({h:i})},[e,r,t]),Ae(function(){return Qf(i)&&a({h:i}),e(function(){Qf(i)&&a({h:i})})},[e]),r}function Qf(e){var t,r,n=e.v,i=e.__;try{var a=n();return!((t=i)===(r=a)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch(o){return!0}}var $e={useState:Ne,useId:Iv,useReducer:Jf,useEffect:Ae,useLayoutEffect:Ai,useInsertionEffect:ZF,useTransition:JF,useDeferredValue:GF,useSyncExternalStore:XF,startTransition:Kv,useRef:Fe,useImperativeHandle:Tv,useMemo:Re,useCallback:Ye,useContext:Ee,useDebugValue:Fv,version:"17.0.2",Children:xF,render:Li,hydrate:PF,unmountComponentAtNode:Pi,createPortal:Oi,createElement:xr,createContext:aa,createFactory:$F,cloneElement:YF,createRef:Yf,Fragment:ct,isValidElement:wu,isElement:QF,isFragment:UF,isMemo:WF,findDOMNode:zF,Component:Br,PureComponent:eh,memo:zt,forwardRef:kF,flushSync:jF,unstable_batchedUpdates:KF,StrictMode:qF,Suspense:vu,SuspenseList:Ys,lazy:_F,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:VF};function Ge(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let r=0,n;r<e.length;r++)(n=Ge(e[r]))!==""&&(t+=(t&&" ")+n);else for(let r in e)e[r]&&(t+=(t&&" ")+r);return t}var Ss=Ct(ln());var Sh=Ct(ln()),da=require("obsidian");var rw=Ct(tw()),la=Ct(ln());function nw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ni(e){var t,r;return nw(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(nw(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}function DI(e,t){return e.length!==t.length?!1:e.every((r,n,i)=>n===i.length-1?r!==t[n]:r===t[n])}function SI(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])}function js(e,t){if(SI(e,t))return 2;if(!DI(e,t))return 3;let r=e.length-1;return e[r]<t[r]?1:0}function un(e,t){let r=t.length?t[0]:null;return r!==null&&e.children&&e.children[r]?un(e.children[r],t.slice(1)):e}function kI(e,t){let r=t;for(let n=e.length-1;n>=0;n--)r={children:{[e[n]]:r}};return r}function qs(e,t){let r=t;for(let n=e.length-2;n>=0;n--)r={children:{[e[n]]:r}};return r}function iw(e,t){let r=t?[e.last(),1,t]:[e.last(),1];return qs(e,{children:{$splice:[r]}})}function aw(e,t,r=0){return qs(e,{children:{$splice:[[e.last()+r,0,...t]]}})}function xI(e,t){return qs(e,{children:{$push:t}})}function CI(e,t){return qs(e,{children:{$unshift:t}})}function Ri(e,t,r,n,i){let a=n?n(un(e,t)):un(e,t),s=js(t,r)===1?-1:0,u=i==null?void 0:i(un(e,t)),l=iw(t,u),c=aw(r,Array.isArray(a)?a:[a],s),d=(0,rw.default)(l,c,{isMergeableObject:h=>Ni(h)||Array.isArray(h)});return(0,la.default)(e,d)}function mi(e,t,r){return(0,la.default)(e,iw(t,r))}function Xr(e,t,r){return(0,la.default)(e,aw(t,r))}function ah(e,t,r){return(0,la.default)(e,xI(t,r))}function ow(e,t,r){return(0,la.default)(e,CI(t,r))}function Du(e,t,r){return(0,la.default)(e,kI(t,r))}function oh(e,t,r){return(0,la.default)(e,qs(t,r))}var Gs=["MO","TU","WE","TH","FR","SA","SU"],Mn=function(){function e(t,r){if(r===0)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=r}return e.fromStr=function(t){return new e(Gs.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},e.prototype.toString=function(){var t=Gs[this.weekday];return this.n&&(t=(this.n>0?"+":"")+String(this.n)+t),t},e.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},e}();var Gt=function(e){return e!=null},Cr=function(e){return typeof e=="number"},sh=function(e){return typeof e=="string"&&Gs.includes(e)},$n=Array.isArray,$r=function(e,t){t===void 0&&(t=e),arguments.length===1&&(t=e,e=0);for(var r=[],n=e;n<t;n++)r.push(n);return r};var wt=function(e,t){var r=0,n=[];if($n(e))for(;r<t;r++)n[r]=[].concat(e);else for(;r<t;r++)n[r]=e;return n},sw=function(e){return $n(e)?e:[e]};function Wa(e,t,r){r===void 0&&(r=" ");var n=String(e);return t=t>>0,n.length>t?String(n):(t=t-n.length,t>r.length&&(r+=wt(r,t/r.length)),r.slice(0,t)+String(n))}var lw=function(e,t,r){var n=e.split(t);return r?n.slice(0,r).concat([n.slice(r).join(t)]):n},qn=function(e,t){var r=e%t;return r*t<0?r+t:r},Su=function(e,t){return{div:Math.floor(e/t),mod:qn(e,t)}},_r=function(e){return!Gt(e)||e.length===0},bn=function(e){return!_r(e)},Et=function(e,t){return bn(e)&&e.indexOf(t)!==-1};var pi=function(e,t,r,n,i,a){return n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),new Date(Date.UTC(e,t-1,r,n,i,a))},_I=[31,28,31,30,31,30,31,31,30,31,30,31],cw=1e3*60*60*24,Eu=9999,dw=pi(1970,1,1),MI=[6,0,1,2,3,4,5];var To=function(e){return e%4===0&&e%100!==0||e%400===0},lh=function(e){return e instanceof Date},Ya=function(e){return lh(e)&&!isNaN(e.getTime())};var TI=function(e,t){var r=e.getTime(),n=t.getTime(),i=r-n;return Math.round(i/cw)},Js=function(e){return TI(e,dw)},ku=function(e){return new Date(dw.getTime()+e*cw)},FI=function(e){var t=e.getUTCMonth();return t===1&&To(e.getUTCFullYear())?29:_I[t]},Hi=function(e){return MI[e.getUTCDay()]},uh=function(e,t){var r=pi(e,t+1,1);return[Hi(r),FI(r)]},xu=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},Cu=function(e){var t=new Date(e.getTime());return t},ch=function(e){for(var t=[],r=0;r<e.length;r++)t.push(Cu(e[r]));return t},Bi=function(e){e.sort(function(t,r){return t.getTime()-r.getTime()})},Fo=function(e,t){t===void 0&&(t=!0);var r=new Date(e);return[Wa(r.getUTCFullYear().toString(),4,"0"),Wa(r.getUTCMonth()+1,2,"0"),Wa(r.getUTCDate(),2,"0"),"T",Wa(r.getUTCHours(),2,"0"),Wa(r.getUTCMinutes(),2,"0"),Wa(r.getUTCSeconds(),2,"0"),t?"Z":""].join("")},Zs=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,r=t.exec(e);if(!r)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[5],10)||0,parseInt(r[6],10)||0,parseInt(r[7],10)||0))},uw=function(e,t){var r=e.toLocaleString("sv-SE",{timeZone:t});return r.replace(" ","T")+"Z"},fw=function(e,t){var r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(uw(e,r)),i=new Date(uw(e,t!=null?t:"UTC")),a=i.getTime()-n.getTime();return new Date(e.getTime()-a)};var II=function(){function e(t,r){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=r,t==="between"?(this.maxDate=r.inc?r.before:new Date(r.before.getTime()-1),this.minDate=r.inc?r.after:new Date(r.after.getTime()+1)):t==="before"?this.maxDate=r.inc?r.dt:new Date(r.dt.getTime()-1):t==="after"&&(this.minDate=r.inc?r.dt:new Date(r.dt.getTime()+1))}return e.prototype.accept=function(t){++this.total;var r=this.minDate&&t<this.minDate,n=this.maxDate&&t>this.maxDate;if(this.method==="between"){if(r)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return r?!0:(this.add(t),!1);return this.add(t)},e.prototype.add=function(t){return this._result.push(t),!0},e.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;case"before":case"after":default:return t.length?t[t.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),Vi=II;var dh=function(e,t){return dh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},dh(e,t)};function Io(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Un=function(){return Un=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Un.apply(this,arguments)};function Ao(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{l(n.next(c))}catch(d){o(d)}}function u(c){try{l(n.throw(c))}catch(d){o(d)}}function l(c){c.done?a(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function Oo(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function AI(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function hw(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(AI(arguments[t]));return e}function ke(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var OI=function(e){Io(t,e);function t(r,n,i){var a=e.call(this,r,n)||this;return a.iterator=i,a}return t.prototype.add=function(r){return this.iterator(r,this._result.length)?(this._result.push(r),!0):!1},t}(Vi),fh=OI;var LI={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},za=LI;var mw=function(e,t){return e.indexOf(t)!==-1},PI=function(e){return e.toString()},NI=function(e,t,r){return"".concat(t," ").concat(r,", ").concat(e)},RI=function(){function e(t,r,n,i){if(r===void 0&&(r=PI),n===void 0&&(n=za),i===void 0&&(i=NI),this.text=[],this.language=n||za,this.gettext=r,this.dateFormatter=i,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),o=[].concat(this.options.bynmonthday);a.sort(function(c,d){return c-d}),o.sort(function(c,d){return d-c}),this.bymonthday=a.concat(o),this.bymonthday.length||(this.bymonthday=null)}if(Gt(this.origOptions.byweekday)){var s=$n(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],u=String(s);this.byweekday={allWeeks:s.filter(function(c){return!c.n}),someWeeks:s.filter(function(c){return!!c.n}),isWeekdays:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")===-1&&u.indexOf("SU")===-1,isEveryDay:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")!==-1&&u.indexOf("SU")!==-1};var l=function(c,d){return c.weekday-d.weekday};this.byweekday.allWeeks.sort(l),this.byweekday.someWeeks.sort(l),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){var r=!0;if(!(t.options.freq in e.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(mw(["dtstart","tzid","wkst","freq"],n))return!0;if(!mw(e.IMPLEMENTED[t.options.freq],n))return!1}return r},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[Oe.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var r=this.options.until;this.add(this.dateFormatter(r.getUTCFullYear(),this.language.monthNames[r.getUTCMonth()],r.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},e.prototype.MINUTELY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},e.prototype.DAILY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(this.options.interval===1&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},e.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},e.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},e.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(t){t=parseInt(t.toString(),10);var r,n=this.gettext;if(t===-1)return n("last");var i=Math.abs(t);switch(i){case 1:case 21:case 31:r=i+n("st");break;case 2:case 22:r=i+n("nd");break;case 3:case 23:r=i+n("rd");break;default:r=i+n("th")}return t<0?r+" "+n("last"):r},e.prototype.monthtext=function(t){return this.language.monthNames[t-1]},e.prototype.weekdaytext=function(t){var r=Cr(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[r]},e.prototype.plural=function(t){return t%100!==1},e.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},e.prototype.list=function(t,r,n,i){var a=this;i===void 0&&(i=","),$n(t)||(t=[t]);var o=function(u,l,c){for(var d="",m=0;m<u.length;m++)m!==0&&(m===u.length-1?d+=" "+c+" ":d+=l+" "),d+=u[m];return d};r=r||function(u){return u.toString()};var s=function(u){return r&&r.call(a,u)};return n?o(t.map(s),i,n):t.map(s).join(i+" ")},e}(),gi=RI;var HI=function(){function e(t){this.done=!0,this.rules=t}return e.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&this.symbol===null},e.prototype.nextSymbol=function(){var t,r;this.symbol=null,this.value=null;do{if(this.done)return!1;var n=void 0;t=null;for(var i in this.rules){n=this.rules[i];var a=n.exec(this.text);a&&(t===null||a[0].length>t[0].length)&&(t=a,r=i)}if(t!=null&&(this.text=this.text.substr(t[0].length),this.text===""&&(this.done=!0)),t==null){this.done=!0,this.symbol=null,this.value=null;return}}while(r==="SKIP");return this.symbol=r,this.value=t,!0},e.prototype.accept=function(t){if(this.symbol===t){if(this.value){var r=this.value;return this.nextSymbol(),r}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},e}();function Qs(e,t){t===void 0&&(t=za);var r={},n=new HI(t.tokens);if(!n.start(e))return null;return i(),r;function i(){n.expect("every");var m=n.acceptNumber();if(m&&(r.interval=parseInt(m[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":r.freq=Oe.DAILY,n.nextSymbol()&&(o(),d());break;case"weekday(s)":r.freq=Oe.WEEKLY,r.byweekday=[Oe.MO,Oe.TU,Oe.WE,Oe.TH,Oe.FR],n.nextSymbol(),o(),d();break;case"week(s)":r.freq=Oe.WEEKLY,n.nextSymbol()&&(a(),o(),d());break;case"hour(s)":r.freq=Oe.HOURLY,n.nextSymbol()&&(a(),d());break;case"minute(s)":r.freq=Oe.MINUTELY,n.nextSymbol()&&(a(),d());break;case"month(s)":r.freq=Oe.MONTHLY,n.nextSymbol()&&(a(),d());break;case"year(s)":r.freq=Oe.YEARLY,n.nextSymbol()&&(a(),d());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":r.freq=Oe.WEEKLY;var h=n.symbol.substr(0,2).toUpperCase();if(r.byweekday=[Oe[h]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var g=u();if(!g)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");r.byweekday.push(Oe[g]),n.nextSymbol()}o(),c(),d();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(r.freq=Oe.YEARLY,r.bymonth=[s()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var y=s();if(!y)throw new Error("Unexpected symbol "+n.symbol+", expected month");r.bymonth.push(y),n.nextSymbol()}a(),d();break;default:throw new Error("Unknown symbol")}}function a(){var m=n.accept("on"),h=n.accept("the");if(m||h)do{var g=l(),y=u(),v=s();if(g)y?(n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(Oe[y].nth(g))):(r.bymonthday||(r.bymonthday=[]),r.bymonthday.push(g),n.accept("day(s)"));else if(y)n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(Oe[y]);else if(n.symbol==="weekday(s)")n.nextSymbol(),r.byweekday||(r.byweekday=[Oe.MO,Oe.TU,Oe.WE,Oe.TH,Oe.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var D=n.acceptNumber();if(!D)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(r.byweekno=[parseInt(D[0],10)];n.accept("comma");){if(D=n.acceptNumber(),!D)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.byweekno.push(parseInt(D[0],10))}}else if(v)n.nextSymbol(),r.bymonth||(r.bymonth=[]),r.bymonth.push(v);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function o(){var m=n.accept("at");if(m)do{var h=n.acceptNumber();if(!h)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(r.byhour=[parseInt(h[0],10)];n.accept("comma");){if(h=n.acceptNumber(),!h)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");r.byhour.push(parseInt(h[0],10))}}while(n.accept("comma")||n.accept("at"))}function s(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function u(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var m=parseInt(n.value[1],10);if(m<-366||m>366)throw new Error("Nth out of range: "+m);return n.nextSymbol(),n.accept("last")?-m:m;default:return!1}}function c(){n.accept("on"),n.accept("the");var m=l();if(m)for(r.bymonthday=[m],n.nextSymbol();n.accept("comma");){if(m=l(),!m)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.bymonthday.push(m),n.nextSymbol()}}function d(){if(n.symbol==="until"){var m=Date.parse(n.text);if(!m)throw new Error("Cannot parse until date:"+n.text);r.until=new Date(m)}else n.accept("for")&&(r.count=parseInt(n.value[0],10),n.expect("number"))}}var pt;(function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"})(pt||(pt={}));function Xs(e){return e<pt.HOURLY}var pw=function(e,t){return t===void 0&&(t=za),new Oe(Qs(e,t)||void 0)},Lo=["count","until","interval","byweekday","bymonthday","bymonth"];gi.IMPLEMENTED=[];gi.IMPLEMENTED[pt.HOURLY]=Lo;gi.IMPLEMENTED[pt.MINUTELY]=Lo;gi.IMPLEMENTED[pt.DAILY]=["byhour"].concat(Lo);gi.IMPLEMENTED[pt.WEEKLY]=Lo;gi.IMPLEMENTED[pt.MONTHLY]=Lo;gi.IMPLEMENTED[pt.YEARLY]=["byweekno","byyearday"].concat(Lo);var gw=function(e,t,r,n){return new gi(e,t,r,n).toString()},yw=gi.isFullyConvertible;var Po=function(){function e(t,r,n,i){this.hour=t,this.minute=r,this.second=n,this.millisecond=i||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},e}();var vw=function(e){Io(t,e);function t(r,n,i,a,o,s,u){var l=e.call(this,a,o,s,u)||this;return l.year=r,l.month=n,l.day=i,l}return t.fromDate=function(r){return new this(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.valueOf()%1e3)},t.prototype.getWeekday=function(){return Hi(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(r){this.year+=r},t.prototype.addMonths=function(r){if(this.month+=r,this.month>12){var n=Math.floor(this.month/12),i=qn(this.month,12);this.month=i,this.year+=n,this.month===0&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(r,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+r*7:this.day+=-(this.getWeekday()-n)+r*7,this.fixDay()},t.prototype.addDaily=function(r){this.day+=r,this.fixDay()},t.prototype.addHours=function(r,n,i){for(n&&(this.hour+=Math.floor((23-this.hour)/r)*r);;){this.hour+=r;var a=Su(this.hour,24),o=a.div,s=a.mod;if(o&&(this.hour=s,this.addDaily(o)),_r(i)||Et(i,this.hour))break}},t.prototype.addMinutes=function(r,n,i,a){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/r)*r);;){this.minute+=r;var o=Su(this.minute,60),s=o.div,u=o.mod;if(s&&(this.minute=u,this.addHours(s,!1,i)),(_r(i)||Et(i,this.hour))&&(_r(a)||Et(a,this.minute)))break}},t.prototype.addSeconds=function(r,n,i,a,o){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/r)*r);;){this.second+=r;var s=Su(this.second,60),u=s.div,l=s.mod;if(u&&(this.second=l,this.addMinutes(u,!1,i,a)),(_r(i)||Et(i,this.hour))&&(_r(a)||Et(a,this.minute))&&(_r(o)||Et(o,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var r=uh(this.year,this.month-1)[1];if(!(this.day<=r))for(;this.day>r;){if(this.day-=r,++this.month,this.month===13&&(this.month=1,++this.year,this.year>Eu))return;r=uh(this.year,this.month-1)[1]}}},t.prototype.add=function(r,n){var i=r.freq,a=r.interval,o=r.wkst,s=r.byhour,u=r.byminute,l=r.bysecond;switch(i){case pt.YEARLY:return this.addYears(a);case pt.MONTHLY:return this.addMonths(a);case pt.WEEKLY:return this.addWeekly(a,o);case pt.DAILY:return this.addDaily(a);case pt.HOURLY:return this.addHours(a,n,s);case pt.MINUTELY:return this.addMinutes(a,n,s,u);case pt.SECONDLY:return this.addSeconds(a,n,s,u,l)}},t}(Po);function hh(e){for(var t=[],r=Object.keys(e),n=0,i=r;n<i.length;n++){var a=i[n];Et(Dw,a)||t.push(a),lh(e[a])&&!Ya(e[a])&&t.push(a)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return Un({},e)}function ww(e){var t=Un(Un({},el),hh(e));if(Gt(t.byeaster)&&(t.freq=Oe.YEARLY),!(Gt(t.freq)&&Oe.FREQUENCIES[t.freq]))throw new Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),Gt(t.wkst)?Cr(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=Oe.MO.weekday,Gt(t.bysetpos)){Cr(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var r=0;r<t.bysetpos.length;r++){var n=t.bysetpos[r];if(n===0||!(n>=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||bn(t.byweekno)||bn(t.byyearday)||t.bymonthday||bn(t.bymonthday)||Gt(t.byweekday)||Gt(t.byeaster)))switch(t.freq){case Oe.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case Oe.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case Oe.WEEKLY:t.byweekday=[Hi(t.dtstart)];break}if(Gt(t.bymonth)&&!$n(t.bymonth)&&(t.bymonth=[t.bymonth]),Gt(t.byyearday)&&!$n(t.byyearday)&&Cr(t.byyearday)&&(t.byyearday=[t.byyearday]),!Gt(t.bymonthday))t.bymonthday=[],t.bynmonthday=[];else if($n(t.bymonthday)){for(var i=[],a=[],r=0;r<t.bymonthday.length;r++){var n=t.bymonthday[r];n>0?i.push(n):n<0&&a.push(n)}t.bymonthday=i,t.bynmonthday=a}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);if(Gt(t.byweekno)&&!$n(t.byweekno)&&(t.byweekno=[t.byweekno]),!Gt(t.byweekday))t.bynweekday=null;else if(Cr(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(sh(t.byweekday))t.byweekday=[Mn.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof Mn)!t.byweekday.n||t.freq>Oe.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var o=[],s=[],r=0;r<t.byweekday.length;r++){var u=t.byweekday[r];if(Cr(u)){o.push(u);continue}else if(sh(u)){o.push(Mn.fromStr(u).weekday);continue}!u.n||t.freq>Oe.MONTHLY?o.push(u.weekday):s.push([u.weekday,u.n])}t.byweekday=bn(o)?o:null,t.bynweekday=bn(s)?s:null}return Gt(t.byhour)?Cr(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<Oe.HOURLY?[t.dtstart.getUTCHours()]:null,Gt(t.byminute)?Cr(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<Oe.MINUTELY?[t.dtstart.getUTCMinutes()]:null,Gt(t.bysecond)?Cr(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<Oe.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function bw(e){var t=e.dtstart.getTime()%1e3;if(!Xs(e.freq))return[];var r=[];return e.byhour.forEach(function(n){e.byminute.forEach(function(i){e.bysecond.forEach(function(a){r.push(new Po(n,i,a,t))})})}),r}function nl(e){var t=e.split(`
|
||
`).map(BI).filter(function(r){return r!==null});return Un(Un({},t[0]),t[1])}function tl(e){var t={},r=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!r)return t;var n=r[1],i=r[2];return n&&(t.tzid=n),t.dtstart=Zs(i),t}function BI(e){if(e=e.replace(/^\s+|\s+$/,""),!e.length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return Sw(e);var r=t[1];switch(r.toUpperCase()){case"RRULE":case"EXRULE":return Sw(e);case"DTSTART":return tl(e);default:throw new Error("Unsupported RFC prop ".concat(r," in ").concat(e))}}function Sw(e){var t=e.replace(/^RRULE:/i,""),r=tl(t),n=e.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return n.forEach(function(i){var a=i.split("="),o=a[0],s=a[1];switch(o.toUpperCase()){case"FREQ":r.freq=pt[s.toUpperCase()];break;case"WKST":r.wkst=Ur[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=VI(s),l=o.toLowerCase();r[l]=u;break;case"BYWEEKDAY":case"BYDAY":r.byweekday=$I(s);break;case"DTSTART":case"TZID":var c=tl(e);r.tzid=c.tzid,r.dtstart=c.dtstart;break;case"UNTIL":r.until=Zs(s);break;case"BYEASTER":r.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+o+"'")}}),r}function VI(e){if(e.indexOf(",")!==-1){var t=e.split(",");return t.map(Ew)}return Ew(e)}function Ew(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function $I(e){var t=e.split(",");return t.map(function(r){if(r.length===2)return Ur[r];var n=r.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!n||n.length<3)throw new SyntaxError("Invalid weekday string: ".concat(r));var i=Number(n[1]),a=n[2],o=Ur[a].weekday;return new Mn(o,i)})}var Ka=function(){function e(t,r){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=r}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=Fo(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:fw(this.date,this.tzid)},e}();function rl(e){for(var t=[],r="",n=Object.keys(e),i=Object.keys(el),a=0;a<n.length;a++)if(n[a]!=="tzid"&&Et(i,n[a])){var o=n[a].toUpperCase(),s=e[n[a]],u="";if(!(!Gt(s)||$n(s)&&!s.length)){switch(o){case"FREQ":u=Oe.FREQUENCIES[e.freq];break;case"WKST":Cr(s)?u=new Mn(s).toString():u=s.toString();break;case"BYWEEKDAY":o="BYDAY",u=sw(s).map(function(h){return h instanceof Mn?h:$n(h)?new Mn(h[0],h[1]):new Mn(h)}).toString();break;case"DTSTART":r=UI(s,e.tzid);break;case"UNTIL":u=Fo(s,!e.tzid);break;default:if($n(s)){for(var l=[],c=0;c<s.length;c++)l[c]=String(s[c]);u=l.toString()}else u=String(s)}u&&t.push([o,u])}}var d=t.map(function(h){var g=h[0],y=h[1];return"".concat(g,"=").concat(y.toString())}).join(";"),m="";return d!==""&&(m="RRULE:".concat(d)),[r,m].filter(function(h){return!!h}).join(`
|
||
`)}function UI(e,t){return e?"DTSTART"+new Ka(new Date(e),t).toString():""}function WI(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every(function(r,n){return r.getTime()===t[n].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var kw=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(t,r,n){r&&(r=r instanceof Date?Cu(r):ch(r)),t==="all"?this.all=r:(n._value=r,this[t].push(n))},e.prototype._cacheGet=function(t,r){var n=!1,i=r?Object.keys(r):[],a=function(c){for(var d=0;d<i.length;d++){var m=i[d];if(!WI(r[m],c[m]))return!0}return!1},o=this[t];if(t==="all")n=this.all;else if($n(o))for(var s=0;s<o.length;s++){var u=o[s];if(!(i.length&&a(u))){n=u._value;break}}if(!n&&this.all){for(var l=new Vi(t,r),s=0;s<this.all.length&&l.accept(this.all[s]);s++);n=l.getValue(),this._cacheAdd(t,n,r)}return $n(n)?ch(n):n instanceof Date?Cu(n):n},e}();var xw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],wt(1,31),!0),wt(2,28),!0),wt(3,31),!0),wt(4,30),!0),wt(5,31),!0),wt(6,30),!0),wt(7,31),!0),wt(8,31),!0),wt(9,30),!0),wt(10,31),!0),wt(11,30),!0),wt(12,31),!0),wt(1,7),!0),Cw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],wt(1,31),!0),wt(2,29),!0),wt(3,31),!0),wt(4,30),!0),wt(5,31),!0),wt(6,30),!0),wt(7,31),!0),wt(8,31),!0),wt(9,30),!0),wt(10,31),!0),wt(11,30),!0),wt(12,31),!0),wt(1,7),!0),YI=$r(1,29),zI=$r(1,30),ua=$r(1,31),Gn=$r(1,32),_w=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],Gn,!0),zI,!0),Gn,!0),ua,!0),Gn,!0),ua,!0),Gn,!0),Gn,!0),ua,!0),Gn,!0),ua,!0),Gn,!0),Gn.slice(0,7),!0),Mw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],Gn,!0),YI,!0),Gn,!0),ua,!0),Gn,!0),ua,!0),Gn,!0),Gn,!0),ua,!0),Gn,!0),ua,!0),Gn,!0),Gn.slice(0,7),!0),KI=$r(-28,0),jI=$r(-29,0),ca=$r(-30,0),Jn=$r(-31,0),Tw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],Jn,!0),jI,!0),Jn,!0),ca,!0),Jn,!0),ca,!0),Jn,!0),Jn,!0),ca,!0),Jn,!0),ca,!0),Jn,!0),Jn.slice(0,7),!0),Fw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],Jn,!0),KI,!0),Jn,!0),ca,!0),Jn,!0),ca,!0),Jn,!0),Jn,!0),ca,!0),Jn,!0),ca,!0),Jn,!0),Jn.slice(0,7),!0),Iw=[0,31,60,91,121,152,182,213,244,274,305,335,366],Aw=[0,31,59,90,120,151,181,212,243,273,304,334,365],mh=function(){for(var e=[],t=0;t<55;t++)e=e.concat($r(7));return e}();function Ow(e,t){var r=pi(e,1,1),n=To(e)?366:365,i=To(e+1)?366:365,a=Js(r),o=Hi(r),s=Un(Un({yearlen:n,nextyearlen:i,yearordinal:a,yearweekday:o},qI(e)),{wnomask:null});if(_r(t.byweekno))return s;s.wnomask=wt(0,n+7);var u,l,c=u=qn(7-o+t.wkst,7);c>=4?(c=0,l=s.yearlen+qn(o-t.wkst,7)):l=n-c;for(var d=Math.floor(l/7),m=qn(l,7),h=Math.floor(d+m/4),g=0;g<t.byweekno.length;g++){var y=t.byweekno[g];if(y<0&&(y+=h+1),y>0&&y<=h){var v=void 0;y>1?(v=c+(y-1)*7,c!==u&&(v-=7-u)):v=c;for(var D=0;D<7&&(s.wnomask[v]=1,v++,s.wdaymask[v]!==t.wkst);D++);}}if(Et(t.byweekno,1)){var v=c+h*7;if(c!==u&&(v-=7-u),v<n)for(var g=0;g<7&&(s.wnomask[v]=1,v+=1,s.wdaymask[v]!==t.wkst);g++);}if(c){var I=void 0;if(Et(t.byweekno,-1))I=-1;else{var C=Hi(pi(e-1,1,1)),x=qn(7-C.valueOf()+t.wkst,7),O=To(e-1)?366:365,A=void 0;x>=4?(x=0,A=O+qn(C-t.wkst,7)):A=n-c,I=Math.floor(52+qn(A,7)/4)}if(Et(t.byweekno,I))for(var v=0;v<c;v++)s.wnomask[v]=1}return s}function qI(e){var t=To(e)?366:365,r=pi(e,1,1),n=Hi(r);return t===365?{mmask:xw,mdaymask:Mw,nmdaymask:Fw,wdaymask:mh.slice(n),mrange:Aw}:{mmask:Cw,mdaymask:_w,nmdaymask:Tw,wdaymask:mh.slice(n),mrange:Iw}}function Lw(e,t,r,n,i,a){var o={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(a.freq===Oe.YEARLY)if(_r(a.bymonth))s=[[0,r]];else for(var u=0;u<a.bymonth.length;u++)t=a.bymonth[u],s.push(n.slice(t-1,t+1));else a.freq===Oe.MONTHLY&&(s=[n.slice(t-1,t+1)]);if(_r(s))return o;o.nwdaymask=wt(0,r);for(var u=0;u<s.length;u++)for(var l=s[u],c=l[0],d=l[1]-1,m=0;m<a.bynweekday.length;m++){var h=void 0,g=a.bynweekday[m],y=g[0],v=g[1];v<0?(h=d+(v+1)*7,h-=qn(i[h]-y,7)):(h=c+(v-1)*7,h+=qn(7-i[h]+y,7)),c<=h&&h<=d&&(o.nwdaymask[h]=1)}return o}function Pw(e,t){t===void 0&&(t=0);var r=e%19,n=Math.floor(e/100),i=e%100,a=Math.floor(n/4),o=n%4,s=Math.floor((n+8)/25),u=Math.floor((n-s+1)/3),l=Math.floor(19*r+n-a-u+15)%30,c=Math.floor(i/4),d=i%4,m=Math.floor(32+2*o+2*c-l-d)%7,h=Math.floor((r+11*l+22*m)/451),g=Math.floor((l+m-7*h+114)/31),y=(l+m-7*h+114)%31+1,v=Date.UTC(e,g-1,y+t),D=Date.UTC(e,0,1);return[Math.ceil((v-D)/(1e3*60*60*24))]}var GI=function(){function e(t){this.options=t}return e.prototype.rebuild=function(t,r){var n=this.options;if(t!==this.lastyear&&(this.yearinfo=Ow(t,n)),bn(n.bynweekday)&&(r!==this.lastmonth||t!==this.lastyear)){var i=this.yearinfo,a=i.yearlen,o=i.mrange,s=i.wdaymask;this.monthinfo=Lw(t,r,a,o,s,n)}Gt(n.byeaster)&&(this.eastermask=Pw(t,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[$r(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(t,r){for(var n=this.mrange[r-1],i=this.mrange[r],a=wt(null,this.yearlen),o=n;o<i;o++)a[o]=o;return[a,n,i]},e.prototype.wdayset=function(t,r,n){for(var i=wt(null,this.yearlen+7),a=Js(pi(t,r,n))-this.yearordinal,o=a,s=0;s<7&&(i[a]=a,++a,this.wdaymask[a]!==this.options.wkst);s++);return[i,o,a]},e.prototype.ddayset=function(t,r,n){var i=wt(null,this.yearlen),a=Js(pi(t,r,n))-this.yearordinal;return i[a]=a,[i,a,a+1]},e.prototype.htimeset=function(t,r,n,i){var a=this,o=[];return this.options.byminute.forEach(function(s){o=o.concat(a.mtimeset(t,s,n,i))}),Bi(o),o},e.prototype.mtimeset=function(t,r,n,i){var a=this.options.bysecond.map(function(o){return new Po(t,r,o,i)});return Bi(a),a},e.prototype.stimeset=function(t,r,n,i){return[new Po(t,r,n,i)]},e.prototype.getdayset=function(t){switch(t){case pt.YEARLY:return this.ydayset.bind(this);case pt.MONTHLY:return this.mdayset.bind(this);case pt.WEEKLY:return this.wdayset.bind(this);case pt.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(t){switch(t){case pt.HOURLY:return this.htimeset.bind(this);case pt.MINUTELY:return this.mtimeset.bind(this);case pt.SECONDLY:return this.stimeset.bind(this)}},e}(),Nw=GI;function Rw(e,t,r,n,i,a){for(var o=[],s=0;s<e.length;s++){var u=void 0,l=void 0,c=e[s];c<0?(u=Math.floor(c/t.length),l=qn(c,t.length)):(u=Math.floor((c-1)/t.length),l=qn(c-1,t.length));for(var d=[],m=r;m<n;m++){var h=a[m];Gt(h)&&d.push(h)}var g=void 0;u<0?g=d.slice(u)[0]:g=d[u];var y=t[l],v=ku(i.yearordinal+g),D=xu(v,y);Et(o,D)||o.push(D)}return Bi(o),o}function _u(e,t){var r=t.dtstart,n=t.freq,i=t.interval,a=t.until,o=t.bysetpos,s=t.count;if(s===0||i===0)return $i(e);var u=vw.fromDate(r),l=new Nw(t);l.rebuild(u.year,u.month);for(var c=QI(l,u,t);;){var d=l.getdayset(n)(u.year,u.month,u.day),m=d[0],h=d[1],g=d[2],y=ZI(m,h,g,l,t);if(bn(o))for(var v=Rw(o,c,h,g,l,m),D=0;D<v.length;D++){var I=v[D];if(a&&I>a)return $i(e);if(I>=r){var C=Hw(I,t);if(!e.accept(C)||s&&(--s,!s))return $i(e)}}else for(var D=h;D<g;D++){var x=m[D];if(Gt(x))for(var O=ku(l.yearordinal+x),A=0;A<c.length;A++){var P=c[A],I=xu(O,P);if(a&&I>a)return $i(e);if(I>=r){var C=Hw(I,t);if(!e.accept(C)||s&&(--s,!s))return $i(e)}}}if(t.interval===0||(u.add(t,y),u.year>Eu))return $i(e);Xs(n)||(c=l.gettimeset(n)(u.hour,u.minute,u.second,0)),l.rebuild(u.year,u.month)}}function JI(e,t,r){var n=r.bymonth,i=r.byweekno,a=r.byweekday,o=r.byeaster,s=r.bymonthday,u=r.bynmonthday,l=r.byyearday;return bn(n)&&!Et(n,e.mmask[t])||bn(i)&&!e.wnomask[t]||bn(a)&&!Et(a,e.wdaymask[t])||bn(e.nwdaymask)&&!e.nwdaymask[t]||o!==null&&!Et(e.eastermask,t)||(bn(s)||bn(u))&&!Et(s,e.mdaymask[t])&&!Et(u,e.nmdaymask[t])||bn(l)&&(t<e.yearlen&&!Et(l,t+1)&&!Et(l,-e.yearlen+t)||t>=e.yearlen&&!Et(l,t+1-e.yearlen)&&!Et(l,-e.nextyearlen+t-e.yearlen))}function Hw(e,t){return new Ka(e,t.tzid).rezonedDate()}function $i(e){return e.getValue()}function ZI(e,t,r,n,i){for(var a=!1,o=t;o<r;o++){var s=e[o];a=JI(n,s,i),a&&(e[s]=null)}return a}function QI(e,t,r){var n=r.freq,i=r.byhour,a=r.byminute,o=r.bysecond;return Xs(n)?bw(r):n>=Oe.HOURLY&&bn(i)&&!Et(i,t.hour)||n>=Oe.MINUTELY&&bn(a)&&!Et(a,t.minute)||n>=Oe.SECONDLY&&bn(o)&&!Et(o,t.second)?[]:e.gettimeset(n)(t.hour,t.minute,t.second,t.millisecond)}var Ur={MO:new Mn(0),TU:new Mn(1),WE:new Mn(2),TH:new Mn(3),FR:new Mn(4),SA:new Mn(5),SU:new Mn(6)},el={freq:pt.YEARLY,dtstart:null,interval:1,wkst:Ur.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},Dw=Object.keys(el),Oe=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r=!1),this._cache=r?null:new kw,this.origOptions=hh(t);var n=ww(t).parsedOptions;this.options=n}return e.parseText=function(t,r){return Qs(t,r)},e.fromText=function(t,r){return pw(t,r)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(t){return _u(t,this.options)},e.prototype._cacheGet=function(t,r){return this._cache?this._cache._cacheGet(t,r):!1},e.prototype._cacheAdd=function(t,r,n){if(this._cache)return this._cache._cacheAdd(t,r,n)},e.prototype.all=function(t){if(t)return this._iter(new fh("all",{},t));var r=this._cacheGet("all");return r===!1&&(r=this._iter(new Vi("all",{})),this._cacheAdd("all",r)),r},e.prototype.between=function(t,r,n,i){if(n===void 0&&(n=!1),!Ya(t)||!Ya(r))throw new Error("Invalid date passed in to RRule.between");var a={before:r,after:t,inc:n};if(i)return this._iter(new fh("between",a,i));var o=this._cacheGet("between",a);return o===!1&&(o=this._iter(new Vi("between",a)),this._cacheAdd("between",o,a)),o},e.prototype.before=function(t,r){if(r===void 0&&(r=!1),!Ya(t))throw new Error("Invalid date passed in to RRule.before");var n={dt:t,inc:r},i=this._cacheGet("before",n);return i===!1&&(i=this._iter(new Vi("before",n)),this._cacheAdd("before",i,n)),i},e.prototype.after=function(t,r){if(r===void 0&&(r=!1),!Ya(t))throw new Error("Invalid date passed in to RRule.after");var n={dt:t,inc:r},i=this._cacheGet("after",n);return i===!1&&(i=this._iter(new Vi("after",n)),this._cacheAdd("after",i,n)),i},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return rl(this.origOptions)},e.prototype.toText=function(t,r,n){return gw(this,t,r,n)},e.prototype.isFullyConvertibleToText=function(){return yw(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=pt.YEARLY,e.MONTHLY=pt.MONTHLY,e.WEEKLY=pt.WEEKLY,e.DAILY=pt.DAILY,e.HOURLY=pt.HOURLY,e.MINUTELY=pt.MINUTELY,e.SECONDLY=pt.SECONDLY,e.MO=Ur.MO,e.TU=Ur.TU,e.WE=Ur.WE,e.TH=Ur.TH,e.FR=Ur.FR,e.SA=Ur.SA,e.SU=Ur.SU,e.parseString=nl,e.optionsToString=rl,e}();function Bw(e,t,r,n,i,a){var o={},s=e.accept;function u(m,h){r.forEach(function(g){g.between(m,h,!0).forEach(function(y){o[Number(y)]=!0})})}i.forEach(function(m){var h=new Ka(m,a).rezonedDate();o[Number(h)]=!0}),e.accept=function(m){var h=Number(m);return isNaN(h)?s.call(this,m):!o[h]&&(u(new Date(h-1),new Date(h+1)),!o[h])?(o[h]=!0,s.call(this,m)):!0},e.method==="between"&&(u(e.args.after,e.args.before),e.accept=function(m){var h=Number(m);return o[h]?!0:(o[h]=!0,s.call(this,m))});for(var l=0;l<n.length;l++){var c=new Ka(n[l],a).rezonedDate();if(!e.accept(new Date(c.getTime())))break}t.forEach(function(m){_u(e,m.options)});var d=e._result;switch(Bi(d),e.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;case"after":default:return d.length&&d[0]||null}}var Vw={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function XI(e,t){var r=[],n=[],i=[],a=[],o=tl(e),s=o.dtstart,u=o.tzid,l=iA(e,t.unfold);return l.forEach(function(c){var d;if(c){var m=rA(c),h=m.name,g=m.parms,y=m.value;switch(h.toUpperCase()){case"RRULE":if(g.length)throw new Error("unsupported RRULE parm: ".concat(g.join(",")));r.push(nl(c));break;case"RDATE":var v=(d=/RDATE(?:;TZID=([^:=]+))?/i.exec(c))!==null&&d!==void 0?d:[],D=v[1];D&&!u&&(u=D),n=n.concat($w(y,g));break;case"EXRULE":if(g.length)throw new Error("unsupported EXRULE parm: ".concat(g.join(",")));i.push(nl(y));break;case"EXDATE":a=a.concat($w(y,g));break;case"DTSTART":break;default:throw new Error("unsupported property: "+h)}}}),{dtstart:s,tzid:u,rrulevals:r,rdatevals:n,exrulevals:i,exdatevals:a}}function eA(e,t){var r=XI(e,t),n=r.rrulevals,i=r.rdatevals,a=r.exrulevals,o=r.exdatevals,s=r.dtstart,u=r.tzid,l=t.cache===!1;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||n.length>1||i.length||a.length||o.length){var c=new gh(l);return c.dtstart(s),c.tzid(u||void 0),n.forEach(function(m){c.rrule(new Oe(ph(m,s,u),l))}),i.forEach(function(m){c.rdate(m)}),a.forEach(function(m){c.exrule(new Oe(ph(m,s,u),l))}),o.forEach(function(m){c.exdate(m)}),t.compatible&&t.dtstart&&c.rdate(s),c}var d=n[0]||{};return new Oe(ph(d,d.dtstart||t.dtstart||s,d.tzid||t.tzid||u),l)}function Mu(e,t){return t===void 0&&(t={}),eA(e,tA(t))}function ph(e,t,r){return Un(Un({},e),{dtstart:t,tzid:r})}function tA(e){var t=[],r=Object.keys(e),n=Object.keys(Vw);if(r.forEach(function(i){Et(n,i)||t.push(i)}),t.length)throw new Error("Invalid options: "+t.join(", "));return Un(Un({},Vw),e)}function nA(e){if(e.indexOf(":")===-1)return{name:"RRULE",value:e};var t=lw(e,":",1),r=t[0],n=t[1];return{name:r,value:n}}function rA(e){var t=nA(e),r=t.name,n=t.value,i=r.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:n}}function iA(e,t){if(t===void 0&&(t=!1),e=e&&e.trim(),!e)throw new Error("Invalid empty string");if(!t)return e.split(/\s/);for(var r=e.split(`
|
||
`),n=0;n<r.length;){var i=r[n]=r[n].replace(/\s+$/g,"");i?n>0&&i[0]===" "?(r[n-1]+=i.slice(1),r.splice(n,1)):n+=1:r.splice(n,1)}return r}function aA(e){e.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function $w(e,t){return aA(t),e.split(",").map(function(r){return Zs(r)})}function Uw(e){var t=this;return function(r){if(r!==void 0&&(t["_".concat(e)]=r),t["_".concat(e)]!==void 0)return t["_".concat(e)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[e];if(i)return i}}}var gh=function(e){Io(t,e);function t(r){r===void 0&&(r=!1);var n=e.call(this,{},r)||this;return n.dtstart=Uw.apply(n,["dtstart"]),n.tzid=Uw.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return t.prototype._iter=function(r){return Bw(r,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(r){Ww(r,this._rrule)},t.prototype.exrule=function(r){Ww(r,this._exrule)},t.prototype.rdate=function(r){Yw(r,this._rdate)},t.prototype.exdate=function(r){Yw(r,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(r){return Mu(r.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(r){return Mu(r.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(r){return new Date(r.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(r){return new Date(r.getTime())})},t.prototype.valueOf=function(){var r=[];return!this._rrule.length&&this._dtstart&&(r=r.concat(rl({dtstart:this._dtstart}))),this._rrule.forEach(function(n){r=r.concat(n.toString().split(`
|
||
`))}),this._exrule.forEach(function(n){r=r.concat(n.toString().split(`
|
||
`).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&r.push(zw("RDATE",this._rdate,this.tzid())),this._exdate.length&&r.push(zw("EXDATE",this._exdate,this.tzid())),r},t.prototype.toString=function(){return this.valueOf().join(`
|
||
`)},t.prototype.clone=function(){var r=new t(!!this._cache);return this._rrule.forEach(function(n){return r.rrule(n.clone())}),this._exrule.forEach(function(n){return r.exrule(n.clone())}),this._rdate.forEach(function(n){return r.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return r.exdate(new Date(n.getTime()))}),r},t}(Oe);function Ww(e,t){if(!(e instanceof Oe))throw new TypeError(String(e)+" is not RRule instance");Et(t.map(String),String(e))||t.push(e)}function Yw(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");Et(t.map(Number),Number(e))||(t.push(e),Bi(t))}function zw(e,t,r){var n=!r||r.toUpperCase()==="UTC",i=n?"".concat(e,":"):"".concat(e,";TZID=").concat(r,":"),a=t.map(function(o){return Fo(o.valueOf(),n)}).join(",");return"".concat(i).concat(a)}var oA={},Kw=oA;var sA={},jw=sA;var lA={},qw=lA;var uA={"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","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","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 card title 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","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","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"},Gw=uA;var cA={"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","View as board":"View as board","View as list":"View as list","View as table":"View as table","Board view":"Board view","Open as markdown":"Open as markdown","Open board settings":"Open board settings","Archive completed cards":"Archive completed cards","Something went wrong":"Something went wrong","You may wish to open as markdown and inspect or edit the file.":"You may wish to open as markdown and inspect or edit the file.","Are you sure you want to archive all completed cards on this board?":"Are you sure you want to archive all completed cards on this board?",Complete:"Complete",Archive:"Archive","Invalid Kanban file: problems parsing frontmatter":"Invalid Kanban file: problems parsing frontmatter","I don't know how to interpret this line:":"I don't know how to interpret this line:",Untitled:"Untitled","Note: No template plugins are currently enabled.":"Note: No template plugins are currently enabled.",default:"default","Search...":"Search...","New line trigger":"New line trigger","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lists.":"Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lists.","Shift + Enter":"Shift + Enter",Enter:"Enter","Prepend / append new cards":"Prepend / append new cards","This setting controls whether new cards are added to the beginning or end of the list.":"This setting controls whether new cards are added to the beginning or end of the list.",Prepend:"Prepend","Prepend (compact)":"Prepend (compact)",Append:"Append","These settings will take precedence over the default Kanban board settings.":"These settings will take precedence over the default Kanban board settings.","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.","Note template":"Note template","This template will be used when creating new notes from Kanban cards.":"This template will be used when creating new notes from Kanban cards.","No template":"No template","Note folder":"Note folder","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.","Default folder":"Default folder","List width":"List width","Expand lists to full width in list view":"Expand lists to full width in list view","Enter a number to set the list width in pixels.":"Enter a number to set the list width in pixels.","Maximum number of archived cards":"Maximum number of archived cards","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.","Display card checkbox":"Display card checkbox","When toggled, a checkbox will be displayed with each card":"When toggled, a checkbox will be displayed with each card","Reset to default":"Reset to default","Date & Time":"Date & Time","Date trigger":"Date trigger","When this is typed, it will trigger the date selector":"When this is typed, it will trigger the date selector","Time trigger":"Time trigger","When this is typed, it will trigger the time selector":"When this is typed, it will trigger the time selector","Date format":"Date format","This format will be used when saving dates in markdown.":"This format will be used when saving dates in markdown.","For more syntax, refer to":"For more syntax, refer to","format reference":"format reference","Your current syntax looks like this":"Your current syntax looks like this","Time format":"Time format","Date display format":"Date display format","This format will be used when displaying dates in Kanban cards.":"This format will be used when displaying dates in Kanban cards.","Show relative date":"Show relative date","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'. Relative dates will not be shown for dates from the Tasks and Dataview plugins.":"When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'. Relative dates will not be shown for dates from the Tasks and Dataview plugins.","Move dates to card footer":"Move dates to card footer","When toggled, dates will be displayed in the card's footer instead of the card's body.":"When toggled, dates will be displayed in the card's footer instead of the card's body.","Move tags to card footer":"Move tags to card footer","When toggled, tags will be displayed in the card's footer instead of the card's body.":"When toggled, tags will be displayed in the card's footer instead of the card's body.","Move task data to card footer":"Move task data to card footer","When toggled, task data (from the Tasks plugin) will be displayed in the card's footer instead of the card's body.":"When toggled, task data (from the Tasks plugin) will be displayed in the card's footer instead of the card's body.","Inline metadata position":"Inline metadata position","Controls where the inline metadata (from the Dataview plugin) will be displayed.":"Controls where the inline metadata (from the Dataview plugin) will be displayed.","Card body":"Card body","Card footer":"Card footer","Merge with linked page metadata":"Merge with linked page metadata","Hide card counts in list titles":"Hide card counts in list titles","When toggled, card counts are hidden from the list title":"When toggled, card counts are hidden from the list title","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 card title 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 card title when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title","Add archive date/time after card title":"Add archive date/time after card title","When toggled, the archived date/time will be added after the card title, e.g.- [ ] My card title 2021-05-14 10:00am. By default, it is inserted before the title.":"When toggled, the archived date/time will be added after the card title, e.g.- [ ] My card title 2021-05-14 10:00am. By default, it is inserted before the 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","Tag click action":"Tag click action","Search Kanban Board":"Search Kanban Board","Search Obsidian Vault":"Search Obsidian Vault","This setting controls whether clicking the tags displayed below the card title opens the Obsidian search or the Kanban board search.":"This setting controls whether clicking the tags displayed below the card title opens the Obsidian search or the Kanban board search.","Tag colors":"Tag colors","Set colors for tags displayed in cards.":"Set colors for tags displayed in cards.","Linked Page Metadata":"Linked Page Metadata","Inline Metadata":"Inline 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","Background color":"Background color",Tag:"Tag","Text color":"Text color","Date is":"Date is",Today:"Today","After now":"After now","Before now":"Before now","Between now and":"Between now and","Display date colors":"Display date colors","Set colors for dates displayed in cards based on the rules below.":"Set colors for dates displayed in cards based on the rules below.","Add date color":"Add date color","Metadata key":"Metadata key","Display label":"Display label","Hide label":"Hide label","Drag to rearrange":"Drag to rearrange",Delete:"Delete","Add key":"Add key","Add tag":"Add tag","Field contains markdown":"Field contains markdown","Tag sort order":"Tag sort order","Set an explicit sort order for the specified tags.":"Set an explicit sort order for the specified tags.","Add tag color":"Add tag color",List:"List",Card:"Card",Date:"Date",Tags:"Tags",Priority:"Priority",Start:"Start",Created:"Created",Scheduled:"Scheduled",Due:"Due",Cancelled:"Cancelled",Recurrence:"Recurrence","Depends on":"Depends on",ID:"ID","More options":"More options",Cancel:"Cancel",Done:"Done",Save:"Save",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","Add label":"Add label","Move to top":"Move to top","Move to bottom":"Move to bottom","Move to list":"Move to list","Enter list title...":"Enter list title...","Mark cards in this list as complete":"Mark cards in this list as complete","Add list":"Add list","Add a list":"Add a list","Move list":"Move list",Close:"Close","Are you sure you want to delete this list and all its cards?":"Are you sure you want to delete this list and all its cards?","Yes, delete list":"Yes, delete list","Are you sure you want to archive this list and all its cards?":"Are you sure you want to archive this list and all its cards?","Yes, archive list":"Yes, archive list","Are you sure you want to archive all cards in this list?":"Are you sure you want to archive all cards in this list?","Yes, archive cards":"Yes, archive cards","Edit list":"Edit list","Archive cards":"Archive cards","Archive list":"Archive list","Delete list":"Delete list","Insert list before":"Insert list before","Insert list after":"Insert list after","Sort by card text":"Sort by card text","Sort by date":"Sort by date","Sort by tags":"Sort by tags","Sort by":"Sort by","Unable to find":"Unable to find","Open in default app":"Open in default app",Submit:"Submit"},yh=cA;var dA={},Jw=dA;var fA={},Zw=fA;var hA={},Qw=hA;var mA={},Xw=mA;var pA={"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","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","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 card title 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"},eb=pA;var gA={"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","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","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","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 card title 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","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"},tb=gA;var yA={"Open as kanban board":"\uCE78\uBC18 \uBCF4\uB4DC\uB85C \uC5F4\uAE30","Create new board":"\uC0C8 \uBCF4\uB4DC \uB9CC\uB4E4\uAE30","Archive completed cards in active board":"\uD65C\uC131 \uBCF4\uB4DC\uC5D0\uC11C \uC644\uB8CC\uB41C \uCE74\uB4DC \uBCF4\uAD00","Error: current file is not a Kanban board":"\uC5D0\uB7EC: \uD604\uC7AC \uD30C\uC77C\uC740 \uCE78\uBC18 \uBCF4\uB4DC\uAC00 \uC544\uB2D9\uB2C8\uB2E4.","Convert empty note to Kanban":"\uBE48 \uB178\uD2B8\uB97C \uCE78\uBC18 \uBCF4\uB4DC\uB85C \uBCC0\uD658","Error: cannot create Kanban, the current note is not empty":"\uC5D0\uB7EC: \uCE78\uBC18\uC744 \uC0DD\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uD604\uC7AC \uB178\uD2B8\uAC00 \uBE44\uC5B4\uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","New kanban board":"\uC0C8 \uBCF4\uB4DC \uB9CC\uB4E4\uAE30","Untitled Kanban":"\uC774\uB984 \uC5C6\uB294 \uBCF4\uB4DC","Toggle between Kanban and markdown mode":"\uCE78\uBC18 \uBAA8\uB4DC\uC640 \uB9C8\uD06C\uB2E4\uC6B4 \uBAA8\uB4DC \uC804\uD658","Open as markdown":"\uB9C8\uD06C\uB2E4\uC6B4\uC73C\uB85C \uC5F4\uAE30","Open board settings":"\uBCF4\uB4DC \uC124\uC815 \uC5F4\uAE30","Archive completed cards":"\uC644\uB8CC\uB41C \uCE74\uB4DC \uBCF4\uAD00","Something went wrong":"\uC54C \uC218 \uC5C6\uB294 \uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.","You may wish to open as markdown and inspect or edit the file.":"\uB9C8\uD06C\uB2E4\uC6B4\uC73C\uB85C \uC5F4\uC5B4 \uD30C\uC77C\uC744 \uAC80\uC0AC\uD558\uAC70\uB098 \uD3B8\uC9D1\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Are you sure you want to archive all completed cards on this board?":"\uC815\uB9D0 \uC774 \uBCF4\uB4DC\uC758 \uBAA8\uB4E0 \uC644\uB8CC\uB41C \uCE74\uB4DC\uB97C \uBCF4\uAD00\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",Complete:"\uC644\uB8CC\uB428",Archive:"\uBCF4\uAD00\uB428","Invalid Kanban file: problems parsing frontmatter":"\uC798\uBABB\uB41C \uCE78\uBC18 \uD30C\uC77C: \uD504\uB860\uD2B8\uB9E4\uD130 \uD30C\uC2F1 \uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.","I don't know how to interpret this line:":"\uC774 \uC904\uC744 \uD574\uC11D\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4:",Untitled:"\uC81C\uBAA9 \uC5C6\uC74C","Note: No template plugins are currently enabled.":"\uB178\uD2B8: \uD604\uC7AC \uD15C\uD50C\uB9BF \uD50C\uB7EC\uADF8\uC778\uC774 \uD65C\uC131\uD654\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",default:"\uAE30\uBCF8","Search...":"\uAC80\uC0C9\uD558\uAE30...","New line trigger":"\uC0C8 \uC904 \uB9CC\uB4E4\uAE30","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lists.":"Enter \uB610\uB294 Shift + Enter \uC911 \uC5B4\uB290 \uB2E8\uCD95\uD0A4\uB85C \uC0C8 \uC904\uB85C \uB118\uC5B4\uAC08\uC9C0 \uC120\uD0DD\uD569\uB2C8\uB2E4. \uC120\uD0DD\uD558\uC9C0 \uC54A\uC740 \uB2E8\uCD95\uD0A4 (\uB9CC\uC57D Enter\uB97C \uC120\uD0DD\uD588\uB2E4\uBA74 Shift + Enter) \uB294 \uC9C4\uD589\uC911\uC778 \uCE74\uB4DC \uB610\uB294 \uBAA9\uB85D\uC758 \uC0DD\uC131 \uBC0F \uC218\uC815\uC744 \uC644\uB8CC\uD569\uB2C8\uB2E4.","Shift + Enter":"Shift + Enter",Enter:"Enter","Prepend / append new cards":"\uC0C8\uB85C\uC6B4 \uCE74\uB4DC\uB97C \uCD94\uAC00\uD560 \uC704\uCE58","This setting controls whether new cards are added to the beginning or end of the list.":"\uC0C8\uB85C\uC6B4 \uCE74\uB4DC\uB97C \uCD94\uAC00\uD558\uB294 \uBC84\uD2BC\uC774 \uB9E8 \uC704\uC5D0 \uCD94\uAC00\uB420\uC9C0 \uB9E8 \uC544\uB798\uC5D0 \uCD94\uAC00\uB420\uC9C0 \uC124\uC815\uD569\uB2C8\uB2E4.",Prepend:"\uC0C1\uB2E8","Prepend (compact)":"\uC0C1\uB2E8 (\uC791\uC740 \uBC84\uD2BC)",Append:"\uD558\uB2E8","These settings will take precedence over the default Kanban board settings.":"\uC774 \uC124\uC815\uC740 \uAE30\uBCF8 \uCE78\uBC18 \uBCF4\uB4DC \uC124\uC815\uBCF4\uB2E4 \uC6B0\uC120\uD569\uB2C8\uB2E4.","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"\uAE30\uBCF8 \uCE78\uBC18 \uBCF4\uB4DC \uC124\uC815\uC744 \uC124\uC815\uD569\uB2C8\uB2E4. \uC124\uC815\uC740 \uBCF4\uB4DC\uBCC4\uB85C \uC7AC\uC815\uC758\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Note template":"\uB178\uD2B8 \uD15C\uD50C\uB9BF","This template will be used when creating new notes from Kanban cards.":"\uC774 \uD15C\uD50C\uB9BF\uC740 \uCE78\uBC18 \uCE74\uB4DC\uC5D0\uC11C \uC0C8 \uB178\uD2B8\uB97C \uB9CC\uB4E4 \uB54C \uC0AC\uC6A9\uB429\uB2C8\uB2E4.","No template":"\uD15C\uD50C\uB9BF \uC5C6\uC74C","Note folder":"\uB178\uD2B8 \uD3F4\uB354","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"\uCE74\uB4DC\uC5D0\uC11C \uB9CC\uB4E0 \uB178\uD2B8\uB294 \uC774 \uD3F4\uB354\uC5D0 \uC800\uC7A5\uB429\uB2C8\uB2E4. \uB9CC\uC57D \uBE44\uC5B4\uC788\uB2E4\uBA74, \uAE30\uBCF8 \uC704\uCE58\uC5D0 \uC800\uC7A5\uB429\uB2C8\uB2E4.","Default folder":"\uAE30\uBCF8 \uD3F4\uB354","List width":"\uBAA9\uB85D \uB108\uBE44","Enter a number to set the list width in pixels.":"\uD53D\uC140 \uB2E8\uC704\uB85C \uBAA9\uB85D\uC758 \uB108\uBE44\uB97C \uC124\uC815\uD569\uB2C8\uB2E4.","Maximum number of archived cards":"\uBCF4\uAD00\uB41C \uCE74\uB4DC\uC758 \uCD5C\uB300 \uC218","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.":"\uBCF4\uAD00\uB41C \uCE74\uB4DC\uB294 \uB9C8\uD06C\uB2E4\uC6B4 \uBAA8\uB4DC\uC5D0\uC11C \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uC124\uC815\uC740 \uD55C\uB3C4\uC5D0 \uB3C4\uB2EC\uD558\uBA74 \uC774\uC804 \uCE74\uB4DC\uB97C \uC81C\uAC70\uD558\uAE30 \uC2DC\uC791\uD569\uB2C8\uB2E4. \uC774 \uAC12\uC744 -1\uB85C \uC124\uC815\uD558\uBA74 \uBCF4\uAD00\uD568\uC774 \uBB34\uD55C\uC815\uC73C\uB85C \uCEE4\uC9C8 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Display card checkbox":"\uCE74\uB4DC\uC5D0 \uCCB4\uD06C\uBC15\uC2A4 \uD45C\uC2DC","When toggled, a checkbox will be displayed with each card":"\uD65C\uC131\uD654\uD558\uBA74 \uAC01 \uCE74\uB4DC\uC5D0 \uCCB4\uD06C\uBC15\uC2A4\uAC00 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","Reset to default":"\uAE30\uBCF8\uAC12\uC73C\uB85C \uCD08\uAE30\uD654","Date & Time":"\uB0A0\uC9DC \uBC0F \uC2DC\uAC04","Date trigger":"\uB0A0\uC9DC \uC120\uD0DD\uAE30 \uD2B8\uB9AC\uAC70","When this is typed, it will trigger the date selector":"\uC774 \uD14D\uC2A4\uD2B8\uB97C \uC785\uB825\uD558\uBA74 \uB0A0\uC9DC \uC120\uD0DD\uAE30\uAC00 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","Time trigger":"\uC2DC\uAC04 \uC120\uD0DD\uAE30 \uD2B8\uB9AC\uAC70","When this is typed, it will trigger the time selector":"\uC774 \uD14D\uC2A4\uD2B8\uB97C \uC785\uB825\uD558\uBA74 \uC2DC\uAC04 \uC120\uD0DD\uAE30\uAC00 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","Date format":"\uB0A0\uC9DC \uD615\uC2DD","This format will be used when saving dates in markdown.":"\uC774 \uD615\uC2DD\uC740 \uB9C8\uD06C\uB2E4\uC6B4\uC5D0\uC11C \uB0A0\uC9DC\uB97C \uC800\uC7A5\uD560 \uB54C \uC0AC\uC6A9\uB429\uB2C8\uB2E4.","For more syntax, refer to":"\uC790\uC138\uD55C \uBB38\uBC95\uC740 \uB2E4\uC74C\uC744 \uCC38\uC870\uD558\uC138\uC694.","format reference":"\uD615\uC2DD \uCC38\uC870","Your current syntax looks like this":"\uD604\uC7AC \uBB38\uBC95\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4.","Time format":"\uC2DC\uAC04 \uD615\uC2DD","Date display format":"\uB0A0\uC9DC \uD45C\uC2DC \uD615\uC2DD","This format will be used when displaying dates in Kanban cards.":"\uC774 \uD615\uC2DD\uC740 \uCE74\uBC18 \uBCF4\uB4DC\uC5D0\uC11C \uB0A0\uC9DC\uB97C \uD45C\uC2DC\uD560\uB54C \uC0AC\uC6A9\uB429\uB2C8\uB2E4.","Show relative date":"\uB0A0\uC9DC\uB97C \uC0C1\uB300\uC801\uC73C\uB85C \uD45C\uC2DC","Hide card counts in list titles":"\uBAA9\uB85D \uC81C\uBAA9\uC5D0 \uCE74\uB4DC \uC218 \uD45C\uC2DC \uC228\uAE30\uAE30","When toggled, card counts are hidden from the list title":"\uD65C\uC131\uD654\uD558\uBA74 \uBAA9\uB85D \uC81C\uBAA9\uC5D0 \uCD1D \uCE74\uB4DC \uC218\uAC00 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","Link dates to daily notes":"\uC77C\uC77C \uB178\uD2B8\uC5D0 \uB0A0\uC9DC \uC5F0\uACB0","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"\uD65C\uC131\uD654\uD558\uBA74 \uB0A0\uC9DC\uAC00 \uC77C\uC77C \uB178\uD2B8\uC5D0 \uC5F0\uACB0\uB429\uB2C8\uB2E4. \uC608: [[2021-04-26]]","Add date and time to archived cards":"\uBCF4\uAD00\uB41C \uCE74\uB4DC\uC5D0 \uB0A0\uC9DC\uC640 \uC2DC\uAC04 \uCD94\uAC00","When toggled, the current date and time will be added to the card title when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"\uD65C\uC131\uD654\uD558\uBA74 \uCE74\uB4DC\uAC00 \uBCF4\uAD00\uB420 \uB54C \uD604\uC7AC \uB0A0\uC9DC\uC640 \uC2DC\uAC04\uC774 \uCE74\uB4DC \uC81C\uBAA9\uC5D0 \uCD94\uAC00\uB429\uB2C8\uB2E4. \uC608: - [ ] 2021-05-14 10:00am \uB0B4 \uCE74\uB4DC \uC81C\uBAA9","Add archive date/time after card title":"\uCE74\uB4DC \uC81C\uBAA9 \uB4A4\uC5D0 \uBCF4\uAD00\uB41C \uB0A0\uC9DC/\uC2DC\uAC04 \uCD94\uAC00","When toggled, the archived date/time will be added after the card title, e.g.- [ ] My card title 2021-05-14 10:00am. By default, it is inserted before the title.":"\uD65C\uC131\uD654\uD558\uBA74 \uCE74\uB4DC \uC81C\uBAA9 \uB4A4\uC5D0 \uBCF4\uAD00\uB41C \uB0A0\uC9DC/\uC2DC\uAC04\uC774 \uCD94\uAC00\uB429\uB2C8\uB2E4. \uC608: - [ ] \uB0B4 \uCE74\uB4DC \uC81C\uBAA9 2021-05-14 10:00am. \uAE30\uBCF8\uC801\uC73C\uB85C \uC81C\uBAA9 \uC55E\uC5D0 \uC0BD\uC785\uB429\uB2C8\uB2E4.","Archive date/time separator":"\uBCF4\uAD00\uB420 \uCE74\uB4DC\uC758 \uB0A0\uC9DC/\uC2DC\uAC04 \uAD6C\uBD84\uC790","This will be used to separate the archived date/time from the title":"\uC774 \uAD6C\uBD84\uC790\uB294 \uCE74\uB4DC \uC81C\uBAA9\uACFC \uBCF4\uAD00\uB41C \uB0A0\uC9DC/\uC2DC\uAC04\uC744 \uAD6C\uBD84\uD558\uB294\uB370 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.","Archive date/time format":"\uBCF4\uAD00\uB41C \uCE74\uB4DC\uC758 \uB0A0\uC9DC/\uC2DC\uAC04 \uD615\uC2DD","Kanban Plugin":"\uCE78\uBC18 \uD50C\uB7EC\uADF8\uC778","Tag colors":"\uD0DC\uADF8 \uC0C9\uC0C1 \uD45C\uC2DC","Set colors for tags displayed in cards.":"\uCE74\uB4DC \uC81C\uBAA9 \uC544\uB798\uC5D0 \uD45C\uC2DC\uB418\uB294 \uD0DC\uADF8\uC758 \uC0C9\uC0C1\uC744 \uC124\uC815\uD569\uB2C8\uB2E4.","Linked Page Metadata":"\uB9C1\uD06C\uB41C \uD398\uC774\uC9C0 \uBA54\uD0C0\uB370\uC774\uD130","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.":"\uCE74\uB4DC \uB0B4\uC5D0\uC11C \uCCAB \uBC88\uC9F8\uB85C \uB9C1\uD06C\uB41C \uB178\uD2B8\uC758 \uBA54\uD0C0\uB370\uC774\uD130\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4. \uC544\uB798\uC5D0 \uD45C\uC2DC\uD560 \uBA54\uD0C0\uB370\uC774\uD130 \uD0A4\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4. \uC120\uD0DD\uC801\uC73C\uB85C \uB808\uC774\uBE14\uC744 \uC81C\uACF5\uD560 \uC218 \uC788\uC73C\uBA70, \uB808\uC774\uBE14\uC744 \uC644\uC804\uD788 \uC228\uAE38 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Board Header Buttons":"\uBCF4\uB4DC \uD5E4\uB354 \uBC84\uD2BC","Calendar: first day of week":"\uB2EC\uB825: \uCCAB \uBC88\uC9F8 \uC694\uC77C","Override which day is used as the start of the week":"\uD55C \uC8FC\uC758 \uC2DC\uC791\uC73C\uB85C \uC0AC\uC6A9\uB418\uB294 \uC694\uC77C\uC744 \uC7AC\uC815\uC758\uD569\uB2C8\uB2E4.",Sunday:"\uC77C\uC694\uC77C",Monday:"\uC6D4\uC694\uC77C",Tuesday:"\uD654\uC694\uC77C",Wednesday:"\uC218\uC694\uC77C",Thursday:"\uBAA9\uC694\uC77C",Friday:"\uAE08\uC694\uC77C",Saturday:"\uD1A0\uC694\uC77C","Background color":"\uBC30\uACBD \uC0C9\uC0C1",Tag:"\uD0DC\uADF8","Text color":"\uAE00\uC790 \uC0C9\uC0C1","Date is":"\uB0A0\uC9DC\uB294",Today:"\uC624\uB298","After now":"\uC774\uD6C4","Before now":"\uC774\uC804","Between now and":"\uACFC\uC758 \uC0AC\uC774","Display date colors":"\uB0A0\uC9DC \uC0C9\uC0C1 \uD45C\uC2DC","Set colors for dates displayed in cards based on the rules below.":"\uC544\uB798 \uCE74\uB4DC\uC5D0 \uD45C\uC2DC\uB41C \uB0A0\uC9DC\uC758 \uC0C9\uC0C1\uC744 \uC544\uB798\uC758 \uADDC\uCE59\uC5D0 \uB530\uB77C \uC124\uC815\uD558\uC138\uC694.","Add date color":"\uB0A0\uC9DC \uC0C9\uC0C1 \uCD94\uAC00","Metadata key":"\uBA54\uD0C0\uB370\uC774\uD130 \uD0A4","Display label":"\uD45C\uC2DC\uB420 \uB77C\uBCA8","Hide label":"\uB77C\uBCA8 \uC228\uAE30\uAE30","Drag to rearrange":"\uB4DC\uB798\uADF8\uD558\uC5EC \uC7AC\uC815\uB82C",Delete:"\uC0AD\uC81C","Add key":"\uD0A4 \uCD94\uAC00","Field contains markdown":"\uD544\uB4DC\uC5D0 \uB9C8\uD06C\uB2E4\uC6B4\uC774 \uD3EC\uD568\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.","Add tag color":"\uD0DC\uADF8 \uC0C9\uC0C1 \uCD94\uAC00","More options":"\uB354 \uB9CE\uC740 \uC635\uC158",Cancel:"\uCDE8\uC18C",today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",tomorrow:"\uB0B4\uC77C","Change date":"\uB0A0\uC9DC \uBCC0\uACBD","Change time":"\uC2DC\uAC04 \uBCC0\uACBD","Card title...":"\uCE74\uB4DC \uC81C\uBAA9...","Add card":"\uCE74\uB4DC \uCD94\uAC00","Add a card":"\uCE74\uB4DC \uCD94\uAC00","Edit card":"\uCE74\uB4DC \uC218\uC815","New note from card":"\uCE74\uB4DC\uC5D0\uC11C \uC0C8 \uB178\uD2B8 \uB9CC\uB4E4\uAE30","Archive card":"\uCE74\uB4DC \uBCF4\uAD00","Delete card":"\uCE74\uB4DC \uC0AD\uC81C","Edit date":"\uB0A0\uC9DC \uC218\uC815","Add date":"\uB0A0\uC9DC \uCD94\uAC00","Remove date":"\uB0A0\uC9DC \uC0AD\uC81C","Edit time":"\uC2DC\uAC04 \uC218\uC815","Add time":"\uC2DC\uAC04 \uCD94\uAC00","Remove time":"\uC2DC\uAC04 \uC0AD\uC81C","Duplicate card":"\uCE74\uB4DC \uBCF5\uC81C","Split card":"\uCE74\uB4DC \uBD84\uD560","Copy link to card":"\uCE74\uB4DC \uB9C1\uD06C \uBCF5\uC0AC","Insert card before":"\uCE74\uB4DC \uC704\uC5D0 \uC0BD\uC785","Insert card after":"\uCE74\uB4DC \uC544\uB798\uC5D0 \uC0BD\uC785","Add label":"\uB77C\uBCA8 \uCD94\uAC00","Move to top":"\uB9E8 \uC704\uB85C \uC774\uB3D9","Move to bottom":"\uB9E8 \uC544\uB798\uB85C \uC774\uB3D9","Enter list title...":"\uBAA9\uB85D \uC81C\uBAA9 \uC785\uB825...","Mark cards in this list as complete":"\uC774 \uBAA9\uB85D\uC758 \uCE74\uB4DC\uB97C \uC644\uB8CC\uB428\uC73C\uB85C \uD45C\uC2DC","Add list":"\uBAA9\uB85D \uCD94\uAC00","Add a list":"\uBAA9\uB85D \uCD94\uAC00","Move list":"\uBAA9\uB85D \uC774\uB3D9",Close:"\uB2EB\uAE30","Are you sure you want to delete this list and all its cards?":"\uC815\uB9D0\uB85C \uC774 \uBAA9\uB85D\uACFC \uADF8 \uC548\uC758 \uBAA8\uB4E0 \uCE74\uB4DC\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?","Yes, delete list":"\uB124, \uBAA9\uB85D\uC744 \uC0AD\uC81C\uD569\uB2C8\uB2E4.","Are you sure you want to archive this list and all its cards?":"\uC815\uB9D0\uB85C \uC774 \uBAA9\uB85D\uACFC \uADF8 \uC548\uC758 \uBAA8\uB4E0 \uCE74\uB4DC\uB97C \uBCF4\uAD00\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?","Yes, archive list":"\uB124, \uBAA8\uB450 \uBCF4\uAD00\uD569\uB2C8\uB2E4.","Are you sure you want to archive all cards in this list?":"\uC815\uB9D0\uB85C \uC774 \uBAA9\uB85D\uC758 \uBAA8\uB4E0 \uCE74\uB4DC\uB97C \uBCF4\uAD00\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?","Yes, archive cards":"\uB124, \uBAA8\uB450 \uBCF4\uAD00\uD569\uB2C8\uB2E4.","Edit list":"\uBAA9\uB85D \uC218\uC815","Archive cards":"\uCE74\uB4DC \uBCF4\uAD00","Archive list":"\uBAA9\uB85D \uBCF4\uAD00","Delete list":"\uBAA9\uB85D \uC0AD\uC81C","Insert list before":"\uBAA9\uB85D\uC744 \uC67C\uCABD\uC5D0 \uC0DD\uC131","Insert list after":"\uBAA9\uB85D\uC744 \uC624\uB978\uCABD\uC5D0 \uC0DD\uC131","Sort by card text":"\uB0B4\uC6A9\uC73C\uB85C \uC815\uB82C","Sort by date":"\uB0A0\uC9DC\uC21C\uC73C\uB85C \uC815\uB82C","Unable to find":"\uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Open in default app":"\uAE30\uBCF8 \uC571\uC73C\uB85C \uC5F4\uAE30",Submit:"\uD655\uC778"},nb=yA;var vA={},rb=vA;var wA={},ib=wA;var bA={},ab=bA;var DA={},ob=DA;var SA={"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","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","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","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 card title 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","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"},sb=SA;var EA={},lb=EA;var kA={"Open as kanban board":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u043A Kanban-\u0434\u043E\u0441\u043A\u0443","Create new board":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0434\u043E\u0441\u043A\u0443","Archive completed cards in active board":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0432 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0439 \u0434\u043E\u0441\u043A\u0435","Error: current file is not a Kanban board":"\u041E\u0448\u0438\u0431\u043A\u0430: \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u0444\u0430\u0439\u043B \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F Kanban-\u0434\u043E\u0441\u043A\u043E\u0439","Convert empty note to Kanban":"\u041A\u043E\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0443\u0441\u0442\u0443\u044E \u0437\u0430\u043C\u0435\u0442\u043A\u0443 \u0432 Kanban","Error: cannot create Kanban, the current note is not empty":"\u041E\u0448\u0438\u0431\u043A\u0430: \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0437\u0434\u0430\u0442\u044C Kanban, \u0442\u0435\u043A\u0443\u0449\u0430\u044F \u0437\u0430\u043C\u0435\u0442\u043A\u0430 \u043D\u0435 \u043F\u0443\u0441\u0442\u0430","New kanban board":"\u041D\u043E\u0432\u0430\u044F Kanban-\u0434\u043E\u0441\u043A\u0430","Untitled Kanban":"\u0411\u0435\u0437\u044B\u043C\u044F\u043D\u043D\u0430\u044F Kanban-\u0434\u043E\u0441\u043A\u0430","Toggle between Kanban and markdown mode":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043C\u0435\u0436\u0434\u0443 Kanban \u0438 markdown \u0440\u0435\u0436\u0438\u043C\u0430\u043C\u0438","Open as markdown":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u043A markdown","Open board settings":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0434\u043E\u0441\u043A\u0438","Archive completed cards":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438","Something went wrong":"\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A","You may wish to open as markdown and inspect or edit the file.":"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0444\u0430\u0439\u043B \u043A\u0430\u043A markdown \u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0435\u0433\u043E.","Are you sure you want to archive all completed cards on this board?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u0451\u043D\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0432 \u044D\u0442\u043E\u0439 \u0434\u043E\u0441\u043A\u0435?",Complete:"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043E",Archive:"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C","Invalid Kanban file: problems parsing frontmatter":"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0444\u0430\u0439\u043B Kanban: \u043D\u0435 \u0443\u0434\u0430\u0451\u0442\u0441\u044F \u043F\u0430\u0440\u0441\u0438\u043D\u0433 frontmatter","I don't know how to interpret this line:":"\u042F \u043D\u0435 \u0437\u043D\u0430\u044E, \u043A\u0430\u043A \u0438\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044D\u0442\u0443 \u0441\u0442\u0440\u043E\u043A\u0443:",Untitled:"\u0411\u0435\u0437 \u0438\u043C\u0435\u043D\u0438","Note: No template plugins are currently enabled.":"\u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u043D\u0438 \u043E\u0434\u0438\u043D \u043F\u043B\u0430\u0433\u0438\u043D \u0448\u0430\u0431\u043B\u043E\u043D\u0430 \u043D\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D.",default:"\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","Search...":"\u041D\u0430\u0439\u0442\u0438...","New line trigger":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440 \u043D\u043E\u0432\u043E\u0439 \u0441\u0442\u0440\u043E\u043A\u0438","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lists.":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435, \u0431\u0443\u0434\u0435\u0442 \u043B\u0438 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u043E\u0432\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Enter \u0438\u043B\u0438 Shift+Enter. \u041F\u0440\u043E\u0442\u0438\u0432\u043E\u043F\u043E\u043B\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0432\u044B \u0432\u044B\u0431\u0435\u0440\u0435\u0442\u0435, \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A \u0438 \u0441\u043F\u0438\u0441\u043A\u043E\u0432.","Shift + Enter":"Shift + Enter",Enter:"Enter","Prepend / append new cards":"\u041F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u043D\u043E\u0432\u044B\u0445 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A","This setting controls whether new cards are added to the beginning or end of the list.":"\u042D\u0442\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0443\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442 \u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u043C \u043D\u043E\u0432\u044B\u0445 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A, \u0432 \u043D\u0430\u0447\u0430\u043B\u0435 \u0438\u043B\u0438 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u043F\u0438\u0441\u043A\u0430.",Prepend:"\u0412 \u043D\u0430\u0447\u0430\u043B\u0435","Prepend (compact)":"\u0412 \u043D\u0430\u0447\u0430\u043B\u0435 (\u043A\u043E\u043C\u043F\u0430\u043A\u0442\u043D\u043E)",Append:"\u0412 \u043A\u043E\u043D\u0446\u0435","These settings will take precedence over the default Kanban board settings.":"\u042D\u0442\u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u043C\u0435\u0442\u044C \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u043D\u0430\u0434 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u043C\u0438 \u0434\u043E\u0441\u043A\u0438 Kanban \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E.","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0434\u043E\u0441\u043A\u0438 Kanban \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E. \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0439 \u0434\u043E\u0441\u043A\u0438.","Note template":"\u0428\u0430\u0431\u043B\u043E\u043D \u0437\u0430\u043C\u0435\u0442\u043A\u0438","This template will be used when creating new notes from Kanban cards.":"\u042D\u0442\u043E\u0442 \u0448\u0430\u0431\u043B\u043E\u043D \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0438 \u043D\u043E\u0432\u044B\u0445 \u0437\u0430\u043C\u0435\u0442\u043E\u043A \u0438\u0437 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A Kanban.","No template":"\u041D\u0435\u0442 \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Note folder":"\u0414\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F \u0437\u0430\u043C\u0435\u0442\u043E\u043A","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"\u0412 \u044D\u0442\u0443 \u043F\u0430\u043F\u043A\u0443 \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u043C\u0435\u0449\u0435\u043D\u044B \u0437\u0430\u043C\u0435\u0442\u043A\u0438, \u0441\u043E\u0437\u0434\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A Kanban. \u0415\u0441\u043B\u0438 \u043F\u043E\u043B\u0435 \u043F\u0443\u0441\u0442\u043E\u0435, \u043E\u043D\u0438 \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u043C\u0435\u0449\u0435\u043D\u044B \u0432 \u043F\u0430\u043F\u043A\u0443 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430.","Default folder":"\u0414\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","List width":"\u0428\u0438\u0440\u0438\u043D\u0430 \u0441\u043F\u0438\u0441\u043A\u0430","Enter a number to set the list width in pixels.":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0448\u0438\u0440\u0438\u043D\u0443 \u0441\u043F\u0438\u0441\u043A\u0430 \u0432 \u043F\u0438\u043A\u0441\u0435\u043B\u044F\u0445.","Maximum number of archived cards":"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A","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.":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u043C\u043E\u0436\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 markdown. \u042D\u0442\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043D\u0430\u0447\u043D\u0435\u0442 \u0443\u0434\u0430\u043B\u044F\u0442\u044C \u0441\u0442\u0430\u0440\u044B\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u043F\u043E\u0441\u043B\u0435 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u044F \u043B\u0438\u043C\u0438\u0442\u0430. \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u044D\u0442\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043D\u0430 -1 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0430\u0440\u0445\u0438\u0432\u0443 \u0434\u043E\u0441\u043A\u0438 \u0440\u0430\u0441\u0442\u0438 \u0431\u0435\u0441\u043A\u043E\u043D\u0435\u0447\u043D\u043E.","Display card checkbox":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u0444\u043B\u0430\u0436\u043E\u043A \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438","When toggled, a checkbox will be displayed with each card":"\u041A\u043E\u0433\u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0439 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0431\u0443\u0434\u0435\u0442 \u043F\u043E\u043A\u0430\u0437\u0430\u043D \u0444\u043B\u0430\u0436\u043E\u043A","Reset to default":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","Date & Time":"\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F","Date trigger":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440 \u0434\u0430\u0442\u044B","When this is typed, it will trigger the date selector":"\u0412\u0432\u043E\u0434 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u0432\u044B\u0431\u043E\u0440 \u0434\u0430\u0442\u044B","Time trigger":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440 \u0432\u0440\u0435\u043C\u0435\u043D\u0438","When this is typed, it will trigger the time selector":"\u0412\u0432\u043E\u0434 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u0432\u044B\u0431\u043E\u0440 \u0432\u0440\u0435\u043C\u0435\u043D\u0438","Date format":"\u0424\u043E\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u044B","This format will be used when saving dates in markdown.":"\u042D\u0442\u043E\u0442 \u0444\u043E\u0440\u043C\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u043F\u0440\u0438 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0438 \u0434\u0430\u0442 \u0432 markdown.","For more syntax, refer to":"\u041F\u043E\u043B\u043D\u044B\u0439 \u0441\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0441 \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043D\u0430","format reference":"\u0441\u043F\u0440\u0430\u0432\u043A\u0430 \u043F\u043E \u0444\u043E\u0440\u043C\u0430\u0442\u0443","Your current syntax looks like this":"\u0412\u0430\u0448 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u0441\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0441 \u0432\u044B\u0433\u043B\u044F\u0434\u0438\u0442 \u0442\u0430\u043A","Time format":"\u0424\u043E\u0440\u043C\u0430\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438","Date display format":"\u0424\u043E\u0440\u043C\u0430\u0442 \u043F\u043E\u043A\u0430\u0437\u0430 \u0434\u0430\u0442\u044B","This format will be used when displaying dates in Kanban cards.":"\u042D\u0442\u043E\u0442 \u0444\u043E\u0440\u043C\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u043F\u0440\u0438 \u043F\u043E\u043A\u0430\u0437\u0435 \u0434\u0430\u0442 \u0432 Kanban-\u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0430\u0445.","Show relative date":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043E\u0442\u043D\u043E\u0441\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0434\u0430\u0442\u0443","Hide card counts in list titles":"\u0421\u043A\u0440\u044B\u0442\u044C \u0441\u0447\u0451\u0442\u0447\u0438\u043A\u0438 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A \u0432 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430\u0445 \u0441\u043F\u0438\u0441\u043A\u0430","When toggled, card counts are hidden from the list title":"\u041A\u043E\u0433\u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u0441\u0447\u0451\u0442\u0447\u0438\u043A\u0438 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A \u0441\u043A\u0440\u044B\u0442\u044B \u0432 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430\u0445 \u0441\u043F\u0438\u0441\u043A\u0430","Link dates to daily notes":"\u0421\u0432\u044F\u0437\u044B\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u044B \u0441 \u0435\u0436\u0435\u0434\u043D\u0435\u0432\u043D\u044B\u043C\u0438 \u0437\u0430\u043C\u0435\u0442\u043A\u0430\u043C\u0438","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"\u041A\u043E\u0433\u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u0434\u0430\u0442\u044B \u0431\u0443\u0434\u0443\u0442 \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0435\u0436\u0435\u0434\u043D\u0435\u0432\u043D\u044B\u0435 \u0437\u0430\u043C\u0435\u0442\u043A\u0438. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, [[2021-04-26]]","Add date and time to archived cards":"\u0414\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u0434\u0430\u0442\u0443 \u0438 \u0432\u0440\u0435\u043C\u044F \u043A \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0430\u043C","When toggled, the current date and time will be added to the card title when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"\u041A\u043E\u0433\u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u0431\u0443\u0434\u0443\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u043A \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0443 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u043E\u043D\u0430 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, - [ ] 2021-05-14 10:00am \u041C\u043E\u0439 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438","Add archive date/time after card title":"\u0414\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u0434\u0430\u0442\u0443/\u0432\u0440\u0435\u043C\u044F \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438","When toggled, the archived date/time will be added after the card title, e.g.- [ ] My card title 2021-05-14 10:00am. By default, it is inserted before the title.":"\u041A\u043E\u0433\u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, - [ ] \u041C\u043E\u0439 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 2021-05-14 10:00am. \u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0435\u0440\u0435\u0434 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u043E\u043C.","Archive date/time separator":"\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u044C \u0434\u0430\u0442\u044B/\u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F","This will be used to separate the archived date/time from the title":"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0434\u043B\u044F \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u044F \u0434\u0430\u0442\u044B/\u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043E\u0442 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430","Archive date/time format":"\u0424\u043E\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u044B/\u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F","Kanban Plugin":"\u041F\u043B\u0430\u0433\u0438\u043D Kanban","Tag colors":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u0446\u0432\u0435\u0442\u0430 \u043C\u0435\u0442\u043E\u043A","Set colors for tags displayed in cards.":"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442\u0430 \u0434\u043B\u044F \u043C\u0435\u0442\u043E\u043A \u043F\u043E\u0434 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430\u043C\u0438 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A.","Linked Page Metadata":"\u041C\u0435\u0442\u0430\u0434\u0430\u043D\u043D\u044B\u0435 \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0445 \u0441\u0442\u0440\u0430\u043D\u0438\u0446","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.":"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u043C\u0435\u0442\u0430\u0434\u0430\u043D\u043D\u044B\u0445 \u0434\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0439 \u0437\u0430\u043C\u0435\u0442\u043A\u0438, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u043E\u0439 \u0441 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u043E\u0439. \u041D\u0438\u0436\u0435 \u0443\u043A\u0430\u0436\u0438\u0442\u0435, \u043A\u0430\u043A\u0438\u0435 \u043A\u043B\u044E\u0447\u0438 \u043C\u0435\u0442\u0430\u0434\u0430\u043D\u043D\u044B\u0445 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C. \u041C\u043E\u0436\u043D\u043E \u0443\u043A\u0430\u0437\u0430\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u043C\u0435\u0442\u043A\u0443, \u043B\u0438\u0431\u043E \u0441\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u0442\u043A\u0438 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E.","Board Header Buttons":"\u041A\u043D\u043E\u043F\u043A\u0438 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430 \u0434\u043E\u0441\u043A\u0438","Calendar: first day of week":"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C: \u043F\u0435\u0440\u0432\u044B\u0439 \u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438","Override which day is used as the start of the week":"\u0423\u043A\u0430\u0436\u0438\u0442\u0435, \u043A\u0430\u043A\u043E\u0439 \u0434\u0435\u043D\u044C \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u043A\u0430\u043A \u043D\u0430\u0447\u0430\u043B\u043E \u043D\u0435\u0434\u0435\u043B\u0438",Sunday:"\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435",Monday:"\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A",Tuesday:"\u0412\u0442\u043E\u0440\u043D\u0438\u043A",Wednesday:"\u0421\u0440\u0435\u0434\u0430",Thursday:"\u0427\u0435\u0442\u0432\u0435\u0440\u0433",Friday:"\u041F\u044F\u0442\u043D\u0438\u0446\u0430",Saturday:"\u0421\u0443\u0431\u0431\u043E\u0442\u0430","Background color":"\u0426\u0432\u0435\u0442 \u0444\u043E\u043D\u0430",Tag:"\u041C\u0435\u0442\u043A\u0430","Text color":"\u0426\u0432\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u0430","Date is":"\u0414\u0430\u0442\u0430",Today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F","After now":"\u041F\u043E\u0441\u043B\u0435 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u043C\u043E\u043C\u0435\u043D\u0442\u0430","Before now":"\u0414\u043E \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u043C\u043E\u043C\u0435\u043D\u0442\u0430","Between now and":"\u041C\u0435\u0436\u0434\u0443 \u0441\u0435\u0439\u0447\u0430\u0441 \u0438","Display date colors":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u0446\u0432\u0435\u0442\u0430 \u0434\u0430\u0442\u044B","Set colors for dates displayed in cards based on the rules below.":"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442\u0430 \u0434\u043B\u044F \u0434\u0430\u0442\u044B, \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u043C\u043E\u0439 \u043F\u043E\u0434 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u043E\u0439, \u0431\u0430\u0437\u0438\u0440\u0443\u044F\u0441\u044C \u043D\u0430 \u043F\u0440\u0430\u0432\u0438\u043B\u0430\u0445 \u043D\u0438\u0436\u0435","Add date color":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442 \u0434\u0430\u0442\u044B","Metadata key":"\u041A\u043B\u044E\u0447 \u043C\u0435\u0442\u0430\u0434\u0430\u043D\u043D\u044B\u0445","Display label":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u044F\u0440\u044B\u043B\u043A","Hide label":"\u0421\u043F\u0440\u044F\u0442\u0430\u0442\u044C \u044F\u0440\u043B\u044B\u043A","Drag to rearrange":"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0435\u0440\u0435\u0443\u043F\u043E\u0440\u044F\u0434\u043E\u0447\u0438\u0442\u044C",Delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","Add key":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043B\u044E\u0447","Field contains markdown":"\u041F\u043E\u043B\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 markdown","Add tag color":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442 \u043C\u0435\u0442\u043A\u0438","More options":"\u0411\u043E\u043B\u044C\u0448\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",Cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",today:"\u0441\u0435\u0433\u043E\u0434\u043D\u044F",yesterday:"\u0432\u0447\u0435\u0440\u0430",tomorrow:"\u0437\u0430\u0432\u0442\u0440\u0430","Change date":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0434\u0430\u0442\u0443","Change time":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0440\u0435\u043C\u044F","Card title...":"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438...","Add card":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443","Add a card":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443","Edit card":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443","New note from card":"\u041D\u043E\u0432\u0430\u044F \u0437\u0430\u043C\u0435\u0442\u043A\u0430 \u0438\u0437 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438","Archive card":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443","Delete card":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443","Edit date":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0443","Add date":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u0430\u0442\u0443","Remove date":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0434\u0430\u0442\u0443","Edit time":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0440\u0435\u043C\u044F","Add time":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0440\u0435\u043C\u044F","Remove time":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0440\u0435\u043C\u044F","Duplicate card":"\u0414\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443","Split card":"\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443","Copy link to card":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443","Insert card before":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u0434\u043E","Insert card after":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u043F\u043E\u0441\u043B\u0435","Add label":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u044F\u0440\u043B\u044B\u043A","Move to top":"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u0432\u0435\u0440\u0445","Move to bottom":"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u043D\u0438\u0437","Enter list title...":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0441\u043F\u0438\u0441\u043A\u0430...","Mark cards in this list as complete":"\u041E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0432 \u044D\u0442\u043E\u043C \u0441\u043F\u0438\u0441\u043A\u0435 \u043A\u0430\u043A \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D\u043D\u044B\u0435","Add list":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A","Add a list":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A","Move list":"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A",Close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","Are you sure you want to delete this list and all its cards?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u043E\u0442 \u0441\u043F\u0438\u0441\u043E\u043A \u0438 \u0432\u0441\u0435 \u0435\u0433\u043E \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438?","Yes, delete list":"\u0414\u0430, \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A","Are you sure you want to archive this list and all its cards?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044D\u0442\u043E\u0442 \u0441\u043F\u0438\u0441\u043E\u043A \u0438 \u0432\u0441\u0435 \u0435\u0433\u043E \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438?","Yes, archive list":"\u0414\u0430, \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A","Are you sure you want to archive all cards in this list?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0432 \u044D\u0442\u043E\u043C \u0441\u043F\u0438\u0441\u043A\u0435?","Yes, archive cards":"\u0414\u0430, \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438","Edit list":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A","Archive cards":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438","Archive list":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A","Delete list":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A","Insert list before":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0434\u043E","Insert list after":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u043E\u0441\u043B\u0435","Sort by card text":"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E \u0442\u0435\u043A\u0441\u0442\u0443 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438","Sort by date":"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E \u0434\u0430\u0442\u0435","Unable to find":"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043D\u0430\u0439\u0442\u0438","Open in default app":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0438 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",Submit:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C"},ub=kA;var xA={},cb=xA;var CA={},Tu=CA;var _A={"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\u7B14\u8BB0\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\u7B14\u8BB0\u4E0D\u662F\u7A7A\u767D\u7B14\u8BB0","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","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 frontmatter \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\uFF1A",Untitled:"\u672A\u547D\u540D","Note: No template plugins are currently enabled.":"\u6CE8\u610F\uFF1A\u5F53\u524D\u6CA1\u6709\u542F\u7528\u6A21\u677F\u63D2\u4EF6",default:"\u9ED8\u8BA4","Search...":"\u641C\u7D22\u2026\u2026","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 lists.":"\u9009\u62E9 Enter \u6216\u662F Shift+Enter \u6765\u521B\u5EFA\u65B0\u884C, \u672A\u9009\u7528\u7684\u5FEB\u6377\u952E\u5C06\u88AB\u7528\u4E8E\u521B\u5EFA\u5361\u7247\u548C\u5217\uFF0C\u4EE5\u53CA\u5B8C\u6210\u5361\u7247\u3001\u5217\u7684\u7F16\u8F91\u3002","Shift + Enter":"Shift + Enter",Enter:"Enter","Prepend / append new cards":"\u8FFD\u52A0\u65B0\u5361\u7247","This setting controls whether new cards are added to the beginning or end of the list.":"\u8BBE\u7F6E\u65B0\u5361\u7247\u8FFD\u52A0\u5230\u5217\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\u3002","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"\u66F4\u6539\u9ED8\u8BA4\u7684\u770B\u677F\u8BBE\u7F6E\u3002\u4E3A\u6BCF\u4E2A\u770B\u677F\u5355\u72EC\u8FDB\u884C\u8BBE\u7F6E\u5C06\u8986\u76D6\u9ED8\u8BA4\u8BBE\u7F6E\u3002","Note template":"\u7B14\u8BB0\u6A21\u677F","This template will be used when creating new notes from Kanban cards.":"\u4ECE\u770B\u677F\u5361\u7247\u521B\u5EFA\u65B0\u7B14\u8BB0\u65F6\u4F1A\u4F7F\u7528\u8BE5\u6A21\u677F\u3002","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\u3002\u5982\u679C\u4E3A\u7A7A\uFF0C\u7B14\u8BB0\u5C06\u4F1A\u653E\u7F6E\u5230 Obsidian \u7684\u9ED8\u8BA4\u6587\u4EF6\u5B58\u653E\u4F4D\u7F6E\u3002","Default folder":"\u9ED8\u8BA4\u6587\u4EF6\u5939","List width":"\u5217\u5BBD","Enter a number to set the list width in pixels.":"\u8F93\u5165\u4E00\u4E2A\u50CF\u7D20\u503C\u6765\u8BBE\u7F6E\u5217\u7684\u5BBD\u5EA6","Maximum number of archived cards":"\u5355\u4E2A\u770B\u677F\u5185\u5DF2\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\u5361\u7247\u53EF\u4EE5\u5728 Markdown \u6A21\u5F0F\u4E0B\u67E5\u770B\u3002\u8BE5\u8BBE\u7F6E\u5C06\u4F7F\u5DF2\u5F52\u6863\u5361\u7247\u5728\u8FBE\u5230\u6700\u5927\u6570\u91CF\u65F6\u5220\u9664\u65E7\u5361\u3002\u8BBE\u7F6E\u4E3A -1 \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":"\u6253\u5F00\u65F6\uFF0C\u590D\u9009\u6846\u4F1A\u51FA\u73B0\u5728\u6BCF\u5F20\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.":"\u770B\u677F\u5361\u7247\u4F1A\u4EE5\u8BE5\u683C\u5F0F\u5C55\u793A\u65E5\u671F\u3002","Show relative date":"\u5C55\u793A\u76F8\u5BF9\u65E5\u671F","Hide card counts in list titles":"\u5728\u5217\u6807\u9898\u4E0A\u9690\u85CF\u5361\u7247\u8BA1\u6570","When toggled, card counts are hidden from the list title":"\u6253\u5F00\u65F6\uFF0C\u5217\u6807\u9898\u4E0A\u7684\u5361\u7247\u8BA1\u6570\u5C06\u9690\u85CF","Link dates to daily notes":"\u94FE\u63A5\u65E5\u671F\u5230\u65E5\u8BB0","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"\u6253\u5F00\u65F6\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 card title when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"\u6253\u5F00\u65F6\uFF0C\u5F53\u524D\u65E5\u671F\u548C\u65F6\u95F4\u4F1A\u88AB\u6DFB\u52A0\u5230\u5F52\u6863\u5361\u7247\u7684 frontmatter \u4E0A\uFF0C\u4F8B\u5982\u201C- [ ] 2021-05-14 10:00am \u6211\u7684\u5361\u7247\u6807\u9898\u201D","Archive date/time separator":"\u5F52\u6863\u65E5\u671F\u6216\u65F6\u95F4\u5206\u9694\u7B26Archive date/time separator","This will be used to separate the archived date/time from the title":"\u7528\u4E8E\u5206\u9694\u6807\u9898\u4E0E\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","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\u3002\u8BF7\u5728\u4E0B\u65B9\u6307\u5B9A\u54EA\u4E9B\u5143\u6570\u636E\u53EF\u4EE5\u5C55\u793A\u3002\u4F60\u53EF\u4EE5\u9009\u62E9\u5C55\u793A\u54EA\u4E9B\u6807\u5FD7\uFF0C\u6240\u6709\u6807\u5FD7\u90FD\u53EF\u4EE5\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":"\u8BBE\u7F6E\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\u4EE5\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\u2026\u2026","Add card":"\u6DFB\u52A0","Add a card":"\u6DFB\u52A0\u5361\u7247","Edit card":"\u7F16\u8F91\u5361\u7247","New note from card":"\u4ECE\u5361\u7247\u65B0\u5EFA\u7B14\u8BB0","Archive card":"\u5F52\u6863\u5361\u7247","Delete card":"\u5220\u9664\u5361\u7247","Edit date":"\u7F16\u8F91\u65E5\u671F","Add date":"\u6DFB\u52A0\u65E5\u671F","Remove date":"\u79FB\u9664\u65E5\u671F","Edit time":"\u7F16\u8F91\u65F6\u95F4","Add time":"\u6DFB\u52A0\u65F6\u95F4","Remove time":"\u79FB\u9664\u65F6\u95F4","Duplicate card":"\u590D\u5236\u5361\u7247","Split card":"\u5206\u79BB\u5361\u7247","Copy link to card":"\u590D\u5236\u94FE\u63A5\u81F3\u5361\u7247","Insert card before":"\u5728\u4E0A\u65B9\u63D2\u5165\u5361\u7247","Insert card after":"\u5728\u4E0B\u65B9\u63D2\u5165\u5361\u7247","Move to top":"\u79FB\u5230\u9876\u90E8","Move to bottom":"\u79FB\u81F3\u5E95\u90E8","Enter list title...":"\u8F93\u5165\u65B0\u7684\u5217\u6807\u9898\u2026\u2026","Mark cards in this list as complete":"\u5C06\u8BE5\u5217\u8BBE\u7F6E\u4E3A\u5B8C\u6210\u5217","Add list":"\u6DFB\u52A0","Add a list":"\u6DFB\u52A0\u5217","Move list":"\u79FB\u52A8\u5217",Close:"\u5173\u95ED","Are you sure you want to delete this list and all its cards?":"\u4F60\u786E\u5B9A\u4F60\u8981\u5220\u9664\u6574\u5217\u4EE5\u53CA\u8BE5\u5217\u4E0B\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, delete list":"\u662F\uFF0C\u5220\u9664\u5217","Are you sure you want to archive this list and all its cards?":"\u4F60\u786E\u5B9A\u4F60\u8981\u5F52\u6863\u6574\u5217\u4EE5\u53CA\u8BE5\u5217\u4E0B\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, archive list":"\u662F, \u5F52\u6863\u5217","Are you sure you want to archive all cards in this list?":"\u4F60\u786E\u8BA4\u4F60\u8981\u5F52\u6863\u5F53\u524D\u5217\u7684\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, archive cards":"\u662F\uFF0C\u5F52\u6863\u6240\u6709\u5361\u7247","Edit list":"\u7F16\u8F91\u5217","Archive cards":"\u5F52\u6863\u5361\u7247","Archive list":"\u5F52\u6863\u5217","Delete list":"\u5220\u9664\u5217","Insert list before":"\u5728\u4E0A\u65B9\u63D2\u5165\u5217","Insert list after":"\u5728\u4E0B\u65B9\u63D2\u5165\u5217","Sort by card text":"\u4EE5\u5361\u7247\u6587\u672C\u6392\u5E8F","Sort by date":"\u4EE5\u65E5\u671F\u6392\u5E8F","Unable to find":"\u65E0\u6CD5\u627E\u5230","Open in default app":"\u5728\u9ED8\u8BA4\u5E94\u7528\u4E2D\u6253\u5F00",Submit:"\u63D0\u4EA4"},db=_A;var MA={},fb=MA;var TA={ar:Kw,cz:jw,da:qw,de:Gw,en:yh,es:Jw,fr:Zw,hi:Qw,id:Xw,it:eb,ja:tb,ko:nb,nl:rb,no:ib,pl:ab,"pt-BR":sb,pt:ob,ro:lb,ru:ub,sq:cb,tr:Tu,uk:Tu,"zh-TW":fb,zh:db},hb=window.localStorage.getItem("language"),vh=TA[hb||"en"];function R(e){return vh||console.error("Error: kanban locale not found",hb),vh&&vh[e]||yh[e]}var Ln={prioritySymbols:{Highest:"\u{1F53A}",High:"\u23EB",Medium:"\u{1F53C}",Low:"\u{1F53D}",Lowest:"\u23EC",None:""},startDateSymbol:"\u{1F6EB}",createdDateSymbol:"\u2795",scheduledDateSymbol:"\u23F3",dueDateSymbol:"\u{1F4C5}",doneDateSymbol:"\u2705",cancelledDateSymbol:"\u274C",recurrenceSymbol:"\u{1F501}",dependsOnSymbol:"\u26D4",idSymbol:"\u{1F194}"};function mb(e,t){switch(e){case"priority":return FA(t);case"start":return Ln.startDateSymbol;case"created":return Ln.createdDateSymbol;case"scheduled":return Ln.scheduledDateSymbol;case"due":return Ln.dueDateSymbol;case"completion":return Ln.doneDateSymbol;case"cancelled":return Ln.cancelledDateSymbol;case"repeat":return Ln.recurrenceSymbol;case"dependsOn":return Ln.dependsOnSymbol;case"id":return Ln.idSymbol}return e}function No(e){switch(e){case"priority":return R("Priority");case"start":return R("Start");case"created":return R("Created");case"scheduled":return R("Scheduled");case"due":return R("Due");case"completion":return R("Done");case"cancelled":return R("Cancelled");case"repeat":return R("Recurrence");case"dependsOn":return R("Depends on");case"id":return R("ID")}return e}function FA(e){switch(e){case"0":return Ln.prioritySymbols.Highest;case"1":return Ln.prioritySymbols.High;case"2":return Ln.prioritySymbols.Medium;case"4":return Ln.prioritySymbols.Low;case"5":return Ln.prioritySymbols.Lowest}return null}function IA(e){switch(e){case Ln.prioritySymbols.Highest:return"0";case Ln.prioritySymbols.High:return"1";case Ln.prioritySymbols.Medium:return"2";case Ln.prioritySymbols.Low:return"4";case Ln.prioritySymbols.Lowest:return"5"}return null}function wh(){return app.plugins.enabledPlugins.has("obsidian-tasks-plugin")?app.plugins.plugins["obsidian-tasks-plugin"]:null}function bh(){var e;return(e=app.workspace.editorSuggest.suggests.find(t=>t.settings&&t.settings.taskFormat))==null?void 0:e.settings}function Zn(){var n,i;let e=bh(),t=e==null?void 0:e.statusSettings;if(!t)return"x";let r=(n=t.coreStatuses)==null?void 0:n.find(a=>a.type==="DONE");return r||(r=(i=t.customStatuses)==null?void 0:i.find(a=>a.type==="DONE")),r?r.symbol:"x"}function Iu(){var i,a;let e=bh(),t=e==null?void 0:e.statusSettings;if(!t)return" ";let r=Zn(),n=(i=t.coreStatuses)==null?void 0:i.find(o=>o.nextStatusSymbol===r);return n||(n=(a=t.customStatuses)==null?void 0:a.find(o=>o.nextStatusSymbol===r)),n?n.symbol:" "}function pb(e,t){var n,i,a;let r=wh();return r&&(a=(i=(n=r.apiV1)==null?void 0:n.executeToggleTaskDoneCommand)==null?void 0:i.call(n,e,t.path))!=null?a:null}function Ro(e,t){var d,m;let r=wh();if(!r)return null;let n=`- [${e.data.checkChar}] `,i=e.data.titleRaw.split(/\n\r?/g),a=bh(),o=!!(a!=null&&a.recurrenceOnNextLine),s=0,u=(m=(d=r.apiV1)==null?void 0:d.executeToggleTaskDoneCommand)==null?void 0:m.call(d,n+i[0],t.path);if(!u)return null;let l=[];return[u.split(/\n/g).map((h,g)=>{(o&&g===0||!o&&g>0)&&(s=g);let y=h.match(/^- \[([^\]]+)\]/);return y!=null&&y[1]&&l.push(y[1]),[h.replace(/^- \[[^\]]+\] */,""),...i.slice(1)].join(`
|
||
`)}),l,s]}var Fu=Object.freeze({"[":"]","(":")"});function AA(e,t){let r=e.indexOf("::",t);if(!(r<0))return{key:e.substring(t,r).trim(),valueIndex:r+2}}function OA(e,t,r,n){let i=0,a=!1;for(let o=t;o<e.length;o++){let s=e.charAt(o);if(s=="\\"){a=!a;continue}if(a){a=!1;continue}if(s==r?i++:s==n&&i--,i<0)return{value:e.substring(t,o).trim(),endIndex:o+1};a=!1}}function LA(e,t){let r=e.charAt(t),n=AA(e,t+1);if(n===void 0)return;for(let a of Object.keys(Fu).concat(Object.values(Fu)))if(n.key.includes(a))return;let i=OA(e,n.valueIndex,r,Fu[r]);if(i!==void 0)return{key:n.key,value:i.value,start:t,startValue:n.valueIndex,end:i.endIndex,wrapping:r}}var PA=/([🔺⏫🔼🔽⏬])\uFE0F?/u,NA=/🛫 *(\d{4}-\d{2}-\d{2})/u,RA=/➕ *(\d{4}-\d{2}-\d{2})/u,HA=/[⏳⌛] *(\d{4}-\d{2}-\d{2})/u,BA=/[📅📆🗓] *(\d{4}-\d{2}-\d{2})/u,VA=/✅ *(\d{4}-\d{2}-\d{2})/u,$A=/❌ *(\d{4}-\d{2}-\d{2})/u,UA=/⛔\uFE0F? *([a-zA-Z0-9-_]+)/u,WA=/🆔 *([a-zA-Z0-9-_]+)/u,YA=/🔁 *([a-zA-Z0-9; !]+)/u,yi=new Set(["priority","start","created","scheduled","due","completion","cancelled","id","dependsOn","repeat"]),zA=[{regex:PA,key:"priority"},{regex:NA,key:"start"},{regex:RA,key:"created"},{regex:HA,key:"scheduled"},{regex:BA,key:"due"},{regex:VA,key:"completion"},{regex:$A,key:"cancelled"},{regex:WA,key:"id"},{regex:UA,key:"dependsOn"},{regex:YA,key:"repeat"}];function KA(e){let t=[];for(let{regex:r,key:n}of zA){let i=r.exec(e);if(!i)continue;let a=i[1],o=i.index+i[0].length;if(n==="priority")a=IA(a);else if(n==="repeat"){let s=a.length;a=Oe.fromText(a).toText(),o-=s-a.length}t.push({key:n,value:a,start:i.index,startValue:i.index+1,end:o,wrapping:"emoji-shorthand"})}return t}function gb(e,t=!1){let r=il(),n=wh(),i=[];if(r)for(let o of Object.keys(Fu)){let s=e.indexOf(o);for(;s>=0;){let u=LA(e,s);if(!u){s=e.indexOf(o,s+1);continue}i.push(u),s=e.indexOf(o,u.end)}}n&&t&&(i=i.concat(KA(e))),i.sort((o,s)=>o.start-s.start);let a=[];for(let o=0;o<i.length;o++){let s=i[o];(o==0||a[a.length-1].end<s.start)&&a.push(s)}return a}function il(){return app.plugins.enabledPlugins.has("dataview")?app.plugins.plugins.dataview:null}var Eh="kanban-plugin";function Mr(){}var Dh=new Map;function $(e){if(Dh.has(e))return Dh.get(e);let t=`${Eh}__${e}`;return Dh.set(e,t),t}function et(e=9){return Math.random().toString(36).slice(2,2+e)}function Au(e,t,r,n,i,a,o){var h,g;let s=un(t,r.slice(0,-1)),u=un(i,a.slice(0,-1)),l=(h=s==null?void 0:s.data)==null?void 0:h.shouldMarkItemsComplete,c=(g=u==null?void 0:u.data)==null?void 0:g.shouldMarkItemsComplete;if(!l&&!c)return{next:o};let d=o.data.checked&&o.data.checkChar===Zn();if(c===d)return{next:o};c&&(o=(0,Sh.default)(o,{data:{checkChar:{$set:Iu()}}}));let m=Ro(o,n.file);if(m){let[y,v,D]=m,I,C;return y.forEach((x,O)=>{O===D?I=n.getNewItem(x,v[O]):C=n.getNewItem(x,v[O])}),{next:I,replacement:C}}return{next:(0,Sh.default)(o,{data:{checked:{$set:c},checkChar:{$set:c?Zn():" "}}})}}function Ou(){let e=$e.useRef(!1);return{oncompositionstart:()=>{e.current=!0},oncompositionend:()=>{e.current=!1},getShouldIMEBlockAction:()=>e.current}}var jA=/<%/;async function yb(e,t){let r=t?e.app.vault.getAbstractFileByPath(t):null;if(r&&r instanceof da.TFile){let n=app.workspace.getActiveViewOfType(da.MarkdownView);try{(n==null?void 0:n.getMode())!=="source"&&await n.setState({...n.getState(),mode:"source"},{history:!1});let{templatesEnabled:i,templaterEnabled:a,templatesPlugin:o,templaterPlugin:s}=kh(e.app),u=await e.app.vault.read(r);if(i&&a)return jA.test(u)?await s.append_template_to_active_file(r):await o.instance.insertTemplate(r);if(i)return await o.instance.insertTemplate(r);if(a)return await s.append_template_to_active_file(r);await e.app.vault.modify(e.app.workspace.getActiveFile(),u)}catch(i){console.error(i),e.setError(i)}}}function ja(e){var s,u,l,c,d;let t=e.internalPlugins.plugins,r=(s=t["daily-notes"])==null?void 0:s.enabled,n=(u=t["daily-notes"])==null?void 0:u.instance.options.format,i=(l=e.plugins.plugins["nldates-obsidian"])==null?void 0:l.settings.format,a=(c=t.templates)==null?void 0:c.enabled,o=(d=t.templates)==null?void 0:d.instance.options.dateFormat;return r&&n||i||a&&o||"YYYY-MM-DD"}function Ho(e){var a,o,s;let t=e.internalPlugins.plugins,r=(a=e.plugins.plugins["nldates-obsidian"])==null?void 0:a.settings.timeFormat,n=(o=t.templates)==null?void 0:o.enabled,i=(s=t.templates)==null?void 0:s.instance.options.timeFormat;return r||n&&i||"HH:mm"}var vb=/[\\^$.*+?()[\]{}|]/g,qA=RegExp(vb.source);function Qn(e){return e&&qA.test(e)?e.replace(vb,"\\$&"):e||""}function kh(e){var s;let t=e.internalPlugins.plugins.templates,r=t.enabled,n=e.plugins.plugins["templater-obsidian"],i=e.plugins.enabledPlugins.has("templater-obsidian"),a=n&&((s=this.app.plugins.plugins["templater-obsidian"].settings)==null?void 0:s.empty_file_template),o=r?t.instance.options.folder:n?n.settings.template_folder:void 0;return{templatesPlugin:t,templatesEnabled:r,templaterPlugin:n==null?void 0:n.templater,templaterEnabled:i,templaterEmptyFileTemplate:a,templateFolder:o}}function GA(e){let t=(e||[]).reduce((r,n)=>(n.tagKey&&(r[n.tagKey]=n),r),{});return r=>t[r]?t[r]:null}function Lu(e){let t=e.useSetting("tag-colors");return Re(()=>GA(t),[t])}function xh(e){let t=(e||[]).map(n=>{if(n.isToday)return["today",n];if(n.isBefore)return["before",n];if(n.isAfter)return["after",n];let i=n.direction==="after"?1:-1,a=(0,da.moment)();return a.add(n.distance*i,n.unit),[a,n]}),r=(0,da.moment)();return t.sort((n,i)=>n[0]==="today"?typeof i[0]=="string"?-1:i[0].isSame(r,"day")?1:-1:i[0]==="today"?typeof n[0]=="string"?1:n[0].isSame(r,"day")?-1:1:n[0]==="after"||n[0]==="before"?1:i[0]==="after"||i[0]==="before"||n[0].isBefore(i[0])?-1:1),n=>{let i=(0,da.moment)(),a=t.find(o=>{let s=o[1];if(s.isToday)return n.isSame(i,"day");if(s.isAfter)return n.isAfter(i);if(s.isBefore)return n.isBefore(i);let u="days";return s.unit==="hours"&&(u="hours"),s.direction==="before"?n.isBetween(o[0],i,u,"[]"):n.isBetween(i,o[0],u,"[]")});return a?a[1]:null}}function fa(e){let t=e.useSetting("date-colors");return Re(()=>xh(t),[t])}function Pu(e,t){let r=t.find(n=>n.metadataKey===e.key);return r?{...r,value:e.value}:{containsMarkdown:!1,label:e.key,metadataKey:e.key,shouldHideLabel:!1,value:e.value}}function Nu(e,t,r){Ae(()=>{var o;let n=0,i=!1,a=()=>{i||++n===e.length&&t()};for(let s of e)(o=s.current)==null||o.onNodeInserted(a,!0);return()=>{i=!0,r()}},[])}function wb(e,t,r,n,i){return Re(()=>{t=t.trim().toLocaleLowerCase();let a=new Set,o=new Set;return t&&e.children.forEach(s=>{let u=!1;s.children.forEach(l=>{l.data.titleSearch.includes(t)&&(u=!0,o.add(l))}),u&&a.add(s)}),{lanes:a,items:o,query:t,search:(s,u)=>{s||(i(!1),r(""),n("")),i(!0),u?(r(s),n(s)):r(s)}}},[e,t,r,n])}var Sb=Ct(Db(),1);var Bo=Sb.default;var Tr={x:0,y:0,maxX:0,maxY:0},vi={x:0,y:0};function Dn(e){return e.win}function ha(e){return e.doc.body}var xb={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){}},Cb=[0,0,0,0];function Xt(e){return e===void 0?0:e}function Hu(e,t,r,n){return[e.left+Xt(t==null?void 0:t.x)+Xt(r==null?void 0:r.x)-Xt(n==null?void 0:n.x),e.top+Xt(t==null?void 0:t.y)+Xt(r==null?void 0:r.y)-Xt(n==null?void 0:n.y),e.left+e.width+Xt(t==null?void 0:t.x)+Xt(r==null?void 0:r.x)-Xt(n==null?void 0:n.x),e.top+e.height+Xt(t==null?void 0:t.y)+Xt(r==null?void 0:r.y)-Xt(n==null?void 0:n.y)]}function _h(e,t,r,n){let i=Hu(e,t,r,null);return n==="top"?(i[3]=i[1]+35,i):n==="right"?(i[0]=i[0]+e.width-35,i):n==="bottom"?(i[1]=i[1]+e.height-35,i):(i[2]=i[0]+35,i)}function Bu(e,t,r,n,i,a){return[e-Xt(i==null?void 0:i.x)-Xt(a==null?void 0:a.x),t-Xt(i==null?void 0:i.y)-Xt(a==null?void 0:a.y),r-Xt(i==null?void 0:i.x)-Xt(a==null?void 0:a.x),n-Xt(i==null?void 0:i.y)-Xt(a==null?void 0:a.y)]}var QA=e=>XA(e,(t,r)=>t<r);function XA(e,t){if(e.length===0)return-1;let r=e[0],n=0;for(let i=1;i<e.length;i++)t(e[i],r)&&(n=i,r=e[i]);return n}function _b(e,t,r){let n=Mh(e,t,r);if(!n)return null;let i=n.getData().side,a=n.getHitbox(),o=0,s=0;i==="left"?(o=0,s=2):i==="right"?(o=2,s=0):i==="top"?(o=1,s=3):i==="bottom"&&(o=3,s=1);let u=Math.abs(t[o]-a[s]),l=Math.abs(a[o]-a[s]);return[n,l-u]}function Eb(e){return[{x:e[0],y:e[1]},{x:e[2],y:e[1]},{x:e[0],y:e[3]},{x:e[2],y:e[3]}]}function qa(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function kb(e){return{x:(e[0]+e[2])/2,y:(e[1]+e[2])/2}}function Mh(e,t,r){let n=Eb(t)[0],i=kb(t),a=r.entityId,o=e.map(u=>{if(u.entityId===a)return 1/0;let l=u.getData(),c=l.acceptsSort,d=u.getHitbox(),m=kb(d);if(c&&!c.contains(r.getData().type))return qa(i,m);let h=Eb(d)[0],g=l.sortAxis==="horizontal"?"x":"y",y=m[g]>n[g]?1e3:0;return qa(h,n)+y}),s=QA(o);return e[s]?e[s]:null}function Th(e){let{scrollLeft:t,scrollTop:r,scrollWidth:n,scrollHeight:i,offsetWidth:a,offsetHeight:o}=e,s=t,u=r,l=n-a,c=i-o;return{x:s,y:u,maxX:Math.max(l,0),maxY:Math.max(c,0)}}function Mb(e,t,r){let n=Math.trunc((r.x-t.x)*100)/100,i=Math.trunc((r.y-t.y)*100)/100;return[e[0]+n,e[1]+i,e[2]+n,e[3]+i]}function Fh(e,t=[0,0,0,0]){let r=e[0]-t[0],n=e[1]-t[1],i=e[2]+t[2],o=e[3]+t[3]-n;return{width:i-r,height:o}}var Vu=class{constructor(t,r,n,i,a,o,s,u){this.isVisible=!1;this.mounted=!1;this.id=n,this.instanceId=et(),this.scopeId=r,this.entityId=`${r}-${n}`,this.emitter=new Bo,this.dndManager=t,this.index=i,this.children=new Map,this.parent=a,this.scrollParent=o,this.getEntityData=()=>u.current,this.sortManager=s}initNodes(t,r){var n,i;if(this.mounted=!0,this.entityNode=t,this.measureNode=r,r.dataset.hitboxid=this.entityId,(n=this.sortManager)==null||n.registerSortable(this.entityId,this.getEntity(xb),t,r),this.scrollParent)this.scrollParent.registerObserverHandler(this.entityId,r,a=>{var s,u;let o=Dn(a.target);if(a.isIntersecting){let l=this.getEntity(a.boundingClientRect);(s=this.parent)==null||s.children.set(this.entityId,{entity:l,manager:this}),this.dndManager.observeResize(r),(!this.parent||this.parent.isVisible)&&(this.dndManager.registerHitboxEntity(this.entityId,l,o),this.children.forEach((c,d)=>{this.dndManager.registerHitboxEntity(d,c.entity,o)}),this.setVisibility(!0))}else this.dndManager.unregisterHitboxEntity(this.entityId,o),this.children.forEach((l,c)=>{this.dndManager.unregisterHitboxEntity(c,o)}),(u=this.parent)==null||u.children.delete(this.entityId),this.dndManager.unobserveResize(r),this.setVisibility(!1)});else{let a=this.getEntity(r.getBoundingClientRect());this.dndManager.observeResize(r),this.dndManager.registerHitboxEntity(this.entityId,a,Dn(t)),(i=this.parent)==null||i.children.set(this.entityId,{entity:a,manager:this}),this.setVisibility(!0)}}setVisibility(t){this.emitter.emit("visibility-change",t),this.isVisible=t,this.children.forEach(r=>{r.manager.setVisibility(t)})}destroy(){var t,r,n;this.mounted&&(this.mounted=!0,this.dndManager.unobserveResize(this.measureNode),(t=this.sortManager)==null||t.unregisterSortable(this.entityId),(r=this.scrollParent)==null||r.unregisterObserverHandler(this.entityId,this.measureNode),this.entityNode&&this.dndManager.unregisterHitboxEntity(this.entityId,Dn(this.entityNode)),(n=this.parent)==null||n.children.delete(this.entityId))}getPath(){var t;return[...((t=this.parent)==null?void 0:t.getPath())||[],this.index]}getEntity(t){var n,i;let r=this;return{scopeId:this.scopeId,entityId:this.entityId,initial:Hu(t,((n=r.scrollParent)==null?void 0:n.scrollState)||Tr,((i=r.scrollParent)==null?void 0:i.getScrollShift())||vi,null),getParentScrollState(){var a;return((a=r.scrollParent)==null?void 0:a.scrollState)||Tr},getParentScrollShift(){var a;return((a=r.scrollParent)==null?void 0:a.getScrollShift())||vi},recalcInitial(){var a,o;this.initial=Hu(r.measureNode.getBoundingClientRect(),((a=r.scrollParent)==null?void 0:a.scrollState)||Tr,((o=r.scrollParent)==null?void 0:o.getScrollShift())||vi,null)},getHitbox(){return Bu(this.initial[0],this.initial[1],this.initial[2],this.initial[3],this.getParentScrollState(),this.getParentScrollShift())},getPath(){return r.getPath()},getData(){var a;return{...r.getEntityData(),sortAxis:(a=r.sortManager)==null?void 0:a.axis,win:Dn(r.measureNode)}}}}};var Vo=class{constructor(){this.scrollStates=new Map,this.idScopes=new Map}setScrollState(t,r,n){if(this.scrollStates.set(r,n),this.idScopes.has(r)){let i=this.idScopes.get(r);i.has(t)||i.add(t)}else this.idScopes.set(r,new Set([t]))}getScrollState(t){return this.scrollStates.has(t)?this.scrollStates.get(t):Tr}unmountScope(t){let r=[];this.idScopes.forEach((n,i)=>{n.has(t)&&(n.delete(t),n.size===0&&r.push(i))}),r.forEach(n=>{this.idScopes.delete(n),this.scrollStates.delete(n)})}};var cn=$e.createContext(null),ma=$e.createContext(""),ol=$e.createContext(null),sl=$e.createContext(new Vo),$u=$e.createContext(null),$o=$e.createContext(null),Uu=$e.createContext(null);var eO=0,ZU=Array.isArray;function E(e,t,r,n,i,a){var o,s,u={};for(s in t)s=="ref"?o=t[s]:u[s]=t[s];var l={type:e,props:u,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--eO,__i:-1,__u:0,__source:i,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(s in o)u[s]===void 0&&(u[s]=o[s]);return Xe.vnode&&Xe.vnode(l),l}function Tb(e){return E(ct,{children:e.children})}var ei=zt(function({id:t,index:r,elementRef:n,measureRef:i,children:a,data:o}){let s=Ee(cn),u=Ee($u),l=Ee(ma),c=Ee($o),d=Ee(ol),m=Fe(o),h=Fe();m.current=o;let g=Re(()=>{if(s){h.current&&h.current.destroy();let y=new Vu(s,l,t,r,c,d,u,m);return n.current&&i.current&&y.initNodes(n.current,i.current),h.current=y,y}return null},[t,r,s,l,c,d,u]);return Nu([n,i],()=>{var y;(y=h.current)==null||y.initNodes(n.current,i.current)},()=>{var y;(y=h.current)==null||y.destroy()}),g?E($o.Provider,{value:g,children:a}):null});function Ui(e){var i;let t=Ee($o),r=Ee(Uu),n=(i=r!=null?r:t==null?void 0:t.getPath())!=null?i:[];return e!==void 0&&n.push(e),Re(()=>n,n)}var pg=Ct(UD());var vL=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function ml(e,t){var r=wL(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function wL(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=vL.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var bL=[".DS_Store","Thumbs.db"];function Jh(e){return Ao(this,void 0,void 0,function(){return Oo(this,function(t){return[2,DL(e)&&e.dataTransfer?kL(e.dataTransfer,e.type):SL(e)]})})}function DL(e){return!!e.dataTransfer}function SL(e){var t=EL(e.target)?e.target.files?Gh(e.target.files):[]:[];return t.map(function(r){return ml(r)})}function EL(e){return e!==null}function kL(e,t){return Ao(this,void 0,void 0,function(){var r,n;return Oo(this,function(i){switch(i.label){case 0:return e.items?(r=Gh(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(xL))]):[3,2];case 1:return n=i.sent(),[2,WD(zD(n))];case 2:return[2,WD(Gh(e.files).map(function(a){return ml(a)}))]}})})}function WD(e){return e.filter(function(t){return bL.indexOf(t.name)===-1})}function Gh(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function xL(e){if(typeof e.webkitGetAsEntry!="function")return YD(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?KD(t):YD(e)}function zD(e){return e.reduce(function(t,r){return hw(t,Array.isArray(r)?zD(r):[r])},[])}function YD(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var r=ml(t);return Promise.resolve(r)}function CL(e){return Ao(this,void 0,void 0,function(){return Oo(this,function(t){return[2,e.isDirectory?KD(e):_L(e)]})})}function KD(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function a(){var o=this;t.readEntries(function(s){return Ao(o,void 0,void 0,function(){var u,l,c;return Oo(this,function(d){switch(d.label){case 0:if(s.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return u=d.sent(),r(u),[3,4];case 3:return l=d.sent(),n(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(CL)),i.push(c),a(),d.label=6;case 6:return[2]}})})},function(s){n(s)})}a()})}function _L(e){return Ao(this,void 0,void 0,function(){return Oo(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var a=ml(i,e.fullPath);r(a)},function(i){n(i)})})]})})}var An=require("obsidian");var Vl=Ct(o0());var pk=require("obsidian");var li=require("obsidian"),cg=Ct(Ic());var $S=Ct(HS()),US=Ct(Wm()),cs=require("obsidian");var{compare:ZP}=new Intl.Collator(void 0,{usage:"sort",sensitivity:"base",numeric:!0}),fr=ZP,Ol=class{constructor(){this.settled=!1;this.promise=new Promise((t,r)=>{this.resolve=n=>{this.settled=!0,t(n)},this.reject=n=>{this.settled=!0,r(n)}})}},Ac=class{constructor(t){this.onComplete=t;this.queue=[];this.isRunning=!1}clear(){this.queue.length=0,this.isRunning=!1}add(t){this.queue.push(t),this.isRunning||this.run()}async run(){this.isRunning=!0;let{queue:t}=this,r=performance.now();for(;t.length;){let n=t.splice(0,5);try{await Promise.all(n.map(a=>a()))}catch(a){console.error(a)}if(!this.isRunning)return;let i=performance.now();i-r>50&&(await new Promise(a=>activeWindow.setTimeout(a)),r=i)}this.isRunning=!1,this.onComplete()}};var us=require("obsidian"),QP=/\u00A0/g;function Ym(e){let r=e.replace(QP," ").normalize("NFC").split(/\|(.*)/),n=r[0].split(/#(.*)/);return{root:n[0],subpath:n[1]?"#"+n[1]:"",alias:r[1]||""}}function BS(e){e.querySelectorAll(".task-list-item-checkbox").forEach((r,n)=>{r.dataset.checkboxIndex=n.toString()})}function VS(e){let{contentEl:t,app:r}=e,n=a=>{let o=a.getAttr("data-href")||a.getAttr("href");return o?{href:o,displayText:a.getText().trim()}:null},i=(a,o)=>{if(a.button!==0&&a.button!==1)return;let s=n(o);s&&(a.preventDefault(),r.workspace.openLinkText(s.href,e.file.path,us.Keymap.isModEvent(a)))};t.on("click","a.internal-link",i),t.on("auxclick","a.internal-link",i),t.on("dragstart","a.internal-link",a=>{a.preventDefault()}),t.on("contextmenu","a.internal-link",(a,o)=>{let s=n(o);if(!s)return;let u=new us.Menu;u.addSections(["title","open","action","view","info","","danger"]),r.workspace.handleLinkContextMenu(u,s.href,e.file.path),u.showAtMouseEvent(a)}),t.on("mouseover","a.internal-link",(a,o)=>{let s=n(o);s&&r.workspace.trigger("hover-link",{event:a,source:"preview",hoverParent:e,targetEl:o,linktext:s.href,sourcePath:e.file.path})}),t.on("click","a.external-link",(a,o)=>{let s=n(o);if(!s||(a.preventDefault(),!s.href||s.href.contains(" ")))return;try{new URL(s.href)}catch(c){return}let u=us.Keymap.isModEvent(a),l=typeof u=="boolean"?"":u;window.open(s.href,l)}),t.on("contextmenu","a.external-link",(a,o)=>{let s=n(o);if(!s)return;let u=new us.Menu;u.addSections(["title","open","selection","clipboard","action","view","info","","danger"]),r.workspace.handleExternalLinkContextMenu(u,s.href),u.showAtMouseEvent(a)}),t.on("click","a.tag",(a,o)=>{if(a.button!==0)return;let s=o.getText(),u=r.internalPlugins.getPluginById("global-search");e.plugin.getStateManager(e.file).getSetting("tag-action")==="kanban"?e.emitter.emit("hotkey",{commandId:"editor:open-search",data:s}):u&&u.instance.openGlobalSearch(`tag:${s}`)})}var tt=aa(null),zn=aa(null),Oc=aa(null),Lc=aa(null);function zm(e,t){if(!e)return;let r=e.querySelectorAll("a.tag");r!=null&&r.length&&r.forEach(n=>{let i=t(n.getAttr("href"));i&&n.setCssProps({"--tag-color":i.color,"--tag-background":i.backgroundColor})})}function Km(e,t){if(!e)return;let r=e.querySelectorAll("."+$("date"));r!=null&&r.length&&r.forEach(n=>{let i=n.dataset.date;if(!i)return;let a=(0,US.default)(i);if(!a.isValid())return;let o=t(a);n.toggleClass("has-background",!!(o!=null&&o.backgroundColor)),o&&n.setCssProps({"--date-color":o.color,"--date-background-color":o.backgroundColor})})}var Ll=class extends cs.Component{constructor(r,n){super();this.view=r;this.markdown=n;this.isVisible=!1;this.lastWidth=-1;this.lastHeight=-1;this.lastRefWidth=-1;this.lastRefHeight=-1;this.containerEl=createDiv("markdown-preview-view markdown-rendered "+$("markdown-preview-view")),this.mark=new $S.default(this.containerEl),this.renderCapability=new Ol}onload(){this.render()}async render(){var n;if(this.containerEl.empty(),await cs.MarkdownRenderer.render(this.view.app,this.markdown,this.containerEl,this.view.file.path,this),this.renderCapability.resolve(),!((n=this.view)!=null&&n._loaded)||!this._loaded)return;let{containerEl:r}=this;this.resolveLinks(),BS(r),this.observer=new ResizeObserver(i=>{if(!i.length)return;let a=i.first().contentBoxSize[0];if(a.blockSize!==0){if(this.wrapperEl){let o=this.wrapperEl.getBoundingClientRect();(this.lastRefHeight===-1||o.height>0)&&(this.lastRefHeight=o.height,this.lastRefWidth=o.width)}this.lastWidth=a.inlineSize,this.lastHeight=a.blockSize}}),r.win.setTimeout(()=>{this.observer.observe(r,{box:"border-box"})}),r.addEventListener("click",i=>{let{targetNode:a}=i;a.instanceOf(HTMLElement)&&a.hasClass("task-list-item-checkbox")&&!a.closest(".markdown-embed")&&(i.preventDefault(),i.stopPropagation())},{capture:!0}),r.addEventListener("contextmenu",i=>{let{targetNode:a}=i;a.instanceOf(HTMLElement)&&a.hasClass("task-list-item-checkbox")&&(i.preventDefault(),i.stopPropagation())},{capture:!0})}migrate(r){let{lastRefHeight:n,lastRefWidth:i,containerEl:a}=this;this.wrapperEl=r,n>0&&(r.style.width=`${i}px`,r.style.height=`${n}px`,r.win.setTimeout(()=>{r.style.width="",r.style.height=""},50)),a.parentElement!==r&&r.append(a),this.mark.unmark()}show(){let{wrapperEl:r,containerEl:n}=this;r&&(r.append(n),r.style.minHeight&&(r.style.minHeight=""),this.isVisible=!0)}hide(){let{containerEl:r,wrapperEl:n}=this;n&&(n.style.minHeight=this.lastRefHeight+"px",r.detach(),this.isVisible=!1)}set(r){this._loaded&&(this.markdown=r,this.renderCapability=new Ol,this.unload(),this.load())}resolveLinks(){let{containerEl:r,view:n}=this,i=r.findAll("a.internal-link");for(let a of i){let o=this.getInternalLinkHref(a);if(!o)continue;let s=(0,cs.getLinkpath)(o),u=n.app.metadataCache.getFirstLinkpathDest(s,n.file.path);a.toggleClass("is-unresolved",!u)}}getInternalLinkHref(r){let n=r.getAttr("data-href")||r.getAttr("href");return n||null}},Sa=zt(function({entityId:t,className:r,markdownString:n,searchQuery:i,...a}){let{view:o,stateManager:s}=Ee(tt),u=Ee($o),l=Ee(cn),c=Ee(Oc),d=Ee(Lc),m=Lu(s),h=fa(s),g=Fe(),y=Fe();Ae(()=>{var I;if(!u||!t||!g.current)return;let D=(I=u==null?void 0:u.scrollParent)==null?void 0:I.observer;D&&(D.unobserve(u.measureNode),D.observe(u.measureNode))},[c]),Ae(()=>{if(!(!d||!y.current))return d.registerHandler(y.current,D=>{var I,C;D.isIntersecting?(I=g.current)==null||I.show():(C=g.current)==null||C.hide()}),()=>{y.current&&(d==null||d.unregisterHandler(y.current))}},[]),Ae(()=>{let D=x=>{let O=g.current;if(!O||!(u!=null&&u.parent))return;let{dragManager:A}=l;A.dragEntityId!==u.entityId&&A.dragEntityId!==u.parent.entityId&&(O.isVisible&&!x?O.hide():!O.isVisible&&x&&O.show())};if(t&&o.previewCache.has(t)){let x=o.previewCache.get(t);return g.current=x,x.migrate(y.current),u==null||u.emitter.on("visibility-change",D),()=>u==null?void 0:u.emitter.off("visibility-change",D)}let I=new Ll(o,n);I.wrapperEl=y.current;let C=g.current=o.addChild(I);return t&&o.previewCache.set(t,C),y.current.empty(),y.current.append(C.containerEl),zm(y.current,m),Km(y.current,h),u==null||u.emitter.on("visibility-change",D),()=>{var x;(x=g.current)==null||x.renderCapability.resolve(),u==null||u.emitter.off("visibility-change",D)}},[o,t,u]),Ae(()=>{let D=g.current;!D||n===D.markdown||(D.renderCapability.resolve(),D.set(n),D.renderCapability.promise.then(()=>{zm(y.current,m),Km(y.current,h)}))},[n]),Ae(()=>{g.current&&(zm(y.current,m),Km(y.current,h))},[m,h]),Ae(()=>{let D=g.current;D&&(D.mark.unmark(),i&&i.trim()&&D.mark.mark(i))},[i]),Ae(()=>{let D=g.current;y.current&&D&&D.wrapperEl!==y.current&&D.migrate(y.current)},[]);let v;if(!g.current&&o.previewCache.has(t)){let D=o.previewCache.get(t);D.lastRefHeight>0&&(v={width:`${D.lastRefWidth}px`,height:`${D.lastRefHeight}px`})}return E("div",{style:v,ref:y,className:Ge([$("markdown-preview-wrapper"),r]),...a})}),WS=zt(function({entityId:t,className:r,...n}){let{view:i}=Ee(tt),a=Fe(),o=i.previewCache.get(t),s;return o&&o.lastRefHeight>0&&(s={width:`${o.lastRefWidth}px`,height:`${o.lastRefHeight}px`}),E("div",{style:s,ref:u=>{a.current=u,u&&o&&u.childElementCount===0&&u.append(o.containerEl.cloneNode(!0))},className:Ge([$("markdown-preview-wrapper"),r]),...n})});var ck=require("@codemirror/commands"),fs=require("@codemirror/state"),lo=require("@codemirror/view");var xa=require("obsidian");var ft={Item:"item",Lane:"lane",Board:"board",MetadataSetting:"metadata-setting",TagColorSetting:"tag-color",TagSortSetting:"tag-sort",DateColorSetting:"date-color"},Pc={accepts:[ft.Item],type:ft.Item,children:[]},Ea={accepts:[ft.Lane],type:ft.Lane},Nc={accepts:[],type:ft.Board},Rc={accepts:[ft.MetadataSetting],type:ft.MetadataSetting,children:[]},Hc={accepts:[ft.TagSortSetting],type:ft.TagSortSetting,children:[]},Bc={accepts:[],type:ft.TagColorSetting,children:[]},Vc={accepts:[],type:ft.DateColorSetting,children:[]};function kn(e){return!(e===null||typeof e=="number")}var YS=require("@codemirror/state"),si=require("@codemirror/view"),zS=require("obsidian");var Uc=YS.StateField.define({create(){return null},update(e){return e}}),jm=class extends si.WidgetType{constructor(t,r,n){super(),this.stateManager=t,this.type=n,this.date=r}eq(t){return this.date.isSame(t.date)}toDOM(){return createSpan({cls:`cm-kanban-${this.type}-wrapper`},t=>{t.createSpan({cls:`cm-kanban-${this.type}`,text:this.date.format(this.stateManager.getSetting(this.type==="time"?"time-format":"date-display-format"))})})}ignoreEvent(){return!1}};function XP(e){return(t,r,n,i,a)=>{let o=a.state.field(Uc);if(!o)return;let s=i[1],u=(0,zS.moment)(s,o.getSetting(e==="date"?"date-format":"time-format"));u.isValid()&&t(r,n,si.Decoration.replace({widget:new jm(o,u,e)}))}}var qm=class{constructor(t,r,n){this.decorator=new si.MatchDecorator({regexp:r,decorate:XP(n)}),this.decos=this.decorator.createDeco(t)}update(t){t.docChanged&&(this.decos=this.decorator.createDeco(t.view))}},eN={decorations:e=>e.decos,provide:e=>si.EditorView.atomicRanges.of(t=>{var r;return((r=t.plugin(e))==null?void 0:r.decos)||si.Decoration.none})};function $c(e,t){return si.ViewPlugin.define(r=>{let i=r.state.field(Uc).getSetting(e==="date"?"date-trigger":"time-trigger");return new qm(r,new RegExp(`${Qn(i)}${t}`,"g"),e)},eN)}var KS=[$c("time","{([^}]+)}"),$c("date","{([^}]+)}"),$c("date","\\[\\[([^\\]]+)\\]\\]"),$c("date","\\[([^\\]]+)\\]\\([^)]+\\)")];var Hl=require("obsidian");var ok=require("obsidian");var ek=require("obsidian");var jS=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Gm={weekdays:{shorthand:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"],longhand:["\u0627\u0644\u0623\u062D\u062F","\u0627\u0644\u0627\u062B\u0646\u064A\u0646","\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062E\u0645\u064A\u0633","\u0627\u0644\u062C\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062A"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"]},firstDayOfWeek:6,rangeSeparator:" \u0625\u0644\u0649 ",weekAbbreviation:"Wk",scrollTitle:"\u0642\u0645 \u0628\u0627\u0644\u062A\u0645\u0631\u064A\u0631 \u0644\u0644\u0632\u064A\u0627\u062F\u0629",toggleTitle:"\u0627\u0636\u063A\u0637 \u0644\u0644\u062A\u0628\u062F\u064A\u0644",amPM:["\u0635","\u0645"],yearAriaLabel:"\u0633\u0646\u0629",monthAriaLabel:"\u0634\u0647\u0631",hourAriaLabel:"\u0633\u0627\u0639\u0629",minuteAriaLabel:"\u062F\u0642\u064A\u0642\u0629",time_24hr:!1};jS.l10ns.ar=Gm;var JW=jS.l10ns;var qS=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Jm={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["J\xE4n","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["J\xE4nner","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};qS.l10ns.at=Jm;var QW=qS.l10ns;var GS=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Zm={weekdays:{shorthand:["B.","B.e.","\xC7.a.","\xC7.","C.a.","C.","\u015E."],longhand:["Bazar","Bazar ert\u0259si","\xC7\u0259r\u015F\u0259nb\u0259 ax\u015Fam\u0131","\xC7\u0259r\u015F\u0259nb\u0259","C\xFCm\u0259 ax\u015Fam\u0131","C\xFCm\u0259","\u015E\u0259nb\u0259"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","\u0130yn","\u0130yl","Avq","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","\u0130yun","\u0130yul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:()=>".",rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmaq \xFC\xE7\xFCn s\xFCr\xFC\u015Fd\xFCr\xFCn",toggleTitle:"A\xE7 / Ba\u011Fla",amPM:["G\u018F","GS"],time_24hr:!0};GS.l10ns.az=Zm;var e4=GS.l10ns;var JS=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Qm={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0410\u045E","\u0421\u0440","\u0427\u0446","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u044F\u0434\u0437\u0435\u043B\u044F","\u041F\u0430\u043D\u044F\u0434\u0437\u0435\u043B\u0430\u043A","\u0410\u045E\u0442\u043E\u0440\u0430\u043A","\u0421\u0435\u0440\u0430\u0434\u0430","\u0427\u0430\u0446\u0432\u0435\u0440","\u041F\u044F\u0442\u043D\u0456\u0446\u0430","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0442\u0443","\u041B\u044E\u0442","\u0421\u0430\u043A","\u041A\u0440\u0430","\u0422\u0440\u0430","\u0427\u044D\u0440","\u041B\u0456\u043F","\u0416\u043D\u0456","\u0412\u0435\u0440","\u041A\u0430\u0441","\u041B\u0456\u0441","\u0421\u043D\u0435"],longhand:["\u0421\u0442\u0443\u0434\u0437\u0435\u043D\u044C","\u041B\u044E\u0442\u044B","\u0421\u0430\u043A\u0430\u0432\u0456\u043A","\u041A\u0440\u0430\u0441\u0430\u0432\u0456\u043A","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u044D\u0440\u0432\u0435\u043D\u044C","\u041B\u0456\u043F\u0435\u043D\u044C","\u0416\u043D\u0456\u0432\u0435\u043D\u044C","\u0412\u0435\u0440\u0430\u0441\u0435\u043D\u044C","\u041A\u0430\u0441\u0442\u0440\u044B\u0447\u043D\u0456\u043A","\u041B\u0456\u0441\u0442\u0430\u043F\u0430\u0434","\u0421\u043D\u0435\u0436\u0430\u043D\u044C"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0422\u044B\u0434.",scrollTitle:"\u041F\u0440\u0430\u043A\u0440\u0443\u0446\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0430\u0432\u0435\u043B\u0456\u0447\u044D\u043D\u043D\u044F",toggleTitle:"\u041D\u0430\u0446\u0456\u0441\u043D\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434",time_24hr:!0};JS.l10ns.be=Qm;var n4=JS.l10ns;var ZS=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Xm={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0435\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u044F\u0434\u0430","\u0427\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A","\u041F\u0435\u0442\u044A\u043A","\u0421\u044A\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0443","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]},time_24hr:!0,firstDayOfWeek:1};ZS.l10ns.bg=Xm;var i4=ZS.l10ns;var QS=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ep={weekdays:{shorthand:["\u09B0\u09AC\u09BF","\u09B8\u09CB\u09AE","\u09AE\u0999\u09CD\u0997\u09B2","\u09AC\u09C1\u09A7","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF","\u09B6\u09C1\u0995\u09CD\u09B0","\u09B6\u09A8\u09BF"],longhand:["\u09B0\u09AC\u09BF\u09AC\u09BE\u09B0","\u09B8\u09CB\u09AE\u09AC\u09BE\u09B0","\u09AE\u0999\u09CD\u0997\u09B2\u09AC\u09BE\u09B0","\u09AC\u09C1\u09A7\u09AC\u09BE\u09B0","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF\u09AC\u09BE\u09B0","\u09B6\u09C1\u0995\u09CD\u09B0\u09AC\u09BE\u09B0","\u09B6\u09A8\u09BF\u09AC\u09BE\u09B0"]},months:{shorthand:["\u099C\u09BE\u09A8\u09C1","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7","\u0985\u0995\u09CD\u099F\u09CB","\u09A8\u09AD\u09C7","\u09A1\u09BF\u09B8\u09C7"],longhand:["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"]}};QS.l10ns.bn=ep;var o4=QS.l10ns;var XS=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},tp={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","\u010Cet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Juni","Juli","Avgust","Septembar","Oktobar","Novembar","Decembar"]},time_24hr:!0};XS.l10ns.bs=tp;var l4=XS.l10ns;var np=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Wc={weekdays:{shorthand:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],longhand:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},months:{shorthand:["Gen","Febr","Mar\xE7","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"],longhand:["Gener","Febrer","Mar\xE7","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"]},ordinal:e=>{let t=e%100;if(t>3&&t<21)return"\xE8";switch(t%10){case 1:return"r";case 2:return"n";case 3:return"r";case 4:return"t";default:return"\xE8"}},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};np.l10ns.cat=np.l10ns.ca=Wc;var c4=np.l10ns;var eE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},rp={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:()=>""};eE.l10ns.ckb=rp;var f4=eE.l10ns;var tE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ip={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};tE.l10ns.cs=ip;var m4=tE.l10ns;var nE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ap={weekdays:{shorthand:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],longhand:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"]},months:{shorthand:["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],longhand:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},firstDayOfWeek:1,ordinal:e=>e===1?"af":e===2?"ail":e===3||e===4?"ydd":e===5||e===6?"ed":e>=7&&e<=10||e==12||e==15||e==18||e==20?"fed":e==11||e==13||e==14||e==16||e==17||e==19?"eg":e>=21&&e<=39?"ain":"",time_24hr:!0};nE.l10ns.cy=ap;var g4=nE.l10ns;var rE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},op={weekdays:{shorthand:["s\xF8n","man","tir","ons","tors","fre","l\xF8r"],longhand:["s\xF8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xF8rdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},ordinal:()=>".",firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge",time_24hr:!0};rE.l10ns.da=op;var v4=rE.l10ns;var iE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},sp={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};iE.l10ns.de=sp;var b4=iE.l10ns;var so={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:e=>{let t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Yc=so;var aE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},lp={firstDayOfWeek:1,rangeSeparator:" \u011Dis ",weekAbbreviation:"Sem",scrollTitle:"Rulumu por pligrandigi la valoron",toggleTitle:"Klaku por \u015Dalti",weekdays:{shorthand:["Dim","Lun","Mar","Mer","\u0134a\u016D","Ven","Sab"],longhand:["diman\u0109o","lundo","mardo","merkredo","\u0135a\u016Ddo","vendredo","sabato"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","A\u016Dg","Sep","Okt","Nov","Dec"],longhand:["januaro","februaro","marto","aprilo","majo","junio","julio","a\u016Dgusto","septembro","oktobro","novembro","decembro"]},ordinal:()=>"-a",time_24hr:!0};aE.l10ns.eo=lp;var E4=aE.l10ns;var oE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},up={weekdays:{shorthand:["Dom","Lun","Mar","Mi\xE9","Jue","Vie","S\xE1b"],longhand:["Domingo","Lunes","Martes","Mi\xE9rcoles","Jueves","Viernes","S\xE1bado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:()=>"\xBA",firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};oE.l10ns.es=up;var x4=oE.l10ns;var sE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},cp={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};sE.l10ns.et=cp;var _4=sE.l10ns;var lE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},dp={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:()=>""};lE.l10ns.fa=dp;var T4=lE.l10ns;var uE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},fp={firstDayOfWeek:1,weekdays:{shorthand:["su","ma","ti","ke","to","pe","la"],longhand:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},months:{shorthand:["tammi","helmi","maalis","huhti","touko","kes\xE4","hein\xE4","elo","syys","loka","marras","joulu"],longhand:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xE4kuu","hein\xE4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},ordinal:()=>".",time_24hr:!0};uE.l10ns.fi=fp;var I4=uE.l10ns;var cE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},hp={weekdays:{shorthand:["Sun","M\xE1n","T\xFDs","Mik","H\xF3s","Fr\xED","Ley"],longhand:["Sunnudagur","M\xE1nadagur","T\xFDsdagur","Mikudagur","H\xF3sdagur","Fr\xEDggjadagur","Leygardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","Apr\xEDl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"]},ordinal:()=>".",firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",scrollTitle:"Rulla fyri at broyta",toggleTitle:"Tr\xFDst fyri at skifta",yearAriaLabel:"\xC1r",time_24hr:!0};cE.l10ns.fo=hp;var O4=cE.l10ns;var dE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},mp={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","f\xE9vr","mars","avr","mai","juin","juil","ao\xFBt","sept","oct","nov","d\xE9c"],longhand:["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]},ordinal:e=>e>1?"":"er",rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"D\xE9filer pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};dE.l10ns.fr=mp;var P4=dE.l10ns;var fE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},pp={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"};fE.l10ns.gr=pp;var R4=fE.l10ns;var hE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},gp={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};hE.l10ns.he=gp;var B4=hE.l10ns;var mE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},yp={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"]}};mE.l10ns.hi=yp;var $4=mE.l10ns;var pE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},vp={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};pE.l10ns.hr=vp;var W4=pE.l10ns;var gE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},wp={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};gE.l10ns.hu=wp;var z4=gE.l10ns;var yE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},bp={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};yE.l10ns.hy=bp;var j4=yE.l10ns;var vE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dp={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:()=>"",time_24hr:!0,rangeSeparator:" - "};vE.l10ns.id=Dp;var G4=vE.l10ns;var wE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Sp={weekdays:{shorthand:["Sun","M\xE1n","\xDEri","Mi\xF0","Fim","F\xF6s","Lau"],longhand:["Sunnudagur","M\xE1nudagur","\xDEri\xF0judagur","Mi\xF0vikudagur","Fimmtudagur","F\xF6studagur","Laugardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Ma\xED","J\xFAn","J\xFAl","\xC1g\xFA","Sep","Okt","N\xF3v","Des"],longhand:["Jan\xFAar","Febr\xFAar","Mars","Apr\xEDl","Ma\xED","J\xFAn\xED","J\xFAl\xED","\xC1g\xFAst","September","Okt\xF3ber","N\xF3vember","Desember"]},ordinal:()=>".",firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"\xC1r",time_24hr:!0};wE.l10ns.is=Sp;var Z4=wE.l10ns;var bE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ep={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Luned\xEC","Marted\xEC","Mercoled\xEC","Gioved\xEC","Venerd\xEC","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:()=>"\xB0",rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare",time_24hr:!0};bE.l10ns.it=Ep;var X4=bE.l10ns;var DE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},kp={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"};DE.l10ns.ja=kp;var tY=DE.l10ns;var SE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},xp={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};SE.l10ns.ka=xp;var rY=SE.l10ns;var EE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Cp={weekdays:{shorthand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F.","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"],longhand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F\u17D2\u1794\u178F\u17B7\u17CD","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"]},months:{shorthand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"],longhand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"]},ordinal:()=>"",firstDayOfWeek:1,rangeSeparator:" \u178A\u179B\u17CB ",weekAbbreviation:"\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD",scrollTitle:"\u179A\u17C6\u1780\u17B7\u179B\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1794\u1784\u17D2\u1780\u17BE\u1793",toggleTitle:"\u1785\u17BB\u1785\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1795\u17D2\u179B\u17B6\u179F\u17CB\u1794\u17D2\u178A\u17BC\u179A",yearAriaLabel:"\u1786\u17D2\u1793\u17B6\u17C6",time_24hr:!0};EE.l10ns.km=Cp;var aY=EE.l10ns;var kE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},_p={weekdays:{shorthand:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],longhand:["\uC77C\uC694\uC77C","\uC6D4\uC694\uC77C","\uD654\uC694\uC77C","\uC218\uC694\uC77C","\uBAA9\uC694\uC77C","\uAE08\uC694\uC77C","\uD1A0\uC694\uC77C"]},months:{shorthand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"],longhand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"]},ordinal:()=>"\uC77C",rangeSeparator:" ~ ",amPM:["\uC624\uC804","\uC624\uD6C4"]};kE.l10ns.ko=_p;var sY=kE.l10ns;var xE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Mp={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"};xE.l10ns.kz=Mp;var uY=xE.l10ns;var CE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Tp={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};CE.l10ns.lt=Tp;var dY=CE.l10ns;var _E=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Fp={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};_E.l10ns.lv=Fp;var hY=_E.l10ns;var ME=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ip={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};ME.l10ns.mk=Ip;var pY=ME.l10ns;var TE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ap={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};TE.l10ns.mn=Ap;var yY=TE.l10ns;var tN=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},FE={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:()=>""},wY=tN.l10ns;var IE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Op={weekdays:{shorthand:["\u1014\u103D\u1031","\u101C\u102C","\u1002\u102B","\u101F\u1030\u1038","\u1000\u103C\u102C","\u101E\u1031\u102C","\u1014\u1031"],longhand:["\u1010\u1014\u1004\u103A\u1039\u1002\u1014\u103D\u1031","\u1010\u1014\u1004\u103A\u1039\u101C\u102C","\u1021\u1004\u103A\u1039\u1002\u102B","\u1017\u102F\u1012\u1039\u1013\u101F\u1030\u1038","\u1000\u103C\u102C\u101E\u1015\u1010\u1031\u1038","\u101E\u1031\u102C\u1000\u103C\u102C","\u1005\u1014\u1031"]},months:{shorthand:["\u1007\u1014\u103A","\u1016\u1031","\u1019\u1010\u103A","\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u101C\u102D\u102F\u1004\u103A","\u101E\u103C","\u1005\u1000\u103A","\u1021\u1031\u102C\u1000\u103A","\u1014\u102D\u102F","\u1012\u102E"],longhand:["\u1007\u1014\u103A\u1014\u101D\u102B\u101B\u102E","\u1016\u1031\u1016\u1031\u102C\u103A\u101D\u102B\u101B\u102E","\u1019\u1010\u103A","\u1027\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u1007\u1030\u101C\u102D\u102F\u1004\u103A","\u101E\u103C\u1002\u102F\u1010\u103A","\u1005\u1000\u103A\u1010\u1004\u103A\u1018\u102C","\u1021\u1031\u102C\u1000\u103A\u1010\u102D\u102F\u1018\u102C","\u1014\u102D\u102F\u101D\u1004\u103A\u1018\u102C","\u1012\u102E\u1007\u1004\u103A\u1018\u102C"]},firstDayOfWeek:1,ordinal:()=>"",time_24hr:!0};IE.l10ns.my=Op;var DY=IE.l10ns;var AE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Lp={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" t/m ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",time_24hr:!0,ordinal:e=>e===1||e===8||e>=20?"ste":"de"};AE.l10ns.nl=Lp;var EY=AE.l10ns;var OE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Pp={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:()=>"."};OE.l10ns.nn=Pp;var xY=OE.l10ns;var LE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Np={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:()=>"."};LE.l10ns.no=Np;var _Y=LE.l10ns;var PE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Rp={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};PE.l10ns.pa=Rp;var TY=PE.l10ns;var NE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Hp={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:()=>"."};NE.l10ns.pl=Hp;var IY=NE.l10ns;var RE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Bp={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};RE.l10ns.pt=Bp;var OY=RE.l10ns;var HE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Vp={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:()=>""};HE.l10ns.ro=Vp;var PY=HE.l10ns;var BE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},$p={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};BE.l10ns.ru=$p;var RY=BE.l10ns;var VE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Up={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};VE.l10ns.si=Up;var BY=VE.l10ns;var $E=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Wp={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"."}};$E.l10ns.sk=Wp;var $Y=$E.l10ns;var UE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Yp={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"."}};UE.l10ns.sl=Yp;var WY=UE.l10ns;var WE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},zp={weekdays:{shorthand:["Di","H\xEB","Ma","M\xEB","En","Pr","Sh"],longhand:["E Diel","E H\xEBn\xEB","E Mart\xEB","E M\xEBrkur\xEB","E Enjte","E Premte","E Shtun\xEB"]},months:{shorthand:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","N\xEBn","Dhj"],longhand:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","N\xEBntor","Dhjetor"]},firstDayOfWeek:1,rangeSeparator:" deri ",weekAbbreviation:"Java",yearAriaLabel:"Viti",monthAriaLabel:"Muaji",hourAriaLabel:"Ora",minuteAriaLabel:"Minuta",time_24hr:!0};WE.l10ns.sq=zp;var zY=WE.l10ns;var YE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Kp={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};YE.l10ns.sr=Kp;var jY=YE.l10ns;var zE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},jp={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:()=>"."};zE.l10ns.sv=jp;var GY=zE.l10ns;var KE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},qp={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:()=>""};KE.l10ns.th=qp;var ZY=KE.l10ns;var jE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Gp={weekdays:{shorthand:["Paz","Pzt","Sal","\xC7ar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Sal\u0131","\xC7ar\u015Famba","Per\u015Fembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","\u015Eub","Mar","Nis","May","Haz","Tem","A\u011Fu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","\u015Eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011Fustos","Eyl\xFCl","Ekim","Kas\u0131m","Aral\u0131k"]},firstDayOfWeek:1,ordinal:()=>".",rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmak i\xE7in kayd\u0131r\u0131n",toggleTitle:"A\xE7/Kapa",amPM:["\xD6\xD6","\xD6S"],time_24hr:!0};jE.l10ns.tr=Gp;var XY=jE.l10ns;var qE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Jp={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};qE.l10ns.uk=Jp;var tz=qE.l10ns;var GE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Zp={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};GE.l10ns.uz=Zp;var rz=GE.l10ns;var JE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Qp={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};JE.l10ns.uz_latn=Qp;var az=JE.l10ns;var ZE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Xp={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 "};ZE.l10ns.vn=Xp;var sz=ZE.l10ns;var QE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},eg={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"};QE.l10ns.zh=eg;var uz=QE.l10ns;var XE=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},tg={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"};XE.l10ns.zh_tw=tg;var dz=XE.l10ns;var nN={ar:Gm,at:Jm,az:Zm,be:Qm,bg:Xm,bn:ep,bs:tp,ca:Wc,ckb:rp,cat:Wc,cs:ip,cy:ap,da:op,de:sp,default:{...so},en:so,eo:lp,es:up,et:cp,fa:dp,fi:fp,fo:hp,fr:mp,gr:pp,he:gp,hi:yp,hr:vp,hu:wp,hy:bp,id:Dp,is:Sp,it:Ep,ja:kp,ka:xp,ko:_p,km:Cp,kz:Mp,lt:Tp,lv:Fp,mk:Ip,mn:Ap,ms:FE,my:Op,nl:Lp,nn:Pp,no:Np,pa:Rp,pl:Hp,pt:Bp,ro:Vp,ru:$p,si:Up,sk:Wp,sl:Yp,sq:zp,sr:Kp,sv:jp,th:qp,tr:Gp,uk:Jp,vn:Xp,zh:eg,zh_tw:tg,uz:Zp,uz_latn:Qp},nn=nN;var tk={ar:nn.ar,cs:nn.cs,da:nn.da,de:nn.de,en:nn.en,"en-gb":nn.en,es:nn.es,fr:nn.fr,hi:nn.hi,id:nn.id,it:nn.it,ja:nn.ja,ko:nn.ko,nl:nn.nl,nn:nn.no,pl:nn.pl,pt:nn.pt,"pt-br":nn.pt,ro:nn.ro,ru:nn.ru,tr:nn.tr,"zh-cn":nn.zh,"zh-tw":nn.zh_tw},rN=tk[ek.moment.locale()];function zc(e){let t=e==null?void 0:e.getSetting("date-picker-week-start"),r=rN||tk.en;return t?{...r,firstDayOfWeek:t}:r}var Kc=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],ka={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:e=>typeof console!="undefined"&&console.warn(e),getWeek:e=>{let t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);let r=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-r.getTime())/864e5-3+(r.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1,win:window};var er=(e,t=2)=>`000${e}`.slice(t*-1),wr=e=>e===!0?1:0;function ng(e,t,r){let n;return function(){let i=arguments;r.clearTimeout(n),n=r.setTimeout(()=>e.apply(this,i),t)}}var jc=e=>Array.isArray(e)?e:[e];var rg=()=>{},Pl=(e,t,r)=>r.months[t?"shorthand":"longhand"][e],nk={D:rg,F:function(e,t,r){e.setMonth(r.months.longhand.indexOf(t))},G:(e,t)=>{e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:(e,t)=>{e.setHours(parseFloat(t))},J:(e,t)=>{e.setDate(parseFloat(t))},K:(e,t,r)=>{e.setHours(e.getHours()%12+12*wr(new RegExp(r.amPM[1],"i").test(t)))},M:function(e,t,r){e.setMonth(r.months.shorthand.indexOf(t))},S:(e,t)=>{e.setSeconds(parseFloat(t))},U:(e,t)=>new Date(parseFloat(t)*1e3),W:function(e,t,r){let n=parseInt(t),i=new Date(e.getFullYear(),0,2+(n-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+r.firstDayOfWeek),i},Y:(e,t)=>{e.setFullYear(parseFloat(t))},Z:(e,t)=>new Date(t),d:(e,t)=>{e.setDate(parseFloat(t))},h:(e,t)=>{e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:(e,t)=>{e.setMinutes(parseFloat(t))},j:(e,t)=>{e.setDate(parseFloat(t))},l:rg,m:(e,t)=>{e.setMonth(parseFloat(t)-1)},n:(e,t)=>{e.setMonth(parseFloat(t)-1)},s:(e,t)=>{e.setSeconds(parseFloat(t))},u:(e,t)=>new Date(parseFloat(t)),w:rg,y:(e,t)=>{e.setFullYear(2e3+parseFloat(t))}},Gi={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})"},ds={Z:e=>e.toISOString(),D:function(e,t,r){return t.weekdays.shorthand[ds.w(e,t,r)]},F:function(e,t,r){return Pl(ds.n(e,t,r)-1,!1,t)},G:function(e,t,r){return er(ds.h(e,t,r))},H:e=>er(e.getHours()),J:function(e,t){return t.ordinal!==void 0?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:(e,t)=>t.amPM[wr(e.getHours()>11)],M:function(e,t){return Pl(e.getMonth(),!0,t)},S:e=>er(e.getSeconds()),U:e=>e.getTime()/1e3,W:function(e,t,r){return r.getWeek(e)},Y:e=>er(e.getFullYear(),4),d:e=>er(e.getDate()),h:e=>e.getHours()%12?e.getHours()%12:12,i:e=>er(e.getMinutes()),j:e=>e.getDate(),l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:e=>er(e.getMonth()+1),n:e=>e.getMonth()+1,s:e=>e.getSeconds(),u:e=>e.getTime(),w:e=>e.getDay(),y:e=>String(e.getFullYear()).substring(2)};var ig=({config:e=ka,l10n:t=so,isMobile:r=!1})=>(n,i,a)=>{let o=a||t;return e.formatDate!==void 0&&!r?e.formatDate(n,i,o):i.split("").map((s,u,l)=>ds[s]&&l[u-1]!=="\\"?ds[s](n,o,e):s!=="\\"?s:"").join("")},qc=({config:e=ka,l10n:t=so})=>(r,n,i,a)=>{if(r!==0&&!r)return;let o=a||t,s,u=r;if(r.getDate)s=new Date(r.getTime());else if(typeof r!="string"&&r.toFixed!==void 0)s=new Date(r);else if(typeof r=="string"){let l=n||(e||ka).dateFormat,c=String(r).trim();if(c==="today")s=new Date,i=!0;else if(e&&e.parseDate)s=e.parseDate(r,l);else if(/Z$/.test(c)||/GMT$/.test(c))s=new Date(r);else{let d,m=[];for(let h=0,g=0,y="";h<l.length;h++){let v=l[h],D=v==="\\",I=l[h-1]==="\\"||D;if(Gi[v]&&!I){y+=Gi[v];let C=new RegExp(y).exec(r);C&&(d=!0)&&m[v!=="Y"?"push":"unshift"]({fn:nk[v],val:C[++g]})}else D||(y+=".")}s=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),m.forEach(({fn:h,val:g})=>s=h(s,g,o)||s),s=d?s:void 0}}if(!(s.getDate&&!isNaN(s.getTime()))){e.errorHandler(new Error(`Invalid date provided: ${u}`));return}return i===!0&&s.setHours(0,0,0,0),s};function br(e,t,r=!0){return r!==!1?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var rk=(e,t,r)=>e>Math.min(t,r)&&e<Math.max(t,r),Gc=(e,t,r)=>e*3600+t*60+r,ik=e=>{let t=Math.floor(e/3600),r=(e-t*3600)/60;return[t,r,e-t*3600-r*60]},ak={DAY:864e5};function Jc(e){let t=e.defaultHour,r=e.defaultMinute,n=e.defaultSeconds;if(e.minDate!==void 0){let i=e.minDate.getHours(),a=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<i&&(t=i),t===i&&r<a&&(r=a),t===i&&r===a&&n<o&&(n=e.minDate.getSeconds())}if(e.maxDate!==void 0){let i=e.maxDate.getHours(),a=e.maxDate.getMinutes();t=Math.min(t,i),t===i&&(r=Math.min(a,r)),t===i&&r===a&&(n=e.maxDate.getSeconds())}return{hours:t,minutes:r,seconds:n}}function tr(e,t,r){if(r===!0)return e.classList.add(t);e.classList.remove(t)}function Pt(e,t,r,n){let i=e.createElement(t);return r=r||"",n=n||"",i.className=r,n!==void 0&&(i.textContent=n),i}function Nl(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ag(e,t){if(t(e))return e;if(e.parentNode)return ag(e.parentNode,t)}function Rl(e,t,r){let n=Pt(e,"div","numInputWrapper"),i=Pt(e,"input","numInput "+t),a=Pt(e,"span","arrowUp"),o=Pt(e,"span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),r!==void 0)for(let s in r)i.setAttribute(s,r[s]);return n.appendChild(i),n.appendChild(a),n.appendChild(o),n}function Dr(e){try{return typeof e.composedPath=="function"?e.composedPath()[0]:e.target}catch(t){return e.target}}var iN=300;function aN(e,t){let r=e.win||window,n={config:{...ka,...Fn.defaultConfig},l10n:Yc};n.parseDate=qc({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=v,n._setHoursFromDate=h,n._positionCalendar=Vt,n.changeMonth=it,n.changeYear=vt,n.clear=N,n.close=Ze,n.onMouseOver=gn,n._createElement=Pt,n.createDay=P,n.destroy=It,n.isEnabled=Wt,n.jumpToDate=C,n.updateValue=de,n.open=vn,n.redraw=Bt,n.set=Z,n.setDate=Ie,n.toggle=ar;function i(){n.utils={getDaysInMonth(M=n.currentMonth,H=n.currentYear){return M===1&&(H%4===0&&H%100!==0||H%400===0)?29:n.l10n.daysInMonth[M]}}}function a(){n.element=n.input=e,n.isOpen=!1,jn(),Rt(),Cn(),Dt(),i(),n.isMobile||A(),I(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&h(n.config.noCalendar?n.latestSelectedDateObj:void 0),de(!1)),u();let M=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&M&&Vt(),ht("onReady")}function o(){var M;return((M=n.calendarContainer)==null?void 0:M.getRootNode()).activeElement||n.element.doc.activeElement}function s(M){return M.bind(n)}function u(){let M=n.config;M.weekNumbers===!1&&M.showMonths===1||M.noCalendar!==!0&&r.requestAnimationFrame(function(){if(n.calendarContainer!==void 0&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),n.daysContainer!==void 0){let H=(n.days.offsetWidth+1)*M.showMonths;n.daysContainer.style.width=H+"px",n.calendarContainer.style.width=H+(n.weekWrapper!==void 0?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function l(M){if(n.selectedDates.length===0){let q=n.config.minDate===void 0||br(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),ie=Jc(n.config);q.setHours(ie.hours,ie.minutes,ie.seconds,q.getMilliseconds()),n.selectedDates=[q],n.latestSelectedDateObj=q}M!==void 0&&M.type!=="blur"&&ge(M);let H=n._input.value;m(),de(),n._input.value!==H&&n._debouncedChange()}function c(M,H){return M%12+12*wr(H===n.l10n.amPM[1])}function d(M){switch(M%24){case 0:case 12:return 12;default:return M%12}}function m(){if(n.hourElement===void 0||n.minuteElement===void 0)return;let M=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,H=(parseInt(n.minuteElement.value,10)||0)%60,q=n.secondElement!==void 0?(parseInt(n.secondElement.value,10)||0)%60:0;n.amPM!==void 0&&(M=c(M,n.amPM.textContent));let ie=n.config.minTime!==void 0||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&br(n.latestSelectedDateObj,n.config.minDate,!0)===0,ye=n.config.maxTime!==void 0||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&br(n.latestSelectedDateObj,n.config.maxDate,!0)===0;if(n.config.maxTime!==void 0&&n.config.minTime!==void 0&&n.config.minTime>n.config.maxTime){let ce=Gc(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),ae=Gc(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),Se=Gc(M,H,q);if(Se>ae&&Se<ce){let nt=ik(ce);M=nt[0],H=nt[1],q=nt[2]}}else{if(ye){let ce=n.config.maxTime!==void 0?n.config.maxTime:n.config.maxDate;M=Math.min(M,ce.getHours()),M===ce.getHours()&&(H=Math.min(H,ce.getMinutes())),H===ce.getMinutes()&&(q=Math.min(q,ce.getSeconds()))}if(ie){let ce=n.config.minTime!==void 0?n.config.minTime:n.config.minDate;M=Math.max(M,ce.getHours()),M===ce.getHours()&&H<ce.getMinutes()&&(H=ce.getMinutes()),H===ce.getMinutes()&&(q=Math.max(q,ce.getSeconds()))}}g(M,H,q)}function h(M){let H=M||n.latestSelectedDateObj;H&&H.getHours&&g(H.getHours(),H.getMinutes(),H.getSeconds())}function g(M,H,q){n.latestSelectedDateObj!==void 0&&n.latestSelectedDateObj.setHours(M%24,H,q||0,0),!(!n.hourElement||!n.minuteElement||n.isMobile)&&(n.hourElement.value=er(n.config.time_24hr?M:(12+M)%12+12*wr(M%12===0)),n.minuteElement.value=er(H),n.amPM!==void 0&&(n.amPM.textContent=n.l10n.amPM[wr(M>=12)]),n.secondElement!==void 0&&(n.secondElement.value=er(q)))}function y(M){let H=Dr(M),q=parseInt(H.value)+(M.delta||0);(q/1e3>1||M.key==="Enter"&&!/[^\d]/.test(q.toString()))&&vt(q)}function v(M,H,q,ie){if(Array.isArray(H))return H.forEach(ye=>v(M,ye,q,ie));if(Array.isArray(M))return M.forEach(ye=>v(ye,H,q,ie));M.addEventListener(H,q,ie),n._handlers.push({remove:()=>M.removeEventListener(H,q,ie)})}function D(){ht("onChange")}function I(){if(n.config.wrap&&["open","close","toggle","clear"].forEach(H=>{Array.prototype.forEach.call(n.element.querySelectorAll(`[data-${H}]`),q=>v(q,"click",n[H]))}),n.isMobile){Ht();return}let M=ng(yn,50,r);if(n._debouncedChange=ng(D,iN,r),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&v(n.daysContainer,"mouseover",H=>{n.config.mode==="range"&&gn(Dr(H))}),v(n._input,"keydown",en),n.calendarContainer!==void 0&&v(n.calendarContainer,"keydown",en),!n.config.inline&&!n.config.static&&v(r,"resize",M),r.ontouchstart!==void 0?v(r.document,"touchstart",jt):v(r.document,"mousedown",jt),v(r.document,"focus",jt,{capture:!0}),n.config.clickOpens===!0&&(v(n._input,"focus",n.open),v(n._input,"click",n.open)),n.daysContainer!==void 0&&(v(n.monthNav,"click",ve),v(n.monthNav,["keyup","increment"],y),v(n.daysContainer,"click",rn)),n.timeContainer!==void 0&&n.minuteElement!==void 0&&n.hourElement!==void 0){let H=q=>Dr(q).select();v(n.timeContainer,["increment"],l),v(n.timeContainer,"blur",l,{capture:!0}),v(n.timeContainer,"click",x),v([n.hourElement,n.minuteElement],["focus","click"],H),n.secondElement!==void 0&&v(n.secondElement,"focus",()=>n.secondElement&&n.secondElement.select()),n.amPM!==void 0&&v(n.amPM,"click",q=>{l(q)})}n.config.allowInput&&v(n._input,"blur",Jt)}function C(M,H){let q=M!==void 0?n.parseDate(M):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),ie=n.currentYear,ye=n.currentMonth;try{q!==void 0&&(n.currentYear=q.getFullYear(),n.currentMonth=q.getMonth())}catch(ce){ce.message="Invalid date supplied: "+q,n.config.errorHandler(ce)}H&&n.currentYear!==ie&&(ht("onYearChange"),re()),H&&(n.currentYear!==ie||n.currentMonth!==ye)&&ht("onMonthChange"),n.redraw()}function x(M){let H=Dr(M);~H.className.indexOf("arrow")&&O(M,H.classList.contains("arrowUp")?1:-1)}function O(M,H,q){let ie=M&&Dr(M),ye=q||ie&&ie.parentNode&&ie.parentNode.firstChild,ce=St("increment");ce.delta=H,ye&&ye.dispatchEvent(ce)}function A(){let M=r.document.createDocumentFragment();if(n.calendarContainer=Pt(r.document,"div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(M.appendChild(pe()),n.innerContainer=Pt(r.document,"div","flatpickr-innerContainer"),n.config.weekNumbers){let{weekWrapper:q,weekNumbers:ie}=Je();n.innerContainer.appendChild(q),n.weekNumbers=ie,n.weekWrapper=q}n.rContainer=Pt(r.document,"div","flatpickr-rContainer"),n.rContainer.appendChild(Ce()),n.daysContainer||(n.daysContainer=Pt(r.document,"div","flatpickr-days"),n.daysContainer.tabIndex=-1),te(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),M.appendChild(n.innerContainer)}n.config.enableTime&&M.appendChild(De()),tr(n.calendarContainer,"rangeMode",n.config.mode==="range"),tr(n.calendarContainer,"animate",n.config.animate===!0),tr(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(M);let H=n.config.appendTo!==void 0&&n.config.appendTo.nodeType!==void 0;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!H&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):n.config.appendTo!==void 0&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){let q=Pt(r.document,"div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(q,n.element),q.appendChild(n.element),n.altInput&&q.appendChild(n.altInput),q.appendChild(n.calendarContainer)}!n.config.static&&!n.config.inline&&(n.config.appendTo!==void 0?n.config.appendTo:r.document.body).appendChild(n.calendarContainer)}function P(M,H,q,ie){let ye=Wt(H,!0),ce=Pt(r.document,"span",M,H.getDate().toString());return ce.dateObj=H,ce.$i=ie,ce.setAttribute("aria-label",n.formatDate(H,n.config.ariaDateFormat)),M.indexOf("hidden")===-1&&br(H,n.now)===0&&(n.todayDateElem=ce,ce.classList.add("today"),ce.setAttribute("aria-current","date")),ye?(ce.tabIndex=-1,L(H)&&(ce.classList.add("selected"),n.selectedDateElem=ce,n.config.mode==="range"&&(tr(ce,"startRange",n.selectedDates[0]&&br(H,n.selectedDates[0],!0)===0),tr(ce,"endRange",n.selectedDates[1]&&br(H,n.selectedDates[1],!0)===0),M==="nextMonthDay"&&ce.classList.add("inRange")))):ce.classList.add("flatpickr-disabled"),n.config.mode==="range"&&K(H)&&!L(H)&&ce.classList.add("inRange"),n.weekNumbers&&n.config.showMonths===1&&M!=="prevMonthDay"&&ie%7===6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(H)+"</span>"),ht("onDayCreate",ce),ce}function B(M){M.focus(),n.config.mode==="range"&&gn(M)}function G(M){let H=M>0?0:n.config.showMonths-1,q=M>0?n.config.showMonths:-1;for(let ie=H;ie!=q;ie+=M){let ye=n.daysContainer.children[ie],ce=M>0?0:ye.children.length-1,ae=M>0?ye.children.length:-1;for(let Se=ce;Se!=ae;Se+=M){let nt=ye.children[Se];if(nt.className.indexOf("hidden")===-1&&Wt(nt.dateObj))return nt}}}function J(M,H){let q=M.className.indexOf("Month")===-1?M.dateObj.getMonth():n.currentMonth,ie=H>0?n.config.showMonths:-1,ye=H>0?1:-1;for(let ce=q-n.currentMonth;ce!=ie;ce+=ye){let ae=n.daysContainer.children[ce],Se=q-n.currentMonth===ce?M.$i+H:H<0?ae.children.length-1:0,nt=ae.children.length;for(let Te=Se;Te>=0&&Te<nt&&Te!=(H>0?nt:-1);Te+=ye){let Ue=ae.children[Te];if(Ue.className.indexOf("hidden")===-1&&Wt(Ue.dateObj)&&Math.abs(M.$i-Te)>=Math.abs(H))return B(Ue)}}n.changeMonth(ye),Q(G(ye),0)}function Q(M,H){let q=o(),ie=Tt(q||n.element.doc.body),ye=M!==void 0?M:ie?q:n.selectedDateElem!==void 0&&Tt(n.selectedDateElem)?n.selectedDateElem:n.todayDateElem!==void 0&&Tt(n.todayDateElem)?n.todayDateElem:G(H>0?1:-1);ye===void 0?n._input.focus():ie?J(ye,H):B(ye)}function oe(M,H){let q=(new Date(M,H,1).getDay()-n.l10n.firstDayOfWeek+7)%7,ie=n.utils.getDaysInMonth((H-1+12)%12,M),ye=n.utils.getDaysInMonth(H,M),ce=r.document.createDocumentFragment(),ae=n.config.showMonths>1,Se=ae?"prevMonthDay hidden":"prevMonthDay",nt=ae?"nextMonthDay hidden":"nextMonthDay",Te=ie+1-q,Ue=0;for(;Te<=ie;Te++,Ue++)ce.appendChild(P(`flatpickr-day ${Se}`,new Date(M,H-1,Te),Te,Ue));for(Te=1;Te<=ye;Te++,Ue++)ce.appendChild(P("flatpickr-day",new Date(M,H,Te),Te,Ue));for(let Ft=ye+1;Ft<=42-q&&(n.config.showMonths===1||Ue%7!==0);Ft++,Ue++)ce.appendChild(P(`flatpickr-day ${nt}`,new Date(M,H+1,Ft%ye),Ft,Ue));let We=Pt(r.document,"div","dayContainer");return We.appendChild(ce),We}function te(){if(n.daysContainer===void 0)return;Nl(n.daysContainer),n.weekNumbers&&Nl(n.weekNumbers);let M=n.element.doc.createDocumentFragment();for(let H=0;H<n.config.showMonths;H++){let q=new Date(n.currentYear,n.currentMonth,1);q.setMonth(n.currentMonth+H),M.appendChild(oe(q.getFullYear(),q.getMonth()))}n.daysContainer.appendChild(M),n.days=n.daysContainer.firstChild,n.config.mode==="range"&&n.selectedDates.length===1&&gn()}function re(){if(n.config.showMonths>1||n.config.monthSelectorType!=="dropdown")return;let M=function(H){return n.config.minDate!==void 0&&n.currentYear===n.config.minDate.getFullYear()&&H<n.config.minDate.getMonth()?!1:!(n.config.maxDate!==void 0&&n.currentYear===n.config.maxDate.getFullYear()&&H>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(let H=0;H<12;H++){if(!M(H))continue;let q=Pt(r.document,"option","flatpickr-monthDropdown-month");q.value=new Date(n.currentYear,H).getMonth().toString(),q.textContent=Pl(H,n.config.shorthandCurrentMonth,n.l10n),q.tabIndex=-1,n.currentMonth===H&&(q.selected=!0),n.monthsDropdownContainer.appendChild(q)}}function ne(){let M=Pt(r.document,"div","flatpickr-month"),H=r.document.createDocumentFragment(),q;n.config.showMonths>1||n.config.monthSelectorType==="static"?q=Pt(r.document,"span","cur-month"):(n.monthsDropdownContainer=Pt(r.document,"select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),v(n.monthsDropdownContainer,"change",ae=>{let Se=Dr(ae),nt=parseInt(Se.value,10);n.changeMonth(nt-n.currentMonth),ht("onMonthChange")}),re(),q=n.monthsDropdownContainer);let ie=Rl(r.document,"cur-year",{tabindex:"-1"}),ye=ie.getElementsByTagName("input")[0];ye.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&ye.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(ye.setAttribute("max",n.config.maxDate.getFullYear().toString()),ye.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());let ce=Pt(r.document,"div","flatpickr-current-month");return ce.appendChild(q),ce.appendChild(ie),H.appendChild(ce),M.appendChild(H),{container:M,yearElement:ye,monthElement:q}}function be(){Nl(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(let M=n.config.showMonths;M--;){let H=ne();n.yearElements.push(H.yearElement),n.monthElements.push(H.monthElement),n.monthNav.appendChild(H.container)}n.monthNav.appendChild(n.nextMonthNav)}function pe(){return n.monthNav=Pt(r.document,"div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=Pt(r.document,"span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=Pt(r.document,"span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,be(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:()=>n.__hidePrevMonthArrow,set(M){n.__hidePrevMonthArrow!==M&&(tr(n.prevMonthNav,"flatpickr-disabled",M),n.__hidePrevMonthArrow=M)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:()=>n.__hideNextMonthArrow,set(M){n.__hideNextMonthArrow!==M&&(tr(n.nextMonthNav,"flatpickr-disabled",M),n.__hideNextMonthArrow=M)}}),n.currentYearElement=n.yearElements[0],ee(),n.monthNav}function De(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");let M=Jc(n.config);n.timeContainer=Pt(r.document,"div","flatpickr-time"),n.timeContainer.tabIndex=-1;let H=Pt(r.document,"span","flatpickr-time-separator",":"),q=Rl(r.document,"flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=q.getElementsByTagName("input")[0];let ie=Rl(r.document,"flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});if(n.minuteElement=ie.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=er(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?M.hours:d(M.hours)),n.minuteElement.value=er(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():M.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(q),n.timeContainer.appendChild(H),n.timeContainer.appendChild(ie),n.config.time_24hr&&n.timeContainer.classList.add("time24hr"),n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");let ye=Rl(r.document,"flatpickr-second");n.secondElement=ye.getElementsByTagName("input")[0],n.secondElement.value=er(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():M.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(Pt(r.document,"span","flatpickr-time-separator",":")),n.timeContainer.appendChild(ye)}return n.config.time_24hr||(n.amPM=Pt(r.document,"span","flatpickr-am-pm",n.l10n.amPM[wr((n.latestSelectedDateObj?parseInt(n.hourElement.value):n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM)),n.timeContainer}function Ce(){n.weekdayContainer?Nl(n.weekdayContainer):n.weekdayContainer=Pt(r.document,"div","flatpickr-weekdays");for(let M=n.config.showMonths;M--;){let H=Pt(r.document,"div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(H)}return U(),n.weekdayContainer}function U(){if(!n.weekdayContainer)return;let M=n.l10n.firstDayOfWeek,H=[...n.l10n.weekdays.shorthand];M>0&&M<H.length&&(H=[...H.splice(M,H.length),...H.splice(0,M)]);for(let q=n.config.showMonths;q--;)n.weekdayContainer.children[q].innerHTML=`
|
||
<span class='flatpickr-weekday'>
|
||
${H.join("</span><span class='flatpickr-weekday'>")}
|
||
</span>
|
||
`}function Je(){n.calendarContainer.classList.add("hasWeeks");let M=Pt(r.document,"div","flatpickr-weekwrapper");M.appendChild(Pt(r.document,"span","flatpickr-weekday",n.l10n.weekAbbreviation));let H=Pt(r.document,"div","flatpickr-weeks");return M.appendChild(H),{weekWrapper:M,weekNumbers:H}}function it(M,H=!0){let q=H?M:M-n.currentMonth;q<0&&n._hidePrevMonthArrow===!0||q>0&&n._hideNextMonthArrow===!0||(n.currentMonth+=q,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ht("onYearChange"),re()),te(),ht("onMonthChange"),ee())}function N(M=!0,H=!0){if(n.input.value="",n.altInput!==void 0&&(n.altInput.value=""),n.mobileInput!==void 0&&(n.mobileInput.value=""),n.selectedDates=[],n.latestSelectedDateObj=void 0,H===!0&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth()),n.config.enableTime===!0){let{hours:q,minutes:ie,seconds:ye}=Jc(n.config);g(q,ie,ye)}n.redraw(),M&&ht("onChange")}function Ze(){n.isOpen=!1,n.isMobile||(n.calendarContainer!==void 0&&n.calendarContainer.classList.remove("open"),n._input!==void 0&&n._input.classList.remove("active")),ht("onClose")}function It(){n.config!==void 0&&ht("onDestroy");for(let M=n._handlers.length;M--;)n._handlers[M].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){let M=n.calendarContainer.parentNode;if(M.lastChild&&M.removeChild(M.lastChild),M.parentNode){for(;M.firstChild;)M.parentNode.insertBefore(M.firstChild,M);M.parentNode.removeChild(M)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput),n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(M=>{try{delete n[M]}catch(H){}})}function Mt(M){return n.calendarContainer.contains(M)}function jt(M){if(n.isOpen&&!n.config.inline){let H=Dr(M),q=Mt(H),ye=!(H===n.input||H===n.altInput||n.element.contains(H)||M.path&&M.path.indexOf&&(~M.path.indexOf(n.input)||~M.path.indexOf(n.altInput)))&&!q&&!Mt(M.relatedTarget),ce=!n.config.ignoredFocusElements.some(ae=>ae.contains(H));ye&&ce&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),n.timeContainer!==void 0&&n.minuteElement!==void 0&&n.hourElement!==void 0&&n.input.value!==""&&n.input.value!==void 0&&l(),n.close(),n.config&&n.config.mode==="range"&&n.selectedDates.length===1&&n.clear(!1))}}function vt(M){if(!M||n.config.minDate&&M<n.config.minDate.getFullYear()||n.config.maxDate&&M>n.config.maxDate.getFullYear())return;let H=M,q=n.currentYear!==H;n.currentYear=H||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),q&&(n.redraw(),ht("onYearChange"),re())}function Wt(M,H=!0){var ce;let q=n.parseDate(M,void 0,H);if(n.config.minDate&&q&&br(q,n.config.minDate,H!==void 0?H:!n.minDateHasTime)<0||n.config.maxDate&&q&&br(q,n.config.maxDate,H!==void 0?H:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&n.config.disable.length===0)return!0;if(q===void 0)return!1;let ie=!!n.config.enable,ye=(ce=n.config.enable)!=null?ce:n.config.disable;for(let ae=0,Se;ae<ye.length;ae++){if(Se=ye[ae],typeof Se=="function"&&Se(q))return ie;if(Se.getTime&&q!==void 0&&Se.getTime()===q.getTime())return ie;if(typeof Se=="string"){let nt=n.parseDate(Se,void 0,!0);return nt&&nt.getTime()===q.getTime()?ie:!ie}else if(typeof Se=="object"&&q!==void 0&&Se.from&&Se.to&&q.getTime()>=Se.from.getTime()&&q.getTime()<=Se.to.getTime())return ie}return!ie}function Tt(M){return n.daysContainer!==void 0?M.className.indexOf("hidden")===-1&&M.className.indexOf("flatpickr-disabled")===-1&&n.daysContainer.contains(M):!1}function Jt(M){let H=M.target===n._input,q=n._input.value.trimEnd()!==ue();H&&q&&!(M.relatedTarget&&Mt(M.relatedTarget))&&n.setDate(n._input.value,!0,M.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function en(M){let H=Dr(M),q=n.config.wrap?e.contains(H):H===n._input,ie=n.config.allowInput,ye=n.isOpen&&(!ie||!q),ce=n.config.inline&&q&&!ie;if(M.keyCode===13&&q){if(ie)return n.setDate(n._input.value,!0,H===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),H.blur();n.open()}else if(Mt(H)||ye||ce){let ae=!!n.timeContainer&&n.timeContainer.contains(H);switch(M.keyCode){case 13:ae?(M.preventDefault(),l(),Hr()):rn(M);break;case 27:M.preventDefault(),Hr();break;case 8:case 46:q&&!n.config.allowInput&&(M.preventDefault(),n.clear());break;case 37:case 39:if(!ae&&!q){M.preventDefault();let Se=o();if(n.daysContainer!==void 0&&(ie===!1||Se&&Tt(Se))){let nt=M.keyCode===39?1:-1;M.ctrlKey?(M.stopPropagation(),it(nt),Q(G(1),0)):Q(void 0,nt)}}else n.hourElement&&n.hourElement.focus();break;case 38:case 40:{M.preventDefault();let Se=M.keyCode===40?1:-1;n.daysContainer&&H.$i!==void 0||H===n.input||H===n.altInput?M.ctrlKey?(M.stopPropagation(),vt(n.currentYear-Se),Q(G(1),0)):ae||Q(void 0,Se*7):H===n.currentYearElement?vt(n.currentYear-Se):n.config.enableTime&&(!ae&&n.hourElement&&n.hourElement.focus(),l(M),n._debouncedChange());break}case 9:if(ae){let Se=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(Te=>Te),nt=Se.indexOf(H);if(nt!==-1){let Te=Se[nt+(M.shiftKey?-1:1)];M.preventDefault(),(Te||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(H)&&M.shiftKey&&(M.preventDefault(),n._input.focus());break;default:break}}if(n.amPM!==void 0&&H===n.amPM)switch(M.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],m(),de();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],m(),de();break}(q||Mt(H))&&ht("onKeyDown",M)}function gn(M,H="flatpickr-day"){if(n.selectedDates.length!==1||M&&(!M.classList.contains(H)||M.classList.contains("flatpickr-disabled")))return;let q=M?M.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),ie=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),ye=Math.min(q,n.selectedDates[0].getTime()),ce=Math.max(q,n.selectedDates[0].getTime()),ae=!1,Se=0,nt=0;for(let Ue=ye;Ue<ce;Ue+=ak.DAY)Wt(new Date(Ue),!0)||(ae=ae||Ue>ye&&Ue<ce,Ue<ie&&(!Se||Ue>Se)?Se=Ue:Ue>ie&&(!nt||Ue<nt)&&(nt=Ue));Array.from(n.rContainer.querySelectorAll(`*:nth-child(-n+${n.config.showMonths}) > .${H}`)).forEach(Ue=>{let Ft=Ue.dateObj.getTime(),Hn=Se>0&&Ft<Se||nt>0&&Ft>nt;if(Hn){Ue.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Ot=>{Ue.classList.remove(Ot)});return}else if(ae&&!Hn)return;["startRange","inRange","endRange","notAllowed"].forEach(Ot=>{Ue.classList.remove(Ot)}),M!==void 0&&(M.classList.add(q<=n.selectedDates[0].getTime()?"startRange":"endRange"),ie<q&&Ft===ie?Ue.classList.add("startRange"):ie>q&&Ft===ie&&Ue.classList.add("endRange"),Ft>=Se&&(nt===0||Ft<=nt)&&rk(Ft,ie,q)&&Ue.classList.add("inRange"))})}function yn(){n.isOpen&&!n.config.static&&!n.config.inline&&Vt()}function vn(M,H=n._positionElement){if(n.isMobile===!0){if(M){M.preventDefault();let ie=Dr(M);ie&&ie.blur()}n.mobileInput!==void 0&&(n.mobileInput.focus(),n.mobileInput.click()),ht("onOpen");return}else if(n._input.disabled||n.config.inline)return;let q=n.isOpen;n.isOpen=!0,q||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),ht("onOpen"),Vt(H)),n.config.enableTime===!0&&n.config.noCalendar===!0&&n.config.allowInput===!1&&(M===void 0||!n.timeContainer.contains(M.relatedTarget))&&r.setTimeout(()=>n.hourElement.select(),50)}function xn(M){return H=>{let q=n.config[`_${M}Date`]=n.parseDate(H,n.config.dateFormat),ie=n.config[`_${M==="min"?"max":"min"}Date`];q!==void 0&&(n[M==="min"?"minDateHasTime":"maxDateHasTime"]=q.getHours()>0||q.getMinutes()>0||q.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(ye=>Wt(ye)),!n.selectedDates.length&&M==="min"&&h(q),de()),n.daysContainer&&(Bt(),q!==void 0?n.currentYearElement[M]=q.getFullYear().toString():n.currentYearElement.removeAttribute(M),n.currentYearElement.disabled=!!ie&&q!==void 0&&ie.getFullYear()===q.getFullYear())}}function jn(){let M=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],H={...JSON.parse(JSON.stringify(e.dataset||{})),...t},q={};n.config.parseDate=H.parseDate,n.config.formatDate=H.formatDate,Object.defineProperty(n.config,"enable",{get:()=>n.config._enable,set:ce=>{n.config._enable=at(ce)}}),Object.defineProperty(n.config,"disable",{get:()=>n.config._disable,set:ce=>{n.config._disable=at(ce)}});let ie=H.mode==="time";if(!H.dateFormat&&(H.enableTime||ie)){let ce=Fn.defaultConfig.dateFormat||ka.dateFormat;q.dateFormat=H.noCalendar||ie?"H:i"+(H.enableSeconds?":S":""):ce+" H:i"+(H.enableSeconds?":S":"")}if(H.altInput&&(H.enableTime||ie)&&!H.altFormat){let ce=Fn.defaultConfig.altFormat||ka.altFormat;q.altFormat=H.noCalendar||ie?"h:i"+(H.enableSeconds?":S K":" K"):ce+` h:i${H.enableSeconds?":S":""} K`}Object.defineProperty(n.config,"minDate",{get:()=>n.config._minDate,set:xn("min")}),Object.defineProperty(n.config,"maxDate",{get:()=>n.config._maxDate,set:xn("max")});let ye=ce=>ae=>{n.config[ce==="min"?"_minTime":"_maxTime"]=n.parseDate(ae,"H:i:S")};Object.defineProperty(n.config,"minTime",{get:()=>n.config._minTime,set:ye("min")}),Object.defineProperty(n.config,"maxTime",{get:()=>n.config._maxTime,set:ye("max")}),H.mode==="time"&&(n.config.noCalendar=!0,n.config.enableTime=!0),Object.assign(n.config,q,H);for(let ce=0;ce<M.length;ce++)n.config[M[ce]]=n.config[M[ce]]===!0||n.config[M[ce]]==="true";Kc.filter(ce=>n.config[ce]!==void 0).forEach(ce=>{n.config[ce]=jc(n.config[ce]||[]).map(s)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&n.config.mode==="single"&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let ce=0;ce<n.config.plugins.length;ce++){let ae=n.config.plugins[ce](n)||{};for(let Se in ae)Kc.indexOf(Se)>-1?n.config[Se]=jc(ae[Se]).map(s).concat(n.config[Se]):typeof H[Se]=="undefined"&&(n.config[Se]=ae[Se])}H.altInputClass||(n.config.altInputClass=sn().className+" "+n.config.altInputClass),ht("onParseConfig")}function sn(){return n.config.wrap?e.querySelector("[data-input]"):e}function Rt(){typeof n.config.locale!="object"&&typeof Fn.l10ns[n.config.locale]=="undefined"&&n.config.errorHandler(new Error(`flatpickr: invalid locale ${n.config.locale}`)),n.l10n={...Fn.l10ns.default,...typeof n.config.locale=="object"?n.config.locale:n.config.locale!=="default"?Fn.l10ns[n.config.locale]:void 0},Gi.D=`(${n.l10n.weekdays.shorthand.join("|")})`,Gi.l=`(${n.l10n.weekdays.longhand.join("|")})`,Gi.M=`(${n.l10n.months.shorthand.join("|")})`,Gi.F=`(${n.l10n.months.longhand.join("|")})`,Gi.K=`(${n.l10n.amPM[0]}|${n.l10n.amPM[1]}|${n.l10n.amPM[0].toLowerCase()}|${n.l10n.amPM[1].toLowerCase()})`,{...t,...JSON.parse(JSON.stringify(e.dataset||{}))}.time_24hr===void 0&&Fn.defaultConfig.time_24hr===void 0&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=ig(n),n.parseDate=qc({config:n.config,l10n:n.l10n})}function Vt(M){if(typeof n.config.position=="function")return void n.config.position(n,M);if(n.calendarContainer===void 0)return;ht("onPreCalendarPosition");let H=M||n._positionElement,q=Array.prototype.reduce.call(n.calendarContainer.children,(Yt,Bn)=>Yt+Bn.offsetHeight,0),ie=n.calendarContainer.offsetWidth,ye=n.config.position.split(" "),ce=ye[0],ae=ye.length>1?ye[1]:null,Se=H.getBoundingClientRect(),nt=r.innerHeight-Se.bottom,Te=ce==="above"||ce!=="below"&&nt<q&&Se.top>q,Ue=r.pageYOffset+Se.top+(Te?-q-2:H.offsetHeight+2);if(tr(n.calendarContainer,"arrowTop",!Te),tr(n.calendarContainer,"arrowBottom",Te),n.config.inline)return;let We=r.pageXOffset+Se.left,Ft=!1,Hn=!1;ae==="center"?(We-=(ie-Se.width)/2,Ft=!0):ae==="right"&&(We-=ie-Se.width,Hn=!0),tr(n.calendarContainer,"arrowLeft",!Ft&&!Hn),tr(n.calendarContainer,"arrowCenter",Ft),tr(n.calendarContainer,"arrowRight",Hn);let Ot=r.document.body.offsetWidth-(r.pageXOffset+Se.right),or=We+ie>r.document.body.offsetWidth,sr=Ot+ie>r.document.body.offsetWidth;if(tr(n.calendarContainer,"rightMost",or),!n.config.static)if(n.calendarContainer.style.top=`${Ue}px`,!or)n.calendarContainer.style.left=`${We}px`,n.calendarContainer.style.right="auto";else if(!sr)n.calendarContainer.style.left="auto",n.calendarContainer.style.right=`${Ot}px`;else{let Yt=Sr();if(Yt===void 0)return;let Bn=r.document.body.offsetWidth,Er=Math.max(0,Bn/2-ie/2),Gr=".flatpickr-calendar.centerMost:before",tu=".flatpickr-calendar.centerMost:after",z=Yt.cssRules.length,k=`{left:${Se.left}px;right:auto;}`;tr(n.calendarContainer,"rightMost",!1),tr(n.calendarContainer,"centerMost",!0),Yt.insertRule(`${Gr},${tu}${k}`,z),n.calendarContainer.style.left=`${Er}px`,n.calendarContainer.style.right="auto"}}function Sr(){let M=null;for(let H=0;H<r.document.styleSheets.length;H++){let q=r.document.styleSheets[H];if(q.cssRules){try{q.cssRules}catch(ie){continue}M=q;break}}return M!=null?M:Rr()}function Rr(){let M=r.document.createElement("style");return r.document.head.appendChild(M),M.sheet}function Bt(){n.config.noCalendar||n.isMobile||(re(),ee(),te())}function Hr(){n._input.focus(),r.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?r.setTimeout(n.close,0):n.close()}function rn(M){M.preventDefault(),M.stopPropagation();let H=ae=>ae.classList&&ae.classList.contains("flatpickr-day")&&!ae.classList.contains("flatpickr-disabled")&&!ae.classList.contains("notAllowed"),q=ag(Dr(M),H);if(q===void 0)return;let ie=q,ye=n.latestSelectedDateObj=new Date(ie.dateObj.getTime()),ce=(ye.getMonth()<n.currentMonth||ye.getMonth()>n.currentMonth+n.config.showMonths-1)&&n.config.mode!=="range";if(n.selectedDateElem=ie,n.config.mode==="single")n.selectedDates=[ye];else if(n.config.mode==="multiple"){let ae=L(ye);ae?n.selectedDates.splice(parseInt(ae),1):n.selectedDates.push(ye)}else n.config.mode==="range"&&(n.selectedDates.length===2&&n.clear(!1,!1),n.latestSelectedDateObj=ye,n.selectedDates.push(ye),br(ye,n.selectedDates[0],!0)!==0&&n.selectedDates.sort((ae,Se)=>ae.getTime()-Se.getTime()));if(m(),ce){let ae=n.currentYear!==ye.getFullYear();n.currentYear=ye.getFullYear(),n.currentMonth=ye.getMonth(),ae&&(ht("onYearChange"),re()),ht("onMonthChange")}if(ee(),te(),de(),!ce&&n.config.mode!=="range"&&n.config.showMonths===1?B(ie):n.selectedDateElem!==void 0&&n.hourElement===void 0&&n.selectedDateElem&&n.selectedDateElem.focus(),n.hourElement!==void 0&&n.hourElement!==void 0&&n.hourElement.focus(),n.config.closeOnSelect){let ae=n.config.mode==="single"&&!n.config.enableTime,Se=n.config.mode==="range"&&n.selectedDates.length===2&&!n.config.enableTime;(ae||Se)&&Hr()}D()}let At={locale:[Rt,U],showMonths:[be,u,Ce],minDate:[C],maxDate:[C],positionElement:[_n],clickOpens:[()=>{n.config.clickOpens===!0?(v(n._input,"focus",n.open),v(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function Z(M,H){if(M!==null&&typeof M=="object"){Object.assign(n.config,M);for(let q in M)At[q]!==void 0&&At[q].forEach(ie=>ie())}else n.config[M]=H,At[M]!==void 0?At[M].forEach(q=>q()):Kc.indexOf(M)>-1&&(n.config[M]=jc(H));n.redraw(),de(!0)}function me(M,H){let q=[];if(Array.isArray(M))q=M.map(ie=>n.parseDate(ie,H));else if(M.getDate||typeof M=="number")q=[n.parseDate(M,H)];else if(typeof M=="string")switch(n.config.mode){case"single":case"time":q=[n.parseDate(M,H)];break;case"multiple":q=M.split(n.config.conjunction).map(ie=>n.parseDate(ie,H));break;case"range":q=M.split(n.l10n.rangeSeparator).map(ie=>n.parseDate(ie,H));break;default:break}else n.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(M)}`));n.selectedDates=n.config.allowInvalidPreload?q:q.filter(ie=>ie.getDate&&Wt(ie,!1)),n.config.mode==="range"&&n.selectedDates.sort((ie,ye)=>ie.getTime()-ye.getTime())}function Ie(M,H=!1,q=n.config.dateFormat){if(M!==0&&!M||Array.isArray(M)&&M.length===0)return n.clear(H);me(M,q),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),C(void 0,H),h(),n.selectedDates.length===0&&n.clear(!1),de(H),H&&ht("onChange")}function at(M){return M.slice().map(H=>typeof H=="string"||typeof H=="number"||H.getDate?n.parseDate(H,void 0,!0):H&&typeof H=="object"&&H.from&&H.to?{from:n.parseDate(H.from,void 0),to:n.parseDate(H.to,void 0)}:H).filter(H=>H)}function Dt(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;let M=n.config.defaultDate||((n.input.nodeName==="INPUT"||n.input.nodeName==="TEXTAREA")&&n.input.placeholder&&n.input.value===n.input.placeholder?null:n.input.value);M&&me(M,n.config.dateFormat),n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]),n.config.minTime!==void 0&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i")),n.config.maxTime!==void 0&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i")),n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}function Cn(){if(n.input=sn(),!n.input){n.config.errorHandler(new Error("Invalid input element specified"));return}n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=Pt(r.document,n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling)),n.config.allowInput||n._input.setAttribute("readonly","readonly"),_n()}function _n(){n._positionElement=n.config.positionElement||n._input}function Ht(){let M=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=Pt(r.document,"input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=M,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr=M==="datetime-local"?"Y-m-d\\TH:i:S":M==="date"?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr)),n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d")),n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d")),n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step"))),n.input.type="hidden",n.altInput!==void 0&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(H){}v(n.mobileInput,"change",H=>{n.setDate(Dr(H).value,!1,n.mobileFormatStr),ht("onChange"),ht("onClose")})}function ar(M){if(n.isOpen===!0)return n.close();n.open(M)}function ht(M,H){if(n.config===void 0)return;let q=n.config[M];if(q!==void 0&&q.length>0)for(let ie=0;q[ie]&&ie<q.length;ie++)q[ie](n.selectedDates,n.input.value,n,H);M==="onChange"&&(n.input.dispatchEvent(St("change")),n.input.dispatchEvent(St("input")))}function St(M){let H=r.document.createEvent("Event");return H.initEvent(M,!0,!0),H}function L(M){for(let H=0;H<n.selectedDates.length;H++){let q=n.selectedDates[H];if(q.getDate&&br(q,M)===0)return""+H}return!1}function K(M){return n.config.mode!=="range"||n.selectedDates.length<2?!1:br(M,n.selectedDates[0])>=0&&br(M,n.selectedDates[1])<=0}function ee(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach((M,H)=>{let q=new Date(n.currentYear,n.currentMonth,1);q.setMonth(n.currentMonth+H),n.config.showMonths>1||n.config.monthSelectorType==="static"?n.monthElements[H].textContent=Pl(q.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=q.getMonth().toString(),M.value=q.getFullYear().toString()}),n._hidePrevMonthArrow=n.config.minDate!==void 0&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=n.config.maxDate!==void 0&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ue(M){let H=M||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(q=>n.formatDate(q,H)).filter((q,ie,ye)=>n.config.mode!=="range"||n.config.enableTime||ye.indexOf(q)===ie).join(n.config.mode!=="range"?n.config.conjunction:n.l10n.rangeSeparator)}function de(M=!0){n.mobileInput!==void 0&&n.mobileFormatStr&&(n.mobileInput.value=n.latestSelectedDateObj!==void 0?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=ue(n.config.dateFormat),n.altInput!==void 0&&(n.altInput.value=ue(n.config.altFormat)),M!==!1&&ht("onValueUpdate")}function ve(M){let H=Dr(M),q=n.prevMonthNav.contains(H),ie=n.nextMonthNav.contains(H);q||ie?it(q?-1:1):n.yearElements.indexOf(H)>=0?H.select():H.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):H.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}function ge(M){M.preventDefault();let H=M.type==="keydown",q=Dr(M),ie=q;n.amPM!==void 0&&q===n.amPM&&(n.amPM.textContent=n.l10n.amPM[wr(n.amPM.textContent===n.l10n.amPM[0])]);let ye=parseFloat(ie.getAttribute("min")),ce=parseFloat(ie.getAttribute("max")),ae=parseFloat(ie.getAttribute("step")),Se=parseInt(ie.value,10),nt=M.delta||(H?M.which===38?1:-1:0),Te=Se+ae*nt;if(typeof ie.value!="undefined"&&ie.value.length===2){let Ue=ie===n.hourElement,We=ie===n.minuteElement;Te<ye?(Te=ce+Te+wr(!Ue)+(wr(Ue)&&wr(!n.amPM)),We&&O(void 0,-1,n.hourElement)):Te>ce&&(Te=ie===n.hourElement?Te-ce-wr(!n.amPM):ye,We&&O(void 0,1,n.hourElement)),n.amPM&&Ue&&(ae===1?Te+Se===23:Math.abs(Te-Se)>ae)&&(n.amPM.textContent=n.l10n.amPM[wr(n.amPM.textContent===n.l10n.amPM[0])]),ie.value=er(Te)}}return a(),n}function Zc(e,t){let r=Array.prototype.slice.call(e).filter(i=>i.onClickEvent),n=[];for(let i=0;i<r.length;i++){let a=r[i];try{if(a.getAttribute("data-fp-omit")!==null)continue;a._flatpickr!==void 0&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=aN(a,t||{}),n.push(a._flatpickr)}catch(o){console.error(o)}}return n.length===1?n[0]:n}typeof HTMLElement!="undefined"&&typeof HTMLCollection!="undefined"&&typeof NodeList!="undefined"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return Zc(this,e)},HTMLElement.prototype.flatpickr=function(e){return Zc([this],e)});var Fn=function(e,t){return Zc([e],t)};Fn.defaultConfig={};Fn.l10ns={en:{...Yc},default:{...Yc}};Fn.localize=e=>{Fn.l10ns.default={...Fn.l10ns.default,...e}};Fn.setDefaults=e=>{Fn.defaultConfig={...Fn.defaultConfig,...e}};Fn.parseDate=qc({});Fn.formatDate=ig({});Fn.compareDates=br;typeof jQuery!="undefined"&&typeof jQuery.fn!="undefined"&&(jQuery.fn.flatpickr=function(e){return Zc(this,e)});Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof e=="string"?parseInt(e,10):e))};typeof window!="undefined"&&(window.flatpickr=Fn);var Qc=Fn;function Xc(e,t,r){let n=t.getSetting("date-format"),i=t.getSetting("date-trigger"),a=t.getSetting("link-date-to-daily-note"),o=(0,ok.moment)(r).format(n),s=a?ed(t.app,o):`{${o}} `,u={line:e.start.line,ch:e.start.ch+i.length};e.editor.replaceRange(s,u,e.end),e.editor.setCursor({line:u.line,ch:u.ch+s.length}),e.editor.focus()}function sk(e,t,r,n){r.createEl("input",{type:"text"},i=>{r.win.setTimeout(()=>n(Qc(i,{win:i.win,now:new Date,inline:!0,locale:zc(t),onChange:a=>Xc(e,t,a[0])})))})}function lk(e){let t=e.month(),r=e.clone().startOf("month").weekday(0),n=e.diff(r,"week");e.subtract(1,"month").startOf("month").weekday(6).add(n,"week");let i=e.month();for(;t===i;)e.subtract(1,"week"),i=e.month();return e}function uk(e){let t=e.month(),r=e.clone().startOf("month").weekday(6),n=e.diff(r,"week");e.add(1,"month").startOf("month").weekday(0).add(n,"week");let i=e.month();for(;t===i;)e.add(1,"week"),i=e.month();return e}function og(e,t,r){let n=(t.getLine(r.line)||"").slice(0,r.ch),i=new RegExp(`(?:^|\\s)${Qn(e)}{?([^}]*)$`);return n.match(i)}function sg(e,t,r){let n=(t.getLine(r.line)||"").slice(0,r.ch),i=new RegExp(`(?:^|\\s)${Qn(e)}{?([^}]*)$`);return n.match(i)}var td=class extends Hl.EditorSuggest{constructor(r,n){super(r);this.datepicker=null;this.app=r,this.plugin=n,[...this.scope.keys].forEach(a=>this.scope.unregister(a)),this.suggestEl.addClass($("date-suggest"));let i=a=>{let{datepicker:o}=this;if(!o)return;let s=(0,Hl.moment)(o.selectedDates[0]||new Date),u;if(a==="right"?s.weekday()===6?u=uk(s).toDate():u=s.add(1,"day").toDate():a==="left"?s.weekday()===0?u=lk(s).toDate():u=s.subtract(1,"day").toDate():a==="up"?u=s.subtract(1,"week").toDate():a==="down"&&(u=s.add(1,"week").toDate()),u)return o.setDate(u,!1),!1};this.scope.register([],"ArrowLeft",()=>i("left")),this.scope.register([],"ArrowRight",()=>i("right")),this.scope.register([],"ArrowDown",()=>i("down")),this.scope.register([],"ArrowUp",()=>i("up")),this.scope.register([],"Enter",()=>{let a=this.datepicker.selectedDates,o=this.context;return a.length?Xc(o,this.stateManager,a[0]):Xc(o,this.stateManager,new Date),this.close(),!1}),this.scope.register([],"Escape",()=>(this.close(),!1))}get stateManager(){return this.context?this.plugin.stateManagers.get(this.context.file):null}getSuggestions(){return[]}renderSuggestion(){}selectSuggestion(){}showSuggestions(){let{datepicker:r,suggestEl:n,context:i,stateManager:a}=this;!r&&a&&(n.empty(),n.addClasses([$("date-picker"),$("ignore-click-outside")]),sk(i,a,n,o=>{this.datepicker=o,this.updatePosition(!0)}))}onTrigger(r,n,i){let a=this.plugin.getStateManager(i);if(!a)return null;let o=a.getSetting("date-trigger");return sg(o,n,r)?{start:{line:r.line,ch:r.ch-o.length},end:r,query:o}:null}close(){super.close(),this.datepicker&&(this.datepicker.destroy(),this.datepicker=null,this.suggestEl.empty())}},nd=class extends Hl.EditorSuggest{constructor(t,r){super(t),this.app=t,this.plugin=r}onTrigger(t,r,n){let i=this.plugin.getStateManager(n);if(!i)return null;let a=i.getSetting("time-trigger"),o=og(a,r,t);return o?(this.times=lg(i),{start:{line:t.line,ch:t.ch-o[1].length-a.length},end:t,query:o[1]}):null}getSuggestions(t){return this.plugin.getStateManager(t.file)?this.times.filter(n=>n.startsWith(t.query)||n.startsWith("0"+t.query)):[]}renderSuggestion(t,r){t.endsWith("00")?r.createEl("strong",{text:t}):r.setText(t)}selectSuggestion(t){let{context:r,plugin:n}=this,i=n.getStateManager(r.file);if(!i)return;let o=`${i.getSetting("time-trigger")}{${t}} `;r.editor.replaceRange(o,r.start,r.end),r.editor.setCursor({line:r.start.line,ch:r.start.ch+o.length}),r.editor.focus()}close(){super.close(),this.times=null}};function Ca(e,t,r){return xa.Platform.isMobile||e.getSetting("new-line-trigger")==="enter"?!(t||r):t||r}function oN(e){return new Proxy(e.app,{get(t,r,n){return r==="vault"?new Proxy(e.app.vault,{get(i,a,o){return a==="config"?new Proxy(e.app.vault.config,{get(s,u,l){return["showLineNumber","foldHeading","foldIndent"].includes(u)?!1:Reflect.get(s,u,l)}}):Reflect.get(i,a,o)}}):Reflect.get(t,r,n)}})}function sN(e,t){return{app:e.app,showSearch:Mr,toggleMode:Mr,onMarkdownScroll:Mr,getMode:()=>"source",scroll:0,editMode:null,get editor(){return t()},get file(){return e.file},get path(){return e.file.path}}}function lN(e){var r,n;let t=uN(e);t&&((n=(r=window.CodeMirrorAdapter)==null?void 0:r.Vim)==null||n.enterInsertMode(t))}function uN(e){var t,r,n;return(n=(r=(t=e==null?void 0:e.plugins)==null?void 0:t.find(i=>i!=null&&i.value?"useNextTextInput"in i.value&&"waitForCopy"in i.value:!1))==null?void 0:r.value)==null?void 0:n.cm}function _a({editorRef:e,onEnter:t,onEscape:r,onChange:n,onPaste:i,className:a,onSubmit:o,editState:s,value:u,placeholder:l}){let{view:c,stateManager:d}=Ee(tt),m=Fe(),h=Fe();Ae(()=>{class y extends c.plugin.MarkdownEditor{constructor(){super(...arguments);this.isKanbanEditor=!0}showTasksPluginAutoSuggest(P,B,G){if(og(d.getSetting("time-trigger"),B,P)||sg(d.getSetting("date-trigger"),B,P))return!1;if(G&&P.line===0)return!0}updateBottomPadding(){}onUpdate(P,B){super.onUpdate(P,B),n&&n(P)}buildLocalExtensions(){let P=super.buildLocalExtensions();P.push(Uc.init(()=>d)),P.push(KS),P.push(fs.Prec.highest(lo.EditorView.domEventHandlers({focus:G=>(c.activeEditor=this.owner,xa.Platform.isMobile&&c.contentEl.addClass("is-mobile-editing"),G.win.setTimeout(()=>{this.app.workspace.activeEditor=this.owner,xa.Platform.isMobile&&this.app.mobileToolbar.update()}),!0),blur:()=>(xa.Platform.isMobile&&(c.contentEl.removeClass("is-mobile-editing"),this.app.mobileToolbar.update()),!0)}))),l&&P.push((0,lo.placeholder)(l)),i&&P.push(fs.Prec.high(lo.EditorView.domEventHandlers({paste:i})));let B=(G,J)=>Q=>(t(Q,G,J)||(this.app.vault.getConfig("smartIndentList")?this.editor.newlineAndIndentContinueMarkdownList():(0,ck.insertBlankLine)(Q)),!0);return P.push(fs.Prec.highest(lo.keymap.of([{key:"Enter",run:B(!1,!1),shift:B(!1,!0),preventDefault:!0},{key:"Mod-Enter",run:B(!0,!1),shift:B(!0,!0),preventDefault:!0},{key:"Escape",run:G=>(r(G),!1),preventDefault:!0}]))),P}}let v=sN(c,()=>I.editor),D=oN(c),I=c.plugin.addChild(new y(D,m.current,v)),C=I.cm;h.current=C,e&&(e.current=C),v.editMode=I,I.set(u||""),kn(s)&&(C.dispatch({userEvent:"select.pointer",selection:fs.EditorSelection.single(C.posAtCoords(s,!1))}),C.dom.win.setTimeout(()=>{lN(C)}));let x=()=>{m.current.scrollIntoView({block:"end"})};return xa.Platform.isMobile&&C.dom.win.addEventListener("keyboardDidShow",x),()=>{xa.Platform.isMobile&&(C.dom.win.removeEventListener("keyboardDidShow",x),c.activeEditor===v&&(c.activeEditor=null),D.workspace.activeEditor===v&&(D.workspace.activeEditor=null,D.mobileToolbar.update(),c.contentEl.removeClass("is-mobile-editing"))),c.plugin.removeChild(I),h.current=null,e&&(e.current=null)}},[]);let g=["cm-table-widget"];return a&&g.push(a),E(ct,{children:[E("div",{className:Ge(g),ref:m}),xa.Platform.isMobile&&E("button",{onClick:()=>o(h.current),className:Ge([$("item-submit-button"),"mod-cta"]),children:R("Submit")})]})}var Bl=require("obsidian");function cN(e,t){if(t)return t.from((0,Bl.moment)());let r=(0,Bl.moment)().startOf("day");if(r.isSame(e,"day"))return R("today");let n=e.diff(r,"day");return n===-1?R("yesterday"):n===1?R("tomorrow"):e.from(r)}function rd({item:e,stateManager:t}){if(!t.useSetting("show-relative-date")||!e.data.metadata.date)return null;let n=cN(e.data.metadata.date,e.data.metadata.time);return E("span",{className:$("item-metadata-date-relative"),children:n})}function id({item:e,stateManager:t,filePath:r,onEditDate:n,onEditTime:i,getDateColor:a}){var A;let o=t.useSetting("move-dates"),s=t.useSetting("date-format"),u=t.useSetting("time-format"),l=t.useSetting("date-display-format"),c=t.useSetting("link-date-to-daily-note"),d=(A=e.data.metadata.time)!=null?A:e.data.metadata.date,m=Re(()=>d?a(d):null,[d,a]);if(!o||!d)return null;let h=d.format(s);if(!h)return null;let g=!!e.data.metadata.date,y=!!e.data.metadata.time,v=d.format(l),D=y?d.format(u):null,I=h?(0,Bl.getLinkpath)(h):null,C=h?t.app.metadataCache.getFirstLinkpathDest(I,r):null,x=I&&c?E("a",{href:I,"data-href":I,className:`internal-link ${C?"":"is-unresolved"}`,target:"blank",rel:"noopener",children:v}):v,O={};return c||(O["aria-label"]=R("Change date"),O.onClick=n),E("span",{style:m&&{"--date-color":m.color,"--date-background-color":m.backgroundColor},className:Ge([$("item-metadata-date-wrapper"),$("date"),{"has-background":!!(m!=null&&m.backgroundColor)}]),children:[g&&E(ct,{children:[E("span",{...O,className:`${$("item-metadata-date")} ${c?"":"is-button"}`,children:x})," "]}),y&&E("span",{onClick:i,className:`${$("item-metadata-time")} is-button`,"aria-label":R("Change time"),children:D})]})}function dk({item:e,stateManager:t}){let r=Ee(zn),n=t.getSetting("metadata-keys"),i=t.useSetting("inline-metadata-position")==="footer",a=t.useSetting("move-task-metadata"),{inlineMetadata:o}=e.data.metadata;if(!o||!i&&!a)return null;let s=il();return E("span",{className:$("item-task-metadata"),children:o.map((u,l)=>{var O,A;let c=Pu(u,n),{metadataKey:d,value:m,label:h}=c,g=yi.has(d);if(!a&&g||!i&&!g)return null;let y=u.wrapping==="emoji-shorthand",v=(A=(O=s==null?void 0:s.api)==null?void 0:O.parse(m))!=null?A:m,D=y&&d==="priority",I=!!(v!=null&&v.ts),C=d.replace(/[^a-zA-Z0-9_]/g,"-"),x="";return h&&!g?x=h:x=y?mb(d,m):No(d),y||(x+=": "),E("span",{className:Ge([$("item-task-inline-metadata-item"),$(`inline-metadata__${C}`),{"is-task-metadata":g,"is-emoji":y,"is-date":I}]),children:[!I&&E("span",{className:$("item-task-inline-metadata-item-key"),children:x}),!D&&E("span",{className:$("item-task-inline-metadata-item-value"),children:E(hs,{searchQuery:r==null?void 0:r.query,dateLabel:I?x:void 0,data:c})})]},l)})})}function ug(e,t){let{stateManager:r,boardModifiers:n}=Ee(tt),i=t||Ui();return Re(()=>({onEditDate:s=>{var u;od(s.view,r,{x:s.clientX,y:s.clientY},sd({stateManager:r,boardModifiers:n,item:e,hasDate:!0,path:i}),(u=e.data.metadata.date)==null?void 0:u.toDate())},onEditTime:s=>{ld(s.view,r,{x:s.clientX,y:s.clientY},ud({stateManager:r,boardModifiers:n,item:e,hasTime:!0,path:i}),e.data.metadata.time)}}),[n,i,e,r])}function dN(e,t,r){let n=0,i=t.split(/\n\r?/g),a=[];return i.forEach(o=>{var u,l,c;if(n>r){a.push(o);return}let s=o.match(/^(\s*>)*(\s*[-+*]\s+?\[)([^\]])(\]\s+)/);if(s){if(n===r){let d=pb(o,e.file);if(d)a.push(d);else{let m=s[3]===" "?Zn():" ",h=(u=s[1])!=null?u:"",g=(l=s[2])!=null?l:"",y=(c=s[4])!=null?c:"";a.push(h+g+m+y+o.slice(s[0].length))}}else a.push(o);n++;return}a.push(o)}),a.join(`
|
||
`)}function ps({tags:e,searchQuery:t,alwaysShow:r}){let{stateManager:n}=Ee(tt),i=Lu(n),a=Ee(zn),o=n.useSetting("move-tags")||r;return!e.length||!o?null:E("div",{className:$("item-tags"),children:e.map((s,u)=>{let l=i(s);return E("a",{href:s,onClick:c=>{c.preventDefault();let d=n.getSetting("tag-action");if(a&&d==="kanban"){a.search(s,!0);return}n.app.internalPlugins.getPluginById("global-search").instance.openGlobalSearch(`tag:${s}`)},className:`tag ${$("item-tag")} ${t&&s.toLocaleLowerCase().contains(t)?"is-search-match":""}`,style:l&&{"--tag-color":l.color,"--tag-background":l.backgroundColor},children:[E("span",{children:s[0]}),s.slice(1)]},u)})})}var ad=zt(function({item:t,editState:r,setEditState:n,searchQuery:i,showMetadata:a=!0,isStatic:o}){let{stateManager:s,filePath:u,boardModifiers:l}=Ee(tt),c=fa(s),d=Fe(null);Ae(()=>{r===1?(d.current!==null&&l.updateItem(m,s.updateItemContent(t,d.current)),d.current=null):r===0&&(d.current=null)},[r,s,t]);let m=Ui(),{onEditDate:h,onEditTime:g}=ug(t),y=Ye((x,O,A)=>{if(!Ca(s,O,A))return n(1),!0},[s]),v=Ye(x=>{x.targetNode.instanceOf(HTMLElement)&&(x.targetNode.hasClass($("item-metadata-date"))?h(x):x.targetNode.hasClass($("item-metadata-time"))&&g(x))},[h,g]),D=Ye(()=>n(1),[]),I=Ye(()=>(n(0),!0),[t]),C=Ye(x=>{let O=x.target;if(O.hasClass("task-list-item-checkbox")){if(O.dataset.src)return;let A=parseInt(O.dataset.checkboxIndex,10),P=dN(s,t.data.titleRaw,A),B=s.updateItemContent(t,P);l.updateItem(m,B)}},[m,l,s,t]);return!o&&kn(r)?E("div",{className:$("item-input-wrapper"),children:E(_a,{editState:r,className:$("item-input"),onEnter:y,onEscape:I,onSubmit:D,value:t.data.titleRaw,onChange:x=>{x.docChanged&&(d.current=x.state.doc.toString().trim())}})}):E("div",{onClick:v,className:$("item-title"),children:[o?E(WS,{entityId:t.id,className:$("item-markdown"),markdownString:t.data.title,searchQuery:i,onPointerUp:C}):E(Sa,{entityId:t.id,className:$("item-markdown"),markdownString:t.data.title,searchQuery:i,onPointerUp:C}),a&&E("div",{className:$("item-metadata"),children:[E(rd,{item:t,stateManager:s}),E(id,{item:t,stateManager:s,filePath:u,getDateColor:c}),E(dk,{item:t,stateManager:s}),E(ps,{tags:t.data.metadata.tags,searchQuery:i})]})]})});function fN(e,t=[],r){return t.reduce((n,i)=>{if(yi.has(i.key))return n;let a=Pu(i,r);return n[i.key]=a,n},e||{})}function fk({item:e,searchQuery:t}){let{stateManager:r}=Ee(tt),n=r.useSetting("inline-metadata-position")==="metadata-table",i=r.useSetting("metadata-keys"),{fileMetadata:a,fileMetadataOrder:o,inlineMetadata:s}=e.data.metadata,u=Re(()=>{let c=n?fN(a,s,i||[]):a;return!c||!Object.keys(c).length?null:c},[a,s,i]),l=Re(()=>{let c=new Set(o||[]);return n&&(s!=null&&s.length)&&s.forEach(d=>{c.has(d.key)||c.add(d.key)}),Array.from(c)},[o,n,s]);return u?E("div",{className:$("item-metadata-wrapper"),children:E(gN,{metadata:u,order:l,searchQuery:t})}):null}function hN(e,t){let r;if(e.ts?r=(0,li.moment)(e.ts):li.moment.isMoment(e)?r=e:e instanceof Date&&(r=(0,li.moment)(e)),r){let n=t.getSetting(r.hours()===0?"date-display-format":"date-time-display-format");return r.format(n)}return null}function mN(e,t){if(typeof e!="object"||!e.path)return null;let r=app.vault.getAbstractFileByPath(e.path);if(r&&r instanceof li.TFile){let n=app.fileManager.generateMarkdownLink(r,t.file.path,e.subpath,e.display);return`${e.embed&&n[0]!=="!"?"!":""}${n}`}return`${e.embed?"!":""}[[${e.path}${e.display?`|${e.display}`:""}]]`}function hk(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}/.test(e)){let r=(0,li.moment)(e);if(r.isValid())return r}if(li.moment.isMoment(e))return e;if(e instanceof Date)return(0,li.moment)(e);let t=(0,cg.getAPI)();return t!=null&&t.value.isDate(e)?(0,li.moment)(e.ts):null}function In(e,t){Ni(e)&&e.value&&(e=e.value);let r=hk(e);if(r)return hN(r,t);if(typeof e=="string")return e;if(e instanceof li.TFile)return e.path;if(Array.isArray(e))return e.map(i=>In(i,t)).join(" ");if(e.rrule)return e.toText();let n=(0,cg.getAPI)();return n?n.value.toString(e):`${e}`}function pN(e,t){return In(e.value,t)}function hs({data:e,dateLabel:t,searchQuery:r}){let{view:n,stateManager:i}=Ee(tt),a=fa(i),o=(s,u)=>{let l=mN(s,n),c=hk(s),d=In(s,i),m=r&&d.toLocaleLowerCase().contains(r),h;if(l||e.containsMarkdown)h=E(Sa,{className:"inline",markdownString:l||d,searchQuery:r});else if(c){let g=a(c);h=E("span",{className:Ge({[$("date")]:!0,"is-search-match":m,"has-background":g==null?void 0:g.backgroundColor}),style:g&&{"--date-color":g.color,"--date-background-color":g.backgroundColor},children:[!!t&&E("span",{className:$("item-metadata-date-label"),children:t}),E("span",{className:$("item-metadata-date"),children:d})]})}else m?h=E("span",{className:"is-search-match",children:d}):h=d;return E(ct,{children:[h,u?E("span",{children:u}):null]})};return Array.isArray(e.value)?E("span",{className:Ge([$("meta-value"),"mod-array"]),children:e.value.map((s,u,l)=>o(s,u<l.length-1?", ":void 0))}):E("span",{className:Ge([$("meta-value")]),children:o(e.value)})}var gN=zt(function({metadata:t,order:r,searchQuery:n}){let{stateManager:i}=Ee(tt);return t?(r!=null&&r.length||(r=Object.keys(t)),E("table",{className:$("meta-table"),children:E("tbody",{children:r.map(a=>{let o=t[a];if(!o)return null;let s=(o.label||a).toLocaleLowerCase().contains(n);return E("tr",{className:$("meta-row"),children:[!o.shouldHideLabel&&E("td",{className:Ge([$("meta-key"),{"is-search-match":s}]),"data-key":a,children:E("span",{children:o.label||a})}),E("td",{colSpan:o.shouldHideLabel?2:1,className:$("meta-value-wrapper"),"data-value":pN(o,i),children:a==="tags"?E(ps,{searchQuery:n,tags:o.value,alwaysShow:!0}):E(hs,{data:o,searchQuery:n})})]},a)})})})):null});var _t="kanban-plugin";var gk=`**${R("Complete")}**`,yk="***",dg=["---","",`${_t}: board`,"","---","",""].join(`
|
||
`);function vk(e){return["","","%% kanban:settings","```",JSON.stringify(e.data.settings),"```","%%"].join(`
|
||
`)}function wk(e,t){let r=e.data.metadata.fileMetadata,{titleSearchRaw:n}=e.data,i=[n];if(r){let a=Object.keys(r).filter(o=>{var s;return(s=e.data.metadata.fileMetadataOrder)==null?void 0:s.includes(o)});if(a.length){let o=In(a,t),s=In(a.map(u=>r[u]),t);o&&i.push(o),s&&i.push(s)}}return e.data.metadata.time?(i.push(e.data.metadata.time.format("LLLL")),i.push(In(e.data.metadata.time,t))):e.data.metadata.date&&(i.push(e.data.metadata.date.format("LLLL")),i.push(In(e.data.metadata.date,t))),i.join(" ").toLocaleLowerCase()}function yN(e,t,r){var n,i,a;if(e.plugins.enabledPlugins.has("dataview")&&((a=(i=(n=e.plugins)==null?void 0:n.plugins)==null?void 0:i.dataview)!=null&&a.api))return e.plugins.plugins.dataview.api.page(t.path,r.path)}function mk(e,t){if(!e)return null;if(e[t])return e[t];let r=t.split("."),n=e;for(let i of r)if(typeof n=="object"&&i in n)n=n[i];else{n=null;break}return n}function fg(e,t){let r=e.getSetting("metadata-keys");if(!r.length)return{};if(!t)return{};let n=e.app.metadataCache.getFileCache(t),i=yN(e.app,t,e.file);if(!n&&!i)return{};let a={},o={},s={},u=[],l=!1;return r.forEach(c=>{var h;if(s[c.metadataKey])return;if(s[c.metadataKey]=!0,c.metadataKey==="tags"){let g=(n==null?void 0:n.tags)||[];if(Array.isArray((h=n==null?void 0:n.frontmatter)==null?void 0:h.tags)&&(g=[].concat(g,n.frontmatter.tags.map(y=>({tag:`#${y}`})))),(g==null?void 0:g.length)===0)return;u.push(c.metadataKey),a.tags={...c,value:g.map(y=>y.tag).filter(y=>o[y]?!1:(o[y]=!0,!0)).sort(fr)},l=!0;return}let d=mk(i,c.metadataKey),m=mk(n==null?void 0:n.frontmatter,c.metadataKey);if(m!=null&&m!==""&&!(Array.isArray(m)&&m.length===0)){if(typeof m=="string"){if(/^\d{4}-\d{2}-\d{2}/.test(m))m=(0,pk.moment)(m);else if(/^\[\[[^\]]+\]\]$/.test(m)){let g=(n.frontmatterLinks||[]).find(y=>y.key===c.metadataKey);if(g){let y=e.app.metadataCache.getFirstLinkpathDest(g.link,e.file.path);y&&(m=y)}}}else Array.isArray(m)&&(m=m.map((g,y)=>{if(typeof g=="string"&&/^\[\[[^\]]+\]\]$/.test(g)){let v=(n.frontmatterLinks||[]).find(D=>D.key===c.metadataKey+"."+y.toString());if(v){let D=e.app.metadataCache.getFirstLinkpathDest(v.link,e.file.path);if(D)return D}}return g}));u.push(c.metadataKey),a[c.metadataKey]={...c,value:m},l=!0}else if(d!=null&&d!==""&&!(Array.isArray(d)&&d.length===0)){let g=i[c.metadataKey];u.push(c.metadataKey),a[c.metadataKey]={...c,value:g},l=!0}}),{fileMetadata:l?a:void 0,fileMetadataOrder:u}}function bk(e,t){return!e&&t?!0:!["metadata-keys","date-trigger","time-trigger","link-date-to-daily-note","date-format","time-format","move-dates","move-tags","inline-metadata-position","move-task-metadata","hide-card-count","tag-colors","date-colors"].every(n=>e[n]===t[n])}function Dk(e,t){let r=(0,Vl.getDateFromFile)(t,"day");if(!r||!r.isValid())return;e.internalPlugins.plugins["daily-notes"].instance.gotoNextExisting(r)}function Sk(e,t){let r=(0,Vl.getDateFromFile)(t,"day");if(!r||!r.isValid())return;e.internalPlugins.plugins["daily-notes"].instance.gotoPreviousExisting(r)}function ed(e,t){let r=(0,Vl.getDailyNoteSettings)();return e.vault.getConfig("useMarkdownLinks")?`[${t}](${r.folder?`${encodeURIComponent(r.folder)}/`:""}${encodeURIComponent(t)}.md)`:`[[${t}]]`}function Ek(e){if(!e)return!1;let t=e.match(/---\s+([\w\W]+?)\s+---/);return!(!t||!t[1].contains(_t))}function hg(e){var r;if(!e)return!1;let t=app.metadataCache.getFileCache(e);return!!((r=t==null?void 0:t.frontmatter)!=null&&r[_t])}function cd(e,t){return t?`${e} (${t})`:e}function od(e,t,r,n,i){return e.document.body.createDiv({cls:`${$("date-picker")} ${$("ignore-click-outside")}`},a=>{a.style.left=`${r.x||0}px`,a.style.top=`${r.y||0}px`,a.createEl("input",{type:"text"},o=>{a.win.setTimeout(()=>{let s=null,u=d=>{d.target instanceof d.view.HTMLElement&&d.target.closest(`.${$("date-picker")}`)===null&&c()},l=d=>{d.key==="Escape"&&c()},c=()=>{s.destroy(),a.remove(),e.document.body.removeEventListener("click",u),e.document.removeEventListener("keydown",l)};s=Qc(o,{locale:zc(t),defaultDate:i,inline:!0,onChange:d=>{n(d),c()},win:e}),a.win.setTimeout(()=>{let d=a.clientHeight,m=a.clientWidth;r.y+d>e.innerHeight&&(a.style.top=`${(r.y||0)-d}px`),r.x+m>e.innerWidth&&(a.style.left=`${(r.x||0)-m}px`)}),e.document.body.addEventListener("click",u),e.document.addEventListener("keydown",l)})})})}function sd({stateManager:e,boardModifiers:t,item:r,hasDate:n,path:i}){let a=e.getSetting("date-format"),o=e.getSetting("link-date-to-daily-note"),s=e.getSetting("date-trigger"),u=o?"(?:\\[[^\\]]+\\]\\([^)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",l=new RegExp(`(^|\\s)${Qn(s)}${u}`);return c=>{let d=c[0],m=(0,An.moment)(d).format(a),h=o?ed(e.app,m):`{${m}}`,g=r.data.titleRaw;n?g=r.data.titleRaw.replace(l,`$1${s}${h}`):g=`${r.data.titleRaw} ${s}${h}`,t.updateItem(i,e.updateItemContent(r,g))}}function lg(e){let t=e.getSetting("time-format"),r=[];for(let n=0;n<24;n++)r.push((0,An.moment)({hour:n}).format(t)),r.push((0,An.moment)({hour:n,minute:15}).format(t)),r.push((0,An.moment)({hour:n,minute:30}).format(t)),r.push((0,An.moment)({hour:n,minute:45}).format(t));return r}function ld(e,t,r,n,i){let a=$("time-picker"),o=t.getSetting("time-format"),s=i==null?void 0:i.format(o);e.document.body.createDiv({cls:`${a} ${$("ignore-click-outside")}`},u=>{let l=lg(t),c=v=>{v.target instanceof v.view.HTMLElement&&v.target.hasClass($("time-picker-item"))&&v.target.dataset.value&&(n(v.target.dataset.value),h())},d=v=>{v.target instanceof v.view.HTMLElement&&v.target.closest(`.${a}`)===null&&h()},m=v=>{v.key==="Escape"&&h()},h=()=>{u.remove(),u.removeEventListener("click",c),e.document.body.removeEventListener("click",d),e.document.removeEventListener("keydown",m)};u.style.left=`${r.x||0}px`,u.style.top=`${r.y||0}px`;let g=null,y=null;l.forEach((v,D)=>{let I=v===s;u.createDiv({cls:`${$("time-picker-item")} ${I?"is-selected":""}`,text:v},C=>{C.createEl("span",{cls:$("time-picker-check"),prepend:!0},x=>{(0,An.setIcon)(x,"lucide-check")}),D%4===0&&C.addClass("is-hour"),C.dataset.value=v,I&&(g=C),D===Math.floor(l.length/2)&&(y=C)})}),u.win.setTimeout(()=>{var I;let v=u.clientHeight,D=u.clientWidth;r.y+v>e.innerHeight&&(u.style.top=`${(r.y||0)-v}px`),r.x+D>e.innerWidth&&(u.style.left=`${(r.x||0)-D}px`),(I=g||y)==null||I.scrollIntoView({block:"center",inline:"nearest"}),u.addEventListener("click",c),e.document.body.addEventListener("click",d),e.document.addEventListener("keydown",m)})})}function ud({stateManager:e,boardModifiers:t,item:r,hasTime:n,path:i}){let a=e.getSetting("time-trigger"),o=new RegExp(`(^|\\s)${Qn(a)}{([^}]+)}`);return s=>{let u=r.data.titleRaw;n?u=r.data.titleRaw.replace(o,`$1${a}{${s}}`):u=`${r.data.titleRaw} ${a}{${s}}`,t.updateItem(i,e.updateItemContent(r,u))}}function xk(e){let t=e.data.metadata.date,r=[];t&&(t.isSame(new Date,"day")&&r.push("is-today"),t.isAfter(new Date,"day")&&r.push("is-future"),t.isBefore(new Date,"day")&&r.push("is-past")),e.data.checked&&e.data.checkChar===Zn()&&r.push("is-complete");for(let n of e.data.metadata.tags)r.push(`has-tag-${n.slice(1)}`);return r}function uo(e,t,r,n){return e.app.fileManager.generateMarkdownLink(t,r,n)}function vN(e){return(0,An.htmlToMarkdown)(e)}function wN(e){return e.replace(/^\[(.*)\]\(app:\/\/obsidian.md\/(.*)\)$/,"[$1]($2)")}function bN(e){var r;let t=e.require("electron").remote.clipboard;if(process.platform==="darwin"){if(t.has("NSFilenamesPboardType"))return((r=t.read("NSFilenamesPboardType").match(/<string>.*<\/string>/g))==null?void 0:r.map(n=>n.replace(/<string>|<\/string>/g,"")))||[];{let n=t.readImage("clipboard");return n.isEmpty()?[t.read("public.file-url").replace("file://","")].filter(i=>i):[{buffer:n.toPNG(),mimeType:"image/png",originalName:`Pasted image ${(0,An.moment)().format("YYYYMMDDHHmmss")}.png`}]}}else if(t.has("CF_HDROP")){let n=t.read("CF_HDROP")||"",i=[...n].filter((o,s)=>n.charCodeAt(s)!==0).join("").replace(/\\/g,"\\"),a=i.match(/[a-zA-Z]:\\/);if(a){let o=i.indexOf(a[0]);return o!==0&&(i=i.slice(o)),i.split(a[0]).filter(s=>s).map(s=>a+s)}}else{let n=t.readImage("clipboard");return n.isEmpty()?[t.readBuffer("FileNameW").toString("ucs2").replace(RegExp("\0","g"),"")].filter(i=>i):[{buffer:n.toPNG(),mimeType:"image/png",originalName:`Pasted image ${(0,An.moment)().format("YYYYMMDDHHmmss")}.png`}]}return null}function DN(e){return e.split("\\").pop().split("/").pop()}async function SN(e,t,r,n){let i=await e.app.vault.getAvailablePathForAttachments(t,r,e.file),a=await e.app.vault.createBinary(i,n);return uo(e,a,e.file.path)}async function EN(e,t){let r=bN(t);if(!r||r.length===0)return null;let n=t.require("fs/promises"),i=t.require("path");return(await Promise.all(r.map(async a=>{if(typeof a=="string"){let s=DN(a).split("."),u=s.pop(),l=s.join("."),c=await e.app.vault.getAvailablePathForAttachments(l,u,e.file),d=e.app.vault.adapter.basePath;await n.copyFile(a,i.join(d,c)),await new Promise(h=>t.setTimeout(h,50));let m=e.app.vault.getAbstractFileByPath(c);return uo(e,m,e.file.path)}else{let o=a.originalName.split("."),s=o.pop(),u=o.join(".");return await SN(e,u,s,a.buffer)}}))).filter(a=>a)}function kk(e,t,r){return Promise.all(t.map(n=>{let i=n.name.split("."),a=i.pop(),o=i.join(".");if(r){switch(n.type){case"text/jpg":a="jpg";break;case"text/jpeg":a="jpeg";break;case"text/png":a="png";break}o="Pasted image "+(0,An.moment)().format("YYYYMMDDHHmmss")}return new Promise((s,u)=>{let l=new FileReader;l.onload=async c=>{try{let d=await e.app.vault.getAvailablePathForAttachments(o,a,e.file),m=await e.app.vault.createBinary(d,c.target.result);s(uo(e,m,e.file.path))}catch(d){console.error(d),u(d)}},l.readAsArrayBuffer(n)})}))}async function kN(e,t,r){let n=!t.view,i=n?e.getAView().isShiftPressed:!1,a=n?t.clipboardData:t.dataTransfer,o=n&&An.Platform.isDesktopApp?r.require("electron").remote.clipboard:null,s=o?o.availableFormats():[];if(n){if(n&&!i&&!s.includes("text/rtf")){if(An.Platform.isDesktopApp){let g=await EN(e,r);if(g!=null&&g.length)return g}let m=[],h=t.clipboardData.items;for(let g in h){let y=h[g];y.kind==="file"&&m.push(y.getAsFile())}if(m.length)return await kk(e,m,!0)}}else{let m=await Jh(t);if(m.length)return await kk(e,m)}let u=a.getData("text/html"),l=a.getData("text/plain"),c=a.getData("text/uri-list"),d=i?l||u:vN(u);return[wN(d||c||l||u||"").trim()]}async function Ck(e,t,r){let n=e.app.dragManager.draggable,i=t.view?t.dataTransfer:t.clipboardData;switch(n==null?void 0:n.type){case"file":return[uo(e,n.file,e.file.path)];case"files":return n.files.map(a=>uo(e,a,e.file.path));case"folder":return n.file.children.map(a=>a instanceof An.TFolder?null:uo(e,a,e.file.path)).filter(a=>a);case"link":{let a=n.file?uo(e,n.file,(0,An.parseLinktext)(n.linktext).subpath):`[[${n.linktext}]]`,o=new DOMParser().parseFromString(i.getData("text/html"),"text/html").documentElement.textContent;return a=a.replace(/]]$/,`|${o}]]`).replace(/^\[[^\]].+]\(/,`[${o}](`),[a]}default:return await kN(e,t,r)}}function dd(e,t){let r,n,i=(...a)=>{r=a,!n&&(n=e.requestAnimationFrame(()=>{n=null,t(...r)}))};return i.cancel=()=>{n&&(e.cancelAnimationFrame(n),n=null)},i}var Tk={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"};var gs={outOfTheWay:200,minDropTime:330,maxDropTime:550},Ma=`${gs.outOfTheWay}ms ${Tk.outOfTheWay}`;var Lr={none:"none",fluid:`opacity ${Ma}`,snap:`transform ${Ma}, opacity ${Ma}`,drop:e=>{let t=`${e}ms ${Tk.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Ma}`,placeholder:`height ${Ma}, width ${Ma}, margin ${Ma}, border-color ${Ma}`},xN=(e,t)=>e.x===t.x&&e.y===t.y,CN={x:0,y:0},_k=e=>xN(e,CN)?void 0:`translate(${e.x}px, ${e.y}px)`,Fk={moveTo:_k,drop:e=>_k(e)},_N=gs.maxDropTime-gs.minDropTime,Mk=1500,MN=.6;function ys({position:e,destination:t,isCancel:r}){let n=qa(e,t);if(n<=0)return gs.minDropTime;if(n>=Mk)return gs.maxDropTime;let i=n/Mk,a=gs.minDropTime+_N*i,o=r?a*MN:a;return Math.round(o)}function ui(e,t,r){e.style.getPropertyValue(t)!==r&&e.style.setProperty(t,r)}function fd(e,t){e.style.getPropertyValue(t)&&e.style.removeProperty(t)}function mg(e,t,r,n,i){let a="htmldnd",o=et(),s=e-75,u=e+75,l=t-25,c=t+25;return{scopeId:a,entityId:`${a}-${o}`,initial:[s,l,u,c],getParentScrollState(){return Tr},getParentScrollShift(){return vi},recalcInitial(){},getHitbox(){return this.initial},getPath(){return[]},getData(){return{viewId:n,type:ft.Item,id:o,content:r,accepts:[],win:i}}}}var hd=class{constructor(t,r,n,i){this.isHTMLDragging=!1;this.dragOverTimeout=0;this.win=t,this.hitboxEntities=n,this.scrollEntities=i,this.emitter=r}getDragEventData(){return{dragEntity:this.dragEntity,dragEntityId:this.dragEntityId,dragEntityMargin:this.dragEntityMargin,dragOrigin:this.dragOrigin,dragOriginHitbox:this.dragOriginHitbox,dragPosition:this.dragPosition,primaryIntersection:this.primaryIntersection,scrollIntersection:this.scrollIntersection}}dragStart(t,r){var a;let n=(r==null?void 0:r.dataset.hitboxid)||t.currentTarget.dataset.hitboxid;if(!n)return;let i=getComputedStyle(r||t.currentTarget);this.dragEntityId=n,this.dragOrigin={x:t.pageX,y:t.pageY},this.dragPosition={x:t.pageX,y:t.pageY},this.dragEntity=this.hitboxEntities.get(n),this.dragOriginHitbox=(a=this.dragEntity)==null?void 0:a.getHitbox(),this.dragEntityMargin=[parseFloat(i.marginLeft)||0,parseFloat(i.marginTop)||0,parseFloat(i.marginRight)||0,parseFloat(i.marginBottom)||0],this.emitter.emit("dragStart",this.getDragEventData())}dragStartHTML(t,r){this.isHTMLDragging=!0;let n=mg(t.pageX,t.pageY,[],r,t.view);this.dragEntityId=n.entityId,this.dragOrigin={x:t.pageX,y:t.pageY},this.dragPosition={x:t.pageX,y:t.pageY},this.dragEntity=n,this.dragOriginHitbox=n.getHitbox(),this.dragEntityMargin=[0,0,0,0],this.emitter.emit("dragStart",this.getDragEventData())}dragMove(t){this.dragPosition={x:t.pageX,y:t.pageY},this.emitter.emit("dragMove",this.getDragEventData()),this.calculateDragIntersect()}dragMoveHTML(t){this.dragPosition={x:t.pageX,y:t.pageY},this.emitter.emit("dragMove",this.getDragEventData()),this.calculateDragIntersect()}dragEnd(t){this.emitter.emit("dragEnd",this.getDragEventData()),this.dragEntityMargin=void 0,this.dragEntity=void 0,this.dragEntityId=void 0,this.dragOrigin=void 0,this.dragOriginHitbox=void 0,this.dragPosition=void 0,this.scrollIntersection=void 0,this.primaryIntersection=void 0}dragEndHTML(t,r,n,i){this.isHTMLDragging=!1,i||(this.dragEntity=mg(t.pageX,t.pageY,n,r,t.view),this.emitter.emit("dragEnd",this.getDragEventData())),this.dragEntityMargin=void 0,this.dragEntity=void 0,this.dragEntityId=void 0,this.dragOrigin=void 0,this.dragOriginHitbox=void 0,this.dragPosition=void 0,this.scrollIntersection=void 0,this.primaryIntersection=void 0,i&&this.emitter.emit("dragEnd",this.getDragEventData())}onHTMLDragLeave(t){this.win.clearTimeout(this.dragOverTimeout),this.dragOverTimeout=this.win.setTimeout(t,351)}calculateDragIntersect(){if(!this.dragEntity||!this.dragPosition||!this.dragOrigin||!this.dragOriginHitbox)return;let{type:t,win:r}=this.dragEntity.getData(),n=[],i=[],a=[],o=[];if(this.hitboxEntities.forEach(l=>{var d;let c=l.getData();r===c.win&&(c.accepts.includes(t)||(d=c.acceptsSort)!=null&&d.includes(t))&&(n.push(l),i.push(l.getHitbox()))}),this.scrollEntities.forEach(l=>{let c=l.getData();r===c.win&&c.accepts.includes(t)&&(a.push(l),o.push(l.getHitbox()))}),n.length===0&&a.length===0)return;let s=Mb(this.dragOriginHitbox,this.dragOrigin,this.dragPosition);this.handleScrollIntersect(s,this.dragEntity,o,a)||this.handleHitboxIntersect(s,this.dragEntity,i,n)}handleScrollIntersect(t,r,n,i){let a=(0,pg.default)([t],n).map(s=>i[s[1]]),o=_b(a,t,r);if(this.scrollIntersection&&(!o||o[0]!==this.scrollIntersection[0])){let[s,u]=this.scrollIntersection,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("endDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=void 0}if(o&&(!this.scrollIntersection||this.scrollIntersection[0]!==o[0])){let[s,u]=o,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("beginDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=o}else if(o&&this.scrollIntersection&&o[0]===this.scrollIntersection[0]){let[s,u]=o,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("updateDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=o}return!!o}handleHitboxIntersect(t,r,n,i){let a=(0,pg.default)([t],n).map(s=>i[s[1]]),o=Mh(a,t,r);this.primaryIntersection&&this.primaryIntersection!==o&&(this.emitter.emit("dragLeave",this.getDragEventData(),this.primaryIntersection.entityId),this.primaryIntersection=void 0),o&&this.primaryIntersection!==o&&(this.emitter.emit("dragEnter",{...this.getDragEventData(),primaryIntersection:o},o.entityId),this.primaryIntersection=o)}},vs=e=>{e.preventDefault(),e.stopPropagation()};function Ta(e,t){let r=Ee(cn),n=Fe(()=>{});return Ye(i=>{if(t.current!==i&&(n.current(),n.current=()=>{}),!i)return;let a=i,o=u=>{if(u.defaultPrevented||!r||!e.current)return;let l=e.current,c=u.targetNode;for(;c;){if(c.instanceOf(HTMLElement)&&c.dataset.ignoreDrag)return;c=c.parentElement}if(u.button!==0&&u.buttons!==1)return;let d=u.view,m=["pen","touch"].includes(u.pointerType),h=u.pointerId;m||(u.stopPropagation(),u.preventDefault());let g=u,y={x:u.pageX,y:u.pageY},v=!1,D=0;m&&(d.addEventListener("contextmenu",vs,!0),D=d.setTimeout(()=>{r.dragManager.dragStart(g,l),v=!0,d.addEventListener("touchmove",vs,{passive:!1})},500));let I=dd(d,x=>{x.pointerId===h&&(m?v?r.dragManager.dragMove(x):qa(y,{x:x.pageX,y:x.pageY})>5&&(d.clearTimeout(D),d.removeEventListener("touchmove",vs),d.removeEventListener("contextmenu",vs,!0),d.removeEventListener("pointermove",I),d.removeEventListener("pointerup",C),d.removeEventListener("pointercancel",C)):v?r.dragManager.dragMove(x):qa(y,{x:x.pageX,y:x.pageY})>5&&(r.dragManager.dragStart(g,l),v=!0))}),C=x=>{x.pointerId===h&&(d.clearTimeout(D),v=!1,r.dragManager.dragEnd(x),d.removeEventListener("pointermove",I),d.removeEventListener("pointerup",C),d.removeEventListener("pointercancel",C),m&&(d.removeEventListener("contextmenu",vs,!0),d.removeEventListener("touchmove",vs)))};d.addEventListener("pointermove",I),d.addEventListener("pointerup",C),d.addEventListener("pointercancel",C)},s=u=>{u.stopPropagation()};return a.addEventListener("pointerdown",o),a.addEventListener("touchstart",s),()=>{a.removeEventListener("pointerdown",o),a.removeEventListener("touchstart",s)}},[])}function Ik(e){let t=Ee(cn),r=Ye(i=>{t.dragManager.isHTMLDragging?(i.preventDefault(),t.dragManager.dragMoveHTML(i)):t.dragManager.dragStartHTML(i,e.getAView().id),t.dragManager.onHTMLDragLeave(()=>{t.dragManager.dragEndHTML(i,e.getAView().id,[],!0)})},[t,e]),n=Ye(async i=>{t.dragManager.dragEndHTML(i,e.getAView().id,await Ck(e,i,activeWindow),!1)},[t,e]);return{onDragOver:r,onDrop:n}}var Ok=Ct(ln());var Ak=require("obsidian");function Ut({name:e,className:t}){return E("span",{"data-icon":e,className:`${$("icon")} ${t||""}`,ref:r=>{r&&(0,Ak.setIcon)(r,e)}})}var md=zt(function({shouldMarkItemsComplete:t,path:r,item:n,stateManager:i,boardModifiers:a}){let o=i.useSetting("show-checkboxes"),[s,u]=Ne(!1),[l,c]=Ne(!1),d=Ye(()=>{let m=Ro(n,i.file);if(m){let[h,g,y]=m,v=h.map((D,I)=>{let C=i.getNewItem(D,g[I]);return I===y&&(C.id=n.id),C});a.replaceItem(r,v)}else a.updateItem(r,(0,Ok.default)(n,{data:{checkChar:{$apply:h=>h===" "?Zn():" "},$toggle:["checked"]}}))},[n,i,a,...r]);return Ae(()=>{if(l){let m=h=>{h.metaKey||h.ctrlKey?u(!0):u(!1)};return activeWindow.addEventListener("keydown",m),activeWindow.addEventListener("keyup",m),()=>{activeWindow.removeEventListener("keydown",m),activeWindow.removeEventListener("keyup",m)}}},[l]),t||o?E("div",{onMouseEnter:m=>{c(!0),(m.ctrlKey||m.metaKey)&&u(!0)},onMouseLeave:()=>{c(!1),s&&u(!1)},className:$("item-prefix-button-wrapper"),children:[o&&!s&&E("input",{onChange:d,type:"checkbox",className:"task-list-item-checkbox",checked:n.data.checked,"data-task":n.data.checkChar}),(s||!o&&t)&&E("a",{onClick:()=>{a.archiveItem(r)},className:`${$("item-prefix-button")} clickable-icon`,"aria-label":s?void 0:"Archive card",children:E(Ut,{name:"sheets-in-box"})})]}):null});var Lk=Ct(ln()),pd=require("obsidian");var TN=/[\\/:"*?<>|]+/g,FN=/!?\[\[([^\]]*)\.[^\]]+\]\]/g,IN=/!?\[\[([^\]]*)\]\]/g,AN=/!?\[([^\]]*)\]\([^)]*\)/g,ON=/#([^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~[\]\\\s\n\r]+)/g,LN=/\s+/g;function gd({setEditState:e,item:t,path:r,boardModifiers:n,stateManager:i}){return Ye(a=>{let o={x:a.clientX,y:a.clientY},s=!!t.data.metadata.date,u=!!t.data.metadata.time,l=new pd.Menu().addItem(d=>{d.setIcon("lucide-edit").setTitle(R("Edit card")).onClick(()=>e(o))});l.addItem(d=>{d.setIcon("lucide-file-plus-2").setTitle(R("New note from card")).onClick(async()=>{let m=t.data.titleRaw.split(`
|
||
`)[0].trim(),h=m.replace(FN,"$1").replace(IN,"$1").replace(AN,"$1").replace(ON,"$1").replace(TN," ").trim().replace(LN," "),g=i.getSetting("new-note-folder"),y=i.getSetting("new-note-template"),v=g?i.app.vault.getAbstractFileByPath(g):i.app.fileManager.getNewFileParent(i.file.path),D=await i.app.fileManager.createNewMarkdownFile(v,h),I=i.app.workspace.splitActiveLeaf();await I.openFile(D),i.app.workspace.setActiveLeaf(I,!1,!0),await yb(i,y);let C=t.data.titleRaw.replace(m,i.app.fileManager.generateMarkdownLink(D,i.file.path));n.updateItem(r,i.updateItemContent(t,C))})}).addItem(d=>{d.setIcon("lucide-link").setTitle(R("Copy link to card")).onClick(()=>{if(t.data.blockId)navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+t.data.blockId)}`);else{let m=et(6);navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+m)}`),n.updateItem(r,i.updateItemContent((0,Lk.default)(t,{data:{blockId:{$set:m}}}),t.data.titleRaw))}})}).addSeparator(),/\n/.test(t.data.titleRaw)&&l.addItem(d=>{d.setIcon("lucide-wrap-text").setTitle(R("Split card")).onClick(async()=>{let m=t.data.titleRaw.split(/[\r\n]+/g).map(g=>g.trim()),h=await Promise.all(m.map(g=>i.getNewItem(g," ")));n.splitItem(r,h)})}),l.addItem(d=>{d.setIcon("lucide-copy").setTitle(R("Duplicate card")).onClick(()=>n.duplicateEntity(r))}).addItem(d=>{d.setIcon("lucide-list-start").setTitle(R("Insert card before")).onClick(()=>n.insertItems(r,[i.getNewItem(""," ",!0)]))}).addItem(d=>{d.setIcon("lucide-list-end").setTitle(R("Insert card after")).onClick(()=>{let m=[...r];m[m.length-1]=m[m.length-1]+1,n.insertItems(m,[i.getNewItem(""," ",!0)])})}).addItem(d=>{d.setIcon("lucide-arrow-up").setTitle(R("Move to top")).onClick(()=>n.moveItemToTop(r))}).addItem(d=>{d.setIcon("lucide-arrow-down").setTitle(R("Move to bottom")).onClick(()=>n.moveItemToBottom(r))}).addItem(d=>{d.setIcon("lucide-archive").setTitle(R("Archive card")).onClick(()=>n.archiveItem(r))}).addItem(d=>{d.setIcon("lucide-trash-2").setTitle(R("Delete card")).onClick(()=>n.deleteEntity(r))}).addSeparator().addItem(d=>{d.setIcon("lucide-calendar-check").setTitle(s?R("Edit date"):R("Add date")).onClick(()=>{var m;od(a.view,i,o,sd({stateManager:i,boardModifiers:n,item:t,hasDate:s,path:r}),(m=t.data.metadata.date)==null?void 0:m.toDate())})}),s&&(l.addItem(d=>{d.setIcon("lucide-x").setTitle(R("Remove date")).onClick(()=>{let m=i.getSetting("link-date-to-daily-note"),h=i.getSetting("date-trigger"),g=m?"(?:\\[[^\\]]+\\]\\([^\\)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",y=new RegExp(`(^|\\s)${Qn(h)}${g}`),v=t.data.titleRaw.replace(y,"").trim();n.updateItem(r,i.updateItemContent(t,v))})}),l.addItem(d=>{d.setIcon("lucide-clock").setTitle(u?R("Edit time"):R("Add time")).onClick(()=>{ld(a.view,i,o,ud({stateManager:i,boardModifiers:n,item:t,hasTime:u,path:r}),t.data.metadata.time)})}),u&&l.addItem(d=>{d.setIcon("lucide-x").setTitle(R("Remove time")).onClick(()=>{let m=i.getSetting("time-trigger"),h=new RegExp(`(^|\\s)${Qn(m)}{([^}]+)}`),g=t.data.titleRaw.replace(h,"").trim();n.updateItem(r,i.updateItemContent(t,g))})})),l.addSeparator();let c=d=>{let m=i.state.children;if(!(m.length<=1))for(let h=0,g=m.length;h<g;h++)d.addItem(y=>y.setIcon("lucide-square-kanban").setChecked(r[0]===h).setTitle(m[h].data.title).onClick(()=>{r[0]!==h&&i.setState(v=>Ri(v,r,[h,0]))}))};pd.Platform.isPhone?c(l):l.addItem(d=>{let m=d.setTitle(R("Move to list")).setIcon("lucide-square-kanban").setSubmenu();c(m)}),l.showAtPosition(o)},[e,t,r,n,i])}var Pk=$e.memo(function({editState:t,setEditState:r,showMenu:n}){let i=$e.useMemo(()=>t?{"data-ignore-drag":!0}:{},[t]);return E("div",{...i,className:$("item-postfix-button-wrapper"),children:kn(t)?E("a",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:()=>r(0),className:`${$("item-postfix-button")} is-enabled clickable-icon`,"aria-label":R("Cancel"),children:E(Ut,{name:"lucide-x"})}):E("a",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:n,className:`${$("item-postfix-button")} clickable-icon`,"aria-label":R("More options"),children:E(Ut,{name:"lucide-more-vertical"})})})});var Nk=zt(function({item:t,shouldMarkItemsComplete:r,isMatch:n,searchQuery:i,isStatic:a}){let{stateManager:o,boardModifiers:s}=Ee(tt),[u,l]=Ne(0),c=Ee(cn);Ae(()=>{let v=()=>{kn(u)&&l(0)};return c.dragManager.emitter.on("dragStart",v),()=>{c.dragManager.emitter.off("dragStart",v)}},[c,u]),Ae(()=>{t.data.forceEditMode&&l({x:0,y:0})},[t.data.forceEditMode]);let d=Ui(),m=gd({boardModifiers:s,item:t,setEditState:l,stateManager:o,path:d}),h=Ye(v=>{kn(u)||v.targetNode.instanceOf(HTMLAnchorElement)&&(v.targetNode.hasClass("internal-link")||v.targetNode.hasClass("external-link"))||m(v)},[m,u]),g=Ye(v=>l({x:v.clientX,y:v.clientY}),[l]),y=Re(()=>kn(u)?{"data-ignore-drag":!0}:{},[u]);return E("div",{onDblClick:g,onContextMenu:h,className:$("item-content-wrapper"),...y,children:[E("div",{className:$("item-title-wrapper"),...y,children:[E(md,{boardModifiers:s,item:t,path:d,shouldMarkItemsComplete:r,stateManager:o}),E(ad,{item:t,searchQuery:n?i:void 0,setEditState:l,editState:u,isStatic:a}),E(Pk,{editState:u,setEditState:l,showMenu:m})]}),E(fk,{searchQuery:n?i:void 0,item:t})]})}),gg=zt(function(t){let r=Fe(null),n=Fe(null),i=Ee(zn),{itemIndex:a,...o}=t,s=Ta(n,n),u=i!=null&&i.query?o.item.data.titleSearch.includes(i.query):!1,l=xk(o.item);return E("div",{ref:c=>{n.current=c,s(c)},className:$("item-wrapper"),children:E("div",{ref:r,className:Ge([$("item"),...l]),children:t.isStatic?E(Nk,{...o,isMatch:u,searchQuery:i==null?void 0:i.query,isStatic:!0}):E(ei,{elementRef:r,measureRef:n,id:t.item.id,index:a,data:t.item,children:E(Nk,{...o,isMatch:u,searchQuery:i==null?void 0:i.query})})})})}),Rk=zt(function({isStatic:t,items:r,shouldMarkItemsComplete:n}){let i=Ee(zn),{view:a}=Ee(tt),o=a.useViewState(_t);return E(ct,{children:r.map((s,u)=>i!=null&&i.query&&!i.items.has(s)?null:E(gg,{item:s,itemIndex:u,shouldMarkItemsComplete:n,isStatic:t},o+s.id))})});var PN=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{l(n.next(c))}catch(d){o(d)}}function u(c){try{l(n.throw(c))}catch(d){o(d)}}function l(c){c.done?a(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})};function yd(e){let t=0,r=0,n=e;do t+=n.offsetTop||0,r+=n.offsetLeft||0,n=n.offsetParent;while(n);return{top:t,left:r}}var yg=class{constructor(t){this.element=t}getHorizontalScroll(){return this.element.scrollLeft}getVerticalScroll(){return this.element.scrollTop}getMaxHorizontalScroll(){return this.element.scrollWidth-this.element.clientWidth}getMaxVerticalScroll(){return this.element.scrollHeight-this.element.clientHeight}getHorizontalElementScrollOffset(t,r){return yd(t).left-yd(r).left}getVerticalElementScrollOffset(t,r){return yd(t).top-yd(r).top}scrollTo(t,r){this.element.scrollLeft=t,this.element.scrollTop=r}},vg=class{constructor(){this.element=window}getHorizontalScroll(){return window.scrollX||document.documentElement.scrollLeft}getVerticalScroll(){return window.scrollY||document.documentElement.scrollTop}getMaxHorizontalScroll(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth}getMaxVerticalScroll(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight}getHorizontalElementScrollOffset(t){return(window.scrollX||document.documentElement.scrollLeft)+t.getBoundingClientRect().left}getVerticalElementScrollOffset(t){return(window.scrollY||document.documentElement.scrollTop)+t.getBoundingClientRect().top}scrollTo(t,r){window.scrollTo(t,r)}},Ji={elements:[],cancelMethods:[],add:(e,t)=>{Ji.elements.push(e),Ji.cancelMethods.push(t)},remove:(e,t)=>{let r=Ji.elements.indexOf(e);r>-1&&(t&&Ji.cancelMethods[r](),Ji.elements.splice(r,1),Ji.cancelMethods.splice(r,1))}},Hk=typeof window!="undefined",NN={cancelOnUserAction:!0,easing:e=>--e*e*e+1,elementToScroll:Hk?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};function RN(e,t={}){return PN(this,void 0,void 0,function*(){if(Hk){if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill."}else return new Promise(x=>{x(!1)});let r,n,i,a=Object.assign(Object.assign({},NN),t),o=a.elementToScroll===window,s=!!a.elementToScroll.nodeName;if(!o&&!s)throw"Element to scroll needs to be either window or DOM element.";let u=o?document.documentElement:a.elementToScroll;getComputedStyle(u).getPropertyValue("scroll-behavior")==="smooth"&&console.warn(`${u.tagName} has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`);let c=o?new vg:new yg(a.elementToScroll);if(e instanceof Element){if(i=e,s&&(!a.elementToScroll.contains(i)||a.elementToScroll.isSameNode(i)))throw"options.elementToScroll has to be a parent of scrollToElement";r=c.getHorizontalElementScrollOffset(i,a.elementToScroll),n=c.getVerticalElementScrollOffset(i,a.elementToScroll)}else if(typeof e=="number")r=c.getHorizontalScroll(),n=e;else if(Array.isArray(e)&&e.length===2)r=e[0]===null?c.getHorizontalScroll():e[0],n=e[1]===null?c.getVerticalScroll():e[1];else throw`Wrong function signature. Check documentation.
|
||
Available method signatures are:
|
||
animateScrollTo(y:number, options)
|
||
animateScrollTo([x:number | null, y:number | null], options)
|
||
animateScrollTo(scrollToElement:Element, options)`;r+=a.horizontalOffset,n+=a.verticalOffset;let d=c.getMaxHorizontalScroll(),m=c.getHorizontalScroll();r>d&&(r=d);let h=r-m,g=c.getMaxVerticalScroll(),y=c.getVerticalScroll();n>g&&(n=g);let v=n-y,D=Math.abs(Math.round(h/1e3*a.speed)),I=Math.abs(Math.round(v/1e3*a.speed)),C=D>I?D:I;return C<a.minDuration?C=a.minDuration:C>a.maxDuration&&(C=a.maxDuration),new Promise((x,O)=>{h===0&&v===0&&x(!0),Ji.remove(c.element,!0);let A,P=()=>{oe(),activeWindow.cancelAnimationFrame(A),x(!1)};Ji.add(c.element,P);let B=ne=>ne.preventDefault(),G=a.cancelOnUserAction?P:B,J=a.cancelOnUserAction?{passive:!0}:{passive:!1},Q=["wheel","touchstart","keydown","mousedown"],oe=()=>{Q.forEach(ne=>{c.element.removeEventListener(ne,G,J)})};Q.forEach(ne=>{c.element.addEventListener(ne,G,J)});let te=Date.now(),re=()=>{var ne=Date.now()-te,be=ne/C;let pe=Math.round(m+h*a.easing(be)),De=Math.round(y+v*a.easing(be));ne<C&&(pe!==r||De!==n)?(c.scrollTo(pe,De),A=activeWindow.requestAnimationFrame(re)):(c.scrollTo(r,n),activeWindow.cancelAnimationFrame(A),oe(),Ji.remove(c.element,!1),x(!0))};A=activeWindow.requestAnimationFrame(re)})})}var vd=RN;var kg=Ct(ln());function Bk({children:e}){let t=$e.useMemo(()=>new Vo,[]);return E(sl.Provider,{value:t,children:e})}function Vk(e,t){let r=$e.useContext(ma),n=$e.useRef(null),i=$e.useContext(sl),a=o=>{n.current=o,n.current&&o.win.requestAnimationFrame(()=>{let s=i.getScrollState(e);s&&(s.x!==0||s.y!==0)&&(n.current.scrollLeft=s.x,n.current.scrollTop=s.y)})};return $e.useEffect(()=>{let o=n.current;if(!o)return;let s=dd(o.win,u=>{let l=u.target;i.setScrollState(r,e,{x:l.scrollLeft,y:l.scrollTop})});return o.addEventListener("scroll",s),()=>{o.removeEventListener("scroll",s)}},[i,e,t]),{setRef:a,scrollRef:n}}var HN="scroll-container",wd=8,bd=["top","right","bottom","left"],Dd=class{constructor(t,r,n,i){this.scrollFrame=0;this.observerQueue=[];this.onScroll=()=>{this.activeScroll.size===0&&(this.scrollState=Th(this.scrollEl),this.handleEntityRegistration())};this.onDragEnd=()=>{this.activeScroll.clear()};this.handleBeginDragScroll=({scrollEntitySide:t,scrollStrength:r})=>{this.isDoneScrolling(t)||(this.activeScroll.set(t,r),this.handleDragScroll())};this.handleUpdateDragScroll=({scrollEntitySide:t,scrollStrength:r})=>{this.isDoneScrolling(t)||this.activeScroll.set(t,r)};this.handleEndDragScroll=({scrollEntitySide:t})=>{this.activeScroll.delete(t)};this.dndManager=t,this.instanceId=et(),this.scopeId=r,this.triggerTypes=n,this.scrollState=Tr,this.parent=i,this.activeScroll=new Map,this.observerHandlers=new Map}initNodes(t){this.scrollEl=t,this.scrollEl.dataset.hitboxid=this.instanceId,this.scrollEl.dataset.scrollid=this.instanceId,this.top=this.createScrollEntity("top"),this.right=this.createScrollEntity("right"),this.bottom=this.createScrollEntity("bottom"),this.left=this.createScrollEntity("left"),this.bindScrollHandlers(),this.observer=new IntersectionObserver(n=>{n.forEach(i=>{var o;let a=(o=i.target.dataset)==null?void 0:o.hitboxid;if(a&&this.observerHandlers.has(a)){let s=this.observerHandlers.get(a);s&&s(i)}})},{root:t,threshold:.1});let{observerQueue:r}=this;this.observerQueue=[],r.forEach(([n,i,a])=>{this.observerHandlers.set(n,a),this.observer.observe(i)}),this.scrollEl.addEventListener("scroll",this.onScroll,{passive:!0,capture:!1}),this.dndManager.emitter.on("scrollResize",this.onScroll),this.scrollEl.win.setTimeout(()=>this.onScroll()),this.dndManager.observeResize(this.scrollEl),this.parent?this.parent.registerObserverHandler(this.instanceId,this.scrollEl,n=>{n.isIntersecting?this.handleEntityRegistration():this.handleEntityUnregistration()}):this.handleEntityRegistration()}destroy(){var t;!this.scrollEl&&!this.observer||(this.observerQueue.length=0,this.handleEntityUnregistration(),this.observer.disconnect(),this.unbindScrollHandlers(),this.scrollEl.removeEventListener("scroll",this.onScroll),this.dndManager.emitter.off("scrollResize",this.onScroll),(t=this.parent)==null||t.unregisterObserverHandler(this.instanceId,this.scrollEl),this.dndManager.unobserveResize(this.scrollEl))}handleEntityRegistration(){bd.forEach(t=>{let r=Dn(this.scrollEl),n=this.getId(t),i=this.dndManager.scrollEntities.has(n),a=this.isDoneScrolling(t);!a&&!i?this.dndManager.registerScrollEntity(n,this[t],r):a&&i&&this.dndManager.unregisterScrollEntity(n,r)})}handleEntityUnregistration(){bd.forEach(t=>{let r=Dn(this.scrollEl),n=this.getId(t);this.dndManager.unregisterScrollEntity(n,r)})}registerObserverHandler(t,r,n){this.observer?(this.observerHandlers.set(t,n),this.observer.observe(r)):this.observerQueue.push([t,r,n])}unregisterObserverHandler(t,r){this.observer?(this.observerHandlers.delete(t),this.observer.unobserve(r)):this.observerQueue=this.observerQueue.filter(n=>n[0]!==t)}bindScrollHandlers(){bd.forEach(t=>{let r=this.getId(t);this.dndManager.dragManager.emitter.on("beginDragScroll",this.handleBeginDragScroll,r),this.dndManager.dragManager.emitter.on("updateDragScroll",this.handleUpdateDragScroll,r),this.dndManager.dragManager.emitter.on("endDragScroll",this.handleEndDragScroll,r),this.dndManager.dragManager.emitter.on("dragEnd",this.onDragEnd)})}unbindScrollHandlers(){bd.forEach(t=>{let r=this.getId(t);this.dndManager.dragManager.emitter.off("beginDragScroll",this.handleBeginDragScroll,r),this.dndManager.dragManager.emitter.off("updateDragScroll",this.handleUpdateDragScroll,r),this.dndManager.dragManager.emitter.off("endDragScroll",this.handleEndDragScroll,r),this.dndManager.dragManager.emitter.off("dragEnd",this.onDragEnd)})}isDoneScrolling(t){switch(t){case"top":return this.scrollState.y===0;case"right":return this.scrollState.x===this.scrollState.maxX;case"bottom":return this.scrollState.y===this.scrollState.maxY;case"left":return this.scrollState.x===0}}handleDragScroll(){this.activeScroll.size!==0&&this.scrollEl.win.requestAnimationFrame(()=>{let t={left:0,top:0};this.activeScroll.forEach((r,n)=>{if(this.isDoneScrolling(n))return this.activeScroll.delete(n);let i=["left","right"].includes(n)?"left":"top",a=["right","bottom"].includes(n);t[i]=a?Math.max(wd-wd*r/35,0):Math.min(-wd+wd*r/35,0)}),this.scrollEl.scrollBy(t),this.scrollState=Th(this.scrollEl),this.handleEntityRegistration(),this.handleDragScroll()})}getId(t){return`${this.instanceId}-${t}`}getPath(t){var r,n,i,a;switch(t){case"right":return[...((r=this.parent)==null?void 0:r.getPath())||[],1];case"bottom":return[...((n=this.parent)==null?void 0:n.getPath())||[],2];case"left":return[...((i=this.parent)==null?void 0:i.getPath())||[],3]}return[...((a=this.parent)==null?void 0:a.getPath())||[],0]}getScrollShift(){var r,n,i;let t=(r=this.parent)==null?void 0:r.getScrollShift();return{x:Xt((n=this.parent)==null?void 0:n.scrollState.x)+Xt(t==null?void 0:t.x),y:Xt((i=this.parent)==null?void 0:i.scrollState.y)+Xt(t==null?void 0:t.y)}}createScrollEntity(t){var n,i;let r=this;return{scopeId:this.scopeId,entityId:r.getId(t),initial:_h(this.scrollEl.getBoundingClientRect(),((n=this.parent)==null?void 0:n.scrollState)||Tr,((i=this.parent)==null?void 0:i.getScrollShift())||vi,t),getParentScrollState(){var a;return((a=r.parent)==null?void 0:a.scrollState)||Tr},getParentScrollShift(){var a;return((a=r.parent)==null?void 0:a.getScrollShift())||vi},recalcInitial(){var a,o;this.initial=_h(r.scrollEl.getBoundingClientRect(),((a=r.parent)==null?void 0:a.scrollState)||Tr,((o=r.parent)==null?void 0:o.getScrollShift())||vi,t)},getHitbox(){return Bu(this.initial[0],this.initial[1],this.initial[2],this.initial[3],this.getParentScrollState(),this.getParentScrollShift())},getPath(){return r.getPath(t)},getData(){return{id:r.getId(t),type:HN,side:t,accepts:r.triggerTypes||[],scrollContainer:r.scrollEl,win:Dn(r.scrollEl)}}}}};function $k({scrollRef:e,triggerTypes:t,children:r}){let n=Ee(cn),i=Ee(ma),a=Ee(ol),o=Fe(),s=Re(()=>{if(n){o.current&&o.current.destroy();let u=new Dd(n,i,t||[],a);return o.current=u,u}return null},[n,i,e,t,a]);return Nu([e],()=>{var u;return(u=o.current)==null?void 0:u.initNodes(e.current)},()=>{var u;return(u=o.current)==null?void 0:u.destroy()}),s?E(ol.Provider,{value:s,children:r}):null}function Sd({className:e,children:t,triggerTypes:r,isStatic:n,id:i,index:a}){let{setRef:o,scrollRef:s}=Vk(i,a);return E("div",{ref:o,className:Ge([e,$("scroll-container")]),children:n?t:E($k,{scrollRef:s,triggerTypes:r,children:t})})}function Fa({index:e,accepts:t,className:r,isStatic:n,children:i}){let a=Fe(null),o=Fe(null),s=Re(()=>({id:et(),type:"placeholder",accepts:t}),t);return E("div",{ref:o,className:Ge([r,$("placeholder")]),children:E("div",{ref:a,children:n?i:E(ei,{elementRef:a,measureRef:o,id:s.id,index:e,data:s,children:i})})})}var wg={width:0,height:0},BN=100,Ed=class{constructor(t,r,n){this.hitboxDimensions=wg;this.handleDragStart=({dragEntity:t,dragEntityMargin:r,dragOriginHitbox:n})=>{let i=t==null?void 0:t.entityId,a=i?this.sortables.has(i):null;!t||!a||!n||(this.setSortState(!0),this.hitboxDimensions=Fh(n,r),this.activatePlaceholder(this.hitboxDimensions,Lr.none),this.sortables.forEach(([o,s,u])=>{let l=js(t.getPath(),o.getPath()),c=o.entityId;if(l===2)return this.hidden.add(c),this.hideDraggingEntity(u);l===1&&(this.shifted.has(c)||this.shifted.add(c),this.shiftEl(s,Lr.none,this.hitboxDimensions))}))};this.dragEndTimeout=0;this.handleDragEnd=({primaryIntersection:t,dragPosition:r,dragOriginHitbox:n,dragEntity:i})=>{let a=()=>{if(t&&i){let{acceptsSort:l}=t.getData();if(l&&!l.includes(i.getData().type)){let d=this.sortables.get(t.entityId);d&&d[2].removeClass("is-dropping")}}};if(!this.isSorting||!r||!n||!i){if(a(),!t&&i&&this.sortables.has(i.entityId))return this.resetSelf({maintainHidden:!1});if(t&&i){let l=(t==null?void 0:t.getHitbox())||n,c=ys({position:r,destination:{x:l[0],y:l[1]}});return this.dndManager.win.setTimeout(()=>{this.resetSelf({maintainHidden:!1})},c)}return this.resetSelf({maintainHidden:!0})}let{win:o}=this.dndManager;o.clearTimeout(this.dragEnterTimeout),o.clearTimeout(this.dragLeaveTimeout),o.clearTimeout(this.dragEndTimeout);let s=(t==null?void 0:t.getHitbox())||n,u=i.scopeId==="htmldnd"?0:ys({position:r,destination:{x:s[0],y:s[1]}});this.dragEndTimeout=o.setTimeout(()=>{let l=i.entityId.split(":::").pop(),c=t==null?void 0:t.entityId.split(":::").pop();a(),t&&this.sortables.has(t.entityId)&&c!==l&&this.dndManager.onDrop(i,t),this.resetSelf({maintainHidden:!1,shiftTransition:Lr.none,placeholderTransition:Lr.none})},u),this.hitboxDimensions=wg};this.dragEnterTimeout=0;this.handleDragEnter=({dragEntity:t,dragEntityMargin:r,dragOriginHitbox:n,primaryIntersection:i})=>{let a=i==null?void 0:i.entityId,o=a?this.sortables.has(a):null;if(!t||!i||!o||!n){!o&&this.isSorting&&this.resetSelf({maintainHidden:!0,maintainPlaceholder:!0});return}if(t.entityId===i.entityId)return;let{win:s}=this.dndManager;s.clearTimeout(this.dragLeaveTimeout),s.clearTimeout(this.dragEnterTimeout),this.dragEnterTimeout=s.setTimeout(()=>{let u=this.hitboxDimensions=Fh(n,r);this.setSortState(!0),this.activatePlaceholder(u,Lr.placeholder);let{acceptsSort:l}=i.getData();if(l&&!l.includes(t.getData().type)){let d=this.sortables.get(i.entityId);d&&d[2].addClass("is-dropping"),this.sortables.forEach(([m,h])=>{let g=m.entityId;this.shifted.has(g)&&(this.shifted.delete(g),this.resetEl(h))});return}this.sortables.forEach(([d,m])=>{let h=js(i.getPath(),d.getPath()),g=d.entityId;!this.hidden.has(g)&&(h===2||h===1)?this.shifted.has(g)||(this.shifted.add(g),this.shiftEl(m,Lr.outOfTheWay,u)):this.shifted.has(g)&&(this.shifted.delete(g),this.resetEl(m))})},10)};this.dragLeaveTimeout=0;this.handleDragLeave=({dragEntity:t,primaryIntersection:r})=>{if(!this.isSorting)return;let{acceptsSort:n}=r.getData();if(n&&!n.includes(t.getData().type)){let o=this.sortables.get(r.entityId);o&&o[2].removeClass("is-dropping")}let{win:a}=this.dndManager;a.clearTimeout(this.dragLeaveTimeout),a.clearTimeout(this.dragEnterTimeout),this.dragLeaveTimeout=a.setTimeout(()=>{this.resetSelf({maintainHidden:!0,maintainPlaceholder:!0})},BN),this.hitboxDimensions=wg};this.instanceId=et(),this.dndManager=t,this.sortables=new Map,this.shifted=new Set,this.hidden=new Set,this.isSorting=!1,this.axis=r,this.placeholder=null,this.sortListeners=n?[n]:[],t.dragManager.emitter.on("dragStart",this.handleDragStart),t.dragManager.emitter.on("dragEnd",this.handleDragEnd),t.dragManager.emitter.on("dragEnter",this.handleDragEnter),t.dragManager.emitter.on("dragLeave",this.handleDragLeave)}destroy(){this.dndManager.win.clearTimeout(this.dragLeaveTimeout),this.dndManager.win.clearTimeout(this.dragEndTimeout),this.dndManager.dragManager.emitter.off("dragStart",this.handleDragStart),this.dndManager.dragManager.emitter.off("dragEnd",this.handleDragEnd),this.dndManager.dragManager.emitter.off("dragEnter",this.handleDragEnter),this.dndManager.dragManager.emitter.off("dragLeave",this.handleDragLeave)}registerSortable(t,r,n,i){let a=r.getData().type;this.sortables.set(t,[r,n,i]),a==="placeholder"?(this.placeholder=[r,n,i],i.dataset.axis=this.axis,ui(i,"transition",Lr.none)):ui(n,"transition",Lr.none)}unregisterSortable(t){this.sortables.delete(t)}resetSelf({maintainHidden:t,maintainPlaceholder:r,shiftTransition:n,placeholderTransition:i}){this.isSorting&&this.setSortState(!1),this.isPlaceholderActive&&!r&&this.deactivatePlaceholder(i),this.shifted.size>0&&(this.shifted.forEach(a=>{if(this.sortables.has(a)){let[,o]=this.sortables.get(a);this.resetEl(o,n)}}),this.shifted.clear()),!t&&this.hidden.size>0&&(this.hidden.forEach(a=>{if(this.sortables.has(a)){let[,,o]=this.sortables.get(a);this.resetEl(o,n)}}),this.hidden.clear())}activatePlaceholder(t,r){if(this.placeholder){let n=this.axis==="horizontal",[,,i]=this.placeholder;ui(i,"transition",r),ui(i,n?"width":"height",`${n?t.width:t.height}px`),this.isPlaceholderActive=!0}}deactivatePlaceholder(t=Lr.placeholder){if(this.placeholder){let[,,r]=this.placeholder;ui(r,"transition",t),fd(r,"width"),fd(r,"height"),this.isPlaceholderActive=!1}}hideDraggingEntity(t){ui(t,"display","none")}shiftEl(t,r,n){let i=this.axis==="horizontal"?`translate3d(${n.width}px, 0, 0)`:`translate3d(0, ${n.height}px, 0)`;ui(t,"transition",r),ui(t,"transform",i)}resetEl(t,r=Lr.outOfTheWay){ui(t,"transition",r),ui(t,"transform","translate3d(0, 0, 0)"),fd(t,"display")}addSortNotifier(t){this.sortListeners.push(t)}removeSortNotifier(t){this.sortListeners=this.sortListeners.filter(r=>r!==t)}setSortState(t){this.isSorting!==t&&(this.isSorting=t,this.sortListeners.forEach(r=>r(t)))}};function Uk(e){return E(ct,{children:e.children})}function Ia({axis:e,children:t,onSortChange:r}){let n=Ee(cn),i=Fe(),a=Re(()=>{if(n){i.current&&i.current.destroy();let o=new Ed(n,e,r);return i.current=o,o}return null},[n,e,r]);return Ae(()=>()=>{var o;return(o=i.current)==null?void 0:o.destroy()},[]),a?E($u.Provider,{value:a,children:t}):null}var $N=function(){if(typeof window=="undefined"||typeof window.addEventListener!="function")return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){return null};return window.addEventListener("test",r,t),window.removeEventListener("test",r,t),e},UN="ignore-onclickoutside",Wk=function(t,r){var n;return(n=t.classList)==null?void 0:n.contains(r)},Yk=function(t,r){for(var n=t.target||t;n;){if(Array.isArray(r)){if(r.some(function(i){return Wk(n,i)}))return!0}else if(Wk(n,r))return!0;n=n.parentElement}return!1},WN=function(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY},zk=function(t){return t.includes("touch")&&$N()?{passive:!0}:!1},YN=function(t,r){var n=r===void 0?{}:r,i=n.refs,a=n.disabled,o=n.eventTypes,s=o===void 0?["mousedown","touchstart"]:o,u=n.excludeScrollbar,l=n.ignoreClass,c=l===void 0?UN:l,d=n.detectIFrame,m=d===void 0?!0:d,h=Ne([]),g=h[0],y=h[1],v=Fe(t);v.current=t;var D=Ye(function(I){return y(function(C){return[].concat(C,[{current:I}])})},[]);return Ae(function(){if(!(!(i!=null&&i.length)&&!g.length)){var I=function(){var P=[];return(i||g).forEach(function(B){var G=B.current;return G&&P.push(G)}),P},C=function(P){!Yk(P,c)&&!(u&&WN(P))&&I().every(function(B){return!B.contains(P.target)})&&v.current(P)},x=function(P){return activeWindow.setTimeout(function(){var B=document,G=B.activeElement;(G==null?void 0:G.tagName)==="IFRAME"&&!Yk(G,c)&&!I().includes(G)&&v.current(P)},0)},O=function(){s.forEach(function(P){return document.removeEventListener(P,C,zk(P))}),m&&window.removeEventListener("blur",x)};if(a){O();return}return s.forEach(function(A){return document.addEventListener(A,C,zk(A))}),m&&window.addEventListener("blur",x),function(){return O()}}},[g,c,u,a,m,JSON.stringify(s)]),D},ws=YN;function kd(e,t){var r;if(t.types.includes("text/uri-list")||["file","files","link","folder"].includes((r=e.app.dragManager.draggable)==null?void 0:r.type))return"link";if(t.types.includes("text/html")||t.types.includes("text/plain"))return"copy"}function bg({addItems:e,editState:t,setEditState:r,hideButton:n}){let{stateManager:i}=Ee(tt),a=Fe(),o=()=>r(0),s=ws(o,{ignoreClass:[$("ignore-click-outside"),"mobile-toolbar","suggestion-container"]}),u=l=>{e([i.getNewItem(l," ")]);let c=a.current;c&&c.dispatch({changes:{from:0,to:c.state.doc.length,insert:""}})};return kn(t)?E("div",{className:$("item-form"),ref:s,children:E("div",{className:$("item-input-wrapper"),children:E(_a,{editorRef:a,editState:{x:0,y:0},className:$("item-input"),placeholder:R("Card title..."),onEnter:(l,c,d)=>{if(!Ca(i,c,d))return u(l.state.doc.toString()),!0},onSubmit:l=>{u(l.state.doc.toString())},onEscape:o})})}):n?null:E("div",{className:$("item-button-wrapper"),children:E("button",{className:$("new-item-button"),onClick:()=>r({x:0,y:0}),onDragOver:l=>{kd(i,l.dataTransfer)&&r({x:0,y:0})},children:[E("span",{className:$("item-button-plus"),children:"+"})," ",R("Add a card")]})})}var rx=Ct(ln());function xd(e,t){let r=e.length,n=t.start;for(;n>0&&e[n-1]===" ";)n--;let i=t.end;for(;i<r-1&&e[i+1]===" ";)i++;return e.slice(0,n)+"\0".repeat(i-n)+e.slice(i)}function Kk(e){return e.replace(/ *\0+ */g," ").trim()}function jk(e){return e.trim().replace(/(?:\r\n|\n)/g,"<br>")}function Dg(e){return e.replace(/<br>/g,`
|
||
`).trim()}function Cd(e){let t=app.vault.getConfig("useTab");return e.trim().replace(/(?:\r\n|\n)/g,t?`
|
||
`:`
|
||
`)}function Sg(e,t){if(!t.data.blockId)return e;let r=e.split(/(?:\r\n|\n)/g);return r[0]+=" ^"+t.data.blockId,r.join(`
|
||
`)}function qk(e){let t=e.split(/(?:\r\n|\n)/g);return t[0]=t[0].replace(/\s+\^([a-zA-Z0-9-]+)$/,""),t.join(`
|
||
`)}function Eg(e){return e.trim().replace(/(?:\r\n|\n)(?: {4}|\t)/g,`
|
||
`)}function co(e){e=Dg(e);let t=e.match(/^(.*?)\s*\((\d+)\)$/);return t==null?{title:e,maxItems:0}:{title:t[1],maxItems:Number(t[2])}}function Gk(e){return E("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:E("path",{fill:"currentColor",d:"M5 3h2v2H5zm0 4h2v2H5zm0 4h2v2H5zm4-8h2v2H9zm0 4h2v2H9zm0 4h2v2H9z"})})}var $l=Ct(ln()),_d=require("obsidian");var Jk={delete:{description:R("Are you sure you want to delete this list and all its cards?"),confirm:R("Yes, delete list")},archive:{description:R("Are you sure you want to archive this list and all its cards?"),confirm:R("Yes, archive list")},"archive-items":{description:R("Are you sure you want to archive all cards in this list?"),confirm:R("Yes, archive cards")}};function Zk({action:e,cancel:t,onAction:r,lane:n}){return Ae(()=>{e&&n.children.length===0&&r()},[e,n.children.length]),!e||e&&n.children.length===0?null:E("div",{className:$("action-confirm-wrapper"),children:[E("div",{className:$("action-confirm-text"),children:Jk[e].description}),E("div",{children:[E("button",{onClick:r,className:$("confirm-action-button"),children:Jk[e].confirm}),E("button",{onClick:t,className:$("cancel-action-button"),children:"Cancel"})]})]})}function Qk({setEditState:e,path:t,lane:r}){let{stateManager:n,boardModifiers:i}=Ee(tt),[a,o]=Ne(null);return{settingsMenu:Re(()=>{let u=new Set,l=!1,c=!1;r.children.forEach(h=>{var y;let g=h.data.metadata.inlineMetadata;g&&g.forEach(v=>{v.key!=="repeat"&&(u.has(v.key)||u.add(v.key))}),!l&&h.data.metadata.date&&(l=!0),!c&&((y=h.data.metadata.tags)!=null&&y.length)&&(c=!0)});let d=new _d.Menu().addItem(h=>{h.setIcon("lucide-edit-3").setTitle(R("Edit list")).onClick(()=>e({x:0,y:0}))}).addItem(h=>{h.setIcon("lucide-archive").setTitle(R("Archive cards")).onClick(()=>o("archive-items"))}).addSeparator().addItem(h=>{h.setIcon("arrow-left-to-line").setTitle(R("Insert list before")).onClick(()=>i.insertLane(t,{...Ea,id:et(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}}))}).addItem(h=>{h.setIcon("arrow-right-to-line").setTitle(R("Insert list after")).onClick(()=>{let g=[...t];g[g.length-1]=g[g.length-1]+1,i.insertLane(g,{...Ea,id:et(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}})})}).addSeparator().addItem(h=>{h.setIcon("lucide-archive").setTitle(R("Archive list")).onClick(()=>o("archive"))}).addItem(h=>{h.setIcon("lucide-trash-2").setTitle(R("Delete list")).onClick(()=>o("delete"))}).addSeparator(),m=h=>{h.addItem(g=>{g.setIcon("arrow-down-up").setTitle(R("Sort by card text")).onClick(()=>{let y=r.children.slice(),v=r.data.sorted===0;y.sort((D,I)=>v?I.data.title.localeCompare(D.data.title):D.data.title.localeCompare(I.data.title)),i.updateLane(t,(0,$l.default)(r,{children:{$set:y},data:{sorted:{$set:r.data.sorted===0?1:0}}}))})}),l&&h.addItem(g=>{g.setIcon("arrow-down-up").setTitle(R("Sort by date")).onClick(()=>{let y=r.children.slice(),v=r.data.sorted===2?-1:1;y.sort((D,I)=>{let C=D.data.metadata.time||D.data.metadata.date,x=I.data.metadata.time||I.data.metadata.date;return C&&!x?-1*v:x&&!C?1*v:!C&&!x?0:(C.isBefore(x)?-1:1)*v}),i.updateLane(t,(0,$l.default)(r,{children:{$set:y},data:{sorted:{$set:r.data.sorted===2?3:2}}}))})}),c&&h.addItem(g=>{g.setIcon("arrow-down-up").setTitle(R("Sort by tags")).onClick(()=>{let y=n.getSetting("tag-sort"),v=r.children.slice(),D=r.data.sorted===4;v.sort((I,C)=>{var B,G;let x=I.data.metadata.tags,O=C.data.metadata.tags;if(!(x!=null&&x.length)&&!(O!=null&&O.length))return 0;if(!(x!=null&&x.length))return 1;if(!(O!=null&&O.length))return-1;let A=(B=y==null?void 0:y.findIndex(J=>x.includes(J.tag)))!=null?B:-1,P=(G=y==null?void 0:y.findIndex(J=>O.includes(J.tag)))!=null?G:-1;return A>-1&&P<0?D?1:-1:P>-1&&A<0?D?-1:1:A>-1&&P>-1?D?P-A:A-P:D?fr(O.join(""),x.join("")):fr(x.join(""),O.join(""))}),i.updateLane(t,(0,$l.default)(r,{children:{$set:v},data:{sorted:{$set:r.data.sorted===4?5:4}}}))})}),u.size&&u.forEach(g=>{h.addItem(y=>{y.setIcon("arrow-down-up").setTitle(R("Sort by")+" "+No(g).toLocaleLowerCase()).onClick(()=>{let v=r.children.slice(),D=r.data.sorted===g+"-asc";v.sort((I,C)=>{var A,P;let x=(A=I.data.metadata.inlineMetadata)==null?void 0:A.find(B=>B.key===g),O=(P=C.data.metadata.inlineMetadata)==null?void 0:P.find(B=>B.key===g);return x===void 0&&O===void 0?0:x===void 0?1:O===void 0?-1:D?fr(In(O.value,n),In(x.value,n)):fr(In(x.value,n),In(O.value,n))}),i.updateLane(t,(0,$l.default)(r,{children:{$set:v},data:{sorted:{$set:r.data.sorted===g+"-asc"?g+"-desc":g+"-asc"}}}))})})})};return _d.Platform.isPhone?m(d):d.addItem(h=>{let g=h.setTitle(R("Sort by")).setIcon("arrow-down-up").setSubmenu();m(g)}),d},[n,o,t,r]),confirmAction:a,setConfirmAction:o}}var Xk=Ct(ln());function ex({lane:e,lanePath:t,editState:r}){let{boardModifiers:n}=Ee(tt);return kn(r)?E("div",{className:$("lane-setting-wrapper"),children:E("div",{className:$("checkbox-wrapper"),children:[E("div",{className:$("checkbox-label"),children:R("Mark cards in this list as complete")}),E("div",{onClick:()=>n.updateLane(t,(0,Xk.default)(e,{data:{$toggle:["shouldMarkItemsComplete"]}})),className:`checkbox-container ${e.data.shouldMarkItemsComplete?"is-enabled":""}`})]})}):null}function tx({maxItems:e,itemCount:t,editState:r}){let{stateManager:n}=Ee(tt);return n.getSetting("hide-card-count")||kn(r)?null:E("div",{className:Ge([$("lane-title-count"),{"wip-exceeded":e&&e<t}]),children:[t,e>0&&E(ct,{children:[E("span",{className:$("lane-title-count-separator"),children:"/"}),E("span",{className:$("lane-title-count-limit"),children:e})]})]})}function nx({maxItems:e,editState:t,setEditState:r,title:n,onChange:i}){let{stateManager:a}=Ee(tt),o=Fe(null);Ae(()=>{t===1?(o.current!==null&&i(o.current),o.current=null):t===0&&o.current!==null&&(o.current=null)},[t]);let s=Ye(d=>{d.docChanged&&(o.current=d.state.doc.toString().trim())},[]),u=Ye((d,m,h)=>{if(!Ca(a,m,h))return r(1),!0},[r,a]),l=Ye(()=>r(1),[r]),c=Ye(()=>r(0),[r]);return E("div",{className:$("lane-title"),children:kn(t)?E(_a,{editState:t,className:$("lane-input"),onChange:s,onEnter:u,onEscape:c,onSubmit:l,value:cd(n,e)}):E("div",{className:$("lane-title-text"),children:E(Sa,{markdownString:n})})})}function zN({settingsMenu:e,editState:t,setEditState:r,setIsItemInputVisible:n}){let{stateManager:i}=Ee(tt);return E("div",{className:$("lane-settings-button-wrapper"),children:kn(t)?E("a",{onClick:()=>r(null),"aria-label":R("Close"),className:`${$("lane-settings-button")} is-enabled clickable-icon`,children:E(Ut,{name:"lucide-x"})}):E(ct,{children:[n&&E("a",{"aria-label":R("Add a card"),className:`${$("lane-settings-button")} clickable-icon`,onClick:()=>n({x:0,y:0}),onDragOver:a=>{kd(i,a.dataTransfer)&&n({x:0,y:0})},children:E(Ut,{name:"lucide-plus-circle"})}),E("a",{"aria-label":R("More options"),className:`${$("lane-settings-button")} clickable-icon`,onClick:a=>{e.showAtMouseEvent(a)},children:E(Ut,{name:"lucide-more-vertical"})})]})})}var ix=zt(function({lane:t,laneIndex:r,bindHandle:n,setIsItemInputVisible:i,isCollapsed:a,toggleIsCollapsed:o}){let[s,u]=Ne(0),l=Ui(r),{boardModifiers:c}=Ee(tt),{settingsMenu:d,confirmAction:m,setConfirmAction:h}=Qk({setEditState:u,path:l,lane:t});Ae(()=>{t.data.forceEditMode&&u(null)},[t.data.forceEditMode]);let g=Ye(v=>{let{title:D,maxItems:I}=co(v);c.updateLane(l,(0,rx.default)(t,{data:{title:{$set:D},maxItems:{$set:I}}}))},[c,t,l]),y=Ye(v=>{!a&&u({x:v.clientX,y:v.clientY})},[a,u]);return E(ct,{children:[E("div",{onDblClick:y,className:$("lane-header-wrapper"),children:[E("div",{className:$("lane-grip"),ref:n,children:E(Gk,{})}),E("div",{onClick:o,className:$("lane-collapse"),children:E(Ut,{name:"chevron-down"})}),E(nx,{id:t.id,editState:s,maxItems:t.data.maxItems,onChange:g,setEditState:u,title:t.data.title}),E(tx,{editState:s,itemCount:t.children.length,maxItems:t.data.maxItems}),E(zN,{editState:s,setEditState:u,setIsItemInputVisible:i,settingsMenu:d})]}),E(ex,{editState:s,lane:t,lanePath:l}),m&&E(Zk,{lane:t,action:m,onAction:()=>{switch(m){case"archive":c.archiveLane(l);break;case"archive-items":c.archiveLaneItems(l);break;case"delete":c.deleteEntity(l);break}h(null)},cancel:()=>h(null)})]})});var ax=[ft.Item];function KN({isStatic:e,lane:t,laneIndex:r,collapseDir:n,isCollapsed:i=!1}){var be;let[a,o]=Ne(0),[s,u]=Ne(!1),{stateManager:l,boardModifiers:c,view:d}=Ee(tt),m=Ee(zn),h=d.useViewState(_t),g=Ui(r),y=l.useSetting("lane-width"),v=h==="list"&&l.useSetting("full-list-lane-width"),D=l.useSetting("new-card-insertion-method"),I=Re(()=>!(i&&n==="horizontal")&&(v||y)?{width:v?"100%":`${y}px`}:void 0,[v,y,i]),C=Fe(null),x=Fe(null),O=Fe(null),A=Ta(x,O),P=!!t.data.shouldMarkItemsComplete,B=D==="prepend-compact",G=B||D==="prepend",J=Ye(()=>{l.setState(pe=>{let De=[...d.getViewState("list-collapse")];return De[r]=!De[r],d.setViewState("list-collapse",De),(0,kg.default)(pe,{data:{settings:{"list-collapse":{$set:De}}}})})},[l,r]),Q=Ye(pe=>{c[G?"prependItems":"appendItems"]([...g,t.children.length-1],pe.map(De=>(0,kg.default)(De,{data:{checked:{$set:P},checkChar:{$set:P?Zn():" "}}}))),d.getWindow().setTimeout(()=>{var Ce;let De=(Ce=C.current)==null?void 0:Ce.getElementsByClassName($("lane-items"));De.length&&vd([0,G?0:De[0].scrollHeight],{elementToScroll:De[0],speed:200,minDuration:150,easing:U=>U===1?1:1-Math.pow(2,-10*U)})})},[c,g,t,G]),oe=e?Tb:ei,te=e?Uk:Ia,re=!i||e?ct:ei,ne=Re(()=>{if(!i||e)return{};let pe={id:et(),type:"lane",accepts:[ft.Item],acceptsSort:[ft.Lane]};return{elementRef:C,measureRef:x,id:pe.id,index:r,data:pe}},[i,r,e]);return E(Oc.Provider,{value:(be=t.data.sorted)!=null?be:null,children:E("div",{ref:x,className:Ge([$("lane-wrapper"),{"is-sorting":s,"collapse-horizontal":i&&n==="horizontal","collapse-vertical":i&&n==="vertical"}]),style:I,children:E("div",{"data-count":t.children.length,ref:C,className:Ge([$("lane"),{"will-prepend":G}]),children:E(re,{...ne,children:[E(ix,{bindHandle:A,laneIndex:r,lane:t,setIsItemInputVisible:B?o:void 0,isCollapsed:i,toggleIsCollapsed:J}),!(m!=null&&m.query)&&!i&&G&&E(bg,{addItems:Q,hideButton:B,editState:a,setEditState:o}),!i&&E(oe,{elementRef:C,measureRef:x,id:t.id,index:r,data:t,children:E(Sd,{className:Ge([$("lane-items"),$("vertical")]),id:t.id,index:r,isStatic:e,triggerTypes:ax,children:E(te,{onSortChange:u,axis:"vertical",children:[E(Rk,{items:t.children,isStatic:e,shouldMarkItemsComplete:P}),E(Fa,{accepts:ax,index:t.children.length,isStatic:e})]})})}),!(m!=null&&m.query)&&!i&&!G&&E(bg,{addItems:Q,editState:a,setEditState:o})]})})})})}var xg=zt(KN);function jN({lanes:e,collapseDir:t}){let r=Ee(zn),{view:n}=Ee(tt),i=n.useViewState(_t)||"board",a=n.useViewState("list-collapse")||[];return E(ct,{children:e.map((o,s)=>E(xg,{collapseDir:t,isCollapsed:(r==null?void 0:r.query)&&!r.lanes.has(o)||!!a[s],lane:o,laneIndex:s},i+o.id))})}var ox=zt(jN);var sx=require("obsidian");var Md=class{constructor(t,r){this.scrollResizeDebounce=0;this.handleResize=t=>{let r=!1;t.forEach(n=>{let i=Dn(n.target);this.win===i&&(r=!0,n.target.dataset.scrollid&&(this.win.clearTimeout(this.scrollResizeDebounce),this.scrollResizeDebounce=this.win.setTimeout(()=>{this.emitter.listenerCount("scrollResize")&&this.emitter.emit("scrollResize",null)},50)))}),r&&(this.hitboxEntities.forEach(n=>{n.recalcInitial()}),this.scrollEntities.forEach(n=>{n.recalcInitial()}))};this.win=t,this.emitter=new Bo,this.hitboxEntities=new Map,this.scrollEntities=new Map,this.onDrop=r,this.resizeObserver=new ResizeObserver((0,sx.debounce)(this.handleResize,100,!0)),this.dragManager=new hd(t,this.emitter,this.hitboxEntities,this.scrollEntities)}destroy(){this.resizeObserver.disconnect()}observeResize(t){t.instanceOf(HTMLElement)&&this.resizeObserver.observe(t,{box:"border-box"})}unobserveResize(t){t.instanceOf(HTMLElement)&&this.resizeObserver.unobserve(t)}registerHitboxEntity(t,r,n){n===this.win&&this.hitboxEntities.set(t,r)}registerScrollEntity(t,r,n){n===this.win&&this.scrollEntities.set(t,r)}unregisterHitboxEntity(t,r){r===this.win&&this.hitboxEntities.delete(t)}unregisterScrollEntity(t,r){r===this.win&&this.scrollEntities.delete(t)}};function bs({win:e,children:t,onDrop:r}){let n=Fe(r);n.current=r;let i=Re(()=>new Md(e,(a,o)=>n.current(a,o)),[]);return Ae(()=>()=>{i.destroy()},[i]),E(cn.Provider,{value:i,children:E(Bk,{children:t})})}function Cg(e,t,r,n,i,a){let o=[r[0]-n[0],r[1]-n[1],r[2]+n[2],r[3]+n[3]];return{transform:a||`translate3d(${e.x-t.x+o[0]}px, ${e.y-t.y+o[1]}px, 0px)`,width:`${o[2]-o[0]}px`,height:`${o[3]-o[1]}px`,transition:i}}function Ds({children:e}){let t=Ee(cn),[r,n]=Ne(),[i,a]=Ne();return Ae(()=>{if(!t)return;let o=Cb,s=({dragEntity:d,dragOrigin:m,dragPosition:h,dragEntityMargin:g})=>{!d||!h||!m||(o=d.getHitbox(),n(d),a(Cg(h,m,o,g)))},u=({dragOrigin:d,dragPosition:m,dragEntityMargin:h})=>{!m||!d||a(Cg(m,d,o,h))},l=({dragOrigin:d,primaryIntersection:m,dragPosition:h,dragEntityMargin:g})=>{if(m&&h&&d){let y=m.getHitbox(),v={x:y[0],y:y[1]},D=ys({position:h,destination:v}),I=Lr.drop(D),C=Fk.drop(v);a(Cg(h,d,o,g,I,C)),activeWindow.setTimeout(()=>{n(void 0),a(void 0)},D)}else n(void 0),a(void 0)},{emitter:c}=t.dragManager;return c.on("dragStart",s),c.on("dragMove",u),c.on("dragEnd",l),()=>{c.off("dragStart",s),c.off("dragMove",u),c.off("dragEnd",l)}},[t]),!r||!i?null:Oi(e(r,i),r.getData().win.document.body)}function lx(){let e=Ee(cn),[t,r]=Ne(!1);return Ae(()=>{let n=()=>r(!0),i=({primaryIntersection:o,dragPosition:s})=>{let u=(o==null?void 0:o.getHitbox())||[0,0],l={x:u[0],y:u[1]},c=ys({position:s||l,destination:l});activeWindow.setTimeout(()=>r(!1),c)},{emitter:a}=e.dragManager;return a.on("dragStart",n),a.on("dragEnd",i),()=>{a.off("dragStart",n),a.off("dragEnd",i)}},[e]),t}var Zi=Ct(ln()),ux=require("obsidian");function Td(e,t){let r=n=>{let i=t.getSetting("archive-date-format"),a=t.getSetting("archive-date-separator"),o=t.getSetting("append-archive-date"),s=[(0,ux.moment)().format(i)];a&&s.push(a),s.push(n.data.titleRaw),o&&s.reverse();let u=s.join(" ");return t.updateItemContent(n,u)};return{appendItems:(n,i)=>{t.setState(a=>ah(a,n,i))},prependItems:(n,i)=>{t.setState(a=>ow(a,n,i))},insertItems:(n,i)=>{t.setState(a=>Xr(a,n,i))},replaceItem:(n,i)=>{t.setState(a=>Xr(mi(a,n),n,i))},splitItem:(n,i)=>{t.setState(a=>Xr(mi(a,n),n,i))},moveItemToTop:n=>{t.setState(i=>Ri(i,n,[n[0],0]))},moveItemToBottom:n=>{t.setState(i=>{let a=n[0],o=i.children[a];return Ri(i,n,[a,o.children.length])})},addLane:n=>{t.setState(i=>{let a=e.getViewState("list-collapse")||[],o=s=>{let u=[...s];return u.push(!1),u};return e.setViewState("list-collapse",void 0,o),(0,Zi.default)(ah(i,[],[n]),{data:{settings:{"list-collapse":{$set:o(a)}}}})})},insertLane:(n,i)=>{t.setState(a=>{let o=e.getViewState("list-collapse"),s=u=>{let l=[...u];return l.splice(n.last(),0,!1),l};return e.setViewState("list-collapse",void 0,s),(0,Zi.default)(Xr(a,n,[i]),{data:{settings:{"list-collapse":{$set:s(o)}}}})})},updateLane:(n,i)=>{t.setState(a=>oh(a,n,{children:{[n[n.length-1]]:{$set:i}}}))},archiveLane:n=>{t.setState(i=>{let o=un(i,n).children;try{let s=e.getViewState("list-collapse"),u=l=>{let c=[...l];return c.splice(n.last(),1),c};return e.setViewState("list-collapse",void 0,u),(0,Zi.default)(mi(i,n),{data:{settings:{"list-collapse":{$set:u(s)}},archive:{$unshift:t.getSetting("archive-with-date")?o.map(r):o}}})}catch(s){return t.setError(s),i}})},archiveLaneItems:n=>{t.setState(i=>{let o=un(i,n).children;try{return(0,Zi.default)(Du(i,n,{children:{$set:[]}}),{data:{archive:{$unshift:t.getSetting("archive-with-date")?o.map(r):o}}})}catch(s){return t.setError(s),i}})},deleteEntity:n=>{t.setState(i=>{if(un(i,n).type===ft.Lane){let o=e.getViewState("list-collapse"),s=u=>{let l=[...u];return l.splice(n.last(),1),l};return e.setViewState("list-collapse",void 0,s),(0,Zi.default)(mi(i,n),{data:{settings:{"list-collapse":{$set:s(o)}}}})}return mi(i,n)})},updateItem:(n,i)=>{t.setState(a=>oh(a,n,{children:{[n[n.length-1]]:{$set:i}}}))},archiveItem:n=>{t.setState(i=>{let a=un(i,n);try{return(0,Zi.default)(mi(i,n),{data:{archive:{$push:[t.getSetting("archive-with-date")?r(a):a]}}})}catch(o){return t.setError(o),i}})},duplicateEntity:n=>{t.setState(i=>{let a=un(i,n),o=(0,Zi.default)(a,{id:{$set:et()}});if(a.type===ft.Lane){let s=e.getViewState("list-collapse"),u=l=>{let c=[...l];return c.splice(n.last(),0,l[n.last()]),c};return e.setViewState("list-collapse",void 0,u),(0,Zi.default)(Xr(i,n,[o]),{data:{settings:{"list-collapse":{$set:u(s)}}}})}return Xr(i,n,[o])})}}}function cx(e,t){return E(GN,{win:e,plugin:t})}var qN=zt(function({view:t}){return Oi(t.getPortal(),t.contentEl)});function GN({win:e,plugin:t}){let r=t.useKanbanViews(e),n=r.map(a=>E(qN,{view:a},a.id)),i=Ye((a,o)=>{if(!a||!o)return;if(a.scopeId==="htmldnd"){let I=a.getData(),C=t.getStateManagerFromViewID(I.viewId,I.win),x=o.getPath(),O=un(C.state,x.slice(0,-1));try{let A=I.content.map(P=>{var J,Q,oe;let B=C.getNewItem(P," ");if(!!((J=O==null?void 0:O.data)!=null&&J.shouldMarkItemsComplete)){B=(0,Ss.default)(B,{data:{checkChar:{$set:Iu()}}});let te=Ro(B,C.file);if(te){let[re,ne,be]=te,pe=re[be],De=ne[be];return C.getNewItem(pe,De)}}return(0,Ss.default)(B,{data:{checked:{$set:!!((Q=O==null?void 0:O.data)!=null&&Q.shouldMarkItemsComplete)},checkChar:{$set:(oe=O==null?void 0:O.data)!=null&&oe.shouldMarkItemsComplete?Zn():" "}}})});return C.setState(P=>Xr(P,x,A))}catch(A){C.setError(A),console.error(A)}return}let s=a.getPath(),u=o.getPath(),l=a.getData(),c=o.getData(),[,d]=a.scopeId.split(":::"),[,m]=o.scopeId.split(":::"),h=c.acceptsSort&&!c.acceptsSort.includes(l.type);if(d===m){let I=t.getKanbanView(a.scopeId,l.win),C=t.stateManagers.get(I.file);return h&&u.push(0),C.setState(x=>{var G;let O=un(x,s),A=Ri(x,s,u,J=>{if(J.type===ft.Item){let{next:Q}=Au(C,x,s,C,x,u,J);return Q}return J},J=>{if(J.type===ft.Item){let{replacement:Q}=Au(C,x,s,C,x,u,J);return Q}});if(O.type===ft.Lane){let J=s.last(),Q=u.last();J<Q&&(Q-=1);let oe=I.getViewState("list-collapse"),te=re=>{let ne=[...re];return ne.splice(Q,0,ne.splice(J,1)[0]),ne};return I.setViewState("list-collapse",void 0,te),(0,Ss.default)(A,{data:{settings:{"list-collapse":{$set:te(oe)}}}})}let P=u.slice(0,-1),B=un(x,P);return((G=B==null?void 0:B.data)==null?void 0:G.sorted)!==void 0?Du(A,P,{data:{$unset:["sorted"]}}):A})}let g=t.getKanbanView(a.scopeId,l.win),y=t.stateManagers.get(g.file),v=t.getKanbanView(o.scopeId,c.win),D=t.stateManagers.get(v.file);y.setState(I=>{let C=un(I,s),x;if(D.setState(O=>{if(h){let P=un(D.state,u);(D.getSetting("new-card-insertion-method")||"append")==="append"?u.push(P.children.length):u.push(0)}let A=[];if(C.type===ft.Item){let{next:P,replacement:B}=Au(y,I,s,D,O,u,C);x=B,A.push(P)}else A.push(C);if(C.type===ft.Lane){let P=v.getViewState("list-collapse"),B=g.getViewState("list-collapse")[s.last()],G=J=>{let Q=[...J];return Q.splice(u.last(),0,B),Q};return v.setViewState("list-collapse",void 0,G),(0,Ss.default)(Xr(O,u,A),{data:{settings:{"list-collapse":{$set:G(P)}}}})}else return Xr(O,u,A)}),C.type===ft.Lane){let O=g.getViewState("list-collapse"),A=P=>{let B=[...P];return B.splice(s.last(),1),B};return g.setViewState("list-collapse",void 0,A),(0,Ss.default)(mi(I,s),{data:{settings:{"list-collapse":{$set:A(O)}}}})}else return mi(I,s,x)})},[r]);if(n.length)return E(bs,{win:e,onDrop:i,children:[...n,E(Ds,{children:(a,o)=>{let[s,u]=Re(()=>{if(a.scopeId==="htmldnd")return[null,null];let l=a.getData(),c=t.getKanbanView(a.scopeId,l.win),d=t.stateManagers.get(c.file),m=un(d.state,a.getPath()),h=Td(c,d),g=c.file.path;return[m,{view:c,stateManager:d,boardModifiers:h,filePath:g}]},[a]);if((s==null?void 0:s.type)===ft.Lane){let l=(u==null?void 0:u.view.viewSettings[_t])||(u==null?void 0:u.stateManager.getSetting(_t)),c=(u==null?void 0:u.view.viewSettings["list-collapse"])||(u==null?void 0:u.stateManager.getSetting("list-collapse")),d=a.getPath().last();return E(tt.Provider,{value:u,children:E("div",{className:Ge([$("drag-container"),{[$("horizontal")]:l!=="list",[$("vertical")]:l==="list"}]),style:o,children:E(xg,{lane:s,laneIndex:d,isStatic:!0,isCollapsed:!!c[d],collapseDir:l==="list"?"vertical":"horizontal"})})})}return(s==null?void 0:s.type)===ft.Item?E(tt.Provider,{value:u,children:E("div",{className:$("drag-container"),style:o,children:E(gg,{item:s,itemIndex:0,isStatic:!0})})}):E("div",{})}})]})}var _C=Ct(ln()),ea=require("obsidian");var Wx=Ct(ln()),rt=require("obsidian");var fx=Ct(dx()),Id=Ct(ln()),Aa=require("obsidian");var Ad="@",Od="@@",Ul="body";function JN(e){let t=[];return Aa.Vault.recurseChildren(e.vault.getRoot(),r=>{r instanceof Aa.TFolder&&t.push({value:r.path,label:r.path,selected:!1,disabled:!1})}),t}function ZN(e,t){let r=[],n=t?e.vault.getAbstractFileByPath(t):null;return(!n||!(n instanceof Aa.TFolder))&&(n=e.vault.getRoot()),Aa.Vault.recurseChildren(n,i=>{i instanceof Aa.TFile&&r.push({value:i.path,label:i.basename,selected:!1,disabled:!1})}),r}function hx(e){let{templateFolder:t,templatesEnabled:r,templaterPlugin:n}=kh(e),i=ZN(e,t),a=JN(e),o="";return!r&&!n&&(o=R("Note: No template plugins are currently enabled.")),{templateFiles:i,vaultFolders:a,templateWarning:o}}function Mg({choices:e,key:t,warningText:r,local:n,placeHolderStr:i,manager:a}){return o=>{o.controlEl.createEl("select",{},s=>{s.win.setTimeout(()=>{let u=e,[l,c]=a.getSetting(t,n),d=!1;if(c){let g=u.findIndex(y=>y.value===c);if(g>-1){d=!0;let y=e[g];u=(0,Id.default)(u,{$splice:[[g,1]],$unshift:[(0,Id.default)(y,{placeholder:{$set:!0},value:{$set:""},label:{$apply:v=>`${v} (${R("default")})`}})]})}}d||(u=(0,Id.default)(u,{$unshift:[{placeholder:!0,value:"",label:i,selected:!1,disabled:!1}]}));let m=new fx.default(s,{placeholder:!0,position:"bottom",searchPlaceholderValue:R("Search..."),searchEnabled:u.length>10,choices:u}).setChoiceByValue("");l&&typeof l=="string"&&u.findIndex(g=>g.value===l)>-1&&m.setChoiceByValue(l);let h=g=>{let y=g.detail.value;y?a.applySettingsUpdate({[t]:{$set:y}}):a.applySettingsUpdate({$unset:[t]})};s.addEventListener("change",h),a.cleanupFns.push(()=>{m.destroy(),s.removeEventListener("change",h)})}),r&&o.descEl.createDiv({},u=>{u.createEl("strong",{text:r})})})}}var Hd=Ct(ln()),Hg=require("obsidian");var QN={grad:.9,turn:360,rad:360/(2*Math.PI)},Qi=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Nn=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},jr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},Sx=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},mx=function(e){return{r:jr(e.r,0,255),g:jr(e.g,0,255),b:jr(e.b,0,255),a:jr(e.a)}},Tg=function(e){return{r:Nn(e.r),g:Nn(e.g),b:Nn(e.b),a:Nn(e.a,3)}},XN=/^#([0-9a-f]{3,8})$/i,Ld=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Ex=function(e){var t=e.r,r=e.g,n=e.b,i=e.a,a=Math.max(t,r,n),o=a-Math.min(t,r,n),s=o?a===t?(r-n)/o:a===r?2+(n-t)/o:4+(t-r)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*100:0,v:a/255*100,a:i}},kx=function(e){var t=e.h,r=e.s,n=e.v,i=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),o=n*(1-r),s=n*(1-(t-a)*r),u=n*(1-(1-t+a)*r),l=a%6;return{r:255*[n,s,o,o,u,n][l],g:255*[u,n,n,s,o,o][l],b:255*[o,o,u,n,n,s][l],a:i}},px=function(e){return{h:Sx(e.h),s:jr(e.s,0,100),l:jr(e.l,0,100),a:jr(e.a)}},gx=function(e){return{h:Nn(e.h),s:Nn(e.s),l:Nn(e.l),a:Nn(e.a,3)}},yx=function(e){return kx((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},Wl=function(e){return{h:(t=Ex(e)).h,s:(i=(200-(r=t.s))*(n=t.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,r,n,i},eR=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,tR=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,nR=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rR=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vx={string:[[function(e){var t=XN.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Nn(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Nn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=nR.exec(e)||rR.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:mx({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=eR.exec(e)||tR.exec(e);if(!t)return null;var r,n,i=px({h:(r=t[1],n=t[2],n===void 0&&(n="deg"),Number(r)*(QN[n]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return yx(i)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,i=e.a,a=i===void 0?1:i;return Qi(t)&&Qi(r)&&Qi(n)?mx({r:Number(t),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,i=e.a,a=i===void 0?1:i;if(!Qi(t)||!Qi(r)||!Qi(n))return null;var o=px({h:Number(t),s:Number(r),l:Number(n),a:Number(a)});return yx(o)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,i=e.a,a=i===void 0?1:i;if(!Qi(t)||!Qi(r)||!Qi(n))return null;var o=function(s){return{h:Sx(s.h),s:jr(s.s,0,100),v:jr(s.v,0,100),a:jr(s.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(a)});return kx(o)},"hsv"]]},wx=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},iR=function(e){return typeof e=="string"?wx(e.trim(),vx.string):typeof e=="object"&&e!==null?wx(e,vx.object):[null,void 0]};var Fg=function(e,t){var r=Wl(e);return{h:r.h,s:jr(r.s+100*t,0,100),l:r.l,a:r.a}},Ig=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},bx=function(e,t){var r=Wl(e);return{h:r.h,s:r.s,l:jr(r.l+100*t,0,100),a:r.a}},Dx=function(){function e(t){this.parsed=iR(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return Nn(Ig(this.rgba),2)},e.prototype.isDark=function(){return Ig(this.rgba)<.5},e.prototype.isLight=function(){return Ig(this.rgba)>=.5},e.prototype.toHex=function(){return t=Tg(this.rgba),r=t.r,n=t.g,i=t.b,o=(a=t.a)<1?Ld(Nn(255*a)):"","#"+Ld(r)+Ld(n)+Ld(i)+o;var t,r,n,i,a,o},e.prototype.toRgb=function(){return Tg(this.rgba)},e.prototype.toRgbString=function(){return t=Tg(this.rgba),r=t.r,n=t.g,i=t.b,(a=t.a)<1?"rgba("+r+", "+n+", "+i+", "+a+")":"rgb("+r+", "+n+", "+i+")";var t,r,n,i,a},e.prototype.toHsl=function(){return gx(Wl(this.rgba))},e.prototype.toHslString=function(){return t=gx(Wl(this.rgba)),r=t.h,n=t.s,i=t.l,(a=t.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+a+")":"hsl("+r+", "+n+"%, "+i+"%)";var t,r,n,i,a},e.prototype.toHsv=function(){return t=Ex(this.rgba),{h:Nn(t.h),s:Nn(t.s),v:Nn(t.v),a:Nn(t.a,3)};var t},e.prototype.invert=function(){return ci({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),ci(Fg(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ci(Fg(this.rgba,-t))},e.prototype.grayscale=function(){return ci(Fg(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ci(bx(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ci(bx(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?ci({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):Nn(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=Wl(this.rgba);return typeof t=="number"?ci({h:t,s:r.s,l:r.l,a:r.a}):Nn(r.h)},e.prototype.isEqual=function(t){return this.toHex()===ci(t).toHex()},e}(),ci=function(e){return e instanceof Dx?e:new Dx(e)};var Rd=Ct(ln());function Pd(){return(Pd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Mx(e,t){if(e==null)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}function Og(e){var t=Fe(e),r=Fe(function(n){t.current&&t.current(n)});return t.current=e,r.current}var Es=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e<t?t:e},Yl=function(e){return"touches"in e},Lg=function(e){return e&&e.ownerDocument.defaultView||self},xx=function(e,t,r){var n=e.getBoundingClientRect(),i=Yl(t)?function(a,o){for(var s=0;s<a.length;s++)if(a[s].identifier===o)return a[s];return a[0]}(t.touches,r):t;return{left:Es((i.pageX-(n.left+Lg(e).pageXOffset))/n.width),top:Es((i.pageY-(n.top+Lg(e).pageYOffset))/n.height)}},Cx=function(e){!Yl(e)&&e.preventDefault()},Ng=$e.memo(function(e){var t=e.onMove,r=e.onKey,n=Mx(e,["onMove","onKey"]),i=Fe(null),a=Og(t),o=Og(r),s=Fe(null),u=Fe(!1),l=Re(function(){var h=function(v){Cx(v),(Yl(v)?v.touches.length>0:v.buttons>0)&&i.current?a(xx(i.current,v,s.current)):y(!1)},g=function(){return y(!1)};function y(v){var D=u.current,I=Lg(i.current),C=v?I.addEventListener:I.removeEventListener;C(D?"touchmove":"mousemove",h),C(D?"touchend":"mouseup",g)}return[function(v){var D=v.nativeEvent,I=i.current;if(I&&(Cx(D),!function(x,O){return O&&!Yl(x)}(D,u.current)&&I)){if(Yl(D)){u.current=!0;var C=D.changedTouches||[];C.length&&(s.current=C[0].identifier)}I.focus(),a(xx(I,D,s.current)),y(!0)}},function(v){var D=v.which||v.keyCode;D<37||D>40||(v.preventDefault(),o({left:D===39?.05:D===37?-.05:0,top:D===40?.05:D===38?-.05:0}))},y]},[o,a]),c=l[0],d=l[1],m=l[2];return Ae(function(){return m},[m]),$e.createElement("div",Pd({},n,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:i,onKeyDown:d,tabIndex:0,role:"slider"}))}),Nd=function(e){return e.filter(Boolean).join(" ")},Rg=function(e){var t=e.color,r=e.left,n=e.top,i=n===void 0?.5:n,a=Nd(["react-colorful__pointer",e.className]);return $e.createElement("div",{className:a,style:{top:100*i+"%",left:100*r+"%"}},$e.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},hr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},xG={grad:.9,turn:360,rad:360/(2*Math.PI)};var Tx=function(e){var t=e.s,r=e.v,n=e.a,i=(200-t)*r/100;return{h:hr(e.h),s:hr(i>0&&i<200?t*r/100/(i<=100?i:200-i)*100:0),l:hr(i/2),a:hr(n,2)}},Pg=function(e){var t=Tx(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Ag=function(e){var t=Tx(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},aR=function(e){var t=e.h,r=e.s,n=e.v,i=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),o=n*(1-r),s=n*(1-(t-a)*r),u=n*(1-(1-t+a)*r),l=a%6;return{r:hr(255*[n,s,o,o,u,n][l]),g:hr(255*[u,n,n,s,o,o][l]),b:hr(255*[o,o,u,n,n,s][l]),a:hr(i,2)}};var oR=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?sR({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}};var sR=function(e){var t=e.r,r=e.g,n=e.b,i=e.a,a=Math.max(t,r,n),o=a-Math.min(t,r,n),s=o?a===t?(r-n)/o:a===r?2+(n-t)/o:4+(t-r)/o:0;return{h:hr(60*(s<0?s+6:s)),s:hr(a?o/a*100:0),v:hr(a/255*100),a:i}};var lR=$e.memo(function(e){var t=e.hue,r=e.onChange,n=Nd(["react-colorful__hue",e.className]);return $e.createElement("div",{className:n},$e.createElement(Ng,{onMove:function(i){r({h:360*i.left})},onKey:function(i){r({h:Es(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":hr(t),"aria-valuemax":"360","aria-valuemin":"0"},$e.createElement(Rg,{className:"react-colorful__hue-pointer",left:t/360,color:Pg({h:t,s:100,v:100,a:1})})))}),uR=$e.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:Pg({h:t.h,s:100,v:100,a:1})};return $e.createElement("div",{className:"react-colorful__saturation",style:n},$e.createElement(Ng,{onMove:function(i){r({s:100*i.left,v:100-100*i.top})},onKey:function(i){r({s:Es(t.s+100*i.left,0,100),v:Es(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+hr(t.s)+"%, Brightness "+hr(t.v)+"%"},$e.createElement(Rg,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Pg(t)})))}),cR=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},dR=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function fR(e,t,r){var n=Og(r),i=Ne(function(){return e.toHsva(t)}),a=i[0],o=i[1],s=Fe({color:t,hsva:a});Ae(function(){if(!e.equal(t,s.current.color)){var l=e.toHsva(t);s.current={hsva:l,color:t},o(l)}},[t,e]),Ae(function(){var l;cR(a,s.current.hsva)||e.equal(l=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:l},n(l))},[a,e,n]);var u=Ye(function(l){o(function(c){return Object.assign({},c,l)})},[]);return[a,u]}var hR,mR=typeof window!="undefined"?Ai:Ae,pR=function(){return hR||(typeof __webpack_nonce__!="undefined"?__webpack_nonce__:void 0)};var _x=new Map,gR=function(e){mR(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!_x.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,_x.set(t,r);var n=pR();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])};var yR=function(e){var t=e.className,r=e.hsva,n=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+Ag(Object.assign({},r,{a:0}))+", "+Ag(Object.assign({},r,{a:1}))+")"},a=Nd(["react-colorful__alpha",t]),o=hr(100*r.a);return $e.createElement("div",{className:a},$e.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),$e.createElement(Ng,{onMove:function(s){n({a:s.left})},onKey:function(s){n({a:Es(r.a+s.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},$e.createElement(Rg,{className:"react-colorful__alpha-pointer",left:r.a,color:Ag(r)})))},vR=function(e){var t=e.className,r=e.colorModel,n=e.color,i=n===void 0?r.defaultColor:n,a=e.onChange,o=Mx(e,["className","colorModel","color","onChange"]),s=Fe(null);gR(s);var u=fR(r,i,a),l=u[0],c=u[1],d=Nd(["react-colorful",t]);return $e.createElement("div",Pd({},o,{ref:s,className:d}),$e.createElement(uR,{hsva:l,onChange:c}),$e.createElement(lR,{hue:l.h,onChange:c}),$e.createElement(yR,{hsva:l,onChange:c,className:"react-colorful__last-control"}))};var wR={defaultColor:"rgba(0, 0, 0, 1)",toHsva:oR,fromHsva:function(e){var t=aR(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:dR},Fx=function(e){return $e.createElement(vR,Pd({},e,{colorModel:wR}))};function Ix(e){let t=ci(e);if(!t.isValid())return null;let r=t.toRgb();return{rgba:`rgba(${r.r}, ${r.g}, ${r.b}, ${r.a})`,hexa:t.toHex()}}function zl({color:e,setColor:t,defaultColor:r}){let[n,i]=Ne(e||r),[a,o]=Ne(e||r),[s,u]=Ne(!1),l=Ye(d=>{let m=Ix(d||r);m&&(o(m.hexa),i(m.rgba),t(m.rgba))},[t]);Ae(()=>{if(!e||!r)return;let d=Ix(e||r);d&&(i(d.rgba),o(d.hexa))},[]);let c=ws(()=>{u(!1)});return E("div",{ref:c,className:$("color-picker-wrapper"),children:[s&&E("div",{className:$("color-picker"),children:E(Fx,{color:n,onChange:l})}),E("input",{type:"text",value:a,onChange:d=>l(d.target.value),onFocus:()=>{u(!0)}})]})}function bR({tagColorKey:e,deleteKey:t,updateKey:r,defaultColors:n}){return E("div",{className:$("setting-item-wrapper"),children:E("div",{className:$("setting-item"),children:[E("div",{className:`${$("setting-controls-wrapper")} ${$("tag-color-input")}`,children:[E("div",{className:$("setting-input-wrapper"),children:[E("div",{children:[E("div",{className:$("setting-item-label"),children:R("Tag")}),E("input",{type:"text",placeholder:"#tag",value:e.tagKey,onChange:i=>{let a=i.currentTarget.value;r(a[0]==="#"?a:"#"+a,e.color,e.backgroundColor)}})]}),E("div",{children:[E("div",{className:$("setting-item-label"),children:R("Background color")}),E(zl,{color:e.backgroundColor,setColor:i=>{r(e.tagKey,e.color,i)},defaultColor:n.backgroundColor})]}),E("div",{children:[E("div",{className:$("setting-item-label"),children:R("Text color")}),E(zl,{color:e.color,setColor:i=>{r(e.tagKey,i,e.backgroundColor)},defaultColor:n.color})]})]}),E("div",{className:$("setting-toggle-wrapper"),children:E("div",{children:E("div",{className:$("item-tags"),children:[E("a",{className:`tag ${$("item-tag")}`,children:"#tag1"}),E("a",{className:`tag ${$("item-tag")}`,style:{"--tag-color":e.color,"--tag-background":e.backgroundColor},children:e.tagKey||"#tag"}),E("a",{className:`tag ${$("item-tag")}`,children:"#tag2"})]})})})]}),E("div",{className:$("setting-button-wrapper"),children:E("div",{className:"clickable-icon",onClick:t,"aria-label":R("Delete"),children:E(Ut,{name:"lucide-trash-2"})})})]})})}function DR({dataKeys:e,onChange:t}){let[r,n]=Ne(e),i=Re(()=>{let l=createDiv($("item-tags")),c=l.createEl("a",$("item-tag"));l.style.position="absolute",l.style.visibility="hidden",activeDocument.body.append(l);let d=activeWindow.getComputedStyle(c),m=d.getPropertyValue("color").trim(),h=d.getPropertyValue("background-color").trim();return l.remove(),{color:m,backgroundColor:h}},[]),a=l=>{t(l),n(l)},o=()=>{a((0,Rd.default)(r,{$push:[{...Bc,id:et(),data:{tagKey:"",color:"",backgroundColor:""}}]}))},s=l=>{a((0,Rd.default)(r,{$splice:[[l,1]]}))},u=l=>(c,d,m)=>{a((0,Rd.default)(r,{[l]:{data:{tagKey:{$set:c},color:{$set:d},backgroundColor:{$set:m}}}}))};return E("div",{className:$("tag-color-input-wrapper"),children:[E("div",{className:"setting-item-info",children:[E("div",{className:"setting-item-name",children:R("Tag colors")}),E("div",{className:"setting-item-description",children:R("Set colors for tags displayed in cards.")})]}),E("div",{children:r.map((l,c)=>E(bR,{tagColorKey:l.data,deleteKey:()=>s(c),updateKey:u(c),defaultColors:i},l.id))}),E("button",{className:$("add-tag-color-button"),onClick:()=>{o()},children:R("Add tag color")})]})}function Ax(e,t,r){Li(E(DR,{dataKeys:t,onChange:r,portalContainer:ha(e)}),e)}function Ox(e){Pi(e)}function SR({dateColorKey:e,deleteKey:t,updateKey:r,defaultColors:n,getTimeFormat:i,getDateFormat:a}){let o="between";return e.isToday&&(o="today"),e.isBefore&&(o="before"),e.isAfter&&(o="after"),E("div",{className:$("setting-item-wrapper"),children:E("div",{className:$("setting-item"),children:[E("div",{className:`${$("setting-controls-wrapper")} ${$("tag-color-input")}`,children:[E("div",{children:[E("div",{children:E("div",{className:$("setting-item-label"),children:R("Date is")})}),E("div",{className:$("date-color-config"),children:[E("select",{className:"dropdown",defaultValue:o,onChange:s=>{let u={...e};switch(delete u.isAfter,delete u.isBefore,delete u.isToday,s.target.value){case"today":u.isToday=!0;break;case"before":u.isBefore=!0;break;case"after":u.isAfter=!0;break}r(u)},children:[E("option",{value:"between",children:R("Between now and")}),E("option",{value:"today",children:R("Today")}),E("option",{value:"after",children:R("After now")}),E("option",{value:"before",children:R("Before now")})]}),!e.isToday&&!e.isAfter&&!e.isBefore&&E(ct,{children:[E("input",{type:"number",value:e.distance,onChange:s=>{r({...e,distance:parseInt(s.target.value)})}}),E("select",{className:"dropdown",defaultValue:e.unit,onChange:s=>{r({...e,unit:s.target.value})},children:[E("option",{value:"hours",children:"Hours"}),E("option",{value:"days",children:"Days"}),E("option",{value:"weeks",children:"Weeks"}),E("option",{value:"months",children:"Months"})]}),E("select",{className:"dropdown",defaultValue:e.direction,onChange:s=>{r({...e,direction:s.target.value})},children:[E("option",{value:"after",children:R("After now")}),E("option",{value:"before",children:R("Before now")})]})]})]}),E("div",{className:$("date-color-config"),children:[E("div",{children:[E("div",{className:$("setting-item-label"),children:R("Background color")}),E(zl,{color:e.backgroundColor,setColor:s=>{r({...e,backgroundColor:s})},defaultColor:n.backgroundColor})]}),E("div",{children:[E("div",{className:$("setting-item-label"),children:R("Text color")}),E(zl,{color:e.color,setColor:s=>{r({...e,color:s})},defaultColor:n.color})]})]})]}),E("div",{children:E("div",{className:$("date-color-wrapper"),children:E("div",{className:$("item-metadata"),children:E("span",{style:{"--date-color":e.color,"--date-background-color":e.backgroundColor},className:Ge([$("item-metadata-date-wrapper"),$("date"),{"has-background":!!(e!=null&&e.backgroundColor)}]),children:[E("span",{className:$("item-metadata-date is-button"),children:(0,Hg.moment)().format(a())})," ",E("span",{className:$("item-metadata-time is-button"),children:(0,Hg.moment)().format(i())})]})})})})]}),E("div",{className:$("setting-button-wrapper"),children:E("div",{className:"clickable-icon",onClick:t,"aria-label":R("Delete"),children:E(Ut,{name:"lucide-trash-2"})})})]})})}function ER({dataKeys:e,onChange:t,getTimeFormat:r,getDateFormat:n}){let[i,a]=$e.useState(e),o=$e.useMemo(()=>{let d=createDiv($("item-metadata")),m=d.createSpan($("item-metadata-date"));d.style.position="absolute",d.style.visibility="hidden",activeDocument.body.append(d);let h=activeWindow.getComputedStyle(m),g=h.getPropertyValue("color").trim(),y=h.getPropertyValue("background-color").trim();return d.remove(),{color:g,backgroundColor:y}},[]),s=d=>{t(d),a(d)},u=()=>{s((0,Hd.default)(i,{$push:[{...Vc,id:et(),data:{isToday:!1,distance:1,unit:"days",direction:"after"}}]}))},l=d=>{s((0,Hd.default)(i,{$splice:[[d,1]]}))},c=d=>m=>{s((0,Hd.default)(i,{[d]:{data:{$set:m}}}))};return E("div",{className:$("date-color-input-wrapper"),children:[E("div",{className:"setting-item-info",children:[E("div",{className:"setting-item-name",children:R("Display date colors")}),E("div",{className:"setting-item-description",children:R("Set colors for dates displayed in cards based on the rules below.")})]}),E("div",{children:i.map((d,m)=>E(SR,{dateColorKey:d.data,deleteKey:()=>l(m),updateKey:c(m),defaultColors:o,getTimeFormat:r,getDateFormat:n},d.id))}),E("button",{className:$("add-tag-color-button"),onClick:u,children:R("Add date color")})]})}function Lx(e,t,r,n,i){$e.render(E(ER,{dataKeys:t,onChange:r,portalContainer:ha(e),getDateFormat:n,getTimeFormat:i}),e)}function Px(e){$e.unmountComponentAtNode(e)}var fo=Ct(ln());function ks({id:e,children:t}){let r=$e.useContext(sl),n=$e.useMemo(()=>e||et(),[e]);return $e.useEffect(()=>()=>{r.unmountScope(e)},[e]),E(ma.Provider,{value:n,children:t})}function Nx({isStatic:e,itemIndex:t,item:r,toggleShouldHideLabel:n,toggleContainsMarkdown:i,deleteKey:a,updateKey:o,updateLabel:s}){let u=Fe(null),l=Fe(null),c=Fe(null),d=Ta(l,c),m=E("div",{className:$("setting-controls-wrapper"),children:[E("div",{className:$("setting-input-wrapper"),children:[E("div",{children:[E("div",{className:$("setting-item-label"),children:R("Metadata key")}),E("input",{type:"text",value:r.data.metadataKey,onChange:h=>o(h.target.value)})]}),E("div",{children:[E("div",{className:$("setting-item-label"),children:R("Display label")}),E("input",{type:"text",value:r.data.label,onChange:h=>s(h.target.value)})]})]}),E("div",{className:$("setting-toggle-wrapper"),children:[E("div",{children:[E("div",{className:`checkbox-container ${r.data.shouldHideLabel?"is-enabled":""}`,onClick:n,"aria-label":R("Hide label")}),E("div",{className:$("setting-item-label"),children:R("Hide label")})]}),E("div",{children:[E("div",{className:`checkbox-container ${r.data.containsMarkdown?"is-enabled":""}`,onClick:i,"aria-label":R("Field contains markdown")}),E("div",{className:$("setting-item-label"),children:R("Field contains markdown")})]})]})]});return E("div",{ref:l,className:$("setting-item-wrapper"),children:E("div",{ref:u,className:$("setting-item"),children:[e?m:E(ei,{elementRef:u,measureRef:l,id:r.id,index:t,data:r,children:m}),E("div",{className:$("setting-button-wrapper"),children:[E("div",{className:"clickable-icon",onClick:a,"aria-label":R("Delete"),children:E(Ut,{name:"lucide-trash-2"})}),E("div",{className:"mobile-option-setting-drag-icon clickable-icon","aria-label":R("Drag to rearrange"),ref:d,children:E(Ut,{name:"lucide-grip-horizontal"})})]})]})})}function kR({onChange:e,inputValue:t,keys:r,setKeys:n}){let i=a=>{e(a),n(a)};return{updateKey:a=>o=>{i((0,fo.default)(r,{[a]:{data:{metadataKey:{$set:o}}}}))},updateLabel:a=>o=>{i((0,fo.default)(r,{[a]:{data:{label:{$set:o}}}}))},toggleShouldHideLabel:a=>()=>{i((0,fo.default)(r,{[a]:{data:{$toggle:["shouldHideLabel"]}}}))},toggleContainsMarkdown:a=>()=>{i((0,fo.default)(r,{[a]:{data:{$toggle:["containsMarkdown"]}}}))},deleteKey:a=>()=>{i((0,fo.default)(r,{$splice:[[a,1]]}))},newKey:()=>{i((0,fo.default)(r,{$push:[{...Rc,id:et(),data:{metadataKey:t,label:"",shouldHideLabel:!1,containsMarkdown:!1}}]}))},moveKey:(a,o)=>{let s=a.getPath(),u=o.getPath(),l=s[s.length-1],c=u[u.length-1];if(l===c)return;let d=r.slice(),[m]=d.splice(l,1);d.splice(c,0,m),i(d)}}}var xR=[ft.MetadataSetting];function CR({keys:e,portalContainer:t}){return Oi(E(Ds,{children:(r,n)=>{let a=r.getPath()[0],o=e[a];return E("div",{className:$("drag-container"),style:n,children:E(Nx,{item:o,itemIndex:a,updateKey:Mr,updateLabel:Mr,toggleShouldHideLabel:Mr,toggleContainsMarkdown:Mr,deleteKey:Mr,isStatic:!0})})}}),t)}function _R({scrollEl:e}){let t=Ee(cn);return Ae(()=>{let r=0,n=()=>{e.win.clearTimeout(r),r=e.win.setTimeout(()=>{t.hitboxEntities.forEach(i=>{i.recalcInitial()})},100)};return e.addEventListener("scroll",n,{passive:!0,capture:!1}),()=>{e.removeEventListener("scroll",n)}},[e,t]),null}function MR(e){let[t,r]=Ne(e.dataKeys),[n,i]=Ne(""),{getShouldIMEBlockAction:a,...o}=Ou(),s=Dn(e.scrollEl),{updateKey:u,updateLabel:l,toggleShouldHideLabel:c,toggleContainsMarkdown:d,deleteKey:m,newKey:h,moveKey:g}=kR({onChange:e.onChange,inputValue:n,keys:t,setKeys:r,win:s});return E(ct,{children:[E(bs,{win:s,onDrop:g,children:[E(_R,{scrollEl:e.scrollEl}),E(ks,{children:E(Ia,{axis:"vertical",children:[t.map((y,v)=>E(Nx,{item:y,itemIndex:v,updateKey:u(v),updateLabel:l(v),toggleShouldHideLabel:c(v),toggleContainsMarkdown:d(v),deleteKey:m(v)},y.id)),E(Fa,{accepts:xR,index:t.length})]})}),E(CR,{keys:t,portalContainer:e.portalContainer})]}),E("div",{className:$("setting-key-input-wrapper"),children:[E("input",{placeholder:R("Metadata key"),type:"text",value:n,onChange:y=>i(y.target.value),onKeyDown:y=>{if(!a()){if(y.key==="Enter"){h(),i("");return}y.key==="Escape"&&(i(""),y.target.blur())}},...o}),E("button",{onClick:()=>{h(),i("")},children:R("Add key")})]})]})}function Rx(e,t,r,n){Li(E(MR,{dataKeys:r,scrollEl:t,onChange:n,portalContainer:ha(e)}),e)}function Hx(e){Pi(e)}var Bd=Ct(ln());function Bx({isStatic:e,tagIndex:t,tag:r,deleteTag:n,updateTag:i}){let a=Fe(null),o=Fe(null),s=Fe(null),u=Ta(o,s),l=E("div",{className:$("setting-controls-wrapper"),children:E("div",{className:$("setting-input-wrapper"),children:E("div",{children:E("input",{type:"text",value:r.data.tag,onChange:c=>i(c.target.value)})})})});return E("div",{ref:o,className:$("setting-item-wrapper"),children:E("div",{ref:a,className:$("setting-item"),children:[e?l:E(ei,{elementRef:a,measureRef:o,id:r.id,index:t,data:r,children:l}),E("div",{className:$("setting-button-wrapper"),children:[E("div",{className:"clickable-icon",onClick:n,"aria-label":R("Delete"),children:E(Ut,{name:"lucide-trash-2"})}),E("div",{className:"mobile-option-setting-drag-icon clickable-icon","aria-label":R("Drag to rearrange"),ref:u,children:E(Ut,{name:"lucide-grip-horizontal"})})]})]})})}function TR({onChange:e,inputValue:t,tags:r,setTags:n}){let i=a=>{e(a),n(a)};return{updateTag:a=>o=>{i((0,Bd.default)(r,{[a]:{data:{tag:{$set:o}}}}))},deleteTag:a=>()=>{i((0,Bd.default)(r,{$splice:[[a,1]]}))},newTag:()=>{i((0,Bd.default)(r,{$push:[{...Hc,id:et(),data:{tag:t}}]}))},moveTag:(a,o)=>{let s=a.getPath(),u=o.getPath(),l=s[s.length-1],c=u[u.length-1];if(l===c)return;let d=r.slice(),[m]=d.splice(l,1);d.splice(c,0,m),i(d)}}}var FR=[ft.TagSortSetting];function IR({keys:e,portalContainer:t}){return Oi(E(Ds,{children:(r,n)=>{let a=r.getPath()[0],o=e[a];return E("div",{className:Ge([$("drag-container"),$("tag-sort-input-wrapper")]),style:n,children:E(Bx,{tag:o,tagIndex:a,updateTag:Mr,deleteTag:Mr,isStatic:!0})})}}),t)}function AR({scrollEl:e}){let t=Ee(cn);return Ae(()=>{let r=0,n=()=>{e.win.clearTimeout(r),r=e.win.setTimeout(()=>{t==null||t.hitboxEntities.forEach(i=>{i.recalcInitial()})},100)};return e.addEventListener("scroll",n,{passive:!0,capture:!1}),()=>{e.removeEventListener("scroll",n)}},[e,t]),null}function OR(e){let[t,r]=Ne(e.tags),[n,i]=Ne(""),{getShouldIMEBlockAction:a,...o}=Ou(),s=Dn(e.scrollEl),{updateTag:u,deleteTag:l,newTag:c,moveTag:d}=TR({onChange:e.onChange,inputValue:n,tags:t,setTags:r,win:s});return E("div",{className:$("tag-sort-input-wrapper"),children:[E("div",{className:"setting-item-info",children:[E("div",{className:"setting-item-name",children:R("Tag sort order")}),E("div",{className:"setting-item-description",children:R("Set an explicit sort order for the specified tags.")})]}),E("div",{children:E(bs,{win:s,onDrop:d,children:[E(AR,{scrollEl:e.scrollEl}),E(ks,{children:E(Ia,{axis:"vertical",children:[t.map((m,h)=>E(Bx,{tag:m,tagIndex:h,updateTag:u(h),deleteTag:l(h)},m.id)),E(Fa,{accepts:FR,index:t.length})]})}),E(IR,{keys:t,portalContainer:e.portalContainer})]})}),E("div",{className:$("setting-key-input-wrapper"),children:[E("input",{placeholder:"#tag",type:"text",value:n,onChange:m=>{let h=m.target.value;i(h[0]==="#"?h:"#"+h)},onKeyDown:m=>{if(!a()){if(m.key==="Enter"){c(),i("");return}m.key==="Escape"&&(i(""),m.target.blur())}},...o}),E("button",{onClick:()=>{c(),i("")},children:R("Add tag")})]})]})}function Vx(e,t,r,n){Li(E(OR,{tags:r,scrollEl:t,onChange:n,portalContainer:ha(e)}),e)}function $x(e){Pi(e)}var Ux=/^\d+(?:\.\d+)?$/,Yx=new Set([_t,"append-archive-date","archive-date-format","archive-date-separator","archive-with-date","date-colors","date-display-format","date-format","date-picker-week-start","date-time-display-format","date-trigger","full-list-lane-width","hide-card-count","inline-metadata-position","lane-width","link-date-to-daily-note","list-collapse","max-archive-size","metadata-keys","move-dates","move-tags","move-task-metadata","new-card-insertion-method","new-line-trigger","new-note-folder","new-note-template","show-add-list","show-archive-all","show-board-settings","show-checkboxes","show-relative-date","show-search","show-set-view","show-view-as-markdown","table-sizing","tag-action","tag-colors","tag-sort","time-format","time-trigger"]),Vd=class{constructor(t,r,n){this.cleanupFns=[];this.applyDebounceTimer=0;this.app=t.app,this.plugin=t,this.config=r,this.settings=n}applySettingsUpdate(t){this.win.clearTimeout(this.applyDebounceTimer),this.applyDebounceTimer=this.win.setTimeout(()=>{this.settings=(0,Wx.default)(this.settings,t),this.config.onSettingsChange(this.settings)},1e3)}getSetting(t,r){return r?[this.settings[t],this.plugin.settings[t]]:[this.settings[t],null]}constructUI(t,r,n){this.win=t.win;let{templateFiles:i,vaultFolders:a,templateWarning:o}=hx(this.app);t.createEl("h3",{text:r}),n?t.createEl("p",{text:R("These settings will take precedence over the default Kanban board settings.")}):t.createEl("p",{text:R("Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.")}),new rt.Setting(t).setName(R("Display card checkbox")).setDesc(R("When toggled, a checkbox will be displayed with each card")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-checkboxes",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"show-checkboxes":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-checkboxes",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-checkboxes"]})})})}),new rt.Setting(t).setName(R("New line trigger")).setDesc(R("Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lists.")).addDropdown(s=>{s.addOption("shift-enter",R("Shift + Enter")),s.addOption("enter",R("Enter"));let[u,l]=this.getSetting("new-line-trigger",n);s.setValue(u||l||"shift-enter"),s.onChange(c=>{this.applySettingsUpdate({"new-line-trigger":{$set:c}})})}),new rt.Setting(t).setName(R("Prepend / append new cards")).setDesc(R("This setting controls whether new cards are added to the beginning or end of the list.")).addDropdown(s=>{s.addOption("prepend",R("Prepend")),s.addOption("prepend-compact",R("Prepend (compact)")),s.addOption("append",R("Append"));let[u,l]=this.getSetting("new-card-insertion-method",n);s.setValue(u||l||"append"),s.onChange(c=>{this.applySettingsUpdate({"new-card-insertion-method":{$set:c}})})}),new rt.Setting(t).setName(R("Hide card counts in list titles")).setDesc(R("When toggled, card counts are hidden from the list title")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-card-count",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"hide-card-count":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-card-count",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-card-count"]})})})}),new rt.Setting(t).setName(R("List width")).setDesc(R("Enter a number to set the list width in pixels.")).addText(s=>{let[u,l]=this.getSetting("lane-width",n);s.inputEl.setAttr("type","number"),s.inputEl.placeholder=`${l||"272"} (default)`,s.inputEl.value=u?u.toString():"",s.onChange(c=>{if(c&&Ux.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 rt.Setting(t).setName(R("Expand lists to full width in list view")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("full-list-lane-width",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"full-list-lane-width":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("full-list-lane-width",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["full-list-lane-width"]})})})}),new rt.Setting(t).setName(R("Maximum number of archived cards")).setDesc(R("Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.")).addText(s=>{let[u,l]=this.getSetting("max-archive-size",n);s.inputEl.setAttr("type","number"),s.inputEl.placeholder=`${l||"-1"} (default)`,s.inputEl.value=u?u.toString():"",s.onChange(c=>{if(c&&Ux.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 rt.Setting(t).setName(R("Note template")).setDesc(R("This template will be used when creating new notes from Kanban cards.")).then(Mg({choices:i,key:"new-note-template",warningText:o,local:n,placeHolderStr:R("No template"),manager:this})),new rt.Setting(t).setName(R("Note folder")).setDesc(R("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(Mg({choices:a,key:"new-note-folder",local:n,placeHolderStr:R("Default folder"),manager:this})),t.createEl("h4",{text:R("Tags")}),new rt.Setting(t).setName(R("Move tags to card footer")).setDesc(R("When toggled, tags will be displayed in the card's footer instead of the card's body.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("move-tags",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"move-tags":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("move-tags",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["move-tags"]})})})}),new rt.Setting(t).setName(R("Tag click action")).setDesc(R("This setting controls whether clicking the tags displayed below the card title opens the Obsidian search or the Kanban board search.")).addDropdown(s=>{s.addOption("kanban",R("Search Kanban Board")),s.addOption("obsidian",R("Search Obsidian Vault"));let[u,l]=this.getSetting("tag-action",n);s.setValue(u||l||"obsidian"),s.onChange(c=>{this.applySettingsUpdate({"tag-action":{$set:c}})})}),new rt.Setting(t).then(s=>{let[u,l]=this.getSetting("tag-sort",n),c=(u||l||[]).map(d=>({...Hc,id:et(),data:d}));Vx(s.settingEl,t,c,d=>this.applySettingsUpdate({"tag-sort":{$set:d.map(m=>m.data)}})),this.cleanupFns.push(()=>{s.settingEl&&$x(s.settingEl)})}),new rt.Setting(t).then(s=>{let[u]=this.getSetting("tag-colors",n),l=(u||[]).map(c=>({...Bc,id:et(),data:c}));Ax(s.settingEl,l,c=>this.applySettingsUpdate({"tag-colors":{$set:c.map(d=>d.data)}})),this.cleanupFns.push(()=>{s.settingEl&&Ox(s.settingEl)})}),t.createEl("h4",{text:R("Date & Time")}),new rt.Setting(t).setName(R("Move dates to card footer")).setDesc(R("When toggled, dates will be displayed in the card's footer instead of the card's body.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("move-dates",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"move-dates":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("move-dates",n);u.setValue(c!=null?c:!0),this.applySettingsUpdate({$unset:["move-dates"]})})})}),new rt.Setting(t).setName(R("Date trigger")).setDesc(R("When this is typed, it will trigger the date selector")).addText(s=>{let[u,l]=this.getSetting("date-trigger",n);(u||l)&&s.setValue(u||l),s.setPlaceholder(l||Ad),s.onChange(c=>{c?this.applySettingsUpdate({"date-trigger":{$set:c}}):this.applySettingsUpdate({$unset:["date-trigger"]})})}),new rt.Setting(t).setName(R("Time trigger")).setDesc(R("When this is typed, it will trigger the time selector")).addText(s=>{let[u,l]=this.getSetting("time-trigger",n);(u||l)&&s.setValue(u||l),s.setPlaceholder(l||Od),s.onChange(c=>{c?this.applySettingsUpdate({"time-trigger":{$set:c}}):this.applySettingsUpdate({$unset:["time-trigger"]})})}),new rt.Setting(t).setName(R("Date format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(m=>{m.appendText(R("This format will be used when saving dates in markdown.")),m.createEl("br"),m.appendText(R("For more syntax, refer to")+" "),m.createEl("a",{text:R("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),m.createEl("br"),m.appendText(R("Your current syntax looks like this")+": "),u.setSampleEl(m.createEl("b",{cls:"u-pop"})),m.createEl("br")}));let[l,c]=this.getSetting("date-format",n),d=ja(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(m=>{m?this.applySettingsUpdate({"date-format":{$set:m}}):this.applySettingsUpdate({$unset:["date-format"]})})})}),new rt.Setting(t).setName(R("Time format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(m=>{m.appendText(R("For more syntax, refer to")+" "),m.createEl("a",{text:R("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),m.createEl("br"),m.appendText(R("Your current syntax looks like this")+": "),u.setSampleEl(m.createEl("b",{cls:"u-pop"})),m.createEl("br")}));let[l,c]=this.getSetting("time-format",n),d=Ho(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(m=>{m?this.applySettingsUpdate({"time-format":{$set:m}}):this.applySettingsUpdate({$unset:["time-format"]})})})}),new rt.Setting(t).setName(R("Date display format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(m=>{m.appendText(R("This format will be used when displaying dates in Kanban cards.")),m.createEl("br"),m.appendText(R("For more syntax, refer to")+" "),m.createEl("a",{text:R("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),m.createEl("br"),m.appendText(R("Your current syntax looks like this")+": "),u.setSampleEl(m.createEl("b",{cls:"u-pop"})),m.createEl("br")}));let[l,c]=this.getSetting("date-display-format",n),d=ja(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(m=>{m?this.applySettingsUpdate({"date-display-format":{$set:m}}):this.applySettingsUpdate({$unset:["date-display-format"]})})})}),new rt.Setting(t).setName(R("Show relative date")).setDesc(R("When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'. Relative dates will not be shown for dates from the Tasks and Dataview plugins.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-relative-date",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"show-relative-date":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-relative-date",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-relative-date"]})})})}),new rt.Setting(t).setName(R("Link dates to daily notes")).setDesc(R("When toggled, dates will link to daily notes. Eg. [[2021-04-26]]")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("link-date-to-daily-note",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"link-date-to-daily-note":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("link-date-to-daily-note",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["link-date-to-daily-note"]})})})}),new rt.Setting(t).then(s=>{let[u]=this.getSetting("date-colors",n),l=(u||[]).map(c=>({...Vc,id:et(),data:c}));Lx(s.settingEl,l,c=>this.applySettingsUpdate({"date-colors":{$set:c.map(d=>d.data)}}),()=>{let[c,d]=this.getSetting("date-display-format",n),m=ja(this.app);return c||d||m},()=>{let[c,d]=this.getSetting("time-format",n),m=Ho(this.app);return c||d||m}),this.cleanupFns.push(()=>{s.settingEl&&Px(s.settingEl)})}),new rt.Setting(t).setName(R("Add date and time to archived cards")).setDesc(R("When toggled, the current date and time will be added to the card title 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("archive-with-date",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"archive-with-date":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("archive-with-date",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["archive-with-date"]})})})}),new rt.Setting(t).setName(R("Add archive date/time after card title")).setDesc(R("When toggled, the archived date/time will be added after the card title, e.g.- [ ] My card title 2021-05-14 10:00am. By default, it is inserted before the title.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("append-archive-date",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"append-archive-date":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("append-archive-date",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["append-archive-date"]})})})}),new rt.Setting(t).setName(R("Archive date/time separator")).setDesc(R("This will be used to separate the archived date/time from the title")).addText(s=>{let[u,l]=this.getSetting("archive-date-separator",n);s.inputEl.placeholder=l?`${l} (default)`:"",s.inputEl.value=u||"",s.onChange(c=>{if(c){this.applySettingsUpdate({"archive-date-separator":{$set:c}});return}this.applySettingsUpdate({$unset:["archive-date-separator"]})})}),new rt.Setting(t).setName(R("Archive date/time format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(I=>{I.appendText(R("For more syntax, refer to")+" "),I.createEl("a",{text:R("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},C=>{C.setAttr("target","_blank")}),I.createEl("br"),I.appendText(R("Your current syntax looks like this")+": "),u.setSampleEl(I.createEl("b",{cls:"u-pop"})),I.createEl("br")}));let[l,c]=this.getSetting("archive-date-format",n),[d,m]=this.getSetting("date-format",n),h=d||m||ja(this.app),[g,y]=this.getSetting("time-format",n),v=g||y||Ho(this.app),D=`${h} ${v}`;u.setPlaceholder(D),u.setDefaultFormat(D),(l||c)&&u.setValue(l||c),u.onChange(I=>{I?this.applySettingsUpdate({"archive-date-format":{$set:I}}):this.applySettingsUpdate({$unset:["archive-date-format"]})})})}),new rt.Setting(t).setName(R("Calendar: first day of week")).setDesc(R("Override which day is used as the start of the week")).addDropdown(s=>{s.addOption("",R("default")),s.addOption("0",R("Sunday")),s.addOption("1",R("Monday")),s.addOption("2",R("Tuesday")),s.addOption("3",R("Wednesday")),s.addOption("4",R("Thursday")),s.addOption("5",R("Friday")),s.addOption("6",R("Saturday"));let[u,l]=this.getSetting("date-picker-week-start",n);s.setValue((u==null?void 0:u.toString())||(l==null?void 0:l.toString())||""),s.onChange(c=>{c?this.applySettingsUpdate({"date-picker-week-start":{$set:Number(c)}}):this.applySettingsUpdate({$unset:["date-picker-week-start"]})})}),t.createEl("br"),t.createEl("h4",{text:R("Inline Metadata")}),new rt.Setting(t).setName(R("Inline metadata position")).setDesc(R("Controls where the inline metadata (from the Dataview plugin) will be displayed.")).then(s=>{let u;s.addDropdown(l=>{u=l,l.addOption("body",R("Card body")),l.addOption("footer",R("Card footer")),l.addOption("metadata-table",R("Merge with linked page metadata"));let[c,d]=this.getSetting("inline-metadata-position",n);l.setValue((c==null?void 0:c.toString())||(d==null?void 0:d.toString())||Ul),l.onChange(m=>{m?this.applySettingsUpdate({"inline-metadata-position":{$set:m}}):this.applySettingsUpdate({$unset:["inline-metadata-position"]})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("inline-metadata-position",n);u.setValue(c||Ul),this.applySettingsUpdate({$unset:["inline-metadata-position"]})})})}),new rt.Setting(t).setName(R("Move task data to card footer")).setDesc(R("When toggled, task data (from the Tasks plugin) will be displayed in the card's footer instead of the card's body.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("move-task-metadata",n);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(m=>{this.applySettingsUpdate({"move-task-metadata":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("move-task-metadata",n);u.setValue(c!=null?c:!0),this.applySettingsUpdate({$unset:["move-task-metadata"]})})})}),t.createEl("br"),t.createEl("h4",{text:R("Linked Page Metadata")}),t.createEl("p",{cls:$("metadata-setting-desc"),text:R("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 rt.Setting(t).then(s=>{s.settingEl.addClass($("draggable-setting-container"));let[u]=this.getSetting("metadata-keys",n),l=(u||[]).map(c=>({...Rc,id:et(),data:c,win:Dn(t)}));Rx(s.settingEl,t,l,c=>this.applySettingsUpdate({"metadata-keys":{$set:c.map(d=>d.data)}})),this.cleanupFns.push(()=>{s.settingEl&&Hx(s.settingEl)})}),t.createEl("h4",{text:R("Board Header Buttons")}),new rt.Setting(t).setName(R("Add a list")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-add-list",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(m=>{this.applySettingsUpdate({"show-add-list":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-add-list",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-add-list"]})})})}),new rt.Setting(t).setName(R("Archive completed cards")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-archive-all",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(m=>{this.applySettingsUpdate({"show-archive-all":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-archive-all",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-archive-all"]})})})}),new rt.Setting(t).setName(R("Open as markdown")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-view-as-markdown",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(m=>{this.applySettingsUpdate({"show-view-as-markdown":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-view-as-markdown",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-view-as-markdown"]})})})}),new rt.Setting(t).setName(R("Open board settings")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-board-settings",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(m=>{this.applySettingsUpdate({"show-board-settings":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-board-settings",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-board-settings"]})})})}),new rt.Setting(t).setName(R("Search...")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-search",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(m=>{this.applySettingsUpdate({"show-search":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-search",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-search"]})})})}),new rt.Setting(t).setName(R("Board view")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-set-view",n);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(m=>{this.applySettingsUpdate({"show-set-view":{$set:m}})})}).addExtraButton(l=>{l.setIcon("lucide-rotate-ccw").setTooltip(R("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-set-view",n);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-set-view"]})})})})}cleanUp(){this.win=null,this.cleanupFns.forEach(t=>t()),this.cleanupFns=[]}},$d=class extends rt.Modal{constructor(t,r,n){super(t.app),this.view=t,this.settingsManager=new Vd(t.plugin,r,n)}onOpen(){let{contentEl:t,modalEl:r}=this;r.addClass($("board-settings-modal")),this.settingsManager.constructUI(t,this.view.file.basename,!0)}onClose(){let{contentEl:t}=this;this.settingsManager.cleanUp(),t.empty()}},Ud=class extends rt.PluginSettingTab{constructor(t,r){super(t.app,t),this.plugin=t,this.settingsManager=new Vd(t,r,t.settings)}display(){let{containerEl:t}=this;t.empty(),t.addClass($("board-settings-modal")),this.settingsManager.constructUI(t,R("Kanban Plugin"),!1)}};var xC=Ct(ln());function zx({onNewLane:e,closeLaneForm:t}){let[r,n]=Ne(!1),i=Fe(),a=Fe(),o=ws(()=>t(),{ignoreClass:[$("ignore-click-outside"),"mobile-toolbar","suggestion-container"]}),{boardModifiers:s,stateManager:u}=Ee(tt);Ai(()=>{var h;(h=a.current)==null||h.focus()},[]);let l=Ye((h,g)=>{s.addLane({...Ea,id:et(),children:[],data:{...co(g),shouldMarkItemsComplete:r}}),h.dispatch({changes:{from:0,to:h.state.doc.length,insert:""}}),n(!1),e()},[e,n,s]),c=Re(()=>({x:0,y:0}),[]),d=Ye((h,g,y)=>{if(!Ca(u,g,y))return l(h,h.state.doc.toString()),!0},[l]),m=Ye(h=>l(h,h.state.doc.toString()),[l]);return E("div",{ref:o,className:$("lane-form-wrapper"),children:[E("div",{className:$("lane-input-wrapper"),children:E(_a,{className:$("lane-input"),editorRef:i,editState:c,onEnter:d,onEscape:t,onSubmit:m})}),E("div",{className:$("checkbox-wrapper"),children:[E("div",{className:$("checkbox-label"),children:R("Mark cards in this list as complete")}),E("div",{onClick:()=>n(!r),className:`checkbox-container ${r?"is-enabled":""}`})]}),E("div",{className:$("lane-input-actions"),children:[E("button",{className:$("lane-action-add"),onClick:()=>{i.current&&l(i.current,i.current.state.doc.toString())},children:R("Add list")}),E("button",{className:$("lane-action-cancel"),onClick:t,children:R("Done")})]})]})}function qx(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function Oa(e,t){return typeof e=="function"?e(t):e}function Pr(e,t){return r=>{t.setState(n=>({...n,[e]:Oa(r,n[e])}))}}function Kd(e){return e instanceof Function}function LR(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function PR(e,t){let r=[],n=i=>{i.forEach(a=>{r.push(a);let o=t(a);o!=null&&o.length&&n(o)})};return n(e),r}function ze(e,t,r){let n=[],i;return a=>{let o;r.key&&r.debug&&(o=Date.now());let s=e(a);if(!(s.length!==n.length||s.some((c,d)=>n[d]!==c)))return i;n=s;let l;if(r.key&&r.debug&&(l=Date.now()),i=t(...s),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){let c=Math.round((Date.now()-o)*100)/100,d=Math.round((Date.now()-l)*100)/100,m=d/16,h=(g,y)=>{for(g=String(g);g.length<y;)g=" "+g;return g};console.info(`%c\u23F1 ${h(d,5)} /${h(c,5)} ms`,`
|
||
font-size: .6rem;
|
||
font-weight: bold;
|
||
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,r==null?void 0:r.key)}return i}}function Ke(e,t,r,n){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function NR(e,t,r,n){let i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:ze(()=>[e,r,t,a],(o,s,u,l)=>({table:o,column:s,row:u,cell:l,getValue:l.getValue,renderValue:l.renderValue}),Ke(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,r,t,e)},{}),a}function RR(e,t,r,n){var i,a;let s={...e._getDefaultColumnDef(),...t},u=s.accessorKey,l=(i=(a=s.id)!=null?a:u?u.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:u&&(u.includes(".")?c=m=>{let h=m;for(let y of u.split(".")){var g;h=(g=h)==null?void 0:g[y]}return h}:c=m=>m[s.accessorKey]),!l)throw new Error;let d={id:`${String(l)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:ze(()=>[!0],()=>{var m;return[d,...(m=d.columns)==null?void 0:m.flatMap(h=>h.getFlatColumns())]},Ke(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ze(()=>[e._getOrderColumnsFn()],m=>{var h;if((h=d.columns)!=null&&h.length){let g=d.columns.flatMap(y=>y.getLeafColumns());return m(g)}return[d]},Ke(e.options,"debugColumns","column.getLeafColumns"))};for(let m of e._features)m.createColumn==null||m.createColumn(d,e);return d}var nr="debugHeaders";function Kx(e,t,r){var n;let a={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let o=[],s=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(s),o.push(u)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}var HR={createTable:e=>{e.getHeaderGroups=ze(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var a,o;let s=(a=n==null?void 0:n.map(d=>r.find(m=>m.id===d)).filter(Boolean))!=null?a:[],u=(o=i==null?void 0:i.map(d=>r.find(m=>m.id===d)).filter(Boolean))!=null?o:[],l=r.filter(d=>!(n!=null&&n.includes(d.id))&&!(i!=null&&i.includes(d.id)));return Wd(t,[...s,...l,...u],e)},Ke(e.options,nr,"getHeaderGroups")),e.getCenterHeaderGroups=ze(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(a=>!(n!=null&&n.includes(a.id))&&!(i!=null&&i.includes(a.id))),Wd(t,r,e,"center")),Ke(e.options,nr,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ze(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;let a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Wd(t,a,e,"left")},Ke(e.options,nr,"getLeftHeaderGroups")),e.getRightHeaderGroups=ze(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;let a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Wd(t,a,e,"right")},Ke(e.options,nr,"getRightHeaderGroups")),e.getFooterGroups=ze(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Ke(e.options,nr,"getFooterGroups")),e.getLeftFooterGroups=ze(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Ke(e.options,nr,"getLeftFooterGroups")),e.getCenterFooterGroups=ze(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Ke(e.options,nr,"getCenterFooterGroups")),e.getRightFooterGroups=ze(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Ke(e.options,nr,"getRightFooterGroups")),e.getFlatHeaders=ze(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),Ke(e.options,nr,"getFlatHeaders")),e.getLeftFlatHeaders=ze(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),Ke(e.options,nr,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ze(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),Ke(e.options,nr,"getCenterFlatHeaders")),e.getRightFlatHeaders=ze(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),Ke(e.options,nr,"getRightFlatHeaders")),e.getCenterLeafHeaders=ze(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),Ke(e.options,nr,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ze(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),Ke(e.options,nr,"getLeftLeafHeaders")),e.getRightLeafHeaders=ze(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),Ke(e.options,nr,"getRightLeafHeaders")),e.getLeafHeaders=ze(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,a,o,s,u,l;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=r[0])==null?void 0:s.headers)!=null?o:[],...(u=(l=n[0])==null?void 0:l.headers)!=null?u:[]].map(c=>c.getLeafHeaders()).flat()},Ke(e.options,nr,"getLeafHeaders"))}};function Wd(e,t,r,n){var i,a;let o=0,s=function(m,h){h===void 0&&(h=1),o=Math.max(o,h),m.filter(g=>g.getIsVisible()).forEach(g=>{var y;(y=g.columns)!=null&&y.length&&s(g.columns,h+1)},0)};s(e);let u=[],l=(m,h)=>{let g={depth:h,id:[n,`${h}`].filter(Boolean).join("_"),headers:[]},y=[];m.forEach(v=>{let D=[...y].reverse()[0],I=v.column.depth===g.depth,C,x=!1;if(I&&v.column.parent?C=v.column.parent:(C=v.column,x=!0),D&&(D==null?void 0:D.column)===C)D.subHeaders.push(v);else{let O=Kx(r,C,{id:[n,h,C.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${y.filter(A=>A.column===C).length}`:void 0,depth:h,index:y.length});O.subHeaders.push(v),y.push(O)}g.headers.push(v),v.headerGroup=g}),u.push(g),h>0&&l(y,h-1)},c=t.map((m,h)=>Kx(r,m,{depth:o,index:h}));l(c,o-1),u.reverse();let d=m=>m.filter(g=>g.column.getIsVisible()).map(g=>{let y=0,v=0,D=[0];g.subHeaders&&g.subHeaders.length?(D=[],d(g.subHeaders).forEach(C=>{let{colSpan:x,rowSpan:O}=C;y+=x,D.push(O)})):y=1;let I=Math.min(...D);return v=v+I,g.colSpan=y,g.rowSpan=v,{colSpan:y,rowSpan:v}});return d((i=(a=u[0])==null?void 0:a.headers)!=null?i:[]),u}var Zg=(e,t,r,n,i,a,o)=>{let s={id:t,index:n,original:r,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(s._valuesCache.hasOwnProperty(u))return s._valuesCache[u];let l=e.getColumn(u);if(l!=null&&l.accessorFn)return s._valuesCache[u]=l.accessorFn(s.original,n),s._valuesCache[u]},getUniqueValues:u=>{if(s._uniqueValuesCache.hasOwnProperty(u))return s._uniqueValuesCache[u];let l=e.getColumn(u);if(l!=null&&l.accessorFn)return l.columnDef.getUniqueValues?(s._uniqueValuesCache[u]=l.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[u]):(s._uniqueValuesCache[u]=[s.getValue(u)],s._uniqueValuesCache[u])},renderValue:u=>{var l;return(l=s.getValue(u))!=null?l:e.options.renderFallbackValue},subRows:a!=null?a:[],getLeafRows:()=>PR(s.subRows,u=>u.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let u=[],l=s;for(;;){let c=l.getParentRow();if(!c)break;u.push(c),l=c}return u.reverse()},getAllCells:ze(()=>[e.getAllLeafColumns()],u=>u.map(l=>NR(e,s,l,l.id)),Ke(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:ze(()=>[s.getAllCells()],u=>u.reduce((l,c)=>(l[c.column.id]=c,l),{}),Ke(e.options,"debugRows","getAllCellsByColumnId"))};for(let u=0;u<e._features.length;u++){let l=e._features[u];l==null||l.createRow==null||l.createRow(s,e)}return s},BR={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Gx=(e,t,r)=>{var n;let i=r.toLowerCase();return!!(!((n=e.getValue(t))==null||(n=n.toString())==null||(n=n.toLowerCase())==null)&&n.includes(i))};Gx.autoRemove=e=>di(e);var Jx=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};Jx.autoRemove=e=>di(e);var Zx=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(r==null?void 0:r.toLowerCase())};Zx.autoRemove=e=>di(e);var Qx=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};Qx.autoRemove=e=>di(e)||!(e!=null&&e.length);var Xx=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});Xx.autoRemove=e=>di(e)||!(e!=null&&e.length);var eC=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});eC.autoRemove=e=>di(e)||!(e!=null&&e.length);var tC=(e,t,r)=>e.getValue(t)===r;tC.autoRemove=e=>di(e);var nC=(e,t,r)=>e.getValue(t)==r;nC.autoRemove=e=>di(e);var Qg=(e,t,r)=>{let[n,i]=r,a=e.getValue(t);return a>=n&&a<=i};Qg.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,a=t===null||Number.isNaN(n)?-1/0:n,o=r===null||Number.isNaN(i)?1/0:i;if(a>o){let s=a;a=o,o=s}return[a,o]};Qg.autoRemove=e=>di(e)||di(e[0])&&di(e[1]);var Xi={includesString:Gx,includesStringSensitive:Jx,equalsString:Zx,arrIncludes:Qx,arrIncludesAll:Xx,arrIncludesSome:eC,equals:tC,weakEquals:nC,inNumberRange:Qg};function di(e){return e==null||e===""}var VR={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Pr("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);return typeof n=="string"?Xi.includesString:typeof n=="number"?Xi.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Xi.equals:Array.isArray(n)?Xi.arrIncludes:Xi.weakEquals},e.getFilterFn=()=>{var r,n;return Kd(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Xi[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{let i=e.getFilterFn(),a=n==null?void 0:n.find(c=>c.id===e.id),o=Oa(r,a?a.value:void 0);if(jx(i,o,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}let u={id:e.id,value:o};if(a){var l;return(l=n==null?void 0:n.map(c=>c.id===e.id?u:c))!=null?l:[]}return n!=null&&n.length?[...n,u]:[u]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let r=e.getAllLeafColumns(),n=i=>{var a;return(a=Oa(t,i))==null?void 0:a.filter(o=>{let s=r.find(u=>u.id===o.id);if(s){let u=s.getFilterFn();if(jx(u,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function jx(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t=="undefined"||typeof t=="string"&&!t}var $R=(e,t,r)=>r.reduce((n,i)=>{let a=i.getValue(e);return n+(typeof a=="number"?a:0)},0),UR=(e,t,r)=>{let n;return r.forEach(i=>{let a=i.getValue(e);a!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}),n},WR=(e,t,r)=>{let n;return r.forEach(i=>{let a=i.getValue(e);a!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}),n},YR=(e,t,r)=>{let n,i;return r.forEach(a=>{let o=a.getValue(e);o!=null&&(n===void 0?o>=o&&(n=i=o):(n>o&&(n=o),i<o&&(i=o)))}),[n,i]},zR=(e,t)=>{let r=0,n=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++r,n+=a)}),r)return n/r},KR=(e,t)=>{if(!t.length)return;let r=t.map(a=>a.getValue(e));if(!LR(r))return;if(r.length===1)return r[0];let n=Math.floor(r.length/2),i=r.sort((a,o)=>a-o);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},jR=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),qR=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,GR=(e,t)=>t.length,Bg={sum:$R,min:UR,max:WR,extent:YR,mean:zR,median:KR,unique:jR,uniqueCount:qR,count:GR},JR={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Pr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r!=null?r:[],e.id])},e.getCanGroup=()=>{var r,n;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);if(typeof n=="number")return Bg.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Bg.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return Kd(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:Bg[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];let n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function ZR(e,t,r){if(!(t!=null&&t.length)||!r)return e;let n=e.filter(a=>!t.includes(a.id));return r==="remove"?n:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...n]}var QR={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Pr("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ze(r=>[jl(t,r)],r=>r.findIndex(n=>n.id===e.id),Ke(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=r=>{var n;return((n=jl(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;let i=jl(t,r);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=ze(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{let o=[...t],s=[...i];for(;s.length&&o.length;){let u=o.shift(),l=s.findIndex(c=>c.id===u);l>-1&&a.push(s.splice(l,1)[0])}a=[...a,...s]}return ZR(a,r,n)},Ke(e.options,"debugTable","_getOrderColumnsFn"))}},Vg=()=>({left:[],right:[]}),XR={getInitialState:e=>({columnPinning:Vg(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Pr("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{let n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(r==="right"){var s,u;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(d=>!(n!=null&&n.includes(d))),right:[...((u=i==null?void 0:i.right)!=null?u:[]).filter(d=>!(n!=null&&n.includes(d))),...n]}}if(r==="left"){var l,c;return{left:[...((l=i==null?void 0:i.left)!=null?l:[]).filter(d=>!(n!=null&&n.includes(d))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(d=>!(n!=null&&n.includes(d)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(d=>!(n!=null&&n.includes(d))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(d=>!(n!=null&&n.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,a,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{let r=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=t.getState().columnPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var r,n;let i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ze(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{let a=[...n!=null?n:[],...i!=null?i:[]];return r.filter(o=>!a.includes(o.column.id))},Ke(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=ze(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(r,n)=>(n!=null?n:[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),Ke(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=ze(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n!=null?n:[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),Ke(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?Vg():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:Vg())},e.getIsSomeColumnsPinned=t=>{var r;let n=e.getState().columnPinning;if(!t){var i,a;return!!((i=n.left)!=null&&i.length||(a=n.right)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=ze(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r!=null?r:[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),Ke(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=ze(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r!=null?r:[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),Ke(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=ze(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{let i=[...r!=null?r:[],...n!=null?n:[]];return t.filter(a=>!i.includes(a.id))},Ke(e.options,"debugColumns","getCenterLeafColumns"))}},Yd={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},$g=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),eH={getDefaultColumnDef:()=>Yd,getInitialState:e=>({columnSizing:{},columnSizingInfo:$g(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Pr("columnSizing",e),onColumnSizingInfoChange:Pr("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;let a=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:Yd.minSize,(n=a!=null?a:e.columnDef.size)!=null?n:Yd.size),(i=e.columnDef.maxSize)!=null?i:Yd.maxSize)},e.getStart=ze(r=>[r,jl(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,a)=>i+a.getSize(),0),Ke(t.options,"debugColumns","getStart")),e.getAfter=ze(r=>[r,jl(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,a)=>i+a.getSize(),0),Ke(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0,n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var a;r+=(a=i.column.getSize())!=null?a:0}};return n(e),r},e.getStart=()=>{if(e.index>0){let r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{let n=t.getColumn(e.column.id),i=n==null?void 0:n.getCanResize();return a=>{if(!n||!i||(a.persist==null||a.persist(),Ug(a)&&a.touches&&a.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(D=>[D.column.id,D.column.getSize()]):[[n.id,n.getSize()]],u=Ug(a)?Math.round(a.touches[0].clientX):a.clientX,l={},c=(D,I)=>{typeof I=="number"&&(t.setColumnSizingInfo(C=>{var x,O;let A=t.options.columnResizeDirection==="rtl"?-1:1,P=(I-((x=C==null?void 0:C.startOffset)!=null?x:0))*A,B=Math.max(P/((O=C==null?void 0:C.startSize)!=null?O:0),-.999999);return C.columnSizingStart.forEach(G=>{let[J,Q]=G;l[J]=Math.round(Math.max(Q+Q*B,0)*100)/100}),{...C,deltaOffset:P,deltaPercentage:B}}),(t.options.columnResizeMode==="onChange"||D==="end")&&t.setColumnSizing(C=>({...C,...l})))},d=D=>c("move",D),m=D=>{c("end",D),t.setColumnSizingInfo(I=>({...I,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=r||typeof document!="undefined"?document:null,g={moveHandler:D=>d(D.clientX),upHandler:D=>{h==null||h.removeEventListener("mousemove",g.moveHandler),h==null||h.removeEventListener("mouseup",g.upHandler),m(D.clientX)}},y={moveHandler:D=>(D.cancelable&&(D.preventDefault(),D.stopPropagation()),d(D.touches[0].clientX),!1),upHandler:D=>{var I;h==null||h.removeEventListener("touchmove",y.moveHandler),h==null||h.removeEventListener("touchend",y.upHandler),D.cancelable&&(D.preventDefault(),D.stopPropagation()),m((I=D.touches[0])==null?void 0:I.clientX)}},v=tH()?{passive:!1}:!1;Ug(a)?(h==null||h.addEventListener("touchmove",y.moveHandler,v),h==null||h.addEventListener("touchend",y.upHandler,v)):(h==null||h.addEventListener("mousemove",g.moveHandler,v),h==null||h.addEventListener("mouseup",g.upHandler,v)),t.setColumnSizingInfo(D=>({...D,startOffset:u,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?$g():(r=e.initialState.columnSizingInfo)!=null?r:$g())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}}},zd=null;function tH(){if(typeof zd=="boolean")return zd;let e=!1;try{let t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch(t){e=!1}return zd=e,zd}function Ug(e){return e.type==="touchstart"}var nH={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Pr("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r!=null?r:!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;let i=e.columns;return(r=i.length?i.some(a=>a.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ze(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),Ke(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=ze(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],Ke(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(r,n)=>ze(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),Ke(e.options,"debugColumns",r));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:r||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function jl(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var rH={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},iH={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Pr("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;let n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,a;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Xi.includesString,e.getGlobalFilterFn=()=>{var t,r;let{globalFilterFn:n}=e.options;return Kd(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Xi[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},aH={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Pr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{(n!=null?n:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,a;e.setExpanded(n?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{let n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{let o=a.split(".");n=Math.max(n,o.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;let a=n===!0?!0:!!(n!=null&&n[e.id]),o={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,r=(i=r)!=null?i:!a,!a&&r)return{...o,[e.id]:!0};if(a&&!r){let{[e.id]:s,...u}=o;return u}return n})},e.getIsExpanded=()=>{var r;let n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{let r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},Kg=0,jg=10,Wg=()=>({pageIndex:Kg,pageSize:jg}),oH={getInitialState:e=>({...e,pagination:{...Wg(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Pr("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{let i=a=>Oa(n,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?Wg():(i=e.initialState.pagination)!=null?i:Wg())},e.setPageIndex=n=>{e.setPagination(i=>{let a=Oa(n,i.pageIndex),o=typeof e.options.pageCount=="undefined"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=n=>{var i,a;e.setPageIndex(n?Kg:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:Kg)},e.resetPageSize=n=>{var i,a;e.setPageSize(n?jg:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:jg)},e.setPageSize=n=>{e.setPagination(i=>{let a=Math.max(1,Oa(n,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=n=>e.setPagination(i=>{var a;let o=Oa(n,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=ze(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((a,o)=>o)),i},Ke(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},Yg=()=>({top:[],bottom:[]}),sH={getInitialState:e=>({rowPinning:Yg(),...e}),getDefaultOptions:e=>({onRowPinningChange:Pr("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{let a=n?e.getLeafRows().map(u=>{let{id:l}=u;return l}):[],o=i?e.getParentRows().map(u=>{let{id:l}=u;return l}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(u=>{var l,c;if(r==="bottom"){var d,m;return{top:((d=u==null?void 0:u.top)!=null?d:[]).filter(y=>!(s!=null&&s.has(y))),bottom:[...((m=u==null?void 0:u.bottom)!=null?m:[]).filter(y=>!(s!=null&&s.has(y))),...Array.from(s)]}}if(r==="top"){var h,g;return{top:[...((h=u==null?void 0:u.top)!=null?h:[]).filter(y=>!(s!=null&&s.has(y))),...Array.from(s)],bottom:((g=u==null?void 0:u.bottom)!=null?g:[]).filter(y=>!(s!=null&&s.has(y)))}}return{top:((l=u==null?void 0:u.top)!=null?l:[]).filter(y=>!(s!=null&&s.has(y))),bottom:((c=u==null?void 0:u.bottom)!=null?c:[]).filter(y=>!(s!=null&&s.has(y)))}})},e.getCanPin=()=>{var r;let{enableRowPinning:n,enablePinning:i}=t.options;return typeof n=="function"?n(e):(r=n!=null?n:i)!=null?r:!0},e.getIsPinned=()=>{let r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var r,n;let i=e.getIsPinned();if(!i)return-1;let a=(r=t._getPinnedRows(i))==null?void 0:r.map(o=>{let{id:s}=o;return s});return(n=a==null?void 0:a.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?Yg():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:Yg())},e.getIsSomeRowsPinned=t=>{var r;let n=e.getState().rowPinning;if(!t){var i,a;return!!((i=n.top)!=null&&i.length||(a=n.bottom)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=ze(t=>[e.getRowModel().rows,e.getState().rowPinning[t],t],(t,r,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r!=null?r:[]).map(o=>{let s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(r!=null?r:[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},Ke(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=ze(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{let i=new Set([...r!=null?r:[],...n!=null?n:[]]);return t.filter(a=>!i.has(a.id))},Ke(e.options,"debugRows","getCenterRows"))}},lH={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Pr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t!="undefined"?t:!e.getIsAllRowsSelected();let n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(n[a.id]=!0)}):i.forEach(a=>{delete n[a.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{let n=typeof t!="undefined"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(a=>{qg(i,a.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ze(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?zg(e,r):{rows:[],flatRows:[],rowsById:{}},Ke(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=ze(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?zg(e,r):{rows:[],flatRows:[],rowsById:{}},Ke(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=ze(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?zg(e,r):{rows:[],flatRows:[],rowsById:{}},Ke(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState(),n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState(),n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;let r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{let i=e.getIsSelected();t.setRowSelection(a=>{var o;if(r=typeof r!="undefined"?r:!i,e.getCanSelect()&&i===r)return a;let s={...a};return qg(s,e.id,r,(o=n==null?void 0:n.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{let{rowSelection:r}=t.getState();return Xg(e,r)},e.getIsSomeSelected=()=>{let{rowSelection:r}=t.getState();return Gg(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{let{rowSelection:r}=t.getState();return Gg(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{let r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},qg=(e,t,r,n,i)=>{var a;let o=i.getRow(t,!0);r?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>qg(e,s.id,r,n,i))};function zg(e,t){let r=e.getState().rowSelection,n=[],i={},a=function(o,s){return o.map(u=>{var l;let c=Xg(u,r);if(c&&(n.push(u),i[u.id]=u),(l=u.subRows)!=null&&l.length&&(u={...u,subRows:a(u.subRows)}),c)return u}).filter(Boolean)};return{rows:a(t.rows),flatRows:n,rowsById:i}}function Xg(e,t){var r;return(r=t[e.id])!=null?r:!1}function Gg(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(Xg(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){let s=Gg(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}var Jg=/([0-9]+)/gm,uH=(e,t,r)=>rC(La(e.getValue(r)).toLowerCase(),La(t.getValue(r)).toLowerCase()),cH=(e,t,r)=>rC(La(e.getValue(r)),La(t.getValue(r))),dH=(e,t,r)=>ey(La(e.getValue(r)).toLowerCase(),La(t.getValue(r)).toLowerCase()),fH=(e,t,r)=>ey(La(e.getValue(r)),La(t.getValue(r))),hH=(e,t,r)=>{let n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},mH=(e,t,r)=>ey(e.getValue(r),t.getValue(r));function ey(e,t){return e===t?0:e>t?1:-1}function La(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function rC(e,t){let r=e.split(Jg).filter(Boolean),n=t.split(Jg).filter(Boolean);for(;r.length&&n.length;){let i=r.shift(),a=n.shift(),o=parseInt(i,10),s=parseInt(a,10),u=[o,s].sort();if(isNaN(u[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(u[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return r.length-n.length}var Kl={alphanumeric:uH,alphanumericCaseSensitive:cH,text:dH,textCaseSensitive:fH,datetime:hH,basic:mH},pH={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Pr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let r=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let i of r){let a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Kl.datetime;if(typeof a=="string"&&(n=!0,a.split(Jg).length>1))return Kl.alphanumeric}return n?Kl.text:Kl.basic},e.getAutoSortDir=()=>{let r=t.getFilteredRowModel().flatRows[0];return typeof(r==null?void 0:r.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return Kd(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Kl[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{let i=e.getNextSortingOrder(),a=typeof r!="undefined"&&r!==null;t.setSorting(o=>{let s=o==null?void 0:o.find(h=>h.id===e.id),u=o==null?void 0:o.findIndex(h=>h.id===e.id),l=[],c,d=a?r:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":o!=null&&o.length&&u!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var m;l=[...o,{id:e.id,desc:d}],l.splice(0,l.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else c==="toggle"?l=o.map(h=>h.id===e.id?{...h,desc:d}:h):c==="remove"?l=o.filter(h=>h.id!==e.id):l=[{id:e.id,desc:d}];return l})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;let a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;let n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{let r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},gH=[HR,nH,QR,XR,BR,VR,rH,iH,pH,JR,aH,oH,sH,lH,eH];function iC(e){var t,r;let n=[...gH,...(t=e._features)!=null?t:[]],i={_features:n},a=i._features.reduce((m,h)=>Object.assign(m,h.getDefaultOptions==null?void 0:h.getDefaultOptions(i)),{}),o=m=>i.options.mergeOptions?i.options.mergeOptions(a,m):{...a,...m},u={...{},...(r=e.initialState)!=null?r:{}};i._features.forEach(m=>{var h;u=(h=m.getInitialState==null?void 0:m.getInitialState(u))!=null?h:u});let l=[],c=!1,d={_features:n,options:{...a,...e},initialState:u,_queue:m=>{l.push(m),c||(c=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();c=!1}).catch(h=>activeWindow.setTimeout(()=>{throw h})))},reset:()=>{i.setState(i.initialState)},setOptions:m=>{let h=Oa(m,i.options);i.options=o(h)},getState:()=>i.options.state,setState:m=>{i.options.onStateChange==null||i.options.onStateChange(m)},_getRowId:(m,h,g)=>{var y;return(y=i.options.getRowId==null?void 0:i.options.getRowId(m,h,g))!=null?y:`${g?[g.id,h].join("."):h}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(m,h)=>{let g=(h?i.getPrePaginationRowModel():i.getRowModel()).rowsById[m];if(!g&&(g=i.getCoreRowModel().rowsById[m],!g))throw new Error;return g},_getDefaultColumnDef:ze(()=>[i.options.defaultColumn],m=>{var h;return m=(h=m)!=null?h:{},{header:g=>{let y=g.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:g=>{var y,v;return(y=(v=g.renderValue())==null||v.toString==null?void 0:v.toString())!=null?y:null},...i._features.reduce((g,y)=>Object.assign(g,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...m}},Ke(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:ze(()=>[i._getColumnDefs()],m=>{let h=function(g,y,v){return v===void 0&&(v=0),g.map(D=>{let I=RR(i,D,v,y),C=D;return I.columns=C.columns?h(C.columns,I,v+1):[],I})};return h(m)},Ke(e,"debugColumns","getAllColumns")),getAllFlatColumns:ze(()=>[i.getAllColumns()],m=>m.flatMap(h=>h.getFlatColumns()),Ke(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:ze(()=>[i.getAllFlatColumns()],m=>m.reduce((h,g)=>(h[g.id]=g,h),{}),Ke(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:ze(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(m,h)=>{let g=m.flatMap(y=>y.getLeafColumns());return h(g)},Ke(e,"debugColumns","getAllLeafColumns")),getColumn:m=>i._getAllFlatColumnsById()[m]};Object.assign(i,d);for(let m=0;m<i._features.length;m++){let h=i._features[m];h==null||h.createTable==null||h.createTable(i)}return i}function aC(){return e=>ze(()=>[e.options.data],t=>{let r={rows:[],flatRows:[],rowsById:{}},n=function(i,a,o){a===void 0&&(a=0);let s=[];for(let l=0;l<i.length;l++){let c=Zg(e,e._getRowId(i[l],l,o),i[l],l,a,void 0,o==null?void 0:o.id);if(r.flatRows.push(c),r.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var u;c.originalSubRows=e.options.getSubRows(i[l],l),(u=c.originalSubRows)!=null&&u.length&&(c.subRows=n(c.originalSubRows,a+1,c))}}return s};return r.rows=n(t),r},Ke(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function yH(e,t,r){return r.options.filterFromLeafRows?vH(e,t,r):wH(e,t,r)}function vH(e,t,r){var n;let i=[],a={},o=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(u,l){l===void 0&&(l=0);let c=[];for(let m=0;m<u.length;m++){var d;let h=u[m],g=Zg(r,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(g.columnFilters=h.columnFilters,(d=h.subRows)!=null&&d.length&&l<o){if(g.subRows=s(h.subRows,l+1),h=g,t(h)&&!g.subRows.length){c.push(h),a[h.id]=h,i.push(h);continue}if(t(h)||g.subRows.length){c.push(h),a[h.id]=h,i.push(h);continue}}else h=g,t(h)&&(c.push(h),a[h.id]=h,i.push(h))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function wH(e,t,r){var n;let i=[],a={},o=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(u,l){l===void 0&&(l=0);let c=[];for(let m=0;m<u.length;m++){let h=u[m];if(t(h)){var d;if((d=h.subRows)!=null&&d.length&&l<o){let y=Zg(r,h.id,h.original,h.index,h.depth,void 0,h.parentId);y.subRows=s(h.subRows,l+1),h=y}c.push(h),i.push(h),a[h.id]=h}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function oC(){return e=>ze(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let m=0;m<t.flatRows.length;m++)t.flatRows[m].columnFilters={},t.flatRows[m].columnFiltersMeta={};return t}let i=[],a=[];(r!=null?r:[]).forEach(m=>{var h;let g=e.getColumn(m.id);if(!g)return;let y=g.getFilterFn();y&&i.push({id:m.id,filterFn:y,resolvedValue:(h=y.resolveFilterValue==null?void 0:y.resolveFilterValue(m.value))!=null?h:m.value})});let o=r.map(m=>m.id),s=e.getGlobalFilterFn(),u=e.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());n&&s&&u.length&&(o.push("__global__"),u.forEach(m=>{var h;a.push({id:m.id,filterFn:s,resolvedValue:(h=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?h:n})}));let l,c;for(let m=0;m<t.flatRows.length;m++){let h=t.flatRows[m];if(h.columnFilters={},i.length)for(let g=0;g<i.length;g++){l=i[g];let y=l.id;h.columnFilters[y]=l.filterFn(h,y,l.resolvedValue,v=>{h.columnFiltersMeta[y]=v})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];let y=c.id;if(c.filterFn(h,y,c.resolvedValue,v=>{h.columnFiltersMeta[y]=v})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}let d=m=>{for(let h=0;h<o.length;h++)if(m.columnFilters[o[h]]===!1)return!1;return!0};return yH(t.rows,d,e)},Ke(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function sC(){return e=>ze(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;let n=e.getState().sorting,i=[],a=n.filter(u=>{var l;return(l=e.getColumn(u.id))==null?void 0:l.getCanSort()}),o={};a.forEach(u=>{let l=e.getColumn(u.id);l&&(o[u.id]={sortUndefined:l.columnDef.sortUndefined,invertSorting:l.columnDef.invertSorting,sortingFn:l.getSortingFn()})});let s=u=>{let l=u.map(c=>({...c}));return l.sort((c,d)=>{for(let h=0;h<a.length;h+=1){var m;let g=a[h],y=o[g.id],v=y.sortUndefined,D=(m=g==null?void 0:g.desc)!=null?m:!1,I=0;if(v){let C=c.getValue(g.id),x=d.getValue(g.id),O=C===void 0,A=x===void 0;if(O||A){if(v==="first")return O?-1:1;if(v==="last")return O?1:-1;I=O&&A?0:O?v:-v}}if(I===0&&(I=y.sortingFn(c,d,g.id)),I!==0)return D&&(I*=-1),y.invertSorting&&(I*=-1),I}return c.index-d.index}),l.forEach(c=>{var d;i.push(c),(d=c.subRows)!=null&&d.length&&(c.subRows=s(c.subRows))}),l};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},Ke(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function ty(e,t){return e?bH(e)?xr(e,t):e:null}function bH(e){return DH(e)||typeof e=="function"||SH(e)}function DH(e){return typeof e=="function"&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function SH(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function lC(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=Ne(()=>({current:iC(t)})),[n,i]=Ne(()=>r.current.initialState);return r.current.setOptions(a=>({...a,...e,state:{...n,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),r.current}var EC=Ct(ln());var fC={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z"},EH=Object.keys(fC).join("|"),kH=new RegExp(EH,"g");function xH(e){return e.replace(kH,t=>fC[t])}var rr={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function hC(e,t,r){var n;if(r=r||{},r.threshold=(n=r.threshold)!=null?n:rr.MATCHES,!r.accessors){let o=uC(e,t,r);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:r.threshold,passed:o>=r.threshold}}let i=TH(e,r.accessors),a={rankedValue:e,rank:rr.NO_MATCH,accessorIndex:-1,accessorThreshold:r.threshold,passed:!1};for(let o=0;o<i.length;o++){let s=i[o],u=uC(s.itemValue,t,r),{minRanking:l,maxRanking:c,threshold:d=r.threshold}=s.attributes;u<l&&u>=rr.MATCHES?u=l:u>c&&(u=c),u=Math.min(u,c),u>=d&&u>a.rank&&(a.rank=u,a.passed=!0,a.accessorIndex=o,a.accessorThreshold=d,a.rankedValue=s.itemValue)}return a}function uC(e,t,r){return e=cC(e,r),t=cC(t,r),t.length>e.length?rr.NO_MATCH:e===t?rr.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?rr.EQUAL:e.startsWith(t)?rr.STARTS_WITH:e.includes(` ${t}`)?rr.WORD_STARTS_WITH:e.includes(t)?rr.CONTAINS:t.length===1?rr.NO_MATCH:CH(e).includes(t)?rr.ACRONYM:_H(e,t))}function CH(e){let t="";return e.split(" ").forEach(n=>{n.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function _H(e,t){let r=0,n=0;function i(u,l,c){for(let d=c,m=l.length;d<m;d++)if(l[d]===u)return r+=1,d+1;return-1}function a(u){let l=1/u,c=r/t.length;return rr.MATCHES+c*l}let o=i(t[0],e,0);if(o<0)return rr.NO_MATCH;n=o;for(let u=1,l=t.length;u<l;u++){let c=t[u];if(n=i(c,e,n),!(n>-1))return rr.NO_MATCH}let s=n-o;return a(s)}function mC(e,t){return e.rank===t.rank?0:e.rank>t.rank?-1:1}function cC(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=xH(e)),e}function MH(e,t){let r=t;typeof t=="object"&&(r=t.accessor);let n=r(e);return n==null?[]:Array.isArray(n)?n:[String(n)]}function TH(e,t){let r=[];for(let n=0,i=t.length;n<i;n++){let a=t[n],o=FH(a),s=MH(e,a);for(let u=0,l=s.length;u<l;u++)r.push({itemValue:s[u],attributes:o})}return r}var dC={maxRanking:1/0,minRanking:-1/0};function FH(e){return typeof e=="function"?dC:{...dC,...e}}var yC=require("obsidian");var ny=Ct(gC());var vC=zt(function({item:t,hideDateDisplay:r,shouldShowRelativeDate:n}){let{stateManager:i,filePath:a}=Ee(tt),{onEditDate:o,onEditTime:s}=ug(t.item,t.path),u=fa(i);return E(ct,{children:[n?E(rd,{item:t.item,stateManager:i}):null,r?null:E(id,{item:t.item,stateManager:i,filePath:a!=null?a:"",onEditDate:o,onEditTime:s,getDateColor:u})]})}),wC=zt(function({item:t,lane:r,path:n}){let{stateManager:i,boardModifiers:a}=Ee(tt),o=Ee(zn),[s,u]=Ne(null),l=!!r.data.shouldMarkItemsComplete,c=gd({boardModifiers:a,item:t,setEditState:u,stateManager:i,path:n}),d=Ye(h=>{kn(s)||h.targetNode.instanceOf(HTMLAnchorElement)&&(h.targetNode.hasClass("internal-link")||h.targetNode.hasClass("external-link"))||c(h)},[c,s]),m=Ye(h=>{u({x:h.clientX,y:h.clientY})},[]);return E(Uu.Provider,{value:n,children:E("div",{onContextMenu:d,onDblClick:m,className:$("item-content-wrapper"),children:E("div",{className:$("item-title-wrapper"),children:[E(md,{boardModifiers:a,item:t,path:n,shouldMarkItemsComplete:l,stateManager:i}),E(ad,{editState:s,item:t,setEditState:u,showMetadata:!1,searchQuery:o==null?void 0:o.query,isStatic:!1})]})})})},(e,t)=>e.lane.data.shouldMarkItemsComplete===t.lane.data.shouldMarkItemsComplete&&(0,ny.default)(e.item,t.item)&&(0,ny.default)(e.path,t.path)),bC=zt(function({lane:t,path:r}){let{stateManager:n}=Ee(tt),i=Ee(zn);return E("div",{className:$("cell-flex-wrapper"),children:[E(Sa,{searchQuery:i==null?void 0:i.query,markdownString:t.data.title}),E("div",{onClick:a=>{let o=new yC.Menu,s=n.state.children;for(let u=0,l=s.length;u<l;u++){let c=s[u];o.addItem(d=>d.setChecked(t===c).setTitle(c.data.title).onClick(()=>{t!==c&&n.setState(m=>{let h=m.children[u];return Ri(m,r,[u,h.children.length])})}))}o.showAtMouseEvent(a)},className:Ge(["clickable-icon",$("icon-wrapper"),$("lane-menu")]),children:E(Ut,{name:"lucide-square-kanban"})})]})});var xs=qx(),DC=(e,t,r,n)=>{let i=e.getValue(t);if(i===null)return!1;let a=e.original.stateManager,o=i.value?In(i.value,a):In(i,a),s=hC(o,r,{threshold:rr.CONTAINS});return n({itemRank:s}),s.passed},Cs=(e,t,r)=>{var n,i;return!e.columnFiltersMeta[r]&&!t.columnFiltersMeta[r]?null:e.columnFiltersMeta[r]?t.columnFiltersMeta[r]?mC((n=e.columnFiltersMeta[r])==null?void 0:n.itemRank,(i=t.columnFiltersMeta[r])==null?void 0:i.itemRank):1:-1};function PH(e,t){return Re(()=>{var c;let r=[],n=new Set,i=new Set,a=new Set,o=new Map,s=(e==null?void 0:e.children)||[],u=t.getSetting("metadata-keys"),l=t.getSetting("inline-metadata-position")!=="body";for(let d=0,m=s.length;d<m;d++){let h=s[d];for(let g=0,y=h.children.length;g<y;g++){let v=h.children[g],D=v.data.metadata,I=D.fileMetadata||{},C=D.fileMetadataOrder||[],x=D.inlineMetadata;!n.has("date")&&D.date&&n.add("date"),!n.has("tags")&&((c=D.tags)!=null&&c.length)&&n.add("tags");for(let O of C)!i.has(O)&&I[O]&&(i.add(O),o.set(O,I[O].label||O));x&&l&&x.forEach(O=>{if(!a.has(O.key)&&(a.add(O.key),!o.has(O.key)))if(yi.has(O.key))o.set(O.key,No(O.key));else{let A=u.find(P=>P.metadataKey===O.key);o.set(O.key,(A==null?void 0:A.label)||O.key)}}),r.push({item:v,lane:h,path:[d,g],stateManager:t})}}return{items:r,metadataLabels:o,metadata:Array.from(n),fileMetadata:Array.from(i),inlineMetadata:Array.from(a)}},[e])}var NH=e=>[xs.accessor(t=>t.item.data.title,{id:"card",cell:t=>{let{lane:r,item:n,path:i}=t.row.original;return E(wC,{item:n,lane:r,path:i})},header:()=>R("Card"),sortingFn:(t,r,n)=>{let i=Cs(t,r,n);return i===null?fr(t.getValue(n),r.getValue(n)):i},size:e.card||272}),xs.accessor(t=>t.lane.data.title,{id:"lane",cell:t=>{let{lane:r,path:n}=t.row.original;return E(bC,{lane:r,path:n})},header:()=>R("List"),sortingFn:(t,r,n)=>{let i=Cs(t,r,n);return i===null?fr(t.getValue(n),r.getValue(n)):i},size:e.lane})];function SC(e,t){let r=Ee(zn),[n,i]=Ne([]),a=t.useSetting("show-relative-date"),o=t.useSetting("move-dates"),s=t.useSetting("move-tags"),u=t.useSetting("inline-metadata-position")!=="body",l=t.useSetting("move-task-metadata"),c=t.useSetting("table-sizing")||{},d=Fe(!1),m=Ye(A=>{i(P=>{let B=A(P);return B.length&&(d.current=B[0].desc),B})},[i]),h=Re(()=>({sorting:n,globalFilter:r==null?void 0:r.query}),[n,r==null?void 0:r.query]),{items:g,metadata:y,fileMetadata:v,inlineMetadata:D,metadataLabels:I}=PH(e,t),C=Re(()=>{let A=[...NH(c)];for(let P of y)switch(P){case"date":(a||o)&&A.push(xs.accessor(B=>{var G;return((G=B.item.data.metadata)==null?void 0:G.date)||null},{header:()=>R("Date"),id:"date",size:c.date,cell:B=>B.getValue()?E(vC,{item:B.row.original,shouldShowRelativeDate:a,hideDateDisplay:!o}):null,sortUndefined:!1,sortingFn:(B,G,J)=>{let Q=Cs(B,G,J);if(Q===null){let oe=B.getValue(J),te=G.getValue(J);return!oe&&!te?0:oe?te?oe.valueOf()-te.valueOf():d.current?1:-1:d.current?-1:1}return Q},sortDescFirst:!1}));break;case"tags":s&&A.push(xs.accessor(B=>{var G;return((G=B.item.data.metadata)==null?void 0:G.tags)||null},{header:()=>R("Tags"),id:"card-tags",size:c["card-tags"],cell:B=>{let G=B.table.getState().globalFilter,J=B.getValue();return J!=null&&J.length?E(ps,{tags:J,searchQuery:G}):null},sortUndefined:!1,sortingFn:(B,G,J)=>{var oe,te;let Q=Cs(B,G,J);if(Q===null){let re=B.getValue(J),ne=G.getValue(J);if(!(re!=null&&re.length)&&!(ne!=null&&ne.length))return 0;if(!(re!=null&&re.length))return d.current?-1:1;if(!(ne!=null&&ne.length))return d.current?1:-1;let be=t.getSetting("tag-sort"),pe=(oe=be==null?void 0:be.findIndex(Ce=>re.includes(Ce.tag)))!=null?oe:-1,De=(te=be==null?void 0:be.findIndex(Ce=>ne.includes(Ce.tag)))!=null?te:-1;return pe>-1&&De<0?-1:De>-1&&pe<0?1:pe>-1&&De>-1?pe-De:fr(re.join(""),ne.join(""))}return Q},sortDescFirst:!1}));break}return A},[a,o,s,...y]),x=Re(()=>{var P;let A=[...C];for(let B of D)A.push(xs.accessor(G=>{var Q;let J=(Q=G.item.data.metadata.inlineMetadata)==null?void 0:Q.find(oe=>oe.key===B);return J||null},{id:B,header:(P=I.get(B))!=null?P:B,cell:G=>{var be,pe,De;let J=G.getValue();if(!J)return null;let Q=yi.has(J.key);if(!l&&Q||!u&&!Q)return null;let oe=J.wrapping==="emoji-shorthand",te=(De=(pe=(be=il())==null?void 0:be.api)==null?void 0:pe.parse(J.value))!=null?De:J.value,re=oe&&J.key==="priority",ne=!!(te!=null&&te.ts);return E("span",{className:Ge([$("item-task-inline-metadata-item"),J.key.replace(/[^a-z0-9]/g,"-"),{"is-task-metadata":Q,"is-emoji":oe,"is-date":ne}]),children:!re&&E("span",{className:$("item-task-inline-metadata-item-value"),children:E(hs,{searchQuery:r==null?void 0:r.query,data:{value:te,label:"",metadataKey:J.key,shouldHideLabel:!1,containsMarkdown:!1}})})})},sortDescFirst:!1,sortingFn:(G,J,Q)=>{let oe=G.getValue(Q),te=J.getValue(Q);if(oe===null&&te===null)return 0;if(oe===null)return d.current?-1:1;if(te===null)return d.current?1:-1;let re=Cs(G,J,Q);return re===null?fr(In(oe.value,t),In(te.value,t)):re}}));return A},[C,...D,...I.values()]),O=Re(()=>{var P;let A=[...x];for(let B of v)A.push(xs.accessor(G=>{var Q;let J=(Q=G.item.data.metadata)==null?void 0:Q.fileMetadata;return J&&J[B]?J[B]:null},{id:B,header:(P=I.get(B))!=null?P:B,cell:G=>{let J=G.getValue();if(!J)return null;let Q=G.table.getState().globalFilter;return B==="tags"?E(ps,{searchQuery:Q,tags:J.value,alwaysShow:!0}):E(hs,{data:J,searchQuery:Q})},sortDescFirst:!1,sortingFn:(G,J,Q)=>{var ne,be;let oe=G.getValue(Q),te=J.getValue(Q);if(!(oe!=null&&oe.value)&&!(te!=null&&te.value))return 0;if(!(oe!=null&&oe.value))return d.current?-1:1;if(!(te!=null&&te.value))return d.current?1:-1;let re=Cs(G,J,Q);if(re===null){if(Q==="tags"){let pe=t.getSetting("tag-sort"),De=(ne=pe==null?void 0:pe.findIndex(U=>oe.value.includes(U.tag)))!=null?ne:-1,Ce=(be=pe==null?void 0:pe.findIndex(U=>te.value.includes(U.tag)))!=null?be:-1;if(De>-1&&Ce<0)return-1;if(Ce>-1&&De<0)return 1;if(De>-1&&Ce>-1)return De-Ce}return fr(In(oe.value,t),In(te.value,t))}return re}}));return A},[x,...v,...I.values()]);return{data:g,columns:O,state:h,setSorting:m}}function RH(){let e=Fe(),t=Fe(),r=Fe(new WeakMap),n=Fe([]);Ae(()=>()=>{var o;(o=e.current)==null||o.disconnect(),r.current=null,n.current.length=0},[]);let i=o=>{if(!o||t.current===o)return;e.current&&e.current.disconnect();let s=getComputedStyle(o);e.current=new IntersectionObserver(u=>{u.forEach(l=>{if(!r.current.has(l.target))return;r.current.get(l.target)(l)})},{root:o,threshold:.01,rootMargin:`${s.paddingTop} 0px ${s.paddingBottom} 0px`}),t.current=o,n.current.forEach(u=>e.current.observe(u)),n.current.length=0},a=Re(()=>({registerHandler:(o,s)=>{if(o){if(r.current.set(o,s),!e.current){n.current.push(o);return}e.current.observe(o)}},unregisterHandler:o=>{var s,u,l;o&&((s=r.current)==null||s.delete(o),(u=n.current)!=null&&u.length&&(n.current=n.current.filter(c=>c!==o)),(l=e.current)==null||l.unobserve(o))}}),[]);return{bindObserver:i,context:a}}function kC({boardData:e,stateManager:t}){let{bindObserver:r,context:n}=RH(),{data:i,columns:a,state:o,setSorting:s}=SC(e,t),u=lC({data:i,columns:a,state:o,globalFilterFn:DC,getColumnCanGlobalFilter:()=>!0,enableColumnResizing:!0,columnResizeMode:"onChange",columnResizeDirection:t.app.vault.getConfig("rightToLeft")?"rtl":"ltr",onSortingChange:s,getCoreRowModel:aC(),getSortedRowModel:sC(),getFilteredRowModel:oC()}),l=u.getState(),c=Fe(-1);Ae(()=>{if(c.current===-1){c.current=0;return}activeWindow.clearTimeout(c.current),c.current=activeWindow.setTimeout(()=>{t.getAView()&&t.setState(h=>(0,EC.default)(h,{data:{settings:{"table-sizing":{$set:l.columnSizing}}}}))},500)},[l.columnSizing]);let d=u.getCenterTotalSize(),m=Re(()=>({width:d}),[d]);return E("div",{className:`markdown-rendered ${$("table-wrapper")}`,ref:r,children:E(Lc.Provider,{value:n,children:E("table",{style:m,children:[E("thead",{children:u.getHeaderGroups().map(h=>E("tr",{children:h.headers.map(g=>{let y=g.column.getIsSorted();return E("th",{className:"mod-has-icon",children:E("div",{className:$("table-cell-wrapper"),style:{width:g.getSize()},children:[g.isPlaceholder?null:E("div",{className:$("table-header"),onClick:g.column.getToggleSortingHandler(),children:[E("div",{children:ty(g.column.columnDef.header,g.getContext())}),E("div",{className:$("table-header-sort"),children:y==="asc"?E(Ut,{name:"lucide-chevron-up"}):y==="desc"?E(Ut,{name:"lucide-chevron-down"}):E(Ut,{name:"lucide-chevrons-up-down"})})]}),E("div",{onDoubleClick:()=>g.column.resetSize(),onMouseDown:g.getResizeHandler(),onTouchStart:g.getResizeHandler(),className:`resizer ${u.options.columnResizeDirection} ${g.column.getIsResizing()?"isResizing":""}`})]})},g.id)})},h.id))}),E("tbody",{children:u.getRowModel().rows.map(h=>E("tr",{children:h.getVisibleCells().map(g=>E("td",{className:Ge({"mod-has-icon":g.column.id==="lane","mod-search-match":h.columnFiltersMeta[g.column.id]?h.columnFiltersMeta[g.column.id].itemRank.passed:!1}),children:E("div",{className:$("table-cell-wrapper"),style:{width:g.column.getSize()},children:ty(g.column.columnDef.cell,g.getContext())})},g.id))},h.id))})]})})})}var HH=[ft.Item,ft.Lane],BH=[ft.Lane];function VH(e){let t=[];return Array.isArray(e.cssclass)?t.push(...e.cssclass):typeof e.cssclass=="string"&&t.push(e.cssclass),Array.isArray(e.cssclasses)?t.push(...e.cssclasses):typeof e.cssclasses=="string"&&t.push(e.cssclasses),t}var CC=({view:e,stateManager:t})=>{let r=t.useState(),n=lx(),i=Fe(null),a=Fe(null),[o,s]=Ne(""),[u,l]=Ne(""),[c,d]=Ne(!1),[m,h]=Ne((r==null?void 0:r.children.length)===0),g=t.file.path,y=t.useSetting("max-archive-size"),v=t.useSetting("date-colors"),D=t.useSetting("tag-colors"),I=e.useViewState(_t),C=Ye(()=>{(r==null?void 0:r.children.length)>0&&h(!1)},[r==null?void 0:r.children.length]);Ae(()=>{(r==null?void 0:r.children.length)===0&&!t.hasError()&&h(!0)},[r==null?void 0:r.children.length,t]);let x=Ye(()=>{var J;(J=i.current)==null||J.win.setTimeout(()=>{var oe;let Q=(oe=i.current)==null?void 0:oe.getElementsByClassName($("board"));Q!=null&&Q.length&&vd([Q[0].scrollWidth,0],{elementToScroll:Q[0],speed:300,minDuration:150,easing:te=>te===1?1:1-Math.pow(2,-10*te)})})},[]);Ae(()=>{let J=oe=>{oe.commandId==="editor:open-search"&&(typeof oe.data=="string"?(d(!0),s(oe.data),l(oe.data)):d(te=>!te))},Q=()=>{h(!0)};return e.emitter.on("hotkey",J),e.emitter.on("showLaneForm",Q),()=>{e.emitter.off("hotkey",J),e.emitter.off("showLaneForm",Q)}},[e]),Ae(()=>{var J;c&&((J=a.current)==null||J.focus())},[c]),Ae(()=>{let J=e.getWindow(),Q=o.trim(),oe;return Q?oe=J.setTimeout(()=>{l(Q)},250):l(""),()=>{J.clearTimeout(oe)}},[o,e]),Ae(()=>{y===void 0||y===-1||typeof y=="number"&&(r==null?void 0:r.data.archive.length)>y&&t.setState(J=>(0,xC.default)(J,{data:{archive:{$set:J.data.archive.slice(y*-1)}}}))},[r==null?void 0:r.data.archive.length,y]);let O=Re(()=>Td(e,t),[t,e]),A=Re(()=>({view:e,stateManager:t,boardModifiers:O,filePath:g}),[e,t,O,g,v,D]),P=Ik(t);if(r==null)return E("div",{className:$("loading"),children:E("div",{className:"sk-pulse"})});if(r.data.errors.length>0)return E("div",{children:[E("div",{children:"Error:"}),r.data.errors.map((J,Q)=>E("div",{children:[E("div",{children:J.description}),E("pre",{children:J.stack})]},Q))]});let B=I==="list"?"vertical":"horizontal",G=wb(r,u,s,l,d);return E(ks,{id:e.id,children:E(tt.Provider,{value:A,children:E(zn.Provider,{value:G,children:E("div",{ref:i,className:Ge([Eh,{"something-is-dragging":n},...VH(r.data.frontmatter)]),...P,children:[(m||r.children.length===0)&&E(zx,{onNewLane:x,closeLaneForm:C}),c&&E("div",{className:$("search-wrapper"),children:[E("input",{ref:a,value:o,onChange:J=>{s(J.target.value)},onKeyDown:J=>{J.key==="Escape"&&(s(""),l(""),J.target.blur(),d(!1))},type:"text",className:$("filter-input"),placeholder:R("Search...")}),E("a",{className:`${$("search-cancel-button")} clickable-icon`,onClick:()=>{s(""),l(""),d(!1)},"aria-label":R("Cancel"),children:E(Ut,{name:"lucide-x"})})]}),I==="table"?E(kC,{boardData:r,stateManager:t}):E(Sd,{id:e.id,className:Ge([$("board"),{[$("horizontal")]:I!=="list",[$("vertical")]:I==="list","is-adding-lane":m}]),triggerTypes:HH,children:E("div",{children:E(Ia,{axis:B,children:[E(ox,{lanes:r.children,collapseDir:B}),E(Fa,{accepts:BH,className:$("lane-placeholder"),index:r.children.length})]})})})]})})})})};var qr="kanban",ho="lucide-trello",pn=class extends ea.TextFileView{constructor(r,n){super(r);this.actionButtons={};this.viewSettings={};this.initHeaderButtons=(0,ea.debounce)(()=>this._initHeaderButtons(),10,!0);this._initHeaderButtons=async()=>{if(ea.Platform.isPhone)return;let r=this.plugin.getStateManager(this.file);if(r)if(r.getSetting("show-board-settings")&&!this.actionButtons["show-board-settings"]?this.actionButtons["show-board-settings"]=this.addAction("lucide-settings",R("Open board settings"),()=>{this.getBoardSettings()}):!r.getSetting("show-board-settings")&&this.actionButtons["show-board-settings"]&&(this.actionButtons["show-board-settings"].remove(),delete this.actionButtons["show-board-settings"]),r.getSetting("show-set-view")&&!this.actionButtons["show-set-view"]?this.actionButtons["show-set-view"]=this.addAction("lucide-view",R("Board view"),n=>{let i=this.viewSettings[_t]||r.getSetting(_t);new ea.Menu().addItem(a=>a.setTitle(R("View as board")).setIcon("lucide-trello").setChecked(i==="basic"||i==="board").onClick(()=>this.setView("board"))).addItem(a=>a.setTitle(R("View as table")).setIcon("lucide-table").setChecked(i==="table").onClick(()=>this.setView("table"))).addItem(a=>a.setTitle(R("View as list")).setIcon("lucide-server").setChecked(i==="list").onClick(()=>this.setView("list"))).showAtMouseEvent(n)}):!r.getSetting("show-set-view")&&this.actionButtons["show-set-view"]&&(this.actionButtons["show-set-view"].remove(),delete this.actionButtons["show-set-view"]),r.getSetting("show-search")&&!this.actionButtons["show-search"]?this.actionButtons["show-search"]=this.addAction("lucide-search",R("Search..."),()=>{this.emitter.emit("hotkey",{commandId:"editor:open-search"})}):!r.getSetting("show-search")&&this.actionButtons["show-search"]&&(this.actionButtons["show-search"].remove(),delete this.actionButtons["show-search"]),r.getSetting("show-view-as-markdown")&&!this.actionButtons["show-view-as-markdown"]?this.actionButtons["show-view-as-markdown"]=this.addAction("lucide-file-text",R("Open as markdown"),()=>{this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.setMarkdownView(this.leaf)}):!r.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"]),r.getSetting("show-archive-all")&&!this.actionButtons["show-archive-all"]?this.actionButtons["show-archive-all"]=this.addAction("lucide-archive",R("Archive completed cards"),()=>{this.plugin.stateManagers.get(this.file).archiveCompletedCards()}):!r.getSetting("show-archive-all")&&this.actionButtons["show-archive-all"]&&(this.actionButtons["show-archive-all"].remove(),delete this.actionButtons["show-archive-all"]),r.getSetting("show-add-list")&&!this.actionButtons["show-add-list"]){let n=this.addAction("lucide-plus-circle",R("Add a list"),()=>{this.emitter.emit("showLaneForm",void 0)});n.addClass($("ignore-click-outside")),this.actionButtons["show-add-list"]=n}else!r.getSetting("show-add-list")&&this.actionButtons["show-add-list"]&&(this.actionButtons["show-add-list"].remove(),delete this.actionButtons["show-add-list"])};this.plugin=n,this.emitter=new Bo,this.previewCache=new Map,this.previewQueue=new Ac(()=>this.emitter.emit("queueEmpty")),this.emitter.on("hotkey",({commandId:i})=>{switch(i){case"daily-notes:goto-prev":{Sk(this.app,this.file);break}case"daily-notes:goto-next":{Dk(this.app,this.file);break}}}),VS(this)}get isPrimary(){var r;return((r=this.plugin.getStateManager(this.file))==null?void 0:r.getAView())===this}get id(){var r;return`${this.leaf.id}:::${(r=this.file)==null?void 0:r.path}`}get isShiftPressed(){return this.plugin.isShiftPressed}async prerender(r){r.children.forEach(n=>{n.children.forEach(i=>{this.previewCache.has(i.id)||this.previewQueue.add(async()=>{let a=this.addChild(new Ll(this,i.data.title));this.previewCache.set(i.id,a),await a.renderCapability.promise})})}),this.previewQueue.isRunning&&await new Promise(n=>{this.emitter.once("queueEmpty",n)}),this.initHeaderButtons()}validatePreviewCache(r){let n=new Set;r.children.forEach(i=>{n.add(i.id),i.children.forEach(a=>{n.add(a.id)})});for(let i of this.previewCache.keys())n.has(i)||(this.removeChild(this.previewCache.get(i)),this.previewCache.delete(i))}setView(r){this.setViewState(_t,r),this.app.fileManager.processFrontMatter(this.file,n=>{n[_t]=r})}setBoard(r,n=!0){this.plugin.stateManagers.get(this.file).setState(r,n)}getBoard(){return this.plugin.stateManagers.get(this.file).state}getViewType(){return qr}getIcon(){return ho}getDisplayText(){var r;return((r=this.file)==null?void 0:r.basename)||"Kanban"}getWindow(){return Dn(this.containerEl)}async loadFile(r){return this.plugin.removeView(this),super.loadFile(r)}async onLoadFile(r){try{return await super.onLoadFile(r)}catch(n){let i=this.plugin.stateManagers.get(this.file);throw i==null||i.setError(n),n}}onload(){super.onload(),ea.Platform.isMobile&&this.containerEl.setCssProps({"--mobile-navbar-height":this.app.mobileNavbar.containerEl.clientHeight+"px"}),this.register(this.containerEl.onWindowMigrated(()=>{this.plugin.removeView(this),this.plugin.addView(this,this.data,this.isPrimary)}))}onunload(){super.onunload(),this.previewQueue.clear(),this.previewCache.clear(),this.emitter.emit("queueEmpty"),this.plugin.removeView(this),this.emitter.removeAllListeners(),this.activeEditor=null,this.actionButtons={}}handleRename(r,n){this.file.path===r&&this.plugin.handleViewFileRename(this,n)}requestSaveToDisk(r){this.data!==r&&this.isPrimary?(this.data=r,this.requestSave()):this.data=r}getViewData(){return this.data}setViewData(r,n){if(!Ek(r)){this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.removeView(this),this.plugin.setMarkdownView(this.leaf,!1);return}n&&(this.activeEditor=null,this.previewQueue.clear(),this.previewCache.clear(),this.emitter.emit("queueEmpty"),Object.values(this.actionButtons).forEach(i=>i.remove()),this.actionButtons={}),this.plugin.addView(this,r,!n&&this.isPrimary)}async setState(r,n){this.viewSettings={...r.kanbanViewState},await super.setState(r,n)}getState(){let r=super.getState();return r.kanbanViewState={...this.viewSettings},r}setViewState(r,n,i){i?this.plugin.getStateManager(this.file).viewSet.forEach(o=>{o.viewSettings[r]=i(o.viewSettings[r])}):n&&(this.viewSettings[r]=n),this.app.workspace.requestSaveLayout()}populateViewState(r){var n,i,a,o;(i=(n=this.viewSettings)["kanban-plugin"])!=null||(n["kanban-plugin"]=r["kanban-plugin"]||"board"),(o=(a=this.viewSettings)["list-collapse"])!=null||(a["list-collapse"]=r["list-collapse"]||[])}getViewState(r){var a;let i=this.plugin.stateManagers.get(this.file).getSetting(r);return(a=this.viewSettings[r])!=null?a:i}useViewState(r){var a;let i=this.plugin.stateManagers.get(this.file).useSetting(r);return(a=this.viewSettings[r])!=null?a:i}getPortal(){let r=this.plugin.stateManagers.get(this.file);return E(CC,{stateManager:r,view:this})}getBoardSettings(){let r=this.plugin.stateManagers.get(this.file),n=r.state;new $d(this,{onSettingsChange:i=>{let a=(0,_C.default)(n,{data:{settings:{$set:i}}});r.setState(a)}},n.data.settings).open()}onPaneMenu(r,n,i=!0){if(n!=="more-options"){super.onPaneMenu(r,n);return}r.addItem(a=>{a.setTitle(R("Open as markdown")).setIcon("lucide-file-text").setSection("pane").onClick(()=>{this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.setMarkdownView(this.leaf)})}).addItem(a=>{a.setTitle(R("Open board settings")).setIcon("lucide-settings").setSection("pane").onClick(()=>{this.getBoardSettings()})}).addItem(a=>{a.setTitle(R("Archive completed cards")).setIcon("lucide-archive").setSection("pane").onClick(()=>{this.plugin.stateManagers.get(this.file).archiveCompletedCards()})}),i&&super.onPaneMenu(r,n)}clear(){}};var Ps=Ct(ln()),K_=require("obsidian");var Y_=require("obsidian"),z_=Ct(Ic());var FC=Ct(Wm()),IC=Ct(Ic()),qd="remove",Gd="replace",AC="add";function mo(e){if(!e)return!1;if(Ni(e)||Array.isArray(e))return!0;let t=(0,IC.getAPI)();return!!(!FC.default.isMoment(e)&&(t!=null&&t.value.isObject(e)))}function OC(e,t,r=()=>!1,n=i=>String(i)){if(!mo(e)||!mo(t))throw new Error("both arguments must be objects or arrays");let i=LC(e,t,[],[],{remove:[],replace:[],add:[]},r,n);return i.remove.reverse().concat(i.replace).concat(i.add)}function LC(e,t,r,n,i,a,o){if(!mo(e)||!mo(t))return i;let s=Object.keys(e),u=Object.keys(t),l=u.length,c=e.length-t.length,d;if(UH(e,t)){for(let m of s){let h=Array.isArray(e)?Number(m):m;if(!(h in t)){if(d=n.concat(h),a(d))continue;i.remove.push({op:qd,path:d})}}for(let m of u){let h=Array.isArray(t)?Number(m):m;MC(h,e,t,r.concat(h),r.concat(h),i,a,o)}}else{for(let h=0;h<c;h++)d=n.concat(h),!a(d)&&i.remove.push({op:qd,path:d});let m=e.slice(c);for(let h=0;h<l;h++)MC(h,m,t,r.concat(h),r.concat(h+c),i,a,o)}return i}function MC(e,t,r,n,i,a,o,s){let u=t[e],l=r[e];o(n,l)||(!(e in t)&&e in r?a.add.push({op:AC,path:n,value:l}):u!==l&&(Object(u)!==u||Object(l)!==l||$H(u,l)?a.replace.push({op:Gd,path:n,value:l}):!mo(u)&&!mo(l)&&s(u)!==s(l)?a.replace.push({op:Gd,path:n,value:l}):LC(t[e],r[e],n,i,a,o,s)))}function $H(e,t){return Object.prototype.toString.call(e)!==Object.prototype.toString.call(t)}function UH(e,t){let r=e.length-t.length;if(Array.isArray(e)&&Array.isArray(t)&&r>0){let n=0,i=0;for(let a=0;a<t.length&&String(e[a])===String(t[a]);a++)n++;for(let a=t.length;a>0&&String(e[a+r])===String(t[a]);a--)i++;return n>=i}return!0}function PC(e,t){if(!mo(e))throw new Error("base object must be an object or an array");if(!Array.isArray(t))throw new Error("diff must be an array");Array.isArray(e)?e=e.slice():e={...e};for(let r of t){let n=r.op,a=r.path.slice(),o=a.pop(),s=e;if(TC(o),o==null)return!1;let u;for(;(u=a.shift())!==null&&u!==void 0;)TC(u),u in s?Array.isArray(s[u])?s=s[u]=s[u].slice():Ni(s[u])?s=s[u]={...s[u]}:s=s[u]:s=s[u]={};if(n===qd||n===Gd){let l=r.path;if(!Object.prototype.hasOwnProperty.call(s,o))throw new Error(["expected to find property",l,"in object",e].join(" "))}n===qd&&typeof o=="number"&&(Array.isArray(s)?s.splice(o,1):delete s[o]),(n===Gd||n===AC)&&(s[o]=r.value)}return e}function TC(e){if(e==="__proto__"||e==="constructor"||e==="prototype")throw new Error("setting of prototype values not supported")}var pf=Ct(ln());var WH={};function _s(e,t){let r=t||WH,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return RC(e,n,i)}function RC(e,t,r){if(YH(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return NC(e.children,t,r)}return Array.isArray(e)?NC(e,t,r):""}function NC(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=RC(e[i],t,r);return n.join("")}function YH(e){return!!(e&&typeof e=="object")}var H_=require("obsidian");var Jd=function(e){if(e==null)return qH;if(typeof e=="string")return jH(e);if(typeof e=="object")return Array.isArray(e)?zH(e):KH(e);if(typeof e=="function")return Zd(e);throw new Error("Expected function, string, or object as test")};function zH(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Jd(e[r]);return Zd(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].call(this,...i))return!0;return!1}}function KH(e){return Zd(t);function t(r){let n;for(n in e)if(r[n]!==e[n])return!1;return!0}}function jH(e){return Zd(t);function t(r){return r&&r.type===e}}function Zd(e){return t;function t(r,...n){return!!(r&&typeof r=="object"&&"type"in r&&e.call(this,r,...n))}}function qH(){return!0}var ry=!0,Qd=!1,iy="skip",ay=function(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null);let i=Jd(t),a=n?-1:1;o(e,void 0,[])();function o(s,u,l){let c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){let m=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(m?"<"+m+">":""))+")"})}return d;function d(){let m=[],h,g,y;if((!t||i(s,u,l[l.length-1]||null))&&(m=GH(r(s,l)),m[0]===Qd))return m;if(s.children&&m[0]!==iy)for(g=(n?s.children.length:-1)+a,y=l.concat(s);g>-1&&g<s.children.length;){if(h=o(s.children[g],g,y)(),h[0]===Qd)return h;g=typeof h[1]=="number"?h[1]:g+a}return m}}};function GH(e){return Array.isArray(e)?e:typeof e=="number"?[ry,e]:[e]}var Xd=function(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),ay(e,t,i,n);function i(a,o){let s=o[o.length-1];return r(a,s?s.children.indexOf(a):null,s)}};function ef(e){if(e.children.length===0)return null;let t=e.children.length-1;return e.children[t].type==="blockid"?t===0?{start:e.children[0].position.start.offset,end:e.children[0].position.start.offset}:{start:e.children[0].position.start.offset,end:e.children[t-1].position.end.offset}:{start:e.children[0].position.start.offset,end:e.children[t].position.end.offset}}function oy(e,t){return t?e.slice(t.start,t.end):""}function HC(e,t){return t<=0?null:e[t-1]}function BC(e,t,r,n=()=>!0){for(let i=t+1,a=e.length;i<a;i++){let o=e[i];if(r===o.type)return o;if(!n(o))return null}return null}var po=require("obsidian");function VC(e,t){return t}function $C(e,t){let r=xh(e.getSetting("date-colors")),n=e.getSetting("date-trigger"),i=e.getSetting("date-format"),a=e.getSetting("date-display-format"),o=e.getSetting("time-trigger"),s=e.getSetting("time-format"),{app:u}=e,l,c,d=m=>{let h="";return c&&(c.backgroundColor?(m+=" has-background",h=` style="--date-color: ${c.color}; --date-background-color: ${c.backgroundColor};"`):h=` style="--date-color: ${c.color};"`),{wrapperClass:m,wrapperStyle:h}};return t=t.replace(new RegExp(`(^|\\s)${Qn(n)}\\[\\[([^\\]]+)\\]\\]`,"g"),(m,h,g)=>{var C,x;let y=(0,po.moment)(g,i);if(!y.isValid())return m;l=y;let v=u.metadataCache.getFirstLinkpathDest(g,e.file.path);c||(c=r(y));let{wrapperClass:D,wrapperStyle:I}=d($("preview-date-wrapper"));return`${h}<span data-date="${l.toISOString()}" class="${D} ${$("date")} ${$("preview-date-link")}"${I}><a class="${$("preview-date")} internal-link" data-href="${(C=v==null?void 0:v.path)!=null?C:g}" href="${(x=v==null?void 0:v.path)!=null?x:g}" target="_blank" rel="noopener">${y.format(a)}</a></span>`}),t=t.replace(new RegExp(`(^|\\s)${Qn(n)}\\[([^\\]]+)\\]\\([^)]+\\)`,"g"),(m,h,g)=>{var C,x;let y=(0,po.moment)(g,i);if(!y.isValid())return m;l=y;let v=u.metadataCache.getFirstLinkpathDest(g,e.file.path);c||(c=r(y));let{wrapperClass:D,wrapperStyle:I}=d($("preview-date-wrapper"));return`${h}<span data-date="${l.toISOString()}" class="${D} ${$("date")} ${$("preview-date-link")}"${I}><a class="${$("preview-date")} internal-link" data-href="${(C=v==null?void 0:v.path)!=null?C:g}" href="${(x=v==null?void 0:v.path)!=null?x:g}" target="_blank" rel="noopener">${y.format(a)}</a></span>`}),t=t.replace(new RegExp(`(^|\\s)${Qn(n)}{([^}]+)}`,"g"),(m,h,g)=>{let y=(0,po.moment)(g,i);if(!y.isValid())return m;l=y,c||(c=r(y));let{wrapperClass:v,wrapperStyle:D}=d($("preview-date-wrapper"));return`${h}<span data-date="${l.toISOString()}" class="${v} ${$("date")}"${D}><span class="${$("preview-date")} ${$("item-metadata-date")}">${y.format(a)}</span></span>`}),t=t.replace(new RegExp(`(^|\\s)${Qn(o)}{([^}]+)}`,"g"),(m,h,g)=>{let y=(0,po.moment)(g,s);if(!y.isValid())return m;l?(l.hour(y.hour()),l.minute(y.minute()),l.second(y.second())):(l=y,l.year(1970));let{wrapperClass:v,wrapperStyle:D}=d($("preview-time-wrapper"));return`${h}<span data-date="${l.toISOString()}" class="${v} ${$("date")}"${D}><span class="${$("preview-time")} ${$("item-metadata-time")}">${y.format(s)}</span></span>`}),t}function ql(e,t){let{dateStr:r,timeStr:n,fileAccessor:i}=t.data.metadata;if(r&&(t.data.metadata.date=(0,po.moment)(r,e.getSetting("date-format"))),n){let a=(0,po.moment)(n,e.getSetting("time-format"));if(t.data.metadata.date){let o=t.data.metadata.date;o.hour(a.hour()),o.minute(a.minute()),o.second(a.second()),a=o.clone()}t.data.metadata.time=a}if(i){let a=e.app.metadataCache.getFirstLinkpathDest(i.target,e.file.path);a&&(t.data.metadata.file=a)}return t.data.titleSearch=wk(t,e),t}function UC(e,t){try{t.children.map(r=>{VC(e,r),r.children.map(n=>ql(e,n))})}catch(r){throw e.setError(r),r}return t}function JH(e){return(e.op==="add"||e.op==="replace")&&["title","titleRaw","dateStr","timeStr",/\d$/,/\/fileAccessor\/.+$/].some(t=>typeof t=="string"?e.path.last().toString().endsWith(t):t.test(e.path.last().toString()))}function WC(e,t,r){let n={};return r.reduce((a,o)=>{if(!JH(o))return a;let s=o.path.reduce((l,c)=>(typeof c=="number"&&l.push(c),l),[]),u=s.join(",");return n[u]||(n[u]=!0,a.push(s)),a},[]).map(a=>{let o=un(t,a);if(o.type===ft.Lane)return VC(e,o);if(o.type===ft.Item)return ql(e,o)}),t}function Kn(e,t,r,n){let i=e.length,a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function mr(e,t){return e.length>0?(Kn(e,e.length,0,t),e):t}var YC={}.hasOwnProperty;function zC(e){let t={},r=-1;for(;++r<e.length;)ZH(t,e[r]);return t}function ZH(e,t){let r;for(r in t){let i=(YC.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r],o;if(a)for(o in a){YC.call(i,o)||(i[o]=[]);let s=a[o];QH(i[o],Array.isArray(s)?s:s?[s]:[])}}}function QH(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Kn(e,0,0,n)}var KC=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var Nr=Pa(/[A-Za-z]/),pr=Pa(/[\dA-Za-z]/),jC=Pa(/[#-'*+\--9=?A-Z^-~]/);function Gl(e){return e!==null&&(e<32||e===127)}var Jl=Pa(/\d/),qC=Pa(/[\dA-Fa-f]/),GC=Pa(/[!-/:-@[-`{-~]/);function xe(e){return e!==null&&e<-2}function Kt(e){return e!==null&&(e<0||e===32)}function Be(e){return e===-2||e===-1||e===32}var JC=Pa(KC),ZC=Pa(/\s/);function Pa(e){return t;function t(r){return r!==null&&e.test(String.fromCharCode(r))}}function je(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,a=0;return o;function o(u){return Be(u)?(e.enter(r),s(u)):t(u)}function s(u){return Be(u)&&a++<i?(e.consume(u),s):(e.exit(r),t(u))}}var QC={tokenize:XH};function XH(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),je(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){let u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return xe(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}var e_={tokenize:e3},XC={tokenize:t3};function e3(e){let t=this,r=[],n=0,i,a,o;return s;function s(C){if(n<r.length){let x=r[n];return t.containerState=x[1],e.attempt(x[0].continuation,u,l)(C)}return l(C)}function u(C){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();let x=t.events.length,O=x,A;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){A=t.events[O][1].end;break}D(n);let P=x;for(;P<t.events.length;)t.events[P][1].end=Object.assign({},A),P++;return Kn(t.events,O+1,0,t.events.slice(x)),t.events.length=P,l(C)}return s(C)}function l(C){if(n===r.length){if(!i)return m(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(XC,c,d)(C)}function c(C){return i&&I(),D(n),m(C)}function d(C){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,g(C)}function m(C){return t.containerState={},e.attempt(XC,h,g)(C)}function h(C){return n++,r.push([t.currentConstruct,t.containerState]),m(C)}function g(C){if(C===null){i&&I(),D(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),y(C)}function y(C){if(C===null){v(e.exit("chunkFlow"),!0),D(0),e.consume(C);return}return xe(C)?(e.consume(C),v(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(C),y)}function v(C,x){let O=t.sliceStream(C);if(x&&O.push(null),C.previous=a,a&&(a.next=C),a=C,i.defineSkip(C.start),i.write(O),t.parser.lazy[C.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<o&&(!i.events[A][1].end||i.events[A][1].end.offset>o))return;let P=t.events.length,B=P,G,J;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(G){J=t.events[B][1].end;break}G=!0}for(D(n),A=P;A<t.events.length;)t.events[A][1].end=Object.assign({},J),A++;Kn(t.events,B+1,0,t.events.slice(P)),t.events.length=A}}function D(C){let x=r.length;for(;x-- >C;){let O=r[x];t.containerState=O[1],O[0].exit.call(t,e)}r.length=C}function I(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function t3(e,t,r){return je(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function sy(e){if(e===null||Kt(e)||ZC(e))return 1;if(JC(e))return 2}function Ms(e,t,r){let n=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}var Zl={name:"attention",tokenize:r3,resolveAll:n3};function n3(e,t){let r=-1,n,i,a,o,s,u,l,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),m=Object.assign({},e[r][1].start);t_(d,-u),t_(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=mr(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=mr(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=mr(l,Ms(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),l=mr(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,l=mr(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Kn(e,n-1,r-n+3,l),r=n+l.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function r3(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=sy(n),a;return o;function o(u){return a=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===a)return e.consume(u),s;let l=e.exit("attentionSequence"),c=sy(u),d=!c||c===2&&i||r.includes(u),m=!i||i===2&&c||r.includes(n);return l._open=!!(a===42?d:d&&(i||!m)),l._close=!!(a===42?m:m&&(c||!d)),t(u)}}function t_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ly={name:"autolink",tokenize:i3};function i3(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return Nr(h)?(e.consume(h),o):l(h)}function o(h){return h===43||h===45||h===46||pr(h)?(n=1,s(h)):l(h)}function s(h){return h===58?(e.consume(h),n=0,u):(h===43||h===45||h===46||pr(h))&&n++<32?(e.consume(h),s):(n=0,l(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Gl(h)?r(h):(e.consume(h),u)}function l(h){return h===64?(e.consume(h),c):jC(h)?(e.consume(h),l):r(h)}function c(h){return pr(h)?d(h):r(h)}function d(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):m(h)}function m(h){if((h===45||pr(h))&&n++<63){let g=h===45?m:d;return e.consume(h),g}return r(h)}}var Na={tokenize:a3,partial:!0};function a3(e,t,r){return n;function n(a){return Be(a)?je(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||xe(a)?t(a):r(a)}}var tf={name:"blockQuote",tokenize:o3,continuation:{tokenize:s3},exit:l3};function o3(e,t,r){let n=this;return i;function i(o){if(o===62){let s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return Be(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function s3(e,t,r){let n=this;return i;function i(o){return Be(o)?je(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(tf,t,r)(o)}}function l3(e){e.exit("blockQuote")}var nf={name:"characterEscape",tokenize:u3};function u3(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return GC(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}var n_=document.createElement("i");function Ts(e){let t="&"+e+";";n_.innerHTML=t;let r=n_.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}var rf={name:"characterReference",tokenize:c3};function c3(e,t,r){let n=this,i=0,a,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=pr,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=qC,c):(e.enter("characterReferenceValue"),a=7,o=Jl,c(d))}function c(d){if(d===59&&i){let m=e.exit("characterReferenceValue");return o===pr&&!Ts(n.sliceSerialize(m))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&i++<a?(e.consume(d),c):r(d)}}var r_={tokenize:f3,partial:!0},af={name:"codeFenced",tokenize:d3,concrete:!0};function d3(e,t,r){let n=this,i={tokenize:O,partial:!0},a=0,o=0,s;return u;function u(A){return l(A)}function l(A){let P=n.events[n.events.length-1];return a=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,s=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===s?(o++,e.consume(A),c):o<3?r(A):(e.exit("codeFencedFenceSequence"),Be(A)?je(e,d,"whitespace")(A):d(A))}function d(A){return A===null||xe(A)?(e.exit("codeFencedFence"),n.interrupt?t(A):e.check(r_,y,x)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||xe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Be(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),je(e,h,"whitespace")(A)):A===96&&A===s?r(A):(e.consume(A),m)}function h(A){return A===null||xe(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||xe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===s?r(A):(e.consume(A),g)}function y(A){return e.attempt(i,x,v)(A)}function v(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),D}function D(A){return a>0&&Be(A)?je(e,I,"linePrefix",a+1)(A):I(A)}function I(A){return A===null||xe(A)?e.check(r_,y,x)(A):(e.enter("codeFlowValue"),C(A))}function C(A){return A===null||xe(A)?(e.exit("codeFlowValue"),I(A)):(e.consume(A),C)}function x(A){return e.exit("codeFenced"),t(A)}function O(A,P,B){let G=0;return J;function J(ne){return A.enter("lineEnding"),A.consume(ne),A.exit("lineEnding"),Q}function Q(ne){return A.enter("codeFencedFence"),Be(ne)?je(A,oe,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):oe(ne)}function oe(ne){return ne===s?(A.enter("codeFencedFenceSequence"),te(ne)):B(ne)}function te(ne){return ne===s?(G++,A.consume(ne),te):G>=o?(A.exit("codeFencedFenceSequence"),Be(ne)?je(A,re,"whitespace")(ne):re(ne)):B(ne)}function re(ne){return ne===null||xe(ne)?(A.exit("codeFencedFence"),P(ne)):B(ne)}}}function f3(e,t,r){let n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}var Ql={name:"codeIndented",tokenize:m3},h3={tokenize:p3,partial:!0};function m3(e,t,r){let n=this;return i;function i(l){return e.enter("codeIndented"),je(e,a,"linePrefix",5)(l)}function a(l){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(l):r(l)}function o(l){return l===null?u(l):xe(l)?e.attempt(h3,o,u)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||xe(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function u(l){return e.exit("codeIndented"),t(l)}}function p3(e,t,r){let n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):xe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):je(e,a,"linePrefix",5)(o)}function a(o){let s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):xe(o)?i(o):r(o)}}var uy={name:"codeText",tokenize:v3,resolve:g3,previous:y3};function g3(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function y3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function v3(e,t,r){let n=this,i=0,a,o;return s;function s(m){return e.enter("codeText"),e.enter("codeTextSequence"),u(m)}function u(m){return m===96?(e.consume(m),i++,u):(e.exit("codeTextSequence"),l(m))}function l(m){return m===null?r(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),l):m===96?(o=e.enter("codeTextSequence"),a=0,d(m)):xe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||xe(m)?(e.exit("codeTextData"),l(m)):(e.consume(m),c)}function d(m){return m===96?(e.consume(m),a++,d):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(o.type="codeTextData",c(m))}}function of(e){let t={},r=-1,n,i,a,o,s,u,l;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,w3(e,r)),r=t[r],l=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),Kn(e,i,r-i+1,s))}}return!l}function w3(e,t){let r=e[t][1],n=e[t][2],i=t-1,a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,u=[],l={},c,d,m=-1,h=r,g=0,y=0,v=[y];for(;h;){for(;e[++i][1]!==h;);a.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=r;++m<s.length;)s[m][0]==="exit"&&s[m-1][0]==="enter"&&s[m][1].type===s[m-1][1].type&&s[m][1].start.line!==s[m][1].end.line&&(y=m+1,v.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),m=v.length;m--;){let D=s.slice(v[m],v[m+1]),I=a.pop();u.unshift([I,I+D.length-1]),Kn(e,I,2,D)}for(m=-1;++m<u.length;)l[g+u[m][0]]=g+u[m][1],g+=u[m][1]-u[m][0]-1;return l}var cy={tokenize:S3,resolve:D3},b3={tokenize:E3,partial:!0};function D3(e){return of(e),e}function S3(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):xe(s)?e.check(b3,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function E3(e,t,r){let n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),je(e,a,"linePrefix")}function a(o){if(o===null||xe(o))return r(o);let s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function sf(e,t,r,n,i,a,o,s,u){let l=u||Number.POSITIVE_INFINITY,c=0;return d;function d(D){return D===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(D),e.exit(a),m):D===null||D===32||D===41||Gl(D)?r(D):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(D))}function m(D){return D===62?(e.enter(a),e.consume(D),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(D))}function h(D){return D===62?(e.exit("chunkString"),e.exit(s),m(D)):D===null||D===60||xe(D)?r(D):(e.consume(D),D===92?g:h)}function g(D){return D===60||D===62||D===92?(e.consume(D),h):h(D)}function y(D){return!c&&(D===null||D===41||Kt(D))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(D)):c<l&&D===40?(e.consume(D),c++,y):D===41?(e.consume(D),c--,y):D===null||D===32||D===40||Gl(D)?r(D):(e.consume(D),D===92?v:y)}function v(D){return D===40||D===41||D===92?(e.consume(D),y):y(D)}}function lf(e,t,r,n,i,a){let o=this,s=0,u;return l;function l(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(a),c}function c(h){return s>999||h===null||h===91||h===93&&!u||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):xe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||xe(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),u||(u=!Be(h)),h===92?m:d)}function m(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function uf(e,t,r,n,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(n),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):r(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(n),t):(e.enter(a),l(m))}function l(m){return m===o?(e.exit(a),u(o)):m===null?r(m):xe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),je(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===o||m===null||xe(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?d:c)}function d(m){return m===o||m===92?(e.consume(m),c):c(m)}}function go(e,t){let r;return n;function n(i){return xe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Be(i)?je(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}function ta(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var dy={name:"definition",tokenize:x3},k3={tokenize:C3,partial:!0};function x3(e,t,r){let n=this,i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return lf.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=ta(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):r(h)}function u(h){return Kt(h)?go(e,l)(h):l(h)}function l(h){return sf(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(k3,d,d)(h)}function d(h){return Be(h)?je(e,m,"whitespace")(h):m(h)}function m(h){return h===null||xe(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function C3(e,t,r){return n;function n(s){return Kt(s)?go(e,i)(s):r(s)}function i(s){return uf(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Be(s)?je(e,o,"whitespace")(s):o(s)}function o(s){return s===null||xe(s)?t(s):r(s)}}var fy={name:"hardBreakEscape",tokenize:_3};function _3(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return xe(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}var hy={name:"headingAtx",tokenize:T3,resolve:M3};function M3(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Kn(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function T3(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||Kt(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||xe(c)?(e.exit("atxHeading"),t(c)):Be(c)?je(e,s,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),s(c))}function l(c){return c===null||c===35||Kt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),l)}}var i_=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],my=["pre","script","style","textarea"];var py={name:"htmlFlow",tokenize:O3,resolveTo:A3,concrete:!0},F3={tokenize:P3,partial:!0},I3={tokenize:L3,partial:!0};function A3(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function O3(e,t,r){let n=this,i,a,o,s,u;return l;function l(N){return c(N)}function c(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),d}function d(N){return N===33?(e.consume(N),m):N===47?(e.consume(N),a=!0,y):N===63?(e.consume(N),i=3,n.interrupt?t:U):Nr(N)?(e.consume(N),o=String.fromCharCode(N),v):r(N)}function m(N){return N===45?(e.consume(N),i=2,h):N===91?(e.consume(N),i=5,s=0,g):Nr(N)?(e.consume(N),i=4,n.interrupt?t:U):r(N)}function h(N){return N===45?(e.consume(N),n.interrupt?t:U):r(N)}function g(N){let Ze="CDATA[";return N===Ze.charCodeAt(s++)?(e.consume(N),s===Ze.length?n.interrupt?t:oe:g):r(N)}function y(N){return Nr(N)?(e.consume(N),o=String.fromCharCode(N),v):r(N)}function v(N){if(N===null||N===47||N===62||Kt(N)){let Ze=N===47,It=o.toLowerCase();return!Ze&&!a&&my.includes(It)?(i=1,n.interrupt?t(N):oe(N)):i_.includes(o.toLowerCase())?(i=6,Ze?(e.consume(N),D):n.interrupt?t(N):oe(N)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(N):a?I(N):C(N))}return N===45||pr(N)?(e.consume(N),o+=String.fromCharCode(N),v):r(N)}function D(N){return N===62?(e.consume(N),n.interrupt?t:oe):r(N)}function I(N){return Be(N)?(e.consume(N),I):J(N)}function C(N){return N===47?(e.consume(N),J):N===58||N===95||Nr(N)?(e.consume(N),x):Be(N)?(e.consume(N),C):J(N)}function x(N){return N===45||N===46||N===58||N===95||pr(N)?(e.consume(N),x):O(N)}function O(N){return N===61?(e.consume(N),A):Be(N)?(e.consume(N),O):C(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),u=N,P):Be(N)?(e.consume(N),A):B(N)}function P(N){return N===u?(e.consume(N),u=null,G):N===null||xe(N)?r(N):(e.consume(N),P)}function B(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||Kt(N)?O(N):(e.consume(N),B)}function G(N){return N===47||N===62||Be(N)?C(N):r(N)}function J(N){return N===62?(e.consume(N),Q):r(N)}function Q(N){return N===null||xe(N)?oe(N):Be(N)?(e.consume(N),Q):r(N)}function oe(N){return N===45&&i===2?(e.consume(N),be):N===60&&i===1?(e.consume(N),pe):N===62&&i===4?(e.consume(N),Je):N===63&&i===3?(e.consume(N),U):N===93&&i===5?(e.consume(N),Ce):xe(N)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(F3,it,te)(N)):N===null||xe(N)?(e.exit("htmlFlowData"),te(N)):(e.consume(N),oe)}function te(N){return e.check(I3,re,it)(N)}function re(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),ne}function ne(N){return N===null||xe(N)?te(N):(e.enter("htmlFlowData"),oe(N))}function be(N){return N===45?(e.consume(N),U):oe(N)}function pe(N){return N===47?(e.consume(N),o="",De):oe(N)}function De(N){if(N===62){let Ze=o.toLowerCase();return my.includes(Ze)?(e.consume(N),Je):oe(N)}return Nr(N)&&o.length<8?(e.consume(N),o+=String.fromCharCode(N),De):oe(N)}function Ce(N){return N===93?(e.consume(N),U):oe(N)}function U(N){return N===62?(e.consume(N),Je):N===45&&i===2?(e.consume(N),U):oe(N)}function Je(N){return N===null||xe(N)?(e.exit("htmlFlowData"),it(N)):(e.consume(N),Je)}function it(N){return e.exit("htmlFlow"),t(N)}}function L3(e,t,r){let n=this;return i;function i(o){return xe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function P3(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Na,t,r)}}var gy={name:"htmlText",tokenize:N3};function N3(e,t,r){let n=this,i,a,o;return s;function s(U){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(U),u}function u(U){return U===33?(e.consume(U),l):U===47?(e.consume(U),O):U===63?(e.consume(U),C):Nr(U)?(e.consume(U),B):r(U)}function l(U){return U===45?(e.consume(U),c):U===91?(e.consume(U),a=0,g):Nr(U)?(e.consume(U),I):r(U)}function c(U){return U===45?(e.consume(U),h):r(U)}function d(U){return U===null?r(U):U===45?(e.consume(U),m):xe(U)?(o=d,pe(U)):(e.consume(U),d)}function m(U){return U===45?(e.consume(U),h):d(U)}function h(U){return U===62?be(U):U===45?m(U):d(U)}function g(U){let Je="CDATA[";return U===Je.charCodeAt(a++)?(e.consume(U),a===Je.length?y:g):r(U)}function y(U){return U===null?r(U):U===93?(e.consume(U),v):xe(U)?(o=y,pe(U)):(e.consume(U),y)}function v(U){return U===93?(e.consume(U),D):y(U)}function D(U){return U===62?be(U):U===93?(e.consume(U),D):y(U)}function I(U){return U===null||U===62?be(U):xe(U)?(o=I,pe(U)):(e.consume(U),I)}function C(U){return U===null?r(U):U===63?(e.consume(U),x):xe(U)?(o=C,pe(U)):(e.consume(U),C)}function x(U){return U===62?be(U):C(U)}function O(U){return Nr(U)?(e.consume(U),A):r(U)}function A(U){return U===45||pr(U)?(e.consume(U),A):P(U)}function P(U){return xe(U)?(o=P,pe(U)):Be(U)?(e.consume(U),P):be(U)}function B(U){return U===45||pr(U)?(e.consume(U),B):U===47||U===62||Kt(U)?G(U):r(U)}function G(U){return U===47?(e.consume(U),be):U===58||U===95||Nr(U)?(e.consume(U),J):xe(U)?(o=G,pe(U)):Be(U)?(e.consume(U),G):be(U)}function J(U){return U===45||U===46||U===58||U===95||pr(U)?(e.consume(U),J):Q(U)}function Q(U){return U===61?(e.consume(U),oe):xe(U)?(o=Q,pe(U)):Be(U)?(e.consume(U),Q):G(U)}function oe(U){return U===null||U===60||U===61||U===62||U===96?r(U):U===34||U===39?(e.consume(U),i=U,te):xe(U)?(o=oe,pe(U)):Be(U)?(e.consume(U),oe):(e.consume(U),re)}function te(U){return U===i?(e.consume(U),i=void 0,ne):U===null?r(U):xe(U)?(o=te,pe(U)):(e.consume(U),te)}function re(U){return U===null||U===34||U===39||U===60||U===61||U===96?r(U):U===47||U===62||Kt(U)?G(U):(e.consume(U),re)}function ne(U){return U===47||U===62||Kt(U)?G(U):r(U)}function be(U){return U===62?(e.consume(U),e.exit("htmlTextData"),e.exit("htmlText"),t):r(U)}function pe(U){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),De}function De(U){return Be(U)?je(e,Ce,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):Ce(U)}function Ce(U){return e.enter("htmlTextData"),o(U)}}var yo={name:"labelEnd",tokenize:U3,resolveTo:$3,resolveAll:V3},R3={tokenize:W3},H3={tokenize:Y3},B3={tokenize:z3};function V3(e){let t=-1;for(;++t<e.length;){let r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function $3(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);let u={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",u,t],["enter",l,t]],s=mr(s,e.slice(a+1,a+n+3)),s=mr(s,[["enter",c,t]]),s=mr(s,Ms(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=mr(s,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),s=mr(s,e.slice(o+1)),s=mr(s,[["exit",u,t]]),Kn(e,a,e.length,s),e}function U3(e,t,r){let n=this,i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(m){return a?a._inactive?d(m):(o=n.parser.defined.includes(ta(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),u):r(m)}function u(m){return m===40?e.attempt(R3,c,o?c:d)(m):m===91?e.attempt(H3,c,o?l:d)(m):o?c(m):d(m)}function l(m){return e.attempt(B3,c,d)(m)}function c(m){return t(m)}function d(m){return a._balanced=!0,r(m)}}function W3(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Kt(d)?go(e,a)(d):a(d)}function a(d){return d===41?c(d):sf(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return Kt(d)?go(e,u)(d):c(d)}function s(d){return r(d)}function u(d){return d===34||d===39||d===40?uf(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function l(d){return Kt(d)?go(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function Y3(e,t,r){let n=this;return i;function i(s){return lf.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(ta(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function z3(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}var yy={name:"labelStartImage",tokenize:K3,resolveAll:yo.resolveAll};function K3(e,t,r){let n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var vy={name:"labelStartLink",tokenize:j3,resolveAll:yo.resolveAll};function j3(e,t,r){let n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}var Xl={name:"lineEnding",tokenize:q3};function q3(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),je(e,t,"linePrefix")}}var vo={name:"thematicBreak",tokenize:G3};function G3(e,t,r){let n=0,i;return a;function a(l){return e.enter("thematicBreak"),o(l)}function o(l){return i=l,s(l)}function s(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):n>=3&&(l===null||xe(l))?(e.exit("thematicBreak"),t(l)):r(l)}function u(l){return l===i?(e.consume(l),n++,u):(e.exit("thematicBreakSequence"),Be(l)?je(e,s,"whitespace")(l):s(l))}}var ir={name:"list",tokenize:Q3,continuation:{tokenize:X3},exit:tB},J3={tokenize:nB,partial:!0},Z3={tokenize:eB,partial:!0};function Q3(e,t,r){let n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){let g=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:Jl(h)){if(n.containerState.type||(n.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(vo,r,l)(h):l(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return r(h)}function u(h){return Jl(h)&&++o<10?(e.consume(h),u):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),l(h)):r(h)}function l(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(Na,n.interrupt?r:c,e.attempt(J3,m,d))}function c(h){return n.containerState.initialBlankLine=!0,a++,m(h)}function d(h){return Be(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),m):r(h)}function m(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function X3(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(Na,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,je(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!Be(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Z3,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,je(e,e.attempt(ir,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function eB(e,t,r){let n=this;return je(e,i,"listItemIndent",n.containerState.size+1);function i(a){let o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function tB(e){e.exit(this.containerState.type)}function nB(e,t,r){let n=this;return je(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){let o=n.events[n.events.length-1];return!Be(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}var cf={name:"setextUnderline",tokenize:iB,resolveTo:rB};function rB(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);let o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function iB(e,t,r){let n=this,i;return a;function a(l){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),i=l,o(l)):r(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===i?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),Be(l)?je(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||xe(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}var a_={tokenize:aB};function aB(e){let t=this,r=e.attempt(Na,n,e.attempt(this.parser.constructs.flowInitial,i,je(e,e.attempt(this.parser.constructs.flow,i,e.attempt(cy,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var o_={resolveAll:c_()},s_=u_("string"),l_=u_("text");function u_(e){return{tokenize:t,resolveAll:c_(e==="text"?oB:void 0)};function t(r){let n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return l(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),u}function u(c){return l(c)?(r.exit("data"),a(c)):(r.consume(c),u)}function l(c){if(c===null)return!0;let d=i[c],m=-1;if(d)for(;++m<d.length;){let h=d[m];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function c_(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function oB(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),a=i.length,o=-1,s=0,u;for(;a--;){let l=i[a];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)u=!0,s++;else if(l!==-1){a++;break}}if(s){let l={type:r===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},l.start),n.start.offset===n.end.offset?Object.assign(n,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}function d_(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},a=[],o=[],s=[],u=!0,l={consume:x,enter:O,exit:A,attempt:G(P),check:G(B),interrupt:G(B,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:g,now:v,defineSkip:D,write:h},d=t.tokenize.call(c,l),m;return t.resolveAll&&a.push(t),c;function h(te){return o=mr(o,te),I(),o[o.length-1]!==null?[]:(J(t,0),c.events=Ms(a,c.events,c),c.events)}function g(te,re){return lB(y(te),re)}function y(te){return sB(o,te)}function v(){let{line:te,column:re,offset:ne,_index:be,_bufferIndex:pe}=n;return{line:te,column:re,offset:ne,_index:be,_bufferIndex:pe}}function D(te){i[te.line]=te.column,oe()}function I(){let te;for(;n._index<o.length;){let re=o[n._index];if(typeof re=="string")for(te=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===te&&n._bufferIndex<re.length;)C(re.charCodeAt(n._bufferIndex));else C(re)}}function C(te){u=void 0,m=te,d=d(te)}function x(te){xe(te)?(n.line++,n.column=1,n.offset+=te===-3?2:1,oe()):te!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=te,u=!0}function O(te,re){let ne=re||{};return ne.type=te,ne.start=v(),c.events.push(["enter",ne,c]),s.push(ne),ne}function A(te){let re=s.pop();return re.end=v(),c.events.push(["exit",re,c]),re}function P(te,re){J(te,re.from)}function B(te,re){re.restore()}function G(te,re){return ne;function ne(be,pe,De){let Ce,U,Je,it;return Array.isArray(be)?Ze(be):"tokenize"in be?Ze([be]):N(be);function N(vt){return Wt;function Wt(Tt){let Jt=Tt!==null&&vt[Tt],en=Tt!==null&&vt.null,gn=[...Array.isArray(Jt)?Jt:Jt?[Jt]:[],...Array.isArray(en)?en:en?[en]:[]];return Ze(gn)(Tt)}}function Ze(vt){return Ce=vt,U=0,vt.length===0?De:It(vt[U])}function It(vt){return Wt;function Wt(Tt){return it=Q(),Je=vt,vt.partial||(c.currentConstruct=vt),vt.name&&c.parser.constructs.disable.null.includes(vt.name)?jt(Tt):vt.tokenize.call(re?Object.assign(Object.create(c),re):c,l,Mt,jt)(Tt)}}function Mt(vt){return u=!0,te(Je,it),pe}function jt(vt){return u=!0,it.restore(),++U<Ce.length?It(Ce[U]):De}}}function J(te,re){te.resolveAll&&!a.includes(te)&&a.push(te),te.resolve&&Kn(c.events,re,c.events.length-re,te.resolve(c.events.slice(re),c)),te.resolveTo&&(c.events=te.resolveTo(c.events,c))}function Q(){let te=v(),re=c.previous,ne=c.currentConstruct,be=c.events.length,pe=Array.from(s);return{restore:De,from:be};function De(){n=te,c.previous=re,c.currentConstruct=ne,c.events.length=be,s=pe,oe()}}function oe(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function sB(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){let s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function lB(e,t){let r=-1,n=[],i;for(;++r<e.length;){let a=e[r],o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
||
`;break}case-3:{o=`\r
|
||
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}var wy={};Rf(wy,{attentionMarkers:()=>gB,contentInitial:()=>cB,disable:()=>yB,document:()=>uB,flow:()=>fB,flowInitial:()=>dB,insideSpan:()=>pB,string:()=>hB,text:()=>mB});var uB={42:ir,43:ir,45:ir,48:ir,49:ir,50:ir,51:ir,52:ir,53:ir,54:ir,55:ir,56:ir,57:ir,62:tf},cB={91:dy},dB={[-2]:Ql,[-1]:Ql,32:Ql},fB={35:hy,42:vo,45:[cf,vo],60:py,61:cf,95:vo,96:af,126:af},hB={38:rf,92:nf},mB={[-5]:Xl,[-4]:Xl,[-3]:Xl,33:yy,38:rf,42:Zl,60:[ly,gy],91:vy,92:[fy,nf],93:yo,95:Zl,96:uy},pB={null:[Zl,o_]},gB={null:[42,95]},yB={null:[]};function f_(e){let r=zC([wy,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(QC),document:i(e_),flow:i(a_),string:i(s_),text:i(l_)};return n;function i(a){return o;function o(s){return d_(n,a,s)}}}var h_=/[\0\t\n\r]/g;function m_(){let e=1,t="",r=!0,n;return i;function i(a,o,s){let u=[],l,c,d,m,h;for(a=t+a.toString(o),d=0,t="",r&&(a.charCodeAt(0)===65279&&d++,r=void 0);d<a.length;){if(h_.lastIndex=d,l=h_.exec(a),m=l&&l.index!==void 0?l.index:a.length,h=a.charCodeAt(m),!l){t=a.slice(d);break}if(h===10&&d===m&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),d<m&&(u.push(a.slice(d,m)),e+=m-d),h){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}d=m+1}return s&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}function p_(e){for(;!of(e););return e}function df(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCharCode(r)}var vB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function g_(e){return e.replace(vB,wB)}function wB(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),a=i===120||i===88;return df(r.slice(a?2:1),a?16:10)}return Ts(r)||e}function Fs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?y_(e.position):"start"in e||"end"in e?y_(e):"line"in e||"column"in e?by(e):""}function by(e){return v_(e&&e.line)+":"+v_(e&&e.column)}function y_(e){return by(e&&e.start)+"-"+by(e&&e.end)}function v_(e){return e&&typeof e=="number"?e:1}var b_={}.hasOwnProperty,ff=function(e,t,r){return typeof t!="string"&&(r=t,t=void 0),bB(r)(p_(f_(r).document().write(m_()(e,t,!0))))};function bB(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Vt),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(xn),blockQuote:s(Jt),characterEscape:Q,characterReference:Q,codeFenced:s(en),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(en,u),codeText:s(gn,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(yn),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(vn),hardBreakEscape:s(jn),hardBreakTrailing:s(jn),htmlFlow:s(sn,u),htmlFlowData:Q,htmlText:s(sn,u),htmlTextData:Q,image:s(Rt),label:u,link:s(Vt),listItem:s(Rr),listItemValue:g,listOrdered:s(Sr,h),listUnordered:s(Sr),paragraph:s(Bt),reference:It,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(xn),strong:s(Hr),thematicBreak:s(At)},exit:{atxHeading:c(),atxHeadingSequence:P,autolink:c(),autolinkEmail:Tt,autolinkProtocol:Wt,blockQuote:c(),characterEscapeValue:oe,characterReferenceMarkerHexadecimal:jt,characterReferenceMarkerNumeric:jt,characterReferenceValue:vt,codeFenced:c(I),codeFencedFence:D,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:oe,codeIndented:c(C),codeText:c(pe),codeTextData:oe,data:oe,definition:c(),definitionDestinationString:A,definitionLabelString:x,definitionTitleString:O,emphasis:c(),hardBreakEscape:c(re),hardBreakTrailing:c(re),htmlFlow:c(ne),htmlFlowData:oe,htmlText:c(be),htmlTextData:oe,image:c(Ce),label:Je,labelText:U,lineEnding:te,link:c(De),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Mt,resourceDestinationString:it,resourceTitleString:N,resource:Ze,setextHeading:c(J),setextHeadingLineSequence:G,setextHeadingText:B,strong:c(),thematicBreak:c()}};D_(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(Z){let me={type:"root",children:[]},Ie={stack:[me],tokenStack:[],config:t,enter:l,exit:d,buffer:u,resume:m,setData:a,getData:o},at=[],Dt=-1;for(;++Dt<Z.length;)if(Z[Dt][1].type==="listOrdered"||Z[Dt][1].type==="listUnordered")if(Z[Dt][0]==="enter")at.push(Dt);else{let Cn=at.pop();Dt=i(Z,Cn,Dt)}for(Dt=-1;++Dt<Z.length;){let Cn=t[Z[Dt][0]];b_.call(Cn,Z[Dt][1].type)&&Cn[Z[Dt][1].type].call(Object.assign({sliceSerialize:Z[Dt][2].sliceSerialize},Ie),Z[Dt][1])}if(Ie.tokenStack.length>0){let Cn=Ie.tokenStack[Ie.tokenStack.length-1];(Cn[1]||w_).call(Ie,void 0,Cn[0])}for(me.position={start:Ra(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Ra(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt<t.transforms.length;)me=t.transforms[Dt](me)||me;return me}function i(Z,me,Ie){let at=me-1,Dt=-1,Cn=!1,_n,Ht,ar,ht;for(;++at<=Ie;){let St=Z[at];if(St[1].type==="listUnordered"||St[1].type==="listOrdered"||St[1].type==="blockQuote"?(St[0]==="enter"?Dt++:Dt--,ht=void 0):St[1].type==="lineEndingBlank"?St[0]==="enter"&&(_n&&!ht&&!Dt&&!ar&&(ar=at),ht=void 0):St[1].type==="linePrefix"||St[1].type==="listItemValue"||St[1].type==="listItemMarker"||St[1].type==="listItemPrefix"||St[1].type==="listItemPrefixWhitespace"||(ht=void 0),!Dt&&St[0]==="enter"&&St[1].type==="listItemPrefix"||Dt===-1&&St[0]==="exit"&&(St[1].type==="listUnordered"||St[1].type==="listOrdered")){if(_n){let L=at;for(Ht=void 0;L--;){let K=Z[L];if(K[1].type==="lineEnding"||K[1].type==="lineEndingBlank"){if(K[0]==="exit")continue;Ht&&(Z[Ht][1].type="lineEndingBlank",Cn=!0),K[1].type="lineEnding",Ht=L}else if(!(K[1].type==="linePrefix"||K[1].type==="blockQuotePrefix"||K[1].type==="blockQuotePrefixWhitespace"||K[1].type==="blockQuoteMarker"||K[1].type==="listItemIndent"))break}ar&&(!Ht||ar<Ht)&&(_n._spread=!0),_n.end=Object.assign({},Ht?Z[Ht][1].start:St[1].end),Z.splice(Ht||at,0,["exit",_n,St[2]]),at++,Ie++}St[1].type==="listItemPrefix"&&(_n={type:"listItem",_spread:!1,start:Object.assign({},St[1].start),end:void 0},Z.splice(at,0,["enter",_n,St[2]]),at++,Ie++,ar=void 0,ht=!0)}}return Z[me][1]._spread=Cn,Ie}function a(Z,me){r[Z]=me}function o(Z){return r[Z]}function s(Z,me){return Ie;function Ie(at){l.call(this,Z(at),at),me&&me.call(this,at)}}function u(){this.stack.push({type:"fragment",children:[]})}function l(Z,me,Ie){return this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([me,Ie]),Z.position={start:Ra(me.start)},Z}function c(Z){return me;function me(Ie){Z&&Z.call(this,Ie),d.call(this,Ie)}}function d(Z,me){let Ie=this.stack.pop(),at=this.tokenStack.pop();if(at)at[0].type!==Z.type&&(me?me.call(this,Z,at[0]):(at[1]||w_).call(this,Z,at[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Fs({start:Z.start,end:Z.end})+"): it\u2019s not open");return Ie.position.end=Ra(Z.end),Ie}function m(){return _s(this.stack.pop())}function h(){a("expectingFirstListItemValue",!0)}function g(Z){if(o("expectingFirstListItemValue")){let me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(Z),10),a("expectingFirstListItemValue")}}function y(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.lang=Z}function v(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.meta=Z}function D(){o("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function I(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function C(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.value=Z.replace(/(\r?\n|\r)$/g,"")}function x(Z){let me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=me,Ie.identifier=ta(this.sliceSerialize(Z)).toLowerCase()}function O(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.title=Z}function A(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.url=Z}function P(Z){let me=this.stack[this.stack.length-1];if(!me.depth){let Ie=this.sliceSerialize(Z).length;me.depth=Ie}}function B(){a("setextHeadingSlurpLineEnding",!0)}function G(Z){let me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(Z).charCodeAt(0)===61?1:2}function J(){a("setextHeadingSlurpLineEnding")}function Q(Z){let me=this.stack[this.stack.length-1],Ie=me.children[me.children.length-1];(!Ie||Ie.type!=="text")&&(Ie=rn(),Ie.position={start:Ra(Z.start)},me.children.push(Ie)),this.stack.push(Ie)}function oe(Z){let me=this.stack.pop();me.value+=this.sliceSerialize(Z),me.position.end=Ra(Z.end)}function te(Z){let me=this.stack[this.stack.length-1];if(o("atHardBreak")){let Ie=me.children[me.children.length-1];Ie.position.end=Ra(Z.end),a("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(me.type)&&(Q.call(this,Z),oe.call(this,Z))}function re(){a("atHardBreak",!0)}function ne(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.value=Z}function be(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.value=Z}function pe(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.value=Z}function De(){let Z=this.stack[this.stack.length-1];if(o("inReference")){let me=o("referenceType")||"shortcut";Z.type+="Reference",Z.referenceType=me,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;a("referenceType")}function Ce(){let Z=this.stack[this.stack.length-1];if(o("inReference")){let me=o("referenceType")||"shortcut";Z.type+="Reference",Z.referenceType=me,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;a("referenceType")}function U(Z){let me=this.sliceSerialize(Z),Ie=this.stack[this.stack.length-2];Ie.label=g_(me),Ie.identifier=ta(me).toLowerCase()}function Je(){let Z=this.stack[this.stack.length-1],me=this.resume(),Ie=this.stack[this.stack.length-1];if(a("inReference",!0),Ie.type==="link"){let at=Z.children;Ie.children=at}else Ie.alt=me}function it(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.url=Z}function N(){let Z=this.resume(),me=this.stack[this.stack.length-1];me.title=Z}function Ze(){a("inReference")}function It(){a("referenceType","collapsed")}function Mt(Z){let me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=me,Ie.identifier=ta(this.sliceSerialize(Z)).toLowerCase(),a("referenceType","full")}function jt(Z){a("characterReferenceType",Z.type)}function vt(Z){let me=this.sliceSerialize(Z),Ie=o("characterReferenceType"),at;Ie?(at=df(me,Ie==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):at=Ts(me);let Dt=this.stack.pop();Dt.value+=at,Dt.position.end=Ra(Z.end)}function Wt(Z){oe.call(this,Z);let me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(Z)}function Tt(Z){oe.call(this,Z);let me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(Z)}function Jt(){return{type:"blockquote",children:[]}}function en(){return{type:"code",lang:null,meta:null,value:""}}function gn(){return{type:"inlineCode",value:""}}function yn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function vn(){return{type:"emphasis",children:[]}}function xn(){return{type:"heading",depth:void 0,children:[]}}function jn(){return{type:"break"}}function sn(){return{type:"html",value:""}}function Rt(){return{type:"image",title:null,url:"",alt:null}}function Vt(){return{type:"link",title:null,url:"",children:[]}}function Sr(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Rr(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Bt(){return{type:"paragraph",children:[]}}function Hr(){return{type:"strong",children:[]}}function rn(){return{type:"text",value:""}}function At(){return{type:"thematicBreak"}}}function Ra(e){return{line:e.line,column:e.column,offset:e.offset}}function D_(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?D_(e,n):DB(e,n)}}function DB(e,t){let r;for(r in t)if(b_.call(t,r)){if(r==="canContainEols"){let n=t[r];n&&e[r].push(...n)}else if(r==="transforms"){let n=t[r];n&&e[r].push(...n)}else if(r==="enter"||r==="exit"){let n=t[r];n&&Object.assign(e[r],n)}}}function w_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Fs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Fs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Fs({start:t.start,end:t.end})+") is still open")}var E_=Ct(S_(),1),eu=Object.assign(wo(Error),{eval:wo(EvalError),range:wo(RangeError),reference:wo(ReferenceError),syntax:wo(SyntaxError),type:wo(TypeError),uri:wo(URIError)});function wo(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let i=r&&(0,E_.default)(r,...n);return new e(i)}}var hf={}.hasOwnProperty,k_={yaml:"-",toml:"+"};function mf(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=SB(n[r]);return t}function SB(e){let t=e;if(typeof t=="string"){if(!hf.call(k_,t))throw eu("Missing matter definition for `%s`",t);t={type:t,marker:k_[t]}}else if(typeof t!="object")throw eu("Expected matter to be an object, not `%j`",t);if(!hf.call(t,"type"))throw eu("Missing `type` in matter `%j`",t);if(!hf.call(t,"fence")&&!hf.call(t,"marker"))throw eu("Missing `marker` or `fence` in matter `%j`",t);return t}function Sy(e){let t=mf(e),r={},n={},i=-1;for(;++i<t.length;){let a=t[i];r[a.type]=EB(a),n[a.type]=kB,n[a.type+"Value"]=xB}return{enter:r,exit:n}}function EB(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function kB(e){let t=this.resume(),r=this.exit(e);r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function xB(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ky(e){let t=mf(e),r={},n=-1;for(;++n<t.length;){let i=t[n],a=Ey(i,"open").charCodeAt(0),o=CB(i),s=r[a];Array.isArray(s)?s.push(o):r[a]=[o]}return{flow:r}}function CB(e){let t=e.anywhere,r=e.type,n=r+"Fence",i=n+"Sequence",a=r+"Value",o={tokenize:c,partial:!0},s,u=0;return{tokenize:l,concrete:!0};function l(d,m,h){let g=this;return y;function y(P){let B=g.now();return B.column===1&&(B.line===1||t)&&(s=Ey(e,"open"),u=0,P===s.charCodeAt(u))?(d.enter(r),d.enter(n),d.enter(i),v(P)):h(P)}function v(P){return u===s.length?(d.exit(i),Be(P)?(d.enter("whitespace"),D(P)):I(P)):P===s.charCodeAt(u++)?(d.consume(P),v):h(P)}function D(P){return Be(P)?(d.consume(P),D):(d.exit("whitespace"),I(P))}function I(P){return xe(P)?(d.exit(n),d.enter("lineEnding"),d.consume(P),d.exit("lineEnding"),s=Ey(e,"close"),u=0,d.attempt(o,A,C)):h(P)}function C(P){return P===null||xe(P)?O(P):(d.enter(a),x(P))}function x(P){return P===null||xe(P)?(d.exit(a),O(P)):(d.consume(P),x)}function O(P){return P===null?h(P):(d.enter("lineEnding"),d.consume(P),d.exit("lineEnding"),d.attempt(o,A,C))}function A(P){return d.exit(r),m(P)}}function c(d,m,h){let g=0;return y;function y(C){return C===s.charCodeAt(g)?(d.enter(n),d.enter(i),v(C)):h(C)}function v(C){return g===s.length?(d.exit(i),Be(C)?(d.enter("whitespace"),D(C)):I(C)):C===s.charCodeAt(g++)?(d.consume(C),v):h(C)}function D(C){return Be(C)?(d.consume(C),D):(d.exit("whitespace"),I(C))}function I(C){return C===null||xe(C)?(d.exit(n),m(C)):h(C)}}}function Ey(e,t){return e.marker?x_(e.marker,t).repeat(3):x_(e.fence,t)}function x_(e,t){return typeof e=="string"?e:e[t]}var L_=require("obsidian");function Is(e){return e[e.length-1]}function C_(){let e="blockid",t="^";function r(i,a,o){let s=!1,u=0;return l;function l(h){return h!==t.charCodeAt(u)?o(h):(i.enter(e),i.enter(`${e}Marker`),c(h))}function c(h){return u===t.length?(i.exit(`${e}Marker`),d(h)):h!==t.charCodeAt(u)?o(h):(i.consume(h),u++,c)}function d(h){return i.enter(`${e}Data`),i.enter(`${e}Target`),m(h)}function m(h){return Be(h)?o(h):xe(h)||h===null?s?(i.exit(`${e}Target`),i.exit(`${e}Data`),i.exit(e),a(h)):o(h):(s=!0,i.consume(h),m)}}let n={tokenize:r};return{text:{[t.charCodeAt(0)]:n}}}function __(){let e="blockid";function t(i){this.enter({type:e,value:null},i)}function r(i){let a=this.sliceSerialize(i),o=Is(this.stack);o.value=a}function n(i){this.exit(i)}return{enter:{[e]:t},exit:{[`${e}Target`]:r,[e]:n}}}function As(e,t,r){function n(a,o,s){let u=!1,l=0,c=0;return d;function d(v){return v!==t.charCodeAt(l)?s(v):(a.enter(e),a.enter(`${e}Marker`),m(v))}function m(v){return l===t.length?(a.exit(`${e}Marker`),h(v)):v!==t.charCodeAt(l)?s(v):(a.consume(v),l++,m)}function h(v){return xe(v)||v===null?s(v):(a.enter(`${e}Data`),a.enter(`${e}Target`),g(v))}function g(v){return v===r.charCodeAt(c)?u?(a.exit(`${e}Target`),a.exit(`${e}Data`),a.enter(`${e}Marker`),y(v)):s(v):xe(v)||v===null?s(v):(Kt(v)||(u=!0),a.consume(v),g)}function y(v){return c===r.length?(a.exit(`${e}Marker`),a.exit(e),o(v)):v!==r.charCodeAt(c)?s(v):(a.consume(v),c++,y)}}let i={tokenize:n};return{text:{[t.charCodeAt(0)]:i}}}function Os(e,t){function r(a){this.enter({type:e,value:null},a)}function n(a){let o=this.sliceSerialize(a),s=Is(this.stack);s.value=o,t&&t(o,s)}function i(a){this.exit(a)}return{enter:{[e]:r},exit:{[`${e}Target`]:n,[e]:i}}}function M_(e){function t(n){e(this.stack[this.stack.length-1],!1),this.exit(n)}function r(n){e(this.stack[this.stack.length-1],!0),this.exit(n)}return{exit:{link:t,image:r}}}function T_(){let e="hashtag";function r(i,a,o){let s=!1,u=0,l=this;return c;function c(g){return g!==35||l.previous!==null&&!/\s/.test(String.fromCharCode(l.previous))?o(g):(i.enter(e),i.enter(`${e}Marker`),d(g))}function d(g){return u===1?(i.exit(`${e}Marker`),m(g)):g!==35?o(g):(i.consume(g),u++,d)}function m(g){return i.enter(`${e}Data`),i.enter(`${e}Target`),h(g)}function h(g){return g===null||Kt(g)||/[\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~[\]\\\s\n\r]/.test(String.fromCharCode(g))?s?(i.exit(`${e}Target`),i.exit(`${e}Data`),i.exit(e),a(g)):o(g):(s=!0,i.consume(g),h)}}return{text:{35:{tokenize:r}}}}function F_(){let e="hashtag";function t(i){this.enter({type:e,value:null},i)}function r(i){let a=this.sliceSerialize(i),o=Is(this.stack);o.value=a}function n(i){this.exit(i)}return{enter:{[e]:t},exit:{[`${e}Target`]:r,[e]:n}}}var Ls={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 xy={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 _B={tokenize:MB},A_={text:{[Ls.leftSquareBracket]:_B}};function MB(e,t,r){let n=this;return i;function i(s){return n.previous!==Ls.eof||!n._gfmTasklistFirstContentOfListItem?r(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return Be(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s!==Ls.rightSquareBracket?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):r(s)}function o(s){return s===Ls.rightSquareBracket?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:TB},t,r)):r(s)}}function TB(e,t,r){let n=this;return je(e,i,xy.whitespace);function i(a){let o=n.events[n.events.length-1];return o&&o[1].type===xy.whitespace&&a!==Ls.eof&&!Kt(a)?t(a):r(a)}}var O_={exit:{taskListCheckValueChecked:I_,taskListCheckValueUnchecked:I_,paragraph:FB}};function I_(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked",t.checkChar=this.sliceSerialize(e)}function FB(e){let t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,i=r.children[0],a=-1,o;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&i&&i.type==="text"){for(;++a<n.length;){let s=n[a];if(s.type==="paragraph"){o=s;break}}o===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}function IB(e){let t=-1,r=0;for(let n=0,i=e.length;n<i;n++){if(r<3)if(e[n]==="-"){r++;continue}else throw new Error("Error parsing frontmatter");if(t<0&&(t=n),e[n]==="-"&&/[\r\n]/.test(e[n-1])&&e[n+1]==="-"&&e[n+2]==="-")return(0,L_.parseYaml)(e.slice(t,n-1).trim())}}function AB(e){let t=!1,r=0,n=-1;for(let i=e.length-1;i>=0;i--){if(!t&&/[`%\n\r]/.test(e[i])){e[i]==="`"&&(r++,r===3&&(t=!0,n=i-1));continue}else if(!t)return{};if(e[i]==="`"&&e[i-1]==="`"&&e[i-2]==="`"&&/[\r\n]/.test(e[i-3]))return JSON.parse(e.slice(i+1,n).trim())}}function P_(e){return[A_,As("date",`${e.getSetting("date-trigger")}{`,"}"),As("dateLink",`${e.getSetting("date-trigger")}[[`,"]]"),As("time",`${e.getSetting("time-trigger")}{`,"}"),As("embedWikilink","![[","]]"),As("wikilink","[[","]]"),T_(),C_()]}function N_(e){return[O_,Os("date",(t,r)=>{t&&(r.date=t)}),Os("dateLink",(t,r)=>{t&&(r.date=t)}),Os("time",(t,r)=>{t&&(r.time=t)}),Os("embedWikilink",(t,r)=>{if(!t)return;let n=Ym(t),i=e.app.metadataCache.getFirstLinkpathDest(n.root,e.file.path);r.fileAccessor={target:n.root,isEmbed:!0,stats:i==null?void 0:i.stat}}),Os("wikilink",(t,r)=>{if(!t)return;let n=Ym(t),i=e.app.metadataCache.getFirstLinkpathDest(n.root,e.file.path);if(r.fileAccessor={target:n.root,isEmbed:!1},i){let a=fg(e,i);r.fileMetadata=a.fileMetadata,r.fileMetadataOrder=a.fileMetadataOrder}}),M_((t,r)=>{if(!t.url||/:\/\//.test(t.url)||!/.md$/.test(t.url))return;let n=e.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(t.url),e.file.path);if(r)t.type="embedLink",t.fileAccessor={target:decodeURIComponent(t.url),isEmbed:!0,stats:n.stat};else if(t.fileAccessor={target:decodeURIComponent(t.url),isEmbed:!1},n){let i=fg(e,n);t.fileMetadata=i.fileMetadata,t.fileMetadataOrder=i.fileMetadataOrder}}),F_(),__()]}function R_(e,t){let r=IB(t),i={...AB(t)},a={};return Object.keys(r).forEach(o=>{if(o===_t){let s=r[o]==="basic"?"board":r[o];i[o]=s,a[o]=s}else Yx.has(o)?i[o]=r[o]:a[o]=r[o]}),e.compileSettings(i),{settings:i,frontmatter:a,ast:ff(t,{extensions:[ky(["yaml"]),...P_(e)],mdastExtensions:[Sy(["yaml"]),...N_(e)]})}}function Cy(e,t){return ff(t,{extensions:P_(e),mdastExtensions:N_(e)})}function gf(e,t,r){var v;let n=e.getSetting("move-tags"),i=e.getSetting("move-dates"),a=r.children.first(),o=r.children.last(),s=a.type==="paragraph"?ef(a).start:a.position.start.offset,u=o.type==="paragraph"?ef(o).end:o.position.end.offset,l={start:s,end:u},c=oy(t,l);c==="["+(r.checked?r.checkChar:" ")+"]"&&(c="");let d=c,m="";Xd(r,["text","wikilink","embedWikilink","image","inlineCode","code","hashtag"],(D,I,C)=>{var x,O;D.type==="hashtag"?(O=(x=C.children.first())==null?void 0:x.value)!=null&&O.startsWith("```")||(m+=" #"+D.value):m+=D.value||D.alt||""});let h={titleRaw:qk(Eg(Dg(c))),blockId:void 0,title:"",titleSearch:m,titleSearchRaw:m,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},checked:r.checked,checkChar:r.checked&&r.checkChar||" "};Xd(r,D=>D.type!=="paragraph",(D,I,C)=>{var O,A;let x=D;if(x.type==="blockid")return h.blockId=x.value,!0;if(x.type==="hashtag"&&!((A=(O=C.children.first())==null?void 0:O.value)!=null&&A.startsWith("```")))return h.metadata.tags||(h.metadata.tags=[]),h.metadata.tags.push("#"+x.value),n&&(d=xd(d,{start:D.position.start.offset-l.start,end:D.position.end.offset-l.start})),!0;if(x.type==="date"||x.type==="dateLink")return h.metadata.dateStr=x.date,i&&(d=xd(d,{start:D.position.start.offset-l.start,end:D.position.end.offset-l.start})),!0;if(x.type==="time")return h.metadata.timeStr=x.time,i&&(d=xd(d,{start:D.position.start.offset-l.start,end:D.position.end.offset-l.start})),!0;if(x.type==="embedWikilink")return h.metadata.fileAccessor=x.fileAccessor,!0;if(x.type==="wikilink"||x.type==="link"&&x.fileAccessor)return h.metadata.fileAccessor=x.fileAccessor,h.metadata.fileMetadata=x.fileMetadata,h.metadata.fileMetadataOrder=x.fileMetadataOrder,!0;if(x.type==="embedLink")return h.metadata.fileAccessor=x.fileAccessor,!0}),h.title=$C(e,Eg(Kk(d)));let g=h.title.indexOf(`
|
||
`),y=gb(h.title,!0);if(y!=null&&y.length){let D=h.metadata.inlineMetadata=y.reduce((x,O)=>(yi.has(O.key)?(g<=0||O.end<g)&&x.push(O):x.push(O),x),[]),I=e.getSetting("move-task-metadata"),C=e.getSetting("inline-metadata-position")!=="body";if(I||C){let x=h.title;for(let O of[...D].reverse()){let A=yi.has(O.key);A&&!I||!A&&!C||(x=x.slice(0,O.start)+x.slice(O.end))}h.title=x}}return(v=h.metadata.tags)==null||v.sort(fr),h}function OB(e,t,r){if(e.type!=="heading"||_s(e,{includeImageAlt:!1})!==R("Archive"))return!1;let n=HC(t,r);return n&&n.type==="thematicBreak"}function B_(e,t,r,n,i){let a=[],o=[];return n.children.forEach((s,u)=>{if(s.type==="heading"){let l=OB(s,n.children,u),c=ef(s),d=oy(i,c),m=!1,h=BC(n.children,u,"list",g=>{if(g.type==="heading")return!1;if(g.type==="paragraph"){let y=_s(g);if(y.startsWith("%% kanban:settings"))return!1;if(y===R("Complete"))return m=!0,!0}return!0});if(l&&h){o.push(...h.children.map(g=>({...Pc,id:et(),data:gf(e,i,g)})));return}h?a.push({...Ea,children:h.children.map(g=>{let y=gf(e,i,g);return{...Pc,id:et(),data:y}}),id:et(),data:{...co(d),shouldMarkItemsComplete:m}}):a.push({...Ea,children:[],id:et(),data:{...co(d),shouldMarkItemsComplete:m}})}}),{...Nc,id:e.file.path,children:a,data:{settings:t,frontmatter:r,archive:o,isSearching:!1,errors:[]}}}function _y(e,t,r){let n=`- [${t.data.checkChar}] ${Sg(Cd(r),t)}`,i=Cy(e,n),a=gf(e,n,i.children[0].children[0]),o=(0,pf.default)(t,{data:{$set:a}});try{ql(e,o)}catch(s){console.error(s)}return o}function V_(e,t,r,n){let i=`- [${r}] ${Cd(t)}`,a=Cy(e,i),o=gf(e,i,a.children[0].children[0]);o.forceEditMode=!!n;let s={...Pc,id:et(),data:o};try{ql(e,s)}catch(u){console.error(u)}return s}function $_(e,t){try{return(0,pf.default)(t,{children:{$set:t.children.map(r=>(0,pf.default)(r,{children:{$set:r.children.map(n=>_y(e,n,n.data.titleRaw))}}))}})}catch(r){throw e.setError(r),r}}function U_(e){return`- [${e.data.checkChar}] ${Sg(Cd(e.data.titleRaw),e)}`}function LB(e){let t=[];return t.push(`## ${jk(cd(e.data.title,e.data.maxItems))}`),t.push(""),e.data.shouldMarkItemsComplete&&t.push(gk),e.children.forEach(r=>{t.push(U_(r))}),t.push(""),t.push(""),t.push(""),t.join(`
|
||
`)}function PB(e){if(e.length){let t=[yk,"",`## ${R("Archive")}`,""];return e.forEach(r=>{t.push(U_(r))}),t.join(`
|
||
`)}return""}function W_(e){let t=e.children.reduce((n,i)=>n+LB(i),"");return["---","",(0,H_.stringifyYaml)(e.data.frontmatter),"---","",""].join(`
|
||
`)+t+PB(e.data.archive)+vk(e)}var NB=["id","date","time","titleSearch","titleSearchRaw","file"],yf=class{constructor(t){this.stateManager=t}newItem(t,r,n){return V_(this.stateManager,t,r,n)}updateItemContent(t,r){return _y(this.stateManager,t,r)}boardToMd(t){return W_(t)}mdToBoard(t){let{ast:r,settings:n,frontmatter:i}=R_(this.stateManager,t),a=B_(this.stateManager,n,i,r,t),{state:o}=this.stateManager,s=(0,z_.getAPI)();if(!this.stateManager.hasError()&&o){let u=OC(o,a,c=>NB.includes(c.last()),c=>c?c instanceof Y_.TFile?c.path:Ni(c)||Array.isArray(c)?String(c):s&&!s.value.isObject(c)?s.value.toString(c):String(c):String(c)),l=PC(o,u);return WC(this.stateManager,l,u)}return UC(this.stateManager,a)}reparseBoard(){return $_(this.stateManager,this.stateManager.state)}};var vf=class{constructor(t,r,n,i,a){this.stateReceivers=[];this.settingsNotifiers=new Map;this.viewSet=new Set;this.compiledSettings={};this.getSetting=(t,r)=>{var n;return(r==null?void 0:r[t])!==void 0?r[t]:((n=this.compiledSettings)==null?void 0:n[t])!==void 0?this.compiledSettings[t]:this.getSettingRaw(t)};this.getSettingRaw=(t,r)=>{var n,i,a;return(r==null?void 0:r[t])!==void 0?r[t]:((a=(i=(n=this.state)==null?void 0:n.data)==null?void 0:i.settings)==null?void 0:a[t])!==void 0?this.state.data.settings[t]:this.getGlobalSetting(t)};this.getGlobalSetting=t=>{let r=this.getGlobalSettings();return(r==null?void 0:r[t])!==void 0?r[t]:null};this.app=t,this.file=r.file,this.onEmpty=i,this.getGlobalSettings=a,this.parser=new yf(this),this.registerView(r,n,!0)}getAView(){return this.viewSet.values().next().value}hasError(){var t,r,n;return!!((n=(r=(t=this.state)==null?void 0:t.data)==null?void 0:r.errors)!=null&&n.length)}async registerView(t,r,n){this.viewSet.has(t)||this.viewSet.add(t),await new Promise(i=>activeWindow.setTimeout(i,10)),n?await this.newBoard(t,r):await t.prerender(this.state),t.populateViewState(this.state.data.settings)}unregisterView(t){this.viewSet.has(t)&&(this.viewSet.delete(t),this.viewSet.size===0&&this.onEmpty())}buildSettingRetrievers(){return{getGlobalSettings:this.getGlobalSettings,getGlobalSetting:this.getGlobalSetting,getSetting:this.getSetting}}async newBoard(t,r){try{let n=this.getParsedBoard(r);await t.prerender(n),this.setState(n,!1)}catch(n){this.setError(n)}}saveToDisk(){if(this.state.data.errors.length>0)return;let t=this.getAView();if(t){let r=this.parser.boardToMd(this.state);t.requestSaveToDisk(r),this.viewSet.forEach(n=>{n.data=r})}}softRefresh(){this.stateReceivers.forEach(t=>t({...this.state}))}forceRefresh(){if(this.state)try{this.compileSettings(),this.state=this.parser.reparseBoard(),this.stateReceivers.forEach(t=>t(this.state)),this.settingsNotifiers.forEach(t=>{t.forEach(r=>r())}),this.viewSet.forEach(t=>t.initHeaderButtons())}catch(t){console.error(t),this.setError(t)}}setState(t,r=!0){var n;try{let i=(n=this.state)==null?void 0:n.data.settings,a=typeof t=="function"?t(this.state):t,o=a==null?void 0:a.data.settings;i&&o&&bk(i,o)?(this.state=(0,Ps.default)(this.state,{data:{settings:{$set:o}}}),this.compileSettings(),this.state=this.parser.reparseBoard()):(this.state=a,this.compileSettings()),this.viewSet.forEach(s=>{s.initHeaderButtons(),s.validatePreviewCache(a)}),r&&this.saveToDisk(),this.stateReceivers.forEach(s=>s(this.state)),i!==o&&o&&this.settingsNotifiers.forEach((s,u)=>{(!i&&o||i[u]!==o[u])&&s.forEach(l=>l())})}catch(i){console.error(i),this.setError(i)}}useState(){let[t,r]=Ne(this.state);return Ae(()=>(this.stateReceivers.push(n=>r(n)),r(this.state),()=>{this.stateReceivers.remove(r)}),[]),t}useSetting(t){let[r,n]=Ne(this.getSetting(t));return Ae(()=>{let i=()=>n(this.getSetting(t));return this.settingsNotifiers.has(t)?this.settingsNotifiers.get(t).push(i):this.settingsNotifiers.set(t,[i]),()=>{this.settingsNotifiers.get(t).remove(i)}},[]),r}compileSettings(t){var l,c,d,m,h,g,y,v,D,I;let r=this.getGlobalSetting("metadata-keys")||[],n=this.getSettingRaw("metadata-keys",t)||[],i=Array.from(new Set([...r,...n])),a=this.getSettingRaw("date-format",t)||ja(this.app),o=this.getSettingRaw("date-display-format",t)||a,s=this.getSettingRaw("time-format",t)||Ho(this.app),u=this.getSettingRaw("archive-date-format",t)||`${a} ${s}`;this.compiledSettings={[_t]:this.getSettingRaw(_t,t)||"board","date-format":a,"date-display-format":o,"date-time-display-format":o+" "+s,"date-trigger":this.getSettingRaw("date-trigger",t)||Ad,"inline-metadata-position":this.getSettingRaw("inline-metadata-position",t)||Ul,"time-format":s,"time-trigger":this.getSettingRaw("time-trigger",t)||Od,"link-date-to-daily-note":this.getSettingRaw("link-date-to-daily-note",t),"move-dates":this.getSettingRaw("move-dates",t),"move-tags":this.getSettingRaw("move-tags",t),"move-task-metadata":this.getSettingRaw("move-task-metadata",t),"metadata-keys":i,"archive-date-separator":this.getSettingRaw("archive-date-separator")||"","archive-date-format":u,"show-add-list":(l=this.getSettingRaw("show-add-list",t))!=null?l:!0,"show-archive-all":(c=this.getSettingRaw("show-archive-all",t))!=null?c:!0,"show-view-as-markdown":(d=this.getSettingRaw("show-view-as-markdown",t))!=null?d:!0,"show-board-settings":(m=this.getSettingRaw("show-board-settings",t))!=null?m:!0,"show-search":(h=this.getSettingRaw("show-search",t))!=null?h:!0,"show-set-view":(g=this.getSettingRaw("show-set-view",t))!=null?g:!0,"tag-colors":(y=this.getSettingRaw("tag-colors",t))!=null?y:[],"tag-sort":(v=this.getSettingRaw("tag-sort",t))!=null?v:[],"date-colors":(D=this.getSettingRaw("date-colors",t))!=null?D:[],"tag-action":(I=this.getSettingRaw("tag-action",t))!=null?I:"obsidian"}}getParsedBoard(t){let r=t.trim(),n={...Nc,id:this.file.path,children:[],data:{archive:[],settings:{[_t]:"board"},frontmatter:{},isSearching:!1,errors:[]}};try{r&&(n=this.parser.mdToBoard(r))}catch(i){console.error(i),n=(0,Ps.default)(n,{data:{errors:{$push:[{description:i.toString(),stack:i.stack}]}}})}return n}setError(t){this.setState((0,Ps.default)(this.state,{data:{errors:{$push:[{description:t.toString(),stack:t.stack}]}}}),!1)}onFileMetadataChange(){this.reparseBoardFromMd()}async reparseBoardFromMd(){try{this.setState(this.getParsedBoard(this.getAView().data),!1)}catch(t){console.error(t),this.setError(t)}}async archiveCompletedCards(){let t=this.state,r=[],n=!!this.getSetting("archive-with-date"),i=this.getSetting("archive-date-separator"),a=this.getSetting("archive-date-format"),o=this.getSetting("append-archive-date"),s=l=>{let c=[(0,K_.moment)().format(a)];i&&c.push(i),c.push(l.data.titleRaw),o&&c.reverse();let d=c.join(" ");return this.parser.updateItemContent(l,d)},u=t.children.map(l=>(0,Ps.default)(l,{children:{$set:l.children.filter(c=>{let d=c.data.checked&&c.data.checkChar===Zn();return(l.data.shouldMarkItemsComplete||d)&&r.push(c),!d&&!l.data.shouldMarkItemsComplete})}}));try{this.setState((0,Ps.default)(t,{children:{$set:u},data:{archive:{$push:n?await Promise.all(r.map(l=>s(l))):r}}}))}catch(l){this.setError(l)}}getNewItem(t,r,n){return this.parser.newItem(t,r,n)}updateItemContent(t,r){return this.parser.updateItemContent(t,r)}};function RB(e){let t=e.embedRegistry.embedByExtension.md({app:e,containerEl:createDiv(),state:{}},null,"");t.load(),t.editable=!0,t.showEditor();let r=Object.getPrototypeOf(Object.getPrototypeOf(t.editMode)).constructor;return t.unload(),r}var wf=class extends Rn.Plugin{constructor(){super(...arguments);this.settings={};this.kanbanFileModes={};this.stateManagers=new Map;this.windowRegistry=new Map;this._loaded=!1;this.isShiftPressed=!1;this.handleShift=r=>{this.isShiftPressed=r.shiftKey}}async loadSettings(){this.settings=Object.assign({},await this.loadData())}async saveSettings(){await this.saveData(this.settings)}unload(){super.unload(),Promise.all(this.app.workspace.getLeavesOfType(qr).map(r=>(this.kanbanFileModes[r.id]="markdown",this.setMarkdownView(r))))}onunload(){this.MarkdownEditor=null,this.windowRegistry.forEach((r,n)=>{r.viewStateReceivers.forEach(i=>i([])),this.unmount(n)}),this.unmount(window),this.stateManagers.clear(),this.windowRegistry.clear(),this.kanbanFileModes={},this.app.workspace.unregisterHoverLinkSource(_t)}async onload(){var r,n;await this.loadSettings(),this.MarkdownEditor=RB(this.app),this.registerEditorSuggest(new nd(this.app,this)),this.registerEditorSuggest(new td(this.app,this)),this.registerEvent(this.app.workspace.on("window-open",(i,a)=>{this.mount(a)})),this.registerEvent(this.app.workspace.on("window-close",(i,a)=>{this.unmount(a)})),this.settingsTab=new Ud(this,{onSettingsChange:async i=>{this.settings=i,await this.saveSettings(),this.stateManagers.forEach(a=>{a.forceRefresh()})}}),this.addSettingTab(this.settingsTab),this.registerView(qr,i=>new pn(i,this)),this.registerMonkeyPatches(),this.registerCommands(),this.registerEvents(),this.mount(window),(n=(r=this.app.workspace.floatingSplit)==null?void 0:r.children)==null||n.forEach(i=>{this.mount(i.win)}),this.registerDomEvent(window,"keydown",this.handleShift),this.registerDomEvent(window,"keyup",this.handleShift),this.addRibbonIcon(ho,R("Create new board"),()=>{this.newKanban()})}getKanbanViews(r){let n=this.windowRegistry.get(r);return n?Array.from(n.viewMap.values()):[]}getKanbanView(r,n){let i=this.windowRegistry.get(n);if(i!=null&&i.viewMap.has(r))return i.viewMap.get(r);for(let a of this.windowRegistry.values())if(a.viewMap.has(r))return a.viewMap.get(r);return null}getStateManager(r){return this.stateManagers.get(r)}getStateManagerFromViewID(r,n){let i=this.getKanbanView(r,n);return i?this.stateManagers.get(i.file):null}useKanbanViews(r){let[n,i]=Ne(this.getKanbanViews(r));return Ae(()=>{let a=this.windowRegistry.get(r);return a==null||a.viewStateReceivers.push(i),()=>{a==null||a.viewStateReceivers.remove(i)}},[r]),n}addView(r,n,i){let a=r.getWindow(),o=this.windowRegistry.get(a);if(!o)return;o.viewMap.has(r.id)||o.viewMap.set(r.id,r);let s=r.file;this.stateManagers.has(s)?this.stateManagers.get(s).registerView(r,n,i):this.stateManagers.set(s,new vf(this.app,r,n,()=>this.stateManagers.delete(s),()=>this.settings)),o.viewStateReceivers.forEach(u=>u(this.getKanbanViews(a)))}removeView(r){let n=Array.from(this.windowRegistry.entries()).find(([,s])=>s.viewMap.has(r.id),[]);if(!n)return;let[i,a]=n,o=r.file;a.viewMap.has(r.id)&&a.viewMap.delete(r.id),this.stateManagers.has(o)&&(this.stateManagers.get(o).unregisterView(r),a.viewStateReceivers.forEach(s=>s(this.getKanbanViews(i))))}handleViewFileRename(r,n){let i=r.getWindow();if(!this.windowRegistry.has(i))return;let a=this.windowRegistry.get(i),o=`${r.leaf.id}:::${n}`;a.viewMap.has(o)&&a.viewMap.delete(o),a.viewMap.has(r.id)||a.viewMap.set(r.id,r),r.isPrimary&&this.getStateManager(r.file).softRefresh()}mount(r){if(this.windowRegistry.has(r))return;let n=r.document.body.createDiv();this.windowRegistry.set(r,{viewMap:new Map,viewStateReceivers:[],appRoot:n}),Li(cx(r,this),n)}unmount(r){if(!this.windowRegistry.has(r))return;let n=this.windowRegistry.get(r);for(let i of n.viewMap.values())this.removeView(i);Pi(n.appRoot),n.appRoot.remove(),n.viewMap.clear(),n.viewStateReceivers.length=0,n.appRoot=null,this.windowRegistry.delete(r)}async setMarkdownView(r,n=!0){await r.setViewState({type:"markdown",state:r.view.getState(),popstate:!0},{focus:n})}async setKanbanView(r){await r.setViewState({type:qr,state:r.view.getState(),popstate:!0})}async newKanban(r){var i;let n=r||this.app.fileManager.getNewFileParent(((i=app.workspace.getActiveFile())==null?void 0:i.path)||"");try{let a=await app.fileManager.createNewMarkdownFile(n,R("Untitled Kanban"));await this.app.vault.modify(a,dg),await this.app.workspace.getLeaf().setViewState({type:qr,state:{file:a.path}})}catch(a){console.error("Error creating kanban board:",a)}}registerEvents(){this.registerEvent(this.app.workspace.on("file-menu",(n,i,a,o)=>{if(a==="link-context-menu")return;let s=i instanceof Rn.TFile,u=i instanceof Rn.TFolder,l=(o==null?void 0:o.view)instanceof Rn.MarkdownView,c=(o==null?void 0:o.view)instanceof pn;if(u){n.addItem(d=>{d.setSection("action-primary").setTitle(R("New kanban board")).setIcon(ho).onClick(()=>this.newKanban(i))});return}if(!Rn.Platform.isMobile&&s&&o&&a==="sidebar-context-menu"&&hg(i)){let d=this.getKanbanViews(Dn(o.view.containerEl)),m=!1;for(let h of d)if(h.file===i){h.onPaneMenu(n,"more-options",!1),m=!0;break}if(!m){n.addItem(h=>{h.setTitle(R("Open as kanban board")).setIcon(ho).setSection("pane").onClick(()=>{this.kanbanFileModes[o.id||i.path]=qr,this.setKanbanView(o)})});return}}if(l&&s&&["more-options","pane-more-options","tab-header"].includes(a)&&hg(i)&&n.addItem(d=>{d.setTitle(R("Open as kanban board")).setIcon(ho).setSection("pane").onClick(()=>{this.kanbanFileModes[o.id||i.path]=qr,this.setKanbanView(o)})}),s&&c&&(["pane-more-options","tab-header"].includes(a)&&n.addItem(d=>{d.setTitle(R("Open as markdown")).setIcon(ho).setSection("pane").onClick(()=>{this.kanbanFileModes[o.id||i.path]="markdown",this.setMarkdownView(o)})}),Rn.Platform.isMobile)){let d=this.stateManagers.get(i),m=o.view,h=m.viewSettings[_t]||d.getSetting(_t);n.addItem(g=>{g.setTitle(R("Add a list")).setIcon("lucide-plus-circle").setSection("pane").onClick(()=>{m.emitter.emit("showLaneForm",void 0)})}).addItem(g=>{g.setTitle(R("Archive completed cards")).setIcon("lucide-archive").setSection("pane").onClick(()=>{d.archiveCompletedCards()})}).addItem(g=>{g.setTitle(R("Archive completed cards")).setIcon("lucide-archive").setSection("pane").onClick(()=>{this.stateManagers.get(i).archiveCompletedCards()})}).addItem(g=>g.setTitle(R("View as board")).setSection("pane").setIcon("lucide-trello").setChecked(h==="basic"||h==="board").onClick(()=>m.setView("board"))).addItem(g=>g.setTitle(R("View as table")).setSection("pane").setIcon("lucide-table").setChecked(h==="table").onClick(()=>m.setView("table"))).addItem(g=>g.setTitle(R("View as list")).setSection("pane").setIcon("lucide-server").setChecked(h==="list").onClick(()=>m.setView("list"))).addItem(g=>g.setTitle(R("Open board settings")).setSection("pane").setIcon("lucide-settings").onClick(()=>m.getBoardSettings()))}})),this.registerEvent(app.vault.on("rename",(n,i)=>{app.workspace.getLeavesOfType(qr).forEach(o=>{o.view.handleRename(n.path,i)})}));let r=(0,Rn.debounce)(n=>{this.stateManagers.forEach(i=>{i.file!==n&&i.onFileMetadataChange()})},2e3,!0);this.registerEvent(app.vault.on("modify",n=>{n instanceof Rn.TFile&&r(n)})),this.registerEvent(app.metadataCache.on("changed",n=>{r(n)})),this.registerEvent(app.metadataCache.on("dataview:metadata-change",(n,i)=>{r(i)})),this.registerEvent(app.metadataCache.on("dataview:api-ready",()=>{this.stateManagers.forEach(n=>{n.forceRefresh()})})),app.workspace.registerHoverLinkSource(_t,{display:"Kanban",defaultMod:!0})}registerCommands(){this.addCommand({id:"create-new-kanban-board",name:R("Create new board"),callback:()=>this.newKanban()}),this.addCommand({id:"archive-completed-cards",name:R("Archive completed cards in active board"),checkCallback:r=>{let n=app.workspace.getActiveViewOfType(pn);if(!n)return!1;if(r)return!0;this.stateManagers.get(n.file).archiveCompletedCards()}}),this.addCommand({id:"toggle-kanban-view",name:R("Toggle between Kanban and markdown mode"),checkCallback:r=>{let n=app.workspace.getActiveFile();if(!n)return!1;let i=app.metadataCache.getFileCache(n),a=!!(i!=null&&i.frontmatter)&&!!i.frontmatter[_t];if(r)return a;let o=app.workspace.getActiveViewOfType(pn);if(o)this.kanbanFileModes[o.leaf.id||n.path]="markdown",this.setMarkdownView(o.leaf);else if(a){let s=app.workspace.getActiveViewOfType(Rn.MarkdownView);s&&(this.kanbanFileModes[s.leaf.id||n.path]=qr,this.setKanbanView(s.leaf))}}}),this.addCommand({id:"convert-to-kanban",name:R("Convert empty note to Kanban"),checkCallback:r=>{let n=app.workspace.getActiveViewOfType(Rn.MarkdownView);if(!n)return!1;let i=n.file.stat.size===0;if(r)return i;i&&app.vault.modify(n.file,dg).then(()=>{this.setKanbanView(n.leaf)}).catch(a=>console.error(a))}}),this.addCommand({id:"add-kanban-lane",name:R("Add a list"),checkCallback:r=>{let n=app.workspace.getActiveViewOfType(pn);if(r)return n&&n instanceof pn;n&&n instanceof pn&&n.emitter.emit("showLaneForm",void 0)}}),this.addCommand({id:"view-board",name:R("View as board"),checkCallback:r=>{let n=app.workspace.getActiveViewOfType(pn);if(r)return n&&n instanceof pn;n&&n instanceof pn&&n.setView("board")}}),this.addCommand({id:"view-table",name:R("View as table"),checkCallback:r=>{let n=app.workspace.getActiveViewOfType(pn);if(r)return n&&n instanceof pn;n&&n instanceof pn&&n.setView("table")}}),this.addCommand({id:"view-list",name:R("View as list"),checkCallback:r=>{let n=app.workspace.getActiveViewOfType(pn);if(r)return n&&n instanceof pn;n&&n instanceof pn&&n.setView("list")}}),this.addCommand({id:"open-board-settings",name:R("Open board settings"),checkCallback:r=>{let n=app.workspace.getActiveViewOfType(pn);if(!n)return!1;if(r)return!0;n.getBoardSettings()}})}registerMonkeyPatches(){let r=this;this.app.workspace.onLayoutReady(()=>{this.register(fu(app.commands,{executeCommand(n){return function(i){let a=app.workspace.getActiveViewOfType(pn);return a&&(i!=null&&i.id)&&a.emitter.emit("hotkey",{commandId:i.id}),n.call(this,i)}}}))}),this.register(fu(this.app.workspace,{setActiveLeaf(n){return function(...i){n.apply(this,i);let a=this.getActiveViewOfType(pn);a!=null&&a.activeEditor&&(this.activeEditor=a.activeEditor)}}})),this.register(fu(Rn.WorkspaceLeaf.prototype,{detach(n){return function(){var a;let i=(a=this.view)==null?void 0:a.getState();return i!=null&&i.file&&r.kanbanFileModes[this.id||i.file]&&delete r.kanbanFileModes[this.id||i.file],n.apply(this)}},setViewState(n){return function(i,...a){var o;if(r._loaded&&i.type==="markdown"&&((o=i.state)!=null&&o.file)&&r.kanbanFileModes[this.id||i.state.file]!=="markdown"){let s=r.app.metadataCache.getCache(i.state.file);if(s!=null&&s.frontmatter&&s.frontmatter[_t]){let u={...i,type:qr};return r.kanbanFileModes[i.state.file]=qr,n.apply(this,[u,...a])}}return n.apply(this,[i,...a])}}}))}};
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/
|
||
/*! Bundled license information:
|
||
|
||
mark.js/dist/mark.js:
|
||
(*!***************************************************
|
||
* mark.js v8.11.1
|
||
* https://markjs.io/
|
||
* Copyright (c) 2014–2018, Julian Kühnel
|
||
* Released under the MIT license https://git.io/vwTVl
|
||
*****************************************************)
|
||
|
||
moment/moment.js:
|
||
(*! moment.js *)
|
||
(*! version : 2.29.4 *)
|
||
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
|
||
(*! license : MIT *)
|
||
(*! momentjs.com *)
|
||
|
||
choices.js/public/assets/scripts/choices.js:
|
||
(*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme *)
|
||
(*!
|
||
* 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
|
||
*)
|
||
|
||
is-plain-object/dist/is-plain-object.mjs:
|
||
(*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*)
|
||
|
||
@tanstack/table-core/build/lib/index.mjs:
|
||
(**
|
||
* table-core
|
||
*
|
||
* Copyright (c) TanStack
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*)
|
||
|
||
@tanstack/react-table/build/lib/index.mjs:
|
||
(**
|
||
* react-table
|
||
*
|
||
* Copyright (c) TanStack
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*)
|
||
|
||
@tanstack/match-sorter-utils/build/lib/index.mjs:
|
||
(**
|
||
* match-sorter-utils
|
||
*
|
||
* Copyright (c) TanStack
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*)
|
||
(**
|
||
* @name match-sorter
|
||
* @license MIT license.
|
||
* @copyright (c) 2099 Kent C. Dodds
|
||
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
||
*)
|
||
*/
|