406 lines
1.5 MiB
JavaScript
406 lines
1.5 MiB
JavaScript
|
|
"use strict";var ZD=Object.defineProperty;var JD=(e,t,n)=>t in e?ZD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>JD(e,typeof t!="symbol"?t+"":t,n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w0=require("obsidian");var co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function QD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var L1={};Object.defineProperty(L1,"__esModule",{value:!0});var le=w0;const QO="YYYY-MM-DD",e3="gggg-[W]ww",rh="YYYY-MM",Mh="YYYY-[Q]Q",bh="YYYY";function Uc(e){var n,o;const t=window.app.plugins.getPlugin("periodic-notes");return t&&((o=(n=t.settings)==null?void 0:n[e])==null?void 0:o.enabled)}function jc(){var e,t,n,o;try{const{internalPlugins:r,plugins:M}=window.app;if(Uc("daily")){const{format:a,folder:s,template:O}=((t=(e=M.getPlugin("periodic-notes"))==null?void 0:e.settings)==null?void 0:t.daily)||{};return{format:a||QO,folder:(s==null?void 0:s.trim())||"",template:(O==null?void 0:O.trim())||""}}const{folder:b,format:i,template:z}=((o=(n=r.getPluginById("daily-notes"))==null?void 0:n.instance)==null?void 0:o.options)||{};return{format:i||QO,folder:(b==null?void 0:b.trim())||"",template:(z==null?void 0:z.trim())||""}}catch(r){console.info("No custom daily note settings found!",r)}}function Hc(){var e,t,n,o,r,M,b;try{const i=window.app.plugins,z=(e=i.getPlugin("calendar"))==null?void 0:e.options,a=(n=(t=i.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:n.weekly;if(Uc("weekly"))return{format:a.format||e3,folder:((o=a.folder)==null?void 0:o.trim())||"",template:((r=a.template)==null?void 0:r.trim())||""};const s=z||{};return{format:s.weeklyNoteFormat||e3,folder:((M=s.weeklyNoteFolder)==null?void 0:M.trim())||"",template:((b=s.weeklyNoteTemplate)==null?void 0:b.trim())||""}}catch(i){console.info("No custom weekly note settings found!",i)}}function $c(){var t,n,o,r;const e=window.app.plugins;try{const M=Uc("monthly")&&((n=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:n.monthly)||{};return{format:M.format||rh,folder:((o=M.folder)==null?void 0:o.trim())||"",template:((r=M.template)==null?void 0:r.trim())||""}}catch(M){console.info("No custom monthly note settings found!",M)}}function Yc(){var t,n,o,r;const e=window.app.plugins;try{const M=Uc("quarterly")&&((n=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:n.quarterly)||{};return{format:M.format||Mh,folder:((o=M.folder)==null?void 0:o.trim())||"",template:((r=M.template)==null?void 0:r.trim())||""}}catch(M){console.info("No custom quarterly note settings found!",M)}}function Vc(){var t,n,o,r;const e=window.app.plugins;try{const M=Uc("yearly")&&((n=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:n.yearly)||{};return{format:M.format||bh,folder:((o=M.folder)==null?void 0:o.trim())||"",template:((r=M.template)==null?void 0:r.trim())||""}}catch(M){console.info("No custom yearly note settings found!",M)}}function ch(...e){let t=[];for(let o=0,r=e.length;o<r;o++)t=t.concat(e[o].split("/"));const n=[];for(let o=0,r=t.length;o<r;o++){const M=t[o];!M||M==="."||n.push(M)}return t[0]===""&&n.unshift(""),n.join("/")}function eB(e){let t=e.substring(e.lastIndexOf("/")+1);return t.lastIndexOf(".")!=-1&&(t=t.substring(0,t.lastIndexOf("."))),t}async function tB(e){const t=e.replace(/\\/g,"/").split("/");if(t.pop(),t.length){const n=ch(...t);window.app.vault.getAbstractFileByPath(n)||await window.app.vault.createFolder(n)}}async function Gc(e,t){
|
|||
|
|
`||y.charAt(h0)==="\r"&&y.charAt(h0+1)!==`
|
|||
|
|
`)&&(O0++,f0===0&&(f0=h0+1)),h0--}var J0=b0+O0,K1=F-f0;return $[F]={line:J0,lineStart:f0},{offset:F,line:J0+1,column:K1+1}}function x(y){if(!N(y))throw new Error("not a parser: "+y)}function G(y,F){return typeof y=="string"?y.charAt(F):y[F]}function M0(y){if(typeof y!="number")throw new Error("not a number: "+y)}function e0(y){if(typeof y!="function")throw new Error("not a function: "+y)}function c0(y){if(typeof y!="string")throw new Error("not a string: "+y)}var Q=2,x0=3,m0=8,_=5*m0,_0=4*m0,V0=" ";function T(y,F){return new Array(F+1).join(y)}function z1(y,F,$){var b0=F-y.length;return b0<=0?y:T($,b0)+y}function W0(y,F,$,b0){return{from:y-F>0?y-F:0,to:y+$>b0?b0:y+$}}function p0(y,F){var $,b0,O0,f0,h0,J0=F.index,K1=J0.offset,$e=1;if(K1===y.length)return"Got the end of the input";if(g(y)){var Se=K1-K1%m0,T2=K1-Se,me=W0(Se,_,_0+m0,y.length),Ye=a(function(U1){return a(function(To){return z1(To.toString(16),2,"0")},U1)},function(U1,To){var _o=U1.length,Pn=[],$t=0;if(_o<=To)return[U1.slice()];for(var _2=0;_2<_o;_2++)Pn[$t]||Pn.push([]),Pn[$t].push(U1[_2]),(_2+1)%To==0&&$t++;return Pn}(y.slice(me.from,me.to).toJSON().data,m0));f0=function(U1){return U1.from===0&&U1.to===1?{from:U1.from,to:U1.to}:{from:U1.from/m0,to:Math.floor(U1.to/m0)}}(me),b0=Se/m0,$=3*T2,T2>=4&&($+=1),$e=2,O0=a(function(U1){return U1.length<=4?U1.join(" "):U1.slice(0,4).join(" ")+" "+U1.slice(4).join(" ")},Ye),(h0=(8*(f0.to>0?f0.to-1:f0.to)).toString(16).length)<2&&(h0=2)}else{var Bo=y.split(/\r\n|[\n\r\u2028\u2029]/);$=J0.column-1,b0=J0.line-1,f0=W0(b0,Q,x0,Bo.length),O0=Bo.slice(f0.from,f0.to),h0=f0.to.toString().length}var pM=b0-f0.from;return g(y)&&(h0=(8*(f0.to>0?f0.to-1:f0.to)).toString(16).length)<2&&(h0=2),z(function(U1,To,_o){var Pn,$t=_o===pM,_2=$t?"> ":V0;return Pn=g(y)?z1((8*(f0.from+_o)).toString(16),h0,"0"):z1((f0.from+_o+1).toString(),h0," "),[].concat(U1,[_2+Pn+" | "+To],$t?[V0+T(" ",h0)+" | "+z1("",$," ")+T("^",$e)]:[])},[],O0).join(`
|
|||
|
|
`)}function V(y,F){return[`
|
|||
|
|
`,"-- PARSING FAILED "+T("-",50),`
|
|||
|
|
|
|||
|
|
`,p0(y,F),`
|
|||
|
|
|
|||
|
|
`,($=F.expected,$.length===1?`Expected:
|
|||
|
|
|
|||
|
|
`+$[0]:`Expected one of the following:
|
|||
|
|
|
|||
|
|
`+$.join(", ")),`
|
|||
|
|
`].join("");var $}function a0(y){return y.flags!==void 0?y.flags:[y.global?"g":"",y.ignoreCase?"i":"",y.multiline?"m":"",y.unicode?"u":"",y.sticky?"y":""].join("")}function L0(){for(var y=[].slice.call(arguments),F=y.length,$=0;$<F;$+=1)x(y[$]);return M(function(b0,O0){for(var f0,h0=new Array(F),J0=0;J0<F;J0+=1){if(!(f0=j(y[J0]._(b0,O0),f0)).status)return f0;h0[J0]=f0.value,O0=f0.index}return j(v(O0,h0),f0)})}function K0(){var y=[].slice.call(arguments);if(y.length===0)throw new Error("seqMap needs at least one argument");var F=y.pop();return e0(F),L0.apply(null,y).map(function($){return F.apply(null,$)})}function v1(){var y=[].slice.call(arguments),F=y.length;if(F===0)return F0("zero alternates");for(var $=0;$<F;$+=1)x(y[$]);return M(function(b0,O0){for(var f0,h0=0;h0<y.length;h0+=1)if((f0=j(y[h0]._(b0,O0),f0)).status)return f0;return f0})}function n1(y,F){return E(y,F).or(A0([]))}function E(y,F){return x(y),x(F),K0(y,F.then(y).many(),function($,b0){return[$].concat(b0)})}function J(y){c0(y);var F="'"+y+"'";return M(function($,b0){var O0=b0+y.length,f0=$.slice(b0,O0);return f0===y?v(O0,f0):S(b0,F)})}function o0(y,F){(function(O0){if(!(O0 instanceof RegExp))throw new Error("not a regexp: "+O0);for(var f0=a0(O0),h0=0;h0<f0.length;h0++){var J0=f0.charAt(h0);if(J0!=="i"&&J0!=="m"&&J0!=="u"&&J0!=="s")throw new Error('unsupported regexp flag "'+J0+'": '+O0)}})(y),arguments.length>=2?M0(F):F=0;var $=function(O0){return RegExp("^(?:"+O0.source+")",a0(O0))}(y),b0=""+y;return M(function(O0,f0){var h0=$.exec(O0.slice(f0));if(h0){if(0<=F&&F<=h0.length){var J0=h0[0],K1=h0[F];return v(f0+J0.length,K1)}return S(f0,"valid match group (0 to "+h0.length+") in "+b0)}return S(f0,b0)})}function A0(y){return M(function(F,$){return v($,y)})}function F0(y){return M(function(F,$){return S($,y)})}function o1(y){if(N(y))return M(function(F,$){var b0=y._(F,$);return b0.index=$,b0.value="",b0});if(typeof y=="string")return o1(J(y));if(y instanceof RegExp)return o1(o0(y));throw new Error("not a string, regexp, or parser: "+y)}function B(y){return x(y),M(function(F,$){var b0=y._(F,$),O0=F.slice($,b0.index);return b0.status?S($,'not "'+O0+'"'):v($,null)})}function O1(y){return e0(y),M(function(F,$){var b0=G(F,$);return $<F.length&&y(b0)?v($+1,b0):S($,"a character/byte matching "+y)})}function x1(y,F){arguments.length<2&&(F=y,y=void 0);var $=M(function(b0,O0){return $._=F()._,$._(b0,O0)});return y?$.desc(y):$}function Do(){return F0("fantasy-land/empty")}b.parse=function(y){if(typeof y!="string"&&!g(y))throw new Error(".parse must be called with a string or Buffer as its argument");var F,$=this.skip(n0)._(y,0);return F=$.status?{status:!0,value:$.value}:{status:!1,index:Y(y,$.furthest),expected:$.expected},delete K[y],F},b.tryParse=function(y){var F=this.parse(y);if(F.status)return F.value;var $=V(y,F),b0=new Error($);throw b0.type="ParsimmonError",b0.result=F,b0},b.assert=function(y,F){return this.chain(function($){return y($)?A0($):F0(F)})},b.or=function(y){return v1(this,y)},b.trim=function(y){return this.wrap(y,y)},b.wrap=function(y,F){return K0(y,this,F,function($,b0){return b0})},b.thru=function(y){return y(this)},b.then=function(y){return x(y),L0(this,y).map(function(F){return F[1]})},b.many=function(){var y=this;return M(function(F,$){for(var b0=[],O0=void 0;;){if(!(O0=j(y._(F,$),O0)).status)return j(v($,b0),O0);if($===O0.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");$=O0.index,b0.push(O0.value)}})},b.tieWith=function(y){return c0(y),this.map(function(F){if(function(O0){if(!k(O0))throw new Error("not an array: "+O0)}(F),F.length){c0(F[0]);for(var $=F[0],b0=1;b0<F.length;b0++)c0(F[b0]),$+=y+F[b0];return $}return""})},b.tie=function(){return this.tieWith("")},b.times=function(y,F){var $=this;return arguments.length<2&&(F=y),M0(y),M0(F),M(function(b0,O0){for(var f0=[],h0=void 0,J0=void 0,K1=0;K1<y;K1+=1){if(J0=j(h0=$._(b0,O0),J0),!h0.status)return J0;O0=h0.index,f0.push(h0.value)}for(;K1<F&&(J0=j(h0=$._(b0,O0),J0),h0.status);K1+=1)O0=h0.index
|
|||
|
|
`),B2=J(`\r
|
|||
|
|
`),Q1=v1(B2,rt,oe).desc("newline"),Rt=v1(Q1,n0);M.all=gr,M.alt=v1,M.any=Bb,M.cr=oe,M.createLanguage=function(y){var F={};for(var $ in y)({}).hasOwnProperty.call(y,$)&&function(b0){F[b0]=x1(function(){return y[b0](F)})}($);return F},M.crlf=B2,M.custom=function(y){return M(y(v,S))},M.digit=q0,M.digits=U0,M.empty=Do,M.end=Rt,M.eof=n0,M.fail=F0,M.formatError=V,M.index=Le,M.isParser=N,M.lazy=x1,M.letter=a1,M.letters=N1,M.lf=rt,M.lookahead=o1,M.makeFailure=S,M.makeSuccess=v,M.newline=Q1,M.noneOf=function(y){return O1(function(F){return y.indexOf(F)<0}).desc("none of '"+y+"'")},M.notFollowedBy=B,M.of=A0,M.oneOf=function(y){for(var F=y.split(""),$=0;$<F.length;$++)F[$]="'"+F[$]+"'";return O1(function(b0){return y.indexOf(b0)>=0}).desc(F)},M.optWhitespace=ve,M.Parser=M,M.range=function(y,F){return O1(function($){return y<=$&&$<=F}).desc(y+"-"+F)},M.regex=o0,M.regexp=o0,M.sepBy=n1,M.sepBy1=E,M.seq=L0,M.seqMap=K0,M.seqObj=function(){for(var y,F={},$=0,b0=(y=arguments,Array.prototype.slice.call(y)),O0=b0.length,f0=0;f0<O0;f0+=1){var h0=b0[f0];if(!N(h0)){if(k(h0)&&h0.length===2&&typeof h0[0]=="string"&&N(h0[1])){var J0=h0[0];if(Object.prototype.hasOwnProperty.call(F,J0))throw new Error("seqObj: duplicate key "+J0);F[J0]=!0,$++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if($===0)throw new Error("seqObj expects at least one named parser, found zero");return M(function(K1,$e){for(var Se,T2={},me=0;me<O0;me+=1){var Ye,Bo;if(k(b0[me])?(Ye=b0[me][0],Bo=b0[me][1]):(Ye=null,Bo=b0[me]),!(Se=j(Bo._(K1,$e),Se)).status)return Se;Ye&&(T2[Ye]=Se.value),$e=Se.index}return j(v($e,T2),Se)})},M.string=J,M.succeed=A0,M.takeWhile=function(y){return e0(y),M(function(F,$){for(var b0=$;b0<F.length&&y(G(F,b0));)b0++;return v(b0,F.slice($,b0))})},M.test=O1,M.whitespace=Bt,M["fantasy-land/empty"]=Do,M["fantasy-land/of"]=A0,M.Binary={bitSeq:A,bitSeqObj:function(y){l();var F={},$=0,b0=a(function(f0){if(k(f0)){var h0=f0;if(h0.length!==2)throw new Error("["+h0.join(", ")+"] should be length 2, got length "+h0.length);if(c0(h0[0]),M0(h0[1]),Object.prototype.hasOwnProperty.call(F,h0[0]))throw new Error("duplicate key in bitSeqObj: "+h0[0]);return F[h0[0]]=!0,$++,h0}return M0(f0),[null,f0]},y);if($<1)throw new Error("bitSeqObj expects at least one named pair, got ["+y.join(", ")+"]");var O0=a(function(f0){return f0[0]},b0);return A(a(function(f0){return f0[1]},b0)).map(function(f0){return z(function(h0,J0){return J0[0]!==null&&(h0[J0[0]]=J0[1]),h0},{},a(function(h0,J0){return[h0,f0[J0]]},O0))})},byte:function(y){if(l(),M0(y),y>255)throw new Error("Value specified to byte constructor ("+y+"=0x"+y.toString(16)+") is larger in value than a single byte.");var F=(y>15?"0x":"0x0")+y.toString(16);return M(function($,b0){var O0=G($,b0);return O0===y?v(b0+1,O0):S(b0,F)})},buffer:function(y){return f("buffer",y).map(function(F){return Buffer.from(F)})},encodedString:function(y,F){return f("string",F).map(function($){return $.toString(y)})},uintBE:R,uint8BE:R(1),uint16BE:R(2),uint32BE:R(4),uintLE:W,uint8LE:W(1),uint16LE:W(2),uint32LE:W(4),intBE:D,int8BE:D(1),int16BE:D(2),int32BE:D(4),intLE:w,int8LE:w(1),int16LE:w(2),int32LE:w(4),floatBE:f("floatBE",4).map(function(y){return y.readFloatBE(0)}),floatLE:f("floatLE",4).map(function(y){return y.readFloatLE(0)}),doubleBE:f("doubleBE",8).map(function(y){return y.readDoubleBE(0)}),doubleLE:f("doubleLE",8).map(function(y){return y.readDoubleLE(0)})},n.exports=M}])})})(AW);var C=AW.exports,ku=()=>/[#*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\u
|
|||
|
|
`)[0];let o=n.substring(2).trim();return C.makeSuccess(t+n.length,o)}),namedField:e=>C.alt(e.explicitNamedField,S9(F2.field).map(([t,n])=>Gp.named(X9(n),t))),sortField:e=>C.seqMap(F2.field.skip(C.optWhitespace),C.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),(t,n)=>{let o=n.length==0?"ascending":n[0].toLowerCase();return o=="desc"&&(o="descending"),o=="asc"&&(o="ascending"),{field:t,direction:o}}),headerClause:e=>e.queryType.chain(t=>{switch(t){case"table":return N4(()=>({type:t,fields:[],showId:!0}),C.seqMap(C.regexp(/WITHOUT\s+ID/i).skip(C.optWhitespace).atMost(1),C.sepBy(e.namedField,C.string(",").trim(C.optWhitespace)),(n,o)=>({type:t,fields:o,showId:n.length==0})));case"list":return N4(()=>({type:t,format:void 0,showId:!0}),C.seqMap(C.regexp(/WITHOUT\s+ID/i).skip(C.optWhitespace).atMost(1),F2.field.atMost(1),(n,o)=>({type:t,format:o.length==1?o[0]:void 0,showId:n.length==0})));case"task":return C.succeed({type:t});case"calendar":return C.whitespace.then(C.seqMap(e.namedField,n=>({type:t,showId:!0,field:n})));default:return C.fail(`Unrecognized query type '${t}'`)}}).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:e=>C.seqMap(C.regexp(/FROM/i),C.whitespace,F2.source,(t,n,o)=>o),whereClause:e=>C.seqMap(C.regexp(/WHERE/i),C.whitespace,F2.field,(t,n,o)=>({type:"where",clause:o})).desc("WHERE <expression>"),sortByClause:e=>C.seqMap(C.regexp(/SORT/i),C.whitespace,e.sortField.sepBy1(C.string(",").trim(C.optWhitespace)),(t,n,o)=>({type:"sort",fields:o})).desc("SORT field [ASC/DESC]"),limitClause:e=>C.seqMap(C.regexp(/LIMIT/i),C.whitespace,F2.field,(t,n,o)=>({type:"limit",amount:o})).desc("LIMIT <value>"),flattenClause:e=>C.seqMap(C.regexp(/FLATTEN/i).skip(C.whitespace),e.namedField,(t,n)=>({type:"flatten",field:n})).desc("FLATTEN <value> [AS <name>]"),groupByClause:e=>C.seqMap(C.regexp(/GROUP BY/i).skip(C.whitespace),e.namedField,(t,n)=>({type:"group",field:n})).desc("GROUP BY <value> [AS <name>]"),clause:e=>C.alt(e.fromClause,e.whereClause,e.sortByClause,e.limitClause,e.groupByClause,e.flattenClause),query:e=>C.seqMap(e.headerClause.trim(aO),e.fromClause.trim(aO).atMost(1),e.clause.trim(aO).many(),(t,n,o)=>({header:t,source:n.length==0?qn.folder(""):n[0],operations:o,settings:Bu}))}),aO=C.alt(C.whitespace,fW.comment).many().map(e=>e.join("")),C9=e=>{var t;return e?(t=e.plugins.plugins.dataview)==null?void 0:t.api:window.DataviewAPI},x9=e=>e.plugins.enabledPlugins.has("dataview");Lo.DATE_SHORTHANDS=i3;Lo.DURATION_TYPES=c3;Lo.EXPRESSION=F2;Lo.KEYWORDS=p3;Lo.QUERY_LANGUAGE=fW;var qW=Lo.getAPI=C9;Lo.isPluginEnabled=x9;Lo.parseField=E9;const hW=!1;var Iz=Array.isArray,Su=Array.from,F9=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,WW=Object.getOwnPropertyDescriptors,I9=Object.prototype,P9=Array.prototype,Xu=Object.getPrototypeOf;function TM(e){return typeof e=="function"}const ue=()=>{};function U9(e){return e()}function Kp(e){for(var t=0;t<e.length;t++)e[t]()}function j9(e,t,n=!1){return e===void 0?n?t():t:e}const Z2=2,mW=4,ei=8,Pz=16,bn=32,ti=64,z3=128,rM=256,Zp=512,Dt=1024,zr=2048,ub=4096,vn=8192,lb=16384,RW=32768,MM=65536,H9=1<<17,$9=1<<19,gW=1<<20,Nn=Symbol("$state"),yW=Symbol("legacy props"),Y9=Symbol("");let Jp=!1,a3=[];function LW(){Jp=!1;const e=a3.slice();a3=[],Kp(e)}function ni(e){Jp||(Jp=!0,queueMicrotask(LW)),a3.push(e)}function V9(){Jp&&LW()}const Cu=1,xu=2,vW=4,G9=8,K9=16,Z9=1,J9=2,NW=4,Q9=8,e_=16,t_=4,n_=1,o_=2,Ct=Symbol(),wW="http://www.w3.org/2000/svg";function DW(e){return e===this.v}function Fu(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Iu(e){return!Fu(e,this.v)}function r_(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function M_(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function b_(e){throw new Error("https://svelte.dev/e/effect_orphan")}function c_(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function i_(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function p_(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function z_(){throw new Error(
|
|||
|
|
* @license
|
|||
|
|
* Lodash <https://lodash.com/>
|
|||
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|||
|
|
* Released under MIT license <https://lodash.com/license>
|
|||
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|||
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|||
|
|
*/bz.exports;(function(e,t){(function(){function n(U,t0,q){switch(q.length){case 0:return U.call(t0);case 1:return U.call(t0,q[0]);case 2:return U.call(t0,q[0],q[1]);case 3:return U.call(t0,q[0],q[1],q[2])}return U.apply(t0,q)}function o(U,t0,q,D0){for(var H0=-1,k0=U==null?0:U.length;++H0<k0;){var Tt=U[H0];t0(D0,Tt,q(Tt),U)}return D0}function r(U,t0){for(var q=-1,D0=U==null?0:U.length;++q<D0&&t0(U[q],q,U)!==!1;);return U}function M(U,t0){for(var q=U==null?0:U.length;q--&&t0(U[q],q,U)!==!1;);return U}function b(U,t0){for(var q=-1,D0=U==null?0:U.length;++q<D0;)if(!t0(U[q],q,U))return!1;return!0}function i(U,t0){for(var q=-1,D0=U==null?0:U.length,H0=0,k0=[];++q<D0;){var Tt=U[q];t0(Tt,q,U)&&(k0[H0++]=Tt)}return k0}function z(U,t0){return!!(U!=null&&U.length)&&w(U,t0,0)>-1}function a(U,t0,q){for(var D0=-1,H0=U==null?0:U.length;++D0<H0;)if(q(t0,U[D0]))return!0;return!1}function s(U,t0){for(var q=-1,D0=U==null?0:U.length,H0=Array(D0);++q<D0;)H0[q]=t0(U[q],q,U);return H0}function O(U,t0){for(var q=-1,D0=t0.length,H0=U.length;++q<D0;)U[H0+q]=t0[q];return U}function l(U,t0,q,D0){var H0=-1,k0=U==null?0:U.length;for(D0&&k0&&(q=U[++H0]);++H0<k0;)q=t0(q,U[H0],H0,U);return q}function A(U,t0,q,D0){var H0=U==null?0:U.length;for(D0&&H0&&(q=U[--H0]);H0--;)q=t0(q,U[H0],H0,U);return q}function f(U,t0){for(var q=-1,D0=U==null?0:U.length;++q<D0;)if(t0(U[q],q,U))return!0;return!1}function h(U){return U.split("")}function R(U){return U.match(e8)||[]}function W(U,t0,q){var D0;return q(U,function(H0,k0,Tt){if(t0(H0,k0,Tt))return D0=k0,!1}),D0}function D(U,t0,q,D0){for(var H0=U.length,k0=q+(D0?1:-1);D0?k0--:++k0<H0;)if(t0(U[k0],k0,U))return k0;return-1}function w(U,t0,q){return t0===t0?v1(U,t0,q):D(U,k,q)}function N(U,t0,q,D0){for(var H0=q-1,k0=U.length;++H0<k0;)if(D0(U[H0],t0))return H0;return-1}function k(U){return U!==U}function g(U,t0){var q=U==null?0:U.length;return q?Y(U,t0)/q:pM}function v(U){return function(t0){return t0==null?B:t0[U]}}function S(U){return function(t0){return U==null?B:U[t0]}}function j(U,t0,q,D0,H0){return H0(U,function(k0,Tt,is){q=D0?(D0=!1,k0):t0(q,k0,Tt,is)}),q}function K(U,t0){var q=U.length;for(U.sort(t0);q--;)U[q]=U[q].value;return U}function Y(U,t0){for(var q,D0=-1,H0=U.length;++D0<H0;){var k0=t0(U[D0]);k0!==B&&(q=q===B?k0:q+k0)}return q}function x(U,t0){for(var q=-1,D0=Array(U);++q<U;)D0[q]=t0(q);return D0}function G(U,t0){return s(t0,function(q){return[q,U[q]]})}function M0(U){return U&&U.slice(0,o0(U)+1).replace(es,"")}function e0(U){return function(t0){return U(t0)}}function c0(U,t0){return s(t0,function(q){return U[q]})}function Q(U,t0){return U.has(t0)}function x0(U,t0){for(var q=-1,D0=U.length;++q<D0&&w(t0,U[q],0)>-1;);return q}function m0(U,t0){for(var q=U.length;q--&&w(t0,U[q],0)>-1;);return q}function _(U,t0){for(var q=U.length,D0=0;q--;)U[q]===t0&&++D0;return D0}function _0(U){return"\\"+X8[U]}function V0(U,t0){return U==null?B:U[t0]}function T(U){return D8.test(U)}function z1(U){return B8.test(U)}function W0(U){for(var t0,q=[];!(t0=U.next()).done;)q.push(t0.value);return q}function p0(U){var t0=-1,q=Array(U.size);return U.forEach(function(D0,H0){q[++t0]=[H0,D0]}),q}function V(U,t0){return function(q){return U(t0(q))}}function a0(U,t0){for(var q=-1,D0=U.length,H0=0,k0=[];++q<D0;){var Tt=U[q];Tt!==t0&&Tt!==q0||(U[q]=q0,k0[H0++]=q)}return k0}function L0(U){var t0=-1,q=Array(U.size);return U.forEach(function(D0){q[++t0]=D0}),q}function K0(U){var t0=-1,q=Array(U.size);return U.forEach(function(D0){q[++t0]=[D0,D0]}),q}function v1(U,t0,q){for(var D0=q-1,H0=U.length;++D0<H0;)if(U[D0]===t0)return D0;return-1}function n1(U,t0,q){for(var D0=q+1;D0--;)if(U[D0]===t0)return D0;return D0}function E(U){return T(U)?A0(U):I8(U)}function J(U){return T(U)?F0(U):h(U)}function o0(U){for(var t0=U.length;t0--&&Ky.test(U.charAt(t0)););return t0}function A0(U){for(var t0=Ms.lastIndex=0;Ms.test(U);)++t0;return t0}function F0(U){return U.match(Ms)||[]}function o1(U){return U.match(w8)||[]}var B,O1="4.17.21",x1=200,Do="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Le="Expected a function",Bb="Invalid `variable`
|
|||
|
|
/* [wrapped with `+p+`] */
|
|||
|
|
`)}function bv(c){return r1(c)||_r(c)||!!(Bf&&c&&c[Bf])}function Gn(c,p){var u=typeof c;return p=p??Ye,!!p&&(u=="number"||u!="symbol"&&i8.test(c))&&c>-1&&c%1==0&&c<p}function yt(c,p,u){if(!ae(u))return!1;var d=typeof p;return!!(d=="number"?kt(u)&&Gn(p,u.length):d=="string"&&p in u)&&X2(u[p],c)}function Bs(c,p){if(r1(c))return!1;var u=typeof c;return!(u!="number"&&u!="symbol"&&u!="boolean"&&c!=null&&!Vt(c))||Yy.test(c)||!$y.test(c)||p!=null&&c in Me(p)}function cv(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function Ts(c){var p=Ei(c),u=q[p];if(typeof u!="function"||!(p in k0.prototype))return!1;if(c===u)return!0;var d=Zs(u);return!!d&&c===d[0]}function iv(c){return!!vf&&vf in c}function Hb(c){var p=c&&c.constructor;return c===(typeof p=="function"&&p.prototype||fM)}function Vd(c){return c===c&&!ae(c)}function Gd(c,p){return function(u){return u!=null&&u[c]===p&&(p!==B||c in Me(u))}}function pv(c){var p=Fi(c,function(d){return u.size===n0&&u.clear(),d}),u=p.cache;return p}function zv(c,p){var u=c[1],d=p[1],m=u|d,L=m<(oe|rt|$),X=d==$&&u==Q1||d==$&&u==b0&&c[7].length<=p[8]||d==($|b0)&&p[7].length<=p[8]&&u==Q1;if(!L&&!X)return c;d&oe&&(c[2]=p[2],m|=u&oe?0:B2);var I=p[3];if(I){var H=c[3];c[3]=H?Td(H,I,p[4]):I,c[4]=H?a0(c[3],q0):p[4]}return I=p[5],I&&(H=c[5],c[5]=H?_d(H,I,p[6]):I,c[6]=H?a0(c[5],q0):p[6]),I=p[7],I&&(c[7]=I),d&$&&(c[8]=c[8]==null?p[8]:Mt(c[8],p[8])),c[9]==null&&(c[9]=p[9]),c[0]=p[0],c[1]=m,c}function av(c){var p=[];if(c!=null)for(var u in Me(c))p.push(u);return p}function sv(c){return Vi.call(c)}function Kd(c,p,u){return p=Ce(p===B?c.length-1:p,0),function(){for(var d=arguments,m=-1,L=Ce(d.length-p,0),X=Xe(L);++m<L;)X[m]=d[p+m];m=-1;for(var I=Xe(p+1);++m<p;)I[m]=d[m];return I[p]=u(X),n(c,this,I)}}function Zd(c,p){return p.length<2?c:wr(c,z2(p,0,-1))}function Ov(c,p){for(var u=c.length,d=Mt(p.length,u),m=_t(c);d--;){var L=p[d];c[d]=Gn(L,u)?m[L]:B}return c}function _s(c,p){if((p!=="constructor"||typeof c[p]!="function")&&p!="__proto__")return c[p]}function Jd(c,p,u){var d=p+"";return Qs(c,Mv(d,uv(nv(d),u)))}function Qd(c){var p=0,u=0;return function(){var d=mw(),m=K1-(d-u);if(u=d,m>0){if(++p>=J0)return arguments[0]}else p=0;return c.apply(B,arguments)}}function Xi(c,p){var u=-1,d=c.length,m=d-1;for(p=p===B?d:p;++u<p;){var L=fs(u,m),X=c[L];c[L]=c[u],c[u]=X}return c.length=p,c}function un(c){if(typeof c=="string"||Vt(c))return c;var p=c+"";return p=="0"&&1/c==-me?"-0":p}function Br(c){if(c!=null){try{return Yi.call(c)}catch{}try{return c+""}catch{}}return""}function uv(c,p){return r(Pn,function(u){var d="_."+u[0];p&u[1]&&!z(c,d)&&c.push(d)}),c.sort()}function ef(c){if(c instanceof k0)return c.clone();var p=new H0(c.__wrapped__,c.__chain__);return p.__actions__=_t(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function lv(c,p,u){p=(u?yt(c,p,u):p===B)?1:Ce(i1(p),0);var d=c==null?0:c.length;if(!d||p<1)return[];for(var m=0,L=0,X=Xe(ep(d/p));m<d;)X[L++]=z2(c,m,m+=p);return X}function Av(c){for(var p=-1,u=c==null?0:c.length,d=0,m=[];++p<u;){var L=c[p];L&&(m[d++]=L)}return m}function dv(){var c=arguments.length;if(!c)return[];for(var p=Xe(c-1),u=arguments[0],d=c;d--;)p[d-1]=arguments[d];return O(r1(u)?_t(u):[u],Je(p,1))}function fv(c,p,u){var d=c==null?0:c.length;return d?(p=u||p===B?1:i1(p),z2(c,p<0?0:p,d)):[]}function qv(c,p,u){var d=c==null?0:c.length;return d?(p=u||p===B?1:i1(p),p=d-p,z2(c,0,p<0?0:p)):[]}function hv(c,p){return c&&c.length?wi(c,$0(p,3),!0,!0):[]}function Wv(c,p){return c&&c.length?wi(c,$0(p,3),!0):[]}function mv(c,p,u,d){var m=c==null?0:c.length;return m?(u&&typeof u!="number"&&yt(c,p,u)&&(u=0,d=m),WL(c,p,u,d)):[]}function tf(c,p,u){var d=c==null?0:c.length;if(!d)return-1;var m=u==null?0:i1(u);return m<0&&(m=Ce(d+m,0)),D(c,$0(p,3),m)}function nf(c,p,u){var d=c==null?0:c.length;if(!d)return-1;var m=d-1;return u!==B&&(m=i1(u),m=u<0?Ce(d+m,0):Mt(m,d-1)),D(c,$0(p,3),m,!0)}function of(c){return c!=null&&c.length?Je(c,1):[]}function Rv(c){return c!=null&&c.length?Je(c,me):[]}function gv(c,p){return c!=null&&c.length?(p=p===B?1:i1(p
|
|||
|
|
`;c.replace(N0,function(j0,d1,f1,ct,Xt,Fo){return f1||(f1=ct),s0+=c.slice(z0,Fo).replace(z8,_0),d1&&(m=!0,s0+=`' +
|
|||
|
|
__e(`+d1+`) +
|
|||
|
|
'`),Xt&&(L=!0,s0+=`';
|
|||
|
|
`+Xt+`;
|
|||
|
|
__p += '`),f1&&(s0+=`' +
|
|||
|
|
((__t = (`+f1+`)) == null ? '' : __t) +
|
|||
|
|
'`),z0=Fo+j0.length,j0}),s0+=`';
|
|||
|
|
`;var I0=Y1.call(p,"variable")&&p.variable;if(I0){if(t8.test(I0))throw new Hs(Bb)}else s0=`with (obj) {
|
|||
|
|
`+s0+`
|
|||
|
|
}
|
|||
|
|
`;s0=(L?s0.replace(xy,""):s0).replace(Fy,"$1").replace(Iy,"$1;"),s0="function("+(I0||"obj")+`) {
|
|||
|
|
`+(I0?"":`obj || (obj = {});
|
|||
|
|
`)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
|
|||
|
|
function print() { __p += __j.call(arguments, '') }
|
|||
|
|
`:`;
|
|||
|
|
`)+s0+`return __p
|
|||
|
|
}`;var b1=Kf(function(){return Lf(I,X0+"return "+s0).apply(B,H)});if(b1.source=s0,Ss(b1))throw b1;return b1}function EN(c){return j1(c).toLowerCase()}function SN(c){return j1(c).toUpperCase()}function XN(c,p,u){if(c=j1(c),c&&(u||p===B))return M0(c);if(!c||!(p=Yt(p)))return c;var d=J(c),m=J(p);return So(d,x0(d,m),m0(d,m)+1).join("")}function CN(c,p,u){if(c=j1(c),c&&(u||p===B))return c.slice(0,o0(c)+1);if(!c||!(p=Yt(p)))return c;var d=J(c);return So(d,0,m0(d,J(p))+1).join("")}function xN(c,p,u){if(c=j1(c),c&&(u||p===B))return c.replace(es,"");if(!c||!(p=Yt(p)))return c;var d=J(c);return So(d,x0(d,J(p))).join("")}function FN(c,p){var u=f0,d=h0;if(ae(p)){var m="separator"in p?p.separator:m;u="length"in p?i1(p.length):u,d="omission"in p?Yt(p.omission):d}c=j1(c);var L=c.length;if(T(c)){var X=J(c);L=X.length}if(u>=L)return c;var I=u-E(d);if(I<1)return d;var H=X?So(X,0,I).join(""):c.slice(0,I);if(m===B)return H+d;if(X&&(I+=H.length-I),nO(m)){if(c.slice(I).search(m)){var z0,r0=H;for(m.global||(m=$s(m.source,j1(kA.exec(m))+"g")),m.lastIndex=0;z0=m.exec(r0);)var s0=z0.index;H=H.slice(0,s0===B?I:s0)}}else if(c.indexOf(Yt(m),I)!=I){var N0=H.lastIndexOf(m);N0>-1&&(H=H.slice(0,N0))}return H+d}function IN(c){return c=j1(c),c&&Py.test(c)?c.replace(BA,j8):c}function gf(c,p,u){return c=j1(c),p=u?B:p,p===B?z1(c)?o1(c):R(c):c.match(p)||[]}function PN(c){var p=c==null?0:c.length,u=$0();return c=p?s(c,function(d){if(typeof d[1]!="function")throw new O2(Le);return[u(d[0]),d[1]]}):[],u1(function(d){for(var m=-1;++m<p;){var L=c[m];if(n(L[0],this,d))return n(L[1],this,d)}})}function UN(c){return qL(p2(c,U0))}function xs(c){return function(){return c}}function jN(c,p){return c==null||c!==c?p:c}function St(c){return c}function Fs(c){return Ad(typeof c=="function"?c:p2(c,U0))}function HN(c){return fd(p2(c,U0))}function $N(c,p){return qd(c,p2(p,U0))}function Is(c,p,u){var d=Ve(p),m=Li(p,d);u!=null||ae(p)&&(m.length||!d.length)||(u=p,p=c,c=this,m=Li(p,Ve(p)));var L=!(ae(u)&&"chain"in u&&!u.chain),X=Kn(c);return r(m,function(I){var H=p[I];c[I]=H,X&&(c.prototype[I]=function(){var z0=this.__chain__;if(L||z0){var r0=c(this.__wrapped__);return(r0.__actions__=_t(this.__actions__)).push({func:H,args:arguments,thisArg:c}),r0.__chain__=z0,r0}return H.apply(c,O([this.value()],arguments))})}),c}function YN(){return Ze._===this&&(Ze._=uw),this}function Ps(){}function VN(c){return c=i1(c),u1(function(p){return hd(p,c)})}function yf(c){return Bs(c)?v(un(c)):SL(c)}function GN(c){return function(p){return c==null?B:wr(c,p)}}function Us(){return[]}function js(){return!1}function KN(){return{}}function ZN(){return""}function JN(){return!0}function QN(c,p){if(c=i1(c),c<1||c>Ye)return[];var u=U1,d=Mt(c,U1);p=$0(p),c-=U1;for(var m=x(d,p);++u<c;)p(u);return m}function ew(c){return r1(c)?s(c,un):Vt(c)?[c]:_t(If(j1(c)))}function tw(c){var p=++sw;return j1(c)+p}function nw(c){return c&&c.length?yi(c,St,ss):B}function ow(c,p){return c&&c.length?yi(c,$0(p,2),ss):B}function rw(c){return g(c,St)}function Mw(c,p){return g(c,$0(p,2))}function bw(c){return c&&c.length?yi(c,St,As):B}function cw(c,p){return c&&c.length?yi(c,$0(p,2),As):B}function iw(c){return c&&c.length?Y(c,St):0}function pw(c,p){return c&&c.length?Y(c,$0(p,2)):0}t0=t0==null?Ze:sM.defaults(Ze.Object(),t0,sM.pick(Ze,T8));var Xe=t0.Array,ji=t0.Date,Hs=t0.Error,Lf=t0.Function,dM=t0.Math,Me=t0.Object,$s=t0.RegExp,zw=t0.String,O2=t0.TypeError,Hi=Xe.prototype,aw=Lf.prototype,fM=Me.prototype,$i=t0["__core-js_shared__"],Yi=aw.toString,Y1=fM.hasOwnProperty,sw=0,vf=function(){var c=/[^.]+$/.exec($i&&$i.keys&&$i.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Vi=fM.toString,Ow=Yi.call(Me),uw=Ze._,lw=$s("^"+Yi.call(Y1).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gi=ed?t0.Buffer:B,Xo=t0.Symbol,Ki=t0.Uint8Array,Nf=Gi?Gi.allocUnsafe:B,Zi=V(Me.getPrototypeOf,Me),wf=Me.create,Df=fM.propertyIsEnumerable,Ji=Hi.splice,Bf=Xo?Xo.isConcatSpreadable:B,Yb=Xo?Xo.iterator:B,Tr=Xo?Xo.toStringTag:B,Qi=function(){try{var c=Dr(Me,"defineProperty");return c({},"",{}),c}catch{}}(),Aw=t0.clea
|
|||
|
|
`;break}case-3:{b=`\r
|
|||
|
|
`;break}case-2:{b=t?" ":" ";break}case-1:{if(!t&&r)continue;b=" ";break}default:b=String.fromCharCode(M)}r=M===-2,o.push(b)}return o.join("")}const TS={42:xt,43:xt,45:xt,48:xt,49:xt,50:xt,51:xt,52:xt,53:xt,54:xt,55:xt,56:xt,57:xt,62:v6},_S={91:kE},kS={[-2]:fO,[-1]:fO,32:fO},ES={35:FE,42:_p,45:[aq,_p],60:jE,61:aq,95:_p,96:pq,126:pq},SS={38:w6,92:N6},XS={[-5]:qO,[-4]:qO,[-3]:qO,33:iS,38:w6,42:B3,60:[zE,ZE],91:zS,92:[CE,N6],93:nl,95:B3,96:RE},CS={null:[B3,yS]},xS={null:[42,95]},FS={null:[]},IS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xS,contentInitial:_S,disable:FS,document:TS,flow:ES,flowInitial:kS,insideSpan:CS,string:SS,text:XS},Symbol.toStringTag,{value:"Module"}));function PS(e){const n=Gk([IS,...(e||{}).extensions||[]]),o={defined:[],lazy:{},constructs:n,content:r(oE),document:r(ME),flow:r(RS),string:r(LS),text:r(vS)};return o;function r(M){return b;function b(i){return wS(o,M,i)}}}function US(e){for(;!D6(e););return e}const sq=/[\0\t\n\r]/g;function jS(){let e=1,t="",n=!0,o;return r;function r(M,b,i){const z=[];let a,s,O,l,A;for(M=t+(typeof M=="string"?M.toString():new TextDecoder(b||void 0).decode(M)),O=0,t="",n&&(M.charCodeAt(0)===65279&&O++,n=void 0);O<M.length;){if(sq.lastIndex=O,a=sq.exec(M),l=a&&a.index!==void 0?a.index:M.length,A=M.charCodeAt(l),!a){t=M.slice(O);break}if(A===10&&O===l&&o)z.push(-3),o=void 0;else switch(o&&(z.push(-5),o=void 0),O<l&&(z.push(M.slice(O,l)),e+=l-O),A){case 0:{z.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,z.push(-2);e++<s;)z.push(-1);break}case 10:{z.push(-4),e=1;break}default:o=!0,e=1}O=l+1}return i&&(o&&z.push(-5),t&&z.push(t),z.push(null)),z}}const HS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function S6(e){return e.replace(HS,$S)}function $S(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),M=r===120||r===88;return L6(n.slice(M?2:1),M?16:10)}return el(n)||e}function kp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Oq(e.position):"start"in e||"end"in e?Oq(e):"line"in e||"column"in e?T3(e):""}function T3(e){return uq(e&&e.line)+":"+uq(e&&e.column)}function Oq(e){return T3(e&&e.start)+"-"+T3(e&&e.end)}function uq(e){return e&&typeof e=="number"?e:1}const X6={}.hasOwnProperty;function Dc(e,t,n){return typeof t!="string"&&(n=t,t=void 0),YS(n)(US(PS(n).document().write(jS()(e,t,!0))))}function YS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:M(B),autolinkProtocol:j,autolinkEmail:j,atxHeading:M(o0),blockQuote:M(K0),characterEscape:j,characterReference:j,codeFenced:M(v1),codeFencedFenceInfo:b,codeFencedFenceMeta:b,codeIndented:M(v1,b),codeText:M(n1,b),codeTextData:j,data:j,codeFlowValue:j,definition:M(E),definitionDestinationString:b,definitionLabelString:b,definitionTitleString:b,emphasis:M(J),hardBreakEscape:M(A0),hardBreakTrailing:M(A0),htmlFlow:M(F0,b),htmlFlowData:j,htmlText:M(F0,b),htmlTextData:j,image:M(o1),label:b,link:M(B),listItem:M(x1),listItemValue:l,listOrdered:M(O1,O),listUnordered:M(O1),paragraph:M(Do),reference:T,referenceString:b,resourceDestinationString:b,resourceTitleString:b,setextHeading:M(o0),strong:M(Le),thematicBreak:M(gr)},exit:{atxHeading:z(),atxHeadingSequence:k,autolink:z(),autolinkEmail:L0,autolinkProtocol:a0,blockQuote:z(),characterEscapeValue:K,characterReferenceMarkerHexadecimal:W0,characterReferenceMarkerNumeric:W0,characterReferenceValue:p0,characterReference:V,codeFenced:z(R),codeFencedFence:h,codeFencedFenceInfo:A,codeFencedFenceMeta:f,codeFlowValue:K,codeIndented:z(W),codeText:z(e0),codeTextData:K,data:K,definition:z(),definitionDestinationString:N,definitionLabelString:D,definitionTitleString:w,emphasis:z(),hardBreakEscape:z(x),hardBreakTrailing:z(x),htmlFlow:z(G),htmlFlowData:K,htmlText:z(M0),htmlTextData:K,image:z(Q),label:m0,labelText:x0,lineEnding:Y,link:z(c0),listItem:z(),listOrdered:z(),listUnordered:z(),paragraph:z(),referenceString:z1,resourceDestinationString:_,resourceTitleString:_0,resource:V0,setextHeading:z(S),setextHeadingLineSequence:v,setextHeadingText:g,strong:z(),the
|
|||
|
|
`&&F6(n.stack,n.unsafe[r]))return/[ \t]/.test(o.before)?"":" ";return`\\
|
|||
|
|
`}function eX(e,t){const n=String(e);let o=n.indexOf(t),r=o,M=0,b=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===r?++M>b&&(b=M):M=1,r=o+t.length,o=n.indexOf(t,r);return b}function _3(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function tX(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nX(e,t,n,o){const r=tX(n),M=e.value||"",b=r==="`"?"GraveAccent":"Tilde";if(_3(e,n)){const O=n.enter("codeIndented"),l=n.indentLines(M,oX);return O(),l}const i=n.createTracker(o),z=r.repeat(Math.max(eX(M,r)+1,3)),a=n.enter("codeFenced");let s=i.move(z);if(e.lang){const O=n.enter(`codeFencedLang${b}`);s+=i.move(n.safe(e.lang,{before:s,after:" ",encode:["`"],...i.current()})),O()}if(e.lang&&e.meta){const O=n.enter(`codeFencedMeta${b}`);s+=i.move(" "),s+=i.move(n.safe(e.meta,{before:s,after:`
|
|||
|
|
`,encode:["`"],...i.current()})),O()}return s+=i.move(`
|
|||
|
|
`),M&&(s+=i.move(M+`
|
|||
|
|
`)),s+=i.move(z),a(),s}function oX(e,t,n){return(n?"":" ")+e}function ol(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rX(e,t,n,o){const r=ol(n),M=r==='"'?"Quote":"Apostrophe",b=n.enter("definition");let i=n.enter("label");const z=n.createTracker(o);let a=z.move("[");return a+=z.move(n.safe(n.associationId(e),{before:a,after:"]",...z.current()})),a+=z.move("]: "),i(),!e.url||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),a+=z.move("<"),a+=z.move(n.safe(e.url,{before:a,after:">",...z.current()})),a+=z.move(">")):(i=n.enter("destinationRaw"),a+=z.move(n.safe(e.url,{before:a,after:e.title?" ":`
|
|||
|
|
`,...z.current()}))),i(),e.title&&(i=n.enter(`title${M}`),a+=z.move(" "+r),a+=z.move(n.safe(e.title,{before:a,after:r,...z.current()})),a+=z.move(r),i()),b(),a}function MX(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}I6.peek=bX;function I6(e,t,n,o){const r=MX(n),M=n.enter("emphasis"),b=n.createTracker(o);let i=b.move(r);return i+=b.move(n.containerPhrasing(e,{before:i,after:r,...b.current()})),i+=b.move(r),M(),i}function bX(e,t,n){return n.options.emphasis||"*"}const rl=function(e){if(e==null)return zX;if(typeof e=="function")return ea(e);if(typeof e=="object")return Array.isArray(e)?cX(e):iX(e);if(typeof e=="string")return pX(e);throw new Error("Expected function, string, or object as test")};function cX(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rl(e[n]);return ea(o);function o(...r){let M=-1;for(;++M<t.length;)if(t[M].apply(this,r))return!0;return!1}}function iX(e){const t=e;return ea(n);function n(o){const r=o;let M;for(M in e)if(r[M]!==t[M])return!1;return!0}}function pX(e){return ea(t);function t(n){return n&&n.type===e}}function ea(e){return t;function t(n,o,r){return!!(aX(n)&&e.call(this,n,typeof o=="number"?o:void 0,r||void 0))}}function zX(){return!0}function aX(e){return e!==null&&typeof e=="object"&&"type"in e}const P6=[],sX=!0,k3=!1,OX="skip";function uX(e,t,n,o){let r;typeof t=="function"&&typeof n!="function"?(o=n,n=t):r=t;const M=rl(r),b=o?-1:1;i(e,void 0,[])();function i(z,a,s){const O=z&&typeof z=="object"?z:{};if(typeof O.type=="string"){const A=typeof O.tagName=="string"?O.tagName:typeof O.name=="string"?O.name:void 0;Object.defineProperty(l,"name",{value:"node ("+(z.type+(A?"<"+A+">":""))+")"})}return l;function l(){let A=P6,f,h,R;if((!t||M(z,a,s[s.length-1]||void 0))&&(A=lX(n(z,s)),A[0]===k3))return A;if("children"in z&&z.children){const W=z;if(W.children&&A[0]!==OX)for(h=(o?W.children.length:-1)+b,R=s.concat(W);h>-1&&h<W.children.length;){const D=W.children[h];if(f=i(D,h,R)(),f[0]===k3)return f;h=typeof f[1]=="number"?f[1]:h+b}}return A}}}function lX(e){return Array.isArray(e)?e:typeof e=="number"?[sX,e]:e==null?P6:[e]}function AX(e,t,n,o){let r,M,b;typeof t=="function"&&typeof n!="function"?(M=void 0,b=t,r=n):(M=t,b=n,r=o),uX(e,M,i,r);function i(z,a){const s=a[a.length-1],O=s?s.children.indexOf(z):void 0;return b(z,O,s)}}function U6(e,t){let n=!1;return AX(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return n=!0,k3}),!!((!e.depth||e.depth<3)&&Qu(e)&&(t.options.setext||n))}function dX(e,t,n,o){const r=Math.max(Math.min(6,e.depth||1),1),M=n.createTracker(o);if(U6(e,n)){const s=n.enter("headingSetext"),O=n.enter("phrasing"),l=n.containerPhrasing(e,{...M.current(),before:`
|
|||
|
|
`,after:`
|
|||
|
|
`});return O(),s(),l+`
|
|||
|
|
`+(r===1?"=":"-").repeat(l.length-(Math.max(l.lastIndexOf("\r"),l.lastIndexOf(`
|
|||
|
|
`))+1))}const b="#".repeat(r),i=n.enter("headingAtx"),z=n.enter("phrasing");M.move(b+" ");let a=n.containerPhrasing(e,{before:"# ",after:`
|
|||
|
|
`,...M.current()});return/^[\t ]/.test(a)&&(a="&#x"+a.charCodeAt(0).toString(16).toUpperCase()+";"+a.slice(1)),a=a?b+" "+a:b,n.options.closeAtx&&(a+=" "+b),z(),i(),a}j6.peek=fX;function j6(e){return e.value||""}function fX(){return"<"}H6.peek=qX;function H6(e,t,n,o){const r=ol(n),M=r==='"'?"Quote":"Apostrophe",b=n.enter("image");let i=n.enter("label");const z=n.createTracker(o);let a=z.move("![");return a+=z.move(n.safe(e.alt,{before:a,after:"]",...z.current()})),a+=z.move("]("),i(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),a+=z.move("<"),a+=z.move(n.safe(e.url,{before:a,after:">",...z.current()})),a+=z.move(">")):(i=n.enter("destinationRaw"),a+=z.move(n.safe(e.url,{before:a,after:e.title?" ":")",...z.current()}))),i(),e.title&&(i=n.enter(`title${M}`),a+=z.move(" "+r),a+=z.move(n.safe(e.title,{before:a,after:r,...z.current()})),a+=z.move(r),i()),a+=z.move(")"),b(),a}function qX(){return"!"}$6.peek=hX;function $6(e,t,n,o){const r=e.referenceType,M=n.enter("imageReference");let b=n.enter("label");const i=n.createTracker(o);let z=i.move("![");const a=n.safe(e.alt,{before:z,after:"]",...i.current()});z+=i.move(a+"]["),b();const s=n.stack;n.stack=[],b=n.enter("reference");const O=n.safe(n.associationId(e),{before:z,after:"]",...i.current()});return b(),n.stack=s,M(),r==="full"||!a||a!==O?z+=i.move(O+"]"):r==="shortcut"?z=z.slice(0,-1):z+=i.move("]"),z}function hX(){return"!"}Y6.peek=WX;function Y6(e,t,n){let o=e.value||"",r="`",M=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(o);)r+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++M<n.unsafe.length;){const b=n.unsafe[M],i=n.compilePattern(b);let z;if(b.atBreak)for(;z=i.exec(o);){let a=z.index;o.charCodeAt(a)===10&&o.charCodeAt(a-1)===13&&a--,o=o.slice(0,a)+" "+o.slice(z.index+1)}}return r+o+r}function WX(){return"`"}function V6(e,t){const n=Qu(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}G6.peek=mX;function G6(e,t,n,o){const r=ol(n),M=r==='"'?"Quote":"Apostrophe",b=n.createTracker(o);let i,z;if(V6(e,n)){const s=n.stack;n.stack=[],i=n.enter("autolink");let O=b.move("<");return O+=b.move(n.containerPhrasing(e,{before:O,after:">",...b.current()})),O+=b.move(">"),i(),n.stack=s,O}i=n.enter("link"),z=n.enter("label");let a=b.move("[");return a+=b.move(n.containerPhrasing(e,{before:a,after:"](",...b.current()})),a+=b.move("]("),z(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(z=n.enter("destinationLiteral"),a+=b.move("<"),a+=b.move(n.safe(e.url,{before:a,after:">",...b.current()})),a+=b.move(">")):(z=n.enter("destinationRaw"),a+=b.move(n.safe(e.url,{before:a,after:e.title?" ":")",...b.current()}))),z(),e.title&&(z=n.enter(`title${M}`),a+=b.move(" "+r),a+=b.move(n.safe(e.title,{before:a,after:r,...b.current()})),a+=b.move(r),z()),a+=b.move(")"),i(),a}function mX(e,t,n){return V6(e,n)?"<":"["}K6.peek=RX;function K6(e,t,n,o){const r=e.referenceType,M=n.enter("linkReference");let b=n.enter("label");const i=n.createTracker(o);let z=i.move("[");const a=n.containerPhrasing(e,{before:z,after:"]",...i.current()});z+=i.move(a+"]["),b();const s=n.stack;n.stack=[],b=n.enter("reference");const O=n.safe(n.associationId(e),{before:z,after:"]",...i.current()});return b(),n.stack=s,M(),r==="full"||!a||a!==O?z+=i.move(O+"]"):r==="shortcut"?z=z.slice(0,-1):z+=i.move("]"),z}function RX(){return"["}function Ml(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gX(e){const t=Ml(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function yX(e){const t=e.options.bulletOrde
|
|||
|
|
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Sr},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|||
|
|
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Sr},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|||
|
|
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Sr},{atBreak:!0,character:"+",after:`(?:[ \r
|
|||
|
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|||
|
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|||
|
|
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Sr},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Sr},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Sr},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Sr},{atBreak:!0,character:"~"}];function IX(e){return e.label||!e.identifier?e.label||"":S6(e.identifier)}function PX(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function UX(e,t,n){const o=t.indexStack,r=e.children||[],M=[];let b=-1,i=n.before;o.push(-1);let z=t.createTracker(n);for(;++b<r.length;){const a=r[b];let s;if(o[o.length-1]=b,b+1<r.length){let O=t.handle.handlers[r[b+1].type];O&&O.peek&&(O=O.peek),s=O?O(r[b+1],e,t,{before:"",after:"",...z.current()}).charAt(0):""}else s=n.after;M.length>0&&(i==="\r"||i===`
|
|||
|
|
`)&&a.type==="html"&&(M[M.length-1]=M[M.length-1].replace(/(\r?\n|\r)$/," "),i=" ",z=t.createTracker(n),z.move(M.join(""))),M.push(z.move(t.handle(a,e,t,{...z.current(),before:i,after:s}))),i=M[M.length-1].slice(-1)}return o.pop(),M.join("")}function jX(e,t,n){const o=t.indexStack,r=e.children||[],M=t.createTracker(n),b=[];let i=-1;for(o.push(-1);++i<r.length;){const z=r[i];o[o.length-1]=i,b.push(M.move(t.handle(z,e,t,{before:`
|
|||
|
|
`,after:`
|
|||
|
|
`,...M.current()}))),z.type!=="list"&&(t.bulletLastUsed=void 0),i<r.length-1&&b.push(M.move(HX(z,r[i+1],e,t)))}return o.pop(),b.join("")}function HX(e,t,n,o){let r=o.join.length;for(;r--;){const M=o.join[r](e,t,n,o);if(M===!0||M===1)break;if(typeof M=="number")return`
|
|||
|
|
`.repeat(1+M);if(M===!1)return`
|
|||
|
|
|
|||
|
|
<!---->
|
|||
|
|
|
|||
|
|
`}return`
|
|||
|
|
|
|||
|
|
`}const $X=/\r?\n|\r/g;function YX(e,t){const n=[];let o=0,r=0,M;for(;M=$X.exec(e);)b(e.slice(o,M.index)),n.push(M[0]),o=M.index+M[0].length,r++;return b(e.slice(o)),n.join("");function b(i){n.push(t(i,r,!i))}}function VX(e,t,n){const o=(n.before||"")+(t||"")+(n.after||""),r=[],M=[],b={};let i=-1;for(;++i<e.unsafe.length;){const s=e.unsafe[i];if(!F6(e.stack,s))continue;const O=e.compilePattern(s);let l;for(;l=O.exec(o);){const A="before"in s||!!s.atBreak,f="after"in s,h=l.index+(A?l[1].length:0);r.includes(h)?(b[h].before&&!A&&(b[h].before=!1),b[h].after&&!f&&(b[h].after=!1)):(r.push(h),b[h]={before:A,after:f})}}r.sort(GX);let z=n.before?n.before.length:0;const a=o.length-(n.after?n.after.length:0);for(i=-1;++i<r.length;){const s=r[i];s<z||s>=a||s+1<a&&r[i+1]===s+1&&b[s].after&&!b[s+1].before&&!b[s+1].after||r[i-1]===s-1&&b[s].before&&!b[s-1].before&&!b[s-1].after||(z!==s&&M.push(hq(o.slice(z,s),"\\")),z=s,/[!-/:-@[-`{-~]/.test(o.charAt(s))&&(!n.encode||!n.encode.includes(o.charAt(s)))?M.push("\\"):(M.push("&#x"+o.charCodeAt(s).toString(16).toUpperCase()+";"),z++))}return M.push(hq(o.slice(z,a),n.after)),M.join("")}function GX(e,t){return e-t}function hq(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,o=[],r=[],M=e+t;let b=-1,i=0,z;for(;z=n.exec(M);)o.push(z.index);for(;++b<o.length;)i!==o[b]&&r.push(e.slice(i,o[b])),r.push("\\"),i=o[b];return r.push(e.slice(i)),r.join("")}function KX(e){const t=e||{},n=t.now||{};let o=t.lineShift||0,r=n.line||1,M=n.column||1;return{move:z,current:b,shift:i};function b(){return{now:{line:r,column:M},lineShift:o}}function i(a){o+=a}function z(a){const s=a||"",O=s.split(/\r?\n|\r/g),l=O[O.length-1];return r+=O.length-1,M=O.length===1?M+l.length:1+l.length+o,s}}function ZX(e,t={}){const n={enter:r,indentLines:YX,associationId:IX,containerPhrasing:tC,containerFlow:nC,createTracker:KX,compilePattern:PX,safe:oC,stack:[],unsafe:[...FX],join:[...CX],handlers:{...XX},options:{},indexStack:[],handle:void 0};x6(n,t),n.options.tightDefinitions&&n.join.push(eC),n.handle=GS("type",{invalid:JX,unknown:QX,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:`
|
|||
|
|
`,after:`
|
|||
|
|
`,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
|
|||
|
|
`),o;function r(M){return n.stack.push(M),b;function b(){n.stack.pop()}}}function JX(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function QX(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function eC(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function tC(e,t){return UX(e,this,t)}function nC(e,t){return jX(e,this,t)}function oC(e,t){return VX(this,e,t)}function rC(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Array.from(typeof e=="string"?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var r=o.reduce(function(i,z){var a=z.match(/\n([\t ]+|(?!\s).)/g);return a?i.concat(a.map(function(s){var O,l;return(l=(O=s.match(/[\t ]/g))===null||O===void 0?void 0:O.length)!==null&&l!==void 0?l:0})):i},[]);if(r.length){var M=new RegExp(`
|
|||
|
|
[ ]{`+Math.min.apply(Math,r)+"}","g");o=o.map(function(i){return i.replace(M,`
|
|||
|
|
`)})}o[0]=o[0].replace(/^\r?\n/,"");var b=o[0];return t.forEach(function(i,z){var a=b.match(/(?:^|\n)( *)$/),s=a?a[1]:"",O=i;typeof i=="string"&&i.includes(`
|
|||
|
|
`)&&(O=String(i).split(`
|
|||
|
|
`).map(function(l,A){return A===0?l:""+s+l}).join(`
|
|||
|
|
`)),b+=O+o[z+1]}),b}const MC="[-*+]",bC="\\d+[.)]",Q6=`(${MC}|${bC})`,cC=`\\s*${Q6}\\s+`,iC="\\s*\\[(?<completion>[^\\]])]\\s+",em="\\s?-{1,2}\\s?",tm="\\d{1,2}",nm="\\d{2}",pC="[:. ]",zC=":",om="\\s?[apAP][mM](?!\\w)",bl="\\d{4}-\\d{2}-\\d{2}",E3=`(${tm})(?:${pC}?(${nm}))?(${om})?`,Wq=`${tm}${zC}${nm}(${om})?`,aC=new RegExp(cC),sC=new RegExp(iC),OC=new RegExp(E3),uC=/^(#+)\s/,lC=/\s\^[a-z1-9-]+$/i,Bc=new RegExp(`^(?<start>${E3})(?:${em}(?<end>${E3}))?`,"im"),Tc=new RegExp(`(?<start>${Wq})(?:${em}(?<end>${Wq}))?`,"im"),rm=new RegExp(`(\\[scheduled\\s*::\\s*)${bl}(\\])`),Mm=new RegExp(`(\\(scheduled\\s*::\\s*)${bl}(\\))`),cl=new RegExp(`(⏳\\s*)${bl}`),AC=[rm,Mm,cl],bm=/\[([^\]]+)::([^\]]+)\]/g,dC=/(-|\d+[.)])\s+/g,fC=/\\\[/g,qC=new RegExp(`^( {4})+(?=${Q6})`,"gm"),hC=/\n+/g,WC=" ";function mC(e){return e.includes("[ ]")?e.replace("[ ]","[x]"):e.replace("[x]","[ ]")}function RC(e,t){return`${"#".repeat(e)} ${t}`}function gC(e,t,n){const o=e.split(`
|
|||
|
|
`),r=o[t];return t1.isNotVoid(r,`No line #${t} in text with ${o.length} lines`),o[t]=n(r),o.join(`
|
|||
|
|
`)}function yC(e){return e.replaceAll(hC,`
|
|||
|
|
`)}function cm(e,t){return e.map(n=>`${t}${n}`)}function im(e,t){return cm(e.split(`
|
|||
|
|
`),t).join(`
|
|||
|
|
`)}function Qr(e){return e.split(`
|
|||
|
|
`)[0]}function pm(e){return e.split(`
|
|||
|
|
`).slice(1).join(`
|
|||
|
|
`)}function il(e){return e.replace(aC,"").replace(sC,"")}function LC(e){return WC.repeat(e)}function vC(e){return`[${e}]`}function NC(e,t){let n=e;return e.length>0&&(n=n.trimEnd(),n=n.concat(`
|
|||
|
|
`,`
|
|||
|
|
`)),n.concat(t,`
|
|||
|
|
`,`
|
|||
|
|
`)}function pl(e,t,n,o){if(t.trim().length===0)return e;const r=DC(e,t);if((r==null?void 0:r.start)===void 0){if(o!=null&&o.createHeading){const{plannerHeadingLevel:O,plannerHeading:l}=o.settings,A=NC(e,RC(O,l));return pl(A,t,n)}return e}const M=e.split(`
|
|||
|
|
`),b=M.slice(0,r.start),i=r.start+r.length,z=M.slice(r.start,i).join(`
|
|||
|
|
`),a=M.slice(i),s=n(z).split(`
|
|||
|
|
`);return b.concat(s,a).join(`
|
|||
|
|
`)}function wC(e){const t=uC.exec(e);if(!t)return;const[,n]=t;return{level:n.length}}function DC(e,t){const n=e.split(`
|
|||
|
|
`),o={start:void 0,length:0,level:0};for(let r=0;r<n.length;r++){const M=n[r],b=wC(M);if(o.start!==void 0){if(b&&b.level<=o.level)return o;o.length++}else b&&M.includes(t)&&(o.start=r,o.level=b.level,o.length=1)}if(o.start!==void 0)return o}const zm=window.moment;function Ut(e){return e.diff(e.clone().startOf("day"),"minutes")}function cr(e,t){return Math.abs(e.diff(t,"minutes"))}function BC(e,t){const n=e.startOf("isoWeek"),o={monday:0,sunday:1,saturday:2,friday:3};return n.subtract(o[t],"days")}function am(e,t){return t.clone().startOf("day").add(e,"minutes")}function TC(e){return zm().startOf("day").add(e,"minutes")}function _C(e){return zm().startOf("day").add(e,"hours")}function kC(e,t){return e.clone().add(t,"minutes")}function mq(e,t,n){return n.isBefore(e)?"past":t.isAfter(e)?"future":"present"}function zl(e,t,n=[]){const o=e.clone().endOf("day");if(t.isBefore(o))return[...n,[e,t]];const r=e.clone().add(1,"day").startOf("day");return zl(r,t,[...n,[e,o]])}function EC(e){return e.isoWeekday()===6||e.isoWeekday()===7}function SC(e,t){return window.moment.utc(t.diff(e,"milliseconds"))}function XC(e,t){return e.isSameOrAfter(t.start)&&e.isBefore(t.end)}function al(e,t){return e.start.isBefore(t.end)&&e.end.isAfter(t.start)}function Rq(e,t){const n=OC.exec(e);if(n===null)throw new Error(`${e} is not a valid timestamp`);const[,o,r,M]=n;let b=parseInt(o);if(isNaN(b))throw new Error(`${e} is not a valid timestamp`);const i=parseInt(r)||0;(M==null?void 0:M.toLowerCase().trim())==="pm"&&b<12&&(b+=12),(M==null?void 0:M.toLowerCase().trim())==="am"&&b===12&&(b=0);const z=window.moment.duration({hours:b,minutes:i});return t.clone().startOf("day").add(z)}function CC(e){const t=e.trim();return Bc.exec(t)||Tc.exec(t)}function xC(e){const t=e.trim();return Bc.test(t)||Tc.test(t)}function FC(e,t){return Bc.test(e)?e.replace(Bc,t):Tc.test(e)?e.replace(Tc,t):`${t} ${e}`}function S3({line:e,day:t}){const n=CC(e);if(!(n!=null&&n.groups))return null;const{groups:{start:o,end:r}}=n,M=Rq(o,t);let b;if(r){const i=Rq(r,t);i.isAfter(M)?b=cr(i,M):b=cr(M,i.clone().add(1,"day"))}return{startTime:M,durationMinutes:b}}function IC(e){return e.status?e.text:`${il(Qr(e.text))}
|
|||
|
|
${rC(pm(e.text)).trimStart()}`}function PC(e,t){const n=window.moment(),o=S3({line:e,day:n}),r=S3({line:t,day:n});return!o&&!r?0:o?r?o.startTime.diff(r.startTime):-1:1}function sl(e){return KC(ZX(e,{bullet:"-",listItemIndent:"tab"}).replace(dC,"- ").replace(fC,"["))}function UC(e){const t=Dc(e),n={...t,children:t.children.map(o=>Ol(o,sm))};return sl(n)}function Ol(e,t=jC){return um(e)?{...e,children:e.children.map(n=>({...n,children:n.children.map(o=>Ol(o,t))})).toSorted(t)}:e}function X3(e,t){if(t(e))return e;if(Om(e))for(const n of e.children){const o=X3(n,t);if(o)return o}}function gq(e,t,n){return hn(e,o=>{const r=o.children.findIndex(M=>yq(M)&&QM(M)===t);if(r>=0){const M=o.children.slice(r+1),b=M.findIndex(s=>yq(s)),i=b===-1?void 0:b,a=M.slice(0,i).find(s=>um(s));a?a.children.push(n):o.children.splice(r+1,0,{type:"list",children:[n]})}else o.children.push({type:"heading",depth:1,children:[{type:"text",value:t}]},{type:"list",children:[n]})})}function jC(e,t){const n=QM(e),o=QM(t);return n.localeCompare(o)}function sm(e,t){const n=QM(e),o=QM(t);return PC(n,o)}function QM(e){if(Om(e)){if(e.children.length===0)return"";const t=e.children[0];return t1.isNotVoid(t),QM(t)}return HC(e)?e.value:""}function Om(e){return Object.hasOwn(e,"children")}function HC(e){return e.type==="text"}function $C(e){return t1.isExactly(e.type,"heading")}function YC(e){return t1.isExactly(e.type,"list")}function C3(e){return t1.isExactly(e.type,"listItem")}const um=t1.check(YC),yq=t1.check($C),Lq=t1.check(C3);function VC({start:e,end:t},n){return(e.line<n.line||e.line===n.line&&e.column<=n.column)&&(t.line>n.line||t.line===n.line&&t.column>=n.column)}function vq(e){return{line:e.line-1,ch:e.column-1}}function GC(e){return{line:e.line+1,column:e.ch+1}}function KC(e){return e.replace(qC,t=>{const n=t.length/vk;return" ".repeat(n)})}var D1=(e=>(e.DRAG="DRAG",e.DRAG_AND_SHIFT_OTHERS="DRAG_AND_SHIFT_OTHERS",e.DRAG_AND_SHRINK_OTHERS="DRAG_AND_SHRINK_OTHERS",e.RESIZE="RESIZE",e.RESIZE_FROM_TOP="RESIZE_FROM_TOP",e.RESIZE_AND_SHIFT_OTHERS="RESIZE_AND_SHIFT_OTHERS",e.RESIZE_FROM_TOP_AND_SHIFT_OTHERS="RESIZE_FROM_TOP_AND_SHIFT_OTHERS",e.RESIZE_AND_SHRINK_OTHERS="RESIZE_AND_SHRINK_OTHERS",e.RESIZE_FROM_TOP_AND_SHRINK_OTHERS="RESIZE_FROM_TOP_AND_SHRINK_OTHERS",e.CREATE="CREATE",e.SCHEDULE_SEARCH_RESULT="SCHEDULE_SEARCH_RESULT",e))(D1||{});async function x3(e){return gu(e,Ru())||mu(e)}function Nq(e){const{format:t=LB,folder:n="."}=vB();let o=e.format(t);return o.endsWith(".md")||(o+=".md"),w0.normalizePath(ZC(n,o))}function ZC(...e){let t=[];for(let o=0,r=e.length;o<r;o++)t=t.concat(e[o].split("/"));const n=[];for(let o=0,r=t.length;o<r;o++){const M=t[o];!M||M==="."||n.push(M)}return t[0]===""&&n.unshift(""),n.join("/")}const JC=["task","bullet"],QC=["monday","sunday","saturday","friday"],ta={snapStepMinutes:10,progressIndicator:"mini-timeline",showTaskNotification:!1,zoomLevel:2,timelineIcon:"calendar-with-checkmark",endLabel:"All done",startHour:6,timelineDateFormat:Mi,centerNeedle:!1,plannerHeading:"Day planner",plannerHeadingLevel:1,timelineColored:!1,timelineStartColor:"#006466",timelineEndColor:"#4d194d",timestampFormat:"HH:mm",hourFormat:"H",dataviewSource:"",extendDurationUntilNext:!1,defaultDurationMinutes:30,minimalDurationMinutes:10,showTimestampInTaskBlock:!1,showUncheduledTasks:!0,showUnscheduledNestedTasks:!0,showNow:!0,showNext:!0,pluginVersion:"",showCompletedTasks:!0,showSubtasksInTaskBlocks:!0,icals:[],colorOverrides:[],releaseNotes:!0,taskStatusOnCreation:" ",eventFormatOnCreation:"task",sortTasksInPlanAfterEdit:!1,firstDayOfWeek:"monday",multiDayRange:"3-days",showTimeTracker:!1,showActiveClocks:!1};({...ta});const V1=Q2(ta),ex=Dn(V1);function bi(e){return Object.hasOwn(e,"calendar")}function tx(e){return Object.hasOwn(e,"text")}function nx(e,t,n="default"){return n==="default"?`[${e}::${t}]`:`(${e}::${t})`}function ox(e,t){const n=[...e.matchAll(bm)];if(n.length===0)throw new Error(`Did not find a prop in line: '${e}'`);const o=n[0],[,r,M]=o;return`[${r}::${t(M)}]`}function rx(e){return e.replaceAll(bm,"").trim()}function Mx(e,t){retu
|
|||
|
|
${px()}`}}function fm(e){return{...e,text:qm(Z1.filter(t=>!dm(t)),e.text)}}function qm(e,t){return e(t.split(`
|
|||
|
|
`)).join(`
|
|||
|
|
`)}function hm(e){return{...e,text:qm(Z1.map(t=>dm(t)?zx(t):t),e.text)}}function wq(e){if(!ul(e))throw new Error("The task has no active clocks");return e}function sx(e){if(ul(e))throw new Error("The task already has an active clock");return e}function Wb(){return Math.random().toString(16).slice(2)}function ll(e){return Array.isArray(e)?e:[e]}function Ox(e){const t=e.status===void 0;return" ".repeat(t?Rk:mk)}function Wm(e){const t=Ox(e),[n,...o]=e.text.split(`
|
|||
|
|
`);return[`${mm(e)} ${n}`,...cm(o,t)].join(`
|
|||
|
|
`)}const ux=" ";function Al(e,t=""){const n=im(Wm(e),t);return e.children.reduce((o,r)=>{const M=`${ux}${t}`;return`${o}
|
|||
|
|
${Al(r,M)}`},n)}function dl(e,t=[]){t.push({text:e.text,line:e.line,task:e.task});for(const n of e.children)dl(n,t);return t}function lx(e){const{sTask:t,clockMoments:n}=e,[o,r]=n;let M=r.diff(o,"minutes");return M<0&&(M=l6),{...na(t,window.moment()),isAllDayEvent:!1,startTime:o,durationMinutes:M}}function Ax(e,t){return{...na(e,t),isAllDayEvent:!1,startTime:t}}function na(e,t){return{isAllDayEvent:!0,startTime:t,durationMinutes:l6,symbol:e.symbol,status:e.status,text:Al(e),lines:dl(e),location:{path:e.path,line:e.line,position:e.position},id:Wb()}}function dx(e,t){const n=S3({line:Qr(e.text),day:t});t1.isNotVoid(n,`Unexpectedly received an STask without a timestamp: ${e.text}`);const{startTime:o,durationMinutes:r}=n;return{startTime:o,symbol:e.symbol,status:e.status,text:Al(e),lines:dl(e),durationMinutes:r,location:{path:e.path,position:e.position},id:Wb()}}function fx(e){var o,r,M;const t=(r=(o=e.scheduled)==null?void 0:o.toFormat)==null?void 0:r.call(o,hk),n=(M=Ez(e.path,"day"))==null?void 0:M.format(Mi);return t||n}function lp(e){return im(Wm(e),LC(e.position.start.col))}function mm(e){return e.status===void 0?e.symbol:`${e.symbol} ${vC(e.status)}`}function qx(e,t,n){const o=e.split(`
|
|||
|
|
`),r=t.position.end.line-t.position.start.line+1;return o.splice(t.position.start.line,r,n),o.join(`
|
|||
|
|
`)}function hx(e){return ll(e[br]).filter(Z1.isString).map(cx).filter(ix).flatMap(([t,n])=>zl(t,n)).map(t=>({sTask:e,clockMoments:t}))}const Wx=Z1.uniqBy(e=>`${e.path}::${e.position.start.line}`);function Rm(e){return Ut(e.startTime)+e.durationMinutes}function jt(e){return e.startTime.clone().add(e.durationMinutes,"minutes")}function _c(e){return Object.hasOwn(e,"startTime")||!e.isAllDayEvent}const fl=":";function gm(e){const t=[];return t.push(e.calendar.name,e.startTime.toISOString(!1),e.summary),t.join(fl)}function eb(e){if(bi(e))return gm(e);const t=[];if(_c(e)&&t.push(String(Ut(e.startTime)),String(Rm(e))),e.location){const{path:n,position:{start:{line:o}}}=e.location;t.push(n,String(o))}return t.push(e.text),t.join(fl)}function mx(e){var n;if(bi(e))return gm(e);const t=[];return t.push(((n=e.location)==null?void 0:n.path)??"blank",String(Ut(e.startTime)),String(e.durationMinutes),e.text),t.join(fl)}function Rx(e){let t;if(Bx(e)){const n=e.location;t1.isNotVoid(n,`Did not find location on task$ ${eM(e)}`),t=hn(n,o=>{o.position.start.line=o.position.end.line+1})}return{...e,location:t,id:Wb()}}function ym(e,t,n){const o=TC(e),r=kC(o,t);return`${o.format(n)} - ${r.format(n)}`}function gx(){return{withTime:[],noTime:[]}}function Or(e){return e.format(Mi)}function yx(e,t){const n=il(Qr(e.text)),o=ym(Ut(e.startTime),e.durationMinutes,Oe(V1).timestampFormat),r=mm(e),M=e.isAllDayEvent?wx(n):FC(n,o);let b=Mx(M,Or(e.startTime));t===D1.SCHEDULE_SEARCH_RESULT&&!cl.test(b)&&(b=bx(b,`⏳ ${e.startTime.format(Mi)}`));const i=pm(e.text);let z=`${r} ${b}`;return i&&(z+=`
|
|||
|
|
`,z+=i),z}function Lx(e,t){const n=lC.exec(e);if(n){const o=n[0];return e.slice(0,n.index)+t+o}return e+t}function vx(e){const{day:t,startMinutes:n,settings:o,location:r,text:M="New item",status:b,isAllDayEvent:i=!1}=e;return{location:r,id:Wb(),durationMinutes:o.defaultDurationMinutes,text:M,startTime:am(n,t),isAllDayEvent:i,symbol:"-",status:b||o.eventFormatOnCreation==="task"?o.taskStatusOnCreation:void 0}}function eM(e){return bi(e)?e.summary:Z1.flow(Qr,il,Lm)(e.text)}function Nx(e,t){const n=e.startTime.clone().startOf("day"),o=jt(e).clone().endOf("day"),r=t.start.clone().startOf("day"),M=t.end.clone().add(1,"day").startOf("day"),b={...e};return n.isBefore(r)&&(b.durationMinutes=jt(e).diff(r,"minutes"),b.startTime=r,b.truncated=[...b.truncated??[],"left"]),o.isAfter(M)&&(b.durationMinutes=cr(b.startTime,M),b.truncated=[...b.truncated??[],"right"]),b}function Lm(e){return e.replace(Bc,"")}function wx(e){return Lm(e).replace(Tc,"").trim().replace(/\s+/g," ")}function Dx(e,t){return e.startTime.isSame(t.startTime)&&e.durationMinutes===t.durationMinutes&&e.isAllDayEvent===t.isAllDayEvent}function Bx(e){return AC.some(t=>t.test(e.text))}function Tx(e,t,n){const o=e.startTime.isBefore(t)?t:e.startTime,r=jt(e),b=(r.isAfter(n)?n:r).diff(o,"minutes");return{...e,startTime:o,durationMinutes:b}}function _x(e,t){const n=e.type==="created",o=t.type==="created";return n&&o?0:n?1:o?-1:e.range.start.line-t.range.start.line}function kx(e,t){const n=e.slice();if(t.type==="created")return n.splice(t.target,0,t.contents),n;const o=t.range.start.line,r=t.range.start.col,b=t.range.end.line-o+1;if(t.type==="updated"){const z=n[o].substring(0,r)+t.contents;n.splice(o,1,z)}else t.type==="deleted"&&n.splice(o,b);return n}function Ex(e){const{updates:t,afterEach:n,settings:o}=e,r=Z1.groupBy(M=>M.path,t);return Object.entries(r).map(([M,b])=>({path:M,updateFn:i=>{const z=i.split(`
|
|||
|
|
`),a=b.filter(l=>l.type==="mdast");let O=b.filter(l=>l.type!=="mdast").toSorted(_x).toReversed().reduce(kx,z).join(`
|
|||
|
|
`);return a.length>0&&(O=pl(O,o.plannerHeading,l=>Sx(l,a),{createHeading:!0,settings:o})),n?n(O):O}}))}function Sx(e,t){const n=Dc(e),o=t.reduce((r,{updateFn:M})=>M(r),n);return sl(o)}class Xx{constructor(t){this.vaultFacade=t,this.history=[],this.writeTransaction=async n=>{const o={},r=n.map(({path:M,updateFn:b})=>this.vaultFacade.editFile(M,i=>(o[M]=i,b(i))));return this.history.push(o),Promise.all(r)},this.undo=async()=>{const n=this.history.pop();if(!n)throw new Error("No updates to revert");const o=Object.entries(n).map(([r,M])=>this.vaultFacade.editFile(r,()=>M));return Promise.all(o)}}}function Cx(e,t){return t.reduce((n,o)=>{const r=e.find(M=>M.id===o.id);return r||n.added.push(o),r&&!Dx(r,o)&&n.updated.push(o),n},{updated:[],added:[]})}function xx(e){var A,f;const{type:t,task:n,mode:o,settings:r}=e,M=yx(n,o);if(t==="added")return n.location?o===D1.SCHEDULE_SEARCH_RESULT?{type:"updated",path:n.location.path,range:{start:n.location.position.start,end:n.location.position.start},contents:Qr(M)}:{type:"created",contents:M,path:n.location.path,target:(f=(A=n.location.position)==null?void 0:A.start)==null?void 0:f.line}:{type:"mdast",path:Nq(n.startTime),updateFn:h=>{const R=Dc(M),W=X3(R,Lq);return t1.isNotVoid(W),C3(W),gq(h,r.plannerHeading,W)}};t1.isNotVoid(n.location);const{path:b}=n.location,i=n.location.position.start.line,z=M.split(`
|
|||
|
|
`).length-1,a=i+z,s={start:n.location.position.start,end:{line:a,col:0}};if(t==="deleted")return{type:"deleted",path:b,range:s};const O=Ez(b,"day");return O&&!n.startTime.isSame(O,"day")?[{type:"deleted",path:b,range:s},{type:"mdast",path:Nq(n.startTime),updateFn:h=>{const R=Dc(M),W=X3(R,Lq);return t1.isNotVoid(W),C3(W),gq(h,r.plannerHeading,W)}}]:{type:"updated",path:b,range:{start:s.start,end:s.start},contents:Qr(M)}}function Fx(e,t,n){return Object.entries(e).flatMap(([o,r])=>r.map(M=>({type:o,task:M}))).reduce((o,{type:r,task:M})=>{const b=xx({type:r,task:M,mode:t,settings:n});return o.concat(b)},[])}class Ix extends w0.Modal{constructor(t,n){super(t);const{cta:o,onAccept:r,text:M,title:b,onCancel:i}=n;this.contentEl.createEl("h2",{text:b}),this.contentEl.createEl("p",{text:M}),this.contentEl.createDiv("day-planner-modal-buttons",z=>{z.createEl("button",{text:"Cancel"}).addEventListener("click",a=>{i(a),this.close()}),z.createEl("button",{cls:"mod-cta",text:o}).addEventListener("click",async a=>{await r(a),this.close()})})}}async function Px(e){return new Promise(t=>{const{app:n,...o}=e;new Ix(n,{...o,onAccept:async()=>t(!0),onCancel:()=>t(!1)}).open()})}class Ux extends w0.SuggestModal{constructor(t){super(t.app),this.props=t,this.setInstructions([{command:"esc",purpose:"to dismiss"},{command:"↵",purpose:"to confirm"}])}getSuggestions(t){return[{text:t}]}renderSuggestion(t,n){n.createDiv({text:this.props.getDescriptionText(t.text)})}onChooseSuggestion(t,n){this.props.onChooseSuggestion(t)}close(){window.setTimeout(()=>{this.props.onClose(),super.close()})}}function jx(e){return new w0.Notice(createFragment(n=>{n.appendText("Changes saved. "),n.append(createEl("a",{text:"UNDO"},o=>{o.addEventListener("pointerup",e,{once:!0})}),createEl("div",{cls:"undo-timeout-bar"},o=>{o.style.animation=`${$4}ms linear forwards shrink`}))}),$4)}async function Hx(e){return new Promise(t=>{new Ux({app:e,getDescriptionText:n=>n.trim().length===0?"Start typing to create a task":`Create item "${n}"`,onChooseSuggestion:async({text:n})=>{t(n)},onClose:()=>{t(void 0)}}).open()})}const $x=e=>{const{app:t,settings:n,transactionWriter:o,vaultFacade:r,onEditCanceled:M}=e;let b;function i(z){return z.reduce((a,s)=>r.checkFileExists(s)?a:a.concat(s),[])}return async(z,a,s)=>{const O=Cx(z,a);if(s===D1.CREATE){const W=O.added[0];t1.isNotVoid(W);const D=await Hx(t);if(!D){M();return}O.added[0]={...W,text:D}}const l=Fx(O,s,n()),A=n().sortTasksInPlanAfterEdit?W=>pl(W,n().plannerHeading,UC):void 0,f=Ex({updates:l,afterEach:A,settings:n()}),h=[...new Set([...f.map(({path:W})=>W)])],R=i(h);if(R.length>0){if(!await Px({app:t,title:"Need to create files",text:`The following files need to be created: ${R.join("; ")}`,cta:"Create"})){M();return}await Promise.all(R.map(async D=>{const w=Ez(D,"day");t1.isNotVoid(w),await mu(w)}))}await o.writeTransaction(f),b==null||b.hide(),b=jx(o.undo)}},Yx=5*1e3,ci=kn(window.moment(),e=>{const t=setInterval(()=>{e(window.moment())},Yx);return()=>{clearInterval(t)}}),IM=Dn(ci),ql=be(ci,e=>t=>e.isSame(t,"day"));function tt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Vx=typeof Symbol=="function"&&Symbol.observable||"@@observable",Dq=Vx,hO=()=>Math.random().toString(36).substring(7).split("").join("."),Gx={INIT:`@@redux/INIT${hO()}`,REPLACE:`@@redux/REPLACE${hO()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${hO()}`},cz=Gx;function hl(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vm(e,t,n){if(typeof e!="function")throw new Error(tt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(tt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(tt(1));return n(vm)(e,t)}let o=e,r=t,M=new Map,b=M,i=0,z=!1;function a(){b===M&&(b=new
|
|||
|
|
`).forEach(function(b){r=b.indexOf(":"),n=b.substring(0,r).trim().toLowerCase(),o=b.substring(r+1).trim(),!(!n||t[n]&&nP[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t};const Uq=Symbol("internals");function rc(e){return e&&String(e).trim().toLowerCase()}function Sp(e){return e===!1||e==null?e:i0.isArray(e)?e.map(Sp):String(e)}function rP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const MP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function RO(e,t,n,o,r){if(i0.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!i0.isString(t)){if(i0.isString(o))return t.indexOf(o)!==-1;if(i0.isRegExp(o))return o.test(t)}}function bP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function cP(e,t){const n=i0.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,M,b){return this[o].call(this,t,r,M,b)},configurable:!0})})}class pa{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function M(i,z,a){const s=rc(z);if(!s)throw new Error("header name must be a non-empty string");const O=i0.findKey(r,s);(!O||r[O]===void 0||a===!0||a===void 0&&r[O]!==!1)&&(r[O||z]=Sp(i))}const b=(i,z)=>i0.forEach(i,(a,s)=>M(a,s,z));return i0.isPlainObject(t)||t instanceof this.constructor?b(t,n):i0.isString(t)&&(t=t.trim())&&!MP(t)?b(oP(t),n):t!=null&&M(n,t,o),this}get(t,n){if(t=rc(t),t){const o=i0.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return rP(r);if(i0.isFunction(n))return n.call(this,r,o);if(i0.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=rc(t),t){const o=i0.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||RO(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function M(b){if(b=rc(b),b){const i=i0.findKey(o,b);i&&(!n||RO(o,o[i],i,n))&&(delete o[i],r=!0)}}return i0.isArray(t)?t.forEach(M):M(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const M=n[o];(!t||RO(this,this[M],M,t,!0))&&(delete this[M],r=!0)}return r}normalize(t){const n=this,o={};return i0.forEach(this,(r,M)=>{const b=i0.findKey(o,M);if(b){n[b]=Sp(r),delete n[M];return}const i=t?bP(M):String(M).trim();i!==M&&delete n[M],n[i]=Sp(r),o[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return i0.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&i0.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|||
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[Uq]=this[Uq]={accessors:{}}).accessors,r=this.prototype;function M(b){const i=rc(b);o[i]||(cP(r,b),o[i]=!0)}return i0.isArray(t)?t.forEach(M):M(t),this}}pa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i0.reduceDescriptors(pa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});i0.freezeMethods(pa);var uo=pa;function gO(e,t){const n=this||Nl,o=t||n,r=uo.from(o.headers);let M=o.data;return i0.forEach(e,function(i){M=i.call(n,M,r.normalize(),t?t.status:void 0)}),r.normalize(),M}function iR(e){return!!(e&&e.__CANCEL__)}function pi(e,t,n){B1.call(this,e??"canceled",B1.ERR_CANCELED,t,n),this.name="CanceledError"}i0.inherits(pi,B1,{__CANCEL__:!0});function iP(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new B1("Request failed with status code "+n.status,[B1.ERR_BAD_REQUEST,B1.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var pP=Ln.hasStandardBrowserEnv?{write(e,t,n,o,r,M){const b=[e+"="+encodeURIComponent(t)];i0.isNumber(n)&&b.push("expires="+new Date(n).toGMTString()),i0.isString(o)&&b.push("path="+o),i0.isString(r)&&b.push("domain="+r),M===!0&&b.push("secure"),document.cookie=b.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pR(e,t){return e&&!zP(t)?aP(e,t):t}var sP=Ln.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(M){let b=M;return t&&(n.setAttribute("href",b),b=n.href),n.setAttribute("href",b),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(b){const i=i0.isString(b)?r(b):b;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function OP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uP(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,M=0,b;return t=t!==void 0?t:1e3,function(z){const a=Date.now(),s=o[M];b||(b=a),n[r]=z,o[r]=a;let O=M,l=0;for(;O!==r;)l+=n[O++],O=O%e;if(r=(r+1)%e,r===M&&(M=(M+1)%e),a-b<t)return;const A=s&&a-s;return A?Math.round(l*1e3/A):void 0}}function jq(e,t){let n=0;const o=uP(50,250);return r=>{const M=r.loaded,b=r.lengthComputable?r.total:void 0,i=M-n,z=o(i),a=M<=b;n=M;const s={loaded:M,total:b,progress:b?M/b:void 0,bytes:i,rate:z||void 0,estimated:z&&b&&a?(b-M)/z:void 0,event:r};s[t?"download":"upload"]=!0,e(s)}}const lP=typeof XMLHttpRequest<"u";var AP=lP&&function(e){return new Promise(function(n,o){let r=e.data;const M=uo.from(e.headers).normalize();let{responseType:b,withXSRFToken:i}=e,z;function a(){e.cancelToken&&e.cancelToken.unsubscribe(z),e.signal&&e.signal.removeEventListener("abort",z)}let s;if(i0.isFormData(r)){if(Ln.hasStandardBrowserEnv||Ln.hasStandardBrowserWebWorkerEnv)M.setContentType(!1);else if((s=M.getContentType())!==!1){const[h,...R]=s?s.split(";").map(W=>W.trim()).filter(Boolean):[];M.setContentType([h||"multipart/form-data",...R].join("; "))}}let O=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",R=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";M.set("Authorization","Basic "+btoa(h+":"+R))}const l=pR(e.baseURL,e.url);O.open(e.method.toUpperCase(),rR(l,e.params,e.paramsSerializer),!0),O.timeout=e.timeout;function A(){if(!O)return;const h=uo.from("getAllResponseHeaders"in O&&O.getAllR
|
|||
|
|
`+M.map(Hq).join(`
|
|||
|
|
`):" "+Hq(M[0]):"as no adapter specified";throw new B1("There is no suitable adapter to dispatch the request "+b,"ERR_NOT_SUPPORT")}return o},adapters:$3};function yO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pi(null,e)}function $q(e){return yO(e),e.headers=uo.from(e.headers),e.data=gO.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zR.getAdapter(e.adapter||Nl.adapter)(e).then(function(o){return yO(e),o.data=gO.call(e,e.transformResponse,o),o.headers=uo.from(o.headers),o},function(o){return iR(o)||(yO(e),o&&o.response&&(o.response.data=gO.call(e,e.transformResponse,o.response),o.response.headers=uo.from(o.response.headers))),Promise.reject(o)})}const Yq=e=>e instanceof uo?e.toJSON():e;function tb(e,t){t=t||{};const n={};function o(a,s,O){return i0.isPlainObject(a)&&i0.isPlainObject(s)?i0.merge.call({caseless:O},a,s):i0.isPlainObject(s)?i0.merge({},s):i0.isArray(s)?s.slice():s}function r(a,s,O){if(i0.isUndefined(s)){if(!i0.isUndefined(a))return o(void 0,a,O)}else return o(a,s,O)}function M(a,s){if(!i0.isUndefined(s))return o(void 0,s)}function b(a,s){if(i0.isUndefined(s)){if(!i0.isUndefined(a))return o(void 0,a)}else return o(void 0,s)}function i(a,s,O){if(O in t)return o(a,s);if(O in e)return o(void 0,a)}const z={url:M,method:M,data:M,baseURL:b,transformRequest:b,transformResponse:b,paramsSerializer:b,timeout:b,timeoutMessage:b,withCredentials:b,withXSRFToken:b,adapter:b,responseType:b,xsrfCookieName:b,xsrfHeaderName:b,onUploadProgress:b,onDownloadProgress:b,decompress:b,maxContentLength:b,maxBodyLength:b,beforeRedirect:b,transport:b,httpAgent:b,httpsAgent:b,cancelToken:b,socketPath:b,responseEncoding:b,validateStatus:i,headers:(a,s)=>r(Yq(a),Yq(s),!0)};return i0.forEach(Object.keys(Object.assign({},e,t)),function(s){const O=z[s]||r,l=O(e[s],t[s],s);i0.isUndefined(l)&&O!==i||(n[s]=l)}),n}const aR="1.6.7",wl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wl[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Vq={};wl.transitional=function(t,n,o){function r(M,b){return"[Axios v"+aR+"] Transitional option '"+M+"'"+b+(o?". "+o:"")}return(M,b,i)=>{if(t===!1)throw new B1(r(b," has been removed"+(n?" in "+n:"")),B1.ERR_DEPRECATED);return n&&!Vq[b]&&(Vq[b]=!0,console.warn(r(b," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(M,b,i):!0}};function fP(e,t,n){if(typeof e!="object")throw new B1("options must be an object",B1.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const M=o[r],b=t[M];if(b){const i=e[M],z=i===void 0||b(i,M,e);if(z!==!0)throw new B1("option "+M+" must be "+z,B1.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new B1("Unknown option "+M,B1.ERR_BAD_OPTION)}}var Y3={assertOptions:fP,validators:wl};const jo=Y3.validators;class az{constructor(t){this.defaults=t,this.interceptors={request:new Pq,response:new Pq}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const M=r.stack?r.stack.replace(/^.+\n/,""):"";o.stack?M&&!String(o.stack).endsWith(M.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|||
|
|
`+M):o.stack=M}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=tb(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:M}=n;o!==void 0&&Y3.assertOptions(o,{silentJSONParsing:jo.transitional(jo.boolean),forcedJSONParsing:jo.transitional(jo.boolean),clarifyTimeoutError:jo.transitional(jo.boolean)},!1),r!=null&&(i0.isFunction(r)?n.paramsSerializer={serialize:r}:Y3.assertOptions(r,{encode:jo.function,serialize:jo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let b=M&&i0.merge(M.common,M[n.method]);M&&i0.forEach(["delete","get","head","post","put","patch","common"],f=>{delete M[f]}),n.headers=uo.concat(b,M);const i=[];let z=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(z=z&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected)});let s,O=0,l;if(!z){const f=[$q.bind(this),void 0];for(f.unshift.apply(f,i),f.push.apply(f,a),l=f.length,s=Promise.resolve(n);O<l;)s=s.then(f[O++],f[O++]);return s}l=i.length;let A=n;for(O=0;O<l;){const f=i[O++],h=i[O++];try{A=f(A)}catch(R){h.call(this,R);break}}try{s=$q.call(this,A)}catch(f){return Promise.reject(f)}for(O=0,l=a.length;O<l;)s=s.then(a[O++],a[O++]);return s}getUri(t){t=tb(this.defaults,t);const n=pR(t.baseURL,t.url);return rR(n,t.params,t.paramsSerializer)}}i0.forEach(["delete","get","head","options"],function(t){az.prototype[t]=function(n,o){return this.request(tb(o||{},{method:t,url:n,data:(o||{}).data}))}});i0.forEach(["post","put","patch"],function(t){function n(o){return function(M,b,i){return this.request(tb(i||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:M,data:b}))}}az.prototype[t]=n(),az.prototype[t+"Form"]=n(!0)});var Xp=az;class Dl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(M){n=M});const o=this;this.promise.then(r=>{if(!o._listeners)return;let M=o._listeners.length;for(;M-- >0;)o._listeners[M](r);o._listeners=null}),this.promise.then=r=>{let M;const b=new Promise(i=>{o.subscribe(i),M=i}).then(r);return b.cancel=function(){o.unsubscribe(M)},b},t(function(M,b,i){o.reason||(o.reason=new pi(M,b,i),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Dl(function(r){t=r}),cancel:t}}}var qP=Dl;function hP(e){return function(n){return e.apply(null,n)}}function WP(e){return i0.isObject(e)&&e.isAxiosError===!0}const V3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(V3).forEach(([e,t])=>{V3[t]=e});var mP=V3;function sR(e){const t=new Xp(e),n=$m(Xp.prototype.requ
|
|||
|
|
//! version : 2.29.4
|
|||
|
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|||
|
|
//! license : MIT
|
|||
|
|
//! momentjs.com
|
|||
|
|
var RR;function g0(){return RR.apply(null,arguments)}function RU(e){RR=e}function en(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Vr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function X1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bl(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(X1(e,t))return!1;return!0}function Ft(e){return e===void 0}function go(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ai(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function gR(e,t){var n=[],o,r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function er(e,t){for(var n in t)X1(t,n)&&(e[n]=t[n]);return X1(t,"toString")&&(e.toString=t.toString),X1(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Cn(e,t,n,o){return VR(e,t,n,o,!0).utc()}function gU(){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 p1(e){return e._pf==null&&(e._pf=gU()),e._pf}var G3;Array.prototype.some?G3=Array.prototype.some:G3=function(e){var t=Object(this),n=t.length>>>0,o;for(o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};function Tl(e){if(e._isValid==null){var t=p1(e),n=G3.call(t.parsedDateParts,function(r){return r!=null}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o}return e._isValid}function ma(e){var t=Cn(NaN);return e!=null?er(p1(t),e):p1(t).userInvalidated=!0,t}var Zq=g0.momentProperties=[],DO=!1;function _l(e,t){var n,o,r,M=Zq.length;if(Ft(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Ft(t._i)||(e._i=t._i),Ft(t._f)||(e._f=t._f),Ft(t._l)||(e._l=t._l),Ft(t._strict)||(e._strict=t._strict),Ft(t._tzm)||(e._tzm=t._tzm),Ft(t._isUTC)||(e._isUTC=t._isUTC),Ft(t._offset)||(e._offset=t._offset),Ft(t._pf)||(e._pf=p1(t)),Ft(t._locale)||(e._locale=t._locale),M>0)for(n=0;n<M;n++)o=Zq[n],r=t[o],Ft(r)||(e[o]=r);return e}function si(e){_l(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),DO===!1&&(DO=!0,g0.updateOffset(this),DO=!1)}function tn(e){return e instanceof si||e!=null&&e._isAMomentObject!=null}function yR(e){g0.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function N2(e,t){var n=!0;return er(function(){if(g0.deprecationHandler!=null&&g0.deprecationHandler(null,e),n){var o=[],r,M,b,i=arguments.length;for(M=0;M<i;M++){if(r="",typeof arguments[M]=="object"){r+=`
|
|||
|
|
[`+M+"] ";for(b in arguments[0])X1(arguments[0],b)&&(r+=b+": "+arguments[0][b]+", ");r=r.slice(0,-2)}else r=arguments[M];o.push(r)}yR(e+`
|
|||
|
|
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|||
|
|
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Jq={};function LR(e,t){g0.deprecationHandler!=null&&g0.deprecationHandler(e,t),Jq[e]||(yR(t),Jq[e]=!0)}g0.suppressDeprecationWarnings=!1;g0.deprecationHandler=null;function xn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function yU(e){var t,n;for(n in e)X1(e,n)&&(t=e[n],xn(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function K3(e,t){var n=er({},e),o;for(o in t)X1(t,o)&&(Vr(e[o])&&Vr(t[o])?(n[o]={},er(n[o],e[o]),er(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)X1(e,o)&&!X1(t,o)&&Vr(e[o])&&(n[o]=er({},n[o]));return n}function kl(e){e!=null&&this.set(e)}var Z3;Object.keys?Z3=Object.keys:Z3=function(e){var t,n=[];for(t in e)X1(e,t)&&n.push(t);return n};var LU={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function vU(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return xn(o)?o.call(t,n):o}function En(e,t,n){var o=""+Math.abs(e),r=t-o.length,M=e>=0;return(M?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var El=/(\[[^\[]*\])|(\\)?([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,qp=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,BO={},UM={};function P0(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(UM[e]=r),t&&(UM[t[0]]=function(){return En(r.apply(this,arguments),t[1],t[2])}),n&&(UM[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function NU(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function wU(e){var t=e.match(El),n,o;for(n=0,o=t.length;n<o;n++)UM[t[n]]?t[n]=UM[t[n]]:t[n]=NU(t[n]);return function(r){var M="",b;for(b=0;b<o;b++)M+=xn(t[b])?t[b].call(r,e):t[b];return M}}function Cp(e,t){return e.isValid()?(t=vR(t,e.localeData()),BO[t]=BO[t]||wU(t),BO[t](e)):e.localeData().invalidDate()}function vR(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(qp.lastIndex=0;n>=0&&qp.test(e);)e=e.replace(qp,o),qp.lastIndex=0,n-=1;return e}var DU={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 BU(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(El).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var TU="Invalid date";function _U(){return this._invalidDate}var kU="%d",EU=/\d{1,2}/;function SU(e){return this._ordinal.replace("%d",e)}var XU={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 CU(e,t,n,o){var r=this._relativeTime[n];return xn(r)?r(e,t,n,o):r.replace(/%d/i,e)}function xU(e,t){var n=this._relativeTime[e>0?"future":"past"];return xn(n)?n(t):n.replace(/%s/i,t)}var fc={};function Wt(e,t){var n=e.toLowerCase();fc[n]=fc[n+"s"]=fc[t]=e}function w2(e){return typeof e=="string"?fc[e]||fc[e.toLowerCase()]:void 0}function Sl(e){var t={},n,o;for(o in e)X1(e,o)&&(n=w2(o),n&&(t[n]=e[o]));return t}var NR={};function mt(e,t){NR[e]=t}function FU(e){var t=[],n;for(n in e)X1(e,n)&&t.push({unit:n,priority:NR[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}function Ra(e){return e%4===0&&e%100!==0||e%400===0}function f2(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m1(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=f2(t)),n}function Rb(e,t){return function(n){return n!=null?(wR(this,e,n),g0.updateOffset(this,t),this):sz(this,e)}}function sz(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function wR(e,t
|
|||
|
|
g0.version="2.29.4";RU(ce);g0.fn=l0;g0.min=zH;g0.max=aH;g0.now=sH;g0.utc=Cn;g0.unix=F$;g0.months=P$;g0.isDate=ai;g0.locale=ir;g0.invalid=ma;g0.duration=zn;g0.isMoment=tn;g0.weekdays=j$;g0.parseZone=I$;g0.localeData=vo;g0.isDuration=xp;g0.monthsShort=U$;g0.weekdaysMin=$$;g0.defineLocale=Pl;g0.updateLocale=Ij;g0.locales=Pj;g0.weekdaysShort=H$;g0.normalizeUnits=w2;g0.relativeTimeRounding=hY;g0.relativeTimeThreshold=WY;g0.calendarFormat=XH;g0.prototype=l0;g0.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"};const RY=Object.freeze(Object.defineProperty({__proto__:null,default:g0},Symbol.toStringTag,{value:"Module"})),gY=Wu(RY);(function(e){//! moment-timezone.js
|
|||
|
|
//! version : 0.5.45
|
|||
|
|
//! Copyright (c) JS Foundation and other contributors
|
|||
|
|
//! license : MIT
|
|||
|
|
//! github.com/moment/moment-timezone
|
|||
|
|
(function(t,n){e.exports?e.exports=n(gY):n(t.moment)})(co,function(t){t.version===void 0&&t.default&&(t=t.default);var n="0.5.45",o={},r={},M={},b={},i={},z;(!t||typeof t.version!="string")&&p0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),s=+a[0],O=+a[1];(s<2||s===2&&O<6)&&p0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com");function l(E){return E>96?E-87:E>64?E-29:E-48}function A(E){var J=0,o0=E.split("."),A0=o0[0],F0=o0[1]||"",o1=1,B,O1=0,x1=1;for(E.charCodeAt(0)===45&&(J=1,x1=-1),J;J<A0.length;J++)B=l(A0.charCodeAt(J)),O1=60*O1+B;for(J=0;J<F0.length;J++)o1=o1/60,B=l(F0.charCodeAt(J)),O1+=B*o1;return O1*x1}function f(E){for(var J=0;J<E.length;J++)E[J]=A(E[J])}function h(E,J){for(var o0=0;o0<J;o0++)E[o0]=Math.round((E[o0-1]||0)+E[o0]*6e4);E[J-1]=1/0}function R(E,J){var o0=[],A0;for(A0=0;A0<J.length;A0++)o0[A0]=E[J[A0]];return o0}function W(E){var J=E.split("|"),o0=J[2].split(" "),A0=J[3].split(""),F0=J[4].split(" ");return f(o0),f(A0),f(F0),h(F0,A0.length),{name:J[0],abbrs:R(J[1].split(" "),A0),offsets:R(o0,A0),untils:F0,population:J[5]|0}}function D(E){E&&this._set(W(E))}function w(E,J){var o0=J.length;if(E<J[0])return 0;if(o0>1&&J[o0-1]===1/0&&E>=J[o0-2])return o0-1;if(E>=J[o0-1])return-1;for(var A0,F0=0,o1=o0-1;o1-F0>1;)A0=Math.floor((F0+o1)/2),J[A0]<=E?F0=A0:o1=A0;return o1}D.prototype={_set:function(E){this.name=E.name,this.abbrs=E.abbrs,this.untils=E.untils,this.offsets=E.offsets,this.population=E.population},_index:function(E){var J=+E,o0=this.untils,A0;if(A0=w(J,o0),A0>=0)return A0},countries:function(){var E=this.name;return Object.keys(M).filter(function(J){return M[J].zones.indexOf(E)!==-1})},parse:function(E){var J=+E,o0=this.offsets,A0=this.untils,F0=A0.length-1,o1,B,O1,x1;for(x1=0;x1<F0;x1++)if(o1=o0[x1],B=o0[x1+1],O1=o0[x1&&x1-1],o1<B&&V.moveAmbiguousForward?o1=B:o1>O1&&V.moveInvalidForward&&(o1=O1),J<A0[x1]-o1*6e4)return o0[x1];return o0[F0]},abbr:function(E){return this.abbrs[this._index(E)]},offset:function(E){return p0("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(E)]},utcOffset:function(E){return this.offsets[this._index(E)]}};function N(E,J){this.name=E,this.zones=J}function k(E){var J=E.toTimeString(),o0=J.match(/\([a-z ]+\)/i);o0&&o0[0]?(o0=o0[0].match(/[A-Z]/g),o0=o0?o0.join(""):void 0):(o0=J.match(/[A-Z]{3,5}/g),o0=o0?o0[0]:void 0),o0==="GMT"&&(o0=void 0),this.at=+E,this.abbr=o0,this.offset=E.getTimezoneOffset()}function g(E){this.zone=E,this.offsetScore=0,this.abbrScore=0}g.prototype.scoreOffsetAt=function(E){this.offsetScore+=Math.abs(this.zone.utcOffset(E.at)-E.offset),this.zone.abbr(E.at).replace(/[^A-Z]/g,"")!==E.abbr&&this.abbrScore++};function v(E,J){for(var o0,A0;A0=((J.at-E.at)/12e4|0)*6e4;)o0=new k(new Date(E.at+A0)),o0.offset===E.offset?E=o0:J=o0;return E}function S(){var E=new Date().getFullYear()-2,J=new k(new Date(E,0,1)),o0=J.offset,A0=[J],F0,o1,B,O1;for(O1=1;O1<48;O1++)B=new Date(E,O1,1).getTimezoneOffset(),B!==o0&&(o1=new k(new Date(E,O1,1)),F0=v(J,o1),A0.push(F0),A0.push(new k(new Date(F0.at+6e4))),J=o1,o0=B);for(O1=0;O1<4;O1++)A0.push(new k(new Date(E+O1,0,1))),A0.push(new k(new Date(E+O1,6,1)));return A0}function j(E,J){return E.offsetScore!==J.offsetScore?E.offsetScore-J.offsetScore:E.abbrScore!==J.abbrScore?E.abbrScore-J.abbrScore:E.zone.population!==J.zone.population?J.zone.population-E.zone.population:J.zone.name.localeCompare(E.zone.name)}function K(E,J){var o0,A0;for(f(J),o0=0;o0<J.length;o0++)A0=J[o0],i[A0]=i[A0]||{},i[A0][E]=!0}function Y(E){var J=E.length,o0={},A0=[],F0={},o1,B,O1,x1;for(o1=0;o1<J;o1++)if(O1=E[o1].offset,!F0.hasOwnProperty(O1)){x1=i[O1]||{};for(B in x1)x1.hasOwnProperty(B)&&(o0[B]=!0);F0[O1]=!0}for(o1 in o0)o0.hasOwnProperty(o1)&&A0.push(b[o1]);return A0}function x(){try{var E=Intl.DateTimeFormat().resolvedOptions().timeZone;if(E&&E.length>3){var J=b[M0(E)];if(J)return J;p0("Moment Timezone found "+E+" from the Intl api, but did not have that data loaded.")}}catch{}var o0=S(),A0=
|
|||
|
|
`).map(VY).filter(function(n){return n!==null});return M2(M2({},t[0]),t[1])}function Wz(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var o=n[1],r=n[2];return o&&(t.tzid=o),t.dtstart=Jl(r),t}function VY(e){if(e=e.replace(/^\s+|\s+$/,""),!e.length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return i5(e);var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return i5(e);case"DTSTART":return Wz(e);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(e))}}function i5(e){var t=e.replace(/^RRULE:/i,""),n=Wz(t),o=e.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return o.forEach(function(r){var M=r.split("="),b=M[0],i=M[1];switch(b.toUpperCase()){case"FREQ":n.freq=k1[i.toUpperCase()];break;case"WKST":n.wkst=I2[i.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var z=GY(i),a=b.toLowerCase();n[a]=z;break;case"BYWEEKDAY":case"BYDAY":n.byweekday=KY(i);break;case"DTSTART":case"TZID":var s=Wz(e);n.tzid=s.tzid,n.dtstart=s.dtstart;break;case"UNTIL":n.until=Jl(i);break;case"BYEASTER":n.byeaster=Number(i);break;default:throw new Error("Unknown RRULE property '"+b+"'")}}),n}function GY(e){if(e.indexOf(",")!==-1){var t=e.split(",");return t.map(p5)}return p5(e)}function p5(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function KY(e){var t=e.split(",");return t.map(function(n){if(n.length===2)return I2[n];var o=n.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!o||o.length<3)throw new SyntaxError("Invalid weekday string: ".concat(n));var r=Number(o[1]),M=o[2],b=I2[M].weekday;return new At(b,r)})}var mz=function(){function e(t,n){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=n}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=Zl(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:CY(this.date,this.tzid)},e}();function bu(e){for(var t=[],n="",o=Object.keys(e),r=Object.keys(tA),M=0;M<o.length;M++)if(o[M]!=="tzid"&&ee(r,o[M])){var b=o[M].toUpperCase(),i=e[o[M]],z="";if(!(!De(i)||Qt(i)&&!i.length)){switch(b){case"FREQ":z=Z0.FREQUENCIES[e.freq];break;case"WKST":fn(i)?z=new At(i).toString():z=i.toString();break;case"BYWEEKDAY":b="BYDAY",z=TY(i).map(function(A){return A instanceof At?A:Qt(A)?new At(A[0],A[1]):new At(A)}).toString();break;case"DTSTART":n=ZY(i,e.tzid);break;case"UNTIL":z=Zl(i,!e.tzid);break;default:if(Qt(i)){for(var a=[],s=0;s<i.length;s++)a[s]=String(i[s]);z=a.toString()}else z=String(i)}z&&t.push([b,z])}}var O=t.map(function(A){var f=A[0],h=A[1];return"".concat(f,"=").concat(h.toString())}).join(";"),l="";return O!==""&&(l="RRULE:".concat(O)),[n,l].filter(function(A){return!!A}).join(`
|
|||
|
|
`)}function ZY(e,t){return e?"DTSTART"+new mz(new Date(e),t).toString():""}function JY(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every(function(n,o){return n.getTime()===t[o].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var QY=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(t,n,o){n&&(n=n instanceof Date?ou(n):r5(n)),t==="all"?this.all=n:(o._value=n,this[t].push(o))},e.prototype._cacheGet=function(t,n){var o=!1,r=n?Object.keys(n):[],M=function(s){for(var O=0;O<r.length;O++){var l=r[O];if(!JY(n[l],s[l]))return!0}return!1},b=this[t];if(t==="all")o=this.all;else if(Qt(b))for(var i=0;i<b.length;i++){var z=b[i];if(!(r.length&&M(z))){o=z._value;break}}if(!o&&this.all){for(var a=new EM(t,n),i=0;i<this.all.length&&a.accept(this.all[i]);i++);o=a.getValue(),this._cacheAdd(t,o,n)}return Qt(o)?r5(o):o instanceof Date?ou(o):o},e}(),eV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],E1(1,31),!0),E1(2,28),!0),E1(3,31),!0),E1(4,30),!0),E1(5,31),!0),E1(6,30),!0),E1(7,31),!0),E1(8,31),!0),E1(9,30),!0),E1(10,31),!0),E1(11,30),!0),E1(12,31),!0),E1(1,7),!0),tV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],E1(1,31),!0),E1(2,29),!0),E1(3,31),!0),E1(4,30),!0),E1(5,31),!0),E1(6,30),!0),E1(7,31),!0),E1(8,31),!0),E1(9,30),!0),E1(10,31),!0),E1(11,30),!0),E1(12,31),!0),E1(1,7),!0),nV=Fn(1,29),oV=Fn(1,30),nr=Fn(1,31),ut=Fn(1,32),rV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],ut,!0),oV,!0),ut,!0),nr,!0),ut,!0),nr,!0),ut,!0),ut,!0),nr,!0),ut,!0),nr,!0),ut,!0),ut.slice(0,7),!0),MV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],ut,!0),nV,!0),ut,!0),nr,!0),ut,!0),nr,!0),ut,!0),ut,!0),nr,!0),ut,!0),nr,!0),ut,!0),ut.slice(0,7),!0),bV=Fn(-28,0),cV=Fn(-29,0),or=Fn(-30,0),lt=Fn(-31,0),iV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],lt,!0),cV,!0),lt,!0),or,!0),lt,!0),or,!0),lt,!0),lt,!0),or,!0),lt,!0),or,!0),lt,!0),lt.slice(0,7),!0),pV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],lt,!0),bV,!0),lt,!0),or,!0),lt,!0),or,!0),lt,!0),lt,!0),or,!0),lt,!0),or,!0),lt,!0),lt.slice(0,7),!0),zV=[0,31,60,91,121,152,182,213,244,274,305,335,366],aV=[0,31,59,90,120,151,181,212,243,273,304,334,365],z5=function(){for(var e=[],t=0;t<55;t++)e=e.concat(Fn(7));return e}();function sV(e,t){var n=lr(e,1,1),o=Wc(e)?366:365,r=Wc(e+1)?366:365,M=nu(n),b=nb(n),i=M2(M2({yearlen:o,nextyearlen:r,yearordinal:M,yearweekday:b},OV(e)),{wnomask:null});if(Wn(t.byweekno))return i;i.wnomask=E1(0,o+7);var z,a,s=z=q2(7-b+t.wkst,7);s>=4?(s=0,a=i.yearlen+q2(b-t.wkst,7)):a=o-s;for(var O=Math.floor(a/7),l=q2(a,7),A=Math.floor(O+l/4),f=0;f<t.byweekno.length;f++){var h=t.byweekno[f];if(h<0&&(h+=A+1),h>0&&h<=A){var R=void 0;h>1?(R=s+(h-1)*7,s!==z&&(R-=7-z)):R=s;for(var W=0;W<7&&(i.wnomask[R]=1,R++,i.wdaymask[R]!==t.wkst);W++);}}if(ee(t.byweekno,1)){var R=s+A*7;if(s!==z&&(R-=7-z),R<o)for(var f=0;f<7&&(i.wnomask[R]=1,R+=1,i.wdaymask[R]!==t.wkst);f++);}if(s){var D=void 0;if(ee(t.byweekno,-1))D=-1;else{var w=nb(lr(e-1,1,1)),N=q2(7-w.valueOf()+t.wkst,7),k=Wc(e-1)?366:365,g=void 0;N>=4?(N=0,g=k+q2(w-t.wkst,7)):g=o-s,D=Math.floor(52+q2(g,7)/4)}if(ee(t.byweekno,D))for(var R=0;R<s;R++)i.wnomask[R]=1}return i}function OV(e){var t=Wc(e)?366:365,n=lr(e,1,1),o=nb(n);return t===365?{mmask:eV,mdaymask:MV,nmdaymask:pV,wdaymask:z5.slice(o),mrange:aV}:{mmask:tV,mdaymask:rV,nmdaymask:iV,wdaymask:z5.slice(o),mrange:zV}}function uV(e,t,n,o,r,M){var b={lastyear:e,lastmonth:t,nwdaymask:[]},i=[];if(M.freq===Z0.YEARLY)if(Wn(M.bymonth))i=[[0,n]];else for(var z=0;z<M.bymonth.length;z++)t=M.bymonth[z],i.push(o.slice(t-1,t+1));else M.freq===Z0.MONTHLY&&(i=[o.slice(t-1,t+1)]);if(Wn(i))return b;b.nwdaymask=E1(0,n);for(var z=0;z<i.length;z++)for(var a=i[z],s=a[0],O=a[1]-1,l=0;l<M.bynweekday.length;l++){var A=void 0,f=M.bynweekday[l],h=f[0],R=f[1];R<0?(A=O+(R+1)*7,A-=q2(r[A]-h,7)):(A=s+(R-1)*7,A+=q2(7-r[A]+h,7)),s<=A&&A<=O&&(b.nwdaymask[A]=1)}return b}function lV(e,t){t===void 0&&(t=0);var n=e%19,o=Math.floor(e/100),r=e%100,M=Math.floor(o/4),b=o%4,i=Math.floor((o+8)/25),z=Math.floor((o-i+1)/3),a=Math.floor(19*n+o-M-z+15)%30,s=M
|
|||
|
|
`),o=0;o<n.length;){var r=n[o]=n[o].replace(/\s+$/g,"");r?o>0&&r[0]===" "?(n[o-1]+=r.slice(1),n.splice(o,1)):o+=1:n.splice(o,1)}return n}function wV(e){e.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function O5(e,t){return wV(t),e.split(",").map(function(n){return Jl(n)})}function u5(e){var t=this;return function(n){if(n!==void 0&&(t["_".concat(e)]=n),t["_".concat(e)]!==void 0)return t["_".concat(e)];for(var o=0;o<t._rrule.length;o++){var r=t._rrule[o].origOptions[e];if(r)return r}}}var Rg=function(e){Ql(t,e);function t(n){n===void 0&&(n=!1);var o=e.call(this,{},n)||this;return o.dtstart=u5.apply(o,["dtstart"]),o.tzid=u5.apply(o,["tzid"]),o._rrule=[],o._rdate=[],o._exrule=[],o._exdate=[],o}return t.prototype._iter=function(n){return mV(n,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(n){l5(n,this._rrule)},t.prototype.exrule=function(n){l5(n,this._exrule)},t.prototype.rdate=function(n){A5(n,this._rdate)},t.prototype.exdate=function(n){A5(n,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(n){return cu(n.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(n){return cu(n.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(n){return new Date(n.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(n){return new Date(n.getTime())})},t.prototype.valueOf=function(){var n=[];return!this._rrule.length&&this._dtstart&&(n=n.concat(bu({dtstart:this._dtstart}))),this._rrule.forEach(function(o){n=n.concat(o.toString().split(`
|
|||
|
|
`))}),this._exrule.forEach(function(o){n=n.concat(o.toString().split(`
|
|||
|
|
`).map(function(r){return r.replace(/^RRULE:/,"EXRULE:")}).filter(function(r){return!/^DTSTART/.test(r)}))}),this._rdate.length&&n.push(d5("RDATE",this._rdate,this.tzid())),this._exdate.length&&n.push(d5("EXDATE",this._exdate,this.tzid())),n},t.prototype.toString=function(){return this.valueOf().join(`
|
|||
|
|
`)},t.prototype.clone=function(){var n=new t(!!this._cache);return this._rrule.forEach(function(o){return n.rrule(o.clone())}),this._exrule.forEach(function(o){return n.exrule(o.clone())}),this._rdate.forEach(function(o){return n.rdate(new Date(o.getTime()))}),this._exdate.forEach(function(o){return n.exdate(new Date(o.getTime()))}),n},t}(Z0);function l5(e,t){if(!(e instanceof Z0))throw new TypeError(String(e)+" is not RRule instance");ee(t.map(String),String(e))||t.push(e)}function A5(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");ee(t.map(Number),Number(e))||(t.push(e),Cc(t))}function d5(e,t,n){var o=!n||n.toUpperCase()==="UTC",r=o?"".concat(e,":"):"".concat(e,";TZID=").concat(n,":"),M=t.map(function(b){return Zl(b.valueOf(),o)}).join(",");return"".concat(r).concat(M)}const DV=Object.freeze(Object.defineProperty({__proto__:null,ALL_WEEKDAYS:fz,get Frequency(){return k1},RRule:Z0,RRuleSet:Rg,Weekday:At,datetime:lr,rrulestr:cu},Symbol.toStringTag,{value:"Module"})),BV=Wu(DV),TV={iana:["Etc/UTC"]},_V={"Dateline Standard Time":{iana:["Etc/GMT+12"]},"UTC-11":{iana:["Etc/GMT+11"]},"Aleutian Standard Time":{iana:["America/Adak"]},"Hawaiian Standard Time":{iana:["Pacific/Honolulu"]},"Marquesas Standard Time":{iana:["Pacific/Marquesas"]},"Alaskan Standard Time":{iana:["America/Anchorage"]},"UTC-09":{iana:["Etc/GMT+9"]},"Pacific Standard Time (Mexico)":{iana:["America/Tijuana"]},"UTC-08":{iana:["Etc/GMT+8"]},"Pacific Standard Time":{iana:["America/Los_Angeles"]},"US Mountain Standard Time":{iana:["America/Phoenix"]},"Mountain Standard Time (Mexico)":{iana:["America/Mazatlan"]},"Mountain Standard Time":{iana:["America/Denver"]},"Yukon Standard Time":{iana:["America/Whitehorse"]},"Central America Standard Time":{iana:["America/Guatemala"]},"Central Standard Time":{iana:["America/Chicago"]},"Easter Island Standard Time":{iana:["Pacific/Easter"]},"Central Standard Time (Mexico)":{iana:["America/Mexico_City"]},"Canada Central Standard Time":{iana:["America/Regina"]},"SA Pacific Standard Time":{iana:["America/Bogota"]},"Eastern Standard Time (Mexico)":{iana:["America/Cancun"]},"Eastern Standard Time":{iana:["America/New_York"]},"Haiti Standard Time":{iana:["America/Port-au-Prince"]},"Cuba Standard Time":{iana:["America/Havana"]},"US Eastern Standard Time":{iana:["America/Indianapolis"]},"Turks And Caicos Standard Time":{iana:["America/Grand_Turk"]},"Paraguay Standard Time":{iana:["America/Asuncion"]},"Atlantic Standard Time":{iana:["America/Halifax"]},"Venezuela Standard Time":{iana:["America/Caracas"]},"Central Brazilian Standard Time":{iana:["America/Cuiaba"]},"SA Western Standard Time":{iana:["America/La_Paz"]},"Pacific SA Standard Time":{iana:["America/Santiago"]},"Newfoundland Standard Time":{iana:["America/St_Johns"]},"Tocantins Standard Time":{iana:["America/Araguaina"]},"E. South America Standard Time":{iana:["America/Sao_Paulo"]},"SA Eastern Standard Time":{iana:["America/Cayenne"]},"Argentina Standard Time":{iana:["America/Buenos_Aires"]},"Greenland Standard Time":{iana:["America/Godthab"]},"Montevideo Standard Time":{iana:["America/Montevideo"]},"Magallanes Standard Time":{iana:["America/Punta_Arenas"]},"Saint Pierre Standard Time":{iana:["America/Miquelon"]},"Bahia Standard Time":{iana:["America/Bahia"]},"UTC-02":{iana:["Etc/GMT+2"]},"Azores Standard Time":{iana:["Atlantic/Azores"]},"Cape Verde Standard Time":{iana:["Atlantic/Cape_Verde"]},UTC:TV,"GMT Standard Time":{iana:["Europe/London"]},"Greenwich Standard Time":{iana:["Atlantic/Reykjavik"]},"Sao Tome Standard Time":{iana:["Africa/Sao_Tome"]},"Morocco Standard Time":{iana:["Africa/Casablanca"]},"W. Europe Standard Time":{iana:["Europe/Berlin"]},"Central Europe Standard Time":{iana:["Europe/Budapest"]},"Romance Standard Time":{iana:["Europe/Paris"]},"Central European Standard Time":{iana:["Europe/Warsaw"]},"W. Central Africa Standard Time":{iana:["Africa/Lagos"]},"Jordan Standard Time":{iana:["Asia/Amman"]},"GTB Standard Time":{iana:["Europe/Bucharest"]},"Middle East Standard Time":{iana:["Asia/Beirut"]},"Egypt Standard Time":{iana:
|
|||
|
|
`).replace(/\\\\/g,"\\")},SV=function(e){if(e==="TRUE")return!0;if(e==="FALSE")return!1;const t=Number(e);return Number.isNaN(t)?e:t},nA=function(e){const t={};for(const n of e)if(n.includes("=")){const o=n.split("=");t[o[0]]=SV(o.slice(1).join("="))}return t},Rz=function(e){return function(t,n){const o=n[e];return Array.isArray(o)?(o.push(t),n):(typeof o>"u"?n[e]=t:n[e]=[o,t],n)}},ln=function(e){return function(t,n,o){const r=n&&n.length>0&&!(n.length===1&&(n[0]==="CHARSET=utf-8"||n[0]==="VALUE=TEXT"))?{params:nA(n),val:iu(t)}:iu(t);return Rz(e)(r,o)}},XV=function(e,t){const n=nA(t);return e.tz||t&&n&&e&&(e.tz=n.TZID,e.tz!==void 0&&(e.tz=e.tz.replace(/^"(.*)"$/,"$1"))),e};let cc=null;function CV(e){cc||(cc=_V);let t=cc[e];if(!t&&e.includes(",")){const n=e.split(",")[0],o=Object.keys(cc).filter(r=>!!r.includes(n));o.length>0&&(t=cc[o[0]])}return t?t.iana[0]:null}function gg(e){let t=e,n="";if((t==="tzone://Microsoft/Custom"||t.startsWith("Customized Time Zone")||t.startsWith("tzone://Microsoft/"))&&(t=j2.tz.guess()),t=t.replace(/^"(.*)"$/,"$1"),t&&(t.includes(" ")||t.includes(","))){const o=CV(t);o&&(t=o)}if(t&&t.startsWith("(")){const o=/[+|-]\d*:\d*/;t=null,n=t.match(o)}return n===""&&(n=j2.tz.names().find(o=>o===t)),n===""?t:n}function yg(e,t){return t&&t.includes("VALUE=DATE")&&!t.includes("VALUE=DATE-TIME")||/^\d{8}$/.test(e)===!0}const xV=function(e){return function(t,n,o){const r=yg(t,n)?"date":"date-time";return Rz(e)(r,o)}},Mo=function(e){return function(t,n,o,r){const M=n.indexOf("TZID=tzone");M>=0&&(n[M]=n[M]+":"+t.split(":")[0],t=t.split(":")[1]);let b=iu(t);if(yg(t,n)){const z=/^(\d{4})(\d{2})(\d{2}).*$/.exec(t);if(z!==null)return b=new Date(z[1],Number.parseInt(z[2],10)-1,z[3]),b.dateOnly=!0,Rz(e)(b,o)}const i=/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})(Z)?$/.exec(t);if(i!==null)if(i[7]==="Z")b=new Date(Date.UTC(Number.parseInt(i[1],10),Number.parseInt(i[2],10)-1,Number.parseInt(i[3],10),Number.parseInt(i[4],10),Number.parseInt(i[5],10),Number.parseInt(i[6],10))),b.tz="Etc/UTC";else if(n&&n[0]&&n[0].includes("TZID=")&&n[0].split("=")[1]){let z=n[0].split("=")[1],a="",s="";if((z==="tzone://Microsoft/Custom"||z==="(no TZ description)"||z.startsWith("Customized Time Zone")||z.startsWith("tzone://Microsoft/"))&&(z=j2.tz.guess(),n[0]="TZID="+z),z=z.replace(/^"(.*)"$/,"$1"),z&&(z.includes(" ")||z.includes(","))){const O=gg(z);O&&(z=O,s="",n[0]="TZID="+z)}if(z&&z.startsWith("(")){const O=/[+|-]\d*:\d*/;s=z.match(O),z=null,a=s}a===""&&(a=j2.tz.names().find(O=>O===z)),b=a?j2.tz(t,"YYYYMMDDTHHmmss"+s,z).toDate():new Date(Number.parseInt(i[1],10),Number.parseInt(i[2],10)-1,Number.parseInt(i[3],10),Number.parseInt(i[4],10),Number.parseInt(i[5],10),Number.parseInt(i[6],10)),b=XV(b,n)}else{const z=(r||[]).find(O=>Object.values(O).find(l=>l.type==="VTIMEZONE"))||{},a=Object.values(z).find(({type:O})=>O==="VTIMEZONE"),s=a?Array.isArray(a.tzid)?a.tzid.slice(-1)[0]:a.tzid:null;b=s&&j2.tz.zone(s)?j2.tz(t,"YYYYMMDDTHHmmss",s).toDate():new Date(Number.parseInt(i[1],10),Number.parseInt(i[2],10)-1,Number.parseInt(i[3],10),Number.parseInt(i[4],10),Number.parseInt(i[5],10),Number.parseInt(i[6],10))}return Rz(e)(b,o)}},FV=function(e){return function(t,n,o){const r=t.split(";");return o[e]={lat:Number(r[0]),lon:Number(r[1])},o}},IV=function(e){return function(t,n,o){return o[e]===void 0?o[e]=t?t.split(",").map(r=>r.trim()):[]:t&&(o[e]=o[e].concat(t.split(",").map(r=>r.trim()))),o}},PV=function(e){return function(t,n,o){o[e]=o[e]||[];const r=t?t.split(",").map(M=>M.trim()):[];for(const M of r){const b=[];if(Mo(e)(M,n,b),b[e])if(typeof b[e].toISOString=="function")o[e][b[e].toISOString().slice(0,10)]=b[e];else throw new TypeError("No toISOString function in exdate[name]",b[e])}return o}},UV=function(e){return Mo(e)},jV=function(e,t){const n=nA(t);return t&&n&&(e.type=n.FBTYPE||"BUSY"),e},HV=function(e){return function(t,n,o){const r=jV({},n);o[e]=o[e]||[],o[e].push(r);const M=t.split("/");for(const[b,i]of["start","end"].entries())Mo(i)(M[b],n,r);return o}};var $V={objectHandlers:{BEGIN(e,t,n,o){return o.push(n),{type:e,params:t}},EN
|
|||
|
|
* @license lucide-svelte v0.441.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const jG={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var HG=c6("<svg><!><!></svg>");function He(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]),o=ye(n,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);R1(t,!1);let r=s1(t,"name",8,void 0),M=s1(t,"color",8,"currentColor"),b=s1(t,"size",8,24),i=s1(t,"strokeWidth",8,2),z=s1(t,"absoluteStrokeWidth",8,!1),a=s1(t,"iconNode",24,()=>[]);const s=(...h)=>h.filter((R,W,D)=>!!R&&D.indexOf(R)===W).join(" ");pn();var O=HG();let l;var A=E0(O);Ht(A,1,a,J2,(h,R)=>{let W=()=>P(R)[0],D=()=>P(R)[1];var w=A1(),N=T0(w);Z_(N,W,!0,(k,g)=>{let v;G0(()=>v=C4(k,v,{...D()},void 0,k.namespaceURI===wW,k.nodeName.includes("-")))}),Z(h,w)});var f=v0(A);We(f,t,"default",{}),G0(()=>l=C4(O,l,{...jG,...o,width:b(),height:b(),stroke:M(),"stroke-width":z()?Number(i())*24/Number(b()):i(),class:s("lucide-icon","lucide",r()?`lucide-${r()}`:"",n.class)},void 0,!0)),Z(e,O),g1()}function Eg(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"arrow-down-to-line"},()=>n,{iconNode:[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function $G(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"calendar-arrow-up"},()=>n,{iconNode:[["path",{d:"m14 18 4-4 4 4"}],["path",{d:"M16 2v4"}],["path",{d:"M18 22v-8"}],["path",{d:"M21 11.343V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9"}],["path",{d:"M3 10h18"}],["path",{d:"M8 2v4"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function YG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"chevron-left"},()=>n,{iconNode:[["path",{d:"m15 18-6-6 6-6"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function VG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"chevron-right"},()=>n,{iconNode:[["path",{d:"m9 18 6-6-6-6"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function GG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"clock-3"},()=>n,{iconNode:[["circle",{cx:"12",cy:"12",r:"10"}],["polyline",{points:"12 6 12 12 16.5 12"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function KG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"columns-3"},()=>n,{iconNode:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"M15 3v18"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function ZG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"copy"},()=>n,{iconNode:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function JG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"ellipsis-vertical"},()=>n,{iconNode:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function Sg(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"fold-vertical"},()=>n,{iconNode:[["path",{d:"M12 22v-6"}],["path",{d:"M12 8V2"}],["path",{d:"M4 12H2"}],["path",{d:"M10 12H8"}],["path",{d:"M16 12h-2"}],["path",{d:"M22 12h-2"}],["path",{d:"m15 19-3-3-3 3"}],["path",{d:"m15 5-3 3-3-3"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function QG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"grip-horizontal"},()=>n,{iconNode:[["circle",{cx:"12",cy:
|
|||
|
|
* @license Fraction.js v4.3.7 31/08/2023
|
|||
|
|
* https://www.xarg.org/2014/03/rational-numbers-in-javascript/
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2023, Robert Eisele (robert@raw.org)
|
|||
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|||
|
|
**/var AK=2e3,C0={s:1,n:0,d:1};function eo(e,t){if(isNaN(e=parseInt(e,10)))throw Pp();return e*t}function se(e,t){if(t===0)throw pA();var n=Object.create(gn.prototype);n.s=e<0?-1:1,e=e<0?-e:e;var o=SM(e,t);return n.n=e/o,n.d=t/o,n}function R5(e){for(var t={},n=e,o=2,r=4;r<=n;){for(;n%o===0;)n/=o,t[o]=(t[o]||0)+1;r+=1+2*o++}return n!==e?n>1&&(t[n]=(t[n]||0)+1):t[e]=(t[e]||0)+1,t}var Gt=function(e,t){var n=0,o=1,r=1,M=0,b=0,i=0,z=1,a=1,s=0,O=1,l=1,A=1,f=1e7,h;if(e!=null)if(t!==void 0){if(n=e,o=t,r=n*o,n%1!==0||o%1!==0)throw hK()}else switch(typeof e){case"object":{if("d"in e&&"n"in e)n=e.n,o=e.d,"s"in e&&(n*=e.s);else if(0 in e)n=e[0],1 in e&&(o=e[1]);else throw Pp();r=n*o;break}case"number":{if(e<0&&(r=e,e=-e),e%1===0)n=e;else if(e>0){for(e>=1&&(a=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)),e/=a);O<=f&&A<=f;)if(h=(s+l)/(O+A),e===h){O+A<=f?(n=s+l,o=O+A):A>O?(n=l,o=A):(n=s,o=O);break}else e>h?(s+=l,O+=A):(l+=s,A+=O),O>f?(n=l,o=A):(n=s,o=O);n*=a}else(isNaN(e)||isNaN(t))&&(o=n=NaN);break}case"string":{if(O=e.match(/\d+|./g),O===null)throw Pp();if(O[s]==="-"?(r=-1,s++):O[s]==="+"&&s++,O.length===s+1?b=eo(O[s++],r):O[s+1]==="."||O[s]==="."?(O[s]!=="."&&(M=eo(O[s++],r)),s++,(s+1===O.length||O[s+1]==="("&&O[s+3]===")"||O[s+1]==="'"&&O[s+3]==="'")&&(b=eo(O[s],r),z=Math.pow(10,O[s].length),s++),(O[s]==="("&&O[s+2]===")"||O[s]==="'"&&O[s+2]==="'")&&(i=eo(O[s+1],r),a=Math.pow(10,O[s+1].length)-1,s+=3)):O[s+1]==="/"||O[s+1]===":"?(b=eo(O[s],r),z=eo(O[s+2],1),s+=3):O[s+3]==="/"&&O[s+1]===" "&&(M=eo(O[s],r),b=eo(O[s+2],r),z=eo(O[s+4],1),s+=5),O.length<=s){o=z*a,r=n=i+o*M+a*b;break}}default:throw Pp()}if(o===0)throw pA();C0.s=r<0?-1:1,C0.n=Math.abs(n),C0.d=Math.abs(o)};function dK(e,t,n){for(var o=1;t>0;e=e*e%n,t>>=1)t&1&&(o=o*e%n);return o}function fK(e,t){for(;t%2===0;t/=2);for(;t%5===0;t/=5);if(t===1)return 0;for(var n=10%t,o=1;n!==1;o++)if(n=n*10%t,o>AK)return 0;return o}function qK(e,t,n){for(var o=1,r=dK(10,n,t),M=0;M<300;M++){if(o===r)return M;o=o*10%t,r=r*10%t}return 0}function SM(e,t){if(!e)return t;if(!t)return e;for(;;){if(e%=t,!e)return t;if(t%=e,!t)return e}}function gn(e,t){if(Gt(e,t),this instanceof gn)e=SM(C0.d,C0.n),this.s=C0.s,this.n=C0.n/e,this.d=C0.d/e;else return se(C0.s*C0.n,C0.d)}var pA=function(){return new Error("Division by Zero")},Pp=function(){return new Error("Invalid argument")},hK=function(){return new Error("Parameters must be integer")};gn.prototype={s:1,n:0,d:1,abs:function(){return se(this.n,this.d)},neg:function(){return se(-this.s*this.n,this.d)},add:function(e,t){return Gt(e,t),se(this.s*this.n*C0.d+C0.s*this.d*C0.n,this.d*C0.d)},sub:function(e,t){return Gt(e,t),se(this.s*this.n*C0.d-C0.s*this.d*C0.n,this.d*C0.d)},mul:function(e,t){return Gt(e,t),se(this.s*C0.s*this.n*C0.n,this.d*C0.d)},div:function(e,t){return Gt(e,t),se(this.s*C0.s*this.n*C0.d,this.d*C0.n)},clone:function(){return se(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new gn(NaN);if(e===void 0)return se(this.s*this.n%this.d,1);if(Gt(e,t),C0.n===0&&this.d===0)throw pA();return se(this.s*(C0.d*this.n)%(C0.n*this.d),C0.d*this.d)},gcd:function(e,t){return Gt(e,t),se(SM(C0.n,this.n)*SM(C0.d,this.d),C0.d*this.d)},lcm:function(e,t){return Gt(e,t),C0.n===0&&this.n===0?se(0,1):se(C0.n*this.n,SM(C0.n,this.n)*SM(C0.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new gn(NaN):se(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new gn(NaN):se(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new gn(NaN):se(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return Gt(e,t),se(this.s*Math.round(this.n*C0.d/(this.d*C0.n))*C0.n,C0.d)},inverse:function(){return se(this.s*this.d,this.n)},pow:function(e,t){if(Gt(e,t),C0.d===1)return C0.s<0?se(Math.pow(this.s*this.d,C0.n),Math.pow(this.n,C0.n)):se(Math.pow(this.s*this.n,C0.n),Math.pow(this.d,C0.n));if(this.s<0)return null;var n=R5(this.n),o=R5(this.d),r=1,M=1;for(var b in n)if(b!=="1"){if(b==="0"){r=
|
|||
|
|
* @license
|
|||
|
|
*
|
|||
|
|
* The APCA contrast prediction algorithm is based of the formulas published
|
|||
|
|
* in the APCA-1.0.98G specification by Myndex. The specification is available at:
|
|||
|
|
* https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
|
|||
|
|
*
|
|||
|
|
* Note that the APCA implementation is still beta, so please update to
|
|||
|
|
* future versions of chroma.js when they become available.
|
|||
|
|
*
|
|||
|
|
* You can read more about the APCA Readability Criterion at
|
|||
|
|
* https://readtech.org/ARC/
|
|||
|
|
*/const _5=.027,GJ=5e-4,KJ=.1,k5=1.14,Rp=.022,E5=1.414,ZJ=(e,t)=>{e=new u0(e),t=new u0(t),e.alpha()<1&&(e=bb(t,e,e.alpha(),"rgb"));const n=S5(...e.rgb()),o=S5(...t.rgb()),r=n>=Rp?n:n+Math.pow(Rp-n,E5),M=o>=Rp?o:o+Math.pow(Rp-o,E5),b=Math.pow(M,.56)-Math.pow(r,.57),i=Math.pow(M,.65)-Math.pow(r,.62),z=Math.abs(M-r)<GJ?0:r<M?b*k5:i*k5;return(Math.abs(z)<KJ?0:z>0?z-_5:z+_5)*100};function S5(e,t,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:to,pow:Ne,min:JJ,max:QJ,atan2:X5,abs:C5,cos:gp,sin:x5,exp:eQ,PI:F5}=Math;function tQ(e,t,n=1,o=1,r=1){var M=function(T){return 360*T/(2*F5)},b=function(T){return 2*F5*T/360};e=new u0(e),t=new u0(t);const[i,z,a]=Array.from(e.lab()),[s,O,l]=Array.from(t.lab()),A=(i+s)/2,f=to(Ne(z,2)+Ne(a,2)),h=to(Ne(O,2)+Ne(l,2)),R=(f+h)/2,W=.5*(1-to(Ne(R,7)/(Ne(R,7)+Ne(25,7)))),D=z*(1+W),w=O*(1+W),N=to(Ne(D,2)+Ne(a,2)),k=to(Ne(w,2)+Ne(l,2)),g=(N+k)/2,v=M(X5(a,D)),S=M(X5(l,w)),j=v>=0?v:v+360,K=S>=0?S:S+360,Y=C5(j-K)>180?(j+K+360)/2:(j+K)/2,x=1-.17*gp(b(Y-30))+.24*gp(b(2*Y))+.32*gp(b(3*Y+6))-.2*gp(b(4*Y-63));let G=K-j;G=C5(G)<=180?G:K<=j?G+360:G-360,G=2*to(N*k)*x5(b(G)/2);const M0=s-i,e0=k-N,c0=1+.015*Ne(A-50,2)/to(20+Ne(A-50,2)),Q=1+.045*g,x0=1+.015*g*x,m0=30*eQ(-Ne((Y-275)/25,2)),_0=-(2*to(Ne(g,7)/(Ne(g,7)+Ne(25,7))))*x5(2*b(m0)),V0=to(Ne(M0/(n*c0),2)+Ne(e0/(o*Q),2)+Ne(G/(r*x0),2)+_0*(e0/(o*Q))*(G/(r*x0)));return QJ(0,JJ(100,V0))}function nQ(e,t,n="lab"){e=new u0(e),t=new u0(t);const o=e.get(n),r=t.get(n);let M=0;for(let b in o){const i=(o[b]||0)-(r[b]||0);M+=i*i}return Math.sqrt(M)}const oQ=(...e)=>{try{return new u0(...e),!0}catch{return!1}},rQ={cool(){return Bz([q1.hsl(180,1,.9),q1.hsl(250,.7,.4)])},hot(){return Bz(["#000","#f00","#ff0","#fff"]).mode("rgb")}},uu={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d922
|
|||
|
|
- 🪲 [Report bugs and suggest features](https://github.com/ivan-lednev/obsidian-day-planner/issues)
|
|||
|
|
- ❓ [Ask questions](https://github.com/ivan-lednev/obsidian-day-planner/discussions/new?category=q-a)
|
|||
|
|
- 🛠️ [Submit pull-requests](./CONTRIBUTING.md)
|
|||
|
|
- ❤️ If this project adds value to your life, consider supporting it finantially:
|
|||
|
|
- <a href="https://www.buymeacoffee.com/machineelf" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
|||
|
|
## 0.28.0
|
|||
|
|
|
|||
|
|
### 💥 Breaking changes
|
|||
|
|
|
|||
|
|
- Now the plugin searches for tasks with scheduled date properties all across the vault by default, there is no need to include any files in the Dataview filter
|
|||
|
|
|
|||
|
|
### ✨ New feature: status bar timeline
|
|||
|
|
|
|||
|
|
- You can enable a mini-timeline in the status bar that lets you overview the upcoming 3 hours, with all the task blocks visible there. To enable it, go to 'Settings' > 'Status bar widget' > 'Task progress indicator' > 'Mini-timeline'
|
|||
|
|
|
|||
|
|
### ✨ Other improvements
|
|||
|
|
|
|||
|
|
- All-day tasks can be dragged between days, if a task with time is dragged into the all-day section, its timestamp gets removed (closes #315, #623)
|
|||
|
|
- You can create blocks with drag & drop on mobile now: long tap and drag on the timeline to start creating a block
|
|||
|
|
- Improved resize & drag controls for task blocks. Now they are much easier to use on mobile: left-click or tap on a task to see the controls, right-click or long tap to see a contextual menu
|
|||
|
|
- Right-click to reveal block in file
|
|||
|
|
- Description and location are now shown in remote events
|
|||
|
|
- Multi-day remote events are now shown spanning across days
|
|||
|
|
- You can expand, collapse or disable unscheduled tasks & clocks in the timeline view
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Fix advanced edit modes messing up other tasks (closes #619)
|
|||
|
|
- All-day tasks are no longer highlighted
|
|||
|
|
- Fix tasks not shown in status bar if timeline is closed
|
|||
|
|
- Fix showing all-day tasks in status bar
|
|||
|
|
- Fix the Escape key closing weekly view
|
|||
|
|
- Fix clocks from daily notes not showing up in timeline (closes #649)
|
|||
|
|
|
|||
|
|
## 0.27.0
|
|||
|
|
|
|||
|
|
### ✨ New features
|
|||
|
|
|
|||
|
|
- Edit text in the command palette before task creation
|
|||
|
|
- Add descriptive icons to clock commands, so that they are easier to use in the mobile toolbar
|
|||
|
|
|
|||
|
|
## 0.26.3
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Fix tasks not added to daily note when there is no planner heading inside it
|
|||
|
|
- Fix clocks from daily notes not showing up in timeline & active clocks
|
|||
|
|
|
|||
|
|
## 0.26.2
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Fix messing up frontmatter when there is no planner heading in file
|
|||
|
|
|
|||
|
|
## 0.26.0
|
|||
|
|
|
|||
|
|
### ✨ New feature: time tracking (experimental)
|
|||
|
|
|
|||
|
|
You can record time spent on tasks in the form of Dataview properties and then view the records as time blocks, much like planner entries. See [the docs for detailed instructions](https://github.com/ivan-lednev/obsidian-day-planner?tab=readme-ov-file#4-time-tracking).
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Fixed crash for iOS on drag-and-drop edits (#519)
|
|||
|
|
- Fixed duplicated timestamps on drag-and-drop edits (#618)
|
|||
|
|
- Fixed removing task Dataview properties on edits (#370)
|
|||
|
|
|
|||
|
|
## 0.25.0
|
|||
|
|
|
|||
|
|
### 💥 Breaking changes
|
|||
|
|
|
|||
|
|
- Now only the items under the planner heading will get pulled from daily notes (#382)
|
|||
|
|
|
|||
|
|
### ✨ New features
|
|||
|
|
|
|||
|
|
- Now after edits there is an **UNDO** notice that lets you revert the changes to tasks, even across multiple files (partially addresses #341)
|
|||
|
|
- Now the plugin will ask for permission before creating new files on drag-and-drop edits
|
|||
|
|
- Tasks crossing midnight now get shown properly in multiple day columns instead of stretching the first day (#586, #364)
|
|||
|
|
- E.g.: \`- 23:00 - 4:00 Task\` will get shown in 2 columns as 2 separate blocks
|
|||
|
|
- Timeline controls look tidier now
|
|||
|
|
- Now all-day remote events are shown in the unscheduled tasks section
|
|||
|
|
- Text in blocks is now sticky and will stay visible when scrolling as well as when an event starts before the configured start hour
|
|||
|
|
|
|||
|
|
#### Week planner -> multi-day planner
|
|||
|
|
|
|||
|
|
- Now you can switch between 3 views:
|
|||
|
|
- **full week** (with configurable start of the week)
|
|||
|
|
- **work week** (starting on Monday)
|
|||
|
|
- **3 upcoming days** (#515)
|
|||
|
|
- You can now configure the first day of the week (#231)
|
|||
|
|
- Now you can move back and forth between time periods from the sidebar of the multiday-view (#458, #495)
|
|||
|
|
- Now weekends get marked by a different background color
|
|||
|
|
- Now you an open plugin settings from the multi-day view
|
|||
|
|
- Now the time period of the open view is visible in its tab title
|
|||
|
|
- Now you can open the multi-day view from the left ribbon
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Now the plugin finds contrasting font colors for your color overrides for time blocks (#481)
|
|||
|
|
- obsidian-tasks tasks now get copied under the original line in the original file
|
|||
|
|
- Now copying a task also copies the sub-items under it
|
|||
|
|
- Extra spaces no longer get added in edited files
|
|||
|
|
|
|||
|
|
## 0.24.0
|
|||
|
|
|
|||
|
|
### ✨ New features
|
|||
|
|
|
|||
|
|
- Active task end time is now shown in status bar
|
|||
|
|
- Notifications now show timestamps
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Now tasks with no text content are not shown in timeline
|
|||
|
|
- Fixed deleted recurrences of events in remote calendars showing up
|
|||
|
|
- Fixed 12 am parsed as noon
|
|||
|
|
|
|||
|
|
## 0.23.0
|
|||
|
|
|
|||
|
|
### ✨ New features
|
|||
|
|
|
|||
|
|
- Now clicking on checkboxes on the timeline completes a task. [obsidian-tasks](https://github.com/obsidian-tasks-group/obsidian-tasks) logic is also respected: recurrent tasks get updated, 'finished' property gets added
|
|||
|
|
- There is now an option to sort items by time in your planner after an edit (thanks, @Gelio)
|
|||
|
|
- You can now configure what kind of task to create on edit: bullet (\`- task\`) or checkbox (\`- [ ] task\`)
|
|||
|
|
- Minimal task duration is now configurable. Now tasks won't shrink beyond this point when editing
|
|||
|
|
- Timestamps get parsed anywhere on the line, not only at the start, e.g.: \`- [ ] #task 20:30 - 21:00 Wake up\`
|
|||
|
|
- Note that if a timestamp is not at the start of the line, it needs to be in a stricter format to avoid confusing the plugin
|
|||
|
|
- \`20:00\` will work
|
|||
|
|
- \`2000\` will not work
|
|||
|
|
- There is now an option to specify your email in remote calendar config. If you do this, your RSVP status (declined/tentative) will get displayed on remote tasks from this calendar (thanks, @ramandv)
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Now timeline will stay where you've left it when you reload Obsidian (thanks, @k4a-l)
|
|||
|
|
|
|||
|
|
## 0.22.0
|
|||
|
|
|
|||
|
|
### ✨ New features
|
|||
|
|
|
|||
|
|
- Default task status on creation is now configurable
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Fixed load failure when unable to read daily notes
|
|||
|
|
- Fixed console error on plugin load
|
|||
|
|
- Fixed moving tasks to non-existent daily notes
|
|||
|
|
- Fixed active day in week not changing on next day
|
|||
|
|
- No more note switching when navigating between days from timeline view
|
|||
|
|
|
|||
|
|
## 0.21.1
|
|||
|
|
|
|||
|
|
### ✨ New features
|
|||
|
|
|
|||
|
|
- Drag-and-drop edits are now working on mobile: long-press on a task block to see the controls, tap on the control and start dragging to change task time
|
|||
|
|
- Added floating edit controls on top of task blocks. All the edit modes are now easily available
|
|||
|
|
- Now you can change task start time
|
|||
|
|
- There is now a new edit mode: move block and shrink neighboring blocks
|
|||
|
|
- Now you can manually adjust the height of the unscheduled tasks section through drag-and-drop
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Fixed empty remote event names breaking the plugin (#430)
|
|||
|
|
- Fixed advanced editing with Ctrl/Shift not working (#462). To do advanced edits, simply hover over the block, then over the edit controls
|
|||
|
|
|
|||
|
|
## 0.20.1 - 0.20.4
|
|||
|
|
|
|||
|
|
- 🐞 add toggle to disable release notes (#399)
|
|||
|
|
- 🐞 do not reset timeline position when it's already open (#289)
|
|||
|
|
- 🐞 do not replace tab content when opening weekly view (#313)
|
|||
|
|
- 🐞 fix status bar error breaking plugin
|
|||
|
|
- 🐞 Move task on copy, instead of changing its size
|
|||
|
|
- 🐞 Fix different hourglass emoji breaking task movement
|
|||
|
|
- 🐞 Fix calendar events without a location crashes plugin (#438, thanks, @sepatel)
|
|||
|
|
- 🐞 Do not print undefined inside checkbox when list item is not a task (#368, thanks, @Gelio)
|
|||
|
|
- 🐞 AM/PM doesn't match unexpectedly anymore (#312, thanks, @teisermann)
|
|||
|
|
|
|||
|
|
## 0.20.0
|
|||
|
|
|
|||
|
|
### New features
|
|||
|
|
|
|||
|
|
- ✨ Color coding: you can define background color for blocks containing certain text in first line
|
|||
|
|
- ✨ Weekly view now displays unscheduled tasks on top
|
|||
|
|
- ✨ Advanced drag-and-drop editing does not require modifier keys any more, you pick current edit mode in timeline controls
|
|||
|
|
|
|||
|
|
### Fixed issues
|
|||
|
|
|
|||
|
|
- 🐞 Fixed scheduling tasks for other days than today (by @Lunkle)
|
|||
|
|
- 🐞 Pointer to current time is now more visible
|
|||
|
|
- 🐞 Task summary in internet calendars is now displayed next to calendar name, to make it visible in short blocks
|
|||
|
|
|
|||
|
|
## 0.19.1 - 0.19.6
|
|||
|
|
|
|||
|
|
- 🐞 Fix iOS crash
|
|||
|
|
- 🐞 Fix performance on startup
|
|||
|
|
- 🐞 Fix colorful timeline both for local & remote calendars
|
|||
|
|
- 🐞 Fix planner not reacting to daily note creation
|
|||
|
|
- 🐞 Fix displaying hover preview
|
|||
|
|
|
|||
|
|
## 0.19.0
|
|||
|
|
|
|||
|
|
### ✨ New Feature: Internet Calendar Sync (Google, Outlook, iCloud)
|
|||
|
|
|
|||
|
|
- This lets you display events from calendars like Google Calendar, iCloud Calendar, Outlook Calendar
|
|||
|
|
- You only need to add a link in the plugin settings to start displaying events from that calendar
|
|||
|
|
|
|||
|
|
See [README](https://github.com/ivan-lednev/obsidian-day-planner?tab=readme-ov-file#showing-internet-calendars) for details.
|
|||
|
|
|
|||
|
|
## 0.18.0
|
|||
|
|
|
|||
|
|
### ✨ New features
|
|||
|
|
|
|||
|
|
- Now hovering over a task with \`Control\` pressed will trigger a preview pop-up. This works great with the awesome [Hover Editor plugin](https://github.com/nothingislost/obsidian-hover-editor)
|
|||
|
|
- Now when you click on a task, if there is an open tab for that file, the plugin is going to reuse it
|
|||
|
|
|
|||
|
|
## 0.17.2
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- Fix creating tasks with drag-and-drop
|
|||
|
|
|
|||
|
|
## 0.17.0
|
|||
|
|
|
|||
|
|
### 💥 Breaking changes
|
|||
|
|
|
|||
|
|
- Now by default, if your Dataview souce filter is empty, tasks are pulled only from visible daily notes
|
|||
|
|
- Most people never touch this field, so the plugin is going to be lightning-fast by default
|
|||
|
|
- If you want to add other folders or tags as task sources, you can still do so by adding them explicitly
|
|||
|
|
|
|||
|
|
### ✨ New features
|
|||
|
|
|
|||
|
|
- When dragging tasks from daily notes across days in the weekly view, they now get moved across files
|
|||
|
|
- There is now an option to hide completed tasks from timeline
|
|||
|
|
- There is now an option to hide subtasks from task blocks in the timeline
|
|||
|
|
|
|||
|
|
### 🐞 Fixed issues
|
|||
|
|
|
|||
|
|
- New drag-and-drop operations can now be started immediately after previous ones
|
|||
|
|
- The plugin is much faster in the default use case (daily notes only)
|
|||
|
|
- You can use plain list items in daily notes again
|
|||
|
|
- Notifications work again
|
|||
|
|
- Unscheduled tasks now fit their contents
|
|||
|
|
|
|||
|
|
### Acknowledgements
|
|||
|
|
|
|||
|
|
- Big thanks to @weph for helping me figure out a good performance solution
|
|||
|
|
`,t,"/",this)}}class W10 extends w0.PluginSettingTab{constructor(t,n){super(t.app,t),this.plugin=t,this.settingsStore=n}display(){const{containerEl:t}=this;t.empty(),new w0.Setting(t).setName("Show release notes after update").addToggle(n=>n.setValue(this.plugin.settings().releaseNotes).onChange(o=>{this.update({releaseNotes:o})})),new w0.Setting(t).setName("Task Notification").setDesc("Display a notification when a new task is started").addToggle(n=>n.setValue(this.plugin.settings().showTaskNotification).onChange(o=>{this.update({showTaskNotification:o})})),new w0.Setting(t).setName("Center the Pointer in the Timeline View").setDesc("Should the pointer continuously get scrolled to the center of the view").addToggle(n=>{n.setValue(this.plugin.settings().centerNeedle).onChange(o=>{this.update({centerNeedle:o})})}),new w0.Setting(t).setName("Sort tasks in planner chronologically after edits").addToggle(n=>{n.setValue(this.plugin.settings().sortTasksInPlanAfterEdit).onChange(o=>{this.update({sortTasksInPlanAfterEdit:o})})}),new w0.Setting(t).setName("Event format on creation").addDropdown(n=>(n.addOptions({bullet:"Bullet (- New item)",task:"Task (- [ ] New item)"}),n.setValue(this.plugin.settings().eventFormatOnCreation).onChange(o=>{t1.isOneOf(o,JC),this.update({eventFormatOnCreation:o}),this.display()}))),new w0.Setting(t).setName("Timeline Zoom Level").setDesc("The zoom level to display the timeline. The higher the number, the more vertical space each task will take up.").addSlider(n=>n.setLimits(1,5,1).setValue(Number(this.plugin.settings().zoomLevel)??4).setDynamicTooltip().onChange(o=>{this.update({zoomLevel:o})})),this.plugin.settings().eventFormatOnCreation==="task"&&new w0.Setting(t).setName("Default task status on creation").setDesc("You can use custom statuses for more advanced workflows. E.g.: '- [>] Task'").addText(n=>n.setPlaceholder("Empty").setValue(this.plugin.settings().taskStatusOnCreation).onChange(o=>{this.settingsStore.update(r=>{const M=o.length>0?o.substring(0,1):" ";return{...r,taskStatusOnCreation:M}})})),new w0.Setting(t).setName("Timeline Icon").setDesc("The icon of the timeline pane. Reopen timeline pane or restart obsidian to see the change.").addDropdown(n=>(wk.forEach(o=>n.addOption(o,o)),n.setValue(this.plugin.settings().timelineIcon??"calendar-with-checkmark").onChange(o=>{this.update({timelineIcon:o})}))),new w0.Setting(t).setName("Start Hour").setDesc("The planner is going to start at this hour each day").addDropdown(n=>n.addOptions({0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"}).setValue(String(this.plugin.settings().startHour)).onChange(o=>{const r=Number(o);this.update({startHour:r})})),new w0.Setting(t).setName("First day of week").addDropdown(n=>n.addOptions({monday:"Monday",sunday:"Sunday",saturday:"Saturday",friday:"Friday"}).setValue(String(this.plugin.settings().firstDayOfWeek)).onChange(o=>{t1.isOneOf(o,QC),this.update({firstDayOfWeek:o})})),t.createEl("h2",{text:"Remote calendars"}),this.plugin.settings().icals.map((n,o)=>{t.createEl("h2",{text:`Calendar ${o+1}`}),new w0.Setting(t).setName("Mark calendar with color").addColorPicker(r=>r.setValue(n.color).onChange(M=>{this.settingsStore.update(hn(b=>{b.icals[o].color=M}))})),new w0.Setting(t).setName("Prepend this text to events from this calendar").addText(r=>r.setPlaceholder("Displayed name").setValue(n.name).onChange(M=>{this.settingsStore.update(hn(b=>{b.icals[o].name=M}))})),new w0.Setting(t).setName("Your email address, used to show 'tentative'/'needs action'/'declined' marker").addText(r=>r.setPlaceholder("Your email address").setValue(n.email||"").onChange(M=>{this.settingsStore.update(hn(b=>{b.icals[o].email=M.trim()}))})),new w0.Setting(t).setName("Remote calendar URL").addText(r=>r.setPlaceholder("URL").setValue(n.url).onChange(M=>{const b=M.replace("webcal://","https://");this.settingsStore.update(hn(i=>{i.icals[o].url=b}))})),new w0.Setting(t).addButton(r=>r.setIcon("trash").setButtonText(`Delete calendar ${o+1}`).onClick(()=>{this.settingsStore.update(M=>({...M,icals:M.icals.
|
|||
|
|
${r}`)}class Ee0 extends w0.Plugin{constructor(){super(...arguments),this.initWeeklyLeaf=async()=>{await this.app.workspace.getLeaf("tab").setViewState({type:Tp,active:!0})},this.initTimelineLeafSilently=async()=>{this.app.workspace.onLayoutReady(async()=>{var n;const[t]=this.app.workspace.getLeavesOfType(oo);t||(await this.detachLeavesOfType(oo),await((n=this.app.workspace.getRightLeaf(!1))==null?void 0:n.setViewState({type:oo})))})},this.initTimelineLeaf=async()=>{var n;const[t]=this.app.workspace.getLeavesOfType(oo);if(t){this.app.workspace.revealLeaf(t);return}await this.detachLeavesOfType(oo),await((n=this.app.workspace.getRightLeaf(!1))==null?void 0:n.setViewState({type:oo,active:!0})),this.app.workspace.rightSplit.expand()},this.showReleaseNotes=async()=>{await this.app.workspace.getLeaf("tab").setViewState({type:q3,active:!0})},this.getSTaskUnderCursor=t=>{t1.isInstanceOf(t,w0.MarkdownView,"You can only get tasks from markdown editor views");const n=t.file;t1.isNotVoid(n,"There is no file for view");const o=this.dataviewFacade.getTaskAtLine({path:n.path,line:t.editor.getCursor().line});return t1.isNotVoid(o,"There is no task under cursor"),o}}async onload(){this.dataviewFacade=new SG(()=>qW(this.app),this.app.vault);const t={...ta,...await this.loadData()};await this.setUpReduxStore(t),await this.initSettingsStore(t);const n=IG(this.app);this.vaultFacade=new FG(this.app.vault,n),this.transationWriter=new Xx(this.vaultFacade),this.workspaceFacade=new CG(this.app.workspace,this.vaultFacade),this.sTaskEditor=new xG(this.workspaceFacade,this.vaultFacade,this.dataviewFacade),this.registerViews(),this.registerCommands(),this.addRibbonIcons(),this.addSettingTab(new W10(this,this.settingsStore)),await this.handleNewPluginVersion(),await this.initTimelineLeafSilently()}async onunload(){return Promise.all([this.detachLeavesOfType(oo),this.detachLeavesOfType(Tp)])}addRibbonIcons(){this.addRibbonIcon("calendar-range","Open Timeline",this.initTimelineLeaf),this.addRibbonIcon("table-2","Open Multi-Day View",this.initWeeklyLeaf)}async handleNewPluginVersion(){this.settings().pluginVersion!=="0.28.0"&&(this.settingsStore.update(t=>({...t,pluginVersion:"0.28.0"})),this.settings().releaseNotes&&this.app.workspace.onLayoutReady(async()=>{await this.showReleaseNotes()}))}registerCommands(){this.addCommand({id:"show-day-planner-timeline",name:"Show timeline",callback:async()=>await this.initTimelineLeaf()}),this.addCommand({id:"show-weekly-view",name:"Show week planner",callback:this.initWeeklyLeaf}),this.addCommand({id:"show-multi-day-view",name:"Show multi-day planner",callback:this.initWeeklyLeaf}),this.addCommand({id:"show-day-planner-today-note",name:"Open today's Day Planner",callback:async()=>{const t=await x3(window.moment());await this.app.workspace.getLeaf(!1).openFile(t)}}),this.addCommand({id:"reorder-tasks-by-time",name:"Sort tasks under cursor by time",editorCallback:t=>{const n=Dc(t.getValue()),o=GC(t.getCursor()),r=n.children.find(i=>i.position&&VC(i.position,o));if(!r){new w0.Notice("There is no list under cursor");return}const M=Ol(r,sm),b=sl(M).trim();t1.isNotVoid(M.position),t.replaceRange(b,vq(M.position.start),vq(M.position.end))}}),this.addCommand({id:"clock-in",icon:"play",name:"Clock in",editorCallback:this.sTaskEditor.clockInUnderCursor}),this.addCommand({icon:"square",id:"clock-out",name:"Clock out",editorCallback:this.sTaskEditor.clockOutUnderCursor}),this.addCommand({icon:"trash-2",id:"cancel-clock",name:"Cancel clock",editorCallback:this.sTaskEditor.cancelClockUnderCursor})}async initSettingsStore(t){V1.set(t),this.register(V1.subscribe(async n=>{this.store.dispatch(dG(n)),await this.saveData(n)})),this.settingsStore=V1,this.settings=()=>Oe(V1)}async detachLeavesOfType(t){await this.app.workspace.detachLeavesOfType(t)}registerViews(){const t=$x({app:this.app,settings:this.settings,transactionWriter:this.transationWriter,vaultFacade:this.vaultFacade,onEditCanceled:()=>{var g;new w0.Notice("Edit canceled"),(g=this.syncDataview)==null||g.call(this)}}),n=()=>{new w0.Notice("Tasks changed externally; edit ca
|
|||
|
|
|
|||
|
|
/* nosourcemap */
|