2022-01-05 20:52:55 +00:00
/ *
THIS IS A GENERATED / BUNDLED FILE BY ESBUILD
if you want to view the source visit the plugins github repository
* /
2022-03-19 10:03:52 +00:00
var Hy = Object . create ; var Na = Object . defineProperty ; var By = Object . getOwnPropertyDescriptor ; var Ky = Object . getOwnPropertyNames ; var $y = Object . getPrototypeOf , Uy = Object . prototype . hasOwnProperty ; var ju = t => Na ( t , "__esModule" , { value : ! 0 } ) ; var zu = ( t , n ) => ( ) => ( t && ( n = t ( t = 0 ) ) , n ) , Fe = ( t , n ) => ( ) => ( n || t ( ( n = { exports : { } } ) . exports , n ) , n . exports ) , Yr = ( t , n ) => { for ( var e in n ) Na ( t , e , { get : n [ e ] , enumerable : ! 0 } ) } , jy = ( t , n , e ) => { if ( n && typeof n == "object" || typeof n == "function" ) for ( let r of Ky ( n ) ) ! Uy . call ( t , r ) && r !== "default" && Na ( t , r , { get : ( ) => n [ r ] , enumerable : ! ( e = By ( n , r ) ) || e . enumerable } ) ; return t } , ge = t => jy ( ju ( Na ( t != null ? Hy ( $y ( t ) ) : { } , "default" , t && t . _ _esModule && "default" in t ? { get : ( ) => t . default , enumerable : ! 0 } : { value : t , enumerable : ! 0 } ) ) , t ) ; var Ot = Fe ( ( Pn , Fd ) => { "use strict" ; Object . defineProperty ( Pn , "__esModule" , { value : ! 0 } ) ; function Sn ( t ) { return typeof t == "object" && ! ( "toString" in t ) ? Object . prototype . toString . call ( t ) . slice ( 8 , - 1 ) : t } var wb = typeof process == "object" && ! 0 ; function pn ( t , n ) { if ( ! t ) throw wb ? new Error ( "Invariant failed" ) : new Error ( n ( ) ) } Pn . invariant = pn ; var vl = Object . prototype . hasOwnProperty , Eb = Array . prototype . splice , Sb = Object . prototype . toString ; function xr ( t ) { return Sb . call ( t ) . slice ( 8 , - 1 ) } var Wa = Object . assign || function ( t , n ) { return yl ( n ) . forEach ( function ( e ) { vl . call ( n , e ) && ( t [ e ] = n [ e ] ) } ) , t } , yl = typeof Object . getOwnPropertySymbols == "function" ? function ( t ) { return Object . keys ( t ) . concat ( Object . getOwnPropertySymbols ( t ) ) } : function ( t ) { return Object . keys ( t ) } ; function ar ( t ) { return Array . isArray ( t ) ? Wa ( t . constructor ( t . length ) , t ) : xr ( t ) === "Map" ? new Map ( t ) : xr ( t ) === "Set" ? new Set ( t ) : t && typeof t == "object" ? Wa ( Object . create ( Object . getPrototypeOf ( t ) ) , t ) : t } var Ld = function ( ) { function t ( ) { this . commands = Wa ( { } , xb ) , this . update = this . update . bind ( this ) , this . update . extend = this . extend = this . extend . bind ( this ) , this . update . isEquals = function ( n , e ) { return n === e } , this . update . newContext = function ( ) { return new t ( ) . update } } return Object . defineProperty ( t . prototype , "isEquals" , { get : function ( ) { return this . update . isEquals } , set : function ( n ) { this . update . isEquals = n } , enumerable : ! 0 , configurable : ! 0 } ) , t . prototype . extend = function ( n , e ) { this . commands [ n ] = e } , t . prototype . update = function ( n , e ) { var r = this , i = typeof e == "function" ? { $apply : e } : e ; Array . isArray ( n ) && Array . isArray ( i ) || pn ( ! Array . isArray ( i ) , function ( ) { return "update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value." } ) , pn ( typeof i == "object" && i !== null , function ( ) { return "update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the " + ( "following commands: " + Object . keys ( r . commands ) . join ( ", " ) + "." ) } ) ; var a = n ; return yl ( i ) . forEach ( function ( o ) { if ( vl . call ( r . commands , o ) ) { var s = n === a ; a = r . commands [ o ] ( i [ o ] , a , i , n ) , s && r . isEquals ( a , n ) && ( a = n ) } else { var u = xr ( n ) === "Map" ? r . update ( n . get ( o ) , i [ o ] ) : r . update ( n [ o ] , i [ o ] ) , l = xr ( a ) === "Map" ? a . get ( o ) : a [ o ] ; ( ! r . isEquals ( u , l ) || typeof u == "undefined" && ! vl . call ( n , o ) ) && ( a === n && ( a = ar ( n ) ) , xr ( a ) === "Map" ? a . set ( o , u ) : a [ o ] = u ) } } ) , a } , t } ( ) ; Pn . Context = Ld ; var xb = { $push : function ( t , n , e ) { return Pd ( n , e , "$push" ) , t . length ? n . concat ( t ) : n } , $unshift : function ( t , n , e ) { return Pd ( n , e , "$unshift" ) , t . length ? t . concat ( n ) : n } , $splice : function ( t , n , e , r ) { return kb ( n , e ) , t . forEach ( function ( i ) { Od ( i ) , n === r && i . length && ( n = ar ( r ) ) , Eb . apply ( n , i ) } ) , n } , $set : function ( t , n , e ) { return Tb ( e ) , t } , $toggle : function ( t , n ) { $i ( t , "$toggle" ) ; var e = t . length ? ar ( n ) : n ; return t . forEach ( function ( r ) { e [ r ] = ! n [ r ] } ) , e } , $unset : function ( t , n , e , r ) { return $i ( t , "$unset" ) , t . forEach ( function ( i ) { Object . hasOwnProperty . call ( n , i ) && ( n === r && ( n = ar ( r ) ) , delete n [ i ] ) } ) , n } , $add : function ( t , n , e , r ) { return Nd ( n , "$add" ) , $i ( t , "$add" ) , xr ( n ) === "Map" ? t . forEach ( function ( i ) { var a = i [ 0 ] , o = i [ 1 ] ; n === r && n . get ( a ) !== o && ( n = ar ( r ) ) , n . set ( a , o ) } ) : t . forEach ( function ( i ) { n === r && ! n . has ( i ) && ( n = ar ( r ) ) , n . add ( i ) } ) , n } , $remove : function ( t , n , e , r ) { return Nd ( n , "$remove" ) , $i ( t , "$remove" ) , t . forEach ( function ( i ) { n === r && n . has ( i ) && ( n = ar ( r ) ) , n . delete ( i ) } ) , n } , $merge : function ( t , n , e , r ) { return Mb ( n , t ) , yl ( t ) . forEach ( function ( i ) { t [ i ] !== n [ i ] && ( n === r && ( n = ar ( r ) ) , n [ i ] = t [ i ] ) } ) , n } , $apply : function ( t , n ) { return _b ( t ) , t ( n ) } }
2022-01-05 20:52:55 +00:00
Available method signatures are :
animateScrollTo ( y : number , options )
animateScrollTo ( [ x : number | null , y : number | null ] , options )
2022-03-19 10:03:52 +00:00
animateScrollTo ( scrollToElement : Element , options ) ` ;return e+=a.horizontalOffset,r+=a.verticalOffset,d=c.getMaxHorizontalScroll(),f=c.getHorizontalScroll(),e>d&&(e=d),h=e-f,p=c.getMaxVerticalScroll(),g=c.getVerticalScroll(),r>p&&(r=p),w=r-g,S=Math.abs(Math.round(h/1e3*a.speed)),_=Math.abs(Math.round(w/1e3*a.speed)),k=S>_?S:_,k<a.minDuration?k=a.minDuration:k>a.maxDuration&&(k=a.maxDuration),[2,new Promise(function(I,D){h===0&&w===0&&I(!0),nr.remove(a.elementToScroll,!0);var N,K=function(){Y(),cancelAnimationFrame(N),I(!1)};nr.add(a.elementToScroll,K);var j=function(le){return le.preventDefault()},X=a.cancelOnUserAction?K:j,Q=a.cancelOnUserAction?{passive:!0}:{passive:!1},ie=["wheel","touchstart","keydown","mousedown"],Y=function(){ie.forEach(function(le){a.elementToScroll.removeEventListener(le,X,Q)})};ie.forEach(function(le){a.elementToScroll.addEventListener(le,X,Q)});var J=Date.now(),ne=function(){var le=Date.now()-J,de=le/k,fe=Math.round(f+h*a.easing(de)),he=Math.round(g+w*a.easing(de));le<k&&(fe!==e||he!==r)?(c.scrollTo(fe,he),N=requestAnimationFrame(ne)):(c.scrollTo(e,r),cancelAnimationFrame(N),Y(),nr.remove(a.elementToScroll,!1),I(!0))};N=requestAnimationFrame(ne)})]})})}rr.default=pk});var pv=Fe((Ts,tu)=>{(function(n,e){typeof Ts=="object"&&typeof tu=="object"?tu.exports=e():typeof define=="function"&&define.amd?define([],e):typeof Ts=="object"?Ts.Choices=e():n.Choices=e()})(window,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(r,i,a){e.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,i){if(i&1&&(r=e(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var o in r)e.d(a,o,function(s){return r[s]}.bind(null,o));return a},e.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(i,"a",i),i},e.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},e.p="/public/assets/scripts/",e(e.s=4)}([function(t,n,e){"use strict";var r=function(P){return i(P)&&!a(P)};function i(k){return!!k&&typeof k=="object"}function a(k){var P=Object.prototype.toString.call(k);return P==="[object RegExp]"||P==="[object Date]"||u(k)}var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103;function u(k){return k. $ $ typeof===s}function l(k){return Array.isArray(k)?[]:{}}function c(k,P){return P.clone!==!1&&P.isMergeableObject(k)?S(l(k),k,P):k}function d(k,P,I){return k.concat(P).map(function(D){return c(D,I)})}function f(k,P){if(!P.customMerge)return S;var I=P.customMerge(k);return typeof I=="function"?I:S}function h(k){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(k).filter(function(P){return k.propertyIsEnumerable(P)}):[]}function p(k){return Object.keys(k).concat(h(k))}function g(k,P){try{return P in k&&!(Object.hasOwnProperty.call(k,P)&&Object.propertyIsEnumerable.call(k,P))}catch(I){return!1}}function w(k,P,I){var D={};return I.isMergeableObject(k)&&p(k).forEach(function(N){D[N]=c(k[N],I)}),p(P).forEach(function(N){g(k,N)||(!I.isMergeableObject(P[N])||!k[N]?D[N]=c(P[N],I):D[N]=f(N,I)(k[N],P[N],I))}),D}function S(k,P,I){I=I||{},I.arrayMerge=I.arrayMerge||d,I.isMergeableObject=I.isMergeableObject||r,I.cloneUnlessOtherwiseSpecified=c;var D=Array.isArray(P),N=Array.isArray(k),K=D===N;return K?D?I.arrayMerge(k,P,I):w(k,P,I):c(P,I)}S.all=function(P,I){if(!Array.isArray(P))throw new Error("first argument should be an array");return P.reduce(function(D,N){return S(D,N,I)},{})};var _=S;t.exports=_},function(t,n,e){"use strict";(function(r,i){var a=e(3),o;typeof self!="undefined"?o=self:typeof window!="undefined"?o=window:typeof r!="undefined"?o=r:o=i;var s=Object(a.a)(o);n.a=s}).
Search pattern : "`.concat(w,'" ' ) ) ; var _ = this . _prepareSearchers ( w ) , k = _ . tokenSearchers , P = _ . fullSearcher , I = this . _search ( k , P ) , D = I . weights , N = I . results ; return this . _computeScore ( D , N ) , this . options . shouldSort && this . _sort ( N ) , S . limit && typeof S . limit == "number" && ( N = N . slice ( 0 , S . limit ) ) , this . _format ( N ) } } , { key : "_prepareSearchers" , value : function ( ) { var w = arguments . length > 0 && arguments [ 0 ] !== void 0 ? arguments [ 0 ] : "" , S = [ ] ; if ( this . options . tokenize ) for ( var _ = w . split ( this . options . tokenSeparator ) , k = 0 , P = _ . length ; k < P ; k += 1 ) S . push ( new u ( _ [ k ] , this . options ) ) ; return { tokenSearchers : S , fullSearcher : new u ( w , this . options ) } } } , { key : "_search" , value : function ( ) { var w = arguments . length > 0 && arguments [ 0 ] !== void 0 ? arguments [ 0 ] : [ ] , S = arguments . length > 1 ? arguments [ 1 ] : void 0 , _ = this . list , k = { } , P = [ ] ; if ( typeof _ [ 0 ] == "string" ) { for ( var I = 0 , D = _ . length ; I < D ; I += 1 ) this . _analyze ( { key : "" , value : _ [ I ] , record : I , index : I } , { resultMap : k , results : P , tokenSearchers : w , fullSearcher : S } ) ; return { weights : null , results : P } } for ( var N = { } , K = 0 , j = _ . length ; K < j ; K += 1 ) for ( var X = _ [ K ] , Q = 0 , ie = this . options . keys . length ; Q < ie ; Q += 1 ) { var Y = this . options . keys [ Q ] ; if ( typeof Y != "string" ) { if ( N [ Y . name ] = { weight : 1 - Y . weight || 1 } , Y . weight <= 0 || Y . weight > 1 ) throw new Error ( "Key weight has to be > 0 and <= 1" ) ; Y = Y . name } else N [ Y ] = { weight : 1 } ; this . _analyze ( { key : Y , value : this . options . getFn ( X , Y ) , record : X , index : K } , { resultMap : k , results : P , tokenSearchers : w , fullSearcher : S } ) } return { weights : N , results : P } } } , { key : "_analyze" , value : function ( w , S ) { var _ = w . key , k = w . arrayIndex , P = k === void 0 ? - 1 : k , I = w . value , D = w . record , N = w . index , K = S . tokenSearchers , j = K === void 0 ? [ ] : K , X = S . fullSearcher , Q = X === void 0 ? [ ] : X , ie = S . resultMap , Y = ie === void 0 ? { } : ie , J = S . results , ne = J === void 0 ? [ ] : J ; if ( I != null ) { var le = ! 1 , de = - 1 , fe = 0 ; if ( typeof I == "string" ) { this . _log ( `
Key : ` .concat(_===""?"-":_));var he=Q.search(I);if(this._log('Full text: "'.concat(I,'", score: ').concat(he.score)),this.options.tokenize){for(var Te=I.split(this.options.tokenSeparator),C=[],A=0;A<j.length;A+=1){var tt=j[A];this._log( `
2022-01-05 20:52:55 +00:00
Pattern : "`.concat(tt.pattern,'" '));for(var $e=!1,B=0;B<Te.length;B+=1){var z=Te[B],U=tt.search(z),G={};U.isMatch?(G[z]=U.score,le=!0,$e=!0,C.push(U.score)):(G[z]=1,this.options.matchAllTokens||C.push(1)),this._log(' Token : "'.concat(z,'" , score : ' ) . concat ( G [ z ] ) ) } $e && ( fe += 1 ) } de = C [ 0 ] ; for ( var we = C . length , Ee = 1 ; Ee < we ; Ee += 1 ) de += C [ Ee ] ; de /= we , this . _log ( "Token score average:" , de ) } var Pe = he . score ; de > - 1 && ( Pe = ( Pe + de ) / 2 ) , this . _log ( "Score average:" , Pe ) ; var rt = ! this . options . tokenize || ! this . options . matchAllTokens || fe >= j . length ; if ( this . _log ( `
2022-03-19 10:03:52 +00:00
Check Matches : ` .concat(rt)),(le||he.isMatch)&&rt){var gt=Y[N];gt?gt.output.push({key:_,arrayIndex:P,value:I,score:Pe,matchedIndices:he.matchedIndices}):(Y[N]={item:D,output:[{key:_,arrayIndex:P,value:I,score:Pe,matchedIndices:he.matchedIndices}]},ne.push(Y[N]))}}else if(c(I))for(var dt=0,un=I.length;dt<un;dt+=1)this._analyze({key:_,arrayIndex:dt,value:I[dt],record:D,index:N},{resultMap:Y,results:ne,tokenSearchers:j,fullSearcher:Q})}}},{key:"_computeScore",value:function(w,S){this._log( `
2022-01-05 20:52:55 +00:00
Computing score :
2022-03-19 10:03:52 +00:00
` );for(var _=0,k=S.length;_<k;_+=1){for(var P=S[_].output,I=P.length,D=1,N=1,K=0;K<I;K+=1){var j=w?w[P[K].key].weight:1,X=(j===1?P[K].score:P[K].score||.001)*j;j!==1?N=Math.min(N,X):(P[K].nScore=X,D*=X)}S[_].score=N===1?D:N,this._log(S[_])}}},{key:"_sort",value:function(w){this._log( `
2022-01-05 20:52:55 +00:00
Sorting ... . ` ),w.sort(this.options.sortFn)}},{key:"_format",value:function(w){var S=[];if(this.options.verbose){var _=[];this._log( `
Output :
2022-03-19 10:03:52 +00:00
` ,JSON.stringify(w,function(X,Q){if(o(Q)==="object"&&Q!==null){if(_.indexOf(Q)!==-1)return;_.push(Q)}return Q})),_=null}var k=[];this.options.includeMatches&&k.push(function(X,Q){var ie=X.output;Q.matches=[];for(var Y=0,J=ie.length;Y<J;Y+=1){var ne=ie[Y];if(ne.matchedIndices.length!==0){var le={indices:ne.matchedIndices,value:ne.value};ne.key&&(le.key=ne.key),ne.hasOwnProperty("arrayIndex")&&ne.arrayIndex>-1&&(le.arrayIndex=ne.arrayIndex),Q.matches.push(le)}}}),this.options.includeScore&&k.push(function(X,Q){Q.score=X.score});for(var P=0,I=w.length;P<I;P+=1){var D=w[P];if(this.options.id&&(D.item=this.options.getFn(D.item,this.options.id)[0]),k.length){for(var N={item:D.item},K=0,j=k.length;K<j;K+=1)k[K](D,N);S.push(N)}else S.push(D.item)}return S}},{key:"_log",value:function(){var w;this.options.verbose&&(w=console).log.apply(w,arguments)}}])&&s(h.prototype,p),g&&s(h,g),f}();r.exports=d},function(r,i,a){function o(d,f){for(var h=0;h<f.length;h++){var p=f[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}var s=a(3),u=a(4),l=a(7),c=function(){function d(g,w){var S=w.location,_=S===void 0?0:S,k=w.distance,P=k===void 0?100:k,I=w.threshold,D=I===void 0?.6:I,N=w.maxPatternLength,K=N===void 0?32:N,j=w.isCaseSensitive,X=j!==void 0&&j,Q=w.tokenSeparator,ie=Q===void 0?/ +/g:Q,Y=w.findAllMatches,J=Y!==void 0&&Y,ne=w.minMatchCharLength,le=ne===void 0?1:ne;(function(de,fe){if(!(de instanceof fe))throw new TypeError("Cannot call a class as a function")})(this,d),this.options={location:_,distance:P,threshold:D,maxPatternLength:K,isCaseSensitive:X,tokenSeparator:ie,findAllMatches:J,minMatchCharLength:le},this.pattern=this.options.isCaseSensitive?g:g.toLowerCase(),this.pattern.length<=K&&(this.patternAlphabet=l(this.pattern))}var f,h,p;return f=d,(h=[{key:"search",value:function(g){if(this.options.isCaseSensitive||(g=g.toLowerCase()),this.pattern===g)return{isMatch:!0,score:0,matchedIndices:[[0,g.length-1]]};var w=this.options,S=w.maxPatternLength,_=w.tokenSeparator;if(this.pattern.length>S)return s(g,this.pattern,_);var k=this.options,P=k.location,I=k.distance,D=k.threshold,N=k.findAllMatches,K=k.minMatchCharLength;return u(g,this.pattern,this.patternAlphabet,{location:P,distance:I,threshold:D,findAllMatches:N,minMatchCharLength:K})}}])&&o(f.prototype,h),p&&o(f,p),d}();r.exports=c},function(r,i){var a=/[ \- \[ \] \/ \{ \} \( \) \* \+ \? \. \\ \^ \$ \| ]/g;r.exports=function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,l=new RegExp(s.replace(a," \\ $ &").replace(u,"|")),c=o.match(l),d=!!c,f=[];if(d)for(var h=0,p=c.length;h<p;h+=1){var g=c[h];f.push([o.indexOf(g),g.length-1])}return{score:d?.5:1,isMatch:d,matchedIndices:f}}},function(r,i,a){var o=a(5),s=a(6);r.exports=function(u,l,c,d){for(var f=d.location,h=f===void 0?0:f,p=d.distance,g=p===void 0?100:p,w=d.threshold,S=w===void 0?.6:w,_=d.findAllMatches,k=_!==void 0&&_,P=d.minMatchCharLength,I=P===void 0?1:P,D=h,N=u.length,K=S,j=u.indexOf(l,D),X=l.length,Q=[],ie=0;ie<N;ie+=1)Q[ie]=0;if(j!==-1){var Y=o(l,{errors:0,currentLocation:j,expectedLocation:D,distance:g});if(K=Math.min(Y,K),(j=u.lastIndexOf(l,D+X))!==-1){var J=o(l,{errors:0,currentLocation:j,expectedLocation:D,distance:g});K=Math.min(J,K)}}j=-1;for(var ne=[],le=1,de=X+N,fe=1<<X-1,he=0;he<X;he+=1){for(var Te=0,C=de;Te<C;)o(l,{errors:he,currentLocation:D+C,expectedLocation:D,distance:g})<=K?Te=C:de=C,C=Math.floor((de-Te)/2+Te);de=C;var A=Math.max(1,D-C+1),tt=k?N:Math.min(D+C,N)+X, $ e=Array(tt+2); $ e[tt+1]=(1<<he)-1;for(var B=tt;B>=A;B-=1){var z=B-1,U=c[u.charAt(z)];if(U&&(Q[z]=1), $ e[B]=( $ e[B+1]<<1|1)&U,he!==0&&( $ e[B]|=(ne[B+1]|ne[B])<<1|1|ne[B+1]), $ e[B]&fe&&(le=o(l,{errors:he,currentLocation:z,expectedLocation:D,distance:g}))<=K){if(K=le,(j=z)<=D)break;A=Math.max(1,2*D-j)}}if(o(l,{errors:he+1,currentLocation:D,expectedLocation:D,distance:g})>K)break;ne= $ e}return{isMatch:j>=0,score:le===0?.001:le,matchedIndices:s(Q,I)}}},function(r,i){r.exports=function(a,o){var s=o.errors,u=s===void 0?0:s,l=o.currentLocation,c=l===void 0?0:l,d=o.expectedLocation,f=d===void 0?0:d,
2022-01-05 20:52:55 +00:00
< span class = 'flatpickr-weekday' >
$ { T . join ( "</span><span class='flatpickr-weekday'>" ) }
< / s p a n >
2022-03-19 10:03:52 +00:00
` }function he(){e.calendarContainer.classList.add("hasWeeks");let x=Ve("div","flatpickr-weekwrapper");x.appendChild(Ve("span","flatpickr-weekday",e.l10n.weekAbbreviation));let T=Ve("div","flatpickr-weeks");return x.appendChild(T),{weekWrapper:x,weekNumbers:T}}function Te(x,T=!0){let H=T?x:x-e.currentMonth;H<0&&e._hidePrevMonthArrow===!0||H>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=H,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,Ke("onYearChange"),ie()),Q(),Ke("onMonthChange"),At())}function C(x=!0,T=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,T===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){let{hours:H,minutes:W,seconds:ae}=Ao(e.config);f(H,W,ae)}e.redraw(),x&&Ke("onChange")}function A(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Ke("onClose")}function tt(){e.config!==void 0&&Ke("onDestroy");for(let x=e._handlers.length;x--;)e._handlers[x].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){let x=e.calendarContainer.parentNode;if(x.lastChild&&x.removeChild(x.lastChild),x.parentNode){for(;x.firstChild;)x.parentNode.insertBefore(x.firstChild,x);x.parentNode.removeChild(x)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(x=>{try{delete e[x]}catch(T){}})}function $ e(x){return e.config.appendTo&&e.config.appendTo.contains(x)?!0:e.calendarContainer.contains(x)}function B(x){if(e.isOpen&&!e.config.inline){let T=Jt(x),H= $ e(T),W=T===e.input||T===e.altInput||e.element.contains(T)||x.path&&x.path.indexOf&&(~x.path.indexOf(e.input)||~x.path.indexOf(e.altInput)),ae=x.type==="blur"?W&&x.relatedTarget&&! $ e(x.relatedTarget):!W&&!H&&! $ e(x.relatedTarget),Z=!e.config.ignoredFocusElements.some(ce=>ce.contains(T));ae&&Z&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&s(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function z(x){if(!x||e.config.minDate&&x<e.config.minDate.getFullYear()||e.config.maxDate&&x>e.config.maxDate.getFullYear())return;let T=x,H=e.currentYear!==T;e.currentYear=T||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),H&&(e.redraw(),Ke("onYearChange"),ie())}function U(x,T=!0){var H;let W=e.parseDate(x,void 0,T);if(e.config.minDate&&W&&Gt(W,e.config.minDate,T!==void 0?T:!e.minDateHasTime)<0||e.config.maxDate&&W&&Gt(W,e.config.maxDate,T!==void 0?T:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(W===void 0)return!1;let ae=!!e.config.enable,Z=(H=e.config.enable)!==null&&H!==void 0?H:e.config.di
` );Tt(s,u)}}catch(o){console.error(o),n.setError(o)}}var xm=ge(gc()),km=ge(Jp());function Xn(t){return Array.isArray?Array.isArray(t):Xp(t)==="[object Array]"}var LS=1/0;function PS(t){if(typeof t=="string")return t;let n=t+"";return n=="0"&&1/t==-LS?"-0":n}function OS(t){return t==null?"":PS(t)}function Zn(t){return typeof t=="string"}function Gp(t){return typeof t=="number"}function NS(t){return t===!0||t===!1||FS(t)&&Xp(t)=="[object Boolean]"}function Qp(t){return typeof t=="object"}function FS(t){return Qp(t)&&t!==null}function on(t){return t!=null}function yc(t){return!t.trim().length}function Xp(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}var RS="Incorrect 'index' type",HS=t=> ` Invalid value for key $ { t } ` ,BS=t=> ` Pattern length exceeds max of $ { t } . ` ,KS=t=> ` Missing $ { t } property in key ` , $ S=t=> ` Property 'weight' in key '${t}' must be a positive integer ` ,Zp=Object.prototype.hasOwnProperty,em=class{constructor(n){this._keys=[],this._keyMap={};let e=0;n.forEach(r=>{let i=tm(r);e+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(r=>{r.weight/=e})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function tm(t){let n=null,e=null,r=null,i=1;if(Zn(t)||Xn(t))r=t,n=nm(t),e=bc(t);else{if(!Zp.call(t,"name"))throw new Error(KS("name"));let a=t.name;if(r=a,Zp.call(t,"weight")&&(i=t.weight,i<=0))throw new Error( $ S(a));n=nm(a),e=bc(a)}return{path:n,id:e,weight:i,src:r}}function nm(t){return Xn(t)?t:t.split(".")}function bc(t){return Xn(t)?t.join("."):t}function US(t,n){let e=[],r=!1,i=(a,o,s)=>{if(!!on(a))if(!o[s])e.push(a);else{let u=o[s],l=a[u];if(!on(l))return;if(s===o.length-1&&(Zn(l)||Gp(l)||NS(l)))e.push(OS(l));else if(Xn(l)){r=!0;for(let c=0,d=l.length;c<d;c+=1)i(l[c],o,s+1)}else o.length&&i(l,o,s+1)}};return i(t,Zn(n)?n.split("."):n,0),r?e:e[0]}var jS={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},zS={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,n)=>t.score===n.score?t.idx<n.idx?-1:1:t.score<n.score?-1:1},VS={location:0,threshold:.6,distance:100},qS={useExtendedSearch:!1,getFn:US,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},ke={...zS,...jS,...VS,...qS},WS=/[^ ]+/g;function YS(t=1,n=3){let e=new Map,r=Math.pow(10,n);return{get(i){let a=i.match(WS).length;if(e.has(a))return e.get(a);let o=1/Math.pow(a,.5*t),s=parseFloat(Math.round(o*r)/r);return e.set(a,s),s},clear(){e.clear()}}}var ss=class{constructor({getFn:n=ke.getFn,fieldNormWeight:e=ke.fieldNormWeight}={}){this.norm=YS(e,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}setSources(n=[]){this.docs=n}setIndexRecords(n=[]){this.records=n}setKeys(n=[]){this.keys=n,this._keysMap={},n.forEach((e,r)=>{this._keysMap[e.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Zn(this.docs[0])?this.docs.forEach((n,e)=>{this._addString(n,e)}):this.docs.forEach((n,e)=>{this._addObject(n,e)}),this.norm.clear())}add(n){let e=this.size();Zn(n)?this._addString(n,e):this._addObject(n,e)}removeAt(n){this.records.splice(n,1);for(let e=n,r=this.size();e<r;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(n,e){return n[this._keysMap[e]]}size(){return this.records.length}_addString(n,e){if(!on(n)||yc(n))return;let r={v:n,i:e,n:this.norm.get(n)};this.records.push(r)}_addObject(n,e){let r={i:e, $ :{}};this.keys.forEach((i,a)=>{let o=this.getFn(n,i.path);if(!!on(o)){if(Xn(o)){let s=[],u=[{nestedArrIndex:-1,value:o}];for(;u.length;){let{nestedArrIndex:l,value:c}=u.pop();if(!!on(c))if(Zn(c)&&!yc(c)){let d={v:c,i:l,n:this.norm.get(c)};s.push(d)}else Xn(c)&&c.forEach((d,f)=>{u.push({nestedArrIndex:f,value:d})})}r. $ [a]=s}else if(!yc(o)){let s={v:o,n:this.norm.get(o)};r. $ [a]=s}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}};function rm(t,n,{getFn:e=ke.getFn,fieldNormWeight:r=ke.fieldNormWeight}={}){let i=new ss({getFn:e,fieldNormWeight:r});return i.setKeys(t.map(tm)),i.setSources(n),i.create(),i}function JS(t,{getFn:n=ke.getFn,fieldNormWeight:e=ke.fieldNormWeight}={}){let{
2022-01-05 20:52:55 +00:00
2022-03-19 10:03:52 +00:00
` :" ";n.app.vault.cachedRead(i.item.file).then(c=>{let d= ` $ { c . substring ( 0 , i . item . block . end ) } $ { l } ^ $ { u } $ { c . substring ( i . item . block . end ) } ` ;n.app.vault.modify(i.item.file,d)}).catch(c=>{n.setError(c),console.error(c)}),o+=u}a.push(n.app.fileManager.generateMarkdownLink(i.item.file,n.file.path,o,i.item.alias));let s=!!n.app.vault.getConfig("useMarkdownLinks");return e&&!s?a[a.length-1]=a[a.length-1].slice(0,-2):!e&&!s&&a.push("]] "),a.join("")}}}var wx=/ \B #([^ \s ]*)? $ /;function Sm(t,n){return{id:"tag",match:wx,index:1,search:(e,r)=>{r(e?n.search(e,{limit:50}):t.slice(0,50).map((i,a)=>({item:i,refIndex:a})))},template:e=>e.item,replace:e=> ` $ { e . item } ` }}function Ex({inputRef:t,isAutocompleteVisibleRef:n,obsidianContext:e,excludeDatePicker:r}){let{stateManager:i,filePath:a,view:o}=e,s=null,u=null,l=i.getSetting("date-trigger"),c=new RegExp( ` ( ? : ^ | \ \ s ) $ { On ( l ) } $ ` ),d=Object.keys(i.app.metadataCache.getTags()).sort(),f=new gn(d),h=i.app.metadataCache.getLinkSuggestions().filter(I=>!!I.file),p=new gn(h,{keys:["file.basename","alias"]}),g=o.app.vault.getConfig("autoPairBrackets"),w=[Sm(d,f),Ac(a,i,g,!0),Ac(a,i,g,!1),Ic(a,i,g,!0),Ic(a,i,g,!1),Cc(h,p,a,i,g,!0),Cc(h,p,a,i,g,!1)];r||w.push(vm(i));let S=new km.TextareaEditor(t.current),_=new xm.Textcomplete(S,w,{dropdown:{maxCount:96,className: ` $ { $ ( "autocomplete" ) } $ { $ ( "ignore-click-outside" ) } ` ,rotate:!0,item:{className: ` $ { $ ( "autocomplete-item" ) } $ { $ ( "ignore-click-outside" ) } ` ,activeClassName: ` $ { $ ( "autocomplete-item-active" ) } $ { $ ( "ignore-click-outside" ) } ` }}}),k=()=>{_.isShown()||(n.current=!1),u.destroy(),s.remove(),setTimeout(()=>s=null)};_.on("show",()=>{n.current=!0}),_.on("hidden",()=>{n.current=!1});let P;return r||(P=I=>{if(_.isShown&&["#","^"].contains(I.key)){let N=_.dropdown.getActiveItem(),K=N==null?void 0:N.searchResult;if(K&&K.strategy.props.id.startsWith("link")){I.preventDefault(),S.applySearchResult(K),Tt(t.current,I.key==="^"?"#^":"#");return}}if(!s)return;if(I.key==="Enter"){I.preventDefault();let N=u.selectedDates;return N.length?us(N[0],t,i):us(new Date,t,i),k()}if(I.key==="Escape")return I.preventDefault(),k();let D=(0,_m.moment)(u.selectedDates[0]||new Date);if(I.key==="ArrowRight"){I.preventDefault(),D.weekday()===6?u.setDate(bm(D).toDate(),!1):u.setDate(D.add(1,"day").toDate(),!1);return}if(I.key==="ArrowLeft"){I.preventDefault(),D.weekday()===0?u.setDate(ym(D).toDate(),!1):u.setDate(D.subtract(1,"day").toDate(),!1);return}if(I.key==="ArrowUp"){I.preventDefault(),u.setDate(D.subtract(1,"week").toDate(),!1);return}if(I.key==="ArrowDown"){I.preventDefault(),u.setDate(D.add(1,"week").toDate(),!1);return}},t.current.addEventListener("keydown",P),S.on("change",I=>{let D=I.detail.beforeCursor;if(D&&c.test(D)){let N=S.getCursorOffset();s?(s.style.left= ` $ { N . left || 0 } px ` ,s.style.top= ` $ { N . top || 0 } px ` ,Dc(N,s)):s=document.body.createDiv({cls: ` $ { $ ( "date-picker" ) } $ { $ ( "ignore-click-outside" ) } ` },K=>{K.style.left= ` $ { N . left || 0 } px ` ,K.style.top= ` $ { N . top || 0 } px ` ,gm({div:K,inputRef:t,stateManager:i,cb:j=>{u=j,n.current=!0,Dc(N,s)}})})}else s&&k()})),()=>{!r&&t.current&&t.current.removeEventListener("keydown",P),s&&k(),_.destroy(),S.destroy()}}function Tm({isInputVisible:t,onEnter:n,onEscape:e,onKeyDown:r,excludeDatePicker:i}){let a=v.useContext(qe),o=v.useRef(!1),s=v.useRef(),{oncompositionstart:u,oncompositionend:l,getShouldIMEBlockAction:c}=Ga();return v.useEffect(()=>{let d=s.current;if(t&&d)return d.focus(),d.selectionStart=d.selectionEnd=d.value.length,Ex({inputRef:s,isAutocompleteVisibleRef:o,obsidianContext:a,excludeDatePicker:i})},[t]),{ref:s,oncompositionstart:u,oncompositionend:l,onKeyDownCapture:d=>{c()||o.current||r(d)||(d.key==="Enter"?n&&n(d):d.key==="Escape"&&e&&e(d))}}}var Mm=/^[*_]{2}(.+)[*_]{2} $ /;function Sx(t){return t.replace(Mm," $ 1")}var Dm=/^[*_]{1}(.+)[*_]{1} $ /;function xx(t){return t.replace(Dm," $ 1")}var Cm=/^ ` { 1 } ( . + ) ` {1} $ /;function kx(t){return t.replace(Cm," $ 1")}var Im=/^={2}(.+)={2} $ /;function _x(t){return t.replace(Im," $ 1")}var Am=/^~{2}(.+)~{2} $ /;function Tx(t){return t.replace(Am," $ 1")}var Mx=/^(?:>.+?(?:[ \r \n ]| $ ))+ $ /;function Dx(t){return t.split( `
2022-01-05 20:52:55 +00:00
` ).map(e=>e[0]===">"?e: ` > $ { e } ` ).join( `
` )}function Cx(t){return t.split( `
` ).map(e=>e[0]!==">"?e:e.replace(/^>+ \s */,"")).join( `
2022-03-19 10:03:52 +00:00
` )}var va=/^(?: \s * \d +[.)] \s +.+?(?:[ \r \n ]| $ ))+ $ /,Lc=/^(?: \s * \d +[.)] \s + \[ \s + \] +.+?(?:[ \r \n ]| $ ))+ $ /,Pc=/^(?: \s * \d +[.)] \s + \[ [^ \] \s ]+ \] +.+?(?:[ \r \n ]| $ ))+ $ /;function Ix(t){return t.match(/^ \s */)[0].length}function Ax(t){return parseInt(t.match(/^ \s *( \d +)/)[1],10)}function Lx(t){let n=[0],e=0;return t.split( `
` ).map(r=>{let i=Ix(r);if(i>e?n.push(0):i<e&&n.pop(),e=i,va.test(r)){let a=Ax(r);return n[n.length-1]=a,r}return n[n.length-1]=n[n.length-1]+1,r.replace(/^( \s *)/, ` $1$ { n [ n . length - 1 ] } . ` )}).join( `
2022-01-05 20:52:55 +00:00
` )}function Px(t){return t.split( `
` ).map(n=>va.test(n)?n.replace(/^( \s *) \d +[.)] \s +/," $ 1"):n).join( `
` )}var ya=/^(?: \s *[-*+] \s +.+?(?:[ \r \n ]| $ ))+ $ /,Oc=/^(?: \s *[-*+] \s + \[ \s + \] +.+?(?:[ \r \n ]| $ ))+ $ /,Nc=/^(?: \s *[-*+] \s + \[ [^ \] \s ]+ \] +.+?(?:[ \r \n ]| $ ))+ $ /;function Lm(t){return t.split( `
` ).map(e=>ya.test(e)?e:e.replace(/^( \s *)/," $ 1- ")).join( `
` )}function Ox(t){return t.split( `
` ).map(n=>Oc.test(n)||Nc.test(n)?n:n.replace(/^( \s *[-*+] \s +)/," $ 1[ ] ")).join( `
` )}function Nx(t){return t.split( `
` ).map(n=>Lc.test(n)||Pc.test(n)?n:n.replace(/^( \s * \d +[.)] \s +)/," $ 1[ ] ")).join( `
` )}function Fx(t){return t.split( `
` ).map(n=>Oc.test(n)?n:n.replace(/^( \s *[-*+] \s +) \[ [^ \] ] \] /," $ 1[ ]")).join( `
` )}function Rx(t){return t.split( `
` ).map(n=>Lc.test(n)?n:n.replace(/^( \s * \d +[.)] \s +) \[ [^ \] ]{1} \] /," $ 1[ ]")).join( `
` )}function Hx(t){return t.split( `
` ).map(n=>Nc.test(n)?n:n.replace(/^( \s *[-*+] \s +) \[ \s \] /," $ 1[x]")).join( `
` )}function Bx(t){return t.split( `
` ).map(n=>Pc.test(n)?n:n.replace(/^( \s * \d +[.)] \s +) \[ \s \] /," $ 1[x]")).join( `
` )}function Kx(t){return t.split( `
` ).map(e=>ya.test(e)?e.replace(/^( \s *)[-+*] \s +/," $ 1"):e).join( `
2022-03-19 10:03:52 +00:00
` )}var Pm={"editor:toggle-bold":t=>{Ei(t,Mm,Sx,"**")},"editor:toggle-code":t=>{Ei(t,Cm,kx," ` ")}," editor : toggle - italics ":t=>{Ei(t,Dm,xx," * ")}," editor : toggle - highlight ":t=>{Ei(t,Im,_x," == ")}," editor : toggle - strikethrough ":t=>{Ei(t,Am,Tx," ~ ~ ")}," editor : toggle - blockquote ":t=>{zo(t,Mx,Dx,Cx)}," editor : toggle - bullet - list ":t=>{zo(t,ya,Lm,Kx)}," editor : toggle - numbered - list ":t=>{zo(t,va,Lx,Px)}," editor : toggle - checklist - status ":t=>{let n=Hn(t),e=wi({text:n.text,selection:n.selection}),r=Rt(t,e),i=r.selectedText,a=ya.test(i),o=va.test(i);!a&&!o?i=Lm(i):a?Oc.test(i)?i=Hx(i):Nc.test(i)?i=Fx(i):i=Ox(i):Lc.test(i)?i=Bx(i):Pc.test(i)?i=Rx(i):i=Nx(i);let s=Tt(t,i);Rt(t,{start:r.selection.start,end:s.selection.end})}},Fc={" ( ":t=>rn(t," ( "," ) ",!1)," [ ":t=>rn(t," [ "," ] ",!1,!0)," { ":t=>rn(t," { "," } ",!1)," '":t=>rn(t,"' "," '",!1),' "':t=>rn(t,'" ',' "',!1)},Rc={" * ":t=>rn(t," * "," * ",!1),_:t=>rn(t," _ "," _ ",!1)," ` ":t=>rn(t," ` "," ` ",!1),"=":t=>rn(t,"=","=",!0),"~":t=>rn(t,"~","~",!0), $ :t=>rn(t," $ "," $ ",!0),"%":t=>rn(t,"%","%",!0)}, $ x={"(":")","[":"]","{":"}","'":"'",'"':'"',"*":"*",_:"_"," ` ":" ` ","=":"=","~":"~", $ :" $ ","%":"%"};function Om(t,n){let e=Hn(t);if(e.selection.end!==e.selection.start||e.selection.end===e.text.length)return!1;let r=e.text[e.selection.end-1],i=e.text[e.selection.end];if(n[r]&&i=== $ x[r])return Rt(t,{start:e.selection.end,end:e.selection.end+1}),Tt(t,""),!0}function Nm(t){return Om(t,Fc)}function Fm(t){return Om(t,Rc)}function Ux(t,n,e){let r=n?" ":" ".repeat(e);return t.split( `
2022-01-05 20:52:55 +00:00
` ).map(i=>r+i).join( `
` )}function jx(t,n,e){let r=n?" \\ t":" ".repeat(e),i=new RegExp( ` ^ $ { r } ` );return t.split( `
` ).map(a=>i.test(a)?a.replace(i,""):a).join( `
` )}function Rm(t,n,e,r){let i=Hn(t);if(n){let l=wi(i),c=Rt(t,l);if(Tt(t,jx(c.selectedText,e,r)),i.selection.start===i.selection.end){let d=e?1:r;Rt(t,{start:i.selection.start-d,end:i.selection.end-d})}return!0}let a=wi(i),o=Rt(t,a),u=Ux(o.selectedText,e,r).replace(/^( \s *)( \d +)([.)] \s )/,(l,c,d,f)=> ` $ { c } 1 $ { f } ` );return Tt(t,u),!0}function Hm(t){let n=Hn(t);if(n.selection.start!==n.selection.end)return!1;let e=wi(n),r=t.value.slice(e.start,n.selection.end),i=t.value.slice(e.start,e.end);if(/^( \s *[-*+] \s +(?: \[ [^ \] ] \] \s *)?) $ /.test(i))return Rt(t,{start:e.start-1,end:e.end}),Tt(t, `
` ),!0;if(/^( \s * \d [.)] \s +(?: \[ [^ \] ] \] \s *)?) $ /.test(i))return Rt(t,{start:e.start-1,end:e.end}),Tt(t, `
` ),!0;if(ya.test(r)){let a=r.match(/^( \s *[-*+] \s +(?: \[ [^ \] ] \] \s *)?)/)[1];return pa(t, `
$ { a . replace ( /^(\s*[-*+]\s+)\[[^\]]\]/ , "$1[ ]" ) } ` ),!0}if(va.test(r)){let s=r.match(/^( \s * \d +[.)] \s +(?: \[ [^ \] ] \] \s *)?)/)[1].replace(/^( \s * \d +[.)] \s +) \[ [^ \] ] \] /," $ 1[ ]").replace(/^( \s *)( \d +)/,(u,l,c)=> ` $ { l } $ { parseInt ( c ) + 1 } ` );return pa(t, `
2022-03-19 10:03:52 +00:00
$ { s } ` ),!0}return!1}function tr(t,n){return n.getSetting("new-line-trigger")==="enter"?t.key==="Enter"&&!(t.shiftKey||t.metaKey||t.ctrlKey):t.key==="Enter"&&t.shiftKey}var gr=v.forwardRef(function({onEnter:n,onEscape:e,...r},i){let{view:a,stateManager:o}=v.useContext(qe),s=v.useMemo(()=>a.app.vault.getConfig("autoPairMarkdown"),[a]),u=v.useMemo(()=>a.app.vault.getConfig("autoPairBrackets"),[a]),l=v.useMemo(()=>a.app.vault.getConfig("useTab"),[a]),c=v.useMemo(()=>a.app.vault.getConfig("tabSize"),[a]),d=!!a.app.vault.getConfig("useMarkdownLinks"),f=Tm({isInputVisible:!0,onEnter:n,onEscape:e,onKeyDown:h=>{if(h.key==="Backspace"){let p=Nm(h.target);return p||Fm(h.target)}if(tr(h,o)){let p=Hm(h.target);if(p)return h.preventDefault(),p}if(h.key==="Tab")return h.preventDefault(),Rm(h.target,h.shiftKey,l,c);if(s){let p=Rc[h.key];if(p&&p(h.target))return h.preventDefault(),!0}if(u){if(d&&h.key==="[")return!1;let p=Fc[h.key];if(p&&p(h.target))return h.preventDefault(),!0}return!1}});return v.useEffect(()=>{let h=p=>{let g=Pm[p];g&&g(f.ref.current)};return a.emitter.on("hotkey",h),()=>{a.emitter.off("hotkey",h)}},[a]),v.createElement("div",{"data-replicated-value":r.value,className: $ ("grow-wrap")},v.createElement("textarea",{"data-ignore-drag":!0,rows:1,className: $ ("item-input"),...r,...f,ref:h=>{f.ref.current=h,i&&typeof i=="function"?i(h):i&&(i.current=h)}}))});var Uc=ge(Bm());var vr=ge(require("obsidian"));var Km={};var $ m={};var Um={};var jm={"Open as kanban board":" \x D6ffne als Kanban-Board","Create new board":"Erstelle ein neues Board","Archive completed cards in active board":"Archiviere fertiggestellte Karten im aktiven Board","Error: current file is not a Kanban board":"Fehler: Momentan ge \x F6ffnete Datei ist kein Kanban-Board","Convert empty note to Kanban":"Konvertiere leere Notiz in ein Kanban-Board","Error: cannot create Kanban, the current note is not empty":"Fehler: Kanban konnte nicht erstellt werden, momentan ge \x F6ffnete Datei ist nicht leer","New kanban board":"Neues Kanban-Board","Untitled Kanban":"Unbenanntes Kanban","Toggle between Kanban and markdown mode":"Wechsle zwischen Kanban und Markdown Modus","Open as markdown":" \x D6ffne als Markdown","Open board settings":" \x D6ffne Board-Einstellungen","Archive completed cards":"Archiviere fertiggestellte Karten","Something went wrong":"Etwas ist schief gelaufen","You may wish to open as markdown and inspect or edit the file.":"Du kannst die Datei im Markdown Modus \x F6ffnen und \x FCberpr \x FCfen oder bearbeiten.","Are you sure you want to archive all completed cards on this board?":"Bist du dir sicher, dass du alle fertiggestellten Karten des Boards archivieren m \x F6chtest?",Complete:"Fertiggestellt",Archive:"Archiv","Invalid Kanban file: problems parsing frontmatter":"Fehlerhafte Kanban Datei: Probleme beim Parsen des Frontmatters","I don't know how to interpret this line:":"Ich wei \x DF nicht, wie ich diese Zeile interpretieren soll:",Untitled:"Unbenannt","Note: No template plugins are currently enabled.":"Beachte: Keine Template-Plugins sind derzeit aktiviert.",default:"Standard","Search...":"Suche...","These settings will take precedence over the default Kanban board settings.":"Diese Einstellung wird Vorrang vor der standard Kanban-Board Einstellung haben. ","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Stelle standard Kanban-Board Einstellungen ein. Einstellungen k \x F6nnen auf einer Board-f \x FCr-Board Basis \x FCberschrieben werden.","Note template":"Notiz Vorlage","This template will be used when creating new notes from Kanban cards.":"Diese Vorlage wird beim Erstellen neuer Notizen aus Kanban-Karten verwendet.","No template":"Keine Vorlage","Note folder":"Notiz Ordner","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Notizen, welche aus einer Kanban-Karte erstellt wurden, werden in diesem Ordner platziert. Falls leer, werden die Einstellungen des Vaults verwendet.","Default folder":"Standard Ordner","Lane width":"Schienen Brei
` )[0].trim(),h=f.replace(ok," ").trim(),p=/^! \[ /.test(f);if(p){let I=h.replace(/! \[ +([^ \] ]+).+ $ /," $ 1").split(".");I.pop(),h=I.join(".").trim()}let g=i.getSetting("new-note-folder"),w=i.getSetting("new-note-template"),S=g?i.app.vault.getAbstractFileByPath(g):i.app.fileManager.getNewFileParent(i.file.path),_=await i.app.fileManager.createNewMarkdownFile(S,h),k=i.app.workspace.splitActiveLeaf();await k.openFile(_),i.app.workspace.setActiveLeaf(k,!1,!0),await Gd(i,w);let P=n.data.titleRaw.replace(f,p? ` [ $ { f } ] ( $ { encodeURIComponent ( _ . path ) } ) ` :i.app.fileManager.generateMarkdownLink(_,i.file.path));i.updateItemContent(n,P).then(I=>{r.updateItem(e,I)}).catch(I=>{i.setError(I),console.error(I)})})}).addItem(d=>{d.setIcon("links-coming-in").setTitle(F("Copy link to card")).onClick(()=>{if(n.data.blockId)navigator.clipboard.writeText( ` $ { this . app . fileManager . generateMarkdownLink ( i . file , "" , "#^" + n . data . blockId ) } ` );else{let f=Math.random().toString(36).substr(2,6);navigator.clipboard.writeText( ` $ { this . app . fileManager . generateMarkdownLink ( i . file , "" , "#^" + f ) } ` ),i.updateItemContent(n, ` $ { n . data . titleRaw } ^ $ { f } ` ).then(h=>{r.updateItem(e,h)}).catch(h=>{i.setError(h),console.error(h)})}})}).addSeparator(),/ \n /.test(n.data.titleRaw)&&c.addItem(d=>{d.setIcon("split").setTitle(F("Split card")).onClick(async()=>{let f=n.data.titleRaw.split(/[ \r \n ]+/g).map(p=>p.trim()),h=await Promise.all(f.map(p=>i.getNewItem(p)));r.splitItem(e,h)})}),c.addItem(d=>{d.setIcon("documents").setTitle(F("Duplicate card")).onClick(()=>r.duplicateEntity(e))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(F("Insert card before")).onClick(async()=>r.insertItems(e,[await i.getNewItem("",!1,!0)]))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(F("Insert card after")).onClick(async()=>{let f=[...e];f[f.length-1]=f[f.length-1]+1,r.insertItems(f,[await i.getNewItem("",!1,!0)])})}).addItem(d=>{d.setIcon("sheets-in-box").setTitle(F("Archive card")).onClick(()=>r.archiveItem(e))}).addItem(d=>{d.setIcon("trash").setTitle(F("Delete card")).onClick(()=>r.deleteEntity(e))}).addSeparator().addItem(d=>{d.setIcon("calendar-with-checkmark").setTitle(u?F("Edit date"):F("Add date")).onClick(()=>{var f;Fo(i,s,Ro({stateManager:i,boardModifiers:r,item:n,hasDate:u,path:e}),(f=n.data.metadata.date)==null?void 0:f.toDate())})}),u&&(c.addItem(d=>{d.setIcon("cross").setTitle(F("Remove date")).onClick(()=>{let f=i.getSetting("link-date-to-daily-note"),h=i.getSetting("date-trigger"),p=f?"(?: \\ [[^ \\ ]]+ \\ ] \\ ([^ \\ )]+ \\ )| \\ [ \\ [[^ \\ ]]+ \\ ] \\ ])":"{[^}]+}",g=new RegExp( ` ( ^ | \ \ s ) $ { On ( h ) } $ { p } ` ),w=n.data.titleRaw.replace(g,"").trim();i.updateItemContent(n,w).then(S=>{r.updateItem(e,S)}).catch(S=>{i.setError(S),console.error(S)})})}),c.addItem(d=>{d.setIcon("clock").setTitle(l?F("Edit time"):F("Add time")).onClick(()=>{Ho(i,s,Bo({stateManager:i,boardModifiers:r,item:n,hasTime:l,path:e}),n.data.metadata.time)})}),l&&c.addItem(d=>{d.setIcon("cross").setTitle(F("Remove time")).onClick(()=>{let f=i.getSetting("time-trigger"),h=new RegExp( ` ( ^ | \ \ s ) $ { On ( f ) } { ( [ ^ } ] + ) } ` ),p=n.data.titleRaw.replace(h,"").trim();i.updateItemContent(n,p).then(g=>{r.updateItem(e,g)}).catch(g=>{i.setError(g),console.error(g)})})})),c.showAtPosition(s)}},[t,n,e,r,i])}var yg=v.memo(function({isEditing:n,setIsEditing:e,showMenu:r}){let i=v.useMemo(()=>n?{"data-ignore-drag":!0}:{},[n]);return v.createElement("div",{...i,className: $ ("item-postfix-button-wrapper")},n?v.createElement("button",{"data-ignore-drag":!0,onPointerDown:a=>{a.preventDefault()},onClick:()=>{e(!1)},className: ` $ { $ ( "item-postfix-button" ) } is - enabled ` ,"aria-label":F("Cancel")},v.createElement(Qt,{name:"cross"})):v.createElement("button",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:r,className: $ ("item-postfix-button"),"aria-label":F("More options")},v.createElement(Qt,{name:"vertical-three-dots"})))});function bg({item:t,isSettingsVisible:n,searchQuery:e}){return n||!t.data.metadata.fileMetadata?null:v.createElement("div",{className: $ ("item-metadata-wrapper")},v.createElement(lk,{metadata:t.data.metadata.fileMetadata,order:t.data.metadata.fileMetadata
2022-01-05 20:52:55 +00:00
` );function rv(t){return["","","%% kanban:settings"," ` ` ` ",JSON.stringify(t)," ` ` ` ","%%"].join( `
2022-03-19 10:03:52 +00:00
` )}function iv(t,n,e){let r=t.innerText.trim();if((n==null?void 0:n.length)&&(r+=" "+n.join(" ")),e){let i=Object.keys(e).join(" "),a=Object.values(e).map(o=>Array.isArray(o.value)?o.value.join(" "):o.value.toString()).join(" ");r+=" "+i+" "+a}return r.toLocaleLowerCase()}function Mk(t,n,e){var r,i,a;if(t.plugins.enabledPlugins.has("dataview")&&((a=(i=(r=t.plugins)==null?void 0:r.plugins)==null?void 0:i.dataview)==null?void 0:a.api))return t.plugins.plugins.dataview.api.page(n.path,e.path)}function eu(t,n){let e=t.getSetting("metadata-keys");if(!e.length)return{};if(!n)return{};let r=t.app.metadataCache.getFileCache(n),i=Mk(t.app,n,t.file);if(!r&&!i)return{};let a={},o={},s={},u=[],l=!1;return e.forEach(c=>{var d;if(!s[c.metadataKey]){if(s[c.metadataKey]=!0,c.metadataKey==="tags"){let f=(r==null?void 0:r.tags)||[];if(Array.isArray((d=r==null?void 0:r.frontmatter)==null?void 0:d.tags)&&(f=[].concat(f,r.frontmatter.tags.map(h=>({tag: ` # $ { h } ` })))),(f==null?void 0:f.length)===0)return;u.push(c.metadataKey),a.tags={...c,value:f.map(h=>h.tag).filter(h=>o[h]?!1:(o[h]=!0,!0))},l=!0;return}if((r==null?void 0:r.frontmatter)&&r.frontmatter[c.metadataKey])u.push(c.metadataKey),a[c.metadataKey]={...c,value:r.frontmatter[c.metadataKey]},l=!0;else if(i&&i[c.metadataKey]){let f=i[c.metadataKey],h=f.values||f.val||f;if(h===f&&typeof h=="object")h={...f};else if(!Array.isArray(h)&&typeof h!="string"&&typeof h!="number")return;u.push(c.metadataKey),a[c.metadataKey]={...c,value:h},l=!0}}}),{fileMetadata:l?a:void 0,fileMetadataOrder:u}}function av(t,n){return!t&&n?!0:!["metadata-keys","date-trigger","time-trigger","link-date-to-daily-note","date-format","time-format","hide-date-in-title","hide-tags-in-title"].every(r=>t[r]===n[r])}function ov({onNewLane:t,closeLaneForm:n}){let{boardModifiers:e,stateManager:r}=v.useContext(qe),[i,a]=v.useState(!1),[o,s]=v.useState(""),u=v.useRef(),l=bs(()=>{n()},{ignoreClass: $ ("ignore-click-outside")});v.useLayoutEffect(()=>{var d;(d=u.current)==null||d.focus()},[]);let c=()=>{e.addLane({...pr,id:We(),children:[],data:{title:o,shouldMarkItemsComplete:i}}),s(""),a(!1),t()};return v.createElement("div",{ref:l,className: $ ("lane-form-wrapper")},v.createElement("div",{className: $ ("lane-input-wrapper")},v.createElement(gr,{ref:u,className: $ ("lane-input"),onChange:d=>s(d.target.value),onEnter:d=>{tr(d,r)||(d.preventDefault(),c())},onEscape:n,value:o})),v.createElement("div",{className: $ ("checkbox-wrapper")},v.createElement("div",{className: $ ("checkbox-label")},F("Mark cards in this list as complete")),v.createElement("div",{onClick:()=>a(!i),className: ` checkbox - container $ { i ? "is-enabled" : "" } ` })),v.createElement("div",{className: $ ("lane-input-actions")},v.createElement("button",{className: $ ("lane-action-add"),onClick:c},F("Add list")),v.createElement("button",{className: $ ("lane-action-cancel"),onClick:n},F("Cancel"))))}var Dk=[Ze.Item,Ze.Lane],Ck=[Ze.Lane],uv=({view:t,stateManager:n})=>{let e=n.useState(),r=Gg(),i=v.useRef(null),a=v.useRef(null),[o,s]=v.useState(""),[u,l]=v.useState(!1),[c,d]=v.useState(""),[f,h]=v.useState((e==null?void 0:e.children.length)===0),p=n.file.path,g=n.useSetting("max-archive-size"),w=v.useCallback(()=>{(e==null?void 0:e.children.length)>0&&h(!1)},[e==null?void 0:e.children.length]);v.useEffect(()=>{(e==null?void 0:e.children.length)===0&&h(!0)},[e==null?void 0:e.children.length]);let S=v.useCallback(()=>{setTimeout(()=>{var K;let N=(K=i.current)==null?void 0:K.getElementsByClassName( $ ("board"));N.length&&(0,sv.default)([N[0].scrollWidth,0],{elementToScroll:N[0],speed:300,minDuration:150,easing:j=>j===1?1:1-Math.pow(2,-10*j)})})},[]);v.useEffect(()=>{let N=j=>{j==="editor:open-search"&&l(X=>!X)},K=()=>{h(!0)};return t.emitter.on("hotkey",N),t.emitter.on("showLaneForm",K),()=>{t.emitter.off("hotkey",N),t.emitter.off("showLaneForm",K)}},[t]),v.useEffect(()=>{var N;u&&((N=a.current)==null||N.focus())},[u]),v.useEffect(()=>{let N=o.trim(),K;return N?K=window.setTimeout(()=>{d(N)},250):d(""),()=>{window.clearTimeout(K)}},[o]),v.useEffect(()=>{g===void 0||g===-1||typeof g=="number"&&(e==null?vo
` )}var ka=function(t){Rk(n,t);function n(e,r,i,a,o){var s=this.constructor,u=t.call(this,Ev(e,{name:r,index:i,operation:a,tree:o}))||this;return u.name=r,u.index=i,u.operation=a,u.tree=o,Object.setPrototypeOf(u,s.prototype),u.message=Ev(e,{name:r,index:i,operation:a,tree:o}),u}return n}(Error);var st=ka,Bk=Mt,Mi={add:function(t,n,e){return t[n]=this.value,{newDocument:e}},remove:function(t,n,e){var r=t[n];return delete t[n],{newDocument:e,removed:r}},replace:function(t,n,e){var r=t[n];return t[n]=this.value,{newDocument:e,removed:r}},move:function(t,n,e){var r=Fs(e,this.path);r&&(r=Mt(r));var i=Hr(e,{op:"remove",path:this.from}).removed;return Hr(e,{op:"add",path:this.path,value:i}),{newDocument:e,removed:r}},copy:function(t,n,e){var r=Fs(e,this.from);return Hr(e,{op:"add",path:this.path,value:Mt(r)}),{newDocument:e}},test:function(t,n,e){return{newDocument:e,test:_a(t[n],this.value)}},_get:function(t,n,e){return this.value=t[n],{newDocument:e}}},Kk={add:function(t,n,e){return Os(n)?t.splice(n,0,this.value):t[n]=this.value,{newDocument:e,index:n}},remove:function(t,n,e){var r=t.splice(n,1);return{newDocument:e,removed:r[0]}},replace:function(t,n,e){var r=t[n];return t[n]=this.value,{newDocument:e,removed:r}},move:Mi.move,copy:Mi.copy,test:Mi.test,_get:Mi._get};function Fs(t,n){if(n=="")return t;var e={op:"_get",path:n};return Hr(t,e),e.value}function Hr(t,n,e,r,i,a){if(e===void 0&&(e=!1),r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=0),e&&(typeof e=="function"?e(n,0,t,n.path):Hs(n,0)),n.path===""){var o={newDocument:t};if(n.op==="add")return o.newDocument=n.value,o;if(n.op==="replace")return o.newDocument=n.value,o.removed=t,o;if(n.op==="move"||n.op==="copy")return o.newDocument=Fs(t,n.from),n.op==="move"&&(o.removed=t),o;if(n.op==="test"){if(o.test=_a(t,n.value),o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o.newDocument=t,o}else{if(n.op==="remove")return o.removed=t,o.newDocument=null,o;if(n.op==="_get")return n.value=t,o;if(e)throw new st("Operation ` op ` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",a,n,t);return o}}else{r||(t=Mt(t));var s=n.path||"",u=s.split("/"),l=t,c=1,d=u.length,f=void 0,h=void 0,p=void 0;for(typeof e=="function"?p=e:p=Hs;;){if(h=u[c],h&&h.indexOf("~")!=-1&&(h=xa(h)),i&&h=="__proto__")throw new TypeError("JSON-Patch: modifying ` _ _proto _ _ ` prop is banned for security reasons, if this was on purpose, please set ` banPrototypeModifications ` flag false and pass it to this function. More info in fast-json-patch README");if(e&&f===void 0&&(l[h]===void 0?f=u.slice(0,c).join("/"):c==d-1&&(f=n.path),f!==void 0&&p(n,0,t,f)),c++,Array.isArray(l)){if(h==="-")h=l.length;else{if(e&&!Os(h))throw new st("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,n,t);Os(h)&&(h=~~h)}if(c>=d){if(e&&n.op==="add"&&h>l.length)throw new st("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,n,t);var o=Kk[n.op].call(n,l,h,t);if(o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o}}else if(c>=d){var o=Mi[n.op].call(n,l,h,t);if(o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o}if(l=l[h],e&&c<d&&(!l||typeof l!="object"))throw new st("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",a,n,t)}}}function Rs(t,n,e,r,i){if(r===void 0&&(r=!0),i===void 0&&(i=!0),e&&!Array.isArray(n))throw new st("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(t=Mt(t));for(var a=new Array(n.length),o=0,s=n.length;o<s;o++)a[o]=Hr(t,n[o],e,!0,i,o),t=a[o].newDocument;return a.newDocument=t,a}function $ k(t,n,e){var r=Hr(t,n);if(r.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",e,n,t);return r.newDocument}function Hs(t,n,e,r){if(typeof t!="object"||t===null||Array.isArray(t))throw new st("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,e);if(Mi[t.op]){if(typeof t.p
` ,Nfr:" \u {1D511}",NoBreak:" \u 2060",NonBreakingSpace:" \x A0",Nopf:" \u 2115",Not:" \u 2AEC",NotCongruent:" \u 2262",NotCupCap:" \u 226D",NotDoubleVerticalBar:" \u 2226",NotElement:" \u 2209",NotEqual:" \u 2260",NotEqualTilde:" \u 2242 \u 0338",NotExists:" \u 2204",NotGreater:" \u 226F",NotGreaterEqual:" \u 2271",NotGreaterFullEqual:" \u 2267 \u 0338",NotGreaterGreater:" \u 226B \u 0338",NotGreaterLess:" \u 2279",NotGreaterSlantEqual:" \u 2A7E \u 0338",NotGreaterTilde:" \u 2275",NotHumpDownHump:" \u 224E \u 0338",NotHumpEqual:" \u 224F \u 0338",NotLeftTriangle:" \u 22EA",NotLeftTriangleBar:" \u 29CF \u 0338",NotLeftTriangleEqual:" \u 22EC",NotLess:" \u 226E",NotLessEqual:" \u 2270",NotLessGreater:" \u 2278",NotLessLess:" \u 226A \u 0338",NotLessSlantEqual:" \u 2A7D \u 0338",NotLessTilde:" \u 2274",NotNestedGreaterGreater:" \u 2AA2 \u 0338",NotNestedLessLess:" \u 2AA1 \u 0338",NotPrecedes:" \u 2280",NotPrecedesEqual:" \u 2AAF \u 0338",NotPrecedesSlantEqual:" \u 22E0",NotReverseElement:" \u 220C",NotRightTriangle:" \u 22EB",NotRightTriangleBar:" \u 29D0 \u 0338",NotRightTriangleEqual:" \u 22ED",NotSquareSubset:" \u 228F \u 0338",NotSquareSubsetEqual:" \u 22E2",NotSquareSuperset:" \u 2290 \u 0338",NotSquareSupersetEqual:" \u 22E3",NotSubset:" \u 2282 \u 20D2",NotSubsetEqual:" \u 2288",NotSucceeds:" \u 2281",NotSucceedsEqual:" \u 2AB0 \u 0338",NotSucceedsSlantEqual:" \u 22E1",NotSucceedsTilde:" \u 227F \u 0338",NotSuperset:" \u 2283 \u 20D2",NotSupersetEqual:" \u 2289",NotTilde:" \u 2241",NotTildeEqual:" \u 2244",NotTildeFullEqual:" \u 2247",NotTildeTilde:" \u 2249",NotVerticalBar:" \u 2224",Nscr:" \u {1D4A9}",Ntild:" \x D1",Ntilde:" \x D1",Nu:" \u 039D",OElig:" \u 0152",Oacut:" \x D3",Oacute:" \x D3",Ocir:" \x D4",Ocirc:" \x D4",Ocy:" \u 041E",Odblac:" \u 0150",Ofr:" \u {1D512}",Ograv:" \x D2",Ograve:" \x D2",Omacr:" \u 014C",Omega:" \u 03A9",Omicron:" \u 039F",Oopf:" \u {1D546}",OpenCurlyDoubleQuote:" \u 201C",OpenCurlyQuote:" \u 2018",Or:" \u 2A54",Oscr:" \u {1D4AA}",Oslas:" \x D8",Oslash:" \x D8",Otild:" \x D5",Otilde:" \x D5",Otimes:" \u 2A37",Oum:" \x D6",Ouml:" \x D6",OverBar:" \u 203E",OverBrace:" \u 23DE",OverBracket:" \u 23B4",OverParenthesis:" \u 23DC",PartialD:" \u 2202",Pcy:" \u 041F",Pfr:" \u {1D513}",Phi:" \u 03A6",Pi:" \u 03A0",PlusMinus:" \x B1",Poincareplane:" \u 210C",Popf:" \u 2119",Pr:" \u 2ABB",Precedes:" \u 227A",PrecedesEqual:" \u 2AAF",PrecedesSlantEqual:" \u 227C",PrecedesTilde:" \u 227E",Prime:" \u 2033",Product:" \u 220F",Proportion:" \u 2237",Proportional:" \u 221D",Pscr:" \u {1D4AB}",Psi:" \u 03A8",QUO:'"',QUOT:'"',Qfr:" \u {1D514}",Qopf:" \u 211A",Qscr:" \u {1D4AC}",RBarr:" \u 2910",RE:" \x AE",REG:" \x AE",Racute:" \u 0154",Rang:" \u 27EB",Rarr:" \u 21A0",Rarrtl:" \u 2916",Rcaron:" \u 0158",Rcedil:" \u 0156",Rcy:" \u 0420",Re:" \u 211C",ReverseElement:" \u 220B",ReverseEquilibrium:" \u 21CB",ReverseUpEquilibrium:" \u 296F",Rfr:" \u 211C",Rho:" \u 03A1",RightAngleBracket:" \u 27E9",RightArrow:" \u 2192",RightArrowBar:" \u 21E5",RightArrowLeftArrow:" \u 21C4",RightCeiling:" \u 2309",RightDoubleBracket:" \u 27E7",RightDownTeeVector:" \u 295D",RightDownVector:" \u 21C2",RightDownVectorBar:" \u 2955",RightFloor:" \u 230B",RightTee:" \u 22A2",RightTeeArrow:" \u 21A6",RightTeeVector:" \u 295B",RightTriangle:" \u 22B3",RightTriangleBar:" \u 29D0",RightTriangleEqual:" \u 22B5",RightUpDownVector:" \u 294F",RightUpTeeVector:" \u 295C",RightUpVector:" \u 21BE",RightUpVectorBar:" \u 2954",RightVector:" \u 21C0",RightVectorBar:" \u 2953",Rightarrow:" \u 21D2",Ropf:" \u 211D",RoundImplies:" \u 2970",Rrightarrow:" \u 21DB",Rscr:" \u 211B",Rsh:" \u 21B1",RuleDelayed:" \u 29F4",SHCHcy:" \u 0429",SHcy:" \u 0428",SOFTcy:" \u 042C",Sacute:" \u 015A",Sc:" \u 2ABC",Scaron:" \u 0160",Scedil:" \u 015E",Scirc:" \u 015C",Scy:" \u 0421",Sfr:" \u {1D516}",ShortDownArrow:" \u 2193",ShortLeftArrow:" \u 2190",ShortRightArrow:" \u 2192",ShortUpArrow:" \u 2191",Sigma:" \u 03A3",SmallCircle:" \u 2218",Sopf:" \u {1D54A}",Sqrt:" \u 221A",Square:" \u 25A1",SquareIntersection:" \u 2293",SquareSubset:" \u 228F",SquareSubsetEqual:" \u 2291",SquareSuperset:" \u 2290",SquareSupersetEqual:" \u 2292",SquareUnion:" \u 2294",Sscr:" \u {1D4AE}",Star:" \u 22C6",Sub:" \u 22D0",Subset:" \u 22D0",SubsetEqual:" \u 2286",Succeeds:" \u 227B",SucceedsEqual:" \u 2AB0",SucceedsSlantEqual:" \u 227D",SucceedsTilde:" \u 227F",SuchThat:" \u 220B",Sum:" \u 2211",Sup:" \u 22D1",Superset:" \u 2283",SupersetEqual:" \u 2287",Supset:" \u 22D1",THOR:" \x DE",THORN:" \x DE",TRADE:" \u
2022-01-05 20:52:55 +00:00
` ;break}case-3:{o= ` \ r
2022-03-19 10:03:52 +00:00
` ;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}var Au={};Yr(Au,{attentionMarkers:()=>y_,contentInitial:()=>f_,disable:()=>b_,document:()=>d_,flow:()=>p_,flowInitial:()=>h_,insideSpan:()=>v_,string:()=>m_,text:()=>g_});var d_={[42]:Bt,[43]:Bt,[45]:Bt,[48]:Bt,[49]:Bt,[50]:Bt,[51]:Bt,[52]:Bt,[53]:Bt,[54]:Bt,[55]:Bt,[56]:Bt,[57]:Bt,[62]:Us},f_={[91]:xu},h_={[-2]:Aa,[-1]:Aa,[32]:Aa},p_={[35]:_u,[42]: $ r,[45]:[Gs, $ r],[60]:Mu,[61]:Gs,[95]: $ r,[96]:Vs,[126]:Vs},m_={[38]:zs,[92]:js},g_={[-5]:La,[-4]:La,[-3]:La,[33]:Cu,[38]:zs,[42]:Ia,[60]:[bu,Du],[91]:Iu,[92]:[ku,js],[93]:Kr,[95]:Ia,[96]:Eu},v_={null:[Ia,Qv]},y_={null:[42,95]},b_={null:[]};function ry(t={}){let n=Bv([Au].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:n,content:r(Vv),document:r(qv),flow:r(Gv),string:r(Xv),text:r(Zv)};return e;function r(i){return a;function a(o){return ny(e,i,o)}}}var iy=/[ \0 \t \n \r ]/g;function ay(){let t=1,n="",e=!0,r;return i;function i(a,o,s){let u=[],l,c,d,f,h;for(a=n+a.toString(o),d=0,n="",e&&(a.charCodeAt(0)===65279&&d++,e=void 0);d<a.length;){if(iy.lastIndex=d,l=iy.exec(a),f=l&&l.index!==void 0?l.index:a.length,h=a.charCodeAt(f),!l){n=a.slice(d);break}if(h===10&&d===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<f&&(u.push(a.slice(d,f)),t+=f-d),h){case 0:{u.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,u.push(-2);t++<c;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:r=!0,t=1}d=f+1}return s&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}function oy(t){for(;!qs(t););return t}function Qs(t,n){let e=Number.parseInt(t,n);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)==65535||(e&65535)==65534||e>1114111?" \u FFFD":String.fromCharCode(e)}var w_=/ \\ ([!-/:-@[- ` { - ~ ] ) | & ( # ( ? : \ d { 1 , 7 } | x [ \ da - f ] { 1 , 6 } ) | [ \ da - z ] { 1 , 31 } ) ; / g i ; f u n c t i o n s y ( t ) { r e t u r n t . r e p l a c e ( w _ , E _ ) } f u n c t i o n E _ ( t , n , e ) { i f ( n ) r e t u r n n ; i f ( e . c h a r C o d e A t ( 0 ) = = = 3 5 ) { l e t i = e . c h a r C o d e A t ( 1 ) , a = i = = = 1 2 0 | | i = = = 8 8 ; r e t u r n Q s ( e . s l i c e ( a ? 2 : 1 ) , a ? 1 6 : 1 0 ) } r e t u r n C i ( e ) | | t } v a r I i = { } . h a s O w n P r o p e r t y ; f u n c t i o n P a ( t ) { r e t u r n ! t | | t y p e o f t ! = " o b j e c t " ? " " : I i . c a l l ( t , " p o s i t i o n " ) | | I i . c a l l ( t , " t y p e " ) ? l y ( t . p o s i t i o n ) : I i . c a l l ( t , " s t a r t " ) | | I i . c a l l ( t , " e n d " ) ? l y ( t ) : I i . c a l l ( t , " l i n e " ) | | I i . c a l l ( t , " c o l u m n " ) ? L u ( t ) : " " } f u n c t i o n L u ( t ) { r e t u r n c y ( t & & t . l i n e ) + " : " + c y ( t & & t . c o l u m n ) } f u n c t i o n l y ( t ) { r e t u r n L u ( t & & t . s t a r t ) + " - " + L u ( t & & t . e n d ) } f u n c t i o n c y ( t ) { r e t u r n t & & t y p e o f t = = " n u m b e r " ? t : 1 } v a r P u = { } . h a s O w n P r o p e r t y , X s = f u n c t i o n ( t , n , e ) { r e t u r n t y p e o f n ! = " s t r i n g " & & ( e = n , n = v o i d 0 ) , S _ ( e ) ( o y ( r y ( e ) . d o c u m e n t ( ) . w r i t e ( a y ( ) ( t , n , ! 0 ) ) ) ) } ; f u n c t i o n S _ ( t = { } ) { l e t n = u y ( { t r a n s f o r m s : [ ] , c a n C o n t a i n E o l s : [ " e m p h a s i s " , " f r a g m e n t " , " h e a d i n g " , " p a r a g r a p h " , " s t r o n g " ] , e n t e r : { a u t o l i n k : u ( M n ) , a u t o l i n k P r o t o c o l : i e , a u t o l i n k E m a i l : i e , a t x H e a d i n g : u ( X t ) , b l o c k Q u o t e : u ( r t ) , c h a r a c t e r E s c a p e : i e , c h a r a c t e r R e f e r e n c e : i e , c o d e F e n c e d : u ( g t ) , c o d e F e n c e d F e n c e I n f o : l , c o d e F e n c e d F e n c e M e t a : l , c o d e I n d e n t e d : u ( g t , l ) , c o d e T e x t : u ( d t , l ) , c o d e T e x t D a t a : i e , d a t a : i e , c o d e F l o w V a l u e : i e , d e f i n i t i o n : u ( u n ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : l , d e f i n i t i o n L a b e l S t r i n g : l , d e f i n i t i o n T i t l e S t r i n g : l , e m p h a s i s : u ( d n ) , h a r d B r e a k E s c a p e : u ( C t ) , h a r d B r e a k T r a i l i n g : u ( C t ) , h t m l F l o w : u ( Z t , l ) , h t m l F l o w D a t a : i e , h t m l T e x t : u ( Z t , l ) , h t m l T e x t D a t a : i e , i m a g e : u ( K n ) , l a b e l : l , l i n k : u ( M n ) , l i s t I t e m : u ( $ n ) , l i s t I t e m V a l u e : g , l i s t O r d e r e d : u ( y n , p ) , l i s t U n o r d e r e d : u ( y n ) , p a r a g r a p h : u ( f n ) , r e f e r e n c e : z , r e f e r e n c e S t r i n g : l , r e s o u r c e D e s t i n a t i o n S t r i n g : l , r e s o u r c e T i t l e S t r i n g : l , s e t e x t H e a d i n g : u ( X t ) , s t r o n g : u ( y t ) , t h e m a t i c B r e a k : u ( i t ) } , e x i t : { a t x H e a d i n g : d ( ) , a t x H e a d i n g S e q u e n c e : K , a u t o l i n k : d ( ) , a u t o l i n k E m a i l : P e , a u t o l i n k P r o t o c o l : E e , b l o c k Q u o t e : d ( ) , c h a r a c t e r E s c a p e V a l u e : Y , c h a r a c t e r R e f e r e n c e M a r k e r H e x a d e c i m a l : G , c h a r a c t e r R e f e r e n c e M a r k e r N u m e r i c : G , c h a r a c t e r R e f e r e n c e V a l u e : w e , c o d e F e n c e d : d ( k ) , c o d e F e n c e d F e n c e : _ , c o d e F e n c e d F e n c e I n f o : w , c o d e F e n c e d F e n c e M e t a : S , c o d e F l o w V a l u e : Y , c o d e I n d e n t e d : d ( P ) , c o d e T e x t : d ( f e ) , c o d e T e x t D a t a : Y , d a t a : Y , d e f i n i t i o n : d ( ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : N , d e f i n i t i o n L a b e l S t r i n g : I , d e f i n i t i o n T i t l e S t r i n g : D , e m p h a s i s : d ( ) , h a r d B r e a k E s c a p e : d ( n e ) , h a r d B r e a k T r a i l i n g : d ( n e ) , h t m l F l o w : d ( l e ) , h t m l F l o w D a t a : Y , h t m l T e x t : d ( d e ) , h t m l T e x t D a t a : Y , i m a g e : d ( T e ) , l a b e l : A , l a b e l T e x t : C , l i n e E n d i n g : J , l i n k : d ( h e
` ),blockId:void 0,title:"",titleSearch:"",metadata:{dateStr:void 0,date:void 0,time:void 0,timeStr:void 0,tags:[],fileAccessor:void 0,file:void 0,fileMetadata:void 0,fileMetadataOrder:void 0},dom:void 0,isComplete:!!e.checked};return Av(e,l=>l.type!=="paragraph",l=>{let c=l;if(c.type==="blockid")return u.blockId=c.value,!0;if(c.type==="hashtag")return u.metadata.tags||(u.metadata.tags=[]),u.metadata.tags.push("#"+c.value),r&&(s= $ s(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start})),!0;if(c.type==="date"||c.type==="dateLink")return u.metadata.dateStr=c.date,i&&(s= $ s(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start})),!0;if(c.type==="time")return u.metadata.timeStr=c.time,s= $ s(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start}),!0;if(c.type==="embedWikilink")return u.metadata.fileAccessor=c.fileAccessor,!0;if(c.type==="wikilink"||c.type==="link"&&c.fileAccessor)return u.metadata.fileAccessor=c.fileAccessor,u.metadata.fileMetadata=c.fileMetadata,u.metadata.fileMetadataOrder=c.fileMetadataOrder,!0;if(c.type==="embedLink")return u.metadata.fileAccessor=c.fileAccessor,!0}),u.title=Rv(s).replace(/<br>/g, `
` ),u}function O_(t,n,e){if(t.type!=="heading"||Ta(t,{includeImageAlt:!1})!==F("Archive"))return!1;let r=Lv(n,e);return r&&r.type==="thematicBreak"}function Ay(t,n,e,r,i){let a=[],o=[];return r.children.forEach((s,u)=>{if(s.type==="heading"){let l=O_(s,r.children,u),c=pu(s),d=mu(i,c),f=!1,h=Pv(r.children,u,"list",p=>{if(p.type==="heading")return!1;if(p.type==="paragraph"){let g=Ta(p);if(g.startsWith("%% kanban:settings"))return!1;if(g===F("Complete"))return f=!0,!0}return!0});if(l&&h){o.push(...h.children.map(p=>({... $ o,id:We(),data:nl(t,i,p)})));return}h?a.push({...pr,children:h.children.map(p=>({... $ o,id:We(),data:nl(t,i,p)})),id:We(),data:{title:d,shouldMarkItemsComplete:f}}):a.push({...pr,children:[],id:We(),data:{title:d,shouldMarkItemsComplete:f}})}}),{...Uo,id:t.file.path,children:a,data:{settings:n,frontmatter:e,archive:o,isSearching:!1,errors:[]}}}async function Bu(t,n,e){let r= ` - [ $ { n . data . isComplete ? "x" : " " } ] $ { e . replace ( /(\r\n|\n)/g , "<br>" ) . trim ( ) } $ { n . data . blockId ? ` ^ ${ n . data . blockId } ` : "" } ` ,i=Hu(t,r),a=nl(t,r,i.children[0].children[0]),o=(0,tl.default)(n,{data:{ $ set:a}});try{await Ma(t,o)}catch(s){console.error(s)}return o}async function Ly(t,n,e,r){let i= ` - [ $ { e ? "x" : " " } ] $ { n . trim ( ) . replace ( /(\r\n|\n)/g , "<br>" ) } ` ,a=Hu(t,i),o=nl(t,i,a.children[0].children[0]);o.forceEditMode=!!r;let s={... $ o,id:We(),data:o};try{await Ma(t,s)}catch(u){console.error(u)}return s}async function Py(t,n){try{return(0,tl.default)(n,{children:{ $ set:await Promise.all(n.children.map(async e=>{try{return(0,tl.default)(e,{children:{ $ set:await Promise.all(e.children.map(r=>Bu(t,r,r.data.titleRaw)))}})}catch(r){throw t.setError(r),r}}))}})}catch(e){throw t.setError(e),e}}function Oy(t){return ` - [ $ { t . data . isComplete ? "x" : " " } ] $ { t . data . titleRaw . replace ( /(\r\n|\n)/g , "<br>" ) . trim ( ) } $ { t . data . blockId ? ` ^ ${ t . data . blockId } ` : "" } ` }function N_(t){let n=[];return n.push( ` # # $ { t . data . title } ` ),n.push(""),t.data.shouldMarkItemsComplete&&n.push(tv),t.children.forEach(e=>{n.push(Oy(e))}),n.push(""),n.push(""),n.push(""),n.join( `
2022-01-05 20:52:55 +00:00
` )}function F_(t){if(t.length){let n=[nv,"", ` # # $ { F ( "Archive" ) } ` ,""];return t.forEach(e=>{n.push(Oy(e))}),n.join( `
2022-03-19 10:03:52 +00:00
` )}return""}function Ny(t){let n=t.children.reduce((r,i)=>r+N_(i),"");return["---","",(0,Iy.stringifyYaml)(t.data.frontmatter),"---","",""].join( `
` )+n+F_(t.data.archive)+rv(t.data.settings)}var Ku=class{constructor(n){this.stateManager=n}newItem(n,e,r){return Ly(this.stateManager,n,e,r)}updateItemContent(n,e){return Bu(this.stateManager,n,e)}boardToMd(n){return Ny(n)}mdToBoard(n){let{ast:e,settings:r,frontmatter:i}=Cy(this.stateManager,n),a=Ay(this.stateManager,r,i,e,n);if(this.stateManager.state){let s=uu(this.stateManager.state,a).filter(l=>["/id","/dom","/date","/time","/titleSearch","/file"].every(c=>!l.path.endsWith(c))),u=(0,Fy.immutableJSONPatch)(this.stateManager.state,s);return Fv(this.stateManager,u,s)}return Nv(this.stateManager,a)}reparseBoard(){return Py(this.stateManager,this.stateManager.state)}};var $ u=class{constructor(n,e,r,i,a){this.stateReceivers=[];this.settingsNotifiers=new Map;this.viewSet=new Set;this.compiledSettings={};this.newBoardPromise=null;this.getSetting=(n,e)=>e&&e[n]!==void 0?e[n]:this.compiledSettings&&this.compiledSettings[n]!==void 0?this.compiledSettings[n]:this.getSettingRaw(n);this.getSettingRaw=(n,e)=>{var r,i;return e&&e[n]!==void 0?e[n]:((i=(r=this.state)==null?void 0:r.data)==null?void 0:i.settings)&&this.state.data.settings[n]!==void 0?this.state.data.settings[n]:this.getGlobalSetting(n)};this.getGlobalSetting=n=>{let e=this.getGlobalSettings();return e&&e[n]!==void 0?e[n]:null};this.app=n,this.file=e.file,this.onEmpty=i,this.getGlobalSettings=a,this.parser=new Ku(this),this.registerView(e,r,!0)}getAView(){return this.viewSet.values().next().value}registerView(n,e,r){this.viewSet.has(n)||(this.viewSet.add(n),n.initHeaderButtons()),r&&(this.newBoardPromise!==null?this.newBoardPromise.then(()=>this.newBoard(e)):this.newBoardPromise=this.newBoard(e).then(()=>{this.newBoardPromise=null}).catch(i=>{console.error(i),this.setError(i)}))}unregisterView(n){this.viewSet.has(n)&&(this.viewSet.delete(n),this.viewSet.size===0&&this.onEmpty())}buildSettingRetrievers(){return{getGlobalSettings:this.getGlobalSettings,getGlobalSetting:this.getGlobalSetting,getSetting:this.getSetting}}async newBoard(n){try{await this.setState(await this.getParsedBoard(n),!1)}catch(e){this.setError(e)}}saveToDisk(){if(this.state.data.errors.length>0)return;let n=this.getAView(),e=this.parser.boardToMd(this.state);n.requestSaveToDisk(e),this.viewSet.forEach(r=>{r.data=e})}softRefresh(){this.stateReceivers.forEach(n=>n({...this.state}))}async forceRefresh(){if(this.state)try{this.compileSettings(),this.state=await this.parser.reparseBoard(),this.stateReceivers.forEach(n=>n(this.state)),this.viewSet.forEach(n=>n.initHeaderButtons())}catch(n){console.error(n),this.setError(n)}}async setState(n,e=!0){var r;try{let i=(r=this.state)==null?void 0:r.data.settings,a=typeof n=="function"?await n(this.state):n,o=a==null?void 0:a.data.settings;i&&o&&av(i,o)?(this.state=(0,Ni.default)(this.state,{data:{settings:{ $ set:o}}}),this.compileSettings(),this.state=await this.parser.reparseBoard()):(this.state=a,this.compileSettings()),this.viewSet.forEach(s=>s.initHeaderButtons()),e&&this.saveToDisk(),this.stateReceivers.forEach(s=>s(this.state)),i!==o&&o&&this.settingsNotifiers.forEach((s,u)=>{(!i&&o||i[u]!==o[u])&&s.forEach(l=>l())})}catch(i){console.error(i),this.setError(i)}}useState(){let[n,e]=v.useState(this.state);return v.useEffect(()=>(this.stateReceivers.push(r=>{e(r)}),e(this.state),()=>{this.stateReceivers.remove(e)}),[]),n}useSetting(n){let[e,r]=v.useState(this.getSetting(n));return v.useEffect(()=>{let i=()=>{r(this.getSetting(n))};return this.settingsNotifiers.has(n)?this.settingsNotifiers.get(n).push(i):this.settingsNotifiers.set(n,[i]),()=>{this.settingsNotifiers.get(n).remove(i)}},[]),e}compileSettings(n){var s,u,l,c,d;let e=this.getGlobalSetting("metadata-keys")||[],r=this.getSettingRaw("metadata-keys",n)||[],i=this.getSettingRaw("date-format",n)||ti(this.app),a=this.getSettingRaw("time-format",n)||Vi(this.app),o=this.getSettingRaw("prepend-archive-format",n)|| ` $ { i } $ { a } ` ;this.compiledSettings={"date-format":i,"date-display-format":this.getSettingRaw("date-display-format",n)||i,"date-trigger":this.getSettingRaw("date-trigger",n)||Ds,"time-format":a,"time-tr
2022-01-05 20:52:55 +00:00
/ * !
* Fuse . js v3 . 4.5 - Lightweight fuzzy - search ( http : //fusejs.io)
*
* Copyright ( c ) 2012 - 2017 Kirollos Risk ( http : //kiro.me)
* All Rights Reserved . Apache Software License 2.0
*
* http : //www.apache.org/licenses/LICENSE-2.0
* /
/ * !
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < feross @ feross . org > < http : //feross.org>
* @ license MIT
* /
/ * !
* https : //github.com/Starcounter-Jack/JSON-Patch
* ( c ) 2017 Joachim Wester
* MIT license
* /
/ * !
* is - plain - object < https : //github.com/jonschlinkert/is-plain-object>
*
* Copyright ( c ) 2014 - 2017 , Jon Schlinkert .
* Released under the MIT License .
* /
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* mark . js v8 . 11.1
* https : //markjs.io/
* Copyright ( c ) 2014 – 2018 , Julian Kühnel
* Released under the MIT license https : //git.io/vwTVl
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /