index.js000644 0000223633 14166231103007357 0ustar00000000 000000 !function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=0)}([function(n,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const e=r(1),u=r(2);async function i(n,t,r){r.page=1;let e=await n.get(t,r),u=e.items?e.items:[];for(;e.has_more;){r.page+=1;let e=await n.get(t,r);u.concat(e.items)}return u}const o=async(n,t)=>{const r=await e.default.data.get(["notes",n],{fields:["id","title","body"]}),o=[...(r.title+"\n"+r.body).matchAll(/\s#([\w+@])/g)];console.debug("Tags1",o);const f=o.map(n=>n[1].toLowerCase());let a=await i(e.default.data,["tags"],{fields:["id","title"],page:1});const c=(await i(e.default.data,["notes",n,"tags"],{fields:["id"],page:1})).map(n=>n.id);console.debug("All Tags in notebook: ",c),console.debug("All Tags: ",a);console.debug("Tags in post: ",u.uniq(f)),u.uniq(f).forEach(async t=>{if(console.debug("Processing tag: ",t),t.length<3)return;const r=a.find(n=>n.title.toLowerCase()==t);let u;if(r)u=r.id;else{const n=await e.default.data.post(["tags"],null,{title:t});console.debug("Created tag: ",n.id),u=n.id}(async t=>{await e.default.data.post(["tags",t,"notes"],null,{id:n})})(u),console.debug("Updated tag: ",u)})},f=u.debounce(n=>o(n),5e3,{trailing:!0,leading:!1});e.default.plugins.register({onStart:async function(){await e.default.commands.register({name:"autoTagUpdate",label:"Update auto tags ie parse note title and body for tags",execute:async n=>{let t=await e.default.workspace.selectedNote();await o(t.id)}}),e.default.workspace.onNoteChange(async n=>{let t;!function(n){n[n.Create=1]="Create",n[n.Update=2]="Update",n[n.Delete=3]="Delete"}(t||(t={})),console.debug("autoTag called for onNoteChange",n,t.Update),n.event==t.Update&&await f(n.id)})}})},function(n,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=joplin},function(n,t,r){(function(n){var e; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var u="Expected a function",i="__lodash_placeholder__",o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",a="[object Array]",c="[object Boolean]",l="[object Date]",s="[object Error]",v="[object Function]",h="[object GeneratorFunction]",p="[object Map]",d="[object Number]",_="[object Object]",g="[object RegExp]",y="[object Set]",b="[object String]",w="[object Symbol]",m="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",A="[object Float32Array]",O="[object Float64Array]",k="[object Int8Array]",I="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",R="[object Uint16Array]",z="[object Uint32Array]",C=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,T=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,B=RegExp(T.source),P=RegExp(W.source),D=/<%-([\s\S]+?)%>/g,N=/<%([\s\S]+?)%>/g,M=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,K=RegExp(Z.source),V=/^\s+/,G=/\s/,H=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Y=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,X=/[()=,{}\[\]\/\s]/,nn=/\\(\\)?/g,tn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rn=/\w*$/,en=/^[-+]0x[0-9a-f]+$/i,un=/^0b[01]+$/i,on=/^\[object .+?Constructor\]$/,fn=/^0o[0-7]+$/i,an=/^(?:0|[1-9]\d*)$/,cn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ln=/($^)/,sn=/['\n\r\u2028\u2029\\]/g,vn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",hn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pn="[\\ud800-\\udfff]",dn="["+hn+"]",_n="["+vn+"]",gn="\\d+",yn="[\\u2700-\\u27bf]",bn="[a-z\\xdf-\\xf6\\xf8-\\xff]",wn="[^\\ud800-\\udfff"+hn+gn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",mn="\\ud83c[\\udffb-\\udfff]",xn="[^\\ud800-\\udfff]",jn="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",On="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kn="(?:"+bn+"|"+wn+")",In="(?:"+On+"|"+wn+")",Sn="(?:"+_n+"|"+mn+")"+"?",En="[\\ufe0e\\ufe0f]?"+Sn+("(?:\\u200d(?:"+[xn,jn,An].join("|")+")[\\ufe0e\\ufe0f]?"+Sn+")*"),Rn="(?:"+[yn,jn,An].join("|")+")"+En,zn="(?:"+[xn+_n+"?",_n,jn,An,pn].join("|")+")",Cn=RegExp("['’]","g"),Ln=RegExp(_n,"g"),Un=RegExp(mn+"(?="+mn+")|"+zn+En,"g"),Tn=RegExp([On+"?"+bn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[dn,On,"$"].join("|")+")",In+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[dn,On+kn,"$"].join("|")+")",On+"?"+kn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",On+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gn,Rn].join("|"),"g"),Wn=RegExp("[\\u200d\\ud800-\\udfff"+vn+"\\ufe0e\\ufe0f]"),Bn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Dn=-1,Nn={};Nn[A]=Nn[O]=Nn[k]=Nn[I]=Nn[S]=Nn[E]=Nn["[object Uint8ClampedArray]"]=Nn[R]=Nn[z]=!0,Nn[f]=Nn[a]=Nn[x]=Nn[c]=Nn[j]=Nn[l]=Nn[s]=Nn[v]=Nn[p]=Nn[d]=Nn[_]=Nn[g]=Nn[y]=Nn[b]=Nn[m]=!1;var Mn={};Mn[f]=Mn[a]=Mn[x]=Mn[j]=Mn[c]=Mn[l]=Mn[A]=Mn[O]=Mn[k]=Mn[I]=Mn[S]=Mn[p]=Mn[d]=Mn[_]=Mn[g]=Mn[y]=Mn[b]=Mn[w]=Mn[E]=Mn["[object Uint8ClampedArray]"]=Mn[R]=Mn[z]=!0,Mn[s]=Mn[v]=Mn[m]=!1;var $n={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fn=parseFloat,qn=parseInt,Zn="object"==typeof global&&global&&global.Object===Object&&global,Kn="object"==typeof self&&self&&self.Object===Object&&self,Vn=Zn||Kn||Function("return this")(),Gn=t&&!t.nodeType&&t,Hn=Gn&&"object"==typeof n&&n&&!n.nodeType&&n,Jn=Hn&&Hn.exports===Gn,Yn=Jn&&Zn.process,Qn=function(){try{var n=Hn&&Hn.require&&Hn.require("util").types;return n||Yn&&Yn.binding&&Yn.binding("util")}catch(n){}}(),Xn=Qn&&Qn.isArrayBuffer,nt=Qn&&Qn.isDate,tt=Qn&&Qn.isMap,rt=Qn&&Qn.isRegExp,et=Qn&&Qn.isSet,ut=Qn&&Qn.isTypedArray;function it(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function ot(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function vt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function Tt(n,t){for(var r=n.length;r--&&mt(t,n[r],0)>-1;);return r}function Wt(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var Bt=kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Pt=kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Dt(n){return"\\"+$n[n]}function Nt(n){return Wn.test(n)}function Mt(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function $t(n,t){return function(r){return n(t(r))}}function Ft(n,t){for(var r=-1,e=n.length,u=0,o=[];++r",""":'"',"'":"'"});var Jt=function n(t){var r,e=(t=null==t?Vn:Jt.defaults(Vn.Object(),t,Jt.pick(Vn,Pn))).Array,G=t.Date,vn=t.Error,hn=t.Function,pn=t.Math,dn=t.Object,_n=t.RegExp,gn=t.String,yn=t.TypeError,bn=e.prototype,wn=hn.prototype,mn=dn.prototype,xn=t["__core-js_shared__"],jn=wn.toString,An=mn.hasOwnProperty,On=0,kn=(r=/[^.]+$/.exec(xn&&xn.keys&&xn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",In=mn.toString,Sn=jn.call(dn),En=Vn._,Rn=_n("^"+jn.call(An).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zn=Jn?t.Buffer:void 0,Un=t.Symbol,Wn=t.Uint8Array,$n=zn?zn.allocUnsafe:void 0,Zn=$t(dn.getPrototypeOf,dn),Kn=dn.create,Gn=mn.propertyIsEnumerable,Hn=bn.splice,Yn=Un?Un.isConcatSpreadable:void 0,Qn=Un?Un.iterator:void 0,yt=Un?Un.toStringTag:void 0,kt=function(){try{var n=ni(dn,"defineProperty");return n({},"",{}),n}catch(n){}}(),Yt=t.clearTimeout!==Vn.clearTimeout&&t.clearTimeout,Qt=G&&G.now!==Vn.Date.now&&G.now,Xt=t.setTimeout!==Vn.setTimeout&&t.setTimeout,nr=pn.ceil,tr=pn.floor,rr=dn.getOwnPropertySymbols,er=zn?zn.isBuffer:void 0,ur=t.isFinite,ir=bn.join,or=$t(dn.keys,dn),fr=pn.max,ar=pn.min,cr=G.now,lr=t.parseInt,sr=pn.random,vr=bn.reverse,hr=ni(t,"DataView"),pr=ni(t,"Map"),dr=ni(t,"Promise"),_r=ni(t,"Set"),gr=ni(t,"WeakMap"),yr=ni(dn,"create"),br=gr&&new gr,wr={},mr=Ii(hr),xr=Ii(pr),jr=Ii(dr),Ar=Ii(_r),Or=Ii(gr),kr=Un?Un.prototype:void 0,Ir=kr?kr.valueOf:void 0,Sr=kr?kr.toString:void 0;function Er(n){if(Zo(n)&&!Uo(n)&&!(n instanceof Lr)){if(n instanceof Cr)return n;if(An.call(n,"__wrapped__"))return Si(n)}return new Cr(n)}var Rr=function(){function n(){}return function(t){if(!qo(t))return{};if(Kn)return Kn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}();function zr(){}function Cr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Lr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ur(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function Yr(n,t,r,e,u,i){var o,a=1&t,s=2&t,m=4&t;if(r&&(o=u?r(n,e,u,i):r(n)),void 0!==o)return o;if(!qo(n))return n;var C=Uo(n);if(C){if(o=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&An.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return yu(n,o)}else{var L=ei(n),U=L==v||L==h;if(Po(n))return vu(n,a);if(L==_||L==f||U&&!u){if(o=s||U?{}:ii(n),!a)return s?function(n,t){return bu(n,ri(n),t)}(n,function(n,t){return n&&bu(t,jf(t),n)}(o,n)):function(n,t){return bu(n,ti(n),t)}(n,Vr(o,n))}else{if(!Mn[L])return u?n:{};o=function(n,t,r){var e=n.constructor;switch(t){case x:return hu(n);case c:case l:return new e(+n);case j:return function(n,t){var r=t?hu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case A:case O:case k:case I:case S:case E:case"[object Uint8ClampedArray]":case R:case z:return pu(n,r);case p:return new e;case d:case b:return new e(n);case g:return function(n){var t=new n.constructor(n.source,rn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case y:return new e;case w:return u=n,Ir?dn(Ir.call(u)):{}}var u}(n,L,a)}}i||(i=new Pr);var T=i.get(n);if(T)return T;i.set(n,o),Jo(n)?n.forEach((function(e){o.add(Yr(e,t,r,e,n,i))})):Ko(n)&&n.forEach((function(e,u){o.set(u,Yr(e,t,r,u,n,i))}));var W=C?void 0:(m?s?Vu:Ku:s?jf:xf)(n);return ft(W||n,(function(e,u){W&&(e=n[u=e]),qr(o,u,Yr(e,t,r,u,n,i))})),o}function Qr(n,t,r){var e=r.length;if(null==n)return!e;for(n=dn(n);e--;){var u=r[e],i=t[u],o=n[u];if(void 0===o&&!(u in n)||!i(o))return!1}return!0}function Xr(n,t,r){if("function"!=typeof n)throw new yn(u);return wi((function(){n.apply(void 0,r)}),t)}function ne(n,t,r,e){var u=-1,i=st,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=ht(t,zt(r))),e?(i=vt,o=!1):t.length>=200&&(i=Lt,o=!1,t=new Br(t));n:for(;++u-1},Tr.prototype.set=function(n,t){var r=this.__data__,e=Zr(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ur,map:new(pr||Tr),string:new Ur}},Wr.prototype.delete=function(n){var t=Qu(this,n).delete(n);return this.size-=t?1:0,t},Wr.prototype.get=function(n){return Qu(this,n).get(n)},Wr.prototype.has=function(n){return Qu(this,n).has(n)},Wr.prototype.set=function(n,t){var r=Qu(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Br.prototype.add=Br.prototype.push=function(n){return this.__data__.set(n,"__lodash_hash_undefined__"),this},Br.prototype.has=function(n){return this.__data__.has(n)},Pr.prototype.clear=function(){this.__data__=new Tr,this.size=0},Pr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Pr.prototype.get=function(n){return this.__data__.get(n)},Pr.prototype.has=function(n){return this.__data__.has(n)},Pr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Tr){var e=r.__data__;if(!pr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Wr(e)}return r.set(n,t),this.size=r.size,this};var te=xu(ce),re=xu(le,!0);function ee(n,t){var r=!0;return te(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ue(n,t,r){for(var e=-1,u=n.length;++e0&&r(f)?t>1?oe(f,t-1,r,e,u):pt(u,f):e||(u[u.length]=f)}return u}var fe=ju(),ae=ju(!0);function ce(n,t){return n&&fe(n,t,xf)}function le(n,t){return n&&ae(n,t,xf)}function se(n,t){return lt(t,(function(t){return Mo(n[t])}))}function ve(n,t){for(var r=0,e=(t=au(t,n)).length;null!=n&&rt}function _e(n,t){return null!=n&&An.call(n,t)}function ge(n,t){return null!=n&&t in dn(n)}function ye(n,t,r){for(var u=r?vt:st,i=n[0].length,o=n.length,f=o,a=e(o),c=1/0,l=[];f--;){var s=n[f];f&&t&&(s=ht(s,zt(t))),c=ar(s.length,c),a[f]=!r&&(t||i>=120&&s.length>=120)?new Br(f&&s):void 0}s=n[0];var v=-1,h=a[0];n:for(;++v=f)return a;var c=r[e];return a*("desc"==c?-1:1)}}return n.index-t.index}(n,t,r)}))}function Ue(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Hn.call(f,a,1),Hn.call(n,a,1);return n}function We(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;fi(u)?Hn.call(n,u,1):nu(n,u)}}return n}function Be(n,t){return n+tr(sr()*(t-n+1))}function Pe(n,t){var r="";if(!n||t<1||t>9007199254740991)return r;do{t%2&&(r+=n),(t=tr(t/2))&&(n+=n)}while(t);return r}function De(n,t){return mi(di(n,t,Gf),n+"")}function Ne(n){return Nr(zf(n))}function Me(n,t){var r=zf(n);return Ai(r,Jr(t,0,r.length))}function $e(n,t,r,e){if(!qo(n))return n;for(var u=-1,i=(t=au(t,n)).length,o=i-1,f=n;null!=f&&++ui?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!Qo(o)&&(r?o<=t:o=200){var c=t?null:Pu(n);if(c)return qt(c);o=!1,u=Lt,a=new Br}else a=t?[]:f;n:for(;++e=e?n:Ke(n,t,r)}var su=Yt||function(n){return Vn.clearTimeout(n)};function vu(n,t){if(t)return n.slice();var r=n.length,e=$n?$n(r):new n.constructor(r);return n.copy(e),e}function hu(n){var t=new n.constructor(n.byteLength);return new Wn(t).set(new Wn(n)),t}function pu(n,t){var r=t?hu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function du(n,t){if(n!==t){var r=void 0!==n,e=null===n,u=n==n,i=Qo(n),o=void 0!==t,f=null===t,a=t==t,c=Qo(t);if(!f&&!c&&!i&&n>t||i&&o&&a&&!f&&!c||e&&o&&a||!r&&a||!u)return 1;if(!e&&!i&&!c&&n1?r[u-1]:void 0,o=u>2?r[2]:void 0;for(i=n.length>3&&"function"==typeof i?(u--,i):void 0,o&&ai(r[0],r[1],o)&&(i=u<3?void 0:i,u=1),t=dn(t);++e-1?u[i?t[o]:o]:void 0}}function Su(n){return Zu((function(t){var r=t.length,e=r,i=Cr.prototype.thru;for(n&&t.reverse();e--;){var o=t[e];if("function"!=typeof o)throw new yn(u);if(i&&!f&&"wrapper"==Hu(o))var f=new Cr([],!0)}for(e=f?e:r;++e1&&b.reverse(),s&&cf))return!1;var c=i.get(n),l=i.get(t);if(c&&l)return c==t&&l==n;var s=-1,v=!0,h=2&r?new Br:void 0;for(i.set(n,t),i.set(t,n);++s-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(H,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return ft(o,(function(r){var e="_."+r[0];t&r[1]&&!st(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(J);return t?t[1].split(Y):[]}(e),r)))}function ji(n){var t=0,r=0;return function(){var e=cr(),u=16-(e-r);if(r=e,u>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}function Ai(n,t){var r=-1,e=n.length,u=e-1;for(t=void 0===t?e:t;++r1?n[t-1]:void 0;return r="function"==typeof r?(n.pop(),r):void 0,Gi(n,r)}));function to(n){var t=Er(n);return t.__chain__=!0,t}function ro(n,t){return t(n)}var eo=Zu((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return Hr(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Lr&&fi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ro,args:[u],thisArg:void 0}),new Cr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(void 0),n}))):this.thru(u)}));var uo=wu((function(n,t,r){An.call(n,r)?++n[r]:Gr(n,r,1)}));var io=Iu(Ci),oo=Iu(Li);function fo(n,t){return(Uo(n)?ft:te)(n,Yu(t,3))}function ao(n,t){return(Uo(n)?at:re)(n,Yu(t,3))}var co=wu((function(n,t,r){An.call(n,r)?n[r].push(t):Gr(n,r,[t])}));var lo=De((function(n,t,r){var u=-1,i="function"==typeof t,o=Wo(n)?e(n.length):[];return te(n,(function(n){o[++u]=i?it(t,n,r):be(n,t,r)})),o})),so=wu((function(n,t,r){Gr(n,r,t)}));function vo(n,t){return(Uo(n)?ht:Se)(n,Yu(t,3))}var ho=wu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var po=De((function(n,t){if(null==n)return[];var r=t.length;return r>1&&ai(n,t[0],t[1])?t=[]:r>2&&ai(t[0],t[1],t[2])&&(t=[t[0]]),Le(n,oe(t,1),[])})),_o=Qt||function(){return Vn.Date.now()};function go(n,t,r){return t=r?void 0:t,Nu(n,128,void 0,void 0,void 0,void 0,t=n&&null==t?n.length:t)}function yo(n,t){var r;if("function"!=typeof t)throw new yn(u);return n=uf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=void 0),r}}var bo=De((function(n,t,r){var e=1;if(r.length){var u=Ft(r,Ju(bo));e|=32}return Nu(n,e,t,r,u)})),wo=De((function(n,t,r){var e=3;if(r.length){var u=Ft(r,Ju(wo));e|=32}return Nu(t,e,n,r,u)}));function mo(n,t,r){var e,i,o,f,a,c,l=0,s=!1,v=!1,h=!0;if("function"!=typeof n)throw new yn(u);function p(t){var r=e,u=i;return e=i=void 0,l=t,f=n.apply(u,r)}function d(n){return l=n,a=wi(g,t),s?p(n):f}function _(n){var r=n-c;return void 0===c||r>=t||r<0||v&&n-l>=o}function g(){var n=_o();if(_(n))return y(n);a=wi(g,function(n){var r=t-(n-c);return v?ar(r,o-(n-l)):r}(n))}function y(n){return a=void 0,h&&e?p(n):(e=i=void 0,f)}function b(){var n=_o(),r=_(n);if(e=arguments,i=this,c=n,r){if(void 0===a)return d(c);if(v)return su(a),a=wi(g,t),p(c)}return void 0===a&&(a=wi(g,t)),f}return t=ff(t)||0,qo(r)&&(s=!!r.leading,o=(v="maxWait"in r)?fr(ff(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),b.cancel=function(){void 0!==a&&su(a),l=0,e=c=i=a=void 0},b.flush=function(){return void 0===a?f:y(_o())},b}var xo=De((function(n,t){return Xr(n,1,t)})),jo=De((function(n,t,r){return Xr(n,ff(t)||0,r)}));function Ao(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new yn(u);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Ao.Cache||Wr),r}function Oo(n){if("function"!=typeof n)throw new yn(u);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Ao.Cache=Wr;var ko=cu((function(n,t){var r=(t=1==t.length&&Uo(t[0])?ht(t[0],zt(Yu())):ht(oe(t,1),zt(Yu()))).length;return De((function(e){for(var u=-1,i=ar(e.length,r);++u=t})),Lo=we(function(){return arguments}())?we:function(n){return Zo(n)&&An.call(n,"callee")&&!Gn.call(n,"callee")},Uo=e.isArray,To=Xn?zt(Xn):function(n){return Zo(n)&&pe(n)==x};function Wo(n){return null!=n&&Fo(n.length)&&!Mo(n)}function Bo(n){return Zo(n)&&Wo(n)}var Po=er||fa,Do=nt?zt(nt):function(n){return Zo(n)&&pe(n)==l};function No(n){if(!Zo(n))return!1;var t=pe(n);return t==s||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!Go(n)}function Mo(n){if(!qo(n))return!1;var t=pe(n);return t==v||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $o(n){return"number"==typeof n&&n==uf(n)}function Fo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}function qo(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function Zo(n){return null!=n&&"object"==typeof n}var Ko=tt?zt(tt):function(n){return Zo(n)&&ei(n)==p};function Vo(n){return"number"==typeof n||Zo(n)&&pe(n)==d}function Go(n){if(!Zo(n)||pe(n)!=_)return!1;var t=Zn(n);if(null===t)return!0;var r=An.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&jn.call(r)==Sn}var Ho=rt?zt(rt):function(n){return Zo(n)&&pe(n)==g};var Jo=et?zt(et):function(n){return Zo(n)&&ei(n)==y};function Yo(n){return"string"==typeof n||!Uo(n)&&Zo(n)&&pe(n)==b}function Qo(n){return"symbol"==typeof n||Zo(n)&&pe(n)==w}var Xo=ut?zt(ut):function(n){return Zo(n)&&Fo(n.length)&&!!Nn[pe(n)]};var nf=Tu(Ie),tf=Tu((function(n,t){return n<=t}));function rf(n){if(!n)return[];if(Wo(n))return Yo(n)?Vt(n):yu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=ei(n);return(t==p?Mt:t==y?qt:zf)(n)}function ef(n){return n?(n=ff(n))===1/0||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function uf(n){var t=ef(n),r=t%1;return t==t?r?t-r:t:0}function of(n){return n?Jr(uf(n),0,4294967295):0}function ff(n){if("number"==typeof n)return n;if(Qo(n))return NaN;if(qo(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=qo(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Rt(n);var r=un.test(n);return r||fn.test(n)?qn(n.slice(2),r?2:8):en.test(n)?NaN:+n}function af(n){return bu(n,jf(n))}function cf(n){return null==n?"":Qe(n)}var lf=mu((function(n,t){if(vi(t)||Wo(t))bu(t,xf(t),n);else for(var r in t)An.call(t,r)&&qr(n,r,t[r])})),sf=mu((function(n,t){bu(t,jf(t),n)})),vf=mu((function(n,t,r,e){bu(t,jf(t),n,e)})),hf=mu((function(n,t,r,e){bu(t,xf(t),n,e)})),pf=Zu(Hr);var df=De((function(n,t){n=dn(n);var r=-1,e=t.length,u=e>2?t[2]:void 0;for(u&&ai(t[0],t[1],u)&&(e=1);++r1),t})),bu(n,Vu(n),r),e&&(r=Yr(r,7,Fu));for(var u=t.length;u--;)nu(r,t[u]);return r}));var If=Zu((function(n,t){return null==n?{}:function(n,t){return Ue(n,t,(function(t,r){return yf(n,r)}))}(n,t)}));function Sf(n,t){if(null==n)return{};var r=ht(Vu(n),(function(n){return[n]}));return t=Yu(t),Ue(n,r,(function(n,r){return t(n,r[0])}))}var Ef=Du(xf),Rf=Du(jf);function zf(n){return null==n?[]:Ct(n,xf(n))}var Cf=Ou((function(n,t,r){return t=t.toLowerCase(),n+(r?Lf(t):t)}));function Lf(n){return Mf(cf(n).toLowerCase())}function Uf(n){return(n=cf(n))&&n.replace(cn,Bt).replace(Ln,"")}var Tf=Ou((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Wf=Ou((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Bf=Au("toLowerCase");var Pf=Ou((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Df=Ou((function(n,t,r){return n+(r?" ":"")+Mf(t)}));var Nf=Ou((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Mf=Au("toUpperCase");function $f(n,t,r){return n=cf(n),void 0===(t=r?void 0:t)?function(n){return Bn.test(n)}(n)?function(n){return n.match(Tn)||[]}(n):function(n){return n.match(Q)||[]}(n):n.match(t)||[]}var Ff=De((function(n,t){try{return it(n,void 0,t)}catch(n){return No(n)?n:new vn(n)}})),qf=Zu((function(n,t){return ft(t,(function(t){t=ki(t),Gr(n,t,bo(n[t],n))})),n}));function Zf(n){return function(){return n}}var Kf=Su(),Vf=Su(!0);function Gf(n){return n}function Hf(n){return Ae("function"==typeof n?n:Yr(n,1))}var Jf=De((function(n,t){return function(r){return be(r,n,t)}})),Yf=De((function(n,t){return function(r){return be(n,r,t)}}));function Qf(n,t,r){var e=xf(t),u=se(t,e);null!=r||qo(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=se(t,xf(t)));var i=!(qo(r)&&"chain"in r&&!r.chain),o=Mo(n);return ft(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__),u=r.__actions__=yu(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,pt([this.value()],arguments))})})),n}function Xf(){}var na=Cu(ht),ta=Cu(ct),ra=Cu(gt);function ea(n){return ci(n)?Ot(ki(n)):function(n){return function(t){return ve(t,n)}}(n)}var ua=Uu(),ia=Uu(!0);function oa(){return[]}function fa(){return!1}var aa=zu((function(n,t){return n+t}),0),ca=Bu("ceil"),la=zu((function(n,t){return n/t}),1),sa=Bu("floor");var va,ha=zu((function(n,t){return n*t}),1),pa=Bu("round"),da=zu((function(n,t){return n-t}),0);return Er.after=function(n,t){if("function"!=typeof t)throw new yn(u);return n=uf(n),function(){if(--n<1)return t.apply(this,arguments)}},Er.ary=go,Er.assign=lf,Er.assignIn=sf,Er.assignInWith=vf,Er.assignWith=hf,Er.at=pf,Er.before=yo,Er.bind=bo,Er.bindAll=qf,Er.bindKey=wo,Er.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Uo(n)?n:[n]},Er.chain=to,Er.chunk=function(n,t,r){t=(r?ai(n,t,r):void 0===t)?1:fr(uf(t),0);var u=null==n?0:n.length;if(!u||t<1)return[];for(var i=0,o=0,f=e(nr(u/t));iu?0:u+r),(e=void 0===e||e>u?u:uf(e))<0&&(e+=u),e=r>e?0:of(e);r>>0)?(n=cf(n))&&("string"==typeof t||null!=t&&!Ho(t))&&!(t=Qe(t))&&Nt(n)?lu(Vt(n),0,r):n.split(t,r):[]},Er.spread=function(n,t){if("function"!=typeof n)throw new yn(u);return t=null==t?0:fr(uf(t),0),De((function(r){var e=r[t],u=lu(r,0,t);return e&&pt(u,e),it(n,this,u)}))},Er.tail=function(n){var t=null==n?0:n.length;return t?Ke(n,1,t):[]},Er.take=function(n,t,r){return n&&n.length?Ke(n,0,(t=r||void 0===t?1:uf(t))<0?0:t):[]},Er.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?Ke(n,(t=e-(t=r||void 0===t?1:uf(t)))<0?0:t,e):[]},Er.takeRightWhile=function(n,t){return n&&n.length?ru(n,Yu(t,3),!1,!0):[]},Er.takeWhile=function(n,t){return n&&n.length?ru(n,Yu(t,3)):[]},Er.tap=function(n,t){return t(n),n},Er.throttle=function(n,t,r){var e=!0,i=!0;if("function"!=typeof n)throw new yn(u);return qo(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),mo(n,t,{leading:e,maxWait:t,trailing:i})},Er.thru=ro,Er.toArray=rf,Er.toPairs=Ef,Er.toPairsIn=Rf,Er.toPath=function(n){return Uo(n)?ht(n,ki):Qo(n)?[n]:yu(Oi(cf(n)))},Er.toPlainObject=af,Er.transform=function(n,t,r){var e=Uo(n),u=e||Po(n)||Xo(n);if(t=Yu(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:qo(n)&&Mo(i)?Rr(Zn(n)):{}}return(u?ft:ce)(n,(function(n,e,u){return t(r,n,e,u)})),r},Er.unary=function(n){return go(n,1)},Er.union=qi,Er.unionBy=Zi,Er.unionWith=Ki,Er.uniq=function(n){return n&&n.length?Xe(n):[]},Er.uniqBy=function(n,t){return n&&n.length?Xe(n,Yu(t,2)):[]},Er.uniqWith=function(n,t){return t="function"==typeof t?t:void 0,n&&n.length?Xe(n,void 0,t):[]},Er.unset=function(n,t){return null==n||nu(n,t)},Er.unzip=Vi,Er.unzipWith=Gi,Er.update=function(n,t,r){return null==n?n:tu(n,t,fu(r))},Er.updateWith=function(n,t,r,e){return e="function"==typeof e?e:void 0,null==n?n:tu(n,t,fu(r),e)},Er.values=zf,Er.valuesIn=function(n){return null==n?[]:Ct(n,jf(n))},Er.without=Hi,Er.words=$f,Er.wrap=function(n,t){return Io(fu(t),n)},Er.xor=Ji,Er.xorBy=Yi,Er.xorWith=Qi,Er.zip=Xi,Er.zipObject=function(n,t){return iu(n||[],t||[],qr)},Er.zipObjectDeep=function(n,t){return iu(n||[],t||[],$e)},Er.zipWith=no,Er.entries=Ef,Er.entriesIn=Rf,Er.extend=sf,Er.extendWith=vf,Qf(Er,Er),Er.add=aa,Er.attempt=Ff,Er.camelCase=Cf,Er.capitalize=Lf,Er.ceil=ca,Er.clamp=function(n,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=ff(r))==r?r:0),void 0!==t&&(t=(t=ff(t))==t?t:0),Jr(ff(n),t,r)},Er.clone=function(n){return Yr(n,4)},Er.cloneDeep=function(n){return Yr(n,5)},Er.cloneDeepWith=function(n,t){return Yr(n,5,t="function"==typeof t?t:void 0)},Er.cloneWith=function(n,t){return Yr(n,4,t="function"==typeof t?t:void 0)},Er.conformsTo=function(n,t){return null==t||Qr(n,t,xf(t))},Er.deburr=Uf,Er.defaultTo=function(n,t){return null==n||n!=n?t:n},Er.divide=la,Er.endsWith=function(n,t,r){n=cf(n),t=Qe(t);var e=n.length,u=r=void 0===r?e:Jr(uf(r),0,e);return(r-=t.length)>=0&&n.slice(r,u)==t},Er.eq=Ro,Er.escape=function(n){return(n=cf(n))&&P.test(n)?n.replace(W,Pt):n},Er.escapeRegExp=function(n){return(n=cf(n))&&K.test(n)?n.replace(Z,"\\$&"):n},Er.every=function(n,t,r){var e=Uo(n)?ct:ee;return r&&ai(n,t,r)&&(t=void 0),e(n,Yu(t,3))},Er.find=io,Er.findIndex=Ci,Er.findKey=function(n,t){return bt(n,Yu(t,3),ce)},Er.findLast=oo,Er.findLastIndex=Li,Er.findLastKey=function(n,t){return bt(n,Yu(t,3),le)},Er.floor=sa,Er.forEach=fo,Er.forEachRight=ao,Er.forIn=function(n,t){return null==n?n:fe(n,Yu(t,3),jf)},Er.forInRight=function(n,t){return null==n?n:ae(n,Yu(t,3),jf)},Er.forOwn=function(n,t){return n&&ce(n,Yu(t,3))},Er.forOwnRight=function(n,t){return n&&le(n,Yu(t,3))},Er.get=gf,Er.gt=zo,Er.gte=Co,Er.has=function(n,t){return null!=n&&ui(n,t,_e)},Er.hasIn=yf,Er.head=Ti,Er.identity=Gf,Er.includes=function(n,t,r,e){n=Wo(n)?n:zf(n),r=r&&!e?uf(r):0;var u=n.length;return r<0&&(r=fr(u+r,0)),Yo(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&mt(n,t,r)>-1},Er.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:uf(r);return u<0&&(u=fr(e+u,0)),mt(n,t,u)},Er.inRange=function(n,t,r){return t=ef(t),void 0===r?(r=t,t=0):r=ef(r),function(n,t,r){return n>=ar(t,r)&&n=-9007199254740991&&n<=9007199254740991},Er.isSet=Jo,Er.isString=Yo,Er.isSymbol=Qo,Er.isTypedArray=Xo,Er.isUndefined=function(n){return void 0===n},Er.isWeakMap=function(n){return Zo(n)&&ei(n)==m},Er.isWeakSet=function(n){return Zo(n)&&"[object WeakSet]"==pe(n)},Er.join=function(n,t){return null==n?"":ir.call(n,t)},Er.kebabCase=Tf,Er.last=Di,Er.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return void 0!==r&&(u=(u=uf(r))<0?fr(e+u,0):ar(u,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,u):wt(n,jt,u,!0)},Er.lowerCase=Wf,Er.lowerFirst=Bf,Er.lt=nf,Er.lte=tf,Er.max=function(n){return n&&n.length?ue(n,Gf,de):void 0},Er.maxBy=function(n,t){return n&&n.length?ue(n,Yu(t,2),de):void 0},Er.mean=function(n){return At(n,Gf)},Er.meanBy=function(n,t){return At(n,Yu(t,2))},Er.min=function(n){return n&&n.length?ue(n,Gf,Ie):void 0},Er.minBy=function(n,t){return n&&n.length?ue(n,Yu(t,2),Ie):void 0},Er.stubArray=oa,Er.stubFalse=fa,Er.stubObject=function(){return{}},Er.stubString=function(){return""},Er.stubTrue=function(){return!0},Er.multiply=ha,Er.nth=function(n,t){return n&&n.length?Ce(n,uf(t)):void 0},Er.noConflict=function(){return Vn._===this&&(Vn._=En),this},Er.noop=Xf,Er.now=_o,Er.pad=function(n,t,r){n=cf(n);var e=(t=uf(t))?Kt(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Lu(tr(u),r)+n+Lu(nr(u),r)},Er.padEnd=function(n,t,r){n=cf(n);var e=(t=uf(t))?Kt(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var u=sr();return ar(n+u*(t-n+Fn("1e-"+((u+"").length-1))),t)}return Be(n,t)},Er.reduce=function(n,t,r){var e=Uo(n)?dt:It,u=arguments.length<3;return e(n,Yu(t,4),r,u,te)},Er.reduceRight=function(n,t,r){var e=Uo(n)?_t:It,u=arguments.length<3;return e(n,Yu(t,4),r,u,re)},Er.repeat=function(n,t,r){return t=(r?ai(n,t,r):void 0===t)?1:uf(t),Pe(cf(n),t)},Er.replace=function(){var n=arguments,t=cf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Er.result=function(n,t,r){var e=-1,u=(t=au(t,n)).length;for(u||(u=1,n=void 0);++e9007199254740991)return[];var r=4294967295,e=ar(n,4294967295);n-=4294967295;for(var u=Et(e,t=Yu(t));++r=i)return n;var f=r-Kt(e);if(f<1)return e;var a=o?lu(o,0,f).join(""):n.slice(0,f);if(void 0===u)return a+e;if(o&&(f+=a.length-f),Ho(u)){if(n.slice(f).search(u)){var c,l=a;for(u.global||(u=_n(u.source,cf(rn.exec(u))+"g")),u.lastIndex=0;c=u.exec(l);)var s=c.index;a=a.slice(0,void 0===s?f:s)}}else if(n.indexOf(Qe(u),f)!=f){var v=a.lastIndexOf(u);v>-1&&(a=a.slice(0,v))}return a+e},Er.unescape=function(n){return(n=cf(n))&&B.test(n)?n.replace(T,Ht):n},Er.uniqueId=function(n){var t=++On;return cf(n)+t},Er.upperCase=Nf,Er.upperFirst=Mf,Er.each=fo,Er.eachRight=ao,Er.first=Ti,Qf(Er,(va={},ce(Er,(function(n,t){An.call(Er.prototype,t)||(va[t]=n)})),va),{chain:!1}),Er.VERSION="4.17.21",ft(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Er[n].placeholder=Er})),ft(["drop","take"],(function(n,t){Lr.prototype[n]=function(r){r=void 0===r?1:fr(uf(r),0);var e=this.__filtered__&&!t?new Lr(this):this.clone();return e.__filtered__?e.__takeCount__=ar(r,e.__takeCount__):e.__views__.push({size:ar(r,4294967295),type:n+(e.__dir__<0?"Right":"")}),e},Lr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),ft(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Lr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:Yu(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),ft(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Lr.prototype[n]=function(){return this[r](1).value()[0]}})),ft(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Lr.prototype[n]=function(){return this.__filtered__?new Lr(this):this[r](1)}})),Lr.prototype.compact=function(){return this.filter(Gf)},Lr.prototype.find=function(n){return this.filter(n).head()},Lr.prototype.findLast=function(n){return this.reverse().find(n)},Lr.prototype.invokeMap=De((function(n,t){return"function"==typeof n?new Lr(this):this.map((function(r){return be(r,n,t)}))})),Lr.prototype.reject=function(n){return this.filter(Oo(Yu(n)))},Lr.prototype.slice=function(n,t){n=uf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Lr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),void 0!==t&&(r=(t=uf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Lr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Lr.prototype.toArray=function(){return this.take(4294967295)},ce(Lr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=Er[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t);u&&(Er.prototype[t]=function(){var t=this.__wrapped__,o=e?[1]:arguments,f=t instanceof Lr,a=o[0],c=f||Uo(t),l=function(n){var t=u.apply(Er,pt([n],o));return e&&s?t[0]:t};c&&r&&"function"==typeof a&&1!=a.length&&(f=c=!1);var s=this.__chain__,v=!!this.__actions__.length,h=i&&!s,p=f&&!v;if(!i&&c){t=p?t:new Lr(this);var d=n.apply(t,o);return d.__actions__.push({func:ro,args:[l],thisArg:void 0}),new Cr(d,s)}return h&&p?n.apply(this,o):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),ft(["pop","push","shift","sort","splice","unshift"],(function(n){var t=bn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Er.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Uo(u)?u:[],n)}return this[r]((function(r){return t.apply(Uo(r)?r:[],n)}))}})),ce(Lr.prototype,(function(n,t){var r=Er[t];if(r){var e=r.name+"";An.call(wr,e)||(wr[e]=[]),wr[e].push({name:t,func:r})}})),wr[Eu(void 0,2).name]=[{name:"wrapper",func:void 0}],Lr.prototype.clone=function(){var n=new Lr(this.__wrapped__);return n.__actions__=yu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=yu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=yu(this.__views__),n},Lr.prototype.reverse=function(){if(this.__filtered__){var n=new Lr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Lr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Uo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?void 0:this.__values__[this.__index__++]}},Er.prototype.plant=function(n){for(var t,r=this;r instanceof zr;){var e=Si(r);e.__index__=0,e.__values__=void 0,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t},Er.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Lr){var t=n;return this.__actions__.length&&(t=new Lr(this)),(t=t.reverse()).__actions__.push({func:ro,args:[Fi],thisArg:void 0}),new Cr(t,this.__chain__)}return this.thru(Fi)},Er.prototype.toJSON=Er.prototype.valueOf=Er.prototype.value=function(){return eu(this.__wrapped__,this.__actions__)},Er.prototype.first=Er.prototype.head,Qn&&(Er.prototype[Qn]=function(){return this}),Er}();Vn._=Jt,void 0===(e=function(){return Jt}.call(t,r,t,n))||(n.exports=e)}).call(this)}).call(this,r(3)(n))},function(n,t){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}}]);manifest.json000644 0000000514 14166231103010402 0ustar00000000 000000 { "manifest_version": 1, "id": "io.xargs.JoplinPluginAutoTag", "app_min_version": "2.6", "version": "1.0.3-rc7", "name": "Auto Tag", "description": "Convert all octothorpe prefixed words into tags", "author": "ZPH", "homepage_url": "", "repository_url": "github.com/zph/joplin-plugin-auto-tag", "keywords": [] }