mirror of
https://github.com/SeriousBug/dotfiles
synced 2025-02-23 06:39:51 -06:00
60 lines
238 KiB
JavaScript
60 lines
238 KiB
JavaScript
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ya={exports:{}};/*! For license information please see lsplugin.user.js.LICENSE.txt */(function(e,t){(function(n,r){e.exports=r()})(self,()=>(()=>{var n={227:(l,u,a)=>{var p=a(155);u.formatArgs=function(_){if(_[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+_[0]+(this.useColors?"%c ":" ")+"+"+l.exports.humanize(this.diff),!this.useColors)return;const E="color: "+this.color;_.splice(1,0,E,"color: inherit");let x=0,k=0;_[0].replace(/%[a-zA-Z%]/g,S=>{S!=="%%"&&(x++,S==="%c"&&(k=x))}),_.splice(k,0,E)},u.save=function(_){try{_?u.storage.setItem("debug",_):u.storage.removeItem("debug")}catch{}},u.load=function(){let _;try{_=u.storage.getItem("debug")}catch{}return!_&&p!==void 0&&"env"in p&&(_=p.env.DEBUG),_},u.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},u.storage=function(){try{return localStorage}catch{}}(),u.destroy=(()=>{let _=!1;return()=>{_||(_=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),u.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],u.log=console.debug||console.log||(()=>{}),l.exports=a(447)(u);const{formatters:v}=l.exports;v.j=function(_){try{return JSON.stringify(_)}catch(E){return"[UnexpectedJSONParseError]: "+E.message}}},447:(l,u,a)=>{l.exports=function(p){function v(x){let k,S,I,g=null;function c(...h){if(!c.enabled)return;const O=c,T=Number(new Date),A=T-(k||T);O.diff=A,O.prev=k,O.curr=T,k=T,h[0]=v.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let m=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(C,j)=>{if(C==="%%")return"%";m++;const z=v.formatters[j];if(typeof z=="function"){const K=h[m];C=z.call(O,K),h.splice(m,1),m--}return C}),v.formatArgs.call(O,h),(O.log||v.log).apply(O,h)}return c.namespace=x,c.useC
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E(Y,U){(U==null||U>Y.length)&&(U=Y.length);for(var q=0,re=new Array(U);q<U;q++)re[q]=Y[q];return re}var x=Object.hasOwnProperty,k=Object.setPrototypeOf,S=Object.isFrozen,I=Object.getPrototypeOf,g=Object.getOwnPropertyDescriptor,c=Object.freeze,h=Object.seal,O=Object.create,T=typeof Reflect<"u"&&Reflect,A=T.apply,m=T.construct;A||(A=function(Y,U,q){return Y.apply(U,q)}),c||(c=function(Y){return Y}),h||(h=function(Y){return Y}),m||(m=function(Y,U){return v(Y,_(U))});var C,j=N(Array.prototype.forEach),z=N(Array.prototype.pop),K=N(Array.prototype.push),J=N(String.prototype.toLowerCase),ie=N(String.prototype.match),me=N(String.prototype.replace),Qe=N(String.prototype.indexOf),je=N(String.prototype.trim),pe=N(RegExp.prototype.test),H=(C=TypeError,function(){for(var Y=arguments.length,U=new Array(Y),q=0;q<Y;q++)U[q]=arguments[q];return m(C,U)});function N(Y){return function(U){for(var q=arguments.length,re=new Array(q>1?q-1:0),ye=1;ye<q;ye++)re[ye-1]=arguments[ye];return A(Y,U,re)}}function P(Y,U){k&&k(Y,null);for(var q=U.length;q--;){var re=U[q];if(typeof re=="string"){var ye=J(re);ye!==re&&(S(U)||(U[q]=ye),re=ye)}Y[re]=!0}return Y}function D(Y){var U,q=O(null);for(U in Y)A(x,Y,[U])&&(q[U]=Y[U]);return q}function X(Y,U){for(;Y!==null;){var q=g(Y,U);if(q){if(q.get)return N(q.get);if(typeof q.value=="function")return N(q.value)}Y=I(Y)}return function(re){return console.warn("fallback value for",re),null}}var Oe=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ce=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ee=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),se=c(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_e=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Re=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zt=c(["#text"]),rt=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class
|
||
|
`+L),wn&&(L=me(L,ao," "),L=me(L,_r," ")),Ht&&Gn?Ht.createHTML(L):L},q.setConfig=function(y){So(y),Sn=!0},q.clearConfig=function(){En=null,Sn=!1},q.isValidAttribute=function(y,B,$){En||So({});var ue=nn(y),ke=nn(B);return $i(ue,ke,$)},q.addHook=function(y,B){typeof B=="function"&&(it[y]=it[y]||[],K(it[y],B))},q.removeHook=function(y){if(it[y])return z(it[y])},q.removeHooks=function(y){it[y]&&(it[y]=[])},q.removeAllHooks=function(){it={}},q}()}()},729:l=>{var u=Object.prototype.hasOwnProperty,a="~";function p(){}function v(k,S,I){this.fn=k,this.context=S,this.once=I||!1}function _(k,S,I,g,c){if(typeof I!="function")throw new TypeError("The listener must be a function");var h=new v(I,g||k,c),O=a?a+S:S;return k._events[O]?k._events[O].fn?k._events[O]=[k._events[O],h]:k._events[O].push(h):(k._events[O]=h,k._eventsCount++),k}function E(k,S){--k._eventsCount==0?k._events=new p:delete k._events[S]}function x(){this._events=new p,this._eventsCount=0}Object.create&&(p.prototype=Object.create(null),new p().__proto__||(a=!1)),x.prototype.eventNames=function(){var k,S,I=[];if(this._eventsCount===0)return I;for(S in k=this._events)u.call(k,S)&&I.push(a?S.slice(1):S);return Object.getOwnPropertySymbols?I.concat(Object.getOwnPropertySymbols(k)):I},x.prototype.listeners=function(k){var S=a?a+k:k,I=this._events[S];if(!I)return[];if(I.fn)return[I.fn];for(var g=0,c=I.length,h=new Array(c);g<c;g++)h[g]=I[g].fn;return h},x.prototype.listenerCount=function(k){var S=a?a+k:k,I=this._events[S];return I?I.fn?1:I.length:0},x.prototype.emit=function(k,S,I,g,c,h){var O=a?a+k:k;if(!this._events[O])return!1;var T,A,m=this._events[O],C=arguments.length;if(m.fn){switch(m.once&&this.removeListener(k,m.fn,void 0,!0),C){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,S),!0;case 3:return m.fn.call(m.context,S,I),!0;case 4:return m.fn.call(m.context,S,I,g),!0;case 5:return m.fn.call(m.context,S,I,g,c),!0;case 6:return m.fn.call(m.context,S,I,g,c,h),!0}for(A=1,T=new Array(C-1);A<C;A++)T[A-1]=arguments[A];m.fn.apply(m.context,T)}else{var j,z=m.length;for(A=0;A<z;A++)switch(m[A].once&&this.removeListener(k,m[A].fn,void 0,!0),C){case 1:m[A].fn.call(m[A].context);break;case 2:m[A].fn.call(m[A].context,S);break;case 3:m[A].fn.call(m[A].context,S,I);break;case 4:m[A].fn.call(m[A].context,S,I,g);break;default:if(!T)for(j=1,T=new Array(C-1);j<C;j++)T[j-1]=arguments[j];m[A].fn.apply(m[A].context,T)}}return!0},x.prototype.on=function(k,S,I){return _(this,k,S,I,!1)},x.prototype.once=function(k,S,I){return _(this,k,S,I,!0)},x.prototype.removeListener=function(k,S,I,g){var c=a?a+k:k;if(!this._events[c])return this;if(!S)return E(this,c),this;var h=this._events[c];if(h.fn)h.fn!==S||g&&!h.once||I&&h.context!==I||E(this,c);else{for(var O=0,T=[],A=h.length;O<A;O++)(h[O].fn!==S||g&&!h[O].once||I&&h[O].context!==I)&&T.push(h[O]);T.length?this._events[c]=T.length===1?T[0]:T:E(this,c)}return this},x.prototype.removeAllListeners=function(k){var S;return k?(S=a?a+k:k,this._events[S]&&E(this,S)):(this._events=new p,this._eventsCount=0),this},x.prototype.off=x.prototype.removeListener,x.prototype.addListener=x.prototype.on,x.prefixed=a,x.EventEmitter=x,l.exports=x},824:l=>{var u=1e3,a=60*u,p=60*a,v=24*p;function _(E,x,k,S){var I=x>=1.5*k;return Math.round(E/k)+" "+S+(I?"s":"")}l.exports=function(E,x){x=x||{};var k,S,I=typeof E;if(I==="string"&&E.length>0)return function(g){if(!((g=String(g)).length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(c){var h=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"weeks":case"week":case"w":return 6048e5*h;case"days":case"day":case"d":return h*v;case"hours":case"hour":case"hrs":case"hr":case"h":return h*p;case"minutes":case"minute":case"mins":case"min":case"m":return h*a;case"seconds":case"second":case"secs":case"sec":case"s":return h*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}(E);if(I==="nu
|
||
|
`),Pt+gn.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Ie[0]+(de===""?"":de+`
|
||
|
`)+" "+Ne.join(`,
|
||
|
`)+" "+Ie[1]:Ie[0]+de+" "+Ne.join(", ")+" "+Ie[1]}(_e,Re,rt)):rt[0]+Re+rt[1]}function g(N){return"["+Error.prototype.toString.call(N)+"]"}function c(N,P,D,X,Oe,ce){var ee,se,_e;if((_e=Object.getOwnPropertyDescriptor(P,Oe)||{value:P[Oe]}).get?se=_e.set?N.stylize("[Getter/Setter]","special"):N.stylize("[Getter]","special"):_e.set&&(se=N.stylize("[Setter]","special")),H(X,Oe)||(ee="["+Oe+"]"),se||(N.seen.indexOf(_e.value)<0?(se=T(D)?I(N,_e.value,null):I(N,_e.value,D-1)).indexOf(`
|
||
|
`)>-1&&(se=ce?se.split(`
|
||
|
`).map(function(Re){return" "+Re}).join(`
|
||
|
`).substr(2):`
|
||
|
`+se.split(`
|
||
|
`).map(function(Re){return" "+Re}).join(`
|
||
|
`)):se=N.stylize("[Circular]","special")),C(ee)){if(ce&&Oe.match(/^\d+$/))return se;(ee=JSON.stringify(""+Oe)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ee=ee.substr(1,ee.length-2),ee=N.stylize(ee,"name")):(ee=ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ee=N.stylize(ee,"string"))}return ee+": "+se}function h(N){return Array.isArray(N)}function O(N){return typeof N=="boolean"}function T(N){return N===null}function A(N){return typeof N=="number"}function m(N){return typeof N=="string"}function C(N){return N===void 0}function j(N){return z(N)&&me(N)==="[object RegExp]"}function z(N){return typeof N=="object"&&N!==null}function K(N){return z(N)&&me(N)==="[object Date]"}function J(N){return z(N)&&(me(N)==="[object Error]"||N instanceof Error)}function ie(N){return typeof N=="function"}function me(N){return Object.prototype.toString.call(N)}function Qe(N){return N<10?"0"+N.toString(10):N.toString(10)}u.debuglog=function(N){if(C(_)&&(_=p.env.NODE_DEBUG||""),N=N.toUpperCase(),!E[N])if(new RegExp("\\b"+N+"\\b","i").test(_)){var P=p.pid;E[N]=function(){var D=u.format.apply(u,arguments);console.error("%s %d: %s",N,P,D)}}else E[N]=function(){};return E[N]},u.inspect=x,x.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},u.isArray=h,u.isBoolean=O,u.isNull=T,u.isNullOrUndefined=function(N){return N==null},u.isNumber=A,u.isString=m,u.isSymbol=function(N){return typeof N=="symbol"},u.isUndefined=C,u.isRegExp=j,u.isObject=z,u.isDate=K,u.isError=J,u.isFunction=ie,u.isPrimitive=function(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||N===void 0},u.isBuffer=a(384);var je=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pe(){var N=new Date,P=[Qe(N.getHours()),Qe(N.getMinutes()),Qe(N.getSeconds())].join(":");return[N.getDate(),je[N.getMonth()],P].join(" ")}function H(N,P){return Object.prototype.hasOwnProperty.call(N,P)}u.log=function(){console.log("%s - %s",pe(),u.format.apply(u,arguments))},u.inherits=a(496),u._extend=function(N,P){if(!P||!z(P))return N;for(var D=Object.keys(P),X=D.length;X--;)N[D[X]]=P[D[X]];return N}}},r={};function o(l){var u=r[l];if(u!==void 0)return u.exports;var a=r[l]={exports:{}};return n[l].call(a.exports,a,a.exports,o),a.exports}o.n=l=>{var u=l&&l.__esModule?()=>l.default:()=>l;return o.d(u,{a:u}),u},o.d=(l,u)=>{for(var a in u)o.o(u,a)&&!o.o(l,a)&&Object.defineProperty(l,a,{enumerable:!0,get:u[a]})},o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),o.o=(l,u)=>Object.prototype.hasOwnProperty.call(l,u),o.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{LSPluginUser:()=>ue,setupPluginUserInstance:()=>ke});var l=o(520);o(856);const u=function(f,s){return f===s||f!=f&&s!=s},a=function(f,s){for(var d=f.length;d--;)if(u(f[d][0],s))return d;return-1};var p=Array.prototype.splice;function v(f){var s=-1,d=f==null?0:f.length;for(this.clear();++s<d;){var w=f[s];this.set(w[0],w[1])}}v.prototype.clear=function(){this.__data__=[],this.size=0},v.prototype.delete=function(f){var s=this.__data__,d=a(s,f);return!(d<0||(d==s.length-1?s.pop():p.call(s,d,1),--this.size,0))},v.prototype.get=function(f){var s=this.__data__,d=a(s,f);return d<0?void 0:s[d][1]},v.prototype.has=function(f){return a(this.__data__,f)>-1},v.prototype.set=function(f,s){var d=this.__data__,w=a(d,f);return w<0?(++this.size,d.push([f,s])):d[w][1]=s,this};const _=v,E=typeof bi=="object"&&bi&&bi.Object===Object&&bi;var x=typeof self=="object"&&self&&self.Object===Object&&self;const k=E||x||Function("return this")(),S=k.Symbol;var I=Object.prototy
|
||
|
* @license React
|
||
|
* react.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var di=Symbol.for("react.element"),Hp=Symbol.for("react.portal"),Bp=Symbol.for("react.fragment"),Wp=Symbol.for("react.strict_mode"),Vp=Symbol.for("react.profiler"),qp=Symbol.for("react.provider"),Qp=Symbol.for("react.context"),Kp=Symbol.for("react.forward_ref"),Gp=Symbol.for("react.suspense"),Yp=Symbol.for("react.memo"),Xp=Symbol.for("react.lazy"),Xa=Symbol.iterator;function Zp(e){return e===null||typeof e!="object"?null:(e=Xa&&e[Xa]||e["@@iterator"],typeof e=="function"?e:null)}var Cf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ef=Object.assign,xf={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=xf,this.updater=n||Cf}Jr.prototype.isReactComponent={};Jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tf(){}Tf.prototype=Jr.prototype;function Ks(e,t,n){this.props=e,this.context=t,this.refs=xf,this.updater=n||Cf}var Gs=Ks.prototype=new Tf;Gs.constructor=Ks;Ef(Gs,Jr.prototype);Gs.isPureReactComponent=!0;var Za=Array.isArray,Of=Object.prototype.hasOwnProperty,Ys={current:null},Nf={key:!0,ref:!0,__self:!0,__source:!0};function Pf(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Of.call(t,r)&&!Nf.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var a=Array(u),p=0;p<u;p++)a[p]=arguments[p+2];o.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:di,type:e,key:i,ref:l,props:o,_owner:Ys.current}}function Jp(e,t){return{$$typeof:di,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xs(e){return typeof e=="object"&&e!==null&&e.$$typeof===di}function eh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ja=/\/+/g;function Su(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eh(""+e.key):t.toString(36)}function sl(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case di:case Hp:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Su(l,0):r,Za(o)?(n="",e!=null&&(n=e.replace(Ja,"$&/")+"/"),sl(o,t,n,"",function(p){return p})):o!=null&&(Xs(o)&&(o=Jp(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Ja,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Za(e))for(var u=0;u<e.length;u++){i=e[u];var a=r+Su(i,u);l+=sl(i,t,n,a,o)}else if(a=Zp(e),typeof a=="function")for(e=a.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+Su(i,u++),l+=sl(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Hi(e,t,n){if(e==null)return e;var r=[],o=0;return sl(e,r,"","",function(i){return t.call(n,i,o++)}),r}function th(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tt={current:null},al={transition:null},nh={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:al,ReactCurrentOwner:Ys};ne.Children={map:Hi,forEach:function(e,t,n){Hi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Hi(e,function(){t++}),t},toArray:function(e){return Hi(e,function(t){return t})||[]},only:function(e){if(!Xs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=Jr;ne.Fragment=Bp;ne.Profiler=Vp;ne
|
||
|
* @license React
|
||
|
* scheduler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/(function(e){function t(H,N){var P=H.length;H.push(N);e:for(;0<P;){var D=P-1>>>1,X=H[D];if(0<o(X,N))H[D]=N,H[P]=X,P=D;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var N=H[0],P=H.pop();if(P!==N){H[0]=P;e:for(var D=0,X=H.length,Oe=X>>>1;D<Oe;){var ce=2*(D+1)-1,ee=H[ce],se=ce+1,_e=H[se];if(0>o(ee,P))se<X&&0>o(_e,ee)?(H[D]=_e,H[se]=P,D=se):(H[D]=ee,H[ce]=P,D=ce);else if(se<X&&0>o(_e,P))H[D]=_e,H[se]=P,D=se;else break e}}return N}function o(H,N){var P=H.sortIndex-N.sortIndex;return P!==0?P:H.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var a=[],p=[],v=1,_=null,E=3,x=!1,k=!1,S=!1,I=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(H){for(var N=n(p);N!==null;){if(N.callback===null)r(p);else if(N.startTime<=H)r(p),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(p)}}function O(H){if(S=!1,h(H),!k)if(n(a)!==null)k=!0,je(T);else{var N=n(p);N!==null&&pe(O,N.startTime-H)}}function T(H,N){k=!1,S&&(S=!1,g(C),C=-1),x=!0;var P=E;try{for(h(N),_=n(a);_!==null&&(!(_.expirationTime>N)||H&&!K());){var D=_.callback;if(typeof D=="function"){_.callback=null,E=_.priorityLevel;var X=D(_.expirationTime<=N);N=e.unstable_now(),typeof X=="function"?_.callback=X:_===n(a)&&r(a),h(N)}else r(a);_=n(a)}if(_!==null)var Oe=!0;else{var ce=n(p);ce!==null&&pe(O,ce.startTime-N),Oe=!1}return Oe}finally{_=null,E=P,x=!1}}var A=!1,m=null,C=-1,j=5,z=-1;function K(){return!(e.unstable_now()-z<j)}function J(){if(m!==null){var H=e.unstable_now();z=H;var N=!0;try{N=m(!0,H)}finally{N?ie():(A=!1,m=null)}}else A=!1}var ie;if(typeof c=="function")ie=function(){c(J)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,Qe=me.port2;me.port1.onmessage=J,ie=function(){Qe.postMessage(null)}}else ie=function(){I(J,0)};function je(H){m=H,A||(A=!0,ie())}function pe(H,N){C=I(function(){H(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_continueExecution=function(){k||x||(k=!0,je(T))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(H){switch(E){case 1:case 2:case 3:var N=3;break;default:N=E}var P=E;E=N;try{return H()}finally{E=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,N){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var P=E;E=H;try{return N()}finally{E=P}},e.unstable_scheduleCallback=function(H,N,P){var D=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?D+P:D):P=D,H){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=P+X,H={id:v++,callback:N,priorityLevel:H,startTime:P,expirationTime:X,sortIndex:-1},P>D?(H.sortIndex=P,t(p,H),n(a)===null&&H===n(p)&&(S?(g(C),C=-1):S=!0,pe(O,P-D))):(H.sortIndex=X,t(a,H),k||x||(k=!0,je(T))),H},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(H){var N=E;return function(){var P=E;E=N;try{return H.apply(this,arguments)}finally{E=P}}}})(jf);(function(e){e.exports=jf})(Af);/**
|
||
|
* @license React
|
||
|
* react-dom.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var If=ct.exports,vt=Af.exports;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zf=new Set,Qo={};function mr(e,t){Vr(e,t),Vr(e+"Capture",t)}function Vr(e,t){for(Qo[e]=t,e=0;e<t.length;e++)zf.add(t[e])}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=Object.prototype.hasOwnProperty,rh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ec={},tc={};function oh(e){return Yu.call(tc,e)?!0:Yu.call(ec,e)?!1:rh.test(e)?tc[e]=!0:(ec[e]=!0,!1)}function ih(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lh(e,t,n,r){if(t===null||typeof t>"u"||ih(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zs=/[\-:]([a-z])/g;function Js(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-a
|
||
|
`+_u+e}var ku=!1;function Cu(e,t){if(!e||ku)return"";ku=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var o=p.stack.split(`
|
||
|
`),i=r.stack.split(`
|
||
|
`),l=o.length-1,u=i.length-1;1<=l&&0<=u&&o[l]!==i[u];)u--;for(;1<=l&&0<=u;l--,u--)if(o[l]!==i[u]){if(l!==1||u!==1)do if(l--,u--,0>u||o[l]!==i[u]){var a=`
|
||
|
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=u);break}}}finally{ku=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Io(e):""}function uh(e){switch(e.tag){case 5:return Io(e.type);case 16:return Io("Lazy");case 13:return Io("Suspense");case 19:return Io("SuspenseList");case 0:case 2:case 15:return e=Cu(e.type,!1),e;case 11:return e=Cu(e.type.render,!1),e;case 1:return e=Cu(e.type,!0),e;default:return""}}function es(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nr:return"Fragment";case Or:return"Portal";case Xu:return"Profiler";case ta:return"StrictMode";case Zu:return"Suspense";case Ju:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rf:return(e.displayName||"Context")+".Consumer";case Mf:return(e._context.displayName||"Context")+".Provider";case na:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ra:return t=e.displayName||null,t!==null?t:es(e.type)||"Memo";case Tn:t=e._payload,e=e._init;try{return es(e(t))}catch{}}return null}function sh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return es(t);case 8:return t===ta?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ah(e){var t=Df(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wi(e){e._valueTracker||(e._valueTracker=ah(e))}function $f(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Df(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ts(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Un(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Uf(e,t){t=t.checked,t!=null&&ea(e,"checked",t,!1)}function ns(e,t){Uf(e,t);var n=Un(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rs(e,t.type,n):t.hasOwnProperty("defaultValue")&&rs(e,t.type,Un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oc(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(wm,"")}function Zi(e,t,n){if(t=Oc(t),Oc(e)!==t&&n)throw Error(F(425))}function Nl(){}var ys=null,vs=null;function ws(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ss=typeof setTimeout=="function"?setTimeout:void 0,Sm=typeof clearTimeout=="function"?clearTimeout:void 0,Nc=typeof Promise=="function"?Promise:void 0,_m=typeof queueMicrotask=="function"?queueMicrotask:typeof Nc<"u"?function(e){return Nc.resolve(null).then(e).catch(km)}:Ss;function km(e){setTimeout(function(){throw e})}function Ru(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Zo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Zo(t)}function Mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Pc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var to=Math.random().toString(36).slice(2),Kt="__reactFiber$"+to,ri="__reactProps$"+to,dn="__reactContainer$"+to,_s="__reactEvents$"+to,Cm="__reactListeners$"+to,Em="__reactHandles$"+to;function or(e){var t=e[Kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dn]||n[Kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pc(e);e!==null;){if(n=e[Kt])return n;e=Pc(e)}return t}e=n,n=e.parentNode}return null}function mi(e){return e=e[Kt]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Jl(e){return e[ri]||null}var ks=[],Ir=-1;function Bn(e){return{current:e}}function Se(e){0>Ir||(e.current=ks[Ir],ks[Ir]=null,Ir--)}function ge(e,t){Ir++,ks[Ir]=e.current,e.current=t}var bn={},Ze=Bn(bn),ft=Bn(!1),ar=bn;function qr(e,t){var n=e.type.contextTypes;if(!n)return bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Pl(){Se(ft),Se(Ze)}function Lc(e,t,n){if(Ze.current!==bn)throw Error(F(168));ge(Ze,t),ge(ft,n)}function Nd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,sh(e)||"Unknown",o));return Te({},n,r)}function Ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bn,ar=Ze.current,ge(Ze,e),ge(ft,ft.current),!0}function Ac(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=Nd(e,t,ar),r.__reactInternalMemoizedMergedChildContext=e,Se(ft),Se(Ze),ge(Ze,e)):Se(ft),ge(ft,n)}var un=null,eu=!1,Fu=!1;function Pd(e){un===null?un=[e]:un.push(e)}function xm(e){eu=!0,Pd(e)}function Wn(){if(!Fu&&un!==null){Fu=!0;var e=0,t=fe;try{var n=un;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}un=null,eu=!1}catch(o){throw un!==null&&(un=un.slice(e+1)),ed(ia,Wn),o}finally{fe=t,Fu=!1}}return null}var zr=[],Mr=0,Al=null,jl=0,Ct=[],Et=0,cr=null,sn=1,an="";function tr(e,t){zr[Mr++]=jl,zr[Mr++]=Al,Al=e,jl=t}function Ld(e,t,n){Ct[Et++]=sn,Ct[Et++]=an,Ct[Et++]=cr,cr=e;var r=sn;e=an;var o=32-$t(r)-1;r&=~(1<<o),n+=1;var i=32-$t(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,sn=1<<32-$t(t)+o|n<<o|r,an=i+e}else sn=1<<i|n<<o|r,an=e}function ha(e){e.return!==null&&(tr(e,1),Ld(e,1,0))}function ma(e){for(;e===Al;)Al=zr[--Mr],zr[Mr]=null,jl=zr[--Mr],zr[Mr]=null;for(;e===cr;)cr=Ct[--Et],Ct[Et]=null,an=Ct[--Et],Ct[Et]=null,sn=Ct[--Et],Ct[Et]=null}var yt=null,gt=null,Ce=!1,Rt=null;function Ad(e,t){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletio
|
||
|
Error generating stack: `+i.message+`
|
||
|
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Hu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ns(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zm=typeof WeakMap=="function"?WeakMap:Map;function ip(e,t,n){n=cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Ds=r),Ns(e,t)},n}function lp(e,t,n){n=cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ns(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ns(e,t),typeof r!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function bc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zm;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Km.bind(null,e,t,n),t.then(e,e))}function Hc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Bc(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=cn(-1,1),t.tag=2,Rn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Mm=mn.ReactCurrentOwner,at=!1;function Je(e,t,n,r){t.child=e===null?Dd(t,null,n,r):Kr(t,e.child,n,r)}function Wc(e,t,n,r,o){n=n.render;var i=t.ref;return Br(t,o),r=Ta(e,t,n,r,i,o),n=Oa(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Ce&&n&&ha(t),t.flags|=1,Je(e,t,r,o),t.child)}function Vc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Fa(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,up(e,t,i,r,o)):(e=wl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:ei,n(l,r)&&e.ref===t.ref)return hn(e,t,o)}return t.flags|=1,e=$n(i,r),e.ref=t.ref,e.return=t,t.child=e}function up(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ei(i,r)&&e.ref===t.ref)if(at=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,hn(e,t,o)}return Ps(e,t,n,r,o)}function sp(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Dr,mt),mt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Dr,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ge(Dr,mt),mt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ge(Dr,mt),mt|=r;return Je(e,t,o,n),t.child}function ap(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,o){var i=dt(n)?ar:Ze.current;return i=qr(t,i),Br(t,o),n=Ta(e,t,n,r,i,o),r=Oa(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Ce&&r&&ha(t),t.flags|=1,Je(e,t,n,o),t.child)}function qc(e,t,n,r,o){if(dt(n)){var i=!0;Ll(t)}else i=!1;if(Br(t,o),t.stateNode===null)gl(e,t),Rd(t,n,r),Os(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,u=t.memoizedProps;l.props=u;var a=l.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ot(p):(p=dt(n)?ar:Ze.current,p=qr(t,p));var v=n.getDerivedStateFromProps,_=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function";_||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==r||a!==p)&&Fc(t,l,r,p),On=!1;var E=t.memoizedState;l.state=E,Ml(t,r,l,o),a=t.memoizedState,u!==r||E!==a||ft.current||On?(typeof v=="function"&&(Ts(t,n,v,r),a=t.memoizedState),(u=On||Rc(t,n,u,r,E,a,p))?(_||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="f
|
||
|
* @license React
|
||
|
* react-jsx-runtime.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var Ig=ct.exports,zg=Symbol.for("react.element"),Mg=Symbol.for("react.fragment"),Rg=Object.prototype.hasOwnProperty,Fg=Ig.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dg={key:!0,ref:!0,__self:!0,__source:!0};function Fp(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Rg.call(t,r)&&!Dg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:zg,type:e,key:i,ref:l,props:o,_owner:Fg.current}}cu.Fragment=Mg;cu.jsx=Fp;cu.jsxs=Fp;(function(e){e.exports=cu})(Ga);const De=Ga.exports.jsx,ll=Ga.exports.jsxs;var $g=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var l=i[o];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n};const Ug="1.0.0",bg=()=>{const e=kg(),[t,n]=te.useState("light");return te.useEffect(()=>(n(top.document.querySelector("html")?.getAttribute("data-theme")??(matchMedia("prefers-color-scheme: dark").matches?"dark":"light")),logseq.App.onThemeModeChanged(r=>{e()&&n(r.mode)})),[e]),t};async function Hg(e){if(!e)return null;const t=await logseq.Editor.getPage(e);if(t&&t.alias?.length>0&&!(t.properties?.alias.length>0)){const n=t.alias[0]?.id;if(n)return await logseq.Editor.getPage(n)}return t}const Bg=e=>new Promise(t=>setTimeout(t,e));function Dp(e){return"logseq-plugin-tabs:"+Ug+"/"+e}const Wg=e=>{const t=localStorage.getItem(Dp(e));if(t)try{return JSON.parse(t)}catch{}return null},Vg=(e,t)=>{localStorage.setItem(Dp(t),JSON.stringify(e))};function qg(){const[e,t]=ct.exports.useState(null),n=async()=>{const r=await logseq.App.getCurrentGraph();t(r?.path??null)};return te.useEffect(()=>(n(),logseq.App.onCurrentGraphChanged(()=>{n()})),[]),e}function Qg(){const[e,t]=te.useState([]),n=qg();return te.useEffect(()=>{if(n){const o=Wg(n);t(o??[])}},[n]),[e,o=>{if(n&&!$g(e,o))return Vg(o,n),t(o)}]}function Kg(e,t){let n=null;return(...r)=>{n&&clearTimeout(n),n=window.setTimeout(()=>{e(...r),n=null},t)}}function $p(e,t=300){const n=Dt(e);return ct.exports.useMemo(()=>Kg(n,t),[n,t])}function Gg(){const[e,t]=te.useState(top?.logseq.api.get_state_from_store("route-match"));return te.useEffect(()=>logseq.App.onRouteChanged(t),[]),e}function Yg(e){const[t,n]=te.useState(logseq.settings?.[e]);return te.useEffect(()=>logseq.onSettingsChanged(()=>{n(logseq.settings?.[e])})),t}function Xg(){const e=Yg(zp.key);te.useEffect(()=>{const t=top?.document.head;if(t&&e){const n=()=>{let o=document.getElementById("logseq-custom-theme-id");o||(o=document.createElement("link"),o.id="logseq-custom-theme-id",o.rel="stylesheet",o.media="all",document.head.append(o));const i=top?.document.querySelector("#logseq-custom-theme-id")?.href;i&&(o.href=i)},r=new MutationObserver(o=>{for(const i of o)for(const l of i.addedNodes)if(l.nodeName==="LINK"&&l.id==="logseq-custom-theme-id"){n();break}});return r.observe(t,{childList:!0}),n(),()=>{r.disconnect()}}e||document.getElementById("logseq-custom-theme-id")?.remove()})}function Zg(e,t){const n=Gg();Xg();const r=e&&(!n?.template||["/","/all-journals","/page/:name","/file/:path"].includes(n?.template)),o=te.useRef(document.documentElement),i=Lg(o);te.useEffect(()=>{logseq.provideStyle({key:"tabs--top-padding",style:`
|
||
|
#main-content-container {
|
||
|
padding-top: ${r?"64px":""};
|
||
|
}`}),logseq.showMainUI({autoFocus:!1});const l=top.document.querySelector("#head.cp__header"),u=top.document.querySelector("#main-content-container");if(!u)return;const a=()=>{const{left:v,width:_}=u.getBoundingClientRect(),E=_-10;logseq.setMainUIInlineStyle({zIndex:9,userSelect:"none",position:"fixed",left:`${v}px`,top:`${l.offsetHeight+2}px`,height:r?"28px":"0px",width:i?"100%":t+"px",maxWidth:E+"px",WebkitAppRegion:"drag"})};a();const p=new ResizeObserver(a);return p.observe(u),()=>{p.disconnect()}},[r,t,i])}const Qs=()=>navigator.userAgent.includes("Mac");function Dt(e){const t=te.useRef();return te.useLayoutEffect(()=>{t.current=e}),te.useCallback((...n)=>t.current.apply(void 0,n),[])}const Jg=e=>{const[t,n]=te.useState();return te.useEffect(()=>{const r=()=>n(e.current?.scrollWidth||0),o=new MutationObserver(()=>{r(),setTimeout(r,100),setTimeout(r,200),setTimeout(r,300)});return e.current&&(n(e.current.scrollWidth||0),o.observe(e.current,{childList:!0,subtree:!0,attributes:!0})),()=>o.disconnect()},[e]),t},ey=e=>{top?.document.querySelector("#main-container")?.scrollTo(e)},Ql=e=>Boolean(e.page),ty=()=>{const e=$p(Dt(()=>{window.document.hasFocus()&&(top.focus(),logseq.Editor.restoreEditingCursor())}),10);te.useEffect(()=>{let t=0;return t=setInterval(e,1e3),window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e),clearInterval(t)}})},yf=()=>De("svg",{height:"1em",width:"1em",viewBox:"0 0 122.878 122.88",fill:"currentColor",children:De("g",{children:De("path",{d:"M1.426,8.313c-1.901-1.901-1.901-4.984,0-6.886c1.901-1.902,4.984-1.902,6.886,0l53.127,53.127l53.127-53.127 c1.901-1.902,4.984-1.902,6.887,0c1.901,1.901,1.901,4.985,0,6.886L68.324,61.439l53.128,53.128c1.901,1.901,1.901,4.984,0,6.886 c-1.902,1.902-4.985,1.902-6.887,0L61.438,68.326L8.312,121.453c-1.901,1.902-4.984,1.902-6.886,0 c-1.901-1.901-1.901-4.984,0-6.886l53.127-53.128L1.426,8.313L1.426,8.313z"})})});function ut(e,t){function n(r,o){return r!=null&&o!=null&&r.toLowerCase()===o.toLowerCase()}return e?.page||t?.page?n(e?.uuid,t?.uuid):Boolean(n(e?.originalName,t?.originalName)||n(e?.name,t?.name)||e?.alias?.includes(t?.id))}const ny=te.forwardRef(({activeTab:e,onClickTab:t,tabs:n,closeButtonLeft:r,hideCloseAllButton:o,showSingleTab:i,onCloseTab:l,onCloseAllTabs:u,onPinTab:a,onSwapTab:p},v)=>{const[_,E]=te.useState();te.useEffect(()=>{const S=()=>{E(void 0)};return document.addEventListener("dragend",S),()=>{document.removeEventListener("dragend",S)}},[]);const x=$p(p,0);return i||0<n.filter(S=>S.pinned).length||1<n.length?ll("div",{ref:v,"data-dragging":_!=null,className:"logseq-tab-wrapper flex items-center h-full px-1",style:{width:"fit-content"},onMouseDown:S=>{S.button===1&&S.preventDefault()},children:[n.map(S=>{const I=ut(S,e),g=T=>{T.stopPropagation(),l(S)},c=T=>{_&&(T.preventDefault(),T.dataTransfer.dropEffect="move",x(S,_))},h=T=>{T.dataTransfer.effectAllowed="move",E(S),T.stopPropagation()},O=S.properties?.icon?S.properties?.icon:Ql(S)?"B":"P";return ll("div",{onClick:()=>t(S),onAuxClick:g,onDoubleClick:()=>a(S),onContextMenu:T=>{T.preventDefault(),console.log("Not implemented yet")},"data-active":I,"data-pinned":S.pinned,"data-dragging":_===S,draggable:!0,onDragOver:c,onDragStart:h,className:"logseq-tab group",children:[De("div",{className:"text-xs rounded border mr-1 px-1 inline light:bg-white dark:bg-dark",children:O}),r&&S.pinned?De("span",{children:"\u{1F4CC}"}):r&&De("button",{className:"close-button",onClick:g,children:De(yf,{})}),ll("span",{className:"logseq-tab-title",children:[S.originalName??S.name," ",Ql(S)&&ll("span",{title:S.content,children:[De("strong",{className:"text-blue-600",children:"\u2022"}),De("span",{className:"mx-1",children:S.content})]})]}),!r&&S.pinned?De("span",{children:"\u{1F4CC}"}):!r&&De("button",{className:"close-button",onClick:g,children:De(yf,{})})]},[S.originalName,S.uuid].join("-"))}),!o&&De("div",{onClick:()=>u(!0),draggable:!1,className:"logseq-tab close-all group",children:De("span",{className:"logseq-tab-title",children:"Close All"})},"Close All")]}):null});function vf(e){cons
|
||
|
[data-active-keystroke=${t?"Meta":"Control"} i]
|
||
|
:is(.block-ref,.page-ref,a.tag) {
|
||
|
cursor: n-resize
|
||
|
}
|
||
|
`),jp(document.getElementById("app")).render(De(te.StrictMode,{children:De(py,{})})),parent.document.body.classList.add("is-plugin-tabs-enabled"),logseq.beforeunload(async()=>{parent.document.body.classList.remove("is-plugin-tabs-enabled")}),console.info(`#${e}: MAIN DONE`)}logseq.useSettingsSchema(ag).ready(hy).catch(console.error);
|